/* =========================================================
   Шрифты — со своего домена
   ---------------------------------------------------------
   Раньше подключались с fonts.googleapis.com: это добавляло
   блокирующий запрос к чужому домену перед первой отрисовкой,
   а заодно отдавало Google IP каждого посетителя — чего нет
   в политике конфиденциальности сайта.
   Файлы переменные (Geologica 400–900, Onest 400–800), лицензия OFL.
   Порядок subset'ов важен: браузер качает только те, что нужны
   для текста на странице.
   ========================================================= */

@font-face {
  font-family: 'Geologica';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('assets/fonts/geologica-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: 'Geologica';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('assets/fonts/geologica-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20BB, U+20BD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Geologica';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('assets/fonts/geologica-latin.woff2') format('woff2');
  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+20AC, U+20BC, U+2122, U+2190-2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('assets/fonts/onest-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('assets/fonts/onest-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20BB, U+20BD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('assets/fonts/onest-latin.woff2') format('woff2');
  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+20AC, U+20BC, U+2122, U+2190-2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* =========================================================
   1bayt.az — студия разработки
   ========================================================= */

:root {
  --ink:        #17181A;
  --ink-2:      #43444A;
  --ink-3:      #2B2C2F;
  --muted:      #6E6E73;
  --muted-2:    #9A9AA1;
  --grey:       #C9C9CE;

  --line:       #EDE9E2;
  --line-2:     #E5E1DA;
  --line-dash:  #D9D4CB;

  --cream:      #F7F4EF;
  --cream-2:    #FCFBF9;
  --white:      #FFFFFF;

  /* Один фирменный цвет разведён на четыре — у каждого свой контраст
     с белым, см. CLAUDE.md §2. Раньше --brand (#F03A0C) отвечал разом
     и за текст, и за заливку, и за декор: 3.95:1 хватает заголовку,
     но не хватает 15px-строке — ровно тому тексту, ради которого его
     и брали чаще всего. Теперь: --brand-flood — для заливки целых
     полос, --brand — для кнопок и других заливок под белым текстом,
     --brand-deep — для текста на светлом фоне и ховеров, --brand-dot —
     там, где текста нет (точка логотипа, маркеры, декоративные линии).
     Прежний бренд-цвет никуда не делся — он и есть --brand-dot. */
  --brand-flood: #C62C05; /* 5.1:1 с белым — заливка полос */
  --brand:       #D63109; /* 4.9:1 — кнопки, заливки под белым текстом */
  --brand-deep:  #A82304; /* 7.2:1 — текст на светлом, ховер */
  --brand-dot:   #F03A0C; /* без текста — точка логотипа, маркеры списка */
  --brand-2:    #FF7A4D;
  --brand-soft: #FFF6F2;
  --brand-pale: #FFD9CC;

  --green:      #1E5E4E;
  --mint:       #9FE3CD;
  --mint-2:     #CFE8E0;

  /* Оба семейства выбраны по одному критерию: азербайджанский набор
     ƏəĞğİıÖöÜüÇçŞş нарисован в самом шрифте, а не собирается из чужого.
     Geologica и Onest рисуют Ə и ə как отдельные знаки — не как
     перевёрнутую E, отчего у контраста ломается направление.
     Manrope убран из текстового стека: заглавной Ə в нём нет, и все
     прописные подписи (.eyebrow, .footer__heading, .table__head — они
     идут через text-transform: uppercase) собирали ƏLAQƏ из двух
     шрифтов сразу. Заодно у Manrope нет знака маната ₼, а он стоит
     в каждом ценнике. */
  --font-display: 'Geologica', system-ui, -apple-system, sans-serif;
  --font-body:    'Onest', system-ui, -apple-system, sans-serif;

  --gutter:  40px;
  --section: 110px;
  --header-h: 68px;

  /* три ступени скругления: мелкие элементы, карточка, крупный контейнер.
     До полиша карточки жили на трёх разных радиусах (22/24/26) — разницу
     не видно по отдельности, но рядом сетки выглядели несобранными */
  --r-sm:   16px;
  --r-card: 24px;
  --r-xl:   28px;
  --r-band: 44px;  /* нахлёст цветных полос друг на друга, см. CLAUDE.md §1 */
  --pill:   999px; /* всё кликабельное — пилюля */

  /* Галочка в списках. Раньше это был символ «✓» в content — его нет ни
     в Geologica, ни в Onest, и браузер брал его из системного шрифта:
     на макоси одна форма, на винде другая, на андроиде третья. Здесь svg
     подключён как маска, а не как картинка, — тогда цвет по-прежнему
     задаётся обычным background-color и токены (--mint, --green) остаются
     на месте. */
  --check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2.2 8.4l4.2 4.3L13.8 3.5' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* ---------- reset ---------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, p, dl, dd, figure, blockquote, fieldset, legend, ol, ul { margin: 0; padding: 0; }
/* «автоматизация», «proqramlaşdırma» и прочие длинные слова на узком
   экране иначе выталкивают страницу вширь */
h1, h2, h3 { overflow-wrap: break-word; }
ol, ul { list-style: none; }
fieldset { border: 0; min-width: 0; }
img, svg { max-width: 100%; display: block; }
button { font: inherit; color: inherit; }

a { color: var(--brand-deep); text-decoration: none; transition: color .18s ease; }
a:hover { color: var(--ink); }

::selection { background: var(--brand); color: #fff; }

:focus-visible {
  outline: 3px solid var(--brand-dot);
  outline-offset: 3px;
  border-radius: 4px;
}

[hidden] { display: none !important; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 12px 20px;
  background: var(--ink);
  color: #fff;
  border-radius: 0 0 12px 0;
  font-weight: 700;
}
.skip-link:focus { left: 0; color: #fff; }

/* ---------- layout ---------- */

.container {
  width: 100%;
  max-width: 1440px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: var(--section);
}
.section--flush { padding-top: 0; }
.section--narrow {
  max-width: 1100px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Полосы наезжают на белый фон скруглённым верхом — стопка панелей,
   а не колонка текста (CLAUDE.md §1). Верхнего паддинга .section
   (110px) больше, чем нахлёста (44px), так что контенту не тесно. */
.section--ink, .section--cream, .section--green {
  border-radius: var(--r-band) var(--r-band) 0 0;
  margin-top: calc(var(--r-band) * -1);
}
.section--ink   { background: var(--ink);   color: #fff; }
.section--cream { background: var(--cream); }
.section--green { background: var(--green); color: #fff; }

/* Настоящий scroll-pin (position: sticky) на отдельных секциях —
   пробовали и отменили. Секция короче экрана «стоит» корректно, но
   sticky не убирает её из потока: секция всё равно резервирует свою
   обычную высоту, и всё, что идёт дальше по странице, скроллится по
   этой раскладке независимо от того, застряла ли секция визуально.
   Рано или поздно более поздний контент по высоте документа совпадает
   с экранным местом застрявшей секции — и, будучи позже в DOM,
   перекрывает её. Подтверждено через elementsFromPoint, не рендер-баг.
   Работает только если липкая — вообще каждая секция без исключений
   до самого подвала, а это возвращает первую проблему (обрезание
   длинного контента). Безопасного промежуточного варианта нет —
   остаётся статичный нахлёст выше. */

/* ---------- секция с липкой левой колонкой ----------
   Пока справа листается длинный список, слева стоит заголовок с
   призывом; список кончился — уезжают вместе. Приём подсмотрен
   у saytpro.az.

   Это НЕ то же, что липкая секция из абзаца выше (её пробовали и
   отменили). Липнет колонка ВНУТРИ сетки: её ход ограничен высотой
   родителя, а сама секция остаётся в потоке и ничего под собой не
   перекрывает. Ключевое условие — align-items: start на сетке, иначе
   колонка растянута во всю высоту строки и ехать ей некуда. */
.section--split {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  gap: 40px 64px;
  align-items: start;
}
/* min-width: 0 на детях сетки — чтобы длинное содержимое (список
   .row-item, широкая картинка) сжималось по треку, а не распирало
   его по max-content. На десктопе то же делает minmax(0,…) в
   grid-template-columns; здесь — страховка для мобильного 1fr. */
.section--split > * { min-width: 0; }
.section--split .section__head { display: block; }
.split__aside {
  position: sticky;
  top: calc(var(--header-h) + 28px);
}
.split__aside .h2 { margin-top: 14px; }
.split__aside .section__note { margin-top: 18px; max-width: 34ch; }
.split__aside .btn { margin-top: 26px; }

@media (max-width: 900px) {
  .section--split { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .split__aside { position: static; }
}

.section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}
.section__note {
  font-size: 17px;
  color: var(--muted);
  max-width: 460px;
}
.section__note--center {
  margin: 18px auto 0;
  max-width: 640px;
  text-align: center;
  font-size: 19px;
}

/* scroll targets clear the sticky header */
[id] { scroll-margin-top: calc(var(--header-h) + 20px); }

/* ---------- typography ---------- */

.h2 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(34px, 4.6vw, 68px);
  line-height: 1;
  letter-spacing: -.04em;
  text-wrap: balance;
  /* страховка: длинные слова вроде «автоматизация» на узком экране
     иначе раздвигают страницу и появляется горизонтальный скролл */
  overflow-wrap: break-word;
}
.h2--narrow { max-width: 900px; }
.h2--center { text-align: center; }
.h2--sm { font-size: clamp(30px, 3.6vw, 52px); }

.eyebrow {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.eyebrow--brand { color: var(--brand-2); }   /* только на тёмном фоне */
.eyebrow--deep  { color: var(--brand-deep); } /* 7.2:1 — на светлом */
.eyebrow--mint  { color: var(--mint); }

.lead {
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.5;
  color: var(--grey);
}
.lead--mint { color: var(--mint-2); }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 28px;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease,
              transform .2s ease, box-shadow .2s ease;
}
.btn:active { transform: translateY(1px); box-shadow: none; }

.btn--sm { padding: 11px 20px; font-size: 15px; font-weight: 700; }
.btn--lg { padding: 20px 34px; font-size: clamp(16px, 1.4vw, 19px); }

/* у сплошных кнопок на ховере добавляется мягкая тень — движение,
   которого не хватало одной смене цвета */
.btn--brand   { background: var(--brand); color: #fff; }
.btn--brand:hover { background: var(--ink); color: #fff; box-shadow: 0 12px 26px rgba(23,24,26,.22); }

.btn--dark    { background: var(--ink); color: #fff; }
.btn--dark:hover { background: var(--brand); color: #fff; box-shadow: 0 12px 26px rgba(214,49,9,.28); }

.btn--outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--outline:hover { background: var(--ink); color: #fff; }

.btn--white   { background: #fff; color: var(--ink); }
.btn--white:hover { background: var(--brand); color: #fff; box-shadow: 0 12px 26px rgba(0,0,0,.22); }

.btn--ghost   { border-color: rgba(255,255,255,.5); color: #fff; background: transparent; }
.btn--ghost:hover { background: rgba(255,255,255,.14); color: #fff; }

.btn--line {
  background: transparent;
  border-color: var(--line);
  color: var(--ink-2);
  font-weight: 700;
  padding: 16px 28px;
}
.btn--line:hover:not(:disabled) { border-color: var(--ink); color: var(--ink); }
.btn--line:disabled { opacity: .4; cursor: not-allowed; }

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px var(--gutter);
  background: rgba(255,255,255,.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .25s ease;
}
.site-header.is-scrolled {
  box-shadow: 0 10px 30px rgba(23,24,26,.08);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  flex-shrink: 0;
}
.logo:hover { color: var(--ink); }
.logo--light { color: #fff; }
.logo__text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 26px;
  letter-spacing: -.03em;
  line-height: 1;
}
.logo__dot { color: var(--brand-dot); }

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 15px;
  font-weight: 600;
}
.site-nav a { color: var(--ink-2); white-space: nowrap; }
.site-nav a:hover { color: var(--brand-deep); }

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Кнопка внутри выпадающего меню нужна только на телефоне: выше 560px
   она уже стоит в самой шапке, и дублировать её незачем. */
.site-nav__cta { display: none; }
.site-header__phone {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  color: var(--ink);
  white-space: nowrap;
}
.site-header__phone:hover { color: var(--brand-deep); }

/* ---------- переключатель языка ---------- */

.lang {
  display: flex;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  flex-shrink: 0;
}
/* переключатель — ссылки, а не кнопки: каждая языковая версия живёт
   по своему адресу, и поиску нужен обычный переход между ними */
.lang__btn {
  display: block;
  padding: 7px 13px;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  line-height: 1;
  letter-spacing: .02em;
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease;
}
.lang__btn:hover { color: var(--ink); }
.lang__btn.is-active { background: var(--ink); color: #fff; }

/* пальцем в 27-пиксельную кнопку не попасть: на тач-устройствах
   переключатель языка вырастает до размера бургера рядом */
@media (pointer: coarse) {
  .lang__btn { padding-block: 12px; }
}

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0 10px;
  background: none;
  border: 1px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
}
.burger span {
  display: block;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .22s ease, opacity .18s ease;
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- hero ---------- */

.hero { padding-top: 96px; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px 8px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-2);
}
.badge__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand-dot);
  animation: pulse 2.4s ease-in-out infinite;
  flex-shrink: 0;
}

/* размер подобран так, чтобы авторские переносы <br class="br-wide">
   реально давали три строки, а не рвались посреди фразы */
.hero__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(34px, 6.2vw, 92px);
  line-height: .94;
  letter-spacing: -.045em;
  margin-top: 28px;
  text-wrap: balance;
}
.hero__title em { color: var(--brand-dot); font-style: normal; }

.hero__row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin-top: 44px;
}
.hero__lead {
  font-size: clamp(17px, 1.7vw, 21px);
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 560px;
}
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; }

/* было соты-таблицей (рамка + тень на каждой ячейке) — крупный кегль
   сам держит вес числа, обвязка ему не нужна */
.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 36px 56px;
  margin-top: 64px;
}
.stats__value {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(30px, 3vw, 40px);
  letter-spacing: -.03em;
  line-height: 1;
}
.stats__label { font-size: 15px; color: var(--muted); margin-top: 8px; max-width: 22ch; }

/* ---------- marquee ---------- */

/* Волна: SVG масштабируется в своих user units, поэтому текст и лента
   всегда пропорциональны. min-height не даёт волне схлопнуться на телефоне —
   там кадр просто обрезается по бокам. */
.marquee {
  margin-top: 48px;
  overflow: hidden;
  line-height: 0;
}
.marquee__svg {
  display: block;
  width: 100%;
  aspect-ratio: 1440 / 340;
  min-height: 190px;
}
.marquee__ribbon {
  fill: none;
  stroke: var(--brand-dot);
  stroke-width: 66;
  stroke-linecap: round;
}
.marquee__text {
  fill: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 32px;
  letter-spacing: -.01em;
}
.marquee__sep { opacity: .5; }

/* ---------- services ----------
   Было карточкой-переворотом (услуга/цена спереди, описание на обороте).
   Список услуг — не то место, где стоит прятать половину информации за
   взаимодействием: сейчас это .row-items, см. «row-item» выше. */

/* ---------- cabinet ---------- */

.cabinet__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
}
.cabinet__intro { max-width: 720px; }
.cabinet__intro .h2 { margin-top: 18px; }
.cabinet__intro .lead { margin-top: 24px; }

.ticks {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 16px;
  color: var(--grey);
}
/* маркер держим у первой строки: на двух строках центрирование
   уводило точку в межстрочный интервал */
.ticks li { display: flex; gap: 10px; align-items: flex-start; }
.ticks li::before {
  content: "";
  width: 6px;
  height: 6px;
  margin-top: 9px;
  border-radius: 50%;
  background: var(--brand-dot);
  flex-shrink: 0;
}

.cabinet__foot {
  margin-top: 34px;
  text-align: center;
  font-size: 15px;
  color: var(--muted-2);
}

/* =========================================================
   MacBook
   ---------------------------------------------------------
   Камера зафиксирована спереди и чуть сверху, ноутбук «лежит на столе».
   Корпус — плоскость, наклонённая вокруг линии петли (низ — к зрителю),
   крышка — двусторонняя карточка, вращающаяся вокруг той же петли:
   закрытая лежит на корпусе, открытая встаёт почти вертикально.
   Прогресс раскрытия задаёт --open (0…1, считает app.js).
   По умолчанию 1: без JS посетитель видит открытый ноутбук.

   Вся геометрия — в фиксированных «дизайн-пикселях» (сцена 1000px),
   в кадр её вписывает масштаб --fit, тоже из app.js.
   ========================================================= */

@property --open {
  syntax: '<number>';
  initial-value: 1;
  inherits: true;
}

.mac {
  --open: 1;
  --fit: 1;

  /* геометрия ноутбука */
  --mac-w: 1000px;     /* ширина корпуса */
  --mac-d: 600px;      /* глубина корпуса = высота крышки */
  --mac-tilt: 76deg;   /* наклон корпуса: 90° было бы «смотрим в упор на торец» */
  --mac-swing: 100deg; /* ход крышки от закрытой до рабочего угла */
  --hinge-y: 620px;    /* линия петли внутри сцены */

  /* алюминий */
  --al-1: #a7abb2;
  --al-2: #8e939a;
  --al-3: #797e85;
  --al-dark: #5c6067;

  margin-top: 60px;
  /* дорожка прокрутки: пока идём по ней, ноутбук держится в кадре и раскрывается */
  height: 220vh;
}

.mac__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  /* липкая шапка сайта перекрывает верх кадра — освобождаем его */
  padding-top: calc(var(--header-h) + 8px);
  overflow: hidden;
}

/* мягкий «прожектор» позади, чтобы силуэт читался на тёмной секции */
.mac__sticky::before {
  content: "";
  position: absolute;
  inset: -12%;
  background: radial-gradient(52% 44% at 50% 60%, rgba(255,255,255,.075), transparent 70%);
  pointer-events: none;
}

.mac__scene {
  position: relative;
  flex-shrink: 0;
  width: var(--mac-w);
  /* закрытый ноутбук чуть приподнят к центру кадра,
     к концу раскрытия опускается на «своё» место */
  transform:
    translateY(calc((1 - var(--open)) * -72px))
    scale(calc(var(--fit) * (0.96 + 0.04 * var(--open))));
  transform-origin: 50% 52%;
  will-change: transform;
}

/* сцена: перспектива живёт здесь, стейдж задаёт габарит */
.mac__laptop {
  position: relative;
  z-index: 1;
  width: var(--mac-w);
  height: 920px;
  perspective: 3000px;
  perspective-origin: 50% 16%;
}

/* ---------- корпус: наклонная плоскость стола ---------- */

.mac__deck {
  position: absolute;
  left: 0;
  top: var(--hinge-y);
  width: var(--mac-w);
  height: var(--mac-d);
  transform-origin: 50% 0;
  /* низ плоскости поворачивается к зрителю — корпус «ложится на стол».
     preserve-3d обязателен: без него крышка сплющивается в плоскость корпуса */
  transform: rotateX(var(--mac-tilt));
  transform-style: preserve-3d;
}

.mac__deckface {
  position: absolute;
  inset: 0;
  border-radius: 18px;
  /* верхняя тёмная полоса — вентиляция и петля позади клавиатуры */
  background:
    linear-gradient(180deg, rgba(7,8,10,.95) 0, rgba(9,10,13,.88) 38px, rgba(18,19,23,.4) 50px, transparent 62px),
    radial-gradient(115% 85% at 50% -20%, rgba(255,255,255,.14), transparent 58%),
    linear-gradient(180deg, var(--al-3) 0%, var(--al-2) 34%, var(--al-1) 100%);
  box-shadow:
    inset 0 0 0 1.5px rgba(255,255,255,.17),
    inset 0 -16px 34px rgba(0,0,0,.14);
}

/* решётки динамиков по бокам клавиатуры */
.mac__deckface::before,
.mac__deckface::after {
  content: "";
  position: absolute;
  top: 72px;
  height: 300px;
  width: 42px;
  background-image: radial-gradient(rgba(18,19,22,.55) 1.6px, transparent 2.1px);
  background-size: 9px 9px;
  opacity: .45;
}
.mac__deckface::before { left: 15px; }
.mac__deckface::after  { right: 15px; }

.mac__kb {
  position: absolute;
  top: 66px;
  left: 70px;
  right: 70px;
  height: 326px;
  border-radius: 12px;
  background: #141518 url(assets/mac-keyboard.svg) center / 100% 100% no-repeat;
  box-shadow:
    inset 0 0 0 1px rgba(0,0,0,.5),
    inset 0 8px 18px rgba(0,0,0,.32),
    0 1px 0 rgba(255,255,255,.14);
}

.mac__trackpad {
  position: absolute;
  left: 50%;
  top: 410px;
  width: 430px;
  height: 158px;
  transform: translateX(-50%);
  border-radius: 14px;
  background: linear-gradient(180deg, #989ca3, #a2a6ad);
  box-shadow:
    inset 0 0 0 1px rgba(0,0,0,.26),
    inset 0 2px 5px rgba(0,0,0,.12),
    inset 0 -1px 0 rgba(255,255,255,.22);
}

/* передний торец корпуса с выемкой под палец */
.mac__lip {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 17px;
  transform-origin: 50% 0;
  transform: rotateX(-90deg);
  border-radius: 0 0 15px 15px;
  background: linear-gradient(180deg, #94989f, #74787f 45%, #55585e);
  box-shadow:
    inset 0 1.5px 0 rgba(255,255,255,.3),
    inset 0 -3px 4px rgba(0,0,0,.35);
}
.mac__lip::after {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 132px;
  height: 9px;
  transform: translateX(-50%);
  border-radius: 0 0 999px 999px;
  background: linear-gradient(180deg, #43464c, #676b72);
  box-shadow: inset 0 -1px 1px rgba(0,0,0,.35);
}

/* ---------- крышка ---------- */

.mac__lid {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transform-origin: 50% 0;
  /* приподнята над корпусом на толщину петли; 0 — лежит, --mac-swing — встала.
     Небольшой зазор ещё и разводит плоскости для сортировки по глубине */
  transform: translateZ(7px) rotateX(calc(var(--mac-swing) * var(--open)));
  pointer-events: none;
  will-change: transform;
}

/* внешняя сторона — алюминий с логотипом, видна пока ноутбук закрыт */
.mac__cover,
.mac__screen {
  position: absolute;
  inset: 0;
  border-radius: 18px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.mac__cover {
  transform: translateZ(2.5px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.75);
  background:
    radial-gradient(120% 140% at 50% 120%, rgba(255,255,255,.2), transparent 55%),
    linear-gradient(180deg, var(--al-3) 0%, var(--al-2) 40%, var(--al-1) 100%);
  box-shadow:
    inset 0 0 0 1.5px rgba(255,255,255,.2),
    inset 0 -2px 0 rgba(255,255,255,.28);
}
.mac__logo { display: block; }

/* при раскрытии внешняя сторона отворачивается от света и темнеет */
.mac__cover::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: #0b0c0e;
  opacity: calc(var(--open) * .5);
}

/* Экран — обратная сторона крышки: разворот вокруг X, как у настоящей петли,
   поэтому верх интерфейса оказывается у свободного края крышки. */
.mac__screen {
  transform: rotateX(180deg) translateZ(2.5px);
  padding: 13px 13px 20px;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #111214, #0a0b0c);
  box-shadow:
    inset 0 0 0 1.5px rgba(255,255,255,.1),
    inset 0 0 0 5px #08090a;
}

/* гравировка на «подбородке» */
.mac__screen::after {
  content: "1bayt";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 4px;
  text-align: center;
  font-family: var(--font-display);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .22em;
  color: rgba(255,255,255,.3);
  pointer-events: none;
}

.mac__notch {
  position: absolute;
  top: 12px;
  left: 50%;
  width: 150px;
  height: 16px;
  transform: translateX(-50%);
  border-radius: 0 0 9px 9px;
  background: #08090a;
  z-index: 3;
}

/* стекло: до середины раскрытия экран «выключен», затем загорается */
.mac__glass {
  position: absolute;
  inset: 13px 13px 20px;
  border-radius: 7px;
  z-index: 4;
  pointer-events: none;
  background:
    linear-gradient(112deg, rgba(255,255,255,.11) 0%, rgba(255,255,255,.035) 30%, transparent 46%),
    linear-gradient(180deg, #0c0d0f, #101216);
  opacity: clamp(0, calc((0.66 - var(--open)) / 0.22), 1);
}

/* ---------- содержимое экрана ---------- */

.mac__screen .app {
  position: relative;
  flex: 1;
  min-height: 0;
  margin: 0;
  border-radius: 7px;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  pointer-events: auto;
}
.mac__screen .app__body { flex: 1; min-height: 0; flex-wrap: nowrap; }
.mac__screen .app__side,
.mac__screen .app__main {
  overflow-y: auto;
  scrollbar-width: none;
}
.mac__screen .app__side::-webkit-scrollbar,
.mac__screen .app__main::-webkit-scrollbar { display: none; }

/* Панель внутри дисплея живёт в компактном масштабе, чтобы кабинет
   целиком помещался в экран ноутбука (на мобильном не действует —
   там панель показывается без ноутбука) */
@media (min-width: 861px) {
  .mac__screen .app__chrome { padding: 9px 16px; }
  .mac__screen .app__url { font-size: 12px; padding: 5px 14px; }
  .mac__screen .app__side { width: 232px; min-width: 0; flex: 0 0 232px; padding: 18px 16px; }
  .mac__screen .app__nav { margin-top: 18px; }
  .mac__screen .app__navitem { padding: 9px 12px; font-size: 14px; border-radius: 10px; }
  .mac__screen .app__manager { margin-top: 18px; padding: 13px 14px; }
  .mac__screen .app__manager strong { font-size: 15px; }
  .mac__screen .app__manager > span { font-size: 13px; }
  .mac__screen .app__manager-btn { margin-top: 10px; padding: 8px 12px; font-size: 13px; }
  .mac__screen .app__main { padding: 18px 26px 14px; min-height: 0; }
  .mac__screen .app__title { font-size: 21px; }
  .mac__screen .app__sub { font-size: 13.5px; margin-top: 4px; }

  .mac__screen .pay { gap: 14px; margin-top: 14px; }
  .mac__screen .pay__due, .mac__screen .pay__budget { padding: 16px 20px; }
  .mac__screen .pay__amount { font-size: 30px; }
  .mac__screen .pay__caption { font-size: 13px; }
  .mac__screen .pay__for { font-size: 13px; margin-top: 4px; }
  .mac__screen .pay__total { font-size: 24px; }
  .mac__screen .pay__split { font-size: 13px; }
  .mac__screen .pay__actions { margin-top: 10px; }
  .mac__screen .pay__sub { margin-top: 12px; padding-top: 10px; }
  .mac__screen .bar { margin-top: 10px; }
  .mac__screen .chip { padding: 8px 15px; font-size: 13px; }
  .mac__screen .table { margin-top: 14px; border-radius: 14px; }
  .mac__screen .table__head { padding: 8px 16px; font-size: 11px; }
  .mac__screen .table__row { padding: 8px 16px; font-size: 13.5px; }

  .mac__screen .docs { gap: 10px; margin-top: 18px; }
  .mac__screen .doc { padding: 14px 18px; border-radius: 14px; }
  .mac__screen .doc__name { font-size: 16px; }
  .mac__screen .doc__meta { font-size: 13px; }

  .mac__screen .progress { padding: 12px 18px; margin-top: 14px; border-radius: 14px; }
  .mac__screen .progress__value { font-size: 30px; }
  .mac__screen .timeline { margin-top: 14px; }
  .mac__screen .timeline__item { padding-bottom: 14px; padding-left: 30px; }
  .mac__screen .timeline__title { font-size: 15px; }
  .mac__screen .timeline__meta { font-size: 12.5px; margin-top: 2px; }
  .mac__screen .timeline__quote { padding: 10px 14px; font-size: 12.5px; margin-top: 8px; }

  .mac__screen .kpis { gap: 12px; margin-top: 18px; }
  .mac__screen .kpi { padding: 16px; border-radius: 14px; }
  .mac__screen .kpi__value { font-size: 26px; }
  .mac__screen .kpi__label { font-size: 13px; }
  .mac__screen .rows { margin-top: 16px; gap: 10px; }
  .mac__screen .row { padding: 13px 16px; font-size: 14px; border-radius: 12px; }

  .mac__screen .chat { margin-top: 18px; gap: 10px; }
  .mac__screen .bubble { padding: 12px 16px; font-size: 14px; }
  .mac__screen .chat__input { margin-top: 16px; padding: 10px 14px; font-size: 14px; }
}

/* мягкая тень на «столе» */
.mac__shadow {
  position: absolute;
  z-index: 0;
  left: 50%;
  top: 826px;
  width: 1150px;
  height: 96px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0,0,0,.65), transparent 74%);
  filter: blur(16px);
  pointer-events: none;
}

/* browser mock */
.app {
  border-radius: var(--r-xl);
  background: #fff;
  color: var(--ink);
  overflow: hidden;
  box-shadow: 0 40px 80px rgba(0,0,0,.35);
}
.app__chrome {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
}
.dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--line-2);
  flex-shrink: 0;
}
.dot--brand { background: var(--brand-dot); }
.app__url {
  margin-left: 14px;
  padding: 6px 16px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app__body { display: flex; flex-wrap: wrap; }

.app__side {
  width: 270px;
  min-width: 220px;
  flex: 1 1 220px;
  padding: 26px 22px;
  border-right: 1px solid var(--line);
  background: var(--cream-2);
}
.app__client { display: flex; align-items: center; gap: 10px; }
.app__avatar {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--ink);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  flex-shrink: 0;
}
.app__client-name {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
}
.app__client-meta { display: block; font-size: 13px; color: var(--muted); }

.app__nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 26px;
}
.app__navitem {
  display: block;
  width: 100%;
  text-align: left;
  padding: 12px 14px;
  border: none;
  border-radius: 12px;
  background: transparent;
  color: var(--ink-2);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease;
}
.app__navitem:hover { background: var(--line); color: var(--ink); }
.app__navitem.is-active { background: var(--ink); color: #fff; }

.app__manager {
  margin-top: 28px;
  padding: 16px;
  border-radius: var(--r-sm);
  background: var(--brand);
  color: #fff;
}
.app__manager strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 16px;
}
.app__manager > span {
  display: block;
  font-size: 14px;
  color: #fff;
  margin-top: 4px;
}
.app__manager-btn {
  display: inline-block;
  margin-top: 12px;
  padding: 9px 14px;
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-weight: 700;
  font-size: 14px;
}
.app__manager-btn:hover { background: var(--ink); color: #fff; }

.app__main {
  flex: 3 1 560px;
  padding: 34px 38px;
  min-height: 520px;
}
.app__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(24px, 2.4vw, 30px);
  letter-spacing: -.03em;
}
.app__sub { font-size: 16px; color: var(--muted); margin-top: 10px; }

/* payment panel */
.pay { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 26px; }

.pay__due {
  flex: 1 1 300px;
  padding: 26px;
  border-radius: var(--r-card);
  background: var(--ink);
  color: #fff;
}
.pay__caption { font-size: 14px; color: var(--muted-2); }
.pay__caption--dark { color: var(--muted); }
.pay__amount {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(36px, 4vw, 46px);
  letter-spacing: -.04em;
  line-height: 1.05;
  margin-top: 8px;
}
.pay__for { font-size: 15px; color: var(--grey); margin-top: 6px; }
.pay__actions { display: flex; gap: 10px; margin-top: 22px; flex-wrap: wrap; }

.pay__budget {
  flex: 1 1 260px;
  padding: 26px;
  border-radius: var(--r-card);
  border: 1px solid var(--line);
  background: var(--cream-2);
}
.pay__total {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 28px;
  letter-spacing: -.03em;
  margin-top: 6px;
}
.pay__split {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
  color: var(--muted);
  margin-top: 10px;
}
.pay__sub {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted);
}
.pay__sub strong {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  color: var(--ink);
}

.bar {
  height: 10px;
  border-radius: 999px;
  background: var(--line);
  margin-top: 16px;
  overflow: hidden;
}
.bar--lg { height: 12px; background: var(--line-2); margin-top: 0; }
.bar__fill { display: block; height: 100%; background: var(--brand-dot); }
.bar__fill--green { background: var(--green); }

.chip {
  display: inline-flex;
  align-items: center;
  padding: 12px 20px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
}
.chip--brand { background: var(--brand); color: #fff; }
.chip--ghost { border: 1px solid var(--ink-2); color: var(--grey); }
.chip--line  { border: 1px solid var(--line); color: var(--ink); padding: 10px 18px; }
.chip--dark  { background: var(--ink); color: #fff; }

.table {
  margin-top: 24px;
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
}
.table__head,
.table__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
}
.table__head {
  padding-block: 16px;
  background: var(--cream);
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .08em;
}
.table__row { border-top: 1px solid var(--line); font-size: 16px; }
.table__row--active { background: var(--brand-soft); }
.table__row--muted  { color: var(--muted); }

.is-paid { color: var(--green); font-weight: 700; }
.is-due  { color: var(--brand-deep); font-weight: 700; }

/* documents panel */
.docs { display: flex; flex-direction: column; gap: 14px; margin-top: 26px; }
.doc {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: 20px;
}
.doc--attention { border: 1.5px solid var(--brand-dot); background: var(--brand-soft); }
.doc__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
}
.doc__meta { font-size: 14px; color: var(--muted); margin-top: 4px; }
.doc__actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.doc__status { font-size: 15px; color: var(--muted); }

/* stages panel */
.progress {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 24px;
  padding: 20px 24px;
  border-radius: 20px;
  background: var(--cream);
}
.progress__value {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(32px, 3.4vw, 42px);
  letter-spacing: -.04em;
  line-height: 1;
}
.progress__body { flex: 1; }
.progress__note { font-size: 14px; color: var(--muted); margin-top: 8px; }

.timeline { margin-top: 26px; }
.timeline__item {
  position: relative;
  padding-left: 34px;
  padding-bottom: 26px;
}
.timeline__item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--line-2);
  box-sizing: border-box;
}
.timeline__item::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 19px;
  bottom: 0;
  width: 2px;
  background: var(--line-2);
}
.timeline__item--last { padding-bottom: 0; }
.timeline__item--last::after { display: none; }

.timeline__item.is-done::before { background: var(--green); border-color: var(--green); }
.timeline__item.is-current::before {
  background: var(--brand-dot);
  border-color: var(--brand-dot);
  box-shadow: 0 0 0 6px rgba(240,58,12,.16);
}
.timeline__item.is-current .timeline__title { color: var(--brand-deep); }

.timeline__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  color: var(--muted);
}
.timeline__item.is-done .timeline__title { color: var(--ink); }
.timeline__meta { font-size: 15px; color: var(--muted); margin-top: 4px; }

.timeline__quote {
  margin-top: 12px;
  padding: 16px 18px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: #fff;
  font-size: 15px;
  color: var(--ink-2);
}
.timeline__quote cite { color: var(--muted); font-style: normal; }

/* admin panel */
.kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(190px, 100%), 1fr));
  gap: 16px;
  margin-top: 26px;
}
.kpi { padding: 22px; border-radius: 20px; background: var(--cream); }
.kpi__value {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(28px, 3vw, 34px);
  letter-spacing: -.03em;
}
.kpi__label { font-size: 15px; color: var(--muted); margin-top: 6px; }

