/* ── 00-fonts.css ── */
/* Onest (SIL OFL 1.1), Google Fonts v11 — хранится на сайте, без запросов к Google */
/* cyrillic-ext */
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(fonts/onest-cyrillic-ext.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(fonts/onest-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* latin-ext */
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(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+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ── 01-tokens.css ── */
/* Токены темы. Палитра снята с макетов заказчика (папка «разбор»): глубокий тёмно-синий,
   синий для действий, красный — срочное и мотив Кирилла.
   --accent — текст и линии; --fill — синяя заливка под белый текст;
   --stage — тёмно-синяя сцена первого экрана и диагностики, одна в обеих темах.
   Тема по умолчанию светлая: аудитория районного сервиса читает сайт с телефона на улице. */
:root {
  --bg: #F3F6FC;
  --bg2: #FFFFFF;
  --card: #FFFFFF;
  --text: #0A1A3F;
  --text2: #56628A;
  --line: #DCE3F1;
  --accent: #0B4FD8;
  --fill: #0B4FD8;
  --cta: #0B4FD8;
  --cta-ink: #FFFFFF;
  --red: #C8141E;
  --red-bg: #FCE6E6;
  --red-dot: #E0141E;
  --orange: #A04A08;
  --orange-bg: #FCF0E3;
  --orange-dot: #F08A12;
  --blue-bg: #EAF0FC;
  --stage: #000C24;
  --stage2: #0C3C7E;
  --stage-ink: #FFFFFF;
  --stage-ink2: rgba(237, 242, 252, .72);
  --stage-line: rgba(255, 255, 255, .16);
  --veil: 243 246 252;
  --snow: #0B4FD8;
  --sel: #D3E0FA;
  --scrim: rgba(10, 14, 24, .55);
  --tick: rgba(11, 79, 216, .5);
  --star-img: url("img/star-dark.svg");
  --star-op: .05;
  --logo-filter: none;

  --shadow: 0 1px 2px rgba(10, 26, 63, .05), 0 10px 28px -8px rgba(10, 26, 63, .14);
  --shadow-drawer: -24px 0 60px -20px rgba(10, 14, 24, .4);

  --font: 'Onest', system-ui, sans-serif;
  --radius-s: 7px;
  --radius: 9px;
  --radius-m: 12px;
  --radius-l: 14px;
  --radius-pill: 999px;

  --container: 1340px;
  --gutter: 48px;
  --section-y: 56px;
  --header-h: 76px;

  --ease-out: cubic-bezier(.2, .7, .2, 1);
  --t-fast: .18s;
  --t: .24s;
}

[data-theme="dark"] {
  --bg: #030E24;
  --bg2: #061430;
  --card: #0A1B3A;
  --text: #EDF2FC;
  --text2: #9DAED0;
  --line: #1C2F55;
  --accent: #6E9BFF;
  --red: #FF6B70;
  --red-bg: rgba(240, 68, 76, .16);
  --red-dot: #F0444C;
  --orange: #FFB15C;
  --orange-bg: rgba(240, 138, 18, .16);
  --blue-bg: rgba(110, 155, 255, .14);
  --veil: 3 14 36;
  --snow: #FFFFFF;
  --sel: #1E3566;
  --tick: rgba(141, 176, 255, .5);
  --star-img: url("img/star-light.svg");
  --star-op: .07;
  --logo-filter: brightness(0) invert(1);
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 10px 28px -8px rgba(0, 0, 0, .55);
  color-scheme: dark;
}

@media (max-width: 1180px) {
  :root { --gutter: 32px; }
}
@media (max-width: 980px) {
  :root { --header-h: 66px; }
}
@media (max-width: 720px) {
  :root { --gutter: 20px; --section-y: 40px; }
}

/* ── 02-base.css ── */
/* База: сброс, типографика, браузерные поверхности. Единственное место, где можно
   стилизовать теги — всё остальное через классы блоков. */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
  scrollbar-color: var(--line) transparent;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-wrap: pretty;
  overflow-x: hidden;
}

h1, h2, h3, h4 { margin: 0; font-family: var(--font); letter-spacing: -.03em; }
p, ul, ol, figure, blockquote { margin: 0; }
img, svg, video { max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; } /* hidden обязан скрывать и блоки с display:flex — исключение из запрета !important */

a, button {
  transition: background-color var(--t-fast) ease-out, border-color var(--t-fast) ease-out,
    color var(--t-fast) ease-out, opacity var(--t-fast) ease-out,
    transform .2s var(--ease-out), box-shadow var(--t) ease-out;
}

/* Браузерные поверхности тонируем от палитры — дефолты выдают «собранную» страницу */
::selection { background: var(--sel); color: var(--text); }
input, textarea { caret-color: var(--cta); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-thumb { background: var(--line); border-radius: 8px; border: 3px solid var(--bg); }
::-webkit-scrollbar-track { background: transparent; }

.icon {
  display: inline-block;
  flex: none;
  width: 1em;
  height: 1em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: -.125em;
}

/* Утилиты — вне БЭМ, их мало, список здесь */
.u-num { font-variant-numeric: tabular-nums; }
.u-visually-hidden {
  position: absolute !important; /* утилита скрытия: должна перебивать позиционирование блока */
  width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.u-nowrap { white-space: nowrap; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important; /* уважение к настройке системы важнее анимаций блоков */
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* ── blocks/article-card.css ── */
/* Карточка статьи в списке: картинка 16:10, дата, заголовок, начало текста.
   Мешается с .card и .card--lift. Нет картинки — звезда на синем вместо пустого места */
.article-card { display: flex; flex-direction: column; color: inherit; }
.article-card__media { display: block; aspect-ratio: 16 / 10; background: var(--blue-bg); }
.article-card__media:empty::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--star-img) center / 72px 72px no-repeat;
  opacity: .2;
}
.article-card__body { display: flex; flex: 1; flex-direction: column; }
.article-card__title { margin-top: 8px; }
.article-card__text {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}
.article-card__more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 16px;
  font-size: 15px;
  font-weight: 600;
  color: var(--accent);
}
.article-card__icon { width: 16px; height: 16px; transition: transform var(--t) var(--ease-out); }
.article-card:hover .article-card__icon { transform: translateX(3px); }

/* ── blocks/article-list.css ── */
/* Короткий список статей: заголовок-ссылка и дата, строки разделены линией */
.article-list { padding: 0; list-style: none; }
.article-list__item { padding: 12px 0; border-top: 1px solid var(--line); }
.article-list__item:first-child { padding-top: 0; border-top: 0; }
.article-list__link { font-size: 15px; font-weight: 500; line-height: 1.4; color: var(--text); }
.article-list__link:hover { color: var(--accent); }
.article-list__date { display: block; margin-top: 4px; font-size: 13px; color: var(--text2); }

/* ── blocks/article-nav.css ── */
/* Соседние статьи по дате: предыдущая слева, следующая справа */
.article-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.article-nav:empty { display: none; }
.article-nav__link {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 20px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  color: inherit;
}
.article-nav__link:hover { border-color: var(--accent); }
.article-nav__link--next { grid-column: 2; align-items: flex-end; text-align: right; }
.article-nav__label { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text2); }
.article-nav__title { font-size: 16px; font-weight: 600; line-height: 1.35; }
.article-nav__icon { width: 15px; height: 15px; }
.article-nav__icon--back { transform: scaleX(-1); }

@media (max-width: 720px) {
  .article-nav { grid-template-columns: 1fr; }
  .article-nav__link--next { grid-column: auto; }
}

/* ── blocks/article.css ── */
/* Страница статьи: текст слева, справа — свежие статьи. На узком экране список уходит под текст */
.article__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 64px;
  align-items: start;
}
.article__date { display: block; font-size: 14px; color: var(--text2); }
.article__title { margin-top: 10px; }
.article__figure { margin-top: 28px; }
.article__image { display: block; width: 100%; max-height: 520px; object-fit: cover; border-radius: var(--radius-l); }
.article__content { margin-top: 32px; }
.article__nav { margin-top: 48px; }
.article__cta { margin-top: 40px; }
.article__aside { position: sticky; top: calc(var(--header-h) + 24px); }
.article__aside-title { font-size: 17px; font-weight: 600; letter-spacing: -.01em; }
.article__list { margin-top: 14px; }
.article__all {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
  font-size: 15px;
  font-weight: 600;
  color: var(--accent);
}
.article__all-icon { width: 16px; height: 16px; }

