/* =====================================================================
   STYLE — компоненты и секции лендинга «Ломбард Доверие»
   Опирается на tokens.css и base.css.
   ===================================================================== */

/* ============ HEADER / NAV ============ */
.header {
  position: sticky; top: 0; z-index: var(--z-header);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur), box-shadow var(--dur), padding var(--dur);
}
.header.is-stuck { border-color: var(--line); box-shadow: var(--sh-sm); }
.header__inner {
  display: flex; align-items: center; gap: var(--sp-3);
  min-height: 86px;
}
.header.is-stuck .header__inner { min-height: 82px; }
.logo { display: flex; align-items: center; gap: var(--sp-3); flex-shrink: 0; }
.logo__mark { height: 68px; width: auto; }   /* размер логотипа НЕ меняется при скролле */
.logo__wm {
  display: flex; flex-direction: column; line-height: .98;
  padding-left: var(--sp-3); border-left: 2px solid var(--line);
}
.logo__wm b {
  font-family: "HandelKZ", var(--font-sans);
  font-weight: 700; font-size: 1.15rem; letter-spacing: .01em; color: var(--ink);
}

.nav { display: flex; align-items: center; gap: var(--sp-5); margin-left: auto; }
.nav__links { display: flex; align-items: center; gap: var(--sp-6); }
.nav__links a {
  font-size: var(--fs-sm); font-weight: 600; color: var(--text-muted);
  position: relative; padding: 4px 0; transition: color var(--dur-fast);
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0;
  background: var(--red); border-radius: 2px; transition: width var(--dur) var(--ease);
}
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after { width: 100%; }

.header__actions { display: flex; align-items: center; gap: var(--sp-3); }
.header__phone {
  font-weight: 800; font-size: var(--fs-sm); color: var(--ink); white-space: nowrap;
}

/* Котировки золота — компактная «таблетка» в шапке */
.gold-ticker {
  display: inline-flex; align-items: center; gap: 7px; flex-shrink: 0;
  padding: 6px 11px; border-radius: var(--r-pill); white-space: nowrap;
  background: color-mix(in srgb, var(--gold) 14%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--gold) 34%, var(--line));
  font-size: var(--fs-xs); line-height: 1;
}
.gold-ticker__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold) 22%, transparent); flex-shrink: 0; }
.gold-ticker__item { display: inline-flex; align-items: baseline; gap: 4px; }
.gold-ticker__lbl { color: var(--text-muted); font-weight: 600; }
.gold-ticker b { color: var(--ink); font-weight: 800; }
.gold-ticker__sep { width: 1px; height: 14px; align-self: center; background: color-mix(in srgb, var(--gold) 45%, transparent); }

/* Плашка котировок над калькулятором (закрепляется при скролле). */
.hero__calcwrap { display: flex; flex-direction: column; gap: var(--sp-4); align-self: start; }
.calc-pricebar {
  position: sticky; top: 98px; z-index: 6;
  display: flex; justify-content: center;
}
.calc-pricebar .gold-ticker { box-shadow: var(--sh-sm); }
@media (max-width: 400px) {
  .calc-pricebar .gold-ticker { font-size: .72rem; padding: 5px 10px; gap: 6px; }
}

/* Переключатель языка */
.lang { display: inline-flex; background: var(--surface-2); border-radius: var(--r-pill); padding: 3px; }
.lang a {
  font-size: var(--fs-xs); font-weight: 700; letter-spacing: .03em; text-transform: uppercase;
  padding: 5px 11px; border-radius: var(--r-pill); color: var(--text-muted);
  transition: background var(--dur-fast), color var(--dur-fast);
}
.lang a.is-active { background: var(--surface); color: var(--ink); box-shadow: var(--sh-xs); }

/* Бургер */
.burger { display: none; width: 44px; height: 44px; border-radius: var(--r-md); }
.burger span { display: block; width: 22px; height: 2px; margin: 4px auto; background: var(--ink); border-radius: 2px; transition: transform var(--dur), opacity var(--dur); }
.nav-open .burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-open .burger span:nth-child(2) { opacity: 0; }
.nav-open .burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ============ HERO ============ */
.hero { position: relative; overflow: clip; padding-block: clamp(2.5rem, 1.5rem + 4vw, 5rem) var(--section-y); }
.hero__bg {
  position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(60% 55% at 78% 18%, rgba(225,37,27,.10), transparent 60%),
    radial-gradient(50% 50% at 10% 90%, rgba(201,162,75,.08), transparent 60%),
    var(--bg);
}
/* деликатный орнамент-водяной знак из знака бренда */
.hero__ornament {
  position: absolute; z-index: -1; right: -6%; top: 50%; transform: translateY(-50%);
  width: min(720px, 60%); opacity: .05; pointer-events: none;
  color: var(--red);
}
.hero__grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2rem, 1rem + 3vw, 4.5rem);
  align-items: center;
}
.hero__badge {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-xs);
  padding: 7px 14px; border-radius: var(--r-pill);
  font-size: var(--fs-xs); font-weight: 700; color: var(--ink);
}
.hero__badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 4px var(--red-050); }

