/* ==========================================================================
   QRİO — home.css
   Секции главной страницы
   ========================================================================== */

:root {
    --font-serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
    position: relative;
    padding-top: calc(var(--header-h) + clamp(24px, 4vw, 56px));
    padding-bottom: clamp(48px, 6vw, 96px);
    overflow: hidden;
}

.hero__bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: -1;
}

.hero__glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.55;
}

.hero__glow--1 {
    width: 520px;
    height: 520px;
    top: -140px;
    right: 8%;
    background: #F1DDB7;
    animation: glow-drift 18s ease-in-out infinite alternate;
}

.hero__glow--2 {
    width: 420px;
    height: 420px;
    bottom: -120px;
    left: -120px;
    background: #D6E6DB;
    animation: glow-drift 22s ease-in-out infinite alternate-reverse;
}

@keyframes glow-drift {
    from { transform: translate3d(0, 0, 0) scale(1); }
    to { transform: translate3d(-60px, 40px, 0) scale(1.12); }
}

.hero__leaf {
    position: absolute;
    color: #9DB9A6;
    opacity: 0.45;
}

.hero__leaf .icon {
    width: 100%;
    height: 100%;
}

.hero__leaf--1 {
    top: 18%;
    right: -40px;
    width: 180px;
    height: 180px;
    rotate: -30deg;
}

.hero__leaf--2 {
    bottom: 4%;
    left: -50px;
    width: 140px;
    height: 140px;
    rotate: 140deg;
}

.hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    align-items: center;
    gap: clamp(32px, 4vw, 64px);
}

.hero__content {
    position: relative;
    z-index: 2;
}

.hero__title {
    font-size: var(--fs-h1);
    line-height: 1;
    letter-spacing: -0.045em;
    margin-bottom: 28px;
}

/* Построчное появление заголовка (маска) */
.hero__title .line {
    display: block;
    overflow: hidden;
    padding-bottom: 0.08em;
    margin-bottom: -0.08em;
}

.hero__title .line__inner {
    display: block;
}

.js .hero__title .line__inner {
    transform: translate3d(0, 110%, 0);
    transition: transform 1.2s var(--ease-out);
}

.js .hero__title.is-ready .line__inner {
    transform: none;
}

.hero__title.is-ready .line:nth-child(2) .line__inner { transition-delay: 0.1s; }
.hero__title.is-ready .line:nth-child(3) .line__inner { transition-delay: 0.2s; }

.hero__text {
    font-size: var(--fs-md);
    max-width: 30em;
    margin-bottom: 36px;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 44px;
}

.hero__trust {
    display: flex;
    align-items: center;
    gap: 16px;
}

.hero__trust-text {
    display: grid;
    gap: 2px;
}

.hero__trust-text strong {
    color: var(--c-ink);
    font-size: var(--fs-sm);
    font-weight: 600;
}

/* ---------- Визуал героя ---------- */
.hero__visual {
    position: relative;
}

.hero__image {
    display: block;
    width: 100%;
    height: auto;
}

.hero__photo {
    position: absolute;
    inset: 0 0 48px 90px;
    border-radius: var(--r-xl);
    box-shadow: var(--sh-lg);
}

.hero__photo::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(200deg, transparent 40%, rgba(16, 35, 27, 0.25));
}

.hero__phone-wrap {
    position: absolute;
    top: 6%;
    left: 0;
    z-index: 3;
}

.hero__phone-tilt {
    transition: transform 0.6s var(--ease-out);
    transform-style: preserve-3d;
}

.phone--hero {
    --phone-w: clamp(230px, 20vw, 282px);
    animation: float-y 7s ease-in-out infinite;
}

@keyframes float-y {
    0%, 100% { transform: translate3d(0, 0, 0); }
    50% { transform: translate3d(0, -14px, 0); }
}

/* ---------- Мокап телефона ---------- */
.phone {
    --phone-w: 270px;
    width: var(--phone-w);
    filter: drop-shadow(0 40px 50px rgba(16, 35, 27, 0.3));
}

.phone__frame {
    position: relative;
    padding: calc(var(--phone-w) * 0.035);
    border-radius: calc(var(--phone-w) * 0.16);
    background: linear-gradient(145deg, #2A2D2C, #0E0F0F 60%);
    box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.12);
}

.phone__island {
    position: absolute;
    top: calc(var(--phone-w) * 0.06);
    left: 50%;
    z-index: 5;
    width: 32%;
    height: calc(var(--phone-w) * 0.075);
    border-radius: var(--r-pill);
    background: #000;
    transform: translateX(-50%);
}

.phone__screen {
    position: relative;
    aspect-ratio: 9 / 18.6;
    border-radius: calc(var(--phone-w) * 0.13);
    overflow: hidden;
    background: #fff;
    font-size: calc(var(--phone-w) * 0.042);
}

.pm-status {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 4;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.3em 2em 0 2.2em;
    color: #fff;
    font-size: 0.85em;
    font-weight: 600;
}

.pm-status__icons {
    display: flex;
    gap: 3px;
}

.pm-status__icons i {
    display: block;
    width: 5px;
    height: 7px;
    border-radius: 1px;
    background: #fff;
}

.pm-status__icons i:nth-child(2) { height: 9px; }
.pm-status__icons i:nth-child(3) { width: 14px; height: 7px; border-radius: 2px; }

.pm-cover {
    position: relative;
    height: 38%;
    display: grid;
    place-items: center;
}

.pm-cover .media-img {
    position: absolute;
    inset: 0;
}

