:root {
  --bg: #ffffff;
  --text: #1f2024;
  --muted: #6b717d;
  --accent: #d80f17;
  --accent-soft: #fff1f1;
  --line: #ebedf2;
  --radius: 16px;
  --radius-sm: 12px;
  --card-shadow: 0 10px 30px rgba(31, 32, 36, 0.06);
  --container: min(1200px, calc(100% - 32px));
  --space-1: 8px;
  --space-2: 12px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 32px;
  --space-6: 48px;
  --space-7: 64px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

body {
  font-family: Inter, system-ui, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.45;
}

.container {
  width: var(--container);
  margin-inline: auto;
}

.section {
  padding: var(--space-6) 0;
}

.section-title {
  font-size: clamp(28px, 3vw, 40px);
  margin: 0;
  text-align: center;
}

.title-ornament {
  width: 188px;
  max-width: 55%;
  margin: var(--space-2) auto var(--space-5);
  display: block;
  opacity: 1;
  background: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
}

.header-inner {
  min-height: 84px;
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: inherit;
  text-decoration: none;
}

.logo strong {
  display: block;
  font-size: clamp(20px, 2.2vw, 28px);
  line-height: 1.05;
}

.logo small {
  color: var(--muted);
  font-size: 13px;
}

.logo-mark {
  width: 54px;
  height: 54px;
  border-radius: 0;
  border: 0;
  padding: 0;
  background: transparent;
  object-fit: contain;
}

.main-nav {
  margin-left: auto;
  display: flex;
  gap: var(--space-4);
}

.main-nav a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
}

.main-nav a:hover,
.main-nav a.is-active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.menu-toggle {
  display: none;
  border: 1px solid #f1d0d2;
  background: #fff;
  border-radius: 10px;
  width: 44px;
  height: 44px;
  padding: 8px;
  margin-left: auto;
}

.menu-toggle img {
  width: 100%;
  height: 100%;
}

.btn {
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 13px 22px;
  text-decoration: none;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s ease;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: #be0d14;
}

.btn-outline {
  border-color: #f3b8ba;
  color: var(--accent);
  background: #fff;
}

.btn-light {
  background: #fff;
  color: var(--accent);
}

.hero {
  position: relative;
  isolation: isolate;
  padding-top: var(--space-7);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.hero-bg {
  background-image: image-set(
    url('assets/hero/hero-bg.png') 1x,
    url('assets/hero/hero-bg@2x.png') 2x
  );
  background-repeat: no-repeat;
  background-size: min(1640px, 140%);
  background-position: center top;
  opacity: 0.28;
}

.hero-grid {
  display: grid;
  align-items: start;
  gap: var(--space-4);
  grid-template-columns: 1.05fr 1fr;
  grid-template-areas:
    'content form'
    'visual form';
}

.hero-content {
  grid-area: content;
}

.hero-star {
  width: 38px;
  height: 38px;
  margin-bottom: var(--space-2);
}

.hero-content h1 {
  font-size: clamp(34px, 4.7vw, 56px);
  line-height: 1.08;
  margin: 0 0 var(--space-3);
}

.hero-content p {
  font-size: clamp(17px, 1.5vw, 20px);
  color: var(--muted);
  margin: 0 0 var(--space-4);
  max-width: 60ch;
}

.hero-actions {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.hero-illustration {
  grid-area: visual;
  max-width: 520px;
  background: none;
  background-image: none;
}

.hero-car-media,
.hero-car-media img {
  width: 100%;
  max-width: 100%;
  display: block;
  background: none;
  background-image: none;
}

.hero-car-media img {
  height: auto;
  object-fit: contain;
}

.hero-illustration img {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

.lead-form {
  grid-area: form;
  align-self: stretch;
}

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: var(--space-4);
  box-shadow: var(--card-shadow);
}

.lead-form h2 {
  margin: 0;
  font-size: clamp(28px, 3.2vw, 36px);
}

.lead-form p {
  margin: var(--space-1) 0 var(--space-3);
  color: var(--muted);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}

.form-grid input {
  width: 100%;
  padding: 14px;
  border-radius: 10px;
  border: 1px solid #dfe3ea;
  font: inherit;
}

.lead-form small {
  display: block;
  margin-top: var(--space-3);
  color: var(--muted);
}

.form-status {
  min-height: 22px;
  margin: var(--space-2) 0 0;
  color: var(--accent);
  font-weight: 600;
}

.grid {
  display: grid;
  gap: var(--space-3);
}

.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.feature {
  text-align: center;
  min-height: 190px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--space-4) + 4px) var(--space-3) var(--space-4);
}

.feature img {
  width: 100%;
  max-width: 96px;
  max-height: 72px;
  height: auto;
  margin: 0 auto var(--space-2);
  object-fit: contain;
}

.knowledge-card img {
  width: 100%;
  max-width: 98px;
  max-height: 70px;
  height: auto;
  margin: 0 auto var(--space-2);
  object-fit: contain;
}

.feature h3,
.knowledge-card h3 {
  margin: 0;
  font-size: 19px;
}

.work-steps {
  --step-icon-h: 64px;
  --step-number-h: 32px;
  --step-gap: 8px;
  list-style: none;
  margin: 0;
  padding: var(--space-4);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: var(--space-2);
  position: relative;
}

