/* DPV Group — направление «Плакат»: белый / чёрный / золото, Montserrat */

/* Запасной шрифт с метриками Montserrat (Arial, подогнанный по ширине и высоте строк): пока Montserrat
   грузится, текст уже стоит на своих местах — подмена почти не сдвигает вёрстку. Предзагрузка шрифтов
   была бы надёжнее для сдвига, но на медленном 4G откладывает первый экран на ~0,4 с (замер 13.10.2026). */
@font-face {
  font-family: "Montserrat Fallback";
  src: local("Arial");
  ascent-override: 85.79%;
  descent-override: 22.25%;
  line-gap-override: 0%;
  size-adjust: 112.83%;
}
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/montserrat-var-latin.c154477b9aff.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122;
}
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/montserrat-var-cyrillic.45ea393f38e4.woff2") format("woff2-variations");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

:root {
  --black: #0a0a0a;
  --white: #ffffff;
  --gold: #ffcc01;
  --grey: #3a3a3a;         /* подписи и вторичный текст на белом */
  --grey-inv: #a6a6a6;     /* то же на чёрном, 8:1 */
  --line-inv: #2a2a2a;     /* разделители на чёрном */
  --error: #ff5f45;
  --pad: clamp(22px, 5vw, 56px);
  /* роли заголовков: H1 всегда крупнее H2 на любой ширине */
  --h1: clamp(30px, 4.6vw, 60px);
  /* H1 главной мельче: под первым экраном виден заголовок «Проекты» (1228×742 и больше) */
  --h1-hero: clamp(30px, 3.1vw, 44px);
  --h2: clamp(24px, 3vw, 40px);
  --h3: 20px;
  /* основной текст: абзацы 16 px, пункты списков 15,5 px (читаемость, 13.10.2026) */
  --text: 16px;
  --text-sm: 15.5px;
  /* движение: резкий старт, мягкая посадка, как оттиск */
  /* движение (15.10.2026 — плавнее): мягкий ease-out без «щелчка» в начале, длительности дольше */
  --ease-print: cubic-bezier(.22, .61, .36, 1);
  --t-press: .2s;
  --t-move: .4s;
  --t-morph: .62s;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee__track { animation: none !important; }
}

body {
  font-family: "Montserrat", "Montserrat Fallback", system-ui, sans-serif;
  background: var(--white);
  color: var(--black);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img { max-width: 100%; height: auto; display: block; }
/* атрибут hidden сильнее любых display у компонентов (переключатели, которые включает скрипт) */
[hidden] { display: none !important; }

a { color: inherit; }
:focus-visible { outline: 3px solid var(--black); outline-offset: 2px; box-shadow: 0 0 0 7px var(--gold); }
/* на чёрном кольцо наоборот: золото + белый ореол */
.header :focus-visible, .contact :focus-visible, .footer :focus-visible, .plan--featured :focus-visible {
  outline-color: var(--gold); box-shadow: 0 0 0 7px var(--white);
}

/* переход между страницами: обложка строки перелетает в карточку */
@view-transition { navigation: auto; }
::view-transition-group(*) { animation-duration: var(--t-morph); animation-timing-function: var(--ease-print); }
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
}
::selection { background: var(--gold); color: var(--black); }

.container { max-width: 1280px; margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }

/* ---------- шапка: липкая капсула, при прокрутке сжимается слоями (вариант В борда «шапка», 16.10.2026) ---------- */
/* Блок постоянной высоты 82 px (зазор 16 + капсула 66) и flow-root: сжатие не двигает страницу, зазор не выпадает из
   липкого блока. Фон капсулы (::before), тень (::after) и строка с содержимым (.header__row) — отдельные слои: фон режется
   clip-path 66 → 44 px, строка сдвигается transform, эмблема и кнопка меняют размер тоже transform и clip-path — вёрстка за
   переход не пересчитывается. Степень сжатия = положение прокрутки на первых 80 px (scroll-driven, класс `sd` на <html>);
   без поддержки или при reduced-motion — класс `compact` с порогом 60 вниз / 24 вверх. Кнопка и капсула — вложенные пилюли
   с равным зазором: 10 px в покое, 5 px сжатой. Радиусы в clip-path точные (33/22), не 999px: у слоя нет своего border-radius. */
