/* ==========================================================================
   Ломбард «Швидка Позика» — стилі
   Концепт: «квитанція та клеймо». Тепла паперова підкладка, темно-зелені
   чорнила, один золотий акцент. Антиква для заголовків і чисел, гротеск для
   тексту. Проби металу (375/585/750/925) — як мова іконок.
   ========================================================================== */

:root {
  /* Бренд: бордова вивіска + золоті літери */
  --paper: #f6f1ea;
  --paper-2: #ece4d9;
  --card: #fffcf6;
  --ink: #2b0a1f;          /* текст: майже чорний слива */
  --ink-2: #4a2a3c;
  --ink-3: #6b4f5e;
  --muted: #8a7580;
  --brand: #4e002a;        /* бордо вивіски */
  --brand-2: #6a0a3e;      /* світліше бордо (центр градієнта) */
  --brand-deep: #2a001e;   /* край градієнта */
  --brand-grad: radial-gradient(ellipse 120% 140% at 50% 45%, #6a0a3e 0%, #4e002a 45%, #2a001e 100%);
  --line: rgba(78, 0, 42, 0.14);
  --line-strong: rgba(78, 0, 42, 0.34);
  --gold: #b8902e;         /* золото на світлому фоні */
  --gold-2: #e8c76a;       /* золото на бордовому */
  --gold-3: #f8d870;       /* відблиск */
  --gold-soft: #f3e7c6;
  --gold-text: linear-gradient(180deg, #fbe7a0 0%, #e8c76a 38%, #b8902e 62%, #f2d488 100%);
  --ok: #2d7a4f;

  --font-display: "Prata", "Times New Roman", Georgia, serif;
  --font-text: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --w: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 6px;
  --shadow: 0 1px 0 rgba(78, 0, 42, 0.06), 0 18px 40px -24px rgba(42, 0, 30, 0.35);
}

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

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

body {
  margin: 0;
  overflow-x: clip;
  min-width: 320px;
  font-family: var(--font-text);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  /* легка паперова текстура */
  background-image:
    radial-gradient(rgba(78, 0, 42, 0.04) 0.6px, transparent 0.6px);
  background-size: 6px 6px;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.005em;
  margin: 0;
}
p { margin: 0; }

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

/* Тонка «квитанційна» лінія-роздільник */
.rule { height: 1px; background: var(--line); border: 0; margin: 0; }
.rule--dashed { background: none; border-top: 1px dashed var(--line-strong); }

/* ---------- Типографіка ---------- */
.overline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.overline::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--gold);
}

