/* ==========================================================================
   АвтоКом16 — style.css
   1/4 — переменные, сброс, типографика, контейнер, кнопки, формы
   ========================================================================== */

/* Атрибут hidden обязан скрывать: правило класса с display перебивает
   браузерное [hidden]{display:none}, и скрытый блок остаётся видимым. */
[hidden] { display: none !important; }

:root {
  /* Палитра */
  --bg: #F5F4F1;
  --bg-muted: #EBEAE6;
  --bg-dark: #171717;
  --bg-dark-2: #1A1A1A;
  --text: #17160F;
  --text-body: #3D3C39;
  --text-muted: #6E6C67;
  --text-on-dark: #F5F4F1;
  --text-on-dark-muted: #B9B7B0;
  --accent: #C23515;
  --accent-hover: #9E2A0F;
  --line: #E2DFD8;
  --line-dark: #2B2B29;
  --gradient-dark: linear-gradient(135deg, #171717 0%, #2A2A28 100%);

  /* Типографика */
  --font-head: 'Archivo', system-ui, sans-serif;
  --font-body: 'Source Sans 3', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, Consolas, monospace;

  /* Сетка */
  --container-w: 1280px;
  --container-pad: 24px;
  --radius: 7px;
  --radius-sm: 6px;

  --shadow-none: none;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

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

img { max-width: 100%; display: block; height: auto; }
svg { flex-shrink: 0; }

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

ul, ol { margin: 0; padding: 0; list-style: none; }

button {
  font-family: inherit;
  cursor: pointer;
  background: none;
  border: none;
  color: inherit;
}

input, textarea, select {
  font-family: inherit;
  font-size: 16px;
  color: var(--text);
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--text);
  margin: 0 0 0.5em;
  line-height: 1.12;
}

h1 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: 1.15rem; font-weight: 700; }

p { margin: 0 0 1em; color: var(--text-body); }
p:last-child { margin-bottom: 0; }

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

.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: -999px;
  top: 0;
  background: var(--accent);
  color: #fff;
  padding: 12px 18px;
  z-index: 1000;
  border-radius: 0 0 6px 0;
}
.skip-link:focus {
  left: 0;
}

