/* =========================================================================
   ИвАвтоКомплекс — основной стиль
   Светлый деловой дизайн, адаптив, без внешних зависимостей
   ========================================================================= */

/* ---------- Шрифт -------------------------------------------------------- */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-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: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-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 {
  --font: "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial,
    sans-serif;

  --bg: #ffffff;
  --bg-alt: #f1f6fc;
  --surface: #ffffff;

  --ink: #0e1b2d;
  --ink-2: #3f4e63;
  --muted: #6b7a90;
  --line: #e3e9f1;

  --accent: #176fe5;
  --accent-dark: #1058c1;
  --accent-soft: #eaf2ff;
  --accent-ink: #164aa1;

  --red: #c62828;
  --red-soft: #fdecec;
  --green: #2e7d32;

  --radius: 14px;
  --radius-lg: 22px;

  --shadow-1: 0 1px 2px rgba(14, 27, 45, 0.05), 0 6px 18px rgba(14, 27, 45, 0.06);
  --shadow-2: 0 18px 44px rgba(14, 27, 45, 0.12);

  --container: 1180px;
  --narrow: 940px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 76px;
}

@media (max-width: 1239px) {
  :root {
    --header-h: 64px;
  }
}

/* ---------- Сброс и база -------------------------------------------------- */

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

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

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

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  color: var(--ink);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.015em;
}

p {
  margin: 0;
}

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

img {
  height: auto;
  vertical-align: middle;
}

a {
  color: var(--accent);
}

button {
  font: inherit;
}

:focus-visible {
  outline: 3px solid rgba(11, 99, 214, 0.45);
  outline-offset: 2px;
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 300;
  padding: 12px 18px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  border-radius: 0 0 10px 0;
}

.skip-link:focus {
  left: 0;
}

/* ---------- Утилиты ------------------------------------------------------- */

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

.container--narrow {
  max-width: calc(var(--narrow) + var(--gutter) * 2);
}

.section {
  padding-block: clamp(44px, 6.5vw, 92px);
}

.section--alt {
  background: var(--bg-alt);
}

.section-head {
  max-width: 900px;
  margin: 0 auto clamp(26px, 4vw, 50px);
  text-align: center;
}

.section-title {
  font-size: clamp(1.42rem, 2.5vw, 2.2rem);
  line-height: 1.28;
}

.section-rule {
  display: block;
  width: 76px;
  height: 4px;
  margin: 22px auto 0;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--accent), #63adff);
}

.eyebrow {
  margin: 0 0 10px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.icon {
  display: block;
  width: 100%;
  height: 100%;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 14px 26px;
  border: 1.5px solid transparent;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s,
    transform 0.2s, box-shadow 0.2s;
}

.btn--primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 12px 26px rgba(11, 99, 214, 0.26);
}

.btn--primary:hover {
  background: var(--accent-dark);
  color: #fff;
  transform: translateY(-2px);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.92);
  border-color: var(--line);
  color: var(--ink);
}

.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 120;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.site-header.is-stuck {
  border-bottom-color: var(--line);
  box-shadow: 0 8px 26px rgba(14, 27, 45, 0.08);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.6vw, 24px);
  min-height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  text-decoration: none;
  color: inherit;
}

.brand__mark {
  display: grid;
  place-items: center;
  width: 56px;
  height: 42px;
  flex: none;
  overflow: hidden;
}

.brand__mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand__title {
  display: block;
  font-size: 1.08rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.brand__sub {
  display: block;
  font-size: 0.71rem;
  line-height: 1.3;
  letter-spacing: 0.01em;
  color: var(--muted);
}

.nav {
  margin-left: auto;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav__item {
  position: relative;
}

.nav__link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 11px;
  border: 0;
  border-radius: 9px;
  background: none;
  font-family: inherit;
  font-size: 0.94rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--ink-2);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.18s, color 0.18s;
}

.nav__link:hover {
  background: var(--accent-soft);
  color: var(--accent-ink);
}

.nav__link.is-active {
  background: var(--accent-soft);
  color: var(--accent);
}

