/* ==========================================================================
   СПС-Авто — стили сайта
   1. :root, сброс, типографика, контейнер, кнопки, формы
   ========================================================================== */

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

:root {
  /* Палитра */
  --c-white: #FFFFFF;
  --c-ink: #232323;
  --c-body: #3A3A3A;
  --c-coral: #E8503A;
  --c-coral-dark: #C63F2B;
  --c-coral-tint: #FBE2DC;
  --c-cream: #FBEFD5;
  --c-blue: #DEF0FA;
  --c-line: #EAEAEA;
  --c-ink-90: #1B1B1B;

  /* Типографика */
  --f-head: 'Manrope', 'Arial Narrow', Arial, sans-serif;
  --f-body: 'PT Serif', Georgia, 'Times New Roman', serif;
  --f-ui: 'Manrope', Arial, sans-serif;

  /* Сетка */
  --container: 1200px;
  --gap: 24px;
  --radius-s: 6px;
  --radius-m: 10px;
  --radius-l: 12px;

  /* Тень */
  --shadow-card: 0 1px 3px rgba(0, 0, 0, .08);
  --shadow-pop: 0 12px 32px rgba(35, 35, 35, .16);

  --ease: 150ms ease;

  color-scheme: light;
}

/* -------------------------------------------------------------------- */
/*  Сброс                                                                */
/* -------------------------------------------------------------------- */

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

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

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

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

img {
  height: auto;
}

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

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

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

input,
textarea,
select {
  font: inherit;
  color: inherit;
}

table {
  border-collapse: collapse;
  width: 100%;
}

.visually-hidden {
  position: absolute;
  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: 12px;
  top: -60px;
  background: var(--c-ink);
  color: var(--c-white);
  padding: 10px 16px;
  border-radius: var(--radius-s);
  z-index: 300;
  transition: top var(--ease);
}

.skip-link:focus {
  top: 12px;
}

/* -------------------------------------------------------------------- */
/*  Типографика                                                         */
/* -------------------------------------------------------------------- */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--f-head);
  color: var(--c-ink);
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 .55em;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2rem, 1.55rem + 2vw, 3.25rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.6rem, 1.35rem + 1.1vw, 2.35rem);
  letter-spacing: -0.015em;
}

h3 {
  font-size: 1.3rem;
  font-weight: 700;
}

h4 {
  font-size: 1.05rem;
  font-weight: 700;
}

p {
  margin: 0 0 1.1em;
}

.lead {
  font-size: 1.15rem;
  line-height: 1.55;
}

.eyebrow {
  display: inline-block;
  font-family: var(--f-ui);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--c-coral);
  margin: 0 0 .6em;
}

.section-head {
  max-width: 700px;
  margin: 0 0 40px;
}

.section-head--center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

a.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--f-ui);
  font-weight: 700;
  color: var(--c-coral);
  transition: gap var(--ease), color var(--ease);
}

a.link-arrow:hover {
  color: var(--c-coral-dark);
  gap: 10px;
}

.text-body :is(p, li) {
  font-family: var(--f-body);
}

/* -------------------------------------------------------------------- */
/*  Контейнер и сетки                                                   */
/* -------------------------------------------------------------------- */

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

section {
  padding: 56px 0;
}

.band {
  background: var(--c-coral);
  color: var(--c-white);
}

.band--dark {
  background: var(--c-ink-90);
  color: var(--c-white);
}

.band--cream {
  background: var(--c-cream);
}

.band--blue {
  background: var(--c-blue);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--f-ui);
  font-weight: 700;
  font-size: 15px;
  line-height: 1;
  padding: 14px 24px;
  border-radius: var(--radius-s);
  border: 1.5px solid transparent;
  transition: background-color var(--ease), color var(--ease), border-color var(--ease), box-shadow var(--ease);
  white-space: nowrap;
}

.btn--sm {
  padding: 9px 16px;
  font-size: 13px;
}

.btn--block {
  width: 100%;
}

.btn--primary {
  background: var(--c-coral);
  color: var(--c-white);
  border-color: var(--c-coral);
}

.btn--primary:hover {
  background: var(--c-coral-dark);
  border-color: var(--c-coral-dark);
}

.btn--dark {
  background: var(--c-ink);
  color: var(--c-white);
  border-color: var(--c-ink);
}

.btn--dark:hover {
  background: #000;
  border-color: #000;
}

.btn--outline {
  background: transparent;
  color: var(--c-white);
  border-color: rgba(255, 255, 255, .85);
}