.rows { display: flex; flex-direction: column; gap: 12px; margin-top: 22px; }
.row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  font-size: 16px;
}

/* chat panel */
.chat { display: flex; flex-direction: column; gap: 14px; margin-top: 26px; }
.bubble {
  align-self: flex-start;
  max-width: 70%;
  padding: 16px 20px;
  border-radius: 20px 20px 20px 6px;
  background: var(--cream);
  font-size: 16px;
  line-height: 1.5;
}
.bubble--own {
  align-self: flex-end;
  border-radius: 20px 20px 6px 20px;
  background: var(--ink);
  color: #fff;
}
.bubble__meta { display: block; font-size: 13px; color: var(--muted); margin-top: 6px; }
.bubble--own .bubble__meta { color: var(--muted-2); }

.chat__input {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 16px;
}
.chat__input .chip { margin-left: auto; }

/* ---------- why ----------
   Было сотами 3×2 с тенью на каждой ячейке — теперь .row-items,
   тот же список, что и в «Что делаем» и «Что получаете». */

/* ---------- process ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
  gap: 20px;
  margin-top: 48px;
}
/* На широком пять шагов держим в один ряд, без «хвоста». Условие по
   количеству обязательно: на страницах услуг шагов четыре, и жёсткие
   пять колонок оставляли справа пустую пятую. */
