/* ЦВ 1 · компьютер 1440. Размеры из Figma: страница «Лэндинг», рамка «ЦВ 1» (23221:168334).
   Волна, сторис и демо — общие скрипты из /target/version-5/ (wave.js, v5.js, demo-drive.js). */
@font-face { font-family: "Lato"; src: url("/assets/fonts/lato-regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Lato"; src: url("/assets/fonts/lato-bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --ink: #152242;
  --muted: #7b89ac;
  --big-card: 0 24px 60px rgba(21, 34, 66, .20);
  /* --k: телефон 290 вместо 304 у пятой; wave.js берёт масштаб демо отсюда. */
  --k: .953947;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
/* Сергей 13.11: при переходе между разделами страница не дрожит — место под полосу прокрутки есть всегда (короткая «Служба поддержки» без полосы сдвигала всё вбок) */
html { scrollbar-gutter: stable; }
body { background: #fff; color: var(--ink); font-family: "Lato", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img, video { display: block; }
ul { list-style: none; }

.page { width: 1200px; margin: 0 auto; padding: 37px 0 60px; }
/* .s1 — то, что снимает волна: первый экран и второй блок, он тоже виден на большом окне. */
.s1 { position: relative; }
.s2, .s3, .s4, .s6 { margin-top: 120px; }

h2 { font-size: 36px; line-height: 43px; font-weight: 700; }
.p18 { font-size: 18px; line-height: 22px; }
.card { position: relative; overflow: hidden; background: #e9edf4; flex: none; box-shadow: var(--big-card); }
.card > img { width: 100%; height: 100%; object-fit: cover; }
/* Тень в цвет картинки: под карточкой её размытая копия вместо серой тени (проба). */
.card-wrap { position: relative; flex: none; isolation: isolate; }
.card-wrap > .card { position: relative; z-index: 1; box-shadow: none; }
.card-glow { position: absolute; left: 5%; top: 14%; width: 90%; height: 92%; object-fit: cover; filter: blur(42px) saturate(1.5); opacity: .7; z-index: 0; pointer-events: none; }
.card-glow-live { opacity: 0; transition: opacity .4s ease; }
.card-glow-live.is-on { opacity: .7; }

/* ---------- 1. Первый экран ---------- */
/* Телефон в макете на 18 выше логотипа, поэтому .hero начинается с телефона, а шапка сдвинута. */
.hero { position: relative; height: 628px; }
/* Сергей 13.11: первый экран без телефона (блогерам) кончается по нижнему краю самого низкого элемента (карточка QR, без тени),
   и до следующего блока ровно 120 — как между всеми блоками. С телефоном нижний край — телефон (628) */
.hero:not(:has(.phone)) { height: auto; }
.top { display: flex; align-items: center; gap: 80px; height: 40px; position: relative; top: 18px; }
.logo { position: relative; display: block; width: 131px; height: 40px; }
.logo img { width: 131px; height: 40px; transition: opacity 0s linear .5s; }
.logo-fx { position: absolute; inset: 0; opacity: 0; transition: opacity .35s ease-in-out .5s;
  -webkit-mask: url("/assets/img/logo-ink.svg") center / 100% 100% no-repeat; mask: url("/assets/img/logo-ink.svg") center / 100% 100% no-repeat; }
.logo-fx::before { content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(60% 90% at var(--b1x, 15%) var(--b1y, 10%), rgba(255, 208, 168, .55), rgba(255, 208, 168, 0) 70%),
    radial-gradient(55% 85% at var(--b2x, 85%) var(--b2y, 80%), rgba(255, 179, 71, .55), rgba(255, 179, 71, 0) 70%),
    linear-gradient(46deg, var(--c0, #ff00f7) 0%, var(--c1, #ff2f7a) var(--s1, 25%), #f65b6e 75%, #ffb347 100%);
  animation: clooqs-gradient 7.6s infinite; }
.logo-fx canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.logo:hover .logo-fx, .logo:focus-visible .logo-fx { opacity: 1; transition: none; }
.logo:hover img, .logo:focus-visible img { opacity: 0; transition: none; }
.menu { display: flex; gap: 36px; font-weight: 700; font-size: 18px; line-height: 22px; }
/* Пункты меню при наведении не бледнеют (Сергей 10.11: «засветку не надо») */

/* 78 = 60 под логотипом + 18 сдвига шапки. */
.cover { margin-top: 78px; width: 688px; }
h1 { font-size: 48px; line-height: 58px; font-weight: 700; }
/* В макете градиент растянут на весь заголовок (688×116), поэтому видна только его розовая часть.
   --gx — сколько места занимает «Клукс: » слева от слов. */
.grad { --gx: 160px; background-image: linear-gradient(175.7deg, #ff00f7 0%, #ff2f7a 25%, #f65b6e 75%, #ffb347 100%); background-size: 688px 116px; background-position: calc(var(--gx) * -1) 0; background-repeat: no-repeat; -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { margin-top: 16px; font-size: 18px; line-height: 22px; }

/* Сергей 13.11: карточка QR 220 (+15 % к 192; отступ 8, QR 204, скругление 12 — кратно 4), текст рядом прежнего кегля и по центру карточки:
   от «Скачайте» до верха карточки столько же, сколько от «мобильное приложение» до низа */
.qr-row { display: flex; align-items: center; gap: 36px; margin-top: 40px; width: 664px; }
.qr-card { position: relative; width: 220px; height: 220px; padding: 8px; background: #fff; border-radius: 12px; box-shadow: 0 14px 28px rgba(21, 34, 66, .20); flex: none; }
/* Обводка из макета: линия отдельным слоем, чтобы QR не сдвинулся. */
/* Сергей 13.11: «попробуем убрать обводочку» у QR на первом экране — тонкая рамка выключена (тень осталась) */
.qr-card::after { content: none; }
.qr-card img { width: 204px; height: 204px; }
.qr-text { padding-top: 0; width: 408px; }
.qr-text h3 { font-size: 24px; line-height: 29px; font-weight: 700; }
.qr-text p { margin-top: 16px; font-size: 18px; line-height: 22px; }

/* Телефон к правому краю сетки 1200, как на shops 1 (Сергей 10.11); надписи «демо-режим» и «как найти похожий вкус» сдвинуты вместе с ним на 98 */
/* Сергей 13.11: телефон по центру правого контейнера макета (714…1200 → центр 957) */
.phone { position: absolute; left: 812px; top: 0; width: 290px; height: 628px; border-radius: 23.55px; overflow: hidden; box-shadow: 0 23.55px 58.875px rgba(21, 34, 66, .20); background: #fff; }
.demo-hand { position: absolute; left: 578px; top: 546px; width: 174.9px; height: 57.2px; pointer-events: none; }
.demo-arrow { position: absolute; left: 675px; top: 407px; width: 94.073px; height: 132.021px; pointer-events: none; }
/* Сергей 13.11: «Как найти похожий вкус?» ниже — стрелка указывает прямо на «Покажи свой стиль и найди своих» в телефоне;
   кончик стрелки в 44 px от телефона — как у «демо-режим, попробуй» (Сергей 13.11) */
.taste-hand { position: absolute; left: 601px; top: 358px; width: 180px; height: 58px; pointer-events: none; }
.taste-arrow { position: absolute; left: 712.88px; top: 417.8px; width: 57px; height: 58px; pointer-events: none; }
/* Подпись пишется пером: штрихи маски открывают буквы по очереди (--d задержка, --t длительность), потом рисуется стрелка.
   visibility прячет круглый кончик штриха до его очереди. Класс is-writing ставит cv1.js через секунду. */
.demo-hand, .demo-arrow, .taste-hand, .taste-arrow { display: block; transition: opacity .3s ease; }
.taste-hand, .taste-arrow { opacity: 0; }
.hero.is-taste-on .taste-hand, .hero.is-taste-on .taste-arrow { opacity: 1; }
.demo-hand .pen, .demo-arrow .arrow-line, .taste-hand .pen, .taste-arrow .arrow-line { stroke-dasharray: 1; stroke-dashoffset: 1; visibility: hidden; }
.hero.is-writing .demo-hand .pen { animation: pen-show 0s linear var(--d) forwards, pen-write var(--t) linear var(--d) forwards; }
.hero.is-writing .demo-arrow .arrow-line { animation: pen-show 0s linear 2.55s forwards, pen-write .8s ease-in-out 2.55s forwards; }
/* Вторая надпись: is-taste-draw запускает перо, is-taste-on держит её видимой, пока идут сторис. */
.hero.is-taste-draw .taste-hand .pen, .hero.is-taste-draw .taste-arrow .arrow-line { animation: pen-show 0s linear var(--d) forwards, pen-write var(--t) ease-in-out var(--d) forwards; }
@keyframes pen-show { to { visibility: visible; } }
@keyframes pen-write { to { stroke-dashoffset: 0; } }
.hero.is-hint-off .demo-hand, .hero.is-hint-off .demo-arrow { opacity: 0; }
@media (prefers-reduced-motion: reduce) {
  .demo-hand .pen, .demo-arrow .arrow-line, .taste-hand .pen, .taste-arrow .arrow-line { stroke-dashoffset: 0; visibility: visible; }
  .hero.is-writing .demo-hand .pen, .hero.is-writing .demo-arrow .arrow-line, .hero.is-taste-draw .taste-hand .pen, .hero.is-taste-draw .taste-arrow .arrow-line { animation: none; }
}
.v5-demo.is-live iframe { pointer-events: auto; }
.v5-demo iframe { position: absolute; left: 0; top: 0; width: 423px; height: 876px; border: 0; transform-origin: 0 0; transform: scale(calc(.773537 * var(--k))) translate(-15px, -12px); pointer-events: none; }

/* ---------- 2. Любая вещь ---------- */
.s2 { display: flex; gap: 46px; }
/* Карточка 620, а фото 628: в макете снизу обрезано. */
.card-coat { width: 486px; height: 620px; border-radius: 36px; }
.card-coat > img { height: 628px; }
/* Живая картинка: стоит на первом кадре, один круг при наведении (запускает v5.js, как в пятой). */
.card > video.live { position: absolute; left: 0; top: 0; width: 100%; height: 100%; object-fit: cover; opacity: .001; }
.card > video.live.is-playing { opacity: 1; }
.card-coat > video.live { height: 628px; }
.card-blog > video.live, .card-blog > img { object-position: 50% 0; }
@media (prefers-reduced-motion: reduce) { .card > video.live { display: none; } }
/* Плашка товара видна всегда, и во время фильма тоже (Сергей 09.11). */
.tag { position: absolute; left: 36px; top: 442px; width: 241px; color: #fff; }
.tag-h { font-weight: 700; font-size: 18px; line-height: 22px; }
.tag-row { display: flex; gap: 10px; margin-top: 12px; }
.tag-row img { width: 44px; height: 44px; border-radius: 5px; object-fit: cover; flex: none; }
.tag-name { font-weight: 700; font-size: 16px; line-height: 20px; white-space: nowrap; }
.tag-price { margin-top: 2px; font-weight: 700; font-size: 18px; line-height: 22px; }
.s2-text { width: 668px; padding: 36px 36px 0 0; }
.s2-text h2 + .p18 { margin-top: 16px; }
.s2-text .p18 + .p18 { margin-top: 16px; }
.chips { display: flex; gap: 8px; margin-top: 16px; }
.chips li { padding: 4px 8px; font-size: 16px; line-height: 19px; background: #eff3fb; border: 1px solid rgba(210, 220, 240, .5); border-radius: 8px; }
.s2-text .btn { margin-top: 48px; }

/* ---------- 3. Подписка на людей ---------- */
.s3 { display: flex; gap: 46px; }
.s3-text { width: 362px; padding-top: 36px; flex: none; }
.s3-text .p18 { margin-top: 16px; }
.s3-text .p18 + .p18 { margin-top: 22px; }
.s3-text .btn { margin-top: 46px; }
.card-friends { width: 792px; height: 460px; border-radius: 36px; }

/* ---------- 4. Блогерам и магазинам ---------- */
.s4 { display: flex; gap: 46px; }
.who { width: 577px; display: block; }
.who .card { width: 577px; height: 380px; }
.card-blog, .card-shop { border-radius: 36px; }
.who h3 { margin-top: 36px; font-size: 36px; line-height: 43px; font-weight: 700; }
.who .p18 { margin-top: 16px; padding-right: 36px; }
/* Заголовок и текст под карточкой лежат над свечением от ролика, свечение их не засвечивает (Сергей 10.11). */
.who h3, .who .p18 { position: relative; z-index: 1; }

/* ---------- 5. Спарк ---------- */
.s6-row { display: flex; gap: 24px; }
/* На статью в Спарке ведут заголовок и «Статья полностью», логотип не ссылка (Сергей 10.11, было наоборот с 09.11). */
.s6-side { width: 384px; flex: none; }
.s6-over { font-size: 18px; line-height: 22px; font-weight: 400; color: var(--muted); }
.spark-logo { display: block; width: 200px; height: 42.2px; }
.s6-link { display: block; width: fit-content; margin-top: 16px; }
.s6-body { width: 792px; padding-right: 36px; }
.s6-row h3 { margin-top: 24px; font-size: 24px; line-height: 29px; font-weight: 700; }
.s6-h, .s6-h:hover { color: inherit; text-decoration: none; }
/* Ссылка есть, но цвет при наведении в этом блоке не меняется (Сергей 09.11). */
.s6-more { display: block; width: fit-content; margin-top: 12px; font-size: 16px; line-height: 20px; color: #0091ff; }
.s6-text { font-size: 16px; line-height: 20px; }
.s6-text p + p { margin-top: 20px; }

/* ---------- подвал ---------- */
.foot { display: flex; justify-content: space-between; align-items: flex-end; margin-top: 120px; font-size: 16px; line-height: 20px; color: var(--muted); }
.foot-right { display: flex; flex-direction: column; align-items: flex-end; gap: 80px; }
.stores { display: flex; gap: 16px; }
/* Значки магазинов: чёрный фон здесь, а не в файле, чтобы при наведении под буквами играл тот же перелив, что на кнопке. */
.store { position: relative; display: block; background: #000; border-radius: 5.33px; overflow: hidden; isolation: isolate; }
.store img { position: relative; width: auto; height: 40px; }
.foot-links { display: flex; gap: 36px; }
.foot-links a:hover { color: var(--ink); }
/* Сергей 13.11 (приказ РКН № 150): под копирайтом — «На информационном ресурсе применяются рекомендательные технологии» со ссылкой на правила */
.foot-left { display: flex; flex-direction: column; gap: 8px; }
.foot-rec { font-size: 14px; line-height: 18px; transition: color .15s ease; }
.foot-links a { white-space: nowrap; }
@media (min-width: 981px) { .foot-links { gap: 28px; } }
/* Сергей 13.11: фраза приказа РКН № 149 дословно, но компактно — одной строкой под копирайтом, а не столбиком (юрист: кегль и место не заданы) */
@media (min-width: 1240px) { .foot-rec { white-space: nowrap; } }
.foot-rec:hover { color: var(--ink); }
/* Сергей 13.11: в копирайте «2026 Clooqs» (без «, Inc.» — Сергей 16.11) ссылкой на главную только слово Clooqs — при наведении темнеет, как ссылки подвала */
.foot-home { transition: color .15s ease; }
.foot-home:hover, .foot-home:focus-visible { color: var(--ink); }

/* ---------- Окно с QR: кадр Figma «ЦВ 1: модалка». Открытие и закрытие в v5.js. ---------- */
.card[data-get], .qr-card[data-get] { cursor: pointer; }
body.is-locked { overflow: hidden; }
.get-modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 24px; background: rgba(255, 255, 255, .25); -webkit-backdrop-filter: blur(50px); backdrop-filter: blur(50px); opacity: 0; transition: opacity .2s ease; }
.get-modal[hidden] { display: none; }
.get-modal.is-on { opacity: 1; }
/* Кадр «ЦВ модалка 2» (Сергей 10.11): фон белый 25 % с размытием, без значков магазинов. Наведение только у крестика,
   курсор обычный; закрывают крестик, клик по фону и Esc, клик по карточке с QR не закрывает. */
.get-card { position: relative; display: flex; flex-direction: column; gap: 16px; width: 408px; max-width: 100%; padding: 24px; border-radius: 24px; background: #fff; text-align: center; box-shadow: 0 24px 60px rgba(21, 34, 66, .20); transform: translateY(12px); transition: transform .25s ease; }
.get-modal.is-on .get-card { transform: none; }
.get-x { position: absolute; top: 16px; right: 16px; display: grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 0; background: none; color: #a7b2cd; cursor: pointer; outline: none; transition: color .15s ease; }
.get-x svg { display: block; width: 28px; height: 28px; }
/* Крестик grey-dark #A7B2CD, как в кадре (Сергей 10.11), тёмный только при наведении. Окно само ставит фокус на крестик,
   браузер считает его клавиатурным (:focus-visible), поэтому фокус цвет не меняет, иначе крестик тёмный сразу при открытии. */
.get-x:hover { color: var(--ink); }
/* Значок приложения (кадр «ЦВ модалка 2», Сергей 10.11): фирменный градиент и белая спираль. После перелива на QR
   оживает: проступает перелив, как на кнопках, и плывут белые точки (рисует v5.js по data-motes-modal). */
.get-icon { position: relative; flex: none; width: 64px; height: 64px; margin: 0 auto; border-radius: 13.87px; overflow: hidden; isolation: isolate;
  background: linear-gradient(46deg, #ff00f7 0%, #ff2f7a 25%, #f65b6e 75%, #ffb347 100%); }
.get-icon-fx, .get-icon-motes { position: absolute; inset: 0; opacity: 0; }
.get-icon-fx { background:
    radial-gradient(60% 90% at var(--b1x, 15%) var(--b1y, 10%), rgba(255, 208, 168, .55), rgba(255, 208, 168, 0) 70%),
    radial-gradient(55% 85% at var(--b2x, 85%) var(--b2y, 80%), rgba(255, 179, 71, .55), rgba(255, 179, 71, 0) 70%),
    linear-gradient(46deg, var(--c0, #ff00f7) 0%, var(--c1, #ff2f7a) var(--s1, 25%), #f65b6e 75%, #ffb347 100%); }
.get-icon-motes canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.get-icon img { position: absolute; left: 10.94%; top: 10.94%; width: 78.12%; height: 78.12%; }
/* Порядок как в приложении (qr_code.dart, Сергей 10.11): сначала перелив проходит по QR (до 3,65 с), через секунду
   оживает значок: 0,25 подъём окна + 1 + 0,6 + 1,2 + 0,6 + 1 пауза = 4,65 с. */
.get-modal.is-on .get-icon-fx { animation: icon-on .6s ease-in-out 4.65s both, clooqs-gradient 7.6s 4.65s infinite; }
.get-modal.is-on .get-icon-motes { animation: icon-on .6s ease-in-out 4.65s both; }
@keyframes icon-on { from { opacity: 0; } to { opacity: 1; } }
/* Заголовок — стиль H3 дизайн-системы (18/22, жирный), поля по 24 (Сергей 10.11). */
.get-h { margin-top: -4px; padding: 0 24px; font-size: 18px; line-height: 22px; font-weight: 700; }
/* От значка до заголовка 12 (в окне шаг 16, поэтому -4), Сергей 10.11. */
/* На низком экране (ноутбук) QR ужимается, чтобы окно 596 влезло целиком: 284 = окно без QR + поля по 24. */
.get-qr-card { position: relative; width: min(100%, max(220px, calc(100vh - 284px))); margin: 0 auto; padding: 17.7px; border: .5px solid #d2dcf0; border-radius: 16px; }
/* Перелив по QR, как на шторке «QR профиля» в приложении (qr_code.dart, Сергей 10.11): через секунду после открытия
   фирменный градиент проступает по коду и рамке за 0,6 с, держится 1,2 с и уходит за 0,6 с. Один раз на открытие. */
.get-qr-flash, .get-qr-card::after { position: absolute; opacity: 0; pointer-events: none;
  background:
    radial-gradient(60% 90% at var(--b1x, 15%) var(--b1y, 10%), rgba(255, 208, 168, .55), rgba(255, 208, 168, 0) 70%),
    radial-gradient(55% 85% at var(--b2x, 85%) var(--b2y, 80%), rgba(255, 179, 71, .55), rgba(255, 179, 71, 0) 70%),
    linear-gradient(46deg, var(--c0, #ff00f7) 0%, var(--c1, #ff2f7a) var(--s1, 25%), #f65b6e 75%, #ffb347 100%); }
.get-qr-flash { inset: 17.7px; -webkit-mask: url("/img/qr-mask.svg") center / 100% 100% no-repeat; mask: url("/img/qr-mask.svg") center / 100% 100% no-repeat; }
.get-qr-card::after { content: ""; inset: -.5px; padding: 1px; border-radius: 16px;
  -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); }
.get-modal.is-on .get-qr-flash, .get-modal.is-on .get-qr-card::after { animation: clooqs-gradient 7.6s infinite, qr-flash 3.4s .25s both; }
@keyframes qr-flash {
  0%, 29.41% { opacity: 0; animation-timing-function: ease-in-out; }
  47.06%, 82.35% { opacity: 1; animation-timing-function: ease-in-out; }
  100% { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .get-modal.is-on .get-qr-flash, .get-modal.is-on .get-qr-card::after, .get-modal.is-on .get-icon-fx, .get-modal.is-on .get-icon-motes { animation: none; } }
.get-qr { display: block; width: 100%; height: auto; aspect-ratio: 1; }
/* Подпись — стиль «14» дизайн-системы (14/18), поля по 24 (Сергей 10.11). */
.get-p { padding: 0 24px; font-size: 14px; line-height: 18px; color: var(--muted); }

/* ---------- Кнопка: как «Поделиться» в приложении ----------
   На наведение в тёмной кнопке проступает фирменный градиент заставки
   (clooqs_gradient), он переливается по кругу 7,6 с, а по кнопке плывут
   белые частички облачками (DriftingMotes, круг 9 с). Частички рисует v5.js. */
.btn { position: relative; display: inline-flex; align-items: center; height: 60px; padding: 16px 32px; border-radius: 50px; background: var(--ink); color: #fff; font-weight: 700; font-size: 22px; line-height: 28px; overflow: hidden; isolation: isolate; }
.btn::before, .store::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .35s ease-in-out .5s;
  background:
    radial-gradient(60% 90% at var(--b1x, 15%) var(--b1y, 10%), rgba(255, 208, 168, .55), rgba(255, 208, 168, 0) 70%),
    radial-gradient(55% 85% at var(--b2x, 85%) var(--b2y, 80%), rgba(255, 179, 71, .55), rgba(255, 179, 71, 0) 70%),
    linear-gradient(46deg, var(--c0, #ff00f7) 0%, var(--c1, #ff2f7a) var(--s1, 25%), #f65b6e 75%, #ffb347 100%);
  animation: clooqs-gradient 7.6s infinite;
}
.btn canvas, .store canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; opacity: 0; transition: opacity .35s ease-in-out .5s; }
.btn-label { position: relative; }
/* Навели — играет сразу, без проявления. Увели — ещё полсекунды играет, потом гаснет. */
.btn:hover::before, .btn:focus-visible::before, .btn:hover canvas, .btn:focus-visible canvas,
.store:hover::before, .store:focus-visible::before, .store:hover canvas, .store:focus-visible canvas { opacity: 1; transition: none; }
/* Тёмная заливка под градиентом просвечивала по сглаженному краю скругления (тёмные пиксели
   по бокам и сверху). Пока играет перелив, тёмной заливки нет; возвращается через 0,5 с
   после ухода мыши, ровно когда градиент начинает гаснуть. */
.btn, .store { transition: background-color 0s linear .5s; }
.btn:hover, .btn:focus-visible, .store:hover, .store:focus-visible { background-color: transparent; transition: none; }
.btn:focus-visible, .store:focus-visible { outline: 3px solid #ff2f7a; outline-offset: 3px; }

@property --b1x { syntax: "<percentage>"; inherits: false; initial-value: 15%; }
@property --b1y { syntax: "<percentage>"; inherits: false; initial-value: 10%; }
@property --b2x { syntax: "<percentage>"; inherits: false; initial-value: 85%; }
@property --b2y { syntax: "<percentage>"; inherits: false; initial-value: 80%; }
@property --s1 { syntax: "<percentage>"; inherits: false; initial-value: 25%; }
@property --c0 { syntax: "<color>"; inherits: false; initial-value: #ff00f7; }
@property --c1 { syntax: "<color>"; inherits: false; initial-value: #ff2f7a; }

/* Ключевые кадры как в приложении: стоит, переливается туда, стоит, обратно
   (48 / 180 / 48 / 180 кадров из 456, ease-in-out). */
@keyframes clooqs-gradient {
  0%, 10.5% { --b1x: 15%; --b1y: 10%; --b2x: 85%; --b2y: 80%; --s1: 25%; --c0: #ff00f7; --c1: #ff2f7a; animation-timing-function: ease-in-out; }
  50%, 60.5% { --b1x: 0%; --b1y: 100%; --b2x: 0%; --b2y: 0%; --s1: 45%; --c0: #ff8a7a; --c1: #f34f8a; animation-timing-function: ease-in-out; }
  100% { --b1x: 15%; --b1y: 10%; --b2x: 85%; --b2y: 80%; --s1: 25%; --c0: #ff00f7; --c1: #ff2f7a; }
}

@media (prefers-reduced-motion: reduce) {
  .btn::before, .store::before, .grad { animation: none; }
  .btn canvas, .store canvas, .logo-fx canvas { display: none; }
  .logo-fx::before { animation: none; }
}

/* «Блин» на «от людей» (08.11): навели — курсор-кружок и от слов расходятся тихие волны;
   нажали — по всему экрану из точки нажатия проходит волна, как у AirDrop. Рисует v5.js на холсте. */
.grad[data-blin] { cursor: pointer; position: relative;
  display: inline-block; outline: none; transition: transform .5s cubic-bezier(.34, 1.56, .64, 1), background-size 0s linear .5s; }
/* Перелив на словах (09.11, Сергей): цвета фирменного градиента заставки бегут по буквам. Круг как на кнопке слишком
   тихий внутри букв, его не было видно, поэтому здесь цвета едут без остановок, 4 с на круг.
   Навели — играет сразу; увели — ещё 0,5 с играет и 0,35 с гаснет. Поверх букв летят белые точки, как на кнопке (.grad-fx).
   background-size прячет обычную заливку, чтобы края букв не двоились. */
.grad[data-blin]::after { content: attr(aria-label); position: absolute; inset: 0; white-space: nowrap; pointer-events: none; opacity: 0; color: transparent; transition: opacity .35s ease-in-out .5s;
  background-image: linear-gradient(90deg, #ff00f7, #ff2f7a, #f65b6e, #ffb347, #f65b6e, #ff2f7a, #ff00f7);
  background-size: 300% 100%; background-repeat: repeat-x;
  -webkit-background-clip: text; background-clip: text;
  animation: grad-run 4s linear infinite; }
@keyframes grad-run { from { background-position: 0 0; } to { background-position: 150% 0; } }
.grad-fx { position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0; transition: opacity .35s ease-in-out .5s; }
.grad-fx canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.grad[data-blin]:hover .grad-fx, .grad[data-blin]:focus-visible .grad-fx { opacity: 1; transition: none; }
.grad[data-blin]:hover, .grad[data-blin]:focus-visible { background-size: 0 0; transition: transform .5s cubic-bezier(.34, 1.56, .64, 1), background-size 0s; }
.grad[data-blin]:hover::after, .grad[data-blin]:focus-visible::after { opacity: 1; transition: none; }
.grad[data-blin].is-pop { animation: blin-pop .55s cubic-bezier(.34, 1.56, .64, 1); }
@keyframes blin-pop { 0% { transform: scale(1); } 30% { transform: scale(.94); } 70% { transform: scale(1.04); } 100% { transform: scale(1); } }
.blin-cv { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 50; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .grad[data-blin].is-pop, .grad[data-blin]::after { animation: none; } .grad-fx canvas { display: none; } }

/* Сторис по нажатию на «от людей» (08.11, Сергей): волна доходит до телефона — вместо демо
   пять сторис пустого профиля из приложения (first_look_slides.dart), вид как в приложении:
   экран 393×852 масштабом демо, полоски 4 white 25, крестик closeOverlay 28 в зоне 40,
   заголовок 32/38, текст 16/20, кнопка white 25 высотой 44, радиус 8, 18/22.
   Наведи мышь — пауза; нажми справа — дальше, слева — назад; крестик или конец — снова демо. */
.stories { position: absolute; inset: 0; z-index: 2; overflow: hidden; opacity: 0; visibility: hidden; pointer-events: none; transform: scale(1.04);
  transition: opacity .35s ease, transform .45s cubic-bezier(.22, 1, .36, 1), visibility 0s linear .45s; }
.stories.is-on { opacity: 1; visibility: visible; pointer-events: auto; transform: none; transition: opacity .35s ease, transform .45s cubic-bezier(.22, 1, .36, 1); }.st-screen { position: absolute; left: 0; top: 0; width: 393px; height: 852px; transform-origin: 0 0; transform: scale(calc(.773537 * var(--k))); background: var(--tone, #8a5a3e); color: #fff; cursor: pointer; user-select: none; }
.st-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.st-shade { position: absolute; left: 0; right: 0; bottom: 0; height: 315px; }
.st-bars { position: absolute; left: 16px; right: 16px; top: 38px; display: flex; gap: 4px; }
.st-bars i { flex: 1; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .25); overflow: hidden; }
.st-bars i::after { content: ""; display: block; height: 100%; width: calc(var(--p, 0) * 100%); background: #fff; }
.st-x { position: absolute; right: 8px; top: 50px; width: 40px; height: 40px; display: grid; place-items: center; border: 0; background: none; cursor: pointer; }
.st-content { position: absolute; left: 16px; right: 16px; bottom: 34px; }
.st-h { font-size: 32px; line-height: 38px; font-weight: 700; white-space: pre-line; }
.st-p { margin-top: 12px; font-size: 16px; line-height: 20px; }
.st-btn { display: grid; place-items: center; height: 44px; margin-top: 24px; border-radius: 8px; background: rgba(255, 255, 255, .25); font-size: 18px; line-height: 22px; font-weight: 700; }
.wave-cv { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 49; pointer-events: none; display: none; }
.wave-cv.is-on { display: block; }

/* ---------- Первый экран по высоте окна (Сергей 11.11) ----------
   Низкое окно (макбук с панелью снизу): телефон, QR и надпись «демо-режим» ужимаются вместе, чтобы под телефоном
   оставалось 24. Больше макета не растут. --fit ставит cv1.js, он же ставит --k = .953947 × fit для демо и волны. */
@media (min-width: 981px) {
  .hero { height: calc(628px * var(--fit, 1)); }
  .phone { left: calc(957px - 145px * var(--fit, 1)); width: calc(290px * var(--fit, 1)); height: calc(628px * var(--fit, 1)); border-radius: calc(23.55px * var(--fit, 1)); }
  .qr-row { margin-top: calc(40px * var(--fit, 1)); gap: calc(36px * var(--fit, 1)); }
  .qr-card { width: calc(220px * var(--fit, 1)); height: calc(220px * var(--fit, 1)); padding: calc(8px * var(--fit, 1)); }
  .qr-card img { width: calc(204px * var(--fit, 1)); height: calc(204px * var(--fit, 1)); }
  .qr-text { padding-top: 0; }
  /* Надписи пером держатся у телефона: сдвигаются вправо вместе с его левым краем, «демо-режим» поднимается вместе с низом. */
  .demo-hand { left: calc(578px + 145px * (1 - var(--fit, 1))); top: calc(546px - 628px * (1 - var(--fit, 1))); }
  .demo-arrow { left: calc(675px + 145px * (1 - var(--fit, 1))); top: calc(407px - 628px * (1 - var(--fit, 1))); }
  .taste-hand { left: calc(601px + 145px * (1 - var(--fit, 1))); top: calc(358px * var(--fit, 1)); }
  .taste-arrow { left: calc(712.88px + 145px * (1 - var(--fit, 1))); top: calc(417.8px * var(--fit, 1)); }
}
/* ---------- Адаптив (сетка из Figma 23131:95176, Сергей 09.11) ----------
   от 1240: компьютер как есть; 981–1239: всё как на компьютере, только мельче;
   641–980: планшет; до 640: телефон. На планшете и телефоне блоки столбиком, QR и надписей пером нет,
   значки магазинов под телефоном, внизу закреплена кнопка «Скачать Клукс». */
.hero-stores, .get-bar { display: none; }
@media (min-width: 1160px) and (max-width: 1239px) { .page { zoom: .92; } }
@media (min-width: 1070px) and (max-width: 1159px) { .page { zoom: .85; } }
@media (min-width: 981px) and (max-width: 1069px) { .page { zoom: .77; } }

@media (max-width: 980px) {
  .page { width: auto; padding: 16px 16px calc(96px + env(safe-area-inset-bottom)); }
  .s2, .s3, .s4, .s6 { margin-top: 80px; }
  .top { top: 0; flex-wrap: wrap; gap: 12px 32px; height: auto; }

  .hero { height: auto; display: flex; flex-direction: column; }
  .cover { margin-top: 32px; width: auto; }
  .grad { background-size: 100% 200%; background-position: 0 0; }
  .qr-row, .demo-hand, .demo-arrow, .taste-hand, .taste-arrow { display: none; }
  .phone { position: relative; left: auto; top: auto; flex: none; margin: 32px auto 0; }
  .hero-stores { display: flex; justify-content: center; margin-top: 24px; }
  .get-bar { display: flex; justify-content: center; position: fixed; left: 16px; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 40; height: 56px; font-size: 20px; line-height: 24px; box-shadow: 0 12px 28px rgba(21, 34, 66, .28); }

  .s2, .s3 { flex-direction: column; gap: 32px; }
  .s2-text, .s3-text { width: auto; padding: 0; }
  .s2 .card-wrap { width: 100%; max-width: 486px; margin: 0 auto; }
  .card-coat { width: 100%; height: auto; aspect-ratio: 486 / 620; }
  .card-coat > img, .card-coat > video.live { height: 101.3%; }
  .tag { left: 24px; top: auto; bottom: 24px; }
  .chips { flex-wrap: wrap; }

  .s3 .card-wrap { order: -1; width: 100%; }
  .card-friends { width: 100%; height: auto; aspect-ratio: 792 / 460; }

  .s4 { gap: 16px; }
  .who { width: calc(50% - 8px); }
  .who .card-wrap { width: 100%; }
  .who .card { width: 100%; height: auto; aspect-ratio: 577 / 380; }
  .who h3 { margin-top: 20px; font-size: 24px; line-height: 29px; }
  .who .p18 { margin-top: 8px; padding-right: 0; }

  .s6-row { flex-direction: column; gap: 32px; }
  .s6-side, .s6-body { width: auto; }
  .s6-body { padding-right: 0; }

  .foot { flex-direction: column-reverse; align-items: flex-start; gap: 32px; margin-top: 80px; }
  .foot-right { align-items: flex-start; gap: 24px; width: 100%; }
  .foot-links { flex-wrap: wrap; gap: 12px 24px; }

}

@media (max-width: 640px) {
  .s2, .s3, .s4, .s6 { margin-top: 64px; }
  .top { gap: 12px 0; }
  .menu { flex-basis: 100%; gap: 16px; font-size: 15px; line-height: 20px; }
  h1 { font-size: 36px; line-height: 43px; }
  h2 { font-size: 28px; line-height: 34px; }
  .lead, .p18 { font-size: 16px; line-height: 22px; }
  .card-coat, .card-friends, .card-blog, .card-shop { border-radius: 28px; }
  .btn { display: flex; justify-content: center; width: 100%; height: 56px; font-size: 20px; line-height: 24px; }
  /* длинная подпись («Зарегистрироваться бесплатно») на узком телефоне — в две строки, кнопка растёт, текст не вылезает (Сергей 15.11) */
  .btn:not(.m-cta .btn) { height: auto; min-height: 56px; padding-top: 12px; padding-bottom: 12px; text-align: center; }
  .get-bar { width: auto; }
  .s2-text .btn, .s3-text .btn { margin-top: 32px; }
  .s4 { flex-direction: column; gap: 40px; }
  .who { width: 100%; }
  .foot { margin-top: 64px; }
}

@media (max-width: 370px) {
  h1 { font-size: 32px; line-height: 38px; }
  .menu { gap: 12px; font-size: 14px; }
}

/* Сергей 10.11: текст блоков всегда поверх свечения карточек (на узком экране свечение уходит под заголовок) */
.s2-text, .s3-text, .b5-text { position: relative; z-index: 2; }

/* ---------- Мобильный сайт (Сергей 13.11.2026, Figma «ЦВ 1 · мобильный · v2», вариант 1): бургер, меню списком, кнопки вместо демо-телефона,
   демо-режим на весь экран со стеклом. На компьютере (от 981) ничего этого нет. mobile.js строит меню и демо. ---------- */
.burger, .m-cta { display: none; }
.nobr { white-space: nowrap; } /* запятая не уходит одна на строку (shops 1 на 360) */
.m-menu[hidden], .m-demo[hidden], .m-demo [hidden] { display: none !important; }
html.m-lock, html.m-lock body { overflow: hidden; }
/* «Скачать Клукс» переливается сама, без наведения (как кнопка при наведении на компьютере) */
.btn-live { background-color: transparent; }
.btn-live::before { opacity: 1; transition: none; }
@media (max-width: 980px) {
  .top { flex-wrap: nowrap; align-items: center; justify-content: space-between; }
  .top .menu { display: none; }
  .burger { display: grid; place-items: center; width: 44px; height: 44px; margin-right: -8px; padding: 0; border: 0; background: none; color: var(--ink); cursor: pointer; }
  .burger svg { display: block; width: 28px; height: 28px; }

  /* первый экран с демо (главная, продавцам): телефона нет — кнопки */
  .hero.has-m-cta .phone, .hero.has-m-cta .hero-stores { display: none; }
  .m-cta { display: flex; flex-direction: column; gap: 12px; margin-top: 28px; }
  .m-cta .btn { display: flex; justify-content: center; width: 100%; height: 56px; padding: 0 24px; font-size: 20px; line-height: 24px; }
  /* Сергей 15.11: «Скачать Клукс» и «Демо-режим» рядом, а не одна под другой; на совсем узких (до 349) — снова столбиком */
  .m-cta { flex-direction: row; }
  .m-cta .btn { flex: 1 1 0; min-width: 0; width: auto; padding: 0 12px; font-size: 18px; line-height: 22px; white-space: nowrap; }
  @media (max-width: 349px) { .m-cta { flex-direction: column; } .m-cta .btn { flex: none; width: 100%; } }
  .btn-demo { background: #eef1f8; color: var(--ink); border: 0; font-family: inherit; cursor: pointer; }
  .btn-demo::before, .btn-demo canvas { display: none; }
  .btn-demo:hover, .btn-demo:focus-visible { background-color: #eef1f8; }
  .m-stores { display: flex; gap: 16px; }
  .m-stores .store img { height: 40px; }
  /* закреплённая «Скачать Клукс» не дублирует кнопку первого экрана */
  html.m-cta-on .get-bar { opacity: 0; pointer-events: none; }
  .get-bar { transition: opacity .2s ease; }

  /* Сергей 13.11, мобильный веб: на первом экране две кнопки («Скачать Клукс» и «Демо-режим»), сторы — в подвале и меню;
     закреплённой «Скачать Клукс» внизу нет; все «Скачать…» сразу розовые с переливом, как при наведении на компьютере */
  .get-bar { display: none !important; }
  /* Сергей 15.11: сразу розовые — только на телефоне (без мыши); в узком окне компьютера — тёмные, перелив при наведении */
  @media (hover: none) {
    a.btn[href="/go"] { background-color: transparent; }
    a.btn[href="/go"]::before { opacity: 1; transition: none; }
  }
  /* подвал: ссылки на документы не впритык к сторам и друг к другу */
  .foot-right { gap: 32px; }
  .foot-links { gap: 16px 24px; }

  /* Сергей 15.11: тени-переливы под карточками на телефоне убраны (обрезались краями экрана, «сложно повторить») */
  .card-glow, .card-glow-live { display: none !important; }

  /* меню на весь экран */
  .m-menu { position: fixed; inset: 0; z-index: 300; display: flex; flex-direction: column; overflow-y: auto; background: #fff;
    padding: 16px 16px calc(24px + env(safe-area-inset-bottom)); }
  .m-menu-top { display: flex; align-items: center; justify-content: space-between; height: 40px; flex: none; }
  .m-menu-top .logo img { display: block; width: 131px; height: 40px; }
  .m-x { display: grid; place-items: center; width: 44px; height: 44px; margin-right: -8px; padding: 0; border: 0; background: none; color: var(--ink); cursor: pointer; }
  .m-x svg { display: block; width: 28px; height: 28px; }
  .m-main { display: flex; flex-direction: column; gap: 24px; margin-top: 48px; font-size: 24px; line-height: 29px; font-weight: 700; }
  .m-sub { display: flex; flex-direction: column; gap: 20px; margin-top: 24px; padding-top: 24px; border-top: 1px solid #e3e8f2; font-size: 18px; line-height: 22px; }
  .m-cur { color: var(--muted); }
  .m-menu-bottom { display: flex; flex-direction: column; gap: 16px; margin-top: auto; padding-top: 40px; }
  .m-menu-bottom .btn { display: flex; justify-content: center; width: 100%; height: 56px; padding: 0 24px; font-size: 20px; line-height: 24px; }

  /* демо-режим на весь экран: приложение, по центру стекло (как «Опубликовано», без иконки) */
  .m-demo { position: fixed; inset: 0; z-index: 310; background: #000; }
  .m-demo iframe { display: block; width: 100%; height: 100%; border: 0; }
  .m-demo-veil { position: absolute; inset: 0; }
  .m-demo-card { position: absolute; left: 16px; right: 16px; top: 50%; transform: translateY(-50%); padding: 24px 16px; border-radius: 12px; text-align: center; color: #fff;
    background: rgba(255, 255, 255, .25); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
  .m-demo-h { font-size: 16px; line-height: 20px; font-weight: 700; }
  .m-demo-t { margin-top: 8px; font-size: 14px; line-height: 18px; }
  .m-demo-exit { width: 180px; height: 36px; margin-top: 16px; border: 0; border-radius: 8px; color: #fff; font: 700 14px/18px "Lato", sans-serif; cursor: pointer;
    background: rgba(255, 255, 255, .25); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
  /* после тапа мимо стекла: снэкбар под шапкой приложения и счётчиком 1/3 (Figma «вариант 2», Сергей 15.11) */
  .m-demo-bar { position: absolute; top: calc(116px + env(safe-area-inset-top)); left: 16px; right: 16px; display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 16px;
    border-radius: 12px; color: #fff; background: rgba(21, 34, 66, .5); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
  .m-demo-bar-text { flex: 1 1 auto; min-width: 0; }
  .m-demo-bar-h { font-size: 14px; line-height: 18px; font-weight: 700; }
  .m-demo-bar-t { margin-top: 2px; font-size: 12px; line-height: 16px; }
  .m-demo-bar-exit { flex: none; height: 36px; padding: 0 20px; border: 0; border-radius: 8px; color: #fff; font: 700 14px/18px "Lato", sans-serif; cursor: pointer;
    background: rgba(255, 255, 255, .25); }
}

/* Сергей 15.11: кнопка play на карточках с роликом — только на телефоне (mobile.js добавляет её при hover: none) */
.v-play { position: absolute; right: 12px; bottom: 12px; z-index: 5; display: grid; place-items: center; width: 44px; height: 44px;
  padding: 0; border: 1px solid rgba(255, 255, 255, .5); border-radius: 50%; background: rgba(255, 255, 255, .25); color: #fff;
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); cursor: pointer; transition: opacity .2s ease; }
.v-play svg { display: block; margin-left: 2px; }
.card.is-v-playing .v-play { opacity: 0; pointer-events: none; }
@media (hover: hover) { .v-play { display: none; } }