.pm-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.45));
}

.pm-cover__brand {
    position: relative;
    z-index: 2;
    display: grid;
    justify-items: center;
    gap: 0.2em;
    color: #fff;
    margin-top: 1.4em;
}

.pm-cover__logo {
    display: grid;
    place-items: center;
    width: 2.6em;
    height: 2.6em;
    border-radius: 50%;
    background: #fff;
    color: var(--c-ink);
    font-family: var(--font-serif);
    font-size: 1.4em;
    font-style: italic;
    font-weight: 600;
}

.pm-cover__name {
    font-family: var(--font-serif);
    font-size: 1.9em;
    font-weight: 600;
    line-height: 1;
}

.pm-cover__sub {
    font-size: 0.6em;
    letter-spacing: 0.3em;
    text-transform: uppercase;
}

.pm-sheet {
    position: relative;
    z-index: 3;
    margin-top: -1.6em;
    padding: 1.2em 1em;
    border-radius: 1.6em 1.6em 0 0;
    background: #fff;
    height: 64%;
}

.pm-tabs {
    display: flex;
    gap: 0.4em;
    margin-bottom: 1em;
    overflow: hidden;
}

.pm-tab {
    padding: 0.5em 0.9em;
    border-radius: var(--r-pill);
    font-size: 0.78em;
    font-weight: 500;
    color: var(--c-muted);
    white-space: nowrap;
}

.pm-tab.is-active {
    background: var(--c-primary);
    color: #fff;
}

.pm-list {
    display: grid;
    gap: 0.75em;
}

.pm-item {
    display: flex;
    align-items: center;
    gap: 0.8em;
    padding-bottom: 0.75em;
    border-bottom: 1px solid #F0EDE6;
}

.pm-item__media {
    width: 4.2em;
    height: 4.2em;
    border-radius: 0.8em;
    flex-shrink: 0;
}

.pm-item__body {
    display: grid;
    gap: 0.15em;
    flex: 1;
    min-width: 0;
}

.pm-item__name {
    font-weight: 700;
    color: var(--c-ink);
    font-size: 0.95em;
    line-height: 1.2;
}

