/* =========================================================================
   S Ломбард — стили сайта
   Палитра (по брендбуку, стр. «Фирменные цвета»):
             тёмно-красный #C50006 · тёмно-оливковый #917F4F
             тёмный #16151A · кремовый #FBF7F4 · розовая подложка #FDF1F3
   Шрифт (по брендбуку, стр. «Фирменные шрифты»): Noto Serif
             (Regular / Bold / Italic / Bold Italic) — везде, вместо Manrope и IBM Plex Mono
   ========================================================================= */

:root {
  --red: #c50006;
  --red-600: #9f0004;
  --red-50: #fdf1f3;
  --ink: #16151a;
  --ink-70: #4a4852;
  --muted: #6e6b75;
  --line: #eae4e0;
  --line-2: #f2ece8;
  --cream: #fbf7f4;
  --white: #fff;
  --gold: #c29a4b;
  --dark: #131215;
  /* фирменный тёмно-оливковый (брендбук) — под тон венка в логотипе и подпись в шапке */
  --olive: #917f4f;
  --olive-600: #786a43;
  /* WhatsApp — фирменный зелёный цвет самого мессенджера, не из брендбука S Ломбард */
  --wa: #1faf54;
  --wa-600: #189246;
  --ig-gradient: linear-gradient(45deg, #f9ce34, #ee2a7b 50%, #6228d7);

  --r-sm: 10px;
  --r: 16px;
  --r-lg: 22px;

  --shadow-sm: 0 1px 2px rgba(22, 21, 26, .05), 0 6px 18px rgba(22, 21, 26, .05);
  --shadow: 0 18px 44px rgba(22, 21, 26, .09);
  --shadow-red: 0 12px 28px rgba(197, 0, 6, .28);

  --wrap: 1200px;
  --header-h: 84px;

  --f-display: "Noto Serif", Georgia, "Times New Roman", serif;
  --f-mono: "Noto Serif", Georgia, "Times New Roman", serif;
}

/* --------------------------------------------------------------- сброс --- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }

body {
  margin: 0;
  font-family: var(--f-display);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

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

.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--red); color: #fff; padding: 12px 18px; border-radius: 0 0 10px 0;
}
.skip:focus { left: 0; }

.icon { width: 22px; height: 22px; flex: none; }
.icon--xl { width: 46px; height: 46px; stroke-width: 1.3; }
.accent { color: var(--red); }

.rule { width: 64px; height: 3px; background: var(--red); border-radius: 2px; margin: 18px 0 24px; }
.rule--light { background: var(--red); margin: 16px 0; }

.eyebrow {
  display: inline-block;
  font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--red); background: var(--red-50);
  padding: 7px 14px; border-radius: 999px;
}

/* -------------------------------------------------------------- кнопки --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13px 22px;
  border: 1.5px solid transparent; border-radius: 12px;
  font-weight: 700; font-size: 15px; line-height: 1.2;
  cursor: pointer; transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease, color .15s ease;
  white-space: nowrap;
}
.btn .icon { width: 20px; height: 20px; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary { background: var(--red); color: #fff; box-shadow: var(--shadow-red); }
.btn--primary:hover { background: var(--red-600); }

.btn--outline { border-color: var(--red); color: var(--red); background: transparent; }
.btn--outline:hover { background: var(--red-50); }

.btn--ghost { border-color: var(--line); color: var(--ink); background: #fff; }
.btn--ghost:hover { border-color: var(--red); color: var(--red); }

.btn--white { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }
.btn--white:hover { color: var(--red); }

.btn--wa { background: var(--red); color: #fff; }
.btn--wa:hover { background: var(--red-600); }

/* кнопки в фирменных цветах мессенджеров (меню-шторка на телефоне) — те же
   цвета, что у иконок WhatsApp и Instagram в шапке */
.btn--wa-brand { background: var(--wa); color: #fff; }
.btn--wa-brand:hover { background: var(--wa-600); }
.btn--ig { background: var(--ig-gradient); background-origin: border-box; color: #fff; }
.btn--ig:hover { filter: brightness(1.08); }

.btn--lg { padding: 16px 28px; font-size: 16px; border-radius: 14px; }
.btn--block { width: 100%; }

/* -------------------------------------------------------------- шапка ---- */
.header {
  position: sticky; top: 0; z-index: 90;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line-2);
  transition: box-shadow .2s ease;
}
.header.is-stuck { box-shadow: 0 8px 26px rgba(22, 21, 26, .07); }

.header .wrap { --wrap: 1400px; }

.header__inner {
  min-height: var(--header-h);
  display: flex; align-items: center; gap: 20px;
}

.brand { display: flex; align-items: center; gap: 12px; flex: none; }
.brand__mark { width: 46px; height: 46px; display: block; flex: none; }
.brand__mark img, .brand__mark svg { width: 100%; height: 100%; display: block; object-fit: contain; }
.brand__mark--lg { width: 76px; height: 76px; }

.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__text strong { font-size: 19px; font-weight: 800; letter-spacing: .01em; color: var(--red); }
.brand__text em {
  display: block; margin-top: 4px;
  font-style: normal; font-size: 9.5px; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase; color: var(--olive);
}

.nav { display: flex; gap: 2px; margin-inline: auto; flex: none; }
/* короткое меню из одной ссылки (страница уведомления) — не центрируем,
   ставим сразу после лого, туда же, где на главной стоит «Главная» */
.nav--start { margin-inline: 0 auto; }
.nav__link {
  padding: 9px 11px; border-radius: 9px;
  font-size: 14px; font-weight: 600; color: var(--ink-70);
  white-space: nowrap;
  transition: color .15s ease, background-color .15s ease;
}
.nav__link:hover, .nav__link.is-active { color: var(--red); background: var(--red-50); }
/* казахские пункты меню длиннее русских — чуть плотнее меню и чуть шире шапка,
   чтобы кнопки WhatsApp и Instagram справа помещались на обычных ноутбуках.
   Отступы подобраны так, чтобы полная шапка влезала и в окно 1440px
   (MacBook Air по умолчанию) — иначе на казахском она сворачивается в бургер */
html[lang="kk"] .header .wrap { --wrap: 1460px; }
html[lang="kk"] .nav__link { padding-inline: 6px; }

/* выпадающее меню «Магазин» в шапке — переиспользует .dl (см. «Скачать» у документов) */
.nav__dropdown { display: flex; align-items: center; }
.nav__dropdown-btn {
  list-style: none; cursor: pointer;
  display: inline-flex; align-items: center; gap: 5px;
  color: var(--ink-70); font-weight: 600;
}
.nav__dropdown-btn::-webkit-details-marker { display: none; }
.nav__dropdown-btn::after {
  content: ""; width: 6px; height: 6px; margin-top: -2px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg); transition: transform .18s ease;
}
.nav__dropdown[open] .nav__dropdown-btn::after { transform: rotate(-135deg); margin-top: 2px; }
.nav__dropdown-btn:hover, .nav__dropdown[open] .nav__dropdown-btn { color: var(--red); background: var(--red-50); }
.nav__dropdown-menu { min-width: 190px; }
.nav__dropdown-menu a.nav__dropdown-link {
  display: block; padding: 10px 12px; border-radius: 8px;
  font-size: 14px; font-weight: 600; color: var(--ink);
}
.nav__dropdown-menu a.nav__dropdown-link:hover { background: var(--red-50); color: var(--red); }

.header__side { display: flex; align-items: center; gap: 12px; flex: none; }

/* переключатель языка: РУС | ҚАЗ — виден и на десктопе, и на телефоне */
.langs {
  display: flex; align-items: center; gap: 2px;
  padding: 3px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff;
  flex: none;
}
.langs__btn {
  padding: 7px 11px; border-radius: 9px;
  font-size: 13px; font-weight: 700; letter-spacing: .04em; color: var(--muted);
  transition: color .15s ease, background-color .15s ease;
  white-space: nowrap;
}
.langs__btn:hover { color: var(--red); }
.langs__btn.is-active { background: var(--red); color: #fff; }

/* в выдвижном меню — во всю ширину, крупнее для пальца */
.langs--drawer { margin-top: 18px; align-self: flex-start; }
.langs--drawer .langs__btn { padding: 11px 22px; font-size: 15px; }

.header__phone { display: flex; flex-direction: column; line-height: 1.2; text-align: right; flex: none; }
.header__phone b { font-size: 16px; font-weight: 800; font-family: var(--f-mono); letter-spacing: -.02em; white-space: nowrap; }
.header__phone span { font-size: 11px; color: var(--muted); white-space: nowrap; }

.header__social { display: flex; gap: 10px; flex: none; }
.header__social .iconbtn { width: 44px; height: 44px; border-radius: 12px; }
.header__social .iconbtn .icon { width: 20px; height: 20px; }
.header__social .iconbtn--wa { background: var(--wa); border-color: var(--wa); color: #fff; }
.header__social .iconbtn--wa:hover { background: var(--wa-600); border-color: var(--wa-600); }
/* background-origin: border-box — градиент рисуется и под прозрачной рамкой,
   иначе он повторяется в ней и по краям кнопки видны тонкие полоски */
.header__social .iconbtn--ig {
  background: var(--ig-gradient); background-origin: border-box;
  border-color: transparent; color: #fff;
}
.header__social .iconbtn--ig:hover { filter: brightness(1.08); }

/* бегущая строка курса в шапке */
.ticker {
  display: flex; flex-direction: column; gap: 1px;
  padding: 7px 12px;
  background: var(--ink); color: #fff;
  border-radius: 10px;
  border-left: 3px solid var(--gold);
  flex: none;
}
.ticker__label { font-size: 10px; letter-spacing: .1em; text-transform: uppercase; opacity: .65; }
.ticker__value { font-family: var(--f-mono); font-size: 15px; font-weight: 600; letter-spacing: -.02em; }
.ticker__value small { font-size: 11px; opacity: .6; }

.header__call {
  display: none;
  width: 46px; height: 46px; border-radius: 12px;
  border: 1.5px solid var(--line); background: #fff; color: var(--red);
  place-items: center;
}
.header__call .icon { width: 21px; height: 21px; }

.burger {
  display: none; width: 46px; height: 46px;
  border: 1.5px solid var(--line); border-radius: 12px; background: #fff;
  flex-direction: column; justify-content: center; align-items: center; gap: 5px;
  cursor: pointer;
}
.burger span { width: 20px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* выдвижное меню */
.drawer {
  position: fixed; inset: var(--header-h) 0 0; z-index: 80;
  /* снизу запас под плавающую панель Safari на iPhone — иначе последние
     кнопки меню оказываются под ней */
  background: #fff; padding: 22px 20px calc(96px + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; gap: 8px;
  overflow-y: auto;
  animation: drawerIn .18s ease-out;
}
.drawer[hidden] { display: none; }
/* короткое меню (напр. страница уведомления, где в шапке только «На главную») —
   не растягиваем на весь экран, подгоняем под содержимое */
.drawer--compact { padding-bottom: 28px; bottom: auto; max-height: calc(100vh - var(--header-h)); box-shadow: var(--shadow); border-bottom: 1px solid var(--line-2); }
@keyframes drawerIn { from { opacity: 0; transform: translateY(-8px); } }
.drawer__nav { display: flex; flex-direction: column; }
.drawer__link {
  padding: 16px 4px; font-size: 18px; font-weight: 700;
  border-bottom: 1px solid var(--line-2);
}

/* «Магазин» в бургер-меню — тот же <details>, но раскрывается на месте */
.drawer__group { border-bottom: 1px solid var(--line-2); }
.drawer__group .dl__btn {
  list-style: none; cursor: pointer;
  padding: 16px 4px; font-size: 18px; font-weight: 700; color: var(--ink);
  border-bottom: 0;
}
.drawer__group .dl__btn::-webkit-details-marker { display: none; }
.drawer__group .dl__btn::after {
  content: ""; width: 7px; height: 7px; margin-left: 8px; margin-bottom: 2px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg); transition: transform .18s ease;
}
.drawer__group[open] .dl__btn::after { transform: rotate(-135deg); margin-bottom: -2px; }
.drawer__group .drawer__dropdown-menu {
  position: static; box-shadow: none; border: 0; padding: 0 0 12px 4px;
  background: transparent;
}
.drawer__sublink { display: block; padding: 10px 8px; font-size: 16px; font-weight: 600; color: var(--ink-70); }
.drawer__sublink:hover { color: var(--red); }

.drawer__foot { margin-top: 22px; display: grid; gap: 10px; }

/* ------------------------------------------------------------ главный --- */
.hero {
  position: relative;
  background:
    radial-gradient(1200px 420px at 12% -10%, rgba(255,255,255,.4) 0%, rgba(255,255,255,0) 60%),
    url("/assets/img/hero-bg.jpg") center / cover no-repeat;
  padding: 64px 0 72px;
  overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; right: -120px; top: -80px;
  width: 520px; height: 520px; border-radius: 50%;
  background: var(--red-50); opacity: .7; z-index: 0;
}
.hero__inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(340px, .85fr);
  gap: 56px; align-items: start;
}

.hero__title {
  font-size: clamp(34px, 4.6vw, 60px);
  font-weight: 800; line-height: 1.02; letter-spacing: -.03em;
  text-transform: uppercase;
}
.hero__suffix { font-weight: 700; letter-spacing: 0; }
.hero__lead { margin-top: 20px; max-width: 34em; color: var(--ink-70); font-size: 17px; }

.advantages {
  margin-top: 30px;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 22px;
}
.adv { display: flex; align-items: center; gap: 11px; }
.adv__icon {
  width: 40px; height: 40px; flex: none;
  display: grid; place-items: center;
  border-radius: 11px; background: var(--red-50); color: var(--red);
}
.adv__text { display: flex; flex-direction: column; line-height: 1.3; }
/* balance — чтобы длинные подписи ломались на равные строки, а не «висли» одним словом */
.adv__text strong { font-size: 16.5px; font-weight: 700; text-wrap: balance; }
.adv__text span { font-size: 15px; color: var(--muted); }

.hero__cta { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 12px; }

/* --- ТАБЛО КУРСА (фирменный элемент) --- */
.board {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-top: 4px solid var(--red);
  border-radius: 4px;
  padding: 26px 26px 30px;
  box-shadow: var(--shadow);
}
/* тонкая золотая нить по низу — отсылка к квитанции ломбарда */
.board::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  background: repeating-linear-gradient(90deg, var(--gold) 0 6px, transparent 6px 12px);
  opacity: .55;
}
.board__eyebrow {
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--gold);
}
.board__title { font-size: 22px; font-weight: 800; letter-spacing: -.02em; margin-top: 4px; }
.board__list { margin-top: 18px; border-top: 1px dashed var(--line); }
.board__row {
  display: flex; align-items: baseline; gap: 10px;
  padding: 12px 0; border-bottom: 1px dashed var(--line);
}
.board__purity { font-size: 14.5px; font-weight: 600; color: var(--ink-70); white-space: nowrap; }
.board__dots { flex: 1; border-bottom: 1px dotted #d8d2cd; transform: translateY(-4px); }
.board__price { font-family: var(--f-mono); font-size: 15px; color: var(--muted); white-space: nowrap; }
.board__price b { font-size: 20px; font-weight: 600; color: var(--ink); letter-spacing: -.03em; }

.board__updated {
  margin-top: 14px; display: flex; align-items: center; gap: 8px;
  font-size: 12.5px; font-weight: 600; color: var(--ink-70);
}
.dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--wa);
  box-shadow: 0 0 0 4px rgba(31, 175, 84, .16);
}
.board__note { margin-top: 10px; font-size: 12.5px; line-height: 1.5; color: var(--muted); }
.board .btn { margin-top: 18px; }