.h1 { font-size: clamp(38px, 5.2vw, 66px); }
.h2 { font-size: clamp(30px, 3.6vw, 46px); }
.h3 { font-size: clamp(22px, 2.2vw, 28px); }
.lead { font-size: clamp(17px, 1.35vw, 20px); color: var(--ink-2); max-width: 56ch; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.num { font-family: var(--font-display); font-variant-numeric: tabular-nums lining-nums; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 22px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.01em;
  border: 1px solid var(--brand);
  background: var(--brand);
  color: var(--paper);
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
.btn:hover { background: var(--brand-2); border-color: var(--brand-2); }
.btn:active { transform: translateY(1px); }
.btn--ghost { background: transparent; color: var(--brand); border-color: var(--brand); }
.btn--ghost:hover { background: rgba(78, 0, 42, 0.06); color: var(--brand); }
.btn--gold { background: linear-gradient(180deg, #e8c76a, #c9a13f); border-color: #b8902e; color: var(--brand-deep); }
.btn--gold:hover { background: linear-gradient(180deg, #f2d488, #d4ad4c); border-color: #b8902e; }
.btn--light { background: var(--paper); border-color: var(--paper); color: var(--ink); }
.btn--light:hover { background: #fff; }
.btn--sm { min-height: 42px; padding: 0 16px; font-size: 14px; }
.btn .arr { transition: transform 0.15s ease; }
.btn:hover .arr { transform: translateX(3px); }

.link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 2px;
}
.link:hover { border-color: var(--ink); }

/* ---------- Шапка ---------- */
.topbar {
  background: var(--brand-deep);
  color: rgba(243, 239, 230, 0.8);
  font-size: 13px;
}
.topbar .wrap {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  min-height: 36px;
  align-items: center;
}
.topbar b { color: var(--paper); font-weight: 600; }
.topbar .dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--gold-3); margin-right: 8px; vertical-align: middle; }

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header .wrap {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 76px;
}

.logo {
  display: flex;
  align-items: center;
  margin-right: auto;
}
/* Табличка як на вивісці: бордо + золоті капітельні літери */
.logo__plate {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 7px 14px 8px;
  border-radius: 3px;
  background: radial-gradient(ellipse 110% 130% at 50% 40%, #6a0a3e 0%, #4e002a 50%, #2a001e 100%);
  box-shadow: inset 0 0 0 1px rgba(232, 199, 106, 0.35), inset 0 0 0 2px rgba(42, 0, 30, 0.6), 0 1px 0 rgba(0, 0, 0, 0.15);
  font-family: var(--font-display);
  text-transform: uppercase;
  line-height: 1;
  white-space: nowrap;
  color: #e8c76a;
}
.logo__l1, .logo__l2 {
  background: var(--gold-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 1px 0 rgba(0, 0, 0, 0.35));
}
.logo__l1 { font-size: 17px; letter-spacing: 0.16em; }
.logo__l2 { font-size: 9.5px; letter-spacing: 0.2em; }
.logo--lg .logo__plate { padding: 12px 22px 14px; gap: 6px; }
.logo--lg .logo__l1 { font-size: 26px; }
.logo--lg .logo__l2 { font-size: 13px; }

.nav { display: flex; gap: 6px; }
.nav a {
  padding: 10px 12px;
  font-weight: 600;
  font-size: 15px;
  border-radius: var(--radius);
  color: var(--ink-2);
}
.nav a:hover { background: rgba(78, 0, 42, 0.06); color: var(--ink); }
.nav a.is-active { color: var(--brand); box-shadow: inset 0 -2px 0 var(--gold); border-radius: 0; }

.header__phone {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.15;
}
.header__phone b { font-size: 16px; font-weight: 700; letter-spacing: 0.01em; }
.header__phone span { font-size: 12px; color: var(--muted); }

.burger {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  position: relative;
}
.burger span, .burger::before, .burger::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.burger::before { top: 15px; }
.burger span { top: 21px; }
.burger::after { top: 27px; }
.burger[aria-expanded="true"]::before { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span { opacity: 0; }
.burger[aria-expanded="true"]::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  padding: clamp(40px, 6vw, 88px) 0 clamp(36px, 5vw, 72px);
  position: relative;
  overflow: hidden;
}
.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(min(360px, 100%), 0.85fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}
.hero__title { margin: 18px 0 20px; text-wrap: balance; }
.hero__title em { font-style: normal; color: var(--brand); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero__note {
  margin-top: 26px;
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 14px;
  color: var(--ink-3);
}
.hero__note span { display: inline-flex; align-items: center; gap: 8px; }
.hero__note svg { width: 16px; height: 16px; color: var(--gold); }

/* ---------- Квитанція (калькулятор) ---------- */
.ticket {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px 26px 22px;
}
/* перфорація зверху */
.ticket::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -1px;
  height: 10px;
  background:
    radial-gradient(circle at 6px -2px, transparent 6px, var(--card) 6.5px) 0 0 / 20px 10px repeat-x;
  filter: drop-shadow(0 -1px 0 var(--line));
}
.ticket__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin: -8px -8px 18px;
  padding: 12px 16px;
  border-radius: 3px;
  background: var(--brand-grad);
  box-shadow: inset 0 0 0 1px rgba(232, 199, 106, 0.3);
}
.ticket__head h3 { font-size: 20px; color: var(--gold-2); text-transform: uppercase; letter-spacing: 0.08em; }
.ticket__id {
  font-family: var(--font-display);
  font-size: 12px;
  color: rgba(246, 241, 234, 0.6);
  letter-spacing: 0.08em;
}
.ticket__label {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 18px 0 10px;
}
.ticket__label:first-of-type { margin-top: 0; }

/* сегментний перемикач металу */
.seg {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  overflow: hidden;
}
.seg button {
  padding: 11px 12px;
  font-weight: 700;
  font-size: 14px;
  color: var(--ink-3);
  border-right: 1px solid var(--line-strong);
}
.seg button:last-child { border-right: 0; }
.seg button[aria-pressed="true"] { background: var(--brand); color: var(--gold-2); }

/* клейма проб */
.hallmarks { display: flex; flex-wrap: wrap; gap: 8px; }
.hallmark {
  --hm-bg: transparent;
  position: relative;
  min-width: 62px;
  padding: 9px 12px;
  font-family: var(--font-display);
  font-size: 16px;
  line-height: 1;
  border: 1px solid var(--line-strong);
  border-radius: 999px 4px 999px 4px; /* форма клейма */
  background: var(--hm-bg);
  color: var(--ink);
  transition: background 0.15s ease, color 0.15s ease;
}
.hallmark:hover { --hm-bg: var(--gold-soft); }
.hallmark[aria-pressed="true"] { --hm-bg: var(--brand); color: var(--gold-2); border-color: var(--brand); }
.hallmark[aria-pressed="true"]::after {
  content: "";
  position: absolute;
  inset: 3px;
  border: 1px solid rgba(243, 239, 230, 0.35);
  border-radius: inherit;
}

.field {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: #fff;
}
.field input {
  width: 100%;
  min-width: 0;
  padding: 12px 14px;
  border: 0;
  background: transparent;
  font-size: 18px;
  font-weight: 600;
  outline: none;
}
.field input::-webkit-outer-spin-button,
.field input::-webkit-inner-spin-button { -webkit-appearance: none; }
.field input[type="number"] { -moz-appearance: textfield; appearance: textfield; }
.field__unit {
  padding: 0 14px;
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
  border-left: 1px solid var(--line);
  align-self: stretch;
  display: flex;
  align-items: center;
}
.field:focus-within { border-color: var(--ink); }

.range {
  width: 100%;
  margin: 14px 0 0;
  appearance: none;
  height: 2px;
  background: var(--line-strong);
  outline: none;
}
.range::-webkit-slider-thumb {
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--brand);
  border: 3px solid var(--card);
  box-shadow: 0 0 0 1px var(--brand);
  cursor: pointer;
}
.range::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--brand);
  border: 3px solid var(--card);
  box-shadow: 0 0 0 1px var(--brand);
  cursor: pointer;
}

.ticket__total {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px dashed var(--line-strong);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
}
.ticket__total .lbl { font-size: 13px; color: var(--ink-3); font-weight: 600; }
.ticket__sum {
  font-family: var(--font-display);
  font-size: clamp(34px, 3vw, 44px);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.ticket__sum small { font-size: 0.55em; color: var(--muted); margin-left: 4px; }
.ticket__rate { text-align: right; font-size: 13px; color: var(--muted); }
.ticket__rate b { color: var(--ink); font-weight: 700; }
.ticket__foot {
  margin-top: 18px;
  display: grid;
  gap: 10px;
}
.ticket__foot .btn { width: 100%; }
.ticket__fine { font-size: 12px; color: var(--muted); line-height: 1.45; }

/* ---------- Стрічка з пробами ---------- */
.strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper-2);
  overflow: hidden;
  white-space: nowrap;
}
.strip__track {
  display: inline-flex;
  gap: 0;
  animation: marquee 40s linear infinite;
}
.strip__track span {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  padding: 12px 22px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.strip__track span::after {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
}
.strip__track i { font-family: var(--font-display); font-style: normal; font-size: 16px; letter-spacing: 0; color: var(--ink); }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .strip__track { animation: none; } }