/* Служебные метки — моно, uppercase */
.section-tag, .card-tag, .mono-tag {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 10px;
}
.section-tag--light { color: #E8A488; }

.section-title { max-width: 46ch; }
.section-title--light { color: var(--text-on-dark); }

.section { padding: 72px 0; }
.section--muted { background: var(--bg-muted); }
.section--dark { background: var(--bg-dark); color: var(--text-on-dark-muted); }
.section--dark h2, .section--dark h3 { color: var(--text-on-dark); }

/* ============================== Кнопки ============================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  padding: 13px 26px;
  border-radius: var(--radius-sm);
  transition: background-color .15s ease, border-color .15s ease, color .15s ease, transform .1s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn--pill {
  border-radius: 10px;
  background: var(--bg-dark);
  color: #fff;
  border: 1px solid var(--bg-dark);
}
.btn--pill:hover { background: var(--accent); border-color: var(--accent); }
.btn--pill:focus-visible { background: var(--accent); border-color: var(--accent); }

.btn--dark { background: var(--bg-dark); color: #fff; }

.btn--accent {
  background: var(--accent);
  color: #fff;
  border: 1px solid var(--accent);
}
.btn--accent:hover { background: var(--accent-hover); border-color: var(--accent-hover); }

.btn--outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--text);
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 0.04em;
  padding: 12px 24px;
}
.btn--outline:hover { background: var(--text); color: #fff; }

.btn--outline-light {
  background: transparent;
  color: var(--text-on-dark);
  border: 1px solid rgba(245,244,241,0.5);
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 0.04em;
  padding: 12px 24px;
}
.btn--outline-light:hover { background: rgba(245,244,241,0.12); border-color: #fff; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: var(--text);
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
}
.text-link:hover { color: var(--accent); border-color: var(--accent); }
.text-link svg { transition: transform .15s ease; }
.text-link:hover svg { transform: translateX(3px); }

.text-link--light { color: var(--text-on-dark); border-color: rgba(245,244,241,0.35); }
.text-link--light:hover { color: #fff; border-color: #fff; }

/* ============================== Формы ============================== */

input[type="text"], input[type="search"], input[type="tel"], input[type="email"], textarea {
  width: 100%;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  color: var(--text);
}
input::placeholder, textarea::placeholder { color: var(--text-muted); }

input:focus, textarea:focus {
  outline: none;
  border-color: var(--text);
}

textarea { resize: vertical; min-height: 88px; }

.checkbox-line {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 13px;
  color: var(--text-muted);
  cursor: pointer;
}
.checkbox-line input { width: 16px; height: 16px; margin-top: 2px; accent-color: var(--accent); flex-shrink: 0; }

label.visually-hidden + input,
label.visually-hidden + textarea { margin: 0; }

/* ==========================================================================
   2/4 — шапка, навигация, бургер, мобильное меню, футер
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

/* ---- верхний ряд: логотип / поиск / корзина+телефон ---- */
.header-top { padding: 16px 0; }
.header-top__row {
  display: flex;
  align-items: center;
  gap: 24px;
}

.logo {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo__mark { flex: 0 0 auto; display: flex; }
.logo__text { display: flex; flex-direction: column; line-height: 1.2; }
.logo__name {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.01em;
  color: var(--text);
}
.logo__sub {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
}
.logo--footer .logo__name { color: var(--text-on-dark); }

.header-search {
  flex: 1 1 auto;
  display: flex;
  max-width: 480px;
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}
.header-search input {
  flex: 1 1 auto;
  border: none;
  border-radius: 0;
  padding: 11px 18px;
}
.header-search input:focus { outline: none; }
.header-search button {
  flex: 0 0 auto;
  background: var(--bg-dark);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  padding: 0 22px;
  transition: background-color .15s ease;
}
.header-search button:hover { background: var(--accent); }

.header-top__actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 20px;
}
.header-cart {
  display: flex;
  color: var(--text);
  transition: color .15s ease;
}
.header-cart:hover { color: var(--accent); }

.header-phone {
  display: flex;
  align-items: center;
  gap: 7px;
  font-weight: 700;
  font-size: 16px;
  color: var(--accent);
  white-space: nowrap;
}
.header-phone:hover { color: var(--accent-hover); }

.burger {
  display: none;
  color: var(--text);
  padding: 4px;
}

/* ---- нижний ряд: горизонтальное меню ---- */
.header-nav { background: var(--bg); }
.header-nav__row { display: flex; }

.main-nav { width: 100%; }
.main-nav > ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px;
}
.main-nav__item { position: relative; }
.main-nav__item > a {
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  padding: 13px 14px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text-body);
  border-bottom: 2px solid transparent;
  transition: color .15s ease, border-color .15s ease;
}
.main-nav__item > a:hover,
.main-nav__item.is-active > a {
  color: var(--text);
  border-color: var(--accent);
}
.main-nav__item > a svg { color: var(--text-muted); }

.main-nav__dropdown {
  position: absolute;
  left: 0;
  top: 100%;
  min-width: 300px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 8px;
  box-shadow: 0 16px 32px rgba(23,22,15,0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity .15s ease, transform .15s ease, visibility .15s ease;
  z-index: 20;
}
.main-nav__item.has-children:hover .main-nav__dropdown,
.main-nav__item.has-children:focus-within .main-nav__dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.main-nav__dropdown li a {
  display: block;
  padding: 10px 12px;
  border-radius: 4px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-body);
  white-space: normal;
}
.main-nav__dropdown li a:hover { background: var(--bg-muted); color: var(--accent); }

