/* =====================================================
   POWERSHIFT72 — Claude Design edition
   Молочный + графит + сдержанная латунь.
   Стилистический ориентир: Lexus / Genesis / Mercedes.
   ===================================================== */

:root {
  --bg: #fbfaf6;            /* молочный фон */
  --bg-2: #f4f1ea;          /* тёплая подложка */
  --bg-warm: #f5f2ec;       /* Claude Design alias */
  --surface: #ffffff;       /* карточки */
  --surface-2: #f7f4ed;     /* секции с акцентом */
  --accent-bg: #f1ead6;     /* Claude Design alias */
  --line: rgba(15, 23, 42, 0.10);
  --line-2: rgba(15, 23, 42, 0.06);
  --line-strong: rgba(15, 23, 42, 0.18);

  --text: #11131a;          /* основной графит */
  --text-2: #2c2f39;
  --text-muted: #5b6271;
  --text-soft: #8b91a0;

  /* Claude Design aliases */
  --ink: #11131a;
  --ink-2: #5b6271;
  --ink-3: #8a8f9c;

  --accent: #a87b2a;         /* приглушённая латунь */
  --accent-2: #c69a45;       /* тёплая бронза */
  --accent-soft: #f1ead6;    /* бежевая подложка */
  --brass: #a87b2a;          /* Claude Design alias */
  --brass-2: #c69a45;
  --brass-soft: #e8d7ae;

  --shadow-sm: 0 1px 2px rgba(15,23,42,0.04), 0 1px 1px rgba(15,23,42,0.03);
  --shadow: 0 6px 24px -10px rgba(15,23,42,0.10), 0 2px 6px rgba(15,23,42,0.04);
  --shadow-lg: 0 20px 50px -20px rgba(15,23,42,0.18);
  --shadow-card: 0 6px 24px -10px rgba(15,23,42,.10);
  --shadow-card-hover: 0 12px 32px -12px rgba(15,23,42,.14);

  --r-sm: 8px;
  --r: 14px;
  --r-lg: 20px;
  --r-pill: 999px;

  --container: 1200px;
  --header-h: 76px;

  --serif: "Cormorant Garamond", "Playfair Display", Georgia, serif;
  --sans: "Manrope", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--accent-2); }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.18;
  color: var(--text);
  margin: 0 0 16px;
}
h1 { font-size: clamp(32px, 4.6vw, 56px); font-weight: 500; letter-spacing: -0.02em; }
h2 { font-size: clamp(26px, 3.2vw, 40px); }
h3 { font-size: clamp(20px, 2.2vw, 26px); }

.eyebrow {
  display: inline-block;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-2);
  font-weight: 600;
  margin-bottom: 12px;
}

p { margin: 0 0 14px; color: var(--text-muted); }
.lead { font-size: 19px; color: var(--text-2); }

.container { width: 100%; max-width: var(--container); padding: 0 22px; margin: 0 auto; }
section { padding: clamp(60px, 7vw, 96px) 0; position: relative; }

.gold-text { color: var(--accent); font-weight: 600; }
.divider-gold { width: 64px; height: 2px; background: var(--accent); margin: 18px 0 22px; border-radius: 2px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 26px; border-radius: 999px; font-weight: 600; font-size: 15px;
  letter-spacing: 0.01em; cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
  border: 1px solid transparent; text-decoration: none; white-space: nowrap;
  font-family: var(--sans);
}
.btn-primary {
  background: var(--text); color: #fff;
  box-shadow: 0 8px 22px -10px rgba(15,23,42,.4);
}
.btn-primary:hover { background: var(--accent); color: #fff; transform: translateY(-1px); }
.btn-ghost {
  background: transparent; color: var(--text); border-color: var(--line-strong);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-accent {
  background: var(--accent); color: #fff;
}
.btn-accent:hover { background: var(--accent-2); color: #fff; transform: translateY(-1px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(251, 250, 246, 0.92);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s ease;
}
.site-header.is-scrolled {
  box-shadow: 0 4px 20px -4px rgba(15,23,42,0.12);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--header-h); gap: 22px;
}
.logo {
  display: flex; align-items: center; gap: 12px; color: var(--text); font-weight: 700;
  letter-spacing: 0.02em; text-decoration: none;
}
.logo-mark {
  width: 42px; height: 42px; border-radius: 10px;
  background: var(--text);
  display: grid; place-items: center; color: var(--accent-2);
  font-family: var(--serif); font-weight: 600; font-size: 22px;
}
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-text strong { font-family: var(--serif); font-weight: 600; font-size: 20px; color: var(--text); }
.logo-text span { font-size: 11px; letter-spacing: 0.28em; color: var(--accent); text-transform: uppercase; margin-top: 4px; }

.nav-main { display: flex; align-items: center; gap: 28px; }
.nav-main a {
  color: var(--text-2); font-weight: 500; font-size: 15px; text-decoration: none;
  position: relative; padding: 6px 0;
}
.nav-main a:hover { color: var(--accent); }
.nav-main a.active { color: var(--accent); }

.header-cta { display: flex; align-items: center; gap: 14px; }
.header-phone {
  font-family: var(--serif); font-size: 20px; color: var(--text); font-weight: 600;
  text-decoration: none;
}
.header-phone:hover { color: var(--accent); }

.menu-toggle {
  display: none; background: none; border: 1px solid var(--line-strong); border-radius: 10px;
  width: 44px; height: 44px; color: var(--text); font-size: 22px; cursor: pointer;
}

/* ---------- Hero ---------- */
.hero {
  padding: clamp(70px, 8vw, 120px) 0 clamp(50px, 6vw, 90px);
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, #fbfaf6 0%, #f5f1e8 100%);
  border-bottom: 1px solid var(--line);
}
.hero::before, .article-hero::before {
  content: ""; position: absolute; inset: 0;
  background: url('/assets/img/hero-gearbox-blueprint.svg') no-repeat center 30%;
  background-size: min(1100px, 90%) auto;
  opacity: 0.08; pointer-events: none; color: var(--accent);
  z-index: 0;
}
.hero > .container, .article-hero > .container { position: relative; z-index: 1; }
@media (max-width: 640px) {
  .hero::before, .article-hero::before {
    background-size: 140% auto; opacity: 0.06;
  }
}
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 60px; align-items: center; }
.hero h1 strong { color: var(--accent); font-weight: 500; }
.hero-sub { font-size: 19px; color: var(--text-2); max-width: 560px; margin: 22px 0 32px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-stats {
  margin-top: 50px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
  border-top: 1px solid var(--line); padding-top: 30px;
}
.hero-stats .stat strong {
  font-family: var(--serif); font-size: 32px; color: var(--accent); display: block; line-height: 1;
}
.hero-stats .stat span { font-size: 13px; color: var(--text-muted); margin-top: 8px; display: block; }

.hero-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 36px;
  box-shadow: var(--shadow);
}
.hero-card h3 { font-family: var(--serif); font-weight: 500; }
.hero-card .features { list-style: none; padding: 0; margin: 18px 0 24px; }
.hero-card .features li {
  display: flex; gap: 12px; align-items: flex-start; padding: 10px 0;
  border-bottom: 1px dashed var(--line); color: var(--text-2);
}
.hero-card .features li::before { content: "✓"; color: var(--accent); font-weight: 700; margin-top: 2px; }
.hero-card .features li:last-child { border-bottom: none; }

