/* ==========================================================================
   azcode.ru — стили

   Идея оформления: «прайс-лист с маркером». Бумага, чёрная типографика,
   один жёлтый маркер для самого важного — цен и действий. Никаких градиентов,
   стекла и теней ради теней.

   Содержание
     1. Шрифты
     2. Переменные
     3. База
     4. Общие элементы: кнопки, ссылки, иконки, маркер, отточие
     5. Шапка
     6. Первый экран
     7. «Чек» — лист сметы и короткого прайса
     8. Разделы и их заголовки
     9. Прайс
    10. Смета за минуту (тёмный раздел)
    11. Как идёт работа
    12. Условия
    13. Вопросы
    14. Контакты и подвал
    15. Чат
    16. Плавающая кнопка
    17. Акция: зачёркнутая и новая цена
    18. Внутренние страницы: шапка и призыв
    19. Работы
    20. Блог и статья
    21. Адаптив главной страницы и чата
    22. Движение и печать
   ========================================================================== */


/* 1. Шрифты --------------------------------------------------------------
   Лежат рядом, в site/fonts: без обращений к чужим серверам.
   В заголовочный шрифт дорисован знак рубля — в оригинале его нет.
   Заголовочный грузится с block: узкий плакатный шрифт нечем заменить,
   и подмена на долю секунды выглядела бы как скачок вёрстки. */

@font-face {
  font-family: 'Sofia Sans XC';
  src: url('../fonts/sofia-sans-extra-condensed-800.woff2') format('woff2');
  font-weight: 800;
  font-style: normal;
  font-display: block;
}

@font-face {
  font-family: 'Golos Text';
  src: url('../fonts/golos-text.woff2') format('woff2');
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'AZ Mono';
  src: url('../fonts/az-mono-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'AZ Mono';
  src: url('../fonts/az-mono-600.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}


/* 2. Переменные ---------------------------------------------------------- */

:root {
  --paper: #F2F0E9;      /* фон страницы */
  --paper-2: #E8E5DA;    /* фон второго плана */
  --sheet: #FFFFFF;      /* листы, карточки, поля */
  --ink: #141414;        /* текст и линии */
  --ink-2: #57544C;      /* второстепенный текст */
  --ink-3: #A9A598;      /* зачёркнутое, отточия */
  --line: #D6D2C5;       /* тонкие линейки */
  --mark: #FFD21F;       /* маркер */
  --on-ink-2: #BDB9AC;   /* второстепенный текст на тёмном */

  --f-display: 'Sofia Sans XC', 'Arial Narrow', 'Roboto Condensed', Impact, sans-serif;
  --f-text: 'Golos Text', 'Segoe UI', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
  --f-mono: 'AZ Mono', ui-monospace, 'Cascadia Mono', Consolas, 'SF Mono', Menlo, monospace;

  --wrap: 1240px;
  --pad: clamp(20px, 4vw, 48px);
  --sec: clamp(72px, 9vw, 132px);
  --top-h: 68px;
  --r: 4px;
}


/* 3. База ---------------------------------------------------------------- */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--top-h) + 20px);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.55 var(--f-text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
b, strong { font-weight: 600; }
svg { display: block; }

button {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

textarea { font: inherit; color: inherit; }

[hidden] { display: none !important; }

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

::selection { background: var(--mark); color: var(--ink); }

.wrap {
  width: min(100% - 2 * var(--pad), var(--wrap));
  margin-inline: auto;
}

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

.skip {
  position: absolute;
  left: 12px;
  top: -80px;
  z-index: 100;
  padding: 12px 16px;
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--r);
}
.skip:focus { top: 12px; }

.noscript {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  padding: 12px var(--pad);
  background: var(--ink);
  color: var(--paper);
  font-size: 15px;
  text-align: center;
}


/* 4. Общие элементы ------------------------------------------------------ */

.ico {
  flex: none;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: square;
  stroke-linejoin: miter;
}

/* Кнопки */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border: 1.5px solid var(--ink);
  border-radius: var(--r);
  font: 600 16px/1.1 var(--f-text);
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn .ico { transition: transform .15s; }
.btn:hover .ico:last-child { transform: translateX(3px); }

.btn--mark { background: var(--mark); color: var(--ink); }
.btn--mark:hover { background: var(--ink); color: var(--mark); }

.btn--ink { background: var(--ink); color: var(--paper); }
.btn--ink:hover { background: var(--mark); color: var(--ink); }

.btn--line { background: transparent; color: var(--ink); }
.btn--line:hover { background: var(--ink); color: var(--paper); }

.btn--lg { min-height: 60px; padding: 0 28px; font-size: 18px; }
.btn--sm { min-height: 42px; padding: 0 18px; font-size: 15px; }

/* Текстовая ссылка */
.link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 5px;
  transition: text-decoration-color .15s;
}
.link:hover { text-decoration-color: var(--mark); text-decoration-thickness: 3px; }
.link .ico { width: 18px; height: 18px; transition: transform .15s; }
.link--down:hover .ico { transform: translateY(3px); }

/* Подпись моноширинным */
.eyebrow {
  font: 400 13px/1.4 var(--f-mono);
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-2);
}

/* У моноширинного шрифта пробел шириной в букву — в подписях это слишком много */
.eyebrow,
.row__term,
.starter__who,
.chat__id p,
.chat__sum-label,
.card__title,
.opt__price,
.abc em,
.contacts__list span,
.sheet__head,
.sheet__lines,
.sheet__sum dt,
.sheet__sum dd,
.sheet__note,
.sheet__empty { word-spacing: -.22em; }

.sheet__total dd,
.sheet__empty b { word-spacing: 0; }

/* Отточие между названием и ценой */
.dots {
  flex: 1 1 16px;
  min-width: 16px;
  align-self: baseline;
  height: 0;
  border-bottom: 2px dotted var(--ink-3);
  transform: translateY(-.25em);
}

/* Квадрат с буквой: аватар ассистента */
.ava {
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: var(--r);
  background: var(--mark);
  color: var(--ink);
  font: 800 25px/1 var(--f-display);
  padding-top: 1px;
}

/* Кнопка-ответ */
.chip {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 16px;
  border: 1.5px solid currentColor;
  border-radius: var(--r);
  font: 500 16px/1.25 var(--f-text);
  text-align: left;
  transition: background-color .12s, color .12s, border-color .12s;
}


/* 5. Шапка --------------------------------------------------------------- */

.top {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.top__in {
  display: flex;
  align-items: center;
  gap: 28px;
  height: var(--top-h);
}

.logo {
  display: inline-flex;
  align-items: center;
  font: 800 34px/1 var(--f-display);
  letter-spacing: .012em;
  text-decoration: none;
}
.logo__az {
  margin-right: .035em;
  padding: .07em .07em .03em .12em;
  border-radius: 3px;
  background: var(--mark);
  color: var(--ink);
}
.logo--inv { color: var(--paper); }

.nav {
  display: flex;
  gap: 26px;
  margin-left: auto;
  font-size: 15px;
  font-weight: 500;
}
.nav a {
  padding: 6px 0;
  text-decoration: none;
  background: linear-gradient(var(--mark), var(--mark)) 0 86% / 100% 0 no-repeat;
  transition: background-size .15s;
}
.nav a:hover,
.nav a[aria-current] { background-size: 100% 36%; }
.nav-services { position: relative; }
.nav-services summary { cursor: pointer; list-style: none; }
.nav-services summary::-webkit-details-marker { display: none; }
.nav-services summary { padding: 6px 0; }
.nav-services summary::after { content: "⌄"; display: inline-block; margin-left: 6px; }
.nav-services[open] summary::after { transform: rotate(180deg); }
.nav-services__menu { position: absolute; top: calc(100% + 10px); left: -18px; z-index: 40; display: grid; min-width: 230px; padding: 8px; border: 1px solid var(--line); border-radius: var(--r); background: var(--paper); box-shadow: 0 12px 30px rgba(20,20,20,.14); }
.nav-services__menu a { padding: 10px; background: none; }
.nav-services__menu a:hover { background: var(--mark); }

.burger {
  display: none;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1.5px solid var(--ink);
  border-radius: var(--r);
}


/* 6. Первый экран -------------------------------------------------------- */

.hero { padding: clamp(24px, 3vw, 40px) 0 clamp(56px, 6vw, 84px); }
.hero + .sec { padding-top: 0; }

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(320px, .78fr);
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
}