.hero h1 { font-size: var(--fs-hero); margin-top: var(--sp-5); }
.hero h1 .accent {
  font-family: var(--font-display); font-style: italic; font-weight: 700;
  color: var(--red); letter-spacing: -0.01em;
}
.hero__sub { font-size: var(--fs-lead); color: var(--text-muted); max-width: 34ch; margin-top: var(--sp-5); }
.hero__cta { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-top: var(--sp-6); }

.hero__trust { display: flex; flex-wrap: wrap; gap: var(--sp-6); margin-top: var(--sp-7); }
.hero__trust li { display: flex; align-items: center; gap: var(--sp-3); }
.hero__trust .n { font-family: var(--font-display); font-size: 1.9rem; font-weight: 800; color: var(--ink); line-height: 1; }
.hero__trust .l { font-size: var(--fs-xs); color: var(--text-muted); line-height: 1.25; }
.hero__trust svg { width: 22px; height: 22px; color: var(--red); flex-shrink: 0; }

/* ============ КАЛЬКУЛЯТОР (карта) ============ */
.calc {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-lg);
  padding: clamp(1.4rem, 1rem + 1.5vw, 2.2rem);
  position: relative;
  isolation: isolate;
}
.calc::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: -1;
  background: linear-gradient(180deg, rgba(225,37,27,.14), transparent 40%);
  filter: blur(30px); transform: translateY(14px) scale(.94); opacity: .7;
}
/* Свечение рамки по курсору (как у карточек отделений) */
.calc::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  padding: 2.4px; pointer-events: none; opacity: 0; z-index: 3;
  transition: opacity var(--dur) var(--ease);
  background: radial-gradient(
    320px 320px at calc(var(--gx, -9999) * 1px) calc(var(--gy, -9999) * 1px),
    hsl(0 98% 58% / 1), hsl(0 92% 52% / .55) 40%, transparent 72%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
}
.calc:hover::after { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .calc::after { display: none; } }
.calc__head { display: flex; align-items: center; gap: var(--sp-3); margin-bottom: var(--sp-5); }
.calc__head .ic {
  width: 42px; height: 42px; border-radius: var(--r-md); background: var(--red-050);
  display: grid; place-items: center; color: var(--red); flex-shrink: 0;
}
.calc__head h3 { font-size: var(--fs-h3); }
.field { margin-bottom: var(--sp-5); }
.field > label { display: block; font-size: var(--fs-sm); font-weight: 700; margin-bottom: var(--sp-3); }

.samples { display: flex; gap: var(--sp-3); }
.sample {
  flex: 1; position: relative; text-align: center;
  border: 1.5px solid var(--line); border-radius: var(--r-md);
  padding: 0.7rem 0.4rem; cursor: pointer; background: var(--surface);
  transition: border-color var(--dur-fast), background var(--dur-fast), transform var(--dur-fast);
}
.sample:hover { transform: translateY(-2px); }
.sample input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.sample .s { display: block; font-weight: 800; font-size: 1.15rem; color: var(--ink); }
.sample .r { display: block; font-size: var(--fs-xs); color: var(--text-faint); margin-top: 2px; }
.sample:has(input:checked) { border-color: var(--red); background: var(--red-050); }
.sample:has(input:checked) .s { color: var(--red); }

.input-wrap { position: relative; }
.input-wrap .unit { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); color: var(--text-faint); font-weight: 600; font-size: var(--fs-sm); }
.calc input[type="number"] {
  width: 100%; padding: 0.95rem 1rem; border: 1.5px solid var(--line); border-radius: var(--r-md);
  font-size: 1.1rem; font-weight: 700; background: var(--surface-2);
  transition: border-color var(--dur-fast), background var(--dur-fast);
  -moz-appearance: textfield;
}
.calc input[type="number"]::-webkit-outer-spin-button,
.calc input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.calc input[type="number"]:focus { border-color: var(--red); background: var(--surface); outline: none; }

