/* Стиль: тёмный фон и золото */
:root {
  --gold: #c6a15b;
  --gold-light: #e4c580;
  --dark-bg: #0c0c0e;
  --dark-2: #0e0f11;
  --card-bg: #16171a;
  --field-bg: #0f1012;
  --text: #eaeef2;
  --muted: #a6a9b0;
  --muted-2: #9b9fa8;
  --border-subtle: rgba(198, 161, 91, 0.2);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; } }
body { background-color: var(--dark-bg); font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif; color: var(--text); line-height: 1.5; }
img { max-width: 100%; display: block; }
a { color: var(--gold-light); }
a:hover { color: var(--gold); }
:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 3px; }
.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.fas, .fab { line-height: 1; }

/* Кнопки */
.btn-gold, .btn-ghost, .btn-outline-gold { display: inline-flex; align-items: center; justify-content: center; gap: 10px; text-decoration: none; cursor: pointer; border-radius: 50px; font-family: inherit; min-height: 44px; }
.btn-gold { background: linear-gradient(145deg, #c6a15b, #b58d3e); border: none; color: #0c0c0e; padding: 15px 40px; font-weight: 700; font-size: 1rem; letter-spacing: 0.8px; transition: all 0.3s; box-shadow: 0 8px 20px -8px rgba(198, 161, 91, 0.4); }
.btn-gold:hover { color: #0c0c0e; transform: translateY(-3px); box-shadow: 0 14px 28px -8px rgba(198, 161, 91, 0.6); background: linear-gradient(145deg, #d4b06a, #c09a45); }
.btn-gold[disabled] { opacity: .6; cursor: wait; transform: none; }
.btn-ghost { background: transparent; border: 1px solid rgba(255, 255, 255, 0.2); color: #fff; padding: 15px 40px; font-weight: 600; font-size: 1rem; letter-spacing: 0.8px; transition: all 0.25s; }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); background: rgba(198, 161, 91, 0.05); }
.btn-outline-gold { background: transparent; border: 1px solid var(--gold); color: var(--gold); padding: 10px 26px; font-weight: 600; font-size: 0.9rem; letter-spacing: 1px; transition: all 0.25s; }
.btn-outline-gold:hover { background: var(--gold); color: #0c0c0e; box-shadow: 0 0 18px rgba(198, 161, 91, 0.3); }
.btn-block { width: 100%; }

/* Шапка */
.top { position: sticky; top: 0; z-index: 1000; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); background: rgba(12, 12, 14, 0.85); border-bottom: 1px solid rgba(198, 161, 91, 0.15); padding: 12px 0; }
.top__row { display: flex; justify-content: space-between; align-items: center; gap: 24px; min-height: 52px; }
.logo, .foot__logo { font-weight: 700; letter-spacing: 2px; text-decoration: none; text-transform: uppercase; }
.logo { font-size: 1.6rem; background: linear-gradient(135deg, #fff 0%, var(--gold) 80%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: #fff; }
.logo span, .foot__logo span { font-weight: 300; color: var(--gold); -webkit-text-fill-color: var(--gold); }
.nav-links { display: flex; gap: 36px; font-weight: 500; font-size: 0.95rem; letter-spacing: 0.5px; }
.nav-links a { text-decoration: none; color: #ddd; transition: color 0.2s; position: relative; }
.nav-links a:hover { color: var(--gold); }
.nav-links a::after { content: ''; position: absolute; bottom: -6px; left: 0; width: 0; height: 1px; background: var(--gold); transition: width 0.25s ease; }
.nav-links a:hover::after { width: 100%; }
.top__actions { display: flex; align-items: center; gap: 20px; }
.top__phone { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 600; white-space: nowrap; min-height: 44px; }
.top__phone i { color: var(--gold); }
.top__phone:hover { color: var(--gold-light); }
.burger { display: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--border-subtle); background: transparent; color: var(--gold); font-size: 1.1rem; cursor: pointer; align-items: center; justify-content: center; }

/* Первый экран */
.hero { padding: 90px 0 90px; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; top: -30%; right: -10%; width: 600px; height: 600px; background: radial-gradient(circle, rgba(198, 161, 91, 0.08) 0%, transparent 70%); border-radius: 50%; z-index: -1; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 60px; align-items: center; }
.hero-tagline { display: inline-flex; align-items: center; gap: 8px; background: rgba(198, 161, 91, 0.12); border: 1px solid rgba(198, 161, 91, 0.3); color: var(--gold-light); padding: 6px 18px; border-radius: 50px; font-size: 0.85rem; font-weight: 500; letter-spacing: 1.5px; margin-bottom: 28px; text-transform: uppercase; }
.hero h1 { font-size: 3.7rem; font-weight: 700; line-height: 1.15; letter-spacing: -1px; margin-bottom: 22px; }
.hero h1 i, .section-header h2 i, .cta-text h2 i { color: var(--gold); font-style: normal; font-weight: 300; }
.hero-lead { font-size: 1.2rem; color: var(--muted); margin-bottom: 40px; max-width: 550px; }
.hero-cta { display: flex; gap: 18px; flex-wrap: wrap; margin-bottom: 56px; }
.stats { display: flex; gap: 50px; flex-wrap: wrap; }
.stat-item strong { display: block; font-size: 2.2rem; font-weight: 700; color: var(--gold); line-height: 1.2; }
.stat-item span { display: block; font-size: 0.85rem; color: #8e9199; letter-spacing: 0.5px; text-transform: uppercase; max-width: 180px; }

/* Форма заявки */
.order { background: var(--card-bg); border: 1px solid var(--border-subtle); border-radius: 24px; padding: 34px; display: flex; flex-direction: column; gap: 18px; box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.8); }
.order h2 { font-size: 1.5rem; font-weight: 600; letter-spacing: -0.3px; }
.order label { display: flex; flex-direction: column; gap: 6px; font-size: 0.85rem; font-weight: 500; color: #c9ccd2; }
.order input, .order select { height: 48px; padding: 0 16px; border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 12px; font: 400 1rem 'Inter', sans-serif; color: var(--text); background: var(--field-bg); width: 100%; transition: border-color .2s; color-scheme: dark; }
.order input:focus, .order select:focus { border-color: var(--gold); outline: none; box-shadow: 0 0 0 3px rgba(198, 161, 91, 0.2); }
.order input::placeholder { color: #6f737b; }
.order input[aria-invalid="true"] { border-color: #e5484d; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { min-height: 40px; padding: 0 16px; border-radius: 50px; border: 1px solid rgba(255, 255, 255, 0.15); background: transparent; color: #ddd; font: 500 0.9rem 'Inter', sans-serif; cursor: pointer; transition: all .2s; }
.chip:hover { border-color: var(--gold); color: var(--gold); }
.chip[aria-pressed="true"] { background: rgba(198, 161, 91, 0.15); border-color: var(--gold); color: var(--gold-light); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.order__status { padding: 12px 16px; border-radius: 12px; font-size: 0.95rem; }
.order__status.is-ok { background: rgba(70, 167, 88, 0.12); color: #8fd19e; border: 1px solid rgba(70, 167, 88, 0.3); }
.order__status.is-err { background: rgba(229, 72, 77, 0.1); color: #ff9592; border: 1px solid rgba(229, 72, 77, 0.3); }
.small { font-size: 0.8rem; color: #8e9199; }

/* Заголовки секций */
.section-header { text-align: center; margin-bottom: 64px; }
.section-header .sub { color: var(--gold); font-size: 0.9rem; letter-spacing: 2px; text-transform: uppercase; font-weight: 500; margin-bottom: 10px; }
.section-header h2 { font-size: 2.8rem; font-weight: 600; letter-spacing: -0.5px; line-height: 1.2; }
.section-header p { color: var(--muted); font-size: 1.05rem; max-width: 620px; margin: 16px auto 0; }

/* Автопарк */
.fleet { padding: 100px 0; background: var(--dark-2); border-top: 1px solid rgba(198, 161, 91, 0.1); border-bottom: 1px solid rgba(198, 161, 91, 0.1); }
.cars-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.car-card { background: var(--card-bg); border: 1px solid rgba(255, 255, 255, 0.04); border-radius: 24px; padding: 28px 22px 30px; transition: all 0.3s ease; box-shadow: 0 10px 30px -15px rgba(0, 0, 0, 0.6); display: flex; flex-direction: column; align-items: center; text-align: center; }
.car-card:hover { border-color: rgba(198, 161, 91, 0.4); transform: translateY(-8px); box-shadow: 0 25px 35px -15px rgba(198, 161, 91, 0.15); }
.car-card.is-picked { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold), 0 25px 35px -15px rgba(198, 161, 91, 0.25); }
.car-icon { font-size: 2rem; color: var(--gold); margin-bottom: 18px; background: rgba(198, 161, 91, 0.08); width: 70px; height: 70px; display: flex; align-items: center; justify-content: center; border-radius: 50%; border: 1px solid rgba(198, 161, 91, 0.2); }
.car-photo { width: calc(100% + 44px); margin: -28px -22px 20px; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 24px 24px 0 0; }
.car-card h3 { font-size: 1.35rem; font-weight: 600; margin-bottom: 8px; letter-spacing: -0.5px; line-height: 1.25; }
.car-class { color: var(--gold-light); font-size: 0.75rem; font-weight: 500; letter-spacing: 1.5px; text-transform: uppercase; background: rgba(198, 161, 91, 0.12); padding: 4px 14px; border-radius: 50px; display: inline-block; margin-bottom: 16px; }
.car-desc { color: var(--muted-2); font-size: 0.92rem; margin-bottom: 22px; line-height: 1.6; flex: 1; }
.car-features { display: flex; gap: 16px; justify-content: center; font-size: 0.85rem; color: #b0b3bb; margin-bottom: 22px; flex-wrap: wrap; }
.car-features i { color: var(--gold); margin-right: 6px; font-size: 0.75rem; }
.price { font-size: 1.05rem; font-weight: 600; color: #fff; border-top: 1px solid rgba(255, 255, 255, 0.06); padding-top: 18px; width: 100%; margin-bottom: 18px; }
.price span { color: var(--gold); font-size: 1.4rem; font-weight: 700; margin-right: 4px; }
.car-pick { width: 100%; }

/* Услуги */
.features { padding: 100px 0; }
.features-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 44px 40px; }
.feature-item { display: flex; flex-direction: column; gap: 16px; }
.feature-icon { font-size: 1.6rem; color: var(--gold); width: 60px; height: 60px; display: flex; align-items: center; justify-content: center; background: rgba(198, 161, 91, 0.06); border-radius: 18px; border: 1px solid rgba(198, 161, 91, 0.15); }
.feature-item h3 { font-size: 1.3rem; font-weight: 600; letter-spacing: -0.3px; }
.feature-item p { color: var(--muted-2); font-size: 0.95rem; line-height: 1.6; }

/* Шаги */
.steps-section { padding: 100px 0; background: var(--dark-2); border-top: 1px solid rgba(198, 161, 91, 0.1); border-bottom: 1px solid rgba(198, 161, 91, 0.1); }
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.steps li { background: var(--card-bg); border: 1px solid rgba(255, 255, 255, 0.04); border-radius: 24px; padding: 32px 28px; display: flex; flex-direction: column; gap: 14px; }
.steps__n { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--gold); color: var(--gold); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1.2rem; }
.steps h3 { font-size: 1.25rem; font-weight: 600; }
.steps p { color: var(--muted-2); font-size: 0.95rem; line-height: 1.6; }

/* Цены */
.prices-section { padding: 100px 0 40px; }
.table-scroll { overflow-x: auto; background: var(--card-bg); border: 1px solid rgba(255, 255, 255, 0.04); border-radius: 24px; padding: 8px 28px; }
.prices { width: 100%; border-collapse: collapse; min-width: 640px; }
.prices th, .prices td { padding: 18px 16px 18px 0; text-align: left; border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
.prices tr:last-child th, .prices tr:last-child td { border-bottom: none; }
.prices thead th { color: var(--gold); font-weight: 500; font-size: 0.8rem; letter-spacing: 1.5px; text-transform: uppercase; border-bottom: 1px solid var(--border-subtle); }
.prices tbody th { font-weight: 600; }
.prices td { color: #c9ccd2; }
.prices td b { color: var(--gold); }
.center-note { text-align: center; color: var(--muted); font-size: 1.1rem; }

/* CTA и контакты */
.cta-section { padding: 80px 0 100px; }
.cta-box { background: linear-gradient(135deg, #141518 0%, #1a1c21 100%); border: 1px solid rgba(198, 161, 91, 0.2); border-radius: 40px; padding: 70px 60px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 40px; box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.8); }
.cta-text h2 { font-size: 2.4rem; font-weight: 600; letter-spacing: -0.5px; margin-bottom: 12px; line-height: 1.2; }
.cta-text p { color: var(--muted); font-size: 1.1rem; max-width: 550px; }
.contact-lines { display: flex; gap: 12px 28px; flex-wrap: wrap; margin-top: 22px; color: #c9ccd2; }
.contact-lines span, .contact-lines a { display: inline-flex; align-items: center; gap: 10px; color: #c9ccd2; text-decoration: none; }
.contact-lines a:hover { color: var(--gold); }
.contact-lines i { color: var(--gold); }
.cta-buttons { display: flex; gap: 16px; flex-wrap: wrap; }
.map { width: 100%; height: 380px; border: 1px solid rgba(198, 161, 91, 0.2); border-radius: 24px; margin-top: 28px; background: var(--card-bg); filter: grayscale(.4); }

/* Подвал */
.foot { padding: 40px 0; border-top: 1px solid rgba(255, 255, 255, 0.05); color: #7c7f87; font-size: 0.9rem; }
.foot__row { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; }
.foot__logo { font-size: 1.1rem; font-weight: 500; letter-spacing: 1.5px; color: #eaeef2; }
.footer-links { display: flex; gap: 28px; flex-wrap: wrap; }
.footer-links a { color: #b0b3bb; text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--gold); }

/* Страница политики */
.doc { max-width: 820px; padding: 80px 24px; }
.doc h1 { font-size: 2.4rem; font-weight: 600; letter-spacing: -0.5px; margin-bottom: 32px; line-height: 1.2; }
.doc p { color: #c9ccd2; margin-bottom: 18px; line-height: 1.7; }
.muted { color: #8e9199; }

/* Адаптивность */
@media (max-width: 1180px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr); gap: 50px; }
  .hero h1 { font-size: 3rem; }
  .cars-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .features-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav-links { gap: 24px; }
  .top__phone span { display: none; }
}
@media (max-width: 900px) {
  .burger { display: inline-flex; }
  .nav-links { display: none; position: absolute; left: 0; right: 0; top: 100%; background: rgba(12, 12, 14, 0.97); border-bottom: 1px solid rgba(198, 161, 91, 0.15); flex-direction: column; gap: 0; padding: 8px 24px 16px; }
  .nav-links.is-open { display: flex; }
  .nav-links a { min-height: 48px; display: flex; align-items: center; font-size: 1.05rem; }
  .nav-links a::after { display: none; }
  .top { position: sticky; }
  .top__row { position: static; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .cta-box { padding: 50px 35px; flex-direction: column; align-items: flex-start; }
}
@media (max-width: 640px) {
  .hero { padding: 50px 0 60px; }
  .hero h1 { font-size: 2.3rem; }
  .hero-lead { font-size: 1.05rem; margin-bottom: 30px; }
  .hero-cta { flex-direction: column; }
  .btn-gold, .btn-ghost { width: 100%; padding: 15px 24px; }
  .stats { gap: 20px 32px; }
  .stat-item strong { font-size: 1.8rem; }
  .order { padding: 24px 18px; border-radius: 20px; }
  .grid2 { grid-template-columns: minmax(0, 1fr); }
  .cars-grid, .features-grid { grid-template-columns: minmax(0, 1fr); }
  .section-header { margin-bottom: 44px; }
  .section-header h2 { font-size: 2rem; }
  .fleet, .features, .steps-section { padding: 70px 0; }
  .prices-section { padding-top: 70px; }
  .table-scroll { padding: 4px 18px; border-radius: 18px; }
  .cta-box { padding: 40px 22px; border-radius: 28px; }
  .cta-text h2 { font-size: 1.9rem; }
  .cta-buttons { width: 100%; }
  .top__cta { display: none; }
  .logo { font-size: 1.15rem; letter-spacing: 1px; }
  .top__phone { width: 44px; justify-content: center; border: 1px solid var(--border-subtle); border-radius: 50%; }
  .foot__row { flex-direction: column; text-align: center; }
  .doc h1 { font-size: 1.8rem; }
}

/* Чат с консультантом */
.chat { position: fixed; right: 24px; bottom: 24px; z-index: 1100; font-family: 'Inter', system-ui, sans-serif; }
.chat__fab { display: inline-flex; align-items: center; gap: 10px; min-height: 56px; padding: 0 24px; border: none; border-radius: 50px; background: linear-gradient(145deg, #c6a15b, #b58d3e); color: #0c0c0e; font: 700 0.95rem 'Inter', sans-serif; letter-spacing: 0.5px; cursor: pointer; box-shadow: 0 14px 30px -10px rgba(198, 161, 91, 0.6); transition: transform .2s; }
.chat__fab:hover { transform: translateY(-2px); }
.chat__fab i { font-size: 1.2rem; }
.chat.is-open .chat__fab { display: none; }
.chat__panel { width: 380px; height: min(600px, calc(100vh - 48px)); background: var(--card-bg); border: 1px solid var(--border-subtle); border-radius: 24px; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.9); display: flex; flex-direction: column; overflow: hidden; }
.chat__panel[hidden] { display: none; }
.chat__head { display: flex; align-items: center; gap: 12px; padding: 16px 16px 16px 20px; border-bottom: 1px solid rgba(255, 255, 255, 0.06); background: linear-gradient(135deg, #141518 0%, #1a1c21 100%); }
.chat__avatar { width: 42px; height: 42px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: rgba(198, 161, 91, 0.12); border: 1px solid rgba(198, 161, 91, 0.4); color: var(--gold); font-weight: 700; font-size: 1.1rem; position: relative; flex-shrink: 0; }
.chat__avatar::after { content: ''; position: absolute; right: 0; bottom: 1px; width: 10px; height: 10px; border-radius: 50%; background: #46a758; border: 2px solid #16171a; }
.chat__who { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.chat__who strong { font-weight: 600; }
.chat__who span { font-size: 0.8rem; color: #8e9199; }
.chat__close { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.1); background: transparent; color: #ddd; cursor: pointer; }
.chat__close:hover { border-color: var(--gold); color: var(--gold); }
.chat__log { flex: 1; overflow-y: auto; padding: 18px 16px; display: flex; flex-direction: column; gap: 10px; overscroll-behavior: contain; }
.chat__msg { max-width: 85%; padding: 10px 14px; border-radius: 18px; font-size: 0.95rem; line-height: 1.45; white-space: pre-wrap; word-wrap: break-word; }
.chat__msg--them { align-self: flex-start; background: #202227; color: #eaeef2; border-bottom-left-radius: 6px; }
.chat__msg--me { align-self: flex-end; background: rgba(198, 161, 91, 0.18); border: 1px solid rgba(198, 161, 91, 0.35); color: #f3e7cc; border-bottom-right-radius: 6px; }
.chat__msg--err { background: rgba(229, 72, 77, 0.1); color: #ff9592; }
.chat__typing { display: flex; gap: 4px; padding: 14px 16px; }
.chat__typing span { width: 7px; height: 7px; border-radius: 50%; background: #8e9199; animation: chat-dot 1.2s infinite ease-in-out; }
.chat__typing span:nth-child(2) { animation-delay: .15s; }
.chat__typing span:nth-child(3) { animation-delay: .3s; }
@keyframes chat-dot { 0%, 80%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
@media (prefers-reduced-motion: reduce) { .chat__typing span { animation: none; opacity: .7; } }
.chat__form { display: flex; align-items: flex-end; gap: 10px; padding: 12px 12px 8px 16px; border-top: 1px solid rgba(255, 255, 255, 0.06); }
.chat__form textarea { flex: 1; resize: none; min-height: 44px; max-height: 120px; padding: 11px 14px; border-radius: 22px; border: 1px solid rgba(255, 255, 255, 0.1); background: var(--field-bg); color: var(--text); font: 400 0.95rem/1.4 'Inter', sans-serif; }
.chat__form textarea:focus { outline: none; border-color: var(--gold); }
.chat__form button { width: 44px; height: 44px; flex-shrink: 0; border-radius: 50%; border: none; background: linear-gradient(145deg, #c6a15b, #b58d3e); color: #0c0c0e; cursor: pointer; font-size: 1rem; }
.chat__form button:disabled { opacity: .5; cursor: wait; }
.chat__note { font-size: 0.75rem; color: #7c7f87; padding: 0 16px 12px; }
.hp-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
@media (max-width: 640px) {
  .chat { right: 16px; bottom: 16px; }
  .chat.is-open { inset: 0; }
  .chat__panel { width: 100%; height: 100%; border-radius: 0; border: none; }
  .chat__fab span { display: none; }
  .chat__fab { width: 56px; padding: 0; justify-content: center; }
}
