/* ============================================
   Главная (с 10.2026). Первый экран: WebGL-фон + наклонная стена из
   обложек проектов, дальше наслаивающиеся избранные кейсы, сетка работ
   с фильтром, услуги, этапы, контакты.
   Палитра и шрифты — те же, что в style.css (Noble Black + Cloud Dancer).
   Без JS всё видно и работает; эффекты — надстройка (home.js).
   ============================================ */

.home {
    --bg-2: #111111;
    --card: #131314;
    --line: color-mix(in srgb, var(--cloud) 9%, transparent);
    --line-2: color-mix(in srgb, var(--cloud) 16%, transparent);
    --muted: color-mix(in srgb, var(--cloud) 64%, transparent);
    --muted-2: color-mix(in srgb, var(--cloud) 42%, transparent);
    --violet: #7B6CF6;
    --blue: #3D7BFF;
    --mono: 'JetBrains Mono', ui-monospace, monospace;
    --ease: cubic-bezier(0.22, 0.8, 0.18, 1);
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --r: 22px;
    --bar: 72px;
    --gut: clamp(16px, 4vw, 40px);
    font-size: 16px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}
.home .wrap {
    width: 100%;
    max-width: 1360px;
    margin: 0 auto;
    padding: 0 var(--gut);
}
.home h1, .home h2, .home h3 { font-weight: 600; letter-spacing: -0.02em; text-wrap: balance; }
.home p { text-wrap: pretty; }
.home :focus-visible { outline: 2px solid var(--cloud); outline-offset: 3px; border-radius: 6px; }
.home ::selection { background: var(--violet); color: #fff; }

.eyebrow {
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted-2);
    margin-bottom: 18px;
}

/* === Кнопки === */
.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 52px;
    padding: 0 26px;
    border-radius: 999px;
    border: 1px solid transparent;
    font: 600 15px/1 'Space Grotesk', sans-serif;
    color: var(--cloud);
    background: none;
    cursor: pointer;
    white-space: nowrap;
    transition: background .25s, border-color .25s, color .25s, box-shadow .3s;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--light { background: var(--cloud); color: var(--black); }
