/* =========================================================================
   МОТОСПАС — стили лендинга
   База: токены дизайн-системы «Объект» (slate-нейтрали, радиусы, тени, тип).
   Акцент: спасательный красный. Заголовки — Saira Condensed, текст — Inter.
   ========================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Saira+Condensed:wght@500;600;700;800&display=swap');

:root {
  /* ---- Нейтрали (slate scale из дизайн-системы) ---- */
  --slate-50:  #F8FAFC;
  --slate-100: #F1F5F9;
  --slate-200: #E2E8F0;
  --slate-300: #CBD5E1;
  --slate-400: #94A3B8;
  --slate-500: #64748B;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1E293B;
  --slate-900: #0F172A;

  /* ---- Бренд: спасательный красный ---- */
  --brand:        #E5152A;
  --brand-hover:  #C70F22;
  --brand-press:  #A60C1D;
  --brand-50:     #FEECEE;
  --brand-100:    #FBD3D8;
  --brand-fg:     #FFFFFF;

  /* ---- Поверхности ---- */
  --bg:            #FFFFFF;
  --surface:       #FFFFFF;
  --surface-2:     var(--slate-50);
  --surface-hover: var(--slate-100);
  --ink:           #14181F;     /* почти-чёрный для тёмных блоков (контакты/футер) */
  --ink-2:         #1C222C;
  --border:        var(--slate-200);
  --border-strong: var(--slate-300);
  --divider:       var(--slate-100);

  /* ---- Текст ---- */
  --fg:   var(--slate-900);
  --fg-2: var(--slate-600);
  --fg-3: var(--slate-400);

  /* ---- Тени ---- */
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.10);
  --shadow-lg: 0 18px 50px rgba(15, 23, 42, 0.16);
  --shadow-brand: 0 10px 30px rgba(229, 21, 42, 0.30);

  /* ---- Радиусы ---- */
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-pill: 999px;

  /* ---- Spacing (4px grid) ---- */
  --s-1: 4px;  --s-2: 8px;  --s-3: 12px; --s-4: 16px; --s-5: 20px;
  --s-6: 24px; --s-8: 32px; --s-10: 40px; --s-12: 48px; --s-16: 64px; --s-20: 80px;

  /* ---- Типографика ---- */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-display: 'Saira Condensed', 'Inter', sans-serif;
  --tnum: "tnum" 1, "lnum" 1;

  --ease-out: cubic-bezier(0.2, 0, 0, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  --maxw: 1200px;
  --nav-h: 72px;
}

/* =========================================================================
   Сброс / база
   ========================================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--fg);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
figure, figcaption { margin: 0; }

.num { font-feature-settings: var(--tnum); font-variant-numeric: tabular-nums lining-nums; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* =========================================================================
   Кнопки
   ========================================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-sans); font-weight: 600; font-size: 16px;
  padding: 15px 26px; border-radius: var(--radius-pill); border: 1.5px solid transparent;
  transition: transform .15s var(--ease-out), background .15s var(--ease-out),
              box-shadow .2s var(--ease-out), border-color .15s var(--ease-out);
  white-space: nowrap; line-height: 1;
}
.btn svg { width: 19px; height: 19px; }
.btn-primary { background: var(--brand); color: var(--brand-fg); box-shadow: var(--shadow-brand); }
.btn-primary:hover { background: var(--brand-hover); transform: translateY(-2px); box-shadow: 0 14px 36px rgba(229,21,42,.38); }
.btn-primary:active { background: var(--brand-press); transform: translateY(0); }
.btn-ghost { background: transparent; color: var(--fg); border-color: var(--border-strong); }
.btn-ghost:hover { background: var(--surface-2); border-color: var(--slate-400); }
.btn-white { background: #fff; color: var(--ink); }
.btn-white:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-lg { padding: 18px 32px; font-size: 17px; }
.btn-sm { padding: 11px 18px; font-size: 14px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-sans); font-weight: 600; font-size: 13px;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--brand);
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--brand); border-radius: 2px; }

.section-title {
  font-family: var(--font-display); font-weight: 700; letter-spacing: 0.01em;
  font-size: clamp(34px, 5vw, 52px); line-height: 1.02; color: var(--fg);
  text-transform: uppercase;
}
.section-lede { font-size: 18px; color: var(--fg-2); max-width: 56ch; line-height: 1.5; }

section { padding: clamp(64px, 9vw, 112px) 0; }
.sec-head { margin-bottom: clamp(36px, 5vw, 56px); }
.sec-head .eyebrow { margin-bottom: 16px; }
.sec-head .section-lede { margin-top: 16px; }

/* =========================================================================
   Header / nav
   ========================================================================= */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--nav-h);
  display: flex; align-items: center;
  background: rgba(255,255,255,0.72);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.site-header.scrolled { border-bottom-color: var(--border); box-shadow: var(--shadow-sm); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: flex; align-items: center; gap: 11px; }
