/* ============================================================
   АвтоКарма — основные стили
   ============================================================ */

:root {
  --color-primary: #f97316;
  --color-primary-dark: #ea580c;
  --color-primary-light: #fdba74;
  --color-bg: #0b0f19;
  --color-bg-alt: #111827;
  --color-surface: #1a2332;
  --color-surface-elevated: #243044;
  --color-text: #e2e8f0;
  --color-text-muted: #94a3b8;
  --color-text-light: #64748b;
  --color-border: #2d3a4f;
  --color-dark: #060a12;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 4px 24px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.45);
  --radius: 12px;
  --radius-lg: 16px;
  --header-h: 64px;
  --transition: 0.2s ease;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body.menu-open { overflow: hidden; }

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a { color: inherit; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.container--narrow { max-width: 760px; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Sections */
.section { padding: 88px 0; }

.section--alt { background: var(--color-bg-alt); }

.section__header {
  text-align: center;
  margin-bottom: 48px;
}

.section__tag {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

.section__title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  margin: 0 0 12px;
  color: var(--color-text);
  line-height: 1.2;
}

.section__desc {
  font-size: 16px;
  color: var(--color-text-muted);
  margin: 0 auto;
  max-width: 560px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  font-family: inherit;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.btn:hover { transform: translateY(-1px); }

.btn--primary {
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 4px 14px rgba(249, 115, 22, 0.35);
}

.btn--primary:hover {
  background: var(--color-primary-dark);
  box-shadow: 0 6px 20px rgba(249, 115, 22, 0.4);
}

.btn--outline {
  background: transparent;
  border: 2px solid #fff;
  color: #fff;
}

.btn--outline:hover {
  background: rgba(255, 255, 255, 0.1);
}

.btn--lg { padding: 16px 32px; font-size: 16px; }
.btn--sm { padding: 8px 16px; font-size: 13px; }
.btn--full { width: 100%; }

/* Forms */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  font-size: 15px;
  font-family: inherit;
  color: var(--color-text);
  background: var(--color-surface);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.15);
}

.form-group select option {
  background: var(--color-surface);
  color: var(--color-text);
}

.form-privacy {
  font-size: 12px;
  color: var(--color-text-light);
  margin: 12px 0 0;
  text-align: center;
}

.form-privacy a { color: var(--color-primary); }

.form-consent {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.4;
  color: var(--color-text-light);
  cursor: pointer;
}

.form-consent input[type="checkbox"] {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--color-primary);
  cursor: pointer;
}

.form-consent a { color: var(--color-primary); }

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(11, 15, 25, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.header--scrolled {
  border-bottom-color: var(--color-border);
  box-shadow: var(--shadow-sm);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--color-text);
  font-weight: 700;
  font-size: 18px;
  flex-shrink: 0;
}

.logo__icon { width: 32px; height: 32px; flex-shrink: 0; }
.logo__accent { color: var(--color-primary); }

.nav__list {
  display: flex;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__link {
  text-decoration: none;
  color: var(--color-text-muted);
  font-size: 14px;
  font-weight: 500;
  transition: color var(--transition);
  white-space: nowrap;
}

.nav__link:hover { color: var(--color-primary); }

.header__socials {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.header__icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
  cursor: pointer;
  text-decoration: none;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}

.header__icon-btn:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

.header__icon {
  width: 18px;
  height: 18px;
}

.header__phone {
  display: flex;
  align-items: center;
  border-radius: 18px;
  border: 1px solid transparent;
  transition: background var(--transition), border-color var(--transition);
}

.header__phone .header__icon-btn {
  position: relative;
  z-index: 1;
}

.header__phone-number {
  max-width: 0;
  opacity: 0;
  overflow: hidden;
  white-space: nowrap;
  text-decoration: none;
  color: var(--color-text);
  font-size: 14px;
  font-weight: 600;
  padding-right: 0;
  transition: max-width 0.35s ease, opacity 0.25s ease, padding-right 0.35s ease;
}

.header__phone.is-open {
  background: var(--color-surface);
  border-color: var(--color-border);
}

.header__phone.is-open .header__icon-btn {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

.header__phone.is-open .header__phone-number {
  max-width: 220px;
  opacity: 1;
  padding-right: 16px;
}

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
}

.burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.burger--open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger--open span:nth-child(2) { opacity: 0; }
.burger--open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--header-h);
  color: #fff;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.88) 0%, rgba(15, 23, 42, 0.55) 100%);
}

.hero__content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 80px 20px;
}

