:root {
  
  --bg: #0b0c0f;
  --bg-elevated: #12141a;
  --bg-card: #161920;
  --bg-input: #0e1014;
  --border: #242830;
  --border-hover: #353b47;

  
  --red: #e60012;
  --red-hover: #ff1a2e;
  --red-soft: rgba(230, 0, 18, 0.12);
  --red-glow: rgba(230, 0, 18, 0.35);
  --orange: #ffbb00;
  --orange-soft: rgba(255, 187, 0, 0.15);

  
  --text: #f0f2f5;
  --text-secondary: #a7acb4;
  --text-muted: #6b7178;
  --text-dim: #4a5058;

  
  --radius: 16px;
  --radius-sm: 11px;
  --radius-lg: 22px;
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --container: 1180px;
  --header-h: 72px;
  --transition: 0.18s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color var(--transition); }
ul, ol { list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: none; background: none; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }

.h1 { font-size: clamp(28px, 5vw, 44px); font-weight: 900; letter-spacing: -0.03em; line-height: 1.15; }
.h2 { font-size: clamp(24px, 3.5vw, 34px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; }
.h3 { font-size: 20px; font-weight: 700; line-height: 1.3; }
.lead { font-size: 17px; color: var(--text-secondary); line-height: 1.6; }
.sec-title { margin-bottom: 10px; }
.sec-sub { color: var(--text-secondary); font-size: 16px; max-width: 560px; margin-bottom: 36px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 24px; border-radius: 12px; font-weight: 700; font-size: 15px;
  transition: all var(--transition); white-space: nowrap; border: 1.5px solid transparent;
}
.btn-red {
  background: var(--red); color: #fff;
  box-shadow: 0 6px 20px var(--red-glow);
}
.btn-red:hover { background: var(--red-hover); transform: translateY(-1px); box-shadow: 0 10px 28px var(--red-glow); }
.btn-outline {
  background: transparent; border-color: var(--border); color: var(--text);
}
.btn-outline:hover { border-color: var(--red); color: #fff; background: var(--red-soft); }
.btn-ghost { background: var(--bg-elevated); color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--border-hover); background: var(--bg-card); }
.btn-lg { padding: 17px 28px; font-size: 16px; border-radius: 13px; }
.btn-block { width: 100%; }

.header {
  position: sticky; top: 0; z-index: 100;
  height: var(--header-h);
  background: rgba(11, 12, 15, 0.88);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  min-height: clamp(60px, 10vw, 76px);
  display: flex; align-items: center; justify-content: space-between;
  height: 100%; gap: 20px;
}
.logo {
  display: flex;
  align-items: center;
  gap: clamp(8px, 1.5vw, 12px);
  flex-shrink: 0;
  min-width: 0;
  max-width: min(100%, 280px);
}
.logo img {
  width: clamp(54px, 6.5vw, 71px);
  height: clamp(54px, 6.5vw, 71px);
  object-fit: contain;
  flex-shrink: 0;
  display: block;
}
.logo-text {
  font-weight: 800;
  font-size: clamp(15px, 1.6vw, 20px);
  letter-spacing: -0.02em;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.logo-text span { color: var(--red); }

.nav { display: flex; align-items: center; gap: 6px; }
.nav a {
  padding: 8px 14px; border-radius: 9px; font-size: 14px; font-weight: 600;
  color: var(--text-secondary); transition: all var(--transition);
}
.nav a:hover, .nav a.active { color: #fff; background: rgba(255,255,255,0.05); }

.header-actions { display: flex; align-items: center; gap: 12px; }
.header-phone {
  font-weight: 700; font-size: 14px; color: #fff;
  display: flex; align-items: center; gap: 6px;
  white-space: nowrap; flex-shrink: 0;
}
.header-phone span { white-space: nowrap; }
.header-actions { flex-shrink: 0; }
.header-inner {
  min-height: 72px; flex-wrap: nowrap; gap: 12px; }
.nav { flex: 1; justify-content: center; min-width: 0; }

.header-phone svg { width: 18px; height: 18px; stroke: var(--red); fill: none; stroke-width: 2.2; flex-shrink: 0; }
.header-phone { cursor: pointer; user-select: none; }
.header-phone:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 8px; }

.burger {
  display: none; width: 42px; height: 42px; border-radius: 10px;
  background: var(--bg-elevated); border: 1px solid var(--border);
  place-items: center; flex-direction: column; gap: 5px;
}
.burger span { display: block; width: 18px; height: 2px; background: #fff; border-radius: 2px; transition: 0.2s; }

.mobile-nav {
  display: none; position: fixed; inset: var(--header-h) 0 0 0; z-index: 99;
  background: rgba(11,12,15,0.97); backdrop-filter: blur(12px);
  padding: 24px 20px; flex-direction: column; gap: 8px;
  overflow-y: auto;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  padding: 14px 16px; border-radius: 12px; font-size: 16px; font-weight: 600;
  color: var(--text-secondary); background: var(--bg-elevated); border: 1px solid var(--border);
}
.mobile-nav a:hover, .mobile-nav a.active { color: #fff; border-color: var(--red); background: var(--red-soft); }

.hero {
  padding: 64px 0 72px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; top: -20%; right: -10%; width: 55%; height: 80%;
  background: radial-gradient(ellipse, rgba(230,0,18,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.hero-bg { display: none; }
.hero-grid {
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center;
}
.hero-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 30px; font-size: 12.5px; font-weight: 600;
  background: var(--bg-elevated); border: 1px solid var(--border); color: var(--text-secondary);
}
.badge-red { background: var(--red-soft); border-color: rgba(230,0,18,0.35); color: #ff6b7a; }
.badge-orange { background: var(--orange-soft); border-color: rgba(255,187,0,0.3); color: var(--orange); }
.hero h1 { margin-bottom: 16px; }
.hero h1 .accent { color: var(--red); }
.hero .lead { margin-bottom: 28px; max-width: 480px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 32px; }
.hero-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
  padding-top: 28px; border-top: 1px solid var(--border);
}
.stat-val { font-size: 26px; font-weight: 900; letter-spacing: -0.03em; color: #fff; }
.stat-val span { color: var(--red); }
.stat-lbl { font-size: 13px; color: var(--text-muted); margin-top: 2px; }

.hero-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow);
}
.hero-card .hc-title { font-size: 15px; font-weight: 700; color: var(--text-secondary); margin-bottom: 18px; text-transform: uppercase; letter-spacing: 0.4px; }
.hero-card .hc-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.hero-card .hc-row:last-child { border-bottom: none; }
.hero-card .hc-row b { color: #fff; font-weight: 700; }
.hero-card .hc-price { margin-top: 18px; background: linear-gradient(135deg, var(--red), #b3000e); border-radius: 14px; padding: 18px; text-align: center; }
.hero-card .hc-price .lbl { font-size: 13px; opacity: 0.9; }
.hero-card .hc-price .val { font-size: 28px; font-weight: 900; margin-top: 4px; }

.section { padding: 80px 0; }
.section-dark { background: var(--bg-elevated); }
.section-alt { background: linear-gradient(180deg, var(--bg) 0%, #0e1014 100%); }

.features-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
}
.feature-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px 20px; transition: border-color var(--transition);
}
.feature-card:hover { border-color: var(--border-hover); }
.feature-icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--red-soft); display: grid; place-items: center; margin-bottom: 14px;
}
.feature-icon svg { width: 22px; height: 22px; stroke: var(--red); fill: none; stroke-width: 2; }
.feature-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.feature-card p { font-size: 13.5px; color: var(--text-secondary); line-height: 1.5; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: step; }
.step {
  position: relative; background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px 24px;
}
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: -14px; left: 24px;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--red); color: #fff; font-weight: 800; font-size: 14px;
  display: grid; place-items: center;
}
.step h3 { font-size: 17px; font-weight: 700; margin: 8px 0 8px; }
.step p { font-size: 14px; color: var(--text-secondary); }
.step ul { margin-top: 12px; }
.step li { font-size: 13.5px; color: var(--text-secondary); padding: 3px 0; padding-left: 14px; position: relative; }
.step li::before { content: ""; position: absolute; left: 0; top: 10px; width: 5px; height: 5px; border-radius: 50%; background: var(--red); }

.cond-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.cond-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px; transition: all var(--transition);
  display: flex; flex-direction: column; gap: 10px;
}
.cond-card:hover { border-color: var(--red); transform: translateY(-2px); }
.cond-card .cc-icon {
  width: 48px; height: 48px; border-radius: 12px;
  display: grid; place-items: center;
  background: linear-gradient(145deg, rgba(230,0,18,0.18), rgba(230,0,18,0.05));
  border: 1px solid rgba(230,0,18,0.25);
  color: var(--red);
  margin-bottom: 4px;
}
.cond-card .cc-icon svg { width: 24px; height: 24px; display: block; }
.cond-card:hover .cc-icon {
  background: linear-gradient(145deg, rgba(230,0,18,0.28), rgba(230,0,18,0.1));
  border-color: var(--red);
  box-shadow: 0 0 20px rgba(230,0,18,0.15);
}
.cond-card h3 { font-size: 16px; font-weight: 700; }
.cond-card p { font-size: 13.5px; color: var(--text-secondary); flex: 1; }
.cond-card .cc-link { font-size: 13.5px; font-weight: 700; color: var(--red); display: inline-flex; align-items: center; gap: 4px; }

.cases-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.case-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; transition: border-color var(--transition);
}
.case-card:hover { border-color: var(--border-hover); }
.case-body { padding: 20px; }
.case-tag {
  display: inline-block; padding: 4px 10px; border-radius: 6px;
  font-size: 12px; font-weight: 700; background: var(--red-soft); color: #ff6b7a; margin-bottom: 10px;
}
.case-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.case-meta { font-size: 13px; color: var(--text-muted); margin-bottom: 14px; }
.case-prices { display: flex; gap: 16px; }
.case-prices div { flex: 1; }
.case-prices .lbl { font-size: 11.5px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.3px; }
.case-prices .val { font-size: 18px; font-weight: 800; margin-top: 2px; }
.case-prices .val.green { color: #3ddc7f; }
.case-prices .val.red { color: var(--red); }

.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.review-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px;
}
.review-stars { color: var(--orange); font-size: 14px; letter-spacing: 2px; margin-bottom: 12px; }
.review-text { font-size: 14.5px; color: var(--text-secondary); line-height: 1.6; margin-bottom: 16px; }
.review-author { display: flex; align-items: center; gap: 12px; }
.review-avatar {
  width: 40px; height: 40px; border-radius: 50%; background: var(--bg-elevated);
  display: grid; place-items: center; font-weight: 800; color: var(--red); font-size: 15px;
  border: 1px solid var(--border);
}
.review-name { font-weight: 700; font-size: 14px; }
.review-date { font-size: 12.5px; color: var(--text-muted); }

.faq-list { max-width: 780px; }
.faq-item {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-sm); margin-bottom: 10px; overflow: hidden;
}
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 20px; text-align: left; font-size: 15.5px; font-weight: 700; color: #fff;
  transition: background var(--transition);
}
.faq-q:hover { background: rgba(255,255,255,0.02); }
.faq-q svg { width: 18px; height: 18px; stroke: var(--text-muted); flex-shrink: 0; transition: 0.25s; }
.faq-item.open .faq-q svg { transform: rotate(180deg); stroke: var(--red); }
.faq-a {
  max-height: 0; overflow: hidden; transition: max-height 0.3s ease;
  font-size: 14.5px; color: var(--text-secondary); line-height: 1.65;
}
.faq-item.open .faq-a { max-height: 400px; }
.faq-a-inner { padding: 0 20px 18px; }