.btn--outline:hover {
  background: var(--c-white);
  color: var(--c-ink);
}

.btn--ghost {
  background: transparent;
  color: var(--c-ink);
  border-color: var(--c-line);
}

.btn--ghost:hover {
  border-color: var(--c-ink);
}

/* -------------------------------------------------------------------- */
/*  Пилюли                                                              */
/* -------------------------------------------------------------------- */

.pill {
  display: inline-flex;
  align-items: center;
  font-family: var(--f-ui);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .01em;
  padding: 10px 18px;
  border-radius: var(--radius-s);
  background: var(--c-coral-tint);
  color: var(--c-coral-dark);
  white-space: nowrap;
  transition: background-color var(--ease), color var(--ease);
}

.pill:hover {
  background: var(--c-coral);
  color: var(--c-white);
}

.pill.is-active {
  background: var(--c-coral);
  color: var(--c-white);
}

/* -------------------------------------------------------------------- */
/*  Формы                                                                */
/* -------------------------------------------------------------------- */

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.field__label {
  font-family: var(--f-ui);
  font-weight: 700;
  font-size: 13px;
  color: var(--c-ink);
}

.field input,
.field textarea,
.field select {
  border: 1.5px solid var(--c-line);
  border-radius: var(--radius-s);
  padding: 12px 14px;
  background: var(--c-white);
  font-family: var(--f-ui);
  font-size: 15px;
  transition: border-color var(--ease), box-shadow var(--ease);
}

.field input:hover,
.field textarea:hover,
.field select:hover {
  border-color: #C9C9C9;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--c-coral);
  box-shadow: 0 0 0 3px var(--c-coral-tint);
}

.field textarea {
  resize: vertical;
  min-height: 110px;
}

.field__note {
  font-family: var(--f-ui);
  font-size: 12px;
  color: #767676;
  margin-top: 4px;
}

.field--file {
  border: 1.5px dashed var(--c-line);
  border-radius: var(--radius-m);
  padding: 18px;
  text-align: center;
  cursor: pointer;
  transition: border-color var(--ease), background-color var(--ease);
}

.field--file:hover {
  border-color: var(--c-coral);
  background: var(--c-coral-tint);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0 16px;
}

@media (min-width: 560px) {
  .form-grid--2 {
    grid-template-columns: 1fr 1fr;
  }

  .form-grid--2 .field--full {
    grid-column: 1 / -1;
  }
}

fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

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

/* -------------------------------------------------------------------- */
/*  Шапка                                                                */
/* -------------------------------------------------------------------- */

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

.topbar {
  background: var(--c-ink-90);
  color: #D9D9D9;
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 24px;
  font-family: var(--f-ui);
  font-size: 13px;
}

.topbar__info {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.topbar__item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.topbar__item svg {
  color: var(--c-coral);
  flex: 0 0 auto;
}

.topbar__actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 0 0 auto;
}

.topbar__phone {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--c-white);
  font-weight: 700;
  white-space: nowrap;
}

.topbar__phone svg {
  color: var(--c-coral);
}

.navbar {
  background: var(--c-white);
}

.navbar__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 14px 24px;
  min-height: 76px;
}

.logo {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
  font-family: var(--f-head);
  font-weight: 800;
  font-size: 24px;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.logo__mark {
  color: var(--c-coral);
}

.logo__text {
  color: var(--c-ink);
}

.mainnav {
  flex: 1 1 auto;
  min-width: 0;
}

.mainnav__list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.mainnav__item {
  position: relative;
}

.mainnav__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--f-ui);
  font-weight: 700;
  font-size: 15px;
  color: var(--c-ink);
  white-space: nowrap;
  padding: 10px 14px;
  border-radius: var(--radius-s);
  transition: color var(--ease), background-color var(--ease);
}

.mainnav__link:hover {
  color: var(--c-coral);
  background: var(--c-coral-tint);
}

.mainnav__link.is-active {
  color: var(--c-coral);
}

.mainnav__toggle svg {
  transition: transform var(--ease);
}

.mainnav__item--dropdown:hover .mainnav__toggle svg,
.mainnav__item--dropdown.is-open .mainnav__toggle svg {
  transform: rotate(180deg);
}

.navbar__actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 16px;
}

.navbar__phone {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--f-ui);
  font-weight: 700;
  font-size: 15px;
  color: var(--c-ink);
  white-space: nowrap;
}

.navbar__phone svg {
  color: var(--c-coral);
}

.burger {
  display: none;
  flex: 0 0 auto;
  padding: 6px;
  color: var(--c-ink);
}