.header { color: var(--white); position: sticky; top: 0; z-index: 50; display: flow-root; height: 82px; pointer-events: none; }
.header__in {
  position: relative; isolation: isolate; pointer-events: auto;
  width: calc(100% - 24px); max-width: 1180px; height: 66px; margin-top: 16px; padding: 0;
}
.header__in::before {
  content: ""; position: absolute; left: 0; right: 0; top: -6px; height: 72px; z-index: -1;
  clip-path: inset(6px 0 0 0 round 33px);
  background: rgba(10, 10, 10, .82);
  -webkit-backdrop-filter: blur(8px) saturate(1.8); backdrop-filter: blur(8px) saturate(1.8);
  /* кант: блик сверху-слева, золото снизу-справа */
  box-shadow: inset 1.5px 1.5px 0 -.5px rgba(255, 255, 255, .55), inset -1px -1px 0 -.5px rgba(255, 204, 1, .6),
    inset 0 0 22px rgba(255, 255, 255, .06);
}
/* мягкая тень под капсулой — отдельным слоем, потому что clip-path обрезал бы её вместе с фоном */
.header__in::after {
  content: ""; position: absolute; inset: 0; z-index: -2; border-radius: 999px; transform-origin: top;
  box-shadow: 0 14px 34px -14px rgba(0, 0, 0, .55);
}
/* линза с преломлением — только в Chromium (класс ставит скрипт в base.html) */
.lens .header__in::before { backdrop-filter: url(#dpv-lens) blur(2.5px) saturate(1.8); }
.header__row { position: absolute; inset: 0; display: flex; align-items: center; gap: 22px; padding: 0 10px 0 24px; }
.brand {
  display: flex; align-items: center; gap: 14px;
  font-weight: 800; font-size: 16.5px; letter-spacing: .24em;
  color: var(--white); text-decoration: none; white-space: nowrap;
}
.brand svg { color: var(--gold); flex: none; transform-origin: left center; }
/* кнопка: золото — отдельный слой ::before, при сжатии режется до 34 px; текст не масштабируется */
.header .btn { position: relative; isolation: isolate; background: none; margin-left: 8px; white-space: nowrap; }
.header .btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--gold); clip-path: inset(0 round 23px); }
.header .btn:hover { background: none; color: var(--black); }
.header .btn:hover::before { background: var(--white); }
/* кадры сжатия: десктоп */
@keyframes hd-bg { to { clip-path: inset(0 0 28px 0 round 22px); } }
@keyframes hd-shadow { to { transform: translateY(-6px) scaleY(.667); } }
@keyframes hd-row { to { transform: translateY(-17px); } }
@keyframes hd-svg { to { transform: scale(.6875); } }
@keyframes hd-cta { to { transform: translateX(13px); } }
@keyframes hd-cta-bg { to { clip-path: inset(6px 8px round 17px); } }
@keyframes hd-mega { to { translate: 0 -30px; } }
/* кадры сжатия ≤1080: капсула 66 → 54, кнопка «Меню» 44 остаётся (цель касания), кнопка «Обсудить» 46 → 44 */
@keyframes hd-bg-m { to { clip-path: inset(0 0 18px 0 round 27px); } }
@keyframes hd-shadow-m { to { transform: translateY(-6px) scaleY(.818); } }
@keyframes hd-row-m { to { transform: translateY(-12px); } }
@keyframes hd-x5 { to { transform: translateX(5px); } }
@keyframes hd-cta-bg-m { to { clip-path: inset(1px 4px round 22px); } }
.sd .header__in::before, .sd .header__in::after, .sd .header__row, .sd .brand svg, .sd .header .btn, .sd .header .btn::before,
.sd .header .nav-toggle, .sd .mega {
  animation-timing-function: linear; animation-fill-mode: both; animation-timeline: scroll(root); animation-range: 0 80px;
}
.sd .header__in::before { animation-name: hd-bg; }
.sd .header__in::after { animation-name: hd-shadow; }
.sd .header__row { animation-name: hd-row; }
.sd .brand svg { animation-name: hd-svg; }
.sd .header .btn { animation-name: hd-cta; }
.sd .header .btn::before { animation-name: hd-cta-bg; }
.sd .mega { animation-name: hd-mega; }
@media (max-width: 1080px) {
  .sd .header__in::before { animation-name: hd-bg-m; }
  .sd .header__in::after { animation-name: hd-shadow-m; }
  .sd .header__row { animation-name: hd-row-m; }
  .sd .header .btn, .sd .header .nav-toggle { animation-name: hd-x5; }
  .sd .header .btn::before { animation-name: hd-cta-bg-m; }
}
/* запасной режим: Firefox и reduced-motion — те же конечные состояния по классу compact */
html:not(.sd) .header__in::before, html:not(.sd) .header__in::after, html:not(.sd) .header__row, html:not(.sd) .brand svg,
html:not(.sd) .header .btn, html:not(.sd) .header .btn::before, html:not(.sd) .header .nav-toggle {
  transition: clip-path var(--t-morph) var(--ease-print), transform var(--t-morph) var(--ease-print);
}
html:not(.sd) .header.compact .header__in::before { clip-path: inset(0 0 28px 0 round 22px); }
html:not(.sd) .header.compact .header__in::after { transform: translateY(-6px) scaleY(.667); }
html:not(.sd) .header.compact .header__row { transform: translateY(-17px); }
html:not(.sd) .header.compact .brand svg { transform: scale(.6875); }
html:not(.sd) .header.compact .btn { transform: translateX(13px); }
html:not(.sd) .header.compact .btn::before { clip-path: inset(6px 8px round 17px); }
html:not(.sd) .header.compact ~ .mega { translate: 0 -30px; }
@media (max-width: 1080px) {
  html:not(.sd) .header.compact .header__in::before { clip-path: inset(0 0 18px 0 round 27px); }
  html:not(.sd) .header.compact .header__in::after { transform: translateY(-6px) scaleY(.818); }
  html:not(.sd) .header.compact .header__row { transform: translateY(-12px); }
  html:not(.sd) .header.compact .btn, html:not(.sd) .header.compact .nav-toggle { transform: translateX(5px); }
  html:not(.sd) .header.compact .btn::before { clip-path: inset(1px 4px round 22px); }
}
@media (prefers-reduced-motion: reduce) {
  .header__in::before, .header__in::after, .header__row, .brand svg, .header .btn, .header .btn::before, .header .nav-toggle, .mega { transition: none !important; }
}
/* меню: пункты, стрелки панелей и золотой бегунок — слой с чёрной копией подписей, двигается только clip-path */
.nav { position: relative; margin-left: auto; }
.nav__links { display: flex; align-items: center; gap: 2px; }
.nav__item { display: inline-flex; align-items: center; }
.nav__a {
  display: inline-block; padding: 9px 10px; white-space: nowrap; text-decoration: none;
  font-size: 12.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  color: rgba(255, 255, 255, .86); transition: color var(--t-move) var(--ease-print);
}
a.nav__a:hover, .nav__a[aria-current="page"] { color: var(--gold); }
.nav__more {
  display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 34px;
  margin: 0 6px 0 -9px; padding: 0; border: 0; border-radius: 999px; background: none; cursor: pointer;
  color: rgba(255, 255, 255, .86); transition: color var(--t-move) var(--ease-print);
}
button.nav__more:hover, button.nav__more[aria-expanded="true"] { color: var(--gold); }
.nav__more i {
  width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg); transition: transform var(--t-move) var(--ease-print);
}
.nav__more[aria-expanded="true"] i { transform: translateY(1px) rotate(225deg); }
.nav__pill {
  position: absolute; inset: 0; background: var(--gold); pointer-events: none; opacity: 0;
  clip-path: inset(0 50% 0 50% round 999px);
  transition: clip-path var(--t-morph) var(--ease-print), opacity var(--t-move) var(--ease-print);
}
.nav__pill .nav__a, .nav__pill .nav__more { color: var(--black); }
@media (max-width: 1240px) {
  .nav__a { padding: 9px 5px; letter-spacing: .05em; }
  .nav__more { margin-right: 4px; }
  .header__row { gap: 16px; }
  .header .btn { padding: 0 22px; }
}
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 46px;
  background: var(--gold); color: var(--black);
  font-weight: 800; font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase;
  padding: 0 26px; text-decoration: none; border: none; cursor: pointer;
  font-family: inherit;
}
/* наведение зависит от фона: на белом — чернила, на чёрном — белая */
.btn:hover { background: var(--black); color: var(--gold); }
.header .btn:hover, .contact .btn:hover { background: var(--white); color: var(--black); }

/* оттиск: всё, что нажимается, приподнимается над золотой подложкой и впечатывается при нажатии */
.btn, .copy-btn, a.tile, .case__thumbs button {
  transition: transform var(--t-press) var(--ease-print), box-shadow var(--t-press) var(--ease-print),
    background-color var(--t-move) var(--ease-print), color var(--t-move) var(--ease-print);
}
.btn:hover, .copy-btn:hover { transform: translate(-3px, -3px); box-shadow: 3px 3px 0 var(--gold); }
.contact .copy-btn:hover { box-shadow: 3px 3px 0 var(--white); }
a.tile:hover {
  transform: translate(-4px, -4px); position: relative; z-index: 1;
  box-shadow: 4px 4px 0 var(--gold), 4px 4px 0 2px var(--black);
}
.btn:active, .copy-btn:active, a.tile:active { transform: none; box-shadow: none; }
.btn:focus-visible { box-shadow: 0 0 0 7px var(--gold); }
@media (prefers-reduced-motion: reduce) {
  .btn:hover, .copy-btn:hover, a.tile:hover { transform: none; }
}

.header .btn, .header .nav-toggle { border-radius: 999px; }
.header .btn:focus-visible, .dock:focus-visible .btn { outline: 3px solid var(--white); outline-offset: 3px; box-shadow: none; }
.dock:focus-visible { outline: none; box-shadow: none; }
.header .btn:hover { box-shadow: none; transform: none; }
@media (max-width: 860px) {
  .header__row { gap: 12px; padding-left: 18px; }
}
/* узкие телефоны: логотип и «Меню» помещаются в одну строку капсулы */
@media (max-width: 400px) {
  .brand { font-size: 14px; letter-spacing: .16em; gap: 10px; }
}
@media (prefers-reduced-transparency: reduce) {
  .header__in::before { background: var(--black); backdrop-filter: none; -webkit-backdrop-filter: none; }
}