.btn--light:hover { background: #fff; box-shadow: 0 10px 40px -10px color-mix(in srgb, var(--violet) 70%, transparent); }
.btn--ghost { border-color: var(--line-2); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.btn--ghost:hover { border-color: var(--cloud); background: color-mix(in srgb, var(--cloud) 6%, transparent); }
.btn--sm { min-height: 40px; padding: 0 18px; font-size: 14px; }
.btn--sm svg { width: 16px; height: 16px; }
.btn--lg { min-height: 58px; padding: 0 30px; font-size: 16px; }

/* Мессенджеры: при наведении — фирменный цвет Telegram и MAX */
.home { --tg: #2AABEE; --max: #7C5CFF; }
.btn--ghost.is-tg:hover, .rq__msg.is-tg:hover { border-color: var(--tg); color: var(--tg); background: color-mix(in srgb, var(--tg) 10%, transparent); }
.btn--ghost.is-max:hover, .rq__msg.is-max:hover { border-color: var(--max); color: #B9A8FF; background: color-mix(in srgb, var(--max) 12%, transparent); }

/* === Верхняя панель: над первым экраном — прозрачная, дальше — плавающая стеклянная капсула.
   Текущий раздел отмечен красной точкой после названия (home.js); на телефоне — второй строкой под названием. === */
.h-bar {
    position: fixed;
    inset: 0 0 auto;
    z-index: 50;
    pointer-events: none;
}
.h-bar__in {
    position: relative;
    display: flex;
    align-items: center;
    gap: 24px;
    height: var(--bar);
    border: 1px solid transparent;
    border-radius: 999px;
    pointer-events: auto;
    transition: height .55s var(--ease-out), max-width .55s var(--ease-out), margin .55s var(--ease-out), padding .55s var(--ease-out),
        background .4s, border-color .4s, box-shadow .4s, -webkit-backdrop-filter .4s, backdrop-filter .4s;
}
.h-bar.is-scrolled .h-bar__in {
    width: calc(100% - 2 * var(--gut));
    max-width: 1180px;
    height: 58px;
    margin-top: 12px;
    padding: 0 9px 0 20px;
    background: color-mix(in srgb, var(--black) 68%, transparent);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    backdrop-filter: blur(18px) saturate(160%);
    border-color: var(--line-2);
    box-shadow: 0 24px 60px -28px rgba(0, 0, 0, .8), inset 0 1px 0 color-mix(in srgb, var(--cloud) 8%, transparent);
}
.h-brand { display: flex; align-items: center; gap: 12px; line-height: 1.15; margin-right: auto; }
.h-brand__name { font-weight: 600; font-size: 16px; }
.h-brand__site { font-family: var(--mono); font-size: 11px; color: var(--muted-2); letter-spacing: .06em; }
/* >>> логотип (генерируется ~/krasiva_work/logo/v3/deploy_local.py) */
/* Знак в шапке: «K.» + имя; на наведении точка подпрыгивает, шеврон прижимается к стеблю */
.h-brand__txt { display: flex; flex-direction: column; line-height: 1.15; }
.h-mark { display: block; width: 37px; height: auto; flex: none; overflow: visible; }
@media (min-width: 341px) { .h-brand__name { white-space: nowrap; } }
@media (max-width: 380px) { .h-brand__name { font-size: 14px; } .h-brand { gap: 10px; } .h-mark { width: 34px; } }
.h-mark .lg-stem, .h-mark .lg-chev { fill: var(--cloud); }
.h-mark .lg-dot { fill: #FF4031; transform-box: fill-box; transform-origin: 50% 100%; }
.h-mark .lg-chev { transform-box: fill-box; transform-origin: 0 50%; transition: transform .45s var(--ease-out); }
.h-brand:hover .lg-chev, .h-brand:focus-visible .lg-chev { transform: translateX(-2.5%); }
.h-brand:hover .lg-dot, .h-brand:focus-visible .lg-dot { animation: lgHop .66s both; }
@keyframes lgHop {
    0% { transform: none; animation-timing-function: cubic-bezier(.2, .7, .35, 1); }
    42% { transform: translateY(-68%) scale(.93, 1.08); animation-timing-function: cubic-bezier(.55, 0, 1, .45); }
    68% { transform: none; }
    78% { transform: scale(1.22, .8); }
    90% { transform: scale(.97, 1.03); }
    100% { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
    .h-brand:hover .lg-dot, .h-brand:focus-visible .lg-dot { animation: none; }
    .h-brand:hover .lg-chev, .h-brand:focus-visible .lg-chev { transform: none; }
}
.kv-dot { color: #FF4031; font-style: normal; }
/* <<< логотип */
.h-msg { display: flex; align-items: center; gap: 8px; }
.btn--icon { width: 40px; padding: 0; }
.h-nav { display: flex; gap: 4px; }
.h-nav a {
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 14.5px;
    color: var(--muted);
    transition: color .2s, background .2s;
}
.h-nav a:hover { color: var(--cloud); background: color-mix(in srgb, var(--cloud) 7%, transparent); }
.h-nav a.is-here { color: var(--cloud); }
/* текущий раздел отмечен красной точкой после названия — как точка в «K.» */
.h-nav a span { position: relative; }
.h-nav a span::after {
    content: "";
    position: absolute;
    left: calc(100% + 2px);
    bottom: .2em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #FF4031;
    transform: scale(0);
    transition: transform .25s ease;
}
.h-nav a.is-here span::after { transform: scale(1); animation: navDot .5s var(--ease-out); }
@keyframes navDot { 0% { transform: scale(0); } 55% { transform: scale(1.3, .8); } 75% { transform: scale(.92, 1.06); } 100% { transform: scale(1); } }
/* телефон: вместо адреса второй строкой — раздел, точка в конце подписи */
.h-brand__site { position: relative; display: block; height: 1.3em; overflow: hidden; }
.h-brand__dom, .h-brand__sec { display: block; white-space: nowrap; transition: transform .5s var(--ease-out), opacity .35s; }
.h-brand__sec { position: absolute; top: 0; left: 0; transform: translateY(110%); opacity: 0; color: var(--muted); }
.h-brand__sec::after { content: ""; display: inline-block; width: 5px; height: 5px; margin-left: 2px; border-radius: 50%; background: #FF4031; }
.h-brand__site.is-sec .h-brand__dom { transform: translateY(-110%); opacity: 0; }
.h-brand__site.is-sec .h-brand__sec { transform: none; opacity: 1; }

/* === Первый экран === */
.hero3 {
    position: relative;
    min-height: max(700px, 100svh);
    display: flex;
    overflow: clip;
    isolation: isolate;
    background:
        radial-gradient(60% 60% at 75% 40%, color-mix(in srgb, var(--violet) 22%, transparent), transparent 70%),
        var(--black);
}
/* затемнение слева и снизу: текст читается поверх стены (::after идёт после стены в том же слое) */
.hero3::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(10, 10, 10, .95) 0%, rgba(10, 10, 10, .86) 38%, rgba(10, 10, 10, 0) 66%),
        linear-gradient(0deg, rgba(10, 10, 10, .92) 0%, rgba(10, 10, 10, 0) 32%);
}
.hero3__gl { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; opacity: 0; transition: opacity 1.6s ease; }
.hero3__gl.is-on { opacity: 1; }

/* Стена: внешний слой гасит левый край (там текст), внутренний — верх и низ */
.hero3__wall {
    position: absolute;
    inset: 0 0 0 18%;
    z-index: -1;
    pointer-events: none;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 30%);
    mask-image: linear-gradient(90deg, transparent 0%, #000 30%);
}
.hero3__wall-fade {
    position: absolute;
    inset: 0;
    perspective: 1700px;
    perspective-origin: 30% 50%;
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 18%, #000 78%, transparent 100%);
    mask-image: linear-gradient(180deg, transparent 0%, #000 18%, #000 78%, transparent 100%);
}
.wall {
    --rx: 18deg;
    --ry: -22deg;
    position: absolute;
    left: 54%;
    top: 50%;
    display: grid;
    grid-template-columns: repeat(4, 300px);
    gap: 22px;
    transform: translate(-50%, -50%) rotateX(var(--rx)) rotateY(var(--ry)) rotateZ(7deg);
    transform-style: preserve-3d;
}
.wall__col { height: 150vh; min-height: 1100px; overflow: hidden; }
.wall__track { display: flex; flex-direction: column; animation: wallRun var(--d, 60s) linear infinite; will-change: transform; }
.wall__track--down { animation-direction: reverse; }
.wall__track img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    margin-bottom: 22px;
    border-radius: 14px;
    background: var(--card);
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .7), inset 0 0 0 1px var(--line);
}
@keyframes wallRun { to { transform: translate3d(0, -50%, 0); } }
.hero3.is-paused .wall__track { animation-play-state: paused; }

.home .hero3__in {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 48px;
    padding-top: calc(var(--bar) + clamp(20px, 6vh, 90px));
    padding-bottom: clamp(28px, 4.5vh, 52px);
}
.hero3__text { max-width: 900px; }
.hero3__who { display: flex; align-items: center; gap: 12px; margin-bottom: clamp(16px, 3vh, 28px); font-size: 15px; color: var(--muted); }
.hero3__who img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 1px var(--line-2); }
.hero3__who b { color: var(--cloud); font-weight: 600; }
.hero3__who b i { font-style: normal; font-weight: 400; color: var(--muted); }
.hero3__title {
    font-size: clamp(48px, min(7vw, 11.5vh), 120px);
    line-height: 0.92;
    letter-spacing: -0.05em;
    font-weight: 600;
    margin-bottom: clamp(18px, 3vh, 30px);
}
.hero3__title .ln { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.hero3__title .ln > span { display: inline-block; }
.hero3__title em {
    font-style: normal;
    background: linear-gradient(100deg, var(--cloud) 0%, #C5BEFF 40%, #8FB3FF 70%, var(--cloud) 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: shine 7s ease-in-out infinite;
}
@keyframes shine { 50% { background-position: 100% 0; } }
.hero3__lead { max-width: 580px; font-size: clamp(17px, 1.3vw, 19px); color: var(--muted); margin-bottom: clamp(22px, 4vh, 36px); }
.hero3__cta { display: flex; flex-wrap: wrap; gap: 12px; }

.hero3__stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    max-width: 860px;
    border-top: 1px solid var(--line-2);
}
.hero3__stats > div { padding: 18px 20px 0 0; }
.hero3__stats > div + div { padding-left: 20px; border-left: 1px solid var(--line); }
.hero3__stats dt { font-size: clamp(26px, 2.6vw, 38px); font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.hero3__stats dd { margin: 6px 0 0; font-size: 13px; line-height: 1.4; color: var(--muted-2); }

.hero3__down {
    position: absolute;
    right: var(--gut);
    bottom: clamp(32px, 5vh, 56px);
    width: 26px;
    height: 44px;
    border-radius: 999px;
    border: 1px solid var(--line-2);
}
.hero3__down span {
    position: absolute;
    left: 50%;
    top: 9px;
    width: 3px;
    height: 8px;
    margin-left: -1.5px;
    border-radius: 2px;
    background: var(--cloud);
    animation: downDot 2s var(--ease) infinite;
}
@keyframes downDot { 0% { transform: translateY(0); opacity: 0; } 30% { opacity: 1; } 80%, 100% { transform: translateY(16px); opacity: 0; } }

/* Вступление: собирается за ~1,5 секунды, без экрана загрузки */
.js .hero3__title .ln > span { transform: translate3d(0, 108%, 0); }
.js .hero3__who, .js .hero3__lead, .js .hero3__cta, .js .hero3__stats { opacity: 0; transform: translate3d(0, 18px, 0); }
.js .wall__col { opacity: 0; transform: translate3d(0, 120px, 0); }
.is-ready .hero3__title .ln > span { transform: none; transition: transform 1.15s var(--ease-out); }
.is-ready .hero3__title .ln:nth-child(2) > span { transition-delay: .08s; }
.is-ready .hero3__title .ln:nth-child(3) > span { transition-delay: .16s; }
.is-ready .hero3__who { opacity: 1; transform: none; transition: opacity .8s ease, transform 1s var(--ease-out); }
.is-ready .hero3__lead { opacity: 1; transform: none; transition: opacity .9s ease .45s, transform 1s var(--ease-out) .45s; }
.is-ready .hero3__cta { opacity: 1; transform: none; transition: opacity .9s ease .55s, transform 1s var(--ease-out) .55s; }
.is-ready .hero3__stats { opacity: 1; transform: none; transition: opacity .9s ease .7s, transform 1s var(--ease-out) .7s; }
.is-ready .wall__col { opacity: 1; transform: none; transition: opacity 1.2s ease calc(.15s + var(--c) * .1s), transform 1.6s var(--ease-out) calc(.15s + var(--c) * .1s); }

/* === Секции === */
.sec { padding: clamp(80px, 11vw, 150px) 0 0; scroll-margin-top: var(--bar); }
.sec--tight { padding-top: clamp(64px, 8vw, 110px); }
.sec__head { margin-bottom: clamp(32px, 4.5vw, 56px); }
.sec__head--row { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.sec__title { font-size: clamp(36px, 5vw, 72px); line-height: 1; letter-spacing: -0.04em; }
.sec__note { max-width: 380px; color: var(--muted); font-size: 15px; }

/* === Избранное: карточки наслаиваются (sticky + масштаб из home.js) === */
.fstack { display: flex; flex-direction: column; gap: clamp(32px, 6vh, 64px); }
.fcard {
    position: sticky;
    top: calc(var(--bar) + 20px + var(--i) * 14px);
    transform-origin: 50% 0;
    will-change: transform;
}
.fcard__in {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.6fr);
    border-radius: calc(var(--r) + 6px);
    overflow: hidden;
    background: linear-gradient(160deg, #18181B 0%, #0E0E10 100%);
    border: 1px solid var(--line);
    box-shadow: 0 -30px 80px -40px rgba(0, 0, 0, .9);
    color: var(--cloud);
}
/* затемнение уходящей карточки, силу задаёт --dim из home.js */
.fcard__in::after {
    content: "";
    position: absolute;
    inset: 0;
    background: #000;
    opacity: calc(var(--dim, 0) * .55);
    pointer-events: none;
}
.fcard__info { display: flex; flex-direction: column; justify-content: space-between; gap: 28px; padding: clamp(24px, 3vw, 44px); }
.fcard__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.fcard__num { font-size: clamp(40px, 4vw, 64px); font-weight: 600; letter-spacing: -0.05em; line-height: .9; }
.fcard__num i { font-style: normal; font-size: .32em; color: var(--muted-2); letter-spacing: 0; margin-left: 4px; vertical-align: top; }
.fcard__kind { font-family: var(--mono); font-size: 12px; line-height: 1.6; letter-spacing: .04em; color: var(--muted-2); text-align: right; }
.fcard__title { font-size: clamp(24px, 2.3vw, 34px); line-height: 1.08; letter-spacing: -0.03em; margin-bottom: 14px; }
.fcard__lead { color: var(--muted); font-size: 16px; }
.fcard__bottom { display: flex; flex-direction: column; gap: 20px; }
.fcard__go { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; }
.fcard__go svg { width: 18px; height: 18px; transition: transform .4s var(--ease); }
.fcard__in:hover .fcard__go svg { transform: rotate(45deg); }
.fcard__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--card); }
.fcard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.fcard__in:hover .fcard__media img { transform: scale(1.03); }

.tags { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; }
.tags li {
    font-family: var(--mono);
    font-size: 12px;
    padding: 6px 11px;
    border-radius: 999px;
    border: 1px solid var(--line);
    color: var(--muted);
}

/* === Сетка работ === */
.w-card { display: flex; flex-direction: column; gap: 16px; color: var(--cloud); }
.w-cover {
    display: block;
    position: relative;
    aspect-ratio: 16 / 10;
    border-radius: var(--r);
    overflow: hidden;
    background: var(--card);
    isolation: isolate;
    transform: perspective(900px) rotateX(var(--tx, 0deg)) rotateY(var(--ty, 0deg));
    transition: transform .6s var(--ease-out), box-shadow .6s;
    will-change: transform;
}
.w-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow: inset 0 0 0 1px var(--line);
    background: radial-gradient(500px circle at var(--gx, 50%) var(--gy, 0%), rgba(255, 255, 255, .16), transparent 45%);
    opacity: 0;
    transition: opacity .4s;
    pointer-events: none;
}
.w-card:hover .w-cover { box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .9); }
.w-card:hover .w-cover::after { opacity: 1; }
.w-cover img { width: 100%; height: 100%; object-fit: cover; }
.w-cover--empty { aspect-ratio: 16 / 10; border-radius: var(--r); background: var(--card); }
.w-card__kind { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; color: var(--muted-2); margin-bottom: 8px; }
.w-card__title { font-size: 18px; line-height: 1.2; }
.w-card__lead {
    margin-top: 8px;
    font-size: 14.5px;
    color: var(--muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 0 16px;
    border-radius: 999px;
    border: 1px solid var(--line-2);
    background: none;
    color: var(--muted);
    font: 500 14px/1 'Space Grotesk', sans-serif;
    cursor: pointer;
    transition: background .2s, color .2s, border-color .2s;
}
.chip span { font-family: var(--mono); font-size: 11px; opacity: .6; }
.chip:hover { color: var(--cloud); border-color: var(--cloud); }
.chip.is-on { background: var(--cloud); color: var(--black); border-color: var(--cloud); }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px clamp(16px, 2vw, 28px); }
.w-card.is-off { display: none; }
.more { display: flex; justify-content: center; margin-top: 52px; }
.more .btn[hidden] { display: none; }
::view-transition-group(*) { animation-duration: .45s; animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1); }

/* === Услуги: строки во всю ширину, за курсором выплывает обложка примера === */
.svc { border-bottom: 1px solid var(--line); }
.svc__row {
    position: relative;
    display: grid;
    grid-template-columns: 72px minmax(0, 1.15fr) minmax(0, 1fr);
    gap: 24px clamp(20px, 3vw, 48px);
    align-items: start;
    padding: clamp(28px, 3.4vw, 48px) 0;
    border-top: 1px solid var(--line);
    isolation: isolate;
}
/* при наведении линия сверху заливается градиентом слева направо */
.svc__row::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -1px;
    height: 1px;
    background: linear-gradient(90deg, var(--violet), var(--blue) 60%, transparent);
    transform: scaleX(0);
    transform-origin: 0 50%;
    transition: transform .8s var(--ease-out);
}
.svc__row:hover::before { transform: scaleX(1); }
.svc__num { font-family: var(--mono); font-size: 13px; color: var(--muted-2); padding-top: .9em; }
.svc__title {
    font-size: clamp(30px, 3.7vw, 56px);
    line-height: 1;
    letter-spacing: -0.045em;
    color: color-mix(in srgb, var(--cloud) 78%, transparent);
    transition: color .4s, transform .6s var(--ease-out);
}
.svc__row:hover .svc__title { color: var(--cloud); transform: translateX(10px); }
@media (hover: none) { .svc__title { color: var(--cloud); } } /* на телефоне наведения нет — сразу яркие */
.svc__text { color: var(--muted); font-size: 16px; max-width: 480px; margin-bottom: 20px; }
.svc__ex { display: flex; flex-wrap: wrap; gap: 8px; }
.svc__chip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 4px 14px 4px 4px;
    border-radius: 999px;
    border: 1px solid var(--line-2);
    font-size: 14px;
    color: var(--cloud);
    transition: border-color .25s, background .25s;
}
.svc__chip img { width: 44px; height: 28px; border-radius: 999px; object-fit: cover; }
.svc__chip:hover { border-color: var(--cloud); background: color-mix(in srgb, var(--cloud) 6%, transparent); }

