/* ===== KAD-Autoconsult — базовые стили ===== */
@import url('https://fonts.googleapis.com/css2?family=Unbounded:wght@600;700;800;900&family=Manrope:wght@400;500;600;700;800&display=swap');
:root {
  /* точная фирменная палитра KAD Autoconsult (KAC_colors.ai: Pantone 3035C / 395C / 565C) */
  --navy-900: #003c50;    /* Pantone 3035 C — базовый фирменный тёмно-бирюзовый */
  --navy-800: #0a4a61;
  --navy-700: #155a73;
  --navy-600: #1f6f89;
  --accent: #aaffdc;       /* Pantone 565 C — мятный, акцент AUTO CONSULT */
  --accent-dark: #5fdcae;
  --accent-text: #0f7a58;  /* тот же мятный, но затемнён для контраста текста на светлом фоне (WCAG AA 4.5:1) */
  --yellow: #ffff00;       /* Pantone 395 C — фирменный жёлтый, акцент KAD */
  --yellow-dark: #e6e600;
  --gray-50: #f5f7fa;
  --gray-100: #eef1f5;
  --gray-200: #dfe4ea;
  --gray-400: #97a3b0;
  --gray-600: #5c6b7a;
  --text-main: #1c2b38;
  --white: #ffffff;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 4px 18px rgba(0, 60, 80, 0.09);
  --shadow-hover: 0 16px 36px rgba(0, 60, 80, 0.20);
  --grad-navy: linear-gradient(135deg, var(--navy-800) 0%, var(--navy-900) 60%, #001f2b 100%);
  --grad-mint: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  --grad-yellow: linear-gradient(135deg, #fff35c 0%, var(--yellow) 100%);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Manrope", "Segoe UI", Arial, sans-serif;
  color: var(--text-main);
  background: var(--gray-50);
  line-height: 1.55;
  font-size: 16px;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

/* ===== Доступность: скип-ссылка, фокус, якоря под sticky-шапкой ===== */
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0; padding: 0; margin: -1px;
}
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--yellow); color: var(--navy-900); font-weight: 700;
  padding: 12px 20px; border-radius: 0 0 10px 0; z-index: 1000;
}
.skip-link:focus {
  left: 0;
}
:focus-visible { outline: 3px solid var(--accent-dark); outline-offset: 2px; }
h2[id], h3[id], h4[id], section[id] { scroll-margin-top: 220px; }

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
}

h1, h2, h3, h4 { font-family: "Unbounded", "Manrope", sans-serif; line-height: 1.22; margin: 0 0 16px; font-weight: 700; color: var(--navy-900); letter-spacing: -.01em; }
h1 { font-size: clamp(28px, 4vw, 44px); }
h2 { font-size: clamp(22px, 3vw, 32px); }
h3 { font-size: 20px; }
p { margin: 0 0 14px; color: var(--text-main); }

ul, ol { margin: 0 0 14px; padding-left: 22px; }
li { margin-bottom: 6px; }

.section { padding: 64px 0; position: relative; }
.section-alt { background: var(--white); }
.section-navy { background: var(--grad-navy); color: var(--white); position: relative; overflow: hidden; }
.section-navy h1, .section-navy h2, .section-navy h3, .section-navy p { color: var(--white); }
.section-navy::before {
  content: ""; position: absolute; top: -60px; right: -60px; width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(170,255,220,.16) 0%, transparent 70%);
  pointer-events: none;
}

/* ===== Декоративная "эйбрау"-метка над заголовком ===== */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: "Unbounded", sans-serif;
  font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
  color: var(--accent-text); margin-bottom: 10px;
}
.eyebrow::before {
  content: ""; width: 26px; height: 3px; border-radius: 2px;
  background: var(--grad-mint);
}
.section-navy .eyebrow { color: var(--accent); }

/* ===== Волновой разделитель между секциями ===== */
.wave-divider { display: block; width: 100%; line-height: 0; }
.wave-divider svg { width: 100%; height: 60px; display: block; }