/* ---------- Секції ---------- */
.section { padding: clamp(56px, 8vw, 110px) 0; }
.section--tight { padding: clamp(40px, 5vw, 72px) 0; }
.section__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px 48px;
  align-items: end;
  margin-bottom: clamp(32px, 4vw, 56px);
}
.section__head h2 { margin-top: 14px; text-wrap: balance; }
.section__head .lead { justify-self: end; }
.section--ink {
  background: var(--brand-grad);
  color: var(--paper);
  --line: rgba(243, 239, 230, 0.16);
  --line-strong: rgba(243, 239, 230, 0.35);
  --muted: rgba(243, 239, 230, 0.6);
  --ink-3: rgba(243, 239, 230, 0.72);
  --ink-2: rgba(243, 239, 230, 0.86);
}
.section--ink .overline { color: var(--gold-3); }
.section--ink h2, .section--ink h3 { color: var(--gold-2); }
.section--ink .lead { color: rgba(243, 239, 230, 0.8); }

/* ---------- Факти в ряд ---------- */
.facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.facts > div {
  padding: 26px 24px 26px 0;
  border-right: 1px solid var(--line);
}
.facts > div:not(:first-child) { padding-left: 24px; }
.facts > div:last-child { border-right: 0; }
.facts .num { font-size: clamp(30px, 3.4vw, 48px); line-height: 1; overflow-wrap: anywhere; }
.facts .num sup { font-size: 0.5em; color: var(--gold); vertical-align: top; top: 0.2em; position: relative; }
.facts p { margin-top: 10px; font-size: 14px; color: var(--ink-3); }

