:root {
  --primary: #e94560;
  --primary-dark: #c73a52;
  --primary-light: #ff6b81;
  --dark: #0a0a1a;
  --dark-2: #12122a;
  --dark-3: #1a1a3e;
  --dark-4: #252550;
  --text: #e8e8f0;
  --text-muted: #8888a8;
  --text-dark: #1a1a2e;
  --white: #ffffff;
  --bg: #0a0a1a;
  --bg-card: #12122a;
  --bg-card-hover: #1a1a3e;
  --border: rgba(255,255,255,0.08);
  --border-light: rgba(255,255,255,0.15);
  --shadow: 0 4px 24px rgba(0,0,0,0.3);
  --shadow-lg: 0 8px 48px rgba(0,0,0,0.4);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

.hidden { display: none !important; }

.text-accent { color: var(--primary); }

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

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 28px; border-radius: var(--radius-sm); font-family: var(--font);
  font-weight: 600; font-size: 15px; cursor: pointer; border: none;
  transition: var(--transition); white-space: nowrap;
}
.btn--primary { background: var(--primary); color: var(--white); }
.btn--primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 4px 20px rgba(233,69,96,0.4); }
.btn--outline { background: transparent; color: var(--white); border: 1.5px solid var(--border-light); }
.btn--outline:hover { border-color: var(--primary); color: var(--primary); }
.btn--ghost { background: transparent; color: var(--white); border: 1.5px solid rgba(255,255,255,0.3); }
.btn--ghost:hover { background: rgba(255,255,255,0.1); }
.btn--sm { padding: 8px 20px; font-size: 13px; }
.btn--lg { padding: 16px 36px; font-size: 16px; }
.btn--full { width: 100%; }

.dev-gate {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: var(--dark); padding: 20px;
}
.dev-gate__box {
  text-align: center; max-width: 420px; width: 100%;
  background: var(--dark-2); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 48px 36px;
  box-shadow: var(--shadow-lg);
}
.dev-gate__logo {
  font-size: 36px; font-weight: 900; letter-spacing: 2px; margin-bottom: 24px;
  color: var(--white);
}
.dev-gate__logo span { color: var(--primary); }
.dev-gate__text { font-size: 20px; font-weight: 600; margin-bottom: 8px; color: var(--text); }
.dev-gate__subtext { font-size: 14px; color: var(--text-muted); margin-bottom: 28px; }
.dev-gate__form { display: flex; gap: 10px; margin-bottom: 12px; }
.dev-gate__form input {
  flex: 1; padding: 12px 16px; border-radius: var(--radius-sm);
  border: 1.5px solid var(--border); background: var(--dark-3);
  color: var(--white); font-family: var(--font); font-size: 14px; outline: none;
  transition: var(--transition);
}
.dev-gate__form input:focus { border-color: var(--primary); }
.dev-gate__hint { font-size: 13px; color: var(--primary); min-height: 20px; }

.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 16px 0; transition: var(--transition);
  background: transparent;
}
.header.scrolled {
  background: rgba(10, 10, 26, 0.95); backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border); padding: 12px 0;
}
.header__inner { display: flex; align-items: center; justify-content: space-between; }
.logo { font-size: 24px; font-weight: 900; letter-spacing: 2px; color: var(--white); }
.logo span { color: var(--primary); }
.logo--footer { margin-bottom: 16px; }
.nav { display: flex; gap: 32px; }
.nav__link {
  font-size: 14px; font-weight: 500; color: var(--text-muted);
  transition: var(--transition); position: relative;
}
.nav__link:hover { color: var(--white); }
.nav__link::after {
  content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 2px;
  background: var(--primary); transition: var(--transition);
}
.nav__link:hover::after { width: 100%; }
.header__actions { display: flex; gap: 10px; }
.burger {
  display: none; flex-direction: column; gap: 5px; background: none;
  border: none; cursor: pointer; padding: 4px;
}
.burger span { display: block; width: 24px; height: 2px; background: var(--white); transition: var(--transition); }