@media (min-width: 1240px) {
  .steps:has(> :nth-child(5)):not(:has(> :nth-child(6))) {
    grid-template-columns: repeat(5, 1fr);
  }
}
.step { padding-top: 22px; border-top: 3px solid var(--ink); }
.step--brand { border-top-color: var(--brand-dot); }
.step--green { border-top-color: var(--green); }
.step__when {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 16px;
  color: var(--muted);
}
.step__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -.02em;
  margin-top: 10px;
}
.step__text {
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-2);
  margin-top: 10px;
}

/* ---------- cases ---------- */

.cases {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(330px, 100%), 1fr));
  gap: 22px;
  margin-top: 44px;
}
/* Бокс с тенью и подъёмом на ховере был той же карточной логикой,
   что и везде, просто без каймы — не решение, а маскировка. Скругление
   тут держит только сам скриншот (это обрезка фото, не рамка карточки);
   заголовок, текст и цифры лежат на фоне секции без панели и тени,
   как .row-item.

   Карточка — ссылка на живой сайт проекта. Подъёма карточки по-прежнему
   нет; кликабельность читается по значку «↗» и лёгкому приближению
   скриншота в наведении. */
.case {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}
.case__media {
  height: 260px;
  position: relative;
  border-radius: var(--r-card);
  overflow: hidden;
}
.case__media img { transition: transform .4s cubic-bezier(.2,.7,.2,1); }
.case:hover .case__media img,
.case:focus-visible .case__media img { transform: scale(1.035); }

