/* ============================================================
   24site studio — "Atelier 48 / molten editorial"
   Fraunces (display serif) + Hanken Grotesk (sans) + Spline Sans Mono
   ============================================================ */

:root {
    --ink: #0e0c0b;
    /* тёплый чёрный фон */
    --ink-2: #080706;
    --surface: #17120f;
    /* тёплая карточка */
    --surface-2: #20191590;
    /* полупрозрачная */
    --paper: #f4ede1;
    /* кремовый текст */
    --muted: #9c9081;
    /* тёплый серый */
    --ember: #ff5d2e;
    /* раскалённый акцент */
    --ember-soft: #ffb27a;
    --cream: #ece2d1;
    /* светлая секция */
    --cream-ink: #1c1712;
    --line: rgba(244, 237, 225, .12);

    --display: "Fraunces", Georgia, "Times New Roman", serif;
    --sans: "Hanken Grotesk", -apple-system, "Segoe UI", sans-serif;
    --mono: "Spline Sans Mono", ui-monospace, monospace;

    --r-lg: 26px;
    --r-md: 16px;
    --ease: cubic-bezier(.16, 1, .3, 1);

    /* вертикальный ритм — единая шкала отступов секций */
    --section-pt: clamp(86px, 10vw, 150px);
    --section-pb: clamp(118px, 13.5vw, 200px);
    --panel-overlap: clamp(-150px, -8vw, -80px);
    --header-h: 92px;
}

/* ============ СВЕТЛАЯ ТЕМА (тумблер, запоминается в localStorage) ============ */
html[data-theme="light"] {
    --ink: #f1e9da;
    --ink-2: #eaddc9;
    --surface: #fffdf8;
    --surface-2: #fff9f0;
    --paper: #211a14;
    --muted: #6f6557;
    --ember-soft: #c64a1e;
    --cream: #e6dcc8;
    --cream-ink: #211a14;
    --line: rgba(33, 26, 20, .14);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    overflow-x: clip;
}

::selection {
    background: var(--ember);
    color: #fff;
}

body {
    font-family: var(--sans);
    background: var(--ink);
    color: var(--paper);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: clip;
}

/* ============ PRELOADER (перекрывает FOUC до загрузки CSS/шрифтов/JS) ============ */
#preloader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: grid;
    place-items: center;
    background: var(--ink);
    transition: opacity .5s var(--ease), visibility .5s var(--ease);
}

#preloader::after {
    content: "";
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 3px solid rgba(255, 93, 46, .25);
    border-top-color: var(--ember);
    animation: pre-spin .8s linear infinite;
}

@keyframes pre-spin {
    to {
        transform: rotate(360deg);
    }
}

.is-loaded #preloader {
    opacity: 0;
    visibility: hidden;
}

@media (prefers-reduced-motion: reduce) {
    #preloader::after {
        animation: none;
    }
}

.container {
    max-width: 1340px;
    margin: 0 auto;
    padding: 0 44px;
}

.mono {
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--muted);
}

/* зерно-плёнка поверх всего */
.grain {
    position: fixed;
    inset: 0;
    z-index: 9998;
    pointer-events: none;
    opacity: .045;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* атмосферный отблеск ember сверху */
body::before {
    content: "";
    position: fixed;
    top: -30vh;
    left: 50%;
    transform: translateX(-50%);
    width: 120vw;
    height: 70vh;
    pointer-events: none;
    z-index: 0;
    background: radial-gradient(60% 60% at 50% 0%, rgba(255, 93, 46, .14), transparent 70%);
}

/* ---------- reveal ---------- */
[data-reveal] {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .9s var(--ease), transform .9s var(--ease);
}

[data-reveal].is-in {
    opacity: 1;
    transform: none;
}

/* ---------- eyebrow / labels ---------- */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--muted);
}

.eyebrow .dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--ember);
    box-shadow: 0 0 0 4px rgba(255, 93, 46, .18);
    animation: pulse 2.4s var(--ease) infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1
    }

    50% {
        opacity: .4
    }
}

/* ---------- buttons ---------- */
.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 26px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform .35s var(--ease), background .35s var(--ease), color .35s var(--ease), border-color .35s;
    white-space: nowrap;
}

.btn--sm {
    padding: 11px 18px;
    font-size: 14px;
}

.btn .ar {
    transition: transform .35s var(--ease);
}

.btn:hover .ar {
    transform: translate(3px, -3px);
}

.btn--ember {
    background: var(--ember);
    color: #1a0d07;
    box-shadow: 0 10px 30px rgba(255, 93, 46, .28);
}

.btn--ember:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 44px rgba(255, 93, 46, .42);
}

.btn--ghost {
    color: var(--paper);
    border-color: var(--line);
}

.btn--ghost:hover {
    border-color: var(--paper);
    background: rgba(244, 237, 225, .05);
}

.btn--ink {
    background: var(--ink);
    color: var(--paper);
}

.btn--ink:hover {
    transform: translateY(-2px);
}

.btn--ghost-dark {
    color: var(--cream-ink);
    border-color: rgba(28, 23, 18, .25);
}

.btn--ghost-dark:hover {
    border-color: var(--cream-ink);
}

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--paper);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px solid var(--line);
    padding-bottom: 3px;
    transition: border-color .3s, color .3s;
}

.link-arrow:hover {
    border-color: var(--ember);
    color: var(--ember-soft);
}

.link-arrow .ar {
    transition: transform .3s var(--ease);
}

.link-arrow:hover .ar {
    transform: translate(3px, -3px);
}

/* ============ HEADER ============ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    padding: 26px 0;
    border-bottom: 1px solid transparent;
    transition: background .3s var(--ease), backdrop-filter .3s var(--ease), border-color .3s var(--ease), padding .3s var(--ease);
}

.site-header.scrolled {
    background: rgba(14, 12, 11, .82);
    backdrop-filter: blur(14px) saturate(1.2);
    -webkit-backdrop-filter: blur(14px) saturate(1.2);
    border-bottom-color: var(--line);
    padding: 15px 0;
}

html[data-theme="light"] .site-header.scrolled {
    background: rgba(241, 233, 218, .85);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 13px;
    text-decoration: none;
    color: var(--paper);
}

.logo img {
    height: 42px;
    width: auto;
}

@media (max-width: 600px) {
    .logo img {
        height: 30px;
    }
}

.logo-mark {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    background: var(--paper);
    color: var(--ink);
    border-radius: 50%;
    font-family: var(--display);
    font-weight: 600;
    font-size: 18px;
}

.logo-text {
    font-weight: 700;
    font-size: 16px;
    line-height: 1.05;
    letter-spacing: -.01em;
}

.logo-text sup {
    font-size: .5em;
    color: var(--ember);
}

.logo-text em {
    font-family: var(--display);
    font-style: italic;
    font-weight: 500;
    color: var(--muted);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: .04em;
    color: var(--muted);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4fd07a;
    box-shadow: 0 0 0 4px rgba(79, 208, 122, .18);
}

.burger {
    width: 46px;
    height: 46px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
    display: grid;
    place-content: center;
    gap: 5px;
    transition: border-color .3s;
}

.burger span {
    display: block;
    width: 18px;
    height: 1.6px;
    background: var(--paper);
}

.burger:hover {
    border-color: var(--paper);
}

/* тумблер темы (вместо бургера) */
.theme-toggle {
    width: 46px;
    height: 46px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
    display: grid;
    place-content: center;
    color: var(--paper);
    transition: border-color .3s, color .3s, transform .3s var(--ease);
}

.theme-toggle:hover {
    border-color: var(--paper);
    transform: rotate(12deg);
}

.theme-toggle svg {
    width: 20px;
    height: 20px;
}

.theme-toggle .ic-moon {
    display: none;
}

html[data-theme="light"] .theme-toggle .ic-sun {
    display: none;
}

html[data-theme="light"] .theme-toggle .ic-moon {
    display: block;
}

/* ============ ЧАТ-АГЕНТ (bottom-sheet, GPT) ============ */
.agent-sheet {
    position: fixed;
    inset: 0;
    z-index: 10000;
}

.agent-sheet[hidden] {
    display: none;
}

.agent-overlay {
    position: absolute;
    inset: 0;
    background: rgba(8, 7, 6, .55);
    backdrop-filter: blur(3px);
    animation: ag-fade .25s var(--ease);
}

.agent-panel {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    width: min(560px, 100%);
    margin: 0 auto;
    background: var(--surface);
    color: var(--paper);
    border: 1px solid var(--line);
    border-bottom: 0;
    border-radius: var(--r-lg) var(--r-lg) 0 0;
    box-shadow: 0 -30px 80px rgba(0, 0, 0, .5);
    display: flex;
    flex-direction: column;
    height: 560px;
    max-height: 82vh;
    animation: ag-up .35s var(--ease);
}

@keyframes ag-fade {
    from {
        opacity: 0
    }

    to {
        opacity: 1
    }
}

@keyframes ag-up {
    from {
        transform: translateY(100%)
    }

    to {
        transform: none
    }
}

.agent-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px;
    border-bottom: 1px solid var(--line);
}

.agent-title {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-family: var(--mono);
    font-size: 13px;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.agent-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--ember);
    box-shadow: 0 0 0 4px rgba(255, 93, 46, .18);
    animation: pulse 2.4s var(--ease) infinite;
}

.agent-close {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    font-size: 14px;
}

.agent-close:hover {
    color: var(--paper);
    border-color: var(--paper);
}

.agent-log {
    flex: 1;
    overflow-y: auto;
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.agent-msg {
    max-width: 84%;
    padding: 11px 14px;
    border-radius: 16px;
    font-size: 14.5px;
    line-height: 1.45;
}

.agent-msg--bot {
    align-self: flex-start;
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-bottom-left-radius: 5px;
}

.agent-msg--user {
    align-self: flex-end;
    background: var(--ember);
    color: #1a0d07;
    border-bottom-right-radius: 5px;
}

.agent-typing {
    display: inline-flex;
    gap: 4px;
    align-items: center;
}

.agent-typing span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--muted);
    animation: ag-blink 1s infinite;
}

.agent-typing span:nth-child(2) {
    animation-delay: .15s
}

.agent-typing span:nth-child(3) {
    animation-delay: .3s
}

@keyframes ag-blink {

    0%,
    100% {
        opacity: .3
    }

    50% {
        opacity: 1
    }
}

.agent-input {
    display: flex;
    gap: 10px;
    padding: 14px 16px;
    border-top: 1px solid var(--line);
}

.agent-input input {
    flex: 1;
    padding: 12px 15px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--ink);
    color: var(--paper);
    font-size: 14.5px;
    font-family: inherit;
}

.agent-input input:focus {
    outline: none;
    border-color: var(--ember);
}

.agent-input .btn {
    padding: 0;
    width: 46px;
    flex-shrink: 0;
    justify-content: center;
}

.aj[data-job] {
    cursor: pointer;
}

.agent-launcher {
    position: fixed;
    right: clamp(16px, 3vw, 32px);
    bottom: clamp(16px, 3vw, 32px);
    z-index: 9000;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 14px 20px;
    border-radius: 999px;
    border: none;
    background: var(--ember);
    color: #fff;
    font-family: inherit;
    font-size: 14.5px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 12px 32px rgba(255, 93, 46, .35);
    transition: transform .3s var(--ease);
}