/* ---- мобильная выпадающая панель (поиск + телефон) ---- */
.mobile-panel {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--bg);
  overflow-y: auto;
}
.mobile-panel[hidden] { display: none; }
.mobile-panel__inner { padding: 90px 20px 40px; max-width: 480px; margin: 0 auto; }

.mobile-search {
  display: flex;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  margin-bottom: 24px;
}
.mobile-search input { flex: 1 1 auto; border: none; padding: 12px 16px; }
.mobile-search input:focus { outline: none; }
.mobile-search button {
  flex: 0 0 auto;
  background: var(--bg-dark);
  color: #fff;
  padding: 0 18px;
}

.mobile-nav__item { border-bottom: 1px solid var(--line); }
.mobile-nav__item > a,
.mobile-nav__toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 16px 4px;
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  text-align: left;
}
.mobile-nav__toggle svg { transition: transform .2s ease; }
.mobile-nav__toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.mobile-nav__dropdown { padding: 0 0 12px 12px; }
.mobile-nav__dropdown[hidden] { display: none; }
.mobile-nav__dropdown li a {
  display: block;
  padding: 10px 4px;
  font-size: 14.5px;
  color: var(--text-muted);
}
.mobile-nav__dropdown li a:hover { color: var(--accent); }

.mobile-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  font-weight: 700;
  font-size: 18px;
  color: var(--accent);
}

/* close button reuses .burger position inside header once open */
.site-header.is-open .burger { color: var(--accent); }

/* ==========================================================================
   Строка подписки на соцсети
   ========================================================================== */
.social-strip { background: var(--bg-muted); padding: 34px 0; }
.social-strip__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.social-strip__row p {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 17px;
  color: var(--text);
  margin: 0;
}
.social-strip__buttons { display: flex; gap: 12px; }

/* ==========================================================================
   Футер
   ========================================================================== */
.site-footer { background: var(--bg-dark); color: var(--text-on-dark-muted); padding: 56px 0 0; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1.4fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--line-dark);
}

.footer-col__title {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-on-dark-muted);
  margin: 0 0 16px;
  font-weight: 500;
}

.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a:hover { color: var(--accent); }

.footer-col--brand { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.footer-tagline { font-size: 14px; color: var(--text-on-dark-muted); max-width: 30ch; margin: 0; }
.footer-policy { font-size: 13.5px; text-decoration: underline; text-underline-offset: 3px; }

.footer-legal { font-size: 14px; color: var(--text-on-dark-muted); }
.footer-legal li:first-child { color: var(--text-on-dark); font-weight: 600; }

.footer-col--contacts { display: flex; flex-direction: column; }
.footer-phone {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 22px;
  color: var(--accent);
  margin-bottom: 4px;
}
.footer-email { font-size: 14.5px; color: var(--text-on-dark); margin-bottom: 20px; }

.footer-address-group { margin-bottom: 18px; }
.footer-address-group__title {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-on-dark-muted);
  margin: 0 0 10px;
}
.footer-address {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 0;
  border-top: 1px solid var(--line-dark);
}
.footer-address__text { font-size: 13.5px; margin: 0; color: var(--text-on-dark-muted); }
.footer-address__text span { color: var(--text-muted); }
.footer-address__icons { display: flex; gap: 8px; flex-shrink: 0; padding-top: 2px; }
.footer-address__icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 1px solid var(--line-dark);
  color: var(--text-on-dark-muted);
  transition: border-color .15s ease, color .15s ease;
}
.footer-address__icons a:hover { border-color: var(--accent); color: var(--accent); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 20px 0;
  font-size: 12.5px;
  color: var(--text-muted);
}
.footer-bottom p { margin: 0; color: inherit; }

/* ==========================================================================
   3/4 — стили секций страниц
   ========================================================================== */