/* ===== Топ-бар ===== */
.top-bar {
  background: var(--navy-900);
  color: var(--gray-200);
  font-size: 13px;
  padding: 10px 0;
}
.top-bar .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.top-bar a { color: var(--gray-200); }
.top-bar .top-contacts { display: flex; gap: 12px; flex-wrap: wrap; }
.top-bar .top-contacts a {
  display: inline-flex;
  align-items: center;
  color: var(--gray-200);
  font-weight: 500;
  transition: color .15s ease;
}
.top-bar .top-contacts a:hover { color: var(--accent); }
.top-bar .top-rates { display: flex; gap: 14px; flex-wrap: wrap; font-weight: 600; color: var(--gray-200); letter-spacing: .2px; }
@media (max-width: 640px) { .top-bar .top-rates { display: none; } }

/* ===== Плавающая CTA-панель по скроллу страницы ===== */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 180;
  background: var(--grad-navy); color: var(--white);
  box-shadow: 0 -8px 24px rgba(0,20,28,.25);
  padding: 14px 0;
  transform: translateY(110%);
  transition: transform .3s ease;
}
.sticky-cta.is-visible { transform: translateY(0); }
.sticky-cta .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.sticky-cta-text { font-size: 14.5px; font-weight: 600; }
.sticky-cta-text small { display: block; font-weight: 500; font-size: 12.5px; color: var(--gray-200); }
.sticky-cta-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.sticky-cta-close {
  position: absolute; top: -14px; right: 14px; width: 28px; height: 28px; border-radius: 50%;
  background: var(--navy-900); color: var(--white); border: 1px solid rgba(255,255,255,.25);
  font-size: 13px; cursor: pointer; display: flex; align-items: center; justify-content: center;
}
@media (max-width: 640px) {
  .sticky-cta-text small { display: none; }
}

/* ===== Сетка видео (RUTUBE) — 2 ряда по 5 карточек ===== */
.video-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
@media (max-width: 1100px) { .video-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .video-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; } }
.video-card { border-radius: var(--radius-lg); overflow: hidden; background: #000; box-shadow: 0 14px 32px rgba(0,0,0,.35); transition: transform .2s ease; cursor: pointer; }
.video-card:hover { transform: translateY(-4px); }
.video-card .video-frame { aspect-ratio: 9/16; position: relative; }
.video-card .video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; display: block; border: 0; }
.video-poster {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(160deg, var(--navy-800), var(--navy-900)) center / cover no-repeat;
}
.video-poster::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,20,28,.1) 0%, rgba(0,20,28,.55) 100%);
}
.video-play-ico {
  position: relative; z-index: 1;
  width: 52px; height: 52px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.16); border: 2px solid rgba(255,255,255,.65); color: #fff; font-size: 18px;
  transition: background .15s ease, transform .15s ease;
}
.video-card:hover .video-play-ico { background: var(--accent); border-color: var(--accent); transform: scale(1.08); }
.video-card.is-playing .video-poster { display: none; }
.video-card-caption { padding: 10px 14px 14px; background: rgba(255,255,255,.06); }
.video-card-caption h3 { color: #fff; font-size: 13.5px; margin: 0 0 3px; font-weight: 700; }
.video-card-caption p { color: var(--gray-200); font-size: 12px; margin: 0; line-height: 1.4; }
@media (max-width: 640px) {
  .video-card { flex: 0 0 190px; }
}

/* ===== Шапка / навигация ===== */
header.site-header {
  --shrink: 0; /* 0 = верх страницы, 1 = дошли до середины страницы */
  background: var(--navy-900);
  border-bottom: 1px solid rgba(255,255,255,.08);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 14px rgba(0,0,0,.18);
  transition: transform .35s ease, box-shadow .3s ease;
}
/* Как только начинается скролл вниз — шапка плавно сжимается (через --shrink),
   а когда доскроллили до середины страницы — прячется целиком, уезжая вверх */
header.site-header.is-hidden {
  transform: translateY(-100%);
  box-shadow: none;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: calc(4px - 2px * var(--shrink, 0)) 0;
  gap: 28px;
}
.logo {
  display: flex;
  flex-direction: column;
  line-height: 0.92;
  white-space: nowrap;
  text-decoration: none;
  transition: transform .15s ease;
  flex-shrink: 0;
}
.logo:hover { transform: scale(1.03); }
.logo-img {
  display: block;
  height: calc(139px - 63px * var(--shrink, 0));
  width: auto;
}
.header-phone small { opacity: calc(1 - var(--shrink, 0)); }
.btn-small { padding: calc(9px - 3px * var(--shrink, 0)) calc(18px - 4px * var(--shrink, 0)); }

nav.main-nav { flex: 1; display: flex; justify-content: center; min-width: 0; }
nav.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  column-gap: 22px;
  row-gap: calc(1px - 1px * var(--shrink, 0));
  width: 100%;
  max-width: 560px;
  font-size: calc(13px - 1.5px * var(--shrink, 0));
  font-weight: 600;
}
nav.main-nav li { border-bottom: 1px solid rgba(255,255,255,.06); }
nav.main-nav li:nth-last-child(-n+2) { border-bottom: none; }
nav.main-nav a {
  display: block;
  color: var(--gray-200);
  padding: calc(3px - 1px * var(--shrink, 0)) 2px;
  border-bottom: 2px solid transparent;
  line-height: 1.2;
  transition: color .15s ease, border-color .15s ease, padding-left .15s ease, padding .3s ease, line-height .3s ease;
}
nav.main-nav a:hover, nav.main-nav a.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
  padding-left: 4px;
}