/* ---------- Sections ---------- */
.section-head { text-align: center; max-width: 760px; margin: 0 auto 50px; }
.section-head .eyebrow { margin: 0 auto 18px; }
.section-head p { margin-top: 14px; color: var(--text-muted); }

/* ---------- Cards grid ---------- */
.cards { display: grid; gap: 22px; }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.cards-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  position: relative; padding: 30px 26px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r-lg);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.card:hover { transform: translateY(-3px); border-color: var(--accent); box-shadow: var(--shadow); }
.card .ico {
  width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent);
  font-size: 22px; margin-bottom: 20px;
}
.card h3 { font-size: 22px; margin-bottom: 8px; }
.card p { color: var(--text-muted); font-size: 15px; }
.card .price {
  display: inline-block; margin-top: 14px; padding: 6px 12px;
  background: var(--accent-soft); color: var(--accent);
  font-weight: 600; font-size: 14px; border-radius: 999px;
}

/* ---------- Brand grid ---------- */
.brands { display: grid; grid-template-columns: repeat(7, 1fr); gap: 12px; }
.brand-tile {
  aspect-ratio: 1.5 / 1; border-radius: var(--r);
  background: var(--surface);
  border: 1px solid var(--line);
  display: grid; place-items: center;
  font-family: var(--serif); font-size: 22px; color: var(--text);
  transition: all .2s ease; text-decoration: none;
}
.brand-tile:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow-sm); }