.nav__caret {
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 0.2s;
}

.nav__sub {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 226px;
  margin: 0;
  padding: 8px;
  list-style: none;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-2);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.18s, transform 0.18s, visibility 0.18s;
}

.nav__sub .nav__link {
  width: 100%;
  justify-content: space-between;
}

.nav__item--has-sub:hover .nav__sub,
.nav__item--has-sub:focus-within .nav__sub,
.nav__item--has-sub.is-open .nav__sub {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.nav__item--has-sub.is-open .nav__caret {
  transform: translateY(-2px) rotate(-135deg);
}

.header__contacts {
  display: flex;
  gap: 16px;
  flex: 0 0 auto;
}

.header__phone {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  text-decoration: none;
}

.header__phone-label {
  font-size: 0.67rem;
  letter-spacing: 0.02em;
  color: var(--muted);
}

.header__phone-num {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink);
  transition: color 0.18s;
}

.header__phone:hover .header__phone-num {
  color: var(--accent);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
}

.nav-toggle .icon {
  width: 100%;
  height: 100%;
}

.nav-toggle__close {
  display: none;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__open {
  display: none;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__close {
  display: block;
}

@media (max-width: 1499px) {
  .header__phone-label {
    display: none;
  }
}

/* В шапке только один номер: контейнер ограничен 1180px, а два номера
   рядом с меню (255 + 723 + 310) в него не помещаются и на ширинах
   1300–1499px давали горизонтальный скролл. Остальные номера — в тексте,
   в карточках и в подвале. */
.header__phone:nth-child(n + 2) {
  display: none;
}

@media (max-width: 1239px) {
  .nav-toggle {
    display: block;
    order: 3;
    margin-left: auto;
  }

  .brand {
    order: 1;
  }

  .header__contacts {
    order: 2;
    margin-left: auto;
  }

  .nav {
    order: 4;
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    margin: 0;
    padding: 10px var(--gutter) 24px;
    background: #fff;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-2);
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  }

  .nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 3px;
  }

  .nav__link {
    width: 100%;
    justify-content: space-between;
    padding: 13px 12px;
    font-size: 1rem;
  }

  .nav__sub {
    position: static;
    display: none;
    min-width: 0;
    padding: 0 0 0 14px;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .nav__item--has-sub:hover .nav__sub,
  .nav__item--has-sub:focus-within .nav__sub {
    display: none;
  }

  .nav__item--has-sub.is-open .nav__sub {
    display: block;
  }

  .nav__sub .nav__link {
    padding: 10px 12px;
    font-size: 0.95rem;
    color: var(--muted);
  }
}

@media (max-width: 560px) {
  .brand__sub {
    display: none;
  }

  .header__contacts {
    display: none;
  }

  .nav-toggle {
    margin-left: auto;
  }
}

/* ---------- Hero ---------------------------------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  color: #fff;
  background: #0b2034;
}

.hero__container {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  min-height: clamp(620px, calc(100svh - var(--header-h)), 780px);
  padding-block: clamp(54px, 7vw, 92px);
}

.hero__card {
  position: relative;
  z-index: 1;
  max-width: 620px;
}

.hero .eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  color: #b9d6f7;
}

.hero__eyebrow-dot {
  width: 8px;
  height: 8px;
  flex: none;
  border-radius: 50%;
  background: #47e0cb;
  box-shadow: 0 0 0 5px rgba(71, 224, 203, 0.16), 0 0 18px rgba(71, 224, 203, 0.55);
}

.hero__title {
  max-width: 15ch;
  color: #fff;
  font-size: clamp(2.6rem, 4.55vw, 4.25rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.hero__lead {
  max-width: 48ch;
  margin-top: 20px;
  color: rgba(239, 245, 252, 0.78);
  font-size: clamp(1.02rem, 1.45vw, 1.13rem);
  line-height: 1.72;
}

.hero__features {
  display: flex;
  flex-wrap: wrap;
  gap: 11px 20px;
  margin: 23px 0 0;
  padding: 0;
  list-style: none;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.9rem;
  font-weight: 600;
}

.hero__features li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero__features li::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #47e0cb;
  content: "";
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero .btn--primary {
  background: #2677db;
  box-shadow: 0 12px 28px rgba(2, 13, 27, 0.25);
}

.hero .btn--primary:hover {
  background: #2587e8;
}

.hero .btn--ghost {
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
}

.hero .btn--ghost:hover {
  border-color: rgba(255, 255, 255, 0.65);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.hero__art {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: transparent;
}

.hero__art::after {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, rgba(8, 20, 32, 0.32), transparent 25%, transparent 82%, rgba(8, 20, 32, 0.1)),
    linear-gradient(90deg, #0b2034 0%, #0b2034 24%, rgba(11, 32, 52, 0.97) 34%, rgba(11, 32, 52, 0.82) 46%, rgba(11, 32, 52, 0.48) 60%, rgba(11, 32, 52, 0.14) 76%, transparent 92%);
  content: "";
}

.hero__art > img {
  position: absolute;
  inset: 0;
  left: 34%;
  width: 66%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.12) 16%, rgba(0, 0, 0, 0.58) 42%, #000 70%);
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.12) 16%, rgba(0, 0, 0, 0.58) 42%, #000 70%);
}

.hero__art-tag {
  position: absolute;
  right: clamp(20px, 5vw, 72px);
  bottom: clamp(20px, 4vw, 54px);
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 17px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  background: rgba(9, 25, 41, 0.76);
  color: rgba(255, 255, 255, 0.95);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  backdrop-filter: blur(8px);
}

.hero__art-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #47e0cb;
  box-shadow: 0 0 0 5px rgba(71, 224, 203, 0.18);
}

@media (max-width: 1239px) {
  .hero__container {
    min-height: max(660px, calc(100svh - var(--header-h)));
    padding-block: 48px 82px;
  }

  .hero__art {
    inset: 0;
    clip-path: none;
  }

  .hero__art > img {
    left: 0;
    width: 100%;
    object-fit: cover;
    object-position: 62% center;
    -webkit-mask-image: none;
    mask-image: none;
  }

  .hero__art::after {
    background:
      linear-gradient(0deg, rgba(7, 22, 37, 0.84), rgba(7, 22, 37, 0.3) 52%, rgba(7, 22, 37, 0.38)),
      linear-gradient(90deg, rgba(11, 32, 52, 0.97) 0%, rgba(11, 32, 52, 0.8) 34%, rgba(11, 32, 52, 0.48) 68%, rgba(11, 32, 52, 0.2) 100%);
  }

  .hero__title {
    max-width: 14ch;
  }

  .hero__art-tag {
    right: 16px;
    bottom: 14px;
    padding: 9px 12px;
    font-size: 0.78rem;
  }
}

@media (max-width: 480px) {
  .hero__container {
    min-height: max(640px, calc(100svh - var(--header-h)));
    padding-top: 38px;
  }

  .hero__actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero__actions .btn {
    width: 100%;
  }

  .hero__art-tag {
    display: none;
  }
}

/* ---------- Кратко о направлениях ---------------------------------------- */

.service-ribbon {
  position: relative;
  z-index: 2;
  border-bottom: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 10px 30px rgba(14, 27, 45, 0.045);
}

.service-ribbon__inner {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(210px, 1.15fr);
  align-items: center;
  min-height: 92px;
}

.service-ribbon__item,
.service-ribbon__location {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 42px;
  padding: 8px clamp(12px, 2vw, 26px);
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 650;
  line-height: 1.35;
}

.service-ribbon__item + .service-ribbon__item,
.service-ribbon__location {
  border-left: 1px solid var(--line);
}

.service-ribbon__index {
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.07em;
}

.service-ribbon__location {
  color: var(--muted);
  font-size: 0.83rem;
  font-weight: 550;
}

.service-ribbon__location-dot {
  width: 9px;
  height: 9px;
  flex: none;
  border-radius: 50%;
  background: #57b6a9;
  box-shadow: 0 0 0 4px rgba(87, 182, 169, 0.12);
}

@media (max-width: 900px) {
  .service-ribbon__inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding-block: 12px;
  }

  .service-ribbon__item,
  .service-ribbon__location {
    min-height: 48px;
    padding-inline: 12px;
  }

  .service-ribbon__item:nth-child(3) {
    border-left: 0;
  }
}

@media (max-width: 560px) {
  .service-ribbon__inner {
    grid-template-columns: 1fr;
    padding-block: 10px;
  }

  .service-ribbon__item,
  .service-ribbon__location {
    min-height: 42px;
    padding-inline: 4px;
    border-left: 0;
  }

  .service-ribbon__item + .service-ribbon__item,
  .service-ribbon__location {
    border-top: 1px solid var(--line);
  }
}

/* ---------- Блок «Мы осуществляем» --------------------------------------- */

.intro__label {
  text-align: center;
  font-size: clamp(1.02rem, 1.6vw, 1.2rem);
  font-weight: 700;
  color: var(--accent-ink);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(236px, 1fr));
  gap: 11px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.service-grid li {
  position: relative;
  padding: 13px 16px 13px 42px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 13px;
  font-size: 0.95rem;
  line-height: 1.45;
  color: var(--ink-2);
  transition: border-color 0.18s, transform 0.18s, box-shadow 0.18s;
}

.service-grid li:hover {
  border-color: #c9dcf7;
  transform: translateY(-2px);
  box-shadow: var(--shadow-1);
}

.service-grid li::before {
  content: "";
  position: absolute;
  left: 17px;
  top: 50%;
  width: 5px;
  height: 11px;
  margin-top: -7px;
  border-right: 2.5px solid var(--accent);
  border-bottom: 2.5px solid var(--accent);
  transform: rotate(42deg);
}

.intro__notes {
  margin-top: clamp(26px, 3.4vw, 40px);
  text-align: center;
}

.intro__where {
  font-size: 0.98rem;
  color: var(--muted);
}

.intro__calls {
  margin-top: 8px;
  font-size: clamp(1.02rem, 1.7vw, 1.18rem);
  font-weight: 700;
  color: var(--ink);
}

.intro__calls a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 2px solid rgba(11, 99, 214, 0.28);
  transition: border-color 0.18s;
}