/* Обложка, которая плывёт за курсором над строкой услуги (только мышь) */
.peek {
    position: fixed;
    left: 0;
    top: 0;
    z-index: 80;
    width: clamp(280px, 26vw, 380px);
    aspect-ratio: 16 / 10;
    margin-top: -110px;
    border-radius: 16px;
    overflow: hidden;
    pointer-events: none;
    box-shadow: 0 40px 80px -20px rgba(0, 0, 0, .8), 0 0 0 1px var(--line-2);
    opacity: 0;
    transform: translate3d(var(--px, -999px), var(--py, -999px), 0) rotate(var(--pr, 0deg)) scale(.85);
    transition: opacity .35s ease, transform .5s var(--ease-out);
}
.peek.is-on { opacity: 1; transform: translate3d(var(--px), var(--py), 0) rotate(var(--pr, 0deg)) scale(1); }
.peek img { width: 100%; height: 100%; object-fit: cover; }

/* Стек — бегущая строка */
.stack { display: flex; align-items: center; gap: 28px; margin-top: 40px; overflow: hidden; }
.stack__label { flex: none; font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-2); }
.stack__run {
    display: flex;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.stack__run ul { display: flex; flex: none; gap: 40px; padding-right: 40px; list-style: none; animation: run 38s linear infinite; }
.stack__run li { font-size: clamp(18px, 1.8vw, 24px); font-weight: 500; letter-spacing: -0.01em; color: var(--muted); white-space: nowrap; }
.stack__run li:nth-child(odd) { color: var(--cloud); }
@keyframes run { to { transform: translateX(-100%); } }

/* === Этапы: линия заполняется по прокрутке (--p из home.js) === */
.steps { position: relative; list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); padding-top: 26px; }
.steps::before, .steps::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--line-2); }
.steps::after { background: linear-gradient(90deg, var(--violet), var(--blue)); transform-origin: 0 50%; transform: scaleX(var(--p, 1)); height: 2px; top: -0.5px; }
.steps__n { display: block; font-family: var(--mono); font-size: 13px; color: var(--muted-2); margin-bottom: 30px; }
.steps h3 { font-size: 22px; margin-bottom: 10px; }
.steps p { color: var(--muted); font-size: 15px; }
.steps a { color: var(--cloud); text-decoration: underline; text-underline-offset: .2em; text-decoration-color: var(--line-2); }