.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 14.5px;
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform .5s ease;
}
.btn:hover::after { transform: translateX(120%); }
.btn-accent { background: var(--grad-mint); color: var(--navy-900); box-shadow: 0 6px 18px rgba(95,220,172,.35); }
.btn-accent:hover { filter: brightness(1.04); box-shadow: 0 10px 24px rgba(95,220,172,.45); }
.btn-yellow { background: var(--grad-yellow); color: var(--navy-900); box-shadow: 0 6px 18px rgba(230,230,0,.35); }
.btn-yellow:hover { filter: brightness(1.03); box-shadow: 0 10px 26px rgba(230,230,0,.45); }
.btn-outline { background: transparent; border: 2px solid var(--white); color: var(--white); }
.btn-outline:hover { background: var(--white); color: var(--navy-900); }
.btn-navy { background: var(--grad-navy); color: var(--white); box-shadow: 0 6px 18px rgba(0,60,80,.35); }
.btn-navy:hover { box-shadow: 0 10px 26px rgba(0,60,80,.45); }
.btn-block { width: 100%; text-align: center; }
.btn-small { padding: 9px 18px; font-size: 13.5px; transition: padding .3s ease, font-size .3s ease, transform .15s ease, box-shadow .15s ease, filter .15s ease; }

.header-cta { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.header-phone { font-weight: 700; color: var(--white); white-space: nowrap; }
.header-phone small { display: block; font-weight: 500; font-size: 11px; color: var(--gray-400); }

/* ===== Hero ===== */
.hero {
  background:
    radial-gradient(circle at 12% 8%, rgba(170,255,220,.30) 0%, transparent 42%),
    radial-gradient(circle at 88% 18%, rgba(255,255,0,.16) 0%, transparent 38%),
    radial-gradient(circle at 75% 92%, rgba(95,220,172,.22) 0%, transparent 45%),
    linear-gradient(135deg, var(--navy-800) 0%, var(--navy-900) 45%, #001f2b 80%, var(--navy-800) 100%);
  background-size: 200% 200%, 200% 200%, 200% 200%, 300% 300%;
  animation: heroGradientShift 16s ease infinite;
  color: var(--white);
  padding: 76px 0 88px;
  position: relative;
  overflow: hidden;
}
.hero::before, .hero::after {
  content: ""; position: absolute; border-radius: 50%; filter: blur(10px); pointer-events: none;
}
.hero-bg-art { display: none; }
.hero::before {
  width: 420px; height: 420px; background: radial-gradient(circle, rgba(170,255,220,.20) 0%, transparent 70%);
  top: -160px; right: -100px;
  animation: heroBlobFloat1 12s ease-in-out infinite;
}
.hero::after {
  width: 320px; height: 320px; background: radial-gradient(circle, rgba(255,255,0,.12) 0%, transparent 70%);
  bottom: -140px; left: -80px;
  animation: heroBlobFloat2 14s ease-in-out infinite;
}
@keyframes heroGradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@keyframes heroBlobFloat1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-30px, 40px) scale(1.12); }
}
@keyframes heroBlobFloat2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(35px, -30px) scale(1.15); }
}
@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .hero, .hero::before, .hero::after { animation: none; }
}
.hero h1, .hero h2, .hero h3, .hero h4, .hero p { color: var(--white); }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; position: relative; z-index: 1; }
.hero-grid > div:first-child > * { opacity: 0; animation: heroFadeUp .7s ease forwards; }
.hero-grid > div:first-child > *:nth-child(1) { animation-delay: .05s; }
.hero-grid > div:first-child > *:nth-child(2) { animation-delay: .15s; }
.hero-grid > div:first-child > *:nth-child(3) { animation-delay: .25s; }
.hero-grid > div:first-child > *:nth-child(4) { animation-delay: .35s; }
.hero-grid > div:first-child > *:nth-child(5) { animation-delay: .45s; }
.hero-visual { opacity: 0; animation: heroFadeUp .8s ease .3s forwards; }
.hero p.lead { font-size: 18px; color: var(--gray-200); max-width: 560px; }
.hero-subtitle { font-size: 17px; font-weight: 700; color: var(--accent); margin: -6px 0 16px; }
.hero-actions { display: flex; gap: 14px; margin-top: 26px; flex-wrap: wrap; }
.hero-form { display: flex; gap: 10px; margin-top: 26px; flex-wrap: wrap; width: 100%; position: relative; }
.form-status { width: 100%; margin: 4px 0 0; font-size: 13.5px; font-weight: 600; min-height: 18px; }
.form-status a { text-decoration: underline; }
.hero-form .form-status.is-success { color: var(--accent); }
.hero-form .form-status.is-error { color: var(--yellow); }
.hero-form .form-status.is-error a { color: var(--yellow); }
.modal-box .form-status.is-success { color: var(--accent-text); }
.modal-box .form-status.is-error { color: #c23b3b; }
.modal-box .form-status.is-error a { color: #c23b3b; }
.hero-form input {
  flex: 1; min-width: 200px; padding: 13px 18px; border-radius: 999px;
  border: 1.5px solid rgba(255,255,255,.25); background: rgba(255,255,255,.08);
  color: var(--white); font-size: 14.5px; font-family: inherit;
}
.hero-form input::placeholder { color: var(--gray-400); }
.hero-form input:focus { border-color: var(--accent-dark); background: rgba(255,255,255,.14); }
.hero-form .btn { border-radius: 999px; white-space: nowrap; }

.form-consent { width: 100%; font-size: 12.5px; line-height: 1.4; margin: 4px 0 10px; }
.form-consent label { position: relative; display: block; padding-left: 26px; cursor: pointer; }
.form-consent input[type="checkbox"] {
  position: absolute; left: 0; top: 1px; margin: 0; width: 17px; height: 17px;
  accent-color: var(--accent-dark); cursor: pointer;
}
.modal-box .form-consent { color: var(--gray-600); }
.modal-box .form-consent a { color: var(--accent-text); text-decoration: underline; }

.hero-form-note { width: 100%; font-size: 12px; line-height: 1.4; color: var(--gray-200); margin: 2px 0 0; }
.hero-form-note a { color: var(--accent); text-decoration: underline; }
.hero-badges { display: flex; gap: 24px; margin-top: 34px; flex-wrap: wrap; }
.hero-badge { font-size: 13.5px; color: var(--gray-200); }
.hero-badge b {
  display: block; font-family: "Unbounded", sans-serif; font-size: 28px; font-weight: 800;
  color: var(--accent); /* видимый цвет-фолбэк, если background-clip: text не поддерживается или отключены изображения (forced-colors) */
}
@supports (background-clip: text) or (-webkit-background-clip: text) {
  .hero-badge b { background: var(--grad-mint); -webkit-background-clip: text; background-clip: text; color: transparent; }
}
@media (forced-colors: active) {
  .hero-badge b { background: none; -webkit-background-clip: unset; background-clip: unset; color: LinkText; }
}
.hero-visual {
  background: rgba(255,255,255,.07);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: 0 20px 50px rgba(0,0,0,.25);
}
.hero-visual ul { list-style: none; padding: 0; margin: 0; }
.hero-visual li {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 13px 0; border-bottom: 1px solid rgba(255,255,255,.1);
  transition: padding-left .15s ease, background .15s ease;
}
.hero-visual li:hover { padding-left: 8px; background: rgba(255,255,255,.04); }
.hero-visual li:last-child { border-bottom: none; }
.hero-visual .ico {
  color: var(--navy-900); font-weight: 800; background: var(--grad-mint);
  width: 22px; height: 22px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 13px; flex-shrink: 0; margin-top: 1px;
  transition: transform .2s ease;
}
.hero-visual li:hover .ico { transform: scale(1.15) rotate(-8deg); }

/* ===== Сетка городов ===== */
.city-grid { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }
.city-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 16px; border-radius: 20px; background: var(--white);
  border: 1.5px solid var(--gray-200); font-size: 14px; font-weight: 600; color: var(--navy-800);
  box-shadow: var(--shadow); transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.city-chip::before { content: "📍"; font-size: 12px; }
.city-chip:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); border-color: var(--accent-dark); }