.calc__result {
  background: var(--ink); color: var(--text-on-dark);
  border-radius: var(--r-lg); padding: var(--sp-5); margin-top: var(--sp-2);
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4);
}
.calc__result .lbl { font-size: var(--fs-sm); color: rgba(243,239,233,.7); }
.calc__result .val { font-family: var(--font-display); font-size: clamp(1.3rem, 1rem + 1.1vw, 1.9rem); font-weight: 800; line-height: 1; white-space: nowrap; }
.calc__result .val small { font-size: .5em; font-weight: 700; margin-left: 4px; }
.calc__note { font-size: var(--fs-xs); color: var(--text-faint); margin-top: var(--sp-3); text-align: center; }

/* ============ PRICE TICKER ============ */
.priceband { background: var(--ink); color: var(--text-on-dark); }
.priceband__inner { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-6); padding-block: var(--sp-5); }
.priceband__title { display: flex; align-items: center; gap: var(--sp-3); font-weight: 700; }
.priceband__title svg { width: 24px; color: var(--gold); }
.priceband__list { display: flex; flex-wrap: wrap; gap: var(--sp-6); margin-left: auto; }
.priceband__item { display: flex; align-items: baseline; gap: var(--sp-3); }
.priceband__item .p { font-size: var(--fs-sm); color: rgba(243,239,233,.6); }
.priceband__item .v { font-family: var(--font-display); font-size: 1.35rem; font-weight: 800; }
.priceband__item .v small { font-size: .6em; font-weight: 600; color: var(--gold); }

/* ============ О КОМПАНИИ + МИССИЯ ============ */
.about-intro {
  display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(1.5rem, 1rem + 3vw, 3.5rem);
  align-items: start; margin-bottom: var(--sp-7);
}
.about-intro__copy p { color: var(--text-muted); margin-top: var(--sp-4); line-height: 1.72; }
.about-intro__copy p:first-of-type { margin-top: 0; }
.mission {
  position: relative; overflow: hidden; background: var(--ink); color: var(--text-on-dark);
  border-radius: var(--r-xl); padding: clamp(1.5rem, 1rem + 2vw, 2.4rem); align-self: start;
}
.mission::after {
  content: ""; position: absolute; right: -50px; bottom: -50px; width: 200px; height: 200px; border-radius: 50%;
  background: radial-gradient(circle, rgba(225,37,27,.35), transparent 70%);
}
.mission__quote { width: 38px; height: 38px; color: var(--red); margin-bottom: var(--sp-3); }
.mission__label { display: block; font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .14em; color: var(--gold); font-weight: 700; margin-bottom: var(--sp-3); }
.mission p { position: relative; z-index: 1; font-family: var(--font-display); font-size: var(--fs-h3); line-height: 1.42; color: #fff; }

/* ============ РЕКВИЗИТЫ ============ */
.requisites {
  max-width: 880px; margin-inline: auto; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: var(--sh-md);
  padding: clamp(1.2rem, 0.9rem + 1.4vw, 2.4rem);
}
/* Две колонки с равномерным горизонтальным зазором */
.requisites dl {
  display: grid; grid-template-columns: 1fr 1fr;
  column-gap: clamp(1.5rem, 1rem + 2.5vw, 3.5rem);
  margin: 0;
}
/* Каждая строка — мини-сетка: фикс. лейбл + значение (значения на одной линии) */
.req-row {
  display: grid; grid-template-columns: 132px 1fr;
  align-items: baseline; column-gap: var(--sp-4);
  padding-block: 0.85rem;
  border-top: 1px solid var(--line);
}
.req-row:first-child { border-top: 0; }          /* верхняя строка без линии */
.req-row--wide { grid-column: 1 / -1; }
.req-row dt { color: var(--text-faint); font-size: var(--fs-sm); font-weight: 600; }
.req-row dd { font-weight: 700; color: var(--ink); line-height: 1.4; overflow-wrap: anywhere; }
.req-row dd a { color: var(--red); }

.req-download {
  display: flex; align-items: center; gap: var(--sp-4); flex-wrap: wrap; justify-content: center;
  margin-top: var(--sp-5); padding-top: var(--sp-5); border-top: 1px solid var(--line);
}
.req-download__count { font-size: var(--fs-sm); color: var(--text-muted); }
.req-download__count b { color: var(--ink); font-weight: 800; }

/* ============ ПРЕИМУЩЕСТВА ============ */
.adv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-5); }
.adv-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: var(--sp-6); transition: transform var(--dur) var(--ease), box-shadow var(--dur), border-color var(--dur);
}
.adv-card:hover { transform: translateY(-6px); box-shadow: var(--sh-md); border-color: transparent; }
.adv-card .ic {
  width: 52px; height: 52px; border-radius: var(--r-md); display: grid; place-items: center;
  background: var(--red-050); color: var(--red); margin-bottom: var(--sp-5);
}
.adv-card .ic svg { width: 26px; height: 26px; }
.adv-card h3 { font-size: var(--fs-h3); margin-bottom: var(--sp-3); }
.adv-card p { color: var(--text-muted); font-size: var(--fs-sm); }