/* -------------------------------------------------------------------- */
/*  Дропдаун «Услуги»                                                    */
/* -------------------------------------------------------------------- */

.dropdown {
  position: absolute;
  left: 50%;
  top: 100%;
  transform: translateX(-50%);
  width: min(880px, 90vw);
  background: var(--c-white);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-pop);
  padding: 28px;
  opacity: 0;
  visibility: hidden;
  translate: 0 6px;
  transition: opacity var(--ease), visibility var(--ease), translate var(--ease);
  z-index: 120;
}

.mainnav__item--dropdown:hover .dropdown,
.mainnav__item--dropdown.is-open .dropdown {
  opacity: 1;
  visibility: visible;
  translate: 0 0;
}

.dropdown__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px 24px;
}

.dropdown__col p.dropdown__title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--f-ui);
  font-weight: 800;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--c-coral-dark);
  margin: 0 0 10px;
}

.dropdown__title svg {
  color: var(--c-coral);
}

.dropdown__col ul li a {
  display: block;
  padding: 6px 0;
  font-family: var(--f-ui);
  font-size: 14px;
  color: var(--c-body);
  transition: color var(--ease);
}

.dropdown__col ul li a:hover {
  color: var(--c-coral);
}

.dropdown__footer {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--c-line);
}

/* -------------------------------------------------------------------- */
/*  Пилюли-фильтры под шапкой                                           */
/* -------------------------------------------------------------------- */

.pills {
  border-top: 1px solid var(--c-line);
  background: var(--c-white);
  overflow-x: auto;
}

.pills__inner {
  display: flex;
  gap: 10px;
  padding: 14px 24px;
}

/* -------------------------------------------------------------------- */
/*  Мобильное меню                                                      */
/* -------------------------------------------------------------------- */

.mobile-menu__overlay {
  position: fixed;
  inset: 0;
  background: rgba(27, 27, 27, .5);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--ease);
  z-index: 190;
}

.mobile-menu {
  position: fixed;
  inset: 0 auto 0 0;
  width: min(360px, 88vw);
  z-index: 200;
  visibility: hidden;
}

.mobile-menu__panel {
  height: 100%;
  background: var(--c-white);
  display: flex;
  flex-direction: column;
  translate: -100% 0;
  transition: translate 220ms ease;
  overflow-y: auto;
}

.site-header.is-menu-open .mobile-menu__overlay,
body.is-menu-open .mobile-menu__overlay {
  opacity: 1;
  visibility: visible;
}

body.is-menu-open .mobile-menu {
  visibility: visible;
}

body.is-menu-open .mobile-menu__panel {
  translate: 0 0;
}

body.is-menu-open {
  overflow: hidden;
}

.mobile-menu__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid var(--c-line);
}

.mobile-menu__close {
  padding: 6px;
  color: var(--c-ink);
}

.mobile-menu__list {
  padding: 12px 8px;
  flex: 1 1 auto;
}

.mobile-menu__list > li > a {
  display: block;
  padding: 14px 12px;
  font-family: var(--f-ui);
  font-weight: 700;
  font-size: 16px;
  color: var(--c-ink);
  border-radius: var(--radius-s);
}

.mobile-menu__list > li > a.is-active,
.mobile-menu__list > li > a:hover {
  color: var(--c-coral);
  background: var(--c-coral-tint);
}

.mobile-menu__accordion-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 14px 12px;
  font-family: var(--f-ui);
  font-weight: 700;
  font-size: 16px;
  color: var(--c-ink);
  border-radius: var(--radius-s);
}

.mobile-menu__accordion-toggle svg {
  transition: transform var(--ease);
}

.mobile-menu__accordion.is-open .mobile-menu__accordion-toggle svg {
  transform: rotate(180deg);
}

.mobile-menu__accordion-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 220ms ease;
}

.mobile-menu__accordion.is-open .mobile-menu__accordion-body {
  grid-template-rows: 1fr;
}

.mobile-menu__accordion-body > * {
  overflow: hidden;
}

.mobile-menu__cat-title {
  font-family: var(--f-ui);
  font-weight: 800;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--c-coral-dark);
  padding: 10px 12px 4px;
}

.mobile-menu__sublist li a {
  display: block;
  padding: 8px 12px 8px 20px;
  font-family: var(--f-ui);
  font-size: 14px;
  color: var(--c-body);
}

.mobile-menu__sublist li a:hover {
  color: var(--c-coral);
}

.mobile-menu__footer {
  padding: 18px 20px;
  border-top: 1px solid var(--c-line);
}