@media (max-width: 1180px) {
  .article__layout { grid-template-columns: 1fr; gap: 40px; }
  .article__aside { position: static; }
}

/* ── blocks/articles.css ── */
/* Страница «Статьи»: сетка карточек, постраничная навигация, призыв к записи */
.articles__grid { margin-top: 36px; }
.articles__pager { margin-top: 40px; }
.articles__cta { margin-top: 48px; }

/* ── blocks/brand-card.css ── */
/* Марка на странице «Автомобили»: фото и начало текста со страницы марки, запись с названием марки.
   Мешается с .card; карточки остальных марок скрыты и открываются выбором в колонке слева */
.brand-card { overflow: hidden; }
.brand-card__media { aspect-ratio: 21 / 9; background: var(--blue-bg); }
.brand-card__image { display: block; width: 100%; height: 100%; object-fit: cover; }
.brand-card__body { padding: 36px 44px 40px; }
.brand-card__title:focus { outline: none; }
.brand-card__text { max-width: 660px; margin-top: 18px; font-size: 17px; line-height: 1.65; color: var(--text2); }
.brand-card__more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-size: 15px;
  font-weight: 600;
  color: var(--accent);
}
.brand-card__more-icon { width: 16px; height: 16px; }
.brand-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

@media (max-width: 720px) {
  .brand-card__body { padding: 24px 18px; }
  .brand-card__actions { display: grid; }
}

/* ── blocks/brand-page.css ── */
/* Страница марки: текст марки слева, справа запись с названием марки; внизу — все марки */
.brand-page__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 64px;
  align-items: start;
}
.brand-page__content { margin-top: 28px; }
.brand-page__aside { position: sticky; top: calc(var(--header-h) + 24px); }
.brand-page__aside-title { font-size: 19px; font-weight: 600; line-height: 1.3; letter-spacing: -.01em; }
.brand-page__aside-text { margin-top: 8px; font-size: 15px; line-height: 1.6; color: var(--text2); }
.brand-page__actions { display: grid; gap: 10px; margin-top: 20px; }
.brand-page__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
  font-size: 15px;
  font-weight: 600;
  color: var(--accent);
}
.brand-page__link-icon { width: 16px; height: 16px; }
.brand-page__rail { margin-top: 28px; }

@media (max-width: 1180px) {
  .brand-page__layout { grid-template-columns: 1fr; gap: 40px; }
  .brand-page__aside { position: static; max-width: 520px; }
}

/* ── blocks/brand-rail.css ── */
/* Марки по группам: подпись группы и кнопки-ссылки на страницы марок. Выбранная марка — aria-current.
   --wide — группы в несколько колонок (внизу страницы марки) */
.brand-rail__group + .brand-rail__group { margin-top: 22px; }
.brand-rail__title { margin-bottom: 10px; font-size: 14px; color: var(--text2); }
.brand-rail__list { display: flex; flex-wrap: wrap; gap: 6px; padding: 0; list-style: none; }
.brand-rail__chip {
  display: inline-block;
  padding: 8px 13px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--text2);
}
.brand-rail__chip:hover { border-color: var(--accent); color: var(--text); }
.brand-rail__chip[aria-current] { background: var(--fill); border-color: var(--fill); color: var(--cta-ink); }

.brand-rail--wide { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 40px; }
.brand-rail--wide .brand-rail__group + .brand-rail__group { margin-top: 0; }

@media (max-width: 980px) {
  .brand-rail--wide { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .brand-rail--wide { grid-template-columns: 1fr; gap: 22px; }
}

/* ── blocks/btn.css ── */
/* Кнопка. Главное действие — синяя заливка, второстепенное — контур */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 22px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  text-align: center;
  cursor: pointer;
}
.btn--primary { background: var(--cta); color: var(--cta-ink); }
.btn--primary:hover { opacity: .9; }
.btn--ghost { background: transparent; border-color: var(--line); color: var(--text); }
.btn--ghost:hover { border-color: var(--accent); }
.btn--on-stage { background: transparent; border-color: var(--stage-line); color: var(--stage-ink); }
.btn--on-stage:hover { border-color: var(--stage-ink); }
.btn--lg { padding: 17px 26px; border-radius: 10px; font-size: 17px; }
.btn--block { display: flex; width: 100%; }
.btn--wrap { white-space: normal; }
.btn[disabled], .btn[aria-busy="true"] { opacity: .6; cursor: progress; }

.btn__icon { width: 18px; height: 18px; }

/* ── blocks/card.css ── */
/* Карточка: белая плашка с линией и мягкой тенью. Внутренние отступы задаёт модификатор */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow);
}
.card--pad { padding: 24px 26px; }
.card--pad-l { padding: 32px 36px; }
.card--flat { box-shadow: none; }
.card--link { display: block; color: inherit; }
.card--lift { transition: transform var(--t) var(--ease-out), border-color var(--t-fast) ease-out, box-shadow .26s ease-out; }
.card--lift:hover { transform: translateY(-3px); border-color: var(--accent); }