/* Значок «открыть» в углу скриншота. Раньше здесь (слева) был
   .case__badge с логотипом — теперь у всех кейсов единый знак ссылки. */
.case__go {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: rgba(255,255,255,.92);
  color: var(--ink);
  display: grid;
  place-items: center;
  backdrop-filter: blur(4px);
  transition: background .18s ease, color .18s ease, transform .18s ease;
}
.case__go svg { width: 16px; height: 16px; }
.case:hover .case__go,
.case:focus-visible .case__go {
  background: var(--brand);
  color: #fff;
  transform: translate(2px, -2px);
}

.case__ext {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.case__body { padding-top: 24px; }
.case:hover .case__title,
.case:focus-visible .case__title { color: var(--brand-deep); }
.case__kind {
  font-size: 14px;
  font-weight: 700;
  color: var(--brand-deep);
  text-transform: uppercase;
  letter-spacing: .1em;
}
.case__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 24px;
  letter-spacing: -.02em;
  margin-top: 12px;
}
.case__text {
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-2);
  margin-top: 10px;
}
.case__stats {
  display: flex;
  gap: 24px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.case__stats dt {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 26px;
}
.case__stats dd { font-size: 14px; color: var(--muted); }

/* ---------- логотипы клиентов ----------
   Тихая полоса: названия набором, без картинок и без панелей —
   логотипы у всех разной плотности, приведённые к одному
   начертанию Geologica они читаются как один ряд, а не зоопарк
   чужих гарнитур. Приглушены, чтобы не спорить с заголовком секции. */
.logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 44px;
  margin-top: 36px;
}
.logos li {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(18px, 2vw, 24px);
  letter-spacing: -.02em;
  color: var(--muted);
}
.trust {
  margin-top: 64px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}