/* -------------------------------------------------------------------- */
/*  Футер                                                                */
/* -------------------------------------------------------------------- */

.footer-accent {
  height: 3px;
  background: var(--c-coral);
}

.site-footer {
  background: var(--c-ink-90);
  color: #C7C7C7;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1.2fr;
  gap: 32px;
  padding: 56px 24px 40px;
}

.footer__col .logo--footer {
  margin-bottom: 14px;
}

.footer__col .logo--footer .logo__text {
  color: var(--c-white);
}

.footer__lead {
  font-family: var(--f-ui);
  font-size: 14px;
  line-height: 1.6;
  color: #ABABAB;
  max-width: 320px;
}

.footer__title {
  font-family: var(--f-ui);
  font-weight: 800;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--c-white);
  margin: 0 0 18px;
}

.footer__links li,
.footer__contacts li {
  margin-bottom: 10px;
  font-family: var(--f-ui);
  font-size: 14px;
}

.footer__links a,
.footer__contacts a {
  color: #C7C7C7;
  transition: color var(--ease);
}

.footer__links a:hover,
.footer__contacts a:hover {
  color: var(--c-coral);
}

/* .footer__links — набор для тёмного футера (#C7C7C7). На kontaktyi.php этот же
   список стоит внутри светлой .contact-card, и серый давал контраст 1.69 на белом
   (ссылки WhatsApp / Telegram / ВКонтакте практически не читались). Внутри карточки
   возвращаем наследуемый цвет, как у соседних ссылок телефона и почты. */
.contact-card .footer__links a {
  color: inherit;
}

.contact-card .footer__links a:hover {
  color: var(--c-coral);
}

.footer__contacts li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.footer__contacts svg {
  flex: 0 0 auto;
  margin-top: 2px;
  color: var(--c-coral);
}

.footer__search {
  display: flex;
  margin-top: 20px;
  border: 1px solid #444;
  border-radius: var(--radius-s);
  overflow: hidden;
}

.footer__search input {
  flex: 1 1 auto;
  border: 0;
  background: transparent;
  color: var(--c-white);
  padding: 11px 14px;
  font-family: var(--f-ui);
  font-size: 14px;
}

.footer__search input::placeholder {
  color: #8C8C8C;
}

.footer__search button {
  flex: 0 0 auto;
  padding: 0 16px;
  color: var(--c-white);
  background: var(--c-coral);
  transition: background-color var(--ease);
}

.footer__search button:hover {
  background: var(--c-coral-dark);
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, .1);
}

.footer__bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 18px 24px;
  font-family: var(--f-ui);
  font-size: 13px;
  color: #8C8C8C;
}

.footer__bottom-links {
  display: flex;
  gap: 20px;
}

.footer__bottom-links a {
  color: #8C8C8C;
  transition: color var(--ease);
}

.footer__bottom-links a:hover {
  color: var(--c-white);
}

/* -------------------------------------------------------------------- */
/*  Модальное окно                                                      */
/* -------------------------------------------------------------------- */

.modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal.is-open {
  display: flex;
}

.modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(27, 27, 27, .55);
}

.modal__panel {
  position: relative;
  background: var(--c-white);
  border-radius: var(--radius-l);
  padding: 32px;
  width: min(420px, 100%);
  box-shadow: var(--shadow-pop);
}

.modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 6px;
  color: #8C8C8C;
}

.modal__close:hover {
  color: var(--c-ink);
}

.modal__title {
  margin-bottom: 8px;
}

.modal__lead {
  font-family: var(--f-ui);
  font-size: 14px;
  color: #767676;
}

/* ==========================================================================
   3. Стили секций
   ========================================================================== */

/* -------------------------------------------------------------------- */
/*  Хиро (главная)                                                       */
/* -------------------------------------------------------------------- */

.hero {
  background: var(--c-ink-90);
  color: var(--c-white);
  padding: 0;
  overflow: hidden;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  padding: 56px 0;
  align-items: center;
}

.hero__eyebrow {
  color: #FF9A85;
}

.hero__title {
  color: var(--c-white);
}

.hero__text {
  font-family: var(--f-ui);
  font-size: 17px;
  color: #D9D9D9;
  max-width: 520px;
}

.hero__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 26px;
}

