/* ---------- Шрифт Golos Text (хранится на сайте, не зависит от Google) ---------- */
@font-face { font-family: "Golos Text"; font-weight: 400; font-display: swap; src: url(../fonts/golos-text-cyrillic-400-normal.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Golos Text"; font-weight: 500; font-display: swap; src: url(../fonts/golos-text-cyrillic-500-normal.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Golos Text"; font-weight: 600; font-display: swap; src: url(../fonts/golos-text-cyrillic-600-normal.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Golos Text"; font-weight: 700; font-display: swap; src: url(../fonts/golos-text-cyrillic-700-normal.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Golos Text"; font-weight: 400; font-display: swap; src: url(../fonts/golos-text-latin-400-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Golos Text"; font-weight: 500; font-display: swap; src: url(../fonts/golos-text-latin-500-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Golos Text"; font-weight: 600; font-display: swap; src: url(../fonts/golos-text-latin-600-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Golos Text"; font-weight: 700; font-display: swap; src: url(../fonts/golos-text-latin-700-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ---------- Цвета и размеры (цвета взяты из логотипа) ---------- */
:root {
  --ink: #0d2c54;          /* синий логотипа: заголовки */
  --ink-deep: #07223f;
  --accent: #cf1f2e;       /* красный логотипа: главные кнопки, отметка офиса */
  --accent-deep: #b61729;
  --sand: #f7eedb;         /* песочный логотипа: тёплые фоны */
  --sand-deep: #ccbe99;
  --sun: #ffc247;          /* солнечный: шаги, акценты */
  --turq: #0e9a9a;         /* бирюза моря: выбранные ответы */
  --turq-tint: #e8f8f6;    /* фон выбранного ответа */
  --sea: #a8e3e6;          /* море на карте */
  --text: #1c2b3a;
  --muted: #56677a;
  --line: #e6e1d4;
  --paper: #ffffff;
  --sheet: #fffaf0;        /* панель «Ваш расчёт» и форма */

  --fs-sm: 0.875rem;   /* 14 */
  --fs-base: 1.0625rem;/* 17 */
  --fs-md: 1.3125rem;  /* 21 */
  --fs-lg: 1.625rem;   /* 26 */
  --fs-xl: 2.0625rem;  /* 33 */

  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--text);
  font-family: "Golos Text", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: var(--fs-base); line-height: 1.55;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
h1, h2, h3, p, dl, dd, ol, ul, figure, fieldset, blockquote { margin: 0; }
fieldset { border: 0; padding: 0; min-width: 0; }
ul, ol { padding: 0; list-style: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--turq); outline-offset: 2px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { top: 12px; }
.icon { width: 1.25em; height: 1.25em; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.wrap { width: 100%; max-width: 1248px; margin: 0 auto; padding: 0 24px; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 24px; border-radius: 12px; border: 0;
  font-weight: 600; font-size: 1rem; text-decoration: none; cursor: pointer;
  transition: background-color .15s, color .15s, box-shadow .15s, transform .15s;
}
.btn--primary { background: var(--accent); color: #fff; box-shadow: 0 8px 20px rgba(207, 31, 46, .28); }
.btn--primary:hover { background: var(--accent-deep); box-shadow: 0 10px 24px rgba(207, 31, 46, .36); transform: translateY(-1px); }
.btn--primary:active { transform: none; }
.btn--primary:disabled { background: #6b7a8a; box-shadow: none; transform: none; cursor: not-allowed; }
.btn--lg { min-height: 60px; padding: 16px 34px; font-size: 1.125rem; }
.btn--block { width: 100%; }
.btn--text { background: none; color: var(--muted); padding-left: 0; padding-right: 0; }
.btn--text:hover { color: var(--ink); }

/* ---------- Шапка ---------- */
.header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--line); }
.header__row { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.brand { display: flex; flex-direction: column; text-decoration: none; line-height: 1.15; flex: none; }
.brand b { font-size: 1.125rem; font-weight: 700; color: var(--ink); letter-spacing: -.01em; }
.brand small { font-size: .8125rem; color: var(--muted); margin-top: 2px; }
.header .brand img { height: 40px; width: auto; max-width: none; align-self: flex-start; }

.nav { display: flex; align-items: center; gap: 2px; margin-right: auto; }
.nav__item { position: relative; }
.nav__link {
  display: inline-flex; align-items: center; gap: 4px; padding: 10px 9px; border-radius: 8px;
  background: none; border: 0; cursor: pointer; text-decoration: none;
  font-size: .875rem; font-weight: 500; color: var(--text); white-space: nowrap;
}
.nav__link:hover, .nav__item.is-open > .nav__link { color: var(--ink); background: var(--sand); }
.nav__link .icon { width: 16px; height: 16px; transition: transform .15s; }
.nav__item.is-open > .nav__link .icon { transform: rotate(180deg); }
.nav__menu {
  position: absolute; top: 100%; left: 0; min-width: 250px; padding: 8px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 16px 40px rgba(13, 44, 84, .14); display: none;
}
.nav__item.is-open > .nav__menu { display: block; }
.nav__menu a { display: block; padding: 10px 12px; border-radius: 8px; text-decoration: none; font-size: .9375rem; }
.nav__menu a:hover { background: var(--sand); color: var(--ink); }
.nav__contacts { display: none; }

.header__contacts { display: grid; gap: 4px; flex: none; }
.hc { display: flex; align-items: center; gap: 8px; text-decoration: none; font-size: .875rem; line-height: 1.35; }
.hc .icon, .hc img { width: 20px; height: 20px; padding: 4px; border-radius: 6px; color: #fff; }
.hc img { padding: 0; }
.hc span { color: var(--muted); min-width: 62px; white-space: nowrap; }
.hc b { font-weight: 600; color: var(--ink); white-space: nowrap; }
.hc:hover b { text-decoration: underline; }
/* фирменные цвета мессенджеров */
.is-telegram .icon { background: #229ed9; }
.is-max .icon { background: linear-gradient(135deg, #3d8bff, #7b4dff); }

.burger { display: none; margin-left: auto; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; align-items: center; justify-content: center; color: var(--ink); flex: none; }
.burger .icon { width: 22px; height: 22px; }
.burger .burger__close, .burger[aria-expanded="true"] .burger__open { display: none; }
.burger[aria-expanded="true"] .burger__close { display: block; }

/* ---------- Первый экран ---------- */
.hero {
  padding: 44px 0 72px; overflow: hidden;
  background:
    radial-gradient(52% 70% at 100% 0%, #ffe6ac 0%, rgba(255, 230, 172, 0) 70%),
    radial-gradient(40% 55% at 0% 100%, #d9f4f1 0%, rgba(217, 244, 241, 0) 70%),
    linear-gradient(180deg, #fff8e9 0%, #ffffff 100%);
}
.hero__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: center; }
.hero__title {
  font-size: clamp(1.75rem, 1.05rem + 2.3vw, 2.75rem); line-height: 1.1; letter-spacing: -.025em;
  font-weight: 700; color: var(--ink); max-width: 18ch; text-wrap: balance;
}
.hero__lead { margin-top: 20px; font-size: var(--fs-md); line-height: 1.35; font-weight: 600; color: var(--text); max-width: 26ch; }
.hero__note { margin-top: 10px; color: var(--muted); max-width: 40ch; }
.hero .btn { margin-top: 24px; }
.facts { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; }
.facts div { flex: 1 1 180px; max-width: 260px; padding: 12px 16px; border-radius: 14px; background: #fff; border: 1px solid var(--line); box-shadow: 0 6px 18px rgba(13, 44, 84, .06); }
.facts dt { font-size: 1.25rem; font-weight: 700; color: var(--accent); line-height: 1.2; }
.facts dd { color: var(--muted); font-size: .9375rem; line-height: 1.35; margin-top: 2px; }

.map { margin-right: -24px; }
.map__canvas { position: relative; background: linear-gradient(165deg, #b9ebea 0%, #8fd9e2 100%); border-radius: 24px; overflow: hidden; box-shadow: 0 24px 50px rgba(13, 44, 84, .14); }
.map__img { width: 100%; height: auto; }
.map__sea { position: absolute; transform: translate(-50%, -50%); font-size: .8125rem; color: #1f6a72; letter-spacing: .02em; white-space: nowrap; pointer-events: none; }
.map__sea--black { left: 47%; top: 13%; }
.map__sea--med { left: 26%; top: 91%; }
.map__caption { margin-top: 14px; font-size: .9375rem; color: var(--muted); }

.pin { position: absolute; width: 0; height: 0; }
.pin i {
  position: absolute; left: -7px; top: -7px; width: 14px; height: 14px; border-radius: 50%;
  background: var(--ink); box-shadow: 0 0 0 3px #fff;
}
.pin b {
  position: absolute; white-space: nowrap; font-size: .9375rem; font-weight: 600; color: var(--ink);
  background: #fff; padding: 4px 10px; border-radius: 8px; line-height: 1.25;
  box-shadow: 0 2px 8px rgba(13, 44, 84, .16);
}
.pin small { display: block; font-size: .75rem; font-weight: 600; color: var(--accent); }
.pin--right b { left: 14px; top: -14px; }
.pin--below-left b { right: -4px; top: 14px; }
.pin--below b { left: -10px; top: 16px; }
.pin--above b { left: -20px; bottom: 16px; }
.pin--office i { left: -9px; top: -9px; width: 18px; height: 18px; background: var(--accent); }
.pin--office i::after { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: #fff; }

/* Единственная анимация: города появляются по очереди при загрузке */
@media (prefers-reduced-motion: no-preference) {
  .pin { animation: pin-in .5s cubic-bezier(.2, .9, .3, 1.3) both; }
  .pin:nth-of-type(3) { animation-delay: .3s; }
  .pin:nth-of-type(4) { animation-delay: .45s; }
  .pin:nth-of-type(5) { animation-delay: .6s; }
  .pin:nth-of-type(6) { animation-delay: .8s; }
  @keyframes pin-in { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
}

/* ---------- Расчёт ---------- */
.calc { background: linear-gradient(180deg, #fff3d9 0%, #e4f6f3 100%); padding: 72px 0 80px; outline: none; }
.calc__head { max-width: 640px; margin-bottom: 28px; }
.calc__title, .section-title { font-size: var(--fs-xl); line-height: 1.15; letter-spacing: -.02em; font-weight: 700; color: var(--ink); }
.calc__intro { margin-top: 10px; color: var(--text); }

/* overflow: clip (а не hidden) - иначе липкая панель «Назад / Дальше» на телефоне не прилипает */
.calc__panel {
  display: grid; grid-template-columns: minmax(0, 1fr) 330px;
  background: #fff; border-radius: 20px; border: 1px solid var(--line); overflow: hidden; overflow: clip;
  box-shadow: 0 24px 60px rgba(13, 44, 84, .10);
}
.calc__main { padding: 32px 40px 28px; display: flex; flex-direction: column; min-height: 520px; }

.steps-bar { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.steps-bar li { font-size: var(--fs-sm); color: var(--muted); }
.steps-bar li::before { content: ""; display: block; height: 5px; border-radius: 5px; background: var(--line); margin-bottom: 8px; transition: background-color .25s; }
.steps-bar li.is-done::before, .steps-bar li.is-current::before { background: var(--turq); }
.steps-bar li.is-current { color: var(--ink); font-weight: 600; }

.q { margin-top: 28px; flex: 1; }
.q__title { font-size: var(--fs-lg); line-height: 1.2; letter-spacing: -.015em; font-weight: 700; color: var(--ink); padding: 0; }
.q__hint { margin-top: 6px; color: var(--muted); font-size: .9375rem; min-height: 1.4em; }
.q__hint.is-error { color: #b42318; font-weight: 600; }
@media (prefers-reduced-motion: no-preference) {
  .q__hint.is-error { animation: hint-nudge .3s ease; }
  @keyframes hint-nudge { 0%, 100% { transform: none; } 30% { transform: translateX(-4px); } 70% { transform: translateX(4px); } }
}
.nojs-note { margin-bottom: 14px; padding: 12px 16px; border-radius: 10px; background: #fff4d6; color: #5c4400; font-weight: 600; font-size: .9375rem; }
.js .nojs-note { display: none; }
.q__options { margin-top: 20px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }

.opt { position: relative; display: flex; align-items: center; gap: 14px; padding: 15px 16px; border: 1.5px solid var(--line); border-radius: 12px; cursor: pointer; background: #fff; transition: border-color .12s, background-color .12s, box-shadow .12s; min-height: 64px; }
.opt:hover { border-color: #7fcfcc; box-shadow: 0 6px 16px rgba(14, 154, 154, .10); }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt__icon { width: 26px; height: 26px; color: var(--turq); }
.opt__text { flex: 1; font-weight: 500; line-height: 1.3; }
.opt__people { display: flex; gap: 1px; color: var(--ink); flex: none; min-width: 76px; }
.opt__people .icon { width: 18px; height: 18px; stroke-width: 2; }
.opt__mark { width: 22px; height: 22px; flex: none; border: 1.5px solid #b9c3c9; border-radius: 50%; display: grid; place-items: center; background: #fff; transition: background-color .12s, border-color .12s; }
.opt--check .opt__mark { border-radius: 6px; }
.opt__mark .icon { width: 14px; height: 14px; stroke-width: 3; color: #fff; opacity: 0; }
.opt:has(input:checked) { border-color: var(--turq); background: var(--turq-tint); }
.opt:has(input:checked) .opt__mark { background: var(--turq); border-color: var(--turq); }
.opt:has(input:checked) .opt__mark .icon { opacity: 1; }
.opt:has(input:focus-visible) { outline: 3px solid var(--turq); outline-offset: 2px; }
@supports not selector(:has(a)) { .opt:focus-within { outline: 3px solid var(--turq); outline-offset: 2px; } }
/* запасной вариант для старых браузеров без :has */
.opt.is-checked { border-color: var(--turq); background: var(--turq-tint); }
.opt.is-checked .opt__mark { background: var(--turq); border-color: var(--turq); }
.opt.is-checked .opt__mark .icon { opacity: 1; }

.calc__nav { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); }
.calc__nav .btn--text { visibility: hidden; }
.calc__nav .btn--text.is-visible { visibility: visible; }

.sheet { background: var(--sheet); border-left: 1px solid var(--line); padding: 32px 28px; }
.sheet__title { font-size: 1.125rem; font-weight: 700; color: var(--ink); }
.sheet__rows { margin-top: 18px; display: grid; }
.sheet__rows div { padding: 12px 0; border-top: 1px dashed var(--sand-deep); }
.sheet__rows div:first-child { border-top: 0; padding-top: 0; }
.sheet__rows dt { font-size: var(--fs-sm); color: var(--muted); }
.sheet__rows dd { margin-top: 2px; font-weight: 600; line-height: 1.35; }
.sheet__rows dd.is-empty { color: #66758a; font-weight: 400; }

/* итог */
.result { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); }
.result__calc { padding: 36px 40px; }
.result__title { font-size: var(--fs-lg); font-weight: 700; color: var(--ink); letter-spacing: -.015em; outline: none; }
.result__price-label { margin-top: 22px; color: var(--muted); font-size: .9375rem; }
.result__price { font-size: clamp(2.5rem, 1.6rem + 2.4vw, 3.5rem); font-weight: 700; color: var(--accent); letter-spacing: -.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.result__price-sub { color: var(--muted); margin-top: 4px; }
.result__rows { margin: 24px 0 18px; display: grid; }
.result__rows div { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); }
.result__rows dt { color: var(--muted); font-size: .9375rem; }
.result__rows dd { font-weight: 600; }
.result__rows ul { display: grid; gap: 6px; font-weight: 500; }
.result__rows li { display: flex; gap: 8px; }
.result__rows li .icon { color: var(--turq); width: 18px; height: 18px; margin-top: 3px; }

.lead { background: var(--sheet); border-left: 1px solid var(--line); padding: 36px 36px 32px; }
.lead__title { font-size: 1.25rem; font-weight: 700; color: var(--ink); }
.lead__text { margin-top: 6px; color: var(--muted); font-size: .9375rem; margin-bottom: 18px; }
.field { display: block; margin-bottom: 10px; }
.field input {
  width: 100%; height: 52px; padding: 0 16px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff;
  font-size: 1rem; outline: none; transition: border-color .12s, box-shadow .12s;
}
.field input::placeholder { color: #66758a; opacity: 1; }
.field input:focus { border-color: var(--turq); box-shadow: 0 0 0 3px rgba(14, 154, 154, .18); }
.field__error { display: none; color: #b42318; font-size: var(--fs-sm); margin-top: 4px; }
.field.has-error input { border-color: #b42318; }
.field.has-error .field__error { display: block; }
.channels { margin: 6px 0 16px; }
.channels legend { font-size: var(--fs-sm); color: var(--muted); margin-bottom: 8px; padding: 0; }
.channels__list { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: inline-block; padding: 10px 16px; border: 1.5px solid var(--line); border-radius: 999px; background: #fff; font-size: .9375rem; font-weight: 500; }
.chip input:checked + span { border-color: var(--turq); background: var(--turq-tint); color: var(--ink); }
.chip input:focus-visible + span { outline: 3px solid var(--turq); outline-offset: 2px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.lead__status { margin-top: 12px; font-size: .9375rem; padding: 12px 14px; border-radius: 10px; }
.lead__status.is-ok { background: #e3f4ea; color: #145c32; }
.lead__status.is-err { background: #fdecea; color: #8a1f17; }
.lead__consent { margin-top: 12px; font-size: .8125rem; color: var(--muted); line-height: 1.45; }
.lead__or { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); font-size: var(--fs-sm); color: var(--muted); }
.lead__or .messengers { margin-top: 10px; }

/* ---------- Кнопки мессенджеров ---------- */
.messengers { display: flex; flex-wrap: wrap; gap: 12px; }
.msg {
  display: inline-flex; align-items: center; gap: 12px; padding: 12px 18px 12px 14px;
  border-radius: 14px; text-decoration: none; background: #fff; color: var(--ink);
  border: 1.5px solid var(--line); transition: border-color .15s, box-shadow .15s, transform .15s;
}
.msg:hover { border-color: var(--turq); box-shadow: 0 10px 24px rgba(13, 44, 84, .12); transform: translateY(-1px); }
.msg__icon { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--ink); color: #fff; flex: none; }
.msg__icon .icon { width: 20px; height: 20px; background: none; }
.msg__icon img { width: 24px; height: 24px; }
.msg.is-telegram .msg__icon { background: #229ed9; }
.msg.is-max .msg__icon { background: linear-gradient(135deg, #3d8bff, #7b4dff); }
.msg__text { display: grid; line-height: 1.25; }
.msg__text b { font-weight: 700; }
.msg__text small { font-size: var(--fs-sm); color: var(--muted); }
.messengers--compact .msg { padding: 8px 14px 8px 8px; gap: 10px; }
.messengers--compact .msg__icon { width: 32px; height: 32px; border-radius: 8px; }
.messengers--compact .msg__text small { display: none; }

/* всплывающая подсказка «номер скопирован» */
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 200;
  width: max-content; max-width: calc(100vw - 32px); padding: 14px 18px; border-radius: 12px;
  background: var(--ink-deep); color: #fff; font-size: .9375rem; line-height: 1.4; text-align: center;
  box-shadow: 0 16px 40px rgba(7, 34, 63, .3);
}

/* ---------- Как проходит оформление ---------- */
.process { padding: 80px 0; }
.process__list { margin-top: 40px; display: grid; grid-template-columns: repeat(var(--steps, 4), minmax(0, 1fr)); gap: 32px; counter-reset: step; position: relative; }
.process__list li { position: relative; counter-increment: step; }
/* пунктир от кружка до следующего шага */
.process__list li:not(:last-child)::after { content: ""; position: absolute; left: 62px; right: -18px; top: 23px; border-top: 2px dashed var(--sand-deep); }
.process__list li::before {
  content: counter(step); display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  background: var(--sun); color: var(--ink-deep); font-weight: 700; font-size: 1.125rem; position: relative;
  box-shadow: 0 0 0 6px #fff, 0 8px 18px rgba(255, 194, 71, .45);
}
.process__list li:last-child::before { background: var(--accent); color: #fff; box-shadow: 0 0 0 6px #fff, 0 8px 18px rgba(207, 31, 46, .35); }
.process__list h3 { margin-top: 20px; font-size: 1.1875rem; line-height: 1.3; font-weight: 700; color: var(--ink); }
.process__list p { margin-top: 8px; color: var(--muted); max-width: 30ch; }

/* ---------- Контакты ---------- */
.contact { background: linear-gradient(120deg, #d6f3f0 0%, #fff0cf 100%); padding: 72px 0; }
.contact__grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); grid-template-areas: "text msgs"; column-gap: 64px; align-items: center; }
.contact__text { grid-area: text; }
.contact__messengers { grid-area: msgs; flex-direction: column; }
.contact__messengers .msg { width: 100%; padding: 18px 22px 18px 18px; border-color: transparent; box-shadow: 0 10px 28px rgba(13, 44, 84, .10); }
.contact__messengers .msg:hover { border-color: var(--turq); }
.contact__messengers .msg__icon { width: 48px; height: 48px; }
.contact__messengers .msg__icon .icon { width: 24px; height: 24px; }
.contact__messengers .msg__text b { font-size: 1.125rem; }
.contact__messengers .msg__text small { font-size: 1rem; }
.contact__photo { grid-area: photo; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 20px; box-shadow: 0 20px 44px rgba(13, 44, 84, .16); }
.contact__grid.has-photo { grid-template-areas: "text photo" "msgs photo"; grid-template-rows: auto 1fr; row-gap: 28px; align-items: start; }
.contact__grid.has-photo .contact__messengers { flex-direction: row; }
.contact__grid.has-photo .contact__messengers .msg { width: auto; }
.contact__lead { margin-top: 14px; font-size: var(--fs-md); line-height: 1.45; color: var(--text); max-width: 36ch; }

/* ---------- Подвал ---------- */
.footer { background: var(--sand); color: #4d5a67; padding: 56px 0 28px; font-size: .9375rem; }
.footer__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.brand--footer img { height: auto; width: 190px; align-self: flex-start; }
.footer__title { font-size: .9375rem; font-weight: 700; color: var(--ink); margin-bottom: 14px; }
.footer__list { display: grid; gap: 10px; }
.footer__list a { text-decoration: none; }
.footer__list a:hover { color: var(--ink); text-decoration: underline; }
.footer__col > .footer__list:not(:first-child) { margin-top: 20px; }
.footer__contact { display: flex; align-items: center; gap: 10px; }
.footer__contact .icon, .footer__contact img { width: 24px; height: 24px; padding: 5px; border-radius: 7px; color: #fff; }
.footer__contact img { padding: 0; }
.footer__contact b { color: var(--ink); font-weight: 600; }
.footer__note { margin-top: 16px; color: #6b6657; max-width: 30ch; }
.footer__bottom.wrap { width: calc(100% - 48px); max-width: 1200px; padding-left: 0; padding-right: 0; }
.footer__bottom { margin-top: 44px; padding-top: 20px; border-top: 1px solid var(--sand-deep); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .8125rem; color: #6b6657; }
.footer__bottom a { color: inherit; }

/* ---------- Публикации: список и страница статьи ---------- */
.page { padding: 48px 0 72px; background: linear-gradient(180deg, #fff8e9 0%, #ffffff 320px); }
.page__title { font-size: clamp(1.75rem, 1.2rem + 2vw, 2.5rem); line-height: 1.12; letter-spacing: -.02em; font-weight: 700; color: var(--ink); text-wrap: balance; }
.page__lead { margin-top: 12px; color: var(--muted); max-width: 60ch; }
.back-link { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 20px; color: var(--muted); text-decoration: none; font-size: .9375rem; }
.back-link:hover { color: var(--ink); }

.cards { margin-top: 32px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; text-decoration: none; transition: box-shadow .15s, transform .15s; }
.card:hover { box-shadow: 0 18px 40px rgba(13, 44, 84, .12); transform: translateY(-2px); }
.card img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.card__body { display: grid; gap: 6px; padding: 18px 20px 22px; }
.card__body small { color: var(--muted); font-size: var(--fs-sm); }
.card__body b { font-size: 1.1875rem; line-height: 1.3; color: var(--ink); }
.card__body span { color: var(--muted); font-size: .9375rem; }
.cards__empty { margin-top: 32px; color: var(--muted); }

.article { max-width: 780px; margin: 0 auto; }
.article__meta { margin-top: 12px; color: var(--muted); font-size: .9375rem; }
.article__cover { margin-top: 24px; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 20px; }
.article__body { margin-top: 28px; font-size: 1.125rem; line-height: 1.65; }
.article__body > * + * { margin-top: 1em; }
.article__body h2 { margin-top: 1.6em; font-size: var(--fs-lg); line-height: 1.2; letter-spacing: -.015em; color: var(--ink); }
.article__body h3 { margin-top: 1.4em; font-size: 1.25rem; line-height: 1.3; color: var(--ink); }
.article__body ul, .article__body ol { padding-left: 1.3em; }
.article__body ul { list-style: disc; }
.article__body ol { list-style: decimal; }
.article__body li + li { margin-top: .4em; }
.article__body li::marker { color: var(--accent); font-weight: 700; }
.article__body a { color: var(--accent-deep); }
.article__body img { width: 100%; height: auto; border-radius: 16px; }
.article__body figcaption { margin-top: 8px; font-size: var(--fs-sm); color: var(--muted); }
.article__body blockquote { padding: 16px 20px; border-left: 4px solid var(--sun); background: var(--sheet); border-radius: 0 12px 12px 0; }
.cta { margin-top: 40px; padding: 28px 32px; border-radius: 20px; background: linear-gradient(120deg, #d6f3f0 0%, #fff0cf 100%); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.cta__text { flex: 1 1 280px; }
.cta__text b { display: block; font-size: var(--fs-md); line-height: 1.25; color: var(--ink); }
.cta__text span { display: block; margin-top: 6px; color: var(--text); font-size: 1rem; }

/* ---------- Шапка с «бургером»: меню из ТЗ в одну строку не помещается уже ниже 1300px ---------- */
@media (max-width: 1300px) {
  .header__row { gap: 16px; }
  .burger { display: inline-flex; }
  .header__contacts { order: 2; }
  .burger { order: 3; margin-left: 0; }
  .brand { margin-right: auto; }
  .nav {
    position: absolute; top: var(--header-h); left: 0; right: 0; margin: 0;
    flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 20px;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 20px 40px rgba(13, 44, 84, .12);
    max-height: calc(100vh - var(--header-h)); max-height: calc(100dvh - var(--header-h)); overflow-y: auto; display: none;
  }
  .nav.is-open { display: flex; }
  .nav__link { width: 100%; justify-content: space-between; padding: 14px 8px; font-size: 1rem; border-radius: 0; border-bottom: 1px solid var(--line); white-space: normal; text-align: left; }
  .hc { padding: 3px 0; }
  .nav__link:hover, .nav__item.is-open > .nav__link { background: none; }
  .nav__menu { position: static; box-shadow: none; border: 0; padding: 4px 0 8px 8px; min-width: 0; }
  .nav__menu a { padding: 12px; }
}

/* ---------- Планшет ---------- */
@media (max-width: 1100px) {
  .hero__grid { grid-template-columns: 1fr; gap: 40px; }
  .hero__title { max-width: 22ch; }
  .map { margin-right: 0; }
  .calc__panel { grid-template-columns: 1fr; }
  .sheet { display: none; }
  .result { grid-template-columns: 1fr; }
  .lead { border-left: 0; border-top: 1px solid var(--line); }
  .process__list { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
  .process__list li::after { display: none; }
  .contact__grid { grid-template-columns: 1fr; grid-template-areas: "text" "msgs"; row-gap: 28px; }
  .contact__grid.has-photo { grid-template-columns: 1fr; grid-template-areas: "text" "msgs" "photo"; grid-template-rows: auto; }
  .contact__grid .contact__messengers { flex-direction: row; }
  .contact__messengers .msg { width: auto; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- Телефон ---------- */
@media (max-width: 720px) {
  :root { --header-h: 64px; --fs-xl: 1.75rem; --fs-lg: 1.375rem; }
  body { font-size: 1rem; }
  .wrap { padding: 0 16px; }
  .header__contacts { display: none; }
  .nav__contacts { display: grid; gap: 14px; padding: 18px 8px 0; }
  .nav__contacts .hc { font-size: 1rem; padding: 6px 0; }
  .brand b { font-size: 1.0625rem; }
  .header .brand img { height: 36px; }
  .hero { padding: 28px 0 44px; }
  .hero__lead { font-size: 1.1875rem; margin-top: 16px; }
  .hero .btn { width: 100%; }
  .facts div { max-width: none; }
  .map__canvas { border-radius: 16px; margin: 0 -4px; }
  .map__sea { font-size: .6875rem; }
  .map__sea--med { left: 18%; top: 94%; }   /* на узком экране уходит из-под подписей городов */
  .pin b { font-size: .75rem; padding: 3px 7px; border-radius: 6px; }
  .pin small { font-size: .625rem; }
  .pin i { left: -5px; top: -5px; width: 10px; height: 10px; box-shadow: 0 0 0 2px #fff; }
  .pin--office i { left: -7px; top: -7px; width: 14px; height: 14px; }
  .pin--office i::after { inset: 4px; }
  .pin--right b { left: 10px; top: -11px; }
  .pin--below-left b { top: 10px; }
  .pin--below b { left: -6px; top: 10px; }
  .pin--above b { left: -14px; bottom: 12px; }
  .calc { padding: 44px 0 52px; }
  .calc__main { padding: 22px 18px 18px; min-height: 0; }
  .steps-bar li { font-size: .8125rem; }
  .q { margin-top: 22px; }
  .q__options { grid-template-columns: 1fr; gap: 8px; }
  .opt { padding: 12px 14px; min-height: 56px; }
  .calc__nav { position: sticky; bottom: 0; background: #fff; margin: 20px -18px -18px; padding: 12px 18px; z-index: 2; }
  .result__calc { padding: 26px 18px; }
  .result__rows div { grid-template-columns: 1fr; gap: 2px; }
  .lead { padding: 26px 18px; }
  .process { padding: 52px 0; }
  .process__list { grid-template-columns: 1fr; gap: 28px; margin-top: 28px; }
  .process__list li { display: grid; grid-template-columns: 48px 1fr; column-gap: 18px; }
  .process__list li::before { grid-row: span 2; }
  .process__list h3 { margin-top: 10px; }
  .contact { padding: 52px 0; }
  .messengers { flex-direction: column; }
  .contact__grid .contact__messengers, .contact__grid.has-photo .contact__messengers { flex-direction: column; }
  .contact__messengers .msg, .contact__grid.has-photo .contact__messengers .msg { width: 100%; }
  .messengers--compact { flex-direction: row; }
  .footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .footer__bottom.wrap { width: calc(100% - 32px); }
  .page { padding: 28px 0 52px; }
  .cards { grid-template-columns: 1fr; }
  .article__body { font-size: 1.0625rem; }
  .article__cover { border-radius: 14px; }
  .cta { padding: 22px 18px; }
  .cta .btn { width: 100%; }
  .toast { bottom: 16px; }
}

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

@media print {
  .header, .burger, .calc__nav, .lead, .toast, .cta { display: none !important; }
  .hero, .calc, .contact, .footer, .page { background: none !important; }
}