/* ---- Хлебная секция-обёртка для внутренних страниц (H1 + intro) ---- */
.page-hero {
  padding: 56px 0 44px;
  border-bottom: 1px solid var(--line);
}
.page-hero__tag { margin-bottom: 14px; }
.page-hero p.lead {
  font-size: 18px;
  color: var(--text-body);
  max-width: 70ch;
}
.page-hero__row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  flex-wrap: wrap;
}

/* ---- Герой главной страницы (тёмный фотофон) ---- */
.hero {
  position: relative;
  background: var(--bg-dark) var(--hero-bg) center/cover no-repeat;
  color: var(--text-on-dark);
  min-height: 560px;
  display: flex;
  align-items: center;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(23,23,23,.55) 0%, rgba(23,23,23,.82) 75%, #171717 100%);
}
.hero__inner { position: relative; z-index: 1; }
.hero__tag { color: #E8A488; }
.hero h1 { color: #fff; }
.hero__lead { font-size: 18px; color: var(--text-on-dark-muted); max-width: 56ch; margin-bottom: 28px; }
.hero__actions { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.hero__phone { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 17px; color: #fff; }
.hero__phone svg { color: var(--accent); }

/* ---- О компании (2 колонки, эмблема) ---- */
.about-intro__row {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 56px;
  align-items: center;
}
.about-intro__list { display: flex; flex-direction: column; gap: 14px; margin: 20px 0 26px; padding: 0; }
.about-intro__list li {
  display: flex;
  gap: 12px;
  font-size: 15.5px;
  color: var(--text-body);
}
.about-intro__list svg { flex-shrink: 0; margin-top: 3px; color: var(--accent); }
.about-intro__badge {
  aspect-ratio: 1;
  border-radius: var(--radius);
  background: var(--gradient-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.about-intro__badge svg { width: 46%; height: 46%; color: var(--accent); }
.about-intro__badge::after {
  content: "SCHMIDT · ГРУЗОВОЙ ТРАНСПОРТ · СПЕЦТЕХНИКА";
  position: absolute;
  bottom: 18px; left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-on-dark-muted);
  white-space: nowrap;
}
.about-intro__email { display: block; margin-top: 14px; color: var(--text-muted); font-size: 14px; }

/* ---- Наши услуги: 4 карточки 2x2 ---- */
.services__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.service-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
}
.service-card__icon {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--bg-muted);
  color: var(--accent);
  margin-bottom: 18px;
}
.service-card .card-tag { margin-bottom: 8px; }
.service-card p { color: var(--text-muted); font-size: 14.5px; }

/* ---- Асимметричная фото-мозаика (сигнатурный приём) ---- */
.mosaic {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 130px;
  gap: 16px;
}
.mosaic-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-dark);
}
.mosaic-item img { width: 100%; height: 100%; object-fit: cover; }
.mosaic-item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 14px 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(0deg, rgba(0,0,0,.65), transparent);
}
.mosaic-item--lg { grid-column: span 2; grid-row: span 3; }
.mosaic-item--md { grid-column: span 2; grid-row: span 2; }
.mosaic-item--sm { grid-column: span 2; grid-row: span 1; }

/* ---- Строка партнёров/брендов техники ---- */
.brands-strip { padding: 40px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.brands-strip p { text-align: center; margin-bottom: 20px; }
.brands-strip__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 34px;
}
.brands-strip__row span {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ---- Карусель популярных товаров ---- */
.products__head {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap;
  margin-bottom: 8px;
}
.products__track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 24px 0 16px;
  margin: 0 -4px;
}
.products__track::-webkit-scrollbar { height: 6px; }
.products__track::-webkit-scrollbar-thumb { background: var(--line); border-radius: 4px; }
.product-card {
  scroll-snap-align: start;
  flex: 0 0 260px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.product-card__img { aspect-ratio: 4/3; overflow: hidden; }
.product-card__img img { width: 100%; height: 100%; object-fit: cover; }
.product-card__body { padding: 18px; }
.product-card .card-tag { color: var(--text-muted); margin-bottom: 6px; }
.product-card h3 { font-size: 15.5px; margin-bottom: 10px; }
.product-card__row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.product-card__price { font-family: var(--font-head); font-weight: 800; font-size: 17px; color: var(--text); }
.product-card__link { font-size: 13px; font-weight: 700; color: var(--accent); white-space: nowrap; }
.product-card__link:hover { color: var(--accent-hover); }
.products__dots { display: flex; justify-content: center; gap: 8px; margin-top: 8px; }
.products__dots button {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--line);
}
.products__dots button.is-active { background: var(--accent); }
.products__footer { text-align: center; margin-top: 8px; }