.hero__media {
  position: relative;
  border-radius: var(--radius-l);
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* -------------------------------------------------------------------- */
/*  Хлебные крошки                                                      */
/* -------------------------------------------------------------------- */

.breadcrumbs {
  padding: 18px 0;
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-family: var(--f-ui);
  font-size: 12px;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: #8C8C8C;
}

.breadcrumbs a:hover {
  color: var(--c-coral);
}

.breadcrumbs li:not(:last-child)::after {
  content: '/';
  margin-left: 6px;
  color: #C9C9C9;
}

.breadcrumbs li[aria-current] {
  color: var(--c-ink);
}

/* .breadcrumbs рассчитаны на светлую страницу: серая ссылка #8C8C8C и тёмный
   текущий пункт var(--c-ink). В .page-hero тот же блок лежит на тёмной подложке
   с фотографией — по реальным пикселям 2.18 у «Главная» и 1.98 у текущего пункта,
   ниже рабочего порога 3.0. Внутри тёмного героя даём светлый набор. */
.page-hero .breadcrumbs ol {
  color: #D9D9D9;
}

.page-hero .breadcrumbs li[aria-current] {
  color: var(--c-white);
}

.page-hero .breadcrumbs li:not(:last-child)::after {
  color: #A8A8A8;
}

/* -------------------------------------------------------------------- */
/*  Сетка карточек услуг                                                */
/* -------------------------------------------------------------------- */

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap);
}

@media (min-width: 900px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1280px) {
  .services-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.service-card {
  display: flex;
  flex-direction: column;
  background: var(--c-white);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-l);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: box-shadow var(--ease), border-color var(--ease);
}

.service-card:hover {
  border-color: #D8D8D8;
  box-shadow: 0 8px 20px rgba(35, 35, 35, .1);
}

.service-card__media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.service-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-card__body {
  padding: 18px 20px 22px;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}

.service-card__label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--f-ui);
  font-weight: 800;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--c-coral);
  margin-bottom: 10px;
}

.service-card__title {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.service-card__text {
  font-family: var(--f-ui);
  font-size: 14px;
  color: #666;
  flex: 1 1 auto;
  margin-bottom: 16px;
}

.service-card__link {
  align-self: flex-start;
}

/* -------------------------------------------------------------------- */
/*  Преимущества (плитки)                                               */
/* -------------------------------------------------------------------- */

.advantages-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap);
}

@media (min-width: 640px) {
  .advantages-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .advantages-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.advantage {
  padding: 24px;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-m);
}

.advantage__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: var(--radius-s);
  background: var(--c-coral-tint);
  color: var(--c-coral);
  margin-bottom: 16px;
}

.advantage__title {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.advantage__text {
  font-family: var(--f-ui);
  font-size: 14px;
  color: #666;
  margin: 0;
}

/* -------------------------------------------------------------------- */
/*  CTA-плашка «Ремонтируем любые марки авто»                           */
/* -------------------------------------------------------------------- */

.cta-band {
  background: var(--c-coral);
  color: var(--c-white);
}

.cta-band__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 40px 0;
  text-align: left;
}

.cta-band h2 {
  color: var(--c-white);
  margin-bottom: 6px;
}

.cta-band p {
  font-family: var(--f-ui);
  margin: 0;
  color: #FFE3DC;
}

.cta-band__phone {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-head);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--c-white);
}

.cta-band__actions {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

/* -------------------------------------------------------------------- */
/*  Галерея работ                                                        */
/* -------------------------------------------------------------------- */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

@media (min-width: 720px) {
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-m);
  overflow: hidden;
  border: 1px solid var(--c-line);
  aspect-ratio: 4 / 3;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 220ms ease;
}

.gallery-item:hover img {
  transform: scale(1.04);
}

.gallery-item__label {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 10px 12px;
  font-family: var(--f-ui);
  font-weight: 700;
  font-size: 12px;
  color: var(--c-white);
  background: linear-gradient(0deg, rgba(0,0,0,.6), transparent);
}

/* -------------------------------------------------------------------- */
/*  Карточки-исключения: форма расчёта / инфо-блок                      */
/* -------------------------------------------------------------------- */

.promo-card {
  border-radius: var(--radius-l);
  padding: 32px;
}

.promo-card--cream {
  background: var(--c-cream);
}

.promo-card--blue {
  background: var(--c-blue);
}

.promo-card__label {
  color: var(--c-coral-dark);
}

.calc-form-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: stretch;
}

@media (min-width: 860px) {
  .calc-form-layout {
    grid-template-columns: 1.1fr 1fr;
  }
}

.calc-form-layout__media {
  border-radius: var(--radius-l);
  overflow: hidden;
  min-height: 240px;
}

.calc-form-layout__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* -------------------------------------------------------------------- */
/*  Контакты — блок с картой (карточка на главной)                      */
/* -------------------------------------------------------------------- */