.hero__text {
  max-width: 720px;
  flex: 1 1 480px;
}

.hero__badge {
  display: inline-block;
  background: rgba(249, 115, 22, 0.2);
  border: 1px solid rgba(249, 115, 22, 0.4);
  color: var(--color-primary-light);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 20px;
}

.hero__title {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 800;
  line-height: 1.1;
  margin: 0 0 20px;
}

.text-gradient {
  background: linear-gradient(90deg, #f97316, #fbbf24);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__subtitle {
  font-size: clamp(16px, 2.5vw, 18px);
  color: #cbd5e1;
  max-width: 520px;
  margin: 0 0 32px;
}

.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hero__stats {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}

.hero__stat-value {
  display: block;
  font-size: 28px;
  font-weight: 800;
  color: var(--color-primary);
}

.hero__stat-label {
  font-size: 13px;
  color: var(--color-text-light);
}

.hero__stat-divider {
  width: 1px;
  height: 40px;
  background: #475569;
}

.hero__car-wrap {
  flex: 1 1 380px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  min-width: 0;
  overflow: hidden;
}

.hero__car {
  width: 100%;
  max-width: 560px;
  height: auto;
  filter: drop-shadow(0 30px 30px rgba(0, 0, 0, 0.45));
  animation: heroCarEnter 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes heroCarEnter {
  from {
    transform: translateX(-70%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__car {
    animation: none;
  }
}

main { padding-top: 0; }

/* Advantages */
.advantages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.advantage-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: transform var(--transition), box-shadow var(--transition);
}

.advantage-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(249, 115, 22, 0.25);
  background: var(--color-surface-elevated);
}

.advantage-card__icon {
  font-size: 32px;
  margin-bottom: 16px;
}

.advantage-card__title {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 8px;
}

.advantage-card__text {
  font-size: 14px;
  color: var(--color-text-muted);
  margin: 0;
  line-height: 1.6;
}

/* Timeline */
.timeline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  position: relative;
}

.timeline__item {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  position: relative;
}

.timeline__step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: rgba(249, 115, 22, 0.12);
  color: var(--color-primary);
  font-weight: 800;
  font-size: 14px;
  border-radius: 10px;
  margin-bottom: 16px;
}

.timeline__title {
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 8px;
}

.timeline__text {
  font-size: 14px;
  color: var(--color-text-muted);
  margin: 0;
}

/* Process — scroll-linked car animation */
.process-scroll {
  position: relative;
  height: 220vh;
  margin-top: 24px;
}

.process-sticky {
  position: sticky;
  top: var(--header-h);
  height: calc(100vh - var(--header-h));
  display: flex;
  align-items: center;
  overflow: hidden;
}

.process-track {
  position: relative;
  height: clamp(140px, 20vh, 200px);
  margin: 0 0 32px;
}

.process-track__line {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 3px;
  margin-top: -1px;
  background-image: repeating-linear-gradient(90deg, var(--color-border) 0 12px, transparent 12px 22px);
}

.process-track__progress {
  position: absolute;
  left: 0;
  top: 50%;
  width: 100%;
  height: 3px;
  margin-top: -1px;
  background: var(--color-primary);
  border-radius: 2px;
  transform-origin: left center;
  transform: scaleX(0);
  will-change: transform;
}

.process-stages {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.process-stage {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.process-stage__dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--color-surface-elevated);
  border: 2px solid var(--color-border);
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
}

.process-stage.is-active .process-stage__dot,
.process-stage.is-passed .process-stage__dot {
  background: var(--color-primary);
  border-color: var(--color-primary);
}

.process-stage.is-active .process-stage__dot {
  transform: scale(1.35);
}

.process-stage__label {
  font-size: 12px;
  color: var(--color-text-light);
  text-align: center;
  max-width: 100px;
  transition: color var(--transition);
}

.process-stage.is-active .process-stage__label {
  color: var(--color-text);
  font-weight: 700;
}

.process-car {
  position: absolute;
  top: 50%;
  left: 0;
  width: clamp(120px, 15vw, 190px);
  height: auto;
  margin-top: -24px;
  filter: drop-shadow(0 14px 14px rgba(0, 0, 0, 0.5));
  will-change: transform;
}

.process-current {
  text-align: center;
}

.process-current__icon {
  display: block;
  font-size: 28px;
  margin-bottom: 8px;
}

.process-current__title {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  margin: 0 0 8px;
}

.process-current__text {
  font-size: 14px;
  color: var(--color-text-muted);
  max-width: 520px;
  margin: 0 auto;
}