.pm-item__desc {
    font-size: 0.72em;
    color: var(--c-muted);
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pm-item__price {
    font-weight: 700;
    font-size: 0.85em;
    color: var(--c-ink);
}

.pm-item__add {
    display: grid;
    place-items: center;
    width: 1.9em;
    height: 1.9em;
    border-radius: 50%;
    background: var(--c-ink);
    color: #fff;
    flex-shrink: 0;
    align-self: flex-end;
}

.pm-item__add .icon {
    width: 0.95em;
    height: 0.95em;
}

/* ---------- Настольная карточка с QR ---------- */
.tent {
    position: absolute;
    right: clamp(16px, 4vw, 56px);
    bottom: 0;
    z-index: 4;
    display: grid;
    justify-items: center;
    gap: 12px;
    width: clamp(160px, 14vw, 200px);
    padding: 22px 18px 20px;
    border-radius: 18px 18px 8px 8px;
    background: linear-gradient(160deg, #1C4A38, #0F2C21);
    color: #fff;
    text-align: center;
    box-shadow: 0 30px 50px -20px rgba(16, 35, 27, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.tent::after {
    content: "";
    position: absolute;
    left: 6%;
    right: 6%;
    bottom: -10px;
    height: 10px;
    border-radius: 0 0 50% 50%;
    background: rgba(16, 35, 27, 0.18);
    filter: blur(4px);
}

.tent__logo {
    font-weight: 800;
    font-size: 1.25rem;
    letter-spacing: -0.04em;
}

.tent__qr {
    display: block;
    width: 100%;
    padding: 10px;
    border-radius: 10px;
    background: #fff;
    color: var(--c-ink);
}

.tent__qr svg,
.ready-card__qr svg,
.cta-final__qr svg {
    width: 100%;
    height: auto;
}

.tent__scan {
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.tent__lines {
    display: grid;
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 0.875rem;
    opacity: 0.8;
    line-height: 1.3;
}

/* ---------- Рукописная подпись ---------- */
.hand-note {
    position: absolute;
    right: calc(clamp(160px, 14vw, 200px) + clamp(16px, 4vw, 56px) - 10px);
    bottom: -8px;
    z-index: 5;
    display: flex;
    align-items: flex-end;
    gap: 4px;
    color: var(--c-ink);
    pointer-events: none;
}

.hand-note__text {
    font-family: var(--font-hand);
    font-size: 1.75rem;
    font-weight: 600;
    line-height: 1;
    rotate: -6deg;
    order: -1;
}

.hand-note__arrow {
    width: 70px;
    height: 48px;
    rotate: 180deg;
    scale: -1 1;
}

.draw-path {
    stroke-dasharray: 160;
    stroke-dashoffset: 160;
    transition: stroke-dashoffset 1.4s var(--ease-out) 0.9s;
}

.is-visible .draw-path,
.no-js .draw-path {
    stroke-dashoffset: 0;
}

/* ---------- Плавающие карточки ---------- */
.float-chip {
    position: absolute;
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px 10px 10px;
    border-radius: var(--r);
    background: rgba(255, 255, 255, 0.92);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow: var(--sh);
    animation: float-y 6s ease-in-out infinite;
}

.float-chip--scans {
    top: 8%;
    right: -12px;
    animation-delay: -2s;
}

.float-chip--review {
    top: 36%;
    left: calc(clamp(230px, 20vw, 282px) + 36px);
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 12px 16px;
    animation-delay: -4s;
}

.float-chip__icon {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: var(--c-primary);
    color: #fff;
}

.float-chip__body {
    display: grid;
    line-height: 1.15;
}

.float-chip__value {
    font-weight: 800;
    color: var(--c-ink);
    font-size: 1.05rem;
}

.float-chip__label {
    font-size: 0.75rem;
    color: var(--c-muted);
    font-weight: 500;
}

/* ---------- Подсказка скролла ---------- */
.scroll-cue {
    position: absolute;
    left: 50%;
    bottom: 22px;
    translate: -50% 0;
    opacity: 0.6;
    transition: opacity var(--t) ease;
}

.scroll-cue:hover {
    opacity: 1;
}

.scroll-cue__mouse {
    display: block;
    width: 24px;
    height: 38px;
    border: 2px solid var(--c-ink);
    border-radius: 14px;
    position: relative;
}

.scroll-cue__wheel {
    position: absolute;
    top: 7px;
    left: 50%;
    width: 3px;
    height: 7px;
    margin-left: -1.5px;
    border-radius: 2px;
    background: var(--c-ink);
    animation: wheel 1.8s var(--ease-in-out) infinite;
}

@keyframes wheel {
    0% { opacity: 0; transform: translateY(0); }
    30% { opacity: 1; }
    100% { opacity: 0; transform: translateY(12px); }
}

/* ==========================================================================
   FEATURES
   ========================================================================== */
.features {
    padding-block: 36px;
    border-block: 1px solid var(--c-line);
    background: rgba(255, 255, 255, 0.35);
}

.features__grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
}

.feature {
    position: relative;
    display: grid;
    justify-items: center;
    align-content: start;
    gap: 6px;
    padding: 12px 10px;
    text-align: center;
}

.feature + .feature::before {
    content: "";
    position: absolute;
    left: 0;
    top: 20%;
    bottom: 20%;
    width: 1px;
    background: var(--c-line);
}

.feature__icon {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    margin-bottom: 8px;
    border-radius: 50%;
    background: var(--c-surface);
    border: 1px solid var(--c-line);
    color: var(--c-ink);
    transition: all 0.5s var(--ease-spring);
}

.feature__icon .icon {
    width: 24px;
    height: 24px;
}

.feature:hover .feature__icon {
    background: var(--c-primary);
    border-color: var(--c-primary);
    color: #fff;
    transform: translateY(-4px) rotate(-8deg);
    box-shadow: var(--sh-primary);
}

.feature__title {
    font-weight: 600;
    font-size: var(--fs-sm);
    color: var(--c-ink);
    line-height: 1.3;
}

.feature__text {
    font-size: 0.8125rem;
    color: var(--c-muted);
    line-height: 1.4;
}

/* ==========================================================================
   TEMPLATES
   ========================================================================== */
.templates__grid {
    display: grid;
    grid-template-columns: minmax(280px, 380px) minmax(0, 1fr);
    gap: clamp(32px, 5vw, 80px);
    align-items: center;
}

.templates__intro .h2 {
    margin-bottom: 20px;
}

.templates__intro .lead {
    margin-bottom: 36px;
}

.templates__controls {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.slider-arrows {
    display: flex;
    gap: 10px;
}

.templates__slider {
    min-width: 0;
    margin-right: calc(-1 * max(var(--gutter), (100vw - var(--container)) / 2));
}

.slider-track {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-left: 0;
    padding: 20px var(--gutter) 30px 4px;
    margin-block: -20px -30px;
    scrollbar-width: none;
    cursor: grab;
}

.slider-track::-webkit-scrollbar {
    display: none;
}

.slider-track.is-dragging {
    cursor: grabbing;
    scroll-snap-type: none;
    user-select: none;
}

.slider-track.is-dragging .tpl-card {
    pointer-events: none;
}

.slider-progress {
    position: relative;
    height: 3px;
    margin-top: 28px;
    margin-right: max(var(--gutter), (100vw - var(--container)) / 2);
    border-radius: 3px;
    background: var(--c-line);
    overflow: hidden;
}

.slider-progress__bar {
    position: absolute;
    inset: 0 auto 0 0;
    width: 30%;
    border-radius: 3px;
    background: var(--c-primary);
    transition: transform 0.2s linear;
}

/* ---------- Карточка шаблона ---------- */
.tpl-card {
    --tpl-bg: #fff;
    --tpl-ink: var(--c-ink);
    --tpl-muted: var(--c-muted);
    --tpl-line: #EEE9DF;
    position: relative;
    flex: 0 0 clamp(220px, 19vw, 256px);
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    padding: 18px 16px 16px;
    border-radius: var(--r-lg);
    background: var(--tpl-bg);
    color: var(--tpl-ink);
    box-shadow: var(--sh);
    transition: transform 0.6s var(--ease-out), box-shadow 0.6s var(--ease-out);
}

.tpl-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--sh-lg);
}

.tpl-card:hover .media-img {
    transform: scale(1.08);
}

.tpl-card--green {
    --tpl-bg: linear-gradient(170deg, #1F4636, #0F2A1F);
    --tpl-ink: #F4EFE3;
    --tpl-muted: rgba(244, 239, 227, 0.6);
    --tpl-line: rgba(255, 255, 255, 0.12);
}

.tpl-card--dark {
    --tpl-bg: linear-gradient(170deg, #1B1B1D, #0B0B0C);
    --tpl-ink: #F3EDE4;
    --tpl-muted: rgba(243, 237, 228, 0.55);
    --tpl-line: rgba(255, 255, 255, 0.1);
}

.tpl-card--warm {
    --tpl-bg: linear-gradient(170deg, #3A281E, #1E140F);
    --tpl-ink: #F6E9D8;
    --tpl-muted: rgba(246, 233, 216, 0.6);
    --tpl-line: rgba(255, 255, 255, 0.12);
}

.tpl-card__head {
    display: grid;
    justify-items: center;
    gap: 2px;
    margin-bottom: 14px;
    text-align: center;
}

.tpl-card__glyph {
    color: var(--c-accent);
    margin-bottom: 2px;
}

.tpl-card--green .tpl-card__glyph { color: #A9C9B3; }
.tpl-card--dark .tpl-card__glyph { color: #E0607E; }
.tpl-card--warm .tpl-card__glyph { color: #E4B06A; }

.tpl-card__glyph .icon {
    width: 22px;
    height: 22px;
}

.tpl-card__name {
    font-family: var(--font-serif);
    font-size: 1.75rem;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0.02em;
}

.tpl-card__sub {
    font-size: 0.625rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--tpl-muted);
}

.tpl-card__media {
    aspect-ratio: 4 / 3.3;
    border-radius: var(--r);
    margin-bottom: 12px;
}

.tpl-card__list {
    display: grid;
}

.tpl-card__list li {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 9px 2px;
    border-bottom: 1px solid var(--tpl-line);
    font-size: 0.8125rem;
}

.tpl-card__list li:last-child {
    border-bottom: 0;
}

.tpl-card__list li span:last-child {
    font-weight: 600;
    white-space: nowrap;
}

.tpl-card__badge {
    position: absolute;
    top: 14px;
    right: 14px;
    padding: 4px 9px;
    border-radius: var(--r-pill);
    background: var(--c-primary-soft);
    color: var(--c-primary);
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.tpl-card__badge--premium {
    background: var(--c-gold);
    color: #3B2A08;
}

/* ==========================================================================
   DASHBOARD
   ========================================================================== */
.dashboard {
    background:
        radial-gradient(60% 50% at 85% 20%, rgba(227, 237, 231, 0.9), transparent 70%),
        var(--c-bg-2);
    border-radius: clamp(28px, 4vw, 56px);
    margin-inline: clamp(0px, 1.5vw, 24px);
    overflow: hidden;
}

.dashboard__grid {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.2fr);
    gap: clamp(40px, 5vw, 88px);
    align-items: center;
}

.dashboard__content .h2 {
    margin-bottom: 20px;
}

.dashboard__content .lead {
    margin-bottom: 32px;
}

.dashboard__content .check-list {
    margin-bottom: 40px;
}

.dashboard__visual {
    position: relative;
    padding-block: 40px;
}

.app-mock {
    display: grid;
    grid-template-columns: 188px minmax(0, 1fr);
    border-radius: var(--r-lg);
    background: #FBFAF7;
    border: 1px solid var(--c-line);
    box-shadow: var(--sh-lg);
    overflow: hidden;
    font-size: 0.8125rem;
}

.app-mock__side {
    padding: 22px 14px;
    border-right: 1px solid var(--c-line);
    background: #fff;
}

.app-mock__logo {
    display: block;
    margin: 0 10px 22px;
    font-weight: 800;
    font-size: 1.35rem;
    letter-spacing: -0.04em;
    color: var(--c-ink);
}

.app-mock__nav {
    display: grid;
    gap: 2px;
}

.app-mock__nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 10px;
    border-radius: 10px;
    color: var(--c-text);
    white-space: nowrap;
}

.app-mock__nav-item .icon {
    width: 17px;
    height: 17px;
    opacity: 0.75;
}

.app-mock__nav-item.is-active {
    background: var(--c-primary-soft);
    color: var(--c-primary);
    font-weight: 600;
}

.app-mock__main {
    padding: 22px;
    min-width: 0;
}

.app-mock__top {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.app-mock__title {
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--c-ink);
    margin-right: auto;
}

.app-mock__saved,
.app-mock__add {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 32px;
    padding-inline: 12px;
    border-radius: var(--r-pill);
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

.app-mock__saved {
    background: var(--c-primary-soft);
    color: var(--c-success);
}

.app-mock__add {
    background: var(--c-primary);
    color: #fff;
}

.app-mock__saved .icon,
.app-mock__add .icon {
    width: 14px;
    height: 14px;
}

.app-mock__search {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 38px;
    padding-inline: 12px;
    margin-bottom: 12px;
    border-radius: 10px;
    border: 1px solid var(--c-line);
    background: #fff;
    color: var(--c-muted);
}

.app-mock__search .icon {
    width: 16px;
    height: 16px;
}

.app-mock__list {
    display: grid;
    gap: 8px;
}

.app-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px 10px 6px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid var(--c-line);
    transition: border-color var(--t) ease, background-color var(--t) ease;
}

.app-row.is-selected {
    border-color: #A7C9B4;
    background: #F2F8F4;
}

.app-row__grip {
    color: #BCC3BF;
}

.app-row__grip .icon {
    width: 16px;
    height: 16px;
}

.app-row__media {
    width: 46px;
    height: 46px;
    border-radius: 10px;
    flex-shrink: 0;
}

.app-row__body {
    display: grid;
    flex: 1;
    min-width: 0;
}

.app-row__name {
    font-weight: 700;
    color: var(--c-ink);
}

.app-row__desc {
    font-size: 0.75rem;
    color: var(--c-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.app-row__price {
    font-weight: 700;
    color: var(--c-ink);
    white-space: nowrap;
}

/* ---------- Карточки статистики ---------- */
.stat-card {
    position: absolute;
    z-index: 3;
    padding: 16px 18px;
    border-radius: var(--r);
    background: #fff;
    box-shadow: var(--sh-lg);
    animation: float-y 7s ease-in-out infinite;
}

.stat-card--scans {
    left: -34px;
    bottom: 24px;
    display: grid;
    gap: 2px;
    width: 180px;
}

.stat-card--views {
    right: -18px;
    bottom: -8px;
    display: flex;
    align-items: center;
    gap: 12px;
    animation-delay: -3s;
}

.stat-card__icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--c-gold-soft);
    color: #8A6414;
}

.stat-card--views > span:last-child {
    display: grid;
}

.stat-card__label {
    font-size: 0.75rem;
    color: var(--c-muted);
    font-weight: 500;
}

.stat-card__value {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--c-ink);
    line-height: 1.1;
}

.stat-card__bars {
    display: flex;
    align-items: flex-end;
    gap: 5px;
    height: 44px;
    margin-top: 10px;
}

.stat-card__bar {
    flex: 1;
    border-radius: 4px 4px 2px 2px;
    background: var(--c-primary-soft);
    transform-origin: bottom;
    transform: scaleY(0.05);
    transition: transform 1s var(--ease-out);
}

.stat-card__bar--1 { height: 40%; transition-delay: 0.5s; }
.stat-card__bar--2 { height: 62%; transition-delay: 0.58s; }
.stat-card__bar--3 { height: 48%; transition-delay: 0.66s; }
.stat-card__bar--4 { height: 78%; transition-delay: 0.74s; }
.stat-card__bar--5 { height: 58%; transition-delay: 0.82s; }
.stat-card__bar--6 { height: 88%; transition-delay: 0.9s; }
.stat-card__bar--7 { height: 100%; transition-delay: 0.98s; background: var(--c-primary); }

.is-visible .stat-card__bar,
.no-js .stat-card__bar {
    transform: none;
}

/* ==========================================================================
   HOW IT WORKS
   ========================================================================== */
.how__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: clamp(24px, 3vw, 48px);
    align-items: center;
}

.how__content .h2 {
    margin-bottom: 36px;
}

.steps {
    position: relative;
    display: grid;
    gap: 26px;
    margin-bottom: 40px;
}

.steps::before {
    content: "";
    position: absolute;
    left: 21px;
    top: 44px;
    bottom: 44px;
    width: 2px;
    background: repeating-linear-gradient(to bottom, var(--c-line-2) 0 6px, transparent 6px 12px);
}

.step {
    position: relative;
    display: flex;
    gap: 18px;
    align-items: flex-start;
}

.step__num {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--c-primary);
    color: #fff;
    font-weight: 700;
    flex-shrink: 0;
    box-shadow: 0 0 0 6px var(--c-bg);
    transition: transform 0.5s var(--ease-spring);
}

.step:hover .step__num {
    transform: scale(1.12);
}

.step__body {
    display: grid;
    gap: 4px;
    padding-top: 2px;
}

.step__title {
    font-weight: 700;
    color: var(--c-ink);
    font-size: var(--fs-md);
    letter-spacing: -0.01em;
}

.step__text {
    color: var(--c-muted);
    font-size: 0.9375rem;
}

/* ---------- Карточки «Меню готово» ---------- */
.how__cards {
    position: relative;
    height: 500px;
}

.mini-phone {
    position: absolute;
    top: 50%;
    display: grid;
    gap: 7px;
    align-content: start;
    width: 150px;
    height: 300px;
    padding: 14px 12px;
    border-radius: 26px;
    background: #fff;
    border: 5px solid #16181A;
    box-shadow: var(--sh);
    transition: transform 0.9s var(--ease-out);
}

.mini-phone--back-left {
    left: 4%;
    transform: translateY(-58%) rotate(-12deg);
}

.mini-phone--back-right {
    right: 4%;
    transform: translateY(-42%) rotate(10deg);
    background: #141515;
}

.how__cards:hover .mini-phone--back-left {
    transform: translateY(-58%) rotate(-16deg) translateX(-14px);
}

.how__cards:hover .mini-phone--back-right {
    transform: translateY(-42%) rotate(14deg) translateX(14px);
}

.mini-phone__img {
    height: 70px;
    border-radius: 12px;
}

.mini-phone__line {
    height: 7px;
    border-radius: 4px;
    background: #ECE8DF;
}

.mini-phone--back-right .mini-phone__line {
    background: #2A2C2D;
}

.mini-phone__line--short {
    width: 60%;
}

.ready-card {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 2;
    display: grid;
    justify-items: center;
    gap: 14px;
    width: 250px;
    padding: 26px 22px;
    border-radius: 28px;
    background: #fff;
    box-shadow: var(--sh-lg);
    text-align: center;
    transform: translate(-50%, -50%);
}

.ready-card__logo {
    font-weight: 800;
    font-size: 1.35rem;
    letter-spacing: -0.04em;
    color: var(--c-ink);
}

.ready-card__qr {
    position: relative;
    display: block;
    width: 150px;
    color: var(--c-ink);
    overflow: hidden;
}

/* Сканирующая линия */
.ready-card__scan {
    position: absolute;
    left: -10%;
    right: -10%;
    top: 0;
    height: 3px;
    border-radius: 3px;
    background: var(--c-success);
    box-shadow: 0 0 16px 4px rgba(47, 138, 91, 0.45);
    animation: scan 2.6s var(--ease-in-out) infinite;
}

@keyframes scan {
    0%, 100% { transform: translateY(0); opacity: 0; }
    10%, 90% { opacity: 1; }
    50% { transform: translateY(147px); }
}

.ready-card__title {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--c-ink);
    line-height: 1.15;
}

.ready-card__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
    height: 42px;
    padding: 0 6px 0 14px;
    border-radius: var(--r-pill);
    background: var(--c-bg);
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--c-text);
}

.ready-card__link > span:first-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ready-card__copy {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #fff;
    flex-shrink: 0;
}

.ready-card__copy .icon {
    width: 14px;
    height: 14px;
}

.ready-card__share {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    color: var(--c-muted);
}

.ready-card__soc {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--c-ink);
    color: #fff;
}