.brand-mark {
  width: 40px; height: 40px; border-radius: 11px; background: var(--brand);
  display: grid; place-items: center; box-shadow: var(--shadow-brand); flex: 0 0 auto;
}
.brand-mark svg { width: 24px; height: 24px; color: #fff; }
.brand-word { font-family: var(--font-display); font-weight: 600; font-size: 26px; letter-spacing: 0.02em; line-height: 1; text-transform: uppercase; }
.brand-word b { font-weight: 800; color: var(--brand); }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  font-size: 15px; font-weight: 500; color: var(--fg-2); padding: 9px 14px; border-radius: var(--radius-sm);
  transition: color .15s, background .15s;
}
.nav a:hover { color: var(--fg); background: var(--surface-2); }

.header-cta { display: flex; align-items: center; gap: 14px; }
.header-phone {
  font-family: var(--font-display); font-weight: 700; font-size: 21px; letter-spacing: 0.01em;
  color: var(--fg); display: flex; align-items: center; gap: 8px; white-space: nowrap;
}
.header-phone svg { width: 18px; height: 18px; color: var(--brand); }

.burger { display: none; width: 44px; height: 44px; border: 1px solid var(--border); background: #fff; border-radius: var(--radius-sm); align-items: center; justify-content: center; }
.burger svg { width: 22px; height: 22px; color: var(--fg); }

/* мобильное меню */
.mobile-menu {
  position: fixed; inset: var(--nav-h) 0 0 0; z-index: 49;
  background: rgba(255,255,255,0.98); backdrop-filter: blur(20px);
  padding: 28px 24px 40px; display: flex; flex-direction: column; gap: 6px;
  transform: translateY(-12px); opacity: 0; pointer-events: none;
  transition: opacity .2s var(--ease-out), transform .2s var(--ease-out);
}
.mobile-menu.open { opacity: 1; transform: translateY(0); pointer-events: auto; }
.mobile-menu a { font-family: var(--font-display); text-transform: uppercase; font-weight: 600; font-size: 26px; letter-spacing: .02em; padding: 12px 4px; border-bottom: 1px solid var(--divider); color: var(--fg); }
.mobile-menu .btn { margin-top: 20px; }

/* =========================================================================
   Hero
   ========================================================================= */
.hero { padding: clamp(40px, 6vw, 76px) 0 clamp(56px, 7vw, 96px); position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; top: -180px; right: -160px; width: 520px; height: 520px;
  background: radial-gradient(circle, var(--brand-50) 0%, transparent 70%); z-index: 0; pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(32px, 5vw, 64px); align-items: center; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 9px; padding: 8px 16px 8px 12px;
  background: var(--brand-50); color: var(--brand-press); border-radius: var(--radius-pill);
  font-weight: 600; font-size: 14px; margin-bottom: 24px;
}
.pulse-dot { position: relative; width: 9px; height: 9px; border-radius: 50%; background: var(--brand); flex: 0 0 auto; }
.pulse-dot::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid var(--brand); animation: pulse 1.8s var(--ease-out) infinite; }
@keyframes pulse { 0% { transform: scale(.6); opacity: .9; } 100% { transform: scale(1.9); opacity: 0; } }

.hero h1 {
  font-family: var(--font-display); font-weight: 800; text-transform: uppercase;
  font-size: clamp(40px, 5.4vw, 72px); line-height: 1.12; letter-spacing: 0.005em;
  color: var(--fg); margin-bottom: 30px;
}
.hero h1 .hl { color: var(--brand); }
.hero-sub { font-size: clamp(17px, 2vw, 20px); color: var(--fg-2); line-height: 1.5; max-width: 44ch; margin-bottom: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-bottom: 36px; }

.hero-stats { display: flex; flex-wrap: wrap; gap: 28px 40px; }
.hstat { display: flex; flex-direction: column; gap: 2px; }
.hstat b { font-family: var(--font-display); font-weight: 700; font-size: 34px; line-height: 1; color: var(--fg); }
.hstat span { font-size: 13.5px; color: var(--fg-2); font-weight: 500; }

