/* ===== Переменные бренда — заменить, когда придёт фирменный стиль ===== */
:root {
  --color-bg: #ffffff;
  --color-bg-alt: #f5f6f8;
  --color-surface: #ffffff;
  --color-border: #e3e6ec;
  --color-text: #16181d;
  --color-text-muted: #5b6472;
  --color-accent: #a67c1c;
  --color-accent-dark: #856112;
  --color-success: #1c7a41;
  --radius: 14px;
  --font-heading: 'Manrope', 'Segoe UI', Arial, sans-serif;
  --font-body: 'Inter', 'Segoe UI', Arial, sans-serif;
  --container: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  line-height: 1.5;
}
body.modal-open { overflow: hidden; }
h1, h2, h3 { font-family: var(--font-heading); font-weight: 800; margin: 0 0 .5em; }
p { color: var(--color-text-muted); }
a { color: inherit; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }
img { max-width: 100%; display: block; }

.section { padding: 72px 0; }
.section-alt { background: var(--color-bg-alt); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 40px; }
.eyebrow {
  color: var(--color-accent); text-transform: uppercase; letter-spacing: .12em;
  font-size: 13px; font-weight: 700; margin-bottom: 10px; display: block;
}

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 26px; border-radius: 999px; font-weight: 700; font-size: 15px;
  border: 1px solid transparent; cursor: pointer; text-decoration: none;
  transition: transform .15s ease, background .15s ease;
}
.btn-primary { background: var(--color-accent); color: #fff; }
.btn-primary:hover { background: var(--color-accent-dark); transform: translateY(-1px); }
.btn-outline { background: transparent; border-color: var(--color-border); color: var(--color-text); }
.btn-outline:hover { border-color: var(--color-accent); color: var(--color-accent); }
.btn-small { padding: 9px 16px; font-size: 13px; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40; backdrop-filter: blur(10px);
  background: rgba(255,255,255,.88); border-bottom: 1px solid var(--color-border);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.logo { font-family: var(--font-heading); font-weight: 800; font-size: 22px; letter-spacing: -.02em; }
.logo span { color: var(--color-accent); }
.main-nav { display: flex; gap: 28px; }
.main-nav a { font-size: 14px; font-weight: 600; color: var(--color-text-muted); text-decoration: none; }
.main-nav a:hover { color: var(--color-text); }
.header-actions { display: flex; align-items: center; gap: 14px; }
.lang-switch { display: inline-flex; border: 1px solid var(--color-border); border-radius: 999px; overflow: hidden; }
.lang-switch button, .lang-switch a { background: transparent; border: none; cursor: pointer; font-family: var(--font-body);
  font-size: 12px; font-weight: 700; color: var(--color-text-muted); padding: 6px 10px; line-height: 1; text-decoration: none; display: inline-block; }
.lang-switch button:hover, .lang-switch a:hover { color: var(--color-text); }
.lang-switch button.active, .lang-switch a.active { background: var(--color-accent); color: #fff; }
@media (max-width: 560px) { .lang-switch button, .lang-switch a { padding: 6px 8px; font-size: 11px; } }
.nav-toggle { display: none; background: none; border: none; color: var(--color-text); font-size: 24px; cursor: pointer; }

@media (max-width: 860px) {
  .main-nav { position: fixed; top: 76px; left: 0; right: 0; background: var(--color-bg-alt);
    flex-direction: column; padding: 20px; border-bottom: 1px solid var(--color-border);
    transform: translateY(-120%); transition: transform .2s ease; }
  .main-nav.open { transform: translateY(0); }
  .nav-toggle { display: block; }
}

/* ---------- Hero ---------- */
.hero {
  padding: 96px 0 64px;
  background:
    radial-gradient(circle at 15% 20%, rgba(212,169,74,.14), transparent 45%),
    radial-gradient(circle at 85% 0%, rgba(212,169,74,.08), transparent 40%);
}
.hero .container { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero h1 { font-size: 44px; line-height: 1.08; letter-spacing: -.02em; }
.hero p.lead { font-size: 17px; max-width: 480px; margin-bottom: 28px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 32px; margin-top: 40px; }
.hero-stats div strong { display: block; font-size: 26px; font-family: var(--font-heading); color: var(--color-accent); }
.hero-stats div span { font-size: 13px; color: var(--color-text-muted); }
.hero-visual {
  aspect-ratio: 4/3; border-radius: 24px; border: 1px solid var(--color-border);
  background:
    linear-gradient(135deg, rgba(212,169,74,.25), transparent 60%), var(--color-surface);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-heading); font-size: 20px; color: var(--color-text-muted);
  text-align: center; padding: 20px; overflow: hidden;
}
.hero-photo { padding: 0; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }

/* Фото водителя */
.driver-photo { border-radius: 24px; overflow: hidden; border: 1px solid var(--color-border); max-height: 520px; }
.driver-photo img { width: 100%; height: 100%; object-fit: cover; }
.feature-list { list-style: none; padding: 0; margin: 0 0 24px; display: flex; flex-direction: column; gap: 10px; }
.feature-list li { position: relative; padding-left: 26px; color: var(--color-text-muted); font-size: 15px; }
.feature-list li::before { content: "✓"; position: absolute; left: 0; color: var(--color-accent); font-weight: 800; }
@media (max-width: 860px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero h1 { font-size: 32px; }
}

/* ---------- Как это работает ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.step { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius); padding: 26px; }
.step-num {
  width: 36px; height: 36px; border-radius: 50%; background: var(--color-accent); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 800; margin-bottom: 16px;
}
.step h3 { font-size: 17px; }
.step p { font-size: 14px; margin: 0; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Каталог / фильтры ---------- */
.filters {
  display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 32px;
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius); padding: 16px;
}
.filters select {
  background: var(--color-bg-alt); color: var(--color-text); border: 1px solid var(--color-border);
  border-radius: 8px; padding: 10px 12px; font-size: 14px; flex: 1; min-width: 150px;
}
.catalog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 22px; }
.catalog-empty { text-align: center; color: var(--color-text-muted); padding: 40px 0; }

.car-card {
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius); overflow: hidden; transition: transform .15s ease, border-color .15s ease;
}
.car-card:hover { transform: translateY(-3px); border-color: var(--color-accent); }
.car-photo {
  aspect-ratio: 16/10; position: relative; overflow: hidden;
  background: linear-gradient(140deg, hsl(var(--seed) 45% 22%), hsl(calc(var(--seed) + 40) 40% 12%));
  display: flex; align-items: center; justify-content: center;
}
.car-photo img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.car-photo-fallback { display: none; font-family: var(--font-heading); font-weight: 800; font-size: 20px; color: rgba(255,255,255,.7); }
.car-photo.no-photo .car-photo-fallback { display: block; }
.car-card-body { padding: 18px; }
.car-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.car-card-top h3 { font-size: 17px; margin: 0; }
.car-color { color: var(--color-text-muted); font-weight: 600; font-size: 14px; }
.badge { font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.badge-econom { background: #e4f6ea; color: #1c7a41; }
.badge-comfort { background: #e6f0fb; color: #1f6aa8; }
.badge-business { background: #f6edd6; color: #8a6a1e; }
.badge-premium { background: #f8e6f0; color: #a83a7e; }
.car-specs { list-style: none; display: flex; gap: 10px; padding: 0; margin: 0 0 16px; flex-wrap: wrap; }
.car-specs li { font-size: 12px; color: var(--color-text-muted); background: var(--color-bg-alt); border-radius: 6px; padding: 4px 8px; }
.car-card-bottom { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.car-price { font-size: 13px; color: var(--color-text-muted); }
.car-price strong { color: var(--color-text); font-size: 16px; }

/* ---------- Доверие / преимущества ---------- */
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.trust-card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius); padding: 26px; }
.trust-card h3 { font-size: 16px; }
.trust-card p { font-size: 14px; margin: 0; }
@media (max-width: 860px) { .trust-grid { grid-template-columns: 1fr; } }

/* ---------- О компании ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } }
.about-team-photo { border-radius: 24px; overflow: hidden; border: 1px solid var(--color-border); margin-bottom: 20px; }
.about-team-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.about-team h3 { font-size: 20px; margin: 0 0 8px; }
.about-team p { font-size: 15px; margin: 0; }

/* ---------- Контакты ---------- */
.contacts-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.contact-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 16px; }
.contact-list a { text-decoration: none; font-weight: 600; }
.map-placeholder {
  border-radius: var(--radius); border: 1px solid var(--color-border); background: var(--color-surface);
  min-height: 260px; display: flex; align-items: center; justify-content: center; color: var(--color-text-muted); text-align:center; padding: 20px;
}
@media (max-width: 860px) { .contacts-grid { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--color-border); padding: 32px 0; }
.site-footer .container { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.footer-links { display: flex; gap: 20px; }
.footer-links a { font-size: 13px; color: var(--color-text-muted); text-decoration: none; }
.footer-note { font-size: 13px; color: var(--color-text-muted); }

/* ---------- Модальное окно бронирования ---------- */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(6,7,10,.7); display: flex; align-items: center; justify-content: center;
  z-index: 100; opacity: 0; pointer-events: none; transition: opacity .15s ease; padding: 16px;
}
.modal-overlay.open { opacity: 1; pointer-events: auto; }
.modal-box {
  background: var(--color-bg-alt); border: 1px solid var(--color-border); border-radius: var(--radius);
  width: 100%; max-width: 420px; padding: 28px;
}
.modal-box h3 { font-size: 19px; }
.modal-box .car-name { color: var(--color-accent); }
.form-row { margin-bottom: 14px; }
.form-row label { display: block; font-size: 13px; color: var(--color-text-muted); margin-bottom: 6px; }
.form-row input {
  width: 100%; background: var(--color-surface); border: 1px solid var(--color-border); color: var(--color-text);
  border-radius: 8px; padding: 11px 12px; font-size: 14px;
}
.form-row-split { display: flex; gap: 10px; }
.modal-alt { text-align: center; font-size: 13px; color: var(--color-text-muted); margin: 14px 0 10px; }
.modal-channels { display: flex; gap: 10px; }
.modal-channels .btn { flex: 1; }

/* Плавающие кнопки связи */
.float-contacts { position: fixed; right: 18px; bottom: 18px; z-index: 60; display: flex; flex-direction: column; gap: 10px; }
.float-btn {
  width: 52px; height: 52px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 16px; color: #fff; text-decoration: none; box-shadow: 0 6px 18px rgba(0,0,0,.35);
  transition: transform .15s ease;
}
.float-btn:hover { transform: scale(1.06); }
.float-tg { background: #29a9eb; }
.float-max { background: #6b4eff; font-size: 12px; font-weight: 800; }

/* ---------- Новости / статьи ---------- */
.news-lang { display: flex; gap: 10px; justify-content: center; margin-bottom: 28px; }
.news-lang a { font-size: 13px; font-weight: 700; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--color-border); text-decoration: none; color: var(--color-text-muted); }
.news-lang a.active, .news-lang a:hover { border-color: var(--color-accent); color: var(--color-accent); }
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; }
.news-card { display: block; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius); padding: 22px; text-decoration: none; color: inherit; transition: transform .15s ease, border-color .15s ease; }
.news-card:hover { transform: translateY(-3px); border-color: var(--color-accent); }
.news-card time { font-size: 12px; color: var(--color-accent); font-weight: 700; }
.news-card h3 { font-size: 18px; margin: 8px 0 8px; }
.news-card p { font-size: 14px; margin: 0; }

/* Свежая статья — крупная карточка */
.news-featured { display: block; background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius); padding: 34px; text-decoration: none; color: inherit; margin-bottom: 30px;
  transition: transform .15s ease, border-color .15s ease; }
.news-featured:hover { transform: translateY(-3px); border-color: var(--color-accent); }
.news-featured .tag { display: inline-block; font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .1em; color: var(--color-accent); margin-bottom: 8px; }
.news-featured time { display: block; font-size: 13px; color: var(--color-text-muted); font-weight: 600; margin-bottom: 6px; }
.news-featured h3 { font-size: 26px; line-height: 1.2; margin: 4px 0 12px; }
.news-featured p { font-size: 15px; margin: 0; max-width: 640px; }
.news-list { display: flex; flex-direction: column; gap: 2px; }
.news-row { display: flex; gap: 18px; align-items: baseline; padding: 16px 4px; border-top: 1px solid var(--color-border);
  text-decoration: none; color: inherit; }
.news-row:hover h4 { color: var(--color-accent); }
.news-row time { flex: 0 0 108px; font-size: 13px; color: var(--color-text-muted); font-weight: 600; }
.news-row h4 { margin: 0; font-size: 16px; font-family: var(--font-heading); }
.news-row p { margin: 4px 0 0; font-size: 13px; }
@media (max-width: 560px) {
  .news-featured h3 { font-size: 21px; }
  .news-row { flex-direction: column; gap: 2px; }
  .news-row time { flex-basis: auto; }
}
.article { max-width: 760px; margin: 0 auto; padding: 40px 20px 60px; }
.article-meta { font-size: 13px; color: var(--color-text-muted); margin-bottom: 20px; }
.article-meta time { color: var(--color-accent); font-weight: 700; }
.article h1 { font-size: 32px; line-height: 1.15; margin-bottom: 10px; }
.article h2 { font-size: 22px; margin-top: 34px; }
.article h3 { font-size: 18px; margin-top: 24px; }
.article p, .article li { font-size: 16px; line-height: 1.7; color: #33383f; }
.article ul, .article ol { padding-left: 22px; }
.article .lead { font-size: 18px; color: var(--color-text); }
.article .sources { font-size: 13px; color: var(--color-text-muted); border-top: 1px solid var(--color-border); margin-top: 34px; padding-top: 16px; }
.article .cta-box { background: var(--color-bg-alt); border: 1px solid var(--color-border); border-radius: var(--radius); padding: 22px; margin-top: 36px; }
.breadcrumb { font-size: 13px; color: var(--color-text-muted); margin-bottom: 18px; }
.breadcrumb a { color: var(--color-accent); text-decoration: none; }
.float-wa { background: #25d366; color: #05391a; }
.float-viber { background: #7360f2; }
.float-call { background: var(--color-accent); color: #fff; font-size: 22px; }
.modal-close {
  position: absolute; top: 18px; right: 18px; background: none; border: none; color: var(--color-text-muted);
  font-size: 22px; cursor: pointer;
}
.modal-inner { position: relative; }