.ready-card__soc .icon {
    width: 14px;
    height: 14px;
}

.hand-note--how {
    right: auto;
    left: 60%;
    bottom: -28px;
    align-items: flex-start;
}

.hand-note--how .hand-note__text {
    display: grid;
    order: 0;
    font-size: 1.5rem;
    line-height: 1.05;
}

.hand-note__arrow--up {
    rotate: 0deg;
    scale: 1 1;
    margin-top: -24px;
}

/* ---------- Фото ---------- */
.how__photo {
    position: relative;
    height: 540px;
    border-radius: var(--r-xl);
    box-shadow: var(--sh-lg);
}

.how__photo .media-img {
    position: absolute;
    inset: -8% 0;
    height: 116%;
}

.how__photo::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent 45%, rgba(0, 0, 0, 0.45));
}

.how__photo-text {
    position: absolute;
    top: 50%;
    right: 26px;
    z-index: 2;
    display: grid;
    gap: 4px;
    translate: 0 -50%;
    color: #fff;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    text-align: left;
}

/* ==========================================================================
   NUMBERS
   ========================================================================== */
.numbers {
    padding-block: clamp(56px, 6vw, 88px);
    background: var(--c-primary);
    color: var(--c-primary-ink);
    position: relative;
    overflow: hidden;
}

