/* ===== FONT ===== */
@font-face {
    font-family: 'Aeroport';
    src: url('../fonts/aeroport/Aeroport Light.woff2') format('woff2');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Aeroport';
    src: url('../fonts/aeroport/Aeroport Light Italic.woff2') format('woff2');
    font-weight: 300;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Aeroport';
    src: url('../fonts/aeroport/Aeroport.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Aeroport';
    src: url('../fonts/aeroport/Aeroport Italic.woff2') format('woff2');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Aeroport';
    src: url('../fonts/aeroport/Aeroport Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Aeroport';
    src: url('../fonts/aeroport/Aeroport Medium Italic.woff2') format('woff2');
    font-weight: 500;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Aeroport';
    src: url('../fonts/aeroport/Aeroport Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Aeroport';
    src: url('../fonts/aeroport/Aeroport Bold Italic.woff2') format('woff2');
    font-weight: 700;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Aeroport Mono';
    src: url('../fonts/aeroport/Aeroport Mono.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
/* ===== END FONT ===== */

/* ===== TOKENS ===== */
:root {
    /* === COLORS === */
    --wine: #74384E;
    /* primary wine */
    --wine-deep: #472639;
    /* dark wine */
    --wine-dark: #2e1825;
    /* near-black wine (footer/banner) */
    --cream: #FFFDF9;
    /* cream background/text */
    --panel: #F1EBED;
    /* light panels */
    --panel-2: #FCFCFC;
    --muted: #996779;
    /* muted wine text */
    --lilac: #B889CD;
    /* lilac accent */
    --violet: #9F46C7;
    --gold: #F9D77E;
    --orange: #E77D2B;
    --green: #87B995;
    --green-2: #589969;
    --check: #46B681;
    --ink: #242424;
    --red-1: #8A1E34;
    --red-1-hover: #8a1e34b9;
    --white-1: #F3EEE8;

    /* === SIZES === */
    --radius: 20px;
    --radius-lg: 28px;
    --maxw: 1200px;
}
/* ===== END TOKENS ===== */

/* ===== BASE ===== */
html {
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


body {
    font-family: 'Aeroport', -apple-system, Segoe UI, sans-serif;
    background: var(--cream);
    color: var(--wine-deep);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

.feature-wrap {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 38px 20px;
}
/* ===== END BASE ===== */

/* ===== BUTTONS ===== */
.btn {
    max-height: 40px;
    max-width: 210px;
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    letter-spacing: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-family: inherit;
    border-radius: 8px;
    padding: 8px 24px;
    cursor: pointer;
    border: 1px solid transparent;
    transition: .25s;
    white-space: nowrap;
}

.btn-primary {
    background: var(--red-1);
    color: var(--white-1);
}

.btn-primary:hover {
    background: var(--red-1-hover);
}

.btn-ghost {
    background: transparent;
    color: var(--cream);
    border: 1px solid #FFFDF94D;
    max-width: 213px;
}

.btn-ghost:hover {
    background: rgba(255, 253, 249, .16);
}
/* ===== END BUTTONS ===== */

/* ===== TOP BAR BANNER ===== */
.top-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: var(--wine-deep);
    color: var(--cream);
    font-size: 16px;
    transform: translateY(-100%);
    transition: transform 0.35s ease;
}

.top-bar--visible {
    transform: translateY(0);
}

.top-bar-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 26px;
    min-height: 60px;
    max-height: 60px;
    flex-wrap: wrap;
    text-align: center;
}

.top-bar-text {
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    letter-spacing: 0;
}

.pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-height: 40px;
    background: transparent;
    padding: 8px 24px;
    border-radius: 8px;
    border: 1px solid #FFFDF94D;
    cursor: pointer;
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    letter-spacing: 0;
}
@media (max-width: 640px) {
    .top-bar {
        font-size: 13px;
    }

    .top-bar-wrap {
        gap: 12px;
        min-height: 52px;
        max-height: 52px;
    }

    .top-bar-text {
        font-size: 13px;
        line-height: 20px;
    }

    .pill {
        font-size: 13px;
        line-height: 20px;
        padding: 6px 16px;
    }
}
/* ===== END TOP BAR BANNER ===== */

/* ===== HERO ===== */
.hero {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100svh;
    overflow: hidden;
    background: var(--wine-dark);
}

/* Картинка-постер: дублирует позицию фонового видео. Скрыта по умолчанию,
   показывается через JS (.hero.video-blocked), если Safari/iOS блокирует
   автоплей и сам <video> скрывается — иначе Safari рисует нескрываемую
   нативную кнопку play. */
.hero-bg-fallback {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
    z-index: 0;
    pointer-events: none;
    display: none;
}

.hero.video-blocked .hero-bg-video {
    display: none !important;
}

.hero.video-blocked .hero-bg-fallback {
    display: block;
}

/*.hero {*/
/*    position: relative;*/
/*    display: flex;*/
/*    flex-direction: column;*/
/*    min-height: 100svh;*/
/*    background: url('../images/hero-bg.webp?v=opt1');*/
/*    background-size: cover;*/
/*    background-position: 0 30%;*/
/*}*/

.hero-bg-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
    z-index: 0;
    pointer-events: none;
}

/* iOS Safari: убрать нативную кнопку play у фонового видео.
   Если автоплей заблокирован (Low Power Mode) — остаётся просто постер hero-bg.webp. */
.hero-bg-video::-webkit-media-controls,
.hero-bg-video::-webkit-media-controls-start-playback-button,
.hero-bg-video::-webkit-media-controls-play-button,
.hero-bg-video::-webkit-media-controls-panel,
.hero-bg-video::-webkit-media-controls-overlay-play-button {
    display: none !important;
    -webkit-appearance: none;
    opacity: 0 !important;
}

.hero-video-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.30);
    z-index: 2;
}

.nav {
    z-index: 20;
    height: 80px;
    max-height: 80px;
}

.nav-wrap {
    height: 80px;
    max-height: 80px;
    padding: 0 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    max-width: var(--maxw);
    margin: 0 auto;
}

.logo {
    font-size: 30px;
    font-weight: 500;
    color: var(--cream);
    letter-spacing: .5px;
}

.nav-links {
    /* Меню «Продукт / Для бизнеса / Контакты» скрыто полностью —
       и на десктопе, и на мобиле (ссылки были заглушками на #).
       Разметка и main.js оставлены нетронутыми, чтобы не ломать слайдер/видео. */
    display: none;
    gap: 30px;
}

.nav-links-item {
    color: var(--cream);
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    letter-spacing: 0;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: 0;
    cursor: pointer;
    padding: 8px;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

.burger-line {
    width: 26px;
    height: 2px;
    background: var(--cream);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
    outline: none;
    -webkit-tap-highlight-color: transparent;
    pointer-events: none;
}

.burger--open .burger-line:first-child {
    transform: translateY(7px) rotate(45deg);
}

.burger--open .burger-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.burger--open .burger-line:last-child {
    transform: translateY(-7px) rotate(-45deg);
}

.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 15;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.28s ease, visibility 0.28s ease;
}

.menu-overlay--active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

@media (max-width: 970px) {
    .nav {
        position: relative;
    }

    .nav-wrap {
        padding: 0 24px;
    }

    .nav-links {
        flex-direction: column;
        position: absolute;
        top: 80px;
        left: 0;
        right: 0;
        background: color-mix(in srgb, var(--wine-dark) 92%, transparent);
        padding: 0 24px;
        gap: 0;
        z-index: 30;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transform: translateY(-6px);
        pointer-events: none;
        transition: max-height 0.32s ease, opacity 0.28s ease, transform 0.28s ease;
    }

    .nav-links--open {
        max-height: 240px;
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }

    .nav-links-item {
        padding: 16px 0;
        border-bottom: 1px solid rgba(255, 253, 249, 0.12);
    }

    .nav-links-item:last-child {
        border-bottom: 0;
    }

    /* На мобиле убираем nav-меню (ссылки — заглушки на #) и бургер:
       в шапке остаются только логотип и кнопка «Скачать приложение». */
    .nav-links {
        display: none;
    }

    .burger {
        display: none;
    }
}

.hero-stage {
    position: relative;
    flex: 1;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
    container-type: inline-size;
    /* hero-col position */
    --hc-top: 3%;
    --hc-width: 64%;
    /* hero-woman position */
    --hw-bottom: -5%;
    --hw-left: 48%;
    --hw-width: 130%;
}

.hero-col {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: var(--hc-top);
    width: var(--hc-width);
    z-index: 3;
    text-align: center;
}

.hero-title {
    font-weight: 500;
    font-size: 50px;
    line-height: 110%;
    letter-spacing: 0;
    text-align: center;
    text-transform: uppercase;
    color: var(--cream);
}

.sub {
    margin: 24px auto 0;
    color: var(--cream);
    font-weight: 400;
    font-size: 20px;
    line-height: 110%;
    letter-spacing: 0;
    text-align: center;
}

.actions {
    margin-top: 40px;
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-woman {
    position: absolute;
    bottom: var(--hw-bottom);
    left: var(--hw-left);
    transform: translateX(-50%);
    width: var(--hw-width);
    max-width: none;
    z-index: 1;
    pointer-events: none;
}

.hero-cards-group-a {
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    --hga-size: 0%;
    --hga-x: 0%;
    --hga-y: 0%;
}

.hero-cards-group-b {
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    --hgb-size: 0%;
    --hgb-x: 0%;
    --hgb-y: 0%;
}

.hero-card {
    position: absolute;
}

.hero-card-img {
    width: 100%;
    display: block;
}

.hero-card-1 {
    left: calc(2% + var(--hga-x));
    top: calc(20% + var(--hga-y));
    width: calc(17.5% + var(--hga-size));
}

.hero-card-2 {
    left: calc(11.4% + var(--hga-x));
    top: calc(50% + var(--hga-y));
    width: calc(19.4% + var(--hga-size));
}

.hero-card-3 {
    left: calc(81.8% + var(--hgb-x));
    top: calc(25% + var(--hgb-y));
    width: calc(17% + var(--hgb-size));
}

.hero-card-4 {
    left: calc(76.4% + var(--hgb-x));
    top: calc(37% + var(--hgb-y));
    width: calc(19.2% + var(--hgb-size));
}

.hero-card-4 .hero-card-img {
    border-radius: 26px;
}

.hero-card-5 {
    left: calc(67.5% + var(--hgb-x));
    top: calc(69% + var(--hgb-y));
    width: calc(17% + var(--hgb-size));
}

@media (max-width: 1200px) {
    .hero-title {
        font-size: clamp(38px, calc(-12.61px + 5.217vw), 50px);
    }

    .sub {
        font-size: clamp(16px, calc(-0.87px + 1.739vw), 20px);
    }
}

@media (max-width: 970px) {
    .hero-cards-group-a,
    .hero-cards-group-b {
        display: none;
    }
}

@media (max-width: 740px) {
    .hero-title {
        font-size: clamp(22px, calc(9.81px + 3.81vw), 38px);
    }

    .sub {
        font-size: clamp(13px, calc(10.72px + 0.714vw), 16px);
    }
}
/* ===== END HERO ===== */

/* ===== FEATURE STYLES ===== */
.feature .feature-wrap {
    display: grid;
    grid-template-columns: 1.02fr .98fr;
    gap: 56px;
    align-items: center;
    position: relative;
}

.feature-number {
    font-weight: 500;
    font-size: 20px;
    line-height: 100%;
    letter-spacing: 0;
    text-transform: uppercase;
    color: rgba(255, 253, 249, 0.5);
    margin-bottom: 10px;
}

.feature-list {
    margin-top: 40px;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.feature-list-item {
    display: flex;
    align-items: flex-end;
    gap: 8px;

    font-family: 'Aeroport', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 110%;
    letter-spacing: 0;
    color: var(--cream);
}

/* floating screenshot cards over feature (Figma coordinates) */
.f-card {
    position: absolute;
    z-index: 6;
    pointer-events: none;
}

.f-card-img {
    width: 100%;
    display: block;
    border-radius: 14px;
}

.feature.rev .feat-text {
    order: 2;
}

.num {
    font-size: 20px;
    font-weight: 500;
    color: var(--lilac);
    margin-bottom: 14px;
    letter-spacing: 1px;
}

.feature-heading {
    font-weight: 500;
    font-size: 30px;
    line-height: 110%;
    letter-spacing: 0;
    text-transform: uppercase;
    color: var(--cream);
}

.lead {
    font-weight: 400;
    font-size: 16px;
    line-height: 110%;
    letter-spacing: 0;
    max-width: 450px;
    margin-top: 16px;
    color: var(--cream);
}

.feature-list-check-icon {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 1px;
    font-size: 0;
    background: var(--panel) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8.5 6'%3E%3Cpath d='M0.5 3.5 L3 5.5 L8 0.5' fill='none' stroke='%2374384E' stroke-width='1' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / 8.5px 6px;
}

.feature-list-check-icon.d-none {
    display: none;
}

.channels {
    display: flex;
    gap: 9px;
    align-items: center;
    flex-wrap: wrap;
    font-size: 15px;
    margin-top: 22px;
}

.channels .c {
    padding: 7px 15px;
    border-radius: 999px;
    font-size: 14px;
}

.chips {
    display: flex;
    gap: 14px;
    margin-top: 24px;
    flex-wrap: wrap;
}

.chip {
    font-size: 14px;
    padding: 12px 20px;
    border-radius: 14px;
    font-weight: 500;
}

.chip.solid {
    background: var(--wine);
    color: var(--cream);
}

.feat-media {
    display: flex;
    justify-content: center;
}

.feat-media img {
    width: min(290px, 78%);
}

/* all features — single dark gradient 90deg (exact per layout) */
.feature {
    background: linear-gradient(90deg, #472639 0%, #834D50 100%);
    color: var(--cream);
}

.feature .num {
    color: var(--lilac);
}

.feature .channels .c,
.feature .chip.soft {
    background: rgba(255, 253, 249, .12);
    color: var(--cream);
}

.feature .flower {
    position: absolute;
    pointer-events: none;
    opacity: .45;
}

.feature .flower svg {
    width: 100%;
    height: auto;
    display: block;
}

.fl-mint {
    color: #84e7b4;
}

.fl-purple {
    color: #84e7b4;
}

/* ===== END FEATURE STYLES ===== */

/* ===== FEATURE 1 ===== */
#feature-1 {
    padding: 0;
}

#feature-1 .feature-wrap {
    position: relative;
    max-width: 1200px;
    aspect-ratio: 1200/550;
    container-type: inline-size;
    padding: 0;
    /* feat-01 image group: width, X and Y offset */
    --f1-offset: 0%;
    --f1-offset-x: 2%;
    --f1-offset-y: -2%;
}

.feature-1-content {
    position: absolute;
    left: 5.5%;
    top: 50%;
    transform: translateY(-50%);
    width: 40%;
}

.f1-transparent-text {
    font-weight: 400;
    font-size: 16px;
    line-height: 1.1;
    color: rgba(255, 253, 249, 0.5);
    margin: 0 0 0 26px;
    display: flex;
    align-items: center;
    gap: 0;
    /* 4 канала (Голосом · в чате · в WhatsApp · в Telegram) переносятся на узком экране */
    flex-wrap: wrap;
}

.dot {
    display: inline-block;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background-color: rgba(255, 253, 249, 0.5);
    margin: 0 8px;
    vertical-align: middle;
}

.f1-badge {
    margin-top: 40px;
    display: flex;
    align-items: center;
    gap: 10px;
    /* перенос, если длинный текст бейджей не влезает в узкую колонку */
    flex-wrap: wrap;
}

.f1-badge-button {
    font-family: 'Aeroport', sans-serif;
    font-weight: 500;
    font-size: 17px;
    line-height: 16px;
    letter-spacing: 0;
    text-box-trim: both;
    text-box-edge: cap alphabetic;
    margin: -0.1em 0;

    border-radius: 100px;
    padding: 13px 16px;
    max-height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
}

.f1-badge-button.orange {
    background-color: rgba(236, 173, 131, 0.2);
    border: 1px solid rgba(236, 173, 131, 1);
}

.f1-badge-button.purple {
    background-color: rgba(184, 137, 205, 0.2);
    border: 1px solid rgba(184, 137, 205, 1);
}

.f1-badge-button:hover {
    cursor: pointer;
}

.f1-badge-img {
    width: 35cqw;
    max-width: 430px;
    display: block;
}

#feature-1 .flower {
    position: absolute;
    z-index: 0;
    pointer-events: none;
    display: block;
    transform-origin: center;
}

.f1-fl-green {
    left: calc(80.1% + var(--f1-offset-x));
    top: calc(14% + var(--f1-offset-y));
    width: calc(18% + var(--f1-offset));
    transform: rotate(90deg);
}

.f1-fl-purple {
    left: calc(43% + var(--f1-offset-x));
    top: calc(55% + var(--f1-offset-y));
    width: calc(21% + var(--f1-offset));
    transform: rotate(90deg);
}

.f1-ph {
    position: absolute;
}

.f1-card-1 {
    left: calc(51.8% + var(--f1-offset-x));
    top: calc(24.8% + var(--f1-offset-y));
    width: calc(19.5% + var(--f1-offset));
    z-index: 2;
}

.f1-ph-img {
    width: 100%;
    display: block;
    border-radius: 2.4cqw;
}

.f1-phone {
    left: calc(66.9% + var(--f1-offset-x));
    top: calc(6.9% + var(--f1-offset-y));
    width: calc(19.5% + var(--f1-offset));
    z-index: 3;
}

.f1-phone .f1-ph-img {
    box-shadow: none;
}

.f1-media {
    position: absolute;
    inset: 0;
}
/* --- 1200px --- */
@media (max-width: 1200px) {
    #feature-1 .feature-number {
        font-size: 1.67cqw;
    }

    #feature-1 .feature-heading {
        font-size: 2.5cqw;
    }

    #feature-1 .feature-list {
        margin-top: 20px;
    }

    #feature-1 .feature-list-item {
        font-size: 1.33cqw;
    }

    #feature-1 .f1-transparent-text {
        font-size: 1.33cqw;
    }

    #feature-1 .f1-badge-button {
        font-size: 1.42cqw;
    }

    .f1-badge {
        align-items: start;
        margin-top: 20px;
    }
}