.hero__title {
  margin-top: 20px;
  font: 800 clamp(56px, 6.5vw, 94px)/.9 var(--f-display);
  letter-spacing: .004em;
  text-transform: uppercase;
}
.hero__title > * {
  display: block;
  width: fit-content;
}

/* «Цена по запросу» — зачёркнуто от руки */
.strike {
  position: relative;
  color: var(--ink-3);
  text-decoration: none;
  white-space: nowrap;
}
.strike::after {
  content: '';
  position: absolute;
  left: -.07em;
  right: -.07em;
  top: 45%;
  height: .09em;
  border-radius: 2px;
  background: var(--ink);
  transform: rotate(-1.4deg);
  transform-origin: 0 50%;
  animation: strike .5s .3s cubic-bezier(.6, 0, .2, 1) both;
}
@keyframes strike { from { transform: rotate(-1.4deg) scaleX(0); } }

/* «Цена — сразу.» — выделено маркером */
.marker {
  position: relative;
  z-index: 0;
  margin: .05em 0 0 -.13em;
  padding: .07em .13em .02em;
  background: none;
  color: inherit;
  white-space: nowrap;
}
.marker::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: 3px 9px 5px 10px / 7px 4px 9px 4px;
  background: var(--mark);
  transform-origin: 0 50%;
  animation: marker .55s .75s cubic-bezier(.6, 0, .2, 1) both;
}
@keyframes marker { from { transform: scaleX(0); } }

.hero__lead {
  max-width: 35em;
  margin-top: 30px;
  font-size: 19px;
  line-height: 1.5;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 28px;
  margin-top: 32px;
}

.hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  margin-top: 40px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--ink-2);
}
.hero__facts li {
  position: relative;
  padding-left: 18px;
}
.hero__facts li::before {
  content: '';
  position: absolute;
  left: 0;
  top: .5em;
  width: 8px;
  height: 8px;
  background: var(--mark);
  outline: 1.5px solid var(--ink);
  outline-offset: -1px;
}

.hero__side {
  justify-self: end;
  width: 100%;
  max-width: 410px;
  transform: rotate(1.1deg);
}


/* 7. «Чек» --------------------------------------------------------------- */

/* Обёртка рисует тонкий контур и тень вокруг вырезанного зубчиками листа */
.sheet-wrap {
  filter: drop-shadow(0 0 .7px rgba(20, 20, 20, .6)) drop-shadow(0 14px 22px rgba(20, 20, 20, .08));
}

.sheet {
  --z: 7px; /* размер зубца */
  position: relative;
  padding: 20px 22px calc(24px + var(--z));
  background: var(--sheet);
  color: var(--ink);
  font: 400 13px/1.5 var(--f-mono);
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / calc(2 * var(--z)) 100%;
          mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / calc(2 * var(--z)) 100%;
}

.sheet__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1.5px dashed var(--ink);
  font-size: 12px;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.sheet__head b { font-weight: 600; }
.sheet__head span { color: var(--ink-2); }

/* Строки сметы */
.sheet__lines {
  display: grid;
  gap: 8px;
  padding: 14px 0;
}
.sheet__line {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 0 -6px;
  padding: 1px 6px;
  border-radius: 3px;
}
.sheet__line.is-new { animation: flash 1.1s ease-out; }
@keyframes flash { from { background: var(--mark); } to { background: transparent; } }

.sheet__name { min-width: 0; }
.sheet__val { font-weight: 600; white-space: nowrap; }
.sheet__line.is-monthly .sheet__val { font-weight: 400; }

.sheet__x {
  flex: none;
  align-self: center;
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  margin-right: -4px;
  border-radius: 3px;
  color: var(--ink-2);
  transition: background-color .12s, color .12s;
}
.sheet__x .ico { width: 14px; height: 14px; }
.sheet__x:hover { background: var(--ink); color: var(--paper); }

/* Итоги */
.sheet__sum {
  display: grid;
  gap: 9px;
  padding-top: 14px;
  border-top: 1.5px dashed var(--ink);
}
.sheet__sum > div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}
.sheet__sum dt {
  font-size: 12px;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.sheet__sum dd { font-weight: 600; text-align: right; }

.sheet__sum .sheet__total {
  display: grid;
  gap: 8px;
  padding-top: 4px;
}
.sheet__total dd {
  font: 800 33px/1 var(--f-display);
  text-align: left;
  white-space: nowrap;
}
.sheet__total mark {
  display: inline-block;
  margin-left: -.2em;
  padding: .09em .2em .03em;
  border-radius: 3px 7px 4px 8px / 6px 4px 7px 4px;
  background: var(--mark);
  color: var(--ink);
}
.sheet__total.is-bump mark { animation: bump .35s ease-out; }
@keyframes bump { 40% { transform: scale(1.045); } }

.sheet__note {
  margin-top: 16px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--ink-2);
}

/* Пустой лист: пока нечего считать */
.sheet__empty {
  padding: 26px 0 8px;
  color: var(--ink-2);
}
.sheet__empty b {
  display: block;
  margin-bottom: 8px;
  font: 800 30px/1 var(--f-display);
  text-transform: uppercase;
  color: var(--ink);
}
.sheet__ghost {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}
.sheet__ghost i {
  height: 0;
  border-bottom: 2px dotted var(--line);
}
.sheet__ghost i:nth-child(2) { width: 82%; }
.sheet__ghost i:nth-child(3) { width: 64%; }

/* Короткий прайс на первом экране */
.sheet--short { padding-top: 22px; }

.short { padding: 10px 0 4px; }
.short a {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 7px 0;
  text-decoration: none;
}
.short__name { font: 500 17px/1.2 var(--f-text); }
.short__price {
  font: 800 31px/1 var(--f-display);
  white-space: nowrap;
}
.short__price small {
  font: 500 13px/1 var(--f-text);
  color: var(--ink-2);
}
.short__price b {
  font-weight: 800;
  transition: box-shadow .15s;
}
.short a:hover .short__price b { box-shadow: inset 0 -.44em 0 var(--mark); }

.short-you {
  display: flex;
  align-items: baseline;
  gap: 8px;
  width: calc(100% + 24px);
  margin: 10px -12px 0;
  padding: 12px 12px 10px;
  border-radius: var(--r);
  background: var(--mark);
  text-align: left;
  transition: background-color .15s, color .15s;
}
.short-you .dots { border-color: currentColor; opacity: .45; }
.short-you .ico { align-self: center; transition: transform .15s; }
.short-you:hover { background: var(--ink); color: var(--mark); }
.short-you:hover .ico { transform: translateX(3px); }


/* 8. Разделы и заголовки -------------------------------------------------- */

.sec { padding: var(--sec) 0; }
.sec--tight { padding-top: 0; }

.sec--ink { background: var(--ink); color: var(--paper); }
.sec--mark { background: var(--mark); }

.sec--ink :focus-visible { outline-color: var(--mark); }

.head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 20px 56px;
  margin-bottom: clamp(32px, 4.5vw, 60px);
  padding-top: 24px;
  border-top: 2px solid currentColor;
}

.head__title {
  display: flex;
  align-items: flex-start;
  gap: .22em;
  font: 800 clamp(46px, 6vw, 88px)/.92 var(--f-display);
  letter-spacing: .004em;
  text-transform: uppercase;
}

/* Буква-указатель: разделы идут от А до Я */
.idx {
  flex: none;
  display: grid;
  place-items: center;
  width: 1.1em;
  height: 1.1em;
  margin-top: .03em;
  padding-top: .03em;
  border-radius: var(--r);
  background: var(--ink);
  color: var(--paper);
  font-size: .78em;
  line-height: 1;
}
.sec--ink .idx { background: var(--mark); color: var(--ink); }
.sec--mark .idx { color: var(--mark); }

.head__note {
  max-width: 360px;
  padding-bottom: .3em;
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink-2);
}
.sec--ink .head__note { color: var(--on-ink-2); }
.sec--mark .head__note { color: var(--ink); }


/* 9. Прайс --------------------------------------------------------------- */

.group {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 16px 56px;
  padding: 32px 0 44px;
  border-top: 1px solid var(--ink);
}
.group:first-of-type { border-top: 0; padding-top: 0; }

.group__side {
  position: sticky;
  top: calc(var(--top-h) + 24px);
  align-self: start;
}
.group__name {
  font: 800 44px/.95 var(--f-display);
  letter-spacing: .005em;
  text-transform: uppercase;
}
.group__text {
  margin-top: 12px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink-2);
}