/* ============ ПОРЯДОК РАБОТЫ (6 шагов, кружки) ============ */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(2.5rem, 1.5rem + 3vw, 4rem) var(--sp-6); }
.step { display: flex; flex-direction: column; align-items: center; text-align: center; gap: var(--sp-5); }
.step__num {
  width: 88px; height: 88px; border-radius: 50%; flex-shrink: 0;
  display: grid; place-items: center;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-sm);
  font-family: var(--font-display); font-weight: 800; font-size: 1.7rem; color: var(--ink);
  transition: background var(--dur) var(--ease), color var(--dur), transform var(--dur) var(--ease), box-shadow var(--dur);
}
.step:hover .step__num { background: var(--red); color: #fff; transform: translateY(-4px); box-shadow: var(--sh-red); }
.step p { color: var(--text-muted); font-size: var(--fs-body); line-height: 1.6; max-width: 30ch; }

/* ============ АУКЦИОН ============ */
.auction { background: var(--surface-2); }
.auction__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem,1rem + 3vw,4rem); align-items: center; }
.lots { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-4); }
.lot { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.lot__img { aspect-ratio: 4/3; background: var(--surface-2) center/cover; }
.lot__body { padding: var(--sp-4); }
.lot__body h4 { font-size: var(--fs-body); }
.lot__price { color: var(--red); font-weight: 800; margin-top: var(--sp-2); font-size: var(--fs-sm); }
.auction__empty {
  background: var(--surface); border: 1px dashed var(--line); border-radius: var(--r-lg);
  padding: var(--sp-7); text-align: center; color: var(--text-muted);
}
/* Уведомление о проведении аукциона (официальный блок) */
.notice {
  position: relative; max-width: 860px; margin-inline: auto;
  background: var(--surface); border: 1px solid var(--line);
  border-top: 4px solid var(--red); border-radius: var(--r-lg);
  box-shadow: var(--sh-md); padding: clamp(1.6rem, 1.2rem + 2vw, 3rem);
}
.notice__badge {
  position: absolute; top: 0; left: 50%; transform: translate(-50%, -50%);
  width: 52px; height: 52px; border-radius: 50%; background: var(--red); color: #fff;
  display: grid; place-items: center; box-shadow: var(--sh-red);
}
.notice p { color: var(--text); line-height: 1.75; margin-top: var(--sp-4); }
.notice p:first-of-type { margin-top: var(--sp-3); font-weight: 600; }
.lots--wide { grid-template-columns: repeat(4, 1fr); margin-top: var(--sp-7); }

.footer__dev a { color: var(--text-muted); border-bottom: 1px solid var(--line); }
.footer__dev a:hover { color: var(--red); border-color: var(--red); }

/* ============ KASPI ============ */
.kaspi__card {
  display: grid; grid-template-columns: 1fr auto; gap: clamp(2rem,1rem + 3vw,4rem); align-items: center;
  background: var(--ink); color: var(--text-on-dark);
  border-radius: var(--r-xl); padding: clamp(2rem,1.4rem + 2vw,3.5rem);
  position: relative; overflow: hidden;
}
.kaspi__card::after {
  content: ""; position: absolute; right: -60px; bottom: -60px; width: 260px; height: 260px; border-radius: 50%;
  background: radial-gradient(circle, rgba(225,37,27,.35), transparent 70%);
}
.kaspi__card h2 { font-size: var(--fs-h2); }
.kaspi__card p { color: rgba(243,239,233,.75); margin: var(--sp-4) 0 var(--sp-6); max-width: 46ch; }
.kaspi__qr {
  width: 210px; background: var(--surface); border-radius: var(--r-lg); padding: var(--sp-4);
  text-align: center; box-shadow: var(--sh-lg); position: relative; z-index: 1;
}
.kaspi__qr img { width: 100%; border-radius: var(--r-sm); }
.kaspi__qr .placeholder {
  aspect-ratio: 1; display: grid; place-items: center; border-radius: var(--r-sm);
  background: var(--surface-2); color: var(--text-faint); font-size: var(--fs-xs); text-align: center; padding: var(--sp-4);
}
.kaspi__qr .cap { color: var(--ink); font-size: var(--fs-xs); font-weight: 700; margin-top: var(--sp-3); }

/* ============ ОТДЕЛЕНИЯ ============ */
.branches-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-5); }
.branch {
  position: relative; isolation: isolate;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: var(--sp-6); display: flex; flex-direction: column; gap: var(--sp-3);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur);
}
.branch:hover { transform: translateY(-4px); box-shadow: var(--sh-md); }

