/* fonj studio — вёрстка по выгрузке Framer (размеры, отступы и цвета оттуда же) */

@font-face { font-family: "Manrope"; src: url("../fonts/manrope-400.309a4f5c9611.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("../fonts/manrope-500.75cc7445e162.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("../fonts/manrope-600.e0c3912994fb.woff2") format("woff2"); font-weight: 600; font-display: swap; }
/* Manrope ExtraBold — для главного заголовка */
@font-face { font-family: "Manrope"; src: url("../fonts/manrope-800-latin.bb0422a7d9f0.woff2") format("woff2"); font-weight: 800; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Manrope"; src: url("../fonts/manrope-800-latin-ext.c8f367c0cd45.woff2") format("woff2"); font-weight: 800; font-display: swap; unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Manrope"; src: url("../fonts/manrope-800-cyrillic.ceefeb5d87ce.woff2") format("woff2"); font-weight: 800; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Switzer"; src: url("../fonts/switzer-500.a7cfda8e3222.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Switzer"; src: url("../fonts/switzer-600.eb58db2b5a33.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --bg: #ffffff;
  --fg: #0a0a0a;
  --gray: #757575;
  --line: #e3e3e3;
  --red: #ff1d00;
  --panel: #121212;
  --green: #00ff40;
  --block: #f3f3f3;                 /* фон плашек-блоков: в светлой теме светло-серый, в тёмной прозрачный */
  --block-pad: 32px; --block-pad-m: 24px 20px;
  --logo-panel: #121212;            /* логотипы клиентов белые и не перекрашиваются — стоят на тёмной подложке */
  --arrow-filter: invert(1);        /* фирменная стрелка ↗ (белый png): в светлой теме перекрашиваем в чёрную */
  color-scheme: light dark;
}
/* Тёмная тема: по системе или по кнопке-переключателю (data-theme на <html>, выбор хранится в localStorage) */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --bg: #121212; --fg: #ffffff; --gray: #ababab; --line: rgba(255, 255, 255, .25); --logo-panel: transparent; --block: transparent; --block-pad: 0; --block-pad-m: 0; --arrow-filter: none; color-scheme: dark; }
}
:root[data-theme="dark"] { --bg: #121212; --fg: #ffffff; --gray: #ababab; --line: rgba(255, 255, 255, .25); --logo-panel: transparent; --block: transparent; --block-pad: 0; --block-pad-m: 0; --arrow-filter: none; color-scheme: dark; }
:root[data-theme="light"] { color-scheme: light; }

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
h1, h2, h3, h4, h5, h6 { font-size: inherit; font-weight: inherit; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg); color: var(--fg);
  font-family: "Manrope", system-ui, -apple-system, sans-serif;
  font-size: 16px; line-height: 1.4; letter-spacing: -0.03em;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; letter-spacing: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
/* колонки — прокручиваемые области: браузер может дать им фокус (переход по #work, клик), обводка там не нужна */
.pane:focus, .pane:focus-visible { outline: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- типографика (текстовые стили Framer) ---------- */
.t-h1  { font-weight: 500; font-size: 24px; line-height: 1.1; letter-spacing: -0.05em; }
.t-h2  { font-weight: 500; font-size: 18px; line-height: 1.3; }
.t-h3  { font-weight: 400; font-size: 16px; line-height: 1.4; }
.t-20  { font-size: 20px; line-height: 1.3; }
.t-18m { font-weight: 500; font-size: 18px; line-height: 1.3; }
.t-16  { font-size: 16px; line-height: 1.4; color: var(--gray); }
.t-14  { font-size: 14px; line-height: 1.4; color: var(--gray); }
.fg    { color: var(--fg); }
.muted { color: var(--gray); }
@media (max-width: 1199px) {
  .t-h1 { font-size: 22px; } .t-h2 { font-size: 17px; } .t-h3, .t-16 { font-size: 15px; }
  .t-14 { font-size: 13px; } .t-20 { font-size: 18px; } .t-18m { font-size: 17px; }
}

/* ---------- кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 16px; border-radius: 5px; background: var(--red); color: var(--bg);
  font-family: "Switzer", "Manrope", sans-serif; font-weight: 600; font-size: 16px; line-height: 1.1;
  transition: opacity .2s;
}
.btn:hover { opacity: .85; }
.pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 25px;
  background: var(--line); font-family: "Switzer", "Manrope", sans-serif; font-weight: 500; font-size: 14px; line-height: 1.1;
  transition: opacity .2s;
}
.pill:hover { opacity: .8; }
.pill svg { width: 13px; height: 13px; }
.to-top {
  display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  background: var(--line); color: var(--gray); transition: color .2s;
}
.to-top:hover { color: var(--fg); }
.to-top svg { width: 14px; height: 14px; }
/* переключатель темы: в светлой теме луна, в тёмной солнце */
.theme-toggle {
  display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  background: var(--line); color: var(--gray); transition: color .2s; flex-shrink: 0;
}
.theme-toggle:hover { color: var(--fg); }
/* переключатель языка: подпись — язык, на который переключит */
.lang-toggle {
  display: inline-grid; place-items: center; min-width: 30px; height: 30px; padding: 0 8px; border-radius: 15px;
  background: var(--line); color: var(--gray); font-weight: 600; font-size: 12px; line-height: 1; letter-spacing: .02em;
  transition: color .2s; flex-shrink: 0;
}
.lang-toggle:hover { color: var(--fg); }
.theme-toggle svg { width: 15px; height: 15px; grid-area: 1 / 1; }
.theme-toggle .icon-sun { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon-sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .icon-moon { display: none; }
}
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

/* ---------- две колонки, каждая со своей прокруткой ---------- */
.split { display: flex; height: 100vh; height: 100dvh; }
.pane {
  position: relative; flex: 1 1 0; min-width: 0; height: 100%;
  overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; scroll-behavior: smooth; scroll-padding-top: 24px;
}
.pane::-webkit-scrollbar { display: none; }
/* главная: колонки поровну на любой ширине — граница ровно по центру */
@media (min-width: 1200px) { .split--page .pane--right { flex-grow: 2; } }

.progress { position: sticky; top: 0; z-index: 5; height: 3px; }
.pane--left .progress { background: var(--bg); }
.progress span { display: block; height: 100%; width: 0; background: var(--fg); }

.col-left  { display: flex; flex-direction: column; gap: 60px; padding: 20px 40px 20px 20px; }
.col-right { display: flex; flex-direction: column; gap: 60px; padding: 17px 20px 0 0; }

/* ---------- шапка: логотип и название ---------- */
.intro { display: flex; flex-direction: column; gap: 32px; }
.brand { display: flex; flex-direction: column; justify-content: space-between; min-height: 56px; }
.brand__row { display: flex; justify-content: space-between; align-items: center; min-height: 28px; }
.brand__name { display: flex; align-items: baseline; gap: 8px; }
.brand__name .cap-arrow { margin-left: 8px; } /* знак — 8 px — название — 8 px — стрелка: одинаковые отступы с обеих сторон */
.brand__tools { display: flex; align-items: center; gap: 10px; }
.logo-mark { height: calc(24px * .72); width: auto; flex-shrink: 0; } /* знак ровно по высоте заглавной и стрелки (картинка без полей) */
@media (max-width: 1199px) { .logo-mark { height: calc(22px * .72); } }
.intro__text { max-width: 520px; text-wrap: balance; }
/* первый экран: крупно — кто мы и что делаем */
.hero-title { font-weight: 800; font-size: 40px; line-height: 1.08; letter-spacing: -0.04em; max-width: 620px; text-wrap: balance; }
.intro__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
@media (max-width: 809px) { .hero-title { font-size: 31px; } }

/* ── Новый макет (по шагам). Первый экран: заголовок 64/1, текст 16 Medium, квадратная красная кнопка ── */
.hero { display: flex; flex-direction: column; align-items: flex-start; gap: 23px; padding-top: clamp(60px, 38vh, 520px); } /* первый блок опущен ближе к низу первого экрана */
.hero__title { font-weight: 700; font-size: 64px; line-height: 1; letter-spacing: -0.02em; max-width: 602px; text-wrap: balance; }
.hero__title .cap-arrow { margin-left: .06em; }
.hero__text { max-width: 584px; font-weight: 500; font-size: 16px; line-height: 1.3; letter-spacing: .02em; opacity: .9; }
.btn-block { display: inline-flex; align-items: center; justify-content: center; height: 50px; padding: 0 10px; border: 0; border-radius: 0;
  background: var(--red); color: #000; font: inherit; font-weight: 600; font-size: 20px; letter-spacing: -0.01em; cursor: pointer; transition: background .2s, color .2s; }
.btn-block:hover { background: var(--fg); color: var(--bg); }
/* нумерованное меню разделов */
.secnav { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; margin-top: 48px; }
.secnav a { font-weight: 700; font-size: 40px; line-height: 1.05; letter-spacing: -0.01em; opacity: .5; transition: opacity .25s; }
.secnav a:hover, .secnav a.is-active { opacity: 1; }
@media (max-width: 809px) {
  .hero { padding-top: 24px; }
  .hero__title { font-size: 40px; }
  .secnav { margin-top: 32px; }
  .secnav a { font-size: 30px; }
}
.available { display: flex; align-items: center; gap: 4px; }
.available::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--green); }

/* ---------- секции слева ---------- */
.section { display: flex; flex-direction: column; gap: 60px; }
.rule { height: 1px; background: var(--line); flex-shrink: 0; }
/* Выделенные блоки (услуги, результаты, форма внизу): в светлой теме — светло-серые плашки,
   в тёмной — прозрачные (у услуг — чуть светлее фона). */
/* подвал (логотипы, меню, копирайт) — тёмный и в светлой теме */
.footer-dark {
  --bg: #121212; --fg: #ffffff; --gray: #ababab; --line: rgba(255, 255, 255, .2); --logo-panel: transparent; --arrow-filter: none;
  display: flex; flex-direction: column; gap: 40px; padding: 40px 32px 32px; border-radius: 5px; background: #121212; color: var(--fg); color-scheme: dark;
}
.footer-dark .btn { color: #fff; }
:root[data-theme="dark"] .footer-dark { background: transparent; padding: 0; gap: 60px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .footer-dark { background: transparent; padding: 0; gap: 60px; } }
@media (max-width: 809px) { :root[data-theme="light"] .footer-dark, :root:not([data-theme]) .footer-dark { padding: 28px 20px 24px; gap: 32px; margin-inline: -20px; border-radius: 0; } } /* на телефоне — во всю ширину, без полей */
.dark-block {
  background: var(--block); color: var(--fg); border-radius: 5px; padding: var(--block-pad);
}
@media (max-width: 809px) { .dark-block { padding: var(--block-pad-m); } }
.section__body { display: flex; flex-direction: column; gap: 26px; }
.section__title { display: flex; flex-direction: column; gap: 12px; }
.prose { max-width: 480px; }
.prose p, .lead__sub { text-wrap: balance; }
.prose p + p { margin-top: 1em; }

/* логотипы клиентов — бегущая строка */
.marquee {
  display: flex; height: 124px; overflow: hidden; background: var(--logo-panel); border-radius: 5px;
}
.marquee__track {
  display: flex; align-items: center; gap: 64px; padding-right: 64px; flex-shrink: 0;
  animation: marquee 40s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
/* с JS полосу ведёт скрипт: её можно тянуть мышью, листать свайпом, тачпадом и стрелками */
.marquee.is-live { cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.marquee.is-live .marquee__track { animation: none; will-change: transform; }
.marquee.is-dragging { cursor: grabbing; }
.marquee img { -webkit-user-drag: none; }
.marquee img { height: 58px; width: auto; max-width: 116px; object-fit: contain; }
.marquee img.is-big { height: 70px; max-width: 139px; }
@keyframes marquee { to { transform: translateX(-100%); } }

/* услуги */
/* каждая услуга — отдельная плашка, 2 в ряд (на телефоне 1) */
.services { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.service.dark-block { display: flex; flex-direction: column; gap: 6px; padding: 24px; }
:root[data-theme="dark"] .service.dark-block { --block: #1c1c1c; padding: 24px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .service.dark-block { --block: #1c1c1c; padding: 24px; } }
.service__name { font-weight: 500; font-size: 20px; line-height: 1.2; letter-spacing: -0.03em; color: var(--fg); }
.service__lead { color: var(--fg); opacity: .8; }
.service__points { list-style: none; display: flex; flex-direction: column; gap: 4px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.service__points li { display: flex; align-items: flex-start; gap: 8px; }
.service__points li::before { content: ""; width: 4px; height: 4px; margin-top: .6em; border-radius: 50%; background: var(--gray); flex-shrink: 0; }
@media (max-width: 809px) { .services { grid-template-columns: minmax(0, 1fr); } .service.dark-block { padding: 20px; } }

/* процесс */
/* процесс — светлые плашки с обводкой (у услуг — тёмные), 2×2; стрелка бренда в углу */
.steps { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; list-style: none; padding-left: 30px; }
.step { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 24px; border: 1px solid var(--line); border-radius: 5px; transition: border-color .3s, opacity .4s, transform .5s cubic-bezier(.2, .7, 0, 1); }
.step:hover { border-color: var(--fg); }
.step__body { display: flex; flex-direction: column; gap: 6px; padding-right: 24px; }
.step__name { color: var(--fg); font-weight: 500; font-size: 20px; line-height: 1.2; letter-spacing: -0.03em; }
@media (max-width: 809px) { .step { padding: 20px; } }
.dot { width: 4px; height: 4px; border-radius: 50%; background: var(--line); flex-shrink: 0; }

/* команда */
.team { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.member { display: flex; flex-direction: column; gap: 18px; padding: 0 0 8px; }
.member__frame { position: relative; overflow: hidden; border-radius: 3px; aspect-ratio: 4 / 5; background: var(--line); }
.member__photo { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.member:hover .member__photo { transform: scale(1.04); }
.member__role { position: absolute; left: 10px; bottom: 10px; padding: 6px 10px; border-radius: 14px; background: var(--bg); color: var(--fg); line-height: 1; }
.member__info { display: flex; flex-direction: column; gap: 8px; }
.member__name { font-weight: 500; font-size: 24px; line-height: 1.1; letter-spacing: -0.04em; color: var(--fg); }
.member__skills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; list-style: none; padding: 0; }
.member__skills li { padding: 5px 10px; border: 1px solid var(--line); border-radius: 13px; font-size: 13px; line-height: 1.1; color: var(--fg); }

/* подвал */
.footer { position: relative; display: flex; flex-direction: column; gap: 60px; }
.footer .to-top { position: absolute; right: 0; bottom: 8px; }
.ulink { color: var(--fg); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.ulink:hover { text-decoration-color: var(--red); }
.footer__bottom { display: flex; flex-direction: column; gap: 12px; }

/* подвал: факты, отзывы, логотипы клиентов, колонки ссылок */
.proof { gap: 32px; }
.facts-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 20px; }
.fact-tile { display: flex; flex-direction: column; gap: 6px; min-width: 0; padding-top: 14px; border-top: 1px solid var(--line); }
.fact-tile__value { font-weight: 500; font-size: 24px; line-height: 1.1; letter-spacing: -0.05em; color: var(--fg); font-variant-numeric: tabular-nums; }
.proof__group { display: flex; flex-direction: column; gap: 16px; }
/* «Почему нас выбирают» — плашки с крупными значениями; одна красная для акцента */
.proof > .facts-grid { gap: 12px; }
.proof > .facts-grid .fact-tile { justify-content: space-between; gap: 18px; min-height: 168px; padding: 24px; border: 1px solid var(--line); border-radius: 5px; }
.proof > .facts-grid .fact-tile__value { font-size: 36px; letter-spacing: -0.05em; }
.proof > .facts-grid .fact-tile:last-child { background: var(--red); border-color: var(--red); }
.proof > .facts-grid .fact-tile:last-child .fact-tile__value, .proof > .facts-grid .fact-tile:last-child dd { color: #fff; }
@media (max-width: 809px) { .proof > .facts-grid .fact-tile { min-height: 140px; padding: 20px; } .proof > .facts-grid .fact-tile__value { font-size: 28px; } }
.fact-tile__value--accent { color: var(--red); }
.draft-badge { display: inline-block; margin-left: 6px; padding: 2px 8px; border-radius: 10px; background: var(--line); color: var(--fg); font-size: 12px; }
.fact-tile__source a { color: var(--gray); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.fact-tile__source a:hover { color: var(--fg); }
/* Отзывы: лента карточек, листается кнопками, кликом по карточке и свайпом */
.quotes__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.quotes__nav { display: flex; align-items: center; gap: 8px; }
.quotes__btn { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 50%; color: var(--fg); cursor: pointer; transition: border-color .25s, opacity .25s, transform .35s cubic-bezier(.3, 1.6, .5, 1); }
.quotes__btn:hover { border-color: var(--fg); }
.quotes__btn:active { transform: scale(.9); }
.quotes__btn:disabled { opacity: .35; cursor: default; border-color: var(--line); }
.quotes__btn .fly-arrow { width: 14px; height: 14px; transform: rotate(45deg); }
.quotes__btn--prev .fly-arrow { transform: rotate(-135deg); }
.quotes { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; overscroll-behavior-x: contain; scrollbar-width: none; margin: 0 -2px; padding: 0 2px; }
.quotes::-webkit-scrollbar { display: none; }
.quotes:focus-visible { outline: 2px solid var(--red); outline-offset: 4px; }
/* Отзывы — одна бесконечная лента: плывёт сама, при наведении останавливается, тянется мышью и пальцем */
.quotes--flow { display: block; overflow: hidden; padding: 2px 0; margin: -2px 0; /* запас, чтобы рамки карточек не обрезались */ scroll-snap-type: none; cursor: grab; touch-action: pan-y; user-select: none;
  -webkit-mask: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); mask: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); }
.quotes--flow.is-dragging { cursor: grabbing; }
.quotes__row { position: relative; min-height: 200px; }
.quotes__row > .quote { position: absolute; top: 0; left: 0; }
.quotes--flow .quote { width: 300px; cursor: inherit; }
.quotes--flow .quote:hover { border-color: var(--fg); }
@media (max-width: 809px) { .quotes--flow .quote { width: 260px; } }
.quotes .quote { flex: 0 0 min(300px, 82%); scroll-snap-align: start; cursor: pointer; transition: border-color .3s, opacity .4s; }
.quotes .quote:hover { border-color: var(--fg); }
.quotes .quote.is-current { border-color: var(--fg); }
.quote { display: flex; flex-direction: column; gap: 12px; padding: 24px; border: 1px solid var(--line); border-radius: 5px; }
.quote__mark { font: 600 44px/0.6 Switzer, sans-serif; color: var(--fg); height: 20px; }
.quote blockquote { flex: 1; text-wrap: pretty; }
.quote--case { max-width: 560px; }
.quote--case blockquote { letter-spacing: -0.02em; }
.quote figcaption { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.footer-logos { display: flex; flex-direction: column; gap: 16px; }
.footer__cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 20px; }
.footer__col { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.footer__col ul { list-style: none; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.footer__cta { display: flex; justify-content: flex-end; margin-top: -8px; }
.flink { color: var(--fg); transition: color .2s; }
.flink:hover { color: var(--red); }

/* встроенная форма заявки внизу левой колонки — в цветах темы */
.lead__form.lead__form--inline { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 16px; max-width: 560px; color: var(--fg); }
.lead__form--inline .field--chips, .lead__form--inline .field:has(textarea), .lead__form--inline .form-error, .lead__form--inline .lead__submit { grid-column: 1 / -1; }
.lead__form--inline .field input, .lead__form--inline .field select, .lead__form--inline .field textarea { background-color: var(--bg); color: var(--fg); border-color: var(--line); }
.lead__form--inline .field option { color: var(--fg); background: var(--bg); }
.lead__form--inline .lead__submit { --h: 48px; height: 48px; font-size: 18px; color: #fff; }
.lead__form--inline.is-done .lead__submit { background: var(--fg); color: var(--bg); }
@media (max-width: 1199px) { .footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- справа: кейсы ---------- */
.projects { display: flex; flex-direction: column; gap: 8px; }
/* огонёк на превью кейса — в правом нижнем углу картинки; отдельная форма поверх, не внутри ссылки */
.work-item { position: relative; }
.react { position: absolute; right: 12px; bottom: 12px; z-index: 2; display: flex; }
.like__btn.react__btn { height: 30px; padding: 0 11px 0 8px; gap: 5px; border-radius: 15px; font-size: 14px; color: #fff;
  background: rgba(0, 0, 0, .32); border-color: rgba(255, 255, 255, .28); box-shadow: none;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); } /* тёмное стекло: читается на любом фото, без яркой подложки */
.like__btn.react__btn:hover { border-color: rgba(255, 255, 255, .7); }
.react__btn .like__heart { width: 16px; height: 16px; }
.react__btn .like__heart path { stroke-width: 2; }
.react__btn .like__count { font-weight: 500; font-size: 14px; letter-spacing: -0.01em; color: rgba(255, 255, 255, .85); }
.like__btn.react__btn[aria-pressed="true"] { border-color: var(--red); }
.react__btn[aria-pressed="true"] .like__count { color: #fff; }
.card { position: relative; display: block; overflow: hidden; background: #000; }
.card img { width: 100%; height: auto; transition: transform .8s cubic-bezier(.2, .7, .2, 1), filter .5s; }
.card__info {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 32px 16px 12px; color: #fff;
  background: linear-gradient(transparent, rgba(0, 0, 0, .35)); transition: opacity .4s;
}
.card:hover img { transform: scale(1.02); }
@media (min-width: 1920px) {  /* как во Framer на широких экранах: ч/б, цвет и подпись при наведении */
  .card img { filter: grayscale(1); }
  .card__info { opacity: 0; }
  .card:hover img, .card:focus-visible img { filter: none; }
  .card:hover .card__info, .card:focus-visible .card__info { opacity: 1; }
}
.actions { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding-bottom: 40px; }

/* ---------- страница кейса ---------- */
.p-intro { display: flex; flex-direction: column; gap: 40px; }
.p-title { display: flex; flex-direction: column; gap: 12px; }
.p-title .pill { align-self: flex-start; margin-bottom: 32px; }
.p-title .intro__text { color: var(--gray); }
.facts { display: flex; flex-direction: column; gap: 6px; }
.fact { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.rich { max-width: 480px; }
.rich h2, .rich h3 { font-weight: 500; font-size: 18px; line-height: 1.3; color: var(--fg); margin-bottom: 26px; }
.rich * + h2, .rich * + h3 { margin-top: 40px; }
.rich p, .rich li { font-size: 16px; line-height: 1.4; color: var(--gray); }
.rich p + p, .rich ul, .rich ol { margin-top: 1em; }
.rich ul, .rich ol { padding-left: 20px; }
.rich a { color: var(--fg); text-decoration: underline; text-underline-offset: 4px; }
.gallery { display: flex; flex-direction: column; }
.gallery img, .gallery video { display: block; width: 100%; height: auto; background: #000; }
.gallery > * + * { margin-top: -1px; } /* бесшовно: без щелей на дробных пикселях */
.col-right--page { gap: 0; padding-bottom: 20px; }
.col-right--page .actions { padding: 60px 0 0; }

/* ---------- 404 ---------- */
/* 404: шапка и заголовок как на главной, справа — работы лентой в цвете */
.nf-left { min-height: 100%; justify-content: space-between; }
.nf-code { margin-bottom: -20px; }
.nf-title { max-width: 520px; }
.split--nf .ticker img { filter: none; }
.split--nf .ticker--down .ticker__track { animation-delay: -27s; } /* колонки не повторяют друг друга */
.split--nf .tickers:hover .ticker__track { animation-play-state: paused; }
.nf-strip { display: none; }
@media (min-width: 1200px) { .split--nf .pane--right { flex-grow: 2; } }
.tickers { display: flex; gap: 8px; height: 100%; padding: 17px 20px 20px 0; overflow: hidden; }
.ticker { flex: 1; overflow: hidden; }
.ticker__track { display: flex; flex-direction: column; gap: 8px; animation: ticker 60s linear infinite; }
.ticker--down .ticker__track { animation-direction: reverse; }
.ticker img { width: 100%; height: auto; filter: grayscale(1); }
@keyframes ticker { to { transform: translateY(-50%); } }
@keyframes nf-strip { to { transform: translateX(calc(-50% - 4px)); } }

/* ---------- меню-таблетка на телефоне ---------- */
.phone-nav {
  display: none; position: fixed; top: 12px; left: 50%; transform: translateX(-50%); z-index: 50;
  padding: 3px; border-radius: 25px; background: rgba(227, 227, 227, .4);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.phone-nav a {
  padding: 8px 20px; border-radius: 30px; font-family: "Switzer", "Manrope", sans-serif; font-weight: 500; font-size: 14px;
  line-height: 1.1; opacity: .65; transition: background .25s, opacity .25s;
}
.phone-nav a:not(.is-active) { color: #0a0a0a; opacity: .75; } /* неактивный пункт — тёмный текст на светлой подложке в обеих темах */
.phone-nav a.is-active { background: var(--bg); color: var(--fg); opacity: 1; }

/* ---------- окно заявки ---------- */
.lead { margin: auto; border: 0; padding: 0; background: transparent; color: #fff; width: min(760px, calc(100% - 32px)); max-height: calc(100dvh - 32px); }
.lead::backdrop { background: rgba(0, 0, 0, .7); }
.lead[open] { animation: lead-in .25s ease-out; }
@keyframes lead-in { from { opacity: 0; transform: translateY(12px); } }
.lead__panel { position: relative; display: flex; gap: 48px; padding: 48px; border-radius: 5px; background: var(--panel); }
.lead__close { position: absolute; top: 14px; right: 14px; width: 32px; height: 32px; display: grid; place-items: center; color: #ababab; border-radius: 50%; }
.lead__close:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.lead__close-arrow { display: none; width: 23px; height: 28px; object-fit: contain; }
.lead__intro { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.lead__heading { font-weight: 500; font-size: 36px; line-height: 1.1; letter-spacing: -0.04em; }
.lead__sub { color: #ababab; max-width: 230px; }
.lead__img { flex: 1 1 0; width: 100%; height: auto; min-height: 220px; object-fit: cover; object-position: 50% 55%; border-radius: 5px; margin-top: 12px; } /* коробка занимает всё место под текстом — по высоте формы */
.lead__form { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field > label, .field__label { font-weight: 500; font-size: 13px; line-height: 1.1; }
.field input, .field select, .field textarea {
  width: 100%; height: 42px; padding: 0 15px; border: 1px solid #e3e3e3; border-radius: 3px;
  background: var(--panel); color: #fff; font: inherit; font-size: 15px; letter-spacing: -0.02em;
}
.field select {
  height: 44px; appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%23ababab' stroke-width='1.5'%3E%3Cpath d='m2 4 4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 15px center;
}
.field select:invalid, .field select:has(option[value=""]:checked) { color: #757575; }
.field option { color: #fff; background: var(--panel); }
.field textarea { height: 120px; padding: 14px 15px; resize: vertical; }
.field ::placeholder { color: #757575; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--red); }
.field .error { color: #ff6a55; font-size: 13px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.lead__submit {
  --h: 54px; position: relative; width: 100%; margin-inline: auto; overflow: hidden;
  height: 54px; border-radius: 4px; background: var(--red); color: var(--fg);
  font-weight: 500; font-size: 24px; letter-spacing: -0.05em; transition: opacity .2s;
}
.lead__submit:hover { opacity: .9; }
.lead__submit:disabled { opacity: .6; cursor: default; }
.lead__form.is-done .lead__submit { background: #fff; color: #121212; opacity: 1; }
.form-error { color: #ff6a55; font-size: 14px; }

/* тост «See you on Telegram» */
.toast {
  position: fixed; top: 20px; left: 50%; z-index: 100; transform: translate(-50%, -20px); opacity: 0; pointer-events: none;
  display: flex; align-items: baseline; gap: 8px; width: max-content; max-width: calc(100vw - 32px); padding: 6px 12px; border-radius: 5px; background: var(--panel); color: #fff;
  font-weight: 500; font-size: 24px; letter-spacing: -0.05em; transition: opacity .3s, transform .3s;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast img { height: .72em; width: auto; align-self: baseline; } /* знак = высота заглавной = высота стрелки */
.toast.is-typed .caret { display: none; }
.toast .caret { display: inline-block; width: 2px; height: 1em; background: #fff; margin-left: 2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ---------- планшет и телефон ---------- */
@media (max-width: 809px) {
  .split { flex-direction: column; height: auto; }
  .pane { height: auto; overflow: visible; }
  .progress { display: none; }
  .pane { scroll-margin-top: 56px; }
  .col-left { padding: 80px 20px 20px; gap: 50px; }
  .split--home .col-left { padding-top: 16px; } /* знак и переключатели — в одну линию с меню «Студия / Работы» */
  .col-right { padding: 17px 20px 20px; }
  .phone-nav { display: flex; }
  .team { grid-template-columns: minmax(0, 1fr); }
  .member__frame { aspect-ratio: 1; }
  .lead__form.lead__form--inline { grid-template-columns: minmax(0, 1fr); }
  .col-right--page { padding: 17px 20px 40px; }
  .nf-left { min-height: 0; }
  .split--nf .col-left { padding-top: 16px; } /* меню-таблетки тут нет — шапка сверху, как на главной */
  .split--nf .pane--right { display: none; }
  .nf-strip { display: block; overflow: hidden; margin: 8px -20px 0; }
  .nf-strip__track { display: flex; gap: 8px; width: max-content; animation: nf-strip 40s linear infinite; }
  .nf-strip img { height: 160px; width: auto; }
  .tickers { height: 70vh; padding: 0 20px 20px; }
  .lead__panel { flex-direction: column; gap: 20px; padding: 40px 20px; max-height: calc(100dvh - 32px); overflow: auto; }
  .lead__img, .lead__intro .cap-arrow { display: none; }
  /* на телефоне фирменная стрелка встаёт справа вместо крестика и закрывает окно */
  .lead__close { top: 36px; right: 12px; width: 44px; height: 44px; border-radius: 5px; }
  .lead__close svg { display: none; }
  .lead__close-arrow { display: block; }
  .lead__heading { font-size: 30px; }
  .toast { font-size: 18px; white-space: nowrap; }
}

/* ---------- моушен ---------- */
/* Заставка: крупно красная F, счёт 0→100 и стрелка; на 100 экран уезжает вверх. Один раз за сессию. */
.loader { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; background: var(--red); color: #fff; pointer-events: none; /* красный экран, белые знаки */
  animation: loader-out .6s 1.4s cubic-bezier(.7, 0, .2, 1) forwards; }
.loader__logo { --gap: .16em; display: flex; align-items: flex-end; gap: var(--gap); font-weight: 800; font-size: clamp(84px, 13vw, 200px); line-height: 1; }
.loader__clip { display: block; overflow: hidden; clip-path: none; padding: .04em .1em; margin: -.04em -.1em; } /* запас под круглые «0», чтобы маска их не срезала */
.loader__f { display: block; height: .72em; width: auto; fill: #fff; animation: loader-up .7s .05s cubic-bezier(.2, .7, 0, 1) both; }
.loader__f .loader__dot { fill: #fff; }
/* цифры: высота ровно как у F и стрелки, ширина — ровно по самим цифрам (скрипт меряет шрифт); зазор между всеми знаками один — число растёт и раздвигает логотип */
.loader__num { position: relative; display: block; height: .72em; line-height: .72em; text-align: left; white-space: nowrap; letter-spacing: 0; animation: loader-up .7s .12s cubic-bezier(.2, .7, 0, 1) both; }
.loader .loader__arrow { display: block; margin-left: 0; animation: loader-up .7s .19s cubic-bezier(.2, .7, 0, 1) both; } /* стрелка остаётся на месте */
@keyframes loader-up { from { transform: translateY(110%); } }
.no-loader .loader { display: none; }
@keyframes f-wipe { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes f-drop { from { transform: translateY(-260px) scale(.6); opacity: 0; } 15% { opacity: 1; } to { transform: none; opacity: 1; } }
@keyframes loader-out { to { transform: translateY(-100%); visibility: hidden; } } /* экран уезжает вверх */

/* Заголовок: слова поднимаются из-под маски, затем красная линия под последним словом */
.hero-title { --d: 1.7s; } /* слова заголовка — когда заставка уехала */
.no-loader .hero-title { --d: .1s; }
.hero-title .grp { white-space: nowrap; }
.hero-title .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.hero-title .w > span { display: inline-block; animation: word-up .8s cubic-bezier(.2, .7, 0, 1) both; animation-delay: calc(var(--d) + var(--i) * 55ms); }
.w-mark { color: var(--red); animation: mark-in .6s ease both; animation-delay: calc(var(--d) + .7s); } /* «клиентов» загорается красным после появления слов */
@keyframes mark-in { from { color: var(--fg); } to { color: var(--red); } }

/* Стрелка рядом с текстом: вплотную к слову и ровно по высоте заглавной буквы (в любом размере шрифта) */
.cap-arrow { display: inline-block; width: .72em; height: .72em; vertical-align: baseline; flex-shrink: 0; background: currentColor;
  -webkit-mask: url("../img/arrow-tight.c0bbb5825928.png") center / contain no-repeat; mask: url("../img/arrow-tight.c0bbb5825928.png") center / contain no-repeat; }
.cap-arrow { margin-left: .25em; } /* в тексте — через пробел после слова */
.btn .cap-arrow { width: .68em; height: .68em; } /* у Switzer заглавная ниже, чем у Manrope */
.toast .cap-arrow { align-self: baseline; margin-left: calc(.25em - 8px); }
.m-done .cap-arrow { margin-left: .25em; }

/* Фирменная стрелка, перекрашиваемая цветом текста */
.fly > span, .fly-arrow { display: block; background: currentColor; -webkit-mask: url("../img/arrow-tight.c0bbb5825928.png") center / contain no-repeat; mask: url("../img/arrow-tight.c0bbb5825928.png") center / contain no-repeat; }
/* Стрелка в углу карточки: улетает вправо-вверх, на её место прилетает красная */
.service, .step { position: relative; }
.service__name { padding-right: 32px; }
.fly { position: absolute; top: 22px; right: 22px; width: 20px; height: 20px; overflow: hidden; color: var(--fg); pointer-events: none; }
.fly > span { position: absolute; inset: 0; transition: transform .45s cubic-bezier(.7, 0, .2, 1); }
.fly > span + span { transform: translate(-130%, 130%); }
.service:hover .fly > span:first-child, .step:hover .fly > span:first-child { transform: translate(130%, -130%); }
.service:hover .fly > span + span, .step:hover .fly > span + span { transform: none; }

/* Курсор над кейсами: красный круг со стрелкой */
.case-cursor { position: fixed; left: 0; top: 0; z-index: 50; width: 76px; height: 76px; margin: -38px 0 0 -38px; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-items: center; pointer-events: none; transform: scale(0); transition: transform .35s cubic-bezier(.2, .7, 0, 1); }
.case-cursor.is-on { transform: scale(1); }
.case-cursor .fly-arrow { width: 30px; height: 30px; transform: rotate(-90deg); } /* как курсор: стрелка повёрнута влево */
@media (hover: hover) and (pointer: fine) { .has-case-cursor .card { cursor: none; } }

/* Услуги в форме — плашки: при выборе пружинят и показывают галочку */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; display: inline-flex; align-items: center; height: 36px; padding: 0 14px; border: 1px solid #e3e3e3; border-radius: 18px; font-size: 14px; letter-spacing: -0.02em; cursor: pointer; user-select: none; transition: background .25s, border-color .25s, color .25s, padding .3s ease; }
.lead__form--inline .chip { border-color: var(--line); }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
/* ширина плашки при выборе не меняется: галочка (12 + 4) занимает ровно то, на что сжимаются отступы, — соседние плашки не перескакивают на другую строку */
.chip__check { width: 0; height: 12px; flex-shrink: 0; transition: width .3s ease, margin .3s ease; }
.chip__check path { fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.chip:hover { border-color: var(--red); }
.chip:has(input:checked) { background: var(--red); border-color: var(--red); color: #fff; }
.chip:has(input:checked) { padding: 0 6px; }
.chip:has(input:checked) .chip__check { width: 12px; margin-right: 4px; }
.chip:has(input:focus-visible) { outline: 2px solid var(--red); outline-offset: 2px; }

/* Кнопка «Отправить»: кнопка → круг загрузки → галочка → плашка «До встречи в Telegram» */
.lead__submit > span { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 10px; transition: opacity .25s, transform .4s cubic-bezier(.2, .7, 0, 1); }
.lead__submit .m-spin, .lead__submit .m-check, .lead__submit .m-done { opacity: 0; transform: scale(.6); pointer-events: none; }
.m-spin i { width: 22px; height: 22px; border-radius: 50%; border: 2.5px solid rgba(255, 255, 255, .35); border-top-color: #fff; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.m-check svg { width: 24px; height: 24px; }
.m-check path { fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 30; stroke-dashoffset: 30; }
.m-done { font-size: 18px; letter-spacing: -0.03em; padding: 0 20px; justify-content: flex-start !important; }
.m-done .m-f { width: 12px; height: 26px; flex-shrink: 0; }
.lead__form .lead__submit.s-load, .lead__form .lead__submit.s-check { width: var(--h); border-radius: calc(var(--h) / 2); opacity: 1; background: var(--red); color: #fff; }
.lead__submit { transition: opacity .2s, width .5s cubic-bezier(.7, 0, .2, 1), border-radius .5s cubic-bezier(.7, 0, .2, 1), background-color .3s, color .3s; }
.lead__submit.s-load .m-label, .lead__submit.s-check .m-label, .lead__submit.s-done .m-label { opacity: 0; transform: scale(.8); }
.lead__submit.s-load .m-spin { opacity: 1; transform: none; }
.lead__submit.s-check .m-check { opacity: 1; transform: none; }
.lead__submit.s-check .m-check path { stroke-dashoffset: 0; transition: stroke-dashoffset .45s .1s ease-out; }
.lead__submit.s-done, .lead__form.is-done .lead__submit.s-done { border-radius: calc(var(--h) / 2); background: var(--fg); color: var(--bg); }
.lead__submit.s-done .m-done { opacity: 1; transform: none; transition-delay: .2s; }

/* Главная кнопка: тянется к курсору и заливается изнутри из точки входа мыши */
.btn--magnet { position: relative; overflow: hidden; isolation: isolate; white-space: nowrap; gap: 0; align-items: baseline; transition: transform .4s cubic-bezier(.3, 1.3, .5, 1), color .3s; }
.btn--magnet:hover { opacity: 1; }
@media (max-width: 340px) { .btn--magnet { white-space: normal; } } /* на самых узких экранах кнопка может перенестись, чтобы не вылезать */
.btn--magnet:hover, .footer-dark .btn--magnet:hover { color: var(--bg); } /* текст на заливке — цветом фона, в тёмном подвале тоже */
.btn__fill { position: absolute; left: var(--fx, 50%); top: var(--fy, 50%); width: 10px; height: 10px; margin: -5px; border-radius: 50%; background: var(--fg); transform: scale(0); transition: transform .5s cubic-bezier(.2, .7, 0, 1); z-index: -1; pointer-events: none; }
.btn--magnet:hover .btn__fill { transform: scale(60); }
.btn__arrow { transition: transform .45s cubic-bezier(.7, 0, .2, 1); }
.btn--magnet:hover .btn__arrow { transform: rotate(45deg); }

/* Язык: подпись перекатывается, как цифра на табло, заголовок уходит вверх по словам */
.lang-toggle .roll { display: block; height: 12px; overflow: hidden; }
.lang-toggle .roll > span { display: block; height: 12px; line-height: 12px; transition: transform .4s cubic-bezier(.7, 0, .2, 1); }
.lang-toggle.is-rolling .roll > span { transform: translateY(-100%); }
.hero-title.is-leaving .w > span { animation: word-out .3s cubic-bezier(.7, 0, 1, .5) both; animation-delay: calc(var(--i) * 18ms); }
@keyframes word-out { to { transform: translateY(-110%); } }

/* Тема разливается кругом от кнопки (View Transitions; где их нет — переключается как раньше) */
html.vt-theme::view-transition-old(root), html.vt-theme::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
html.vt-theme::view-transition-new(root) { animation: theme-reveal .7s cubic-bezier(.7, 0, .2, 1); }
@keyframes theme-reveal { from { clip-path: circle(0 at var(--vt-x, 50%) var(--vt-y, 0)); } to { clip-path: circle(150vmax at var(--vt-x, 50%) var(--vt-y, 0)); } }

/* Процесс: линия слева заполняется при прокрутке, шаги загораются, когда она до них доходит */
.steps::before, .steps::after { content: ""; position: absolute; left: 8px; top: 30px; width: 2px; border-radius: 1px; }
.steps::before { bottom: 30px; background: var(--line); }
.steps::after { height: calc((100% - 60px) * var(--tl, 1)); background: var(--fg); }
.step::before { content: ""; position: absolute; left: -29px; top: 25px; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--fg); background: var(--fg); transition: background .3s, border-color .3s; }
.steps.is-live .step:not(.is-on) { opacity: .45; transform: translateX(8px); }
.steps.is-live .step:not(.is-on)::before { background: var(--bg); border-color: var(--line); }
.steps.is-live .step.is-on { border-color: var(--fg); }

/* Услуги: вся карточка — кнопка, форма раскрывается из неё с выбранной услугой */
.service__cta { position: absolute; inset: 0; z-index: 1; padding: 0; border: 0; border-radius: 5px; background: none; cursor: pointer; }
.service { cursor: pointer; }
.service:has(.service__cta:focus-visible) { outline: 2px solid var(--red); outline-offset: 2px; }
.service__cta:focus-visible { outline: none; }

/* Абзац «Команда»: слова темнеют по мере прокрутки */
.reveal-text { font-weight: 500; font-size: 24px; line-height: 1.25; letter-spacing: -0.04em; color: var(--fg); max-width: 560px; text-wrap: pretty; }
.reveal-text.is-live > span { color: var(--line); transition: color .3s; white-space: nowrap; } /* «дизайн-студия» не рвётся по дефису */
.reveal-text.is-live > span.is-on { color: var(--fg); }
@media (max-width: 809px) { .reveal-text { font-size: 21px; } }

/* Меню-таблетка: белая подложка переезжает к пункту с лёгкой пружиной */
.phone-nav__ind { position: absolute; top: 3px; bottom: 3px; left: 0; border-radius: 30px; background: var(--bg); transition: transform .45s cubic-bezier(.3, 1.25, .5, 1), width .45s cubic-bezier(.3, 1.25, .5, 1); }
.phone-nav.has-ind a { position: relative; z-index: 1; }
.phone-nav.has-ind a.is-active { background: none; }

/* Конец кейса: лайк и следующий кейс */
.case-end { display: flex; flex-direction: column; gap: 12px; padding-top: 60px; }
/* Лайк — плавающая кнопка в правом нижнем углу страницы кейса */
.like--float { position: fixed; right: 20px; bottom: 20px; z-index: 40; }
@media (min-width: 810px) { .like--float { right: 36px; } } /* на компьютере — чуть дальше от края окна */
.split--page .col-right { padding-bottom: 96px; } /* чтобы лайк не закрывал «наверх» внизу колонки */
.like__btn { display: inline-flex; align-items: center; gap: 8px; height: 48px; padding: 0 18px 0 14px; border: 1px solid var(--line); border-radius: 24px; background: var(--bg); color: var(--fg); font-size: 16px; cursor: pointer; box-shadow: 0 6px 24px rgba(0, 0, 0, .12); transition: border-color .25s, background .25s, color .25s, transform .35s cubic-bezier(.3, 1.6, .5, 1); }
.like__btn:hover { border-color: var(--fg); }
.like__btn:active { transform: scale(.95); }
.like__heart { width: 22px; height: 22px; overflow: visible; }
.like__heart path { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; transition: fill .25s, stroke .25s; }
.like__btn[aria-pressed="true"] { border-color: var(--red); }
.like__core { opacity: 0; transition: opacity .25s, fill .25s; }
.like__btn[aria-pressed="true"] .like__flame { fill: var(--red); stroke: var(--red); }
.like__btn[aria-pressed="true"] .like__core { opacity: 1; fill: #ffb21a; stroke: #ffb21a; } /* горит: красное пламя с жёлтой сердцевиной */
.like__fire { transform-origin: 50% 90%; }
.like__btn.is-pop .like__heart { animation: fire-pop .6s cubic-bezier(.3, 1.4, .5, 1); } /* огонёк вспыхивает и покачивается */
@keyframes fire-pop { 0% { transform: scale(.6, .4); } 35% { transform: scale(1.15, 1.3) rotate(-6deg); } 65% { transform: scale(.95, 1.05) rotate(4deg); } 100% { transform: none; } }
.like__count { font-weight: 500; font-variant-numeric: tabular-nums; color: var(--gray); }
.like__count[hidden] { display: none; }
.like__btn:has(.like__count[hidden]):has(.like__label[hidden]) { padding: 0 13px; } /* без числа и подписи — круглая кнопка с огоньком */
/* пока не нажата — видно, что это кнопка: красный контур пламени, подпись «Поставить огонёк», огонёк иногда подрагивает */
.like__btn[aria-pressed="false"] .like__flame { stroke: var(--red); }
.like__btn[aria-pressed="false"]:hover { border-color: var(--red); }
.like__btn[aria-pressed="false"]:hover .like__flame { fill: color-mix(in srgb, var(--red) 18%, transparent); }
.like__label { font-weight: 500; font-size: 15px; white-space: nowrap; }
.like__label[hidden] { display: none; }
.like__btn.is-hint .like__heart { animation: fire-flicker 1.1s ease-in-out; }
.like__btn.is-hint { animation: like-ring 1.1s ease-out; }
@keyframes fire-flicker { 0%, 100% { transform: none; } 20% { transform: scale(1.08, 1.16) rotate(-5deg); } 45% { transform: scale(.96, 1.02) rotate(4deg); } 70% { transform: scale(1.05, 1.1) rotate(-2deg); } }
@keyframes like-ring { 0% { box-shadow: 0 6px 24px rgba(0, 0, 0, .12), 0 0 0 0 rgba(255, 29, 0, .45); } 100% { box-shadow: 0 6px 24px rgba(0, 0, 0, .12), 0 0 0 14px rgba(255, 29, 0, 0); } }
.next-case { position: relative; display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); align-items: center; gap: 20px; padding: 10px 24px 10px 10px; border: 1px solid var(--line); border-radius: 5px; transition: border-color .3s; }
.next-case:hover { border-color: var(--fg); }
.next-case__img { display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 3px; background: #000; }
.next-case__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.next-case:hover .next-case__img img { transform: scale(1.05); }
.next-case__text { display: flex; flex-direction: column; gap: 4px; }
.next-case__text .t-14 { color: var(--gray); }
.next-case__title { font-weight: 500; font-size: 28px; line-height: 1.1; letter-spacing: -0.045em; }
.next-case__arrow { transition: transform .45s cubic-bezier(.7, 0, .2, 1); }
.next-case:hover .next-case__arrow { transform: rotate(45deg); }
.col-right--page .case-end + .actions { padding-top: 24px; }
@media (max-width: 809px) {
  .next-case { grid-template-columns: minmax(0, 1fr); padding: 10px 18px 18px 10px; }
  .next-case__img { grid-column: 1 / -1; }
  .next-case__title { font-size: 24px; }
}

/* Частые вопросы: аккордеон, плюс поворачивается в крестик, ответ плавно раскрывается */
:root { interpolate-size: allow-keywords; }
.faq { display: flex; flex-direction: column; }
.faq__item + .faq__item { border-top: 1px solid var(--line); } /* линии только между вопросами */
.faq__item:first-child .faq__q { padding-top: 4px; }
.faq__q { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; cursor: pointer; list-style: none; font-weight: 500; font-size: 20px; line-height: 1.2; letter-spacing: -0.03em; color: var(--fg); }
.faq__q::-webkit-details-marker { display: none; }
.faq__icon { position: relative; width: 14px; height: 14px; flex-shrink: 0; transition: transform .4s cubic-bezier(.7, 0, .2, 1); }
.faq__icon::before, .faq__icon::after { content: ""; position: absolute; left: 0; top: 6px; width: 14px; height: 2px; border-radius: 1px; background: currentColor; }
.faq__icon::after { transform: rotate(90deg); }
.faq__item[open] .faq__icon { transform: rotate(135deg); }
.faq__a { padding: 0 40px 22px 0; max-width: 560px; }
.faq__item::details-content { block-size: 0; overflow: clip; transition: block-size .4s cubic-bezier(.7, 0, .2, 1), content-visibility .4s allow-discrete; }
.faq__item[open]::details-content { block-size: auto; }
.faq__q:focus-visible { outline: 2px solid var(--red); outline-offset: 4px; }

/* Плашка «Новое» на карточке кейса */
.card__new { position: absolute; top: 14px; left: 14px; z-index: 2; padding: 7px 12px; border-radius: 15px; background: var(--red); color: #fff; font: 600 13px/1 Switzer, "Manrope", sans-serif; letter-spacing: -0.01em; pointer-events: none; }

/* Знак студии в шапке главной */
.brand__name--icon { display: inline-flex; color: var(--fg); }
.logo-icon { height: 30px; width: auto; display: block; }

/* Работы на телефоне: лента превью перед услугами, листается свайпом и кнопками */
.m-work { display: none; }
@media (max-width: 809px) {
  .m-work { display: flex; flex-direction: column; gap: 14px; margin-inline: -20px; }
  .m-work__head { display: flex; justify-content: space-between; align-items: center; padding: 0 20px; }
  /* карусель с глубиной: текущий кейс в центре, соседи повёрнуты, меньше и притушены */
  .m-work__track { position: relative; height: calc(min(80vw, 360px) * .625 + 20px); perspective: 900px; overflow: hidden; touch-action: pan-y; user-select: none; }
  .m-work__card { position: absolute; top: 10px; left: 50%; width: min(80vw, 360px); margin-left: calc(min(80vw, 360px) / -2);
    transition: transform .6s cubic-bezier(.2, .7, 0, 1), opacity .6s, filter .6s; -webkit-user-drag: none; }
  .m-work__link { position: relative; display: block; border-radius: 5px; overflow: hidden; background: #000; -webkit-user-drag: none; }
  .m-work .react { right: 10px; bottom: 10px; transition: opacity .4s; }
  .m-work__card:not(.is-current) .react { opacity: 0; pointer-events: none; } /* огонёк — только у карточки в центре */
  .m-work__card img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; display: block; pointer-events: none; } /* прямоугольные, как превью кейсов */
  .m-work__title { position: absolute; left: 14px; bottom: 12px; color: #fff; font-size: 18px; letter-spacing: -0.03em; text-shadow: 0 1px 10px rgba(0, 0, 0, .5); }
  .m-work .card__new { top: 12px; left: 12px; }
}

/* Бриф на телефоне — как окно заявки: крупный заголовок, серая подпись, форма во всю ширину */
@media (max-width: 809px) {
  .brief__heading { font-weight: 500; font-size: 30px; line-height: 1.1; letter-spacing: -0.04em; }
  .brief__sub { color: var(--gray); gap: 0; }
  .brief__sub p + p { margin-top: 0; }
  .lead__form.lead__form--inline { max-width: none; width: 100%; }
}

/* Кейс: факты плитками и блоки «Задача / Что сделали / Результат» — в стиле главной */
.case-facts { display: flex; flex-wrap: wrap; gap: 12px; } /* короткие факты делят ряд поровну, длинный («Задачи») — строкой ниже во всю ширину */
.case-fact { flex: 1 1 0; min-width: 96px; }
.case-fact { display: flex; flex-direction: column; justify-content: space-between; gap: 18px; min-height: 120px; padding: 20px; border: 1px solid var(--line); border-radius: 5px; }
.case-fact dt { color: var(--gray); }
.case-fact--wide { flex-basis: 100%; order: 1; min-height: 0; }
.case-fact__value { font-weight: 500; font-size: 20px; line-height: 1.2; letter-spacing: -0.03em; color: var(--fg); }
.case-block.dark-block { padding: 24px; }
:root[data-theme="dark"] .case-block.dark-block { --block: #1c1c1c; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .case-block.dark-block { --block: #1c1c1c; } }
.case-block__body { max-width: none; }
.case-block__body p, .case-block__body li { color: var(--fg); font-size: 18px; line-height: 1.35; letter-spacing: -0.02em; }
.case-block__body ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; }
.case-block__body li { position: relative; padding: 12px 0 12px 18px; border-top: 1px solid var(--line); }
.case-block__body li:first-child { border-top: 0; padding-top: 0; }
.case-block__body li:first-child::before { top: calc(.6em - 2px); }
.case-block__body li::before { content: ""; position: absolute; left: 2px; top: calc(12px + .6em - 2px); width: 5px; height: 5px; border-radius: 50%; background: var(--fg); }
.case-block__body li p { margin: 0; }
.case-block__body strong { font-weight: 500; }
.case-block--accent.dark-block { --block: var(--red); background: var(--red); }
.case-block--accent .case-block__body p { color: #fff; }
@media (max-width: 809px) { .case-block.dark-block { padding: 20px; } .case-fact { min-height: 100px; padding: 16px; } .case-block__body p, .case-block__body li { font-size: 16px; } }

/* Появление блоков при прокрутке: поднимаются и проявляются по очереди (класс ставит JS) */
.rv { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .8s cubic-bezier(.2, .7, 0, 1); transition-delay: calc(var(--rv-i, 0) * 80ms); }
.rv.is-in { opacity: 1; transform: none; }

/* Логотипы как Dock: под курсором крупнее, соседи чуть меньше, остальные притухают */
.marquee.is-dock img { transition: transform .25s cubic-bezier(.2, .7, 0, 1), opacity .25s; opacity: .55; }
.marquee.is-dock img.is-near { opacity: 1; }

/* Факты: плитка заливается красным из точки, откуда пришла мышь (как кнопка «Начать проект») */
.fill-tile { position: relative; overflow: hidden; isolation: isolate; transition: color .35s, border-color .35s, opacity .6s ease, transform .8s cubic-bezier(.2, .7, 0, 1); }
.fill-tile > .tile-fill { position: absolute; left: var(--fx, 50%); top: var(--fy, 50%); width: 10px; height: 10px; margin: -5px; border-radius: 50%; background: var(--red); transform: scale(0); transition: transform .55s cubic-bezier(.2, .7, 0, 1); z-index: -1; pointer-events: none; }
@media (hover: hover) {
  .fill-tile:hover { border-color: var(--red); }
  .fill-tile:hover > .tile-fill { transform: scale(80); }
  .fill-tile:hover, .fill-tile:hover dt, .fill-tile:hover dd, .fill-tile:hover .fact-tile__value, .fill-tile:hover .case-fact__value { color: #fff; }
}

/* Кнопка заявки наполняется красным по мере заполнения обязательных полей */
.lead__submit.has-progress { isolation: isolate; color: #fff; container-type: inline-size; }
@container (max-width: 460px) { .lead__submit .m-left { display: none; } } /* в узкой кнопке счётчик не помещается — хватает заливки */
.lead__form:not(.is-done) .lead__submit.has-progress:not(.s-load):not(.s-check):not(.s-done) { background: #6b1a0e; } /* тёмно-красная основа, белый текст читается в обеих темах */
.lead__submit.has-progress::before { content: ""; position: absolute; inset: 0; background: var(--red); transform: scaleX(var(--p, 0)); transform-origin: left; transition: transform .5s cubic-bezier(.2, .7, 0, 1); z-index: -1; }
.lead__submit .m-left { inset: auto 16px auto auto !important; top: 50% !important; transform: translateY(-50%) !important; font-size: 13px; letter-spacing: 0; opacity: .85; color: #fff; }
.lead__submit.s-load .m-left, .lead__submit.s-check .m-left, .lead__submit.s-done .m-left, .lead__form.is-done .m-left { opacity: 0; }
.lead__form.is-done .lead__submit.has-progress::before, .lead__submit.s-load::before, .lead__submit.s-check::before, .lead__submit.s-done::before { display: none; }

@media (prefers-reduced-motion: reduce) { .loader { display: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Иерархия: заголовок раздела — главный уровень, крупнее названий карточек, цифр и подзаголовков внутри */
.section__body > .t-h2, .brief__heading { font-size: 30px; line-height: 1.05; letter-spacing: -0.045em; text-wrap: balance; }
.proof > .facts-grid .fact-tile__value { font-size: 28px; }
.proof__group > p.t-14:first-child { font-weight: 500; font-size: 18px; line-height: 1.3; letter-spacing: -0.02em; color: var(--fg); } /* «Отзывы клиентов» и т. п. — второй уровень */
.reveal-text { font-size: 22px; }
@media (max-width: 1199px) { .section__body > .t-h2, .brief__heading { font-size: 28px; } }
@media (max-width: 809px) {
  .section__body > .t-h2, .brief__heading { font-size: 26px; }
  .proof > .facts-grid .fact-tile__value { font-size: 24px; }
  .reveal-text { font-size: 19px; }
  .proof__group > p.t-14:first-child { font-size: 17px; }
}
/* «Работы» и «С нами работали» — подписи второго уровня, как «Отзывы клиентов» */
.m-work__head, .footer-logos > p.t-14 { font-weight: 500; font-size: 18px; line-height: 1.3; letter-spacing: -0.02em; color: var(--fg); }
@media (max-width: 809px) { .m-work__head, .footer-logos > p.t-14 { font-size: 17px; } }

/* ---------- кейс на телефоне: галерея на весь экран + описание листом снизу ---------- */
.case-bar, .sheet-grip { display: none; }
@media (max-width: 809px) {
  .case-bar { display: flex; justify-content: space-between; position: fixed; top: 12px; left: 12px; right: 12px; z-index: 50; pointer-events: none; }
  .case-bar__btn { pointer-events: auto; display: inline-flex; align-items: center; gap: 6px; padding: 9px 16px; border-radius: 25px;
    font-family: "Switzer", "Manrope", sans-serif; font-weight: 500; font-size: 14px; line-height: 1.1; color: #0a0a0a;
    background: rgba(240, 240, 240, .72); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
  .case-bar__btn svg { width: 14px; height: 14px; }
  .case-bar__btn[aria-expanded="true"] { background: var(--fg); color: var(--bg); }

  .split--page .pane--right { order: -1; }
  .split--page .col-right--page { padding: 0 0 calc(var(--peek, 150px) + 24px); gap: 0; }
  .split--page .gallery { gap: 0; }
  .split--page .case-end, .split--page .col-right--page > .actions { padding: 24px 20px 0; }

  .split--page .pane--left {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; height: 88dvh; overflow: hidden; overscroll-behavior: contain;
    background: var(--bg); border-radius: 22px 22px 0 0; box-shadow: 0 -10px 40px rgba(0, 0, 0, .22), 0 -1px 0 var(--line);
    transform: translateY(calc(100% - var(--peek, 150px) - env(safe-area-inset-bottom)));
    transition: transform .55s cubic-bezier(.2, .7, 0, 1);
  }
  .split--page .pane--left:not(.is-open) { cursor: pointer; }
  .split--page .pane--left.is-open { transform: none; overflow-y: auto; }
  .split--page .pane--left.is-dragging { transition: none; }
  .sheet-grip { display: block; position: sticky; top: 0; z-index: 3; height: 22px; margin-bottom: -22px; background: linear-gradient(var(--bg) 60%, transparent); }
  .sheet-grip::before { content: ""; position: absolute; left: 50%; top: 8px; width: 38px; height: 4px; margin-left: -19px; border-radius: 4px; background: var(--line); }
  .split--page .col-left { padding: 22px 20px 20px; }
  .split--page .p-title > .pill { display: none; } /* «Назад» — в верхней панели */
  .split--page .pane--left:not(.is-open) .intro__text { -webkit-mask: linear-gradient(#000 40%, transparent 100%); mask: linear-gradient(#000 40%, transparent 100%); }
  html.sheet-open { overflow: hidden; }
  .split--page ~ .like--float, .like--float { bottom: calc(var(--peek, 150px) + 12px); transition: opacity .3s, transform .55s cubic-bezier(.2, .7, 0, 1); }
  html.sheet-open .like--float { opacity: 0; pointer-events: none; }
}

/* Команда (компьютер и телефон): компактные строки — маленькое фото, имя и роль; по тапу раскрываются описание и навыки */
.member__more-in { display: flex; flex-direction: column; gap: 8px; }
.team { grid-template-columns: minmax(0, 1fr); gap: 0; max-width: 620px; }
.member { position: relative; display: grid; grid-template-columns: 56px minmax(0, 1fr) 20px; column-gap: 14px; padding: 10px 0; }
.member__frame { grid-column: 1; grid-row: 1; width: 56px; aspect-ratio: 1; border-radius: 10px; }
.member__frame .member__role { display: none; }
.member__info { display: contents; }
.member__head { grid-column: 2; grid-row: 1; align-self: center; display: flex; flex-direction: column; gap: 2px; }
.member__name { font-size: 20px; }
.member__role-m { display: block; }
.member__plus { display: block; grid-column: 3; grid-row: 1; align-self: center; position: relative; width: 14px; height: 14px; justify-self: end; transition: transform .4s cubic-bezier(.7, 0, .2, 1); }
.member__plus::before, .member__plus::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1.5px; margin-top: -.75px; background: var(--fg); }
.member__plus::after { transform: rotate(90deg); }
.member.is-open .member__plus { transform: rotate(135deg); }
.member__more { grid-column: 2 / 4; grid-row: 2; display: grid; grid-template-rows: 0fr; transition: grid-template-rows .4s cubic-bezier(.7, 0, .2, 1); }
.member.is-open .member__more { grid-template-rows: 1fr; }
.member__more-in { overflow: hidden; min-height: 0; }
.member__more-in > :first-child { padding-top: 10px; }
.member__more-in > :last-child { padding-bottom: 2px; }
.member__toggle { display: block; position: absolute; left: 0; right: 0; top: 0; height: 84px; cursor: pointer; }
.member:hover .member__photo { transform: none; }
.member:has(.member__toggle:hover) .member__name, .member:has(.member__toggle:focus-visible) .member__name { color: var(--red); transition: color .25s; }
@media (min-width: 810px) { /* на компьютере строки крупнее — под масштаб остальных блоков */
  .team { max-width: none; }
  .member { grid-template-columns: 112px minmax(0, 1fr) 24px; column-gap: 24px; padding: 14px 0; }
  .member__frame { width: 112px; border-radius: 14px; }
  .member__name { font-size: 24px; letter-spacing: -0.04em; } /* меньше заголовка раздела */
  .member__role-m { font-size: 16px; }
  .member__head { gap: 6px; }
  .member__plus { width: 18px; height: 18px; }
  .member__more-in > p { font-size: 16px; max-width: 560px; }
  .member__more-in > :first-child { padding-top: 14px; }
  .member__toggle { height: 140px; }
}

/* Телефон: без линий между разделами — их разделяют крупные заголовки и воздух */
@media (max-width: 809px) {
  .section > .rule, .brief > .rule, .footer > .rule, .footer-dark > .rule { display: none; } /* в тёмном подвале остаётся только линия над копирайтом */
  .split--home .col-left, .split--page .col-left { gap: 64px; }
}

/* Курсор — фирменная стрелка, инвертирует то, что под ней: частично чёрная, частично белая, без серого */
.site-cursor { display: none; }
@media (hover: hover) and (pointer: fine) {
  html.has-cursor, html.has-cursor * { cursor: none !important; }
  html.has-cursor input, html.has-cursor textarea, html.has-cursor select, html.has-cursor [contenteditable] { cursor: text !important; }
  .site-cursor { display: block; position: fixed; left: 0; top: 0; z-index: 9999; width: 20px; height: 20px; margin-left: -1px; margin-top: -1px; /* остриё стрелки (слева сверху, как у курсора Windows) — точка клика */
    pointer-events: none; opacity: 0;
    transition: opacity .2s, width .25s cubic-bezier(.3, 1.6, .5, 1), height .25s cubic-bezier(.3, 1.6, .5, 1), margin .25s cubic-bezier(.3, 1.6, .5, 1);
    -webkit-mask: url("../img/cursor.04add46d2b29.svg") center / contain no-repeat; mask: url("../img/cursor.04add46d2b29.svg") center / contain no-repeat;
    /* инверсия по каждой точке под стрелкой: светлое → чёрное, тёмное → белое; на границе стрелка двухцветная, серого нет */
    -webkit-backdrop-filter: grayscale(1) invert(1) contrast(1000); backdrop-filter: grayscale(1) invert(1) contrast(1000); }
  @supports not ((backdrop-filter: invert(1)) or (-webkit-backdrop-filter: invert(1))) { .site-cursor { background: #fff; mix-blend-mode: difference; } }
  .site-cursor.is-on { opacity: 1; }
  .site-cursor.is-link { width: 26px; height: 26px; } /* над ссылками и кнопками — чуть крупнее */
  .site-cursor.is-down { width: 16px; height: 16px; }
  .site-cursor.is-hidden { opacity: 0; } /* над карточками кейсов — красный круг вместо стрелки */
}

/* Пасхалка в самом низу подвала — еле заметная строка; по клику огоньки и скидка */
.egg { position: relative; margin-top: 6px; }
.egg__hint { font-size: 12px; color: var(--gray); opacity: .35; letter-spacing: -0.01em; transition: opacity .3s, color .3s; padding: 4px 0; }
.egg__hint:hover, .egg__hint:focus-visible { opacity: 1; color: var(--fg); }
.egg.is-open .egg__hint { display: none; }
.egg__prize { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 14px 16px; border: 1px solid var(--red); border-radius: 5px; animation: egg-in .5s cubic-bezier(.2, .7, 0, 1) both; }
.egg__prize[hidden] { display: none; }
.egg__prize p { font-size: 15px; line-height: 1.35; color: var(--fg); flex: 1 1 260px; }
.egg__cta { display: inline-flex; align-items: center; gap: 2px; font-weight: 500; font-size: 15px; color: #fff; background: var(--red); border-radius: 5px; padding: 8px 14px; }
@keyframes egg-in { from { opacity: 0; transform: translateY(8px) scale(.98); } }
.egg-spark { position: fixed; z-index: 120; width: 18px; height: 18px; pointer-events: none; color: var(--red); animation: egg-fly 1s cubic-bezier(.2, .7, .3, 1) forwards; }
.egg-spark svg { width: 100%; height: 100%; display: block; }
.egg-spark path { fill: currentColor; }
.egg-spark .core { fill: #ffb21a; }
@keyframes egg-fly { 0% { transform: translate(0, 0) scale(.3); opacity: 1; } 70% { opacity: 1; } 100% { transform: translate(var(--dx), var(--dy)) scale(1) rotate(var(--r)); opacity: 0; } }
.chip--promo { background: var(--red); border-color: var(--red); color: #fff; cursor: default; padding: 0 12px 0 8px; animation: chip-promo-in .5s cubic-bezier(.3, 1.6, .5, 1) both; }
.chip--promo:hover { border-color: var(--red); }
.chip--promo .chip__check { width: 12px; margin-right: 4px; }
.chip--promo[hidden] { display: none; }
@keyframes chip-promo-in { from { transform: scale(.6); opacity: 0; } }
.egg__code { color: var(--red); font-weight: 600; }
.footer:has(> .to-top) .egg, .footer-dark:has(~ .to-top) .egg { padding-right: 56px; } /* не под кнопкой «наверх» */
.footer__col ul a { overflow-wrap: break-word; } /* почта и канал не вылезают из узкой колонки */

/* Переход в кейс: красная шторка падает сверху, на новой странице сразу идёт заставка (тот же красный — без шва) */
.curtain { position: fixed; inset: 0; z-index: 300; background: var(--red); transform: translateY(-100%); transition: transform .55s cubic-bezier(.7, 0, .2, 1); pointer-events: none; }
.curtain.is-down { transform: none; pointer-events: auto; }
/* в узкой колонке (страница кейса на компьютере) подвал в два столбца — по ширине самой плашки, а не экрана */
.footer-dark { container-type: inline-size; }
@container (max-width: 560px) { .footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ════════════════════════════════════════════════════════════════════════
   НОВЫЙ ДИЗАЙН (макет Figma «fonj», 2026-11): чисто чёрный фон, прямые углы,
   белые рамки 2px, заголовки разделов Bold 64 с подчёркиванием, текст Medium 16.
   Слой стоит последним и переопределяет старые правила.
   ════════════════════════════════════════════════════════════════════════ */
:root, :root[data-theme="dark"] {
  --bg: #000; --fg: #fff; --rgb: 255, 255, 255; --gray: rgba(255, 255, 255, .5); --line: rgba(255, 255, 255, .22); --panel: #000;
  --logo-panel: transparent; --block: transparent; --block-pad: 0; --block-pad-m: 0; --arrow-filter: none; color-scheme: dark;
}
/* светлая тема — по кнопке в шапке: белый фон, чёрный текст, всё остальное зеркально */
:root[data-theme="light"] {
  --bg: #fff; --fg: #000; --rgb: 0, 0, 0; --gray: rgba(0, 0, 0, .5); --line: rgba(0, 0, 0, .18); --panel: #fff;
  --logo-panel: transparent; --block: transparent; --block-pad: 0; --block-pad-m: 0; --arrow-filter: invert(1); color-scheme: light;
}
body { background: var(--bg); letter-spacing: 0; }
.pane--left .progress { background: var(--bg); }

/* шапка: знак слева, язык — белая плашка */
.lang-toggle { min-width: 62px; height: 31px; padding: 0 12px; border-radius: 0; background: var(--fg); color: var(--bg); font-weight: 800; font-size: 12.4px; letter-spacing: .02em; transition: background .2s, color .2s; }
.lang-toggle:hover { background: var(--red); color: #000; }

/* общие ритмы */
.col-left { gap: 80px; padding: 11px 23px 40px 13px; }
.col-right { padding: 11px 23px 0 0; }
.section { gap: 40px; }
.section__body { gap: 40px; }
.rule { height: 2px; background: var(--fg); }
.split--home .section > .rule { display: none; } /* на главной разделы без линий — только перед подвалом */
.note { max-width: 602px; font-weight: 500; font-size: 16px; line-height: 1.3; letter-spacing: .02em; text-wrap: balance; }

/* заголовки разделов на главной: «Услуги.» */
.split--home .t-h2 { font-weight: 700; font-size: 64px; line-height: 1; letter-spacing: -0.02em; text-decoration: underline; text-decoration-thickness: .06em; text-underline-offset: .1em; text-wrap: balance; }

/* услуги: [Название] Bold 40 и список пунктов */
.svc-list { display: flex; flex-direction: column; gap: 31px; }
.svc { display: flex; flex-direction: column; gap: 10px; }
.svc__name button { padding: 0; font-weight: 700; font-size: 40px; line-height: 1.05; letter-spacing: -0.01em; text-align: left; transition: color .2s; }
.svc__name button:hover { color: var(--red); }
.svc__points { display: flex; flex-direction: column; padding-left: 24px; font-weight: 500; font-size: 16px; line-height: 1.3; letter-spacing: .02em; color: var(--gray); }

/* «Почему мы»: сетка 2×2 в белых рамках, последняя плитка красная */
.proof > .facts-grid { gap: 0; max-width: 602px; }
.proof > .facts-grid .fact-tile { min-height: 200px; padding: 11px 11px 12px; margin: 0 -2px -2px 0; border: 2px solid var(--fg); border-radius: 0; gap: 18px; }
.proof > .facts-grid .fact-tile__value { font-weight: 700; font-size: 40px; line-height: 1.05; letter-spacing: -0.01em; }
.proof > .facts-grid .fact-tile dd { max-width: 280px; font-weight: 500; font-size: 16px; line-height: 1.3; letter-spacing: .02em; color: var(--fg); }
.proof > .facts-grid .fact-tile:last-child { background: var(--red); border-color: var(--red); }

/* отзывы: квадратные карточки в белой рамке */
.quote { border: 2px solid var(--fg); border-radius: 0; }
.quotes--flow .quote { width: 291px; min-height: 291px; }
.quotes--flow .quote:hover { border-color: var(--red); }
.quotes__row { min-height: 295px; }
.quote blockquote { font-weight: 500; letter-spacing: .01em; }

/* процесс и вопросы: строки Bold 40, закрытые — приглушены, справа плюс → крестик */
.faq__item + .faq__item { border-top: 0; }
.faq__item:first-child .faq__q { padding-top: 0; }
.faq__q { padding: 6px 0; font-weight: 700; font-size: 40px; line-height: 1.05; letter-spacing: -0.01em; color: var(--fg); opacity: .5; transition: opacity .25s; }
.faq__q:hover, .faq__item[open] .faq__q { opacity: 1; }
.faq__icon { width: 30px; height: 30px; margin-right: 6px; }
.faq__icon::before, .faq__icon::after { top: 13px; width: 30px; height: 4px; border-radius: 0; }
.faq__a { padding: 2px 40px 12px 0; max-width: 450px; }
.faq__a p, .faq__a .t-16 { font-weight: 500; font-size: 16px; line-height: 1.3; letter-spacing: .02em; color: var(--gray); }

/* команда: квадратное фото 117, имя Bold 40, описание Regular 20, навыки в рамках */
.crew { display: flex; flex-direction: column; gap: 40px; }
.mate { display: flex; flex-direction: column; gap: 20px; }
.mate__top { display: flex; align-items: flex-start; gap: 20px; }
.mate__photo { width: 117px; height: 117px; flex-shrink: 0; object-fit: cover; background: #d9d9d9; }
.mate__info { display: flex; flex-direction: column; gap: 6px; max-width: 457px; }
.mate__name { font-weight: 700; font-size: 40px; line-height: 1.05; letter-spacing: -0.01em; }
.mate__bio { font-size: 20px; line-height: 1.55; color: var(--gray); text-wrap: balance; }
.mate__skills { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; }
.mate__skills li { padding: 2px 14px; border: 2px solid var(--fg); font-size: 20px; line-height: 1.55; color: var(--gray); }

/* контакты (форма внизу): поля и кнопка с прямыми углами */
.field input, .field select, .field textarea { border-radius: 0; }
.lead__form--inline .field input, .lead__form--inline .field select, .lead__form--inline .field textarea { background-color: var(--bg); border: 2px solid rgba(var(--rgb), .35); }
.lead__form--inline .field input:focus, .lead__form--inline .field select:focus, .lead__form--inline .field textarea:focus { border-color: var(--fg); }
.lead__submit { border-radius: 0; }
.lead__form--inline .lead__submit { height: 50px; color: #000; font-weight: 600; font-size: 20px; }
.chip, .field--chips label, .field--chips span { border-radius: 0; }

/* подвал: колонки 2×2, всё Medium 16 приглушённое, белые линии, внизу — кнопка и «наверх» */
.footer-dark, :root[data-theme="dark"] .footer-dark { background: transparent; padding: 0; gap: 40px; border-radius: 0; }
.footer__cols { grid-template-columns: repeat(2, minmax(0, 268px)); gap: 40px; }
.footer__col { gap: 21px; }
.footer__col ul { gap: 0; }
.footer__col > .t-14, .footer__col .t-16 { font-weight: 500; font-size: 16px; line-height: 1.3; letter-spacing: .02em; color: var(--gray); }
.footer__col .flink, .footer__col .ulink { text-decoration: none; transition: color .2s; }
.footer__col .flink:hover, .footer__col .ulink:hover { color: var(--fg); }
.footer__bottom { gap: 40px; }
.footer__base { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer__copy { display: flex; flex-direction: column; gap: 21px; font-weight: 500; font-size: 16px; line-height: 1.3; letter-spacing: .02em; color: var(--gray); }
.footer__actions { display: flex; align-items: center; gap: 16px; }
.to-top-block { display: grid; place-items: center; width: 51px; height: 50px; background: #d9d9d9; color: #000; transition: background .2s; }
.to-top-block:hover { background: #fff; }
.to-top-block .cap-arrow { width: 31px; height: 31px; margin: 0; transform: rotate(-45deg); }

/* справа: кейсы прямоугольниками без скруглений */
.projects { gap: 7px; }
.card, .m-work__link, .marquee, .dark-block, .lead__panel, .lead__img, .next-case, .next-case__img, .case-fact, .egg__prize, .member__frame { border-radius: 0; }
.card__new { border-radius: 0; color: #000; }
.like__btn, .like__btn.react__btn { border-radius: 0; }
.btn { border-radius: 0; color: #000; }
.phone-nav, .phone-nav a, .phone-nav__ind { border-radius: 0; }
.case-fact { border: 2px solid var(--fg); }

@media (max-width: 809px) {
  .col-left { gap: 64px; padding: 16px 16px 32px; }
  .split--home .t-h2 { font-size: 44px; }
  .svc__name button, .faq__q, .mate__name, .proof > .facts-grid .fact-tile__value { font-size: 28px; }
  .faq__icon { width: 22px; height: 22px; }
  .faq__icon::before, .faq__icon::after { top: 10px; width: 22px; height: 3px; }
  .proof > .facts-grid .fact-tile { min-height: 160px; }
  .mate__photo { width: 88px; height: 88px; }
  .mate__bio, .mate__skills li { font-size: 16px; }
  .footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 20px; }
}
/* остальные «таблетки» — тоже с прямыми углами */
.pill, .case-bar__btn, .to-top, .quotes__btn { border-radius: 0; }
.pill { background: var(--fg); color: var(--bg); }
.pill:hover { opacity: 1; background: var(--red); }
@media (max-width: 809px) {
  .m-work { margin-inline: -16px; }
  .hero { padding-top: 64px; } /* на телефоне сверху — карусель работ, под ней воздух, потом заголовок */
}
@media (max-width: 809px) {
  .split--home .brand { min-height: 0; }
  .m-work__head { display: none; } /* сверху подпись «Работы» не нужна — и так видно */
}

/* ── Заголовок раздела замирает сверху, пока не подъедет заголовок следующего раздела и не сменит его ── */
.split--home .section__body > .t-h2 { position: sticky; top: 0; z-index: 3; background: var(--bg); padding: 14px 0 16px; margin: -14px 0 -16px;
  box-shadow: 24px 0 0 var(--bg), -24px 0 0 var(--bg); } /* фон шире текста — под заголовком ничего не проглядывает по краям */
.split--home .section__body > .t-h2.is-stuck::after { content: ""; position: absolute; left: -24px; right: -24px; top: 100%; height: 24px; background: linear-gradient(var(--bg), rgba(0, 0, 0, 0)); pointer-events: none; } /* мягкий край снизу */
.split--home .brief .t-h2 { position: static; padding: 0; margin: 0; } /* у формы заявки — обычный заголовок */
@media (max-width: 809px) {
  /* на телефоне заголовок прилипает к самому верху, а сверху у него собственный фон высотой 60px — под меню «Студия / Работы»;
     пролистанный текст уходит под этот фон. В обычном потоке фон помещается в отступ между разделами (64px) и ничего не закрывает */
  .split--home .section__body > .t-h2 { top: 0; padding-top: 60px; margin-top: -60px; box-shadow: 16px 0 0 var(--bg), -16px 0 0 var(--bg); } /* фон чуть шире колонки — закрывает рамки плиток у краёв (тень не расширяет страницу) */
  .split--home .section__body > .t-h2.is-stuck::after { left: -16px; right: -16px; }
}

/* ════════ Полировка блоков (шаг 2) ════════ */

/* Услуги: квадратные маркеры вместо кружков, пункты чуть крупнее и светлее, между услугами тонкая линия */
.svc-list { gap: 0; }
.svc { padding: 22px 0 24px; border-top: 1px solid rgba(var(--rgb), .18); }
.svc:first-child { padding-top: 0; border-top: 0; }
.svc__points { list-style: none; padding-left: 0; gap: 2px; color: rgba(var(--rgb), .6); }
.svc__points li { display: flex; align-items: baseline; gap: 12px; }
.svc__points li::before { content: ""; width: 6px; height: 6px; flex-shrink: 0; background: currentColor; transform: translateY(-2px); }
.svc:hover .svc__points li::before { background: var(--red); }

/* «Почему мы»: крупное значение и подпись — как в макете; плитки откликаются на наведение */
.proof > .facts-grid .fact-tile { transition: background .3s, color .3s; }
.proof > .facts-grid .fact-tile:not(:last-child):hover { background: var(--fg); }
.proof > .facts-grid .fact-tile:not(:last-child):hover .fact-tile__value,
.proof > .facts-grid .fact-tile:not(:last-child):hover dd { color: var(--bg); }

/* Отзывы: крупная красная кавычка, текст Medium, подпись в две строки — без обрывов */
.quote { gap: 18px; padding: 22px; }
.quote__mark { display: block; height: auto; font: 700 56px/0.7 "Manrope", sans-serif; color: var(--red); }
.quote blockquote { font-size: 16px; line-height: 1.4; letter-spacing: .01em; color: var(--fg); }
.quote figcaption { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; font-size: 14px; line-height: 1.3; color: var(--gray); }
.quote figcaption .fg { color: var(--fg); font-weight: 500; }

/* Процесс и вопросы: тонкие линии между строками — легче читать список */
.split--home .faq__item + .faq__item { border-top: 1px solid rgba(var(--rgb), .14); }
.split--home .faq__q { padding: 12px 0; }
.split--home .faq__item:first-child .faq__q { padding-top: 0; }
.split--home .faq__a { padding-bottom: 16px; }

/* Команда: фраза о прямом общении — с красной чертой слева, как акцент */
.split--home .crew + .note { padding-left: 16px; border-left: 4px solid var(--red); }

/* Форма заявки: подписи читаемые, поля выше, «чипы» в стиле рамок; кнопка до заполнения — чёрная в белой рамке */
.brief .brief__sub { gap: 0; }
.brief .brief__sub p { font-weight: 500; font-size: 16px; line-height: 1.3; letter-spacing: .02em; color: var(--gray); }
.brief .brief__sub p + p { margin-top: 0; }
.field > label, .field__label { font-weight: 500; font-size: 14px; letter-spacing: .02em; color: rgba(var(--rgb), .7); }
.lead__form--inline .field input, .lead__form--inline .field select { height: 50px; font-size: 16px; }
.chip { height: 40px; padding: 0 16px; border-radius: 0; font-size: 15px; }
.lead__form--inline .chip { border: 2px solid rgba(var(--rgb), .35); }
.lead__form--inline .chip:hover { border-color: var(--fg); }
.chip:has(input:checked) { background: var(--red); border-color: var(--red); color: #000; padding: 0 10px; }
.lead__form:not(.is-done) .lead__submit.has-progress:not(.s-load):not(.s-check):not(.s-done) { background: var(--bg); box-shadow: inset 0 0 0 2px rgba(var(--rgb), .35); }
.lead__submit.has-progress { color: var(--fg); }
.lead__submit .m-left { color: rgba(var(--rgb), .6); }
.lead__form--inline .lead__submit { font-weight: 600; }

/* Подвал: названия колонок белые, ссылки приглушённые — видна иерархия */
.footer__col > .t-14 { color: var(--fg); }
.footer__col .flink, .footer__col .ulink { color: var(--gray); }

/* Страница кейса — в том же стиле, что главная */
.split--page .section__body > .t-h2 { font-weight: 700; font-size: 40px; line-height: 1.05; letter-spacing: -0.01em; text-decoration: underline; text-decoration-thickness: .07em; text-underline-offset: .12em; }
.split--page .t-h1 { font-weight: 700; letter-spacing: -0.02em; }
.split--page .p-title .intro__text { font-weight: 500; font-size: 18px; line-height: 1.35; letter-spacing: .01em; color: rgba(var(--rgb), .6); }
.case-block.dark-block, :root[data-theme="dark"] .case-block.dark-block { --block: transparent; background: transparent; padding: 22px; border: 2px solid var(--fg); }
.case-block--accent.dark-block, :root[data-theme="dark"] .case-block--accent.dark-block { background: var(--red); border-color: var(--red); }
.case-block--accent .rich p, .case-block--accent .rich li { color: #000; }
.case-fact dt { color: var(--gray); }
.case-fact__value { font-weight: 700; }
.split--page .brief__heading { font-weight: 700; font-size: 40px; line-height: 1.05; letter-spacing: -0.01em; }
@media (max-width: 809px) {
  .split--page .section__body > .t-h2, .split--page .brief__heading { font-size: 30px; }
  .quote__mark { font-size: 44px; }
}
.case-block .rich p, .case-block .rich li { color: var(--fg); }
.case-block--accent .case-block__body p, .case-block--accent .case-block__body li, .case-block--accent .rich strong { color: #000; }
.case-block .rich li + li { border-top-color: rgba(var(--rgb), .18); }

/* подвал: в узкой колонке кнопка слева, стрелка «наверх» — у правого края */
@container (max-width: 560px) { .footer__actions { width: 100%; justify-content: space-between; } }
@media (max-width: 809px) { .footer__actions { width: 100%; justify-content: space-between; } }

/* пасхалка со скидкой — в стиле нового макета: красная плитка, крупный текст, чёрная кнопка */
.egg { margin-top: 0; }
.egg__hint { font-size: 14px; letter-spacing: .02em; opacity: .4; }
.egg__prize { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 20px 24px; padding: 20px; border: 0; background: var(--red); color: #000; }
.egg__prize p { font-weight: 500; font-size: 16px; line-height: 1.3; letter-spacing: .02em; color: #000; }
.egg__code { display: block; margin-bottom: 4px; font-weight: 700; font-size: 32px; line-height: 1.05; letter-spacing: -0.01em; color: #000; }
.egg__prize .egg__cta { height: 50px; padding: 0 14px; background: #000; color: #fff; font-size: 18px; border-radius: 0; }
.egg__prize .egg__cta:hover { background: #fff; color: #000; }
@media (max-width: 560px) { .egg__prize { grid-template-columns: minmax(0, 1fr); } .egg__prize .egg__cta { justify-self: start; } .egg__code { font-size: 26px; } }
.egg__code { text-wrap: balance; }

/* светлая тема: плашка языка — чёрная, «наверх» — тёмно-серая; фото кейсов и стеклянные огоньки не меняются */
:root[data-theme="light"] .lang-toggle { background: #000; color: #fff; }
:root[data-theme="light"] .pill { background: #000; color: #fff; }
:root[data-theme="light"] .to-top-block { background: #000; color: #fff; }
:root[data-theme="light"] .egg__prize .egg__cta { background: #000; color: #fff; }
:root[data-theme="light"] .lead__form:not(.is-done) .lead__submit.has-progress:not(.s-load):not(.s-check):not(.s-done) { background: #fff; box-shadow: inset 0 0 0 2px rgba(0, 0, 0, .35); color: #000; }
:root[data-theme="light"] .lead__submit .m-left { color: rgba(0, 0, 0, .55); }
.phone-nav { padding: 3px; background: rgba(var(--rgb), .14); border: 2px solid var(--fg); }
.phone-nav a { padding: 7px 16px; font-family: "Manrope", sans-serif; }
.phone-nav a:not(.is-active) { color: var(--fg); opacity: .6; }
.phone-nav a.is-active { background: var(--fg); color: var(--bg); }
.phone-nav__ind { background: var(--fg); }
@media (max-width: 809px) {
  .lang-toggle { min-width: 40px; padding: 0 8px; }
  .phone-nav { left: auto; right: auto; left: 50%; } /* меню по центру, язык и тема — справа, без наложения */
  .split--home .brand__row { padding-right: 0; }
}
/* переключатель темы — квадратный, рядом с языком */
.theme-toggle { width: 31px; height: 31px; border-radius: 0; background: transparent; border: 2px solid var(--fg); color: var(--fg); }
.theme-toggle:hover { background: var(--fg); color: var(--bg); }
.brand__tools { gap: 8px; }
.phone-nav.has-ind a.is-active { background: transparent; }
/* подвал: три колонки в один ряд — услуги, студия, связаться (список работ убран — работы и так справа) */
.footer__cols, .split--home .footer__cols { grid-template-columns: repeat(3, minmax(0, max-content)); justify-content: space-between; gap: 32px 48px; }
@container (max-width: 560px) { .footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); justify-content: stretch; } .footer__col:last-child { grid-column: 1 / -1; } }
@media (max-width: 809px) { .footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); justify-content: stretch; } .footer__col:last-child { grid-column: 1 / -1; } }

/* Очень большой экран: сайт — по центру, шириной не больше 1920 px; по бокам просто поля цвета фона, без линий */
@media (min-width: 1921px) { .split { max-width: 1920px; margin: 0 auto; } }
@media (min-width: 1921px) { .like--float { right: calc((100vw - 1920px) / 2 + 36px); } } /* огонёк кейса — внутри ширины 1920, а не у края окна */

/* меню разделов — строки во всю ширину колонки с тонкими линиями */
.secnav { gap: 0; align-items: stretch; }
.secnav a { display: flex; align-items: baseline; gap: 16px; padding: 6px 0 8px; border-bottom: 1px solid rgba(var(--rgb), .14); }
.secnav a:first-child { border-top: 1px solid rgba(var(--rgb), .14); }

/* «Почему мы» — плитки на всю ширину колонки */
.proof > .facts-grid { max-width: none; }

/* маркеры услуг — всегда в цвет текста, без красного */
.svc:hover .svc__points li::before { background: currentColor; }

/* ════════ Язык фирменных носителей (сертификат, счёт, чек, визитка) ════════
   Номера — в квадратных скобках [01]; служебные подписи — капсом SemiBold; огромные цифры;
   красная плашка — чёрные цифры и белый текст; внизу — фирменная подпись во всю ширину. */
.secnav a span { opacity: .55; }
.secnav a.is-active span, .secnav a:hover span { opacity: 1; }
.faq__q .num { font-style: normal; opacity: .6; }
.faq__item[open] .faq__q .num { opacity: 1; }

/* служебные подписи — капсом, как BILL TO / DESCRIPTION / BENEFICIARY */
.footer__col > .t-14, .case-fact dt, .quote figcaption .fg, .field > label, .field__label {
  text-transform: uppercase; font-weight: 600; letter-spacing: .01em; }
.footer__col > .t-14 { font-size: 14px; }
.case-fact dt { font-size: 12px; }
.quote figcaption .fg { font-size: 12px; }

/* «Почему мы»: значения крупно, как суммы в счёте; на красной плитке — чёрные цифры и белая подпись */
.proof > .facts-grid .fact-tile__value { font-weight: 800; font-size: 48px; line-height: .95; letter-spacing: -0.04em; }
.proof > .facts-grid .fact-tile:last-child .fact-tile__value { color: #000; }
.proof > .facts-grid .fact-tile:last-child dd { color: #fff; }
@media (max-width: 809px) { .proof > .facts-grid .fact-tile__value { font-size: 32px; } }

/* страница кейса: язык и тема — в одну строку с кнопкой «Назад», справа */
.split--page .p-title { position: relative; }
.split--page .p-title .brand__tools { position: absolute; top: 0; right: 0; }
.split--page .p-title .pill { height: 31px; display: inline-flex; align-items: center; }
/* окно заявки в светлой теме — остаётся тёмным (как кнопки и плашки), иначе белый текст на белом */
:root[data-theme="light"] .lead__panel { --bg: #000; --fg: #fff; --rgb: 255, 255, 255; --gray: rgba(255, 255, 255, .5); --line: rgba(255, 255, 255, .22); background: #000; color: #fff; color-scheme: dark; }
:root[data-theme="light"] .lead__panel .field input, :root[data-theme="light"] .lead__panel .field select, :root[data-theme="light"] .lead__panel .field textarea { background-color: #000; color: #fff; border-color: rgba(255, 255, 255, .35); }
:root[data-theme="light"] .lead__panel .lead__form:not(.is-done) .lead__submit.has-progress:not(.s-load):not(.s-check):not(.s-done) { background: #000; color: #fff; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .35); }

/* ---------- метрика: баннер про cookies и страница /privacy/ ---------- */
.footer__copy a.flink { color: var(--gray); text-decoration: underline; text-underline-offset: 3px; }
.footer__copy a.flink:hover { color: var(--red); }
.cq-base a.cq-privacy { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.cq-base a.cq-privacy:hover { text-decoration-thickness: 2px; }

.consent { position: fixed; z-index: 60; right: 20px; bottom: 20px; width: 320px; max-width: calc(100vw - 40px); padding: 16px 18px;
  background: #121212; color: #fff; border: 1px solid rgba(255, 255, 255, .22); box-shadow: 0 8px 32px rgba(0, 0, 0, .35);
  display: flex; flex-direction: column; gap: 12px; font-size: 14px; line-height: 1.4; letter-spacing: -0.01em; }
.consent[hidden] { display: none; }
.consent__text { margin: 0; }
.consent__row { display: flex; align-items: center; gap: 16px; }
.consent__ok { height: 36px; padding: 0 18px; background: var(--red); color: #000; font-weight: 600; font-size: 15px; transition: background .2s, color .2s; }
.consent__ok:hover { background: #fff; }
.consent__more { color: rgba(255, 255, 255, .7); text-decoration: underline; text-underline-offset: 3px; }
.consent__more:hover { color: var(--red); }
@media (max-width: 809px) {
  .consent { left: 12px; right: 12px; width: auto; max-width: none; bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    flex-direction: row; align-items: center; gap: 12px; padding: 10px 12px; font-size: 12.5px; }
  .consent__text { flex: 1 1 auto; }
  .consent__row { flex: 0 0 auto; flex-direction: column; align-items: stretch; gap: 6px; text-align: center; }
  .consent__ok { height: 34px; padding: 0 14px; }
  .consent__more { font-size: 12px; }
}

.privacy { max-width: 760px; margin: 0 auto; padding: 48px 24px 96px; display: block; }
.privacy__back { display: inline-block; margin-bottom: 32px; color: var(--gray); transition: color .2s; }
.privacy__back:hover { color: var(--red); }
.privacy__title { font-weight: 500; font-size: clamp(34px, 6vw, 56px); line-height: 1.05; letter-spacing: -0.05em; margin: 0 0 16px; }
.privacy__lead { font-size: 20px; line-height: 1.35; color: var(--gray); margin: 0 0 24px; }
.privacy h2 { font-weight: 500; font-size: 22px; line-height: 1.2; margin: 36px 0 10px; }
.privacy p, .privacy li, .privacy dd { font-size: 16px; line-height: 1.5; color: var(--fg); }
.privacy p { margin: 0 0 12px; }
.privacy ul { margin: 0 0 12px; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.privacy__list { margin: 0 0 12px; display: grid; grid-template-columns: max-content 1fr; gap: 8px 20px; }
.privacy__list dt { font-weight: 600; font-family: ui-monospace, "SFMono-Regular", Menlo, monospace; font-size: 14px; padding-top: 2px; }
.privacy__list dd { margin: 0; }
.privacy .ulink { text-decoration: underline; text-underline-offset: 3px; }
.privacy .ulink:hover { color: var(--red); }
@media (max-width: 809px) {
  .privacy { padding: 28px 20px 72px; }
  .privacy__list { grid-template-columns: 1fr; gap: 2px; }
  .privacy__list dd { margin-bottom: 10px; }
}

/* ничего не вылезает за ширину экрана — страница не «гуляет» вбок на телефоне (clip не ломает position: sticky) */
html, body { overflow-x: clip; max-width: 100%; }
#contact { scroll-margin-top: 80px; } /* «07 Контакты» — колонка не уходит под меню на телефоне */

/* стрелка ↗ из точек над заголовком (компьютер): волна по точкам, у курсора точки растут и краснеют */
.dotfield { display: none; }
@media (min-width: 810px) {
  .split--home .dotfield { display: block; position: relative; height: clamp(200px, calc(38vh - 24px), 520px); margin-top: 8px; }
  .split--home .dotfield canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
  .split--home .intro .hero { padding-top: 12px; }
}
