/* ЕЦС — вариант 1 «Семейный центр». 13.09.2026.
   Один файл стилей. Цвета и размеры только через токены. */

:root {
  --bg: #F3F6F2;
  --paper: #FFFFFF;
  --soft: #EAF2E7;
  --ink: #17251C;
  --muted: #56655B;
  --line: #DCE5DA;
  --brand: #21633D;
  --brand-dark: #174A2D;
  --brand-2: #4E9B4F;
  --lime: #C9E26A;
  --action: #F5A623;
  --action-hover: #E8961A;
  --action-ink: #1C1407;
  --sea: #0F2A44;
  --sea-2: #1B4468;
  --error: #B42318;
  --ok: #1D7A3E;

  --display: "Fira Sans", "Segoe UI", Arial, sans-serif;
  --text: "Noto Sans", "Segoe UI", Arial, sans-serif;

  --fs-h1: clamp(2rem, 1.2rem + 2.6vw, 3.4rem);
  --fs-h2: clamp(1.6rem, 1.15rem + 1.5vw, 2.4rem);
  --fs-h3: 1.125rem;

  --r: 16px;
  --r-lg: 28px;
  --r-btn: 999px;
  --shadow: 0 1px 2px rgba(23,37,28,.05), 0 8px 24px rgba(23,37,28,.06);
  --shadow-lg: 0 2px 4px rgba(23,37,28,.04), 0 24px 60px rgba(23,37,28,.10);
  --container: 1320px;
  --header-offset: 150px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.6 var(--text); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--display); color: var(--ink); margin: 0; line-height: 1.15; text-wrap: balance; }
