/* ==========================================================================
   Автомойка 505 – стили сайта
   Цвета и шрифты заданы переменными в :root – менять их нужно только там.
   ========================================================================== */

/* ---------- Шрифты (лежат в папке /fonts, с Google Fonts ничего не грузится) ---------- */
@font-face {
  font-family: "Exo 2";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/exo-2-cyrillic-wght-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Exo 2";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/exo-2-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 200 1000;
  font-display: swap;
  src: url("../fonts/nunito-cyrillic-wght-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 200 1000;
  font-display: swap;
  src: url("../fonts/nunito-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Переменные ---------- */
:root {
  --steel: #446773;      /* основной цвет бренда */
  --steel-deep: #34515b; /* он же, темнее – для наведения */
  --night: #14242a;      /* темные плашки */
  --ice: #8cb4c7;        /* второй цвет бренда */
  --mist: #dce9ef;       /* голубой */
  --frost: #f5f9fb;      /* бледно-голубой фон секций */
  --ink: #24363d;        /* основной текст */
  --muted: #5d737c;      /* второстепенный текст */
  --line: #cbdbe2;       /* линии и рамки */
  --white: #fff;

  --display: "Exo 2", "Segoe UI", Arial, sans-serif;
  --text: "Nunito", "Segoe UI", Arial, sans-serif;

  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
  --radius: 6px;
  --head-h: 84px;
}

/* ---------- Основа ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 16px;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font: 400 1.0625rem/1.55 var(--text);
  -webkit-font-smoothing: antialiased;
}

img, svg, iframe { display: block; max-width: 100%; }
img { height: auto; }

h1, h2, h3, h4, p, ul, ol, dl, dd, figure, address { margin: 0; }
ul, ol { padding: 0; list-style: none; }
address { font-style: normal; }

a { color: var(--steel); text-underline-offset: 0.18em; }
a:hover { color: var(--steel-deep); }

:focus-visible {
  outline: 3px solid var(--ice);
  outline-offset: 3px;
  border-radius: 2px;
}

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap--narrow { max-width: calc(860px + var(--gutter) * 2); }

.skip {
  position: absolute;
  left: 8px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--night);
  color: var(--white);
  border-radius: var(--radius);
}
.skip:focus { top: 8px; color: var(--white); }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 12px 24px;
  border: 2px solid var(--steel);
  border-radius: var(--radius);
  background: var(--steel);
  color: var(--white);
  font: 700 1.0625rem/1.2 var(--display);
  text-decoration: none;
  text-align: center;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}
.btn:hover { background: var(--steel-deep); border-color: var(--steel-deep); color: var(--white); }

.btn--line { background: transparent; color: var(--steel); }
.btn--line:hover { background: var(--steel); color: var(--white); }

.btn--light { background: var(--white); border-color: var(--white); color: var(--steel-deep); }
.btn--light:hover { background: var(--mist); border-color: var(--mist); color: var(--night); }

.btn--ghost { background: transparent; border-color: rgb(255 255 255 / 0.55); color: var(--white); }
.btn--ghost:hover { background: rgb(255 255 255 / 0.12); border-color: var(--white); }

/* ---------- Индикатор «Сейчас открыто» ---------- */
.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-right: 14px;
  font-weight: 700;
  color: var(--white);
}
.status[hidden] { display: none; }
.status::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #62d08e;
}
.status.is-closed::before { background: #e39a92; }
.status--dark { color: var(--ink); }
.status--dark::before { background: #2f9e5f; }
.status--dark.is-closed::before { background: #c0564b; }

/* ---------- Верхняя строка с режимом работы ---------- */
.hours { background: var(--night); color: var(--mist); font: 500 1rem/1.3 var(--display); }
@media (min-width: 1000px) { .hours { font-size: 1.1875rem; } }
.hours__in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 46px; }
.hours__text { padding-block: 8px; }
.hours__addr { display: none; align-items: center; gap: 7px; color: var(--mist); text-decoration: none; white-space: nowrap; }
.hours__addr svg { flex: none; color: var(--ice); }
.hours__addr:hover { color: var(--white); }
@media (min-width: 780px) { .hours__addr { display: inline-flex; } }

/* ---------- Шапка ---------- */
.head { background: var(--white); border-bottom: 1px solid var(--line); }
.head__in {
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-areas:
    "logo . tel"
    "nav nav nav";
  align-items: center;
  column-gap: 20px;
}
.head__logo { grid-area: logo; padding-block: 12px; }
.head__logo img { width: clamp(170px, 46vw, 250px); }
.head__tel {
  grid-area: tel;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 800 clamp(1rem, 4.2vw, 1.4rem) / 1 var(--display);
  color: var(--steel);
  text-decoration: none;
  white-space: nowrap;
}
.head__tel svg { flex: none; }
.head__tel:hover { color: var(--night); }

.nav {
  grid-area: nav;
  display: flex;
  gap: 4px;
  margin-inline: calc(var(--gutter) * -1);
  padding-inline: calc(var(--gutter) - 10px);
  border-top: 1px solid var(--line);
  overflow-x: auto;
  scrollbar-width: none;
}
.nav::-webkit-scrollbar { display: none; }
.nav a {
  flex: none;
  padding: 12px 10px;
  font: 600 0.9375rem/1.2 var(--display);
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
}
.nav a:hover { color: var(--steel); border-bottom-color: var(--ice); }

@media (max-width: 380px) {
  .head__tel svg { display: none; }
}

@media (min-width: 900px) {
  html { scroll-padding-top: calc(var(--head-h) + 16px); }
  .head { position: sticky; top: 0; z-index: 40; }
  .head__in {
    grid-template-columns: auto 1fr auto;
    grid-template-areas: "logo nav tel";
    min-height: var(--head-h);
    column-gap: 28px;
  }
  .head__logo img { width: 232px; }
  .nav { justify-content: center; margin: 0; padding: 0; border: 0; overflow: visible; gap: 6px; }
  .nav a { padding: 10px 12px; font-size: 1rem; }
}
@media (min-width: 1120px) {
  .nav a { font-size: 1.0625rem; padding-inline: 14px; }
}

/* ---------- Слайдер ---------- */
.hero {
  position: relative;
  height: clamp(440px, 72svh, 560px);
  background: var(--night);
  color: var(--white);
  overflow: hidden;
  --rail: 58px;
}
@media (min-width: 701px) {
  .hero { height: clamp(460px, 42vw, 640px); }
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease, visibility 0s linear 0.8s;
}
.slide.is-active {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.8s ease;
}
.slide picture,
.slide picture img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.slide picture img { object-fit: cover; }
.slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgb(8 20 25 / 0.78) 0%, rgb(8 20 25 / 0.45) 48%, rgb(8 20 25 / 0.08) 100%),
    linear-gradient(0deg, rgb(8 20 25 / 0.6) 0, rgb(8 20 25 / 0) 34%);
}
.slide__body {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(14px, 2vw, 24px);
  padding-bottom: var(--rail);
}
.slide__title {
  max-width: 12em;
  font: 800 clamp(2.4rem, 7vw, 5.25rem) / 0.98 var(--display);
  letter-spacing: -0.012em;
  text-transform: uppercase;
  text-wrap: balance;
  text-shadow: 0 2px 18px rgb(0 0 0 / 0.45);
}
.slide__list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 22px;
  max-width: 34em;
  font: 700 clamp(1.05rem, 2vw, 1.55rem) / 1.3 var(--text);
  text-shadow: 0 1px 10px rgb(0 0 0 / 0.6);
}
.slide__list li { display: flex; align-items: center; gap: 10px; }
.slide__list li::before {
  content: "";
  flex: none;
  width: 0.42em;
  height: 0.42em;
  border-radius: 0 50% 50% 50%;
  background: var(--ice);
  transform: rotate(45deg);
}

