/* Hero Section */
.hero {
    color: white;
    padding: 0;
    margin: 71px 0;
}

.hero .container {
    display: flex;
    gap: 0px;
}

.hero .col {
    display: flex;
    flex-direction: column;
    gap: 30px;
    justify-content: center;
    width: 50%;
}

.hero .hero-content {
    /* текстовый блок */
}

.hero .hero-content h1 {
    font-weight: 700;
    font-size: 56px;
    line-height: 64px;
    padding: 0;
    margin: 0;
    max-width: 80%;
}

.hero .hero-content p {
    font-weight: 400;
    font-size: 20px;
    line-height: 100%;
    padding: 0;
    margin: 0;
    max-width: 75%;
}

.hero .buttons-wrapper {
    display: flex;
    gap: 16px;
}


.hero .hero-image {
    display: block;
}

.hero .hero-image .img-wrapper {
    display: block;
    width: 100%;
    /* min-width: 644px; */
    height: 516px;
    border-radius: 32px;
    border: 1px solid rgba(106, 107, 129, 0.2);
    background-color:  rgba(15, 21, 26, 0.8);
    position: relative;
    overflow: hidden;
}

.hero .hero-image img {
    position: absolute;
    top: 66px;
    left: 66px;
    -webkit-box-shadow: 0px 0px 79px 0px rgb(24 46 65 / 45%);
    -moz-box-shadow: 0px 0px 79px 0px rgb(24 46 65 / 45%);;
    box-shadow: 0px 0px 79px 0px rgb(24 46 65 / 45%);
    border-radius: 30px 0 0 0;
}



/* Features Section */
.features {
    color: white;
    padding: 60px 0 132px 0;
}

.features .container {
    /* контейнер с flex/grid */
    display: flex;
    flex-direction: column;
    gap: 52px;
}

.features h2 {
    font-weight: 700;
    font-size: 44px;
    line-height: 52px;
    display: block;
    max-width: 45%;
}

.features .feature-grid {
    display: flex; /* или grid */
    gap: 32px; /* пример */
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
}



.features .feature {
    display: flex;
    flex-direction: column;
    opacity: 1;
    border-radius: 32px;
    padding: 32px;
    background-color: var(--blue-2);
    justify-content: space-between;
    gap: 22px;
}

/* Ряд 1 (70% + 30%) */
.feature-grid .feature:nth-child(4n + 1) {
    width: calc(65% - 32px);
}
.feature-grid .feature:nth-child(4n + 2) {
    width: 35%;
}

/* Ряд 2 (30% + 70%) */
.feature-grid .feature:nth-child(4n + 3) {
    width: 35%;
}
.feature-grid .feature:nth-child(4n + 4) {
    width: calc(65% - 32px);
}

.features .feature  .icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 40px;
    padding: 5px;
    background: rgba(41, 96, 135, 0.4);
    box-sizing: content-box;
}

.features .feature .icon img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}



.features .feature .feature-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}


.features .feature .feature-content h3 {
    font-weight: 600;
    font-size: 28px;
    line-height: 40px;
}

.features .feature .feature-content p {
    font-weight: 400;
    font-size: 16px;
    line-height: 20px;
    padding: 0;
    margin: 0;
    color: var(--grey-text);
}

/* How It Works Section */
.how-it-works {
    color: white;
    padding-bottom: 132px;
}

.how-it-works .container {
    display: flex;
    gap: 52px;
    opacity: 1;
    border-radius: 32px;
    padding: 64px;
    background-color: var(--black-2);
    flex-direction: column;
    border-top: solid 1px #0F151ACC;
    border-bottom: solid 1px #0F151ACC;
    -webkit-box-shadow: 0px 0px 1px 1px rgb(255 255 255 / 3%) inset;
    -moz-box-shadow: 0px 0px 1px 1px rgb(255 255 255 / 3%) inset;
    box-shadow: 0px 0px 1px 1px rgb(255 255 255 / 3%) inset;
}