.intro__calls a:hover {
  border-bottom-color: var(--accent);
}

/* ---------- Карточки услуг ------------------------------------------------ */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(18px, 2.4vw, 28px);
}

.card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: clamp(22px, 2.6vw, 34px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-1);
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}

.card:hover {
  transform: translateY(-5px);
  border-color: #d3e2f7;
  box-shadow: var(--shadow-2);
}

.card__icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 17px;
  background: var(--accent-soft);
  color: var(--accent);
}

.card__icon .icon {
  width: 28px;
  height: 28px;
}

.card__title {
  font-size: clamp(1.06rem, 1.5vw, 1.18rem);
  line-height: 1.38;
}

.card__body {
  font-size: 0.97rem;
}

/* ---------- Заголовок подстраницы ---------------------------------------- */

.page-head {
  padding-block: clamp(30px, 4.6vw, 58px);
  background: linear-gradient(180deg, #ecf3fd 0%, #f7fafd 100%);
  border-bottom: 1px solid var(--line);
}

.page-head__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
  align-items: flex-end;
  justify-content: space-between;
}

.page-head__title h1 {
  font-size: clamp(1.62rem, 3.4vw, 2.55rem);
  letter-spacing: -0.025em;
}

.crumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--muted);
}

.crumbs a {
  color: var(--muted);
  text-decoration: none;
}