/* подпись слайда выезжает справа, как на старом сайте */
@media (prefers-reduced-motion: no-preference) {
  .slide .slide__title,
  .slide .slide__list { opacity: 0; transform: translateX(36px); }
  .slide.is-active .slide__title,
  .slide.is-active .slide__list {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s ease 0.25s, transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) 0.25s;
  }
  .slide.is-active .slide__list { transition-delay: 0.4s; }
}

.hero__rail {
  position: absolute;
  inset: auto 0 0;
  z-index: 2;
  height: var(--rail);
  background: rgb(8 20 25 / 0.62);
  border-top: 1px solid rgb(255 255 255 / 0.16);
}
.hero__rail[hidden] { display: none; }
.hero__rail-in { display: flex; align-items: stretch; height: 100%; padding-right: 0; }
.hero__tabs {
  display: flex;
  flex: 1;
  min-width: 0;
  margin-left: -14px;
  overflow-x: auto;
  scrollbar-width: none;
}
.hero__tabs::-webkit-scrollbar { display: none; }
.hero__tab {
  position: relative;
  flex: none;
  padding: 0 14px;
  border: 0;
  background: none;
  color: rgb(255 255 255 / 0.72);
  font: 600 0.9375rem/1 var(--display);
  white-space: nowrap;
  cursor: pointer;
}
.hero__tab:hover { color: var(--white); }
.hero__tab[aria-selected="true"] { color: var(--white); }
.hero__tab::before,
.hero__tab::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  top: -1px;
  height: 3px;
}
.hero__tab[aria-selected="true"]::before { background: rgb(255 255 255 / 0.28); }
.hero__tab[aria-selected="true"]::after {
  background: var(--ice);
  transform-origin: left;
  animation: rail-fill var(--slide-ms, 6000ms) linear forwards;
}
.hero.is-paused .hero__tab[aria-selected="true"]::after { animation: none; }
@keyframes rail-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.hero__pause {
  flex: none;
  display: grid;
  place-items: center;
  width: 52px;
  border: 0;
  border-left: 1px solid rgb(255 255 255 / 0.16);
  background: none;
  color: rgb(255 255 255 / 0.8);
  cursor: pointer;
}
.hero__pause:hover { color: var(--white); background: rgb(255 255 255 / 0.08); }
.hero__pause .i-play { display: none; }
.hero.is-paused .hero__pause .i-play { display: block; }
.hero.is-paused .hero__pause .i-pause { display: none; }
@media (min-width: 900px) {
  .hero { --rail: 64px; }
  .hero__tab { font-size: 1.0625rem; padding-inline: 18px; }
  .hero__tabs { margin-left: -18px; }
  .hero__tab::before, .hero__tab::after { left: 18px; right: 18px; }
}