/* --- 970px --- */
@media (max-width: 970px) {
    #feature-1 .feature-wrap {
        aspect-ratio: unset;
        display: flex;
        flex-direction: column;
        padding: 40px 20px;
        --f1-offset-x: -20%;
    }

    .feature-1-content {
        position: static;
        transform: none;
        width: 100%;
    }

    .f1-media {
        position: relative;
        aspect-ratio: 1200 / 550;
        width: 100%;
        flex-shrink: 0;
        container-type: inline-size;
    }

    #feature-1 .feature-number {
        font-size: 16px;
    }

    #feature-1 .feature-heading {
        font-size: 24px;
    }

    #feature-1 .feature-list-item {
        font-size: 13px;
    }

    #feature-1 .f1-transparent-text {
        font-size: 13px;
    }

    #feature-1 .f1-badge-button {
        font-size: 14px;
    }
}

/* ===== END FEATURE 1 ===== */

/* ===== FEATURE 2 ===== */
#feature-2 .feature-wrap {
    display: block;
    position: relative;
    max-width: 1200px;
    aspect-ratio: 1200/550;
    container-type: inline-size;
    padding: 0;
    /* feat-02 image group: width, X and Y offset */
    --f2-offset: 0%;
    --f2-offset-x: 0%;
    --f2-offset-y: 0%;
}