/* нижний док на телефоне: «Обсудить проект» у большого пальца, появляется после первого экрана */
.dock { display: none; }
@media (max-width: 860px) {
  .dock {
    display: flex; position: fixed; z-index: 49; left: 50%; bottom: calc(14px + env(safe-area-inset-bottom, 0px));
    transform: translate(-50%, 160%); transition: transform var(--t-morph) var(--ease-print);
    padding: 6px; border-radius: 999px; background: rgba(10, 10, 10, .82);
    -webkit-backdrop-filter: blur(8px) saturate(1.8); backdrop-filter: blur(8px) saturate(1.8);
    box-shadow: inset 1.5px 1.5px 0 -.5px rgba(255, 255, 255, .55), inset -1px -1px 0 -.5px rgba(255, 204, 1, .6),
      0 14px 34px -14px rgba(0, 0, 0, .6);
  }
  .lens .dock { backdrop-filter: url(#dpv-lens) blur(2.5px) saturate(1.8); }
  .dock.on { transform: translate(-50%, 0); }
  .dock .btn { border-radius: 999px; min-height: 48px; padding: 0 28px; white-space: nowrap; }
  .dock .btn:hover { box-shadow: none; transform: none; }
}
@media (max-width: 860px) and (prefers-reduced-transparency: reduce) {
  .dock { background: var(--black); backdrop-filter: none; -webkit-backdrop-filter: none; }
}

/* шесть пунктов меню помещаются в капсулу с 1081 px; уже — кнопка «Меню» и меню-плакат */
.nav-toggle { display: none; }
@media (max-width: 1080px) {
  .nav { display: none; }
  .nav-toggle {
    display: block; margin-left: auto; background: none; border: 2px solid var(--gold);
    color: var(--gold); font-family: inherit; font-weight: 800; font-size: 12.5px;
    letter-spacing: .1em; text-transform: uppercase; padding: 11px 16px; min-height: 44px;
    cursor: pointer;
  }
}
@media (max-width: 860px) {
  .header .btn { display: none; }
  .copy-btn { width: 46px; height: 46px; }
}

/* подпись раздела в капсуле на телефоне: «где я» на длинной главной */
.where { display: none; }
@media (max-width: 1080px) {
  .where {
    display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--gold);
    opacity: 0; transform: translateY(4px); transition: opacity var(--t-move) var(--ease-print), transform var(--t-move) var(--ease-print);
  }
  .where.on { opacity: 1; transform: none; }
}

/* панели меню (десктоп): витрина услуг и команда в стекле капсулы, под шапкой */
.mega {
  position: fixed; z-index: 48; top: 92px; left: 50%; width: min(1180px, calc(100% - 24px));
  max-height: calc(100vh - 112px); overflow-y: auto; overscroll-behavior: contain;
  padding: 16px; border-radius: 22px; color: var(--white);
  background: rgba(10, 10, 10, .92); -webkit-backdrop-filter: blur(12px) saturate(1.6); backdrop-filter: blur(12px) saturate(1.6);
  box-shadow: inset 1.5px 1.5px 0 -.5px rgba(255, 255, 255, .4), 0 24px 48px -20px rgba(0, 0, 0, .6);
  opacity: 0; transform: translate(-50%, -8px);
  transition: opacity var(--t-move) var(--ease-print), transform var(--t-move) var(--ease-print), translate var(--t-morph) var(--ease-print);
}
.mega.on { opacity: 1; transform: translate(-50%, 0); }
.header.compact ~ .mega { max-height: calc(100vh - 82px); }
.mega__grid { display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: 16px; }
.mega__items { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px; }
.mega__item, .poster__svc {
  display: grid; grid-template-columns: 80px minmax(0, 1fr); gap: 3px 14px; align-items: center;
  color: var(--white); text-decoration: none;
}
.mega__item { padding: 8px; border-radius: 12px; transition: background-color var(--t-move) var(--ease-print); }
.mega__item:hover, .mega__item:focus-visible { background: rgba(255, 255, 255, .09); }
.mega__item svg, .poster__svc svg {
  grid-row: span 2; display: block; width: 100%; height: auto; aspect-ratio: 16 / 9;
  background: var(--white); border: 2px solid var(--white);
}
.mega__item b, .poster__svc b { align-self: end; font-size: 12.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; line-height: 1.2; }
.mega__item span, .poster__svc span { align-self: start; font-size: 13.5px; font-weight: 500; line-height: 1.35; color: var(--grey-inv); }
.mega__feat {
  display: grid; gap: 8px; align-content: start; padding: 12px; border-radius: 14px; text-decoration: none;
  color: var(--white); background: rgba(255, 255, 255, .06); transition: background-color var(--t-move) var(--ease-print);
}
.mega__feat:hover { background: rgba(255, 255, 255, .11); }
.mega__browser { display: block; border: 2px solid var(--white); background: var(--white); box-shadow: 6px 6px 0 var(--gold); }
.mega__browser em {
  display: flex; align-items: center; gap: 4px; height: 18px; padding: 0 6px; background: var(--black);
  font-style: normal; font-size: 9.5px; letter-spacing: .06em; color: var(--grey-inv);
}
.mega__browser em i { width: 5px; height: 5px; background: var(--grey); }
.mega__browser em i:first-child { background: var(--gold); }
.mega__browser img { display: block; width: 100%; height: auto; }
.mega__feat b { margin-top: 8px; font-size: 12.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.mega__feat span { font-size: 13.5px; font-weight: 700; color: var(--gold); }
.mega__feat--all { align-content: end; min-height: 160px; background: var(--gold); color: var(--black); }
.mega__feat--all:hover { background: var(--white); }
.mega__feat--all b { margin: 0; font-size: 16px; }
.mega__feat--all span { color: var(--black); font-weight: 500; }
.mega__team { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
@media (max-width: 1100px) { .mega__grid { grid-template-columns: 1fr; } .mega__feat { display: none; } }
@media (max-width: 1080px) { .mega { display: none !important; } }

/* меню-плакат (телефон): раскрывается кругом из кнопки «Меню», пункты появляются лесенкой */
.poster {
  position: fixed; inset: 0; z-index: 60; display: flex; flex-direction: column; gap: 12px;
  padding: 14px 18px calc(20px + env(safe-area-inset-bottom, 0px)); overflow-y: auto; overscroll-behavior: contain;
  background: var(--black); color: var(--white);
  clip-path: circle(0 at var(--ox, calc(100% - 50px)) var(--oy, 40px));
  transition: clip-path var(--t-morph) var(--ease-print);
}
.poster.on { clip-path: circle(150% at var(--ox, calc(100% - 50px)) var(--oy, 40px)); }
.poster__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; padding-left: 6px; }
.poster__top .brand { font-size: 14px; letter-spacing: .16em; gap: 10px; }
.poster__close {
  min-height: 44px; padding: 0 16px; border: 2px solid var(--gold); border-radius: 999px; background: none; cursor: pointer;
  color: var(--gold); font-family: inherit; font-size: 12.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
}
.poster__list { list-style: none; margin: 4px 0 0; padding: 0; }
.poster__list > li { opacity: 0; transform: translateY(14px); transition: opacity var(--t-move) var(--ease-print), transform var(--t-move) var(--ease-print); }
.poster.on .poster__list > li { opacity: 1; transform: none; transition-delay: calc(var(--i) * 55ms + 180ms); }
.poster__item {
  display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px 0; border: 0; border-bottom: 1px solid var(--line-inv);
  background: none; color: var(--white); text-decoration: none; text-align: left; cursor: pointer;
  font-family: inherit; font-size: 26px; font-weight: 800; line-height: 1.1; letter-spacing: -.01em; text-transform: uppercase;
}
.poster__item.cur::before { content: ""; width: 12px; height: 12px; flex: none; background: var(--gold); }
.poster__plus { margin-left: auto; font-size: 26px; color: var(--gold); transition: transform var(--t-move) var(--ease-print); }
.poster__item[aria-expanded="true"] .poster__plus { transform: rotate(45deg); }
.poster__sub { display: grid; gap: 2px; padding: 8px 0 16px; animation: poster-in var(--t-move) var(--ease-print); }
@keyframes poster-in { from { opacity: 0; transform: translateY(-6px); } }
.poster__svc { grid-template-columns: 72px minmax(0, 1fr); padding: 7px 0; }
.poster__all { margin-top: 8px; font-size: 13.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); text-decoration: none; }
.poster__foot { margin-top: auto; display: grid; gap: 12px; padding-top: 16px; }
.poster__foot .btn { width: 100%; }
.poster__ln { font-size: 16px; font-weight: 700; color: var(--white); text-decoration: none; }
.poster__ln:hover { color: var(--gold); }
html.menu-open { overflow: hidden; }
@media (min-width: 1081px) { .poster { display: none !important; } }
@media (prefers-reduced-motion: reduce) {
  .nav__pill, .mega, .poster, .poster__list > li, .where { transition: none; }
  .poster__sub { animation: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .mega { background: var(--black); backdrop-filter: none; -webkit-backdrop-filter: none; }
}

/* команда: на главной — портреты с оттиском, в панели и плакате — фото слева */
.team { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 4vw, 48px); }
.person { display: grid; gap: 16px; align-content: start; }
.person__photo {
  display: block; width: min(100%, 260px); height: auto; aspect-ratio: 1; object-fit: cover;
  border: 2px solid var(--black); box-shadow: 8px 8px 0 var(--gold);
}
.person__name { font-size: 17px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.person__role {
  display: inline-block; margin-top: 8px; padding: 4px 8px; background: var(--gold); color: var(--black);
  font-size: 11.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
}
.person p { margin-top: 10px; font-size: var(--text-sm); font-weight: 500; color: var(--grey); }
.person__facts { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; font-size: 15px; font-weight: 500; color: var(--grey); }
.person__facts li { position: relative; padding-left: 16px; }
.person__facts li::before { content: ""; position: absolute; left: 0; top: .5em; width: 7px; height: 7px; background: var(--gold); }
.person__links { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 12px; }
.person__links a {
  font-size: 13.5px; font-weight: 800; color: inherit; text-decoration: underline;
  text-decoration-color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: 3px;
}
.person__links a:hover { background: var(--gold); color: var(--black); }
.person p a { font-weight: 700; color: inherit; text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.person p a:hover { background: var(--gold); color: var(--black); }
.mega .person p a, .poster .person p a { color: var(--white); }
.mega .person p a:hover, .poster .person p a:hover { color: var(--black); }
.mega .person, .poster .person { grid-template-columns: 96px minmax(0, 1fr); gap: 14px; padding: 10px; }
.poster .person { grid-template-columns: 72px minmax(0, 1fr); padding: 8px 0; }
.mega .person__photo, .poster .person__photo { width: 100%; border-color: var(--white); box-shadow: 5px 5px 0 var(--gold); }
.mega .person__name, .poster .person__name { font-size: 14px; color: var(--white); }
.mega .person p, .mega .person__facts, .poster .person p, .poster .person__facts { color: var(--grey-inv); }
.mega .person__links a, .poster .person__links a { color: var(--white); }
/* в меню — коротко: факты биографии только в разделе «Команда» на главной */
.mega .person__facts, .poster .person__facts { display: none; }
.mega__more { display: inline-block; margin: 10px 0 0 10px; font-size: 13.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); text-decoration: none; }
.mega__more:hover { color: var(--white); }
/* телефон: фото и имя в строку, роль, текст и факты — на всю ширину под ними (длинная роль не упирается в колонку) */
@media (max-width: 900px) {
  .team { grid-template-columns: 1fr; gap: 40px; }
  .team .person { grid-template-columns: 104px minmax(0, 1fr); gap: 0 18px; }
  .team .person__body { display: contents; }
  .team .person__photo { width: 100%; box-shadow: 5px 5px 0 var(--gold); }
  .team .person__name { align-self: center; }
  .team .person__role { grid-column: 1 / -1; justify-self: start; margin-top: 18px; }
  .team .person p, .team .person__facts, .team .person__links { grid-column: 1 / -1; }
}

/* ---------- герой ---------- */
.hero { padding-top: clamp(32px, 2.6vw, 40px); }
.kicker {
  display: inline-block; border: 2px solid var(--black);
  font-size: 11.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  padding: 8px 16px;
}
.hero h1 {
  font-size: var(--h1-hero); font-weight: 800; line-height: 1.04;
  text-transform: uppercase; letter-spacing: -.02em;
  text-wrap: balance;
}
.hero .kicker + h1 { margin-top: 28px; }
.hero h1 mark {
  background: var(--gold); color: inherit; padding: .02em .14em;
  box-decoration-break: clone; -webkit-box-decoration-break: clone;
}
.hero__text { font-size: 17px; max-width: 64ch; font-weight: 500; margin-top: 18px; text-wrap: pretty; }
/* первый экран: доказательство и действие без прокрутки, справа — стопка снимков работ */
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(28px, 4vw, 56px); align-items: center; }
@media (max-width: 900px) { .hero__grid { grid-template-columns: minmax(0, 1fr); } }
.hero__proof { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 20px; margin-top: 16px;
  font-size: 12.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.hero__proof li::before { content: ""; display: inline-block; width: 8px; height: 8px; background: var(--gold); box-shadow: 1px 1px 0 var(--black); margin-right: 8px; vertical-align: 1px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.hero__stack { position: relative; aspect-ratio: 16 / 13.5; }
/* колода из трёх снимков лесенкой: задний справа сверху, средний по центру, передний слева снизу —
   у каждого видна шапка сайта и верх страницы. Наведение раскрывает колоду веером (без подъёма отдельной карты:
   карта, которая едет под курсором, перехватывает наведение у соседней, и колода дёргается) */
.hero__shot {
  position: absolute; width: 66%; display: block; color: inherit; text-decoration: none;
  transition: transform var(--t-morph) var(--ease-print);
}
.hero__shot--back { right: 0; top: 0; transform: rotate(2.5deg); }
.hero__shot--mid { left: 17%; top: 22%; transform: rotate(-1.5deg); }
.hero__shot--front { left: 0; bottom: 0; }
/* веер: карты расходятся от центра колоды по диагонали — задняя вверх-вправо, передняя вниз-влево на равные
   расстояния и равные углы (±5°), средняя выпрямляется и приподнимается — центр композиции. Раздача от центра.
   Включён по ширине (колода рядом с текстом, запас по краям есть), а не по media hover/pointer: часть браузеров
   и экранов с сенсором сообщает «coarse» и при мыши — веер у них не работал. На телефоне (≤900 px) колода не двигается */
@media (min-width: 901px) {
  .hero__stack:hover .hero__shot--mid { transform: translate(0, -8px) rotate(0deg); }
  .hero__stack:hover .hero__shot--back { transform: translate(22px, -18px) rotate(5deg); transition-delay: 60ms; }
  .hero__stack:hover .hero__shot--front { transform: translate(-22px, 18px) rotate(-5deg); transition-delay: 60ms; }
}
@media (prefers-reduced-motion: reduce) { .hero__shot { transition: none; } }
.hero__shot--front .browser { box-shadow: 12px 12px 0 var(--black); }
/* ярлык проекта — в полосе рамки браузера, золотом перед адресом: соседняя карта его не закрывает */
.hero__tag { margin-left: 8px; color: var(--gold); font-size: 10.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; }
.hero__tag + span { margin-left: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 900px) { .hero__stack { aspect-ratio: 16 / 13; margin-top: 6px; } }

/* ---------- бегущая строка ---------- */
.marquee {
  margin-top: clamp(32px, 2.6vw, 40px); background: var(--black); color: var(--gold);
  overflow: hidden; padding: 16px 0; white-space: nowrap;
}
.marquee__track {
  display: inline-flex; white-space: nowrap; animation: marquee 90s linear infinite;
  font-weight: 800; font-size: 15px; letter-spacing: .22em; text-transform: uppercase;
}
.marquee__track span { flex: none; }
/* два одинаковых span; сдвиг ровно на ширину одного даёт бесшовный цикл вправо */
@keyframes marquee { from { transform: translateX(-50%); } to { transform: translateX(0); } }

/* ---------- секции ---------- */
.section { padding-top: clamp(48px, 7vw, 88px); }
/* переход по якорю (меню, «Смотреть проекты»): заголовок раздела не уходит под липкую шапку */
.section[id] { scroll-margin-top: 40px; }
.marquee + .section { padding-top: clamp(40px, 3.5vw, 48px); }
.section h2 {
  font-size: var(--h2); font-weight: 800; text-transform: uppercase; line-height: 1.1;
  letter-spacing: -.02em; margin-bottom: clamp(24px, 4vw, 40px); text-wrap: balance;
}

.strip {
  margin-top: 26px; font-size: 11.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--grey);
}

/* продукт */
.product { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
@media (max-width: 900px) { .product { grid-template-columns: 1fr; } }
.badge {
  display: inline-block; border: 2px solid var(--black); background: var(--gold);
  font-size: 11.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  padding: 7px 14px;
}
.product h2, .product__title { margin: 18px 0 14px; }
/* название продукта внутри раздела «Наши проекты» — ступень между H2 и H3 */
.product__title { font-size: clamp(22px, 2.4vw, 30px); font-weight: 800; text-transform: uppercase; letter-spacing: -.02em; }
.product p { font-size: 16px; font-weight: 500; max-width: 52ch; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 28px; }
.chips span {
  border: 2px solid var(--black); font-size: 11.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; padding: 7px 13px;
}
.product__shot { border: 2px solid var(--black); box-shadow: 12px 12px 0 var(--gold); }

/* тарифы */
.plans { display: grid; grid-template-columns: 1fr 1fr; border: 2px solid var(--black); } /* 4 формата — 2×2: в 4 колонки «Продукт» был 1126 px и тянул соседей */
@media (max-width: 700px) { .plans { grid-template-columns: 1fr; } }
.plan { border: 1px solid var(--black); padding: 32px 28px 36px; display: flex; flex-direction: column; }
.plan--featured { background: var(--black); color: var(--white); }
.plan__step { font-size: 11.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--grey); }
.plan--featured .plan__step { color: var(--gold); }
.plan h3 { font-size: var(--h3); font-weight: 800; text-transform: uppercase; letter-spacing: -.01em; margin: 10px 0 2px; }
.plan__price { font-size: 27px; font-weight: 800; margin: 10px 0 18px; font-variant-numeric: tabular-nums; }
.plan--featured .plan__price { color: var(--gold); }
.plan__for { font-size: 12.5px; font-weight: 600; color: var(--grey); margin: -14px 0 16px; }
.plan--featured .plan__for { color: var(--grey-inv); }
.plan ul { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.plan li { font-size: var(--text-sm); font-weight: 500; padding-left: 18px; position: relative; }
.plan li::before { content: ""; position: absolute; left: 0; top: 7px; width: 9px; height: 9px; background: var(--gold); }
.plan__result { margin-top: 18px; padding-top: 14px; border-top: 4px solid var(--gold); font-size: 12.5px; font-weight: 700; }
.plans-note { margin-top: 20px; font-size: 15px; color: var(--grey); max-width: 70ch; }

/* ---------- контакты ---------- */
.contact { background: var(--black); color: var(--white); margin-top: clamp(48px, 7vw, 88px); padding: clamp(48px, 7vw, 80px) 0; }
.contact__lead { font-size: 11.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--grey-inv); margin-bottom: 20px; }
.contact__mail {
  font-size: clamp(24px, 4.6vw, 58px); font-weight: 800; color: var(--gold);
  text-transform: uppercase; letter-spacing: -.01em; text-decoration: none;
  border-bottom: 4px solid var(--gold); display: inline-block; padding-bottom: 4px;
  overflow-wrap: anywhere;
}
.contact__mailrow { display: flex; align-items: center; gap: clamp(14px, 2vw, 26px); flex-wrap: wrap; }
.copy-btn {
  flex: none; width: clamp(46px, 5vw, 56px); height: clamp(46px, 5vw, 56px);
  display: grid; place-items: center; cursor: pointer;
  background: none; border: 2px dashed var(--gold); color: var(--gold);
}
.copy-btn:hover { border-style: solid; background: rgba(255, 204, 1, .12); }
.copy-btn svg { grid-area: 1 / 1; }
.copy-btn__check { opacity: 0; }
.copy-btn.copied { border-style: solid; background: var(--gold); color: var(--black); }
.copy-btn.copied .copy-btn__icon { opacity: 0; }
.copy-btn.copied .copy-btn__check { opacity: 1; }
.copy-note {
  font-size: 11.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  background: var(--gold); color: var(--black); padding: 7px 12px;
  opacity: 0; transform: translateY(6px); transition: opacity var(--t-move) var(--ease-print), transform var(--t-move) var(--ease-print);
  pointer-events: none;
}
.copy-note.show { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .copy-btn, .copy-note { transition: none; }
}
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); margin-top: clamp(32px, 5vw, 48px); }
@media (max-width: 900px) { .contact__grid { grid-template-columns: 1fr; } }
.crow { display: flex; flex-direction: column; gap: 24px; }
.crow h4 { font-size: 11.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--grey-inv); margin-bottom: 6px; }
.crow p { font-size: 15px; font-weight: 600; }
.crow small { font-size: 12px; color: var(--grey-inv); display: block; margin-top: 4px; }
.map-link {
  color: inherit; text-decoration: underline;
  text-decoration-color: var(--gold); text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}