.agent-launcher:hover {
    transform: translateY(-3px);
}

.agent-launcher-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, .28);
    animation: pulse 2.4s var(--ease) infinite;
}

@media (max-width: 600px) {
    .agent-launcher-label {
        display: none;
    }

    .agent-launcher {
        padding: 14px;
    }
}

@media (prefers-reduced-motion: reduce) {

    .agent-panel,
    .agent-overlay {
        animation: none;
    }
}

@media (max-width: 600px) {
    .agent-panel {
        height: 88vh;
        max-height: 88vh;
    }
}

/* ============ «ЖИВЫЕ» КАРТОЧКИ — видео-фон при наведении ============ */
.aj-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    z-index: 0;
    pointer-events: none;
    mix-blend-mode: soft-light;
    transition: opacity .55s var(--ease);
}

/* контент — над видео; абсолютные «декали» (иконка/кольцо) тоже выше */
.aj>.aj-tag,
.aj>h3,
.aj>.aj-hit-pill,
.aj>.aj-foot,
.aj--howto>.aj-pill-tag,
.aj--howto>div,
.aj--howto>.aj-howto-foot {
    position: relative;
    z-index: 1;
}

.aj-ic,
.aj-ring,
.aj-recycle {
    z-index: 2;
}

.aj:hover .aj-video {
    opacity: .6;
}

@media (prefers-reduced-motion: reduce) {
    .aj-video {
        display: none;
    }
}

/* ============ HERO ============ */
.hero {
    position: relative;
    z-index: 1;
    min-height: calc(100svh - var(--header-h, 92px));
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(36px, 6vh, 80px) 0;
    /* многослойный тёплый mesh-градиент поверх базового фона --ink — глубина без новых цветов */
    background:
        radial-gradient(46% 40% at 12% 18%, rgba(255, 93, 46, .16), transparent 62%),
        radial-gradient(38% 34% at 88% 8%, rgba(255, 178, 122, .18), transparent 65%),
        radial-gradient(60% 50% at 50% 105%, rgba(255, 93, 46, .10), transparent 70%);
}

.hero-dots {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    width: 100%;
    height: 100%;
}

.hero-mark {
    position: absolute;
    top: -2vw;
    right: -2vw;
    z-index: 0;
    pointer-events: none;
    font-family: var(--display);
    font-weight: 600;
    font-style: italic;
    font-size: clamp(220px, 34vw, 560px);
    line-height: .8;
    color: transparent;
    -webkit-text-stroke: 1.5px rgba(244, 237, 225, .06);
}

.hero-inner {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-family: var(--display);
    /* --hs — множитель масштаба из редактора (hero.title_scale, 100 = как задано в макете) */
    font-size: calc(clamp(46px, 8.4vw, 112px) * var(--hs, 1));
    font-weight: 600;
    line-height: .96;
    letter-spacing: -.025em;
    margin: 26px 0 0;
    text-wrap: balance;
}

.hero-title .line {
    display: block;
}

.hero-title .line:empty {
    display: none;
}

.hero-title em {
    font-style: italic;
    font-weight: 500;
    color: var(--ember-soft);
}

.accent-stroke {
    position: relative;
    white-space: nowrap;
}

.accent-stroke::after {
    content: "";
    position: absolute;
    left: -2%;
    right: -2%;
    bottom: .08em;
    height: .14em;
    background: var(--ember);
    border-radius: 4px;
    transform: scaleX(0);
    transform-origin: left;
    animation: stroke-in 1s var(--ease) .5s forwards;
}

.hero-title.is-in .accent-stroke::after,
.is-in .accent-stroke::after {
    transform: scaleX(1);
}

@keyframes stroke-in {
    to {
        transform: scaleX(1);
    }
}

.hero-foot {
    display: flex;
    align-items: flex-start;

    gap: 50px;
    flex-wrap: wrap;
    margin-top: 40px;
}

.hero-sub {
    max-width: 540px;
    font-size: 19px;
    color: var(--muted);
    line-height: 1.6;
}

.hero-sub br {
    display: none;
}

.hero-actions {
    display: flex;
    gap: 14px;
    flex-shrink: 0;
}

/* ниши на первом экране */
.hero-niches {
    margin-top: 30px;
}

.price-label {
    display: block;
    color: var(--muted);
    margin-bottom: 6px;
}

.hero-niches-row {
    font-family: var(--display);
    font-weight: 600;
    letter-spacing: -.01em;
    font-size: clamp(26px, 3.4vw, 46px);
    line-height: 1.05;
    color: var(--ember-soft);
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 14px;
}

.hero-niches-row i {
    color: var(--ember);
    font-style: normal;
    opacity: .55;
}

.price-note {
    margin-top: 12px;
    max-width: 52ch;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.5;
}

.hero-trust {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 44px;
    padding-top: 26px;
    border-top: 1px solid var(--line);
}

.trust-avatars {
    display: flex;
}

.avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3a302a, #6a574c);
    border: 2px solid var(--ink);
    margin-left: -12px;
    display: grid;
    place-items: center;
    color: var(--ember-soft);
    font-size: 14px;
}

.avatar:first-child {
    margin-left: 0;
}

.avatar--spark {
    background: var(--ink);
}

.trust-text {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.35;
}

.trust-text strong {
    color: var(--paper);
    font-weight: 700;
}

/* ---- hero duo: feature + video ---- */
.hero-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, .82fr) minmax(0, 1.55fr);
    gap: 22px;
    margin-top: 70px;
}

.card {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    overflow: hidden;
}

.card-tag {
    position: absolute;
    top: 22px;
    left: 24px;
    z-index: 3;
}

.card--feature {
    display: flex;
    flex-direction: column;
    padding: 26px;
    min-height: 440px;
}

.card-media {
    flex: 1;
    display: grid;
    place-items: center;
    min-height: 220px;
}

.orbit {
    width: 190px;
    height: 190px;
    border-radius: 50%;
    background: radial-gradient(circle at 34% 28%, #fff 0%, #ffd9c4 14%, #ff7a45 38%, #7a2a14 72%, #150806 100%);
    box-shadow: 0 40px 80px rgba(255, 93, 46, .25), inset -12px -12px 36px rgba(0, 0, 0, .55);
    animation: float 7s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(0)
    }

    50% {
        transform: translateY(-16px) rotate(8deg)
    }
}

.card-body h3 {
    font-family: var(--display);
    font-weight: 600;
    font-size: 25px;
    line-height: 1.18;
    margin-bottom: 20px;
    letter-spacing: -.01em;
}

.card--video {
    min-height: 440px;
}

.promo-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: linear-gradient(135deg, #ff8a4c, #b53d1c 60%, #2a120a);
}

.video-overlay {
    position: absolute;
    top: 26px;
    left: 26px;
    max-width: 430px;
    padding: 22px 26px;
    border-radius: var(--r-md);
    background: rgba(20, 14, 10, .42);
    backdrop-filter: blur(16px) saturate(1.2);
    -webkit-backdrop-filter: blur(16px) saturate(1.2);
    border: 1px solid rgba(244, 237, 225, .14);
}

.video-overlay .mono {
    color: var(--ember-soft);
}

.video-overlay p {
    margin-top: 10px;
    color: var(--paper);
    font-size: 18px;
    font-weight: 500;
    line-height: 1.45;
}

.play-pill {
    position: absolute;
    bottom: 26px;
    right: 26px;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    text-decoration: none;
    background: var(--ember);
    color: #1a0d07;
    font-size: 18px;
    box-shadow: 0 10px 30px rgba(255, 93, 46, .4);
    transition: transform .35s var(--ease);
}

.play-pill:hover {
    transform: scale(1.08);
}

/* ---- scroll-driven раскрытие секции из кружочка ---- */
/* кружок-семя, из которого круговым clip-path «вырастает» секция AI-агентов */
.hero-seed {
    position: absolute;
    top: 10px;
    left: 50%;
    width: 54px;
    height: 54px;
    margin-left: -27px;
    border-radius: 50%;
    background: var(--ember);
    box-shadow: 0 0 0 8px rgba(255, 93, 46, .14), 0 14px 40px rgba(255, 93, 46, .45);
    display: grid;
    place-items: center;
    z-index: 5;
    pointer-events: none;
    opacity: 0;
    animation: seed-pulse 2.4s var(--ease) infinite;
}

.hero-seed i {
    width: 12px;
    height: 12px;
    margin-top: -3px;
    border-right: 2px solid #1a0d07;
    border-bottom: 2px solid #1a0d07;
    transform: rotate(45deg);
}

@keyframes seed-pulse {

    0%,
    100% {
        box-shadow: 0 0 0 6px rgba(255, 93, 46, .12), 0 14px 40px rgba(255, 93, 46, .40);
    }

    50% {
        box-shadow: 0 0 0 14px rgba(255, 93, 46, .04), 0 14px 40px rgba(255, 93, 46, .55);
    }
}

/* контент секции, раскрывающийся круговым clip-path от кружочка */
.ai-clip {
    position: relative;
    padding: clamp(80px, 11vh, 150px) 0 clamp(70px, 9vh, 120px);
}

/* расширяющееся ember-кольцо — видимый «фронт» раскрытия */
.ai-ring {
    position: absolute;
    top: 0;
    left: 50%;
    width: calc(var(--reveal, 0) * 260vmax);
    height: calc(var(--reveal, 0) * 260vmax);
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 2px solid rgba(255, 93, 46, .85);
    box-shadow: 0 0 50px rgba(255, 93, 46, .45);
    opacity: 0;
    pointer-events: none;
    z-index: 3;
}

/* пока JS не активен — секция видна целиком (без клипа), кружок/кольцо скрыты */
.js-reveal .ai-clip {
    clip-path: circle(calc(var(--reveal, 0) * 150%) at 50% 0%);
    will-change: clip-path;
}

.js-reveal .ai-ring {
    opacity: calc((1 - var(--reveal, 0)) * (1 - var(--reveal, 0)));
}

.js-reveal .hero-seed {
    opacity: calc(1 - var(--reveal, 0) * 1.8);
    transform: scale(calc(1 - var(--reveal, 0) * .4));
}

@media (prefers-reduced-motion: reduce) {
    .js-reveal .ai-clip {
        clip-path: none;
    }

    .js-reveal .hero-seed,
    .js-reveal .ai-ring {
        display: none;
    }
}

