/* BARS — публичный сайт. Фирменные цвета (Р-23). */
:root {
  --blue: #12549A; --blue-dark: #0B3260; --blue-50: #EAF1F9;
  --gold: #E9C653; --gold-light: #F5DF91; --gold-50: #FBF5DE;
  --white: #fff; --bg: #F5F7FA; --text: #16243A; --muted: #5B6B82; --line: #DDE3EC;
  --crit: #C2362F;
  --radius: 20px;
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  color: var(--text);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--white); font-size: 16px; line-height: 1.5; }
a { color: var(--blue); }
h1, h2, h3 { margin: 0; line-height: 1.15; }
.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }
.muted { color: var(--muted); }
.small { font-size: 13px; color: var(--muted); margin: 6px 0 0; }

.env-strip { background: #FFF5DA; color: #A86B00; text-align: center; font-size: 13px; padding: 4px 8px; font-weight: 600; }

/* Шапка */
.site-header { position: sticky; top: 0; z-index: 10; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; gap: 24px; min-height: 76px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--blue-dark); }
.logo img { width: 56px; height: auto; display: block; }
.logo-text { display: flex; flex-direction: column; line-height: 1.05; }
.logo-text strong { font-size: 22px; letter-spacing: .12em; font-weight: 800; }
.logo-text small { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }
.site-nav { display: flex; gap: 22px; margin-left: 12px; }
.site-nav a { color: var(--text); text-decoration: none; font-weight: 600; font-size: 15px; }
.site-nav a:hover { color: var(--blue); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 16px; }
.header-phone { font-weight: 700; color: var(--blue-dark); text-decoration: none; font-size: 17px; white-space: nowrap; }
.lang { display: flex; gap: 2px; background: var(--bg); border-radius: 999px; padding: 3px; }
.lang button { border: 0; background: transparent; font: inherit; font-size: 13px; font-weight: 700; padding: 4px 10px; border-radius: 999px; cursor: pointer; color: var(--muted); }
.lang button.active { background: var(--white); color: var(--blue-dark); box-shadow: 0 1px 3px rgba(0,0,0,.1); }

/* Цены */
.prices { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.price-chip { flex: 1 1 180px; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  border: 1px solid var(--line); border-radius: 14px; padding: 12px 18px; background: var(--white); }
.assay { font-weight: 800; font-size: 18px; color: var(--blue); background: var(--gold-50); border-radius: 10px; padding: 4px 10px; }
.price-value { font-weight: 800; font-size: 20px; color: var(--blue-dark); white-space: nowrap; }
.price-value small { display: block; font-size: 12px; font-weight: 500; color: var(--muted); text-align: right; }

/* Первый экран */
.hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: 32px; align-items: start; margin-top: 28px; }
.hero-text { background: linear-gradient(140deg, var(--blue) 0%, var(--blue-dark) 100%); color: var(--white);
  border-radius: var(--radius); padding: 48px 44px; min-height: 100%; position: relative; overflow: hidden; }
.hero-text::after { content: ""; position: absolute; right: -80px; bottom: -80px; width: 280px; height: 280px; border-radius: 50%;
  border: 36px solid rgba(233, 198, 83, .18); }
.hero h1 { font-size: clamp(32px, 4.4vw, 52px); font-weight: 800; letter-spacing: -.02em; max-width: 12ch; }
.lead { font-size: 18px; color: #D7E3F3; margin: 16px 0 0; max-width: 40ch; }
.cta-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 24px; position: relative; z-index: 1; }
.btn { display: inline-flex; align-items: center; justify-content: center; font: inherit; font-weight: 700; font-size: 15px;
  padding: 12px 22px; border-radius: 12px; text-decoration: none; border: 2px solid transparent; cursor: pointer; }