/* ---------- Кроки ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  counter-reset: step;
  border-top: 1px solid var(--line);
}
.step {
  position: relative;
  padding: 28px 28px 8px 0;
  border-right: 1px solid var(--line);
}
.step:not(:first-child) { padding-left: 28px; }
.step:last-child { border-right: 0; }
.step::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 44px;
  height: 2px;
  background: var(--gold);
}
.step:not(:first-child)::before { left: 28px; }
.step__n {
  font-family: var(--font-display);
  font-size: 48px;
  line-height: 1;
  color: var(--brand);
}
.step h3 { font-size: 22px; margin: 18px 0 10px; }
.step p { color: var(--ink-3); font-size: 15px; }
.step__time {
  display: inline-block;
  margin-top: 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Що приймаємо ---------- */
.accept {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 20px;
}
.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(24px, 3vw, 40px);
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.panel--stack { display: grid; grid-template-rows: 1fr auto; }
.panel__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.panel h3 { font-size: clamp(24px, 2.4vw, 32px); }
.panel .marks { display: flex; flex-wrap: wrap; gap: 8px; }
.panel .marks .hallmark { cursor: default; font-size: 15px; }
.panel ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.panel li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink-2); }
.panel li::before {
  content: "";
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  margin-top: 9px;
  border-radius: 50%;
  border: 2px solid var(--gold);
}
.panel__note {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px dashed var(--line-strong);
  font-size: 14px;
  color: var(--ink-3);
}
.panel--soft { background: var(--brand-grad); border-color: transparent; color: var(--paper); }
.panel--soft h3 { color: var(--gold-2); }
.panel--soft p { color: rgba(246, 241, 234, 0.85) !important; }
.panel--soft .link { color: var(--gold-3); border-color: rgba(232, 199, 106, 0.5); }
.panel--soft h3 { font-size: 22px; }
.accept__side { display: grid; gap: 20px; }

.metal-icon {
  width: 56px;
  height: 56px;
  flex: 0 0 auto;
}

/* ---------- Умови (специфікація) ---------- */
.spec {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0 56px;
}
.spec dl { margin: 0; }
.spec .row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.spec dt {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding-top: 5px;
}
.spec dd { margin: 0; }
.spec dd b { font-family: var(--font-display); font-weight: 400; font-size: 22px; display: block; margin-bottom: 4px; }
.spec dd p { color: var(--ink-3); font-size: 15px; }