/* ============ AI-АГЕНТЫ / УСЛУГИ (bento, 100vh) ============ */
.ai-bento {
    position: relative;
    min-height: 100vh;
    background: radial-gradient(120% 78% at 50% 0%, #1d140f 0%, var(--ink-2) 58%);
    overflow: hidden;
}

.ai-inner {
    position: relative;
    z-index: 2;
    width: 100%;
}

.ai-glow {
    position: absolute;
    top: -30vh;
    left: 50%;
    transform: translateX(-50%);
    width: 120vw;
    height: 70vh;
    z-index: 0;
    pointer-events: none;
    background: radial-gradient(closest-side, rgba(255, 93, 46, .16), transparent 70%);
}

.ai-watermark {
    position: absolute;
    top: -2vw;
    right: -1vw;
    z-index: 0;
    pointer-events: none;
    font-family: var(--display);
    font-weight: 600;
    font-style: italic;
    font-size: clamp(220px, 32vw, 520px);
    line-height: .8;
    color: transparent;
    -webkit-text-stroke: 1.5px rgba(244, 237, 225, .06);
}

.ai-head {
    margin-bottom: 30px;
}

.ai-title {
    font-family: var(--display);
    font-size: clamp(28px, 3.6vw, 52px);
    font-weight: 600;
    line-height: 1.06;
    letter-spacing: -.02em;
    margin: 4px 0 0;
}

.ai-title em {
    font-style: italic;
    color: var(--ember);
}

.ai-sub {
    margin: 14px 0 0;
    max-width: 50ch;
    font-size: 18px;
    color: var(--muted);
    line-height: 1.5;
}

.ai-chips {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 22px;
    align-items: center;
    font-size: 18px;
    color: var(--muted);
}

.ai-chip {
    font-family: var(--mono);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .06em;
    padding: 7px 13px;
    border-radius: 999px;
}

.ai-chip--on {
    color: #1a0d07;
    background: var(--ember);
}

.ai-chip--off {
    color: var(--muted);
    border: 1px solid var(--line);
}

.ai-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: minmax(150px, auto);
    gap: 16px;
}

/* базовая job-карточка */
.aj {
    --calm: 1;
    --ben: 0;
    --ia: none;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 11px;
    padding: 24px;
    border-radius: var(--r-lg);
    background: var(--surface);
    border: 1px solid var(--line);
    color: var(--paper);
    transition: transform .4s var(--ease), border-color .4s var(--ease), background .4s var(--ease), color .4s var(--ease);
}

.aj:hover {
    transform: translateY(-4px);
    border-color: transparent;
    background: var(--ember);
    color: #1a0d07;
    --calm: 0;
    --ben: 1;
    --ia: var(--ih, none);
}

.aj-ic {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 32px;
    height: 32px;
    color: var(--ember-soft);
    opacity: var(--calm);
    transition: opacity .4s var(--ease), color .4s var(--ease);
    animation: var(--ia, none);
}

.aj-ic svg {
    width: 100%;
    height: 100%;
    display: block;
}

.aj:hover .aj-ic {
    color: #1a0d07;
    opacity: 1;
}

.aj-tag {
    font-family: var(--mono);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--ember-soft);
    opacity: var(--calm);
    transition: opacity .4s var(--ease), color .4s var(--ease);
    max-width: 20ch;
}

.aj:hover .aj-tag {
    color: rgba(26, 13, 7, .85);
    opacity: 1;
}

.aj h3 {
    font-family: var(--display);
    font-weight: 600;
    font-size: 20px;
    line-height: 1.12;
    letter-spacing: -.01em;
    margin: 0;
}

.aj-foot {
    position: relative;
    margin-top: auto;
    min-height: 66px;
}

.aj-desc {
    opacity: var(--calm);
    transition: opacity .4s var(--ease);
}

.aj-desc p {
    margin: 0;
    font-size: 13.5px;
    line-height: 1.5;
    color: var(--muted);
}

.aj:hover .aj-desc p {
    color: rgba(26, 13, 7, .72);
}

.aj-ben {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 7px;
    pointer-events: none;
}

.aj-ben li {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 13.5px;
    line-height: 1.25;
    opacity: var(--ben);
    transform: translateY(calc((1 - var(--ben)) * 9px));
    transition: opacity .42s var(--ease), transform .42s var(--ease);
}

.aj-ben li:nth-child(2) {
    transition-delay: 70ms;
}

.aj-ben li:nth-child(3) {
    transition-delay: 140ms;
}

.aj-ben .tick {
    flex-shrink: 0;
    width: 17px;
    height: 17px;
    border-radius: 50%;
    background: rgba(26, 13, 7, .18);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
}

/* хит-карточка */
.aj--hit {
    border: 2px solid var(--ember);
}

.aj--hit h3 {
    font-size: clamp(26px, 2.8vw, 38px);
    line-height: 1.05;
    letter-spacing: -.02em;
}

.aj-hit-pill {
    align-self: flex-start;
    font-family: var(--mono);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .06em;
    background: rgba(255, 93, 46, .16);
    color: var(--ember-soft);
    padding: 5px 11px;
    border-radius: 999px;
}

.aj:hover .aj-hit-pill {
    background: rgba(26, 13, 7, .16);
    color: rgba(26, 13, 7, .85);
}

.aj-stats {
    display: flex;
    align-items: baseline;
    gap: 9px;
    flex-wrap: wrap;
    margin-top: 14px;
}

.aj-stat-num {
    font-family: var(--display);
    font-size: 26px;
    font-weight: 600;
    color: var(--ember-soft);
}

.aj:hover .aj-stat-num {
    color: #1a0d07;
}

.aj-stat-cap {
    font-family: var(--mono);
    font-size: 11px;
    text-transform: uppercase;
    color: var(--muted);
}

.aj-stat-ex {
    font-family: var(--mono);
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--muted);
    border: 1px solid var(--line);
    padding: 3px 7px;
    border-radius: 6px;
}

.aj-price-cap {
    display: block;
    font-family: var(--mono);
    font-size: 11px;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 2px;
}

.aj-price {
    font-family: var(--display);
    font-weight: 600;
    font-size: clamp(24px, 2.4vw, 32px);
    color: var(--ember-soft);
    letter-spacing: -.01em;
}

.aj:hover .aj-price {
    color: #1a0d07;
}

/* featured · как это работает */
.aj--howto {
    justify-content: space-between;
    gap: 20px;
    padding: 28px;
}

.aj-ring {
    position: absolute;
    top: -46px;
    right: -46px;
    width: 188px;
    height: 188px;
    border-radius: 50%;
    border: 1.5px dashed rgba(244, 237, 225, .2);
    animation: ba-spin 26s linear infinite;
    pointer-events: none;
}

.aj:hover .aj-ring {
    border-color: rgba(26, 13, 7, .25);
}

.aj-recycle {
    position: absolute;
    top: 30px;
    right: 30px;
    font-size: 20px;
    color: rgba(244, 237, 225, .3);
}

.aj:hover .aj-recycle {
    color: rgba(26, 13, 7, .5);
}

.aj-pill-tag {
    align-self: flex-start;
    font-family: var(--mono);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .06em;
    background: rgba(255, 93, 46, .12);
    color: var(--ember-soft);
    padding: 7px 13px;
    border-radius: 999px;
}

.aj:hover .aj-pill-tag {
    background: rgba(26, 13, 7, .16);
    color: rgba(26, 13, 7, .9);
}

.aj--howto h3 {
    font-size: clamp(20px, 1.8vw, 24px);
    line-height: 1.1;
    margin: 0 0 10px;
}

.aj--howto h3 em {
    font-style: italic;
}

.aj-howto-desc {
    margin: 0;
    font-size: 15px;
    line-height: 1.5;
    max-width: 34ch;
    color: rgba(244, 237, 225, .65);
}

.aj:hover .aj-howto-desc {
    color: rgba(26, 13, 7, .7);
}

.aj-howto-foot {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.aj-chip {
    font-weight: 600;
    font-size: 13px;
    background: var(--surface-2);
    border: 1px solid var(--line);
    padding: 9px 15px;
    border-radius: 999px;
}

.aj-arrow {
    font-size: 15px;
    color: var(--muted);
}

.aj:hover .aj-arrow {
    color: rgba(26, 13, 7, .6);
}

.aj-spacer {
    flex: 1;
}

/* CTA «своей задачи нет» */
.aj-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    padding: 26px 30px;
    border-radius: var(--r-lg);
    border: 1.5px dashed var(--line);
    background: rgba(255, 255, 255, .015);
}

.aj-cta h3 {
    font-family: var(--display);
    font-weight: 600;
    font-size: 24px;
    line-height: 1.18;
    letter-spacing: -.01em;
    margin: 0 0 8px;
}

.aj-cta p {
    margin: 0;
    font-size: 15px;
    color: var(--muted);
}

.aj-cta-form {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 300px;
    max-width: 520px;
}

.aj-cta-input {
    flex: 1;
    font-size: 15px;
    color: var(--muted);
    background: rgba(244, 237, 225, .04);
    border: 1px solid var(--line);
    padding: 15px 18px;
    border-radius: 999px;
}

@keyframes ba-spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes ba-bob {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

@keyframes ba-swing {

    0%,
    100% {
        transform: rotate(0);
    }

    30% {
        transform: rotate(-7deg);
    }

    70% {
        transform: rotate(7deg);
    }
}

@keyframes ba-nudge {

    0%,
    100% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(5px);
    }
}

@keyframes ba-stamp {

    0%,
    100% {
        transform: scale(1);
    }

    30% {
        transform: scale(.82);
    }

    60% {
        transform: scale(1.1);
    }
}

@keyframes ba-march {

    0%,
    100% {
        transform: translateX(-4px);
    }

    50% {
        transform: translateX(4px);
    }
}

/* планшет: 2 колонки, сбрасываем жёсткие grid-позиции */
@media (max-width: 1100px) {
    .ai-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: auto;
    }

    .ai-grid>.aj,
    .ai-grid>.aj-cta {
        grid-column: auto !important;
        grid-row: auto !important;
    }

    .aj--hit {
        grid-column: 1 / -1 !important;
    }

    .aj-cta {
        grid-column: 1 / -1 !important;
    }
}

/* мобайл: один столбец, высота по контенту */
@media (max-width: 700px) {
    .ai-bento {
        min-height: auto;
    }

    /* minmax(0,1fr), а не 1fr — иначе колонка растёт под min-content карточки и вылазит за экран */
    .ai-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .ai-grid>.aj,
    .ai-grid>.aj-cta {
        grid-column: 1 / -1 !important;
        grid-row: auto !important;
    }

    /* CTA-карточка «своей задачи нет» — в столбик, поле на всю ширину */
    .aj-cta {
        flex-direction: column;
        align-items: stretch;
        padding: 24px 22px;
    }

    .aj-cta-form {
        min-width: 0;
        max-width: none;
        width: 100%;
    }

    /* кнопка «Собрать» → иконкой, чтобы поле и кнопка влезали в карточку */
    .aj-cta-form .btn .btn-txt {
        display: none;
    }

    .aj-cta-form .btn {
        flex: 0 0 auto;
        width: 52px;
        height: 52px;
        padding: 0;
        justify-content: center;
        gap: 0;
    }
}

@media (prefers-reduced-motion: reduce) {

    .aj-ic,
    .aj-ring {
        animation: none !important;
    }
}

/* ============ MARQUEE ============ */
.marquee {
    position: relative;
    z-index: 1;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    overflow: hidden;
    padding: 30px 0;
}

.marquee-track {
    display: flex;
    width: max-content;
    animation: marquee-scroll 30s linear infinite;
}

.marquee:hover .marquee-track {
    animation-play-state: paused;
}