.btn-gold { background: var(--gold); color: var(--blue-dark); }
.btn-gold:hover { background: #DDB940; }
.btn-outline { border-color: rgba(255,255,255,.5); color: var(--white); }
.btn-outline:hover { border-color: var(--white); }
.btn-blue { background: var(--blue); color: var(--white); }
.btn-blue:hover { background: var(--blue-dark); }
.btn-outline-blue { border-color: var(--blue); color: var(--blue); }

/* Калькулятор */
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 10px 40px rgba(11,50,96,.08); }
.calc { padding: 28px; scroll-margin-top: 96px; }
.calc h2 { font-size: 24px; margin-bottom: 18px; }
.calc-form { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
.calc-form label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--muted); }
.calc-form input, .calc-form select { font: inherit; font-size: 18px; font-weight: 700; color: var(--text); padding: 10px 12px;
  border: 1px solid var(--line); border-radius: 12px; background: var(--bg); width: 100%; }
.calc-form input:focus, .calc-form select:focus { outline: 2px solid var(--gold); background: var(--white); }
.calc-form noscript { grid-column: 1 / -1; }
.calc-result { margin-top: 18px; }
.calc-sums { background: var(--bg); border-radius: 14px; padding: 16px 18px; }
.calc-sums > div { display: flex; justify-content: space-between; align-items: baseline; padding: 6px 0; }
.calc-sums span { color: var(--muted); }
.calc-sums strong { font-size: 22px; color: var(--blue-dark); }
.calc-sums .total { border-top: 1px dashed var(--line); margin-top: 4px; padding-top: 10px; }
.calc-sums .total strong { font-size: 28px; color: var(--blue); }
.calc-error { color: var(--crit); font-weight: 600; margin: 0; }
.disclaimer { font-size: 13px; color: var(--muted); margin: 14px 0 0; }
.calc .cta-row { margin-top: 16px; }

/* Плитки */
.promo { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 40px; }
.promo-card { display: flex; flex-direction: column; justify-content: space-between; min-height: 240px; padding: 32px;
  border-radius: var(--radius); text-decoration: none; color: inherit; transition: transform .15s ease; }
a.promo-card:hover { transform: translateY(-3px); }
.promo-card h3 { font-size: clamp(24px, 3vw, 36px); font-weight: 800; }
.promo-card p { margin: 12px 0 0; font-size: 17px; }
.promo-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 24px; font-weight: 600; }
.arrow { font-size: 26px; }
.promo-card.blue { background: var(--blue); color: var(--white); }
.promo-card.gold { background: var(--gold); color: var(--blue-dark); }
.promo-card.light { background: var(--bg); color: var(--blue-dark); }

/* Подвал */
.site-footer { margin-top: 56px; border-top: 1px solid var(--line); padding: 40px 0 32px; font-size: 14px; scroll-margin-top: 80px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 32px; }
.footer-docs h2 { font-size: 20px; margin-bottom: 12px; }
.doc-group { padding: 10px 0; border-bottom: 1px solid var(--line); }
.doc-group h3 { font-size: 14px; color: var(--muted); margin-bottom: 6px; }
.doc-group ul { list-style: none; margin: 0; padding: 0; }
.doc-group li { margin: 6px 0; }
.doc-group a { color: var(--text); }
.footer-contacts { display: flex; flex-direction: column; gap: 6px; }
.footer-contacts p { margin: 0; }
.footer-phone { font-size: 24px; font-weight: 800; color: var(--blue-dark); text-decoration: none; }
.footer-label { font-weight: 700; margin: 0 0 8px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.chip { background: var(--bg); border-radius: 10px; padding: 8px 12px; text-decoration: none; color: var(--blue-dark); font-weight: 600; font-size: 13px; }
.chip:hover { background: var(--blue-50); }
.footer-legal { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.footer-legal p { margin: 0 0 10px; }
.legal-right { text-align: right; }

@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; }
  .hero-text { padding: 32px 26px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-docs { grid-column: 1 / -1; }
  .site-nav { display: none; }
}
@media (max-width: 640px) {
  .header-row { min-height: 64px; gap: 10px; }
  .logo img { width: 44px; }
  .logo-text strong { font-size: 18px; }
  .header-phone { display: none; }
  .prices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 16px; }
  .price-chip { flex-direction: column; align-items: flex-start; gap: 4px; padding: 10px 12px; }
  .assay { font-size: 14px; padding: 2px 8px; }
  .price-value { font-size: 16px; }
  .price-value small { text-align: left; }
  .calc { padding: 20px; }
  .calc-form { grid-template-columns: 1fr 1fr; }
  .calc-form label:first-child { grid-column: 1 / -1; }
  .promo { grid-template-columns: 1fr; }
  .promo-card { min-height: 180px; padding: 24px; }
  .footer-grid, .footer-legal { grid-template-columns: 1fr; }
  .legal-right { text-align: left; }
  .cta-row .btn { flex: 1 1 auto; }
}