.contact-block {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap);
}

@media (min-width: 860px) {
  .contact-block {
    grid-template-columns: 1fr 1fr;
  }
}

.contact-card {
  background: var(--c-white);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-l);
  padding: 28px;
  box-shadow: var(--shadow-card);
}

.contact-card__row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  font-family: var(--f-ui);
  font-size: 15px;
}

.contact-card__row svg {
  color: var(--c-coral);
  flex: 0 0 auto;
  margin-top: 2px;
}

.contact-card__socials {
  display: flex;
  gap: 12px;
  margin-top: 18px;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-s);
  background: var(--c-coral-tint);
  color: var(--c-coral-dark);
  transition: background-color var(--ease), color var(--ease);
}

.social-btn:hover {
  background: var(--c-coral);
  color: var(--c-white);
}

.map-wrap {
  position: relative;
  border-radius: var(--radius-l);
  overflow: hidden;
  border: 1px solid var(--c-line);
  aspect-ratio: 16 / 8;
  background: var(--c-blue);
}

.map-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.map-open-link {
  margin-top: 12px;
  display: inline-flex;
}

/* -------------------------------------------------------------------- */
/*  Двухколоночный шаблон страницы услуги                               */
/* -------------------------------------------------------------------- */

.service-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

@media (min-width: 960px) {
  .service-layout {
    grid-template-columns: minmax(0, 680px) 300px;
    align-items: start;
  }
}

.service-layout__main {
  min-width: 0;
}

.service-layout__aside {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

@media (min-width: 960px) {
  .service-layout__aside {
    position: sticky;
    top: 100px;
  }
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  padding: 18px 0;
  margin-bottom: 8px;
  border-top: 1px solid var(--c-line);
  border-bottom: 1px solid var(--c-line);
}

.cta-row__phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--f-head);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--c-ink);
}

.cta-row__phone svg {
  color: var(--c-coral);
}

.toc {
  background: #FAFAFA;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-m);
  padding: 20px 22px;
  margin: 28px 0;
}

.toc__title {
  font-family: var(--f-ui);
  font-weight: 800;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--c-coral-dark);
  margin: 0 0 12px;
}

.toc ol {
  counter-reset: toc;
}

.toc ol li {
  counter-increment: toc;
  margin-bottom: 8px;
}

.toc ol li a {
  display: flex;
  gap: 8px;
  font-family: var(--f-ui);
  font-size: 14px;
  color: var(--c-body);
}

.toc ol li a::before {
  content: counter(toc, decimal-leading-zero);
  color: var(--c-coral);
  font-weight: 700;
}

.toc ol li a:hover {
  color: var(--c-coral);
}

.article-photos {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin: 24px 0;
}

@media (min-width: 560px) {
  .article-photos--3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.article-photos img {
  border-radius: var(--radius-m);
  aspect-ratio: 4 / 3;
  object-fit: cover;
  width: 100%;
  border: 1px solid var(--c-line);
}

.price-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-m);
  margin: 24px 0;
}

.price-table {
  min-width: 480px;
}

.price-table th,
.price-table td {
  text-align: left;
  padding: 14px 18px;
  font-family: var(--f-ui);
  font-size: 14px;
  border-bottom: 1px solid var(--c-line);
}

.price-table thead th {
  background: var(--c-ink-90);
  color: var(--c-white);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: .03em;
}

.price-table tbody tr:last-child td {
  border-bottom: 0;
}

.price-table tbody tr:hover {
  background: var(--c-coral-tint);
}

.sidebar-card {
  background: var(--c-white);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-l);
  padding: 22px;
  box-shadow: var(--shadow-card);
}

.sidebar-card__title {
  font-size: 1rem;
  margin-bottom: 14px;
}

.sidebar-related li {
  border-bottom: 1px solid var(--c-line);
}

.sidebar-related li:last-child {
  border-bottom: 0;
}

.sidebar-related a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  font-family: var(--f-ui);
  font-size: 14px;
  color: var(--c-body);
}

.sidebar-related a svg {
  color: var(--c-coral);
  flex: 0 0 auto;
}

.sidebar-related a:hover {
  color: var(--c-coral);
}

.sidebar-banner {
  background: var(--c-ink-90);
  color: var(--c-white);
  border-radius: var(--radius-l);
  padding: 24px;
  text-align: left;
}

.sidebar-banner p {
  font-family: var(--f-ui);
  font-size: 14px;
  color: #D9D9D9;
}

.pagination-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--c-line);
}