.marquee-group {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.m-item {
    display: inline-flex;
    align-items: center;
    gap: 28px;
    padding: 0 36px;
    font-family: var(--display);
    font-style: italic;
    font-weight: 500;
    font-size: clamp(28px, 4vw, 56px);
    color: rgba(244, 237, 225, .32);
    white-space: nowrap;
}

.m-spark {
    color: var(--ember);
    font-style: normal;
    font-size: .55em;
}

@keyframes marquee-scroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

/* ============ SHOWCASE ============ */
.showcase {
    --p: 0;
    position: relative;
    z-index: 3;
    height: 320vh;
    background: var(--cream);
    color: var(--cream-ink);
    border-radius: clamp(44px, 5.5vw, 88px) clamp(44px, 5.5vw, 88px) 0 0;
    margin-top: var(--panel-overlap);
    box-shadow: 0 -34px 70px rgba(0, 0, 0, .4);
}

.showcase::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: .5;
    mix-blend-mode: multiply;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='p'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23p)' opacity='0.5'/%3E%3C/svg%3E");
}

.showcase-intro {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 4;
    padding-top: clamp(36px, 4vw, 64px);
    padding-bottom: 10px;
}

.showcase-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
}

.showcase-title {
    font-family: var(--display);
    font-weight: 600;
    font-size: clamp(28px, 3.6vw, 52px);
    line-height: 1.06;
    letter-spacing: -.02em;
    max-width: 22ch;
    text-wrap: balance;
}

.showcase-title em {
    font-style: italic;
}

.showcase-title em .w {
    color: var(--ember);
}

.showcase-cta {
    flex-shrink: 0;
}

.showcase-sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    display: grid;
    place-items: center;
    overflow: hidden;
}

/* галерея — видео по центру, боковые колонки абсолютны и выходят за края */
.showcase-stage {
    --band: clamp(420px, 60vh, 600px);
    position: relative;
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
}

.showcase-video {
    position: relative;
    z-index: 2;
    width: calc(clamp(560px, 54vw, 980px) + 22vw * var(--p));
    max-width: calc(100vw - 40px);
    height: var(--band);
    aspect-ratio: 16 / 9;
    border-radius: calc(24px - 6px * var(--p));
    overflow: hidden;
    box-shadow: 0 40px 90px rgba(28, 23, 18, .28);
    will-change: width;
}

.showcase-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    background: linear-gradient(135deg, #c9a87f, #8a6b4c);
}

/* боковые группы — вне потока (не сдвигают видео), той же высоты, вылетают за края */
.side {
    position: absolute;
    top: 50%;
    height: var(--band);
    width: clamp(280px, 24vw, 440px);
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: clamp(14px, 1.4vw, 22px);
    z-index: 1;
    opacity: calc(1 - var(--p) * 1.4);
    will-change: transform, opacity;
}

.side--left {
    left: 0;
    transform: translateY(-50%) translateX(calc(-14% - var(--p) * 42vw));
}

.side--right {
    right: 0;
    transform: translateY(-50%) translateX(calc(14% + var(--p) * 42vw));
}

.thumb {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 18px 40px rgba(28, 23, 18, .18);
}

.thumb--wide {
    grid-column: 1 / -1;
}

.thumb img,
.thumb video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ============ WORKS (Портфолио — тёмная плавающая галерея) ============ */
.works {
    position: relative;
    z-index: 4;
    background:
        radial-gradient(110% 75% at 50% -8%, rgba(255, 93, 46, .12), transparent 58%),
        var(--ink-2);
    color: var(--paper);
    padding: var(--section-pt) 0 var(--section-pb);
    border-radius: clamp(44px, 5.5vw, 88px) clamp(44px, 5.5vw, 88px) 0 0;
    margin-top: var(--panel-overlap);
    box-shadow: 0 -34px 70px rgba(0, 0, 0, .5);
}

.works-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.works-title {
    font-family: var(--display);
    font-weight: 600;
    font-size: clamp(40px, 5.2vw, 84px);
    line-height: .98;
    letter-spacing: -.02em;
}

.works-title em {
    font-style: italic;
    color: var(--ember);
}

.works-title em .w {
    color: var(--ember);
}

.works-cta {
    flex-shrink: 0;
}

/* ---- portfolio: разбросанный коллаж + параллакс на скролле ---- */
.works-gallery {
    position: relative;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: minmax(210px, auto);
    gap: clamp(24px, 2.6vw, 44px);
    padding: clamp(24px, 4vw, 64px) 0;
}

/* гигантское слово-подложка за карточками (как DISCOGRAPHY) */
.works-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 0;
    pointer-events: none;
    font-family: var(--display);
    font-weight: 600;
    font-style: italic;
    font-size: clamp(90px, 21vw, 330px);
    line-height: 1;
    letter-spacing: -.03em;
    color: rgba(244, 237, 225, .045);
    white-space: nowrap;
}

.wcard {
    position: relative;
    z-index: 1;
    grid-column: span 4;
    border-radius: var(--r-lg);
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: 0 30px 70px rgba(0, 0, 0, .5);
    transform: translateY(var(--py, 0px)) rotate(var(--rot, 0deg)) scale(var(--s, .96));
    transition: box-shadow .45s var(--ease), border-color .45s var(--ease);
    will-change: transform;
    isolation: isolate;
}

.wcard--xl {
    grid-column: span 7;
    grid-row: span 2;
    z-index: 2;
}

.wcard--md {
    grid-column: span 5;
}

.wcard--sm {
    grid-column: span 4;
}

/* reveal — только прозрачность, transform занят параллаксом/наклоном */
.wcard[data-reveal] {
    opacity: 0;
    transition: opacity .7s var(--ease);
}

.wcard[data-reveal].is-in {
    opacity: 1;
}

.wcard-media {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.wcard-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .6s var(--ease), filter .5s var(--ease);
}

.wcard::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(8, 7, 6, 0) 32%, rgba(8, 7, 6, .42) 62%, rgba(8, 7, 6, .9) 100%);
}

.wcard:hover {
    border-color: rgba(255, 93, 46, .5);
    box-shadow: 0 42px 90px rgba(0, 0, 0, .6);
}

.wcard:hover .wcard-media img {
    transform: scale(1.07);
    filter: saturate(1.12);
}

.wcard-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 3;
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: #1a0d07;
    background: var(--ember);
    padding: 6px 12px;
    border-radius: 999px;
}

.wcard-info {
    position: absolute;
    inset: auto 0 0 0;
    z-index: 2;
    padding: clamp(18px, 2vw, 28px);
    display: flex;
    flex-direction: column;
    gap: 8px;
    transform: translateY(8px);
    transition: transform .45s var(--ease);
}

.wcard:hover .wcard-info {
    transform: translateY(0);
}

.wcard-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.wcard-tags span {
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--paper);
    background: rgba(20, 14, 10, .5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(244, 237, 225, .18);
    border-radius: 999px;
    padding: 5px 10px;
}

.wcard-info h3 {
    font-family: var(--display);
    font-weight: 600;
    line-height: 1.05;
    letter-spacing: -.01em;
    font-size: clamp(20px, 1.8vw, 26px);
    color: var(--paper);
}

.wcard--xl .wcard-info h3 {
    font-size: clamp(28px, 3.2vw, 46px);
}

.wcard-info p {
    color: rgba(244, 237, 225, .78);
    font-size: 14px;
    line-height: 1.5;
    max-width: 42ch;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height .45s var(--ease), opacity .45s var(--ease);
}

.wcard:hover .wcard-info p {
    max-height: 7em;
    opacity: 1;
}

.wcard-link {
    align-self: flex-start;
    margin-top: 6px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 14px;
    color: var(--ember-soft);
    text-decoration: none;
}

.wcard-link .pl {
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border: 1px solid rgba(255, 93, 46, .5);
    border-radius: 50%;
    transition: background .3s, color .3s;
}

.wcard-link:hover .pl {
    background: var(--ember);
    color: #1a0d07;
}

/* ============ TECH STACK (Технологии — светлая секция) ============ */
.stack {
    position: relative;
    z-index: 5;
    background: var(--cream);
    color: var(--cream-ink);
    padding: var(--section-pt) 0 var(--section-pb);
    border-radius: clamp(44px, 5.5vw, 88px) clamp(44px, 5.5vw, 88px) 0 0;
    margin-top: var(--panel-overlap);
    box-shadow: 0 -34px 70px rgba(0, 0, 0, .4);
    --s-line: rgba(28, 23, 18, .12);
    --s-muted: #6f6557;
}

.stack-head {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    align-items: end;
    gap: 26px 60px;
    margin-bottom: clamp(36px, 4vw, 58px);
}

.stack-title {
    font-family: var(--display);
    font-weight: 600;
    font-size: clamp(40px, 5.2vw, 84px);
    line-height: .98;
    letter-spacing: -.02em;
}

.stack-title em {
    font-style: italic;
    color: var(--ember);
}

.stack-title em .w {
    color: var(--ember);
}

.stack-sub {
    color: var(--s-muted);
    font-size: clamp(15px, 1.2vw, 17px);
    line-height: 1.6;
    max-width: 48ch;
}

.stack-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: clamp(12px, 1.2vw, 18px);
}

.tcard {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: clamp(18px, 1.8vw, 26px);
    background: #fcf8f0;
    border: 1px solid var(--s-line);
    border-radius: 18px;
    transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
}

.tcard:hover {
    transform: translateY(-6px);
    border-color: rgba(255, 93, 46, .45);
    box-shadow: 0 22px 48px rgba(28, 23, 18, .14);
}

.tcard-ic {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    background: rgba(255, 93, 46, .1);
    color: var(--cream-ink);
    transition: background .4s var(--ease), color .4s var(--ease), transform .4s var(--ease);
}

.tcard-ic svg {
    width: 24px;
    height: 24px;
}

.tcard-ic--txt {
    font-family: var(--display);
    font-weight: 700;
    font-size: 18px;
    letter-spacing: -.02em;
}

.tcard:hover .tcard-ic {
    background: var(--ember);
    color: #1a0d07;
    transform: rotate(-6deg) scale(1.05);
}

.tcard--ai .tcard-ic {
    color: var(--ember);
}

.tcard-t b {
    display: block;
    font-family: var(--display);
    font-weight: 600;
    font-size: clamp(17px, 1.4vw, 21px);
    letter-spacing: -.01em;
}

.tcard-t i {
    font-style: normal;
    font-family: var(--mono);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--s-muted);
}

/* ============ ABOUT (Обо мне — тёмная секция) ============ */
.about {
    position: relative;
    z-index: 6;
    background:
        radial-gradient(80% 60% at 85% 0%, rgba(255, 93, 46, .12), transparent 60%),
        var(--ink);
    color: var(--paper);
    padding: var(--section-pt) 0 var(--section-pb);
    border-radius: clamp(44px, 5.5vw, 88px) clamp(44px, 5.5vw, 88px) 0 0;
    margin-top: var(--panel-overlap);
    box-shadow: 0 -34px 70px rgba(0, 0, 0, .5);
}

.about-inner {
    display: grid;
    grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
    gap: clamp(36px, 5vw, 80px);
    align-items: center;
}

.about-portrait {
    position: relative;
    aspect-ratio: 4 / 5;
    border-radius: var(--r-lg);
    overflow: hidden;
    display: grid;
    place-items: center;
    background: radial-gradient(120% 120% at 30% 20%, #2a201a, #120d0a 70%);
    border: 1px solid var(--line);
    box-shadow: 0 30px 70px rgba(0, 0, 0, .5);
}

.about-portrait img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 2;
}