.numbers::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(40% 80% at 10% 0%, rgba(255, 255, 255, 0.08), transparent 70%),
        radial-gradient(40% 80% at 90% 100%, rgba(233, 196, 106, 0.12), transparent 70%);
}

.numbers__grid {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.numbers__item {
    display: grid;
    gap: 8px;
    padding-left: 24px;
    border-left: 1px solid rgba(255, 255, 255, 0.14);
}

.numbers__value {
    font-size: clamp(2.5rem, 1.6rem + 3vw, 4.25rem);
    font-weight: 800;
    letter-spacing: -0.05em;
    line-height: 1;
    color: #fff;
    font-variant-numeric: tabular-nums;
}

.numbers__label {
    font-size: 0.9375rem;
    color: rgba(243, 247, 244, 0.7);
    max-width: 16em;
}

/* ==========================================================================
   PRICING
   ========================================================================== */
.pricing__grid {
    display: grid;
    grid-template-columns: minmax(250px, 300px) minmax(0, 1fr);
    gap: clamp(32px, 4vw, 64px);
    align-items: center;
}

.pricing__intro .h2 {
    margin-bottom: 20px;
}

.pricing__intro .lead {
    margin-bottom: 32px;
}

/* ---------- Переключатель Месяц / Год ---------- */
.billing-toggle {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding: 5px;
    border-radius: var(--r-pill);
    background: var(--c-surface);
    border: 1px solid var(--c-line);
    box-shadow: var(--sh-xs);
}

.billing-toggle__pill {
    position: absolute;
    top: 5px;
    bottom: 5px;
    left: 5px;
    width: 0;
    border-radius: var(--r-pill);
    background: var(--c-primary);
    transition: transform 0.5s var(--ease-out), width 0.5s var(--ease-out);
}

.billing-toggle__btn {
    position: relative;
    z-index: 1;
    height: 40px;
    padding-inline: 20px;
    border-radius: var(--r-pill);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--c-text);
    transition: color 0.4s ease;
}

