/* ==========================================================================
   alga-taxi.ru — таблица стилей
   1. Переменные, сброс, типографика, контейнер, кнопки, формы
   ========================================================================== */

:root {
  /* Основа */
  --cream:       #FCF4E9;
  --sand:        #ECDCCD;
  --sand-deep:   #E2CFBC;
  --hairline:    #DDCFC0;
  --card-line:   #EFE3D6;

  /* Тёмный акцент */
  --wine:        #831A4A;
  --wine-2:      #961E56;
  --mauve:       #BA7E95;

  /* Действие */
  /* Коралловый донора #F6544A давал с тёмным текстом 4,47:1 — на волос ниже AA.
     Осветлён на два шага (4,60:1), на глаз тот же цвет. */
  --coral:       #F6594B;
  --coral-hover: #E44236;
  /* Ховер кнопок: тёмный текст на коралле требует не темнее, а светлее (5,4:1).
     --coral-hover остаётся для ссылок, где текстом служит сам коралл. */
  --coral-lift:  #FF6E5C;

  /* Текст */
  --ink:         #282725;
  --ink-muted:   #63605C;
  --white:       #FFFFFF;

  /* Вспомогательные акценты */
  --magenta:     #EE308D;
  --amber:       #F9B145;
  --sage:        #D6DEB9;
  --peach:       #F6917A;
  --terracotta:  #C45238;

  /* Типографика */
  --font-display: "Manrope","Golos Text","Arial",sans-serif;
  --font-body:    'Golos Text', -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --font-mono:    'JetBrains Mono', 'SFMono-Regular', Consolas, monospace;

  /* Сетка */
  --container:  1220px;
  --gutter:     16px;
  --gap:        24px;
  --section-y:  56px;
  --radius-s:   10px;
  --radius:     12px;
  --radius-pill: 999px;
}

@media (min-width: 600px) {
  :root { --gutter: 24px; }
}
@media (min-width: 900px) {
  :root { --section-y: 96px; }
}

/* --------------------------------------------------------------- Сброс -- */

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

[hidden] { display: none !important; }

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

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.62;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

h1, h2, h3, h4, p, figure, blockquote, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }

img, svg, iframe { display: block; max-width: 100%; }
img { height: auto; }

button, input, select, textarea {
  font: inherit;
  color: inherit;
  margin: 0;
}
button { background: none; border: 0; cursor: pointer; }

a { color: inherit; text-decoration: none; }

table { border-collapse: collapse; width: 100%; }

hr {
  border: 0;
  border-top: 1px solid var(--hairline);
  margin: 32px 0;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--wine);
  color: var(--white);
  padding: 12px 20px;
  border-radius: 0 0 var(--radius-s) 0;
}
.skip-link:focus { left: 0; }

/* --------------------------------------------------------- Типографика -- */

h1, .h1, h2, .h2, h3, .h3 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--ink);
}

h1, .h1 {
  font-size: clamp(34px, 6.2vw, 60px);
  line-height: 1.06;
}
h1 em, .h1 em { font-style: italic; font-weight: 400; }

h2, .h2 {
  font-size: clamp(28px, 4.2vw, 42px);
  line-height: 1.12;
}
h2 em, .h2 em { font-style: italic; }

h3, .h3 {
  font-size: clamp(21px, 2.4vw, 26px);
  line-height: 1.22;
}

h4, .h4 {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.35;
  margin: 0;
}

p + p { margin-top: 16px; }

.lead {
  font-size: clamp(17px, 2vw, 19px);
  line-height: 1.58;
  color: var(--ink-muted);
  max-width: 62ch;
}

.small { font-size: 15px; line-height: 1.55; }
.tiny  { font-size: 13px; line-height: 1.5; color: var(--ink-muted); }
.muted { color: var(--ink-muted); }

/* Моноширинный эйбрау — фирменный приём донора */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--wine);
  margin: 0 0 14px;
}
.eyebrow--muted { color: var(--ink-muted); }
.eyebrow--light { color: rgba(255,255,255,.78); }

@media (min-width: 900px) {
  .eyebrow { font-size: 13px; }
}

.mono {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-muted);
}

/* Текстовая ссылка со стрелкой */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.3;
}
.link-arrow svg { transition: transform .18s ease; flex: 0 0 auto; }
.link-arrow:hover svg { transform: translateX(4px); }
.link-arrow:hover { color: var(--coral-hover); }
.link-arrow--light { color: var(--white); }
.link-arrow--light:hover { color: var(--white); }

/* Внутритекстовые ссылки */
.text-link,
.prose a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--coral);
  text-underline-offset: 3px;
  text-decoration-thickness: 1.5px;
}
.text-link:hover,
.prose a:hover { color: var(--coral-hover); }

/* ------------------------------------------------------------- Сетка --- */

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.container--narrow { max-width: 860px; }

.section { padding: var(--section-y) 0; }
.section--tight { padding: calc(var(--section-y) * .65) 0; }
.section--cream { background: var(--cream); }
.section--sand  { background: var(--sand); }
.section--white { background: var(--white); }

.section__head { margin-bottom: 40px; max-width: 720px; }
.section__head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section__head p.lead { margin-top: 14px; }

@media (min-width: 900px) {
  .section__head { margin-bottom: 52px; }
}

.grid {
  display: grid;
  gap: var(--gap);
  grid-template-columns: 1fr;
}
@media (min-width: 600px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .grid--4 { grid-template-columns: repeat(4, 1fr); } }

.stack   { display: grid; gap: 20px; }
.stack-s { display: grid; gap: 12px; }

/* Линейка-разделитель — единственный разделитель в системе */
.rule { height: 1px; background: var(--hairline); border: 0; margin: 0; }

/* ------------------------------------------------------------ Кнопки --- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  text-align: center;
  border: 0;
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .1s ease;
}

/* Крупная кнопка-пилюля — контент и герой */
.btn--primary,
.btn--secondary,
.btn--mauve {
  min-height: 52px;
  padding: 16px 30px;
  border-radius: var(--radius-pill);
}

.btn--primary {
  background: var(--coral);
  color: var(--ink);
}
.btn--primary:hover { background: var(--coral-lift); }

.btn--secondary {
  background: var(--cream);
  color: var(--ink);
}
.btn--secondary:hover { background: var(--sand-deep); }

/* На кремовом фоне вторичная получает обводку */
.section--cream .btn--secondary,
.btn--secondary.btn--outline {
  border: 1.5px solid var(--ink);
}

.btn--mauve {
  background: var(--mauve);
  color: var(--ink);
}
.btn--mauve:hover { background: #C4879F; }

/* Кнопка в шапке — скруглённый прямоугольник */
.btn--hdr {
  height: 44px;
  padding: 0 20px;
  border-radius: var(--radius-s);
  background: var(--coral);
  /* Белый на коралле давал 3,34:1. Тёмный текст — как у .btn--primary, 4,60:1. */
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
}
.btn--hdr:hover { background: var(--coral-lift); }

.btn--hdr-ghost {
  height: 44px;
  padding: 0 20px;
  border-radius: var(--radius-s);
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--ink);
  font-size: 15px;
}
.btn--hdr-ghost:hover { background: var(--sand-deep); }