.crumbs a:hover {
  color: var(--accent);
}

.crumbs__current {
  color: var(--ink);
  font-weight: 600;
}

.crumbs__sep {
  color: #b6c2d3;
}

/* ---------- Панель контента ---------------------------------------------- */

.panel {
  padding: clamp(20px, 3vw, 42px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-1);
}

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

.prose {
  font-size: 1.01rem;
  line-height: 1.72;
  color: var(--ink-2);
}

.prose > * + * {
  margin-top: 1.05em;
}

.prose h1,
.prose h2,
.prose h3,
.prose h4 {
  line-height: 1.3;
  color: var(--ink);
}

.prose > h2:first-child,
.prose > h3:first-child {
  margin-top: 0;
}

.prose h2 {
  font-size: clamp(1.28rem, 2.1vw, 1.62rem);
}

.prose h3 {
  font-size: clamp(1.12rem, 1.7vw, 1.3rem);
}

.prose h4 {
  font-size: 1.06rem;
}

.prose strong,
.prose b {
  font-weight: 700;
  color: var(--ink);
}

.prose a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 2.5px;
}

.prose a:hover {
  color: var(--accent-dark);
}

.prose a.c-red {
  color: var(--red);
}

.prose a.c-red:hover {
  color: #9c1f1f;
}