/* ---------- Models grid ---------- */
.models { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.model {
  position: relative; padding: 24px; border-radius: var(--r);
  background: var(--surface); border: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 6px;
  text-decoration: none; color: inherit;
  transition: all .2s ease;
}
.model:hover { transform: translateY(-2px); border-color: var(--accent); box-shadow: var(--shadow); }
.model .brand { color: var(--accent); font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; font-weight: 600; }
.model .name { font-family: var(--serif); font-size: 24px; color: var(--text); }
.model .gearbox { font-size: 14px; color: var(--text-muted); margin-top: 4px; }
.model .arrow { color: var(--accent); margin-top: 14px; font-size: 14px; opacity: .8; }
.model .badge-new {
  position: absolute; top: 14px; right: 14px;
  background: var(--accent); color: #fff;
  font-size: 10px; font-weight: 700; letter-spacing: 0.12em; padding: 4px 10px; border-radius: 999px;
}

/* ---------- Pricing table ---------- */
.price-table {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.price-table h3 {
  padding: 20px 26px; margin: 0; background: var(--accent-soft);
  border-bottom: 1px solid var(--line);
  font-size: 22px; color: var(--text);
}
.price-row {
  display: flex; justify-content: space-between; align-items: center; gap: 18px;
  padding: 18px 26px; border-bottom: 1px dashed var(--line);
}
.price-row:last-child { border-bottom: none; }
.price-row .label { color: var(--text-2); }
.price-row .val { font-family: var(--serif); font-size: 20px; color: var(--accent); white-space: nowrap; font-weight: 600; }

/* ---------- Reviews ---------- */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.review {
  position: relative; padding: 30px 26px 26px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg);
}
.review .quote { font-family: var(--serif); font-size: 56px; color: var(--accent); line-height: .6; margin-bottom: 8px; }
.review .who { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.review .who .ava { width: 44px; height: 44px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; color: #fff; font-weight: 700; font-family: var(--serif); }
.review .who strong { display: block; color: var(--text); }
.review .who span { color: var(--text-soft); font-size: 13px; }

/* ---------- CTA banner ---------- */
.cta-banner {
  position: relative; overflow: hidden;
  border-radius: var(--r-lg); padding: 50px;
  background: var(--text); color: #fff;
}
.cta-banner h2 { color: #fff; margin-bottom: 12px; }
.cta-banner p { color: rgba(255,255,255,0.75); }
.cta-banner-inner { display: grid; grid-template-columns: 1.4fr .6fr; gap: 30px; align-items: center; }
.cta-banner .actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }
.cta-banner .btn-primary { background: var(--accent); color: #fff; }
.cta-banner .btn-primary:hover { background: var(--accent-2); }
.cta-banner .btn-ghost { color: #fff; border-color: rgba(255,255,255,0.3); }
.cta-banner .btn-ghost:hover { border-color: #fff; color: #fff; }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq details {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r); padding: 18px 24px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.faq details[open] { border-color: var(--accent); box-shadow: var(--shadow-sm); }
.faq summary {
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center;
  font-family: var(--serif); font-size: 20px; color: var(--text); padding: 4px 0;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 26px; color: var(--accent); transition: transform .25s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin-top: 14px; color: var(--text-muted); }

/* ---------- Form ---------- */
.lead-form {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 36px;
  box-shadow: var(--shadow-sm);
}
.lead-form h3 { margin-bottom: 6px; }
.lead-form p { color: var(--text-muted); }
.form-row { display: grid; gap: 12px; margin-top: 20px; }
.form-row input, .form-row textarea {
  font-family: var(--sans); width: 100%; padding: 15px 18px;
  background: var(--bg); color: var(--text);
  border: 1px solid var(--line); border-radius: 12px;
  font-size: 15px; transition: border-color .2s ease, background .2s ease;
}
.form-row input:focus, .form-row textarea:focus {
  outline: none; border-color: var(--accent); background: #fff;
}
.form-row textarea { min-height: 120px; resize: vertical; }
.form-note { font-size: 13px; color: var(--text-soft); margin-top: 10px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: #c9cdd6;
  padding: 64px 0 32px;
  margin-top: 64px;
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; margin-bottom: 40px; }
.footer-grid h4 { font-family: var(--serif); font-size: 20px; font-weight: 500; letter-spacing: -0.02em; color: #fff; margin: 0 0 16px; }
.footer-grid p { color: #c9cdd6; font-size: 14px; line-height: 1.7; }
.footer-grid a { color: #c9cdd6; display: block; padding: 4px 0; font-size: 14px; line-height: 1.9; text-decoration: none; }
.footer-grid a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.10); padding-top: 24px;
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  font-size: 12px; color: #888e99;
}

/* ---------- Floating messengers ---------- */
/* Стек снизу вверх (DOM сверху → визуально сверху):
   MAX (самый верх) → Telegram → WhatsApp → 📞 трубка (самая нижняя)  */
.messengers {
  position: fixed; right: 22px; bottom: 22px; z-index: 9999;
  display: flex; flex-direction: column; gap: 12px;
}
.msg-btn {
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center; color: #fff;
  text-decoration: none; box-shadow: 0 6px 20px -6px rgba(15,23,42,0.35);
  position: relative; transition: transform .25s ease;
}
.msg-btn:hover { transform: translateY(-2px) scale(1.04); color: #fff; }
.msg-btn::before {
  content: ""; position: absolute; inset: -4px; border-radius: 50%;
  border: 2px solid currentColor; opacity: 0; animation: msg-pulse 2.4s linear infinite;
}
.msg-btn.delay-1::before { animation-delay: .6s; }
.msg-btn.delay-2::before { animation-delay: 1.2s; }
.msg-btn.delay-3::before { animation-delay: 1.8s; }
.msg-call { background: var(--text); }
.msg-wa { background: #25D366; }
.msg-tg { background: #2AABEE; }
.msg-mx { background: #0077FF; font-family: var(--serif); font-weight: 700; font-size: 26px; letter-spacing: -1px; }
.msg-btn svg { width: 28px; height: 28px; }

@keyframes msg-pulse {
  0% { transform: scale(1); opacity: .5; }
  100% { transform: scale(1.6); opacity: 0; }
}

/* ---------- Article (model pages) ---------- */
.article-hero {
  padding: clamp(56px, 6vw, 84px) 0 clamp(36px, 4vw, 56px);
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
}
.breadcrumbs { font-size: 13px; color: var(--text-soft); margin-bottom: 16px; }
.breadcrumbs a { color: var(--text-muted); }
.breadcrumbs a:hover { color: var(--accent); }
.article-hero h1 { margin-bottom: 14px; }
.article-meta {
  display: flex; gap: 22px; flex-wrap: wrap; margin-top: 22px; padding-top: 22px;
  border-top: 1px solid var(--line);
}
.article-meta .item strong {
  display: block; font-family: var(--serif); font-size: 22px; color: var(--accent);
}
.article-meta .item span { color: var(--text-muted); font-size: 13px; }

.article-body { display: grid; grid-template-columns: 1fr 360px; gap: 50px; padding: 50px 0; }
.article-body h2 { margin-top: 36px; }
.article-body h2:first-child { margin-top: 0; }
.article-body h3 { margin-top: 26px; font-size: 22px; }
.article-body ul { padding-left: 0; list-style: none; }
.article-body ul li { padding: 8px 0 8px 28px; position: relative; color: var(--text-2); }
.article-body ul li::before { content: "✓"; color: var(--accent); position: absolute; left: 0; top: 8px; font-weight: 700; }
.article-aside { position: sticky; top: calc(var(--header-h) + 20px); align-self: start; }
.aside-card {
  padding: 26px; border-radius: var(--r-lg);
  background: var(--surface); border: 1px solid var(--line);
  margin-bottom: 16px; box-shadow: var(--shadow-sm);
}
.aside-card h4 { font-family: var(--serif); font-size: 22px; margin-bottom: 12px; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .cards-4 { grid-template-columns: repeat(2, 1fr); }
  .cards-3 { grid-template-columns: repeat(2, 1fr); }
  .brands { grid-template-columns: repeat(4, 1fr); }
  .reviews { grid-template-columns: 1fr; }
  .models { grid-template-columns: repeat(2, 1fr); }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .article-body { grid-template-columns: 1fr; gap: 30px; }
  .article-aside { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .cta-banner { padding: 36px; }
  .cta-banner-inner { grid-template-columns: 1fr; }
  .cta-banner .actions { justify-content: flex-start; }
}

@media (max-width: 768px) {
  .nav-main, .header-phone { display: none; }
  .menu-toggle { display: grid; place-items: center; }
  .header-cta .btn { display: none; }
  .cards-4, .cards-3, .models, .brands { grid-template-columns: 1fr 1fr; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  section { padding: 56px 0; }
  .lead-form, .hero-card { padding: 24px; }
  .messengers { right: 14px; bottom: 14px; gap: 10px; }
  .msg-btn { width: 50px; height: 50px; }
}

/* ---------- Mobile menu ---------- */
.mobile-menu {
  position: fixed; inset: 0; z-index: 200;
  background: var(--bg);
  display: none; flex-direction: column; padding: 24px;
}
.mobile-menu.active { display: flex; }
.mobile-menu .close { align-self: flex-end; background: none; border: 1px solid var(--line-strong); border-radius: 10px; width: 44px; height: 44px; color: var(--text); font-size: 22px; }
.mobile-menu nav { display: flex; flex-direction: column; gap: 4px; margin-top: 30px; }
.mobile-menu nav a { padding: 16px 12px; font-family: var(--serif); font-size: 24px; color: var(--text); border-bottom: 1px solid var(--line); text-decoration: none; }
.mobile-menu .mobile-phone { margin-top: 30px; padding: 16px; text-align: center; font-family: var(--serif); font-size: 26px; color: var(--accent); }

/* ---------- Animations ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* =====================================================
   HERO 02 — blueprint компонент (универсальный)
   Слой 1: фоновый чертёж коробки (background SVG)
   Слой 2: центральная цифра + курсивная подпись
   Слой 3: боковые eyebrow-блоки
   Слой 4: линейный седан внизу (макс. 420px desktop, 240px mobile)
   Слой 5: callout-линии слева/справа от машины
   Слой 6: CTA-ряд снизу
   ===================================================== */

.hero02 {
  position: relative; overflow: hidden;
  padding: clamp(56px, 7vw, 96px) 0 clamp(40px, 5vw, 64px);
  background: linear-gradient(180deg, #fbfaf6 0%, #f5f1e8 100%);
  border-bottom: 1px solid var(--line);
  min-height: 760px;
}
.hero02-container { position: relative; z-index: 2; }

/* — Слой 1: фон-блюпринт коробки — */
.hero02-bg {
  position: absolute; left: 50%; top: 50%;
  width: 100%; max-width: 1100px; height: auto;
  transform: translate(-50%, -52%);
  opacity: .12; z-index: 1; pointer-events: none;
  color: var(--accent);
}
.hero02-bg svg { width: 100%; height: auto; display: block; }

/* — Слой 3: боковые блоки — */
.hero02-side-row {
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px;
  align-items: start; margin-bottom: 30px;
}
.hero02-side {
  max-width: 260px;
}
.hero02-side.right { justify-self: end; text-align: right; }
.hero02-side .bar {
  width: 24px; height: 2px; background: var(--accent); margin-bottom: 12px;
}
.hero02-side.right .bar { margin-left: auto; }
.hero02-side .eyebrow-text {
  font-size: 12px; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--accent); font-weight: 600; margin-bottom: 10px;
}
.hero02-side p {
  font-size: 15px; line-height: 1.55; color: var(--text-muted); margin: 0;
}

/* — Слой 2: центральная цифра — */
.hero02-figure {
  text-align: center; padding: 18px 0;
}
.hero02-num {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(96px, 14vw, 200px);
  line-height: 1; color: var(--text); display: inline-block;
  letter-spacing: -0.02em;
}
.hero02-num .accent { color: var(--accent); font-style: italic; font-weight: 400; }
.hero02-num .small {
  font-size: 0.32em; vertical-align: 0.55em; margin-left: 14px; color: var(--accent);
  font-style: italic; font-weight: 400;
}
.hero02-divider {
  width: 28px; height: 2px; background: var(--accent);
  margin: 14px auto; border-radius: 2px;
}
.hero02-caption {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: clamp(18px, 1.5vw, 24px); color: var(--text-muted);
  margin: 0;
}

/* — Слой 4: седан-блюпринт внизу — */
.hero02-car-row {
  position: relative; display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center; gap: 16px;
  margin-top: 36px;
}
.hero02-car-eyebrow {
  font-size: 11px; letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--text-soft); text-align: center; margin-bottom: 14px;
  font-weight: 600;
}
.hero02-car {
  max-width: 420px; width: 100%; margin: 0 auto;
  color: var(--text); opacity: .85;
}
.hero02-car svg { width: 100%; height: auto; display: block; }

/* — Слой 5: callout-линии — */
.hero02-callout {
  display: flex; align-items: center; gap: 12px;
  font-size: 11px; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--text-2); font-weight: 600; line-height: 1.4;
}
.hero02-callout .line {
  flex: 1; height: 1px; background: var(--accent); min-width: 80px; max-width: 220px;
}
.hero02-callout.left { justify-content: flex-end; padding-right: 4px; }
.hero02-callout.right { justify-content: flex-start; padding-left: 4px; }
.hero02-callout.left .line { order: 2; }
.hero02-callout.left span { order: 1; }

/* — Слой 6: CTA-ряд — */
.hero02-cta {
  display: flex; gap: 14px; flex-wrap: wrap; justify-content: center;
  margin-top: 36px;
}
.hero02-cta .btn { padding: 16px 30px; font-size: 16px; }

/* — Слой 7: статы под hero — */
.hero02-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  margin-top: 48px; border-top: 1px solid var(--line);
}
.hero02-stat {
  padding: 26px 22px; border-right: 1px solid var(--line);
}
.hero02-stat:last-child { border-right: none; }
.hero02-stat .label {
  font-size: 11px; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--text-soft); font-weight: 600; margin-bottom: 12px;
}
.hero02-stat .value {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(36px, 4vw, 56px); line-height: 1;
  color: var(--text); margin-bottom: 8px;
}
.hero02-stat .value .unit { color: var(--accent); margin-left: 4px; }
.hero02-stat .desc { font-size: 13px; color: var(--text-muted); line-height: 1.5; margin: 0; }

/* — Слой 8: дисклеймер-сноска — */
.hero02-tagline {
  margin-top: 36px; padding-top: 24px;
  border-top: 1px solid var(--line);
  text-align: center; font-family: var(--serif); font-style: italic;
  font-size: clamp(18px, 1.6vw, 22px); color: var(--text-muted);
  max-width: 720px; margin-left: auto; margin-right: auto;
}

/* — Hero 02 — Tablet — */
@media (max-width: 1024px) {
  .hero02 { min-height: auto; padding: 50px 0 40px; }
  .hero02-bg { opacity: .10; max-width: 800px; }
  .hero02-side-row {
    grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 24px;
  }
  .hero02-side { max-width: 100%; }
  .hero02-side.right { justify-self: end; }
  .hero02-car { max-width: 360px; }
  .hero02-stats { grid-template-columns: repeat(2, 1fr); }
  .hero02-stat:nth-child(2) { border-right: none; }
  .hero02-stat:nth-child(1), .hero02-stat:nth-child(2) {
    border-bottom: 1px solid var(--line);
  }
}

/* — Hero 02 — Mobile — */
@media (max-width: 640px) {
  .hero02 { padding: 40px 0 32px; min-height: auto; }
  .hero02-bg {
    opacity: .08; width: 140%; max-width: none;
    transform: translate(-50%, -45%);
  }
  .hero02-side-row {
    grid-template-columns: 1fr; gap: 16px; margin-bottom: 20px;
    text-align: center;
  }
  .hero02-side, .hero02-side.right { max-width: 100%; text-align: center; justify-self: center; }
  .hero02-side .bar, .hero02-side.right .bar { margin: 0 auto 10px; }
  .hero02-num { font-size: clamp(72px, 22vw, 120px); }
  .hero02-caption { font-size: 16px; }
  .hero02-car-row { grid-template-columns: 1fr; gap: 12px; }
  .hero02-car { max-width: 240px; }
  .hero02-callout {
    justify-content: center !important; padding: 0 !important;
    text-align: center; font-size: 10px;
  }
  .hero02-callout .line { display: none; }
  .hero02-cta { flex-direction: column; align-items: stretch; gap: 10px; }
  .hero02-cta .btn { width: 100%; }
  .hero02-stats { grid-template-columns: 1fr 1fr; }
  .hero02-stat { padding: 20px 16px; }
  .hero02-stat .value { font-size: 32px; }
  .hero02-tagline { font-size: 16px; padding: 18px 0 0; }
}

/* =====================================================
   Общие мобильные улучшения (фиксы из адаптива Claude Design)
   ===================================================== */

@media (max-width: 640px) {
  /* container — меньше padding, чтобы контент не прижимался */
  .container { padding: 0 16px; }

  /* типографика */
  h1 { font-size: clamp(28px, 8vw, 40px); line-height: 1.18;
       overflow-wrap: break-word; hyphens: auto; word-break: normal; }
  h2 { font-size: clamp(22px, 6vw, 30px); overflow-wrap: break-word; hyphens: auto; }
  h3 { font-size: clamp(19px, 5vw, 22px); overflow-wrap: break-word; }

  /* модели — 1 колонка, не обрезаем тексты */
  .models { grid-template-columns: 1fr; gap: 14px; }
  .model { padding: 22px 20px; }
  .model .name { font-size: 22px; word-break: normal; overflow-wrap: break-word; }
  .model .gearbox { white-space: normal; }

  /* услуги, карточки 2-колоночной сетки */
  .cards-3, .cards-4 { grid-template-columns: 1fr; gap: 14px; }
  .card { padding: 22px 20px; }
  .card h3 { font-size: 20px; }
  .card p { font-size: 14px; }

  /* бренды — 3 колонки, не 4 */
  .brands { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .brand-tile { font-size: 16px; aspect-ratio: 1.6 / 1; }

  /* hero (старый, оставлен на всякий случай) */
  .hero-grid { gap: 28px; }
  .hero-stats { grid-template-columns: 1fr 1fr; gap: 16px; }
  .hero-stats .stat strong { font-size: 28px; }

  /* article meta — 2 колонки */
  .article-meta { gap: 14px; }
  .article-meta .item { flex: 1 1 calc(50% - 7px); }
  .article-meta .item strong { font-size: 19px; }

  /* секции — компактнее вертикально */
  section { padding: 44px 0; }
  .section-head { margin-bottom: 32px; }

  /* footer — нормальный мобайл */
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { font-size: 12px; gap: 8px; }

  /* кнопки — на мобиле full-width в формах */
  .lead-form .btn { width: 100%; }

  /* prices */
  .price-row { flex-direction: column; align-items: flex-start; padding: 14px 18px; gap: 6px; }
  .price-row .val { font-size: 18px; }
  .price-table h3 { padding: 16px 18px; font-size: 19px; }

  /* CTA banner */
  .cta-banner { padding: 28px 22px; border-radius: 16px; }
  .cta-banner h2 { font-size: 26px; }

  /* reviews */
  .review { padding: 22px 20px; }

  /* aside-card в моделях */
  .aside-card { padding: 22px 20px; }

  /* виджеты — 50px, без лишнего отступа */
  .messengers { right: 14px; bottom: 14px; gap: 10px; }
  .msg-btn { width: 50px; height: 50px; }
  .msg-mx { font-size: 22px; }
  .msg-btn svg { width: 24px; height: 24px; }
}

/* — XS-mobile (≤390px, как iPhone 13/14) — */
@media (max-width: 390px) {
  .container { padding: 0 14px; }
  .brands { grid-template-columns: repeat(2, 1fr); }
  .hero02-num { font-size: clamp(64px, 22vw, 96px); }
  .hero-stats { gap: 10px; }
  .hero-stats .stat strong { font-size: 24px; }
  .article-meta .item { flex: 1 1 100%; }
  h1 { font-size: clamp(26px, 8.4vw, 34px); }
}

/* =====================================================
   CLAUDE DESIGN ADDITIONS
   Новые компоненты из дизайн-системы Claude Design
   ===================================================== */

/* ---------- Service Bay Strip (топ-бар) ---------- */
.service-bay-strip {
  background: var(--ink);
  color: rgba(255,255,255,0.65);
  font-size: 12px;
  letter-spacing: 0.08em;
  padding: 9px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.service-bay-strip .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.service-bay-strip .strip-items {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.service-bay-strip .strip-item {
  display: flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}
.service-bay-strip .strip-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--brass);
  flex-shrink: 0;
}
.service-bay-strip a {
  color: rgba(255,255,255,0.65);
  font-size: 12px;
  text-decoration: none;
  transition: color .2s ease;
}
.service-bay-strip a:hover { color: #fff; }
@media (max-width: 768px) {
  .service-bay-strip .strip-items { gap: 14px; }
  .service-bay-strip .strip-item:nth-child(n+4) { display: none; }
}
@media (max-width: 480px) {
  .service-bay-strip { display: none; }
}

/* ---------- Brand logo (Claude Design style) ---------- */
.logo-brand {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--serif);
  font-size: 21px;
  letter-spacing: -0.02em;
  color: var(--ink);
  font-weight: 500;
  text-decoration: none;
}
.logo-brand .mark {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 18px; font-weight: 600;
  flex-shrink: 0;
}
.logo-brand .num { color: var(--brass); font-style: italic; font-weight: 500; }

/* ---------- Typography classes (Claude Design) ---------- */
.h-display {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(48px, 7.5vw, 112px);
  line-height: 0.96;
  letter-spacing: -0.025em;
  color: var(--ink);
}
.h-1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(40px, 5.2vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.022em;
  color: var(--ink);
}
.h-2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(32px, 3.6vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.h-3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(24px, 2.4vw, 32px);
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.serif { font-family: var(--serif); letter-spacing: -0.02em; }

/* ---------- Stats grid (Claude Design) ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stat-item {
  padding: 32px 24px;
  border-right: 1px solid var(--line-2);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.stat-item:last-child { border-right: none; }
.stat-label { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-2); font-weight: 600; }
.stat-value { font-family: var(--serif); font-size: clamp(40px, 4.4vw, 64px); line-height: 1; letter-spacing: -0.02em; color: var(--ink); font-weight: 500; }
.stat-suffix { color: var(--brass); }
.stat-note { font-size: 13px; color: var(--ink-2); margin-top: 4px; }
@media (max-width: 768px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat-item { padding: 24px 16px; }
  .stat-item:nth-child(2n) { border-right: none; }
  .stat-item:nth-child(-n+2) { border-bottom: 1px solid var(--line-2); }
}

/* ---------- Breadcrumbs (Claude Design .crumbs style) ---------- */
.crumbs {
  display: flex; gap: 8px; align-items: center;
  font-size: 13px; color: var(--ink-2);
  margin-bottom: 20px;
}
.crumbs a { color: var(--ink-2); text-decoration: none; transition: color .2s ease; }
.crumbs a:hover { color: var(--ink); }
.crumbs .sep { opacity: .4; }

/* ---------- Tag / Pill ---------- */
.tag {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink-2);
  background: #fff;
  text-decoration: none;
  transition: border-color .2s ease, color .2s ease;
  white-space: nowrap;
}
.tag:hover { border-color: var(--brass); color: var(--brass); }
.tag-accent { color: var(--brass); border-color: var(--brass-soft); background: var(--accent-bg); }

/* ---------- FAQ toggle (Claude Design .faq-item style) ---------- */
.faq-list { display: flex; flex-direction: column; }
.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
  cursor: pointer;
}
.faq-item:first-child { border-top: 1px solid var(--line); }
.faq-q {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 20px;
  font-family: var(--serif); font-size: clamp(18px, 2vw, 22px); line-height: 1.25; letter-spacing: -0.01em;
  color: var(--ink);
  user-select: none;
}
.faq-q .plus {
  font-family: var(--sans); font-size: 22px; color: var(--ink-2);
  transition: transform .25s ease; flex-shrink: 0; margin-top: 2px;
}
.faq-item.open .faq-q .plus { transform: rotate(45deg); }
.faq-a { color: var(--ink-2); margin-top: 14px; max-width: 72ch; display: none; line-height: 1.65; }
.faq-item.open .faq-a { display: block; }

/* ---------- Hairline divider ---------- */
.hr { height: 1px; background: var(--line); margin: 0; border: none; }

/* ---------- Utility: flex/row/col/gap ---------- */
.flex { display: flex; }
.row { display: flex; align-items: center; }
.col { display: flex; flex-direction: column; }
.gap-2 { gap: 8px; } .gap-3 { gap: 12px; } .gap-4 { gap: 16px; } .gap-6 { gap: 24px; } .gap-8 { gap: 32px; }
.between { justify-content: space-between; }
.center { justify-content: center; align-items: center; }
.mt-2 { margin-top: 8px; } .mt-4 { margin-top: 16px; } .mt-6 { margin-top: 24px; } .mt-8 { margin-top: 32px; }
.mb-4 { margin-bottom: 16px; } .mb-6 { margin-bottom: 24px; } .mb-8 { margin-bottom: 32px; }
.text-center { text-align: center; }
.text-brass { color: var(--brass); }
.bg-warm { background: var(--bg-warm); }
.bg-accent { background: var(--accent-bg); }
.bg-ink { background: var(--ink); color: #fff; }

/* ---------- Footer responsive (dark footer) ---------- */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
}
@media (max-width: 640px) {
  .site-footer { padding: 48px 0 28px; margin-top: 48px; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { font-size: 11px; }
}

/* ---------- Service bay strip mobile ---------- */
@media (max-width: 640px) {
  .service-bay-strip { display: none; }
}

/* =====================================================
   HERO CD — точная компоновка Claude Design (HomePage.jsx)
   ===================================================== */

.hero-cd { padding: 56px 0 48px; position: relative; overflow: hidden; }

.hero-cd-tags {
  display: flex; gap: 12px; justify-content: center;
  margin-bottom: 28px; flex-wrap: wrap;
}

.hero-cd-title {
  text-align: center;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(40px, 7.5vw, 108px);
  line-height: 0.96;
  letter-spacing: -0.025em;
  margin: 0 auto;
  max-width: 1080px;
  color: var(--ink);
}
.hero-cd-title em { font-style: italic; color: var(--brass); }

.hero-cd-lead {
  margin: 32px auto 0;
  text-align: center;
  max-width: 640px;
  font-size: 19px;
  line-height: 1.55;
  color: var(--ink-2);
}

.hero-cd-figure {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  margin-top: 56px;
  gap: 48px;
}
.hero-cd-bg {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: min(1280px, 100%);
  height: auto;
  max-height: 130%;
  object-fit: contain;
  opacity: 0.7;
  mix-blend-mode: multiply;
  filter: contrast(1.25) saturate(0);
  pointer-events: none; user-select: none;
  z-index: 0;
}

.hero-cd-side {
  position: relative; z-index: 1;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}
.hero-cd-side-r { text-align: right; }
.hero-cd-side-eyebrow {
  font-size: 12px; letter-spacing: 0.04em; font-weight: 600;
  text-transform: uppercase; color: var(--ink-2);
}
.hero-cd-side-text {
  font-size: 14px; color: var(--ink-2); margin-top: 8px; max-width: 240px;
}
.hero-cd-side-r .hero-cd-side-text { margin-left: auto; }

.hero-cd-num {
  text-align: center;
  position: relative; z-index: 2;
  display: inline-block;
}
.hero-cd-num-12 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(180px, 22vw, 320px);
  line-height: 0.85;
  letter-spacing: -0.04em;
  color: var(--ink);
  display: inline-block;
  position: relative;
}
.hero-cd-num-plus {
  position: relative;
  top: -1.4em; left: -0.05em;
  font-family: var(--sans);
  font-size: 22px; font-weight: 700;
  color: var(--brass);
}
.hero-cd-num-cap {
  font-family: var(--serif);
  font-style: italic;
  font-size: 28px;
  color: var(--ink-2);
  margin-top: 4px;
}

.hero-cd-car-row {
  margin-top: 36px;
  padding: 20px 0 8px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
  align-items: center;
}
.hero-cd-callout-l, .hero-cd-callout-r {
  display: flex; align-items: center; gap: 16px;
}
.hero-cd-callout-l { justify-content: flex-end; }
.hero-cd-callout-line {
  height: 1px; width: 64px; background: var(--brass); opacity: 0.6;
  display: inline-block;
}
.hero-cd-car { height: 110px; width: auto; display: block; margin: 0 auto; }
.tiny {
  font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase;
  font-weight: 600; color: var(--ink-2); white-space: nowrap;
}
.tiny-brass { color: var(--brass) !important; }

.hero-cd-cta {
  display: flex; gap: 16px; justify-content: center;
  margin-top: 56px; flex-wrap: wrap;
}

/* — Tablet — */
@media (max-width: 1024px) {
  .hero-cd { padding: 40px 0 32px; }
  .hero-cd-figure { gap: 24px; }
  .hero-cd-num-12 { font-size: clamp(140px, 18vw, 220px); }
  .hero-cd-num-cap { font-size: 22px; }
  .hero-cd-car { height: 90px; }
}

/* — Mobile — */
@media (max-width: 640px) {
  .hero-cd { padding: 32px 0 24px; }
  .hero-cd-tags { gap: 8px; }
  .hero-cd-tags .tag { font-size: 10px; padding: 4px 10px; letter-spacing: 0.04em; }
  .hero-cd-title { font-size: clamp(28px, 9vw, 44px); line-height: 1.05; }
  .hero-cd-lead { font-size: 15px; margin-top: 20px; }
  .hero-cd-figure {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 32px;
    text-align: center;
  }
  .hero-cd-side {
    border-top: none; padding-top: 0;
    text-align: center;
  }
  .hero-cd-side-r { text-align: center; }
  .hero-cd-side-r .hero-cd-side-text { margin: 8px auto 0; }
  .hero-cd-num-12 { font-size: clamp(110px, 32vw, 160px); }
  .hero-cd-num-cap { font-size: 18px; }
  .hero-cd-num-plus { top: -1em; font-size: 16px; }
  .hero-cd-bg { opacity: 0.45; max-height: 200px; width: 130%; }
  .hero-cd-car-row {
    grid-template-columns: 1fr;
    gap: 12px; margin-top: 24px;
  }
  .hero-cd-callout-l, .hero-cd-callout-r { justify-content: center; }
  .hero-cd-callout-line { display: none; }
  .hero-cd-car { height: 64px; }
  .hero-cd-cta { flex-direction: column; align-items: stretch; gap: 10px; margin-top: 32px; }
  .hero-cd-cta .btn { width: 100%; justify-content: center; }
}

/* Tag-dot variant */
.tag-dot::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor;
  display: inline-block;
}

/* =====================================================
   MODEL HERO — точная компоновка ModelPage.jsx (CD)
   ===================================================== */

.model-hero {
  padding: 40px 0 64px;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.model-hero-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 64px;
  margin-top: 32px;
  align-items: start;
}
.model-hero-text h1 {
  font-family: var(--serif);
  font-size: clamp(36px, 5.4vw, 80px);
  font-weight: 500;
  line-height: 1.0;
  letter-spacing: -0.024em;
  margin: 16px 0 0;
  color: var(--ink);
}
.model-hero-text h1 em {
  font-style: italic;
  color: var(--brass);
}
.model-hero-text .lead {
  margin: 24px 0 32px;
  max-width: 560px;
  font-size: 19px;
  line-height: 1.55;
  color: var(--ink-2);
}
.model-hero-cta {
  display: flex; gap: 12px; flex-wrap: wrap;
}
.model-hero-img {
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--bg-warm);
  border: 1px solid var(--line);
  aspect-ratio: 16 / 10;
  display: flex; align-items: center; justify-content: center;
}
.model-hero-img img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.model-hero-stats {
  margin-top: 56px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
  overflow: hidden;
}
.model-hero-stats .stat-value {
  font-size: clamp(32px, 4vw, 52px);
}

@media (max-width: 1024px) {
  .model-hero { padding: 32px 0 48px; }
  .model-hero-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    margin-top: 24px;
  }
  .model-hero-img { aspect-ratio: 16 / 9; max-height: 320px; }
  .model-hero-stats { margin-top: 40px; }
}

@media (max-width: 640px) {
  .model-hero-text h1 { font-size: clamp(28px, 8vw, 40px); line-height: 1.05; }
  .model-hero-text .lead { font-size: 15px; margin: 18px 0 24px; }
  .model-hero-cta { flex-direction: column; }
  .model-hero-cta .btn { width: 100%; justify-content: center; }
  .model-hero-img { aspect-ratio: 16 / 10; max-height: 220px; }
  .model-hero-stats {
    grid-template-columns: 1fr 1fr;
    border-radius: 12px;
  }
  .model-hero-stats .stat:nth-child(2) { border-right: none; }
  .model-hero-stats .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line-2); }
}

/* =====================================================
   SERVICES CD — точная компоновка HomePage.jsx
   ===================================================== */
.services-cd { padding: 96px 0; }
.services-cd-head {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-bottom: 56px; gap: 32px;
}
.services-cd-head h2 {
  margin: 16px 0 0;
  max-width: 720px;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(28px, 3.6vw, 44px);
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--ink);
}
.services-cd-head .btn { white-space: nowrap; }
.services-cd-head .btn svg { vertical-align: middle; }

.services-cd-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.service-cd-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-card);
  padding: 28px;
  display: flex; flex-direction: column;
  gap: 16px; min-height: 230px;
  text-decoration: none; color: inherit;
  transition: box-shadow .25s ease, transform .25s ease;
}
.service-cd-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
}
.service-cd-ico {
  color: var(--brass);
  display: inline-flex; align-items: center;
}
.service-cd-card h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 26px;
  letter-spacing: -0.02em;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.2;
}
.service-cd-card p {
  margin: 0;
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.6;
}
.service-cd-link {
  margin-top: auto;
  padding: 0;
  background: transparent;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.005em;
  display: inline-flex; gap: 6px; align-items: center;
  align-self: flex-start;
  padding-bottom: 4px;
  transition: border-color .2s ease, color .2s ease;
}
.service-cd-card:hover .service-cd-link {
  border-color: var(--brass);
  color: var(--brass);
}
.service-cd-link svg { width: 14px; height: 14px; }