.btn--light {
  background: var(--cream);
  color: var(--ink);
}
.btn--light:hover { background: var(--white); }

.btn--block { width: 100%; }
.btn--sm { min-height: 44px; padding: 12px 22px; font-size: 15px; }

.btn:active { transform: translateY(1px); }

/* --------------------------------------------------------------- Чипы -- */

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

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--sand-deep);
  background: var(--cream);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
}
.chip--plain { background: transparent; }

.chip-btn {
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--sand-deep);
  background: transparent;
  font-size: 14px;
  font-weight: 500;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}
.chip-btn:hover { background: var(--sand-deep); }
.chip-btn.is-active {
  background: var(--wine);
  border-color: var(--wine);
  color: var(--white);
}

/* Винная плашка-бейдж */
.badge {
  display: inline-block;
  padding: 7px 14px;
  border-radius: 6px;
  background: var(--wine);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

/* --------------------------------------------------------- Иконки ------ */

.ico { flex: 0 0 auto; }

.ico-blob {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  flex: 0 0 auto;
  color: var(--white);
  background: var(--wine);
}
.ico-blob--wine       { background: var(--wine);       color: var(--white); }
.ico-blob--magenta    { background: var(--magenta);    color: var(--white); }
.ico-blob--amber      { background: var(--amber);      color: var(--ink); }
.ico-blob--sage       { background: var(--sage);       color: var(--ink); }
.ico-blob--peach      { background: var(--peach);      color: var(--ink); }
.ico-blob--terracotta { background: var(--terracotta); color: var(--white); }
.ico-blob--coral      { background: var(--coral);      color: var(--ink); }

.num-blob {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--wine);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 700;
  flex: 0 0 auto;
}

.stars { display: inline-flex; gap: 3px; color: var(--amber); vertical-align: middle; }

/* -------------------------------------------------------------- Формы -- */

.field { display: block; }

.field__label {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-muted);
  margin-bottom: 8px;
}

.field__control,
input[type="text"].field__control,
input[type="tel"].field__control,
input[type="email"].field__control,
input[type="date"].field__control,
input[type="time"].field__control,
select.field__control,
textarea.field__control {
  width: 100%;
  min-height: 52px;
  padding: 14px 16px;
  border: 1px solid var(--sand-deep);
  border-radius: var(--radius-s);
  background: var(--white);
  font-size: 16px;
  line-height: 1.4;
  color: var(--ink);
  transition: border-color .18s ease;
}
textarea.field__control { min-height: 120px; resize: vertical; }

.field__control::placeholder { color: #9C9791; }
.field__control:hover { border-color: var(--hairline); }
.field__control:focus { outline: 2px solid var(--wine); outline-offset: 1px; border-color: var(--wine); }

select.field__control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23282725' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9.5 12 15.5 18 9.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 44px;
}

.field__err {
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.4;
  color: var(--terracotta);
}
.field__control[aria-invalid="true"] { border-color: var(--terracotta); }

.field__hint { margin-top: 6px; font-size: 13px; color: var(--ink-muted); }

/* Чекбокс согласия */
.check {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 12px;
  align-items: start;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-muted);
  cursor: pointer;
}
.check input {
  width: 22px;
  height: 22px;
  margin: 0;
  accent-color: var(--wine);
  cursor: pointer;
}

/* Радиогруппа тарифа */
.radio-group { display: grid; gap: 10px; }
@media (min-width: 600px) { .radio-group { grid-template-columns: repeat(2, 1fr); } }

.radio-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--sand-deep);
  border-radius: var(--radius-s);
  background: var(--white);
  cursor: pointer;
  transition: border-color .18s ease, background-color .18s ease;
}
.radio-card:hover { border-color: var(--wine); }
.radio-card input { width: 20px; height: 20px; margin: 0; accent-color: var(--wine); flex: 0 0 auto; }
.radio-card__title { font-weight: 600; font-size: 15px; display: block; }
.radio-card__note { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-muted); }
.radio-card:has(input:checked) { border-color: var(--wine); background: var(--cream); }

/* Форма футера — подчёркивание снизу, без рамок */
.foot-form__field { margin-bottom: 18px; }
.foot-form__field input {
  width: 100%;
  border: 0;
  border-bottom: 1px solid rgba(255,255,255,.5);
  background: transparent;
  color: var(--white);
  font-size: 15px;
  padding: 10px 2px;
}
.foot-form__field input::placeholder { color: rgba(255,255,255,.62); }
.foot-form__field input:focus {
  outline: none;
  border-bottom-color: var(--white);
}
.foot-form__field input:focus-visible { outline: 2px solid var(--white); outline-offset: 3px; }
.foot-form__field .field__err { color: #FFD3CB; }
.foot-form__note {
  margin-top: 14px;
  font-size: 12px;
  line-height: 1.5;
  color: rgba(255,255,255,.66);
}
.foot-form__note a { text-decoration: underline; }

/* ------------------------------------------------------------ Таблицы -- */

.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.table {
  width: 100%;
  min-width: 560px;
  font-size: 15px;
}
.table th,
.table td {
  padding: 16px 18px;
  text-align: left;
  border-bottom: 1px solid var(--hairline);
  vertical-align: middle;
}
.table thead th {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--ink-muted);
  white-space: nowrap;
}
.table tbody th { font-weight: 600; white-space: nowrap; }
.table tbody tr:last-child td,
.table tbody tr:last-child th { border-bottom: 0; }
.table td.is-num { font-weight: 700; white-space: nowrap; }
.table .unit {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--ink-muted);
  letter-spacing: .06em;
}

/* ---------------------------------------------------------- Проза ------ */

.prose { max-width: 72ch; }
.prose h2 { margin-top: 44px; margin-bottom: 16px; }
.prose h3 { margin-top: 32px; margin-bottom: 12px; }
.prose > *:first-child { margin-top: 0; }
.prose p { margin-bottom: 16px; }
.prose ul { margin: 0 0 20px; display: grid; gap: 10px; }
.prose ul li {
  position: relative;
  padding-left: 26px;
}
.prose ul li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 11px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--coral);
}
.prose ol { counter-reset: prose; display: grid; gap: 14px; margin-bottom: 20px; }
.prose ol li {
  position: relative;
  padding-left: 48px;
  counter-increment: prose;
  min-height: 34px;
}
.prose ol li::before {
  content: counter(prose);
  position: absolute;
  left: 0;
  top: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--wine);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Правовая сноска */
.legal-note {
  margin-top: 24px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--ink-muted);
  max-width: 78ch;
}