/* ---------- что получаете на руки ----------
   Было сеткой боксов (.asset) — теперь .row-items, см. выше. */

/* ---------- row-item: строка вместо карточки (CLAUDE.md §7) ----------
   Замена таблице и однотипной сетке боксов: заголовок, подпись,
   группа dt/dd с числами, действие справа. Ни рамки на всю строку,
   ни скрытых на узком экране колонок — только разделительная линия и
   перенос содержимого. Ничего не теряется на 390px, оно просто встаёт
   в несколько строк. */
.row-items { border-top: 1px solid var(--line); }
.row-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 32px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.row-item__head { flex: 1 1 240px; min-width: 0; }
.row-item__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(19px, 1.6vw, 21px);
  letter-spacing: -.015em;
}
.row-item__caption {
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink-2);
  margin-top: 4px;
  max-width: 62ch;
}
.row-item__stats {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}
.row-item__stats dt {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -.02em;
}
.row-item__stats dd { font-size: 13px; color: var(--muted); }
.row-item__action { flex-shrink: 0; }

/* image placeholders — swap the inner <span> for an <img> when real assets arrive */
.media {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cream);
  overflow: hidden;
}
.media img { width: 100%; height: 100%; object-fit: cover; }
.media--empty img { object-fit: contain; }
.media__hint {
  font-size: 14px;
  color: var(--muted);
  text-align: center;
  padding: 12px;
}

/* ---------- care ---------- */

.care__head {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: flex-end;
  justify-content: space-between;
}
.care__intro { flex: 1 1 520px; max-width: 760px; }
.care__intro .h2 { margin-top: 18px; }
.care__intro .lead { margin-top: 24px; }
.care__cta { display: flex; flex-wrap: wrap; gap: 14px; }

.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 20px;
  margin-top: 52px;
  align-items: start;
}

/* Три одинаковых бокса не говорили, какой тариф выбрать — это делал
   только маленький бейдж. Теперь бокс — только у целевого тарифа
   (заливка + тень), а два других — плоские колонки с чертой сверху,
   как везде в сетках без рамок на этой странице. */
.plan {
  position: relative;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,.2);
}
/* средний тариф — целевой, приподнят рамкой и тенью, а не светлее
   залитый: заливка светлее .04 не даёт --mint нужный контраст на
   собственном фоне (замерено — на .16 было 3.48:1 вместо 4.5). */