/* ---------- Переваги (на темному) ---------- */
.why {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.why > div {
  padding: 36px 32px 36px 0;
  border-right: 1px solid var(--line);
}
.why > div:not(:first-child) { padding-left: 32px; }
.why > div:last-child { border-right: 0; }
.why h3 { font-size: 26px; margin: 22px 0 12px; }
.why p { color: var(--ink-3); font-size: 15px; }
.why .glyph { width: 40px; height: 40px; color: var(--gold-3); }

/* ---------- Відділення ---------- */
.branches {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.branch {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.branch:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.branch__n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--brand);
  color: var(--brand);
  border-radius: 999px 4px 999px 4px;
  font-family: var(--font-display);
  font-size: 15px;
}
.branch h3 { font-size: 20px; line-height: 1.25; }
.branch__meta { display: grid; gap: 6px; font-size: 14px; color: var(--ink-3); }
.branch__meta span { display: flex; gap: 8px; align-items: flex-start; }
.branch__meta svg { width: 16px; height: 16px; flex: 0 0 auto; margin-top: 3px; color: var(--gold); }
.branch__phone { font-weight: 700; font-size: 16px; color: var(--ink); }
.branch__actions { margin-top: auto; padding-top: 10px; display: flex; gap: 8px; flex-wrap: wrap; }
.metro {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  background: var(--paper-2);
  color: var(--ink-2);
}
.metro::before { content: "M"; font-family: var(--font-display); color: var(--gold); }

/* Сторінка відділень: детально */
.branch-full {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 32px;
  padding: clamp(28px, 4vw, 48px) 0;
  border-top: 1px solid var(--line);
}
.branch-full:last-child { border-bottom: 1px solid var(--line); }
.branch-full__map {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper-2);
  min-height: 300px;
}
.branch-full__map iframe { width: 100%; height: 100%; min-height: 300px; border: 0; display: block; filter: grayscale(0.35) contrast(1.05); }
.branch-full h2 { font-size: clamp(26px, 2.6vw, 34px); margin: 14px 0 10px; }
.branch-full .branch__meta { font-size: 15px; gap: 10px; margin-top: 18px; }
.branch-full .branch__actions { margin-top: 24px; }
.hours {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 18px;
  font-size: 15px;
  margin-top: 6px;
}
.hours span:nth-child(odd) { color: var(--muted); }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none;
  cursor: pointer;
  display: grid;
  grid-template-columns: 48px 1fr 32px;
  gap: 16px;
  align-items: center;
  padding: 22px 0;
  font-family: var(--font-display);
  font-size: clamp(18px, 1.6vw, 22px);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .n { font-size: 13px; color: var(--muted); letter-spacing: 0.08em; }
.faq summary .pm {
  width: 32px;
  height: 32px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  position: relative;
  color: var(--brand);
  transition: transform 0.2s ease;
}
.faq summary .pm::before, .faq summary .pm::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 1.5px;
  background: currentColor;
  transform: translate(-50%, -50%);
}
.faq summary .pm::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq details[open] summary .pm { transform: rotate(45deg); }
.faq .faq__body {
  padding: 0 0 24px 64px;
  color: var(--ink-2);
  max-width: 70ch;
  font-size: 16px;
}
.faq .faq__body p + p { margin-top: 10px; }

/* ---------- Контакти / форма ---------- */
.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}
.contact__list { display: grid; gap: 0; margin-top: 28px; border-top: 1px solid var(--line); }
.contact__list > div {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.contact__list dt { font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); padding-top: 4px; }
.contact__list dd { margin: 0; }
.contact__list a { font-weight: 700; }
.contact__list a:hover { color: var(--gold); }
.contact__list .stack { display: grid; gap: 4px; }

.form {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(22px, 3vw, 36px);
  display: grid;
  gap: 14px;
  position: relative;
}
.form h3 { font-size: 24px; }
.form label { display: grid; gap: 6px; font-size: 13px; font-weight: 700; color: var(--ink-3); }
.form input, .form textarea, .form select {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: #fff;
  font-size: 16px;
  outline: none;
}
.form input:focus, .form textarea:focus, .form select:focus { border-color: var(--ink); }
.form textarea { min-height: 96px; resize: vertical; }
.form__row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
.form .btn { width: 100%; margin-top: 4px; }
.form__fine { font-size: 12px; color: var(--muted); }
.form__done {
  position: absolute;
  inset: 0;
  display: none;
  place-items: center;
  text-align: center;
  padding: 32px;
  background: var(--card);
  border-radius: var(--radius);
}
.form.is-sent .form__done { display: grid; }
.form__done .ok {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1px solid var(--ok);
  color: var(--ok);
  display: grid;
  place-items: center;
  margin: 0 auto 16px;
}

/* ---------- CTA-плашка ---------- */
.cta {
  background: var(--brand-grad);
  color: var(--paper);
  border: 1px solid var(--brand-deep);
  border-radius: var(--radius);
  padding: clamp(28px, 4vw, 48px);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
}
.cta h2 { font-size: clamp(26px, 3vw, 38px); text-wrap: balance; }
.cta p { margin-top: 10px; color: rgba(246, 241, 234, 0.8); }
.cta h2 { color: var(--gold-2); }
.cta__actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Внутрішні сторінки ---------- */
.page-head { padding: clamp(40px, 6vw, 80px) 0 clamp(28px, 4vw, 48px); }
.page-head h1 { margin-top: 16px; text-wrap: balance; }
.page-head .lead { margin-top: 18px; }
.crumbs { font-size: 13px; color: var(--muted); display: flex; gap: 8px; flex-wrap: wrap; }
.crumbs a:hover { color: var(--ink); }
.crumbs span::before { content: "/"; margin-right: 8px; opacity: 0.5; }