@media (max-width: 1024px) {
  .services-cd { padding: 72px 0; }
  .services-cd-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .services-cd { padding: 48px 0; }
  .services-cd-head {
    flex-direction: column; align-items: flex-start;
    margin-bottom: 32px; gap: 16px;
  }
  .services-cd-head h2 { font-size: clamp(24px, 6vw, 32px); }
  .services-cd-grid { grid-template-columns: 1fr; gap: 14px; }
  .service-cd-card { padding: 22px; min-height: 0; }
}

/* =====================================================
   BRANDS CD — wordmark grid 7×2
   ===================================================== */
.brands-cd { padding: 64px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.brands-cd-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 32px; gap: 24px; flex-wrap: wrap;
}
.brands-cd-head .small { color: var(--ink-2); font-size: 14px; }

.brands-cd-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
}
.brand-cd-tile {
  padding: 26px 16px;
  border-right: 1px solid var(--line-2);
  border-bottom: 1px solid var(--line-2);
  display: flex; align-items: center; justify-content: center;
  background: #fff;
  color: var(--ink);
  opacity: 0.85;
  transition: opacity .2s ease, background .2s ease;
  text-decoration: none;
  min-height: 84px;
}
.brand-cd-tile:nth-child(7n) { border-right: none; }
.brand-cd-tile:nth-child(n+8) { border-bottom: none; }
.brand-cd-tile:hover { opacity: 1; background: var(--accent-bg); }
.brand-cd-tile svg { width: 100%; max-width: 100px; height: 28px; }