/* ==========================================================================
   2. Шапка, навигация, бургер, мобильное меню, футер
   ========================================================================== */

/* --------------------------------------------------------- Ярус 1 ------ */

.topbar { display: none; background: var(--sand); }

.topbar__in {
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.topbar__nav { display: flex; gap: 22px; }

.topbar__nav a,
.topbar__note {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-muted);
  white-space: nowrap;
}
.topbar__nav a:hover { color: var(--wine); }
.topbar__note { margin: 0; }

@media (min-width: 900px) { .topbar { display: block; } }

/* --------------------------------------------------------- Логотип ----- */

.logo {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  flex: 0 0 auto;
}
.logo__mark {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 28px;
  line-height: 1;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.logo__sub {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 18px;
  line-height: 1;
  color: var(--ink-muted);
}
.logo--foot .logo__mark,
.logo--foot .logo__sub { color: var(--white); }
.logo--foot .logo__sub { color: rgba(255,255,255,.8); }

/* --------------------------------------------------------- Ярус 2 ------ */

.hdr__main {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--cream);
  border-bottom: 1px solid var(--card-line);
}

.hdr__in {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

@media (min-width: 900px) { .hdr__in { height: 76px; } }

/* Навигация */
.nav { display: none; flex: 1 1 auto; justify-content: center; }

.nav__list {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav__item { position: relative; }

.nav__link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 16px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  padding: 26px 0;
  color: var(--ink);
  border-bottom: 2px solid transparent;
  transition: color .18s ease, border-color .18s ease;
}
.nav__link:hover { color: var(--wine); }
.nav__link.is-active {
  color: var(--wine);
  border-bottom-color: var(--coral);
}
.nav__chev { transition: transform .18s ease; }
.nav__link[aria-expanded="true"] .nav__chev { transform: rotate(180deg); }

@media (min-width: 1024px) {
  .nav { display: flex; }
  .nav__list { gap: 28px; }
}

/* Выпадающее меню */
.drop {
  position: absolute;
  top: 100%;
  /* Панель шире пункта меню: привязываем её к левому краю «Услуг», иначе
     центрирование по пункту выносит левую колонку за край окна на ноутбуках. */
  left: 0;
  right: auto;
  transform: none;
  z-index: 60;
  background: var(--white);
  border: 1px solid var(--card-line);
  border-radius: var(--radius);
  padding: 26px 28px;
  min-width: 540px;
  max-width: calc(100vw - 2 * var(--gutter));
}

.drop__in {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 32px;
}

.drop__title {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--wine);
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--hairline);
}

.drop__list { display: grid; gap: 2px; }
.drop__list a {
  display: block;
  font-size: 15px;
  line-height: 1.35;
  padding: 6px 8px;
  margin: 0 -8px;
  border-radius: 6px;
  white-space: nowrap;
  transition: background-color .15s ease, color .15s ease;
}
.drop__list a:hover { background: var(--cream); color: var(--wine); }

/* Правый кластер */
.hdr__side {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

.hdr__phone { display: none; line-height: 1.15; }
.hdr__phone-num {
  display: block;
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
}
.hdr__phone-note {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-muted);
  margin-top: 2px;
}
.hdr__phone:hover .hdr__phone-num { color: var(--wine); }

.hdr__call {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-s);
  border: 1.5px solid var(--ink);
  color: var(--ink);
}
.hdr__call:hover { background: var(--sand-deep); }

.hdr .btn--hdr { display: none; }

@media (min-width: 900px) {
  .hdr__phone { display: block; }
  .hdr .btn--hdr { display: inline-flex; }
  .hdr__side { gap: 18px; }
  .hdr__call { display: none; }
}

/* Бургер */
.burger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-s);
  border: 1.5px solid var(--ink);
  color: var(--ink);
}
.burger:hover { background: var(--sand-deep); }
.burger__box { display: flex; }

@media (min-width: 1024px) { .burger { display: none; } }

/* --------------------------------------------------------- Ярус 3 ------ */

.quickbar {
  display: none;
  background: var(--cream);
  border-bottom: 1px solid var(--card-line);
}

.quickbar__in {
  height: 52px;
  display: flex;
  align-items: stretch;
  justify-content: center;
}

.quickbar__link {
  flex: 1 1 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
  color: var(--ink-muted);
  border-right: 1px solid var(--card-line);
  transition: color .18s ease, background-color .18s ease;
}
.quickbar__link:first-child { border-left: 1px solid var(--card-line); }
.quickbar__link:hover { color: var(--wine); background: var(--sand); }
.quickbar__link--all { font-weight: 600; color: var(--ink); }
.quickbar__glyph { flex: none; opacity: .75; }

@media (min-width: 1024px) { .quickbar { display: block; } }

/* --------------------------------------------------- Мобильное меню ---- */

.overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(40,39,37,.5);
}

.mmenu {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 100;
  width: min(400px, 90vw);
  background: var(--sand);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.mmenu__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px var(--gutter);
  border-bottom: 1px solid var(--sand-deep);
  flex: 0 0 auto;
}

.mmenu__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-s);
  border: 1.5px solid var(--ink);
  color: var(--ink);
}
.mmenu__close:hover { background: var(--sand-deep); }

.mmenu__body {
  flex: 1 1 auto;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 20px var(--gutter) 28px;
}

.mmenu__group {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--wine);
  margin: 24px 0 8px;
}
.mmenu__body > .mmenu__group:first-child { margin-top: 0; }
.mmenu__group--sub { color: var(--ink-muted); margin: 14px 0 6px; }

.mmenu__list { display: block; }
.mmenu__item { border-bottom: 1px solid var(--sand-deep); }

.mmenu__link,
.mmenu__acc {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 14px 0;
  font-size: 17px;
  font-weight: 500;
  text-align: left;
  color: var(--ink);
}
.mmenu__link.is-active { color: var(--wine); }
.mmenu__acc svg { transition: transform .18s ease; }
.mmenu__acc[aria-expanded="true"] svg { transform: rotate(180deg); }

.mmenu__sub { padding: 4px 0 18px; }
.mmenu__sublist { display: grid; gap: 2px; }
.mmenu__sublist a {
  display: block;
  padding: 8px 0 8px 14px;
  font-size: 15px;
  color: var(--ink-muted);
  border-left: 1px solid var(--sand-deep);
}
.mmenu__sublist a:hover { color: var(--wine); border-left-color: var(--wine); }

.mmenu__foot {
  flex: 0 0 auto;
  padding: 18px var(--gutter) 22px;
  background: var(--cream);
  border-top: 1px solid var(--sand-deep);
}
.mmenu__phone {
  display: block;
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
}
.mmenu__note {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-muted);
  margin: 2px 0 14px;
}

@media (min-width: 1024px) {
  .mmenu, .overlay { display: none !important; }
}

/* ------------------------------------------------------ Хлебные крошки - */