/* ===== Плавающая статистика (наезжает на низ hero) ===== */
.stat-strip {
  position: relative; z-index: 2; margin-top: -54px; margin-bottom: 40px;
}
.stat-strip .container {
  display: grid; grid-template-columns: repeat(5, 1fr);
  background: var(--white); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-hover);
  overflow: hidden;
}
.stat-item {
  padding: 26px 20px; text-align: center; border-right: 1px solid var(--gray-200);
  transition: background .15s ease;
}
.stat-item:last-child { border-right: none; }
.stat-item:hover { background: var(--gray-50); }
.stat-item b { display: block; font-family: "Unbounded", sans-serif; font-size: 30px; font-weight: 800; color: var(--navy-900); }
.stat-item span { font-size: 13px; color: var(--gray-600); font-weight: 600; }

/* ===== Карточки услуг / сетка ===== */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 26px;
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-200);
  position: relative;
  overflow: hidden;
  transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}
.card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: var(--grad-mint); transform: scaleX(0); transform-origin: left;
  transition: transform .25s ease;
}
.card:hover::before { transform: scaleX(1); }
.card:hover { box-shadow: var(--shadow-hover); transform: translateY(-5px); border-color: rgba(95,220,172,.4); }
.card .card-ico {
  width: 50px; height: 50px; border-radius: 14px;
  background: var(--grad-mint); color: var(--navy-900);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 22px; margin-bottom: 16px;
  box-shadow: 0 8px 16px rgba(95,220,172,.3);
  transition: transform .2s ease;
}
.card:hover .card-ico { transform: rotate(-6deg) scale(1.06); }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--gray-600); font-size: 14.5px; margin-bottom: 10px; }
.card a.card-link { font-weight: 700; color: var(--accent-text); font-size: 14px; display: inline-flex; align-items: center; gap: 4px; transition: gap .15s ease; }
.card a.card-link:hover { gap: 8px; }