.hero {
  min-height: 100vh; display: flex; align-items: center; position: relative;
  padding: 120px 0 80px; overflow: hidden;
}
.hero__bg {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 70% 20%, rgba(233,69,96,0.15) 0%, transparent 50%),
              radial-gradient(ellipse at 30% 80%, rgba(15,52,96,0.3) 0%, transparent 50%),
              var(--dark);
}
.hero__content { position: relative; z-index: 1; max-width: 700px; }
.hero__badge {
  display: inline-block; padding: 8px 20px; border-radius: 50px;
  background: rgba(233,69,96,0.15); color: var(--primary);
  font-size: 13px; font-weight: 600; margin-bottom: 24px;
  border: 1px solid rgba(233,69,96,0.3);
}
.hero__title { font-size: clamp(36px, 5vw, 60px); font-weight: 900; line-height: 1.1; margin-bottom: 20px; }
.hero__subtitle { font-size: 18px; color: var(--text-muted); margin-bottom: 36px; line-height: 1.7; }
.hero__actions { display: flex; gap: 16px; margin-bottom: 60px; flex-wrap: wrap; }
.hero__stats { display: flex; gap: 48px; flex-wrap: wrap; }
.hero__stat-number { font-size: 32px; font-weight: 800; color: var(--white); }
.hero__stat-label { font-size: 13px; color: var(--text-muted); margin-top: 4px; }

.brands {
  padding: 40px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.brands__grid {
  display: flex; justify-content: center; align-items: center; gap: 48px; flex-wrap: wrap;
}
.brands__item {
  font-size: 18px; font-weight: 700; color: var(--text-muted); letter-spacing: 1px;
  transition: var(--transition);
}
.brands__item:hover { color: var(--white); }

.section { padding: 100px 0; }
.section--dark { background: var(--dark-2); }
.section__header { text-align: center; margin-bottom: 60px; }
.section__title { font-size: clamp(28px, 4vw, 42px); font-weight: 800; margin-bottom: 16px; }
.section__subtitle { font-size: 16px; color: var(--text-muted); max-width: 600px; margin: 0 auto; }

.features__grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px;
}
.feature-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 36px; transition: var(--transition);
}
.feature-card:hover {
  border-color: var(--primary); transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(233,69,96,0.1);
}
.feature-card__icon { font-size: 40px; margin-bottom: 20px; }
.feature-card__title { font-size: 18px; font-weight: 700; margin-bottom: 12px; color: var(--white); }
.feature-card__text { font-size: 14px; color: var(--text-muted); line-height: 1.7; }

.steps {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; align-items: flex-start;
}
.step {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 32px; width: calc(33.333% - 40px);
  min-width: 260px; text-align: center; transition: var(--transition);
}
.step:hover { border-color: var(--primary); }
.step__number {
  font-size: 36px; font-weight: 900; color: var(--primary); margin-bottom: 12px;
  opacity: 0.8;
}
.step__title { font-size: 18px; font-weight: 700; margin-bottom: 8px; color: var(--white); }
.step__text { font-size: 14px; color: var(--text-muted); line-height: 1.6; }
.step__arrow {
  display: flex; align-items: center; font-size: 24px; color: var(--primary);
  opacity: 0.5; padding-top: 40px;
}