.map-link:hover { color: var(--gold); }

/* форма */
.form { display: flex; flex-direction: column; gap: 16px; }
.form label { font-size: 11.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--grey-inv); display: block; margin-bottom: 6px; }
.form input[type="text"], .form input[type="email"], .form input[type="tel"], .form textarea {
  width: 100%; background: transparent; border: 2px solid var(--white); color: var(--white);
  font-family: inherit; font-size: 15px; font-weight: 500; padding: 12px 14px;
}
.form input:focus, .form textarea:focus { border-color: var(--gold); outline: none; }
.form textarea { min-height: 110px; resize: vertical; }
.form .consent { display: flex; gap: 10px; align-items: flex-start; font-size: 12px; color: var(--grey-inv); }
.form .consent input { width: 18px; height: 18px; accent-color: var(--gold); flex: none; margin-top: 1px; }
.form .consent a { color: var(--gold); }
.form .btn { align-self: flex-start; }
.form .hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { border: 2px solid var(--gold); padding: 14px 18px; font-weight: 700; font-size: 14px; }
.form-msg--error { border-color: var(--error); color: var(--error); }
.form-msg a { color: var(--gold); }
/* подсказка под полем (скрипт формы в includes/contact.html) */
.form .fhint { display: none; font-size: 12.5px; font-weight: 700; color: var(--error); margin-top: 6px; }
.form .fhint.on { display: block; }
.form input.bad, .form textarea.bad { border-color: var(--error); }