/* Крупная акцентная карточка (featured) */
.card.featured {
  background: var(--grad-navy); color: var(--white); border: none;
  grid-column: span 2;
  display: flex; flex-direction: column; justify-content: center;
}
.card.featured h3, .card.featured p { color: var(--white); }
.card.featured p { color: var(--gray-200); }
.card.featured .card-ico { background: var(--grad-yellow); }
.card.featured::before { background: var(--grad-yellow); }
.card.featured a.card-link { color: var(--accent); }

/* ===== Хлебные крошки ===== */
.breadcrumbs { font-size: 13.5px; color: var(--gray-600); padding: 16px 0; }
.breadcrumbs a { color: var(--gray-600); }
.breadcrumbs a:hover { color: var(--accent-text); }
.breadcrumbs span.sep { margin: 0 6px; color: var(--gray-400); }

/* ===== Таблицы ===== */
.table-wrap { overflow-x: auto; margin-bottom: 20px; border-radius: var(--radius); border: 1px solid var(--gray-200); box-shadow: var(--shadow); }
table { width: 100%; border-collapse: collapse; background: var(--white); font-size: 14px; min-width: 600px; }
table caption { caption-side: top; padding: 13px 16px; font-weight: 800; text-align: left; background: var(--gray-100); }
th, td { padding: 11px 14px; border-bottom: 1px solid var(--gray-200); text-align: left; }
thead th { background: var(--grad-navy); color: var(--white); font-weight: 700; position: sticky; top: 0; }
tbody tr { transition: background .12s ease; }
tbody tr:nth-child(even) { background: var(--gray-50); }
tbody tr:hover { background: rgba(95,220,172,.1); }