.crumbs {
  background: var(--cream);
  padding: 14px 0;
  border-bottom: 1px solid var(--card-line);
}

.crumbs__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.crumbs__item { display: inline-flex; align-items: center; gap: 10px; }
.crumbs__item:not(:last-child)::after {
  content: "/";
  color: var(--sand-deep);
}
.crumbs__item a { color: var(--ink); }
.crumbs__item a:hover { color: var(--wine); }
.crumbs__current { color: var(--ink-muted); }

/* --------------------------------------------------------------- Футер - */

.foot {
  background: var(--wine);
  color: rgba(255,255,255,.84);
  padding: 48px 0 24px;
}
.foot a { color: rgba(255,255,255,.84); }
.foot a:hover { color: var(--white); text-decoration: underline; }

@media (min-width: 900px) { .foot { padding: 72px 0 28px; } }

.foot__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

@media (min-width: 600px) {
  .foot__grid { grid-template-columns: repeat(2, 1fr); gap: 36px 32px; }
  .foot__brand { grid-column: 1 / -1; }
  .foot__cta   { grid-column: 1 / -1; }
}

@media (min-width: 1024px) {
  .foot__grid {
    grid-template-columns: 1.4fr 1fr 1fr 1fr 1.5fr;
    gap: 40px 32px;
  }
  .foot__brand, .foot__cta { grid-column: auto; }
}

.foot__desc {
  font-size: 15px;
  line-height: 1.55;
  margin: 16px 0 22px;
  max-width: 34ch;
}

.foot__phone {
  display: inline-block;
  font-size: 22px;
  font-weight: 700;
  color: var(--white);
}
.foot__phone:hover { color: var(--white); }

.foot__phone-note {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(255,255,255,.66);
  margin: 4px 0 20px;
}

.foot__soc { display: flex; gap: 10px; }
.foot__soc a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.4);
  color: rgba(255,255,255,.9);
  transition: background-color .18s ease, border-color .18s ease;
}
.foot__soc a:hover {
  background: rgba(255,255,255,.14);
  border-color: var(--white);
  color: var(--white);
  text-decoration: none;
}

.foot__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--white);
  text-align: left;
}
.foot__head--static { margin-bottom: 18px; }
.foot__chev { display: none; transition: transform .18s ease; }
.foot__head[aria-expanded="true"] .foot__chev { transform: rotate(180deg); }

.foot__list {
  display: grid;
  gap: 9px;
  margin-top: 16px;
  font-size: 15px;
}

@media (max-width: 599px) {
  .foot__col { border-bottom: 1px solid rgba(255,255,255,.22); padding-bottom: 14px; }
  .foot__head { padding: 6px 0; }
  .foot__chev { display: block; }
  .foot__list[hidden] { display: none !important; }
}

.foot__bottom {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.22);
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-content: space-between;
  align-items: flex-start;
}
.foot__copy { font-size: 14px; margin: 0; }
.foot__geo {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,.66);
  margin: 0;
}

@media (min-width: 900px) {
  .foot__bottom { flex-direction: row; align-items: center; }
}

/* ==========================================================================
   3. Секции
   ========================================================================== */

/* ------------------------------------------------------ Герой главной -- */

.hero {
  background: var(--sand);
  position: relative;
}

.hero__grid { display: grid; grid-template-columns: 1fr; }

.hero__text {
  padding: 48px var(--gutter) 56px;
  max-width: var(--container);
  margin: 0 auto;
  width: 100%;
}

.hero__title { margin-bottom: 22px; }

.hero__lead { max-width: 46ch; margin-bottom: 26px; color: var(--ink-muted); }

.hero__list { display: grid; gap: 12px; margin-bottom: 30px; }
.hero__list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 16px;
  line-height: 1.45;
}
.hero__tick {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--magenta);
  color: var(--white);
  flex: 0 0 auto;
  margin-top: 1px;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }

.hero__chips { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.hero__chips li {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}
.hero__chips li:not(:first-child)::before {
  content: "·";
  color: var(--sand-deep);
}

.hero__media { position: relative; min-height: 260px; }
.hero__media img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
  display: block;
}

@media (min-width: 900px) {
  .hero__grid { grid-template-columns: 53fr 47fr; align-items: stretch; }
  .hero__text {
    padding: 76px 48px 84px max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter)));
    max-width: none;
    margin: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  .hero__inner { max-width: 600px; }
  .hero__media { min-height: 560px; }
  .hero__media img { min-height: 560px; }
}

/* Компактная карточка заказа поверх фото */
.quote-card {
  background: var(--white);
  border: 1px solid var(--card-line);
  border-radius: var(--radius);
  padding: 22px;
  margin: -32px var(--gutter) 0;
  position: relative;
  z-index: 2;
}
.quote-card__title {
  font-family: var(--font-display);
  font-size: 22px;
  margin-bottom: 16px;
}
.quote-card__row { display: grid; gap: 12px; }
.quote-card__row .field { min-width: 0; }

@media (min-width: 900px) {
  .quote-card {
    max-width: var(--container);
    margin: -76px auto 0;
    padding: 26px 28px;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 24px;
    align-items: end;
  }
  .quote-card__title { margin-bottom: 0; align-self: center; max-width: 190px; line-height: 1.15; }
  .quote-card__row { grid-template-columns: repeat(3, 1fr) auto; align-items: end; }
}

/* ------------------------------------------------- Герой внутренних ---- */

.phero {
  background: var(--sand);
  padding: 48px 0 56px;
  position: relative;
}

@media (min-width: 900px) {
  .phero { padding: 92px 0 104px; min-height: 400px; display: flex; align-items: center; }
}

.phero__in { max-width: 640px; }
.phero__title { margin-bottom: 20px; }
.phero__lead { margin-bottom: 26px; }
.phero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 24px; }

/* Мягкая волнистая граница между героем и кремовой полосой */
.wave {
  display: block;
  width: 100%;
  height: 44px;
  background: var(--sand);
  margin: 0;
}
.wave svg { width: 100%; height: 100%; display: block; }

@media (min-width: 900px) { .wave { height: 64px; } }

/* Герой услуги: карточка + текст */
.shero { background: var(--sand); padding: 40px 0 52px; }

@media (min-width: 900px) { .shero { padding: 72px 0 88px; } }

.shero__grid { display: grid; gap: 32px; grid-template-columns: 1fr; }

@media (min-width: 900px) {
  .shero__grid { grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: center; }
}

.shero__card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 18px;
  position: relative;
  overflow: hidden;
}
.shero__card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-s);
}

.shero__illo {
  position: relative;
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
}
.shero__illo-blob {
  position: absolute;
  width: 62%;
  height: 74%;
  background: var(--sage);
  border-radius: 46% 54% 52% 48% / 52% 46% 54% 48%;
}
.shero__illo .ico { position: relative; color: var(--ink); }