.feature-2-content {
    position: absolute;
    right: 2.5%;
    top: 50%;
    transform: translateY(-50%);
    width: 40%;
    max-width: 472px;
}

.f2-phone {
    position: absolute;
    left: calc(25% + var(--f2-offset-x));
    top: calc(6.5% + var(--f2-offset-y));
    width: calc(19.5% + var(--f2-offset));
    z-index: 2;
}

.f2-card-1 {
    left: calc(8% + var(--f2-offset-x));
    top: calc(49% + var(--f2-offset-y));
    width: calc(14% + var(--f2-offset));
}

.f2-fl-purple {
    left: calc(20% + var(--f2-offset-x));
    top: calc(2% + var(--f2-offset-y));
    width: calc(10% + var(--f2-offset));
    z-index: 0;
}

.f2-fl-orange {
    left: calc(38% + var(--f2-offset-x));
    top: calc(52% + var(--f2-offset-y));
    width: calc(12% + var(--f2-offset));
    z-index: 0;
}

.f2-media {
    position: absolute;
    inset: 0;
}

/* --- 1200px --- */
@media (max-width: 1200px) {
    #feature-2 .feature-number {
        font-size: 1.67cqw;
    }

    #feature-2 .feature-heading {
        font-size: 2.5cqw;
    }

    #feature-2 .lead {
        font-size: 1.33cqw;
    }

    #feature-2 .feature-list-item {
        font-size: 1.33cqw;
    }
}

/* --- 970px --- */
@media (max-width: 970px) {
    #feature-2 .feature-wrap {
        aspect-ratio: unset;
        display: flex;
        flex-direction: column;
        padding: 40px 20px;
        --f2-offset-x: 18%;
    }

    .feature-2-content {
        position: static;
        transform: none;
        width: 100%;
        max-width: 100%;
    }

    .f2-media {
        position: relative;
        aspect-ratio: 1200 / 550;
        width: 100%;
        flex-shrink: 0;
        container-type: inline-size;
    }

    #feature-2 .feature-number {
        font-size: 16px;
    }

    #feature-2 .feature-heading {
        font-size: 24px;
    }

    #feature-2 .lead {
        font-size: 13px;
    }

    #feature-2 .feature-list-item {
        font-size: 13px;
    }
}
/* ===== END FEATURE 2 ===== */