/* ---- Двухколоночный контакт-блок Сервис / Магазин ---- */
.contact-split { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.contact-split__card {
  background: var(--bg-muted);
  border-radius: var(--radius);
  padding: 32px;
}
.contact-split__card h3 { margin-bottom: 12px; }
.contact-split__addr { margin-bottom: 18px; }
.contact-split__addr p { font-size: 14.5px; margin-bottom: 4px; }
.contact-split__icons { display: flex; gap: 10px; }
.contact-split__icons a {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--text);
}
.contact-split__icons a:hover { border-color: var(--accent); color: var(--accent); background: #fff; }

/* ---- Сетка новостей ---- */
.news__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.news-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.news-card__img { aspect-ratio: 16/10; overflow: hidden; }
.news-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.news-card:hover .news-card__img img { transform: scale(1.04); }
.news-card__body { padding: 20px; display: flex; flex-direction: column; flex: 1 1 auto; }
.news-card__date { font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 8px; }
.news-card h3 { font-size: 16.5px; margin-bottom: 10px; }
.news-card p { font-size: 14px; color: var(--text-muted); margin-bottom: 0; }
.news__footer { text-align: center; margin-top: 36px; }

/* ---- Галерея достижений ---- */
.gallery__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.gallery-item { border-radius: var(--radius); overflow: hidden; background: var(--bg-dark); }
.gallery-item img { width: 100%; aspect-ratio: 3/4; object-fit: cover; }
.gallery-item figcaption {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .05em; text-transform: uppercase;
  color: var(--text-muted); padding: 10px 2px 0;
}

/* ---- VIN-форма ---- */
.vin-form__row { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 48px; align-items: center; }
.vin-form__photo { border-radius: var(--radius); overflow: hidden; }
.vin-form__photo img { width: 100%; height: 100%; object-fit: cover; }
.vin-form__form { display: flex; flex-direction: column; gap: 14px; margin-top: 22px; max-width: 420px; }

/* ---- Отзывы: карусель ---- */
.reviews__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 8px; }
.reviews__nav { display: flex; gap: 10px; }
.slider-btn {
  display: flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--text);
  transition: border-color .15s ease, color .15s ease, background-color .15s ease;
}
.slider-btn:hover { border-color: var(--text); background: var(--text); color: #fff; }
.reviews__track {
  display: flex; gap: 20px; overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 24px 0 8px;
}
.review-card {
  scroll-snap-align: start;
  flex: 0 0 min(380px, 85vw);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
}
.review-card__quote { color: var(--accent); display: block; margin-bottom: 8px; }
.review-card__stars { display: flex; gap: 3px; color: var(--line); margin-bottom: 12px; }
.review-card__stars .is-filled { color: var(--accent); }
.review-card__text { font-size: 14.5px; margin-bottom: 18px; }
.review-card__name { font-weight: 700; color: var(--text); margin-bottom: 2px; }
.review-card__role { font-size: 12.5px; color: var(--text-muted); }

/* ---- Блок преимуществ ---- */
.advantages__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.advantage-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
}
.advantage-card__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--bg-muted); color: var(--accent);
  margin-bottom: 14px;
}
.advantage-card__title { font-size: 16px; margin-bottom: 8px; }
.advantage-card__text { font-size: 14px; color: var(--text-muted); margin: 0; }