.how-it-works h2 {
    font-weight: 700;
    font-size: 44px;
    line-height: 52px;
}

.how-it-works .steps-grid {
    display: flex;
    gap: 20px;
    padding: 16px 0 0 0;
    position: relative;
}


.how-it-works .step {
    position: relative;
}

.how-it-works .step:before {
    background: linear-gradient(90deg, #E5E6E3 0%, #A5A5A5 100%);
    content: "";
    display: block;
    position: absolute;
    top: -26px;
    left: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
}

.how-it-works .step:after {
    border-top: dashed 1px #A5A5A5;
    content: "";
    display: block;
    position: absolute;
    top: -16px;
    left: 28px;
    width: calc(100% - 16px);
    height: 1px;
}


.how-it-works .step .step-content {
    display: block;
    margin-top: 16px;
}

.how-it-works .step h3 {
    font-weight: 600;
    font-size: 28px;
    line-height: 40px;
}

.how-it-works .step p {
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
}

/* Flexibility Section */
.flexibility {
    color: white;
    padding-bottom: 132px;
}

/* container */
.flexibility .container {
    display: flex;
    flex-direction: column;
    gap: 52px;
}

/* section title */
.flexibility h2 {
    font-weight: 700;
    font-size: 44px;
    line-height: 52px;
}

/* wrapper for menu + tabs */
.flexibility .flexibility-wrapper {
    display: flex;
    gap: 80px;
}

/* Tab Menu */
.flexibility .tab-menu {
    display: flex;
    gap: 48px;
    -webkit-overflow-scrolling: touch;
    list-style: none;
    flex-direction: column;
    padding: 0;
    margin: 0;
}

/* each tab button */
.flexibility .tab-menu-item {
    cursor: pointer;
    font-weight: 500;
    font-size: 16px;
    line-height: 20px;
    position: relative;
    padding-left: 40px;
    color: #80808A;
}


.flexibility .tab-menu-item:before {
    background: linear-gradient(90deg, #80808F 0%, #A5A5A5 100%);
    content: "";
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
}

.flexibility .tab-menu-item:after {
    border-left: dashed 1px #80808F;
    content: "";
    display: block;
    position: absolute;
    top: 28px;
    left: 10px;
    width: 1px;
    height: 120%;
}

.flexibility .tab-menu-item:last-child:after {
    display: none;
}


.flexibility .tab-menu-item:focus {

}
.flexibility .tab-menu-item:hover {
    transform: translateY(-2px);
}
.flexibility .tab-menu-item.active {
    color: white;
}

.flexibility .tab-menu-item.active:before {
    background: linear-gradient(90deg, #E5E6E3 0%, #A5A5A5 100%);
}

.flexibility .tab-menu-item.active:after {
    border-left: dashed 1px #A5A5A5;
}

/* content wrapper */
.flexibility .tab-content {
    position: relative;
}

/* single tab content block */
.flexibility .tab-block {
    transition: opacity 260ms ease, transform 260ms ease, max-height 360ms ease;
    opacity: 0;
    transform: translateY(8px);
    max-height: 0;
    overflow: hidden;
    pointer-events: none;
}

/* active state */
.flexibility .tab-block.active {
    opacity: 1;
    transform: translateY(0);
    max-height: 2000px; /* enough to show content */
    pointer-events: auto;
}

/* layout inside tab block: two-column */
.flexibility .tab-block {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 24px;
    align-items: start;
    margin: 16px 0 36px 0;
}

/* left column content */
.flexibility .tab-block .col {
    min-width: 0;
}

/* tab item title */
.flexibility .tab-block .col h3 {
    font-weight: 600;
    font-size: 32px;
    line-height: 44px;
}

/* tab item description */
.flexibility .tab-block .col p {
    font-weight: 400;
    font-size: 16px;
    line-height: 20px;
    color: #DBDEE1;
}

/* right box */
.flexibility .tab-block .box {
    display: flex;
    flex-direction: column;
    opacity: 1;
    border-radius: 32px;
    padding: 32px;
    background-color: var(--blue-2);
    justify-content: space-between;
    gap: 22px;
    min-width: 312px;
    min-height: 304px;
}

/* small title inside box */
.flexibility .tab-block .box h4 {
    font-weight: 600;
    font-size: 24px;
    line-height: 28px;
}

/* wrapper for icon + button */
.flexibility .bottom-wrapper {
    display: flex;
    justify-content: space-between;
}

/* icon wrapper - blue glass effect */
.flexibility .bottom-wrapper .icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 40px;
    padding: 5px;
    background: rgba(41, 96, 135, 0.4);
    box-sizing: content-box;
}

/* image inside icon */
.flexibility .bottom-wrapper .icon img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}


/* small responsiveness */
@media (max-width: 980px) {
    .flexibility .tab-block {
        grid-template-columns: 1fr;
    }

    .flexibility .tab-block .box {
        order: 2;
        width: 100%;
    }

    .flexibility .bottom-wrapper {
        justify-content: space-between;
    }
}

@media (max-width: 520px) {
    .flexibility {
        padding: 36px 0;
    }

    .flexibility h2 {
        font-size: 20px;
    }

    .flexibility .tab-menu-item {
        padding: 8px 10px;
        font-size: 13px;
    }

    .flexibility .bottom-wrapper .icon {
        width: 48px;
        height: 48px;
    }

    .flexibility .tab-block {
        margin: 12px 0 20px 0;
    }
}

/* accessibility helpers */
.flexibility .tab-menu-item[role="tab"] {
    outline: none;
}
.flexibility .tab-block[aria-hidden="true"] {
    display: none;
}
.flexibility .tab-block[aria-hidden="false"] {
    display: flex;
    align-items: center;
    gap: 50px;
    justify-content: space-between;
}



.connection {
    color: white;
    padding-bottom: 132px;
}

.connection h2 {
    font-weight: 700;
    font-size: 44px;
    line-height: 52px;
    max-width: 557px;
}

.connection .wrapper {
    display: block;
    position: relative;
    width: 100%;
    min-height: 654px;
    max-width: 662px;
    margin: auto;
    background-image: url("../images/bg-connections.png");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}


.connection .wrapper .text-block {
    display: block;
    position: absolute;
}


.connection .wrapper .text-block strong {
    font-weight: 700;
    font-size: 12px;
    line-height: 100%;
    color: var(--blue);
}


.connection .wrapper .text-block h3 {
    font-weight: 700;
    font-size: 16px;
    line-height: 20px;
}

.connection .wrapper .text-block p {
    font-weight: 400;
    font-size: 12px;
    line-height: 100%;
    padding: 5px 0 0 0;
    margin: 0;
}


.connection .wrapper .text-block:nth-child(2) {
    right: -10%;
    top: 12%
}


.connection .wrapper .text-block:nth-child(3) {
    right: -10%;
    bottom: 12%
}


.connection .wrapper .text-block:nth-child(4) {
    left: 10px;
    bottom: 8%
}



.connection .wrapper .text-block:nth-child(5) {
    left: -12%;
    top: 45%
}


.contacts {
    color: white;
}

.contacts .container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 20px;
}

.contacts .container .left{
    max-width: 366px;
}

.contacts .container .contact-form {
    padding: 48px!important;
}


.contacts .container h2 {
    font-family: Manrope;
    font-weight: 700;
    font-style: Bold;
    font-size: 44px;
    leading-trim: NONE;
    line-height: 52px;
    letter-spacing: 0%;

}

.contacts .container p{
    font-family: Manrope;
    font-weight: 400;
    font-style: Regular;
    font-size: 16px;
    leading-trim: NONE;
    line-height: 20px;
    letter-spacing: 0%;
    color: var(--grey-text);
}