.pagination-nav__item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-m);
  transition: border-color var(--ease), background-color var(--ease);
}

.pagination-nav__item:hover {
  border-color: var(--c-coral);
  background: var(--c-coral-tint);
}

.pagination-nav__item--next {
  text-align: right;
  align-items: flex-end;
}

.pagination-nav__label {
  font-family: var(--f-ui);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: #8C8C8C;
}

.pagination-nav__title {
  font-family: var(--f-ui);
  font-weight: 700;
  font-size: 14px;
  color: var(--c-ink);
}

/* -------------------------------------------------------------------- */
/*  О компании: интро, табы, статистика, нумерованные преимущества      */
/* -------------------------------------------------------------------- */

.about-intro {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

@media (min-width: 900px) {
  .about-intro {
    grid-template-columns: 1.3fr 1fr;
  }
}

.about-intro__list li {
  display: flex;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid var(--c-line);
  font-family: var(--f-ui);
  font-size: 14px;
}

.about-intro__list li svg {
  color: var(--c-coral);
  flex: 0 0 auto;
  margin-top: 2px;
}

.tabs__list {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--c-line);
  margin-bottom: 28px;
}

.tabs__btn {
  padding: 12px 6px;
  margin-right: 20px;
  font-family: var(--f-ui);
  font-weight: 700;
  font-size: 15px;
  color: #8C8C8C;
  border-bottom: 2px solid transparent;
  transition: color var(--ease), border-color var(--ease);
}

.tabs__btn:hover {
  color: var(--c-ink);
}

.tabs__btn.is-active {
  color: var(--c-coral);
  border-color: var(--c-coral);
}

.tabs__panel {
  display: none;
}

.tabs__panel.is-active {
  display: block;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--gap);
  margin: 40px 0;
}

.stat-tile {
  padding: 28px;
  border-radius: var(--radius-l);
  background: var(--c-coral-tint);
  text-align: left;
}

.stat-tile__value {
  font-family: var(--f-head);
  font-weight: 800;
  font-size: 2.5rem;
  color: var(--c-coral-dark);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-tile__label {
  font-family: var(--f-ui);
  font-size: 14px;
  color: var(--c-ink);
}

.numbered-band {
  background: var(--c-ink-90);
  color: var(--c-white);
  border-radius: var(--radius-l);
  padding: 8px;
}

.numbered-item {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  padding: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}

.numbered-item:last-child {
  border-bottom: 0;
}

@media (min-width: 720px) {
  .numbered-item {
    grid-template-columns: 100px 1fr;
    align-items: start;
  }
}

.numbered-item__num {
  font-family: var(--f-head);
  font-weight: 800;
  font-size: 2.2rem;
  color: var(--c-coral);
}

.numbered-item__title {
  color: var(--c-white);
  margin-bottom: 8px;
}

.numbered-item p {
  color: #D9D9D9;
  font-family: var(--f-ui);
  font-size: 14px;
}

.numbered-item__list {
  margin: 14px 0;
}

.numbered-item__list li {
  display: flex;
  gap: 8px;
  padding: 5px 0;
  font-family: var(--f-ui);
  font-size: 14px;
  color: #EDEDED;
}

.numbered-item__list li svg {
  color: var(--c-coral);
  flex: 0 0 auto;
}

/* -------------------------------------------------------------------- */
/*  Контакты — страница                                                 */
/* -------------------------------------------------------------------- */

.page-hero {
  position: relative;
  background: var(--c-ink-90);
  color: var(--c-white);
}

.page-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.page-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .32;
}

.page-hero__inner {
  position: relative;
  z-index: 1;
  padding: 64px 0;
  max-width: 620px;
}

.page-hero h1 {
  color: var(--c-white);
}

.page-hero p {
  font-family: var(--f-ui);
  color: #D9D9D9;
}

.requisites {
  border: 1px solid var(--c-line);
  border-radius: var(--radius-m);
  padding: 24px;
  font-family: var(--f-ui);
  font-size: 14px;
  color: #666;
}

.requisites dt {
  font-weight: 700;
  color: var(--c-ink);
}

.requisites dd {
  margin: 0 0 12px;
}

.feedback-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

@media (min-width: 860px) {
  .feedback-layout {
    grid-template-columns: 1fr 1fr;
  }
}

.feedback-layout__media {
  border-radius: var(--radius-l);
  overflow: hidden;
  min-height: 260px;
}

.feedback-layout__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* -------------------------------------------------------------------- */
/*  404 и карта сайта                                                    */
/* -------------------------------------------------------------------- */