.billing-toggle__btn.is-active {
    color: #fff;
}

.no-js .billing-toggle__btn.is-active {
    background: var(--c-primary);
}

.billing-toggle__save {
    margin: 0 6px 0 4px;
    padding: 5px 10px;
    border-radius: var(--r-pill);
    background: var(--c-gold-soft);
    color: #7A5A12;
    font-size: 0.75rem;
    font-weight: 700;
}

/* ---------- Карточки тарифов ---------- */
.pricing__cards {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    align-items: stretch;
}

.plan {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 28px 24px 24px;
    border-radius: var(--r-lg);
    background: var(--c-surface);
    border: 1px solid var(--c-line);
    transition: transform 0.6s var(--ease-out), box-shadow 0.6s var(--ease-out), border-color var(--t);
}

.plan:hover {
    transform: translateY(-8px);
    box-shadow: var(--sh-lg);
    border-color: transparent;
}

.plan--featured {
    background: linear-gradient(165deg, #1E4D3B 0%, var(--c-primary) 55%, #0E2A1F 100%);
    border-color: transparent;
    color: var(--c-primary-ink);
    box-shadow: 0 30px 60px -24px rgba(20, 58, 44, 0.65);
}

.plan--featured:hover {
    box-shadow: 0 40px 70px -24px rgba(20, 58, 44, 0.75);
}

.plan__badge {
    position: absolute;
    top: -13px;
    left: 50%;
    translate: -50% 0;
    padding: 5px 14px;
    border-radius: var(--r-pill);
    background: var(--c-gold);
    color: #3B2A08;
    font-size: 0.75rem;
    font-weight: 700;
    white-space: nowrap;
    box-shadow: 0 6px 16px -6px rgba(233, 196, 106, 0.8);
}

.plan__name {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--c-ink);
}