/* нижняя полоса */
.footer { background: var(--black); color: var(--grey-inv); border-top: 1px solid var(--line-inv); }
.footer__in { display: flex; flex-wrap: wrap; gap: 10px 28px; align-items: center; padding-top: 20px; padding-bottom: 20px; font-size: 12px; }
.footer a { color: var(--grey-inv); text-decoration: none; }
.footer a:hover { color: var(--gold); }
.footer .sep { flex: 1; }

/* ---------- внутренние страницы ---------- */
.page-hero { padding-top: clamp(40px, 6vw, 64px); }
.page-hero h1 {
  font-size: var(--h1); font-weight: 800; text-transform: uppercase; line-height: 1.04;
  letter-spacing: -.02em; margin-top: 24px; text-wrap: balance;
  /* переносы только для очень длинных слов («КОНФИДЕНЦИАЛЬНОСТИ») и только на телефоне,
     иначе balance режет «ПРОГРАММ-НОГО» даже на десктопе */
}
@media (max-width: 620px) {
  .page-hero h1 { hyphens: auto; -webkit-hyphens: auto; hyphenate-limit-chars: 16 6 6; }
  /* узкий экран: длинные слова в заголовках строк и документов переносятся, а не раздвигают сетку */
  .dcard__body h3, .prose h2 { hyphens: auto; -webkit-hyphens: auto; hyphenate-limit-chars: 12 5 5; }
}
.page-facts { margin-top: clamp(28px, 4vw, 44px); background: var(--black); color: var(--gold); padding: 16px 0; }
.page-facts ul {
  list-style: none; display: flex; flex-wrap: wrap; gap: 6px 34px;
  font-weight: 800; font-size: 13px; letter-spacing: .16em; text-transform: uppercase;
}
.page-facts li + li::before { content: "·"; color: var(--white); margin-right: 34px; margin-left: -20px; }
@media (max-width: 720px) {
  .page-facts ul { flex-direction: column; gap: 8px; }
  .page-facts li + li::before { content: none; }
}
.page-hero .intro { font-size: 17px; font-weight: 500; max-width: 60ch; margin-top: 20px; }