.shero__badge { margin-bottom: 18px; }
.shero__title { margin-bottom: 18px; }
.shero__lead { font-size: 18px; margin-bottom: 26px; color: var(--ink-muted); }
.shero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 22px; }

/* ------------------------------------------------- Карточки направлений */

.dcard {
  position: relative;
  display: block;
  border-radius: var(--radius-s);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--sand-deep);
}
.dcard img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.dcard::after {
  content: "";
  position: absolute;
  inset: 0;
  /* Затемнение доходило только до 58% высоты и слабело раньше, чем начинался
     заголовок: на светлых снимках (небо у «Такси в аэропорт», стеклянная кровля
     вокзала) белый .dcard__title давал контраст около 1.7. Ступени подобраны так,
     чтобы под строкой заголовка держалось не меньше ~0.7 плотности. */
  background: linear-gradient(0deg, rgba(40,39,37,.90) 0%, rgba(40,39,37,.74) 32%, rgba(40,39,37,.34) 60%, rgba(40,39,37,0) 86%);
}
.dcard:hover img { transform: scale(1.03); }

.dcard__body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 22px;
  color: var(--white);
}
/* Заголовок и цена размечены span'ами: без display:block вертикальные
   margin'ы не работают и цена слипается с заголовком в одну строку. */
.dcard__title,
.dcard__price { display: block; }

.dcard__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 24px;
  line-height: 1.14;
  color: var(--white);
  margin: 0 0 10px;
}
.dcard__price {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.82);
  margin: 0 0 10px;
}
.dcard__go {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
}
.dcard:hover .dcard__go svg { transform: translateX(4px); }
.dcard__go svg { transition: transform .18s ease; }

@media (min-width: 900px) { .dcard__title { font-size: 26px; } }

/* ------------------------------------------------------- Преимущества -- */

.adv { display: grid; gap: 32px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .adv { grid-template-columns: repeat(3, 1fr); gap: 40px; } }

/* align-content: start — иначе колонка, растянутая по высоте самого длинного соседа,
   раздаёт лишние пиксели между строками и её заголовок съезжает вниз. */
.adv__item { display: grid; gap: 14px; align-content: start; }
.adv__title { font-size: 18px; font-weight: 600; margin: 0; }
.adv__text { font-size: 15px; line-height: 1.6; color: var(--ink-muted); margin: 0; }

/* -------------------------------------------------------- Как заказать - */

.steps { display: grid; gap: 28px; grid-template-columns: 1fr; position: relative; }

.step { display: grid; gap: 12px; align-content: start; position: relative; }
.step__title { font-size: 17px; font-weight: 600; margin: 0; }
.step__text { font-size: 15px; line-height: 1.6; color: var(--ink-muted); margin: 0; }

@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(4, 1fr); gap: 32px; }
  .steps::before {
    content: "";
    position: absolute;
    top: 22px;
    left: 12%;
    right: 12%;
    height: 1px;
    background: var(--hairline);
  }
  .step { text-align: left; }
  .step .num-blob { position: relative; z-index: 2; }
}

/* ---------------------------------------------------- Тарифные карточки */

.tariff {
  background: var(--white);
  border: 1px solid var(--card-line);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
}
.tariff__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 26px;
  line-height: 1.15;
  text-align: center;
  margin: 0 0 6px;
}
.tariff__note {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--ink-muted);
  text-align: center;
  margin: 0 0 8px;
}
.tariff__cars {
  font-size: 13px;
  line-height: 1.45;
  color: var(--ink-muted);
  text-align: center;
  margin: 0 0 18px;
  /* Под перечень машин резервируем две строки: иначе у «Комфорта» подпись
     переносится и вся таблица цен уезжает вниз относительно соседних карточек. */
  min-height: 2.9em;
}
.tariff__rows { display: block; margin-bottom: 22px; }
.tariff__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--hairline);
}
.tariff__row:last-child { border-bottom: 0; }
.tariff__label { font-size: 14px; color: var(--ink-muted); }
.tariff__value { font-size: 24px; font-weight: 700; white-space: nowrap; }
.tariff__unit {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-muted);
  margin-left: 4px;
}
.tariff .btn { margin-top: auto; }

/* -------------------------------------------------------- Винная полоса */

.band {
  background: var(--wine);
  color: var(--white);
  padding: var(--section-y) 0;
  position: relative;
  overflow: hidden;
}
.band::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    45deg,
    rgba(255,255,255,.05) 0,
    rgba(255,255,255,.05) 2px,
    transparent 2px,
    transparent 9px
  );
  pointer-events: none;
}
.band > * { position: relative; z-index: 2; }

.band__title {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--white);
  text-align: center;
  margin: 0 0 44px;
}
.band .eyebrow { text-align: center; color: rgba(255,255,255,.72); }

.band__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px 24px;
  text-align: center;
}
@media (min-width: 900px) { .band__grid { grid-template-columns: repeat(4, 1fr); gap: 32px; } }

.band__num {
  font-size: clamp(36px, 6vw, 52px);
  font-weight: 700;
  line-height: 1.05;
  color: var(--white);
  margin: 0 0 8px;
}
.band__label { font-size: 16px; font-weight: 600; color: var(--white); margin: 0 0 6px; }
.band__text { font-size: 14px; line-height: 1.5; color: rgba(255,255,255,.76); margin: 0; }

/* ------------------------------------------------------ Каналы заказа -- */

.channel {
  background: var(--white);
  border: 1px solid var(--card-line);
  border-radius: var(--radius);
  padding: 24px;
  display: grid;
  gap: 14px;
  align-content: start;
}
.channel__title { font-size: 17px; font-weight: 600; margin: 0; }
.channel__text { font-size: 14px; line-height: 1.55; color: var(--ink-muted); margin: 0; }
.channel .btn { margin-top: 4px; justify-self: start; }

/* ---------------------------------------------------------- SMS-заказ -- */

.sms-card {
  background: var(--cream);
  border: 1px solid var(--sand-deep);
  border-radius: var(--radius);
  padding: 36px 24px;
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}
.sms-card__phone {
  display: inline-block;
  font-size: clamp(26px, 5vw, 32px);
  font-weight: 700;
  line-height: 1.1;
  margin: 0 0 14px;
}
.sms-card__text { font-size: 17px; margin: 0 0 10px; }
.sms-card__note { font-size: 13px; color: var(--ink-muted); margin: 0; }

@media (min-width: 900px) { .sms-card { padding: 48px 40px; } }

/* ------------------------------------------------------------ Водители */

