/* ===== FEATURES SECTION (перенесено из v1) ===== */
.features-section {
    position: relative;
    margin: clamp(30px, 4vw, 57px) 0 0;
    height: 454px;
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
}
.features-bg {
    position: absolute;
    top: 95px;
    left: 0;
    width: 100%;
    height: 359px;
    background: #000;
    border-radius: 30px;
}
.features-left {
    position: absolute;
    left: clamp(24px, 4%, 53px);
    top: clamp(100px, 30%, 147px);
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 24px;
    max-width: clamp(300px, 45%, 540px);
}
.features-section .badge-gray {
    display: inline-flex;
    align-items: center;
    padding: 7px 24px;
    border: 1px solid #8D8D8D;
    border-radius: 100px;
    width: fit-content;
}
.features-section .badge-gray .badge-text {
    font-weight: 500;
    font-size: 14px;
    color: #8D8D8D;
    line-height: 28px;
}
.features-title {
    font-weight: 700;
    font-size: 26px;
    line-height: 1.2;
    color: #fff;
}
.features-desc {
    font-weight: 400;
    font-size: 16px;
    line-height: 1.5;
    color: #fff;
    margin: 0;
}

/* App Store button */
.features-appstore-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 8px 16px 8px 8px;
    background: #fff;
    border: 1px solid #fff;
    border-radius: 79.06px;
    text-decoration: none;
    color: #000;
    width: fit-content;
    transition: opacity 0.2s;
}
.features-appstore-btn:hover { opacity: 0.92; }
.features-appstore-btn .btn-icon {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.features-appstore-btn .btn-icon img {
    width: auto;
    height: 22px;
    max-width: 26px;
    object-fit: contain;
}
.features-appstore-btn .btn-label-small {
    font-weight: 500;
    font-size: 11px;
    color: #666;
    line-height: 1;
    margin-bottom: 4px;
}
.features-appstore-btn .btn-label-big {
    font-weight: 700;
    font-size: 16px;
    color: #000;
    line-height: 1;
}
.features-appstore-btn .btn-action {
    margin-left: 8px;
    padding: 8px 18px;
    background: #000;
    color: #fff;
    border-radius: 39.53px;
    font-weight: 700;
    font-size: 13px;
}

/* Right visual */
.features-visual {
    position: absolute;
    right: clamp(0px, 2%, 28px);
    top: 0;
    width: clamp(380px, 50%, 640px);
    height: 454px;
}
.circles-clip {
    position: absolute;
    top: 95px;
    left: 0;
    width: 100%;
    height: 359px;
    overflow: hidden;
    border-radius: 30px;
}
.circle-outer {
    position: absolute;
    top: -71px;
    left: 93px;
    width: 484px;
    height: 484px;
    border-radius: 50%;
    background: rgba(174, 211, 255, 0.15);
    border: 1.3px solid rgba(255, 255, 255, 0.08);
}
.circle-inner {
    position: absolute;
    top: -28px;
    left: 136px;
    width: 399px;
    height: 399px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}
.phone-mockup {
    position: absolute;
    top: 0;
    left: clamp(50px, 20%, 124px);
    width: clamp(300px, 65%, 423px);
    height: 454px;
    z-index: 2;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}
.phone-mockup img {
    /* v1-стиль: width-based scaling, картинка может обрезаться снизу
       (overflow:hidden у родителя). Обе картинки одного размера, так что
       визуально расположены идентично. */
    width: clamp(200px, 50%, 309px);
    height: auto;
}

.feature-cards {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
}
.feature-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18.5px 13.2px;
    border-radius: 13.2px;
}
.feature-card.blue {
    background: rgba(0, 115, 255, 0.6);
    border: 1.3px solid rgba(0, 79, 176, 0.07);
    box-shadow: 0px 13.2px 17.4px rgba(0, 79, 176, 0.15);
}
.feature-card.green {
    background: rgba(6, 173, 0, 0.6);
    border: 1.3px solid rgba(6, 185, 0, 0.6);
    box-shadow: 0px 13.2px 17.4px rgba(6, 185, 0, 0.2);
}
.feature-card.yellow {
    background: #FED73E;
    border: 1.3px solid #F6CE39;
    box-shadow: 0px 13.2px 17.4px rgba(255, 202, 0, 0.21);
}
.fc-gen { left: 14px; top: 157px; }
.fc-vpn { right: 8px; top: 157px; }
.fc-helper { left: 56px; top: 325px; }
.fc-study { right: 23px; top: 323px; }