/* обложки как серия: код раздела в углу и две толщины линии */
.tile__cover, .dcard__cover { position: relative; }
[data-code]::after {
  content: attr(data-code); position: absolute; left: 0; top: 0;
  background: var(--black); color: var(--white);
  font-size: 9.5px; font-weight: 800; letter-spacing: .12em; line-height: 1; padding: 5px 6px;
}
[data-code^="PR"]::after, [data-code^="DG"]::after { background: var(--gold); color: var(--black); }
.tile__cover svg [stroke-width], .dcard__cover svg [stroke-width] { stroke-width: 4.5; }
.tile__cover svg [stroke-width="7"], .tile__cover svg [stroke-width="8"], .tile__cover svg [stroke-width="10"],
.dcard__cover svg [stroke-width="7"], .dcard__cover svg [stroke-width="8"], .dcard__cover svg [stroke-width="10"] { stroke-width: 9; }

/* услуги на главной — плиткой: 4 колонки, 3 до 1100 px, 2 на телефоне; «Все …» добивает последний ряд */
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 2px solid var(--black); }
.tile { border: 1px solid var(--black); background: var(--white); color: inherit; text-decoration: none; display: flex; flex-direction: column; }
.tile__cover svg { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border-bottom: 2px solid var(--black); }
.tile__body { padding: 14px 16px 18px; display: grid; gap: 6px; align-content: start; position: relative; }
.tile h3 { font-size: 17px; font-weight: 800; text-transform: uppercase; letter-spacing: -.01em; line-height: 1.2; }
.tile p { font-size: var(--text-sm); font-weight: 500; color: var(--grey); line-height: 1.45; }
/* наведение (А с борда «ховер плиток», 16.10.2026): описание и задача клиента лежат в одной ячейке сетки — высота плитки
   не меняется; описание уходит вверх, задача приходит снизу, стрелка впечатывается на пружинной кривой колоды */
.tile__desc, .tile__hook { grid-area: 2 / 1; transition: opacity var(--t-move) var(--ease-print), transform var(--t-move) var(--ease-print); }
.tile__hook { opacity: 0; transform: translateY(8px); position: relative; padding-left: 18px; color: var(--black); font-weight: 600; }
.tile__hook::before { content: ""; position: absolute; left: 0; top: 7px; width: 9px; height: 9px; background: var(--gold); }
.tile__arr { position: absolute; right: 12px; bottom: 12px; width: 30px; height: 30px; background: var(--gold); color: var(--black);
  display: grid; place-items: center; font-weight: 800; font-size: 16px; line-height: 1; transform: scale(0); transition: transform var(--t-move) cubic-bezier(.3, 1.4, .5, 1); }
.tile__arr::before { content: "→"; }
.tile:has(.tile__arr) .tile__body { padding-right: 52px; }
a.tile:hover .tile__desc, a.tile:focus-visible .tile__desc { opacity: 0; transform: translateY(-8px); }
a.tile:hover .tile__hook, a.tile:focus-visible .tile__hook { opacity: 1; transform: none; }
a.tile:hover .tile__arr, a.tile:focus-visible .tile__arr { transform: scale(1); }
@media (prefers-reduced-motion: reduce) { .tile__desc, .tile__hook, .tile__arr { transition: none; } }
.tile--more { background: var(--black); color: var(--white); padding: 22px 20px; justify-content: center; gap: 8px; }
.tile--more b { color: var(--gold); font-size: 17px; font-weight: 800; text-transform: uppercase; letter-spacing: -.01em; }
.tile--more span { color: var(--grey-inv); font-size: 14.5px; font-weight: 500; }
.tile--more:nth-child(4n + 3) { grid-column: span 2; }
.tile--more:nth-child(4n + 2) { grid-column: span 3; }
.tile--more:nth-child(4n + 1) { grid-column: span 4; }
@media (max-width: 1100px) {
  .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tile--more:nth-child(n) { grid-column: auto; }
  .tile--more:nth-child(3n + 2) { grid-column: span 2; }
  .tile--more:nth-child(3n + 1) { grid-column: span 3; }
}
@media (max-width: 640px) {
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile--more:nth-child(n) { grid-column: auto; }
  .tile--more:nth-child(2n + 1) { grid-column: span 2; }
  .tile__body { padding: 10px 12px 14px; }
  /* узкие плитки: переносим и 10-буквенные слова («ОТРАСЛЕВЫЕ», «Информационные»), иначе на 320 px они вылезают */
  .tile h3, .tile p { hyphens: auto; -webkit-hyphens: auto; hyphenate-limit-chars: 8 4 4; overflow-wrap: break-word; }
  .tile h3 { font-size: 15px; }
  .tile p { font-size: 15px; }
}

.registry { border: 2px solid var(--black); padding: 26px 28px; margin-top: 30px; display: flex; flex-direction: column; gap: 8px; }
.registry a { font-weight: 700; }
.registry .small { font-size: 12.5px; color: var(--grey); }
.registry--wide { margin-top: 34px; }
.registry .badge { align-self: flex-start; }
.registry--wide p { font-size: var(--text); color: var(--grey); max-width: 72ch; }
.stack { margin-top: 26px; }
.contact--short { padding-bottom: clamp(40px, 6vw, 64px); }
.registry h3 { font-size: var(--h3); font-weight: 800; text-transform: uppercase; letter-spacing: -.01em; }
#blogger360 { scroll-margin-top: 90px; }