.plan--featured .plan__name {
    color: #fff;
}

.plan__tagline {
    font-size: 0.8125rem;
    color: var(--c-muted);
    margin-bottom: 22px;
}

.plan--featured .plan__tagline {
    color: rgba(243, 247, 244, 0.65);
}

.plan__price {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    min-height: 56px;
}

.plan__amount {
    display: inline-block;
    font-size: clamp(2.5rem, 2rem + 1.2vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.05em;
    line-height: 1;
    color: var(--c-ink);
    font-variant-numeric: tabular-nums;
    transition: opacity 0.25s ease, transform 0.35s var(--ease-out), filter 0.25s ease;
}

.plan__amount.is-switching {
    opacity: 0;
    transform: translateY(-14px);
    filter: blur(4px);
}

.plan--featured .plan__amount {
    color: #fff;
}

.plan__period {
    display: grid;
    font-size: 0.75rem;
    line-height: 1.25;
    color: var(--c-muted);
    padding-bottom: 4px;
}

.plan--featured .plan__period {
    color: rgba(243, 247, 244, 0.7);
}

.plan__billed {
    display: block;
    margin: 6px 0 20px;
    font-size: 0.75rem;
    color: var(--c-muted);
}

.plan--featured .plan__billed {
    color: rgba(243, 247, 244, 0.6);
}

.plan__features {
    display: grid;
    gap: 11px;
    margin-bottom: 26px;
    padding-top: 20px;
    border-top: 1px solid var(--c-line);
    flex: 1;
    align-content: start;
}

.plan--featured .plan__features {
    border-color: rgba(255, 255, 255, 0.14);
}

.plan__features li {
    display: flex;
    gap: 10px;
    font-size: 0.875rem;
    line-height: 1.4;
}

.plan__features .icon {
    width: 17px;
    height: 17px;
    margin-top: 1px;
    color: var(--c-success);
}

.plan--featured .plan__features .icon {
    color: var(--c-gold);
}

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq {
    padding-top: 0;
}

.faq__grid {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: clamp(32px, 5vw, 88px);
    align-items: start;
}

.faq__intro {
    position: sticky;
    top: calc(var(--header-h) + 24px);
}

.faq__intro .h2 {
    margin-bottom: 20px;
}

.faq__intro .lead {
    margin-bottom: 32px;
}

/* ==========================================================================
   CTA
   ========================================================================== */
.cta-final {
    padding-bottom: var(--section-y);
}

.cta-final__box {
    position: relative;
    padding: clamp(48px, 7vw, 96px) clamp(24px, 6vw, 88px);
    border-radius: clamp(28px, 4vw, 44px);
    background: linear-gradient(130deg, #1D4B39 0%, var(--c-primary) 50%, #0C241B 100%);
    overflow: hidden;
    isolation: isolate;
}

.cta-final__qr {
    position: absolute;
    right: -60px;
    top: 50%;
    z-index: -1;
    width: clamp(260px, 32vw, 460px);
    color: rgba(255, 255, 255, 0.07);
    translate: 0 -50%;
    rotate: -12deg;
    animation: qr-spin 40s linear infinite;
}

@keyframes qr-spin {
    to { rotate: 348deg; }
}

.cta-final__qr path[stroke] {
    display: none;
}

.cta-final__glow {
    position: absolute;
    left: 20%;
    top: -40%;
    z-index: -1;
    width: 60%;
    height: 120%;
    border-radius: 50%;
    background: radial-gradient(closest-side, rgba(233, 196, 106, 0.22), transparent);
    animation: glow-drift 14s ease-in-out infinite alternate;
}

.cta-final__content {
    max-width: 640px;
}

.cta-final__title {
    font-size: clamp(2.1rem, 1.3rem + 3vw, 3.75rem);
    color: #fff;
    margin-bottom: 18px;
    text-wrap: balance;
}

.cta-final__text {
    color: rgba(243, 247, 244, 0.72);
    font-size: var(--fs-md);
    margin-bottom: 36px;
}

/* ==========================================================================
   АДАПТИВ
   ========================================================================== */
@media (max-width: 1279px) {
    .pricing__grid {
        grid-template-columns: 1fr;
    }

    .pricing__intro {
        display: grid;
        grid-template-columns: 1fr auto;
        align-items: end;
        column-gap: 40px;
    }

    .pricing__intro .eyebrow,
    .pricing__intro .h2,
    .pricing__intro .lead {
        grid-column: 1;
    }

    .pricing__intro .lead {
        margin-bottom: 0;
    }

    .billing-toggle {
        grid-column: 2;
        grid-row: 2 / 4;
        align-self: end;
    }

    .how__grid {
        grid-template-columns: 1fr 1fr;
    }

    .how__content {
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: 1fr 1fr;
        column-gap: 48px;
        align-items: start;
    }

    .how__content .eyebrow,
    .how__content .h2 {
        grid-column: 1;
    }

    .how__content .steps {
        grid-column: 2;
        grid-row: 1 / 4;
    }

    .how__content .btn {
        grid-column: 1;
        justify-self: start;
    }
}

@media (max-width: 1100px) {
    .hero__grid {
        grid-template-columns: 1fr;
    }

    .hero__content {
        text-align: center;
        display: grid;
        justify-items: center;
    }

    .hero__text {
        margin-inline: auto;
    }

    .hero__actions {
        justify-content: center;
    }

    .hero__visual {
        width: 100%;
        max-width: 760px;
        margin-inline: auto;
    }

    .scroll-cue {
        display: none;
    }

    .features__grid {
        grid-template-columns: repeat(3, 1fr);
        row-gap: 20px;
    }

    .feature:nth-child(4)::before {
        display: none;
    }

    .templates__grid {
        grid-template-columns: 1fr;
    }

    .templates__slider {
        margin-left: calc(-1 * var(--gutter));
        margin-right: calc(-1 * var(--gutter));
    }

    .slider-track {
        padding-left: var(--gutter);
        scroll-padding-left: var(--gutter);
    }

    .slider-progress {
        margin-inline: var(--gutter);
    }

    .dashboard__grid {
        grid-template-columns: 1fr;
    }

    .dashboard__visual {
        max-width: 760px;
    }

    .pricing__cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 28px 16px;
    }

    .faq__grid {
        grid-template-columns: 1fr;
    }

    .faq__intro {
        position: static;
    }
}

@media (max-width: 767px) {
    .hero {
        padding-top: calc(var(--header-h) + 20px);
    }

    .hero__title {
        font-size: clamp(2.35rem, 10.5vw, 3.25rem);
        margin-bottom: 20px;
    }

    .hero__text {
        font-size: var(--fs-base);
        margin-bottom: 28px;
    }

    .hero__actions {
        width: 100%;
        flex-direction: column;
        margin-bottom: 32px;
    }

    .hero__actions .btn {
        width: 100%;
    }

    .hero__trust {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .hero__trust-text {
        justify-items: center;
    }

    .hero__visual {
        margin-top: 12px;
    }


    .hero__photo {
        inset: 30px 0 70px 36px;
        border-radius: var(--r-lg);
    }

    .hero__phone-wrap {
        top: 0;
        left: 0;
    }

    .phone--hero {
        --phone-w: 210px;
    }

    .tent {
        width: 128px;
        padding: 14px 12px;
        gap: 8px;
        right: 8px;
    }

    .tent__logo {
        font-size: 1rem;
    }

    .tent__qr {
        padding: 6px;
    }

    .tent__scan {
        font-size: 0.5625rem;
    }

    .tent__lines {
        display: none;
    }

    .hand-note {
        right: 150px;
        bottom: -12px;
    }

    .hand-note__text {
        font-size: 1.35rem;
    }

    .hand-note__arrow {
        width: 48px;
        height: 34px;
    }

    .float-chip--scans {
        top: 12px;
        right: 0;
    }

    .float-chip--review {
        display: none;
    }

    .hero__leaf--1 {
        width: 110px;
        height: 110px;
        top: 50%;
    }

    .features {
        padding-block: 28px;
    }

    .features__grid {
        grid-template-columns: repeat(2, 1fr);
        row-gap: 12px;
    }

    .feature::before {
        display: none;
    }

    .feature__icon {
        width: 50px;
        height: 50px;
    }

    .templates__controls .btn {
        flex: 1;
    }

    .tpl-card {
        flex-basis: 236px;
    }

    .dashboard {
        margin-inline: 0;
        border-radius: 28px;
    }

    .dashboard__visual {
        padding-block: 104px 56px;
        margin-inline: calc(-1 * var(--gutter));
        padding-inline: var(--gutter);
        overflow: hidden;
    }

    .app-mock {
        grid-template-columns: 1fr;
    }

    .app-mock__side {
        display: none;
    }

    .app-mock__main {
        padding: 16px;
    }

    .app-mock__saved {
        display: none;
    }

    .app-row__grip {
        display: none;
    }

    .app-row {
        padding-left: 10px;
    }

    .stat-card--scans {
        top: 0;
        right: var(--gutter);
        left: auto;
        bottom: auto;
        width: 150px;
        padding: 12px 14px;
    }

    .stat-card__bars {
        height: 30px;
    }

    .stat-card--views {
        left: var(--gutter);
        right: auto;
        bottom: 0;
        padding: 12px 14px;
    }

    .how__grid {
        grid-template-columns: 1fr;
    }

    .how__content {
        display: block;
    }

    .how__cards {
        height: 440px;
    }

    .mini-phone {
        width: 120px;
        height: 250px;
    }

    .mini-phone--back-left {
        left: 0;
    }

    .mini-phone--back-right {
        right: 0;
    }

    .ready-card {
        width: 230px;
    }

    .hand-note--how {
        left: auto;
        right: 0;
        bottom: -6px;
    }

    .how__photo {
        height: 360px;
    }

    .numbers__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px 16px;
    }

    .numbers__item {
        padding-left: 16px;
    }

    .pricing__intro {
        display: block;
    }

    .pricing__intro .lead {
        margin-bottom: 28px;
    }

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

    .plan--featured {
        order: -1;
    }

    .accordion__btn {
        padding: 18px 18px;
        font-size: var(--fs-base);
    }

    .accordion__inner p {
        padding: 0 18px 20px;
    }

    .cta-final__box .btn {
        width: 100%;
    }
}

@media (max-width: 400px) {


    .phone--hero {
        --phone-w: 190px;
    }

    .tent {
        width: 112px;
    }

    .hand-note {
        display: none;
    }
}