/* Свечение-«прожектор» на границе карточки, следует за курсором.
   Адаптация React-компонента GlowCard на нативные CSS/JS, фирменный красный. */
.branch::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  padding: 2.2px; pointer-events: none; opacity: 0; z-index: 2;
  transition: opacity var(--dur) var(--ease);
  background: radial-gradient(
    300px 300px at calc(var(--gx, -9999) * 1px) calc(var(--gy, -9999) * 1px),
    hsl(0 98% 58% / 1), hsl(0 92% 52% / .55) 40%, transparent 72%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
}
/* Мягкая внутренняя подсветка у курсора (под контентом) */
.branch::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: -1;
  pointer-events: none; opacity: 0; transition: opacity var(--dur) var(--ease);
  background: radial-gradient(
    220px 220px at calc(var(--gx, -9999) * 1px) calc(var(--gy, -9999) * 1px),
    hsl(0 95% 55% / .08), transparent 65%);
}
.branches-grid:hover .branch::before,
.branches-grid:hover .branch::after { opacity: 1; }
.branches-grid:hover .branch:hover { box-shadow: var(--sh-md), 0 0 30px -4px hsl(0 90% 55% / .45); }
@media (prefers-reduced-motion: reduce) { .branch::before { display: none; } }
.branch__top { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); }
.branch__title { font-size: var(--fs-h3); font-weight: 800; }
.branch__addr { color: var(--text-muted); font-size: var(--fs-sm); }
.branch__meta { display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-5); margin-top: auto; padding-top: var(--sp-4); font-size: var(--fs-sm); }
.branch__meta a { font-weight: 700; color: var(--ink); }
.branch__meta .hours { color: var(--text-faint); }

/* Действия в карточке: Маршрут | Написать */
.branch__actions {
  display: flex; align-items: stretch; margin-top: var(--sp-4);
  border-top: 1px solid var(--line); position: relative; z-index: 3;
}
.branch__act {
  flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: var(--sp-3) var(--sp-2); font-size: var(--fs-sm); font-weight: 700; color: var(--ink);
  transition: color var(--dur-fast), background var(--dur-fast);
}
.branch__act svg { color: var(--red); flex-shrink: 0; }
.branch__act:hover { color: var(--red); background: var(--red-050); border-radius: var(--r-sm); }
.branch__act-sep { width: 1px; background: var(--line); margin: 8px 0; }
.badge-soon {
  font-size: var(--fs-xs); font-weight: 800; text-transform: uppercase; letter-spacing: .06em;
  color: var(--gold); background: color-mix(in srgb, var(--gold) 16%, transparent);
  padding: 4px 10px; border-radius: var(--r-pill);
}
.branch--soon { border-style: dashed; background: transparent; }
.branch--soon .branch__title, .branch--soon .branch__addr { color: var(--text-faint); }