.driver { text-align: center; }
.driver__media {
  position: relative;
  width: 100%;
  max-width: 220px;
  margin: 0 auto 18px;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.driver__disc {
  position: absolute;
  inset: 6%;
  border-radius: 50%;
  background: var(--magenta);
}
.driver__disc--magenta { background: var(--magenta); }
.driver__disc--amber   { background: var(--amber); }
.driver__disc--sage    { background: var(--sage); }
.driver__disc--peach   { background: var(--peach); }

.driver__photo {
  position: relative;
  width: 84%;
  height: 84%;
  object-fit: cover;
  border-radius: 42% 58% 46% 54% / 50% 45% 55% 50%;
}
.driver__name { font-size: 17px; font-weight: 600; margin: 0 0 4px; }
.driver__exp {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--ink-muted);
  margin: 0;
}
.driver__car { font-size: 14px; color: var(--ink-muted); margin: 6px 0 0; }

/* ------------------------------------------------------ Слайдер отзывов */

.slider { max-width: 780px; margin: 0 auto; text-align: center; }

.slider__viewport { min-height: 210px; display: flex; align-items: center; }

.slide { width: 100%; }
.slide__quote {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(18px, 2.4vw, 20px);
  line-height: 1.5;
  margin: 0 0 22px;
}
.slide__name { font-size: 16px; font-weight: 600; margin: 0 0 4px; }
.slide__meta {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--ink-muted);
  margin: 0;
}

.slider__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 28px;
}
.slider__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--ink);
  color: var(--ink);
  flex: 0 0 auto;
  transition: background-color .18s ease, color .18s ease;
}
.slider__btn:hover { background: var(--ink); color: var(--cream); }

.slider__dots { display: flex; gap: 8px; }
.slider__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sand-deep);
  padding: 0;
  transition: background-color .18s ease, transform .18s ease;
}
.slider__dot.is-active { background: var(--wine); transform: scale(1.35); }

.slider__avatars {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}
.slider__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  padding: 0;
  border: 2px solid transparent;
  background: var(--sand-deep);
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform .18s ease, border-color .18s ease;
}
.slider__avatar.is-active {
  transform: scale(1.15);
  border-color: var(--magenta);
  background: var(--cream);
}

/* --------------------------------------------------------- Аккордеон --- */

.acc { display: grid; gap: 14px; max-width: 860px; }
.acc--wide { max-width: none; }

.acc__item {
  background: var(--white);
  border-radius: var(--radius-s);
  overflow: hidden;
}
.section--white .acc__item { border: 1px solid var(--card-line); }

.acc__btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: 100%;
  padding: 20px 24px;
  text-align: left;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink);
}
.acc__btn:hover { color: var(--wine); }
.acc__btn svg { flex: 0 0 auto; transition: transform .2s ease; color: var(--wine); }
.acc__btn[aria-expanded="true"] svg { transform: rotate(180deg); }

.acc__panel {
  padding: 4px 24px 22px;
  background: var(--cream);
}
.acc__panel p { font-size: 16px; line-height: 1.6; color: var(--ink-muted); margin: 0; }
.acc__panel p + p { margin-top: 12px; }

.acc__group-title {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--wine);
  margin: 40px 0 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--hairline);
}
.acc__group:first-child .acc__group-title { margin-top: 0; }

/* -------------------------------------------------------- CTA-полоса --- */

.cta-band {
  background: var(--ink);
  color: var(--cream);
  padding: var(--section-y) 0;
  text-align: center;
}
.cta-band .eyebrow { color: rgba(252,244,233,.66); }
.cta-band__title {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--cream);
  margin: 0 0 18px;
}
.cta-band__phone {
  display: inline-block;
  font-size: clamp(28px, 5vw, 38px);
  font-weight: 700;
  line-height: 1.1;
  color: var(--cream);
  margin-bottom: 26px;
}
.cta-band__phone:hover { color: var(--white); }
.cta-band__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
.cta-band .btn--secondary { background: transparent; color: var(--cream); border: 1.5px solid var(--cream); }
.cta-band .btn--secondary:hover { background: var(--cream); color: var(--ink); }

/* --------------------------------------------------------- Инфо-карты - */

.info-card {
  background: var(--cream);
  border: 1px solid var(--sand-deep);
  border-radius: var(--radius);
  padding: 26px;
}
.section--cream .info-card { background: var(--white); border-color: var(--card-line); }
.info-card__title { font-size: 18px; font-weight: 600; margin: 0 0 10px; }
.info-card__text { font-size: 15px; line-height: 1.6; color: var(--ink-muted); margin: 0; }
.info-card .ico-blob { margin-bottom: 16px; }

/* ------------------------------------------------------------- Карта --- */

.map {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--sand-deep);
  border: 1px solid var(--sand-deep);
}
.map iframe { width: 100%; height: 100%; border: 0; }
.map__link { margin: 14px 0 0; font-size: 15px; }
.map__link a { text-decoration: underline; text-decoration-color: var(--coral); text-underline-offset: 3px; }

@media (max-width: 599px) { .map { aspect-ratio: 4 / 3; } }

/* --------------------------------------------------- Список с линейками */

.dl-list { display: block; }
.dl-list__row {
  display: grid;
  gap: 4px 24px;
  padding: 18px 0;
  border-bottom: 1px solid var(--hairline);
}
.dl-list__row:first-child { padding-top: 0; }
.dl-list__row:last-child { border-bottom: 0; }
.dl-list__label {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--wine);
}
.dl-list__value { font-size: 16px; }
.dl-list__text { font-size: 15px; color: var(--ink-muted); }

@media (min-width: 700px) {
  .dl-list__row { grid-template-columns: 210px 1fr; }
  .dl-list__label { grid-row: span 2; }
}

/* Контактные блоки в две колонки */
.contact-grid { display: grid; gap: 0; }
@media (min-width: 900px) {
  .contact-grid { grid-template-columns: repeat(2, 1fr); gap: 0 48px; }
}
.contact-block { padding: 26px 0; border-bottom: 1px solid var(--hairline); }
.contact-block__label {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--wine);
  margin: 0 0 10px;
}
.contact-block__text { font-size: 15px; line-height: 1.6; color: var(--ink-muted); margin: 0 0 12px; }
.contact-block__value { font-size: 18px; font-weight: 600; margin: 0; }
.contact-block__value a:hover { color: var(--wine); }

/* ------------------------------------------------- Плитки-ссылки ------- */