/* hero media */
.hero-media { position: relative; }
.hero-photo {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg); background: var(--slate-100);
}
.hero-photo-frame { position: relative; border-radius: var(--radius-xl); overflow: hidden; }
.hero-photo-frame::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius-xl); border: 1px solid rgba(255,255,255,.18); box-shadow: inset 0 -90px 90px -40px rgba(20,24,31,.6); }
.hero-float {
  position: absolute; left: -22px; bottom: 28px; z-index: 2;
  background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  padding: 16px 20px; display: flex; align-items: center; gap: 14px; max-width: 280px;
}
.hero-float .ic { width: 44px; height: 44px; border-radius: 12px; background: var(--brand-50); display: grid; place-items: center; flex: 0 0 auto; }
.hero-float .ic svg { width: 24px; height: 24px; color: var(--brand); }
.hero-float b { font-family: var(--font-display); font-weight: 700; font-size: 17px; display: block; line-height: 1.1; }
.hero-float span { font-size: 13px; color: var(--fg-2); }

/* =========================================================================
   Trust bar
   ========================================================================= */
.trustbar { background: var(--ink); color: #fff; padding: 0; }
.trustbar .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px; padding-top: 26px; padding-bottom: 26px; }
.trust-item { display: flex; align-items: center; gap: 12px; font-size: 15px; font-weight: 500; color: #E7EBF0; }
.trust-item svg { width: 22px; height: 22px; color: var(--brand); flex: 0 0 auto; }

/* =========================================================================
   Services
   ========================================================================= */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.svc-card {
  position: relative; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 32px 28px 30px; overflow: hidden;
  transition: transform .2s var(--ease-out), box-shadow .2s var(--ease-out), border-color .2s;
}
.svc-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--border-strong); }
.svc-card::before { content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 100%; background: var(--brand); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease-out); }
.svc-card:hover::before { transform: scaleX(1); }
.svc-ic { width: 56px; height: 56px; border-radius: 15px; background: var(--brand-50); display: grid; place-items: center; margin-bottom: 22px; }
.svc-ic svg { width: 28px; height: 28px; color: var(--brand); }
.svc-card h3 { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; font-size: 23px; letter-spacing: .01em; margin-bottom: 12px; line-height: 1.05; }
.svc-card p { color: var(--fg-2); font-size: 15.5px; line-height: 1.55; }

/* =========================================================================
   Pricing
   ========================================================================= */
.price-layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: 28px; align-items: start; }
.price-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.price-row { display: flex; align-items: center; gap: 20px; padding: 20px 26px; border-bottom: 1px solid var(--divider); }
.price-row:last-child { border-bottom: 0; }
.price-row:hover { background: var(--surface-2); }
.price-row .pr-n { font-family: var(--font-display); font-weight: 700; font-size: 19px; color: var(--fg-3); width: 26px; flex: 0 0 auto; }
.price-row .pr-name { flex: 1; font-size: 15.5px; color: var(--fg); line-height: 1.4; }
.price-row .pr-name small { display: block; color: var(--fg-3); font-size: 13px; margin-top: 2px; }
.price-row .pr-val { font-family: var(--font-display); font-weight: 700; font-size: 22px; color: var(--fg); text-align: right; white-space: nowrap; flex: 0 0 auto; }
.price-row .pr-val.muted { font-family: var(--font-sans); font-weight: 600; font-size: 14px; color: var(--fg-2); max-width: 150px; text-align: right; white-space: normal; line-height: 1.3; }
.price-row.featured { background: var(--brand-50); }
.price-row.featured .pr-val { color: var(--brand); }

.price-note { background: var(--ink); color: #fff; border-radius: var(--radius-lg); padding: 30px 28px; position: sticky; top: calc(var(--nav-h) + 20px); }
.price-note h4 { font-family: var(--font-display); text-transform: uppercase; font-weight: 700; font-size: 22px; margin-bottom: 20px; letter-spacing: .01em; }
.price-note ul { display: flex; flex-direction: column; gap: 14px; margin-bottom: 26px; }
.price-note li { display: flex; gap: 12px; font-size: 15px; color: #D7DCE3; line-height: 1.45; }
.price-note li svg { width: 20px; height: 20px; color: var(--brand); flex: 0 0 auto; margin-top: 1px; }
.price-note .btn { width: 100%; }

/* =========================================================================
   Gallery
   ========================================================================= */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.gal-item { position: relative; border-radius: var(--radius-lg); overflow: hidden; cursor: pointer; aspect-ratio: 3 / 4; background: var(--slate-100); }
.gal-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease-out); }
.gal-item:hover img { transform: scale(1.06); }
.gal-cap {
  position: absolute; inset: auto 0 0 0; padding: 22px 18px 16px; color: #fff;
  font-family: var(--font-display); font-weight: 600; font-size: 18px; text-transform: uppercase; letter-spacing: .01em;
  background: linear-gradient(to top, rgba(15,18,24,.82), transparent);
  display: flex; align-items: center; gap: 8px;
}
.gal-cap svg { width: 17px; height: 17px; opacity: .9; }