.card__media { position: relative; overflow: hidden; border-radius: var(--radius-m) var(--radius-m) 0 0; }
.card__media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease-out); }
.card--lift:hover .card__media img { transform: scale(1.05); }
.card__body { padding: 22px 24px 24px; }
.card__meta { font-size: 13px; color: var(--text2); }
.card__text { margin-top: 10px; font-size: 15px; line-height: 1.6; color: var(--text2); }
.card__more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-size: 15px;
  font-weight: 600;
  color: var(--accent);
}

@media (max-width: 720px) {
  .card--pad-l { padding: 24px 18px; }
}

/* ── blocks/cars.css ── */
/* Страница «Автомобили»: слева колонка марок, справа карточка выбранной марки */
.cars__more { margin-top: 16px; }
.cars__table { margin-top: 28px; }

/* ── blocks/chip.css ── */
/* Кнопка-выбор: один из вариантов. Выбранный — синяя заливка, состояние в aria-pressed */
.chip {
  padding: 11px 15px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text2);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.3;
  text-align: left;
}
.chip:hover { border-color: var(--accent); color: var(--text); }
.chip[aria-pressed="true"] { background: var(--fill); border-color: var(--fill); color: var(--cta-ink); }
.chip--wide { padding: 13px 15px; }

/* ── blocks/container.css ── */
/* Колонка контента: ширина и боковые поля страницы */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ── blocks/cookie-bar.css ── */
/* Плашка о cookie. Метрика включается только после согласия */
.cookie-bar {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 80;
  max-width: 760px;
  margin: 0 auto;
  padding: 16px 18px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow);
}
.cookie-bar__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.cookie-bar__text { flex: 1 1 320px; font-size: 14px; line-height: 1.5; color: var(--text2); }
.cookie-bar__text a { color: var(--accent); text-decoration: underline; }

/* ── blocks/crumbs.css ── */
/* Хлебные крошки над заголовком страницы */
.crumbs { padding-top: 24px; font-size: 14px; color: var(--text2); }
.crumbs__list { display: flex; flex-wrap: wrap; gap: 4px 0; padding: 0; list-style: none; }
.crumbs__item { display: inline-flex; align-items: center; }
.crumbs__item + .crumbs__item::before { content: "·"; padding: 0 10px; color: var(--text2); }
.crumbs__link:hover { color: var(--text); }
.crumbs__current { color: var(--text); }

/* ── blocks/cta-row.css ── */
/* Карточка «текст + действие»: на узком экране кнопка уходит под текст. Мешается с .card */
.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  padding: 24px 30px;
}
.cta-row__text { flex: 1 1 320px; min-width: 0; max-width: 660px; font-size: 16px; line-height: 1.6; color: var(--text2); }
.cta-row__action { flex: none; }

@media (max-width: 720px) {
  .cta-row { padding: 20px; }
  .cta-row__action { width: 100%; }
}

/* ── blocks/drawer.css ── */
/* Боковая панель поверх страницы (запись на диагностику). Закрывается по Esc и по затемнению */
.drawer { position: fixed; inset: 0; z-index: 90; display: flex; justify-content: flex-end; }
.drawer__scrim {
  position: absolute;
  inset: 0;
  padding: 0;
  background: var(--scrim);
  border: 0;
  animation: drawer-fade .22s ease-out both;
}
.drawer__panel {
  position: relative;
  width: 520px;
  max-width: 100vw;
  height: 100%;
  overflow: auto;
  overscroll-behavior: contain;
  background: var(--bg2);
  border-left: 1px solid var(--line);
  box-shadow: var(--shadow-drawer);
  animation: drawer-slide .3s var(--ease-out) both;
}
.drawer__head {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 28px;
  background: var(--bg2);
  border-bottom: 1px solid var(--line);
}
.drawer__title { font-size: 26px; font-weight: 600; letter-spacing: -.02em; color: var(--text); }
.drawer__subtitle { margin-top: 3px; font-size: 14px; color: var(--text2); }
.drawer__close {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text2);
}
.drawer__close:hover { border-color: var(--accent); color: var(--text); }
.drawer__close-icon { width: 17px; height: 17px; }
.drawer__body { padding: 22px 28px 28px; }