.tiles { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 600px) { .tiles { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .tiles { grid-template-columns: repeat(3, 1fr); } }

.tile {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 20px;
  background: var(--white);
  border: 1px solid var(--card-line);
  border-radius: var(--radius-s);
  font-size: 16px;
  font-weight: 500;
  transition: border-color .18s ease, background-color .18s ease;
}
.tile:hover { border-color: var(--wine); background: var(--cream); color: var(--wine); }
.tile svg { color: var(--wine); }

/* Карточка вокзала */
.station-card {
  background: var(--white);
  border: 1px solid var(--card-line);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.station-card__title { font-family: var(--font-display); font-weight: 400; font-size: 24px; line-height: 1.15; margin: 0; }
.station-card__metro {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--wine);
  margin: 0;
}
.station-card__point { font-size: 14px; line-height: 1.55; color: var(--ink-muted); margin: 0; }
/* Цену прижимаем к низу карточки: подписи-ориентиры разной длины иначе
   разбрасывают строку цены по вертикали в соседних карточках ряда. */
.station-card__price { font-size: 20px; font-weight: 700; margin: auto 0 0; padding-top: 4px; }
.station-card__price .unit { font-family: var(--font-mono); font-size: 11px; font-weight: 500; color: var(--ink-muted); }
.station-card .link-arrow { margin-top: 0; padding-top: 12px; }

/* ------------------------------------------------------- Отзывы-лента -- */

.review {
  background: var(--white);
  border: 1px solid var(--card-line);
  border-radius: var(--radius);
  padding: 24px;
  display: grid;
  gap: 12px;
  align-content: start;
}
.review__top { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.review__name { font-size: 17px; font-weight: 600; margin: 0; }
.review__date {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--ink-muted);
  margin: 0;
}
.review__route {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .08em;
  color: var(--wine);
  margin: 0;
}
.review__text { font-size: 15px; line-height: 1.6; color: var(--ink-muted); margin: 0; }

/* Пагинация */
.pager { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 40px; }
.pager a, .pager span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 14px;
  border-radius: var(--radius-s);
  border: 1px solid var(--sand-deep);
  font-size: 15px;
  font-weight: 500;
}
.pager a:hover { background: var(--sand-deep); }
.pager .is-current { background: var(--wine); border-color: var(--wine); color: var(--white); }

/* Оценка звёздами в форме */
.star-input { display: flex; gap: 6px; }
.star-input input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.star-input label {
  cursor: pointer;
  color: var(--sand-deep);
  display: inline-flex;
  transition: color .15s ease;
}
.star-input label:hover,
.star-input label.is-on { color: var(--amber); }
.star-input input:focus-visible + label { outline: 2px solid var(--wine); outline-offset: 2px; }

/* ------------------------------------------------------------ Вакансии - */

.vacancy {
  background: var(--white);
  border: 1px solid var(--card-line);
  border-radius: var(--radius);
  padding: 26px;
  display: grid;
  gap: 14px;
  align-content: start;
}
.vacancy__title { font-family: var(--font-display); font-weight: 400; font-size: 24px; line-height: 1.15; margin: 0; }
.vacancy__meta { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.vacancy__meta span {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--ink-muted);
}
.vacancy__income { font-size: 20px; font-weight: 700; margin: 0; }
.vacancy__req { display: grid; gap: 8px; }
.vacancy__req li {
  position: relative;
  padding-left: 24px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink-muted);
}
.vacancy__req li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 10px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--amber);
}
.vacancy .btn { justify-self: start; margin-top: 4px; }

/* --------------------------------------------------------- Таймлайн ---- */

.timeline { display: grid; gap: 28px; position: relative; }

.tl-item { display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: start; align-content: start; }
.tl-item__year {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .12em;
  color: var(--wine);
  margin: 0 0 4px;
}
.tl-item__title { font-size: 17px; font-weight: 600; margin: 0 0 6px; }
.tl-item__text { font-size: 15px; line-height: 1.55; color: var(--ink-muted); margin: 0; }

@media (min-width: 900px) {
  .timeline { grid-template-columns: repeat(4, 1fr); gap: 32px; }
  .timeline::before {
    content: "";
    position: absolute;
    top: 22px;
    left: 12%;
    right: 12%;
    height: 1px;
    background: var(--hairline);
  }
  .tl-item { grid-template-columns: 1fr; }
  .tl-item .num-blob { position: relative; z-index: 2; margin-bottom: 6px; }
}

/* ----------------------------------------------------- Липкая сводка --- */

/* Строка «что подставлено из ссылки» над формой онлайн-заказа */
.order-preset {
  display: inline-block;
  margin: 14px 0 0;
  padding: 9px 16px;
  border-radius: var(--radius-s);
  background: var(--sand);
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink);
}

.order-grid { display: grid; gap: 32px; grid-template-columns: 1fr; }
@media (min-width: 900px) {
  .order-grid { grid-template-columns: 1.6fr 1fr; gap: 48px; align-items: start; }
}

.order-form { display: grid; gap: 20px; }
.order-form__row { display: grid; gap: 20px; }
@media (min-width: 600px) { .order-form__row--2 { grid-template-columns: repeat(2, 1fr); } }

.summary {
  background: var(--cream);
  border: 1px solid var(--sand-deep);
  border-radius: var(--radius);
  padding: 24px;
}
@media (min-width: 900px) { .summary { position: sticky; top: 96px; } }

.summary__title { font-family: var(--font-display); font-weight: 400; font-size: 24px; margin: 0 0 18px; }
.summary__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--hairline);
  font-size: 15px;
}
.summary__row:last-of-type { border-bottom: 0; }
.summary__key { color: var(--ink-muted); }
.summary__val { font-weight: 600; text-align: right; }
.summary__total { font-size: 24px; font-weight: 700; }
.summary__note {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--ink-muted);
  margin: 14px 0 18px;
  line-height: 1.5;
}

/* ---------------------------------------------------------- Модалка ---- */

.modal {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--gutter);
}
.modal__backdrop { position: absolute; inset: 0; background: rgba(40,39,37,.6); }

.modal__box {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 460px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 34px 28px 30px;
  text-align: center;
}
.modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-muted);
}
.modal__close:hover { background: var(--cream); color: var(--ink); }
.modal__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--sage);
  color: var(--ink);
  margin-bottom: 18px;
}
.modal__title { font-family: var(--font-display); font-weight: 400; font-size: 26px; margin: 0 0 12px; }
.modal__text { font-size: 16px; line-height: 1.55; color: var(--ink-muted); margin: 0 0 22px; }

/* --------------------------------------------------------- 404 --------- */

.nf {
  background: var(--sand);
  min-height: 70vh;
  display: flex;
  align-items: center;
  padding: 60px 0;
  text-align: center;
}
.nf__num {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(90px, 22vw, 190px);
  line-height: .95;
  margin: 0 0 12px;
  letter-spacing: -0.03em;
}
.nf__text {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(20px, 3.4vw, 28px);
  line-height: 1.25;
  margin: 0 auto 30px;
  max-width: 22ch;
}
.nf__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* ------------------------------------------------------ Карта сайта ---- */

.sm-group { break-inside: avoid; }
.sm-group__title {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--wine);
  margin: 0 0 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--hairline);
}
.sm-list li { border-bottom: 1px solid var(--hairline); }
.sm-list li:last-child { border-bottom: 0; }
.sm-list a { display: block; padding: 11px 0; font-size: 16px; }
.sm-list a:hover { color: var(--wine); }
.sm-list--sub { margin: 0 0 8px 18px; border-left: 1px solid var(--hairline); padding-left: 16px; }
.sm-list--sub a { font-size: 15px; color: var(--ink-muted); padding: 8px 0; }