/* ===== FEATURE 3 ===== */
#feature-3 .feature-wrap {
    display: block;
    position: relative;
    max-width: 1200px;
    aspect-ratio: 1200/550;
    container-type: inline-size;
    padding: 0;
    /* feat-03 image group: width, X and Y offset */
    --f3-offset: 0%;
    --f3-offset-x: 0%;
    --f3-offset-y: 0%;
}

.feature-3-content {
    position: absolute;
    left: 5.5%;
    top: 50%;
    transform: translateY(-50%);
    width: 40%;
}

.f3-phone {
    position: absolute;
    left: calc(55.6% + var(--f3-offset-x));
    top: calc(3% + var(--f3-offset-y));
    width: calc(19.5% + var(--f3-offset));
}

.f3-card-1 {
    left: calc(71% + var(--f3-offset-x));
    top: calc(6.8% + var(--f3-offset-y));
    width: calc(17.5% + var(--f3-offset));
}

.f3-card-2 {
    left: calc(77.3% + var(--f3-offset-x));
    top: calc(41% + var(--f3-offset-y));
    width: calc(14% + var(--f3-offset));
}

.f3-fl-green {
    left: calc(45.2% + var(--f3-offset-x));
    top: calc(25.5% + var(--f3-offset-y));
    width: calc(17.5% + var(--f3-offset));
}

.f3-fl-orange {
    left: calc(87.5% + var(--f3-offset-x));
    top: calc(51% + var(--f3-offset-y));
    width: calc(11% + var(--f3-offset));
}

.f3-media {
    position: absolute;
    inset: 0;
}

/* --- 1200px --- */
@media (max-width: 1200px) {
    #feature-3 .feature-number {
        font-size: 1.67cqw;
    }

    #feature-3 .feature-heading {
        font-size: 2.5cqw;
    }

    #feature-3 .lead {
        font-size: 1.33cqw;
    }

    #feature-3 .feature-list-item {
        font-size: 1.33cqw;
    }
}

/* --- 970px --- */
@media (max-width: 970px) {
    #feature-3 .feature-wrap {
        aspect-ratio: unset;
        display: flex;
        flex-direction: column;
        padding: 40px 20px;
        --f3-offset-x: -23%;
    }

    .feature-3-content {
        position: static;
        transform: none;
        width: 100%;
    }

    .f3-media {
        position: relative;
        aspect-ratio: 1200 / 550;
        width: 100%;
        flex-shrink: 0;
        container-type: inline-size;
    }

    #feature-3 .feature-number {
        font-size: 16px;
    }

    #feature-3 .feature-heading {
        font-size: 24px;
    }

    #feature-3 .lead {
        font-size: 13px;
    }

    #feature-3 .feature-list-item {
        font-size: 13px;
    }
}
/* ===== END FEATURE 3 ===== */

/* ===== FEATURE 4 ===== */
#feature-4 .feature-wrap {
    display: block;
    position: relative;
    max-width: 1200px;
    aspect-ratio: 1200/550;
    container-type: inline-size;
    padding: 0;
    /* feat-04 image group: width, X and Y offset */
    --f4-offset: 1%;
    --f4-offset-x: 2%;
    --f4-offset-y: 0%;
}

.feature-4-content {
    position: absolute;
    right: 1.9%;
    top: 50%;
    transform: translateY(-50%);
    width: 40%;
}

.f4-fl-orange {
    left: calc(-0.2% + var(--f4-offset-x));
    top: calc(14.4% + var(--f4-offset-y));
    width: calc(17.5% + var(--f4-offset));
}

.f4-fl-purple {
    left: calc(32.2% + var(--f4-offset-x));
    top: calc(20.7% + var(--f4-offset-y));
    width: calc(21.5% + var(--f4-offset));
}

.f4-phone {
    position: absolute;
    left: calc(22.75% + var(--f4-offset-x));
    top: calc(7% + var(--f4-offset-y));
    width: calc(18.45% + var(--f4-offset));
    border-radius: 2.4cqw;
}

.f4-card-1 {
    left: calc(10.3% + var(--f4-offset-x));
    top: calc(11.9% + var(--f4-offset-y));
    width: calc(12.8% + var(--f4-offset));
}

.f4-card-2 {
    left: calc(5% + var(--f4-offset-x));
    top: calc(45.8% + var(--f4-offset-y));
    width: calc(16.9% + var(--f4-offset));
}

.f4-media {
    position: absolute;
    inset: 0;
}

/* --- 1200px --- */
@media (max-width: 1200px) {
    #feature-4 .feature-number {
        font-size: 1.67cqw;
    }

    #feature-4 .feature-heading {
        font-size: 2.5cqw;
    }

    #feature-4 .lead {
        font-size: 1.33cqw;
    }

    #feature-4 .feature-list-item {
        font-size: 1.33cqw;
    }
}

/* --- 970px --- */
@media (max-width: 970px) {
    #feature-4 .feature-wrap {
        aspect-ratio: unset;
        display: flex;
        flex-direction: column;
        padding: 40px 20px;
        --f4-offset-x: 26%;
    }

    .feature-4-content {
        position: static;
        transform: none;
        width: 100%;
        max-width: 100%;
    }

    .f4-media {
        position: relative;
        aspect-ratio: 1200 / 550;
        width: 100%;
        flex-shrink: 0;
        container-type: inline-size;
    }

    #feature-4 .feature-number {
        font-size: 16px;
    }

    #feature-4 .feature-heading {
        font-size: 24px;
    }

    #feature-4 .lead {
        font-size: 13px;
    }

    #feature-4 .feature-list-item {
        font-size: 13px;
    }
}
/* ===== FEATURE 5 ===== */
#feature-5 .feature-wrap {
    align-items: center;
    padding: 64px 40px;
}

.feature-5-content {
    max-width: 480px;
}

.f5-media {
    position: relative;
    min-height: 560px;
}

/* телефон — та же запечённая рамка, что у фич 1–4 (Frame 208 + CTA в одном экране) */
.f5-phone {
    position: absolute;
    z-index: 2;
    top: 50%;
    right: 6%;
    transform: translateY(-50%);
    width: clamp(216px, 23vw, 262px);
    display: block;
}

/* контейнер услуг — акцент слева */
.f5-container {
    position: absolute;
    z-index: 3;
    left: 0;
    top: 50%;
    transform: translateY(-50%) rotate(-3deg);
    width: clamp(150px, 16.5vw, 188px);
    pointer-events: none;
}

.f5-container img {
    width: 100%;
    display: block;
    border-radius: 14px;
    box-shadow: 0 24px 52px rgba(0, 0, 0, .42);
}

/* декоративные цветы (как в блоке 1) — мягкими акцентами за телефоном */
#feature-5 .flower {
    position: absolute;
    z-index: 0;
    pointer-events: none;
    display: block;
    transform-origin: center;
}

.f5-fl-green {
    right: -20%;
    top: 2%;
    width: 39%;
    transform: rotate(28deg);
}

.f5-fl-purple {
    left: 6%;
    bottom: 0;
    width: 45%;
    transform: rotate(-14deg);
}

/* --- 970px: стек, телефон по центру, контейнер — акцент слева --- */
@media (max-width: 970px) {
    #feature-5 .feature-wrap {
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 44px 20px;
    }

    .feature-5-content {
        max-width: 560px;
    }

    .f5-media {
        min-height: 0;
        display: flex;
        justify-content: center;
        padding: 8px 52px;
    }

    .f5-phone {
        position: relative;
        top: auto;
        right: auto;
        transform: none;
        width: 228px;
    }

    .f5-container {
        left: 0;
        top: auto;
        bottom: 8%;
        transform: rotate(-3deg);
        width: 138px;
    }
}