.row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 112px 186px 138px;
  align-items: center;
  gap: 8px 24px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.row:first-child { padding-top: 4px; }
.row:last-child { border-bottom: 0; padding-bottom: 0; }

.row__name { font: 600 20px/1.25 var(--f-text); }
.row__desc {
  max-width: 46ch;
  margin-top: 5px;
  font-size: 15px;
  line-height: 1.45;
  color: var(--ink-2);
}

/* Срок и часы работы: пары «подпись — значение» */
.row__term {
  display: grid;
  gap: 9px;
  font: 400 13px/1.35 var(--f-mono);
}
.row__term dt {
  margin-bottom: 2px;
  font-size: 11px;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.row__price {
  font: 800 42px/1 var(--f-display);
  text-align: right;
  white-space: nowrap;
}
.row__price small {
  font: 500 14px/1 var(--f-text);
  color: var(--ink-2);
}
.row__price b {
  font-weight: 800;
  transition: box-shadow .15s;
}
.row:hover .row__price b { box-shadow: inset 0 -.44em 0 var(--mark); }

.row__go {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 44px;
  padding: 0 12px 0 14px;
  border: 1.5px solid var(--ink);
  border-radius: var(--r);
  font: 600 15px/1 var(--f-text);
  transition: background-color .15s, color .15s;
}
.row__go .ico { width: 18px; height: 18px; transition: transform .15s; }
.row:hover .row__go { background: var(--mark); }
.row__go:hover,
.row:hover .row__go:hover { background: var(--ink); color: var(--paper); }
.row__go:hover .ico { transform: translateX(3px); }

/* Что входит в цену */
.incl {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  align-items: start;
  gap: 20px 56px;
  margin-top: 12px;
  padding: 30px 32px;
  border: 1.5px solid var(--ink);
  border-radius: var(--r);
  background: var(--sheet);
}
.incl__title {
  font: 800 34px/.98 var(--f-display);
  letter-spacing: .005em;
  text-transform: uppercase;
}
.incl__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 40px;
  font-size: 16px;
  line-height: 1.4;
}
.incl__list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.incl__list .ico {
  width: 22px;
  height: 22px;
  padding: 3px;
  border-radius: 3px;
  background: var(--mark);
}


/* 10. Смета за минуту ----------------------------------------------------- */

.brief {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, .8fr);
  gap: clamp(40px, 7vw, 104px);
  align-items: start;
}

.starter {
  padding: 26px 28px 28px;
  border: 1.5px solid rgba(242, 240, 233, .3);
  border-radius: 10px;
}
.starter__who {
  display: flex;
  align-items: center;
  gap: 12px;
  font: 400 13px/1.3 var(--f-mono);
  color: var(--on-ink-2);
}
.starter__msg {
  max-width: 30em;
  margin-top: 18px;
  font-size: 21px;
  line-height: 1.45;
}
.starter__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}
.sec--ink .chip:hover {
  border-color: var(--mark);
  background: var(--mark);
  color: var(--ink);
}

.starter__input {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 54px;
  margin-top: 14px;
  padding: 0 8px 0 16px;
  border-radius: var(--r);
  background: #262626;
  color: var(--ink-3);
  font-size: 16px;
  text-align: left;
  transition: background-color .15s, color .15s;
}
.starter__input .ico {
  width: 38px;
  height: 38px;
  padding: 9px;
  border-radius: var(--r);
  background: var(--paper);
  color: var(--ink);
}
.starter__input:hover { background: #303030; color: var(--paper); }
.starter__input:hover .ico { background: var(--mark); }

.how {
  counter-reset: how;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  margin-top: 40px;
}
.how li {
  counter-increment: how;
  font-size: 15px;
  line-height: 1.45;
  color: var(--on-ink-2);
}
.how li::before {
  content: '0' counter(how);
  display: block;
  margin-bottom: 10px;
  font: 400 13px/1 var(--f-mono);
  color: var(--mark);
}
.how b {
  display: block;
  margin-bottom: 4px;
  font-size: 17px;
  color: var(--paper);
}

.brief__sheet {
  display: grid;
  gap: 22px;
  transform: rotate(-1deg);
}
.sec--ink .sheet-wrap { filter: none; }
.brief__go { transform: rotate(1deg); }
.sec--ink .btn--mark { border-color: var(--mark); }
.sec--ink .btn--mark:hover { border-color: var(--paper); background: var(--paper); color: var(--ink); }


/* 11. Как идёт работа ----------------------------------------------------- */

.steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
.step {
  padding: 0 24px 4px;
  border-left: 1px solid var(--ink);
}
.step__n {
  display: block;
  font: 800 68px/.9 var(--f-display);
}
.step:first-child .step__n {
  width: fit-content;
  box-shadow: inset 0 -.36em 0 var(--mark);
}
.step__name {
  margin-top: 22px;
  font: 600 20px/1.25 var(--f-text);
}
.step p {
  margin-top: 8px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink-2);
}


/* 12. Условия ------------------------------------------------------------- */

.terms {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 72px;
}
.term {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  align-content: start;
  gap: 8px 16px;
  padding: 28px 0 32px;
  border-top: 1px solid var(--line);
}
.term:nth-child(-n+2) { border-top: 0; padding-top: 0; }
.term__n {
  grid-row: span 2;
  padding-top: 9px;
  font: 400 14px/1 var(--f-mono);
  color: var(--ink-2);
  white-space: nowrap;
}
.term__name {
  font: 800 38px/.98 var(--f-display);
  letter-spacing: .005em;
  text-transform: uppercase;
}
.term p {
  max-width: 44ch;
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink-2);
}

/* Штамп */
.stamp {
  justify-self: end;
  align-self: center;
  padding: 10px 18px 9px;
  border: 4px double var(--ink);
  border-radius: 6px;
  font: 600 14px/1.25 var(--f-mono);
  letter-spacing: .12em;
  text-align: center;
  text-transform: uppercase;
  transform: rotate(-7deg);
  opacity: .82;
}


/* 13. Вопросы ------------------------------------------------------------- */

.faq {
  display: grid;
  grid-template-columns: minmax(0, 360px) minmax(0, 1fr);
  gap: 32px 72px;
  align-items: start;
}

.head--side {
  display: block;
  position: sticky;
  top: calc(var(--top-h) + 24px);
  margin-bottom: 0;
}
.head--side .head__title { font-size: clamp(46px, 5.2vw, 72px); }
.head--side .head__note { margin: 20px 0 24px; padding: 0; }

.qa { border-top: 1px solid var(--ink); }
.qa:first-child { border-top-width: 2px; }
.qa:last-child { border-bottom: 1px solid var(--ink); }

.qa summary {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  padding: 22px 0;
  font: 600 20px/1.3 var(--f-text);
  list-style: none;
  cursor: pointer;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after {
  content: '';
  flex: none;
  width: 30px;
  height: 30px;
  margin-top: -2px;
  border: 1.5px solid var(--ink);
  border-radius: var(--r);
  background:
    linear-gradient(var(--ink), var(--ink)) center / 14px 2px no-repeat,
    linear-gradient(var(--ink), var(--ink)) center / 2px 14px no-repeat;
  transition: background-color .15s, background-size .15s;
}
.qa summary:hover::after { background-color: var(--mark); }
.qa[open] summary::after {
  background-color: var(--mark);
  background-size: 14px 2px, 2px 0;
}
.qa p {
  max-width: 62ch;
  padding: 0 56px 26px 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-2);
}


/* 14. Контакты и подвал ---------------------------------------------------- */

.abc {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 16px;
  margin-bottom: 36px;
  font: 400 13px/1.5 var(--f-mono);
}
.abc span { letter-spacing: .2em; }
.abc em { font-style: normal; }

.contacts {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px 48px;
}
.contacts__list {
  display: grid;
  gap: 22px;
}
.contacts__list span {
  display: block;
  margin-bottom: 4px;
  font: 400 13px/1.3 var(--f-mono);
  letter-spacing: .07em;
  text-transform: uppercase;
}
.contacts__list a {
  font: 800 clamp(40px, 6.4vw, 92px)/.95 var(--f-display);
  letter-spacing: .01em;
  text-decoration: underline;
  text-decoration-thickness: .06em;
  text-underline-offset: .1em;
  overflow-wrap: anywhere;
  transition: background-color .15s, color .15s;
}
.contacts__list a:hover {
  background: var(--ink);
  color: var(--mark);
  text-decoration-color: transparent;
}