/* ===== Формы ===== */
.form-box {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-hover);
  border: 1px solid var(--gray-200);
}
.form-row { margin-bottom: 16px; }
.form-row label { display: block; font-weight: 600; font-size: 13.5px; margin-bottom: 6px; color: var(--navy-800); }
.form-row input, .form-row select, .form-row textarea {
  width: 100%; padding: 11px 13px; border: 1.5px solid var(--gray-200);
  border-radius: 9px; font-size: 14.5px; font-family: inherit; background: var(--gray-50);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
  outline: none; border-color: var(--accent-dark); box-shadow: 0 0 0 3px rgba(95,220,172,.2);
}
.form-cols-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ===== Модальное окно заявки ===== */
.modal-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0,20,28,.6); backdrop-filter: blur(3px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.modal-overlay[hidden] { display: none; }
.modal-box {
  position: relative; background: var(--white); border-radius: var(--radius-lg);
  padding: 34px 30px; max-width: 420px; width: 100%;
  box-shadow: var(--shadow-hover);
  animation: modalPop .25s ease;
}
@keyframes modalPop { from { opacity: 0; transform: scale(.95) translateY(10px); } to { opacity: 1; transform: scale(1) translateY(0); } }
@media (prefers-reduced-motion: reduce) { .modal-box { animation: none; } }
.modal-close {
  position: absolute; top: 14px; right: 14px; width: 32px; height: 32px;
  border-radius: 50%; border: none; background: var(--gray-100); color: var(--navy-800);
  font-size: 15px; cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background .15s ease;
}
.modal-close:hover { background: var(--gray-200); }
.form-cols-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }

.result-box {
  background: var(--grad-navy); color: var(--white);
  border-radius: var(--radius-lg); padding: 26px; margin-top: 22px;
  box-shadow: var(--shadow-hover);
}
.result-box .result-line {
  display: flex; justify-content: space-between; padding: 9px 0;
  border-bottom: 1px solid rgba(255,255,255,.12); font-size: 14.5px;
}
.result-box .result-line.total { font-size: 20px; font-weight: 900; color: var(--accent); border-bottom: none; padding-top: 16px; }

/* ===== Тэги / бэйджи ===== */
.badge {
  display: inline-block; padding: 5px 13px; border-radius: 20px;
  font-size: 12.5px; font-weight: 700; background: var(--grad-mint); color: var(--navy-900);
  box-shadow: 0 4px 10px rgba(95,220,172,.3);
}
.badge-navy { background: rgba(0,60,80,.08); color: var(--navy-800); box-shadow: none; }

/* ===== Авто карточки ===== */
.car-card { background: var(--white); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--gray-200); box-shadow: var(--shadow); transition: box-shadow .2s ease, transform .2s ease; display: flex; flex-direction: column; }
.car-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-5px); }
.car-card .car-photo { height: 190px; background: var(--gray-100); display: flex; align-items: center; justify-content: center; color: var(--gray-600); font-size: 13px; font-weight: 600; flex-shrink: 0; }
.car-card .car-body { padding: 20px; display: flex; flex-direction: column; flex: 1 1 auto; }
.car-card .badge { background: var(--gray-100); color: var(--navy-800); box-shadow: none; }
.car-card .car-price { font-size: 21px; font-weight: 900; color: var(--navy-900); margin: 8px 0; margin-top: auto; }
.car-card .car-specs { list-style: none; padding: 0; margin: 0 0 14px; font-size: 13.5px; color: var(--gray-600); }
.car-card .car-specs li { display: flex; justify-content: space-between; padding: 4px 0; border-bottom: 1px dashed var(--gray-200); }