/* --- 460px --- */
@media (max-width: 460px) {
    .f5-media {
        padding: 8px 0 8px 48px;
    }

    .f5-phone {
        width: 196px;
    }

    .f5-container {
        width: 112px;
    }
}
/* ===== END FEATURE 5 ===== */

/* ===== STATS ===== */
.stats {
    background: linear-gradient(90deg, #472639 0%, #834D50 100%);
    color: var(--cream);
}

.stats .feature-wrap {
    display: flex;
    flex-direction: column;
    height: 551px;
    padding: 38px 20px;
}

.stats-card {
    background: rgba(255, 253, 249, 0.1);
    border: 2px solid rgba(184, 137, 205, 0.2);
    border-radius: 30px;
    padding: 40px 40px 44px 40px;
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    grid-template-areas:
        "intro founders"
        "nums  nums";
    column-gap: 40px;
    row-gap: 45px;
    align-items: start;
}

.stats-intro {
    grid-area: intro;
    max-width: 472px;
}

.stats-salon-imgs {
    display: none;
}

.stats-intro-title {
    margin-bottom: 16px;
    font-weight: 500;
    font-size: 30px;
    line-height: 110%;
    letter-spacing: 0;
    text-transform: uppercase;
}

.stats-intro-text {
    color: var(--cream);
    max-width: 432px;
    font-weight: 400;
    font-size: 16px;
    line-height: 110%;
    letter-spacing: 0;
}

.nums {
    grid-area: nums;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.num-card {
    background: rgba(184, 137, 205, 0.2);
    border-radius: 20px;
    padding: 20px;
}

.num-val {
    margin-bottom: 20px;
    color: var(--cream);
    font-weight: 500;
    font-size: 30px;
    line-height: 110%;
    letter-spacing: 0;
    text-transform: uppercase;
}

.num-plus {
    position: relative;
    top: -2px;
}

.num-card-text {
    color: var(--cream);
    max-width: 191px;
    font-weight: 400;
    font-size: 12px;
    line-height: 110%;
    letter-spacing: 0;
}

.num-card.empty {
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 253, 249, .35);
    font-size: 13px;
    text-align: center;
}

.founders-row {
    grid-area: founders;
    display: flex;
    gap: 20px;
    margin-right: 29px;
    align-self: start;
}

.founder {
    flex: 1;
    display: flex;
    flex-direction: column;
    text-align: center;
    gap: 0;
    align-items: center;
}

.founder-media {
    position: relative;
    margin-bottom: 14px;
    flex-shrink: 0;
    border-radius: 50%;
    overflow: hidden;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.founder-avatar {
    width: 153px;
    height: 153px;
    border-radius: 50%;
    object-fit: cover;
    max-width: none;
    display: block;
    outline: 3px solid rgba(138, 30, 52, 0.4);
    outline-offset: -3px;
}

.founder-play {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.founder-play::before {
    content: "";
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 8px 0 8px 14px;
    border-color: transparent transparent transparent #fff;
    margin-left: 3px;
}

.founder-media.is-playing .founder-play {
    opacity: 0;
    transform: scale(0.7);
}

.founder-ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: scale(0);
    pointer-events: none;
    animation: founder-ripple 0.45s ease-out forwards;
}

@keyframes founder-ripple {
    to {
        transform: scale(2.5);
        opacity: 0;
    }
}

.founder-name {
    color: var(--cream);
    margin-bottom: 8px;
    font-weight: 400;
    font-size: 14px;
    line-height: 110%;
    letter-spacing: 0;
}

.founder-role {
    display: block;
    color: rgba(255, 253, 249, 0.5);
    font-weight: 300;
    font-size: 11px;
    line-height: 110%;
    letter-spacing: 0;
    text-align: center;
}

/* --- 1200px --- */
@media (max-width: 1200px) {
    .stats .feature-wrap {
        height: auto;
        min-height: 551px;
        padding-inline: clamp(4px, calc(33.04vw - 316.5px), 80px);
    }

    .stats-card {
        grid-template-columns: 1.35fr 1fr;
        grid-template-areas:
            "intro   images"
            "nums    nums"
            "founders founders";
    }

    .stats-salon-imgs {
        grid-area: images;
        display: flex;
        flex-direction: row;
        gap: 10px;
        align-self: center;
    }

    .stats-salon-img {
        width: 120px;
        height: 120px;
        border-radius: 12px;
        display: block;
        object-fit: cover;
        flex-shrink: 0;
    }

    .stats-intro {
        align-self: center;
    }

    .founders-row {
        justify-self: center;
        margin-right: 0;
        gap: 20px;
    }

    .founder {
        flex: none;
        max-width: 155px;
    }

    .founder-avatar {
        width: 136px;
        height: 136px;
    }
}

/* --- 970px --- */
@media (max-width: 970px) {
    .stats .feature-wrap {
        padding-inline: clamp(4px, calc(35.15vw - 221px), 120px);
    }

    .stats-card {
        grid-template-columns: 1fr;
        grid-template-areas:
            "intro"
            "images"
            "nums"
            "founders";
        row-gap: 20px;
    }

    .stats-intro {
        text-align: center;
        margin: 0 auto;
    }

    .stats-intro-title {
        font-size: 26px;
    }

    .stats-salon-imgs {
        flex-wrap: wrap;
        justify-self: center;
    }

    .nums {
        grid-template-columns: repeat(2, 1fr);
    }

    .num-card:first-child,
    .num-card:last-child {
        grid-column: 1 / -1;
    }

    .num-card-text {
        font-size: 16px;
        max-width: 240px;
    }

    .founder-avatar {
        width: 116px;
        height: 116px;
    }
}

/* --- 640px : clean stacked layout (rebuilt 2026-06-12) ---
   Old version used display:contents + manual grid-row placement
   with fixed 190px heights → text overflowed and cards collided
   ("разъехалась"). Replaced with a predictable vertical stack. */
@media (max-width: 640px) {
    .stats .feature-wrap {
        height: auto;
        min-height: 0;
        padding: 28px 16px;
    }

    .stats-card {
        display: flex;
        flex-direction: column;
        gap: 22px;
        padding: 24px 18px 28px;
        border-radius: 24px;
    }

    .stats-intro {
        text-align: center;
        max-width: none;
        margin: 0;
    }

    .stats-intro-title {
        font-size: 24px;
    }

    .stats-intro-text {
        font-size: 14px;
        max-width: none;
    }

    /* three salon photos hidden on mobile (per request) */
    .stats-salon-imgs {
        display: none;
    }

    /* numbers: 2-col, content-sized (no forced 190px), hero number wide */
    .nums {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .num-card {
        height: auto;
        padding: 18px;
    }

    .num-card:first-child {
        grid-column: 1 / -1;
    }

    .num-card.empty {
        grid-column: 1 / -1;
        min-height: 60px;
        padding: 16px;
    }

    .num-val {
        font-size: 26px;
        margin-bottom: 12px;
    }

    .num-card-text {
        font-size: 13px;
        max-width: none;
    }

    /* founders: back to a clean row of 3 plain avatars (no mosaic cards) */
    .founders-row {
        display: flex;
        gap: 10px;
        justify-content: center;
        margin: 0;
    }

    .founder {
        flex: 1 1 0;
        max-width: 120px;
        background: none;
        border-radius: 0;
        padding: 0;
        height: auto;
        overflow: visible;
    }

    .founder-media {
        margin-bottom: 10px;
    }

    .founder-avatar {
        width: 88px;
        height: 88px;
    }

    .founder-name {
        font-size: 13px;
    }

    .founder-role {
        font-size: 10px;
    }
}
/* ===== END STATS ===== */

/* ===== REVIEWS ===== */
.reviews {
    background: linear-gradient(90deg, #472639 0%, #834D50 100%);
    color: var(--cream);
    overflow: hidden;
}

.reviews .feature-wrap {
    display: flex;
    flex-direction: column;
    height: auto;
    padding: 64px 0 64px 60px;
    -webkit-mask-image: linear-gradient(to right, transparent 0, black 60px, black calc(100% - 60px), transparent 100%);
    mask-image: linear-gradient(to right, transparent 0, black 60px, black calc(100% - 60px), transparent 100%);
}

.reviews-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 32px;
    margin-bottom: 36px;
    padding-right: 60px;
}

/* «Более 1500 салонов…» как заголовок блока отзывов */
.reviews-header .stats-intro {
    max-width: 560px;
}

.reviews-header .stats-intro-text {
    margin-top: 12px;
    opacity: .85;
}

.reviews-nav {
    flex: 0 0 auto;
}

.reviews-title {
    font-weight: 500;
    font-size: 30px;
    line-height: 110%;
    letter-spacing: 0;
    text-transform: uppercase;
}

.reviews-nav {
    display: flex;
    gap: 8px;
}

.reviews-nav-btn {
    width: 44px;
    height: 44px;
    border-radius: 100px;
    background: rgba(241, 235, 237, 1);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    outline: none;
    -webkit-tap-highlight-color: transparent;
    transition: opacity .2s, transform .15s;
}

.reviews-nav-btn:focus-visible {
    outline: 2px solid rgba(241, 235, 237, .6);
    outline-offset: 2px;
}

.reviews-nav-btn:active:not(.reviews-nav-btn--disabled) {
    transform: scale(.88);
}

.reviews-nav-btn:hover:not(.reviews-nav-btn--disabled) {
    opacity: .8;
}

.reviews-nav-btn--disabled {
    opacity: .4;
    cursor: default;
}

.reviews-nav-btn-icon {
    display: block;
}

.reviews-nav-btn-prev .reviews-nav-btn-icon {
    transform: rotate(180deg);
}

.reviews-cards {
    display: flex;
    align-items: stretch;
    gap: 10px;
    cursor: grab;
    user-select: none;
}

.reviews-cards.is-dragging {
    cursor: grabbing;
}

.reviews-card {
    flex: 0 0 300px;
    max-height: 320px;
    overflow: hidden;
    scroll-snap-align: start;
    background: rgba(184, 137, 205, .13);
    border-radius: 18px;
    padding: 20px;
}

.reviews-card.bg1 {
    background: rgba(184, 137, 205, 0.2);
}

.reviews-card.bg2 {
    background: rgba(236, 173, 131, 0.2);
}

.reviews-card.bg3 {
    background: rgba(127, 107, 100, 0.4);
}

.reviews-card--author {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 20px;
}

.reviews-card--author-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex: 0 0 40px;
}

.reviews-card--author-img--monogram {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(184, 137, 205, .85), rgba(236, 173, 131, .85));
    color: var(--cream);
    font-weight: 600;
    font-size: 18px;
    line-height: 1;
    text-transform: uppercase;
}

.reviews-card--author-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.reviews-card--author-name {
    color: var(--cream);
    font-weight: 400;
    font-size: 14px;
    line-height: 110%;
    letter-spacing: 0;
}

.reviews-card--author-organization {
    display: block;
    color: rgba(255, 253, 249, 0.3);

    font-weight: 300;
    font-size: 11px;
    line-height: 110%;
    letter-spacing: 0;
}

.reviews-card--author-review {
    font-weight: 400;
    font-size: 12px;
    line-height: 110%;
    letter-spacing: 0;
    color: rgba(255, 253, 249, 1);
    display: -webkit-box;
    -webkit-line-clamp: 11;
    line-clamp: 11;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
/* ===== END REVIEWS ===== */

/* ===== DOWNLOAD ===== */
.install {
    background: linear-gradient(95deg, rgba(46, 24, 37, .5) 0%, rgba(46, 24, 37, .15) 38%, rgba(46, 24, 37, 0) 62%), url('../images/install-bg.webp?v=opt1') center/cover;
    color: var(--cream);
    position: relative;
    overflow: hidden;
}

.install .feature-wrap {
    display: flex;
    align-items: center;
    position: relative;
    height: 550px;
    padding: 0 60px;
}

.install-content--title {
    margin-bottom: 12px;
    font-weight: 500;
    font-size: 30px;
    line-height: 110%;
    letter-spacing: 0;
    text-transform: uppercase;
    color: var(--cream);
    text-align: center;
}

.install-content--subtitle {
    margin-bottom: 43px;
    font-weight: 400;
    font-size: 20px;
    line-height: 110%;
    letter-spacing: 0;
    text-align: center;
    color: var(--cream);
    max-width: 253px;
    margin-left: auto;
    margin-right: auto;
}

.install-qr-cards {
    display: flex;
    gap: 10px;
    flex-wrap: nowrap;
}

.install-qr-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: rgba(46, 24, 37, .45);
    border: 1px solid rgba(255, 253, 249, .14);
    border-radius: 16px;
    padding: 16px;
    text-decoration: none;
    color: inherit;
    transition: transform .2s ease, border-color .2s ease;
}

.install-qr-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 253, 249, .32);
}