/* --- Ползунок срока --- */
.range-row { grid-column: 1 / -1; }
.range-row input[type=range] { width: 100%; -webkit-appearance: none; appearance: none; height: 6px; border-radius: 999px; padding: 0; border: 0;
  background: linear-gradient(to right, var(--gold) 0 var(--fill, 100%), var(--line) var(--fill, 100%) 100%); }
.range-row input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: var(--blue); border: 3px solid var(--white); box-shadow: 0 1px 4px rgba(0,0,0,.3); cursor: pointer; }
.range-row input[type=range]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--blue); border: 3px solid var(--white); cursor: pointer; }
.range-scale { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin-top: 4px; }

/* --- Переключатель языка ссылками --- */
.lang a { font-size: 13px; font-weight: 700; padding: 4px 10px; border-radius: 999px; color: var(--muted); text-decoration: none; }
.lang a.active { background: var(--white); color: var(--blue-dark); box-shadow: 0 1px 3px rgba(0,0,0,.1); }

/* --- Кнопка меню на телефоне --- */
.menu-btn { display: none; border: 1px solid var(--line); background: var(--white); border-radius: 10px; font-size: 20px; width: 42px; height: 42px; cursor: pointer; color: var(--blue-dark); }

/* --- Быстрые ссылки --- */
.quick-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 24px; }
.quick { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 20px 22px; border: 1px solid var(--line); border-radius: 16px; text-decoration: none; color: var(--text); background: var(--white); }
.quick:hover { border-color: var(--blue); }
.quick strong { font-size: 17px; color: var(--blue-dark); }
.quick span { color: var(--muted); font-size: 14px; grid-column: 1; }
.quick .arrow { grid-column: 2; grid-row: 1 / span 2; align-self: center; color: var(--blue); font-size: 22px; }

/* --- Внутренние страницы --- */
.page-hero { margin-top: 32px; }
.page-hero h1 { font-size: clamp(28px, 4vw, 42px); font-weight: 800; color: var(--blue-dark); }
.page-hero p { color: var(--muted); max-width: 60ch; }
.page-body { margin-top: 24px; max-width: 75ch; font-size: 17px; }
.page-body p { margin: 0 0 14px; }
.faq { margin-top: 24px; max-width: 85ch; }
.faq details { border: 1px solid var(--line); border-radius: 14px; padding: 16px 20px; margin-bottom: 10px; background: var(--white); }
.faq summary { cursor: pointer; font-weight: 700; color: var(--blue-dark); font-size: 17px; }
.faq details p { margin: 12px 0 0; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 18px; }
.footer-nav a { color: var(--text); font-weight: 600; }