.catalog__grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 24px;
}
.car-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; transition: var(--transition);
}
.car-card:hover { border-color: var(--border-light); transform: translateY(-4px); box-shadow: var(--shadow); }
.car-card__image {
  height: 200px; display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.car-card__placeholder { font-size: 64px; opacity: 0.6; }
.car-card__badge {
  position: absolute; top: 16px; left: 16px; padding: 4px 14px;
  background: var(--primary); color: var(--white); border-radius: 50px;
  font-size: 12px; font-weight: 600;
}
.car-card__body { padding: 24px; }
.car-card__title { font-size: 20px; font-weight: 700; margin-bottom: 8px; color: var(--white); }
.car-card__info { font-size: 14px; color: var(--text-muted); margin-bottom: 12px; }
.car-card__price { font-size: 22px; font-weight: 800; color: var(--primary); margin-bottom: 16px; }

.reviews__grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px;
}
.review-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 32px; transition: var(--transition);
}
.review-card:hover { border-color: var(--border-light); }
.review-card__stars { color: #ffc107; font-size: 18px; margin-bottom: 16px; letter-spacing: 2px; }
.review-card__text { font-size: 14px; color: var(--text-muted); line-height: 1.7; margin-bottom: 20px; font-style: italic; }
.review-card__author { display: flex; align-items: center; gap: 12px; }
.review-card__avatar {
  width: 44px; height: 44px; border-radius: 50%; background: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px; color: var(--white);
}
.review-card__name { font-weight: 600; font-size: 14px; color: var(--white); }
.review-card__city { font-size: 12px; color: var(--text-muted); }

.order-form-wrapper { max-width: 700px; margin: 0 auto; }
.order-form {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 40px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.form-group { margin-bottom: 16px; }
.form-label { display: block; font-size: 13px; font-weight: 600; color: var(--text-muted); margin-bottom: 6px; }
.form-input {
  width: 100%; padding: 12px 16px; border-radius: var(--radius-sm);
  border: 1.5px solid var(--border); background: var(--dark-3);
  color: var(--white); font-family: var(--font); font-size: 14px;
  outline: none; transition: var(--transition);
}
.form-input:focus { border-color: var(--primary); }
.form-textarea { resize: vertical; min-height: 80px; }
.form-note { text-align: center; font-size: 12px; color: var(--text-muted); margin-top: 16px; }
.order-form-success {
  text-align: center; padding: 60px 40px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.success-icon {
  width: 64px; height: 64px; border-radius: 50%; background: rgba(76,175,80,0.2);
  color: #4caf50; display: flex; align-items: center; justify-content: center;
  font-size: 32px; margin: 0 auto 20px;
}
.order-form-success h3 { font-size: 24px; margin-bottom: 8px; color: var(--white); }
.order-form-success p { color: var(--text-muted); }

.contacts__grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center;
}
.contacts__text { color: var(--text-muted); margin-bottom: 32px; }
.contacts__items { display: flex; flex-direction: column; gap: 24px; }
.contacts__item { display: flex; gap: 16px; align-items: center; }
.contacts__icon { font-size: 28px; width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; background: var(--dark-3); border-radius: var(--radius-sm); }
.contacts__label { font-size: 12px; color: var(--text-muted); margin-bottom: 2px; }
.contacts__value { font-size: 15px; font-weight: 600; color: var(--white); }
.map-placeholder {
  background: var(--dark-3); border: 1px solid var(--border);
  border-radius: var(--radius-lg); height: 360px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.map-placeholder__icon { font-size: 48px; margin-bottom: 12px; opacity: 0.5; }
.map-placeholder p { color: var(--text-muted); font-size: 14px; }

.footer {
  background: var(--dark-2); border-top: 1px solid var(--border);
  padding: 60px 0 30px;
}
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer__text { font-size: 14px; color: var(--text-muted); line-height: 1.7; }
.footer__title { font-size: 14px; font-weight: 700; color: var(--white); margin-bottom: 16px; text-transform: uppercase; letter-spacing: 1px; }
.footer__link { display: block; font-size: 14px; color: var(--text-muted); margin-bottom: 10px; transition: var(--transition); }
.footer__link:hover { color: var(--primary); }
.footer__bottom {
  border-top: 1px solid var(--border); padding-top: 24px; text-align: center;
  font-size: 13px; color: var(--text-muted);
}

.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.7); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center; z-index: 2000;
  padding: 20px;
}
.modal {
  background: var(--dark-2); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 40px; max-width: 480px; width: 100%;
  position: relative; max-height: 90vh; overflow-y: auto;
}
.modal__close {
  position: absolute; top: 16px; right: 16px; background: none; border: none;
  color: var(--text-muted); font-size: 28px; cursor: pointer; transition: var(--transition);
}
.modal__close:hover { color: var(--white); }
.modal h2 { font-size: 24px; margin-bottom: 24px; color: var(--white); }
.modal .form-group { margin-bottom: 16px; }
.modal .form-link {
  text-align: center; margin-top: 16px; font-size: 14px; color: var(--text-muted);
}
.modal .form-link a { color: var(--primary); cursor: pointer; }
.modal .form-link a:hover { text-decoration: underline; }

.toast-container { position: fixed; top: 20px; right: 20px; z-index: 3000; display: flex; flex-direction: column; gap: 10px; }
.toast {
  padding: 14px 24px; border-radius: var(--radius-sm); color: var(--white);
  font-size: 14px; font-weight: 500; animation: slideIn 0.3s ease;
  box-shadow: var(--shadow);
}
.toast--success { background: #2e7d32; }
.toast--error { background: #c62828; }
.toast--info { background: #1565c0; }
@keyframes slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

@media (max-width: 768px) {
  .nav { display: none; }
  .header__actions { display: none; }
  .burger { display: flex; }
  .nav.active {
    display: flex; flex-direction: column; position: absolute;
    top: 100%; left: 0; right: 0; background: var(--dark-2);
    padding: 20px; gap: 16px; border-bottom: 1px solid var(--border);
  }
  .hero__stats { gap: 24px; }
  .hero__stat-number { font-size: 24px; }
  .form-row { grid-template-columns: 1fr; }
  .contacts__grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .steps { flex-direction: column; align-items: center; }
  .step { width: 100%; }
  .step__arrow { transform: rotate(90deg); padding-top: 0; }
  .catalog__grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .hero__title { font-size: 28px; }
  .hero__actions { flex-direction: column; }
  .footer__grid { grid-template-columns: 1fr; }
  .dev-gate__box { padding: 32px 20px; }
  .dev-gate__form { flex-direction: column; }
}