.foot {
  padding: clamp(38px, 6vw, 76px) 0 24px;
  border-top: 1px solid rgba(242, 240, 233, .16);
  background: var(--ink);
  color: var(--on-ink-2);
  font-size: 14px;
}
.foot :focus-visible { outline-color: var(--mark); }
.foot__columns {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  align-items: start;
  gap: 32px clamp(20px, 4vw, 56px);
}
.foot__brand .logo { font-size: clamp(32px, 4vw, 48px); }
.foot__brand p { margin-top: 14px; max-width: 24ch; }
.foot__title { margin: 3px 0 12px; color: var(--paper); font: 700 16px/1.3 var(--f-text); }
.foot__links { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
.foot__links a {
  display: inline-block;
  padding: 4px 0;
  overflow-wrap: anywhere;
  text-decoration: none;
}
.foot__links a:hover,
.foot__links a[aria-current] { color: var(--mark); }
.foot__cta { margin-top: 14px; }
.foot__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: clamp(30px, 5vw, 54px);
  padding-top: 18px;
  border-top: 1px solid rgba(242, 240, 233, .16);
  font-size: 13px;
}
.foot__bottom a { text-underline-offset: 3px; }
.foot__bottom a:hover { color: var(--mark); }

@media (max-width: 820px) {
  .foot__columns { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-flow: row; }
}
@media (max-width: 420px) {
  .foot__columns { grid-template-columns: minmax(0, 1fr); gap: 24px; }
}


/* 15. Чат ----------------------------------------------------------------- */

html.is-chat { overflow: hidden; padding-right: var(--sbw, 0px); }

.chat {
  position: fixed;
  inset: 0;
  z-index: 100;
  width: min(1120px, calc(100vw - 48px));
  height: min(780px, calc(100vh - 48px));
  height: min(780px, calc(100dvh - 48px));
  max-width: none;
  max-height: none;
  margin: auto;
  padding: 0;
  border: 1.5px solid var(--ink);
  border-radius: 10px;
  background: var(--paper);
  color: var(--ink);
  overflow: hidden;
  overflow: clip;
}
.chat:not([open]) { display: none; }
.chat[open] {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 392px;
  animation: chat-in .2s ease-out;
}
.chat::backdrop { background: rgba(20, 20, 20, .62); }
@keyframes chat-in { from { opacity: 0; transform: translateY(10px); } }

.chat__talk {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
}

.chat__head {
  flex: none;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 14px 14px 20px;
  border-bottom: 1px solid var(--line);
}
.chat__head .ava {
  width: 40px;
  height: 40px;
  background: var(--ink);
  color: var(--mark);
  font-size: 29px;
}
.chat__id { flex: 1; min-width: 0; }
.chat__id h2 { font: 600 16px/1.2 var(--f-text); }
.chat__id p {
  margin-top: 3px;
  font: 400 12px/1.3 var(--f-mono);
  color: var(--ink-2);
}

.chat__tool {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 40px;
  min-height: 40px;
  padding: 0 10px;
  border-radius: var(--r);
  font-size: 14px;
  color: var(--ink-2);
  transition: background-color .12s, color .12s;
}
.chat__tool .ico { width: 18px; height: 18px; }
.chat__tool:hover { background: var(--paper-2); color: var(--ink); }
.chat__tool.is-armed { background: var(--mark); color: var(--ink); }
.chat__tool--x { padding: 0; color: var(--ink); }
.chat__tool--x .ico { width: 22px; height: 22px; }

/* Полоса с суммой — только на телефоне */
.chat__sum { display: none; }

.chat__log {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 0;
  padding: 20px;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.chat__log::before { content: ''; margin-top: auto; }
.chat__log:focus-visible { outline-offset: -3px; }

.msg {
  max-width: min(86%, 540px);
  padding: 11px 15px 12px;
  border-radius: 14px;
  font-size: 16px;
  line-height: 1.45;
  overflow-wrap: anywhere;
  animation: msg-in .18s ease-out;
}
@keyframes msg-in { from { opacity: 0; transform: translateY(6px); } }

.msg--bot {
  align-self: flex-start;
  border: 1px solid var(--line);
  border-bottom-left-radius: 3px;
  background: var(--sheet);
}
.msg--bot a {
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}
.msg--bot a:hover { text-decoration-color: var(--mark); text-decoration-thickness: 3px; }
.msg--user {
  align-self: flex-end;
  border-bottom-right-radius: 3px;
  background: var(--ink);
  color: var(--paper);
}

.typing {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 46px;
  padding: 0 17px;
}
.typing i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ink-2);
  animation: typing 1s infinite both;
}
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes typing {
  0%, 60%, 100% { opacity: .25; transform: none; }
  30% { opacity: 1; transform: translateY(-3px); }
}

/* Итоговая карточка заявки */
.card {
  align-self: stretch;
  margin-top: 6px;
  padding: 18px 20px 20px;
  border: 1.5px solid var(--ink);
  border-radius: 10px;
  background: var(--sheet);
  animation: msg-in .2s ease-out;
}
.card__title {
  font: 400 12px/1.3 var(--f-mono);
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.card__sum {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 4px 16px;
  margin-top: 8px;
  font-weight: 600;
}
.card__sum b {
  font: 800 34px/1 var(--f-display);
  white-space: nowrap;
}
.card__ok {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  font-size: 15px;
  font-weight: 600;
}
.card__ok .ico {
  width: 22px;
  height: 22px;
  padding: 3px;
  border-radius: 3px;
  background: var(--mark);
}
.card__btns {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}
.card__btns .btn { flex: 1 1 auto; min-height: 46px; padding: 0 16px; font-size: 15px; }
.card__btns .btn .ico { width: 18px; height: 18px; transform: none !important; }
.card__note {
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--ink-2);
}
.card__link {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.45;
  text-align: left;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}
.card__link:hover { text-decoration-color: var(--mark); text-decoration-thickness: 3px; }