/* карточки digital-услуг */
.dcards { display: grid; grid-template-columns: repeat(2, 1fr); border: 2px solid var(--black); }
.dcards--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 980px) { .dcards--3 { grid-template-columns: repeat(2, 1fr); } }
.dcard { border: 1px solid var(--black); display: flex; flex-direction: column; scroll-margin-top: 90px; }
/* карточка, в которую пришли со строки главной */
.dcard:target { outline: 4px solid var(--gold); outline-offset: -4px; position: relative; z-index: 1; background: #fff6db; }
.dcard__cover svg { display: block; width: 100%; height: auto; border-bottom: 2px solid var(--black); }
.dcard__body { padding: 24px 26px 32px; }
.dcard__body h3 { font-size: var(--h3); font-weight: 800; text-transform: uppercase; letter-spacing: -.01em; margin-bottom: 10px; }
.dcard__body p { font-size: var(--text); font-weight: 500; color: var(--grey); max-width: 62ch; }
/* нечётная последняя карточка ложится на всю ширину: обложка слева, текст справа;
   ширина обложки равна колонке сетки, чтобы вертикальные линии совпадали */
.dcard:last-child:nth-child(odd) { grid-column: 1 / -1; flex-direction: row; }
.dcard:last-child:nth-child(odd) .dcard__cover { flex: 0 0 calc((100% + 2px) / 2); }
.dcards--3 .dcard:last-child:nth-child(odd) .dcard__cover { flex: 0 0 calc((100% + 2px) / 3); }
.dcard:last-child:nth-child(odd) .dcard__cover svg { height: 100%; border-bottom: none; border-right: 2px solid var(--black); }
@media (max-width: 760px) {
  .dcards { grid-template-columns: 1fr; }
  .dcard:last-child:nth-child(odd) { grid-column: auto; flex-direction: column; }
  .dcard:last-child:nth-child(odd) .dcard__cover { flex: none; }
  .dcard:last-child:nth-child(odd) .dcard__cover svg { height: auto; border-right: none; border-bottom: 2px solid var(--black); }
}

/* текстовые страницы */
.prose { padding-bottom: clamp(48px, 7vw, 80px); }
/* колонка текста выровнена по левому краю контейнера, как заголовок, а не по центру */
.prose > * { max-width: 72ch; }
.prose h2 { font-size: 24px; margin: 36px 0 12px; text-transform: uppercase; letter-spacing: -.01em; }
.prose h3 { font-size: 18px; margin: 26px 0 10px; }
.prose p, .prose li { font-size: var(--text); font-weight: 450; color: var(--black); margin-bottom: 12px; }
.prose ul, .prose ol { padding-left: 22px; margin-bottom: 14px; }
.prose a { color: inherit; text-decoration-color: var(--gold); text-decoration-thickness: 2px; }

/* страницы ошибок */
.error-page { padding-top: 100px; padding-bottom: 100px; }
.error-page h1 { font-size: clamp(60px, 14vw, 160px); font-weight: 800; line-height: 1; }
.error-page .plate { background: var(--gold); display: inline-block; padding: 0 .15em; }
.error-page p { font-size: 17px; font-weight: 600; margin-top: 20px; }

/* ---------- витрина (13.10.2026): кнопка второго уровня, рамка браузера, кейсы, сценарии, конвейер, путь ---------- */
.btn--secondary { background: var(--white); box-shadow: inset 0 0 0 2px var(--black); }
.btn--secondary:hover { background: var(--black); color: var(--white); }
.section__lead { font-size: 17px; font-weight: 500; max-width: 62ch; color: var(--grey); margin: -18px 0 clamp(24px, 3vw, 36px); }
.note { font-size: 15px; font-weight: 600; color: var(--grey); }

.browser { display: block; border: 2px solid var(--black); background: var(--white); box-shadow: 12px 12px 0 var(--gold); }
.browser__bar { height: 26px; background: var(--black); display: flex; align-items: center; gap: 6px; padding: 0 10px; }
.browser__bar i { width: 8px; height: 8px; background: rgba(255, 255, 255, .5); }
.browser__bar i:first-child { background: var(--gold); }
.browser__bar span { margin-left: 8px; font-size: 11px; font-weight: 700; letter-spacing: .04em; color: var(--grey-inv); }
.browser img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }

.cases { border-top: 2px solid var(--black); }
.case { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start;
  padding: clamp(28px, 4vw, 44px) 0; border-bottom: 2px solid var(--black); }
.case--flip { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); }
.case--flip .case__shot { order: 2; }
@media (max-width: 900px) {
  .case, .case--flip { grid-template-columns: minmax(0, 1fr); }
  .case--flip .case__shot { order: 0; }
}
.case__shot { position: relative; padding: 0 28px 0 0; }
.case__main { transition: opacity var(--t-press) var(--ease-print); }
.case__main.is-swapping { opacity: 0; }
.phone { position: absolute; right: 0; top: 18%; width: 24%; max-width: 160px; border: 2px solid var(--black); border-radius: 18px;
  background: var(--black); padding: 5px; box-shadow: 6px 6px 0 var(--black); }