.plan--main {
  padding: 32px 30px;
  border: 1px solid rgba(255,255,255,.42);
  border-radius: var(--r-card);
  background: rgba(255,255,255,.04);
  box-shadow: 0 26px 60px rgba(0,0,0,.18);
}
.plan__badge {
  position: absolute;
  top: -13px;
  left: 30px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .02em;
}
.plan__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--mint);
}
.plan__price { display: flex; align-items: baseline; gap: 8px; margin-top: 12px; }
.plan__price strong {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(38px, 3.6vw, 50px);
  letter-spacing: -.04em;
  line-height: 1;
}
.plan__price span { font-size: 17px; color: var(--mint-2); }
.plan__for { font-size: 15px; color: var(--mint-2); margin-top: 8px; }
.plan__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,.2);
  font-size: 16px;
}
.plan__list li { display: flex; gap: 12px; align-items: flex-start; }
.plan__list li::before {
  content: "";
  flex-shrink: 0;
  /* высота — ровно строка текста (line-height 1.5), чтобы галочка стояла
     по первой строке пункта, а не по центру всего пункта */
  width: 1.15em;
  height: 1.5em;
  background-color: var(--mint);
  -webkit-mask: var(--check) no-repeat center / 1.1em 1.1em;
  mask: var(--check) no-repeat center / 1.1em 1.1em;
}
.plan__foot {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.2);
  font-size: 15px;
  line-height: 1.55;
  color: var(--mint-2);
  max-width: 900px;
}

/* ---------- brief ---------- */

.brief {
  margin-top: 44px;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  overflow: hidden;
  /* главный блок конверсии слегка приподнят над страницей */
  box-shadow: 0 24px 60px rgba(23,24,26,.07);
}
.brief__bar { height: 6px; background: var(--line); }
.brief__bar-fill {
  display: block;
  height: 100%;
  background: var(--brand-dot);
  transition: width .35s ease;
}
.brief__body { padding: 40px; }

.brief__legend {
  font-size: 15px;
  font-weight: 700;
  color: var(--brand-deep);
}
.brief__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(24px, 3vw, 30px);
  letter-spacing: -.03em;
  margin-top: 10px;
}
.brief__label { font-size: 16px; color: var(--muted); margin-top: 28px; }
.brief__step[data-step="1"] .chips { margin-top: 24px; }
.brief__step[data-step="2"] .chips { margin-top: 12px; }

.chips { display: flex; flex-wrap: wrap; gap: 12px; }

.pill {
  padding: 13px 22px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: #fff;
  color: var(--ink-2);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}
.pill:hover { border-color: var(--ink); color: var(--ink); }
.pill[aria-pressed="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.brief__fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: 16px;
  margin-top: 24px;
}
.field { display: block; }
.field + .field { margin-top: 16px; }
.brief__fields .field + .field { margin-top: 0; }
.field__label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
/* Поле опознаётся заливкой, а не рамкой: волосок цвета --line на белом
   почти не виден, а рамка в 3:1 выбивалась бы из всей остальной графики
   страницы. В фокусе поле, наоборот, белеет и получает брендовый контур. */
.field__input {
  width: 100%;
  padding: 18px 20px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  font-family: var(--font-body);
  font-size: 17px;
  color: var(--ink);
  background: var(--cream);
  outline: none;
  transition: border-color .18s ease, background-color .18s ease;
}
.field__input::placeholder { color: var(--muted); }
.field__input:focus { border-color: var(--brand-dot); background: #fff; }
.field__input--area { min-height: 120px; resize: vertical; }
.field__input[aria-invalid="true"] { border-color: var(--brand-dot); background: var(--brand-soft); }

.brief__fine { font-size: 15px; color: var(--muted); margin-top: 14px; }
.brief__fine a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.brief__fine a:hover { color: var(--brand-deep); }

/* ловушка для ботов: убрана из потока и недоступна с клавиатуры,
   display:none не годится — часть ботов такие поля игнорирует */
.brief__trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.brief__done-actions { margin-top: 24px; }

.brief__done { text-align: center; padding: 20px 0; }
.brief__check {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}
.brief__check::before {
  content: "";
  width: 30px;
  height: 30px;
  background-color: #fff;
  -webkit-mask: var(--check) no-repeat center / contain;
  mask: var(--check) no-repeat center / contain;
}
.brief__done-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(26px, 3vw, 32px);
  letter-spacing: -.03em;
  margin-top: 22px;
}
.brief__done-text {
  font-size: 18px;
  color: var(--ink-2);
  margin: 12px auto 0;
  max-width: 520px;
}
.brief__done-call { font-size: 16px; color: var(--muted); margin-top: 18px; }
.brief__done-call a { font-weight: 700; }

.brief__nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 34px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.brief__nav-right {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.brief__summary {
  font-size: 15px;
  color: var(--muted);
  max-width: 380px;
}
#brief-next { padding: 16px 32px; font-size: 17px; }

/* ---------- faq ---------- */

.faq { margin-top: 32px; border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item h3 { font: inherit; }

.faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  padding: 26px 0;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(18px, 2vw, 21px);
  color: var(--ink);
  letter-spacing: -.02em;
  transition: color .18s ease;
}
.faq__q:hover { color: var(--brand-deep); }
/* знак «+» берём из текстового шрифта: в заголовочном он тяжелее,
   чем нужно этому маленькому элементу управления */
.faq__sign {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 30px;
  line-height: 1;
  color: var(--brand-dot);
  transition: transform .2s ease;
  flex-shrink: 0;
}
.faq__q:hover .faq__sign { transform: scale(1.12); }
.faq__q[aria-expanded="true"] .faq__sign { transform: rotate(45deg); }
.faq__q[aria-expanded="true"]:hover .faq__sign { transform: rotate(45deg) scale(1.12); }

.faq__panel p {
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-2);
  padding: 0 60px 28px 0;
  max-width: 820px;
}

/* мягкое появление ответа (в браузерах без @starting-style — мгновенно) */
.faq__panel:not([hidden]) {
  transition: opacity .28s ease, transform .28s ease;
}
@starting-style {
  .faq__panel:not([hidden]) {
    opacity: 0;
    transform: translateY(-6px);
  }
}

/* ---------- страницы услуг ---------- */

.crumbs {
  font-size: 15px;
  color: var(--muted);
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--brand-deep); }

/* на внутренних страницах заголовок мельче: он не спорит с главной */
.hero__title--sub { font-size: clamp(28px, 5vw, 72px); }

.includes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 14px 32px;
  margin-top: 40px;
}
.includes li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 17px;
  line-height: 1.5;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line-2);
}
.includes li::before {
  content: "";
  flex-shrink: 0;
  width: 1.15em;
  height: 1.5em;
  background-color: var(--green);
  -webkit-mask: var(--check) no-repeat center / 1.1em 1.1em;
  mask: var(--check) no-repeat center / 1.1em 1.1em;
}

.cta-band {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: center;
  justify-content: space-between;
}
.cta-band > div { max-width: 640px; }
.cta-band .lead { margin-top: 18px; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 14px; }

@media (max-width: 560px) {
  .cta-band__actions .btn { flex: 1 1 100%; }
}

/* ---------- юридические страницы ---------- */

.legal { padding-top: 72px; }
.legal .h2 { margin-top: 14px; }
.legal__updated { font-size: 15px; color: var(--muted); margin-top: 16px; }
.legal__body { margin-top: 40px; max-width: 760px; }
.legal__body h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(21px, 2.2vw, 26px);
  letter-spacing: -.02em;
  margin-top: 40px;
}
.legal__body p,
.legal__body li {
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-2);
  margin-top: 14px;
}
.legal__body ul { margin-top: 6px; }
.legal__body li { position: relative; padding-left: 20px; }
.legal__body li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-dot);
}
.legal__body strong { color: var(--ink); }
.legal__back { margin-top: 48px; font-size: 17px; font-weight: 700; }

/* простой список ссылок (страница 404): галочки из .includes читались бы
   как «входит в стоимость», а это просто навигация */
.linklist {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: 2px 32px;
  margin-top: 36px;
  max-width: 760px;
}
.linklist li { border-bottom: 1px solid var(--line-2); }
.linklist a {
  display: block;
  padding: 15px 0;
  font-size: 17px;
  font-weight: 600;
  color: var(--ink-2);
}
.linklist a:hover { color: var(--brand-deep); }

/* ---------- footer ---------- */

.footer {
  background: var(--ink);
  color: #fff;
  padding: 80px 0 40px;
}
/* Тёмный CTA страниц услуг упирается в такой же тёмный подвал: два
   полных вертикальных поля подряд читались как случайная дыра.
   Сжимаем стык и отбиваем его волоском. */
main > .section--ink:last-child { padding-bottom: 56px; }
main:has(> .section--ink:last-child) + .footer {
  padding-top: 56px;
  border-top: 1px solid var(--ink-3);
}
/* Сетка вместо space-between: на широком экране колонки ссылок
   разъезжались к правому краю и между ними и текстом о студии
   зияла пустая половина подвала. */