/* Поднос с вариантами ответа */
.chat__tray {
  flex: none;
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 8px;
  max-height: 47%;
  padding: 4px 20px 14px;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.chat__tray:empty { display: none; }
.chat__tray--cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.chat .chip {
  min-height: 42px;
  border-color: var(--ink);
  background: var(--sheet);
  font-size: 15px;
  animation: msg-in .18s ease-out both;
}
.chat .chip:hover { background: var(--mark); }

.opt {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 46px;
  padding: 8px 14px;
  border: 1.5px solid var(--ink);
  border-radius: var(--r);
  background: var(--sheet);
  text-align: left;
  transition: background-color .12s;
  animation: msg-in .18s ease-out both;
}
.opt:hover { background: var(--mark); }
.opt__main {
  flex: 1;
  display: grid;
  gap: 2px;
  min-width: 0;
}
.opt__main b { font-size: 15px; line-height: 1.25; }
.opt__main small {
  font-size: 13px;
  line-height: 1.3;
  color: var(--ink-2);
}
.opt__price {
  flex: none;
  font: 600 13px/1 var(--f-mono);
  white-space: nowrap;
}

/* Вариант с галочкой: можно выбрать несколько */
.opt--check::before {
  content: '';
  flex: none;
  width: 20px;
  height: 20px;
  border: 1.5px solid var(--ink);
  border-radius: 3px;
  background: var(--sheet) center / 14px 14px no-repeat;
}
.opt--check[aria-pressed="true"] { background: var(--mark); }
.opt--check[aria-pressed="true"]::before {
  background-color: var(--ink);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFD21F' stroke-width='3.4' stroke-linecap='square'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E");
}

.tray__done {
  grid-column: 1 / -1;
  width: 100%;
  min-height: 46px;
}

/* Поле ввода */
.chat__form {
  flex: none;
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding: 12px 20px 18px;
  border-top: 1px solid var(--line);
}
.chat__form textarea {
  flex: 1;
  min-width: 0;
  height: 46px;
  max-height: 124px;
  padding: 10px 14px;
  border: 1.5px solid var(--ink);
  border-radius: var(--r);
  background: var(--sheet);
  font-size: 16px;
  line-height: 1.45;
  resize: none;
}
.chat__form textarea::placeholder { color: var(--ink-2); opacity: .8; }
.chat__form textarea:focus-visible { outline-offset: 1px; }

.chat__send {
  flex: none;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1.5px solid var(--ink);
  border-radius: var(--r);
  background: var(--ink);
  color: var(--paper);
  transition: background-color .12s, color .12s;
}
.chat__send:hover { background: var(--mark); color: var(--ink); }

/* Правая колонка со сметой */
.chat__side {
  min-width: 0;
  min-height: 0;
  padding: 26px 22px 30px;
  border-left: 1.5px solid var(--ink);
  background: var(--paper-2);
  overflow-y: auto;
  overscroll-behavior: contain;
}


/* 16. Плавающая кнопка ----------------------------------------------------- */

.fab {
  position: fixed;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 40;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: calc(100vw - 36px);
  min-height: 54px;
  padding: 0 20px 0 16px;
  border: 1.5px solid var(--ink);
  border-radius: var(--r);
  background: var(--mark);
  color: var(--ink);
  font: 600 15px/1.2 var(--f-text);
  white-space: nowrap;
  box-shadow: 0 8px 24px rgba(20, 20, 20, .18);
  transition: background-color .15s, color .15s, opacity .2s, transform .2s;
}
.fab:hover { background: var(--ink); color: var(--mark); }
.fab.is-off {
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
}
.fab span {
  overflow: hidden;
  text-overflow: ellipsis;
}
html.is-chat .fab { display: none; }


/* 17. Акция ---------------------------------------------------------------
   Обычная цена зачёркнута, акционная выделена маркером — тот же приём,
   что и в заголовке первого экрана. Управляется таблицей PROMO и полем was
   в каталоге main.js: нет акции — элементы с data-was скрываются сами. */

.was {
  color: #918D80;
  font-weight: inherit;
  text-decoration: line-through;
  text-decoration-color: var(--ink);
  text-decoration-thickness: .09em;
}
.was:not([hidden]) ~ b { box-shadow: inset 0 -.44em 0 var(--mark); }

.row__price .was {
  display: block;
  margin-bottom: 5px;
  font-size: .52em;
}
.short__price .was {
  margin-right: .12em;
  font-size: .68em;
}
.sheet__val .was { font-weight: 400; }
.opt__price .was { margin-right: 2px; font-weight: 400; }

/* Короткий прайс в узком чеке (небольшой телефон, окно в пол-экрана): обычная цена
   встаёт над акционной, иначе строка не помещается по ширине. Класс is-promo ставит main.js. */
.sheet--short { container-type: inline-size; }

@media (min-width: 421px) {
  @container (max-width: 322px) {
    .short.is-promo a { padding-top: 24px; }
    .short.is-promo .short__price { position: relative; }
    .short.is-promo .short__price .was {
      position: absolute;
      right: 0;
      bottom: 100%;
      margin: 0;
    }
    .short .dots { min-width: 0; }
  }
}
@media (max-width: 420px) {
  @container (max-width: 300px) {
    .short.is-promo a { padding-top: 24px; }
    .short.is-promo .short__price { position: relative; }
    .short.is-promo .short__price .was {
      position: absolute;
      right: 0;
      bottom: 100%;
      margin: 0;
    }
    .short .dots { min-width: 0; }
  }
}

/* Сумма без акции — над итогом сметы */
.sheet__sum .sheet__was dd { font-weight: 400; }

/* Метка акции под названием раздела прайса */
.group__promo { margin-top: 12px; }
.group__promo .tag {
  margin-left: 0;
  padding: 6px 9px 5px;
  font-size: 12px;
  vertical-align: baseline;
}

.tag {
  display: inline-block;
  margin-left: 6px;
  padding: 4px 7px 3px;
  border-radius: 3px;
  background: var(--mark);
  font: 600 11px/1 var(--f-mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  vertical-align: .24em;
}


/* 18. Внутренние страницы: шапка страницы и призыв в конце ------------------ */

.phead { padding: clamp(28px, 4vw, 52px) 0 clamp(36px, 5vw, 60px); }

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  font: 400 13px/1.4 var(--f-mono);
  letter-spacing: .04em;
  color: var(--ink-2);
}
.crumbs a { text-underline-offset: 3px; }
.crumbs a:hover { color: var(--ink); }

/* Заголовок в три строки, как на главной: утверждение, зачёркнутый штамп, обещание */
.hero__title.hero__title--page {
  margin-top: 18px;
  font-size: clamp(38px, 7.4vw, 80px);
}

.phead__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 20px 56px;
  margin-top: 28px;
}
.phead__lead {
  max-width: 37em;
  font-size: 19px;
  line-height: 1.5;
}
.phead__stat {
  font: 400 13px/1.7 var(--f-mono);
  color: var(--ink-2);
  text-align: right;
}
.phead__stat b {
  display: block;
  font-weight: 600;
  color: var(--ink);
}

/* Страница без продолжения: «не найдено», «временно недоступно» */
.phead--solo {
  min-height: 62vh;
  padding-bottom: var(--sec);
}
.phead--solo .phead__lead a { text-underline-offset: 4px; }

/* Список, в котором пока ничего нет */
.empty {
  max-width: 34em;
  padding: 34px 0 var(--sec);
  font-size: 19px;
  line-height: 1.5;
  color: var(--ink-2);
}

.cta {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
  align-items: center;
  gap: clamp(32px, 6vw, 88px);
}
.cta__title {
  font: 800 clamp(40px, 5.4vw, 76px)/.92 var(--f-display);
  letter-spacing: .004em;
  text-transform: uppercase;
}
.cta__text p {
  max-width: 30em;
  margin-top: 18px;
  color: var(--on-ink-2);
}


/* 19. Работы --------------------------------------------------------------- */

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 18px 0 20px;
  border-top: 2px solid var(--ink);
}
.filters .chip {
  min-height: 40px;
  padding: 6px 14px;
  font-size: 15px;
}
.filters .chip:hover { background: var(--mark); }
.filters .chip[aria-pressed="true"] {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}
.chip__n {
  margin-left: 8px;
  font: 400 12px/1 var(--f-mono);
  opacity: .7;
}

.works { border-top: 1px solid var(--ink); }
/* Без фильтра список открывает та же жирная линейка, что и остальные списки */
.works:first-child { border-top-width: 2px; }

.work {
  padding: 34px 0 60px;
  border-bottom: 1px solid var(--ink);
  scroll-margin-top: calc(var(--top-h) + 12px);
}
.work:last-child { border-bottom: 0; }

/* Строка «название — цена», как в прайсе */
.work__top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 10px 40px;
}
.work__meta {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  font: 400 13px/1.4 var(--f-mono);
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.work__meta span:first-child {
  font-weight: 600;
  color: var(--ink);
}
.work__title {
  font: 800 clamp(36px, 4.7vw, 66px)/.95 var(--f-display);
  letter-spacing: .004em;
  text-transform: uppercase;
}
/* Пояснение под названием: «Naloger.ru» — «Налоговый портал и онлайн-калькуляторы» */
.work__sub {
  max-width: 34em;
  margin-top: 12px;
  font-size: 19px;
  line-height: 1.4;
}
.work__price {
  text-align: right;
  white-space: nowrap;
}
.work__price b {
  display: inline-block;
  font: 800 clamp(36px, 4.7vw, 66px)/.95 var(--f-display);
  box-shadow: inset 0 -.36em 0 var(--mark);
}
.work__price span {
  display: block;
  margin-top: 8px;
  font: 400 13px/1.3 var(--f-mono);
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.work__grid,
.work__layout {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  align-items: start;
  gap: clamp(28px, 4vw, 56px);
}
.work__grid { margin-top: 30px; }

.work__layout {
  grid-template-areas:
    "name info"
    "shot body";
  row-gap: 20px;
}
.work__layout--text {
  grid-template-areas:
    "name info"
    "body body";
}
.work__layout > .work__name { grid-area: name; }
.work__layout > .work__shot { grid-area: shot; }
.work__layout > .work__body { grid-area: body; }
.work__info {
  grid-area: info;
  align-self: end;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px 16px;
}
.work__info .work__price { margin-inline-start: auto; }

.work__story > div {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 4px 16px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}
.work__story > div:first-child {
  padding-top: 0;
  border-top: 0;
}
.work__story dt {
  padding-top: 4px;
  font: 400 12px/1.5 var(--f-mono);
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.work__story dd {
  font-size: 16px;
  line-height: 1.5;
}

/* Состав сметы строками с отточием */
.lines {
  display: grid;
  gap: 6px;
  padding-top: 3px;
  font: 400 13px/1.5 var(--f-mono);
}
.lines li {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.lines b {
  font-weight: 600;
  white-space: nowrap;
}

/* «Что сделано» списком: раздел жирным, пояснение следом */
.work__list {
  display: grid;
  gap: 8px;
}
.work__list li {
  position: relative;
  padding-left: 18px;
}
.work__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: .58em;
  width: 7px;
  height: 7px;
  background: var(--mark);
  outline: 1.5px solid var(--ink);
  outline-offset: -1px;
}
.work__list b { font-weight: 600; }

/* Стек проекта: ярлыки моноширинным */
.work__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-top: 2px;
}
.work__tags li {
  padding: 4px 8px 3px;
  border: 1px solid var(--ink-3);
  border-radius: 3px;
  font: 400 12px/1.3 var(--f-mono);
  white-space: nowrap;
}

/* Проект без снимков: текст во всю ширину */
.work__grid--text { grid-template-columns: minmax(0, 1fr); }
.work__grid--text .work__body,
.work__layout--text .work__body { max-width: 760px; }

.work__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 24px;
  margin-top: 22px;
}

/* Рамки для снимков: окно браузера, окно программы, «стол» с телефонами или листами */
.shot {
  position: relative;
  border: 1.5px solid var(--ink);
  border-radius: 8px;
  background: var(--sheet);
  overflow: hidden;
}
.shot__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 12px;
  border-bottom: 1.5px solid var(--ink);
  background: var(--paper);
  font: 400 11px/1 var(--f-mono);
  color: var(--ink-2);
}
.shot__bar i {
  flex: none;
  width: 9px;
  height: 9px;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
}
.shot__bar span {
  margin-left: 8px;
  padding: 4px 10px 3px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--sheet);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* Значок сайта и адрес страницы в «адресной строке» */