.feature-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}
.feature-icon img { width: 20px; height: 20px; }
.feature-icon-full { background: none; box-shadow: none; overflow: visible; }
.feature-icon-full img { width: 40px; height: 40px; }
.feature-card.blue .feature-icon:not(.feature-icon-full) {
    box-shadow: 0px 2.6px 9.4px rgba(62, 137, 229, 0.85);
}
.feature-card.green .feature-icon:not(.feature-icon-full) {
    box-shadow: 0px 2.6px 9.4px rgba(5, 139, 0, 0.6);
}
.feature-card.yellow .feature-icon {
    box-shadow: 0px 2.6px 9.4px #E3BD25;
}
.feature-card-text {
    font-weight: 600;
    font-size: 10.6px;
    line-height: 13.2px;
    color: #fff;
}
.feature-card.yellow .feature-card-text { color: #665100; }


/* Tablet (1024px) — стек по вертикали */
@media (max-width: 1024px) {
    .features-section {
        height: auto;
        display: flex;
        flex-direction: column;
        background: #000;
        border-radius: 30px;
        padding: 40px 30px;
        gap: 30px;
        overflow: hidden;
    }
    .features-bg { display: none; }
    .features-left {
        position: static;
        width: 100%;
        max-width: none;
        align-items: center;
        text-align: center;
    }
    .features-appstore-btn { margin: 0 auto; }
    .features-visual {
        position: static;
        width: 100%;
        height: auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 24px;
    }
    .circles-clip { display: none; }
    .phone-mockup {
        position: static;
        width: 260px;
        height: auto;
        margin: 0 auto;
    }
    .phone-mockup img { width: 100%; }
    .feature-cards {
        position: static;
        width: 100%;
        max-width: 500px;
        height: auto;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
    .feature-card { position: static; }
}

/* Mobile (680px) — карточки скрыты, видны круги-декорации (как в v1) */
@media (max-width: 680px) {
    .features-section {
        height: 759px;
        display: flex;
        flex-direction: column;
        background: #000;
        border-radius: 30px;
        padding: 27px 24px 0;
        gap: 0;
        overflow: hidden;
        position: relative;
    }
    .features-bg { display: none; }
    .features-left {
        position: static;
        width: 100%;
        max-width: none;
        align-items: center;
        text-align: center;
        gap: 0;
    }
    .features-section .badge-gray {
        padding: 7px 24px;
        height: 40px;
        margin-bottom: 17px;
    }
    .features-title {
        font-size: 18px;
        line-height: 1.33em;
        text-align: center;
        margin-bottom: 6px;
    }
    .features-desc {
        font-size: 14px;
        line-height: 1.43em;
        text-align: center;
        max-width: 293px;
    }
    .features-left > div[style] { gap: 6px !important; }
    .features-appstore-btn {
        width: 100%;
        max-width: 307px;
        margin: 22px auto 0;
        justify-content: space-between;
        padding: 8px 8px 8px 12px;
    }
    .features-appstore-btn > div:nth-child(2) {
        flex: 1;
        text-align: center;
    }

    /* feature-cards скрыты на мобайле */
    .feature-cards { display: none !important; }

    /* визуальная часть с кругами и телефоном — фиксированно */
    .features-visual {
        position: static;
        width: 0;
        height: 0;
        pointer-events: none;
        overflow: visible;
    }
    .circles-clip {
        display: block;
        position: absolute;
        left: 50%;
        top: 386px;
        transform: translateX(-50%);
        width: min(444px, 100vw);
        height: min(444px, 100vw);
        overflow: visible;
        border-radius: 0;
    }
    .circle-outer {
        position: absolute;
        width: min(444px, 100vw);
        height: min(444px, 100vw);
        top: 0;
        left: 0;
    }
    .circle-inner {
        position: absolute;
        width: 366.16px;
        height: 366.16px;
        top: 39.25px;
        left: 39.25px;
    }
    .phone-mockup {
        position: absolute;
        left: 50%;
        top: 360px;
        transform: translateX(-50%);
        width: min(287px, 75vw);
        height: auto;
        z-index: 2;
        overflow: visible;
    }
    .phone-mockup img {
        width: 100%;
        height: auto;
    }
}