.cta-block {
  background: linear-gradient(135deg, #1a0a0c 0%, #12141a 50%, #0e1014 100%);
  border: 1px solid rgba(230,0,18,0.25);
  border-radius: var(--radius-lg); padding: 48px 40px; text-align: center;
  position: relative; overflow: hidden;
}
.cta-block::before {
  content: ""; position: absolute; top: -40%; left: 50%; transform: translateX(-50%);
  width: 60%; height: 80%; background: radial-gradient(ellipse, rgba(230,0,18,0.15), transparent 70%);
  pointer-events: none;
}
.cta-block h2 { margin-bottom: 12px; }
.cta-block .lead { margin: 0 auto 28px; max-width: 480px; }
.cta-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }

.footer {
  background: #08090b; border-top: 1px solid var(--border); padding: 56px 0 28px;
}
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; margin-bottom: 40px;
}
.footer-brand p { font-size: 14px; color: var(--text-secondary); margin-top: 12px; max-width: 280px; line-height: 1.55; }
.footer-col h4 { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-muted); margin-bottom: 14px; }
.footer-col a { display: block; font-size: 14px; color: var(--text-secondary); padding: 4px 0; }
.footer-col a:hover { color: #fff; }
.footer-contacts .fc-item { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 12px; font-size: 14px; color: var(--text-secondary); }
.footer-contacts .fc-item svg { width: 16px; height: 16px; stroke: var(--red); fill: none; stroke-width: 2; flex-shrink: 0; margin-top: 2px; }
.footer-contacts .fc-item a { color: #fff; font-weight: 600; }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px;
  padding-top: 24px; border-top: 1px solid var(--border);
  font-size: 13px; color: var(--text-muted);
}
.footer-bottom a { color: var(--text-secondary); }
.footer-bottom a:hover { color: #fff; }

.float-cta {
  display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 90;
  padding: 12px 16px; background: rgba(11,12,15,0.95); backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
}
.float-cta .btn { width: 100%; }

.text-red { color: var(--red); }
.text-center { text-align: center; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mb-40 { margin-bottom: 40px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

@media (max-width: 1200px) {
  .nav a { padding: 8px 10px; font-size: 13px; }
  .header-phone { font-size: 13px; }
  .btn { padding-left: 14px; padding-right: 14px; }
}
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-card { max-width: 420px; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .cond-grid { grid-template-columns: repeat(2, 1fr); }
  .cases-grid, .reviews-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .nav { display: none; }
  .burger { display: grid; }
  .header-phone-text, .header-phone > span:not(:first-child) { display: none; }
  .header-phone {
    width: 48px; height: 48px;
    display: grid; place-items: center;
    border-radius: 12px;
    background: rgba(230, 0, 18, 0.12);
    border: 1px solid rgba(230, 0, 18, 0.35);
    padding: 0;
  }
  .header-phone svg { width: 26px; height: 26px; stroke-width: 2; }
}

@media (max-width: 640px) {
  .hero { padding: 40px 0 48px; }
  .section { padding: 56px 0; }
  .features-grid, .cond-grid, .cases-grid, .reviews-grid { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: 1fr; gap: 12px; }
  .footer-grid { grid-template-columns: 1fr; }
  .float-cta { display: block; }
  .cta-block { padding: 36px 20px; }
  .header-actions .btn { display: none; }
}

.page-hero { padding: 48px 0 24px; }
.page-hero .h1 { margin-bottom: 12px; }

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
@media (max-width: 768px) {
  .contact-grid { grid-template-columns: 1fr; }
}

.map-wrap {
  border-radius: 16px; overflow: hidden; border: 1px solid var(--border);
  aspect-ratio: 4/3; background: var(--bg-card); min-height: 280px;
  width: 100%; max-width: 100%; position: relative;
}
.map-wrap iframe {
  position: absolute; inset: 0;
  width: 100% !important; height: 100% !important; max-width: 100%;
  border: 0; display: block;
}
.contact-grid { max-width: 100%; overflow: hidden; }
@media (max-width: 768px) {
  .map-wrap { aspect-ratio: 1 / 1; min-height: 260px; }
  .contact-grid, .section .container { max-width: 100%; overflow-x: hidden; }
}

.legal-content { font-size: 15px; line-height: 1.7; color: var(--text-secondary); max-width: 780px; }
.legal-content h3 { color: #fff; margin: 28px 0 10px; font-size: 17px; }
.legal-content p { margin-bottom: 14px; }
.legal-content ul { margin: 0 0 16px 1.2em; padding: 0; }
.legal-content li { margin-bottom: 8px; }
.legal-content a { color: var(--red); }

.brand-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 900px) { .brand-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .brand-grid { grid-template-columns: 1fr; } }

.header svg, .footer svg:not(.msg-btn svg), .feature-icon svg, .r-guar svg, .faq-q svg {
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.header-phone svg { stroke: var(--red); }
.feature-icon svg { stroke: var(--red); width: 22px; height: 22px; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 8px); }
body { overflow-x: hidden; }
img, video, iframe { max-width: 100%; height: auto; }

input, select, textarea, button { font-size: 16px; }
@media (min-width: 768px) {
  input, select, textarea, button { font-size: 15px; }
}

.burger { min-width: 44px; min-height: 44px; place-items: center; }
.mobile-nav a { min-height: 48px; display: flex; align-items: center; }
.btn, .btn-red, .seg-btn, .faq-q { min-height: 44px; }

.float-cta {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 90;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(to top, rgba(11,12,15,0.96), rgba(11,12,15,0.85));
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--border);
}
.float-cta .btn { width: 100%; justify-content: center; }
@media (max-width: 640px) {
  .float-cta { display: block; }
  body { padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px)); }
  .footer { padding-bottom: 24px; }
}

@media (max-width: 1024px) and (min-width: 641px) {
  .container { padding: 0 24px; }
  .hero-badges { flex-wrap: wrap; }
}

@media (max-width: 1024px) {
  .logo img { width: 77px; height: 77px; }
  .logo-text { font-size: 17px; }
}
@media (max-width: 640px) {
  .page-hero { padding-top: 32px; }
  .header-phone { padding: 8px; }
  .logo { gap: 8px; max-width: calc(100vw - 140px); }
  .logo img { width: 75px; height: 75px; }
  .logo-text { font-size: 15px; }
  .header-inner { min-height: 64px; gap: 8px; }
}
@media (max-width: 380px) {
  .logo img { width: 75px; height: 75px; }
  .logo-text { font-size: 14px; }
  
  .logo-text { max-width: 9.5em; }
}

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

[data-phone-click] { cursor: pointer; }

.msg-float {
  position: fixed;
  right: 20px;
  bottom: 24px;
  z-index: 95;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.msg-btn {
  width: 52px; height: 52px;
  border-radius: 50%;
  display: grid; place-items: center;
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s;
  border: 1px solid transparent;
}
.msg-btn svg { width: 26px; height: 26px; display: block; }
.msg-btn:hover { transform: translateY(-3px) scale(1.04); filter: brightness(1.08); }
.msg-btn:active { transform: scale(0.97); }

.msg-wa {
  background: #25D366;
  color: #fff;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.35);
}
.msg-wa svg { fill: currentColor; stroke: none; }
.msg-max {
  background: #0f1115;
  color: #fff;
  border-color: rgba(255,255,255,0.14);
  box-shadow: 0 8px 24px rgba(0,0,0,0.45);
}
.msg-max svg { width: 26px; height: 26px; color: #fff; }
.msg-max { background: #1a1a1a; }

@media (max-width: 640px) {
  .msg-float {
    right: 14px;
    bottom: calc(80px + env(safe-area-inset-bottom, 0px));
  }
  .msg-btn { width: 48px; height: 48px; }
}

.car-card { padding-top: 12px; }
.car-thumb {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  margin-bottom: 12px;
}
.car-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.car-thumb.is-placeholder img {
  object-fit: contain;
  padding: 8px;
  opacity: 0.9;
}
.car-thumb-hint {
  position: absolute;
  left: 8px; right: 8px; bottom: 8px;
  font-size: 10px;
  line-height: 1.3;
  color: var(--text-muted);
  background: rgba(11,12,15,0.75);
  border-radius: 6px;
  padding: 4px 6px;
  word-break: break-all;
  text-align: center;
}
.car-hero-img {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  aspect-ratio: 16 / 10;
}
.car-hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.car-hero-img.is-placeholder img {
  object-fit: contain;
  padding: 16px;
}
.car-hero-img .car-thumb-hint {
  font-size: 12px;
  padding: 8px 10px;
}

.seo-article {
  max-width: 820px;
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.65;
}
.seo-article .h2 { color: #fff; margin-bottom: 16px; }
.seo-article .seo-h3 {
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  margin: 28px 0 12px;
}
.seo-article p { margin: 0 0 14px; }
.seo-article a { color: var(--red); text-decoration: underline; text-underline-offset: 2px; }
.seo-steps, .seo-list {
  margin: 0 0 16px;
  padding-left: 1.25em;
}
.seo-steps li, .seo-list li { margin-bottom: 8px; }
.seo-nav-links {
  margin-top: 20px;
  font-size: 14px;
  color: var(--text-muted);
}
.seo-nav-links a { color: var(--text-secondary); }

.brand-title-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.brand-logo-hero {
  width: 64px; height: 64px;
  border-radius: 14px;
  object-fit: contain;
  padding: 6px;
  border: 1px solid var(--border);
  background: #fff;
  flex-shrink: 0;
}
.brand-logo-badge {
  position: absolute;
  top: 10px; left: 10px;
  width: 44px; height: 44px;
  border-radius: 10px;
  object-fit: contain;
  padding: 4px;
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 4px 14px rgba(0,0,0,0.45);
  background: #fff;
}
.car-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}
.car-card-head h3 { margin: 0; }
.brand-logo-inline {
  width: 36px; height: 36px;
  border-radius: 8px;
  object-fit: contain;
  padding: 3px;
  border: 1px solid var(--border);
  flex-shrink: 0;
  background: #fff;
}

.qr-fab {
  position: fixed;
  left: 16px;
  bottom: 20px;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 6px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(20, 22, 28, 0.95);
  box-shadow: 0 8px 28px rgba(0,0,0,0.45);
  cursor: pointer;
  color: var(--text);
  transition: transform .15s ease, border-color .15s;
}
.qr-fab:hover { border-color: var(--red); transform: translateY(-1px); }
.qr-fab img {
  width: 44px; height: 44px;
  border-radius: 8px;
  background: #fff;
  object-fit: cover;
}
.qr-fab-hint { font-size: 12px; font-weight: 600; color: var(--text-muted); max-width: 72px; line-height: 1.2; }
@media (max-width: 640px) {
  .qr-fab { left: 12px; bottom: 88px; padding: 5px; }
  .qr-fab-hint { display: none; }
  .qr-fab img { width: 40px; height: 40px; }
}
.qr-modal {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center;
  padding: 20px;
}
.qr-modal[hidden] { display: none !important; }
.qr-modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.72);
  backdrop-filter: blur(4px);
}
.qr-modal-box {
  position: relative;
  z-index: 1;
  width: min(360px, 100%);
  background: var(--card, #14161c);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px 20px 20px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.qr-modal-close {
  position: absolute; top: 8px; right: 12px;
  background: none; border: 0; color: var(--text-muted);
  font-size: 28px; line-height: 1; cursor: pointer;
}
.qr-modal-box h3 { margin: 0 0 6px; font-size: 18px; }
.qr-modal-text { margin: 0 0 14px; color: var(--text-muted); font-size: 13px; }
.qr-modal-img {
  width: min(280px, 70vw);
  height: auto;
  border-radius: 12px;
  background: #fff;
  padding: 8px;
  margin: auto;
}
.qr-modal-phone { margin: 12px 0 0; font-weight: 700; font-size: 16px; }

.yb-rate {
  position: fixed;
  right: 16px;
  bottom: 20px;
  z-index: 45;
  max-width: 300px;
  background: var(--card, #14161c);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 36px 14px 14px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.5);
}
.yb-rate {  }

.yb-rate[hidden] { display: none !important; }
.yb-rate-close {
  position: absolute; top: 6px; right: 10px;
  background: none; border: 0; color: var(--text-muted);
  font-size: 22px; cursor: pointer;
}
.yb-rate { position: fixed; }
.yb-rate-body strong { display: block; margin-bottom: 4px; }
.yb-rate-body p { margin: 0 0 10px; font-size: 13px; color: var(--text-muted); line-height: 1.4; }
.btn-sm { padding: 8px 12px; font-size: 13px; }
@media (max-width: 640px) {
  .yb-rate { left: 12px; right: 12px; bottom: 140px; max-width: none; }
}

/* Hero: мобильный — фото-фон, больше «вау» */
@media (max-width: 768px) {
  .hero {
    min-height: min(86vh, 680px);
    padding: 28px 0 36px;
    display: flex;
    align-items: stretch;
  }
  .hero::before { display: none; }
  .hero-bg {
    display: block;
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
  }
  .hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 65% center;
    transform: scale(1.04);
    filter: saturate(1.15) contrast(1.08) brightness(0.72);
  }
  .hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
      linear-gradient(180deg, rgba(11,12,15,0.35) 0%, rgba(11,12,15,0.55) 28%, rgba(11,12,15,0.88) 62%, var(--bg) 100%),
      radial-gradient(ellipse 90% 55% at 70% 30%, rgba(230,0,18,0.22) 0%, transparent 70%);
  }
  .hero .container.hero-grid {
    position: relative;
    z-index: 1;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 20px;
  }
  .hero h1 {
    font-size: clamp(26px, 7.2vw, 34px);
    line-height: 1.15;
    text-shadow: 0 2px 24px rgba(0,0,0,0.45);
  }
  .hero .lead {
    max-width: none;
    font-size: 15px;
    color: rgba(232,234,237,0.92);
    text-shadow: 0 1px 12px rgba(0,0,0,0.35);
  }
  .hero-badges .badge {
    backdrop-filter: blur(8px);
    background: rgba(20,22,28,0.55);
  }
  .hero-cta .btn-red {
    box-shadow: 0 8px 28px rgba(230,0,18,0.4);
  }
  .hero-stats {
    padding-top: 18px;
    border-top-color: rgba(255,255,255,0.1);
  }
  .hero-card {
    max-width: none;
    width: 100%;
    background: rgba(20,22,28,0.82);
    backdrop-filter: blur(12px);
    border-color: rgba(255,255,255,0.12);
    padding: 18px 16px;
  }
  .hero-card .hc-price .val { font-size: 24px; }
}

.brand-search-wrap { margin: 0 0 28px; max-width: 640px; }
.brand-search-label {
  display: block; font-size: 13px; font-weight: 600;
  color: var(--text-secondary); margin-bottom: 8px;
}
.brand-search-row { position: relative; }
.brand-search-input {
  width: 100%;
  padding: 14px 44px 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: #fff;
  font-size: 16px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.brand-search-input:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(230,0,18,0.15);
}
.brand-search-input::placeholder { color: var(--text-muted); }
.brand-search-clear {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  width: 32px; height: 32px; border: 0; border-radius: 8px;
  background: transparent; color: var(--text-muted); font-size: 22px; line-height: 1;
  cursor: pointer;
}
.brand-search-clear:hover { color: #fff; background: rgba(255,255,255,0.06); }
.brand-search-hint {
  margin-top: 8px; font-size: 12.5px; color: var(--text-muted);
}
.brand-search-letters {
  display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px;
}
.brand-letter {
  min-width: 36px; height: 36px; padding: 0 10px;
  border-radius: 8px; border: 1px solid var(--border);
  background: var(--bg-card); color: var(--text-secondary);
  font-size: 13px; font-weight: 600; cursor: pointer;
}
.brand-letter:hover { border-color: var(--border-hover); color: #fff; }
.brand-letter.is-active {
  background: var(--red-soft); border-color: rgba(230,0,18,0.45); color: #ff6b7a;
}
.brand-search-empty {
  margin-top: 20px; color: var(--text-secondary); font-size: 15px;
}
.brand-search-empty a { color: var(--red); }
.brand-card[hidden] { display: none !important; }

.mobile-lead { display: none; }
.hero-cta-mobile { display: none; }
.hero-cta-desktop { display: inline-flex; }

@media (max-width: 767px) {
  .mobile-lead { display: block; padding: 28px 0 8px; }
  .calc-desktop { display: none !important; }
  .hero-cta-mobile { display: inline-flex; }
  .hero-cta-desktop { display: none !important; }
}

.mobile-lead-form {
  position: relative;
  margin-top: 8px;
  padding: 20px 16px;
  border-radius: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 100%;
}
.mobile-lead-form .ml-field {
  display: flex;
  flex-direction: column;
  width: 100%;
  margin-bottom: 14px;
}
.mobile-lead-form .ml-field > label {
  display: block;
  width: 100%;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
}
.mobile-lead-form .req { color: var(--red); }
.mobile-lead-form .ml-optional {
  font-weight: 400;
  color: var(--text-muted);
  font-size: 12px;
}
.mobile-lead-form input[type="text"],
.mobile-lead-form input[type="tel"] {
  display: block;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg-input);
  color: #fff;
  font-size: 16px;
  line-height: 1.3;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}
.mobile-lead-form input::placeholder { color: var(--text-dim); opacity: 1; }
.mobile-lead-form input:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(230,0,18,0.15);
}
.mobile-lead-form input.err,
.mobile-lead-form .ml-field.err input {
  border-color: var(--red);
}
.mobile-lead-form input:-webkit-autofill,
.mobile-lead-form input:-webkit-autofill:focus {
  -webkit-text-fill-color: #fff;
  caret-color: #fff;
  box-shadow: 0 0 0 1000px var(--bg-input) inset;
  transition: background-color 99999s ease-out;
}
.mobile-lead-form .ml-err {
  display: block;
  margin-top: 6px;
  font-size: 12.5px;
  color: #ff6b7a;
}
.mobile-lead-form .consent-check {
  width: 100%;
  margin: 4px 0 14px;
}
.mobile-lead-form .ml-submit {
  display: flex;
  width: 100%;
  margin-top: 0;
  align-self: stretch;
}
.mobile-lead-form .ml-note,
.mobile-lead-form .ml-alt {
  margin-top: 12px;
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.45;
}
.mobile-lead-form .ml-alt a,
.mobile-lead-form .ml-note a { color: var(--red); }
/* honeypot */
.mobile-lead-form .hp-wrap,
.hp-wrap {
  position: absolute !important;
  left: -10000px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
.mobile-lead-form .hp-field {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
}

.ml-success {
  text-align: center;
  padding: 12px 4px 4px;
}
.ml-success b { display: block; font-size: 18px; color: #fff; margin-bottom: 8px; }
.ml-success p { color: var(--text-secondary); margin-bottom: 14px; }
.ml-success-actions {
  display: flex; gap: 10px; justify-content: center; flex-wrap: wrap;
}

.consent-check {
  display: flex; align-items: flex-start; gap: 10px;
  margin: 12px 0 14px; font-size: 13px; line-height: 1.4;
  color: var(--text-secondary); cursor: pointer;
}
.consent-check input {
  margin-top: 3px; flex-shrink: 0; width: 18px; height: 18px;
  accent-color: var(--red);
}
.consent-check a { color: var(--red); text-decoration: underline; }
.consent-check.err { color: #ff6b7a; }
.consent-check .req { color: var(--red); }