.shot__bar .shot__url {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.shot__bar em {
  font-style: normal;
  overflow: hidden;
  text-overflow: ellipsis;
}
.shot__fav {
  flex: none;
  width: 14px;
  height: 14px;
  object-fit: contain;
}
.shot__bar--win span {
  margin: 0 auto 0 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink);
}
.shot__bar--win i { border-radius: 1px; }

.shot__view {
  display: block;
  aspect-ratio: 16 / 10;
}
.shot__view > img,
.shot__view > svg,
.phone > img,
.phone > svg,
.paper > img,
.paper > svg {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 0;
}

/* Настоящий снимок экрана: по нажатию открывается целиком */
a.shot__view {
  background: var(--paper-2);
  cursor: zoom-in;
}
.shot__view > img { transition: opacity .2s; }
.shot__view > img.is-loading { opacity: .35; }

/* Экраны проекта: номера под снимком и подпись выбранного экрана */
.shots {
  display: flex;
  align-items: flex-start;
  gap: 10px 16px;
  margin-top: 12px;
}
.shots__nav {
  flex: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-width: 100%;
}
.shots__btn {
  display: grid;
  place-items: center;
  min-width: 34px;
  height: 34px;
  padding: 0 6px;
  border: 1.5px solid var(--ink);
  border-radius: var(--r);
  font: 600 13px/1 var(--f-mono);
  transition: background-color .12s, color .12s;
}
.shots__btn:hover { background: var(--mark); }
.shots__btn[aria-pressed="true"] {
  background: var(--ink);
  color: var(--paper);
}
.shots__cap {
  flex: 1 1 12em;
  min-width: 0;
  padding-top: 8px;
  font: 400 13px/1.4 var(--f-mono);
  color: var(--ink-2);
}

.shot--desk {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5%;
  padding: 5.5% 6%;
  background: var(--paper-2);
}
.phone {
  flex: 0 1 27%;
  aspect-ratio: 9 / 19;
  border: 1.5px solid var(--ink);
  border-radius: 16px;
  background: var(--sheet);
  overflow: hidden;
}
.paper {
  flex: 0 1 35%;
  aspect-ratio: 105 / 148;
  border: 1.5px solid var(--ink);
  background: var(--sheet);
  overflow: hidden;
}
.paper + .paper { transform: translateY(5%) rotate(2deg); }

/* Схемы-заглушки вместо снимков: три тона и маркер */
.wire .w0 { fill: var(--ink); }
.wire .w1 { fill: #CFCBBE; }
.wire .w2 { fill: var(--paper-2); }
.wire .w3 { fill: var(--mark); }
.wire .w4 { fill: var(--sheet); }

/* Образец оформления: штамп поверх снимка */
.stamp--sample {
  position: absolute;
  top: 12%;
  right: 5%;
  z-index: 1;
  background: rgba(242, 240, 233, .94);
  font-size: 15px;
  transform: rotate(-9deg);
  opacity: 1;
}


/* 20. Блог и статья --------------------------------------------------------- */

.posts { border-top: 2px solid var(--ink); }
.post { border-bottom: 1px solid var(--ink); }
.posts--more .post:last-child { border-bottom: 0; }

.post a {
  display: grid;
  grid-template-columns: 176px minmax(0, 1fr) 48px;
  align-items: start;
  gap: 10px 40px;
  padding: 28px 0 34px;
  text-decoration: none;
}
.post__meta {
  display: grid;
  gap: 3px;
  padding-top: 6px;
  font: 400 13px/1.5 var(--f-mono);
  color: var(--ink-2);
}
.post__meta b {
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--ink);
}
.post__title {
  font: 800 clamp(32px, 3.6vw, 48px)/1 var(--f-display);
  letter-spacing: .004em;
  text-transform: uppercase;
}
.post__title span {
  background: linear-gradient(var(--mark), var(--mark)) 0 92% / 0 .36em no-repeat;
  -webkit-box-decoration-break: clone;
          box-decoration-break: clone;
  transition: background-size .25s;
}
.post a:hover .post__title span { background-size: 100% .36em; }
.post__lead {
  max-width: 60ch;
  margin-top: 12px;
  font-size: 17px;
  line-height: 1.5;
  color: var(--ink-2);
}
.post__go {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1.5px solid var(--ink);
  border-radius: var(--r);
  transition: background-color .15s;
}
.post__go .ico { transition: transform .15s; }
.post a:hover .post__go { background: var(--mark); }
.post a:hover .post__go .ico { transform: translateX(3px); }

.post--lead a { padding: 36px 0 44px; }
.post--lead .post__title { font-size: clamp(40px, 5.6vw, 78px); line-height: .95; }
.post--lead .post__lead {
  margin-top: 16px;
  font-size: 19px;
  color: var(--ink);
}

/* Статья */
.ahead { padding-top: clamp(28px, 4vw, 52px); }
.ahead__title {
  max-width: 15em;
  margin-top: 18px;
  font: 800 clamp(40px, 6vw, 84px)/.93 var(--f-display);
  letter-spacing: .004em;
  text-transform: uppercase;
}
.ahead__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 24px;
  margin-top: 22px;
  font: 400 13px/1.5 var(--f-mono);
  color: var(--ink-2);
}
.ahead__meta b {
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--ink);
}
.ahead__lead {
  max-width: 36em;
  margin-top: 20px;
  font-size: 21px;
  line-height: 1.5;
}

.ahead__cover {
  max-width: 940px;
  margin-top: 30px;
  border: 1.5px solid var(--ink);
  border-radius: 8px;
  overflow: hidden;
}
.ahead__cover img {
  display: block;
  width: 100%;
  height: auto;
}

.article__grid {
  display: grid;
  grid-template-columns: 230px minmax(0, 700px);
  gap: 24px clamp(40px, 7vw, 112px);
  margin-top: 40px;
  padding: 30px 0 var(--sec);
  border-top: 2px solid var(--ink);
}
/* Текст всегда во второй колонке — и когда содержание скрыто (в статье меньше двух подзаголовков) */
.article__grid > .prose { grid-column: 2; }