.phone img { display: block; width: 100%; height: auto; border-radius: 13px; aspect-ratio: 390 / 844; object-fit: cover; object-position: top; }
@media (max-width: 560px) { .phone { display: none; } .case__shot { padding: 0 12px 0 0; } }
.case__thumbs { display: grid; grid-template-columns: repeat(3, minmax(0, 120px)); gap: 10px; margin-top: 24px; }
.case__thumbs button { border: 2px solid var(--black); background: var(--white); padding: 0; cursor: pointer; text-align: left; min-width: 0; font-family: inherit; color: inherit; }
.case__thumbs button img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.case__thumbs button span { display: block; padding: 5px 7px; font-size: 10.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.case__thumbs button[aria-pressed="true"] { background: var(--gold); }
.case__thumbs button:hover { transform: translate(-2px, -2px); box-shadow: 2px 2px 0 var(--black); }
.case__text { display: grid; gap: 14px; align-content: start; }
.case__kicker { font-size: 11.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--grey); }
.case__text h3 { font-size: clamp(22px, 2.4vw, 30px); font-weight: 800; text-transform: uppercase; letter-spacing: -.02em; line-height: 1.1; }
.case__text p { font-size: var(--text); font-weight: 500; color: var(--grey); }
.case__text ul { list-style: none; display: grid; gap: 8px; }
.case__text li { font-size: var(--text-sm); font-weight: 600; padding-left: 20px; position: relative; }
.case__text li::before { content: ""; position: absolute; left: 0; top: .5em; width: 9px; height: 9px; background: var(--gold); box-shadow: 1px 1px 0 var(--black); }
/* цифры кейса 2×2: «>244 тыс.» и «>20 млн» не помещались в четверть колонки и ломались на две строки */
.case__stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); background: var(--black); color: var(--white); }
.case__stats div { padding: 12px 14px; border-right: 1px solid var(--line-inv); border-bottom: 1px solid var(--line-inv); }
.case__stats b { display: block; white-space: nowrap; font-size: 22px; font-weight: 800; color: var(--gold); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.case__stats span { font-size: 12px; font-weight: 600; color: var(--grey-inv); }
.case__note { font-size: 12.5px; font-weight: 600; color: var(--grey); }
.case__private { justify-self: start; font-size: 12.5px; font-weight: 800; letter-spacing: .04em; border: 2px dashed var(--black); padding: 6px 10px; }
.case__cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.case .chips { margin: 0; }

/* /it/: заголовок секции с переключателем языка, карточки со сценарием */
.section__head { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: flex-end; justify-content: space-between; margin-bottom: clamp(24px, 4vw, 40px); }
.section__head h2 { margin-bottom: 0 !important; }
.seg { display: inline-flex; border: 2px solid var(--black); background: var(--white); }
.seg button { font-family: inherit; font-size: 12.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; background: var(--white); color: var(--black);
  border: 0; padding: 0 16px; min-height: 44px; cursor: pointer; }
.seg button + button { border-left: 2px solid var(--black); }
.seg button[aria-pressed="true"] { background: var(--black); color: var(--gold); }
.dcard__hook { font-size: 17px !important; font-weight: 700 !important; color: var(--black) !important; line-height: 1.35; margin-top: 4px; }
.dcard__tech { display: none; }
.lang-it .dcard__hook { display: none; }
.lang-it .dcard__tech { display: block; }
.dcard__more { display: inline-block; margin-top: 12px; font-size: 12.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  color: var(--black); text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 3px; text-underline-offset: 6px; }
.dcard__more:hover, .dcard__more[aria-expanded="true"] { text-decoration-color: var(--black); }
.dcard.is-active { background: var(--gold); }
.dcard.is-active .dcard__body p { color: var(--black); }
.scen { display: none; border: 2px solid var(--black); border-top: 0; grid-template-columns: repeat(3, minmax(0, 1fr)); scroll-margin-bottom: 24px; }
.scen:target, .scen.is-open { display: grid; }
.js-scen .scen:target:not(.is-open) { display: none; }
@media (max-width: 900px) { .scen { grid-template-columns: minmax(0, 1fr); } }
.scen > div { border: 1px solid var(--black); padding: 20px; display: grid; gap: 10px; align-content: start; }
.scen > div:nth-child(2) { background: #fff6db; }
.scen__res { background: var(--black); color: var(--white); }
.scen__lab { font-size: 11.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--grey); }
.scen__res .scen__lab { color: var(--gold); }
.scen p { font-size: var(--text); font-weight: 500; }
.scen ol { padding-left: 20px; display: grid; gap: 6px; font-size: var(--text-sm); font-weight: 600; }
.scen__who { font-size: 13px; font-weight: 600; color: var(--grey); }
.scen__metric { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px; }
.scen__metric s { font-size: 20px; font-weight: 800; color: var(--grey-inv); text-decoration-color: var(--error); text-decoration-thickness: 3px; }
.scen__metric b { font-size: clamp(28px, 3vw, 40px); font-weight: 800; color: var(--gold); letter-spacing: -.02em; line-height: 1; }
.scen__metric span { flex-basis: 100%; font-size: 13.5px; font-weight: 600; color: var(--grey-inv); }
.scen__foot { grid-column: 1 / -1; display: flex !important; flex-wrap: wrap; gap: 12px 20px; align-items: center; justify-content: space-between; }
.scen__foot small { font-size: 12.5px; font-weight: 600; color: var(--grey); }

/* конвейер данных */
.pipe-run { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; margin-bottom: 16px; }
.pipe { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border: 2px solid var(--black); }
/* телефон: этапы — горизонтальная лента с прокруткой пальцем, а не столбик из пяти плашек */
@media (max-width: 900px) {
  .pipe { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .pipe::-webkit-scrollbar { display: none; }
  .pst { flex: 0 0 42%; scroll-snap-align: start; }
}
.pst { border: 1px solid var(--black); background: var(--white); padding: 14px; text-align: left; cursor: pointer; display: grid; gap: 6px;
  font-family: inherit; color: var(--black); transition: background-color var(--t-move) var(--ease-print); }
.pst small { font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--grey); }
.pst b { font-size: 16px; font-weight: 800; text-transform: uppercase; }
.pst span { font-size: 14px; font-weight: 500; color: var(--grey); }
.pst.lit { background: var(--gold); }
.pst[aria-selected="true"] { background: var(--black); color: var(--white); }
.pst[aria-selected="true"] small, .pst[aria-selected="true"] span { color: var(--grey-inv); }
.flow { position: relative; height: 18px; border: 2px solid var(--black); border-top: 0; overflow: hidden;
  background: repeating-linear-gradient(90deg, var(--white) 0 18px, #fff6db 18px 36px); }
.flow i { position: absolute; left: 0; top: 4px; width: 8px; height: 8px; background: var(--black); }
.pview { border: 2px solid var(--black); border-top: 0; padding: 20px; min-height: 240px; display: grid; gap: 12px; align-content: start; }
.pview[hidden] { display: none; }
.pview__lab { font-size: 11.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--grey); }
.tbl-wrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.tbl th, .tbl td { border: 1px solid var(--black); padding: 7px 10px; text-align: left; white-space: nowrap; }
.tbl th { background: var(--black); color: var(--white); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; font-weight: 800; }
.tbl td.fix { background: #e3f4ea; color: #1f7a4d; font-weight: 700; }
.kpi { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 2px solid var(--black); }
@media (max-width: 640px) { .kpi { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.kpi div { border: 1px solid var(--black); padding: 12px 14px; display: grid; gap: 2px; }
.kpi small { font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--grey); }
.kpi b { font-size: 26px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.insight { border: 2px solid var(--black); background: var(--black); color: var(--white); padding: 16px 18px; display: grid; gap: 4px; font-size: 15px; font-weight: 500; }
.insight b { color: var(--gold); font-size: 20px; font-weight: 800; }
.bars { display: flex; gap: 10px; align-items: flex-end; height: 130px; border-bottom: 2px solid var(--black); }
.bars div { flex: 1; display: grid; gap: 4px; justify-items: center; align-self: flex-end; }
.bars i { display: block; width: 100%; background: var(--black); }
.bars i.alarm { background: var(--error); }
.bars small { font-size: 12px; font-weight: 700; }
.verdict { border: 2px solid var(--black); padding: 12px 14px; font-weight: 700; font-size: 15px; display: flex; gap: 10px; align-items: center; background: #fde3dc; }
.verdict i { width: 14px; height: 14px; flex: none; background: var(--error); }
.verdict--ok { background: #e3f4ea; }
.verdict--ok i { background: #1f7a4d; }

/* «Как работаем»: без JS — все этапы списком, со скриптом — один этап по ползунку */
.path { border: 2px solid var(--black); }
.path__track { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-bottom: 2px solid var(--black); }
.path__track li { border-right: 1px solid var(--black); padding: 12px 14px; display: grid; gap: 2px; }
.path__track li:last-child { border-right: 0; }
.path__track b { font-size: 14px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.path__track small { font-size: 13px; font-weight: 600; color: var(--grey); }
.js-path .path__track li { cursor: pointer; }
.path__track li.on { background: var(--gold); }
@media (max-width: 640px) {
  .path__track { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .path__track li:nth-child(2) { border-right: 0; }
  .path__track li:nth-child(-n + 2) { border-bottom: 1px solid var(--black); }
}
.path__range { padding: 14px 18px 0; display: grid; gap: 4px; }
.path__range input { width: 100%; accent-color: var(--black); }
.path__stage { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); border-top: 2px solid var(--black); }
.path__stage[hidden] { display: none; }
.path__stage > div:first-child { padding: 20px; border-right: 2px solid var(--black); display: grid; gap: 8px; align-content: start; }
.path__stage > .art { margin: 20px; }
.path__stage h3 { font-size: var(--h3); font-weight: 800; text-transform: uppercase; }
.path__stage p { font-size: var(--text); font-weight: 500; }
.path__you { font-size: var(--text-sm) !important; }
@media (max-width: 760px) {
  .path__stage { grid-template-columns: minmax(0, 1fr); }
  .path__stage > div:first-child { border-right: 0; border-bottom: 2px solid var(--black); }
}
.art { border: 2px solid var(--black); background: #fff6db; padding: 14px; display: grid; gap: 8px; align-content: start; min-height: 190px; }
.art .ln { height: 10px; background: #e2dccb; }
.art .ln.k { background: var(--black); width: 40%; }
.art .box { border: 2px dashed var(--black); height: 56px; display: grid; place-items: center; font-size: 12.5px; font-weight: 700; color: var(--grey); background: var(--white); }
.art .box--tall { height: 80px; }
.art .row3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.art .atile { border: 2px solid var(--black); background: var(--white); padding: 8px; font-size: 12px; font-weight: 700; }
.art .atile b { display: block; font-size: 20px; }
.art .atile--bad { background: #fde3dc; }