.about-orbit {
    position: absolute;
    width: 70%;
    aspect-ratio: 1;
    border-radius: 50%;
    border: 1px solid rgba(255, 93, 46, .35);
    box-shadow: inset 0 0 60px rgba(255, 93, 46, .22);
    animation: spin 22s linear infinite;
}

.about-orbit::before {
    content: "";
    position: absolute;
    top: -4px;
    left: 50%;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--ember);
    box-shadow: 0 0 18px var(--ember);
}

.about-mono {
    position: relative;
    z-index: 1;
    font-family: var(--display);
    font-style: italic;
    font-weight: 600;
    font-size: clamp(80px, 12vw, 150px);
    color: var(--paper);
    line-height: 1;
}

.about-ptag {
    position: absolute;
    bottom: 16px;
    left: 16px;
    z-index: 3;
    color: var(--ember-soft);
}

.about-title {
    font-family: var(--display);
    font-weight: 600;
    font-size: clamp(36px, 4.6vw, 72px);
    line-height: 1;
    letter-spacing: -.02em;
    margin: 14px 0 6px;
}

.about-title em {
    font-style: italic;
    color: var(--ember-soft);
}

.about-title em .w {
    color: var(--ember-soft);
}

.about-role {
    margin-bottom: 22px;
}

.about-lead {
    font-size: clamp(17px, 1.5vw, 20px);
    line-height: 1.55;
    margin-bottom: 16px;
}

.about-text {
    color: var(--muted);
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 28px;
    max-width: 52ch;
}

.about-principles {
    list-style: none;
    display: grid;
    gap: 10px;
    margin-bottom: 32px;
}

.about-principles li {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-areas: "n b" "n i";
    column-gap: 16px;
    align-items: baseline;
    padding: 16px 20px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--surface);
    transition: border-color .35s var(--ease), transform .35s var(--ease), background .35s var(--ease);
}

.about-principles li:hover {
    border-color: rgba(255, 93, 46, .4);
    background: var(--surface-2);
    transform: translateX(6px);
}

.about-principles .ap-n {
    grid-area: n;
    font-family: var(--mono);
    font-size: 13px;
    color: var(--ember);
}

.about-principles b {
    grid-area: b;
    font-family: var(--display);
    font-weight: 600;
    font-size: clamp(18px, 1.6vw, 22px);
}

.about-principles i {
    grid-area: i;
    font-style: normal;
    color: var(--muted);
    font-size: 14px;
    margin-top: 2px;
}

.about-actions {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.about-stat b {
    font-family: var(--display);
    font-weight: 600;
    font-size: 30px;
    color: var(--ember-soft);
}

.about-stat span {
    font-family: var(--mono);
    font-size: 11px;
    text-transform: uppercase;
    color: var(--muted);
    margin-left: 8px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ============ ПАКЕТЫ (три двери) ============ */
.packages {
    position: relative;
    z-index: 7;
    background: var(--cream);
    color: var(--cream-ink);
    padding: var(--section-pt) 0 var(--section-pb);
    border-radius: clamp(44px, 5.5vw, 88px) clamp(44px, 5.5vw, 88px) 0 0;
    margin-top: var(--panel-overlap);
    box-shadow: 0 -34px 70px rgba(0, 0, 0, .4);
    --s-line: rgba(28, 23, 18, .12);
    --s-muted: #6f6557;
}

.pk-title {
    font-family: var(--display);
    font-weight: 600;
    font-size: clamp(34px, 5vw, 72px);
    line-height: 1.02;
    letter-spacing: -.02em;
    margin: 18px 0 clamp(40px, 5vw, 70px);
    max-width: 18ch;
}

.pk-title em {
    font-style: italic;
    color: var(--ember);
}

.pk-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(16px, 1.6vw, 22px);
    align-items: stretch;
}

.pk-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: clamp(26px, 2.4vw, 34px);
    border-radius: var(--r-lg);
    background: #fcf8f0;
    border: 1px solid var(--s-line);
    transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
}

.pk-card:hover {
    transform: translateY(-6px);
    border-color: rgba(255, 93, 46, .4);
    box-shadow: 0 24px 50px rgba(28, 23, 18, .14);
}

.pk-num {
    font-family: var(--display);
    font-weight: 700;
    font-size: clamp(40px, 4vw, 56px);
    line-height: 1;
    color: rgba(26, 23, 20, .18);
    margin-bottom: 16px;
}

.pk-name {
    font-family: var(--display);
    font-weight: 600;
    font-size: clamp(22px, 2vw, 30px);
    line-height: 1.1;
    letter-spacing: -.01em;
    margin-bottom: 6px;
}

.pk-desc {
    font-size: 14px;
    color: var(--s-muted);
    margin-bottom: 22px;
}

.pk-price {
    font-family: var(--display);
    font-weight: 600;
    font-size: clamp(26px, 2.4vw, 32px);
    margin-bottom: 26px;
}

.pk-per {
    font-size: 16px;
    font-weight: 500;
    color: var(--s-muted);
}

.pk-list {
    list-style: none;
    margin: 0 0 30px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-size: 15px;
    line-height: 1.4;
}

.pk-list li {
    position: relative;
    padding-left: 22px;
}

.pk-list li::before {
    content: "—";
    position: absolute;
    left: 0;
    color: var(--ember);
}

.pk-cta {
    display: flex;
    width: 100%;
    justify-content: center;
    margin-top: auto;
}

.pk-card--feat {
    background: var(--ink);
    color: var(--paper);
    border-color: transparent;
    box-shadow: 0 0 0 1px rgba(255, 93, 46, .3), 0 30px 70px rgba(255, 93, 46, .14);
}

.pk-card--feat .pk-num {
    color: rgba(255, 255, 255, .22);
}

.pk-card--feat .pk-desc {
    color: #a79f92;
}

.pk-card--feat .pk-list {
    color: #c9c1b4;
}

.pk-card--feat:hover {
    transform: translateY(-6px);
    box-shadow: 0 0 0 1px rgba(255, 93, 46, .5), 0 36px 80px rgba(255, 93, 46, .22);
}

.pk-badge {
    position: absolute;
    top: 22px;
    right: 22px;
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--ember);
    color: #1a0d07;
}

@media (max-width: 900px) {
    .pk-grid {
        grid-template-columns: 1fr;
        max-width: 460px;
        margin-inline: auto;
    }
}

/* ============ PERKS (Что вы получаете — анимированные карточки) ============ */
.perks {
    position: relative;
    z-index: 7;
    background: #e6dac6;
    color: var(--cream-ink);
    padding: var(--section-pt) 0 var(--section-pb);
    border-radius: clamp(44px, 5.5vw, 88px) clamp(44px, 5.5vw, 88px) 0 0;
    margin-top: var(--panel-overlap);
    box-shadow: 0 -34px 70px rgba(0, 0, 0, .4);
    --p-line: rgba(28, 23, 18, .12);
    --p-muted: #6f6557;
}

.perks-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
    margin-bottom: clamp(40px, 4vw, 56px);
}

.perks-title {
    font-family: var(--display);
    font-weight: 600;
    font-size: clamp(40px, 5.2vw, 84px);
    line-height: .98;
    letter-spacing: -.02em;
}

.perks-title em {
    font-style: italic;
    color: var(--ember);
}

.perks-cta {
    flex-shrink: 0;
}

.perks-grid {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: clamp(14px, 1.4vw, 20px);
}

.perk {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: clamp(22px, 2vw, 30px);
    background: #fcf8f0;
    border: 1px solid var(--p-line);
    border-radius: 20px;
    overflow: hidden;
    transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
}

/* reveal со стаггером через --i */
.perk[data-reveal] {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .7s var(--ease), transform .7s var(--ease);
    transition-delay: calc(var(--i, 0) * 60ms);
}

.perk[data-reveal].is-in {
    opacity: 1;
    transform: none;
}

.perk:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 93, 46, .45);
    box-shadow: 0 26px 56px rgba(28, 23, 18, .16);
}

.perk::after {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 3px;
    background: linear-gradient(90deg, var(--ember), var(--ember-soft));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .45s var(--ease);
}

.perk:hover::after {
    transform: scaleX(1);
}

.perk-ic {
    width: 50px;
    height: 50px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: rgba(255, 93, 46, .12);
    color: var(--ember);
    transition: background .4s var(--ease), color .4s var(--ease), transform .4s var(--ease);
}

.perk-ic svg {
    width: 26px;
    height: 26px;
}

.perk:hover .perk-ic {
    background: var(--ember);
    color: #fff;
    transform: rotate(-6deg);
}

.perk-num {
    position: absolute;
    top: 20px;
    right: 22px;
    font-family: var(--mono);
    font-size: 12px;
    color: var(--p-muted);
    opacity: .65;
}

.perk h3 {
    font-family: var(--display);
    font-weight: 600;
    font-size: clamp(19px, 1.6vw, 24px);
    line-height: 1.12;
    letter-spacing: -.01em;
    margin-top: 2px;
}

.perk p {
    color: var(--p-muted);
    font-size: 14.5px;
    line-height: 1.55;
}

/* ============ FAQ (тёмный фон, аккордеон) ============ */
/* ============ ГОРИЗОНТАЛЬНЫЙ PIN: про меня → пакеты → системы ============ */
/* По умолчанию (мобайл / reduced-motion) обёртки «прозрачны» — три секции идут обычным вертикальным стеком */
.hscroll,
.hscroll-sticky,
.hscroll-track {
    display: contents;
}

/* Десктоп + анимации разрешены → склеиваем три секции в горизонтальную ленту с pin-скроллом */
@media (min-width: 901px) and (prefers-reduced-motion: no-preference) {
    .hscroll {
        display: block;
        position: relative;
        z-index: 8;
        height: var(--hscroll-h, 300vh);
        margin-top: var(--panel-overlap);
    }

    .hscroll-sticky {
        display: block;
        position: sticky;
        top: 0;
        height: 100vh;
        overflow: hidden;
        border-radius: clamp(44px, 5.5vw, 88px) clamp(44px, 5.5vw, 88px) 0 0;
        box-shadow: 0 -34px 70px rgba(0, 0, 0, .5);
    }

    .hscroll-track {
        display: flex;
        width: max-content;
        height: 100%;
        will-change: transform;
        transform: translate3d(calc(var(--p, 0) * -200vw), 0, 0);
    }

    /* каждая панель — на весь экран; гасим вертикальные отступы/радиус/тень-стека (теперь соседи по горизонтали) */
    .hscroll .hpanel {
        flex: 0 0 100vw;
        width: 100vw;
        height: 100%;
        min-height: 0;
        margin: 0;
        border-radius: 0;
        box-shadow: none;
        /* шапка к этому моменту уже в .scrolled (≈64px), плюс отступ масштабируется под высоту экрана */
        padding-top: clamp(56px, 7vh, 84px);
        padding-bottom: 2vh;
        display: flex;
        flex-direction: column;
        justify-content: center;
        overflow-x: hidden;
        overflow-y: auto;
    }

    .hscroll .hpanel>.container {
        width: 100%;
    }

    /* в полноэкранном режиме ужимаем крупный заголовок «Пакеты», чтобы три карточки влезали без внутреннего скролла */
    .hscroll #packages .pk-title {
        margin: 2px 0 clamp(16px, 2.2vw, 28px);
    }

    /* контент панелей 2–3 стоит вне вьюпорта (translateX) — IO/scroll-reveal их не «зажжёт», показываем сразу */
    .hscroll .hpanel [data-reveal] {
        opacity: 1;
        transform: none;
    }

    .hscroll .hpanel .reveal-text .w {
        opacity: 1;
    }
}