/* === Контакты === */
.cta {
    position: relative;
    overflow: hidden;
    border-radius: calc(var(--r) + 10px);
    border: 1px solid var(--line);
    background: linear-gradient(160deg, #141416 0%, #0C0C0E 100%);
    padding: clamp(36px, 6vw, 88px);
    padding-right: clamp(36px, 34%, 480px);
    min-height: 520px;
}
.cta__glow {
    position: absolute;
    right: -6%;
    bottom: -30%;
    width: 60%;
    aspect-ratio: 1;
    background: radial-gradient(closest-side, color-mix(in srgb, var(--violet) 45%, transparent), transparent);
    filter: blur(30px);
    pointer-events: none;
}
.cta__photo {
    position: absolute;
    right: clamp(0px, 3vw, 48px);
    bottom: 0;
    height: 94%;
    width: auto;
    max-width: 40%;
    object-fit: contain;
    object-position: bottom;
    pointer-events: none;
    /* вырезка по грудь с прямыми краями — гасим края овалом */
    -webkit-mask-image: radial-gradient(ellipse 50% 62% at 50% 42%, #000 62%, transparent 100%);
    mask-image: radial-gradient(ellipse 50% 62% at 50% 42%, #000 62%, transparent 100%);
}
.cta > :not(.cta__glow, .cta__photo) { position: relative; }
.cta__title { font-size: clamp(34px, 4.6vw, 68px); line-height: 1; letter-spacing: -0.045em; margin-bottom: 40px; }
.cta__row { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }
.cta__more { color: var(--muted); font-size: 15px; }
.cta__more a { color: var(--cloud); text-decoration: underline; text-underline-offset: .2em; text-decoration-color: var(--line-2); }

/* === Подвал === */
.foot2 { margin-top: clamp(56px, 7vw, 96px); border-top: 1px solid var(--line); }
.foot2__in { display: flex; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; padding-top: 26px; padding-bottom: 32px; font-size: 13px; color: var(--muted-2); }
.foot2__links { display: flex; gap: 18px; }
.foot2 a { color: inherit; text-decoration: underline; text-underline-offset: .2em; }
.foot2 a:hover { color: var(--cloud); }

/* === Курсор «Смотреть» над проектами (только мышь) === */
.cur {
    position: fixed;
    left: 0;
    top: 0;
    z-index: 90;
    width: 96px;
    height: 96px;
    margin: -48px 0 0 -48px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--cloud);
    color: var(--black);
    font: 600 13px/1 'Space Grotesk', sans-serif;
    pointer-events: none;
    transform: translate3d(var(--cx, -200px), var(--cy, -200px), 0) scale(0);
    transition: transform .35s var(--ease-out);
}
.cur.is-on { transform: translate3d(var(--cx), var(--cy), 0) scale(1); }
.has-cur [data-cursor] { cursor: none; }

/* Плашка cookie выезжает позже, чтобы не перекрывать первое впечатление */
.home .ck-banner.show { animation: ckIn .7s var(--ease-out) 3s both; }
@keyframes ckIn { from { opacity: 0; transform: translateY(24px); } }

/* === Появление при прокрутке (только с JS) === */
.js .home [data-rv] { opacity: 0; transform: translate3d(0, 32px, 0); transition: opacity 1s var(--ease-out), transform 1s var(--ease-out); }
.js .home [data-rv].is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    .js .home [data-rv], .js .hero3__who, .js .hero3__lead, .js .hero3__cta, .js .hero3__stats, .js .wall__col,
    .js .hero3__title .ln > span { opacity: 1; transform: none; transition: none; }
    .wall__track, .stack__run ul, .hero3__title em, .hero3__down span { animation: none; }
    .w-cover, .fcard__media img { transition: none; }
}

/* === Планшет === */
@media (max-width: 1100px) {
    .h-nav { display: none; }
    .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
    .hero3__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 20px; max-width: 560px; }
    .hero3__stats > div:nth-child(3) { padding-left: 0; border-left: 0; }
    .hero3__wall { inset: 0 0 0 10%; }
    .fcard__in { grid-template-columns: 1fr; }
    .fcard__media { order: -1; }
    .fcard__info { gap: 20px; }
    .cta { padding-right: clamp(36px, 6vw, 88px); }
    .cta__photo { opacity: .22; max-width: 60%; }
}
@media (max-width: 860px) {
    .svc__row { grid-template-columns: 1fr; gap: 14px; }
    .svc__num { padding-top: 0; }
    .svc__row:hover .svc__title { transform: none; }
    .hero3__down { display: none; }
}