@media (max-width: 1024px) {
  .brands-cd-grid { grid-template-columns: repeat(4, 1fr); }
  .brand-cd-tile { border-right: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
  .brand-cd-tile:nth-child(7n) { border-right: 1px solid var(--line-2); }
  .brand-cd-tile:nth-child(4n) { border-right: none; }
  .brand-cd-tile:nth-child(n+13) { border-bottom: none; }
  .brand-cd-tile:nth-child(n+8):not(:nth-child(n+13)) { border-bottom: 1px solid var(--line-2); }
}
@media (max-width: 640px) {
  .brands-cd { padding: 40px 0; }
  .brands-cd-grid { grid-template-columns: repeat(2, 1fr); }
  .brand-cd-tile { min-height: 64px; padding: 18px 14px; }
  .brand-cd-tile:nth-child(2n) { border-right: none; }
  .brand-cd-tile:nth-child(2n+1) { border-right: 1px solid var(--line-2); }
}

/* Visually hidden but accessible to screen readers */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* =====================================================
   ANTI-OVERFLOW: запрет горизонтального скролла на mobile
   ===================================================== */
html, body {
  overflow-x: hidden;
  max-width: 100%;
}

/* Все секции hero — контейнеры обрезают фоны */
.hero, .hero-cd, .hero02, .article-hero, .model-hero,
.services-cd, .brands-cd {
  overflow: hidden;
}

/* Длинные слова — переносить везде */
h1, h2, h3, h4, p, li, a, span {
  overflow-wrap: break-word;
  word-wrap: break-word;
}

/* Картинки и SVG — не больше контейнера */
img, svg, video, iframe {
  max-width: 100%;
  height: auto;
}

/* На очень узких экранах — мягкие переносы для длинных слов */
@media (max-width: 640px) {
  h1, h2, h3 {
    overflow-wrap: anywhere;
    hyphens: auto;
    -webkit-hyphens: auto;
    word-break: normal;
  }
  /* Цена в правом столбце — не позволяем вылезать */
  .table td, .table th { word-break: break-word; }
  /* Кнопки на мобиле — не уходят за край */
  .btn { max-width: 100%; }
  /* Сама подложка hero-cd на узких экранах — не шире 100% */
  .hero-cd-bg { width: 100% !important; max-width: 100% !important; }
  /* article-hero::before на мобиле — фон в пределах вьюпорта */
  .article-hero::before, .hero::before {
    background-size: 110% auto !important;
  }
}