/* ---------- Вступление с H1 ---------- */
.intro { background: var(--steel); color: var(--white); padding-block: clamp(32px, 5vw, 52px); }
.intro__in { display: grid; gap: 24px 48px; align-items: center; }
.intro h1 {
  max-width: 24em;
  font: 700 clamp(1.5rem, 3vw, 2.3rem) / 1.16 var(--display);
  text-wrap: balance;
}
.intro__lead { max-width: 44em; margin-top: 14px; color: var(--mist); font-size: 1.125rem; }
.intro__act { display: flex; flex-wrap: wrap; gap: 12px; }
@media (min-width: 980px) {
  .intro__in { grid-template-columns: minmax(0, 1fr) auto; }
  .intro__act { flex-direction: column; }
}

/* ---------- Секции и заголовки ---------- */
.sec { padding-block: clamp(56px, 8vw, 104px); }
.sec--frost { background: var(--frost); }

.h2 {
  margin-bottom: clamp(28px, 4vw, 48px);
  font: 700 clamp(1.9rem, 4vw, 2.9rem) / 1.08 var(--display);
  color: var(--steel);
  text-wrap: balance;
}
/* «хромированная» планка под заголовком – отсылка к шильдику в логотипе */
.h2::after {
  content: "";
  display: block;
  width: 92px;
  height: 6px;
  margin-top: 18px;
  border-radius: 3px;
  background: linear-gradient(180deg, #c3d6de 0%, #6b8f9c 45%, #446773 55%, #9dbdca 100%);
}
.h3 {
  margin: clamp(40px, 6vw, 64px) 0 20px;
  font: 700 1.5rem/1.2 var(--display);
  color: var(--steel);
}

/* маркер-капля для списков */
.ticks li {
  position: relative;
  padding: 6px 0 6px 26px;
  line-height: 1.4;
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 0.82em;
  width: 9px;
  height: 9px;
  border-radius: 0 50% 50% 50%;
  background: var(--ice);
  transform: rotate(45deg);
}

/* ---------- Преимущества ---------- */
.adv { display: grid; gap: 36px; }
.adv__item img { width: 76px; height: 76px; margin-bottom: 16px; }
.adv__item h3 { font: 700 1.4rem/1.2 var(--display); color: var(--night); text-wrap: balance; }
.adv__item p { margin-top: 10px; color: var(--ink); max-width: 34em; }
@media (min-width: 800px) {
  .adv { grid-template-columns: repeat(3, 1fr); gap: 0; }
  .adv__item { padding-inline: clamp(20px, 3vw, 40px); border-left: 1px solid var(--line); }
  .adv__item:first-child { padding-left: 0; border-left: 0; }
  .adv__item:last-child { padding-right: 0; }
}

/* ---------- Услуги ---------- */
.svc { display: grid; gap: 24px; }
.svc__stack { display: grid; gap: 24px; align-content: start; }
.svc__group {
  position: relative;
  padding: 26px 28px 28px;
  background: var(--white);
  border-top: 5px solid var(--steel);
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: 0 1px 0 var(--line), 0 14px 30px -22px rgb(36 54 61 / 0.45);
}
.svc__group h3 { margin-bottom: 12px; font: 700 1.45rem/1.2 var(--display); color: var(--night); }
.svc__group--pic { padding-bottom: 104px; }
.svc__group--pic img { position: absolute; right: 22px; bottom: 16px; width: 112px; }
@media (min-width: 720px) {
  .svc { grid-template-columns: repeat(2, 1fr); }
  .svc__stack { grid-column: 1 / -1; grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1040px) {
  .svc { grid-template-columns: repeat(3, 1fr); gap: 28px; }
  .svc__stack { grid-column: auto; grid-template-columns: 1fr; grid-template-rows: auto 1fr; gap: 28px; }
  .svc__group--pic { padding-bottom: 28px; }
  .svc__group--pic img { width: 132px; }
}

.also__title { margin: clamp(36px, 5vw, 56px) 0 16px; font: 700 1.3rem/1.2 var(--display); color: var(--steel); }
.also { display: flex; flex-wrap: wrap; gap: 10px; }
.also li {
  padding: 12px 20px;
  background: var(--white);
  border: 1.5px solid var(--ice);
  border-radius: 999px;
  font: 600 1.0625rem/1.25 var(--display);
  color: var(--night);
}

.feat { display: grid; gap: 24px; margin-top: clamp(36px, 5vw, 56px); }

.tyre {
  display: grid;
  gap: 32px;
  padding: clamp(24px, 4vw, 44px);
  background: var(--night);
  color: var(--white);
  border-radius: var(--radius);
}
.tyre h3 { font: 800 clamp(1.9rem, 3.6vw, 2.6rem) / 1 var(--display); text-transform: uppercase; letter-spacing: -0.01em; }
.tyre__cols { display: grid; gap: 20px 40px; margin-top: 24px; }
.tyre h4 { margin-bottom: 4px; font: 600 1.0625rem/1.2 var(--display); color: var(--ice); }
.tyre__note { margin-top: 22px; color: var(--mist); max-width: 34em; }
.tyre__note a { color: var(--white); }
.tyre__note a:hover { color: var(--ice); }
.tyre__gear figcaption { margin-bottom: 12px; font: 600 1.0625rem/1.2 var(--display); color: var(--ice); }
.tyre__shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.tyre__shots a { display: block; overflow: hidden; border-radius: 4px; }
.tyre__shots img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform 0.35s ease; }
.tyre__shots a:hover img { transform: scale(1.05); }
@media (min-width: 560px) {
  .tyre__cols { grid-template-columns: repeat(2, auto); justify-content: start; }
}
@media (min-width: 980px) {
  .tyre { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: center; gap: 48px; }
}

.rims {
  position: relative;
  padding: clamp(24px, 4vw, 40px);
  padding-right: clamp(24px, 22vw, 240px);
  background: var(--white);
  border: 1.5px solid var(--line);
  border-left: 6px solid var(--steel);
  border-radius: var(--radius);
}
.rims h3 { margin-bottom: 10px; font: 700 clamp(1.5rem, 3vw, 2rem) / 1.15 var(--display); color: var(--night); }
.rims img { position: absolute; right: clamp(12px, 3vw, 40px); top: 50%; width: clamp(96px, 16vw, 170px); transform: translateY(-50%); }
@media (max-width: 520px) {
  .rims { padding-right: 24px; }
  .rims img { position: static; transform: none; margin-top: 12px; width: 110px; }
}

/* ---------- Фотогалереи ---------- */
.gal { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.gal a { position: relative; display: block; overflow: hidden; border-radius: 4px; background: var(--mist); text-decoration: none; }
.gal img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform 0.35s ease; }
.gal a:hover img { transform: scale(1.04); }
@media (min-width: 720px) { .gal { grid-template-columns: repeat(3, 1fr); gap: 14px; } }
@media (min-width: 1040px) { .gal { grid-template-columns: repeat(4, 1fr); } }

.gal--wide { grid-template-columns: 1fr; }
@media (min-width: 620px) { .gal--wide { grid-template-columns: repeat(3, 1fr); } }
.gal--ba img { aspect-ratio: 4 / 3; }

.gal--cap { margin-top: clamp(28px, 4vw, 44px); }
.gal--cap a { background: none; overflow: visible; color: var(--ink); }
.gal--cap img { border-radius: 4px; }
.gal--cap a:hover img { transform: none; opacity: 0.9; }
.gal--cap span { display: block; margin-top: 8px; font: 600 0.9375rem/1.3 var(--display); color: var(--muted); }

/* ---------- Контакты ---------- */
.cont { display: grid; gap: 32px; }
.cont__addr { font: 600 1.35rem/1.3 var(--display); color: var(--night); max-width: 16em; }
.cont__tel {
  display: inline-block;
  margin-top: 10px;
  font: 800 clamp(1.9rem, 4.4vw, 2.6rem) / 1.1 var(--display);
  color: var(--steel);
  text-decoration: none;
  white-space: nowrap;
}
.cont__tel:hover { color: var(--night); }
.cont__hours { margin-top: 18px; font: 600 1.0625rem/1.3 var(--display); }
.cont__facts { margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--line); display: grid; gap: 8px; }
.cont__facts div { display: flex; gap: 10px; }
.cont__facts dt { width: 4.5em; color: var(--muted); }
.cont__facts dd { font-weight: 700; }
.cont__act { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.cont__map { min-height: 380px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--mist); }
.cont__map iframe { width: 100%; height: 100%; min-height: 380px; border: 0; }
@media (min-width: 900px) {
  .cont { grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 48px; align-items: stretch; }
  .cont__map, .cont__map iframe { min-height: 460px; }
}