@keyframes drawer-slide { from { transform: translateX(28px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes drawer-fade { from { opacity: 0; } to { opacity: 1; } }

@media (max-width: 720px) {
  .drawer__panel { width: 100vw; }
  .drawer__head { padding: 18px 20px; }
  .drawer__body { padding: 20px; }
}

/* ── blocks/field-error.css ── */
/* Подпись к полю с ошибкой: что не так и как исправить */
.field-error { font-size: 13px; line-height: 1.45; color: var(--red); }

/* ── blocks/field.css ── */
/* Поле ввода. Ошибка — по aria-invalid, текст ошибки — .field-error рядом с полем */
.field {
  display: block;
  width: 100%;
  padding: 14px 15px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.3;
  outline: none;
}
.field::placeholder { color: var(--text2); opacity: .8; }
.field:focus { border-color: var(--accent); }
.field[aria-invalid="true"] { border-color: var(--red); }
textarea.field { min-height: 110px; resize: vertical; }
select.field { appearance: none; padding-right: 40px; background-image: none; }

/* iOS приближает страницу при фокусе на поле с кеглем меньше 16px */
@media (max-width: 720px) {
  .field { font-size: 16px; }
}

/* ── blocks/float-chat.css ── */
/* Плавающая кнопка WhatsApp — вместо стороннего виджета getbtn.com */
.float-chat {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 70;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: var(--cta);
  border-radius: 50%;
  box-shadow: var(--shadow);
  color: var(--cta-ink);
}
.float-chat:hover { transform: translateY(-2px); }
.float-chat__icon { width: 26px; height: 26px; }

/* ── blocks/form-note.css ── */
/* Итог отправки формы: успех или ошибка — что случилось и что делать */
.form-note {
  padding: 18px 20px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
}
.form-note--error { border-color: var(--red); background: var(--red-bg); }
.form-note__title { font-size: 17px; font-weight: 600; line-height: 1.3; color: var(--text); }
.form-note__text { margin-top: 8px; font-size: 14px; line-height: 1.55; color: var(--text2); }
.form-note__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.form-note__link { margin-top: 12px; padding: 0; background: none; border: 0; font-size: 14px; font-weight: 500; color: var(--accent); }

/* ── blocks/grid.css ── */
/* Сетки карточек. Элемент сетки не должен распирать её своим содержимым */
.grid { display: grid; gap: 16px; }
.grid > * { min-width: 0; }
.grid--2 { grid-template-columns: repeat(2, 1fr); gap: 20px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 1180px) {
  .grid--4 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 980px) {
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}
@media (max-width: 520px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
}

/* ── blocks/lead.css ── */
/* Вводный абзац под заголовком */
.lead {
  max-width: 680px;
  margin-top: 18px;
  font-size: 18px;
  line-height: 1.6;
  color: var(--text2);
}
.lead--small { max-width: 660px; margin-top: 12px; font-size: 16px; }

/* ── blocks/mark.css ── */
/* Знак качества: возраст сервиса — главный аргумент, пусть выглядит как печать */
.mark {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 5px 13px 5px 9px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  font-size: 13px;
  color: var(--text2);
  white-space: nowrap;
}
.mark__strong { font-weight: 600; color: var(--text); }
.mark__star {
  flex: none;
  width: 17px;
  height: 17px;
  background: var(--star-img) center / 100% 100% no-repeat;
}

/* ── blocks/mobile-nav.css ── */
/* Меню под бургером на узком экране */
.mobile-nav { display: flex; flex-direction: column; padding: 6px 0 14px; font-size: 17px; font-weight: 500; }
.mobile-nav__link { padding: 13px 0; border-bottom: 1px solid var(--line); color: var(--text); }
.mobile-nav__link[aria-current="page"] { color: var(--accent); }
.mobile-nav__phone { padding: 13px 0; font-weight: 600; }
.mobile-nav__cta { margin-top: 12px; }

@media (min-width: 981px) {
  .mobile-nav { display: none; }
}

/* ── blocks/pager.css ── */
/* Постраничная навигация: номера страниц, стрелки назад и вперёд. Текущая страница — aria-current */
.pager__list { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; list-style: none; }
.pager__link,
.pager__skip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 12px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.pager__link { background: var(--card); border: 1px solid var(--line); color: var(--text); }
.pager__link:hover { border-color: var(--accent); }
.pager__link[aria-current="page"] { background: var(--fill); border-color: var(--fill); color: var(--cta-ink); }
.pager__skip { min-width: 24px; padding: 0; color: var(--text2); }
.pager__icon { width: 18px; height: 18px; }
.pager__icon--back { transform: scaleX(-1); }

/* ── blocks/preview-bar.css ── */
/* Полоса проверочной версии: никто не должен принять копию за рабочий сайт */
.preview-bar {
  padding: 9px 16px;
  background: var(--stage);
  color: var(--stage-ink);
  font-size: 13px;
  line-height: 1.4;
  text-align: center;
}
.preview-bar__link { color: var(--stage-ink); text-decoration: underline; }

/* ── blocks/price-goods.css ── */
/* Товары в прайсе (масла): карточка с логотипом и строками в две колонки. Мешается с .card */
.price-goods { padding: 32px 36px; }
.price-goods__head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-bottom: 20px; }
.price-goods__logo { display: block; flex: none; width: auto; height: 38px; filter: var(--logo-filter); }

@media (max-width: 720px) {
  .price-goods { padding: 24px 18px; }
}

/* ── blocks/price-group.css ── */
/* Раздел прайса: заголовок с ценой «от» и синей чертой, под ним строки .price-list */
.price-group__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--accent);
}
.price-group__title { min-width: 0; overflow-wrap: break-word; }
.price-group__from { flex: none; font-size: 16px; font-weight: 600; color: var(--accent); white-space: nowrap; }

/* ── blocks/price-list.css ── */
/* Строки прайса: название — пунктир — цена. Строка бывает ссылкой (страница услуги).
   --columns — в две колонки (товары) */
.price-list { margin: 0; padding: 0; list-style: none; }
.price-list--columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; }
.price-list__row {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  color: inherit;
}
.price-list__row--link:hover { background: var(--bg); }
.price-list__name { min-width: 0; font-size: 16px; line-height: 1.45; color: var(--text); }
.price-list__row--link:hover .price-list__name { color: var(--accent); }
.price-list__dots {
  flex: 1 1 24px;
  min-width: 24px;
  height: 1px;
  background: repeating-linear-gradient(90deg, var(--line) 0 2px, transparent 2px 6px);
  transform: translateY(-4px);
}
.price-list__qty { flex: none; font-size: 14px; color: var(--text2); }
.price-list__value { flex: none; font-size: 16px; font-weight: 600; color: var(--text); white-space: nowrap; }

@media (max-width: 720px) {
  .price-list--columns { grid-template-columns: 1fr; }
  .price-list__row { gap: 12px; }
  .price-list__dots { min-width: 12px; }
}

/* ── blocks/price-page.css ── */
/* Раскладка страницы прайс-листа: оглавление слева, разделы справа */
.price-page__stats { margin-top: 26px; }
/* Отступ сверху — внутри оглавления: прилипнув к шапке, оно держит те же 28px воздуха, а не 40 */
.price-page__rail {
  position: sticky;
  top: calc(var(--header-h) - 12px);
  max-height: calc(100vh - var(--header-h) + 12px);
  overflow-y: auto;
  padding-top: 40px;
  padding-bottom: 16px;
  scrollbar-width: thin;
}
.price-page__main { padding-top: 40px; }
.price-page__group + .price-page__group { margin-top: 44px; }
.price-page__goods { margin-top: 52px; }
.price-page__empty { padding: 24px 0; font-size: 16px; line-height: 1.6; color: var(--text2); }
.price-page__cta { margin-top: 32px; }
.price-page__note { max-width: 760px; margin-top: 26px; font-size: 15px; line-height: 1.65; color: var(--text2); }

@media (max-width: 980px) {
  .price-page__rail { position: static; max-height: none; overflow: visible; }
}

/* ── blocks/price-rail.css ── */
/* Оглавление прайса: разделы со счётчиком позиций и поиск. На широком экране липнет к шапке,
   текущий раздел — aria-current (ставит page-price.js) */
.price-rail__title { margin-bottom: 14px; font-size: 14px; color: var(--text2); }
.price-rail__search { margin-bottom: 20px; }
.price-rail__link {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  line-height: 1.35;
  color: var(--text2);
}
.price-rail__link:hover { color: var(--accent); }
.price-rail__link[aria-current="true"] { color: var(--text); font-weight: 600; }
.price-rail__count { flex: none; font-size: 13px; font-weight: 400; color: var(--text2); }

/* ── blocks/price-stats.css ── */
/* Объём прайса одной строкой под вводным абзацем: «106 позиций · 16 разделов · 15 масел» */
.price-stats { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 15px; color: var(--text2); }
.price-stats__num { font-size: 22px; font-weight: 700; color: var(--text); }