.filters-bar { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 26px; background: var(--white); padding: 16px; border-radius: var(--radius); border: 1px solid var(--gray-200); box-shadow: var(--shadow); }
.filters-bar select, .filters-bar input { padding: 9px 12px; border-radius: 8px; border: 1.5px solid var(--gray-200); font-size: 14px; }

/* ===== Car detail page ===== */
.car-detail-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 32px; }
.car-gallery-main { height: 340px; border-radius: var(--radius-lg); background: linear-gradient(135deg, var(--navy-700), var(--navy-900)); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.7); font-weight: 600; margin-bottom: 12px; }
.car-gallery-thumbs { display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; }
.car-gallery-thumbs div { height: 70px; border-radius: 9px; background: var(--gray-200); }
.spec-table { width: 100%; border-collapse: collapse; }
.spec-table td { padding: 9px 0; border-bottom: 1px solid var(--gray-200); font-size: 14.5px; }
.spec-table td:first-child { color: var(--gray-600); width: 55%; }
.spec-table td:last-child { font-weight: 700; color: var(--navy-900); }

/* ===== Steps (с соединительной линией) ===== */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; position: relative; }
.steps::before {
  content: ""; position: absolute; top: 20px; left: 12%; right: 12%; height: 2px;
  background: linear-gradient(90deg, var(--accent-dark), var(--yellow), var(--accent-dark));
  opacity: .4; z-index: 0;
}
.step { position: relative; padding-top: 8px; z-index: 1; }
.step::before {
  counter-increment: step; content: counter(step);
  display: flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--grad-mint); color: var(--navy-900); font-weight: 900; margin-bottom: 14px;
  box-shadow: 0 8px 18px rgba(95,220,172,.35);
  transition: transform .2s ease;
}
.step:hover::before { transform: scale(1.1) rotate(-6deg); }
.steps.steps-5 { grid-template-columns: repeat(5, 1fr); gap: 16px; }

/* ===== Footer ===== */
footer.site-footer { background: var(--grad-navy); color: var(--gray-200); padding: 50px 0 20px; margin-top: 40px; position: relative; overflow: hidden; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 30px; margin-bottom: 30px; position: relative; z-index: 1; }
.footer-grid h4 { color: var(--white); font-size: 15px; margin-bottom: 14px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 8px; font-size: 13.5px; }
.footer-grid a { transition: color .15s ease; }
.footer-grid a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 18px; font-size: 12.5px; color: var(--gray-400); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; position: relative; z-index: 1; }

.note-box {
  background: linear-gradient(90deg, rgba(245,228,0,.14), rgba(245,228,0,.06));
  border-left: 4px solid var(--yellow); border-radius: 0 var(--radius) var(--radius) 0;
  padding: 18px 20px; font-size: 14.5px; margin-bottom: 20px;
}
.note-box b { color: var(--navy-800); }