.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 380px);
  gap: 48px;
  align-items: start;
}
.two-col .sticky { position: sticky; top: 96px; }
.prose { max-width: 70ch; }
.prose h2 { font-size: clamp(26px, 2.8vw, 36px); margin: 48px 0 16px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 22px; margin: 32px 0 12px; }
.prose p { margin: 0 0 14px; color: var(--ink-2); }
.prose ul, .prose ol { margin: 0 0 16px; padding-left: 0; list-style: none; display: grid; gap: 8px; }
.prose li { position: relative; padding-left: 26px; color: var(--ink-2); }
.prose ul li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 10px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 2px solid var(--gold);
}
.prose ol { counter-reset: li; }
.prose ol li::before {
  counter-increment: li;
  content: counter(li, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 3px;
  font-family: var(--font-display);
  font-size: 14px;
  color: var(--gold);
}
.callout {
  border-left: 2px solid var(--gold);
  padding: 4px 0 4px 20px;
  color: var(--ink-2);
  margin: 20px 0 24px;
}

/* таблиця з факторами оцінки */
.tbl { width: 100%; border-collapse: collapse; font-size: 15px; margin: 8px 0 24px; }
.tbl th, .tbl td { text-align: left; padding: 14px 12px 14px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl th { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); font-weight: 700; }
.tbl td:first-child { font-family: var(--font-display); font-size: 18px; white-space: nowrap; }
.tbl-wrap { overflow-x: auto; }

/* список документів */
.docs { display: grid; gap: 0; border-top: 1px solid var(--line); }
.docs a {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  transition: background 0.15s ease;
}
.docs a:hover { background: rgba(78, 0, 42, 0.03); }
.docs .ico {
  width: 40px;
  height: 40px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--brand);
}
.docs .t { font-weight: 600; }
.docs .t small { display: block; font-weight: 500; color: var(--muted); font-size: 13px; margin-top: 2px; }
.docs .arr { color: var(--muted); }
.docs a:hover .arr { color: var(--ink); }

.info-block {
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 24px;
}
.info-block:first-child { border-top: 1px solid var(--line); }
.info-block h3 { font-size: 20px; }
.info-block .prose p:last-child { margin-bottom: 0; }

.side-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  display: grid;
  gap: 14px;
}
.side-card h3 { font-size: 20px; }
.side-card .big { font-family: var(--font-display); font-size: 24px; }
.side-card .btn { width: 100%; }

/* ---------- Футер ---------- */
.footer {
  background: var(--brand-grad);
  color: rgba(246, 241, 234, 0.78);
  padding: clamp(40px, 5vw, 64px) 0 28px;
  font-size: 14px;
  --line: rgba(243, 239, 230, 0.14);
}
.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 32px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--line);
}
.footer h4 {
  font-family: var(--font-text);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-3);
  margin-bottom: 16px;
}
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer a:hover { color: var(--paper); }
.footer__about { margin-top: 18px; max-width: 38ch; line-height: 1.55; }
.footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 22px;
  font-size: 13px;
  color: rgba(243, 239, 230, 0.5);
}
.footer__legal { font-size: 12px; line-height: 1.6; color: rgba(243, 239, 230, 0.5); margin-top: 22px; }
.footer b { color: var(--paper); font-weight: 600; }

/* ---------- Мобільна кнопка дзвінка ---------- */
.callfab {
  display: none;
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 40;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--brand);
  color: var(--gold-2);
  place-items: center;
  box-shadow: 0 10px 30px -10px rgba(42, 0, 30, 0.6);
}
.callfab svg { width: 24px; height: 24px; }