.error-page {
  text-align: center;
  padding: 90px 0;
}

.error-page__code {
  font-family: var(--f-head);
  font-weight: 800;
  font-size: clamp(4rem, 3rem + 5vw, 7rem);
  color: var(--c-coral-tint);
  line-height: 1;
}

.error-page__actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin: 28px 0 40px;
}

.error-page__links {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  font-family: var(--f-ui);
}

.error-page__links a:hover {
  color: var(--c-coral);
}

.sitemap-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

@media (min-width: 720px) {
  .sitemap-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1100px) {
  .sitemap-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.sitemap-group__title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--c-coral-tint);
  margin-bottom: 12px;
}

.sitemap-group__title svg {
  color: var(--c-coral);
}

.sitemap-group li a {
  display: block;
  padding: 7px 0;
  font-family: var(--f-ui);
  font-size: 14px;
  color: var(--c-body);
}

.sitemap-group li a:hover {
  color: var(--c-coral);
}

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

/* -------------------------------------------------------------------- */
/*  Брейкпоинты                                                          */
/* -------------------------------------------------------------------- */

@media (min-width: 720px) {
  .hero__inner {
    grid-template-columns: 1.1fr 1fr;
    padding: 76px 0;
  }

  .cta-band__inner {
    text-align: left;
  }
}

@media (min-width: 900px) {
  .topbar__info {
    display: flex;
  }

  .mainnav__list {
    justify-content: flex-end;
  }
}

@media (max-width: 899.98px) {
  .topbar__info {
    display: none;
  }

  .topbar__inner {
    justify-content: flex-end;
  }

  .mainnav {
    display: none;
  }

  .navbar__phone {
    display: none;
  }

  .navbar__actions .btn--primary {
    display: none;
  }

  .navbar__actions {
    margin-left: auto;
  }

  .burger {
    display: inline-flex;
  }

  .navbar__inner {
    gap: 12px;
  }
}

@media (max-width: 639.98px) {
  .topbar__actions .btn--sm {
    padding: 8px 12px;
    font-size: 12px;
  }

  section {
    padding: 40px 0;
  }

  .cta-band__inner {
    text-align: center;
    justify-content: center;
    flex-direction: column;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .pagination-nav {
    grid-template-columns: 1fr;
  }

  .pagination-nav__item--next {
    text-align: left;
    align-items: flex-start;
  }

  .footer__bottom-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 859.98px) {
  .footer__grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

@media (min-width: 860px) and (max-width: 1023.98px) {
  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer__col--about {
    grid-column: 1 / -1;
  }
}

/* -------------------------------------------------------------------- */
/*  Focus-visible                                                        */
/* -------------------------------------------------------------------- */

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--c-coral-dark);
  outline-offset: 2px;
  border-radius: 3px;
}

.btn:focus-visible {
  outline-offset: 3px;
}

.btn--outline:focus-visible {
  outline-color: var(--c-white);
}

/* -------------------------------------------------------------------- */
/*  prefers-reduced-motion                                              */
/* -------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }

  .gallery-item:hover img {
    transform: none;
  }
}

/* -------------------------------------------------------------------- */
/*  Появление при скролле (базовое состояние, включается через JS)       */
/* -------------------------------------------------------------------- */

.reveal {
  opacity: 0;
  translate: 0 16px;
  transition: opacity 420ms ease, translate 420ms ease;
}

.reveal.is-visible {
  opacity: 1;
  translate: 0 0;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    translate: 0 0;
    transition: none;
  }
}

/* -------------------------------------------------------------------- */
/*  Печать                                                               */
/* -------------------------------------------------------------------- */

@media print {
  .site-header,
  .footer-accent,
  .site-footer,
  .modal,
  .mobile-menu,
  .mobile-menu__overlay,
  .pills,
  .hero__actions,
  .cta-band,
  .btn {
    display: none !important;
  }

  body {
    color: #000;
  }

  a {
    color: #000;
    text-decoration: underline;
  }

  .container {
    max-width: 100%;
    padding: 0;
  }
}

/* overrides */
.footer__contacts li { align-items: center !important; }
.footer__contacts a { display: inline-flex !important; align-items: center !important; gap: 6px !important; }
.contact-card__row { display: flex !important; align-items: center !important; gap: 8px !important; }
.contact-card__row a { display: inline-flex !important; align-items: center !important; gap: 6px !important; }
.footer__links a { display: inline-flex !important; align-items: center !important; gap: 6px !important; }
.contact-card__socials { align-items: center !important; }