/* ============ СТАТИСТИКА (отдельный блок) ============ */
.trust { background: var(--ink); color: var(--text-on-dark); }
.stats-row { display: grid; grid-template-columns: repeat(3,1fr); gap: clamp(1.5rem,1rem + 3vw,4rem); text-align: center; }
.stat { position: relative; }
.stat:not(:last-child)::after {
  content: ""; position: absolute; right: calc(-1 * clamp(.75rem, .5rem + 1.5vw, 2rem)); top: 15%; height: 70%;
  width: 1px; background: rgba(243,239,233,.14);
}
.stat .n { font-family: var(--font-display); font-size: clamp(3rem, 2rem + 4vw, 5rem); font-weight: 800; color: #fff; line-height: 1; }
.stat .n .plus { color: var(--red); }
.stat .l { color: rgba(243,239,233,.65); margin-top: var(--sp-3); font-size: var(--fs-body); }

/* ============ ДОКУМЕНТЫ / СЕРТИФИКАТЫ (галерея) ============ */
.docs-gallery { display: grid; grid-template-columns: repeat(3,1fr); gap: var(--sp-5); }
.doc-card {
  display: flex; flex-direction: column; gap: var(--sp-4);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: var(--sp-4); transition: transform var(--dur) var(--ease), box-shadow var(--dur), border-color var(--dur);
}
.doc-card:hover { transform: translateY(-6px); box-shadow: var(--sh-lg); border-color: transparent; }
.doc-card__thumb {
  position: relative; display: block; aspect-ratio: 3/4; overflow: hidden;
  border-radius: var(--r-md); background: var(--surface-2); border: 1px solid var(--line);
}
.doc-card__thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform var(--dur-slow) var(--ease); }
.doc-card:hover .doc-card__thumb img { transform: scale(1.04); }
.doc-card__ph { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--sp-3); color: var(--red); }
.doc-card__ph svg { width: 54px; height: 54px; opacity: .85; }
.doc-card__ph b { font-size: var(--fs-sm); letter-spacing: .14em; color: var(--text-faint); }
.doc-card__open {
  position: absolute; left: 50%; bottom: 14px; transform: translate(-50%, 8px);
  background: var(--red); color: #fff; font-size: var(--fs-xs); font-weight: 700;
  padding: 7px 16px; border-radius: var(--r-pill); box-shadow: var(--sh-red);
  opacity: 0; transition: opacity var(--dur), transform var(--dur) var(--ease); white-space: nowrap;
}
.doc-card:hover .doc-card__open { opacity: 1; transform: translate(-50%, 0); }
.doc-card__title { font-weight: 700; font-size: var(--fs-sm); line-height: 1.35; color: var(--ink); }
.doc-card.is-extra { display: none; }
.docs-gallery.is-open .doc-card.is-extra { display: flex; }

/* ============ ОТЗЫВЫ ============ */
.reviews-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: var(--sp-5); }
.review { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--sp-6); }
.review__stars { color: var(--gold); letter-spacing: 2px; margin-bottom: var(--sp-4); }
.review__text { color: var(--text); font-size: var(--fs-sm); line-height: 1.65; }
.review__author { display: flex; align-items: center; gap: var(--sp-3); margin-top: var(--sp-5); }
.review__avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--red-050); color: var(--red); display: grid; place-items: center; font-weight: 800; }
.review__name { font-weight: 700; font-size: var(--fs-sm); }
.review__src { font-size: var(--fs-xs); color: var(--text-faint); }

/* ============ FAQ ============ */
.faq { max-width: 820px; margin-inline: auto; }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4);
  text-align: left; padding: var(--sp-5) 0; font-weight: 700; font-size: var(--fs-h3);
}
.faq__q .sign { flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid var(--line); display: grid; place-items: center; transition: transform var(--dur), background var(--dur), color var(--dur), border-color var(--dur); }
.faq__item.is-open .faq__q .sign { transform: rotate(45deg); background: var(--red); color: #fff; border-color: var(--red); }
.faq__a { overflow: hidden; max-height: 0; transition: max-height var(--dur) var(--ease); }
.faq__a p { color: var(--text-muted); padding-bottom: var(--sp-5); max-width: 62ch; }

/* ============ КОНТАКТЫ + ФОРМА ============ */
.contacts__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem,1rem + 3vw,4.5rem); align-items: center; }
.contacts__list { display: flex; flex-direction: column; gap: var(--sp-3); margin-top: var(--sp-6); }
.contact-row { display: flex; align-items: center; gap: var(--sp-4); padding: var(--sp-2) 0; transition: transform var(--dur-fast); }
.contact-row:hover { transform: translateX(3px); }
.contact-row .ic { width: 48px; height: 48px; border-radius: var(--r-md); background: var(--red-050); color: var(--red); display: grid; place-items: center; flex-shrink: 0; }
.contact-row .l { font-size: var(--fs-xs); color: var(--text-faint); }
.contact-row .v { font-weight: 800; font-size: 1.1rem; color: var(--ink); }
.contacts__socials { display: flex; gap: var(--sp-3); margin-top: var(--sp-6); }
.soc { width: 46px; height: 46px; border-radius: var(--r-md); border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); display: grid; place-items: center; transition: transform var(--dur-fast), border-color var(--dur-fast), color var(--dur-fast); }
.soc:hover { transform: translateY(-3px); border-color: var(--ink); color: var(--red); }