/* ---------- Вопрос-ответ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); scroll-margin-top: calc(var(--head-h) + 16px); }
.faq summary {
  position: relative;
  padding: 20px 48px 20px 0;
  font: 600 clamp(1.1rem, 2.2vw, 1.25rem) / 1.3 var(--display);
  color: var(--night);
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--steel); }
.faq summary::before,
.faq summary::after {
  content: "";
  position: absolute;
  right: 6px;
  top: 50%;
  width: 18px;
  height: 2.5px;
  margin-top: -1px;
  border-radius: 2px;
  background: var(--steel);
  transition: transform 0.2s ease;
}
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: rotate(0deg); }
.faq__a { padding: 0 0 26px; max-width: 46em; }
.faq__a > * + * { margin-top: 12px; }
.faq__a h3 { margin-top: 20px; font: 700 1.0625rem/1.3 var(--display); color: var(--steel); }
.faq__a h3:first-child { margin-top: 0; }
.faq__a ul { padding-left: 1.25em; list-style: disc; }
.faq__a ul li::marker { color: var(--ice); }
.faq__a li + li { margin-top: 4px; }
.faq__pics { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; max-width: 560px; margin-top: 18px; }
.faq__pics a { display: block; overflow: hidden; border-radius: 4px; }
.faq__pics img { width: 100%; }

/* ---------- Подвал ---------- */
.foot { background: var(--mist); }
.foot__hours { padding: 12px var(--gutter); background: var(--night); color: var(--mist); text-align: center; font: 600 clamp(1.0625rem, 2.4vw, 1.3125rem) / 1.3 var(--display); }
.foot__in { display: grid; gap: 20px; padding-block: 32px 20px; align-items: center; }
.foot__logo img { width: 220px; }
.foot__addr { font: 600 clamp(1.125rem, 2vw, 1.3125rem) / 1.35 var(--display); color: var(--ink); }
.foot__right { display: grid; gap: 10px; justify-items: start; }
.foot__tel { font: 800 1.6rem/1 var(--display); color: var(--steel); text-decoration: none; white-space: nowrap; }
.foot__tel:hover { color: var(--night); }
.foot__copy { padding-block: 14px 22px; border-top: 1px solid rgb(68 103 115 / 0.25); font-size: 0.875rem; color: var(--muted); }
@media (min-width: 800px) {
  .foot__in { grid-template-columns: auto 1fr auto; gap: 48px; }
  .foot__right { justify-items: end; }
  .foot__addr { white-space: nowrap; }
}