.process-static { display: none; }

.process-static__car {
  grid-column: 1 / -1;
  display: block;
  width: 100%;
  max-width: clamp(160px, 40vw, 280px);
  height: auto;
  margin: 0 auto 24px;
}

@media (max-width: 768px), (prefers-reduced-motion: reduce) {
  .process-scroll { height: auto; }

  .process-sticky {
    position: static;
    height: auto;
    padding: 8px 0 0;
  }

  .process-animated { display: none; }

  .process-static { display: grid; }
}

/* Calculator */
.calculator-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-sm);
}

.calculator-info .section__tag,
.calculator-info .section__title,
.calculator-info .section__desc {
  text-align: left;
  margin-inline: 0;
}

.calculator-features {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.calculator-features li {
  font-size: 14px;
  color: var(--color-text-muted);
  padding-left: 24px;
  position: relative;
}

.calculator-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-primary);
  font-weight: 700;
}

.calculator-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.calculator-result {
  margin-top: 8px;
  padding: 20px;
  background: var(--color-bg-alt);
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
}

.calculator-result__label {
  font-size: 13px;
  color: var(--color-text-muted);
  margin: 0 0 4px;
}

.calculator-result__value {
  font-size: 28px;
  font-weight: 800;
  color: var(--color-primary);
  margin: 0;
}

.calculator-result__note {
  font-size: 12px;
  color: var(--color-text-light);
  margin: 8px 0 0;
}

/* Markets */
.infographic-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.market-card {
  text-align: center;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  transition: transform var(--transition), box-shadow var(--transition);
}

.market-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(249, 115, 22, 0.25);
  background: var(--color-surface-elevated);
}

.market-card__flag {
  font-size: 48px;
  margin-bottom: 16px;
}

.market-card__title {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 12px;
}

.market-card__text {
  font-size: 14px;
  color: var(--color-text-muted);
  margin: 0;
}

/* Stats */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}

.stat-card {
  text-align: center;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px 20px;
}

.stat-card__value {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 8px;
}

.stat-card__label {
  font-size: 14px;
  color: var(--color-text-muted);
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.gallery-item {
  border: none;
  padding: 0;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4 / 3;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.gallery-item:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-md);
  border-color: rgba(249, 115, 22, 0.3);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Reviews */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.review-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.review-card__stars {
  color: #fbbf24;
  font-size: 18px;
  letter-spacing: 2px;
}

.review-card__text {
  font-size: 15px;
  color: var(--color-text-muted);
  margin: 0;
  flex: 1;
  line-height: 1.65;
}

.review-card__author {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.review-card__author strong {
  font-size: 15px;
  color: var(--color-text);
}

.review-card__author span {
  font-size: 13px;
  color: var(--color-text-light);
}

/* FAQ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
}

.faq-item__question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text);
  text-align: left;
}

.faq-item__icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--color-text-muted);
  transition: transform var(--transition);
}

.faq-item.is-open .faq-item__icon { transform: rotate(180deg); }

.faq-item__answer {
  padding: 0 20px 18px;
}

.faq-item__answer p {
  margin: 0;
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.65;
}

/* About */
.about-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.about-content .section__tag,
.about-content .section__title {
  text-align: left;
}

.about-content p {
  font-size: 15px;
  color: var(--color-text-muted);
  margin: 0 0 16px;
  line-height: 1.7;
}

.about-values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 28px;
}

.about-value {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 16px;
}

.about-value strong {
  display: block;
  font-size: 14px;
  margin-bottom: 4px;
  color: var(--color-primary);
}

.about-value span {
  font-size: 12px;
  color: var(--color-text-muted);
}

.about-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 360px;
}

/* CTA */
.cta-section { padding-bottom: 88px; }

.cta-banner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  background: linear-gradient(135deg, var(--color-bg-alt) 0%, var(--color-surface) 100%);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 48px;
  color: #fff;
}

.cta-banner__title {
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 800;
  margin: 0 0 12px;
  line-height: 1.25;
}

.cta-banner__desc {
  font-size: 15px;
  color: #94a3b8;
  margin: 0;
}

.cta-form__fields {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}

.cta-form .form-group input {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.cta-form .form-group input::placeholder { color: #94a3b8; }

.cta-form .form-group input:focus {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--color-primary);
}

.cta-form .form-privacy { color: #64748b; }

/* Contacts */
.contacts-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 32px;
  align-items: stretch;
}

.contacts-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 16px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}

.contact-item__icon {
  font-size: 24px;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(249, 115, 22, 0.1);
  border-radius: 10px;
}