.contacts__form-wrap {
  position: relative; isolation: isolate;
  max-width: 420px; width: 100%; justify-self: end;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--sh-md); padding: clamp(1.1rem, 0.9rem + 0.8vw, 1.6rem);
}
/* Свечение рамки по курсору (как у калькулятора) */
.contacts__form-wrap::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  padding: 2.2px; pointer-events: none; opacity: 0; z-index: 3;
  transition: opacity var(--dur) var(--ease);
  background: radial-gradient(
    300px 300px at calc(var(--gx, -9999) * 1px) calc(var(--gy, -9999) * 1px),
    hsl(0 98% 58% / 1), hsl(0 92% 52% / .55) 40%, transparent 72%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
}
.contacts__form-wrap:hover::after { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .contacts__form-wrap::after { display: none; } }

.lead-form .field { margin-bottom: var(--sp-3); }
.lead-form label { display: block; font-size: var(--fs-xs); font-weight: 700; margin-bottom: 5px; }
.lead-form input, .lead-form textarea {
  width: 100%; padding: 0.6rem 0.85rem; border: 1.5px solid var(--line); border-radius: var(--r-md);
  font-size: var(--fs-sm); background: var(--surface-2); font-family: inherit;
  transition: border-color var(--dur-fast), background var(--dur-fast);
}
.lead-form input:focus, .lead-form textarea:focus { outline: none; border-color: var(--red); background: var(--surface); }
.lead-form textarea { resize: vertical; min-height: 58px; }
.lead-form .btn { margin-top: var(--sp-1); padding-block: 0.7rem; }
.lead-form__note { font-size: var(--fs-xs); color: var(--text-faint); text-align: center; margin-top: var(--sp-2); }
.form-ok {
  display: flex; align-items: center; gap: var(--sp-3); margin-bottom: var(--sp-5);
  background: #E7F6EC; color: #137A3B; border-radius: var(--r-md); padding: var(--sp-4) var(--sp-5);
  font-weight: 700; font-size: var(--fs-sm);
}
.form-ok svg { flex-shrink: 0; }

/* ============ КНОПКА СВЯЗИ (шапка) ============ */
.contact-menu { position: relative; }
.contact-menu__btn {
  width: 42px; height: 42px; border-radius: var(--r-md); border: 1.5px solid var(--line);
  background: var(--surface); color: var(--ink); display: grid; place-items: center;
  transition: border-color var(--dur-fast), color var(--dur-fast), transform var(--dur-fast);
}
.contact-menu__btn:hover { border-color: var(--red); color: var(--red); transform: translateY(-1px); }
.contact-menu__pop {
  position: absolute; right: 0; top: calc(100% + 10px); z-index: 20;
  width: 250px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); box-shadow: var(--sh-lg); padding: var(--sp-3);
}
.contact-menu__pop[hidden] { display: none; }
.contact-menu__title { display: block; font-size: var(--fs-xs); color: var(--text-faint); font-weight: 700; padding: var(--sp-2) var(--sp-3) var(--sp-3); }
.contact-menu__pop a {
  display: flex; align-items: center; gap: var(--sp-3); padding: var(--sp-3);
  border-radius: var(--r-md); transition: background var(--dur-fast);
}
.contact-menu__pop a:hover { background: var(--surface-2); }
.contact-menu__pop a b { display: block; font-size: var(--fs-sm); color: var(--ink); }
.contact-menu__pop a small { display: block; font-size: var(--fs-xs); color: var(--text-faint); }