/* ── blocks/promo-archive.css ── */
/* Архив акций: строки с линейками — размер скидки, условия, отметка «завершена» */
.promo-archive { margin: 0; padding: 0; list-style: none; border-bottom: 1px solid var(--line); }
.promo-archive__row {
  display: grid;
  grid-template-columns: 170px 1fr 120px;
  gap: 32px;
  align-items: baseline;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}
.promo-archive__value { font-size: 26px; font-weight: 600; line-height: 1.2; color: var(--text2); }
.promo-archive__title { font-size: 19px; font-weight: 600; line-height: 1.35; letter-spacing: -.01em; color: var(--text); }
.promo-archive__text { margin-top: 5px; font-size: 15px; line-height: 1.6; color: var(--text2); }
.promo-archive__status { font-size: 14px; text-align: right; color: var(--text2); }

@media (max-width: 980px) {
  .promo-archive__row { grid-template-columns: 1fr; gap: 6px; }
}

/* ── blocks/promo-hero.css ── */
/* Действующая акция: тёмная сцена, слева условия, справа запись и звонок.
   Сцена одна в обеих темах, поэтому цвета — из --stage-*, акцент смешан из красного и белого */
.promo-hero {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 48px;
  align-items: center;
  padding: 44px 48px;
  background: var(--stage);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  color: var(--stage-ink);
}
.promo-hero__label { font-size: 14px; letter-spacing: .02em; color: var(--stage-ink2); }
.promo-hero__title {
  margin-top: 12px;
  font-size: clamp(28px, 3.9vw, 46px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -.03em;
}
.promo-hero__value { color: var(--red-dot); color: color-mix(in srgb, var(--red-dot) 55%, var(--stage-ink)); }
.promo-hero__text {
  max-width: 620px;
  margin-top: 16px;
  font-size: 17px;
  line-height: 1.65;
  color: color-mix(in srgb, var(--stage-ink) 90%, transparent);
}
.promo-hero__date { margin-top: 22px; font-size: 15px; color: var(--stage-ink2); }
.promo-hero__more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 22px;
  font-size: 15px;
  font-weight: 600;
  color: var(--stage-ink2);
  text-decoration: underline;
  text-decoration-color: var(--stage-line);
  text-underline-offset: 4px;
}
.promo-hero__more:hover { color: var(--stage-ink); text-decoration-color: currentColor; }
.promo-hero__more-icon { width: 16px; height: 16px; }
.promo-hero__actions { display: flex; flex-direction: column; gap: 12px; }

@media (max-width: 1180px) {
  .promo-hero { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 720px) {
  .promo-hero { padding: 32px 24px; }
}

/* ── blocks/promo-page.css ── */
/* Страница одной акции: условия слева, картинка акции справа. --active / --ended — статус */
.promo-page__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 480px);
  gap: 56px;
  align-items: start;
}
.promo-page__status {
  display: inline-flex;
  margin-bottom: 18px;
  padding: 5px 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 600;
  color: var(--text2);
}
.promo-page--active .promo-page__status { background: var(--red-bg); border-color: transparent; color: var(--red); }
.promo-page__value { margin-top: 14px; font-size: clamp(30px, 3.4vw, 40px); font-weight: 700; line-height: 1.1; letter-spacing: -.02em; color: var(--text2); }
.promo-page--active .promo-page__value { color: var(--red); }
.promo-page__content { margin-top: 24px; }
.promo-page__date { margin-top: 20px; font-size: 15px; color: var(--text2); }
.promo-page__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.promo-page__note { margin-top: 32px; }
.promo-page__media {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow);
}
.promo-page__image { display: block; width: 100%; }

@media (max-width: 1180px) {
  .promo-page__layout { grid-template-columns: 1fr; gap: 32px; }
  .promo-page__media { max-width: 640px; }
}
@media (max-width: 720px) {
  .promo-page__actions { display: grid; }
}

/* ── blocks/promos.css ── */
/* Страница «Акции»: действующие акции стопкой, пустое состояние, отступ архива */
.promos__active { display: grid; gap: 16px; }
.promos__empty-text { max-width: 560px; margin-top: 10px; font-size: 16px; line-height: 1.6; color: var(--text2); }
.promos__empty-action { margin-top: 20px; }
.promos__archive { margin-top: 26px; }

/* ── blocks/prose.css ── */
/* Текст из редактора MODX (статьи, текстовые страницы, описания услуг): у этих тегов нет
   классов, поэтому блок стилизует их по тегам — единственное место, где так можно */
.prose { max-width: 760px; font-size: 17px; line-height: 1.7; color: var(--text); }
.prose > * + * { margin-top: 1em; }
.prose > :first-child { margin-top: 0; }
.prose h2 { margin-top: 1.8em; font-size: clamp(22px, 2.6vw, 30px); font-weight: 700; line-height: 1.2; }
.prose h3 { margin-top: 1.6em; font-size: clamp(19px, 2vw, 23px); font-weight: 600; line-height: 1.3; }
.prose h4 { margin-top: 1.4em; font-size: 18px; font-weight: 600; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .4em; }
.prose img { display: block; max-width: 100%; height: auto; border-radius: var(--radius-m); }
.prose figure img { margin: 0; }
.prose blockquote { padding: 14px 20px; background: var(--blue-bg); border-radius: var(--radius-m); }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; }
.prose th, .prose td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose th { font-weight: 600; color: var(--text2); }
.prose iframe { max-width: 100%; border: 0; border-radius: var(--radius-m); }
.prose--wide { max-width: none; }
@media (max-width: 720px) {
  .prose table { display: block; overflow-x: auto; }
}

/* ── blocks/record.css ── */
/* Форма записи в окне: что беспокоит → как проявляется → машина → контакты */
.record__steps { display: flex; gap: 6px; margin-bottom: 22px; }
.record__step { flex: 1; height: 3px; border-radius: 2px; background: var(--line); }
.record__step--done { background: var(--accent); }
.record__label { display: block; margin-top: 26px; font-size: 17px; font-weight: 600; color: var(--text); }
.record__label:first-of-type { margin-top: 0; }
.record__choices { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; padding: 0; border: 0; }
.record__choices--column { flex-direction: column; }
.record__choices--two { display: grid; grid-template-columns: 1fr 1fr; }
.record__model { margin-top: 10px; }
.record__hint {
  margin-top: 26px;
  padding: 22px 24px;
  background: var(--fill);
  border-radius: var(--radius-l);
  color: var(--cta-ink);
}
.record__hint-label { font-size: 13px; opacity: .78; }
.record__hint-cause { margin-top: 6px; font-size: 23px; font-weight: 600; line-height: 1.2; letter-spacing: -.02em; }
.record__hint-text { margin-top: 14px; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .18); font-size: 14px; line-height: 1.55; opacity: .85; }
.record__contacts { display: flex; flex-direction: column; gap: 9px; margin-top: 12px; }
.record__submit { margin-top: 14px; }
.record__consent { margin-top: 12px; font-size: 13px; line-height: 1.55; color: var(--text2); }
.record__consent a { text-decoration: underline; }
.record__trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