.work-steps::before {
  content: '';
  position: absolute;
  left: var(--space-4);
  right: var(--space-4);
  top: calc(var(--space-4) + var(--step-icon-h) + var(--step-gap) + (var(--step-number-h) / 2));
  border-top: 1px solid #f2b0b3;
  z-index: 0;
}

.work-steps li {
  position: relative;
  z-index: 1;
  text-align: center;
  display: grid;
  grid-template-rows: var(--step-icon-h) var(--step-number-h) minmax(72px, auto);
  gap: var(--step-gap);
  justify-items: center;
  align-items: start;
  align-content: start;
}

.work-steps li img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  align-self: center;
}

.step-number {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  display: grid;
  place-items: center;
  font-size: 14px;
  align-self: center;
}

.work-steps p {
  margin: 0;
  color: var(--text);
  font-size: 13px;
  line-height: 1.35;
  max-width: 15ch;
  min-height: 54px;
}

.delivery-note {
  margin-top: var(--space-3);
  border: 1px solid #f3d2d4;
  border-radius: 12px;
  background: var(--accent-soft);
  text-align: center;
  padding: var(--space-3);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
}

.delivery-note img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.links-grid .list-link {
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  text-align: center;
  min-height: 230px;
  padding: calc(var(--space-4) + 6px) calc(var(--space-3) + 2px);
  justify-content: center;
  overflow: visible;
}

.list-link img {
  width: min(100%, 156px);
  max-width: 100%;
  max-height: 130px;
  height: auto;
  object-fit: contain;
  object-position: center;
  margin: 0 auto;
  background: none;
  background-image: none;
}

.list-link:hover {
  color: var(--accent);
}

.model-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.model-card {
  padding: var(--space-3);
}

.model-card img {
  width: 100%;
  border-radius: 10px;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.model-card h3 {
  margin: var(--space-2) 0 4px;
  font-size: 20px;
}

.model-card p,
.caption {
  margin: 0;
  color: var(--muted);
}

.caption {
  margin-top: var(--space-3);
  font-size: 14px;
}

.knowledge-card {
  min-height: 220px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.knowledge-card h3 {
  line-height: 1.3;
}

.knowledge-card a {
  margin-top: auto;
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.contacts-grid {
  align-items: stretch;
}

.contact-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: calc(var(--space-4) + 4px);
  padding-bottom: calc(var(--space-4) + 8px);
}

.city-illustration {
  width: min(100%, 460px);
  max-height: 148px;
  height: auto;
  margin: 0 auto var(--space-1);
  object-fit: contain;
  object-position: center center;
  background: none;
  background-image: none;
}

.contact-card h3 {
  margin: 0;
}

.contact-card p {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
}

.contact-card p img {
  width: 18px;
  height: 18px;
}

.meet-note {
  margin: var(--space-3) 0 0;
  color: var(--muted);
  text-align: center;
}

.site-footer {
  margin-top: var(--space-6);
  background: var(--accent);
  color: #fff;
}

.footer-top {
  padding: 20px 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-3);
  position: relative;
}

.footer-top p {
  font-size: clamp(21px, 2.5vw, 34px);
  margin: 0;
  font-weight: 700;
  text-align: center;
}

.footer-ornament {
  width: 80px;
  height: auto;
  opacity: 0.92;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  padding: var(--space-4) 0;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: var(--space-3);
}

.footer-bottom .logo strong,
.footer-bottom .logo small,
.footer-bottom a,
.footer-meta p {
  color: #fff;
}

.footer-bottom nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.footer-meta {
  text-align: right;
}

@media (max-width: 1120px) {
  .work-steps {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .work-steps::before {
    display: none;
  }
}

@media (max-width: 1024px) {
  .grid-4,
  .model-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      'content'
      'visual'
      'form';
  }

  .header-cta {
    display: none;
  }

  .main-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 84px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: var(--space-3) var(--space-4);
    display: none;
    flex-direction: column;
  }

  .main-nav.is-open {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }

  .work-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-ornament {
    display: none;
  }
}

@media (max-width: 700px) {
  .section {
    padding: var(--space-5) 0;
  }

  .logo strong {
    font-size: 22px;
  }

  .logo-mark {
    width: 46px;
    height: 46px;
    padding: 0;
  }

  .hero {
    padding-top: var(--space-6);
  }

  .hero {
    overflow: hidden;
  }

  .hero-bg {
    background-image: image-set(
      url('assets/hero/hero-bg.png') 1x,
      url('assets/hero/hero-bg@2x.png') 2x
    );
    background-position: center top;
    background-size: min(980px, 156%);
    opacity: 0.24;
  }

  .hero-content h1 {
    font-size: clamp(32px, 10vw, 44px);
  }

  .hero-content p {
    font-size: 17px;
  }

  .grid-2,
  .grid-4,
  .model-grid,
  .form-grid,
  .work-steps {
    grid-template-columns: 1fr;
  }

  .work-steps li {
    text-align: left;
    grid-template-columns: 50px 32px 1fr;
    grid-template-rows: 1fr;
    align-items: center;
    gap: 10px;
  }

  .work-steps li img {
    width: 46px;
    height: 46px;
  }

  .work-steps p {
    font-size: 14px;
    max-width: none;
  }

  .footer-top {
    flex-direction: column;
  }

  .footer-bottom {
    grid-template-columns: 1fr;
  }

  .footer-meta {
    text-align: left;
  }
}