.footer__top {
  display: grid;
  grid-template-columns: minmax(280px, 440px) 1fr;
  gap: 48px 64px;
  align-items: start;
}
.footer__about { max-width: 440px; }
.footer__text {
  font-size: 17px;
  line-height: 1.55;
  color: var(--grey);
  margin-top: 18px;
}
.footer__cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(170px, 100%), 1fr));
  gap: 36px 48px;
}
.footer__col { display: flex; flex-direction: column; gap: 10px; font-size: 16px; }
.footer__col a { color: #fff; }
/* на телефоне ссылки подвала стоят вплотную — разводим их до
   комфортной высоты нажатия */
@media (pointer: coarse) {
  .footer__col { gap: 16px; }
}
.footer__col a:hover { color: var(--brand-deep); }
.footer__heading {
  font-size: 14px;
  font-weight: 700;
  color: var(--grey);
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 6px;
}
.footer__phone {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
}
.footer__muted { color: var(--grey); }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--ink-3);
  font-size: 14px;
  color: var(--grey);
}
.footer__bottom a {
  color: var(--grey);
  text-decoration: underline;
  text-decoration-color: var(--ink-3);
  text-underline-offset: 4px;
  transition: color .18s ease, text-decoration-color .18s ease;
}
.footer__bottom a:hover { color: var(--brand-deep); text-decoration-color: var(--brand-deep); }

/* ---------- animation ---------- */

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: .35; }
}

@keyframes rise-in {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: none; }
}

/* вход hero при загрузке: бейдж → заголовок → лид с кнопками → цифры */
.hero .badge      { animation: rise-in .55s cubic-bezier(.2,.7,.2,1) backwards; }
.hero__title      { animation: rise-in .6s  cubic-bezier(.2,.7,.2,1) .08s backwards; }
.hero__row        { animation: rise-in .6s  cubic-bezier(.2,.7,.2,1) .16s backwards; }
.hero ~ .marquee,
.hero .stats      { animation: rise-in .65s cubic-bezier(.2,.7,.2,1) .24s backwards; }

/* появление блоков по мере скролла: класс вешает app.js,
   без JS ничего не скрыто */
.rv {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity .6s ease var(--rv-delay, 0s),
    transform .6s cubic-bezier(.2,.7,.2,1) var(--rv-delay, 0s);
}
.rv.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1; transform: none; transition: none; }
}

/* =========================================================
   Сканер безопасности (scan.html)
   ---------------------------------------------------------
   Степень риска — отдельная шкала, а не оттенки бренда: оранжевый
   на этой странице значит «1bayt», а не «опасно». Иначе владелец
   читает фирменный акцент как предупреждение и наоборот.
   ========================================================= */

:root {
  --sev-crit:    #C2260B;
  --sev-crit-bg: #FCEBE7;
  --sev-high:    #B4610A;
  --sev-high-bg: #FBF0E1;
  --sev-med:     #7E6410;
  --sev-med-bg:  #F8F3E0;
  --sev-low:     #2C6B8C;
  --sev-low-bg:  #EAF3F8;
  --sev-ok:      var(--green);
  --sev-ok-bg:   var(--mint-2);
}

/* ---- первый экран ---- */
.scan-hero { padding-bottom: 40px; }
.scan-hero__title { margin-top: 14px; }
/* .eyebrow--brand и .lead взяты с тёмных секций (--brand-2, --grey —
   рассчитаны на тёмный фон, см. §2); herо здесь на белом, нужны
   версии для светлого — те же роли, что и на главном hero сайта. */
.scan-hero .eyebrow--brand { color: var(--brand-deep); }
.scan-hero__lead { margin-top: 18px; max-width: 60ch; color: var(--ink-2); }
.scan-hero__fine {
  margin-top: 20px;
  font-size: 15px;
  color: var(--muted);
  max-width: 62ch;
}

/* ---- форма запуска ---- */
.scan-form { margin-top: 30px; }
.scan-form__row { display: flex; gap: 12px; align-items: stretch; }
.scan-form__field { flex: 1; }
.scan-form__row .btn { flex: none; }

.scan-consent {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  margin-top: 16px;
  font-size: 15px;
  color: var(--ink-2);
  cursor: pointer;
  max-width: 62ch;
}
.scan-consent input {
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  accent-color: var(--brand-dot);
  cursor: pointer;
}
.scan-form__note {
  margin-top: 12px;
  font-size: 15px;
  color: var(--brand-deep);
  min-height: 22px;
}

/* ---- вердикт ---- */
.scan-report { padding-top: 12px; }

.scan-verdict {
  display: flex;
  gap: 26px;
  align-items: center;
  flex-wrap: wrap;
  padding: 28px;
  border-radius: var(--r-card);
  background: var(--cream);
  border: 1px solid var(--line-2);
}
.scan-verdict__badge {
  flex: none;
  width: 108px;
  height: 108px;
  border-radius: 24px;
  display: grid;
  place-items: center;
  background: #fff;
}
.scan-verdict__grade {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 56px;
  line-height: 1;
  color: var(--ink);
}
.scan-verdict--f .scan-verdict__badge { background: var(--sev-crit-bg); }
.scan-verdict--f .scan-verdict__grade { color: var(--sev-crit); }
.scan-verdict--d .scan-verdict__badge { background: var(--sev-high-bg); }
.scan-verdict--d .scan-verdict__grade { color: var(--sev-high); }
.scan-verdict--c .scan-verdict__badge { background: var(--sev-med-bg); }
.scan-verdict--c .scan-verdict__grade { color: var(--sev-med); }
.scan-verdict--b .scan-verdict__badge,
.scan-verdict--a .scan-verdict__badge { background: var(--sev-ok-bg); }
.scan-verdict--b .scan-verdict__grade,
.scan-verdict--a .scan-verdict__grade { color: var(--sev-ok); }

.scan-verdict__body { flex: 1; min-width: 260px; }
.scan-verdict__site {
  font-size: 14px;
  color: var(--muted);
  word-break: break-all;
}
.scan-verdict__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(21px, 2.4vw, 27px);
  line-height: 1.2;
  margin-top: 4px;
  text-wrap: balance;
}
.scan-verdict__text { margin-top: 10px; color: var(--ink-2); }

.scan-tally { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.scan-tally__chip {
  font-size: 13px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 100px;
  background: #fff;
  color: var(--ink-2);
}
.scan-tally__chip--crit { color: var(--sev-crit); background: var(--sev-crit-bg); }
.scan-tally__chip--high { color: var(--sev-high); background: var(--sev-high-bg); }
.scan-tally__chip--med  { color: var(--sev-med);  background: var(--sev-med-bg); }
.scan-tally__chip--low  { color: var(--sev-low);  background: var(--sev-low-bg); }
.scan-tally__chip--ok   { color: var(--sev-ok);   background: var(--sev-ok-bg); }

/* ---- находки ---- */
.scan-findings { display: flex; flex-direction: column; gap: 14px; margin-top: 20px; }

.scan-finding {
  display: flex;
  gap: 16px;
  padding: 22px 24px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-card);
  background: #fff;
}
.scan-finding__stripe {
  flex: none;
  width: 4px;
  border-radius: 4px;
  background: var(--line-2);
}
.scan-finding--crit .scan-finding__stripe { background: var(--sev-crit); }
.scan-finding--high .scan-finding__stripe { background: var(--sev-high); }
.scan-finding--med  .scan-finding__stripe { background: var(--sev-med); }
.scan-finding--low  .scan-finding__stripe { background: var(--sev-low); }

.scan-finding__main { flex: 1; min-width: 0; }
.scan-finding__sev {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}
.scan-finding--crit .scan-finding__sev { color: var(--sev-crit); }
.scan-finding--high .scan-finding__sev { color: var(--sev-high); }
.scan-finding--med  .scan-finding__sev { color: var(--sev-med); }
.scan-finding--low  .scan-finding__sev { color: var(--sev-low); }

.scan-finding__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 19px;
  line-height: 1.25;
  margin-top: 5px;
  text-wrap: balance;
}
.scan-finding__plain { margin-top: 8px; color: var(--ink-2); }

.scan-finding__tech {
  margin-top: 12px;
  font-size: 15px;
  color: var(--muted);
}
.scan-finding__tech summary {
  cursor: pointer;
  color: var(--ink-2);
  font-size: 14px;
  padding: 4px 0;
}
.scan-finding__tech summary:hover { color: var(--brand-deep); }
.scan-finding__tech p { margin-top: 8px; }
.scan-finding__detail {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 13px;
  background: var(--cream);
  border: 1px dashed var(--line-dash);
  border-radius: 10px;
  padding: 10px 12px;
  overflow-x: auto;
  word-break: break-word;
}