@media (max-width: 520px) {
  .record__choices--two { grid-template-columns: 1fr; }
}

/* ── blocks/reveal.css ── */
/* Появление при прокрутке. Класс reveal-on на <html> ставит site.js, только если сработал
   наблюдатель, — без JS блоки видны сразу. Задержка — переменная --d на самом блоке */
.reveal-on .reveal {
  transition: opacity .8s var(--ease-out) var(--d, 0s), transform .9s var(--ease-out) var(--d, 0s),
    box-shadow .35s ease-out, border-color .25s ease-out;
}
.reveal-on .reveal:not(.is-in) { opacity: 0; transform: translateY(28px); }
.reveal-on .reveal--left:not(.is-in) { transform: translateX(-48px); }
.reveal-on .reveal--right:not(.is-in) { transform: translateX(48px); }
.reveal-on .reveal--zoom:not(.is-in) { transform: scale(.94); }

/* ── blocks/review-list.css ── */
/* Отзывы колонками: карточки разной высоты ложатся без дыр. Число колонок — по ширине */
.review-list { column-gap: 16px; columns: 3 320px; }
.review-list__item { margin-bottom: 16px; break-inside: avoid; }

/* ── blocks/review.css ── */
/* Отзыв клиента: текст и источник под линией. --single — крупный, на странице одного отзыва */
.review { display: flex; flex-direction: column; gap: 16px; }
.review__text { font-size: 16px; line-height: 1.65; color: var(--text); }
.review__source { padding-top: 14px; border-top: 1px solid var(--line); font-size: 13px; color: var(--text2); }
.review--single .review__text { max-width: 820px; font-size: clamp(18px, 2vw, 21px); line-height: 1.6; }

/* ── blocks/reviews.css ── */
/* Страницы отзывов: список и отдельный отзыв со ссылкой на остальные */
.reviews__list { margin-top: 36px; }
.reviews__single { max-width: 900px; margin-top: 28px; }
.reviews__all {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 20px;
  font-size: 15px;
  font-weight: 600;
  color: var(--accent);
}
.reviews__all-icon { width: 16px; height: 16px; }
.reviews__cta { margin-top: 32px; }

/* ── blocks/ruler.css ── */
/* Инженерная линейка — разделитель блоков: деления как на чертеже, линия от синего (Михаил)
   к красному (Кирилл), по ней изредка пробегает блик */
.ruler { position: relative; height: 22px; overflow: hidden; pointer-events: none; }
.ruler::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 16px;
  background:
    repeating-linear-gradient(90deg, var(--tick) 0 1px, transparent 1px 12px) left bottom / 100% 6px no-repeat,
    repeating-linear-gradient(90deg, var(--tick) 0 1px, transparent 1px 60px) left bottom / 100% 15px no-repeat;
}
.ruler::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, #2F6BEA, #7C6BE6 45%, #C4527F 60%, #F0444C);
  box-shadow: 0 0 12px rgba(110, 140, 255, .45);
}
.ruler__glint {
  position: absolute;
  bottom: -1px;
  left: -15%;
  width: 14%;
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, #FFFFFF, transparent);
  filter: drop-shadow(0 0 6px #9DBBFF);
  animation: ruler-glint 7s cubic-bezier(.45, 0, .55, 1) infinite;
}
.ruler--edge { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; }
@keyframes ruler-glint { 0% { left: -15%; } 45%, 100% { left: 105%; } }

/* ── blocks/seal.css ── */
/* Печать: крупный вариант знака качества в карточке */
.seal {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 24px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow);
}
.seal__star { flex: none; width: 44px; height: 44px; background: var(--star-img) center / 100% 100% no-repeat; }
.seal__title { font-size: 17px; font-weight: 600; color: var(--text); }
.seal__text { margin-top: 2px; font-size: 14px; line-height: 1.5; color: var(--text2); }

/* ── blocks/section.css ── */
/* Секция страницы: вертикальный ритм. --alt — белая полоса с линиями сверху и снизу */
.section { padding: var(--section-y) 0; }
.section--alt {
  background: var(--bg2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.section--flush-top { padding-top: 0; }

.section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px 48px;
  margin-bottom: 32px;
}
.section__note {
  max-width: 440px;
  margin-bottom: 6px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text2);
}
.section__body { margin-top: 28px; }

@media (max-width: 980px) {
  .section__head { flex-direction: column; align-items: flex-start; }
  .section__note { max-width: 640px; }
}