.install-qr-card.card1 {
    background: #8A1E34;
}

.install-qr-card.card2 {
    background: #74384E;
}

.install-qr-card-container {
    width: 130px;
    height: 130px;
    border-radius: 6px;
    background: #fff;
    flex-shrink: 0;
    background-image: repeating-linear-gradient(45deg, #2e1825 0 4px, #fff 4px 8px);
    opacity: .95;
}

.install-qr-card-container.ios {
    background-image: url('../images/qr-ios.svg?v=store1');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.install-qr-card-container.android {
    background-image: url('../images/qr-android.svg?v=store1');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.install-qr-card-text {
    color: var(--white-1);
    min-width: 120px;

    font-weight: 400;
    font-size: 16px;
    line-height: 140%;
    letter-spacing: 0;
    text-align: center;
}

.install-woman-img {
    position: absolute;
    right: 10%;
    /*right: 3.4%;*/
    bottom: 0;
    height: 100%;
    width: auto;
    max-height: none;
}
/* --- 1200px --- */
@media (max-width: 1200px) {
    .install .feature-wrap {
        padding-left: 10%;
    }

    .install-qr-card {
        padding: 12px;
        gap: 12px;
    }

    .install-qr-card-container {
        width: 110px;
        height: 110px;
    }

    .install-qr-card-text {
        font-size: 14px;
        min-width: 95px;
    }
}

/* --- 970px --- */
@media (max-width: 970px) {
    .install .feature-wrap {
        padding-left: 10%;
    }

    .install-content--title {
        font-size: 26px;
    }

    .install-content--subtitle {
        font-size: 17px;
    }

    .install-qr-card {
        padding: 10px;
        gap: 10px;
    }

    .install-qr-card-container {
        width: 90px;
        height: 90px;
    }

    .install-qr-card-text {
        font-size: 13px;
        min-width: 80px;
    }

    .install-woman-img {
        height: 85%;
    }
}
/* --- 820px --- */
@media (max-width: 820px) {
    .install .feature-wrap {
        padding-left: 60px;
        justify-content: center;
    }

    .install-woman-img {
        display: none;
    }
}
/* --- 460px --- */
@media (max-width: 460px) {
    .install-qr-cards {
        flex-direction: column;
    }
}
/* ===== END DOWNLOAD ===== */

/* ===== STORE PICKER MODAL ===== */
.store-modal {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    visibility: hidden;
    pointer-events: none;
}

.store-modal.is-open {
    visibility: visible;
    pointer-events: auto;
}

.store-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(20, 9, 15, .55);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    opacity: 0;
    transition: opacity .32s ease;
}

.store-modal.is-open .store-modal__backdrop {
    opacity: 1;
}

.store-modal__dialog {
    position: relative;
    width: 100%;
    max-width: 460px;
    background: linear-gradient(168deg, #3a1d2c 0%, var(--wine-dark) 100%);
    border: 1px solid rgba(255, 253, 249, .12);
    border-radius: 24px;
    padding: 40px 32px 28px;
    box-shadow: 0 40px 90px rgba(0, 0, 0, .55);
    color: var(--cream);
    text-align: center;
    transform: translateY(18px) scale(.97);
    opacity: 0;
    transition: transform .34s cubic-bezier(.2, .8, .2, 1), opacity .28s ease;
}

.store-modal.is-open .store-modal__dialog {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.store-modal__close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 253, 249, .16);
    border-radius: 50%;
    background: rgba(255, 253, 249, .04);
    color: var(--cream);
    cursor: pointer;
    transition: background .2s ease, transform .2s ease;
}

.store-modal__close:hover {
    background: rgba(255, 253, 249, .14);
    transform: rotate(90deg);
}

.store-modal__grabber {
    display: none;
}

.store-modal__logo {
    height: 26px;
    width: auto;
    margin: 0 auto 18px;
    opacity: .95;
}

.store-modal__title {
    font-weight: 500;
    font-size: 26px;
    line-height: 110%;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.store-modal__sub {
    font-size: 16px;
    color: rgba(255, 253, 249, .72);
    margin-bottom: 26px;
}

.store-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.store-option {
    display: flex;
    align-items: center;
    gap: 16px;
    text-align: left;
    padding: 14px 18px;
    border-radius: 16px;
    background: rgba(255, 253, 249, .05);
    border: 1px solid rgba(255, 253, 249, .12);
    color: var(--cream);
    transition: transform .22s ease, background .22s ease, border-color .22s ease;
}

.store-option:hover {
    transform: translateY(-2px);
    background: rgba(255, 253, 249, .1);
    border-color: rgba(255, 253, 249, .28);
}

.store-option__icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}

.store-option__icon--apple {
    background: #000;
    color: #fff;
}

.store-option__icon--rustore {
    background: #fff;
}

.store-option__text {
    flex: 1;
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.store-option__small {
    font-size: 12px;
    color: rgba(255, 253, 249, .6);
    letter-spacing: .02em;
}

.store-option__big {
    font-size: 20px;
    font-weight: 500;
}

.store-option__qr {
    flex-shrink: 0;
    background: #fff;
    padding: 5px;
    border-radius: 9px;
    line-height: 0;
}

.store-option__qr img {
    width: 76px;
    height: 76px;
    border-radius: 4px;
}

.store-option__chevron {
    display: none;
    flex-shrink: 0;
    color: rgba(255, 253, 249, .55);
}

.store-modal__hint {
    margin-top: 20px;
    font-size: 13px;
    color: rgba(255, 253, 249, .5);
    line-height: 1.4;
}

@media (hover: none) and (pointer: coarse) {
    .store-modal__hint {
        display: none;
    }
}

/* --- Mobile: bottom sheet, QR -> chevron --- */
@media (max-width: 560px) {
    .store-modal {
        align-items: flex-end;
        padding: 0;
    }

    .store-modal__dialog {
        max-width: none;
        border-radius: 26px 26px 0 0;
        padding: 14px 20px 30px;
        transform: translateY(100%);
        transition: transform .38s cubic-bezier(.2, .8, .2, 1), opacity .28s ease;
    }

    .store-modal.is-open .store-modal__dialog {
        transform: translateY(0);
    }

    .store-modal__grabber {
        display: block;
        width: 42px;
        height: 4px;
        border-radius: 4px;
        background: rgba(255, 253, 249, .25);
        margin: 0 auto 16px;
    }

    .store-modal__close {
        display: none;
    }

    .store-modal__logo {
        margin-bottom: 14px;
    }

    .store-modal__title {
        font-size: 22px;
    }

    .store-option__qr {
        display: none;
    }

    .store-option__chevron {
        display: inline-flex;
    }

    .store-option {
        padding: 16px 18px;
    }
}
/* ===== END STORE PICKER MODAL ===== */

/* ===== FOOTER ===== */
.site-footer {
    background: var(--wine-deep);
    color: rgba(255, 253, 249, .8);
    border-top: 1px solid rgba(255, 253, 249, 0.08);
    padding: 48px 0 32px;
}

.footer-inner {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 60px;
}

/* --- compact support buttons (brand column) --- */
.footer-support {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.footer-support-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    border-radius: 8px;
    text-decoration: none;
    white-space: nowrap;
    border: 1px solid transparent;
    font-weight: 400;
    font-size: 14px;
    line-height: 1;
    transition: background-color .25s ease, color .25s ease, border-color .25s ease, transform .2s ease;
}

.footer-btn-icon {
    flex: 0 0 auto;
}

.footer-support-btn:hover {
    transform: translateY(-1px);
}

.footer-support-btn--primary {
    background: var(--cream);
    color: var(--wine-deep);
}

.footer-support-btn--primary:hover {
    background: var(--gold);
}

.footer-support-btn--ghost {
    background: transparent;
    color: var(--cream);
    border-color: rgba(255, 253, 249, 0.35);
}

.footer-support-btn--ghost:hover {
    background: rgba(255, 253, 249, 0.10);
    border-color: var(--cream);
}

/* --- divider --- */
.footer-divider {
    height: 1px;
    background: rgba(255, 253, 249, 0.12);
    margin: 32px 0 24px;
}

/* --- link grid --- */
.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1.6fr;
    gap: 40px;
    align-items: start;
}

.footer-logo-img {
    height: 34px;
    width: auto;
    display: block;
}

.footer-tagline {
    margin: 18px 0 0;
    max-width: 220px;
    font-weight: 300;
    font-size: 15px;
    line-height: 150%;
    color: rgba(255, 253, 249, 0.5);
}

.footer-col-title {
    margin: 0 0 18px;
    font-weight: 400;
    font-size: 12px;
    line-height: 1.4;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: rgba(255, 253, 249, 0.45);
}

.footer-col-link {
    display: block;
    margin-bottom: 12px;
    text-decoration: none;
    color: rgba(255, 253, 249, 0.8);
    font-weight: 300;
    font-size: 15px;
    line-height: 1.4;
    transition: color .2s ease;
}

.footer-col-link:hover {
    color: var(--cream);
}

.footer-legal {
    font-weight: 400;
    font-size: 12px;
    line-height: 1.6;
    color: rgba(255, 253, 249, 0.4);
}

.footer-legal-item {
    margin: 0;
}

.footer-legal-item + .footer-legal-item {
    margin-top: 10px;
}

.footer-legal-link {
    color: rgba(255, 253, 249, 0.6);
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color .2s ease;
}

.footer-legal-link:hover {
    color: var(--cream);
}

.footer-requisites {
    margin-top: 16px !important;
    color: rgba(255, 253, 249, 0.5);
}

/* --- bottom bar --- */
.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.copyr {
    margin: 0;
    font-size: 13px;
    color: rgba(255, 253, 249, 0.4);
}

/* --- 1024px --- */
@media (max-width: 1024px) {
    .footer-inner {
        padding: 0 40px;
    }

    .footer-grid {
        gap: 32px;
        grid-template-columns: 1fr 1fr;
    }

    .footer-col-legal {
        grid-column: 1 / -1;
    }
}

/* --- 768px --- */
@media (max-width: 768px) {
    .site-footer {
        padding: 40px 0 28px;
    }

    .footer-inner {
        padding: 0 32px;
    }

    .footer-divider {
        margin: 28px 0 20px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px 24px;
    }
}

/* --- 480px --- */
@media (max-width: 480px) {
    .footer-inner {
        padding: 0 20px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }
}
/* ===== END FOOTER ===== */

/* =========================================================
   MOBILE POLISH (added 2026-06-12)
   Scope: only inside media queries — desktop untouched.
   Fixes: empty/cramped hero, tiny squished feature media,
   desktop insets leaking onto phones, small tap targets.
   ========================================================= */

/* --- Hero: cards are hidden ≤970, so stop pinning a tiny 64%
       column to the top and center the text block instead --- */
@media (max-width: 970px) {
    /* hide the floating "YCLIENTS/DIKIDI" banner on touch devices —
       it slid over the top of the page and read as a stray plate */
    .top-bar {
        display: none;
    }

    .hero-stage {
        display: flex;
        align-items: flex-start;      /* было center — поднимаем текст к верху */
        justify-content: center;
        padding-top: 30px;            /* воздух под навигацией */
    }

    /* Алика — фон landscape, на узком экране вписан по высоте впритык,
       поэтому в оригинальном масштабе вертикально двигать нечего.
       Сохраняем исходный размер (без зума) и просто опускаем её вниз;
       освободившуюся полосу сверху заливаем тёмным вином (.hero ниже),
       а верх фото мягко растворяем в неё маской — выходит тёмная шапка
       под текст, Алика в исходном масштабе сидит ниже. */
    .hero {
        background: var(--wine-dark);
    }

    .hero-bg-video,
    .hero-bg-fallback {
        transform: translateY(14%);
        transform-origin: center;
        -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 9%);
                mask-image: linear-gradient(to bottom, transparent 0, #000 9%);
    }

    .hero-col {
        position: static;
        transform: none;
        width: 100%;
        max-width: 560px;
        padding: 0 24px;
    }

    .actions {
        margin-top: 32px;
    }
}

/* ---- FEATURE MEDIA → centered phone composition (whole sub-desktop range) ----
   One clean layout for everything ≤970px, replacing the wide 1200/550 band
   that shrank phones to ~85px on tablets. The media box is CAPPED (max-width)
   and centered so the floating screenshot cards — sized as a % of the media —
   stay proportional to the phone (itself capped at 224px). Without the cap the
   cards grew with the viewport, overgrew the phone and spilled into the next
   section (the "2nd block overlaps the 3rd" bug at ~550–760px). */
@media (max-width: 970px) {
    .f1-media,
    .f2-media,
    .f3-media,
    .f4-media {
        position: relative;
        inset: auto;
        width: 100%;
        max-width: 374px;
        margin: 22px auto 0;
        aspect-ratio: auto;
        height: auto;
        container-type: normal;
        display: block;
        overflow: visible;
    }

    #feature-1 .flower,
    #feature-2 .flower,
    #feature-3 .flower,
    #feature-4 .flower,
    #feature-5 .flower {
        display: none;
    }

    .f1-phone,
    .f2-phone,
    .f3-phone,
    .f4-phone {
        position: relative;
        left: auto;
        right: auto;
        top: auto;
        margin: 0 auto;
        z-index: 2;
        width: min(60%, 224px);
    }

    /* floating screenshot cards as corner accents over the phone */
    .f1-card-1 {
        position: absolute;
        left: 0;
        top: 4%;
        width: 36%;
        z-index: 3;
    }

    .f2-card-1 {
        position: absolute;
        left: 0;
        bottom: 8%;
        width: 52%;
        z-index: 3;
    }

    .f3-card-1 {
        position: absolute;
        right: 0;
        top: 4%;
        width: 48%;
        z-index: 3;
    }

    .f3-card-2 {
        position: absolute;
        left: 0;
        bottom: 4%;
        width: 37.5%;
        z-index: 3;
    }

    .f4-card-1 {
        position: absolute;
        left: 0;
        top: 8%;
        width: 34%;
        z-index: 3;
    }

    .f4-card-2 {
        position: absolute;
        right: 0;
        bottom: 6%;
        width: 44%;
        z-index: 3;
    }
}

@media (max-width: 640px) {
    /* Hero CTAs: stack full-width with comfortable 48px tap height */
    .hero .actions {
        flex-direction: column;
        align-items: center;
        gap: 12px;
        width: 100%;
    }

    .hero .actions .btn {
        width: 100%;
        max-width: 320px;
        height: 48px;
        max-height: 48px;
    }

    /* feature copy: align checks to first line, nudge size up */
    .feature-list {
        margin-top: 24px;
    }

    .feature-list-item {
        align-items: flex-start;
    }

    #feature-1 .feature-list-item,
    #feature-2 .feature-list-item,
    #feature-3 .feature-list-item,
    #feature-4 .feature-list-item {
        font-size: 14px;
    }

    #feature-1 .f1-transparent-text,
    #feature-2 .lead,
    #feature-3 .lead,
    #feature-4 .lead {
        font-size: 14px;
    }

    /* ---- REVIEWS: drop desktop 60px inset / fixed height ---- */
    .reviews .feature-wrap {
        height: auto;
        padding: 32px 0 8px 20px;
        -webkit-mask-image: linear-gradient(to right, black 0, black calc(100% - 24px), transparent 100%);
        mask-image: linear-gradient(to right, black 0, black calc(100% - 24px), transparent 100%);
    }

    .reviews-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 18px;
        padding-right: 20px;
        margin-bottom: 22px;
    }

    .reviews-title {
        font-size: 24px;
    }

    .reviews-header .stats-intro-title {
        font-size: 22px;
    }

    .reviews-header .reviews-nav {
        align-self: flex-end;
    }

    /* ---- INSTALL: drop fixed 550px height, let it breathe ---- */
    .install .feature-wrap {
        height: auto;
        min-height: 0;
        padding: 56px 20px;
        justify-content: center;
    }

    .install-content {
        width: 100%;
    }

    .install-qr-cards {
        justify-content: center;
        align-items: center;
        width: 100%;
    }
}

/* very small phones — give the phone mockups a touch more size */
@media (max-width: 380px) {
    .f1-phone,
    .f2-phone,
    .f3-phone,
    .f4-phone {
        width: 62%;
    }
}