/* === Телефон: стена сверху, текст под ней === */
@media (max-width: 640px) {
    .home { --bar: 60px; }
    .h-bar.is-scrolled .h-bar__in { width: calc(100% - 16px); height: 54px; margin-top: 8px; padding: 0 7px 0 14px; border-radius: 20px; }
    .h-bar .btn span { display: none; }
    .h-bar .btn { width: 40px; padding: 0; }
    .hero3 { min-height: 0; }
    .hero3__wall { inset: 0 0 auto 0; height: 50svh; -webkit-mask-image: none; mask-image: none; }
    .hero3__wall-fade {
        perspective-origin: 50% 40%;
        -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 22%, #000 55%, transparent 100%);
        mask-image: linear-gradient(180deg, transparent 0%, #000 22%, #000 55%, transparent 100%);
    }
    .wall { left: 50%; top: 42%; grid-template-columns: repeat(4, 190px); gap: 12px; }
    .wall__col { height: 90svh; min-height: 640px; }
    .wall__track img { margin-bottom: 12px; border-radius: 10px; }
    .home .hero3__in { padding-top: 36svh; gap: 36px; }
    .hero3__who { font-size: 14px; margin-bottom: 20px; }
    .hero3__who .who-name { display: none; } /* имя уже в шапке */
    .hero3__who img { width: 32px; height: 32px; }
    .hero3__title { font-size: clamp(44px, 13.4vw, 60px); margin-bottom: 22px; }
    .hero3__lead { font-size: 16px; margin-bottom: 28px; }
    .hero3__cta { flex-direction: column; }
    .hero3__cta .btn { width: 100%; }
    .hero3__stats dt { font-size: 28px; }
    .sec__note { display: none; }
    .fcard { top: calc(var(--bar) + 12px + var(--i) * 10px); }
    .fcard__num { font-size: 36px; }
    .fcard__lead { font-size: 15px; }
    .fcard .tags { display: none; }
    .grid { grid-template-columns: 1fr; gap: 40px; }
    .filters { flex-wrap: nowrap; overflow-x: auto; margin: 0 calc(var(--gut) * -1); padding: 0 var(--gut) 4px; scrollbar-width: none; }
    .filters::-webkit-scrollbar { display: none; }
    .chip { flex: none; }
    .stack { flex-direction: column; align-items: flex-start; gap: 14px; }
    .stack__run { width: 100%; }
    .steps { grid-template-columns: 1fr; row-gap: 28px; }
    .steps__n { margin-bottom: 14px; }
    .cta { min-height: 0; }
    .cta__photo { display: none; }
    .cta__row { flex-direction: column; }
    .cta__row .btn { width: 100%; }
    .cta__row .btn span { overflow: hidden; text-overflow: ellipsis; }
    .foot2__in { flex-direction: column; }
}

/* ============================================
   Заявка: окно-терминал. Рамка с бегущим градиентом, автоопределение
   контакта (телефон / email / Telegram), на телефоне — шторка снизу.
   ============================================ */
@property --rqa {
    syntax: '<angle>';
    inherits: false;
    initial-value: 0deg;
}
.rq[popover] {
    position: fixed;
    inset: 0;
    margin: auto;
    width: min(560px, calc(100vw - 32px));
    height: fit-content;
    max-height: calc(100svh - 32px);
    padding: 1px;
    border: 0;
    border-radius: 24px;
    background: none;
    color: var(--cloud);
    overflow: visible;
    font-family: 'Space Grotesk', -apple-system, sans-serif;
}
/* рамка: конический градиент крутится по периметру */
.rq::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: conic-gradient(from var(--rqa), rgba(240, 237, 229, .08) 0deg, var(--violet) 60deg, var(--blue) 110deg, rgba(240, 237, 229, .08) 170deg 360deg);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
    animation: rqSpin 6s linear infinite;
    pointer-events: none;
}
.rq::after {
    content: "";
    position: absolute;
    inset: 10% 6% -8%;
    z-index: -1;
    border-radius: 40px;
    background: radial-gradient(closest-side, color-mix(in srgb, var(--violet) 32%, transparent), transparent);
    filter: blur(40px);
    pointer-events: none;
}
@keyframes rqSpin { to { --rqa: 360deg; } }
.rq::backdrop {
    background: rgba(5, 5, 6, .72);
    -webkit-backdrop-filter: blur(10px) saturate(120%);
    backdrop-filter: blur(10px) saturate(120%);
}
.rq:popover-open { animation: rqIn .55s var(--ease-out); }
.rq:popover-open::backdrop { animation: rqFade .4s ease; }
@keyframes rqIn { from { opacity: 0; transform: translateY(24px) scale(.97); filter: blur(6px); } }
@keyframes rqFade { from { opacity: 0; } }