/* ---------------------------------------- Появление при скролле -------- */

[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .5s ease, transform .5s ease;
}
[data-reveal].is-in { opacity: 1; transform: none; }

/* ==========================================================================
   4. Медиазапросы, доступность, печать
   ========================================================================== */

/* --------------------------------------------------- 599px и меньше ---- */

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

  h1, .h1 { font-size: 34px; }

  .hero__text { padding: 36px var(--gutter) 44px; }
  .hero__actions .btn { width: 100%; }
  .hero__media img { min-height: 220px; }

  .quote-card { margin: -24px var(--gutter) 0; padding: 18px; }

  .band__grid { gap: 26px 16px; }
  .band__num { font-size: 34px; }

  .acc__btn { padding: 16px 18px; font-size: 16px; }
  .acc__panel { padding: 4px 18px 18px; }

  .tariff { padding: 20px; }
  .review, .vacancy, .channel, .info-card, .station-card { padding: 20px; }

  .cta-band__actions .btn,
  .nf__actions .btn { width: 100%; }

  .modal__box { padding: 28px 20px 26px; }

  .slider__viewport { min-height: 260px; }

  .sms-card { padding: 28px 20px; }
}

/* ---------------------------------------------------------- 600–899 ---- */

@media (min-width: 600px) and (max-width: 899px) {
  .adv { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 28px 24px; }
  .timeline { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: repeat(2, 1fr); gap: 0 32px; }
}

/* ------------------------------------------------------- 900–1023 ------ */

@media (min-width: 900px) and (max-width: 1023px) {
  .hdr__in { gap: 16px; }
  .hdr__phone-num { font-size: 17px; }
}

/* --------------------------------------------------- 1024 и больше ----- */

@media (min-width: 1024px) {
  .drop { min-width: 560px; }
}

@media (min-width: 1280px) {
  .nav__list { gap: 30px; }
  .drop { min-width: 600px; }
}

/* Широкие экраны: левая колонка героя выравнивается по контейнеру */
@media (min-width: 1460px) {
  .hero__text { padding-left: max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter))); }
}

/* ---------------------------------------------- Клавиатурный фокус ----- */

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

.band :focus-visible,
.foot :focus-visible,
.cta-band :focus-visible,
.dcard:focus-visible {
  outline-color: var(--white);
}

.dcard:focus-visible { outline-offset: 3px; }

/* Убираем двойную рамку у уже обведённых элементов */
.btn:focus:not(:focus-visible),
.acc__btn:focus:not(:focus-visible),
.nav__link:focus:not(:focus-visible) { outline: none; }

/* ------------------------------------------- Уменьшенная анимация ------ */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }

  .dcard:hover img { transform: none; }
  .link-arrow:hover svg { transform: none; }
}

/* -------------------------------------------------------- Печать ------- */

@media print {
  .topbar,
  .quickbar,
  .burger,
  .hdr__call,
  .mmenu,
  .overlay,
  .modal,
  .slider__nav,
  .slider__avatars,
  .foot__cta,
  .foot__soc,
  .skip-link,
  .cta-band .btn,
  .map { display: none !important; }

  body {
    background: #fff;
    color: #000;
    font-size: 12pt;
  }

  .hdr__main { position: static; border-bottom: 1px solid #999; }

  .section,
  .band,
  .cta-band,
  .foot {
    padding: 16pt 0;
    background: #fff !important;
    color: #000 !important;
  }

  .band__num,
  .band__label,
  .band__text,
  .band__title,
  .cta-band__title,
  .cta-band__phone,
  .foot a,
  .foot__phone,
  .logo--foot .logo__mark,
  .logo--foot .logo__sub { color: #000 !important; }

  .band::before { display: none; }

  .acc__panel[hidden] { display: block !important; }

  .dcard { aspect-ratio: auto; }

  a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-size: 9pt;
    color: #555;
  }

  .tariff, .review, .info-card, .station-card, .vacancy {
    border: 1px solid #999;
    break-inside: avoid;
  }

  h1, h2, h3 { break-after: avoid; }
}

/* ==========================================================================
   5. Утилиты отступов и выравнивания (используются секциями и страницами)
   ========================================================================== */

.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-34 { margin-top: 34px; }
.mt-40 { margin-top: 40px; }

.text-center { text-align: center; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.actions--center { justify-content: center; }

.sm-cols { display: grid; gap: 32px; grid-template-columns: 1fr; }
@media (min-width: 600px) { .sm-cols { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .sm-cols { grid-template-columns: repeat(3, 1fr); gap: 40px; } }

.two-cols { display: grid; gap: 0 40px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .two-cols { grid-template-columns: repeat(2, 1fr); } }

.split { display: grid; gap: 32px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 56px; } }
@media (min-width: 900px) { .split--media { grid-template-columns: 0.9fr 1.1fr; } }

.photo-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 16px;
  overflow: hidden;
}
.photo-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-s);
}

.group-title {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--wine);
  margin: 0 0 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--hairline);
}
.group + .group { margin-top: 52px; }

.mini-table { margin-top: 8px; }

.ico--flip { transform: scaleX(-1); }

.cta-band__text {
  font-size: 17px;
  line-height: 1.6;
  color: rgba(252,244,233,.82);
  max-width: 60ch;
  margin: 0 auto;
}

.field__err, .field__hint { display: block; }

/* Пункты «что входит в услугу» — строки с иконкой, разделённые линейками */
.svc-inc {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 0 18px;
  align-items: start;
}
.svc-inc__title {
  display: block;
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 6px;
}

.sm-list li.geo-street { padding: 11px 0; font-size: 15px; }

@media (min-width: 900px) { .steps--3 { grid-template-columns: repeat(3, 1fr); } }

.tl-item__year, .tl-item__title, .tl-item__text { display: block; }

/* Длинные русские слова в заголовках не должны рвать сетку на 360px */
h1, h2, h3, h4, .h1, .h2, .h3, .prose p, .lead {
  overflow-wrap: break-word;
}
@media (max-width: 599px) {
  .prose h1, .prose > h1 { font-size: 30px; }
}

/* ---------------------------------------- Шапка на узком десктопе 1024–1199 */
/* На 1024px меню, телефон и кнопка не помещались в 976px контента и выталкивали
   правый кластер за край окна. Сжимаем трекинг и паддинги, ничего не пряча. */
@media (min-width: 1024px) and (max-width: 1199px) {
  .hdr__in { gap: 12px; }
  .nav__list { gap: 14px; }
  .nav__link { font-size: 15px; }
  .hdr__side { gap: 10px; }
  .hdr__phone-num { font-size: 16px; }
  .hdr__phone-note { letter-spacing: .08em; }
  .btn--hdr { padding: 0 14px; font-size: 14px; }
  .quickbar__link { font-size: 14px; }
}
@media (min-width: 1200px) and (max-width: 1279px) {
  .nav__list { gap: 20px; }
}