/* --- Филиалы --- */
.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.filters input, .filters select { font: inherit; padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); }
.filters input { flex: 1 1 260px; }
.branch-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 20px; }
.branch { display: grid; grid-template-rows: auto 1fr; overflow: hidden; }
.branch-map { width: 100%; height: 220px; border: 0; display: block; background: var(--bg); }
.branch-body { padding: 20px 22px; }
.branch-body h2 { font-size: 20px; color: var(--blue-dark); }
.branch-meta { list-style: none; padding: 0; margin: 12px 0; display: grid; gap: 6px; }
.branch-meta li { display: grid; grid-template-columns: 110px 1fr; gap: 10px; }
.branch-meta span { color: var(--muted); font-size: 14px; }
.status-pill { display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 10px; border-radius: 999px; margin-left: 8px; vertical-align: middle; background: var(--gold-50); color: #8A6A00; }
.routes { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.routes .btn { padding: 8px 14px; font-size: 14px; }
.empty-state { margin-top: 24px; padding: 40px; text-align: center; border: 1px dashed var(--line); border-radius: var(--radius); color: var(--muted); }

/* --- Формы сайта --- */
.form-card { padding: 28px; margin-top: 24px; max-width: 760px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.form-grid .full { grid-column: 1 / -1; }
.f { display: flex; flex-direction: column; gap: 6px; }
.f label { font-size: 14px; font-weight: 600; color: var(--text); }
.f input:not([type=checkbox]), .f select, .f textarea { font: inherit; padding: 11px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); width: 100%; }
.f input:focus, .f select:focus, .f textarea:focus { outline: 2px solid var(--gold); background: var(--white); }
.f .errorlist { list-style: none; margin: 0; padding: 0; color: var(--crit); font-size: 13px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }
.check input { margin-top: 3px; width: 18px; height: 18px; }
.form-errors { background: #FDECEB; color: var(--crit); padding: 12px 14px; border-radius: 12px; margin-bottom: 14px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.success { padding: 32px; margin-top: 24px; max-width: 640px; }
.success .number { font-size: 34px; font-weight: 800; color: var(--blue); letter-spacing: .02em; }

@media (max-width: 960px) {
  .menu-btn { display: inline-block; }
  .site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--white); flex-direction: column;
    gap: 0; margin: 0; padding: 8px 16px 16px; border-bottom: 1px solid var(--line); box-shadow: 0 12px 30px rgba(11,50,96,.12); }
  .site-nav a { padding: 12px 4px; border-bottom: 1px solid var(--bg); }
  body.menu-open .site-nav { display: flex; }
  .branch-list, .quick-links { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .form-grid { grid-template-columns: 1fr; }
  .form-card, .success { padding: 20px; }
  .branch-meta li { grid-template-columns: 1fr; gap: 0; }
}

/* --- Кабинет, расчёт в заявке, геолокация --- */
.cabinet-link { font-weight: 700; color: var(--blue-dark); text-decoration: none; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; }
.cabinet-link:hover { border-color: var(--blue); }
.estimate { background: var(--gold-50); border: 1px solid var(--gold-light); border-radius: 14px; padding: 14px 18px; }
.estimate > div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 4px 0; }
.estimate strong { font-size: 24px; color: var(--blue-dark); }
.estimate > div:first-child strong { font-size: 30px; color: var(--blue); }
.estimate .small { margin-top: 6px; }
.link-btn { background: none; border: 0; padding: 0; color: var(--blue); font: inherit; font-size: 14px; text-decoration: underline; cursor: pointer; text-align: left; }
.geo-hint { color: #1E8E5A; font-weight: 600; }
.geo-row { margin: 16px 0 0; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.distance { margin: 0 0 4px; font-size: 13px; font-weight: 700; color: #1E8E5A; }
.iin-full { font-size: 18px; letter-spacing: .06em; }
@media (max-width: 640px) { .cabinet-link { padding: 5px 10px; font-size: 13px; } }

[hidden] { display: none !important; }

/* --- Филиалы на главной --- */
.home-branches { margin-top: 48px; }
.section-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.section-head h2 { font-size: clamp(24px, 3vw, 34px); color: var(--blue-dark); font-weight: 800; }
.home-branch-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.home-branch { border: 1px solid var(--line); border-radius: 18px; padding: 20px; background: var(--white); display: flex; flex-direction: column; gap: 6px; }
.home-branch h3 { font-size: 18px; color: var(--blue-dark); }
.home-branch p { margin: 0; font-size: 14px; }
.home-branch-phone { font-weight: 800; font-size: 18px; color: var(--blue); text-decoration: none; margin-top: 4px; }
.home-branch .routes { margin-top: auto; padding-top: 10px; }

/* --- Гид-чат: круглая кнопка в правом нижнем углу --- */
.guide-fab { position: fixed; right: 20px; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); z-index: 30; width: 60px; height: 60px; border-radius: 50%;
  border: 3px solid var(--gold); background: linear-gradient(140deg, var(--blue) 0%, var(--blue-dark) 100%); color: var(--white);
  display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 8px 24px rgba(11,50,96,.35); transition: transform .15s ease; }
.guide-fab:hover { transform: scale(1.06); }
.guide-fab:focus-visible, .guide-panel button:focus-visible, .guide-panel a:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.guide-panel { position: fixed; right: 20px; bottom: calc(92px + env(safe-area-inset-bottom, 0px)); z-index: 31; width: 370px; max-width: calc(100vw - 24px);
  height: min(560px, calc(100vh - 120px)); display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: 0 20px 60px rgba(11,50,96,.28); overflow: hidden; }
.guide-panel:focus { outline: none; }
.guide-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: linear-gradient(140deg, var(--blue) 0%, var(--blue-dark) 100%); color: var(--white); }
.guide-head img { width: 36px; height: auto; border-radius: 8px; display: block; background: var(--white); }
.guide-title { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.guide-title strong { font-size: 16px; }
.guide-title small { font-size: 12px; color: #D7E3F3; }
.guide-close { margin-left: auto; width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(255,255,255,.14); color: var(--white); font-size: 24px; line-height: 1; cursor: pointer; flex: none; }
.guide-close:hover { background: rgba(255,255,255,.26); }
.guide-log { position: relative; flex: 1 1 auto; overflow-y: auto; overscroll-behavior: contain; padding: 14px; display: flex; flex-direction: column; gap: 10px; background: var(--bg); }
.guide-msg { max-width: 92%; padding: 10px 14px; border-radius: 16px; font-size: 15px; overflow-wrap: anywhere; flex: none; }
.guide-msg p { margin: 0 0 8px; }
.guide-msg p:last-child, .guide-msg ul:last-child { margin-bottom: 0; }
.guide-msg ul { margin: 0 0 8px; padding-left: 18px; }
.guide-msg.bot { align-self: flex-start; background: var(--white); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.guide-msg.user { align-self: flex-end; background: var(--blue); color: var(--white); border-bottom-right-radius: 4px; }
.guide-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.guide-chips button, .guide-chips a { font: inherit; font-size: 14px; font-weight: 600; text-align: left; text-decoration: none; cursor: pointer;
  padding: 8px 12px; border-radius: 12px; border: 1px solid var(--blue); background: var(--white); color: var(--blue); min-height: 38px; display: inline-flex; align-items: center; }
.guide-chips a { background: var(--gold); border-color: var(--gold); color: var(--blue-dark); }
.guide-chips button:hover { background: var(--blue-50); }
.guide-chips a:hover { background: #DDB940; }
.guide-ask { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--line); background: var(--white); }
.guide-ask input { flex: 1 1 auto; min-width: 0; font: inherit; font-size: 16px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); }
.guide-ask input:focus { outline: 2px solid var(--gold); background: var(--white); }
.guide-menu-btn, .guide-send { font: inherit; font-weight: 700; border-radius: 12px; cursor: pointer; flex: none; min-height: 42px; }
.guide-menu-btn { font-size: 13px; padding: 0 10px; border: 1px solid var(--line); background: var(--white); color: var(--blue-dark); }
.guide-send { width: 42px; border: 0; background: var(--blue); color: var(--white); font-size: 20px; }
.guide-send:hover { background: var(--blue-dark); }
@media (max-width: 640px) {
  .guide-fab { right: 14px; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); width: 56px; height: 56px; }
  .guide-panel { left: 8px; right: 8px; bottom: calc(8px + env(safe-area-inset-bottom, 0px)); width: auto; max-width: none; height: min(600px, calc(100vh - 16px)); height: min(600px, calc(100dvh - 16px)); }
  body.guide-open .guide-fab { display: none; }
  .site-footer { padding-bottom: 96px; }  /* чтобы кнопка не закрывала последние строки подвала */
}

/* --- Телефоны: шапка, меню, удобные для пальца кнопки --- */
.site-nav .nav-mobile { display: none; }
@media (max-width: 960px) {
  .site-nav { max-height: calc(100vh - 70px); overflow-y: auto; }
  .site-nav a { padding: 14px 4px; font-size: 16px; }
}
@media (max-width: 640px) {
  .wrap { width: min(1200px, 100% - 24px); }
  .header-actions { gap: 8px; }
  .cabinet-link { display: none; }
  .site-nav .nav-mobile { display: block; }
  .site-nav .nav-phone { color: var(--blue); font-weight: 800; border-bottom: 0; }
  .logo { min-width: 0; }
  .lang a { padding: 8px 9px; }
  .menu-btn { width: 44px; height: 44px; flex: none; }
  .hero { margin-top: 16px; gap: 16px; }
  .hero-text { padding: 26px 20px; }
  .lead { font-size: 16px; }
  .btn { min-height: 46px; }
  .routes .btn { min-height: 42px; padding: 8px 12px; }
  .promo, .home-branches { margin-top: 28px; }
  .home-branch-grid { grid-template-columns: 1fr; }
  .section-head .btn { width: 100%; }
  .quick { padding: 16px 18px; }
  .filters input, .filters select { flex: 1 1 100%; width: 100%; }
  .branch-map { height: 180px; }
  .page-hero { margin-top: 20px; }
  .page-body { font-size: 16px; }
  .faq details { padding: 14px 16px; }
  .estimate strong { font-size: 20px; }
  .estimate > div:first-child strong { font-size: 24px; }
  .success .number { font-size: 28px; overflow-wrap: anywhere; }
  .footer-phone { font-size: 22px; }
  .footer-nav a { padding: 6px 0; }
  .site-footer { margin-top: 36px; padding-top: 28px; }
}
@media (max-width: 360px) {
  .logo-text small { display: none; }
  .prices { grid-template-columns: 1fr; }
  .price-chip { flex-direction: row; align-items: center; }
  .calc-form { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .guide-fab, .promo-card { transition: none; } }

/* --- Главная в виде больших плиток, калькулятор на всю ширину, «Условия займа», вопросы по разделам --- */
.tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 24px; }
.tile-card { position: relative; overflow: hidden; display: flex; min-height: 300px; border-radius: 24px; text-decoration: none;
  color: var(--blue-dark); background: var(--bg); transition: transform .15s ease, box-shadow .15s ease; }
a.tile-card:hover { transform: translateY(-3px); box-shadow: 0 14px 40px rgba(11,50,96,.12); }
.tile-card.blue { background: linear-gradient(140deg, var(--blue) 0%, var(--blue-dark) 100%); color: var(--white); }
.tile-card.gold { background: var(--gold); color: var(--blue-dark); }
.tile-card.light { background: var(--bg); color: var(--blue-dark); border: 1px solid var(--line); }
.tile-card.has-image { color: var(--white); background: var(--blue-dark); }
.tile-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tile-card.has-image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(11,50,96,.85), rgba(11,50,96,0) 60%); }
.tile-body { position: relative; z-index: 1; display: flex; flex-direction: column; justify-content: space-between; gap: 18px; padding: 28px 30px; width: 100%; }
.tile-card h3 { font-size: clamp(22px, 2.4vw, 30px); font-weight: 800; }
.tile-card p { margin: 10px 0 0; font-size: 16px; opacity: .9; }
.tile-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; }
.tile-foot small { font-size: 15px; font-weight: 600; opacity: .9; }
.tile-card .arrow { font-size: 28px; line-height: 1; }
.tile-hero h1 { font-size: clamp(30px, 3.6vw, 46px); font-weight: 800; letter-spacing: -.02em; max-width: 13ch; }
.tile-hero p { color: #D7E3F3; font-size: 17px; max-width: 40ch; }
.tile-hero .cta-row { margin-top: 0; }
.calc-wide { margin-top: 24px; }
.calc-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 24px; align-items: start; }
.calc-grid .calc-result { margin-top: 0; }
.calc-grid .cta-row { margin-top: 14px; }
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; margin-top: 24px; }
.fact { display: flex; flex-direction: column; gap: 4px; padding: 22px; border-radius: 18px; background: var(--bg); border: 1px solid var(--line); }
.fact small { color: var(--muted); font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.fact strong { font-size: 26px; color: var(--blue-dark); font-weight: 800; }
.fact span { color: var(--muted); font-size: 14px; }
.example { padding: 24px 28px; margin-top: 20px; }
.example h2 { font-size: 20px; margin-bottom: 8px; color: var(--blue-dark); }
.faq-parts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.faq h2 { font-size: 22px; color: var(--blue-dark); margin: 22px 0 12px; }
@media (max-width: 960px) { .calc-grid { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .tiles { grid-template-columns: 1fr; gap: 14px; margin-top: 16px; }
  .tile-card { min-height: 200px; border-radius: 20px; }
  .tile-body { padding: 22px; }
  .fact strong { font-size: 22px; }
}

/* --- Калькулятор на всю ширину без пустого места: поля в строку, итоги в ряд под ними --- */
.calc-wide .calc-grid { grid-template-columns: 1fr; gap: 18px; }
.calc-wide .calc-form { grid-template-columns: repeat(3, 1fr); }
.calc-wide .calc-sums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; background: none; padding: 0; }
.calc-wide .calc-sums > div { flex-direction: column; align-items: flex-start; gap: 4px; padding: 16px 18px; border-radius: 14px; background: var(--bg); }
.calc-wide .calc-sums .total { border-top: 0; margin-top: 0; padding-top: 16px; background: var(--gold-50); }
.calc-wide .calc-sums .small { grid-column: 1 / -1; margin: 0; }
@media (max-width: 640px) {
  .calc-wide .calc-form { grid-template-columns: 1fr 1fr; }
  .calc-wide .calc-sums { grid-template-columns: 1fr; gap: 8px; }
  .calc-wide .calc-sums > div { flex-direction: row; justify-content: space-between; align-items: baseline; padding: 12px 14px; }
}

/* --- Подвал в четыре колонки (документы · контакты · соцсети · приложение) --- */
.footer-cols { display: grid; grid-template-columns: 1.6fr 1.1fr 1fr 1fr; gap: 32px; }
.footer-docs h2 { font-size: 20px; margin-bottom: 6px; color: var(--text); }
.footer-go { display: inline-flex; gap: 6px; color: var(--text); font-weight: 600; text-decoration: none; margin-bottom: 8px; }
.footer-go:hover { color: var(--blue); }
.footer-docs .doc-group { padding: 10px 0; border-bottom: 1px solid var(--line); }
.footer-docs .doc-group a { font-size: 13px; color: var(--muted); }
.footer-docs .doc-group a:hover { color: var(--blue); }
.footer-mail { color: var(--text); font-weight: 600; text-decoration: none; }
.footer-label-small { display: block; font-size: 12px; font-weight: 700; color: var(--muted); margin: 2px 0 10px; }
.doc-chip { display: block; font-size: 12px; color: var(--text); text-decoration: none; background: var(--bg); border-radius: 8px; padding: 8px 10px; margin-top: 8px; max-width: 220px; }
.doc-chip:hover { background: var(--blue-50); }
.icon-row { display: flex; flex-wrap: wrap; gap: 8px; }
.icon-btn { width: 40px; height: 40px; border-radius: 12px; background: var(--bg); color: var(--blue-dark); display: inline-flex; align-items: center; justify-content: center; text-decoration: none; font-weight: 700; font-size: 13px; }
.icon-btn:hover { background: var(--blue-50); color: var(--blue); }
.icon-btn svg { width: 20px; height: 20px; }
@media (max-width: 960px) { .footer-cols { grid-template-columns: 1fr 1fr; } .footer-docs { grid-column: 1 / -1; } }
@media (max-width: 640px) { .footer-cols { grid-template-columns: 1fr; gap: 22px; } }