.prose ul,
.prose ol {
  margin: 0;
  padding-left: 1.25em;
}

.prose li + li {
  margin-top: 0.45em;
}

.prose li::marker {
  color: var(--accent);
}

.prose u {
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}

.prose em {
  font-style: italic;
}

.prose .ta-center {
  text-align: center;
}

.prose .ta-right {
  text-align: right;
}

.prose .ta-justify {
  text-align: justify;
}

.prose .fw-bold {
  font-weight: 700;
  color: var(--ink);
}

.prose .u-line {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.c-red {
  color: var(--red);
}

.c-green {
  color: #1f7a4d;
}

.c-blue {
  color: var(--accent);
}

/* цвет важнее, чем общий стиль .prose strong */
.prose .c-red strong,
.prose .c-red b,
.prose .c-green strong,
.prose .c-green b,
.prose .c-blue strong,
.prose .c-blue b {
  color: inherit;
}

.prose p.ta-center.c-red {
  font-size: clamp(1.06rem, 1.8vw, 1.24rem);
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* телефоны в тексте — ссылки для звонка */
.prose a[href^="tel:"] {
  text-decoration: none;
  font-weight: 600;
  white-space: nowrap;
  border-bottom: 1.5px dashed rgba(11, 99, 214, 0.4);
}

.prose a[href^="tel:"]:hover {
  border-bottom-color: var(--accent);
}

/* подписи-плашки внутри прайса/тахографов */
.prose em.c-red {
  display: inline-block;
  margin-bottom: 4px;
  padding: 6px 13px;
  border-radius: 999px;
  background: var(--red-soft);
  font-style: normal;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--red);
}

/* ---------- Таблицы ------------------------------------------------------- */

.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-1);
}

.table-wrap table {
  width: 100%;
  min-width: 460px;
  border-collapse: collapse;
  font-size: 0.95rem;
  line-height: 1.5;
}

.table-wrap td,
.table-wrap th {
  padding: 11px 14px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.table-wrap tbody p {
  margin: 0;
}

.table-wrap tbody p + p {
  margin-top: 0.5em;
}

.table-wrap tbody tr:nth-child(even) {
  background: #f7f9fc;
}

.table-wrap tbody tr:hover {
  background: var(--accent-soft);
}

.table-wrap thead th {
  background: var(--accent);
  border-color: rgba(255, 255, 255, 0.22);
  font-weight: 700;
  text-align: center;
  color: #fff;
  white-space: nowrap;
}

.table-wrap thead th:first-child {
  border-radius: var(--radius) 0 0 0;
}

.table-wrap thead th:last-child {
  border-radius: 0 var(--radius) 0 0;
}

/* ---------- Галерея ------------------------------------------------------- */

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
  margin-top: 0.4em;
}

.gallery__item {
  margin: 0;
}

.gallery__item a {
  display: block;
  line-height: 0;
}

.gallery__img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--bg-alt);
  transition: transform 0.28s, box-shadow 0.28s;
}

.gallery__item a:hover .gallery__img {
  transform: translateY(-4px) scale(1.015);
  box-shadow: var(--shadow-2);
}

.content-img {
  border: 1px solid var(--line);
  border-radius: 13px;
}

/* ---------- Карта --------------------------------------------------------- */

.map {
  min-height: 450px;
  background: #e8eef5;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-1);
}