/* ============ FOOTER (светлый, под основной фон) ============ */
.footer { background: var(--surface-2); color: var(--text); border-top: 1px solid var(--line); }
.footer__ornament { height: 24px; background: url("../img/footer-ornament.png") repeat-x center / auto 100%; }
.footer__top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: var(--sp-6); padding-block: var(--sp-8); }
.footer__logo { display: flex; align-items: center; gap: var(--sp-3); }
.footer__logo img { height: 62px; width: auto; }
.footer__wm { display: flex; flex-direction: column; line-height: .98; padding-left: var(--sp-3); border-left: 2px solid var(--line); }
.footer__wm b { font-family: "HandelKZ", var(--font-sans); font-weight: 700; font-size: 1.15rem; letter-spacing: .01em; color: var(--ink); }
.footer__brand p { color: var(--text-muted); font-size: var(--fs-sm); margin-top: var(--sp-4); max-width: 34ch; }
.footer h4 { font-size: var(--fs-sm); text-transform: uppercase; letter-spacing: .1em; color: var(--text-faint); margin-bottom: var(--sp-4); }
.footer li { margin-bottom: var(--sp-3); }
.footer a { color: var(--text-muted); font-size: var(--fs-sm); transition: color var(--dur-fast); }
.footer a:hover { color: var(--red); }
.footer__bottom { border-top: 1px solid var(--line); padding-block: var(--sp-5); display: flex; flex-wrap: wrap; gap: var(--sp-4); justify-content: space-between; align-items: center; font-size: var(--fs-xs); color: var(--text-faint); }

/* ============ FLOATING WHATSAPP ============ */
.fab {
  position: fixed; right: 20px; bottom: 20px; z-index: 90;
  width: 56px; height: 56px; border-radius: 50%; background: #25D366; color: #fff;
  display: grid; place-items: center; box-shadow: var(--sh-lg);
  transition: transform var(--dur) var(--ease);
}
.fab:hover { transform: scale(1.08); }
.fab svg { width: 30px; height: 30px; }

/* Кнопка «наверх» */
.to-top {
  position: fixed; right: 20px; bottom: 88px; z-index: 90;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--ink); color: #fff; display: grid; place-items: center;
  box-shadow: var(--sh-lg);
  opacity: 0; pointer-events: none; transform: translateY(10px);
  transition: opacity var(--dur), transform var(--dur) var(--ease), background var(--dur-fast);
}
.to-top.is-visible { opacity: 1; pointer-events: auto; transform: none; }
.to-top:hover { background: var(--red); }
.to-top svg { width: 22px; height: 22px; }

/* ============ MOBILE MENU DRAWER ============ */
.nav__drawer { }

/* ============ АДАПТИВ ============ */
@media (max-width: 1024px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__ornament { display: none; }
  .adv-grid, .branches-grid, .reviews-grid, .docs-gallery { grid-template-columns: repeat(2,1fr); }
  .steps { grid-template-columns: repeat(2,1fr); }
  .step:not(:last-child)::after { display: none; }
  .auction__grid, .kaspi__card, .contacts__grid, .about-intro { grid-template-columns: 1fr; }
  .kaspi__qr { justify-self: start; }
  .trust__grid { grid-template-columns: repeat(3,1fr); }
  .docs { grid-column: 1 / -1; border-left: 0; padding-left: 0; border-top: 1px solid rgba(243,239,233,.14); padding-top: var(--sp-6); }
  .footer__top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .nav__links, .header__phone { display: none; }
  .burger { display: block; }
  .header__inner { gap: var(--sp-2); }
  .logo { gap: var(--sp-2); }
  .logo__mark { height: 42px; }
  .logo__wm { padding-left: var(--sp-2); }
  .logo__wm b { font-size: .82rem; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch;
    background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--sh-md);
    padding: var(--sp-5); gap: var(--sp-4); margin: 0;
    transform: translateY(-140%); transition: transform var(--dur) var(--ease), visibility var(--dur);
    visibility: hidden; pointer-events: none;   /* закрыто: не перехватывает клики и не закрашивает логотип */
  }
  .nav-open .nav { transform: none; visibility: visible; pointer-events: auto; }
  .nav-open .nav__links { display: flex; flex-direction: column; align-items: stretch; gap: var(--sp-2); }
  .nav__links a { padding: var(--sp-3) 0; font-size: var(--fs-body); }
  .header__actions { margin-left: auto; gap: var(--sp-2); }
  /* На мобильном убираем CTA из шапки — есть крупная кнопка в hero и плавающая WhatsApp */
  .header__actions .btn--primary { display: none; }
  .adv-grid, .branches-grid, .reviews-grid, .steps, .lots, .docs-gallery { grid-template-columns: 1fr; }
  .requisites dl { grid-template-columns: 1fr; column-gap: 0; }
  .req-row { grid-template-columns: 1fr; row-gap: 2px; padding-block: 0.65rem; }
  .req-row dt { font-size: var(--fs-xs); }
  .trust__grid { grid-template-columns: 1fr; text-align: left; }
  .footer__top { grid-template-columns: 1fr; }
  .priceband__list { margin-left: 0; }
  .hero__trust { gap: var(--sp-5); }
}