/* lightbox */
.lightbox { position: fixed; inset: 0; z-index: 80; background: rgba(10,12,16,.92); display: none; align-items: center; justify-content: center; padding: 24px; }
.lightbox.open { display: flex; }
.lightbox img { max-width: min(92vw, 1100px); max-height: 86vh; border-radius: var(--radius-md); box-shadow: var(--shadow-lg); }
.lb-close { position: absolute; top: 20px; right: 24px; width: 48px; height: 48px; border-radius: 50%; background: rgba(255,255,255,.12); border: 0; color: #fff; display: grid; place-items: center; }
.lb-close:hover { background: rgba(255,255,255,.22); }
.lb-close svg { width: 24px; height: 24px; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border-radius: 50%; background: rgba(255,255,255,.12); border: 0; color: #fff; display: grid; place-items: center; }
.lb-nav:hover { background: rgba(255,255,255,.22); }
.lb-nav svg { width: 26px; height: 26px; }
.lb-prev { left: 24px; } .lb-next { right: 24px; }

/* =========================================================================
   FAQ
   ========================================================================= */
.faq-layout { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface); overflow: hidden; transition: border-color .2s, box-shadow .2s; }
.faq-item.open { border-color: var(--border-strong); box-shadow: var(--shadow-sm); }
.faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 22px; background: none; border: 0; text-align: left; font-family: var(--font-sans); font-weight: 600; font-size: 17px; color: var(--fg); line-height: 1.35; }
.faq-q .chev { width: 32px; height: 32px; border-radius: 50%; background: var(--surface-2); display: grid; place-items: center; flex: 0 0 auto; transition: background .2s, transform .25s var(--ease-out); }
.faq-q .chev svg { width: 18px; height: 18px; color: var(--fg-2); transition: color .2s; }
.faq-item.open .faq-q .chev { background: var(--brand); transform: rotate(180deg); }
.faq-item.open .faq-q .chev svg { color: #fff; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s var(--ease-out); }
.faq-a-inner { padding: 0 22px 22px; color: var(--fg-2); font-size: 15.5px; line-height: 1.6; }

.faq-aside { position: sticky; top: calc(var(--nav-h) + 20px); }
.faq-cta { background: var(--brand); color: #fff; border-radius: var(--radius-lg); padding: 34px 30px; box-shadow: var(--shadow-brand); }
.faq-cta h3 { font-family: var(--font-display); text-transform: uppercase; font-weight: 800; font-size: clamp(26px, 3vw, 34px); line-height: 1.02; margin-bottom: 12px; }
.faq-cta p { color: rgba(255,255,255,.88); font-size: 15.5px; margin-bottom: 24px; line-height: 1.5; }
.faq-cta .btn { width: 100%; }

/* =========================================================================
   Contacts (dark, no form)
   ========================================================================= */
.contacts { background: var(--ink); color: #fff; }
.contacts .section-title { color: #fff; }
.contacts .section-lede { color: rgba(255,255,255,.66); }
.contacts .eyebrow { color: #FF6B78; }
.contacts .eyebrow::before { background: #FF6B78; }

.contacts-layout { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(32px, 5vw, 56px); align-items: stretch; }

.call-card { background: linear-gradient(160deg, var(--brand) 0%, var(--brand-press) 100%); border-radius: var(--radius-xl); padding: clamp(32px, 4vw, 48px); box-shadow: var(--shadow-lg); }
.call-card .ct-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; color: rgba(255,255,255,.9); margin-bottom: 22px; }
.call-card .ct-eyebrow .pulse-dot { background: #fff; }
.call-card .ct-eyebrow .pulse-dot::after { border-color: #fff; }
.phone-big { display: flex; flex-direction: column; gap: 14px; margin-bottom: 8px; }
.phone-link { display: flex; align-items: center; gap: 16px; color: #fff; transition: opacity .15s; }
.phone-link:hover { opacity: .85; }
.phone-link .pic { width: 52px; height: 52px; border-radius: 14px; background: rgba(255,255,255,.16); display: grid; place-items: center; flex: 0 0 auto; }
.phone-link .pic svg { width: 26px; height: 26px; }
.phone-link .pnum { display: block; font-family: var(--font-display); font-weight: 700; font-size: clamp(30px, 4.4vw, 42px); line-height: 1; letter-spacing: .01em; }
.phone-link .plabel { display: block; font-size: 13px; color: rgba(255,255,255,.8); font-weight: 500; margin-top: 6px; }
.call-card hr { border: 0; border-top: 1px solid rgba(255,255,255,.2); margin: 26px 0; }
.call-foot { display: flex; align-items: center; gap: 10px; font-size: 15px; color: rgba(255,255,255,.92); font-weight: 500; }
.call-foot svg { width: 20px; height: 20px; }

.contact-info { display: flex; flex-direction: column; gap: 14px; }
.ci-card { background: var(--ink-2); border: 1px solid rgba(255,255,255,.08); border-radius: var(--radius-lg); padding: 24px 26px; }
.ci-card .ci-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.ci-card .ci-head .ic { width: 40px; height: 40px; border-radius: 11px; background: rgba(229,21,42,.16); display: grid; place-items: center; flex: 0 0 auto; }
.ci-card .ci-head .ic svg { width: 21px; height: 21px; color: #FF6B78; }
.ci-card .ci-head h4 { font-family: var(--font-display); text-transform: uppercase; font-weight: 700; font-size: 19px; letter-spacing: .01em; }
.ci-card p, .ci-card a { color: rgba(255,255,255,.8); font-size: 15px; line-height: 1.5; }
.ci-card a:hover { color: #fff; }
.ci-socials { display: flex; gap: 10px; margin-top: 4px; }
.ci-socials a { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: var(--radius-pill); background: rgba(255,255,255,.08); font-size: 14px; font-weight: 500; color: #fff; transition: background .15s; }
.ci-socials a:hover { background: rgba(255,255,255,.16); }
.ci-socials a svg { width: 17px; height: 17px; }

/* =========================================================================
   Footer
   ========================================================================= */
.site-footer { background: #0B0E13; color: rgba(255,255,255,.62); padding: 64px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px 32px; padding-bottom: 44px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-brand .brand-word { color: #fff; }
.footer-brand p { margin-top: 16px; font-size: 14.5px; line-height: 1.6; max-width: 38ch; }
.footer-col h5 { font-family: var(--font-display); text-transform: uppercase; font-weight: 700; font-size: 16px; letter-spacing: .03em; color: #fff; margin-bottom: 16px; }
.footer-col ul { display: flex; flex-direction: column; gap: 11px; }
.footer-col a, .footer-col li { font-size: 14.5px; color: rgba(255,255,255,.62); transition: color .15s; }
.footer-col a:hover { color: #fff; }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-top: 26px; font-size: 13.5px; }
.footer-bottom a:hover { color: #fff; }

/* =========================================================================
   Floating mobile call button
   ========================================================================= */
.fab-call {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 45; display: none;
  background: var(--brand); color: #fff; border-radius: var(--radius-pill);
  padding: 16px; font-family: var(--font-display); text-transform: uppercase; font-weight: 700; font-size: 19px;
  align-items: center; justify-content: center; gap: 10px; box-shadow: var(--shadow-brand);
}
.fab-call svg { width: 22px; height: 22px; }

/* =========================================================================
   Reveal animation
   ========================================================================= */
@media (prefers-reduced-motion: no-preference) {
  html.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s var(--ease-out), transform .6s var(--ease-out); }
  html.js .reveal.in { opacity: 1; transform: none; }
}

/* =========================================================================
   Responsive
   ========================================================================= */
@media (max-width: 1024px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 36px; }
  .hero-media { max-width: 560px; }
  .hero-photo { aspect-ratio: 16 / 10; }
  .price-layout { grid-template-columns: 1fr; }
  .price-note { position: static; }
  .faq-layout { grid-template-columns: 1fr; }
  .faq-aside { position: static; }
  .contacts-layout { grid-template-columns: 1fr; }
}
@media (max-width: 1080px) {
  .header-phone { display: none; }
}
@media (max-width: 860px) {
  .nav { display: none; }
  .burger { display: inline-flex; }
  .hero-media { order: -1; max-width: 480px; }
  .services-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .fab-call { display: flex; }
  body { padding-bottom: 78px; }
}
@media (max-width: 520px) {
  .wrap { padding: 0 18px; }
  .gallery-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-float { left: 12px; right: 12px; max-width: none; }
  .price-row { flex-wrap: wrap; gap: 6px 14px; }
  .price-row .pr-val, .price-row .pr-val.muted { text-align: left; max-width: none; }
  .trustbar .wrap { gap: 14px; }
}

/* =========================================================================
   City pages (Берёзовский / Верхняя Пышма / Первоуральск)
   ========================================================================= */
.breadcrumb { background: var(--surface-2); border-bottom: 1px solid var(--border); }
.breadcrumb .wrap { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 13px 24px; font-size: 14px; color: var(--fg-2); }
.breadcrumb a { color: var(--fg-2); }
.breadcrumb a:hover { color: var(--brand); }
.breadcrumb .sep { color: var(--fg-3); }
.breadcrumb [aria-current] { color: var(--fg); font-weight: 600; }

.city-hero { padding: clamp(44px, 6vw, 80px) 0 clamp(44px, 5vw, 68px); position: relative; overflow: hidden; }
.city-hero::before {
  content: ""; position: absolute; top: -160px; right: -140px; width: 480px; height: 480px;
  background: radial-gradient(circle, var(--brand-50) 0%, transparent 70%); z-index: 0; pointer-events: none;
}
.city-hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(32px, 5vw, 56px); align-items: center; }
.city-hero .eyebrow { margin-bottom: 18px; }
.city-hero h1 {
  font-family: var(--font-display); font-weight: 800; text-transform: uppercase;
  font-size: clamp(38px, 5vw, 64px); line-height: 1.1; letter-spacing: 0.005em; color: var(--fg); margin-bottom: 22px;
}
.city-hero h1 .hl { color: var(--brand); }
.city-facts { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }
.city-fact { display: inline-flex; align-items: center; gap: 9px; padding: 9px 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-pill); font-size: 14.5px; font-weight: 500; color: var(--fg); }
.city-fact svg { width: 17px; height: 17px; color: var(--brand); flex: 0 0 auto; }

.city-price-card { background: var(--ink); color: #fff; border-radius: var(--radius-xl); padding: clamp(28px, 3.5vw, 40px); box-shadow: var(--shadow-lg); }
.city-price-card .cpc-label { font-size: 14px; color: rgba(255,255,255,.7); font-weight: 500; }
.city-price-card .cpc-price { font-family: var(--font-display); font-weight: 800; font-size: clamp(48px, 7vw, 68px); line-height: 1; color: #fff; margin: 6px 0 4px; }
.city-price-card .cpc-price .rub { color: var(--brand); }
.city-price-card .cpc-sub { font-size: 14.5px; color: rgba(255,255,255,.7); }
.city-price-card hr { border: 0; border-top: 1px solid rgba(255,255,255,.16); margin: 22px 0; }
.city-price-card .cpc-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 26px; }
.city-price-card .cpc-list li { display: flex; align-items: center; gap: 11px; font-size: 14.5px; color: rgba(255,255,255,.9); }
.city-price-card .cpc-list svg { width: 19px; height: 19px; color: var(--brand); flex: 0 0 auto; }
.city-price-card .btn { width: 100%; }

.prose { max-width: 70ch; }
.prose p { font-size: 17px; line-height: 1.65; color: var(--fg-2); }
.prose p + p { margin-top: 16px; }

.city-banner { width: 100%; aspect-ratio: 21 / 8; object-fit: cover; border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); margin-top: 28px; background: var(--slate-100); }
@media (max-width: 640px) { .city-banner { aspect-ratio: 16 / 9; } }

.zone-grid { display: flex; flex-wrap: wrap; gap: 12px; }
.zone-chip { display: inline-flex; align-items: center; gap: 10px; padding: 13px 20px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-pill); font-size: 15.5px; color: var(--fg); transition: border-color .2s, box-shadow .2s; }
.zone-chip:hover { border-color: var(--border-strong); box-shadow: var(--shadow-sm); }
.zone-chip svg { width: 18px; height: 18px; color: var(--brand); flex: 0 0 auto; }

.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.feature-card { display: flex; gap: 18px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px 26px; }
.feature-card .fic { width: 48px; height: 48px; border-radius: 13px; background: var(--brand-50); display: grid; place-items: center; flex: 0 0 auto; }
.feature-card .fic svg { width: 25px; height: 25px; color: var(--brand); }
.feature-card h3 { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; font-size: 21px; letter-spacing: .01em; margin-bottom: 7px; line-height: 1.05; }
.feature-card p { color: var(--fg-2); font-size: 15px; line-height: 1.5; }

.route-row { display: flex; align-items: center; gap: 18px; padding: 18px 26px; border-bottom: 1px solid var(--divider); }
.route-row:last-child { border-bottom: 0; }
.route-row:hover { background: var(--surface-2); }
.route-row .rt-ic { width: 38px; height: 38px; border-radius: 11px; background: var(--brand-50); display: grid; place-items: center; flex: 0 0 auto; }
.route-row .rt-ic svg { width: 20px; height: 20px; color: var(--brand); }
.route-row .rt-name { flex: 1; font-size: 16px; color: var(--fg); font-weight: 500; }
.route-row .rt-val { font-family: var(--font-display); font-weight: 700; font-size: 21px; color: var(--brand); white-space: nowrap; }

.info-note { display: flex; gap: 18px; background: var(--ink); color: #fff; border-radius: var(--radius-lg); padding: 28px 30px; align-items: flex-start; }
.info-note .in-ic { width: 46px; height: 46px; border-radius: 12px; background: rgba(229,21,42,.18); display: grid; place-items: center; flex: 0 0 auto; }
.info-note .in-ic svg { width: 24px; height: 24px; color: #FF6B78; }
.info-note h4 { font-family: var(--font-display); text-transform: uppercase; font-weight: 700; font-size: 20px; letter-spacing: .01em; margin-bottom: 8px; }
.info-note p { color: rgba(255,255,255,.8); font-size: 15.5px; line-height: 1.6; }

@media (max-width: 1024px) {
  .city-hero .wrap { grid-template-columns: 1fr; gap: 36px; }
  .city-price-card { max-width: 480px; }
}
@media (max-width: 860px) {
  .feature-grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .route-row { flex-wrap: wrap; gap: 8px 14px; padding: 16px 18px; }
  .route-row .rt-name { flex: 1 1 100%; order: 3; }
}

/* =========================================================================
   Blog index + article
   ========================================================================= */
.page-hero { padding: clamp(44px, 6vw, 72px) 0 clamp(28px, 3vw, 40px); position: relative; overflow: hidden; }
.page-hero::before {
  content: ""; position: absolute; top: -160px; right: -140px; width: 460px; height: 460px;
  background: radial-gradient(circle, var(--brand-50) 0%, transparent 70%); z-index: 0; pointer-events: none;
}
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero h1 { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; font-size: clamp(38px, 5vw, 60px); line-height: 1.08; color: var(--fg); margin: 18px 0 16px; }
.page-hero .section-lede { font-size: 18px; }

.blog-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.blog-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; transition: transform .2s var(--ease-out), box-shadow .2s var(--ease-out), border-color .2s; }
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--border-strong); }
.blog-card .bc-media { position: relative; aspect-ratio: 16 / 9; background: var(--slate-100); overflow: hidden; }
.blog-card .bc-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease-out); }
.blog-card:hover .bc-media img { transform: scale(1.05); }
.blog-card .bc-tag { position: absolute; left: 14px; top: 14px; padding: 6px 13px; background: var(--brand); color: #fff; border-radius: var(--radius-pill); font-size: 12.5px; font-weight: 600; }
.blog-card .bc-body { padding: 24px 26px 26px; display: flex; flex-direction: column; flex: 1; }
.blog-card .bc-meta { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--fg-3); font-weight: 500; margin-bottom: 12px; }
.blog-card .bc-meta svg { width: 15px; height: 15px; }
.blog-card h3 { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; font-size: 23px; line-height: 1.08; letter-spacing: .01em; margin-bottom: 10px; }
.blog-card p { color: var(--fg-2); font-size: 15px; line-height: 1.55; margin-bottom: 18px; flex: 1; }
.blog-card .bc-more { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; color: var(--brand); }
.blog-card .bc-more svg { width: 17px; height: 17px; transition: transform .2s var(--ease-out); }
.blog-card:hover .bc-more svg { transform: translateX(4px); }

/* article */
.article-hero { padding: clamp(36px, 5vw, 60px) 0 clamp(24px, 3vw, 36px); }
.article-hero .wrap { max-width: 820px; }
.article-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 16px; font-size: 14px; color: var(--fg-3); font-weight: 500; margin-bottom: 18px; }
.article-meta .am-tag { padding: 6px 13px; background: var(--brand-50); color: var(--brand-press); border-radius: var(--radius-pill); font-weight: 600; }
.article-meta span { display: inline-flex; align-items: center; gap: 7px; }
.article-meta svg { width: 15px; height: 15px; }
.article-hero h1 { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; font-size: clamp(32px, 4.6vw, 54px); line-height: 1.08; color: var(--fg); }
.article-cover { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); background: var(--slate-100); }

.article-body { padding: clamp(36px, 5vw, 56px) 0 clamp(48px, 6vw, 80px); }
.article-body .wrap { max-width: 760px; }
.article-body h2 { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; font-size: clamp(26px, 3.2vw, 34px); line-height: 1.1; letter-spacing: .01em; color: var(--fg); margin: 40px 0 16px; }
.article-body h2:first-child { margin-top: 0; }
.article-body h3 { font-family: var(--font-sans); font-weight: 700; font-size: 20px; color: var(--fg); margin: 28px 0 10px; }
.article-body p { font-size: 17px; line-height: 1.7; color: var(--fg-2); margin-bottom: 16px; }
.article-body p strong { color: var(--fg); font-weight: 600; }
.article-body ul.dotlist { display: flex; flex-direction: column; gap: 12px; margin: 8px 0 20px; }
.article-body ul.dotlist li { position: relative; padding-left: 32px; font-size: 16.5px; line-height: 1.6; color: var(--fg-2); }
.article-body ul.dotlist li::before { content: ""; position: absolute; left: 0; top: 8px; width: 18px; height: 18px; border-radius: 50%; background: var(--brand-50); }
.article-body ul.dotlist li::after { content: ""; position: absolute; left: 6px; top: 12px; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); }
.article-body ol.numlist { counter-reset: nl; list-style: none; display: flex; flex-direction: column; gap: 16px; margin: 8px 0 20px; padding: 0; }
.article-body ol.numlist li { position: relative; padding-left: 48px; font-size: 16.5px; line-height: 1.6; color: var(--fg-2); min-height: 32px; }
.article-body ol.numlist li::before { counter-increment: nl; content: counter(nl); position: absolute; left: 0; top: 0; width: 32px; height: 32px; border-radius: 50%; background: var(--brand); color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 16px; display: grid; place-items: center; }
.article-body ol.numlist li strong { display: block; color: var(--fg); margin-bottom: 2px; }
.callout { display: flex; gap: 16px; background: var(--surface-2); border: 1px solid var(--border); border-left: 4px solid var(--brand); border-radius: var(--radius-md); padding: 22px 24px; margin: 26px 0; }
.callout .co-ic { width: 40px; height: 40px; border-radius: 11px; background: var(--brand-50); display: grid; place-items: center; flex: 0 0 auto; }
.callout .co-ic svg { width: 21px; height: 21px; color: var(--brand); }
.callout p { margin: 0; font-size: 16px; color: var(--fg); }
.callout p strong { color: var(--fg); }

.article-cta { background: var(--ink); color: #fff; border-radius: var(--radius-xl); padding: clamp(30px, 4vw, 44px); margin-top: 44px; text-align: center; }
.article-cta h3 { color: #fff; font-family: var(--font-display); text-transform: uppercase; font-weight: 800; font-size: clamp(26px, 3.4vw, 36px); line-height: 1.05; margin: 0 0 12px; }
.article-cta p { color: rgba(255,255,255,.78); font-size: 16px; margin-bottom: 26px; }
.article-cta .ac-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

.article-nav { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; padding-top: 36px; margin-top: 44px; border-top: 1px solid var(--border); }
.article-nav a { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px; color: var(--fg-2); }
.article-nav a:hover { color: var(--brand); }
.article-nav a svg { width: 18px; height: 18px; }

@media (max-width: 860px) {
  .blog-grid { grid-template-columns: 1fr; }
}

/* =========================================================================
   Узкие экраны (≤430px): шапка не должна выходить за вьюпорт
   На этой ширине звонок доступен из бургер-меню и плавающей кнопки,
   поэтому кнопку «Вызвать» в шапке скрываем — иначе бургер уезжает за край.
   ========================================================================= */
h1, h2, h3, h4, h5, .brand-word, .section-title { overflow-wrap: break-word; }

@media (max-width: 430px) {
  .site-header .wrap { gap: 12px; }
  .header-cta { gap: 10px; }
  .header-cta .btn-sm { display: none; }
  .brand { gap: 9px; }
  .brand-mark { width: 36px; height: 36px; border-radius: 10px; }
  .brand-mark svg { width: 21px; height: 21px; }
  .brand-word { font-size: 23px; }

  .hero h1 { font-size: clamp(31px, 8.4vw, 40px); }
  .city-hero h1 { font-size: clamp(29px, 8vw, 38px); }
  .page-hero h1 { font-size: clamp(29px, 8vw, 38px); }
  .article-hero h1 { font-size: clamp(26px, 7.2vw, 32px); }
  .mobile-menu a { font-size: 23px; }
}

/* -------------------------------------------------------------------------
   Grid-элементы по умолчанию не сжимаются уже min-content и на узких
   экранах выталкивают страницу за вьюпорт — разрешаем им сжиматься.
   ------------------------------------------------------------------------- */
.contacts-layout > *, .contact-info > *, .feature-grid > *, .price-layout > *,
.faq-layout > *, .services-grid > *, .blog-grid > *, .footer-grid > *,
.gallery-grid > * { min-width: 0; }

@media (max-width: 380px) {
  .call-card { padding: 26px 20px; }
  .phone-link { gap: 12px; }
  .phone-link .pic { width: 44px; height: 44px; }
  .phone-link .pic svg { width: 22px; height: 22px; }
  .phone-link .pnum { font-size: 26px; }
  .ci-card { padding: 20px 18px; }
  .feature-card { padding: 20px 18px; gap: 14px; }
  .city-price-card { padding: 24px 20px; }
  .price-note { padding: 26px 20px; }
  .faq-cta { padding: 28px 22px; }
}