.scan-finding__fix { margin-top: 12px; font-size: 15px; color: var(--ink-2); }
.scan-finding__arrow { color: var(--brand-dot); font-weight: 700; }

.scan-passed, .scan-partial {
  margin-top: 16px;
  font-size: 15px;
  color: var(--muted);
}

/* ---- заявка под отчётом ---- */
.scan-cta {
  margin-top: 26px;
  padding: 28px;
  border-radius: var(--r-card);
  background: var(--ink);
  color: #fff;
}
.scan-cta__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  color: #fff;
}
.scan-cta__text { margin-top: 8px; color: rgba(255,255,255,.78); }
.scan-cta__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 18px;
}
/* .field + .field задаёт отступ сверху и весит больше, чем один
   класс поля: в две колонки второе поле уезжало вниз на 16px.
   Гасим тем же весом, а не !important. */
.scan-cta__row .field + .field { margin-top: 0; }
.scan-cta .field__input {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.22);
  color: #fff;
}
.scan-cta .field__input::placeholder { color: rgba(255,255,255,.55); }
.scan-cta .field__input:focus {
  background: rgba(255,255,255,.14);
  border-color: var(--brand-2);
}
.scan-cta__btn { margin-top: 14px; }
.scan-cta__status { margin-top: 10px; font-size: 15px; color: var(--brand-2); }

/* ---- что проверяем ---- */
.scan-layers {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 34px;
}
.scan-layer {
  background: #fff;
  border-radius: var(--r-card);
  padding: 26px 28px;
}
.scan-layer__tag {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--brand-deep);
}
.scan-layer__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 19px;
  margin-top: 8px;
}
.scan-layer__text { margin-top: 8px; color: var(--ink-2); font-size: 16px; }

/* ---- границы ---- */
.scan-limits { margin-top: 22px; display: flex; flex-direction: column; gap: 14px; }
.scan-limits li {
  list-style: none;
  padding-left: 22px;
  position: relative;
  color: var(--ink-2);
}
.scan-limits li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand-dot);
}
.scan-limits b { color: var(--ink); }

@media (max-width: 760px) {
  .scan-form__row { flex-direction: column; }
  .scan-layers { grid-template-columns: 1fr; }
  .scan-cta__row { grid-template-columns: 1fr; }
  .scan-verdict { padding: 22px; gap: 18px; }
  .scan-verdict__badge { width: 84px; height: 84px; border-radius: 20px; }
  .scan-verdict__grade { font-size: 44px; }
  .scan-finding { padding: 20px; gap: 13px; }
}

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 1180px) {
  .site-nav { gap: 20px; font-size: 14px; }
}

/* Телефон в шапке — первое, чем можно пожертвовать: он повторён в кнопке
   «Обсудить проект», в кабинете и в подвале. Без него меню, переключатель
   языка и кнопка помещаются вплоть до порога бургера, и главная кнопка
   не уезжает за правый край на ноутбучных 1150–1280. */
@media (max-width: 1300px) {
  .site-header__phone { display: none; }
}

/* авторские переносы работают только там, где строка целиком помещается */
@media (max-width: 900px) {
  .br-wide { display: none; }
  .footer__top { grid-template-columns: 1fr; }
}

/* Порог подобран по азербайджанскому: его пункты меню длиннее русских,
   и вместе с переключателем языка горизонтальное меню перестаёт помещаться
   раньше — около 1090px. Ниже прячем его в бургер. */
@media (max-width: 1120px) {
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--gutter) 20px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px rgba(23,24,26,.1);
    font-size: 18px;
  }
  .site-nav:not(.is-open) { display: none; }
  .site-nav a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .site-nav a:last-child { border-bottom: none; }

  .burger { display: flex; }
}

@media (max-width: 1024px) {
  :root { --gutter: 28px; --section: 84px; }

  .hero { padding-top: 64px; }
  .app__main { padding: 28px 24px; min-height: 0; }

}

/* На узком экране ноутбук не имеет смысла: рамка съедает ширину, а панель
   внутри становится нечитаемой. Показываем её напрямую, без 3D и «липкости». */
@media (max-width: 860px) {
  .mac { height: auto; margin-top: 40px; }
  .mac__sticky { position: static; height: auto; display: block; overflow: visible; }
  .mac__sticky::before { display: none; }
  .mac__scene { width: auto; transform: none; }
  .mac__laptop { width: auto; height: auto; perspective: none; }
  .mac__deck {
    position: static;
    width: auto;
    height: auto;
    transform: none;
    perspective: none;
  }
  .mac__deckface, .mac__cover, .mac__notch, .mac__glass,
  .mac__lip, .mac__shadow { display: none; }
  .mac__lid { position: static; transform: none; transform-style: flat; pointer-events: auto; }
  .mac__screen {
    position: static;
    transform: none;
    padding: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
    display: block;
  }
  .mac__screen::after { display: none; }
  .mac__screen .app {
    display: block;
    border-radius: var(--r-xl);
    box-shadow: 0 40px 80px rgba(0,0,0,.35);
  }
  .mac__screen .app__body { flex-wrap: wrap; }
  .mac__screen .app__side,
  .mac__screen .app__main { overflow: visible; }

  .app__side {
    width: 100%;
    flex: 1 1 100%;
    border-right: none;
    border-bottom: 1px solid var(--line);
  }
  /* вкладки переносим, а не прячем в горизонтальный скролл: последний
     пункт обрезался на полуслове и выглядел как сломанная вёрстка.
     В несколько рядов они читаются как вкладки только с рамкой —
     иначе это просто россыпь слов */
  .app__nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
  }
  .app__navitem {
    width: auto;
    white-space: nowrap;
    background: #fff;
    border: 1px solid var(--line);
  }
  .app__navitem.is-active { border-color: var(--ink); }
  .app__manager { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; }
  .app__manager-btn { margin-top: 0; }

  .bubble { max-width: 88%; }
}

@media (max-width: 720px) {
  .brief__body { padding: 28px 22px; }
  .footer { padding-top: 56px; }
  .footer__top { gap: 40px; }
  .footer__cols { gap: 32px; }
}

@media (max-width: 560px) {
  :root { --gutter: 20px; --section: 64px; }

  .site-header { padding: 12px var(--gutter); }
  .site-header .btn--dark { display: none; }
  .logo__text { font-size: 22px; }

  /* в шапке кнопка не помещается — переносим её в меню,
     иначе открытый бургер остаётся единственным экраном без действия */
  .site-nav .site-nav__cta {
    display: flex;
    margin-top: 18px;
    padding: 17px 28px;
    border-bottom: 0;
    color: #fff;
  }
  .site-nav .site-nav__cta:hover { color: #fff; }

  .hero__cta .btn,
  .care__cta .btn { flex: 1 1 100%; }

  .stats { margin-top: 44px; }
  .marquee { margin-top: 44px; }

  .cases, .steps { gap: 16px; }

  .pay__due, .pay__budget { padding: 22px 20px; }
  .table__head, .table__row { padding: 14px 16px; font-size: 15px; }
  .table__row { flex-wrap: wrap; gap: 4px; }
  .doc { padding: 18px 18px; }
  .doc__actions { width: 100%; justify-content: space-between; }
  .row { flex-wrap: wrap; gap: 6px; }

  .faq__panel p { padding-right: 0; }
  .faq__q { padding: 22px 0; }

  .brief__nav { flex-direction: column-reverse; align-items: stretch; }
  .brief__nav-right { flex-direction: column-reverse; align-items: stretch; gap: 12px; }
  .brief__summary { max-width: none; text-align: center; }
  #brief-next, #brief-back { width: 100%; }
  .brief__summary:empty { display: none; }

  .trust__grid { grid-template-columns: repeat(2, 1fr); }
  .trust__slot { height: 72px; }
  .case__media { height: 200px; }
}

/* самые узкие телефоны: логотип, языки и бургер перестают помещаться
   в шапке — ужимаем переключатель, а не даём ему выдавить бургер */
@media (max-width: 380px) {
  .site-header { gap: 12px; }
  .lang { padding: 2px; }
  .lang__btn { padding: 7px 9px; font-size: 12px; }
  .logo__text { font-size: 20px; }
  .burger { width: 40px; }

  /* кнопки во всю ширину: длинные английские подписи не влезают
     в одну строку, пусть лучше переносятся, чем выходят за экран */
  .btn { white-space: normal; text-align: center; }
  .btn--lg { padding: 18px 22px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

@media print {
  .site-header, .marquee, .brief__nav, .burger { display: none !important; }
  .section { padding-block: 24px; }
  body { color: #000; }
}