.map > div,
.map iframe {
  display: block;
  width: 100%;
}

/* ---------- Подвал -------------------------------------------------------- */

.site-footer {
  background: #0e1b2d;
  color: #aab6c8;
  margin-top: clamp(30px, 5vw, 60px);
}

.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(26px, 4vw, 54px);
  padding-block: clamp(34px, 5vw, 58px);
}

.footer__name {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.01em;
}

.footer__caption {
  margin-bottom: 14px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #6c7c94;
}

.footer__contacts {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.footer__contacts li {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  font-size: 0.93rem;
  line-height: 1.5;
}

.footer__contacts .icon {
  width: 18px;
  height: 18px;
  flex: none;
  margin-top: 3px;
  color: var(--accent);
}

.footer__contacts a {
  color: #dfe7f2;
  text-decoration: none;
}

.footer__contacts a:hover {
  color: #fff;
  text-decoration: underline;
}

.footer__nav {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 9px;
}

.footer__nav a {
  color: #aab6c8;
  font-size: 0.94rem;
  text-decoration: none;
  transition: color 0.18s;
}

.footer__nav a:hover {
  color: #fff;
}

.footer__col--counters {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.footer__col--counters .footer__caption {
  margin-bottom: 2px;
}

.footer__host img {
  border-radius: 4px;
}

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

.footer__bottom-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
  font-size: 0.86rem;
  color: #6c7c94;
}

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

/* ---------- Плавающие элементы ------------------------------------------- */

.call-fab {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 95;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 58px;
  padding: 0 22px 0 18px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 16px 36px rgba(11, 99, 214, 0.42);
  transition: background-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.call-fab:hover {
  background: var(--accent-dark);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 20px 42px rgba(11, 99, 214, 0.5);
}

.call-fab .icon {
  width: 23px;
  height: 23px;
  flex: none;
}

.call-fab__label {
  font-size: 0.96rem;
  font-weight: 700;
}

.to-top {
  position: fixed;
  right: 20px;
  bottom: 92px;
  z-index: 95;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  box-shadow: var(--shadow-1);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.25s, transform 0.25s, visibility 0.25s,
    background-color 0.2s, color 0.2s;
}

.to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.to-top:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

@media (max-width: 560px) {
  .call-fab {
    right: 14px;
    bottom: 14px;
    width: 56px;
    padding: 0;
    justify-content: center;
  }

  .call-fab__label {
    display: none;
  }

  .to-top {
    right: 16px;
    bottom: 82px;
  }
}

/* ---------- Лайтбокс ------------------------------------------------------ */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: clamp(16px, 4vw, 40px);
  background: rgba(9, 17, 29, 0.88);
  backdrop-filter: blur(3px);
}

.lightbox[hidden] {
  display: none;
}

.lightbox__img {
  max-width: min(1120px, 94vw);
  max-height: 86vh;
  border-radius: 14px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
}

.lightbox__close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 46px;
  height: 46px;
  padding: 12px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  cursor: pointer;
  transition: background-color 0.2s;
}

.lightbox__close:hover {
  background: rgba(255, 255, 255, 0.28);
}

/* ---------- Появление ----------------------------------------------------- */

.js .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  transition-delay: var(--d, 0ms);
}

.js .reveal.is-in {
  opacity: 1;
  transform: none;
}

/* ---------- Разное -------------------------------------------------------- */

body.nav-open {
  overflow: hidden;
}

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

  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

@media print {
  .site-header,
  .call-fab,
  .to-top,
  .lightbox,
  .nav-toggle {
    display: none !important;
  }

  .js .reveal {
    opacity: 1 !important;
    transform: none !important;
  }

  .hero {
    color: #000;
    background: #fff;
  }

  .hero__container {
    display: block;
    min-height: 0;
    padding-block: 24px;
  }

  .hero__art {
    display: none;
  }

  .hero__title,
  .hero__lead,
  .hero__features {
    color: #000;
  }

  .card,
  .panel,
  .table-wrap {
    box-shadow: none !important;
  }

  body {
    color: #000;
  }
}