.toc {
  position: sticky;
  top: calc(var(--top-h) + 24px);
  align-self: start;
  font-size: 15px;
  line-height: 1.35;
}
.toc__title {
  margin-bottom: 14px;
  font: 400 12px/1.4 var(--f-mono);
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.toc ol {
  counter-reset: toc;
  display: grid;
  gap: 11px;
}
.toc li {
  counter-increment: toc;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
}
.toc li::before {
  content: counter(toc, decimal-leading-zero);
  padding-top: 2px;
  font: 400 12px/1.4 var(--f-mono);
  color: var(--ink-2);
}
.toc a { text-decoration: none; }
.toc a:hover {
  text-decoration: underline;
  text-decoration-color: var(--mark);
  text-decoration-thickness: 3px;
  text-underline-offset: 4px;
}

.prose {
  font-size: 18px;
  line-height: 1.65;
}
.prose > * + * { margin-top: 1.1em; }
.prose h2 {
  margin-top: 1.7em;
  font: 800 clamp(30px, 3.4vw, 42px)/1 var(--f-display);
  letter-spacing: .004em;
  text-transform: uppercase;
  scroll-margin-top: calc(var(--top-h) + 20px);
}
.prose h2:first-child { margin-top: 0; }
.prose h3 {
  margin-top: 1.5em;
  font: 600 21px/1.3 var(--f-text);
}
.prose h2 + *,
.prose h3 + * { margin-top: .7em; }

.prose a {
  text-decoration-thickness: 1.5px;
  text-underline-offset: 4px;
}
.prose a:hover {
  text-decoration-color: var(--mark);
  text-decoration-thickness: 3px;
}
.prose mark {
  padding: 0 .12em;
  background: linear-gradient(transparent 52%, var(--mark) 52%);
  color: inherit;
}

.prose ul,
.prose ol {
  display: grid;
  gap: .55em;
}
.prose ul > li {
  position: relative;
  padding-left: 26px;
}
.prose ul > li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: .62em;
  width: 9px;
  height: 9px;
  background: var(--mark);
  outline: 1.5px solid var(--ink);
  outline-offset: -1px;
}
.prose ol { counter-reset: step; }
.prose ol > li {
  counter-increment: step;
  position: relative;
  padding-left: 42px;
}
.prose ol > li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: .12em;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1.5px solid var(--ink);
  border-radius: var(--r);
  font: 600 13px/1 var(--f-mono);
}

/* «Коротко» в начале статьи и заметка на полях */
.tldr {
  padding: 22px 26px 26px;
  border: 1.5px solid var(--ink);
  border-radius: var(--r);
  background: var(--sheet);
}
.tldr__title {
  margin-bottom: 14px;
  font: 600 12px/1.4 var(--f-mono);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.note {
  padding: 16px 22px 18px;
  border-left: 5px solid var(--mark);
  background: var(--paper-2);
  font-size: 17px;
  line-height: 1.55;
}

.table-wrap { overflow-x: auto; }
.prose table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: 16px;
  line-height: 1.4;
}
.prose th {
  padding: 0 14px 9px 0;
  border-bottom: 1.5px solid var(--ink);
  font: 400 12px/1.4 var(--f-mono);
  letter-spacing: .07em;
  text-align: left;
  text-transform: uppercase;
  color: var(--ink-2);
}
.prose td {
  padding: 13px 14px 13px 0;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.prose td:first-child { font-weight: 600; }
.prose td:last-child,
.prose th:last-child {
  padding-right: 0;
  text-align: right;
  white-space: nowrap;
}

.prose .sheet-wrap {
  max-width: 400px;
  margin-block: 1.7em;
}
/* Строки сметы-примера — не пункты списка статьи: без маркеров и отступа под них */
.prose .sheet__lines { gap: 8px; }
.prose .sheet__lines > li { padding-left: 6px; }
.prose .sheet__lines > li::before { content: none; }

.article__end {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
  margin-top: 2.6em;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.more { padding-bottom: var(--sec); }
.more__title {
  margin-bottom: 18px;
  font: 400 13px/1.4 var(--f-mono);
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--ink-2);
}

/* Длинные заголовки делятся на строки поровну, без одинокого слова в конце */
.head__title,
.work__title,
.post__title,
.ahead__title,
.cta__title,
.prose h2 { text-wrap: balance; }

/* Моноширинные подписи новых блоков — с тем же поджатым пробелом */
.crumbs,
.phead__stat,
.work__meta,
.work__price span,
.work__story dt,
.lines,
.post__meta,
.ahead__meta,
.toc__title,
.tldr__title,
.more__title,
.shot__bar,
.shots__cap,
.work__tags,
.prose th { word-spacing: -.22em; }

@media (max-width: 980px) {
  .phead__row { grid-template-columns: minmax(0, 1fr); }
  .phead__stat { text-align: left; }

  .cta { grid-template-columns: minmax(0, 1fr); }

  .work__grid, .work__layout { grid-template-columns: minmax(0, 1fr); }
  .work__layout { grid-template-areas: "name" "shot" "info" "body"; }
  .work__layout--text { grid-template-areas: "name" "info" "body"; }

  .post a { grid-template-columns: 150px minmax(0, 1fr) 48px; gap: 10px 28px; }

  .article__grid { grid-template-columns: minmax(0, 1fr); }
  .article__grid > .prose { grid-column: auto; }
  .toc {
    position: static;
    padding-bottom: 22px;
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 720px) {
  .phead__lead { font-size: 17px; }

  .work { padding: 28px 0 44px; }
  .work__top { grid-template-columns: minmax(0, 1fr); }
  .work__price { text-align: left; }
  .work__grid { margin-top: 24px; }
  .work__cta .btn { width: 100%; }
  .work__sub { font-size: 17px; }
  .shots { flex-direction: column; gap: 4px; }
  .shots__cap { flex: none; padding-top: 4px; }
  .shot__bar { height: 26px; }
  .phone { border-radius: 11px; }
  .stamp--sample { font-size: 12px; padding: 7px 12px 6px; }

  .post a {
    grid-template-columns: minmax(0, 1fr);
    padding: 24px 0 28px;
  }
  .post__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 2px 16px;
    padding-top: 0;
  }
  .post__go { display: none; }

  .ahead__lead { font-size: 18px; }
  .prose { font-size: 17px; }
  .tldr { padding: 18px 18px 20px; }
}


/* 21. Адаптив главной страницы и чата ---------------------------------------- */

@media (max-width: 1180px) {
  .nav { gap: 20px; }
  .group, .incl { grid-template-columns: 220px minmax(0, 1fr); gap: 16px 40px; }
  .row { grid-template-columns: minmax(0, 1fr) 104px 170px 48px; gap: 8px 18px; }
  .row__price { font-size: 38px; }
  /* На узком экране от кнопки остаётся стрелка, подпись читают скринридеры */
  .row__go {
    justify-content: center;
    width: 48px;
    padding: 0;
    font-size: 0;
    gap: 0;
  }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 40px; }
}