/* ---------- Анімація появи ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- Адаптив ---------- */
@media (max-width: 1080px) {
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts > div { border-right: 0; padding-left: 0 !important; }
  .facts > div:nth-child(odd) { border-right: 1px solid var(--line); padding-right: 24px; }
  .facts > div:nth-child(even) { padding-left: 24px !important; }
  .facts > div:nth-child(-n + 2) { border-bottom: 1px solid var(--line); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 0; }
  .step { border-top: 1px solid var(--line); border-right: 0; padding-left: 0 !important; }
  .step::before { left: 0 !important; }
  .step:nth-child(odd) { border-right: 1px solid var(--line); padding-right: 28px; }
  .step:nth-child(even) { padding-left: 28px !important; }
  .step:nth-child(even)::before { left: 28px !important; }
  .branches { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .why { grid-template-columns: 1fr; border-top: 0; }
  .why > div { border-right: 0; border-top: 1px solid var(--line); padding: 28px 0 !important; }
  .footer__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .two-col { grid-template-columns: 1fr; }
  .two-col .sticky { position: static; }
}

@media (max-width: 900px) {
  .nav, .header__phone { display: none; }
  .burger { display: block; }
  .header .wrap { min-height: 66px; gap: 12px; }
  .nav.is-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 12px var(--gutter) 20px;
    gap: 2px;
    box-shadow: var(--shadow);
  }
  .nav.is-open a { padding: 14px 8px; font-size: 17px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav.is-open a.is-active { box-shadow: none; color: var(--brand); }
  .nav.is-open .nav__phone { display: flex; justify-content: space-between; font-weight: 700; margin-top: 10px; border: 0; }
  .hero .wrap { grid-template-columns: minmax(0, 1fr); }
  .section__head { grid-template-columns: 1fr; }
  .section__head .lead { justify-self: start; }
  .accept { grid-template-columns: 1fr; }
  .spec { grid-template-columns: 1fr; }
  .contact { grid-template-columns: 1fr; }
  .cta { grid-template-columns: 1fr; }
  .branch-full { grid-template-columns: 1fr; }
  .info-block { grid-template-columns: 1fr; gap: 10px; }
  .topbar .wrap > span:last-child { display: none; }
  .callfab { display: grid; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .facts { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .facts .num { font-size: 28px; }
  .steps { grid-template-columns: 1fr; }
  .step { border-right: 0 !important; padding-right: 0 !important; padding-left: 0 !important; }
  .step::before { left: 0 !important; }
  .branches { grid-template-columns: 1fr; }
  .spec .row { grid-template-columns: 1fr; gap: 6px; }
  .contact__list > div { grid-template-columns: 1fr; gap: 4px; }
  .form__row { grid-template-columns: 1fr; }
  .faq summary { grid-template-columns: 1fr 32px; }
  .faq summary .n { display: none; }
  .faq .faq__body { padding-left: 0; }
  .footer__grid { grid-template-columns: 1fr; }
  .ticket { padding: 22px 18px 18px; }
  .ticket__total { flex-direction: column; align-items: flex-start; }
  .ticket__rate { text-align: left; }
  .hero__actions .btn { flex: 1 1 100%; }
  .btn { white-space: normal; }
}

/* Доступність: фокус */
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* район без метро */
.metro--plain::before { content: "●"; font-size: 8px; }

/* мобільні дрібниці */
@media (max-width: 600px) {
  .h1 { font-size: clamp(32px, 9.5vw, 40px); }
  .h2 { font-size: clamp(26px, 8vw, 34px); }
  .hero__note { gap: 10px 14px; }
  .topbar .wrap { justify-content: flex-start; }
  .header .btn--sm { display: none; }
  .logo__l1 { font-size: 15px; }
  .logo__l2 { font-size: 8.5px; }
  .logo__plate { padding: 6px 12px 7px; }
  .cta__actions .btn { flex: 1 1 100%; }
  .branch__actions .btn { flex: 1 1 auto; }
  .tbl { font-size: 14px; }
  .tbl td:first-child { font-size: 16px; }
}

/* ---- Тимчасово зачинене відділення ---- */
.branch__closed {
  display: inline-block; margin-left: 10px; vertical-align: middle;
  padding: 4px 10px; border-radius: 999px 4px 999px 4px;
  font-size: 12px; font-weight: 700; letter-spacing: .02em; line-height: 1.3;
  color: #7a2a00; background: #ffe9d6; border: 1px solid #f3c7a3;
}
.branch.is-closed h3, .branch-full.is-closed h2 { color: var(--ink-2); }
.branch.is-closed .branch__phone, .branch-full.is-closed .branch__phone { opacity: .75; }
.branch-full.is-closed .branch-full__map { filter: grayscale(.6); opacity: .85; }

/* ---- Форми: поле-пастка для ботів та помилка відправки ---- */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.form__error { margin: 0; font-size: 14px; font-weight: 700; color: #a3261e; }