/* ---------- Кнопка звонка внизу экрана (только телефоны) ---------- */
.callbar {
  position: fixed;
  inset: auto 0 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 16px calc(14px + env(safe-area-inset-bottom));
  background: var(--steel);
  color: var(--white);
  font: 700 1.0625rem/1 var(--display);
  text-decoration: none;
  box-shadow: 0 -6px 18px rgb(20 36 42 / 0.25);
}
.callbar:hover { color: var(--white); background: var(--steel-deep); }
body { padding-bottom: 52px; }
@media (min-width: 900px) {
  .callbar { display: none; }
  body { padding-bottom: 0; }
}

/* ---------- Просмотр фото во весь экран ---------- */
.lb {
  width: 100vw;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgb(6 14 17 / 0.95);
  color: var(--mist);
}
.lb::backdrop { background: rgb(6 14 17 / 0.95); }
.lb__stage {
  position: absolute;
  inset: 56px 0 64px;
  display: grid;
  place-items: center;
  padding-inline: clamp(8px, 6vw, 84px);
}
.lb__img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: 2px; }
.lb__bar {
  position: absolute;
  inset: auto 0 0;
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 10px 16px;
  text-align: center;
  font: 600 1rem/1.3 var(--display);
}
.lb__count { color: var(--ice); white-space: nowrap; }
.lb__btn {
  position: absolute;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: rgb(255 255 255 / 0.1);
  color: var(--white);
  cursor: pointer;
}
.lb__btn:hover { background: rgb(255 255 255 / 0.22); }
.lb__close { top: 6px; right: 8px; }
.lb__prev { left: 8px; top: 50%; margin-top: -24px; }
.lb__next { right: 8px; top: 50%; margin-top: -24px; }
.lb__btn[hidden] { display: none; }