h1 { font-size: var(--fs-h1); font-weight: 700; letter-spacing: -.01em; }
h2 { font-size: var(--fs-h2); font-weight: 700; letter-spacing: -.005em; }
h3 { font-size: var(--fs-h3); font-weight: 600; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--action); outline-offset: 3px; border-radius: 6px; }
section[id], .tile[id] { scroll-margin-top: var(--header-offset); }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 28px; }
.ico { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lede { color: var(--muted); font-size: 1.0625rem; max-width: 62ch; }
.eyebrow { font: 600 .8125rem/1 var(--text); letter-spacing: .08em; text-transform: uppercase; color: var(--brand); }

/* ── кнопки ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 0 30px;
  border-radius: var(--r-btn); border: 2px solid transparent; font: 600 1rem/1 var(--display); text-decoration: none; cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s, transform .15s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn .ico { width: 18px; height: 18px; }
.btn-primary { background: var(--action); color: var(--action-ink); }
.btn-primary:hover { background: var(--action-hover); }
.btn-green { background: var(--brand-2); color: #fff; }
.btn-green:hover { background: var(--brand); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--brand); }
.btn-ghost:hover { border-color: var(--brand); }
.btn-light { background: #fff; color: var(--sea); }
.btn-light:hover { background: #E7EEF5; }
.btn-sm { min-height: 44px; padding: 0 20px; font-size: .9375rem; }
.btn-wide { width: 100%; }
.inline-link { background: none; border: 0; padding: 0; color: var(--brand); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font: inherit; }

/* ── шапка ── */
.header { position: sticky; top: 0; z-index: 40; background: var(--paper); box-shadow: 0 1px 0 var(--line); }
.header-main { display: flex; align-items: center; gap: 32px; min-height: 88px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.brand img { width: 52px; height: auto; }
.brand-name { display: flex; flex-direction: column; line-height: 1.2; }
.brand-name b { font: 700 1.1875rem/1.15 var(--display); color: var(--brand-dark); }
.brand-name span { font-size: .8125rem; color: var(--muted); }
.header-place { display: flex; align-items: flex-start; gap: 10px; font-size: .9375rem; font-weight: 500; line-height: 1.35; }
.header-place .ico { color: var(--brand-2); margin-top: 2px; }
.header-place small { display: block; color: var(--muted); font-size: .8125rem; font-weight: 400; }
.header-contact { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.header-tel { font: 700 1.3125rem/1.2 var(--display); text-decoration: none; white-space: nowrap; }
.header-tel2 { font: 600 .9375rem/1.2 var(--display); color: var(--muted); text-decoration: none; white-space: nowrap; }
.header-tel2:hover, .header-tel:hover { color: var(--brand); }
.link-btn { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; padding: 0; cursor: pointer;
  color: var(--brand); font-size: .875rem; font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.link-btn .ico { width: 15px; height: 15px; }
.header-call, .burger { display: none; }
.navbar { border-top: 1px solid var(--line); }
.navbar-row { display: flex; justify-content: space-between; gap: 18px; min-height: 52px; align-items: stretch; overflow-x: auto; scrollbar-width: none; }
.navbar-row::-webkit-scrollbar { display: none; }
.navbar a { display: flex; align-items: center; font: 600 .875rem/1 var(--display); letter-spacing: .04em; text-transform: uppercase;
  text-decoration: none; white-space: nowrap; border-bottom: 3px solid transparent; padding-top: 3px; }
.navbar a:hover { color: var(--brand); }
.navbar a[aria-current="true"] { border-bottom-color: var(--brand-2); color: var(--brand); }

/* ── первый экран ── */
.hero { padding: 40px 0 28px; }
.hero-box { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; min-height: 560px; background: var(--paper);
  border-radius: var(--r-lg); box-shadow: var(--shadow-lg); overflow: hidden; }
.hero-copy { position: relative; z-index: 2; padding: 56px 0 52px 56px; display: flex; flex-direction: column; gap: 30px; }
.hero-copy h1 { font-size: clamp(2.6rem, 1.6rem + 3.4vw, 4.4rem); letter-spacing: -.02em; }
.hero-lede { margin-top: -16px; max-width: 40ch; font-size: 1.1875rem; line-height: 1.5; color: var(--muted); }
.nowrap { white-space: nowrap; }
.checks { display: grid; gap: 14px; }
.checks li { display: flex; align-items: flex-start; gap: 14px; font-size: 1.0625rem; font-weight: 500; }
.check { display: grid; place-items: center; width: 24px; height: 24px; border: 2px solid var(--brand-2); border-radius: 6px; color: var(--brand-2); flex: none; margin-top: 1px; }
.check .ico { width: 14px; height: 14px; stroke-width: 3; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 8px; }
.hero-actions .btn { min-width: 220px; min-height: 60px; font-size: 1.0625rem; }
.hero-note { color: var(--muted); font-size: .9375rem; max-width: 52ch; }
.hero-note a { color: var(--ink); font-weight: 600; white-space: nowrap; }
.hero-art { position: relative; }
@media (prefers-reduced-motion: no-preference) {
  .hero-art img { animation: heroIn .9s cubic-bezier(.2,.7,.2,1) both .1s; }
  .hero-blob { animation: blobIn 1.1s cubic-bezier(.2,.7,.2,1) both; }
  .checks li { animation: fadeUp .6s both; }
  .checks li:nth-child(2) { animation-delay: .08s; } .checks li:nth-child(3) { animation-delay: .16s; } .checks li:nth-child(4) { animation-delay: .24s; }
}
@keyframes heroIn { from { opacity: 0; transform: translate(-46%, 18px); } to { opacity: 1; transform: translate(-46%, 0); } }
@keyframes blobIn { from { opacity: 0; transform: scale(.94); transform-origin: 70% 60%; } to { opacity: 1; transform: none; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.hero-blob { position: absolute; inset: 0 0 0 -4%; width: 104%; height: 100%; }
.hero-art img { position: absolute; left: 50%; bottom: 3%; transform: translateX(-46%); width: min(78%, 500px); }

/* ── страховые ── */
.partners { padding: 12px 0 8px; }
.partners-row { display: flex; align-items: center; gap: 40px; }
.partners-title { font: 600 .9375rem/1.35 var(--display); color: var(--muted); flex: none; max-width: 150px; }
.logos { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; flex: 1; }
.logos li { display: grid; place-items: center; height: 76px; padding: 0 14px; background: var(--paper); border-radius: var(--r); }
.logos img { width: auto; max-width: 100%; }
.lg-alfa { height: 34px; } .lg-ingos { height: 15px; } .lg-reso { height: 32px; } .lg-vsk { height: 34px; }
.lg-soglasie { height: 22px; } .lg-ugoria { height: 30px; } .lg-rgs { height: 17px; }
.lg-sogaz { height: 22px; } .lg-makc { height: 38px; } .lg-gelios { height: 34px; }

/* ── секции ── */
.section { padding: 88px 0; }
.section-soft { background: var(--soft); }
.section-head { display: grid; gap: 12px; margin-bottom: 40px; }
.section-head-row { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); align-items: end; gap: 40px; }

/* ── почему: открытая секция по решению Astra ── */
.why-top { display: grid; grid-template-columns: 55fr 45fr; gap: 48px; align-items: center; }
.why-copy { display: grid; gap: 18px; justify-items: start; }
.why-lede { color: var(--muted); font-size: 1.125rem; max-width: 52ch; }
.why-facts { margin: 4px 0 6px; display: flex; flex-wrap: wrap; gap: 12px 36px; }
.why-facts div { display: flex; align-items: baseline; gap: 10px; }
.why-facts dt { font: 700 1.75rem/1 var(--display); color: var(--brand); }
.why-facts dd { margin: 0; font-size: .9375rem; color: var(--muted); max-width: 22ch; line-height: 1.3; }
.why-copy .btn { min-height: 52px; border-radius: 24px; }
.why-art { width: 100%; max-width: 560px; justify-self: center; }
.why-points { display: grid; grid-template-columns: 1fr 1fr; gap: 0 56px; margin-top: 56px; border-top: 1px solid var(--line); }
.why-points li { display: grid; grid-template-columns: 88px 1fr; gap: 20px; align-items: center; padding: 26px 0; border-bottom: 1px solid var(--line); }
.why-points img { width: 88px; height: 88px; object-fit: contain; }
.why-points h3 { font-size: 1.125rem; margin-bottom: 4px; }
.why-points p { color: var(--muted); }

/* ── полоса «как оформляем» ── */
.band { background: var(--brand); color: #fff; padding: 80px 0; position: relative; overflow: hidden; }
.band-head { display: grid; grid-template-columns: auto 1fr; gap: 40px; align-items: end; margin-bottom: 48px; }
.band-head h2 { color: #fff; }
.band-head p { color: rgba(255,255,255,.8); max-width: 46ch; justify-self: end; text-align: right; }
.track-wrap { position: relative; }
.track { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; position: relative; counter-reset: s; }
.track::before { content: ""; position: absolute; top: 26px; left: 26px; width: calc(75% + 6px); height: 2px;
  background: repeating-linear-gradient(90deg, rgba(255,255,255,.45) 0 8px, transparent 8px 16px); }
.track li { position: relative; display: grid; gap: 8px; align-content: start; }
.track-n { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: var(--lime); color: var(--brand-dark);
  font: 700 1.375rem/1 var(--display); margin-bottom: 12px; box-shadow: 0 0 0 8px rgba(255,255,255,.08); }
.track h3 { color: #fff; font-size: 1.1875rem; }
.track p { color: rgba(255,255,255,.78); }
.band-cta { display: flex; align-items: center; gap: 28px; margin-top: 48px; padding-top: 32px; border-top: 1px solid rgba(255,255,255,.18); }
.band-tel { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font: 700 1.25rem/1 var(--display); }
.band-tels { display: inline-flex; flex-direction: column; gap: 8px; }
.band-tel2 { padding-left: 30px; font-size: 1.0625rem; color: rgba(255,255,255,.88); }
.band-tel:hover { color: var(--lime); }

/* анимация шагов: машинка едет по линии, шаги загораются по очереди.
   Без JS и при reduced-motion всё сразу в конечном состоянии. */
.track-fill { position: absolute; top: 26px; left: 26px; height: 2px; width: calc(75% + 6px); background: var(--lime); z-index: 0; transform-origin: left; }
.track-car { position: absolute; top: 5px; left: calc(75% - 46px); width: 44px; height: 27px; z-index: 2; filter: drop-shadow(0 4px 6px rgba(0,0,0,.25)); }
.track-car svg { width: 100%; height: 100%; display: block; }
.track li { z-index: 1; }
.track-n { transition: background-color .35s, color .35s, box-shadow .35s; }
.motion-ready .band:not(.is-run) .track-fill { transform: scaleX(0); }
.motion-ready .band:not(.is-run) .track-car { left: -6px; }
.motion-ready .band:not(.is-run) .track-n { background: transparent; color: var(--lime); box-shadow: inset 0 0 0 2px rgba(201,226,106,.55); }
.motion-ready .band.is-run .track-fill { transform: scaleX(1); transition: transform 2.6s cubic-bezier(.45,0,.2,1); }
.motion-ready .band.is-run .track-car { transition: left 2.6s cubic-bezier(.45,0,.2,1); animation: carBump .32s ease-in-out 9; }
@keyframes carBump { 50% { transform: translateY(-2px); } }
.motion-ready .band.is-run .track li:nth-child(1) .track-n { transition-delay: .05s; }
.motion-ready .band.is-run .track li:nth-child(2) .track-n { transition-delay: .9s; }
.motion-ready .band.is-run .track li:nth-child(3) .track-n { transition-delay: 1.75s; }
.motion-ready .band.is-run .track li:nth-child(4) .track-n { transition-delay: 2.6s; }
.tile.is-pulse { animation: tilePulse 1.6s ease-out; }
@keyframes tilePulse { 0% { box-shadow: 0 0 0 0 rgba(245,166,35,.75); } 30% { box-shadow: 0 0 0 6px rgba(245,166,35,.55); } 100% { box-shadow: 0 0 0 16px rgba(245,166,35,0); } }
.motion-ready .reveal { transition-delay: calc(var(--i, 0) * 40ms); }

/* ── виды страхования: иллюстрации вместо иконок ── */
.tiles { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.tile { grid-column: span 2; display: flex; flex-direction: column; gap: 14px; text-align: left; padding: 22px 24px 26px; background: var(--paper); border: 1px solid #E2EBDF;
  border-radius: var(--r-lg); text-decoration: none; cursor: pointer; transition: box-shadow .15s, transform .15s, border-color .15s; }
.tile-wide { grid-column: span 3; padding: 30px 32px 24px; }
@media (hover: hover) { .tile:hover { transform: translateY(-1px); border-color: #C9D9C4; box-shadow: var(--shadow); } }
.tile-img { width: 100%; height: 190px; object-fit: contain; order: -1; }
.tile-wide .tile-img { height: 240px; order: 1; margin-top: auto; }
.tile-text { display: flex; flex-direction: column; gap: 6px; flex: 1; }
.tile .tile-go { margin-top: auto; padding-top: 8px; }
.tile h3 { font-size: 1.25rem; }
.tile-wide h3 { font-size: 1.75rem; }
.tile p { color: var(--muted); font-size: .9375rem; }
.tile-wide p { font-size: 1rem; max-width: 44ch; }
.tile-go { display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; color: var(--brand); font: 600 1rem/1 var(--display); }
.tile-to { border-color: #CFE0EE; box-shadow: inset 0 3px 0 #9CC3E6; }

/* ── заявка ── */
.lead-card { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); background: var(--paper); border-radius: var(--r-lg); box-shadow: var(--shadow); overflow: hidden; }
.lead-side { display: grid; grid-template-rows: auto 1fr; background: var(--brand); color: #fff; }
.lead-photo { margin: 0; position: relative; }
.lead-photo img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.lead-photo figcaption { position: absolute; left: 20px; bottom: 16px; background: rgba(15,37,24,.72); color: #fff; font-size: .8125rem; padding: 6px 12px; border-radius: 999px; }
.lead-copy { padding: 36px 40px 40px; display: grid; gap: 22px; align-content: start; }
.lead-copy h2 { color: #fff; font-size: clamp(1.5rem, 1.1rem + 1vw, 2rem); }
.lead-steps { display: grid; gap: 14px; }
.lead-steps li { display: flex; gap: 12px; align-items: flex-start; color: rgba(255,255,255,.9); }
.lead-steps .ico { color: var(--lime); margin-top: 3px; }
.lead-steps a { color: #fff; font-weight: 600; }
.lead-form { padding: 44px 48px; display: grid; gap: 18px; align-content: center; }
.form-title { font-size: 1.5rem; margin-bottom: 4px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: .9375rem; }
.opt { color: var(--muted); font-weight: 400; }
.field input[type="tel"], .field input[type="text"], .field select { width: 100%; min-height: 54px; padding: 0 16px; border: 1.5px solid #C9D4C8; border-radius: 12px;
  background: #fff; font: 400 1.0625rem/1 var(--text); color: var(--ink); }
.field select { 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='%2321633D' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 44px; }
.field input:focus, .field select:focus { outline: none; border-color: var(--brand-2); box-shadow: 0 0 0 4px rgba(78,155,79,.18); }
.reply { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.reply legend { width: 100%; margin-bottom: 6px; padding: 0; font-weight: 600; font-size: .9375rem; }
.reply label { position: relative; cursor: pointer; }
.reply input { position: absolute; opacity: 0; }
.reply span { display: inline-flex; align-items: center; min-height: 42px; padding: 0 16px; border: 1.5px solid #C9D4C8; border-radius: 999px; font-weight: 600; font-size: .9375rem; transition: border-color .15s; }
.reply label:hover span { border-color: var(--brand-2); }
.reply input:checked + span { background: var(--brand); border-color: var(--brand); color: #fff; }
.reply input:focus-visible + span { outline: 3px solid var(--action); outline-offset: 2px; }
.err { display: none; color: var(--error); font-size: .875rem; }
.field.is-error input { border-color: var(--error); }
.field.is-error .err { display: block; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-weight: 400 !important; font-size: .875rem !important; color: var(--muted); cursor: pointer; }
.consent input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--brand); flex: none; }
.form-fine { color: var(--muted); font-size: .8125rem; text-align: center; }
.hp { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; border: 0; overflow: hidden; clip-path: inset(50%); opacity: 0; pointer-events: none; }
.form-status { padding: 14px 16px; border-radius: 12px; font-size: .9375rem; }
.form-status.is-ok { background: #E7F4EA; color: var(--ok); }
.form-status.is-fail { background: #FDECEA; color: var(--error); }
.form-status a { color: inherit; font-weight: 600; }

/* ── техосмотр ── */
.to-section { background: linear-gradient(180deg, #EAF1F7 0%, var(--bg) 100%); }
.to-extra { display: grid; gap: 10px; }
.to-extra li { display: flex; gap: 10px; font-weight: 500; }
.to-extra .ico { color: #1B5C8F; }
.to-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.to-card { background: var(--paper); border-radius: var(--r-lg); overflow: hidden; display: grid; grid-template-rows: auto 1fr; box-shadow: var(--shadow); }
.to-pic { display: block; background: #fff; border-bottom: 1px solid #E3ECF4; aspect-ratio: 16 / 8.2; overflow: hidden; }
.to-pic img { width: 100%; height: 100%; object-fit: contain; padding: 18px 20px 0; transition: transform .35s; }
.to-card:hover .to-pic img { transform: scale(1.03); }
.to-body { padding: 28px 32px 32px; display: grid; gap: 10px; align-content: start; }
.to-tag { font: 600 .8125rem/1 var(--text); color: #1B5C8F; letter-spacing: .04em; text-transform: uppercase; }
.to-body h3 { font-size: 1.625rem; }
.to-desc { color: var(--muted); }
.to-meta { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 4px; }
.to-meta a, .to-meta span { display: inline-flex; align-items: center; gap: 8px; }
.to-meta a { font: 700 1.125rem/1 var(--display); text-decoration: none; }
.to-meta .ico { width: 17px; height: 17px; color: var(--brand-2); }
.to-meta span { color: var(--muted); font-size: .9375rem; }
.to-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 14px; }

/* ── фрегат ── */
.fregat { color: #fff; padding: 88px 0; background: var(--sea);
  background-image: radial-gradient(90% 120% at 85% 20%, #2A5B86 0%, transparent 60%), linear-gradient(180deg, var(--sea) 0%, #0B2136 100%); }
.fregat-in { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.fregat-copy { display: grid; gap: 20px; justify-items: start; }
.fregat h2 { color: #fff; }
.eyebrow-light { color: #9CC3E6; }
.fregat-lede { color: rgba(255,255,255,.84); font-size: 1.125rem; max-width: 52ch; }
.fregat-list { display: flex; flex-wrap: wrap; gap: 8px; }
.fregat-list li { padding: 8px 16px; border: 1px solid rgba(255,255,255,.28); border-radius: 999px; font-size: .9375rem; }
.fregat-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; margin-top: 8px; }
.fregat-tel { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font: 700 1.25rem/1 var(--display); }
.fregat-art { display: grid; place-items: center; }
.fregat-art picture { display: block; width: 100%; max-width: 600px; }
.fregat-art img { width: 100%; height: auto; -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 62%, transparent 100%); mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 62%, transparent 100%); }

/* ── где нас найти ── */
.places { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.place { background: var(--paper); border-radius: var(--r-lg); overflow: hidden; display: grid; grid-template-columns: 40% 1fr; box-shadow: var(--shadow); }
.place-map { width: 100%; height: 100%; min-height: 250px; object-fit: cover; }
.place-body { padding: 26px 28px; display: grid; gap: 8px; align-content: start; justify-items: start; }
.place-kind { font: 600 .75rem/1 var(--text); letter-spacing: .06em; text-transform: uppercase; color: var(--brand-2); }
.place h3 { font-size: 1.25rem; }
.place-hint { color: var(--muted); font-size: .9375rem; }
.place-meta { margin: 6px 0 10px; display: grid; gap: 6px; }
.place-meta div { display: grid; grid-template-columns: 72px 1fr; gap: 8px; font-size: .9375rem; }
.place-meta dt { color: var(--muted); }
.place-meta dd { margin: 0; display: grid; }
.place-meta a { font-weight: 700; text-decoration: none; }
.map-credit { margin-top: 14px; color: var(--muted); font-size: .75rem; }

/* ── вопросы ── */
.faq-grid { display: grid; grid-template-columns: 4fr 8fr; gap: 56px; align-items: start; }
.faq-side { display: grid; gap: 14px; position: sticky; top: calc(var(--header-offset) + 16px); }
.faq-tel { display: inline-flex; align-items: center; gap: 10px; font: 700 1.375rem/1 var(--display); text-decoration: none; color: var(--brand); margin-top: 8px; }
.faq-tel2 { display: flex; width: fit-content; padding-left: 32px; margin-top: 10px; font-size: 1.125rem; }
.faq-tel:hover { color: var(--brand-dark); }
.faq { display: grid; gap: 12px; }
.faq details { background: var(--paper); border-radius: var(--r); padding: 0 24px; }
.faq summary { list-style: none; cursor: pointer; padding: 22px 36px 22px 0; position: relative; font: 600 1.0625rem/1.35 var(--display); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 2px; top: 50%; width: 12px; height: 12px; margin-top: -8px; border-right: 2.5px solid var(--brand-2); border-bottom: 2.5px solid var(--brand-2); transform: rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq .a { padding: 0 0 22px; color: var(--muted); max-width: 70ch; }

/* ── подвал ── */
.footer { background: var(--paper); padding: 64px 0 28px; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.footer-brand { display: flex; gap: 14px; align-items: flex-start; }
.footer-brand b { font: 700 1.0625rem/1.2 var(--display); color: var(--brand-dark); }
.footer-brand p { color: var(--muted); font-size: .9375rem; margin-top: 6px; }
.footer h4 { font: 600 .8125rem/1 var(--text); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.footer ul { display: grid; gap: 8px; font-size: .9375rem; }
.footer ul a { text-decoration: none; }
.footer ul a:hover { color: var(--brand); text-decoration: underline; }
.footer-tel { display: block; font: 700 1.25rem/1 var(--display); text-decoration: none; margin-bottom: 12px; }
.footer-legal { margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--line); display: grid; gap: 8px; color: var(--muted); font-size: .8125rem; }
.footer-docs { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer-small { font-size: .75rem; }

/* ── документы ── */
.doc { width: min(760px, calc(100vw - 32px)); max-height: calc(100vh - 48px); padding: 0; border: 0; border-radius: var(--r-lg); box-shadow: var(--shadow-lg); color: var(--ink); }
.doc::backdrop { background: rgba(15,30,20,.55); }
.doc-head { position: sticky; top: 0; display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 22px 28px; background: #fff; border-bottom: 1px solid var(--line); }
.doc-head h2 { font-size: 1.25rem; }
.doc-close { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--soft); font-size: 1.5rem; line-height: 1; cursor: pointer; flex: none; }
.doc-body { padding: 20px 28px 32px; display: grid; gap: 12px; font-size: .9375rem; }
.doc-body h3 { font-size: 1rem; margin-top: 10px; }
.doc-date { color: var(--muted); }

/* ── мобильное меню и панель ── */
.mmenu { position: fixed; inset: 0; z-index: 60; background: rgba(15,30,20,.5); }
.mmenu-panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(340px, 88vw); background: #fff; padding: 72px 28px 28px; display: flex; flex-direction: column; overflow-y: auto; }
.mmenu-panel a { padding: 14px 0; border-bottom: 1px solid var(--line); text-decoration: none; font: 600 1.0625rem/1.2 var(--display); }
.mmenu-panel .mmenu-tel { border: 0; margin-top: 18px; color: var(--brand); font-size: 1.25rem; }
.mmenu-panel .mmenu-tel + .mmenu-tel { margin-top: 6px; }
.footer-tel + .footer-tel { margin-top: -2px; }
.mmenu-close { position: absolute; top: 16px; right: 18px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--soft); font-size: 1.75rem; line-height: 1; cursor: pointer; }
.fab { display: none; }

/* ── появление ── */
.motion-ready .reveal { opacity: 0; transform: translateY(8px); transition: opacity .28s ease-out, transform .28s ease-out; }
.motion-ready .reveal.is-in { opacity: 1; transform: none; }

/* ═══ адаптив ═══ */
@media (max-width: 1240px) {
  .header-place { display: none; }
  .partners-row { flex-direction: column; align-items: stretch; gap: 16px; }
  .partners-title { max-width: none; }
  .place { grid-template-columns: 1fr; }
  .place-map { min-height: 0; aspect-ratio: 16 / 7; height: auto; }
}
@media (max-width: 1100px) {
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .tile { grid-column: span 1; }
  .tile-wide { grid-column: span 2; }
  .why-top { gap: 32px; }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .logos { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .fregat-in { grid-template-columns: 1fr 320px; }
}
@media (max-width: 980px) {
  :root { --header-offset: 76px; }
  .container { padding: 0 20px; }
  .header-main { min-height: 68px; gap: 12px; }
  .brand img { width: 42px; }
  .brand-name b { font-size: 1rem; }
  .brand-name span { display: none; }
  .brand-name b { max-width: 170px; }
  .header-contact, .navbar { display: none; }
  .header-call { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--soft); color: var(--brand); }
  .burger { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--soft); cursor: pointer; }
  .burger span, .burger span::before, .burger span::after { display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; position: relative; content: ""; }
  .burger span::before { position: absolute; top: -6px; } .burger span::after { position: absolute; top: 6px; }
  .hero { padding: 16px 0 12px; }
  .hero-box { grid-template-columns: 1fr; min-height: 0; border-radius: 22px; }
  .hero-copy { padding: 30px 22px 26px; gap: 22px; }
  .hero-art { order: 2; height: 300px; }
  .hero-blob { inset: 0; width: 100%; }
  .hero-art img { width: 250px; transform: translateX(-50%); bottom: 0; }
  .checks li { font-size: 1rem; }
  .hero-lede { margin-top: -10px; font-size: 1.0625rem; }
  .hero-actions .btn { flex: 1 1 100%; min-width: 0; }
  .section { padding: 60px 0; }
  .section-head { margin-bottom: 28px; }
  .section-head-row { grid-template-columns: 1fr; gap: 18px; }
  .band { padding: 60px 0; }
  .band-head { grid-template-columns: 1fr; gap: 12px; margin-bottom: 32px; }
  .band-head p { justify-self: start; text-align: left; }
  .track { grid-template-columns: 1fr; gap: 22px; }
  .track::before { top: 26px; bottom: 26px; left: 26px; right: auto; width: 2px; height: auto; background: repeating-linear-gradient(180deg, rgba(255,255,255,.45) 0 8px, transparent 8px 16px); }
  .track li { grid-template-columns: 54px 1fr; column-gap: 18px; row-gap: 2px; }
  .track-n { grid-row: span 2; margin: 0; }
  .track-fill { top: 26px; left: 26px; width: 2px; height: calc(100% - 60px); transform-origin: top; }
  .track-car { display: none; }
  .motion-ready .band:not(.is-run) .track-fill { transform: scaleY(0); }
  .motion-ready .band.is-run .track-fill { transform: scaleY(1); }

  .band-cta { flex-direction: column; align-items: stretch; gap: 18px; }
  .band-cta .btn { width: 100%; }
  .band-tel { justify-content: center; }
  .band-tels { align-items: center; }
  .band-tel2 { padding-left: 0; }
  .tiles { gap: 12px; }
  .why-top { grid-template-columns: 1fr; gap: 24px; }
  .why-points { grid-template-columns: 1fr; margin-top: 32px; }
  .why-points li { grid-template-columns: 64px 1fr; gap: 16px; padding: 18px 0; }
  .why-points img { width: 64px; height: 64px; }
  .why-facts { gap: 10px 24px; }
  .tile-img { height: 176px; }
  .tile-wide .tile-img { height: 200px; }
  .tile { padding: 20px; min-height: 0; gap: 12px; }
  .tile-wide { padding: 24px; min-height: 0; }
  .tile-wide h3 { font-size: 1.375rem; }
  .lead-card { grid-template-columns: minmax(0, 1fr); }
  .lead-side, .lead-copy, .lead-form, .lead-form .field { min-width: 0; }
  .lead-steps li { flex-wrap: wrap; }
  .lead-steps a { overflow-wrap: anywhere; }
  .lead-copy { padding: 26px 22px 28px; }
  .lead-form { padding: 28px 22px 30px; }
  .to-grid { grid-template-columns: 1fr; }
  .to-body { padding: 22px; }
  .to-actions .btn { flex: 1 1 auto; }
  .fregat { padding: 60px 0; }
  .fregat-in { grid-template-columns: 1fr; gap: 32px; }
  .fregat-art { order: -1; }
  .fregat-art picture { max-width: 340px; margin: 0 auto; }
  .places { grid-template-columns: 1fr; gap: 16px; }
  .place-body { padding: 20px 22px 24px; }
  .faq-grid { grid-template-columns: 1fr; gap: 24px; }
  .faq-side { position: static; }
  .faq details { padding: 0 18px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-brand { grid-column: 1 / -1; }
  .fab { display: grid; grid-template-columns: 1fr 1.3fr; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: #fff; box-shadow: 0 -6px 20px rgba(23,37,28,.10); transition: transform .25s; }
  .fab .btn { min-height: 50px; padding: 0 12px; }
  .fab.is-hidden, .fab.is-form { transform: translateY(110%); }
  body { padding-bottom: 72px; }
}
@media (max-width: 560px) {
  .logos { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .logos li { height: 64px; }
  .tiles { grid-template-columns: 1fr; }
  .tile-wide { grid-column: span 1; }
  .place-meta div { grid-template-columns: 1fr; gap: 0; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* ── согласие на cookie и Метрику (появляется только при подключённом счётчике) ── */
.consent-bar { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 70; display: flex; align-items: center; justify-content: space-between; gap: 16px; max-width: 780px; margin: 0 auto; padding: 14px 16px 14px 22px; border-radius: 16px; background: #fff; box-shadow: 0 18px 50px rgba(18, 50, 31, .22); font-size: .9375rem; }
.consent-bar p { margin: 0; }
.consent-actions { display: flex; flex: none; gap: 8px; }
.consent-bar .btn { min-height: 42px; padding: 0 18px; }
@media (max-width: 720px) {
  .consent-bar { flex-direction: column; align-items: stretch; bottom: 88px; }
  .consent-actions .btn { flex: 1; }
}

/* 29.09.2026 — ссылки на страницы «Техосмотр в Ессентуках» и «Пятигорск» */
.to-more { margin-top: 28px; }
.to-more a { display: inline-flex; align-items: center; gap: 8px; color: var(--brand); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.to-more a:hover { color: var(--brand-dark); }
.place-link { color: inherit; text-decoration: none; }
.place-link:hover { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