/* ------------------------------------------------------------- секции ---- */
.section { padding: 84px 0; }
.section--tint { background: var(--cream); }
.section--docs { padding: 44px 0; background: var(--cream); }
#chto-prinimaem.section--tint,
#filialy.section--tint,
#voprosy.section--tint { background: var(--white); }

#voprosy { padding-top: 48px; }

.shead { text-align: center; max-width: 720px; margin: 0 auto 44px; }
.shead--tight { margin-bottom: 24px; }
.shead__title {
  margin-top: 14px;
  font-size: clamp(28px, 3.4vw, 44px); font-weight: 800; line-height: 1.1; letter-spacing: -.03em;
}
.shead__title--left { text-align: left; margin-top: 14px; }
.shead__title--sm { font-size: clamp(22px, 2.4vw, 30px); margin-top: 0; }
.shead__lead { margin-top: 12px; color: var(--muted); font-size: 16px; }

/* ---------------------------------------------------- что принимаем ------ */
.accepts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.accept {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  padding: 32px 20px 28px; text-align: center;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.accept:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.accept__media {
  height: 116px; display: grid; place-items: center; color: var(--red); margin-bottom: 16px;
}
.accept__media img { height: 116px; width: auto; object-fit: contain; }
.accept__title { font-size: 19px; font-weight: 700; }
.accept__note { margin-top: 4px; font-size: 12.5px; color: var(--muted); }

/* ------------------------------------------------------- о компании ------ */
.about { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 60px; align-items: center; }
.prose p { margin-bottom: 16px; color: var(--ink-70); font-size: 16.5px; max-width: 46em; }
.prose p:last-child { margin-bottom: 0; }

.stats {
  display: grid; grid-template-columns: 1fr 1fr;
  border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden;
  background: #fff;
}
.stat { padding: 36px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat:nth-child(2n) { border-right: 0; }
.stat:nth-last-child(-n+2) { border-bottom: 0; }
.stat__row { display: flex; align-items: center; gap: 14px; }
.stat__icon { color: var(--red); display: grid; place-items: center; flex: none; }
.stat__icon .icon { width: 44px; height: 44px; }
.stat__value {
  display: block; font-family: var(--f-mono); font-size: clamp(32px, 3.8vw, 44px);
  font-weight: 600; letter-spacing: -.04em; color: var(--red);
}
.stat__value small { font-family: var(--f-display); font-size: 17px; font-weight: 700; }
.stat__label { display: block; margin-top: 10px; font-size: 18px; color: var(--ink-70); }
/* плитка без цифры («Работаем без выходных»): текст обычным начертанием.
   Строку тянем до высоты строки с цифрой (кегль числа × line-height),
   иначе иконка встаёт ниже, чем в соседней плитке, и ряд выглядит кривым. */
.stat--solo .stat__row { min-height: calc(clamp(32px, 3.8vw, 44px) * 1.6); }
.stat__label--solo { margin-top: 0; font-size: 18px; font-weight: 400; color: var(--ink); line-height: 1.35; }

/* ---------------------------------------------------------- филиалы ------ */
#filialy .wrap { --wrap: 1320px; }
.branches {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 24px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 18px; box-shadow: var(--shadow-sm);
}
.branches__map { position: relative; }
.map {
  height: 100%; min-height: 520px;
  border-radius: var(--r); overflow: hidden; background: #eee;
  z-index: 0;
}
/* сдвинута правее зум-контрола карты (leaflet-control-zoom ~36px от левого края) */
.map__gis { position: absolute; left: 62px; top: 14px; z-index: 5; padding: 10px 16px; font-size: 14px; }
.map__fallback { padding: 20px; color: var(--muted); }

.branches__side { display: flex; flex-direction: column; gap: 14px; min-width: 0; }

.callcard {
  display: flex; align-items: center; gap: 16px;
  padding: 18px 20px; border-radius: var(--r); background: var(--red-50);
}
.callcard__icon {
  width: 48px; height: 48px; border-radius: 50%; background: #fff; color: var(--red);
  display: grid; place-items: center; flex: none;
}
.callcard b { display: block; font-family: var(--f-mono); font-size: 22px; font-weight: 600; letter-spacing: -.03em; color: var(--red); }
.callcard em { font-style: normal; font-size: 13px; color: var(--ink-70); }

.branchlist { max-height: 452px; overflow-y: auto; padding-right: 6px; }
.branchlist::-webkit-scrollbar { width: 6px; }
.branchlist::-webkit-scrollbar-thumb { background: var(--line); border-radius: 3px; }

.branch {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px 12px; border-radius: 12px; cursor: pointer;
  border-bottom: 1px solid var(--line-2);
  transition: background-color .15s ease;
}
.branch:hover, .branch.is-active { background: var(--red-50); }
.branch__num {
  width: 26px; height: 26px; flex: none; border-radius: 50%;
  background: var(--red); color: #fff;
  display: grid; place-items: center;
  font-family: var(--f-mono); font-size: 12px; font-weight: 600;
}
.branch__body { flex: 1; min-width: 0; }
.branch__name { font-size: 15px; font-weight: 700; line-height: 1.3; }
.branch__sub { font-size: 12.5px; color: var(--muted); }
.branch__hours { display: flex; align-items: center; gap: 6px; margin-top: 4px; font-size: 12.5px; color: var(--ink-70); }
.branch__hours .icon { width: 14px; height: 14px; color: var(--red); }
.branch__hours--alt { font-weight: 700; color: var(--ink); }
.branch__actions { display: flex; gap: 6px; flex: none; }

.iconbtn {
  width: 34px; height: 34px; border-radius: 10px;
  display: grid; place-items: center;
  border: 1px solid var(--line); color: var(--red); background: #fff;
  transition: background-color .15s ease, color .15s ease;
}
.iconbtn .icon { width: 17px; height: 17px; }
.iconbtn:hover { background: var(--red); color: #fff; border-color: var(--red); }
.iconbtn--wa:hover { background: var(--wa); border-color: var(--wa); }

/* маркер на карте */
.pin {
  width: 34px; height: 42px;
  display: grid; place-items: center;
  color: #fff; font-family: var(--f-mono); font-size: 12px; font-weight: 600;
  background: var(--red);
  clip-path: polygon(50% 100%, 0 62%, 0 0, 100% 0, 100% 62%);
  border-radius: 8px 8px 0 0;
  box-shadow: 0 6px 14px rgba(22, 21, 26, .3);
  padding-bottom: 12px;
}
.leaflet-popup-content-wrapper { border-radius: 14px; }
.leaflet-popup-content { margin: 14px 16px; font-family: var(--f-display); }
.pop b { display: block; font-size: 14.5px; }
.pop span { display: block; font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.pop a { display: inline-block; margin-top: 10px; margin-right: 10px; font-size: 13px; font-weight: 700; color: var(--red); }

/* -------------------------------------------------- рефинансирование ----- */
#refinansirovanie { padding: 56px 0 0; }
.wrap.refin { width: 100%; max-width: none; }
.refin {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: 36px; align-items: start;
  padding: 40px clamp(24px, 6vw, 96px); overflow: hidden;
  /* по ширине + прижато к низу: предметы всегда в правой половине,
     а запас по высоте сверху — тот же ровный крем, что и на фото */
  background: #fdf8f3 url("/assets/img/refinance-bg.jpg") center bottom / 100% auto no-repeat;
}
/* мягкая подложка на стыке текста и предметов — чтобы текст всегда читался */
.refin::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(95deg,
    #fdf8f3 0%, #fdf8f3 40%,
    rgba(253, 248, 243, .92) 50%, rgba(253, 248, 243, .5) 58%, rgba(253, 248, 243, 0) 68%);
}
.refin__main, .refin > .ratecard { position: relative; z-index: 1; }
.refin__lead { margin-top: 8px; color: var(--ink-70); font-size: 16.5px; max-width: 40em; }
.refin__head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
/* ставка дублируется рядом с заголовком только на телефоне — там карточка ставки скрыта */
.refin__rate { display: none; }

.benefits {
  margin-top: 20px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
  background: var(--cream); border-radius: var(--r); padding: 16px 20px;
}
.benefit { display: flex; flex-direction: column; gap: 4px; }
.benefit__mark {
  width: 34px; height: 34px; border-radius: 50%; background: var(--red-50); color: var(--red);
  display: grid; place-items: center; margin-bottom: 4px;
}
.benefit strong { font-size: 14.5px; }
.benefit span { font-size: 13px; color: var(--muted); }

.refin__h3 { margin-top: 22px; font-size: 20px; font-weight: 800; }
.steps { margin-top: 14px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.step { position: relative; padding-top: 4px; }
.step::after {
  content: ""; position: absolute; left: 34px; right: -8px; top: 17px;
  border-top: 2px dotted var(--line);
}
.step:last-child::after { display: none; }
.step__num {
  position: relative; z-index: 1;
  width: 34px; height: 34px; border-radius: 50%; background: var(--red); color: #fff;
  display: grid; place-items: center; font-family: var(--f-mono); font-weight: 600;
}
.step p { margin-top: 10px; font-size: 13.5px; color: var(--ink-70); line-height: 1.45; }

.refin .btn--lg { margin-top: 22px; }
.refin__small { margin-top: 8px; font-size: 13px; color: var(--muted); }

.ratecard { display: flex; flex-direction: column; gap: 18px; }
.ratecard__stat {
  width: 100%; max-width: 330px; margin-left: auto;
  background: #fdeff1; border-radius: var(--r-lg); padding: 26px 30px;
  text-align: center; border: 1px solid rgba(197, 0, 6, .12); flex: none;
  box-shadow: 0 14px 32px rgba(22, 21, 26, .12);
}
/* фото на десктопе — фон всего блока, отдельная картинка нужна только на узких экранах */
.ratecard__photo {
  display: none; width: 100%; min-height: 300px;
  object-fit: cover; object-position: center; border-radius: var(--r-lg);
}
.ratecard__label { font-size: 16px; font-weight: 600; color: var(--ink-70); }
.ratecard__value {
  font-family: var(--f-mono); font-size: clamp(46px, 6vw, 66px); font-weight: 600;
  line-height: 1; letter-spacing: -.05em; color: var(--red); margin: 8px 0;
}
.ratecard__unit { font-size: 16px; font-weight: 700; }

/* -------------------------------------------------------------- FAQ ------ */
.faqs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 20px; align-content: start; }
.faq {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  padding: 4px 20px; height: max-content;
  transition: box-shadow .18s ease, border-color .18s ease;
}
.faq[open] { box-shadow: var(--shadow-sm); border-color: rgba(197, 0, 6, .3); }
.faq__q {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px 0; cursor: pointer; list-style: none;
  font-size: 15.5px; font-weight: 700; line-height: 1.35;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q .chevron { color: var(--red); transition: transform .2s ease; }
.faq[open] .faq__q .chevron { transform: rotate(180deg); }
.faq__a { padding-bottom: 18px; }
.faq__a p { font-size: 14.5px; color: var(--ink-70); }
.faq__a p + p { margin-top: 10px; }

/* «Остались вопросы?» — широкая полоса под всеми вопросами, а не 11-я плитка */
.faq-cta {
  grid-column: 1 / -1; margin-top: 16px;
  background: var(--red-50); border-radius: var(--r);
  padding: 28px 32px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-areas: "icon title actions" "icon desc actions";
  align-items: center; column-gap: 22px;
}
.faq-cta__icon {
  grid-area: icon;
  width: 54px; height: 54px; border-radius: 50%; background: #fff; color: var(--red);
  display: grid; place-items: center;
}
.faq-cta__icon .icon { width: 26px; height: 26px; }
.faq-cta__title { grid-area: title; font-size: 26px; font-weight: 800; letter-spacing: -.015em; }
.faq-cta__desc { grid-area: desc; font-size: 16px; color: var(--ink-70); margin-top: 8px; }
.faq-cta__actions { grid-area: actions; display: flex; gap: 12px; }
.faq-cta__actions .iconbtn { background: #fff; width: 52px; height: 52px; border-radius: 13px; }
.faq-cta__actions .iconbtn .icon { width: 24px; height: 24px; }

/* ------------------------------------ условия микрокредита и документы ----- */
/* справочный блок — нарочно спокойный и мелкий, чтобы не спорить с основными
   секциями: слева условия микрокредита, справа список документов */
.legal {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0 56px; max-width: 1100px;
}
.legal__docs { padding-left: 56px; border-left: 1px solid var(--line); }
.legal__title { font-size: 17px; font-weight: 700; line-height: 1.3; margin-bottom: 8px; color: var(--ink); }
.legal__terms { font-size: 12.5px; line-height: 1.6; color: var(--ink-70); }
.legal__terms b { color: var(--ink); font-weight: 600; }
.legal__part { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.legal__sub { font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 2px; }
.legal__copy { margin-top: 12px; font-size: 11.5px; color: var(--muted); }

/* документ — строка списка: иконка, название, под ним ссылки
   «Просмотр · Открыть · Скачать» мелким красным */
.docs li + li { border-top: 1px solid var(--line); }
.doc { display: flex; align-items: flex-start; gap: 10px; padding: 10px 0; }
.doc__icon { color: var(--red); display: grid; flex: none; margin-top: 1px; }
.doc__icon .icon { width: 17px; height: 17px; }
.doc__body { min-width: 0; }
.doc__title { display: block; font-size: 13.5px; font-weight: 600; line-height: 1.4; color: var(--ink); }
.doc__links { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; margin-top: 3px; line-height: 1.5; }
.doc__links > *, .doc__links .dl__btn { line-height: inherit; }
/* <details> «Скачать» — тот же кегль, иначе строка с ним выше остальных
   (у details свой шрифт 16px, и его высота строки растягивает ряд ссылок) */
.doc__links .dl { font-size: 12.5px; }
.doc__links a, .doc__preview, .doc__links .dl__btn {
  font-size: 12.5px; font-weight: 600; color: var(--red);
  background: none; border: none; padding: 0; font-family: inherit; cursor: pointer;
}
.doc__links a:hover, .doc__preview:hover { text-decoration: underline; }
.doc__links .dl__btn::after { width: 5px; height: 5px; }

/* выпадающее меню (сейчас — «Магазин» в шапке и в меню-шторке) */
.dl { position: relative; }
.dl__btn {
  list-style: none; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13.5px; font-weight: 700; color: var(--red);
}
.dl__btn::-webkit-details-marker { display: none; }
.dl__btn::after {
  content: ""; width: 6px; height: 6px; margin-bottom: 2px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg); transition: transform .18s ease;
}
.dl[open] .dl__btn::after { transform: rotate(-135deg); margin-bottom: -2px; }
.dl__btn:hover { text-decoration: underline; }
.dl__menu {
  position: absolute; z-index: 20; left: 0; top: calc(100% + 10px);
  min-width: 170px; padding: 6px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow);
  display: grid; gap: 2px;
}
.doc__links .dl__menu a {
  display: block; padding: 8px 12px; border-radius: 8px;
  font-size: 13px; font-weight: 600; color: var(--ink);
}
.doc__links .dl__menu a:hover { background: var(--red-50); color: var(--red); text-decoration: none; }

/* ------------------------------------------------------- модалка PDF ----- */
.docmodal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 24px; }
.docmodal[hidden] { display: none; }
.docmodal__backdrop { position: absolute; inset: 0; background: rgba(22, 21, 26, .6); backdrop-filter: blur(2px); }
.docmodal__panel {
  position: relative; width: 100%; max-width: 900px; height: min(88vh, 1100px);
  background: #fff; border-radius: 16px; overflow: hidden;
  display: flex; flex-direction: column; box-shadow: 0 24px 60px rgba(22, 21, 26, .35);
}
.docmodal__head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 18px; border-bottom: 1px solid var(--line); flex: none;
}
.docmodal__head strong { font-size: 15px; }
.docmodal__actions { display: flex; align-items: center; gap: 10px; }
.docmodal__actions .btn { padding: 8px 16px; font-size: 13.5px; }
.docmodal__close {
  width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--line);
  background: #fff; color: var(--ink-70); display: grid; place-items: center; cursor: pointer;
}
.docmodal__close:hover { background: var(--red); color: #fff; border-color: var(--red); }
.docmodal__close .icon { width: 16px; height: 16px; }
.docmodal__frame { flex: 1; border: none; width: 100%; background: #f4f2f0; }

@media (max-width: 640px) {
  .docmodal { padding: 0; }
  .docmodal__panel { max-width: none; height: 100vh; border-radius: 0; }
}

/* ------------------------------------------------------------ подвал ----- */
.footer { background: var(--dark); color: #fff; padding: 62px 0 26px; }
/* «Навигация», «Контакты» и «Соцсети» — компактная группа по ширине содержимого
   с одинаковыми промежутками, прижатая к правому краю (в линию с копирайтом);
   всё свободное место уходит между блоком с лого и этой группой.
   «Контакты» по ширине содержимого — адрес всегда в одну строку */
.footer__grid {
  display: grid; gap: 44px clamp(48px, 5.5vw, 88px);
  grid-template-columns: minmax(0, 1fr) auto auto auto;
}
.footer__name { margin-top: 16px; font-size: 24px; font-weight: 800; letter-spacing: .01em; }
.footer__tagline { font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: rgba(255,255,255,.55); }
.footer__about { font-size: 14px; color: rgba(255,255,255,.62); max-width: 30ch; }
.footer__h {
  font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  padding-bottom: 10px; margin-bottom: 16px; border-bottom: 2px solid var(--red); display: inline-block;
}
.footer__list li + li, .footer__social li + li { margin-top: 11px; }
.footer__list a, .footer__social a { font-size: 14.5px; color: rgba(255,255,255,.72); transition: color .15s ease; }
.footer__list a:hover, .footer__social a:hover, .footer__contacts a:hover b { color: #fff; }
.footer__contacts li + li { margin-top: 16px; }
.footer__contacts b { display: block; font-size: 15px; color: rgba(255,255,255,.92); }
.footer__contacts span { display: block; font-size: 12.5px; color: rgba(255,255,255,.5); }
@media (min-width: 1141px) { .footer__contacts b { white-space: nowrap; } }

.footer__bottom {
  margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12);
  display: grid; grid-template-columns: 1.6fr 1fr; gap: 24px; align-items: center;
}
.footer__legal { font-size: 12px; color: rgba(255,255,255,.42); line-height: 1.5; }
.footer__copy { font-size: 13px; color: rgba(255,255,255,.62); text-align: right; }

/* -------------------------------------------------- плавающие элементы --- */
.fab {
  position: fixed; right: 24px; bottom: 24px; z-index: 70;
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--wa); color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 12px 30px rgba(31, 175, 84, .4);
  transition: transform .18s ease;
}
.fab:hover { transform: scale(1.06); }
.fab .icon { width: 30px; height: 30px; }

.tabbar { display: none; }

/* ========================================================================
   АДАПТИВ
   ======================================================================== */

@media (max-width: 1400px) {
  .nav, .ticker, .header__social, .header__phone { display: none; }
  .burger { display: flex; }
  .header__call { display: grid; }
  .header__side { margin-left: auto; }
}

/* То же самое, но по факту: app.js ставит .header--compact, если полная шапка
   не влезает в окно даже шире 1400px — полоса прокрутки на Windows,
   масштаб экрана, более длинные казахские пункты меню */
.header--compact .nav, .header--compact .ticker,
.header--compact .header__social, .header--compact .header__phone { display: none; }
.header--compact .burger { display: flex; }
.header--compact .header__call { display: grid; }
.header--compact .header__side { margin-left: auto; }

/* На телефоне в шапке помещаются только логотип, язык, звонок и бургер.
   Поэтому вместо пары «РУС | ҚАЗ» показываем одну кнопку — второй язык:
   нажал и перешёл. Обе кнопки при этом остаются в выдвижном меню. */
@media (max-width: 560px) {
  /* шапка должна целиком влезать в ширину экрана с тем же отступом 16px,
     что и у логотипа слева, — иначе кнопка меню упирается в правый край */
  .header__inner { gap: 8px; }
  .header__side { gap: 6px; }
  .brand { gap: 8px; min-width: 0; flex: 0 1 auto; }
  .brand__mark { width: 40px; height: 40px; }
  .brand__text { min-width: 0; overflow: hidden; }
  .brand__text strong { font-size: 16px; white-space: nowrap; }
  .brand__text em { font-size: 7.5px; letter-spacing: .1em; white-space: nowrap; }
  .header__call, .burger { width: 42px; height: 42px; }

  .langs { padding: 0; border: 0; background: none; }
  .langs .langs__btn.is-active { display: none; }
  .langs .langs__btn {
    padding: 0 9px; height: 42px; min-width: 42px;
    display: grid; place-items: center;
    border: 1.5px solid var(--line); border-radius: 12px;
    background: #fff; color: var(--ink); font-size: 13px;
  }
  /* в меню-шторке остаётся полноценный выбор из двух языков */
  .langs--drawer { padding: 3px; border: 1.5px solid var(--line); background: #fff; }
  .langs--drawer .langs__btn.is-active { display: grid; background: var(--red); color: #fff; border-color: transparent; }
  .langs--drawer .langs__btn { height: auto; padding: 11px 22px; font-size: 15px; border-color: transparent; }
}

/* совсем узкие телефоны (360px) — ещё плотнее, чтобы тэглайн не обрезался */
@media (max-width: 374px) {
  .header__side { gap: 5px; }
  .brand { gap: 6px; }
  .brand__mark { width: 36px; height: 36px; }
  .brand__text strong { font-size: 15px; }
  .brand__text em { font-size: 7px; letter-spacing: .06em; }
}

@media (max-width: 1140px) {
  .accepts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero__inner { grid-template-columns: 1fr; gap: 40px; }
  .board { max-width: 520px; }
  .about { grid-template-columns: 1fr; gap: 36px; }
  .refin {
    grid-template-columns: 1fr; gap: 28px;
    padding: 28px; background-image: none;
  }
  .refin::before { display: none; }
  /* на узких экранах плашка и фото — во всю ширину блока, в один край с текстом */
  .ratecard { max-width: none; }
  .ratecard__stat { max-width: none; margin-left: 0; }
  .ratecard__photo { display: block; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}

@media (max-width: 900px) {
  /* условия и документы — друг под другом, разделитель горизонтальный */
  .legal { grid-template-columns: minmax(0, 1fr); }
  .legal__docs { padding: 24px 0 0; margin-top: 24px; border-left: 0; border-top: 1px solid var(--line); }
  :root { --header-h: 68px; }
  .branches { grid-template-columns: 1fr; }
  .map { min-height: 360px; }
  .branchlist { max-height: none; }
  .faqs { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; gap: 22px; }
  .step::after { display: none; }
  .footer__bottom { grid-template-columns: 1fr; text-align: left; }
  .footer__copy { text-align: left; }
}

@media (max-width: 640px) {
  .wrap { width: calc(100% - 32px); }
  .section { padding: 56px 0; }
  /* «в Астане» — на одной строке с «техники», но никогда не разрывается:
     предлог не повиснет в конце строки отдельно от слова */
  .accent--break-sm { white-space: nowrap; }
  /* на телефоне плашка со ставкой и фото убираем — блок рефинансирования короче,
     саму ставку вместо этого показываем короткой плашкой рядом с заголовком */
  .ratecard { display: none; }
  .refin__rate {
    display: inline-flex; align-items: baseline; gap: 4px;
    padding: 6px 12px; border-radius: 999px; background: var(--red-50); color: var(--red);
    font-size: 12.5px; font-weight: 600; white-space: nowrap;
  }
  .refin__rate b { font-size: 14px; font-weight: 800; }
  .hero { padding: 34px 0 48px; }
  .hero::before { display: none; }
  .hero__title { font-size: 31px; }
  .hero__lead { font-size: 15.5px; margin-top: 14px; }
  .advantages { grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 24px; }
  .adv__icon { width: 34px; height: 34px; border-radius: 9px; }
  .adv__icon .icon { width: 18px; height: 18px; }
  .adv__text strong { font-size: 15px; }
  .adv__text span { font-size: 13.5px; }
  .hero__cta { margin-top: 26px; }
  .hero__cta .btn { width: 100%; }
  .board { padding: 22px 20px 26px; }
  .board__price b { font-size: 18px; }
  .accepts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  /* карточка — колонка: медиа сверху, подпись прижата к низу,
     чтобы соседние плитки совпадали и по высоте, и по базовой линии текста */
  /* картинке отдано место у верхнего отступа и зазора под ней:
     10 + 78 + 6 = 94px — ровно столько же, сколько было (18 + 64 + 12),
     поэтому высота карточки и положение подписи не меняются */
  /* overflow: hidden — увеличенные картинки на белом фоне не должны
     перекрывать рамку карточки; всё лишнее обрезается по её краю */
  .accept { display: flex; flex-direction: column; padding: 10px 10px 16px; overflow: hidden; }
  .accept__media { height: 78px; margin-bottom: 6px; }
  /* одна высота у всех: и у квадратных 1:1, и у широких 3:2 (ps5, tv).
     Высота в пикселях, а не 100% — у центрированного grid-элемента
     процент не резолвится и картинка вылезает из блока.
     scale() — ещё чуть крупнее, не сдвигая разметку: у файлов белые поля
     по краям, и они просто уходят в белый фон карточки */
  .accept__media img { height: 78px; width: auto; max-width: 100%; object-fit: contain; transform: scale(1.05); }
  /* у этих файлов много белого поля вокруг предмета, поэтому сам предмет
     выглядел мельче соседних — увеличиваем его отдельно. Значения подобраны так,
     чтобы до рамки и до подписи оставалось не меньше 8px (проверено на 320–390px).
     transform не меняет разметку — карточки и подписи стоят на месте.
     Телевизор и дрель не трогаем: они уже почти касаются рамки и подписи.
     Привязка к имени файла: если заменить картинку в админке, новую надо проверить */
  .accept__media img[src$="/zoloto.png"] { transform: scale(1.34); }
  .accept__media img[src$="/macbook.jpg"] { transform: scale(1.52); }
  .accept__media img[src$="/smartphone.jpg"] { transform: scale(1.24); }
  .accept__media img[src$="/ps5.jpg"] { transform: scale(1.21); }
  .icon--xl { height: 56px; width: 56px; }
  .accept__title {
    /* поверх увеличенных картинок: их белый фон не должен закрывать подпись */
    position: relative;
    margin-top: auto; font-size: 15px; line-height: 1.25;
    /* место под две строки резервируем всегда — иначе однострочные подписи «прыгают» */
    min-height: 2.5em; display: flex; align-items: center; justify-content: center;
  }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat { padding: 22px 18px; }
  .stat__label, .stat__label--solo { font-size: 16px; }
  .branches { padding: 12px; }
  .steps { grid-template-columns: 1fr; }
  /* в одну колонку — номер и текст ставим рядом, а не друг под другом,
     иначе блок неоправданно растягивается по высоте */
  .step { display: flex; align-items: flex-start; gap: 14px; padding-top: 0; }
  .step::after { display: none; }
  .step__num { flex: none; }
  .step p { margin-top: 4px; }
  /* на телефоне иконка и заголовок — в один ряд, описание и кнопки — во всю ширину ниже */
  .faq-cta {
    grid-template-columns: auto 1fr;
    grid-template-areas: "icon title" "desc desc" "actions actions";
    padding: 22px 20px; row-gap: 10px; column-gap: 14px;
  }
  .faq-cta__title { font-size: 19px; }
  .faq-cta__desc { font-size: 14px; margin-top: 0; }
  .faq-cta__actions { margin-top: 4px; }
  .section--docs { padding: 36px 0; }
  .legal__title { font-size: 16px; }
  .dl__btn { font-size: 13px; }
  /* в узкой колонке выпадающий список не помещается — раскрываем его на месте */
  .dl { width: 100%; }
  .dl__menu {
    position: static; margin-top: 8px; min-width: 0;
    box-shadow: none; background: var(--cream);
  }
  /* у документов колонка на телефоне во всю ширину — меню «Скачать» помещается
     и всплывающим, а ссылки остаются в одну строку */
  .doc__links .dl { width: auto; }
  .doc__links .dl__menu {
    position: absolute; margin-top: 0; min-width: 150px;
    box-shadow: var(--shadow); background: #fff;
  }
  .footer { padding-bottom: 96px; }
  .footer__grid { grid-template-columns: 1fr; gap: 30px; }
  .fab { display: none; }

  /* нижняя панель на телефоне */
  .tabbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 75;
    display: grid; grid-template-columns: repeat(5, 1fr);
    background: var(--red); color: #fff;
    padding: 8px 4px calc(8px + env(safe-area-inset-bottom));
    box-shadow: 0 -6px 20px rgba(22, 21, 26, .18);
  }
  .tabbar a {
    display: flex; flex-direction: column; align-items: center; gap: 3px;
    font-size: 10.5px; font-weight: 600; color: rgba(255,255,255,.9);
  }
  .tabbar .icon { width: 21px; height: 21px; }
  .tabbar__wa {
    background: var(--wa); width: 54px; height: 54px; border-radius: 50%;
    justify-self: center; justify-content: center; margin-top: -22px;
    border: 4px solid #fff;
    box-shadow: 0 6px 16px rgba(22, 21, 26, .25);
  }
  .tabbar__wa .icon { width: 26px; height: 26px; }
}

/* ------------------------------------------- магазин: telegram-каталог --- */
.shop { padding-top: 64px; }
.shop__wrap { max-width: 640px; margin: 0 auto; text-align: center; }
.shop__icon {
  width: 88px; height: 88px; margin: 0 auto 24px;
  border-radius: 50%; background: #e8f6fd;
  display: grid; place-items: center;
}
.shop__icon .icon { width: 42px; height: 42px; color: #229ed9; }
.shop__eyebrow { justify-self: center; }
.shop__title { margin-top: 14px; }
.shop__lead { margin-top: 14px; color: var(--ink-70); font-size: 16.5px; }
.shop__cards { margin-top: 36px; display: grid; gap: 14px; }
.shop__card {
  display: block; text-align: left; padding: 22px 26px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  transition: box-shadow .18s ease, transform .18s ease, border-color .18s ease;
}
.shop__card:hover { box-shadow: var(--shadow); border-color: var(--line-2); transform: translateY(-2px); }
.shop__card-title { display: block; font-size: 20px; font-weight: 800; color: var(--red); }
.shop__card-note { display: block; margin-top: 4px; font-size: 14px; color: var(--ink-70); }
.shop__olx { margin-top: 26px; font-size: 14.5px; color: var(--ink-70); }
.shop__olx-link { margin-left: 6px; font-weight: 700; color: var(--red); }
.shop__olx-link:hover { text-decoration: underline; }

@media (max-width: 640px) {
  .shop { padding-top: 40px; }
}

/* ------------------------------------- уведомление о задолженности --- */
.notice { padding-top: 48px; }
.notice__wrap { max-width: 1040px; margin: 0 auto; text-align: center; }
.notice__title { font-size: clamp(22px, 3vw, 30px); }
.notice__lead { margin-top: 10px; color: var(--ink-70); font-size: 15.5px; }
.notice__viewer {
  margin-top: 26px; border: 1px solid var(--line); border-radius: var(--r-lg);
  overflow: hidden; box-shadow: var(--shadow-sm); background: var(--cream);
}
.notice__frame { display: block; width: 100%; height: 88vh; min-height: 760px; max-height: 1300px; border: 0; }
.notice__actions { margin-top: 20px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

@media (max-width: 640px) {
  .notice { padding-top: 32px; }
  .notice__frame { height: 70vh; min-height: 520px; }
  .notice__actions .btn { flex: 1 1 auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

@media print {
  .header, .tabbar, .fab, .drawer, .map { display: none !important; }
}