/* ---- Карта проезда ---- */
.map-embed {
  aspect-ratio: 16/7;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  margin: 22px 0 14px;
}
.map-embed iframe { width: 100%; height: 100%; border: 0; }

/* ---- CTA-форма на тёмном фотофоне ---- */
.cta-form {
  position: relative;
  background: var(--bg-dark) var(--cta-bg) center/cover no-repeat;
  color: var(--text-on-dark-muted);
}
.cta-form::before { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(23,23,23,.94) 0%, rgba(23,23,23,.72) 100%); }
.cta-form__row { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.cta-form__text p { max-width: 42ch; color: inherit; }
.cta-form__phone { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; font-weight: 700; font-size: 17px; color: #fff; }
.cta-form__form { display: flex; flex-direction: column; gap: 14px; background: rgba(245,244,241,0.04); border: 1px solid var(--line-dark); border-radius: var(--radius); padding: 26px; }
.cta-form__form .checkbox-line { color: var(--text-on-dark-muted); }

/* ---- Каталог: категории ---- */
.catalog-categories__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.category-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 300px;
  display: flex;
  align-items: flex-end;
}
.category-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.category-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(23,23,23,.90) 0%, rgba(23,23,23,.82) 45%, rgba(23,23,23,.68) 62%, rgba(23,23,23,.10) 100%); z-index: 1; }
.category-card__body { position: relative; z-index: 2; padding: 26px; color: #fff; }
.category-card .card-tag { color: #E8A488; }
.category-card h3 { color: #fff; margin-bottom: 8px; }
.category-card p { color: var(--text-on-dark-muted); font-size: 14px; margin-bottom: 14px; }
.category-card__link { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 13.5px; color: #fff; }

/* ---- Акцентный баннер каталога ---- */
.catalog-banner {
  background: var(--accent);
  border-radius: var(--radius);
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  color: #fff;
}
.catalog-banner h2 { color: #fff; margin: 0; }
.catalog-banner .btn--pill { background: #171717; border-color: #171717; }
.catalog-banner .btn--pill:hover { background: #fff; color: var(--accent); border-color: #fff; }

/* ---- FAQ аккордеон ---- */
.faq-group { padding: 36px 0; border-bottom: 1px solid var(--line); }
.faq-group:last-child { border-bottom: none; }
.faq-group__list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 40px;
}
.faq-item { border-top: 1px solid var(--line); }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-item__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 2px;
  text-align: left;
  font-weight: 700;
  font-size: 15px;
  color: var(--text);
}
.faq-item__icon { flex-shrink: 0; color: var(--accent); transition: transform .2s ease; }
.faq-item[data-open="true"] .faq-item__icon { transform: rotate(45deg); }
.faq-item__a {
  padding: 0 2px 18px;
  font-size: 14.5px;
  color: var(--text-muted);
  max-width: 62ch;
}
.faq-item__a[hidden] { display: none; }

/* ---- Контакты: список площадок ---- */
.contacts-emblem { display: flex; justify-content: center; margin: 20px 0 36px; }
.contacts-emblem svg { width: 84px; height: 84px; color: var(--accent); }
.contacts-hero__center { text-align: center; max-width: 640px; margin: 0 auto; }
.contacts-hero__phone { display: block; font-family: var(--font-head); font-weight: 800; font-size: 30px; color: var(--accent); margin-bottom: 6px; }
.contacts-hero__email { display: block; color: var(--text-muted); margin-bottom: 22px; }
.contacts-hero__actions { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }

.address-groups { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.address-group__title { font-size: 14px; }
.address-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}
.address-card__text { font-size: 14.5px; margin: 0; }
.address-card__text span { color: var(--text-muted); font-size: 13px; }
.address-card__icons { display: flex; gap: 8px; flex-shrink: 0; }
.address-card__icons a {
  display: flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--text);
}
.address-card__icons a:hover { border-color: var(--accent); color: var(--accent); }

/* ---- Форма "Не нашли что искали" ---- */
.notfound-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.notfound-form form { display: flex; flex-direction: column; gap: 14px; }

/* ---- 404 ---- */
.error-page { padding: 100px 0; text-align: center; }
.error-page__code { font-family: var(--font-head); font-weight: 800; font-size: clamp(4rem, 12vw, 8rem); color: var(--line); line-height: 1; margin-bottom: 12px; }

/* ==========================================================================
   4/4 — focus-visible, reduced-motion, медиазапросы, печать
   ========================================================================== */

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 3px;
}
.site-header a:focus-visible,
.footer-col a:focus-visible { outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  html { scroll-behavior: auto; }
}

/* ---- появление при скролле (JS добавляет .is-visible) ---- */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .5s ease, transform .5s ease;
}
[data-reveal].is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* ==============================================================
   Планшет ≤ 1024px
   ============================================================== */
@media (max-width: 1024px) {
  .about-intro__row,
  .vin-form__row,
  .cta-form__row,
  .notfound-form__row { grid-template-columns: 1fr; }
  .about-intro__badge { max-width: 340px; margin: 0 auto; }
  .vin-form__photo { order: -1; max-height: 320px; }

  .services__grid,
  .advantages__grid,
  .catalog-categories__grid,
  .news__grid,
  .contact-split,
  .address-groups { grid-template-columns: repeat(2, 1fr); }

  .gallery__grid { grid-template-columns: repeat(2, 1fr); }

  .mosaic { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; }
  .mosaic-item--lg { grid-column: span 2; grid-row: span 2; }
  .mosaic-item--md { grid-column: span 1; grid-row: span 2; }
  .mosaic-item--sm { grid-column: span 1; grid-row: span 1; }

  .faq-group__list { grid-template-columns: 1fr; }

  .header-search { max-width: 320px; }
}

/* ==============================================================
   Планшет / мобиль ≤ 900px — переход на бургер
   ============================================================== */
@media (max-width: 900px) {
  .header-search,
  .header-phone { display: none; }
  .header-top__actions { gap: 14px; }
  .burger { display: flex; }
  .header-nav { display: none; }

  .header-top__row { gap: 14px; }
  .logo__sub { display: none; }

  /* Полоса 641-900px: четыре колонки футера уже не вмещают контакты */
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 32px 40px; }
}

/* ==============================================================
   Мобиль ≤ 640px
   ============================================================== */
@media (max-width: 640px) {
  .section { padding: 52px 0; }
  .page-hero { padding: 40px 0 32px; }

  /* длинные слова в заголовках не должны выталкивать страницу за экран */
  h1 { font-size: clamp(1.75rem, 7vw, 2.4rem); }
  h1, h2, h3, h4 { overflow-wrap: break-word; }

  .services__grid,
  .advantages__grid,
  .catalog-categories__grid,
  .news__grid,
  .contact-split,
  .address-groups,
  .gallery__grid { grid-template-columns: 1fr; }

  .mosaic { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 130px; }
  .mosaic-item--lg { grid-row: span 2; }
  .mosaic-item--md { grid-row: span 2; }

  .hero { min-height: 460px; }

  .hero__actions { flex-direction: column; align-items: flex-start; gap: 16px; }

  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 4px; }

  .catalog-banner { flex-direction: column; align-items: flex-start; text-align: left; }

  .product-card { flex-basis: 220px; }

  .social-strip__row { flex-direction: column; text-align: center; }

  .contacts-hero__phone { font-size: 24px; }
}

/* ==============================================================
   Печать
   ============================================================== */
@media print {
  .site-header, .mobile-panel, .social-strip, .cta-form, .burger,
  .products__track, .reviews__nav, .map-embed, .btn { display: none !important; }
  body { background: #fff; color: #000; }
  a { text-decoration: underline; }
  .container { max-width: 100%; padding: 0; }
}