/* ── blocks/site-footer.css ── */
/* Подвал: о сервисе, разделы, контакты */
.site-footer { position: relative; overflow: hidden; background: var(--bg); }
.site-footer__star { position: absolute; top: -150px; right: 7%; width: 420px; height: 420px; }
.site-footer__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
  padding-top: 54px;
  padding-bottom: 32px;
}
.site-footer__logo { display: block; width: auto; height: 40px; filter: var(--logo-filter); }
.site-footer__about { max-width: 360px; margin-top: 20px; font-size: 15px; line-height: 1.65; color: var(--text2); }
.site-footer__col { display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.site-footer__heading { margin-bottom: 6px; font-size: 14px; color: var(--text2); }
.site-footer__link:hover { color: var(--accent); }
.site-footer__muted { color: var(--text2); }
.site-footer__social { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.site-footer__bottom {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  padding-bottom: 32px;
  font-size: 13px;
  color: var(--text2);
}
.site-footer__bottom a:hover { color: var(--text); }

@media (max-width: 980px) {
  .site-footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .site-footer__star { display: none; }
}
@media (max-width: 720px) {
  .site-footer__grid { grid-template-columns: 1fr; gap: 26px; }
}

/* ── blocks/site-header.css ── */
/* Шапка: логотипы, меню, телефон, запись. На узком экране меню прячется под бургер */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--bg2);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex;
  align-items: center;
  gap: 38px;
  height: var(--header-h);
}
.site-header__logo { display: flex; flex: none; align-items: center; }
.site-header__logo img { display: block; width: auto; height: 38px; filter: var(--logo-filter); }
.site-header__divider { flex: none; width: 1px; height: 28px; background: var(--line); }
.site-header__partner { display: block; flex: none; width: auto; height: 32px; filter: var(--logo-filter); }
.site-header__nav { display: flex; align-items: center; gap: 26px; font-size: 16px; font-weight: 500; }
.site-header__item { position: relative; }
.site-header__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0;
  background: transparent;
  border: 0;
  color: var(--text);
  font-size: 16px;
  font-weight: 500;
}
.site-header__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -9px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t) var(--ease-out);
}
.site-header__link:hover { color: var(--accent); }
.site-header__link:hover::after { transform: scaleX(1); }
.site-header__link[aria-current="page"],
.site-header__link--active {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 7px;
  text-decoration-thickness: 2px;
}
.site-header__chevron { width: 14px; height: 14px; transition: transform var(--t-fast) ease-out; }
.site-header__link[aria-expanded="true"] .site-header__chevron { transform: rotate(180deg); }
.site-header__actions { display: flex; align-items: center; gap: 16px; margin-left: auto; }
.site-header__phone { font-size: 16px; font-weight: 500; color: var(--text); white-space: nowrap; }
.site-header__phone:hover { color: var(--accent); }
.site-header__burger {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  margin-left: auto;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.site-header__burger-line { width: 18px; height: 1.5px; background: var(--text); transition: transform var(--t-fast) ease-out, opacity var(--t-fast) ease-out; }
.site-header__burger[aria-expanded="true"] .site-header__burger-line:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.site-header__burger[aria-expanded="true"] .site-header__burger-line:nth-child(2) { opacity: 0; }
.site-header__burger[aria-expanded="true"] .site-header__burger-line:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

@media (max-width: 1280px) {
  .site-header__inner { gap: 24px; }
  .site-header__nav { gap: 20px; }
}
/* Между бургером (980) и полной шапкой место кончается: телефон остаётся в подвале и в окне записи */
@media (max-width: 1140px) {
  .site-header__phone { display: none; }
}
@media (max-width: 980px) {
  .site-header__nav, .site-header__actions { display: none; }
  .site-header__burger { display: flex; }
  .site-header__inner { gap: 20px; }
}
@media (max-width: 520px) {
  .site-header__divider, .site-header__partner { display: none; }
}

/* ── blocks/skip-link.css ── */
/* Ссылка «к содержанию» для клавиатуры: видна только в фокусе */
.skip-link {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--cta);
  border-radius: var(--radius);
  color: var(--cta-ink);
  font-weight: 600;
  transform: translateY(-160%);
}
.skip-link:focus { transform: none; }

/* ── blocks/snow.css ── */
/* Падающий снег — в первом экране и в подвале. Снежинки расставляет site.js */
.snow { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.snow__flake {
  position: absolute;
  top: -12%;
  border-radius: 50%;
  background: var(--snow);
  animation: snow-fall linear infinite;
}
@keyframes snow-fall {
  0% { top: -12%; transform: translateX(0); }
  50% { transform: translateX(34px); }
  100% { top: 108%; transform: translateX(4px); }
}
@media (prefers-reduced-motion: reduce) {
  .snow { display: none; }
}

/* ── blocks/social-link.css ── */
/* Ссылка на мессенджер или соцсеть: иконка и подпись в рамке */
.social-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}
.social-link:hover { border-color: var(--accent); }
.social-link__icon { width: 16px; height: 16px; }

/* ── blocks/split.css ── */
/* Две колонки: текст и форма, боковая навигация и контент, текст и карточка */
.split { display: grid; gap: 24px; align-items: start; }
.split > * { min-width: 0; }
.split--form { grid-template-columns: 1fr 440px; gap: 64px; }
.split--rail { grid-template-columns: 250px 1fr; gap: 56px; }
.split--rail-wide { grid-template-columns: 300px 1fr; gap: 48px; }
.split--about { grid-template-columns: 1fr 400px; gap: 56px; }
.split--promo { grid-template-columns: 1fr 420px; gap: 48px; align-items: center; }