@media (max-width: 980px) {
  :root { --top-h: 60px; }

  .top__in { gap: 12px; }
  .top__cta { margin-left: auto; }
  .burger { display: grid; }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    gap: 0;
    margin: 0;
    padding: 6px var(--pad) 18px;
    border-bottom: 1.5px solid var(--ink);
    background: var(--paper);
    font-size: 19px;
  }
  .top.is-menu .nav { display: flex; }
  .nav a {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
    background: none;
  }
  .nav-services { border-bottom: 1px solid var(--line); }
  .nav-services summary { padding: 14px 0; }
  .nav-services__menu { position: static; min-width: 0; padding: 0 0 8px 14px; border: 0; border-radius: 0; box-shadow: none; background: transparent; }
  .nav-services__menu a { padding: 10px 0; border: 0; font-size: 16px; }
  .nav a:last-child { border-bottom: 0; }

  .hero__grid { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .hero__title { font-size: clamp(38px, 11.1vw, 92px); }
  .hero__side { justify-self: start; max-width: 460px; transform: none; }

  .head { grid-template-columns: minmax(0, 1fr); }
  .head__note { max-width: 44ch; padding-bottom: 0; }

  .group, .incl { grid-template-columns: minmax(0, 1fr); }
  .group__side { position: static; }
  .group__text { max-width: 52ch; }

  .brief { grid-template-columns: minmax(0, 1fr); }
  .brief__sheet { max-width: 420px; transform: none; }
  .brief__go { transform: none; }

  .terms { grid-template-columns: minmax(0, 1fr); }
  .term:nth-child(2) { border-top: 1px solid var(--line); padding-top: 28px; }
  .stamp { justify-self: start; margin: 8px 0 4px 6px; }

  .faq { grid-template-columns: minmax(0, 1fr); }
  .head--side { position: static; }

  /* Чат на весь экран, смета — выезжающим листом */
  .chat {
    width: 100vw;
    height: 100vh;
    height: var(--vvh, 100dvh);
    margin: 0;
    border: 0;
    border-radius: 0;
  }
  .chat[open] { grid-template-columns: minmax(0, 1fr); }

  .chat__sum {
    flex: none;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px 10px 20px;
    border-bottom: 1.5px solid var(--ink);
    background: var(--mark);
    font-size: 14px;
    text-align: left;
  }
  .chat__sum-label {
    font: 400 12px/1 var(--f-mono);
    letter-spacing: .07em;
    text-transform: uppercase;
  }
  .chat__sum-val {
    flex: 1;
    min-width: 0;
    font: 800 24px/1 var(--f-display);
    text-align: right;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .chat__sum .ico { transition: transform .2s; }
  .chat.is-sheet .chat__sum .ico { transform: rotate(180deg); }

  .chat__side {
    position: absolute;
    inset: var(--side-top, 118px) 0 0 0;
    z-index: 2;
    padding: 22px 20px 28px;
    border-left: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity .18s ease, visibility 0s .18s;
  }
  .chat.is-sheet .chat__side {
    opacity: 1;
    visibility: visible;
    transition: opacity .18s ease;
  }
  .chat.is-sheet .chat__side .sheet-wrap { animation: msg-in .22s ease-out; }
  .chat__side .sheet-wrap { max-width: 440px; margin-inline: auto; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }

  .hero__lead { font-size: 17px; }
  .hero__cta .btn { width: 100%; }
  .hero__facts { flex-direction: column; gap: 8px; margin-top: 32px; }

  .group { padding: 28px 0 32px; }
  .group__name { font-size: 40px; }

  .row {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "main main"
      "term price"
      "go go";
    align-items: end;
    gap: 14px 16px;
    padding: 22px 0 24px;
  }
  .row:first-child { padding-top: 8px; }
  .row__main { grid-area: main; }
  .row__term { grid-area: term; }
  .row__price { grid-area: price; font-size: 40px; }
  .row__go {
    grid-area: go;
    justify-content: space-between;
    width: 100%;
    padding: 0 14px 0 16px;
    font-size: 15px;
    gap: 8px;
  }

  .incl { padding: 24px 20px; }
  .incl__list { grid-template-columns: minmax(0, 1fr); }

  .starter { padding: 20px 18px 20px; }
  .starter__msg { font-size: 18px; }
  .starter__chips .chip { flex: 1 1 auto; }
  .how { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .how li { display: grid; grid-template-columns: 34px minmax(0, 1fr); column-gap: 8px; }
  .how li::before { grid-row: span 2; margin: 5px 0 0; }

  .steps { grid-template-columns: minmax(0, 1fr); row-gap: 0; }
  .step {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    column-gap: 14px;
    padding: 20px 0 22px;
    border-left: 0;
    border-top: 1px solid var(--ink);
  }
  .step__n { grid-row: span 2; font-size: 52px; }
  .step__name { margin-top: 2px; }

  .term { grid-template-columns: 44px minmax(0, 1fr); }
  .term__name { font-size: 34px; }

  .qa summary { font-size: 18px; gap: 16px; padding: 18px 0; }
  .qa p { padding-right: 0; }

  .contacts { align-items: stretch; }
  .contacts .btn { width: 100%; }


  .chat__head { padding: 10px 8px 10px 16px; }
  .chat__tool span { display: none; }
  .chat__sum { padding-left: 16px; }
  .chat__log { padding: 16px; }
  .msg { max-width: 90%; }
  .chat__tray { padding: 4px 16px 12px; max-height: 52%; }
  .chat__tray--cols { grid-template-columns: minmax(0, 1fr); }
  .chat__form { padding: 10px 16px max(14px, env(safe-area-inset-bottom)); }
  .card__btns .btn { flex-basis: 100%; }

  .fab { min-height: 48px; padding: 0 16px 0 13px; }
  .fab__more { display: none; }
}

@media (max-width: 420px) {
  .top__cta { padding: 0 14px; }
  .logo { font-size: 30px; }
  .short__name { font-size: 16px; }
  .short__price { font-size: 28px; }
  .sheet { padding-inline: 18px; }
  .sheet__total dd { font-size: 30px; }
  .card__sum b { font-size: 30px; }
}


/* 22. Движение и печать ---------------------------------------------------- */

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

@media print {
  .top, .fab, .chat, .skip, .row__go, .hero__cta, .starter, .brief__go, .filters, .work__cta, .toc { display: none !important; }
  .sec--ink, .sec--mark, .foot { background: none; color: var(--ink); }
  .sec { padding: 24px 0; }
  .group__side { position: static; }
  .qa p { display: block; }
}

/* Профиль, избранные работы и форма заявки */
.landing-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr);
  align-items: start;
  gap: clamp(24px, 5vw, 72px);
}

.developer {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(320px, .82fr);
  border: 1.5px solid var(--ink);
  background: var(--sheet);
}
.featured h3 {
  font-size: clamp(20px, 2.3vw, 30px);
  line-height: 1.15;
}

.developer__main { display: flex; flex-direction: column; align-items: flex-start; padding: clamp(24px, 3.5vw, 48px); }
.developer__eyebrow { font-size: 12px; font-weight: 800; letter-spacing: .12em; }
.developer__main h3 { max-width: 20ch; margin-top: 18px; font-size: clamp(27px, 3.2vw, 43px); line-height: 1.15; letter-spacing: -.035em; }
.developer__desc { max-width: 54ch; margin-top: 20px; }
.developer__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; margin-top: auto; padding-top: 30px; }
.developer__aside { display: flex; flex-direction: column; padding: clamp(24px, 3vw, 40px); background: var(--ink); color: var(--paper); }
.developer__aside-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-bottom: 20px; border-bottom: 1px solid #62615d; }
.developer__aside-head span { color: var(--on-ink-2); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.developer__aside-head b { white-space: nowrap; font-size: 19px; }
.developer__benefits { margin: 0; padding: 0; list-style: none; }
.developer__benefits li { display: grid; grid-template-columns: 31px 1fr; gap: 13px; padding: 20px 0; border-bottom: 1px solid #565651; }
.developer__benefits span { color: var(--on-ink-2); font-size: 12px; }
.developer__benefits strong { font-size: 18px; line-height: 1.35; }
.developer__tech { margin-top: auto; padding-top: 24px; color: var(--on-ink-2); font-size: 13px; }

.featured {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 24px);
}

.featured__item {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--sheet);
}

.featured__image { display: block; }
.featured__image img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: top;
  border-bottom: 1px solid var(--line);
}

.featured__body { padding: 16px; }
.featured__body p { margin-top: 7px; font-size: 14px; color: var(--ink-2); }
.featured__body b { color: var(--ink); }
.featured__body a:hover { text-decoration: underline; }

.service-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  margin: 0 0 24px;
}

.landing-hero .hero__title { margin: 16px 0; }
.landing-hero .hero__facts { margin: 20px 0; }
.landing-hero .lead-form { align-self: center; }
#service-prices-title { scroll-margin-top: 16px; }
#service-prices-title ~ .head__note { max-width: 48ch; }

.lead-form {
  display: grid;
  justify-items: start;
  gap: 14px;
  width: min(100%, 600px);
  padding: clamp(16px, 3vw, 26px);
  border: 1.5px solid var(--ink);
  border-radius: var(--r);
  background: var(--sheet);
  scroll-margin-top: 8px;
}

.chat-lead {
  display: grid;
  justify-items: start;
  gap: 10px;
  margin-top: 14px;
}

.lead-form__field { display: grid; gap: 4px; width: 100%; font-weight: 600; }
.lead-form__field input, .lead-form__field textarea {
  width: 100%;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--ink-2);
  border-radius: var(--r);
  background: var(--sheet);
  color: var(--ink);
  font: 400 16px/1.4 var(--f-text);
}
.lead-form__field textarea { resize: vertical; }

.lead-consent {
  display: grid;
  justify-items: start;
  gap: 4px;
  font-size: 14px;
  line-height: 1.4;
}

.lead-consent label { display: flex; align-items: flex-start; gap: 8px; cursor: pointer; }
.lead-consent input { flex: none; margin: 2px 0 0; width: 17px; height: 17px; accent-color: var(--ink); }
.lead-consent .link { margin-left: 25px; font-size: inherit; }
.lead-form__status, .lead-error { font-size: 14px; font-weight: 600; }
.lead-form__status:empty { display: none; }
.lead-error { margin: 0 0 14px; }
.contact-channels { margin-top: 22px; }

.landing-prices .row { grid-template-columns: minmax(0, 1fr) auto 138px; }

@media (max-width: 960px) {
  .featured { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 735px) {
  .developer, .landing-hero { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 490px) {
  .developer__actions { width: 100%; }
  .developer__actions .btn { width: 100%; }
  .featured { grid-template-columns: minmax(0, 1fr); }
  .landing-prices .row { grid-template-columns: minmax(0, 1fr) auto; }
  .landing-prices .row__main { grid-column: 1 / -1; }
  .landing-prices .row__price { text-align: left; }
}
