/* ============================================================
   Омаха Автосервис — стили
   Палитра: угольный текст #3d3d3d, золотой акцент #c19a33,
   серо-зелёный (sage) фон секций #d7dbce, белый
   ============================================================ */

:root {
  --ink: #3d3d3d;          /* основной угольный текст и заголовки */
  --ink-dark: #2b2b2b;
  --gold: #c19a33;         /* акцент: стрелки, ссылки, ховеры */
  --gold-dark: #a8842b;
  --star: #e3b340;         /* звёзды отзывов */
  --white: #ffffff;
  --sage: #d7dbce;         /* серо-зелёный фон секций */
  --light: #f6f6f4;        /* очень светлый фон */
  --gray: #6f6f6f;
  --text: #4a4a4a;
  --border: #d8d8d4;
  --max: 1200px;
  --shadow: 0 8px 28px rgba(0, 0, 0, .10);

  /* алиасы для совместимости */
  --navy: var(--ink);
  --red: var(--gold);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Open Sans', Arial, sans-serif;
  color: var(--text);
  line-height: 1.6;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .logo-text, .btn, .main-nav a, .stars, .acc-header, blockquote {
  font-family: 'Oswald', 'Open Sans', sans-serif;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: #fff; padding: 10px 16px; z-index: 1000;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ---------------- Buttons (минимальные, с тонкой рамкой) ---------------- */
.btn {
  display: inline-block;
  padding: 15px 34px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  border-radius: 0;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  text-align: center;
}
.btn:hover { background: var(--ink); color: #fff; }
.btn-primary, .btn-outline { /* единый минималистичный стиль */ }
.hero-cta { border-color: #fff; color: #fff; }
.hero-cta:hover { background: #fff; color: var(--ink); }

/* ---------------- Header ---------------- */
.site-header {
  position: sticky; top: 0; z-index: 500;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 10px rgba(0,0,0,.05);
}
.header-inner {
  max-width: var(--max); margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; gap: 28px;
  height: 84px;
}
.logo { display: flex; align-items: center; gap: 12px; }
.logo-shield { flex: none; }
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-line-1 { font-size: 22px; font-weight: 700; color: var(--ink); letter-spacing: .04em; }
.logo-line-2 { font-size: 15px; font-weight: 600; color: var(--gold); letter-spacing: .14em; }

.main-nav { margin-left: auto; }
.main-nav ul { display: flex; gap: 30px; list-style: none; }
.main-nav a {
  font-size: 15px; font-weight: 500; text-transform: uppercase;
  letter-spacing: .08em; color: var(--ink); padding: 6px 0; white-space: nowrap;
  border-bottom: 2px solid transparent; transition: color .2s, border-color .2s;
}
.main-nav a:hover { color: var(--gold); border-color: var(--gold); }

.header-actions { display: flex; align-items: center; gap: 18px; }
.social-icons { display: flex; gap: 10px; }
.social-link {
  width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--ink); color: #fff; transition: background .2s;
}
.social-link:hover { background: var(--gold); }

.cart-btn {
  position: relative; background: none; border: none; cursor: pointer;
  color: var(--ink); display: grid; place-items: center;
}
.cart-btn:hover { color: var(--gold); }
.cart-count {
  position: absolute; top: -6px; right: -8px;
  background: var(--gold); color: #fff; font-size: 11px; font-weight: 700;
  width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center;
  font-family: 'Open Sans', sans-serif;
}

.nav-toggle { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 5px; padding: 6px; }
.nav-toggle span { width: 26px; height: 3px; background: var(--ink); border-radius: 2px; transition: .25s; }

/* ---------------- Hero ---------------- */
.hero {
  position: relative;
  min-height: 100vh;          /* на весь экран */
  display: flex; align-items: center;
  background: var(--ink);
  overflow: hidden;
}
.hero-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;          /* видео-фон на весь блок */
  z-index: 0;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(120deg, rgba(25,25,25,.78) 0%, rgba(25,25,25,.55) 55%, rgba(25,25,25,.35) 100%);
  z-index: 1;
}
.hero-content {
  position: relative; z-index: 2;
  max-width: var(--max); margin: 0 auto; padding: 80px 24px; width: 100%;
}
.hero-title {
  color: #fff; font-weight: 600; font-size: clamp(28px, 4.6vw, 56px);
  line-height: 1.12; max-width: 880px; text-transform: uppercase; letter-spacing: .01em;
}
.hero-cta { margin-top: 32px; }

/* ---------------- Loaner ---------------- */
.loaner { background: var(--white); padding: 80px 0; }
.loaner-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.loaner-text p { font-size: clamp(20px, 2.4vw, 30px); font-weight: 300; color: var(--ink); line-height: 1.4; }
.loaner-text strong { color: var(--gold); font-weight: 700; }

.img-placeholder {
  width: 100%; aspect-ratio: 16 / 10; background: #1a1a1a; border-radius: 2px;
  display: grid; place-items: center;
}
.img-placeholder::after {
  content: ""; width: 56px; height: 56px;
  background:
    linear-gradient(#333,#333) center/100% 3px no-repeat,
    linear-gradient(#333,#333) center/3px 100% no-repeat;
  opacity: .4; transform: rotate(45deg);
}
.img-placeholder.portrait { aspect-ratio: 4 / 5; }

/* Реальные фото */
.section-img {
  width: 100%; height: 100%; object-fit: cover; border-radius: 2px; display: block;
}
.loaner-img .section-img { aspect-ratio: 16 / 10; }
.welcome-img .section-img { aspect-ratio: 16 / 10; }
.promo-img.section-img { aspect-ratio: 16 / 9; }

/* Карта */
.map-frame-wrap { position: relative; width: 100%; aspect-ratio: 4 / 5; border-radius: 2px; overflow: hidden; }
.map-frame { position: absolute; inset: 0; width: 100%; height: 100%; border: none; }

/* ---------------- Contacts & Hours ---------------- */
.locations { padding: 80px 0; background: var(--sage); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 28px; align-items: start; }
.contact-info, .schedule, .map-card {
  background: var(--white); border: 1px solid var(--border); border-radius: 2px;
  padding: 30px 28px;
}
.loc-title { color: var(--ink); font-size: 19px; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; margin-bottom: 8px; }
.contact-info .loc-title { margin-top: 22px; }
.contact-info .loc-title:first-child { margin-top: 0; }
.loc-addr { color: var(--text); font-size: 17px; margin-bottom: 10px; }
.contact-links { display: flex; gap: 18px; flex-wrap: wrap; margin-bottom: 4px; }
.link-arrow { color: var(--gold); font-weight: 600; font-size: 14px; }
.link-arrow::after { content: " →"; }
.link-arrow:hover { color: var(--gold-dark); text-decoration: underline; }
.loc-phone { display: inline-block; color: var(--ink); font-weight: 700; font-size: 23px; font-family: 'Oswald', sans-serif; }
.loc-phone:hover { color: var(--gold); }
.open-now { display: flex; align-items: center; gap: 8px; color: #2e8b45; font-weight: 600; }
.open-now .dot { width: 9px; height: 9px; border-radius: 50%; background: #2e8b45; display: inline-block; }
.contact-cta { margin-top: 26px; width: 100%; }

.schedule-table { width: 100%; border-collapse: collapse; }
.schedule-table td { padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 15px; }
.schedule-table tr:last-child td { border-bottom: none; }
.schedule-table td:first-child { color: var(--text); }
.schedule-table td:last-child { text-align: right; color: var(--ink); font-weight: 600; white-space: nowrap; }

.map-placeholder { aspect-ratio: 4 / 5; }

/* ---------------- Welcome / About (фото по центру, текст ниже) ---------------- */
.welcome { padding: 90px 0; background: var(--white); }
.welcome-inner { max-width: 760px; margin: 0 auto; text-align: center; }
.welcome-img { max-width: 560px; margin: 0 auto 40px; }
.eyebrow {
  display: inline-block; text-transform: uppercase; letter-spacing: .2em;
  color: var(--gold); font-weight: 700; font-size: 13px; margin-bottom: 12px;
}
.welcome-text h2 { color: var(--ink); font-size: clamp(28px, 3.4vw, 42px); font-weight: 600; text-transform: uppercase; letter-spacing: .02em; margin-bottom: 20px; }
.lead { font-size: 21px; font-style: italic; color: var(--ink); margin-bottom: 18px; line-height: 1.5; }
.welcome-text p { margin-bottom: 26px; color: var(--text); }

/* ---------------- Section title ---------------- */
.section-title {
  text-align: center; color: var(--ink); font-size: clamp(28px, 3.4vw, 44px);
  font-weight: 600; text-transform: none; letter-spacing: .01em; margin-bottom: 48px;
}
.section-title.light { color: #fff; }

/* ---------------- Promotions ---------------- */
.promos { padding: 90px 0; background: var(--sage); }
.promo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.promo-card {
  background: var(--white); border-radius: 2px; overflow: hidden;
  border: 1px solid var(--border);
}
.promo-img { border-radius: 0; aspect-ratio: 16 / 9; }
.promo-body { padding: 30px; text-align: center; }
.promo-body h3 { color: var(--ink); font-size: 26px; font-weight: 600; margin-bottom: 12px; }
.promo-body p { margin-bottom: 24px; color: var(--text); }

/* ---------------- Services (минималистично, иконки без карточек) ---------------- */
.services { padding: 90px 0; background: var(--white); }
.service-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.service-item { text-align: center; padding: 10px; }
.service-icon { color: var(--ink); margin-bottom: 18px; transition: color .2s; }
.service-item:hover .service-icon { color: var(--gold); }
.service-item h3 { color: var(--ink); font-size: 21px; font-weight: 600; letter-spacing: .01em; }
.services-cta { text-align: center; margin-top: 52px; }

/* ---------------- Chips ---------------- */
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li {
  background: var(--white); border: 1px solid var(--border); border-radius: 999px;
  padding: 8px 18px; font-size: 14px; color: var(--text);
  transition: border-color .2s, color .2s;
}
.chips li:hover { border-color: var(--gold); color: var(--gold); }
.chips-accent li { border-color: var(--gold); color: var(--ink); font-weight: 600; }

/* ---------------- Accordion (доп. услуги, марки, оплата) ---------------- */
.extra { padding: 90px 0; background: var(--light); }
.accordion { max-width: 860px; margin: 0 auto; }
.acc-item { border-bottom: 1px solid var(--border); }
.acc-item:first-child { border-top: 1px solid var(--border); }
.acc-header {
  width: 100%; background: none; border: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  padding: 24px 6px; font-size: 19px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .05em; color: var(--ink); text-align: left;
}
.acc-header:hover { color: var(--gold); }
.acc-icon { font-size: 26px; color: var(--gold); transition: transform .25s; line-height: 1; font-weight: 400; }
.acc-item.open .acc-icon { transform: rotate(45deg); }
.acc-panel { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.acc-panel-inner { padding: 4px 6px 28px; }
.acc-panel .chips { justify-content: flex-start; }
.acc-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; }
.acc-cols-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; }
.acc-sub { color: var(--ink); font-size: 16px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 12px; }
.feature-list { list-style: none; }
.feature-list li {
  position: relative; padding: 9px 0 9px 28px; border-bottom: 1px solid var(--border); color: var(--text);
}
.feature-list li:last-child { border-bottom: none; }
.feature-list li::before {
  content: "✓"; position: absolute; left: 0; top: 9px; color: var(--gold); font-weight: 700;
}
.feature-note { margin-top: 14px; color: var(--gray); font-size: 14px; font-style: italic; }

/* ---------------- Testimonials (карусель на фото-фоне) ---------------- */
.testimonials { position: relative; padding: 110px 0; overflow: hidden; background: #2a2a2a; }
.testi-bg {
  position: absolute; inset: 0; z-index: 0;
  background: url('https://assets.mixkit.co/videos/4716/4716-thumb-720-0.jpg') center/cover no-repeat;
  filter: grayscale(100%) contrast(1.05);
}
.testi-overlay { position: absolute; inset: 0; z-index: 1; background: rgba(28,28,28,.80); }
.testi-inner {
  position: relative; z-index: 2; max-width: 1180px; margin: 0 auto; padding: 0 28px;
  display: flex; align-items: center; gap: 22px;
}
.car-viewport { flex: 1; position: relative; min-height: 320px; }
.slide {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center;
  opacity: 0; transition: opacity .45s ease; pointer-events: none;
}
.slide.active { opacity: 1; pointer-events: auto; z-index: 2; }
.stars { color: var(--star); font-size: 26px; letter-spacing: 4px; margin-bottom: 26px; }
.slide blockquote {
  color: #fff; font-size: clamp(20px, 2.4vw, 30px); font-weight: 500;
  line-height: 1.35; max-width: 920px; margin-bottom: 28px;
}
.slide figcaption { color: #fff; }
.t-name { display: block; font-weight: 700; font-size: 18px; margin-bottom: 4px; }
.t-sub { display: block; color: #d8d8d8; font-size: 14px; }
.car-arrow {
  flex: none; width: 56px; height: 56px; border-radius: 50%;
  background: var(--gold); color: #fff; border: none; cursor: pointer;
  font-size: 22px; display: grid; place-items: center; transition: background .2s;
}
.car-arrow:hover { background: var(--gold-dark); }

/* ---------------- Footer ---------------- */
.site-footer { background: var(--ink-dark); color: #fff; padding: 52px 0; }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 22px; text-align: center; }
.footer-logo .logo-line-1 { color: #fff; }
.footer-contact { color: #cfcfcf; font-size: 15px; text-align: center; }
.footer-contact a { color: #fff; font-weight: 600; }
.footer-contact a:hover { color: var(--gold); }
.footer-nav { display: flex; gap: 28px; flex-wrap: wrap; justify-content: center; }
.footer-nav a { text-transform: uppercase; letter-spacing: .06em; font-size: 14px; color: #cfcfcf; transition: color .2s; }
.footer-nav a:hover { color: var(--gold); }
.copyright { color: #9a9a9a; font-size: 14px; }

/* ============================================================
   Адаптивность
   ============================================================ */
@media (max-width: 992px) {
  .contact-grid { grid-template-columns: 1fr 1fr; }
  .map-card { grid-column: 1 / -1; }
  .map-placeholder { aspect-ratio: 16 / 9; }
  .service-grid { grid-template-columns: repeat(2, 1fr); gap: 36px; }
  .acc-cols-3 { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .main-nav, .header-cta, .social-icons { display: none; }
  .main-nav.open {
    display: block; position: absolute; top: 84px; left: 0; right: 0;
    background: var(--white); border-bottom: 1px solid var(--border); box-shadow: var(--shadow);
  }
  .main-nav.open ul { flex-direction: column; gap: 0; padding: 8px 0; }
  .main-nav.open li { border-bottom: 1px solid var(--border); }
  .main-nav.open a { display: block; padding: 16px 24px; }
  .header-actions { margin-left: auto; }
  .nav-toggle { display: flex; }
  .loaner-inner { grid-template-columns: 1fr; }
  .promo-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .acc-cols { grid-template-columns: 1fr; gap: 24px; }
  .testi-inner { padding: 0 14px; gap: 12px; }
  .car-arrow { width: 46px; height: 46px; font-size: 18px; }
}

@media (max-width: 540px) {
  .service-grid { grid-template-columns: 1fr; }
  .logo-line-1 { font-size: 18px; }
  .logo-line-2 { font-size: 12px; }
}