@media (max-width: 1180px) {
  .split--form, .split--about, .split--promo { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 980px) {
  .split--rail, .split--rail-wide { grid-template-columns: 1fr; gap: 24px; }
}

/* ── blocks/star-deco.css ── */
/* Звезда-водяной знак в фоне секций. Прозрачность задаёт тема (--star-op) */
.star-deco {
  position: absolute;
  background: var(--star-img) center / 100% 100% no-repeat;
  opacity: var(--star-op);
  pointer-events: none;
}
@media (max-width: 980px) {
  .star-deco { display: none; }
}

/* ── blocks/submenu.css ── */
/* Выпадающее меню «Услуги» в шапке */
.submenu {
  position: absolute;
  top: calc(100% + 14px);
  left: -16px;
  z-index: 60;
  min-width: 236px;
  padding: 8px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow);
  animation: submenu-drop .18s var(--ease-out) both;
}
.submenu__link {
  display: block;
  padding: 11px 14px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
}
.submenu__link:hover { background: var(--bg); }
@keyframes submenu-drop { from { transform: translateY(-7px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ── blocks/svc-card.css ── */
/* Карточка подраздела услуг: фото и название. Мешается с .card .card--link .card--lift */
.svc-card { display: flex; flex-direction: column; height: 100%; }
.svc-card__media { flex: none; aspect-ratio: 17 / 10; background: var(--bg); }
.svc-card__body { display: flex; flex: 1; flex-direction: column; justify-content: space-between; gap: 12px; }
.svc-card__more { margin-top: 0; }

/* ── blocks/svc-head.css ── */
/* Первый экран страницы услуги: заголовок, цена «от», запись и телефон; справа — фото услуги.
   Без фото (--media нет) колонка одна */
.svc-head { display: grid; gap: 28px; align-items: center; }
.svc-head__main { min-width: 0; }
.svc-head--media { grid-template-columns: 1fr 440px; gap: 56px; }
.svc-head__title { max-width: 900px; overflow-wrap: break-word; }
/* Длинный заголовок из SEO-названия старой страницы: 100+ символов кеглем страницы — пять строк */
.svc-head__title--long { font-size: clamp(24px, 2.8vw, 38px); line-height: 1.15; }
.svc-head__price {
  margin-top: 24px;
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.02em;
  color: var(--accent);
}
.svc-head__note { max-width: 560px; margin-top: 10px; font-size: 15px; line-height: 1.6; color: var(--text2); }
.svc-head__note--first { margin-top: 20px; }
.svc-head__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.svc-head__media { min-width: 0; margin: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-l); background: var(--card); }
.svc-head__image { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }

@media (max-width: 980px) {
  .svc-head--media { grid-template-columns: 1fr; gap: 28px; }
  .svc-head__media { max-width: 440px; }
}
@media (max-width: 520px) {
  .svc-head__action { flex: 1 1 100%; }
}

/* ── blocks/svc-list.css ── */
/* Список направлений услуг строками: название — что входит — цена «от» (или стрелка).
   Вся строка — ссылка. Линейки между строками, как в прайсе */
.svc-list { margin: 0; padding: 0; list-style: none; border-bottom: 1px solid var(--line); }
.svc-list__link {
  display: grid;
  grid-template-columns: 330px 1fr 150px;
  grid-template-areas: "name about price";
  gap: 40px;
  align-items: baseline;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  color: inherit;
}
.svc-list__link:hover { background: var(--bg); }
.svc-list__name {
  grid-area: name;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -.02em;
  color: var(--text);
}
.svc-list__link:hover .svc-list__name { color: var(--accent); }
.svc-list__about {
  grid-area: about;
  display: -webkit-box;
  overflow: hidden;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text2);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.svc-list__part + .svc-list__part::before { content: " · "; }
.svc-list__price {
  grid-area: price;
  font-size: 17px;
  font-weight: 600;
  color: var(--accent);
  text-align: right;
  white-space: nowrap;
}
.svc-list__icon { width: 20px; height: 20px; transition: transform var(--t) var(--ease-out); }
.svc-list__link:hover .svc-list__icon { transform: translateX(4px); }

@media (max-width: 1180px) {
  .svc-list__link { grid-template-columns: 260px 1fr 130px; gap: 32px; }
}
@media (max-width: 720px) {
  .svc-list__link {
    grid-template-columns: 1fr auto;
    grid-template-areas: "name price" "about about";
    gap: 6px 16px;
    padding: 20px 0;
  }
  .svc-list__name { font-size: 20px; }
  .svc-list__about { font-size: 15px; }
  .svc-list__price { font-size: 16px; }
}

/* ── blocks/svc-page.css ── */
/* Раскладка страниц услуг (каталог, раздел, подраздел, услуга): расстояния между блоками */
.svc-page__links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.svc-page__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px 32px; margin-bottom: 24px; }
.svc-page__more { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 600; color: var(--accent); }
.svc-page__more:hover { color: var(--text); }
.svc-page__more-icon { width: 16px; height: 16px; }
.svc-page__body { margin-top: 28px; }
.svc-page__body:empty { display: none; }
.svc-page__inline { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.svc-page__inline:hover { color: var(--text); }
.svc-page__article { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 56px; align-items: start; }
.svc-page__aside { position: sticky; top: calc(var(--header-h) + 28px); }
.svc-page__aside-title { margin-bottom: 8px; font-size: 17px; font-weight: 600; line-height: 1.35; letter-spacing: -.01em; color: var(--text); }
.svc-page__cta { margin-top: 40px; }

@media (max-width: 1180px) {
  .svc-page__article { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .svc-page__aside { position: static; }
}

/* ── blocks/svc-stages.css ── */
/* Этапы работы: номер — название — пояснение, строками с линейками */
.svc-stages { margin: 0; padding: 0; list-style: none; border-bottom: 1px solid var(--line); }
.svc-stages__item {
  display: grid;
  grid-template-columns: 60px 260px 1fr;
  gap: 32px;
  align-items: baseline;
  padding: 20px 0;
  border-top: 1px solid var(--line);
}
.svc-stages__num { font-size: 17px; color: var(--accent); }
.svc-stages__title { font-size: 22px; font-weight: 600; line-height: 1.3; letter-spacing: -.02em; color: var(--text); }
.svc-stages__text { font-size: 16px; line-height: 1.6; color: var(--text2); }

@media (max-width: 720px) {
  .svc-stages__item { grid-template-columns: 44px 1fr; gap: 8px 16px; }
  .svc-stages__text { grid-column: 2; }
  .svc-stages__title { font-size: 19px; }
}

/* ── blocks/svc-why.css ── */
/* «Почему мы» на странице услуги: пункты из поля why-item старого сайта, с галочкой */
.svc-why { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 40px; margin: 0; padding: 0; list-style: none; }
.svc-why__item {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-size: 17px;
  line-height: 1.5;
  color: var(--text);
}
.svc-why__icon { flex: none; width: 20px; height: 20px; color: var(--accent); vertical-align: -.2em; }

@media (max-width: 720px) {
  .svc-why { grid-template-columns: 1fr; }
}

/* ── blocks/text-page.css ── */
/* Текстовая страница: заголовок, вводный абзац, текст из редактора, призыв внизу */
.text-page__content { margin-top: 32px; }
.text-page__image { display: block; max-width: 100%; margin-top: 28px; border-radius: var(--radius-l); }
.text-page__cta { margin-top: 40px; }

/* ── blocks/theme-toggle.css ── */
/* Переключатель светлой и тёмной темы. Показывается подпись той темы, на которую переключит */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 26px;
  padding: 0 10px 0 8px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  color: var(--text2);
}
.theme-toggle:hover { border-color: var(--accent); color: var(--text); }
.theme-toggle__icon { width: 16px; height: 16px; }
.theme-toggle__to-light { display: none; }
[data-theme="dark"] .theme-toggle__to-light { display: inline-flex; align-items: center; gap: 7px; }
[data-theme="dark"] .theme-toggle__to-dark { display: none; }
.theme-toggle__to-dark { display: inline-flex; align-items: center; gap: 7px; }

/* ── blocks/title.css ── */
/* Заголовки: страница, секция, первый экран, карточка */
.title { font-weight: 800; color: var(--text); letter-spacing: -.03em; }
.title--page { font-size: clamp(26px, 5.4vw, 56px); line-height: 1.04; }
.title--section { font-size: clamp(24px, 3.9vw, 46px); line-height: 1.06; }
.title--hero { font-size: clamp(32px, 6.2vw, 70px); line-height: 1; text-transform: uppercase; }
.title--card { font-weight: 600; font-size: 22px; line-height: 1.25; letter-spacing: -.02em; }
.title--small { font-weight: 600; font-size: 19px; line-height: 1.3; letter-spacing: -.01em; }

/* ── blocks/topbar.css ── */
/* Верхняя строка: адрес, часы, знак «с 2002 года», переключатель темы */
.topbar {
  background: var(--bg2);
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  color: var(--text2);
}
.topbar__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  padding-top: 8px;
  padding-bottom: 8px;
}
.topbar__side { display: flex; align-items: center; gap: 14px; }
.topbar__divider { flex: none; width: 1px; height: 16px; background: var(--line); }

@media (max-width: 720px) {
  .topbar__extra { display: none; }
}