/* Невысокие экраны (ноуты 768/720) — ужимаем ритм контента, чтобы панели влезали целиком без внутреннего скролла */
@media (min-width: 901px) and (max-height: 820px) and (prefers-reduced-motion: no-preference) {
    .hscroll .hpanel {
        padding-top: clamp(44px, 5.5vh, 60px);
        padding-bottom: 1.2vh;
    }

    /* про меня */
    .hscroll #about .about-title {
        font-size: clamp(30px, 3.4vw, 48px);
    }

    .hscroll #about .about-role {
        margin-bottom: 12px;
    }

    .hscroll #about .about-lead {
        font-size: clamp(15px, 1.3vw, 18px);
        margin-bottom: 10px;
    }

    .hscroll #about .about-text {
        margin-bottom: 14px;
    }

    .hscroll #about .about-principles {
        gap: 7px;
        margin-bottom: 16px;
    }

    /* пакеты */
    .hscroll #packages .pk-title {
        font-size: clamp(24px, 2.8vw, 38px);
    }

    .hscroll #packages .pk-card {
        padding: clamp(16px, 1.8vw, 22px);
    }

    .hscroll #packages .pk-desc {
        margin-bottom: 10px;
    }

    .hscroll #packages .pk-price {
        font-size: clamp(22px, 2vw, 28px);
        margin-bottom: 12px;
    }

    .hscroll #packages .pk-list {
        margin-bottom: 14px;
    }
}

/* ============ ЭКСКЛЮЗИВНЫЕ РЕШЕНИЯ (drill-in) ============ */
.exclusive {
    position: relative;
    z-index: 8;
    background: #e6dac6;
    color: var(--cream-ink);
    padding: var(--section-pt) 0 var(--section-pb);
    border-radius: clamp(44px, 5.5vw, 88px) clamp(44px, 5.5vw, 88px) 0 0;
    margin-top: var(--panel-overlap);
    box-shadow: 0 -34px 70px rgba(0, 0, 0, .4);
    --s-line: rgba(28, 23, 18, .12);
    --s-muted: #6f6557;
}

.xinner {
    max-width: 900px;
}

.xtitle {
    font-family: var(--display);
    font-weight: 600;
    font-size: clamp(30px, 4vw, 56px);
    line-height: 1.04;
    letter-spacing: -.02em;
    margin: 18px 0 14px;
}

.xtitle em {
    font-style: italic;
    color: var(--ember);
}

.xsub {
    font-size: clamp(15px, 1.2vw, 18px);
    line-height: 1.5;
    color: var(--s-muted);
    max-width: 52ch;
    margin-bottom: clamp(32px, 4vw, 50px);
}

.xlist {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.xcard {
    background: #fbf7f0;
    border: 1px solid var(--s-line);
    border-radius: var(--r-lg);
    overflow: hidden;
}

.xcard-sum {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: clamp(20px, 2vw, 28px);
}

.xcard-sum::-webkit-details-marker {
    display: none;
}

.xcard-ic {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 13px;
    display: grid;
    place-items: center;
    font-size: 22px;
    background: rgba(255, 93, 46, .1);
}

.xcard-tt {
    flex: 1;
}

.xcard-tt h3 {
    font-family: var(--display);
    font-weight: 600;
    font-size: clamp(19px, 1.8vw, 25px);
    line-height: 1.15;
    letter-spacing: -.01em;
}

.xcard-tt p {
    font-size: 15px;
    color: var(--s-muted);
    margin-top: 4px;
}

.xcard-chev {
    flex-shrink: 0;
    font-size: 26px;
    line-height: 1;
    color: var(--ember);
    transition: transform .25s var(--ease);
    margin-top: 2px;
}

.xcard[open] .xcard-chev {
    transform: rotate(45deg);
}

.xcard-body {
    display: grid;
    gap: 20px;
    padding: 6px clamp(20px, 2vw, 28px) clamp(20px, 2vw, 28px);
    border-top: 1px solid var(--s-line);
}

/* закрытый details: display:grid перебивает нативное скрытие — прячем явно */
.xcard:not([open]) .xcard-body {
    display: none;
}

.xcard[open] .xcard-body {
    animation: xfade .3s var(--ease);
}

@keyframes xfade {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

.xlabel {
    display: block;
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--ember);
    margin-bottom: 8px;
}

.xcol p {
    color: var(--s-muted);
    line-height: 1.55;
}

.xsteps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
    counter-reset: xstep;
}

.xsteps li {
    counter-increment: xstep;
    position: relative;
    padding-left: 26px;
    color: var(--s-muted);
    line-height: 1.4;
}

.xsteps li::before {
    content: counter(xstep) " ·";
    position: absolute;
    left: 0;
    color: var(--ember);
    font-family: var(--mono);
}

.xcta {
    justify-self: start;
    margin-top: 4px;
}

/* ============ FAQ ============ */
/* ============ НОВОСТИ ============ */
.news {
    position: relative;
    z-index: 9;
    background: var(--ink);
    color: var(--paper);
    padding: var(--section-pt) 0 var(--section-pb);
    border-radius: clamp(44px, 5.5vw, 88px) clamp(44px, 5.5vw, 88px) 0 0;
    margin-top: var(--panel-overlap);
    box-shadow: 0 -34px 70px rgba(0, 0, 0, .5);
}

.news-head {
    margin-bottom: clamp(32px, 4vw, 52px);
}

.news-title {
    font-family: var(--display);
    font-weight: 600;
    font-size: clamp(34px, 5vw, 72px);
    line-height: 1;
    letter-spacing: -.02em;
    margin-top: 8px;
}

.news-title em {
    font-style: italic;
    color: var(--ember-soft);
}

.news-title em .w {
    color: var(--ember-soft);
}

.news-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(16px, 1.8vw, 24px);
}

.news-card {
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    overflow: hidden;
    transition: transform .35s var(--ease), border-color .35s var(--ease);
}

.news-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 93, 46, .4);
}

.news-media {
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.news-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.news-body {
    padding: clamp(20px, 2vw, 26px);
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.news-date {
    font-family: var(--mono);
    font-size: 13px;
    letter-spacing: .04em;
    color: var(--ember);
}

.news-card-title {
    font-family: var(--display);
    font-weight: 600;
    font-size: clamp(19px, 1.6vw, 23px);
    line-height: 1.2;
}

.news-text {
    color: var(--muted);
    font-size: 15px;
    line-height: 1.55;
}

.news-text p {
    margin: 0 0 8px;
}

.news-text> :last-child {
    margin-bottom: 0;
}

@media (max-width: 900px) {
    .news-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .news-list {
        grid-template-columns: 1fr;
    }
}

.faq {
    position: relative;
    z-index: 9;
    background: var(--ink-2);
    color: var(--paper);
    padding: var(--section-pt) 0 var(--section-pb);
    border-radius: clamp(44px, 5.5vw, 88px) clamp(44px, 5.5vw, 88px) 0 0;
    margin-top: var(--panel-overlap);
    box-shadow: 0 -34px 70px rgba(0, 0, 0, .55);
    --f-line: rgba(244, 237, 225, .12);
}

.faq-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
    margin-bottom: 44px;
}

.faq-title {
    font-family: var(--display);
    font-weight: 600;
    font-size: clamp(40px, 5.2vw, 84px);
    line-height: .98;
    letter-spacing: -.02em;
}

.faq-title em {
    font-style: italic;
    color: var(--ember-soft);
}

.faq-title em .w {
    color: var(--ember-soft);
}

.faq-cta {
    flex-shrink: 0;
}

.faq-cat {
    margin-bottom: 34px;
}

.faq-cat-title {
    font-family: var(--display);
    font-weight: 600;
    font-size: clamp(20px, 2.2vw, 27px);
    margin-bottom: 14px;
}

.faq-item {
    background: var(--surface);
    border: 1px solid var(--f-line);
    border-radius: 16px;
    margin-bottom: 12px;
    overflow: hidden;
    transition: border-color .25s, box-shadow .25s, background .25s;
}

.faq-item[open] {
    border-color: rgba(255, 93, 46, .4);
    background: var(--surface-2);
    box-shadow: 0 18px 44px rgba(0, 0, 0, .35);
}

.faq-item summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    font-weight: 700;
    font-size: clamp(16px, 1.7vw, 19px);
    line-height: 1.35;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-ic {
    margin-left: auto;
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 18px;
    font-weight: 400;
    background: rgba(255, 93, 46, .12);
    color: var(--ember);
    transition: transform .3s var(--ease), background .3s;
}

.faq-item[open] .faq-ic {
    transform: rotate(45deg);
    background: var(--ember);
    color: #fff;
}

.faq-a {
    padding: 0 24px 22px;
}

.faq-a p {
    color: var(--muted);
    font-size: 15px;
    line-height: 1.65;
    margin-bottom: 10px;
}

.faq-a p:last-child {
    margin-bottom: 0;
}

.faq-a strong {
    color: var(--paper);
    font-weight: 700;
}

@media (max-width: 560px) {
    .faq-item summary {
        padding: 16px 18px;
        gap: 12px;
    }

    .faq-a {
        padding: 0 18px 18px;
    }
}

/* ============ CTA ============ */
.cta {
    position: relative;
    z-index: 10;
    overflow: hidden;
    background: var(--ember);
    color: var(--cream-ink);
    padding: var(--section-pt) 0 var(--section-pt);
    border-radius: clamp(44px, 5.5vw, 88px) clamp(44px, 5.5vw, 88px) 0 0;
    margin-top: var(--panel-overlap);
    box-shadow: 0 -34px 70px rgba(0, 0, 0, .3);
}

.cta-mark {
    position: absolute;
    bottom: -10vw;
    right: -1vw;
    z-index: 0;
    pointer-events: none;
    font-family: var(--display);
    font-style: italic;
    font-weight: 600;
    font-size: clamp(260px, 40vw, 660px);
    line-height: .7;
    color: rgba(26, 13, 7, .12);
}

.cta-inner {
    position: relative;
    z-index: 2;
    text-align: center;
}

.eyebrow--light {
    color: rgba(26, 13, 7, .65);
}

.eyebrow--light .dot {
    background: var(--cream-ink);
    box-shadow: 0 0 0 4px rgba(26, 13, 7, .18);
}

.cta-title {
    font-family: var(--display);
    font-weight: 600;
    font-size: clamp(44px, 7vw, 110px);
    line-height: .98;
    letter-spacing: -.025em;
    margin: 22px 0 40px;
}

.cta-title em {
    font-style: italic;
    color: var(--cream-ink);
}

.cta-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-start {
    cursor: pointer;
}

/* ---- Модалка ---- */
.modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: grid;
    place-items: center;
    padding: 20px;
}

.modal[hidden] {
    display: none;
}

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 8, 6, .6);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    animation: fadeIn .3s var(--ease);
}

