/* Академики Автосервиса — основные стили */

:root {
  --bg: #080C1C;
  --navy: #0B1530;
  --white: #FFFFFF;
  --text-muted: #C3CAE0;
  --text-soft: #D2D8EA;
  --line: #E3E7EF;
  --accent: #2449E8;
  --accent-hover: #3459FF;
  --star: #FFC83D;
  --ok: #3DDC84;
  --check: #7FE0A8;
  --radius-sm: 14px;
  --radius: 20px;
  --radius-lg: 28px;
  --container: 1280px;
  --font-display: "Unbounded", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --header-h: 92px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: #8FA6FF; text-decoration: none; }
a:hover { color: #B9C8FF; }
h1, h2, h3 { margin: 0; }
p { margin: 0; }
button { font: inherit; }

:focus-visible { outline: 3px solid #8FA6FF; outline-offset: 3px; border-radius: 6px; }

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

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--white); color: var(--navy); padding: 12px 18px; border-radius: 12px; font-weight: 700;
}
.skip-link:focus { top: 16px; }

/* ---------- Glass ---------- */
.glass {
  background: rgba(14, 20, 44, .58);
  border: 1px solid rgba(255, 255, 255, .12);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass { background: rgba(14, 20, 44, .86); }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 20px; border-radius: var(--radius-sm);
  font-weight: 700; font-size: 16px; line-height: 1.2; color: var(--white);
  border: 1px solid transparent; cursor: pointer; transition: background-color .15s, border-color .15s, color .15s;
}
.btn svg { flex-shrink: 0; }
.btn--lg { min-height: 56px; padding: 0 24px; font-size: 17px; }
.btn--accent { background: var(--accent); }
.btn--accent:hover { background: var(--accent-hover); color: var(--white); }
.btn--light { background: var(--white); color: var(--navy); }
.btn--light:hover { background: #E8ECF7; color: var(--navy); }
.btn--ghost { background: rgba(255, 255, 255, .12); }
.btn--ghost:hover { background: rgba(255, 255, 255, .2); color: var(--white); }
.btn--glass { background: rgba(14, 20, 44, .58); border-color: rgba(255, 255, 255, .12); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.btn--glass:hover { border-color: rgba(255, 255, 255, .32); color: var(--white); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  padding: 16px 16px 0;
  height: var(--header-h);
}
.header-bar {
  max-width: var(--container); margin: 0 auto;
  background: var(--white); color: var(--navy);
  border-radius: var(--radius); padding: 12px 16px 12px 12px;
  display: flex; align-items: center; gap: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .18);
}
.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand__emblem {
  width: 52px; height: 52px; border-radius: var(--radius-sm); background: var(--navy);
  display: flex; align-items: center; justify-content: center;
}
.brand__emblem img { width: 38px; }
.brand__label { height: 34px; width: auto; filter: brightness(0); }
.header-brands {
  display: flex; align-items: center; padding-left: 18px; border-left: 1px solid var(--line);
  font-size: 14px; font-weight: 600; color: #5D6782; white-space: nowrap;
}
.main-nav { display: flex; gap: 4px; margin-left: auto; font-size: 15px; font-weight: 600; }
.main-nav a { color: var(--navy); padding: 10px 14px; border-radius: 10px; }
.main-nav a:hover { background: #F0F3F9; color: var(--navy); }
.header-phone { color: var(--navy); font-weight: 700; font-size: 16px; white-space: nowrap; }
.header-phone:hover { color: var(--accent); }

.burger {
  display: none; margin-left: auto; width: 48px; height: 48px; border-radius: 12px;
  align-items: center; justify-content: center; background: #F3F5F9; border: 0; color: var(--navy); cursor: pointer;
}
.burger .icon-close { display: none; }
.burger[aria-expanded="true"] .icon-open { display: none; }
.burger[aria-expanded="true"] .icon-close { display: block; }

.mobile-menu {
  max-width: var(--container); margin: 8px auto 0;
  background: var(--white); color: var(--navy); border-radius: var(--radius);
  padding: 12px; box-shadow: 0 20px 40px rgba(0, 0, 0, .3);
  display: flex; flex-direction: column; gap: 4px;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu nav { display: flex; flex-direction: column; }
.mobile-menu nav a { color: var(--navy); font-weight: 700; font-size: 18px; padding: 14px 12px; border-radius: 12px; }
.mobile-menu nav a:hover { background: #F0F3F9; }
.mobile-menu__brands { padding: 8px 12px 12px; font-size: 14px; font-weight: 600; color: #5D6782; }
.mobile-menu .btn-row { padding: 8px 4px 4px; }
.mobile-menu .btn--ghost { background: #EEF2FF; color: var(--navy); }

@media (max-width: 1300px) { .header-brands { display: none; } }
@media (max-width: 960px) {
  .main-nav, .header-phone { display: none; }
  .burger { display: flex; }
}
@media (max-width: 420px) {
  .brand__label { height: 28px; }
  .brand__emblem { width: 46px; height: 46px; }
  .brand__emblem img { width: 34px; }
}

/* ---------- Photo sections ---------- */
.section { position: relative; background-color: var(--bg); background-repeat: no-repeat; }
.section__inner { padding: 110px 0; }

/* Edge fade: every photo dissolves into the page background top and bottom */
:root {
  --fade: linear-gradient(180deg, #080C1C 0%, rgba(8,12,28,.7) 7%, rgba(8,12,28,0) 20%, rgba(8,12,28,0) 80%, rgba(8,12,28,.7) 93%, #080C1C 100%);
}

/* Photos load only when a section approaches the viewport (see main.js) */
.hero {
  margin-top: calc(var(--header-h) * -1);
  padding-top: var(--header-h);
  min-height: 780px; display: flex; align-items: center;
  background-image:
    linear-gradient(180deg, rgba(8,12,28,0) 0%, rgba(8,12,28,0) 72%, rgba(8,12,28,.7) 90%, #080C1C 100%),
    linear-gradient(90deg, rgba(8,12,28,.8) 0%, rgba(8,12,28,.6) 50%, rgba(8,12,28,.3) 100%),
    radial-gradient(circle at 0% 15%, rgba(80,76,186,.5), transparent 55%),
    url("../img/bg-engine-daza.jpg");
  background-position: center, center, center, right center;
  background-size: cover;
}
.services.is-inview, .no-js .services {
  background-image:
    var(--fade),
    linear-gradient(180deg, rgba(8,12,28,.6) 0%, rgba(8,12,28,.7) 100%),
    url("../img/bg-suspension.jpg");
  background-position: center; background-size: cover;
}
.why.is-inview, .no-js .why {
  background-image:
    var(--fade),
    linear-gradient(90deg, rgba(8,12,28,.75) 0%, rgba(8,12,28,.4) 100%),
    radial-gradient(circle at 100% 100%, rgba(229,82,27,.22), transparent 50%),
    url("../img/bg-hands.jpg");
  background-position: center; background-size: cover;
}
.reviews.is-inview, .no-js .reviews {
  background-image:
    var(--fade),
    linear-gradient(270deg, rgba(8,12,28,.7) 0%, rgba(8,12,28,.45) 100%),
    radial-gradient(circle at 0% 0%, rgba(80,76,186,.35), transparent 50%),
    url("../img/bg-diagnostics.jpg");
  background-position: center; background-size: cover;
}
.latest-articles.is-inview, .no-js .latest-articles {
  background-image:
    var(--fade),
    linear-gradient(90deg, rgba(8,12,28,.8) 0%, rgba(8,12,28,.55) 50%, rgba(8,12,28,.3) 100%),
    radial-gradient(circle at 0% 0%, rgba(80,76,186,.35), transparent 50%),
    url("../img/bg-articles.jpg");
  background-position: center, center, center, right top; background-size: cover;
}
.route.is-inview, .no-js .route {
  background-image:
    var(--fade),
    linear-gradient(90deg, rgba(8,12,28,.75) 0%, rgba(8,12,28,.5) 100%),
    url("../img/bg-gearbox.jpg");
  background-position: center; background-size: cover;
}
.faq {
  /* свечения уходят в цвет фона у верхней и нижней границы — стык с соседними секциями без шва */
  background:
    linear-gradient(180deg, var(--bg) 0%, rgba(8,12,28,0) 25%, rgba(8,12,28,0) 75%, var(--bg) 100%),
    radial-gradient(circle at 0% 30%, rgba(80,76,186,.38), transparent 50%),
    radial-gradient(circle at 100% 75%, rgba(229,82,27,.16), transparent 45%),
    var(--bg);
}
@media (max-width: 760px) {
  /* text spans the full width on phones — darken photos evenly */
  .hero {
    min-height: 0;
    background-image:
      linear-gradient(180deg, rgba(8,12,28,0) 0%, rgba(8,12,28,0) 72%, rgba(8,12,28,.7) 90%, #080C1C 100%),
      linear-gradient(90deg, rgba(8,12,28,.82) 0%, rgba(8,12,28,.7) 100%),
      radial-gradient(circle at 0% 15%, rgba(80,76,186,.5), transparent 55%),
      url("../img/bg-engine-daza.jpg");
    background-position: center, center, center, 70% center;
  }
  .section__inner { padding: 80px 0; }
}

/* ---------- Common blocks ---------- */
.section-title { font-family: var(--font-display); font-weight: 600; font-size: clamp(28px, 3.2vw, 42px); line-height: 1.15; }
.section-lead { font-size: 17px; line-height: 1.6; color: var(--text-muted); max-width: 680px; }
.section-head { display: flex; flex-direction: column; gap: 10px; padding: 0 8px; margin-bottom: 28px; }

/* ---------- Hero ---------- */
.hero__content { display: flex; flex-direction: column; gap: 28px; max-width: 720px; padding: clamp(48px, 7vw, 96px) 8px; }
.status-pill {
  display: inline-flex; align-self: flex-start; align-items: center; gap: 8px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.14);
  border-radius: 999px; padding: 8px 14px 8px 10px; font-size: 14px; font-weight: 600;
}
.status-pill__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
.status-pill.is-closed .status-pill__dot { background: #FFB23D; }
.hero h1 { font-family: var(--font-display); font-weight: 600; font-size: clamp(32px, 4.6vw, 64px); line-height: 1.08; letter-spacing: -.02em; }
@media (max-width: 520px) {
  .hero h1 { font-size: 7.4vw; }
  .hero__brands { gap: 6px 8px; letter-spacing: .04em; font-size: 13px; }
}
.hero__brands {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px;
  font-size: 14px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #AEB7D2;
}
.hero__lead { font-size: 19px; line-height: 1.6; color: var(--text-soft); max-width: 600px; }
.hero__actions { display: flex; flex-direction: column; gap: 12px; }
.ratings { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 8px; }
.rating {
  border-radius: 16px; padding: 12px 18px; display: flex; align-items: center; gap: 14px; color: var(--white);
}
.rating:hover { color: var(--white); border-color: rgba(255,255,255,.32); }
.rating__value { font-family: var(--font-display); font-size: 26px; line-height: 1; }
.rating__meta { display: flex; flex-direction: column; font-size: 13px; line-height: 1.35; color: var(--text-soft); }
.stars { color: var(--star); letter-spacing: 2px; }

/* ---------- Services ---------- */
.featured { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 480px), 1fr)); gap: 16px; margin-bottom: 16px; }
.featured-card { border-radius: 24px; padding: clamp(24px, 3vw, 36px); display: flex; flex-direction: column; gap: 18px; border-color: rgba(255,255,255,.22); }
.featured-card__head { display: flex; align-items: center; gap: 14px; }
.featured-card__icon {
  width: 52px; height: 52px; border-radius: var(--radius-sm); background: var(--accent); color: var(--white);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.featured-card h3 { font-family: var(--font-display); font-weight: 500; font-size: 24px; line-height: 1.2; }
.featured-card p { font-size: 16px; line-height: 1.6; color: var(--text-muted); }
.checklist {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 10px 20px;
  font-size: 15px; line-height: 1.45;
}
.checklist li { display: flex; gap: 10px; }
.checklist svg { flex-shrink: 0; margin-top: 2px; color: var(--check); }

.services-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr)); gap: 16px; }
.service-card { border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; gap: 12px; }
.service-card__icon {
  width: 44px; height: 44px; border-radius: 12px; background: rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: center;
}
.service-card h3 { font-weight: 700; font-size: 20px; line-height: 1.3; }
.service-card p { font-size: 15px; line-height: 1.6; color: var(--text-muted); }

/* ---------- Why ---------- */
.why .section__inner { padding: 120px 0; }
.why .section-title { font-size: clamp(28px, 3.4vw, 46px); max-width: 720px; padding: 0 8px; margin-bottom: 40px; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 16px; }
.fact { border-radius: var(--radius); padding: 24px; }
.fact__value { font-family: var(--font-display); font-size: 34px; line-height: 1.2; }
.fact__label { color: var(--text-muted); font-size: 15px; margin-top: 8px; line-height: 1.5; }

/* ---------- Reviews ---------- */
.reviews__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; padding: 0 8px; margin-bottom: 28px; }
.reviews__head .section-head { padding: 0; margin: 0; }
.platform-ratings { display: flex; flex-wrap: wrap; gap: 12px; }
.platform-rating { border-radius: 18px; padding: 14px 20px; display: flex; align-items: center; gap: 14px; color: var(--white); }
.platform-rating:hover { color: var(--white); border-color: rgba(255,255,255,.32); }
.platform-rating__logo {
  width: 40px; height: 40px; border-radius: 12px; color: var(--white); font-weight: 700;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.platform-rating__logo--2gis { background: #19AA1E; font-size: 13px; }
.platform-rating__logo--yandex { background: #FC3F1D; font-size: 18px; }
.platform-rating__value { font-family: var(--font-display); font-size: 28px; line-height: 1; }
.platform-rating__meta { display: flex; flex-direction: column; font-size: 13px; color: var(--text-muted); }

.review-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 16px; margin-bottom: 24px; }
.review-list:empty { display: none; }
.review { margin: 0; border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.review__head { display: flex; align-items: center; gap: 12px; }
.review__avatar {
  width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,.14);
  display: flex; align-items: center; justify-content: center; font-weight: 700; flex-shrink: 0;
}
.review__author { display: flex; flex-direction: column; }
.review__source { font-size: 13px; color: var(--text-muted); }
.review__stars { margin-left: auto; color: var(--star); letter-spacing: 1px; white-space: nowrap; }
.review blockquote { margin: 0; font-size: 16px; line-height: 1.6; color: #E4E8F3; }
.reviews__actions { padding: 0 8px; }

/* ---------- FAQ ---------- */
.faq { overflow: hidden; }
.faq .section__inner { max-width: 880px; margin: 0 auto; position: relative; }
/* Эмблемы марок на фоне: белые силуэты почти прозрачные, по углам секции */
.faq__brands {
  position: absolute; inset: 0; pointer-events: none; user-select: none;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 25%, #000 75%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 25%, #000 75%, transparent 100%);
}
/* плитка brands-tile.svg (собрана из vw/audi/skoda/seat.svg) замощает фон с наклоном; фильтр делает её белой */
.faq__tile {
  position: absolute; inset: -20%;
  background: url("../img/brands/brands-tile.svg") 0 0 / 600px 420px repeat;
  filter: brightness(0) invert(1) blur(1px); opacity: .07; transform: rotate(-8deg);
}
@media (max-width: 760px) { .faq__tile { background-size: 420px 294px; } }
/* дымка поверх эмблем и виньетка по краям секции */
.faq__brands::before, .faq__brands::after { content: ""; position: absolute; inset: 0; }
.faq__brands::before {
  background:
    radial-gradient(ellipse 40% 30% at 15% 30%, rgba(200,206,230,.05), transparent 70%),
    radial-gradient(ellipse 40% 30% at 85% 70%, rgba(200,206,230,.05), transparent 70%);
  -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
}
.faq__brands::after { background: radial-gradient(ellipse 75% 70% at 50% 50%, transparent 40%, rgba(8,12,28,.75) 100%); }
.faq .section-title { text-align: center; margin-bottom: 28px; }
.faq-list { display: flex; flex-direction: column; gap: 16px; }
.faq-item { border-radius: 18px; padding: 0 24px; }
.faq-item summary {
  min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  font-weight: 700; font-size: 18px; list-style: none; cursor: pointer; padding: 12px 0;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary svg { flex-shrink: 0; transition: transform .2s; }
.faq-item[open] summary svg { transform: rotate(180deg); }
.faq-item p { padding-bottom: 22px; color: var(--text-muted); line-height: 1.6; }

/* ---------- Route ---------- */
.route__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 16px; }
.route-card { border-radius: var(--radius-lg); padding: clamp(28px, 4vw, 44px); display: flex; flex-direction: column; gap: 22px; }
.route-card h2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(26px, 3vw, 36px); }
.info { display: flex; flex-direction: column; gap: 4px; }
.info__label { font-size: 14px; color: var(--text-muted); font-weight: 600; }
.info__value { font-size: 19px; font-weight: 700; line-height: 1.4; }
.info__note { font-size: 15px; color: var(--text-muted); }
.hours { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.hours__row { display: flex; align-items: center; gap: 18px; }
.hours__days { display: flex; gap: 7px; }
.hours__dot { width: 11px; height: 11px; border-radius: 50%; background: rgba(255,255,255,.14); }
.hours__row--weekday .hours__dot.is-on { background: #8FA6FF; box-shadow: 0 0 8px rgba(143,166,255,.55); }
.hours__row--weekend .hours__dot.is-on { background: #FFB23D; box-shadow: 0 0 8px rgba(255,178,61,.5); }
/* Сегодняшний день (класс ставит main.js по времени Новосибирска) — ярче остальных */
.hours__row--weekday .hours__dot.is-on.is-today { background: #E2E8FF; box-shadow: 0 0 6px 1px rgba(190,205,255,.95), 0 0 14px rgba(143,166,255,.8); }
.hours__row--weekend .hours__dot.is-on.is-today { background: #FFE3A8; box-shadow: 0 0 6px 1px rgba(255,214,140,.95), 0 0 14px rgba(255,178,61,.8); }
.hours__time { font-size: 19px; font-weight: 700; line-height: 1.4; font-variant-numeric: tabular-nums; }
.info--contacts { padding-top: 18px; border-top: 1px solid rgba(255,255,255,.14); gap: 10px; }
.info .btn-row { gap: 10px; }
.map {
  border-radius: var(--radius-lg); overflow: hidden; min-height: 460px; position: relative;
  background: #1A2240;
}
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg); border-top: 1px solid rgba(255,255,255,.08); }
.site-footer__inner {
  padding: 32px 24px 40px; display: flex; flex-wrap: wrap; gap: 16px 28px;
  justify-content: space-between; align-items: center; font-size: 14px; color: #A9B1C9;
}
.site-footer img { height: 32px; width: auto; opacity: .85; }
.site-footer a { color: #A9B1C9; }
.site-footer a:hover { color: var(--white); }
.site-footer__links { display: flex; gap: 18px; flex-wrap: wrap; }

/* ---------- Cookie notice ---------- */
.cookie {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60;
  max-width: 560px; margin: 0 auto; border-radius: var(--radius); padding: 16px 18px;
  display: flex; align-items: center; gap: 16px; font-size: 14px; line-height: 1.5; color: var(--text-soft);
  box-shadow: 0 20px 40px rgba(0,0,0,.35);
}
.cookie[hidden] { display: none; }
.cookie .btn { min-height: 44px; flex-shrink: 0; }

/* ---------- Text page (policy, 404) ---------- */
.page { padding: 40px 0 96px; }
.page__card { border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 56px); max-width: 920px; margin: 0 auto; }
.page h1 { font-family: var(--font-display); font-weight: 600; font-size: clamp(26px, 3.4vw, 40px); line-height: 1.2; margin-bottom: 28px; }
.page h2 { font-size: 20px; font-weight: 700; margin: 32px 0 12px; }
.page p, .page li { color: var(--text-soft); line-height: 1.7; }
.page p + p { margin-top: 10px; }
.page ul { padding-left: 20px; }
.page table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 14px; }
.page th, .page td { border: 1px solid rgba(255,255,255,.16); padding: 10px 12px; text-align: left; vertical-align: top; color: var(--text-soft); }
.page__table { overflow-x: auto; }

html { background: #080C1C; }
/* policy.html, 404.html: свой фон, не зависящий от секции FAQ (overflow: hidden на body запрещает прокрутку) */
.text-page {
  min-height: 100vh; display: flex; flex-direction: column;
  background:
    radial-gradient(circle at 0% 10%, rgba(80,76,186,.38), transparent 50%),
    radial-gradient(circle at 100% 100%, rgba(229,82,27,.16), transparent 45%),
    var(--bg);
  background-attachment: fixed;
}
.text-page main { flex: 1; }

/* ========== Статьи ========== */
.header-bar .header-link { background: #F0F3F9; color: var(--navy); }
.header-bar .header-link:hover { background: #E3E8F4; color: var(--navy); }
.main-nav a[aria-current="page"] { background: #EEF2FF; color: var(--accent); }

.inner-page {
  background:
    radial-gradient(circle at 0% 0%, rgba(80,76,186,.32), transparent 40%),
    radial-gradient(circle at 100% 60%, rgba(229,82,27,.12), transparent 40%),
    var(--bg);
  background-attachment: fixed; min-height: 100vh; display: flex; flex-direction: column;
}
.inner-main { flex: 1; padding: 32px 0 96px; }
.page-title { font-family: var(--font-display); font-weight: 600; font-size: clamp(28px, 4vw, 48px); line-height: 1.12; letter-spacing: -.01em; }

.breadcrumbs ol { list-style: none; margin: 0 0 28px; padding: 0 8px; display: flex; flex-wrap: wrap; gap: 6px; font-size: 14px; color: var(--text-muted); }
.breadcrumbs li { min-width: 0; }
.breadcrumbs li + li::before { content: "/"; margin-right: 6px; opacity: .5; }
.breadcrumbs a { color: var(--text-muted); }
.breadcrumbs a:hover { color: var(--white); }
.breadcrumbs [aria-current] { color: var(--text-soft); }

.articles-head { display: flex; flex-direction: column; gap: 12px; padding: 0 8px; margin-bottom: 28px; }
.articles-tools { display: flex; flex-direction: column; gap: 18px; margin-bottom: 24px; }

.search-field { display: flex; align-items: center; gap: 12px; border-radius: 18px; padding: 8px 8px 8px 18px; max-width: 720px; }
.search-field svg { flex-shrink: 0; color: var(--text-muted); }
.search-field input {
  flex: 1; min-width: 0; height: 44px; border: 0; background: transparent; color: var(--white);
  font: inherit; font-size: 17px; outline: none;
}
.search-field input::placeholder { color: #8E97B5; }
.search-field input::-webkit-search-cancel-button { filter: invert(1); }
.search-field:focus-within { border-color: rgba(143,166,255,.7); }
.search-field .btn { min-height: 44px; }
html:not(.no-js) .search-field .btn { display: none; }

.tag-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tag-chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border-radius: 999px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); color: var(--text-soft);
  font-size: 14px; font-weight: 600; transition: background-color .15s, border-color .15s, color .15s;
}
.tag-chip:hover { background: rgba(255,255,255,.16); color: var(--white); }
.tag-chip[aria-current="true"] { background: var(--accent); border-color: var(--accent); color: var(--white); }
.tag-chip__count { font-weight: 500; opacity: .7; font-size: 13px; }
.tag-chip--small { min-height: 30px; padding: 0 10px; font-size: 13px; }

.articles-count { margin: 0; padding: 0 8px; font-size: 14px; color: var(--text-muted); }

.article-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 16px; }
.article-card { position: relative; border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: border-color .15s; }
.article-card[hidden] { display: none; }
.article-card:hover { border-color: rgba(255,255,255,.32); }
.article-card__cover { aspect-ratio: 16 / 9; background: #121A36; overflow: hidden; }
.article-card__cover img { width: 100%; height: 100%; object-fit: cover; }
.article-card__cover--empty {
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle at 30% 20%, rgba(80,76,186,.45), transparent 60%), #121A36;
}
.article-card__cover--empty img { width: 64px; height: auto; opacity: .5; }
.article-card__body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.article-meta { font-size: 13px; color: var(--text-muted); }
.article-card__title { font-size: 20px; font-weight: 700; line-height: 1.3; }
.article-card__title a { color: var(--white); }
.article-card__title a::after { content: ""; position: absolute; inset: 0; }
.article-card__text { font-size: 15px; line-height: 1.6; color: var(--text-muted); flex: 1; }
.article-card .tag-list { position: relative; z-index: 1; }

.articles-empty { border-radius: var(--radius); padding: 24px 28px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; color: var(--text-soft); margin-top: 16px; }
.articles-empty[hidden] { display: none; }
.articles-more { display: flex; justify-content: center; margin-top: 24px; }
.articles-more .btn[hidden] { display: none; }

/* Список статей и страницы статей: фото Golf GTI зафиксировано на весь экран, контент прокручивается поверх.
   Фон body снят, чтобы слой z-index:-1 был виден; подвал со своим фоном его перекрывает. */
.articles-page { background: none; }
.articles-page::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(90deg, rgba(8,12,28,.85) 0%, rgba(8,12,28,.62) 50%, rgba(8,12,28,.35) 100%),
    radial-gradient(circle at 0% 0%, rgba(80,76,186,.38), transparent 45%),
    radial-gradient(circle at 100% 100%, rgba(229,82,27,.14), transparent 45%),
    url("../img/bg-articles.jpg");
  background-position: center, center, center, right top;
  background-size: cover;
}
@media (max-width: 760px) {
  .articles-page::before {
    background-image:
      linear-gradient(90deg, rgba(8,12,28,.85) 0%, rgba(8,12,28,.72) 100%),
      radial-gradient(circle at 0% 0%, rgba(80,76,186,.38), transparent 45%),
      url("../img/bg-articles.jpg");
    background-position: center, center, 75% top;
  }
}
.photo-credit { margin: 48px 0 0; padding: 0 8px; font-size: 7.2px; color: var(--text-muted); opacity: .7; }
.photo-credit a { color: inherit; text-decoration: underline; }

.latest-articles__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 28px; padding-right: 8px; }
.latest-articles__head .section-head { margin-bottom: 0; }

/* Страница статьи */
.article { max-width: 860px; margin: 0 auto; display: flex; flex-direction: column; gap: 28px; }
.article__notice { margin: 0; padding: 14px 18px; border-radius: var(--radius-sm); background: rgba(255,178,61,.14); border: 1px solid rgba(255,178,61,.4); color: #FFD9A0; font-weight: 600; }
.article__header { display: flex; flex-direction: column; gap: 16px; padding: 0 8px; }
.article__lead { font-size: 19px; line-height: 1.6; color: var(--text-soft); }
.article__cover { margin: 0; border-radius: var(--radius-lg); overflow: hidden; }
.article__cover img { width: 100%; }

.prose { border-radius: var(--radius-lg); padding: clamp(22px, 4vw, 48px); font-size: 17px; line-height: 1.75; color: var(--text-soft); }
.prose > :first-child { margin-top: 0; }
.prose > :last-child { margin-bottom: 0; }
.prose h2 { font-family: var(--font-display); font-weight: 500; font-size: clamp(22px, 2.6vw, 28px); line-height: 1.25; color: var(--white); margin: 40px 0 14px; }
.prose h3 { font-size: 20px; font-weight: 700; color: var(--white); margin: 30px 0 10px; }
.prose p, .prose ul, .prose ol, .prose blockquote, .prose figure, .prose pre, .prose__table { margin: 0 0 18px; }
.prose ul, .prose ol { padding-left: 24px; }
.prose li + li { margin-top: 6px; }
.prose li::marker { color: #8FA6FF; }
.prose strong { color: var(--white); }
.prose a { color: #8FA6FF; text-decoration: underline; text-underline-offset: 3px; }
.prose blockquote { padding: 14px 20px; border-radius: var(--radius-sm); background: rgba(36,73,232,.14); border: 1px solid rgba(143,166,255,.3); color: var(--white); }
.prose blockquote p:last-child { margin-bottom: 0; }
.prose img { border-radius: var(--radius-sm); width: 100%; }
.prose figure img { margin-bottom: 8px; }
.prose figcaption { font-size: 14px; color: var(--text-muted); text-align: center; }
.prose code { font-family: Consolas, "Courier New", monospace; font-size: .9em; background: rgba(255,255,255,.08); padding: 2px 6px; border-radius: 6px; }
.prose pre { overflow-x: auto; padding: 16px; border-radius: var(--radius-sm); background: rgba(0,0,0,.35); }
.prose pre code { background: none; padding: 0; }
.prose hr { border: 0; border-top: 1px solid rgba(255,255,255,.14); margin: 32px 0; }
.prose__table { overflow-x: auto; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; }
.prose th, .prose td { border: 1px solid rgba(255,255,255,.16); padding: 10px 12px; text-align: left; vertical-align: top; }
.prose th { color: var(--white); background: rgba(255,255,255,.06); }

.cta { border-radius: var(--radius-lg); padding: clamp(22px, 4vw, 36px); display: flex; flex-direction: column; gap: 18px; border-color: rgba(255,255,255,.22); }
.cta__title { font-family: var(--font-display); font-weight: 500; font-size: 24px; color: var(--white); margin-bottom: 8px; }
.cta p { color: var(--text-muted); line-height: 1.6; }

.related { margin-top: 72px; }
.related .section-title { padding: 0 8px; margin-bottom: 24px; }

/* В меню стало 5 пунктов — марки в шапке показываем только на широких экранах */
@media (max-width: 1400px) { .header-brands { display: none; } }
@media (max-width: 1100px) { .main-nav a { padding: 10px 9px; } }

/* ---------- Booking ---------- */
.header-cta { min-height: 44px; padding: 0 18px; font-size: 15px; flex-shrink: 0; }
@media (max-width: 960px) {
  .header-cta { margin-left: auto; }
  .header-cta + .burger { margin-left: 0; }
}
@media (max-width: 520px) {
  .header-cta { display: none; }
  .header-cta + .burger { margin-left: auto; }
}

.booking {
  background:
    var(--fade),
    radial-gradient(circle at 100% 0%, rgba(36,73,232,.22), transparent 50%),
    radial-gradient(circle at 0% 100%, rgba(80,76,186,.28), transparent 50%),
    var(--bg);
}
.booking.is-inview, .no-js .booking {
  background-image:
    var(--fade),
    linear-gradient(90deg, rgba(8,12,28,.82) 0%, rgba(8,12,28,.6) 50%, rgba(8,12,28,.45) 100%),
    radial-gradient(circle at 100% 0%, rgba(36,73,232,.22), transparent 50%),
    url("../img/bg-booking.jpg");
  background-position: center, center, center, right center; background-size: cover;
}
.booking__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
.booking__intro { display: flex; flex-direction: column; gap: 20px; padding: 0 8px; }
.booking__points { grid-template-columns: 1fr; gap: 12px; font-size: 16px; }
.booking__call {
  display: flex; flex-direction: column; gap: 4px; padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.12); font-size: 15px; color: var(--text-muted);
}
.booking__call a { color: var(--white); font-weight: 700; font-size: 19px; }
.booking__call a:hover { color: #B9C8FF; }
.booking__hours-label { margin-top: 14px; font-size: 14px; font-weight: 600; }
.booking__call .hours__time { color: var(--white); font-size: 17px; }
.booking-card { border-radius: var(--radius-lg); padding: clamp(22px, 3.5vw, 40px); border-color: rgba(255,255,255,.18); }
@media (max-width: 960px) { .booking__grid { grid-template-columns: minmax(0, 1fr); } }

.booking-form { display: flex; flex-direction: column; gap: 18px; }
.booking-form[hidden] { display: none; }
.booking-form__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field__label { font-size: 14px; font-weight: 600; color: var(--text-soft); }
.field__label b { color: #8FA6FF; }
.field__input {
  width: 100%; min-height: 52px; padding: 13px 16px; margin: 0;
  border-radius: var(--radius-sm); border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.06);
  color: var(--white); font: inherit; font-size: 16px; line-height: 1.5;
  transition: border-color .15s, background-color .15s, box-shadow .15s;
}
.field__input::placeholder { color: #8E97B5; opacity: 1; }
.field__input:hover { border-color: rgba(255,255,255,.28); }
.field__input:focus { outline: none; border-color: #8FA6FF; background: rgba(255,255,255,.09); box-shadow: 0 0 0 3px rgba(36,73,232,.35); }
.field__input:-webkit-autofill { -webkit-text-fill-color: var(--white); caret-color: var(--white); box-shadow: 0 0 0 1000px #141B38 inset; }
textarea.field__input { min-height: 120px; resize: vertical; }
.field.is-invalid .field__input { border-color: #FFB23D; box-shadow: 0 0 0 3px rgba(255,178,61,.16); }
.field__error { font-size: 13.5px; line-height: 1.4; color: #FFD9A0; }
.field__error[hidden] { display: none; }

.check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 1.5; color: var(--text-muted); cursor: pointer; }
.check__input {
  -webkit-appearance: none; appearance: none; flex-shrink: 0; width: 22px; height: 22px; margin: 0;
  border-radius: 7px; border: 1.5px solid rgba(255,255,255,.35); background: rgba(255,255,255,.06) center / 14px no-repeat;
  cursor: pointer; transition: background-color .15s, border-color .15s;
}
.check__input:checked {
  background-color: var(--accent); border-color: var(--accent);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E");
}
.check__input:focus-visible { outline: 3px solid #8FA6FF; outline-offset: 2px; }
.field.is-invalid .check__input { border-color: #FFB23D; }

.booking-form__hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.booking-form__alert {
  padding: 12px 16px; border-radius: var(--radius-sm); background: rgba(255,178,61,.14);
  border: 1px solid rgba(255,178,61,.4); color: #FFD9A0; font-weight: 600; font-size: 15px; line-height: 1.5;
}
.booking-form__alert[hidden] { display: none; }
.booking-form__submit { width: 100%; }
.booking-form__submit[aria-busy="true"] { pointer-events: none; opacity: .85; }
.booking-form__submit[aria-busy="true"]::before {
  content: ""; width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid currentColor; border-right-color: transparent; animation: booking-spin .8s linear infinite;
}
@keyframes booking-spin { to { transform: rotate(360deg); } }

.booking-success { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; padding: 8px 0; }
.booking-success[hidden] { display: none; }
.booking-success__icon {
  width: 64px; height: 64px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: rgba(61,220,132,.14); border: 1px solid rgba(61,220,132,.4); color: var(--ok);
}
.booking-success__title { font-family: var(--font-display); font-weight: 500; font-size: 24px; line-height: 1.25; }
.booking-success__title:focus { outline: none; }
.booking-success p { color: var(--text-muted); line-height: 1.6; }

.booking-dialog {
  width: min(600px, calc(100% - 32px)); max-width: none; max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px);
  padding: 0; margin: auto; border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius-lg);
  background: #0E1430; color: var(--white); box-shadow: 0 30px 80px rgba(0,0,0,.5);
  overflow: auto; overscroll-behavior: contain;
}
.booking-dialog::backdrop { background: rgba(8,12,28,.72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.booking-dialog[open] { animation: booking-dialog-in .2s ease-out; }
@keyframes booking-dialog-in { from { opacity: 0; transform: translateY(12px); } }
.booking-dialog__inner { position: relative; padding: clamp(22px, 4vw, 36px); display: flex; flex-direction: column; gap: 20px; }
.booking-dialog__title { font-family: var(--font-display); font-weight: 500; font-size: clamp(22px, 3vw, 28px); line-height: 1.2; padding-right: 52px; }
.booking-dialog__lead { color: var(--text-muted); font-size: 15px; line-height: 1.6; margin-top: -8px; }
.booking-dialog.is-done .booking-dialog__lead { display: none; }
.booking-dialog__close {
  position: absolute; top: 14px; right: 14px; width: 44px; height: 44px; border-radius: 12px; border: 0;
  background: rgba(255,255,255,.08); color: var(--white); display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.booking-dialog__close:hover { background: rgba(255,255,255,.16); }
html.is-dialog-open { overflow: hidden; }
@media (max-width: 520px) {
  .booking-dialog {
    width: 100%; margin: auto 0 0; border-bottom: 0; border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    max-height: calc(100vh - 12px); max-height: calc(100dvh - 12px);
  }
  .booking-dialog[open] { animation-name: booking-sheet-in; }
  .booking-dialog__inner { padding-bottom: calc(22px + env(safe-area-inset-bottom)); }
  .booking-dialog textarea.field__input { min-height: 96px; }
}
@keyframes booking-sheet-in { from { opacity: 0; transform: translateY(40px); } }
@media (prefers-reduced-motion: reduce) {
  .booking-dialog[open], .booking-form__submit[aria-busy="true"]::before { animation: none; }
}

.booking-result { display: flex; flex-direction: column; gap: 18px; }
.booking-result p, .booking-result li { color: var(--text-soft); line-height: 1.6; }
.booking-result ul { margin: 0; padding-left: 20px; }