.rq__win {
    position: relative;
    max-height: calc(100svh - 34px);
    overflow: auto;
    overscroll-behavior: contain;
    border-radius: 23px;
    background:
        radial-gradient(120% 60% at 100% 0%, color-mix(in srgb, var(--violet) 10%, transparent), transparent 60%),
        linear-gradient(180deg, #141416 0%, #0D0D0F 100%);
    scrollbar-width: thin;
}
.rq__bar {
    position: sticky;
    top: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 14px;
    height: 48px;
    padding: 0 10px 0 18px;
    border-bottom: 1px solid var(--line);
    background: color-mix(in srgb, #141416 85%, transparent);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}
.rq__dots { display: flex; gap: 7px; }
.rq__dots i { width: 11px; height: 11px; border-radius: 50%; background: #FF5F57; }
.rq__dots i:nth-child(2) { background: #FEBC2E; }
.rq__dots i:nth-child(3) { background: #28C840; }
.rq__path { flex: 1; text-align: center; font-family: var(--mono); font-size: 12px; color: var(--muted-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rq__close {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 10px;
    background: none;
    color: var(--muted);
    cursor: pointer;
    transition: background .2s, color .2s;
}
.rq__close svg { width: 18px; height: 18px; }
.rq__close:hover { background: color-mix(in srgb, var(--cloud) 8%, transparent); color: var(--cloud); }

.rq__body, .rq__done { padding: 28px clamp(20px, 5vw, 36px) 30px; }
.rq__head { margin-bottom: 26px; }
.rq__tag { font-family: var(--mono); font-size: 12px; color: #4ADE80; margin-bottom: 12px; }
.rq__caret { display: inline-block; width: 7px; height: 14px; margin-left: 4px; vertical-align: -2px; background: #4ADE80; animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.rq__title { font-size: clamp(28px, 4vw, 38px); line-height: 1.05; letter-spacing: -0.04em; font-weight: 600; margin-bottom: 10px; }
.rq__sub { color: var(--muted); font-size: 15px; }

.rq__field { display: block; margin-bottom: 20px; }
.rq__label { display: flex; align-items: baseline; gap: 8px; margin-bottom: 9px; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.rq__label b { color: #4ADE80; font-weight: 500; }
.rq__req { font-style: normal; font-size: 11px; color: #F87171; }
.rq__count { margin-left: auto; font-style: normal; font-size: 11px; color: var(--muted-2); font-variant-numeric: tabular-nums; }
.rq textarea, .rq__input {
    width: 100%;
    border-radius: 14px;
    border: 1px solid var(--line-2);
    background: rgba(255, 255, 255, .025);
    transition: border-color .25s, box-shadow .25s, background .25s;
}
.rq textarea {
    display: block;
    min-height: 92px;
    padding: 14px 16px;
    resize: vertical;
    font: 15px/1.5 'Space Grotesk', sans-serif;
    color: var(--cloud);
    outline: none;
}
.rq textarea::placeholder, .rq input::placeholder { color: var(--muted-2); }
.rq textarea:focus, .rq__input:focus-within {
    border-color: color-mix(in srgb, var(--violet) 70%, var(--cloud));
    background: rgba(255, 255, 255, .04);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--violet) 18%, transparent);
}
.rq__input { position: relative; display: flex; align-items: center; }
.rq__input input {
    flex: 1;
    min-width: 0;
    height: 54px;
    padding: 0 16px;
    border: 0;
    background: none;
    outline: none;
    font: 500 17px/1 var(--mono);
    letter-spacing: .01em;
    color: var(--cloud);
}
.rq__input.is-valid { border-color: rgba(74, 222, 128, .55); }
.rq__input.is-bad { border-color: rgba(248, 113, 113, .6); box-shadow: 0 0 0 4px rgba(248, 113, 113, .12); }
.rq__type {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-right: 8px;
    padding: 6px 10px;
    border-radius: 999px;
    font-family: var(--mono);
    font-size: 11px;
    white-space: nowrap;
    color: var(--black);
    background: var(--cloud);
    opacity: 0;
    transform: scale(.8);
    transition: opacity .25s, transform .35s var(--ease-out), background .25s;
}
.rq__type.is-on { opacity: 1; transform: none; }
.rq__type svg { width: 13px; height: 13px; }
.rq__type[data-t="tg"] { background: #7DB9FF; }
.rq__type[data-t="email"] { background: #C5BEFF; }
.rq__hint { display: block; min-height: 18px; margin-top: 7px; font-family: var(--mono); font-size: 12px; color: var(--muted-2); }
.rq__hint.ok { color: #4ADE80; }
.rq__hint.bad { color: #F87171; }
.rq__hint button { border: 0; padding: 0; background: none; font: inherit; color: var(--cloud); text-decoration: underline; text-underline-offset: .2em; cursor: pointer; }

.rq__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.rq .budget-chip {
    min-height: 40px;
    padding: 0 16px;
    border-radius: 999px;
    border: 1px solid var(--line-2);
    background: none;
    color: var(--muted);
    font: 500 14px/1 var(--mono);
    letter-spacing: 0;
    text-transform: none;
    cursor: pointer;
    transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.rq .budget-chip:hover { color: var(--cloud); border-color: var(--cloud); background: none; }
.rq .budget-chip.active { background: var(--cloud); color: var(--black); border-color: var(--cloud); }
.rq .budget-chip:active { transform: scale(.96); }

.rq__consent { position: relative; display: flex; gap: 12px; align-items: flex-start; margin: 6px 0 22px; font-size: 13px; line-height: 1.5; color: var(--muted); cursor: pointer; }
.rq__consent input { position: absolute; opacity: 0; width: 20px; height: 20px; margin: 0; }
.rq__check {
    flex: none;
    display: grid;
    place-items: center;
    width: 20px;
    height: 20px;
    margin-top: 1px;
    border-radius: 6px;
    border: 1px solid var(--line-2);
    color: var(--black);
    transition: background .2s, border-color .2s;
}
.rq__check svg { width: 14px; height: 14px; opacity: 0; transform: scale(.5); transition: opacity .2s, transform .3s var(--ease-out); }
.rq__consent input:checked + .rq__check { background: var(--cloud); border-color: var(--cloud); }
.rq__consent input:checked + .rq__check svg { opacity: 1; transform: none; }
.rq__consent input:focus-visible + .rq__check { outline: 2px solid var(--cloud); outline-offset: 2px; }
.rq__consent.is-bad { color: #F87171; }
.rq__consent.is-bad .rq__check { border-color: #F87171; }
.rq__consent a { color: var(--cloud); text-decoration: underline; text-underline-offset: .2em; }

.rq__submit {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    height: 58px;
    border: 0;
    border-radius: 16px;
    background: var(--cloud);
    color: var(--black);
    font: 600 16px/1 'Space Grotesk', sans-serif;
    cursor: pointer;
    transition: background .25s, box-shadow .3s;
}
/* блик пробегает по кнопке при наведении */
.rq__submit::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .7) 50%, transparent 65%);
    transform: translateX(-100%);
}
.rq__submit:hover { background: #fff; box-shadow: 0 16px 40px -14px color-mix(in srgb, var(--violet) 80%, transparent); }
.rq__submit:hover::before { transform: translateX(100%); transition: transform .9s var(--ease-out); }
.rq__arrow { width: 20px; height: 20px; transition: transform .3s var(--ease-out); }
.rq__submit:hover .rq__arrow { transform: translateX(4px); }
.rq__spin { display: none; width: 18px; height: 18px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
.rq__submit.is-busy { pointer-events: none; opacity: .85; }
.rq__submit.is-busy .rq__spin { display: block; }
.rq__submit.is-busy .rq__arrow { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.rq__keys { margin-top: 12px; text-align: center; font-family: var(--mono); font-size: 11px; color: var(--muted-2); }
.rq__keys kbd { padding: 1px 6px; border-radius: 5px; border: 1px solid var(--line-2); font: inherit; }
.rq__status { min-height: 0; margin-top: 10px; text-align: center; font-family: var(--mono); font-size: 12.5px; color: #F87171; }
.rq__status:empty { display: none; }

.rq__done { text-align: center; padding-top: 44px; padding-bottom: 40px; }
.rq__done .rq__sub { max-width: 340px; margin: 0 auto 10px; }
.rq__ok { width: 84px; height: 84px; margin: 0 auto 20px; color: #4ADE80; }
.rq__ok circle { stroke-dasharray: 230; stroke-dashoffset: 230; }
.rq__ok path { stroke-dasharray: 60; stroke-dashoffset: 60; }
.rq__done:not([hidden]) .rq__ok circle { animation: draw .7s var(--ease-out) forwards; }
.rq__done:not([hidden]) .rq__ok path { animation: draw .45s var(--ease-out) .45s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.rq__exit { margin: 18px 0 24px; font-family: var(--mono); font-size: 12px; color: #4ADE80; }

@media (prefers-reduced-motion: reduce) {
    .rq::before, .rq__caret { animation: none; }
    .rq:popover-open, .rq:popover-open::backdrop { animation: none; }
}

/* Телефон: шторка снизу */
@media (max-width: 640px) {
    .rq[popover] {
        inset: auto 0 0 0;
        width: 100%;
        max-height: 94svh;
        margin: 0;
        border-radius: 24px 24px 0 0;
        padding: 1px 0 0;
    }
    .rq::after { display: none; }
    .rq__win { max-height: calc(94svh - 1px); border-radius: 23px 23px 0 0; padding-bottom: env(safe-area-inset-bottom); }
    .rq:popover-open { animation: rqUp .5s var(--ease-out); }
    @keyframes rqUp { from { transform: translateY(100%); } }
    .rq__bar { height: 44px; }
    .rq__path { font-size: 11px; }
    .rq__keys { display: none; }
    .rq__input input { font-size: 16px; } /* 16px — чтобы iOS не зумил поле */
    .rq textarea { font-size: 16px; }
}
.is-shake { animation: shake .42s cubic-bezier(.36, .07, .19, .97); }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
/* у полей формы своя подсветка фокуса — общую обводку не дублируем */
.rq__input input:focus-visible, .rq textarea:focus-visible { outline: none; }

/* Заявка: прямые ссылки на мессенджеры под кнопкой */
.rq__alt { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 10px; margin-top: 16px; font-size: 13px; color: var(--muted-2); }
.rq__msg {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 36px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid var(--line-2);
    font-size: 14px;
    font-weight: 500;
    color: var(--cloud);
    transition: border-color .2s, color .2s, background .2s;
}
.rq__msg svg { width: 16px; height: 16px; }
.rq__status a { color: var(--cloud); text-decoration: underline; text-underline-offset: .2em; }
@media (max-width: 640px) {
    .rq__alt span { flex-basis: 100%; text-align: center; }
    .rq__msg { flex: 1; justify-content: center; height: 44px; }
}

/* === Лёгкая версия (html.lite): старые браузеры и слабые устройства ===
   Без дыма, бегущей стены, 3D, размытия под стеклом и появлений — всё сразу на месте.
   Включается в includes/head-flags.php; плавную прокрутку и эффекты home.js выключает сам (как при «меньше движения»). */
.lite .noise, .lite .cur, .lite .peek, .lite .hero3__gl { display: none; }
.lite *, .lite *::before, .lite *::after { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
.lite .h-bar.is-scrolled .h-bar__in { background: var(--black); }
.lite .btn--ghost { background: color-mix(in srgb, var(--black) 80%, transparent); }
.lite .cta__glow, .lite .rq::after { filter: none; opacity: .5; }
.lite .wall__track, .lite .stack__run ul, .lite .hero3__title em, .lite .hero3__down span, .lite .rq::before { animation: none; }
.lite.js .home [data-rv], .lite.js .hero3__who, .lite.js .hero3__lead, .lite.js .hero3__cta, .lite.js .hero3__stats, .lite.js .wall__col,
.lite.js .hero3__title .ln > span { opacity: 1; transform: none; transition: none; }
.lite .w-cover, .lite .fcard__media img { transition: none; }
.foot2__lite { padding: 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; border-bottom: 1px solid var(--line-2); }
.foot2__lite:hover { color: var(--cloud); }

/* === Браузеры без popover (Safari < 17): форма скрыта, пока её не открыла кнопка (запасной скрипт в request-form.php) === */
.old .rq[popover]:not(.is-open) { display: none; }
.old .rq.is-open { top: 0; right: 0; bottom: 0; left: 0; z-index: 1000; overflow: auto; box-shadow: 0 0 0 100vmax rgba(5, 5, 6, .88); }