/* ---------- Страница 404 ---------- */
.nf {
  position: relative;
  min-height: 62svh;
  display: grid;
  place-items: center;
  padding: 64px var(--gutter);
  background: var(--night) url("../img/mojka-avto-slajder.webp") center / cover no-repeat;
  color: var(--white);
  text-align: center;
}
.nf::before { content: ""; position: absolute; inset: 0; background: rgb(8 20 25 / 0.62); }
.nf > div { position: relative; }
.nf__code { font: 800 clamp(5rem, 22vw, 11rem) / 0.9 var(--display); letter-spacing: -0.02em; }
.nf h1 { margin: 12px 0 28px; font: 700 clamp(1.4rem, 4vw, 2.1rem) / 1.2 var(--display); }

/* ---------- Без анимаций, если так настроено в системе ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* ---------- Печать ---------- */
@media print {
  .nav, .hero__rail, .callbar, .cont__map, .intro__act, .cont__act { display: none !important; }
  .hero { height: 260px; }
  .faq details > .faq__a { display: block; }
  body { padding-bottom: 0; }
}

/* ---------- Мелкие правки для телефонов ---------- */
@media (max-width: 899px) {
  .intro__act .btn--light { display: none; } /* звонок уже есть в шапке и в нижней кнопке */
}
@media (max-width: 560px) {
  .hours { font-size: 0.9375rem; }
  .status { margin-right: 10px; }
}
.nw { white-space: nowrap; }
@media (max-width: 560px) { .hours__w { display: none; } }