/* ===== Вкладки по странам (импорт авто) ===== */
.tabs-nav { display: flex; flex-wrap: wrap; gap: 10px; margin: 28px 0 24px; }
.tab-btn {
  padding: 12px 22px; border-radius: 999px; border: 1.5px solid var(--gray-200);
  background: var(--white); color: var(--navy-800); font-weight: 700; font-size: 14.5px;
  font-family: inherit; cursor: pointer; transition: border-color .2s ease, color .2s ease, background .2s ease, box-shadow .2s ease;
}
.tab-btn:hover { border-color: var(--accent-dark); color: var(--accent-text); }
.tab-btn.active { background: var(--grad-navy); color: var(--white); border-color: transparent; box-shadow: var(--shadow); }
.tab-panel {
  background: var(--white); border-radius: var(--radius-lg); border: 1px solid var(--gray-200);
  box-shadow: var(--shadow); padding: 34px 32px;
}
.tab-panel[hidden] { display: none; }
.tab-panel .tab-lead { color: var(--gray-600); font-size: 15px; max-width: 720px; margin-bottom: 26px; }
.tab-panel .steps { margin-bottom: 4px; }
.car-search-bar { position: relative; margin-top: 22px; max-width: 280px; }
.car-search-bar select {
  width: 100%; padding: 12px 16px; border: 1.5px solid var(--gray-200);
  border-radius: 999px; font-size: 14.5px; font-family: inherit; background: var(--white);
  box-shadow: var(--shadow); color: var(--navy-800); font-weight: 700; cursor: pointer;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.car-search-bar select:focus { outline: none; border-color: var(--accent-dark); box-shadow: 0 0 0 3px rgba(95,220,172,.2); }
.car-search-count { display: block; margin-top: 8px; font-size: 13px; color: var(--gray-600); }
.car-card.is-hidden { display: none; }
.car-more { margin: -4px 0 10px; }
.car-more summary { cursor: pointer; font-size: 12.5px; font-weight: 700; color: var(--accent-text); list-style: none; }
.car-more summary::-webkit-details-marker { display: none; }
.car-more summary::before { content: '+ '; }
.car-more[open] summary::before { content: '– '; }
.car-more ul { margin: 8px 0 0; padding-left: 18px; font-size: 12.5px; color: var(--gray-600); }
.car-more li { margin-bottom: 3px; }

.faq-item { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 16px 20px; margin-bottom: 10px; }
.faq-item summary { cursor: pointer; font-weight: 700; color: var(--navy-900); font-size: 15px; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before { content: '+ '; color: var(--accent-dark); }
.faq-item[open] summary::before { content: '– '; }
.faq-item p { color: var(--gray-600); font-size: 14px; margin-top: 10px; line-height: 1.6; }
@media (max-width: 640px) {
  .tab-panel { padding: 26px 20px; }
}

.cta-strip { background: var(--grad-yellow); color: var(--navy-900); padding: 48px 0; text-align: center; position: relative; overflow: hidden; }
.cta-strip::before {
  content: ""; position: absolute; width: 300px; height: 300px; border-radius: 50%;
  background: radial-gradient(circle, rgba(0,60,80,.08) 0%, transparent 70%);
  top: -120px; left: -60px;
}
.cta-strip h2, .cta-strip p { color: var(--navy-900); position: relative; z-index: 1; }
.cta-strip .btn-outline { border-color: var(--navy-900); color: var(--navy-900); }
.cta-strip .btn-outline:hover { background: var(--navy-900); color: var(--white); }
.cta-strip > .container { position: relative; z-index: 1; }

/* ===== Как нас найти: карта, отзывы, соцссылки ===== */
.find-us-grid { margin-top: 22px; align-items: stretch; }
.map-card, .reviews-card {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--gray-200); box-shadow: var(--shadow);
}
.map-card iframe, .reviews-card iframe { display: block; border: none; }
.reviews-card { display: flex; flex-direction: column; }
.link-fallback {
  display: block; text-align: center; padding: 12px; font-weight: 700;
  color: var(--accent-text); border-top: 1px solid var(--gray-200);
}
.link-fallback:hover { background: var(--gray-50); }
.social-links { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 22px; }
.social-link {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--white); border: 1.5px solid var(--gray-200); border-radius: 999px;
  padding: 12px 22px; font-weight: 700; color: var(--navy-800); font-size: 14.5px;
  box-shadow: var(--shadow); transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.social-link:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); border-color: var(--accent-dark); }
.social-ico { color: var(--accent-text); font-size: 16px; }
@media (max-width: 900px) {
  .find-us-grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .hero-grid, .car-detail-grid, .footer-grid { grid-template-columns: 1fr; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; }
  .card.featured { grid-column: span 2; }
  .steps { grid-template-columns: 1fr 1fr; }
  .steps::before { display: none; }
  .steps.steps-5 { grid-template-columns: 1fr 1fr; }
  .stat-strip .container { grid-template-columns: 1fr 1fr; }
  .stat-item { border-bottom: 1px solid var(--gray-200); }
  nav.main-nav { display: none; }
  .form-cols-2, .form-cols-3 { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .grid-2, .grid-3, .grid-4, .steps, .steps.steps-5 { grid-template-columns: 1fr; }
  .card.featured { grid-column: span 1; }
  .stat-strip .container { grid-template-columns: 1fr; }
  .header-phone { display: none; }
  .logo-img { height: 96px; }
}