.modal-box {
    position: relative;
    z-index: 1;
    width: min(680px, 100%);
    max-height: 90dvh;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    background: #fdf9f1;
    color: var(--cream-ink);
    border-radius: 24px;
    padding: clamp(26px, 4vw, 50px);
    box-shadow: 0 40px 100px rgba(0, 0, 0, .5);
    animation: popIn .4s var(--ease);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(26, 13, 7, .16);
    background: transparent;
    color: var(--cream-ink);
    font-size: 15px;
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: background .25s, transform .25s;
}

.modal-close:hover {
    background: rgba(26, 13, 7, .07);
    transform: rotate(90deg);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes popIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(.98);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

/* ---- Пошаговая форма (wizard) ---- */
.wizard {
    color: var(--cream-ink);
}

.wizard-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.wizard-counter {
    color: var(--w-muted, #6f6557);
}

.wizard-back-link {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--w-muted, #6f6557);
    transition: color .3s;
}

.wizard-back-link:hover {
    color: var(--ember);
}

.wizard-progress {
    height: 4px;
    border-radius: 999px;
    background: rgba(26, 13, 7, .1);
    overflow: hidden;
    margin-bottom: 34px;
}

.wizard-progress span {
    display: block;
    height: 100%;
    width: 25%;
    background: var(--ember);
    border-radius: 999px;
    transition: width .45s var(--ease);
}

.step {
    border: none;
    padding: 0;
    margin: 0;
    display: none;
}

.step.is-active {
    display: block;
    animation: stepIn .45s var(--ease);
}

@keyframes stepIn {
    from {
        opacity: 0;
        transform: translateY(14px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

.step h3 {
    font-family: var(--display);
    font-weight: 600;
    font-size: clamp(24px, 3vw, 34px);
    line-height: 1.1;
    margin-bottom: 22px;
    letter-spacing: -.01em;
}

.opts {
    display: grid;
    gap: 12px;
}

.opts--row {
    grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
}

.opt {
    position: relative;
    cursor: pointer;
}

.opt input {
    position: absolute;
    opacity: 0;
    inset: 0;
    cursor: pointer;
}

.opt-b {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 18px 20px;
    border: 1.5px solid rgba(26, 13, 7, .16);
    border-radius: 16px;
    font-weight: 600;
    font-size: 17px;
    transition: border-color .25s, background .25s, transform .25s;
}

.opts--row .opt-b {
    align-items: center;
    text-align: center;
    padding: 18px 12px;
}

.opt-b small {
    font-family: var(--sans);
    font-weight: 500;
    font-size: 13px;
    color: var(--w-muted, #6f6557);
}

.opt:hover .opt-b {
    border-color: rgba(26, 13, 7, .4);
}

.opt input:checked+.opt-b {
    border-color: var(--ember);
    background: rgba(255, 93, 46, .08);
    box-shadow: 0 0 0 3px rgba(255, 93, 46, .16);
}

.field {
    width: 100%;
    padding: 16px 18px;
    font: inherit;
    font-size: 17px;
    color: var(--cream-ink);
    background: #fff;
    border: 1.5px solid rgba(26, 13, 7, .16);
    border-radius: 14px;
    margin-bottom: 12px;
    transition: border-color .25s, box-shadow .25s;
}

.field::placeholder {
    color: #a89c8a;
}

.field:focus {
    outline: none;
    border-color: var(--ember);
    box-shadow: 0 0 0 3px rgba(255, 93, 46, .16);
}

.field.invalid,
.opts.invalid .opt-b {
    border-color: #d33;
}

textarea.field {
    resize: vertical;
    min-height: 92px;
    font-family: var(--sans);
    line-height: 1.5;
}

/* ============ ПРОСТАЯ ФОРМА ЗАЯВКИ (лид) ============ */
.lead-form {
    --lf-line: rgba(26, 13, 7, .16);
    --lf-muted: #7a6f5e;
}

.lead-title {
    font-family: var(--display);
    font-weight: 600;
    font-size: clamp(26px, 3.2vw, 36px);
    line-height: 1.08;
    letter-spacing: -.01em;
    padding-right: 36px;
}

.lead-sub {
    color: var(--lf-muted);
    font-size: 15px;
    line-height: 1.5;
    margin: 10px 0 26px;
}

.lead-field {
    margin-bottom: 22px;
}

.lead-label {
    display: block;
    font-family: var(--display);
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 11px;
}

.lead-field .field {
    margin-bottom: 0;
}

/* тип вопроса — карточки-радио 2×2 */
.lead-opts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.lead-opt {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 16px;
    border: 1.5px solid var(--lf-line);
    border-radius: 14px;
    background: #fff;
    cursor: pointer;
    font-size: 15px;
    line-height: 1.25;
    transition: border-color .2s, background .2s, box-shadow .2s;
}

.lead-opt input {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    flex: 0 0 auto;
    margin: 0;
    border: 2px solid var(--lf-line);
    border-radius: 50%;
    display: grid;
    place-items: center;
    transition: border-color .2s;
}

.lead-opt input::after {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--ember);
    transform: scale(0);
    transition: transform .18s var(--ease);
}

.lead-opt input:checked {
    border-color: var(--ember);
}

.lead-opt input:checked::after {
    transform: scale(1);
}

.lead-opt:hover {
    border-color: rgba(255, 93, 46, .55);
}

.lead-opt:has(input:checked) {
    border-color: var(--ember);
    background: rgba(255, 93, 46, .06);
    box-shadow: 0 0 0 1px var(--ember) inset;
}

.lead-opts.invalid .lead-opt {
    border-color: #d9534f;
}

/* контакты: тип связи + значение */
.contacts {
    display: grid;
    gap: 10px;
}

.contact-row {
    display: flex;
    gap: 8px;
    align-items: stretch;
}

.contact-row .field {
    margin-bottom: 0;
}

.contact-kind {
    flex: 0 0 140px;
    width: 140px;
    cursor: pointer;
}

.contact-val {
    flex: 1 1 auto;
    min-width: 0;
}

.contact-del {
    flex: 0 0 auto;
    width: 54px;
    align-self: stretch;
    border-radius: 14px;
    border: 1.5px solid var(--lf-line);
    background: #fff;
    color: #9a8d79;
    cursor: pointer;
    font-size: 15px;
    transition: border-color .2s, color .2s, background .2s;
}

.contact-del:hover {
    border-color: #d9534f;
    color: #d9534f;
    background: rgba(217, 83, 79, .06);
}

.contacts.invalid .contact-val {
    border-color: #d9534f;
}

/* «+ добавить ещё» — компактная ссылка-кнопка */
.lead-form .add-row {
    margin-top: 10px;
}

/* галочки (доп. информация + согласие) — кастомный чекбокс */
.lead-check {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    cursor: pointer;
    font-size: 14.5px;
    line-height: 1.45;
    color: #5f5547;
}

.lead-check input {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    flex: 0 0 auto;
    margin: 1px 0 0;
    border: 2px solid var(--lf-line);
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: border-color .2s, background .2s;
}

.lead-check input:checked {
    border-color: var(--ember);
    background: var(--ember);
}

.lead-check input:checked::after {
    content: "✓";
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
}

.lead-check a {
    color: var(--ember);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.lead-check.invalid {
    color: #d9534f;
}

.lead-check.invalid input {
    border-color: #d9534f;
}

/* «хочу указать доп. информацию» — крупнее, как переключатель */
.lead-check--info {
    font-family: var(--display);
    font-weight: 600;
    font-size: 15px;
    color: var(--cream-ink);
    margin-top: 4px;
}

.lead-more {
    margin-top: 12px;
}

.lead-more .field {
    margin-bottom: 0;
}

.lead-consent {
    margin-top: 18px;
}

.lead-submit {
    width: 100%;
    margin-top: 18px;
    justify-content: center;
    font-size: 17px;
    padding-top: 17px;
    padding-bottom: 17px;
}

.lead-notice {
    color: #8a7e6c;
    font-size: 13px;
    line-height: 1.45;
    text-align: center;
    margin-top: 12px;
}

.lead-done {
    text-align: center;
    padding: 24px 0;
}

@media (max-width: 560px) {
    .lead-opts {
        grid-template-columns: 1fr;
    }

    .contact-kind {
        flex-basis: 116px;
        width: 116px;
    }
}

.hint {
    color: var(--w-muted, #6f6557);
    font-size: 14px;
    margin-top: 6px;
}

.hint--top {
    margin: -6px 0 20px;
}

/* счётчик символов */
.char-count {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.char-count.short {
    color: #c0392b;
    font-weight: 600;
}

/* переключатель «рассказать об услугах» */
.svc-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 16px;
    margin: 4px 0 4px;
}

.svc-toggle input {
    width: 18px;
    height: 18px;
}

.svc-toggle small {
    color: var(--w-muted, #6f6557);
}

.svc-extra {
    margin-top: 14px;
}

/* мульти-инпут (услуги) */
.multi {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.multi-row {
    position: relative;
    display: flex;
}

.multi-row .field {
    margin-bottom: 0;
    flex: 1;
    padding-right: 40px;
}

.multi.invalid .field {
    border-color: #d33;
}

.multi-del {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    border: none;
    background: none;
    color: var(--w-muted, #6f6557);
    font-size: 14px;
    cursor: pointer;
    border-radius: 8px;
}

.multi-del:hover {
    color: #d33;
    background: rgba(221, 51, 51, .08);
}

.add-row {
    margin: 12px 0 4px;
    background: none;
    cursor: pointer;
    font: inherit;
    font-weight: 600;
    font-size: 14px;
    color: var(--cream-ink);
    border: 1.5px dashed rgba(26, 13, 7, .25);
    border-radius: 12px;
    padding: 11px 16px;
    transition: border-color .25s, color .25s;
}

.add-row:hover {
    border-color: var(--ember);
    color: var(--ember);
}

/* предупреждение в шаге */
.warn {
    margin-top: 16px;
    padding: 13px 15px;
    border-radius: 12px;
    background: rgba(255, 93, 46, .1);
    border: 1px solid rgba(255, 93, 46, .3);
    color: var(--cream-ink);
    font-size: 13px;
    line-height: 1.5;
}

.warn[hidden] {
    display: none;
}

/* honeypot — за пределы экрана (бот видит, человек нет) */
.hp {
    position: absolute;
    left: -9999px;
    top: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.notice {
    margin-top: 14px;
    padding: 14px 16px;
    border-radius: 12px;
    background: rgba(255, 93, 46, .08);
    border: 1px solid rgba(255, 93, 46, .25);
    font-size: 14px;
    line-height: 1.5;
    color: var(--cream-ink);
}

.notice b {
    font-weight: 700;
}

/* обязательная галка оферты */
.offer-accept {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    margin-top: 16px;
    padding: 12px 14px;
    border: 1.5px solid rgba(26, 13, 7, .16);
    border-radius: 12px;
    font-size: 13px;
    line-height: 1.45;
    color: var(--cream-ink);
    cursor: pointer;
    transition: border-color .25s, background .25s;
}

.offer-accept input {
    width: 18px;
    height: 18px;
    margin-top: 1px;
    accent-color: var(--ember);
    flex-shrink: 0;
    cursor: pointer;
}

.offer-accept a {
    color: var(--ember);
    text-decoration: underline;
}

.offer-accept.invalid {
    border-color: #d33;
    background: rgba(221, 51, 51, .06);
}

/* фиксированный баннер согласия (снизу справа) */
.cookie {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 9990;
    width: min(360px, calc(100vw - 32px));
    background: var(--surface);
    color: var(--paper);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 20px 22px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .5);
    animation: popIn .5s var(--ease);
}

.cookie[hidden] {
    display: none;
}

.cookie p {
    font-size: 14px;
    line-height: 1.5;
    color: var(--muted);
    margin-bottom: 16px;
}

.cookie a {
    color: var(--ember-soft);
    text-decoration: underline;
}

.cookie-actions {
    display: flex;
    gap: 10px;
}

.cookie-actions .btn {
    flex: 1;
    justify-content: center;
    cursor: pointer;
}

@media (max-width: 560px) {
    .cookie {
        right: 12px;
        left: 12px;
        bottom: 12px;
    }
}

/* загрузка файла */
.file {
    display: inline-flex;
    margin-top: 10px;
    cursor: pointer;
}

.file-btn {
    font-size: 14px;
    font-weight: 600;
    color: var(--ember);
    border: 1.5px dashed rgba(255, 93, 46, .5);
    border-radius: 12px;
    padding: 11px 16px;
    transition: background .25s, border-color .25s;
}

.file:hover .file-btn {
    background: rgba(255, 93, 46, .08);
    border-color: var(--ember);
}

/* сводка перед оплатой */
.review {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 10px 20px;
    border: 1px solid rgba(26, 13, 7, .14);
    border-radius: 16px;
    padding: 20px 22px;
    margin-bottom: 18px;
}

.review dt {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--w-muted, #6f6557);
    align-self: start;
    padding-top: 2px;
}

.review dd {
    font-weight: 600;
    font-size: 15px;
    line-height: 1.4;
}

.step--done {
    text-align: center;
    padding: 16px 0;
}

.done-mark {
    width: 64px;
    height: 64px;
    margin: 0 auto 18px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 30px;
    background: var(--ember);
    color: #fff;
}

.step--done p {
    color: var(--w-muted, #6f6557);
    max-width: 44ch;
    margin: 0 auto;
    font-size: 16px;
}

.wizard-nav {
    display: flex;
    gap: 12px;
    justify-content: space-between;
    margin-top: 34px;
}

.wizard-nav .btn {
    cursor: pointer;
}

.btn[hidden] {
    display: none;
}

.wizard-nav #nextBtn,
.wizard-nav #submitBtn {
    margin-left: auto;
}

.wizard-nav.is-hidden {
    display: none;
}

/* ============ FOOTER ============ */
.site-footer {
    position: relative;
    z-index: 9;
    background: var(--ink-2);
    border-top: 1px solid var(--line);
    padding: 54px 0;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 16px;
}

.footer-brand .mono {
    color: var(--muted);
    line-height: 1.5;
}

.footer-links {
    display: flex;
    gap: 28px;
}

.footer-links a {
    color: var(--muted);
    text-decoration: none;
    font-weight: 600;
    transition: color .3s;
}

.footer-links a:hover {
    color: var(--ember-soft);
}

/* ============ SECTION LABEL (единая точка для каждого блока) ============ */
.section-label {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 22px;
    font-family: var(--mono);
    font-size: 15px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--paper);
}

.section-label .dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--ember);
    box-shadow: 0 0 0 4px rgba(255, 93, 46, .18);
    animation: pulse 2.4s var(--ease) infinite;
}

.section-label .ar {
    color: var(--ember);
}

.section-label--dark {
    color: var(--cream-ink);
}

.section-label--dark .dot {
    box-shadow: 0 0 0 4px rgba(26, 13, 7, .14);
}

.section-label--dark .ar {
    color: var(--cream-ink);
}

/* ============ REVEAL TEXT (слова зажигаются на подходе) ============ */
.reveal-text .w {
    display: inline-block;
    opacity: .24;
    transition: opacity .55s var(--ease);
}

.reveal-text .w.lit {
    opacity: 1;
}

.reveal-text em .w {
    color: var(--ember-soft);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1100px) {
    .side {
        display: none;
    }

    .showcase {
        height: auto;
    }

    .showcase-intro {
        position: static;
    }

    /* .container перетирает padding-top интро (shorthand padding:0 18px) → возвращаем
       с большей специфичностью: иначе «Для кого» и заголовок уезжают под тёмную секцию
       сверху (наезд -52px) и пропадает отступ */
    .showcase .showcase-intro {
        padding-top: clamp(60px, 9vw, 84px);
    }

    .showcase-sticky {
        position: static;
        height: auto;
        padding: 40px 0 90px;
    }

    .showcase-stage {
        padding: 0 22px;
    }

    .showcase-video {
        width: 100%;
        height: auto;
    }
}

@media (max-width: 1000px) {
    .works-gallery {
        grid-template-columns: repeat(6, 1fr);
    }

    .wcard--xl {
        grid-column: span 6;
        grid-row: auto;
        min-height: 320px;
    }

    .wcard--md {
        grid-column: span 3;
    }

    .wcard--sm {
        grid-column: span 2;
    }

    .stack-head {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .stack-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .perks-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .about-inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-portrait {
        max-width: 340px;
        width: 100%;
        margin: 0 auto;
    }
}

@media (max-width: 900px) {
    .container {
        padding: 0 22px;
    }

    .showcase-stage {
        padding: 0 22px;
    }

    .hero-grid {
        grid-template-columns: 1fr;
    }

    .hero-foot {
        flex-direction: column;
        align-items: flex-start;
        gap: 28px;
    }

    .status {
        display: none;
    }

    .stack-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .perks-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 18px;
    }

    .showcase-stage {
        padding: 0 18px;
    }

    .site-header {
        padding: 18px 0;
    }

    .burger {
        display: none;
    }

    /* меню пока без выпадашки */
    /* мягче скругление и наезд панелей на узких экранах */
    .showcase,
    .works,
    .stack,
    .about,
    .perks,
    .packages,
    .exclusive,
    .faq,
    .cta {
        border-radius: 30px 30px 0 0;
        margin-top: -52px;
    }

    .showcase-sticky {
        padding: 60px 0 72px;
    }

    .works,
    .stack,
    .about,
    .perks,
    .packages,
    .exclusive,
    .faq {
        padding: 80px 0 90px;
    }

    /* единый размер заголовков секций на мобиле (чтобы не «прыгали») */
    .showcase-title,
    .works-title,
    .stack-title,
    .about-title,
    .faq-title,
    .pk-title,
    .xtitle,
    .ai-title {
        font-size: clamp(26px, 7vw, 33px);
    }

    .cta {
        padding: 96px 0 84px;
    }

    .video-overlay {
        left: 16px;
        right: 16px;
        top: 16px;
        max-width: none;
        padding: 16px 18px;
    }

    .video-overlay p {
        font-size: 15px;
    }
}

@media (max-width: 640px) {
    .works-gallery {
        grid-template-columns: 1fr;
    }

    .wcard--xl,
    .wcard--md,
    .wcard--sm {
        grid-column: span 1;
        grid-row: auto;
        min-height: 240px;
    }

    /* на мобиле — без наклонов и параллакса (ровная колонка) */
    .wcard {
        transform: none;
    }

    .works-bg {
        font-size: clamp(64px, 26vw, 130px);
    }

    .stack-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .perks-grid {
        grid-template-columns: 1fr;
    }

    .about-actions {
        gap: 16px;
    }

    .hero-actions {
        width: 100%;
        flex-direction: column;
    }

    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 560px) {
    .header-actions {
        gap: 10px;
    }

    /* шапка: ровный ряд — лого, кнопка и тумблер одной высоты (40px) */
    .logo img {
        height: 34px;
        display: block;
    }

    .header-actions .btn--sm {
        height: 40px;
        padding: 0 18px;
        font-size: 13px;
    }

    .header-actions .btn .ar {
        display: none;
    }

    .theme-toggle {
        width: 40px;
        height: 40px;
    }

    .theme-toggle svg {
        width: 18px;
        height: 18px;
    }

    .logo-mark {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .btn {
        padding: 14px 20px;
        font-size: 15px;
    }

    .btn--sm {
        padding: 10px 15px;
        font-size: 13px;
    }

    .hero {
        padding: 36px 0 56px;
    }

    .hero-title {
        font-family: var(--display);
        font-size: clamp(26px, 6.8vw, 42px);
        font-weight: 600;
        line-height: 1;
        letter-spacing: -.025em;
        margin: 22px 0 0;
        text-wrap: balance;
    }

    .hero-niches-row {
        font-family: var(--display);
        font-weight: 600;
        letter-spacing: -.01em;
        font-size: clamp(18px, 3.4vw, 46px);
        line-height: 1.05;
        color: var(--ember-soft);
        display: flex;
        flex-wrap: wrap;
        align-items: baseline;
        gap: 4px 14px;
    }

    .hero-mark {
        font-size: 44vw;
        opacity: .6;
        top: -1vw;
    }

    .hero-title {
        margin-top: 18px;
    }

    .hero-niches {
        margin-top: 20px;
    }

    .hero-niches-row {
        font-size: clamp(18px, 5vw, 24px);
        gap: 4px 12px;
    }

    .hero-foot {
        margin-top: 30px;
        gap: 18px;
    }

    .price-note {
        font-size: 13px;
    }

    .hero-sub {
        font-size: 17px;
    }

    .card--feature {
        min-height: auto;
    }

    .card-media {
        min-height: 190px;
    }

    .orbit {
        width: 140px;
        height: 140px;
    }

    .card--video {
        min-height: 300px;
    }

    .play-pill {
        width: 52px;
        height: 52px;
    }

    .marquee {
        padding: 20px 0;
    }

    .perk {
        padding: 22px 20px;
    }

    /* модалка / форма */
    .modal {
        padding: 12px;
    }

    .modal-box {
        padding: 26px 20px;
        border-radius: 20px;
        max-height: 92vh;
    }

    .modal-close {
        top: 12px;
        right: 12px;
        width: 36px;
        height: 36px;
    }

    .opts--row {
        grid-template-columns: 1fr;
    }

    .wizard-nav {
        gap: 8px;
    }

    .wizard-nav .btn {
        padding: 13px 16px;
        font-size: 14px;
    }

    .review {
        grid-template-columns: 1fr;
        gap: 2px 0;
        padding: 16px 18px;
    }

    .review dt {
        padding-top: 12px;
    }

    .review dt:first-child {
        padding-top: 0;
    }

    .footer-links {
        flex-wrap: wrap;
        gap: 14px 22px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .marquee-track {
        animation: none;
    }

    .orbit {
        animation: none;
    }

    .about-orbit {
        animation: none;
    }

    .wcard,
    .wcard[data-reveal],
    .wcard[data-reveal].is-in {
        opacity: 1;
        transform: scale(1);
    }

    .perk[data-reveal] {
        transition-delay: 0ms;
    }

    .showcase {
        height: auto;
    }

    .showcase-sticky {
        position: static;
        height: auto;
        padding: 80px 0;
    }

    .side {
        transform: translateY(-50%) !important;
        opacity: 1 !important;
    }

    .showcase-video {
        width: 70%;
    }

    [data-reveal] {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .accent-stroke::after {
        animation: none;
        transform: scaleX(1);
    }
}