.contact-item strong {
  display: block;
  font-size: 13px;
  color: var(--color-text-light);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}

.contact-item a {
  color: var(--color-text);
  text-decoration: none;
  font-weight: 500;
}

.contact-item a:hover { color: var(--color-primary); }

.contact-item span {
  font-size: 15px;
  color: var(--color-text);
}

.contacts-map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 360px;
  border: 1px solid var(--color-border);
}

.contacts-map iframe {
  display: block;
  border: 0;
  min-height: 360px;
}

/* Footer */
.footer {
  background: var(--color-dark);
  color: #94a3b8;
  padding: 48px 0 24px;
}

.footer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 24px;
}

.logo--footer .logo__text { color: #fff; }

.footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.footer__nav a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 14px;
  transition: color var(--transition);
}

.footer__nav a:hover { color: var(--color-primary); }

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer__copy {
  margin: 0;
  font-size: 13px;
}

.footer__privacy {
  font-size: 13px;
  color: #94a3b8;
  text-decoration: none;
}

.footer__privacy:hover { color: var(--color-primary); }

.footer__requisites {
  font-size: 12px;
  color: #64748b;
  margin: 0 0 16px;
}

.footer__requisite-missing {
  color: #f59e0b;
}

/* Back to top */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 90;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: var(--color-primary);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  transition: background var(--transition), transform var(--transition);
}

.back-to-top:hover {
  background: var(--color-primary-dark);
  transform: translateY(-2px);
}

.back-to-top svg { width: 20px; height: 20px; }

/* Lightbox */
.lightbox[hidden] { display: none !important; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.85);
  cursor: pointer;
}

.lightbox__dialog {
  position: relative;
  z-index: 1;
  max-width: 90vw;
  max-height: 90vh;
}

.lightbox__img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: var(--radius);
  object-fit: contain;
}

.lightbox__close {
  position: absolute;
  top: -40px;
  right: 0;
  background: none;
  border: none;
  color: #fff;
  font-size: 32px;
  cursor: pointer;
  line-height: 1;
  padding: 4px 8px;
}

/* Toast */
.toast[hidden] { display: none !important; }

.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  z-index: 300;
  background: var(--color-dark);
  color: #fff;
  padding: 14px 24px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  max-width: calc(100vw - 40px);
  text-align: center;
}

.toast.is-show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1024px) {
  .advantages-grid,
  .timeline,
  .infographic-grid,
  .reviews-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 600px;
  }

  .stats-grid .stat-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    justify-self: center;
    width: calc(50% - 12px);
  }

  .calculator-wrapper,
  .about-wrapper,
  .cta-banner,
  .contacts-wrapper {
    grid-template-columns: 1fr;
  }

  .about-image { order: -1; }
}

@media (max-width: 768px) {
  .section { padding: 64px 0; }

  .header__cta { display: none; }

  .header__socials { gap: 6px; }

  .burger { display: flex; }

  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    height: calc(100vh - var(--header-h));
    height: calc(100dvh - var(--header-h));
    background: var(--color-surface);
    padding: 24px 20px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 99;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .nav--open { transform: translateX(0); }

  .nav__list {
    flex-direction: column;
    gap: 0;
  }

  .nav__link {
    display: block;
    padding: 14px 0;
    font-size: 16px;
    border-bottom: 1px solid var(--color-border);
  }

  .hero__content { flex-direction: column; align-items: stretch; padding: 48px 20px 40px; }

  .hero__car-wrap { justify-content: center; margin-top: 24px; }
  .hero__car { max-width: 280px; }

  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; }

  .hero__stat-divider { display: none; }

  .advantages-grid,
  .timeline,
  .infographic-grid,
  .stats-grid,
  .gallery-grid,
  .reviews-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    max-width: none;
  }

  .stats-grid .stat-card:last-child:nth-child(odd) {
    grid-column: auto;
    justify-self: stretch;
    width: auto;
  }

  .about-values { grid-template-columns: 1fr; }

  .calculator-wrapper,
  .cta-banner {
    padding: 28px 20px;
  }

  .cars-carousel__btn--prev { left: 4px; }
  .cars-carousel__btn--next { right: 4px; }
}

@media (max-width: 480px) {
  .hero__stats { gap: 20px; }
  .footer__top { flex-direction: column; align-items: flex-start; }

  .header__icon-btn {
    width: 32px;
    height: 32px;
  }

  .header__icon { width: 16px; height: 16px; }

  .header__phone-number { font-size: 13px; }
}
