/* ==========================================================================
   Фаркоп52 — дизайн-система новой версии сайта
   Файл: assets/css/style.css
   Палитра и типографика вынесены в переменные ниже — меняются в одном месте.
   ========================================================================== */

/* ---------- 0. Шрифты (self-hosted, субсет под кириллицу) ---------- */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/Inter-400.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/Inter-500.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/Inter-600.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/Inter-700.woff2") format("woff2");
}
@font-face {
  font-family: "Oswald";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/Oswald-500.woff2") format("woff2");
}
@font-face {
  font-family: "Oswald";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/Oswald-600.woff2") format("woff2");
}
@font-face {
  font-family: "Oswald";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/Oswald-700.woff2") format("woff2");
}

/* ---------- 1. Токены ---------- */
:root {
  /* Цвета */
  --bg: #0b0e12;
  --bg-2: #10151c;
  --surface: #161c25;
  --surface-2: #1d242f;
  --surface-3: #232b38;
  --line: #29323f;
  --line-soft: #1e2632;
  --text: #e9eef5;
  --text-2: #b6c2d2;
  --muted: #8d9aad;
  --accent: #ff7a1a;
  --accent-2: #ffa451;
  --accent-ink: #14181f;
  --success: #3cc48c;
  --danger: #ff5f56;

  /* Типографика */
  --font-head: "Oswald", "Roboto Condensed", "Arial Narrow", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;

  /* Геометрия */
  --maxw: 1200px;
  --gutter: 20px;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  --shadow: 0 18px 40px -22px rgba(0, 0, 0, 0.85);
  --shadow-lg: 0 32px 70px -30px rgba(0, 0, 0, 0.9);

  /* Тени/свечения */
  --ring: 0 0 0 3px rgba(255, 122, 26, 0.35);
  --header-h: 76px;
}

/* Светлая тема (для отдельных секций и страницы 404) */
:root[data-theme="light"] {
  --bg: #f5f7fa;
  --bg-2: #ffffff;
  --surface: #ffffff;
  --surface-2: #eef1f6;
  --surface-3: #e4e9f0;
  --line: #d8dfe9;
  --line-soft: #e8edf3;
  --text: #111820;
  --text-2: #3d4855;
  --muted: #64707f;
  --accent-ink: #ffffff;
  --shadow: 0 16px 34px -24px rgba(16, 24, 40, 0.45);
  --shadow-lg: 0 30px 60px -30px rgba(16, 24, 40, 0.5);
}

/* ---------- 2. Сброс ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

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

h1 {
  font-size: clamp(2.1rem, 1.2rem + 3.6vw, 3.9rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.005em;
}

h2 {
  font-size: clamp(1.65rem, 1.1rem + 2.1vw, 2.6rem);
  text-transform: uppercase;
}

h3 {
  font-size: clamp(1.2rem, 1rem + 0.8vw, 1.5rem);
}

h4 {
  font-size: 1.06rem;
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: 0;
}

p {
  margin: 0 0 1.1em;
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: var(--accent-2);
  text-decoration: none;
  transition: color 0.18s ease;
}

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

ul,
ol {
  margin: 0 0 1.1em;
  padding-left: 1.15em;
}

li {
  margin-bottom: 0.45em;
}

strong {
  color: var(--text);
  font-weight: 700;
}

hr {
  border: 0;
  border-top: 1px solid var(--line-soft);
  margin: 2.5rem 0;
}

img[width][height] {
  height: auto;
}

::selection {
  background: var(--accent);
  color: var(--accent-ink);
}

/* Доступность */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 12px 20px;
  font-weight: 700;
  border-radius: 0 0 8px 0;
}

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

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

/* ---------- 3. Типографика-компоненты ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
  flex: none;
}

@media (max-width: 560px) {
  .eyebrow {
    font-size: 0.72rem;
    letter-spacing: 0.09em;
    gap: 7px;
  }
  .eyebrow::before {
    width: 18px;
  }
}

.lead {
  font-size: clamp(1.02rem, 0.96rem + 0.35vw, 1.18rem);
  color: var(--text-2);
  max-width: 62ch;
}

.muted {
  color: var(--muted);
}

.section {
  padding: clamp(48px, 6vw, 92px) 0;
}

.section--tight {
  padding: clamp(36px, 4vw, 58px) 0;
}

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

.section-head {
  max-width: 760px;
  margin-bottom: clamp(28px, 3vw, 46px);
}

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

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

.section-head--center .eyebrow::before {
  display: none;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container--narrow {
  max-width: 860px;
}

.grid {
  display: grid;
  gap: 22px;
}

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

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 980px) {
  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- 4. Кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  transition: transform 0.16s ease, background-color 0.16s ease, color 0.16s ease,
    border-color 0.16s ease, box-shadow 0.16s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn--primary {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 10px 24px -14px rgba(255, 122, 26, 0.95);
}

.btn--primary:hover {
  background: var(--accent-2);
  color: var(--accent-ink);
}

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

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

.btn--dark {
  background: var(--surface-3);
  color: var(--text);
}

.btn--sm {
  padding: 10px 18px;
  font-size: 0.9rem;
}

.btn--lg {
  padding: 17px 34px;
  font-size: 1.04rem;
}

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

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn svg {
  width: 18px;
  height: 18px;
  flex: none;
}

/* ---------- 5. Шапка ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 14, 18, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.header.is-scrolled {
  border-bottom-color: var(--line-soft);
  background: rgba(11, 14, 18, 0.95);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: var(--header-h);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--text);
  flex: none;
}

.logo:hover {
  color: var(--text);
}

.logo__mark {
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 11px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
}

.logo__mark svg {
  width: 24px;
  height: 24px;
  color: var(--accent);
}

.logo__text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.logo__name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.22rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.logo__sub {
  font-size: 0.68rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 3px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.nav__link {
  padding: 9px 13px;
  border-radius: 8px;
  color: var(--text-2);
  font-size: 0.94rem;
  font-weight: 500;
  white-space: nowrap;
}

.nav__link:hover {
  color: var(--text);
  background: var(--surface-2);
}

.nav__link[aria-current="page"] {
  color: var(--accent);
  background: rgba(255, 122, 26, 0.1);
}

.header__aside {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-left: auto;
}

.header__phone {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  text-align: right;
}

.header__phone b {
  font-size: 1.02rem;
  color: var(--text);
  letter-spacing: 0.01em;
}

.header__phone span {
  font-size: 0.74rem;
  color: var(--muted);
}

.burger {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  border-radius: 10px;
  cursor: pointer;
  padding: 0;
  place-items: center;
}

.burger span {
  display: block;
  width: 19px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  position: relative;
  transition: background-color 0.2s ease;
}

.burger span::before,
.burger span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 19px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.22s ease, top 0.22s ease;
}

.burger span::before {
  top: -6px;
}

.burger span::after {
  top: 6px;
}

.burger[aria-expanded="true"] span {
  background: transparent;
}

.burger[aria-expanded="true"] span::before {
  top: 0;
  transform: rotate(45deg);
}

.burger[aria-expanded="true"] span::after {
  top: 0;
  transform: rotate(-45deg);
}

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

@media (max-width: 980px) {
  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    background: var(--bg-2);
    border-bottom: 1px solid var(--line);
    padding: 14px var(--gutter) 22px;
    margin: 0;
    box-shadow: var(--shadow-lg);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  }
  .nav.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  .nav__link {
    display: block;
    padding: 13px 10px;
    font-size: 1rem;
    border-bottom: 1px solid var(--line-soft);
    border-radius: 0;
  }
  .burger {
    display: grid;
  }
  .header__inner {
    justify-content: space-between;
  }
  .header__aside {
    margin-left: auto;
    gap: 10px;
  }
}

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

/* ---------- 6. Первый экран ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--bg);
  border-bottom: 1px solid var(--line-soft);
}

.hero__bg {
  position: absolute;
  inset: 0;
  /* Путь относительно этого CSS-файла (assets/css/), а не страницы —
     так фон одинаково работает и на сервере, и при открытии с диска. */
  background-image: url("../img/garage-1500.webp");
  background-size: cover;
  background-position: 62% center;
  opacity: 0.42;
}

@media (max-width: 760px) {
  .hero__bg {
    background-image: url("../img/garage-900.webp");
  }
}

.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    var(--bg) 0%,
    rgba(11, 14, 18, 0.9) 32%,
    rgba(11, 14, 18, 0.42) 62%,
    rgba(11, 14, 18, 0.8) 100%
  );
}

.hero__accent {
  font-family: var(--font-head);
  font-size: clamp(1rem, 0.94rem + 0.45vw, 1.24rem);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent);
  margin: -6px 0 22px;
}

.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 44px;
  align-items: center;
  padding: clamp(44px, 5.5vw, 86px) 0 clamp(52px, 6vw, 92px);
}

@media (max-width: 980px) {
  .hero__inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }
}

.hero__title {
  margin-bottom: 18px;
}

.hero__title em {
  font-style: normal;
  color: var(--accent);
}

.hero__text {
  font-size: clamp(1rem, 0.95rem + 0.4vw, 1.16rem);
  color: var(--text-2);
  max-width: 56ch;
  margin-bottom: 26px;
}

.hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--line-soft);
}

.hero__fact {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.92rem;
  color: var(--text-2);
}

.hero__fact svg {
  width: 17px;
  height: 17px;
  color: var(--accent);
  flex: none;
}

.hero__card {
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-lg);
}

.hero__card-price {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 4px;
}

.hero__card-price b {
  font-family: var(--font-head);
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1;
  color: var(--text);
}

.hero__card-price span {
  color: var(--muted);
  font-size: 0.92rem;
}

.hero__card h2 {
  font-size: 1.05rem;
  font-family: var(--font-body);
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0;
  margin-bottom: 16px;
  color: var(--text-2);
}

.hero__list {
  list-style: none;
  padding: 0;
  margin: 0 0 22px;
}

.hero__list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 7px 0;
  font-size: 0.95rem;
  color: var(--text-2);
  border-bottom: 1px solid var(--line-soft);
}

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

.hero__list svg {
  width: 18px;
  height: 18px;
  color: var(--success);
  flex: none;
  margin-top: 3px;
}

/* ---------- 7. Полоса доверия ---------- */
.trust {
  border-bottom: 1px solid var(--line-soft);
  background: var(--bg-2);
}

.trust__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line-soft);
}

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

@media (max-width: 520px) {
  .trust__grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.trust__item {
  background: var(--bg-2);
  padding: 22px 20px;
  display: flex;
  gap: 13px;
  align-items: flex-start;
}

.trust__icon {
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: 11px;
  background: rgba(255, 122, 26, 0.12);
  border: 1px solid rgba(255, 122, 26, 0.25);
  display: grid;
  place-items: center;
}

.trust__icon svg {
  width: 21px;
  height: 21px;
  color: var(--accent);
}

.trust__item b {
  display: block;
  font-size: 0.99rem;
  margin-bottom: 2px;
}

.trust__item span {
  font-size: 0.87rem;
  color: var(--muted);
  line-height: 1.45;
}

/* ---------- 8. Карточки ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.card:hover {
  border-color: rgba(255, 122, 26, 0.4);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.card--media {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.card--media .card__body {
  padding: 22px 24px 26px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card__media {
  position: relative;
  background: var(--surface-2);
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  padding: 20px;
  overflow: hidden;
}

picture {
  display: contents;
}

.card__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.card:hover .card__media img {
  transform: scale(1.04);
}

.card__badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 6px;
}

.card__price {
  font-family: var(--font-head);
  font-size: 1.34rem;
  font-weight: 600;
  color: var(--accent);
  margin: 4px 0 12px;
}

.card__price small {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0;
}

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

.card__text {
  color: var(--text-2);
  font-size: 0.96rem;
  margin-bottom: 16px;
}

.card__list {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
  font-size: 0.92rem;
}

.card__list li {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  margin-bottom: 7px;
  color: var(--text-2);
}

.card__list li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
  margin-top: 9px;
}

.card__list--minus li::before {
  background: var(--muted);
}

.card__link {
  margin-top: auto;
  font-weight: 700;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.card__link svg {
  width: 16px;
  height: 16px;
  transition: transform 0.18s ease;
}

.card__link:hover svg {
  transform: translateX(4px);
}

/* ---------- 9. Таблица цен ---------- */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

table.price {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
}

table.price caption {
  text-align: left;
  padding: 18px 22px;
  font-weight: 700;
  color: var(--text);
  border-bottom: 1px solid var(--line);
  font-size: 1rem;
}

table.price th,
table.price td {
  padding: 14px 22px;
  text-align: left;
  border-bottom: 1px solid var(--line-soft);
  font-size: 0.97rem;
}

table.price thead th {
  background: var(--surface-2);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}

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

table.price tbody tr:hover {
  background: rgba(255, 122, 26, 0.05);
}

table.price td:last-child {
  text-align: right;
  font-weight: 700;
  white-space: nowrap;
  color: var(--text);
}

table.price .price-note {
  display: block;
  font-weight: 400;
  font-size: 0.8rem;
  color: var(--muted);
}

/* ---------- 10. Шаги ---------- */
.steps {
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 20px;
}

@media (max-width: 1000px) {
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .steps {
    grid-template-columns: minmax(0, 1fr);
  }
}

.step {
  position: relative;
  padding-top: 26px;
  border-top: 2px solid var(--line);
  counter-increment: step;
}

.step::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  top: -14px;
  left: 0;
  background: var(--bg-2);
  padding-right: 12px;
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.08em;
}

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

.step h3 {
  font-size: 1.08rem;
  margin-bottom: 7px;
  font-family: var(--font-body);
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0;
}

.step p {
  font-size: 0.93rem;
  color: var(--text-2);
  margin: 0;
}

/* ---------- 11. Сплит-секции ---------- */
.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(30px, 4vw, 62px);
  align-items: center;
}

@media (max-width: 900px) {
  .split {
    grid-template-columns: minmax(0, 1fr);
  }
}

.split--reverse .split__media {
  order: 2;
}

@media (max-width: 900px) {
  .split--reverse .split__media {
    order: 0;
  }
}

.split__media img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.media-frame {
  position: relative;
}

.media-frame::before {
  content: "";
  position: absolute;
  inset: -14px 14px 14px -14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  z-index: -1;
}

/* ---------- 12. Галерея ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

@media (max-width: 900px) {
  .gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.gallery__item {
  position: relative;
  display: block;
  border: 0;
  padding: 0;
  cursor: zoom-in;
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface-2);
  aspect-ratio: 4 / 3;
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.gallery__item:hover img {
  transform: scale(1.05);
}

.gallery__item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(11, 14, 18, 0.75));
  opacity: 0;
  transition: opacity 0.22s ease;
}

.gallery__item:hover::after {
  opacity: 1;
}

.gallery__cap {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 10px;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  text-align: left;
  z-index: 1;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.gallery__item:hover .gallery__cap {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 620px) {
  .gallery__cap {
    opacity: 1;
    transform: none;
  }
}

/* Лайтбокс */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(5, 7, 10, 0.94);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s;
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.lightbox img {
  max-width: 100%;
  max-height: 82vh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
}

.lightbox__close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  font-size: 1.4rem;
  cursor: pointer;
  line-height: 1;
}

.lightbox__caption {
  margin-top: 14px;
  color: var(--text-2);
  font-size: 0.92rem;
  text-align: center;
}

/* ---------- 13. Отзывы ---------- */
.review {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
}

.review__quote {
  display: block;
  font-family: var(--font-head);
  font-size: 2.6rem;
  line-height: 0.8;
  color: var(--accent);
  margin-bottom: 10px;
}

.review__text {
  color: var(--text-2);
  font-size: 0.97rem;
  flex: 1;
}

.review__author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
}

.review__avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--surface-3);
  display: grid;
  place-items: center;
  font-weight: 700;
  color: var(--accent);
  flex: none;
}

.review__name {
  font-weight: 700;
  font-size: 0.97rem;
}

.review__meta {
  font-size: 0.82rem;
  color: var(--muted);
}

/* ---------- 14. FAQ / аккордеон ---------- */
.faq {
  display: grid;
  gap: 12px;
  max-width: 900px;
}

.faq__item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color 0.18s ease;
}

.faq__item[open] {
  border-color: rgba(255, 122, 26, 0.45);
}

.faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.01rem;
  list-style: none;
}

.faq__q::-webkit-details-marker {
  display: none;
}

.faq__q::after {
  content: "";
  flex: none;
  width: 11px;
  height: 11px;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
  margin-top: -4px;
}

.faq__item[open] .faq__q::after {
  transform: rotate(-135deg);
  margin-top: 4px;
}

.faq__a {
  padding: 0 22px 20px;
  color: var(--text-2);
  font-size: 0.97rem;
}

.faq__a p:first-child {
  margin-top: 0;
}

/* ---------- 15. Формы ---------- */
.form-card {
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 3vw, 38px);
  box-shadow: var(--shadow-lg);
}

.form {
  display: grid;
  gap: 14px;
}

.form__row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

@media (max-width: 560px) {
  .form__row {
    grid-template-columns: minmax(0, 1fr);
  }
}

.field label {
  display: block;
  font-size: 0.86rem;
  color: var(--text-2);
  margin-bottom: 7px;
  font-weight: 500;
}

.field label span {
  color: var(--accent);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #6c7a8d;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: var(--ring);
}

.field input[aria-invalid="true"] {
  border-color: var(--danger);
}

.field__error {
  display: none;
  color: var(--danger);
  font-size: 0.82rem;
  margin-top: 6px;
}

.field.has-error .field__error {
  display: block;
}

.form__consent {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.5;
}

.form__consent a {
  text-decoration: underline;
}

.form__status {
  display: none;
  padding: 14px 16px;
  border-radius: 10px;
  font-size: 0.92rem;
  background: rgba(60, 196, 140, 0.12);
  border: 1px solid rgba(60, 196, 140, 0.35);
  color: #7ee0b4;
}

.form__status.is-visible {
  display: block;
}

/* ---------- 16. Контакты ---------- */
.contacts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

@media (max-width: 860px) {
  .contacts {
    grid-template-columns: minmax(0, 1fr);
  }
}

.contact {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.contacts--stack {
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}

.contact__icon {
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
}

.contact__icon svg {
  width: 21px;
  height: 21px;
  color: var(--accent);
}

.contact b {
  display: block;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 4px;
}

.contact a,
.contact span {
  font-size: 1.05rem;
  color: var(--text);
}

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

.map {
  margin-top: 30px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface-2);
  position: relative;
  min-height: 380px;
}

.map iframe {
  width: 100%;
  height: 380px;
  border: 0;
  display: block;
  filter: grayscale(0.25) contrast(1.02);
}

/* ---------- 17. CTA-секция ---------- */
.cta {
  position: relative;
  overflow: hidden;
  background: linear-gradient(120deg, #12171f 0%, #0b0e12 55%, #17110a 100%);
  border-top: 1px solid var(--line-soft);
}

.cta::before {
  content: "";
  position: absolute;
  right: -120px;
  top: -120px;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 122, 26, 0.2), transparent 68%);
  pointer-events: none;
}

.cta__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr);
  gap: clamp(28px, 4vw, 58px);
  align-items: center;
}

@media (max-width: 900px) {
  .cta__inner {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- 18. Подвал ---------- */
.footer {
  background: var(--bg-2);
  border-top: 1px solid var(--line-soft);
  padding: 52px 0 26px;
}

.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 1fr));
  gap: 34px;
}

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

@media (max-width: 560px) {
  .footer__grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.footer h4 {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 14px;
}

.footer__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer__list li {
  margin-bottom: 9px;
}

.footer__list a {
  color: var(--text-2);
  font-size: 0.94rem;
}

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

.footer__about {
  color: var(--muted);
  font-size: 0.93rem;
  max-width: 40ch;
  margin-top: 14px;
}

.footer__bottom {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid var(--line-soft);
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--muted);
}

/* ---------- 19. Мобильная панель ---------- */
.mobile-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  display: none;
  gap: 10px;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  background: rgba(11, 14, 18, 0.94);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
}

.mobile-bar .btn {
  flex: 1;
  padding: 13px 12px;
  font-size: 0.94rem;
}

@media (max-width: 720px) {
  .mobile-bar {
    display: flex;
  }
  body {
    padding-bottom: 74px;
  }
}

/* ---------- 20. Хлебные крошки ---------- */
.crumbs {
  font-size: 0.86rem;
  color: var(--muted);
  padding: 18px 0;
}

.crumbs ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0;
  margin: 0;
}

.crumbs li::after {
  content: "/";
  margin-left: 6px;
  color: var(--line);
}

.crumbs li:last-child::after {
  content: "";
}

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

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

.crumbs [aria-current="page"] {
  color: var(--text-2);
}

/* ---------- 21. Внутренний hero ---------- */
.page-hero {
  position: relative;
  background: var(--bg-2);
  border-bottom: 1px solid var(--line-soft);
  padding: clamp(30px, 4vw, 56px) 0 clamp(34px, 4vw, 60px);
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(700px 260px at 78% 0%, rgba(255, 122, 26, 0.14), transparent 70%);
  pointer-events: none;
}

.page-hero .container {
  position: relative;
  z-index: 1;
}

.page-hero h1 {
  max-width: 20ch;
}

.page-hero .lead {
  margin-top: 6px;
}

/* ---------- 22. Сравнительная таблица типов ---------- */
.compare {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

@media (max-width: 900px) {
  .compare {
    grid-template-columns: minmax(0, 1fr);
  }
}

.compare__col {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.compare__col--accent {
  border-color: rgba(255, 122, 26, 0.45);
  box-shadow: 0 0 0 1px rgba(255, 122, 26, 0.2);
}

.compare__head {
  padding: 20px 22px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
}

.compare__col--accent .compare__head {
  background: rgba(255, 122, 26, 0.1);
}

.compare__head h3 {
  font-size: 1.14rem;
  margin: 0 0 4px;
  text-transform: none;
  letter-spacing: 0;
  font-family: var(--font-body);
  font-weight: 700;
}

.compare__head p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
}

.compare__body {
  padding: 20px 22px;
}

.compare__body dt {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-top: 16px;
  font-weight: 600;
}

.compare__body dt:first-child {
  margin-top: 0;
}

.compare__body dd {
  margin: 5px 0 0;
  font-size: 0.97rem;
  color: var(--text-2);
}

/* ---------- 23. Утилиты ---------- */
.text-center {
  text-align: center;
}

.mt-0 {
  margin-top: 0;
}

.mb-0 {
  margin-bottom: 0;
}

.mt-3 {
  margin-top: 30px;
}

.tag {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  font-size: 0.84rem;
  color: var(--text-2);
}

.note {
  padding: 16px 20px;
  border-left: 3px solid var(--accent);
  background: var(--surface-2);
  border-radius: 0 10px 10px 0;
  font-size: 0.93rem;
  color: var(--text-2);
}

.prose {
  max-width: 74ch;
}

.prose h2 {
  margin-top: 1.9em;
  font-size: clamp(1.4rem, 1.1rem + 1.2vw, 1.9rem);
}

.prose h3 {
  margin-top: 1.6em;
  font-size: 1.2rem;
  text-transform: none;
  letter-spacing: 0;
  font-family: var(--font-body);
  font-weight: 700;
}

.prose ul {
  color: var(--text-2);
}

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

/* ---------- 24. Страница 404 ---------- */
.notfound {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 60px 0;
}

.notfound__code {
  font-family: var(--font-head);
  font-size: clamp(5rem, 16vw, 11rem);
  font-weight: 700;
  line-height: 0.9;
  color: var(--surface-3);
}

/* ---------- 25. Анимации ---------- */
/* Появление блоков при скролле.
   Скрытое состояние применяется только при работающем JS (класс .js на <html>),
   иначе контент виден всегда — даже если скрипт не загрузился. */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  .js [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

/* ---------- 26. Печать ---------- */
@media print {
  .header,
  .mobile-bar,
  .cta,
  .footer,
  .hero__bg {
    display: none !important;
  }
  body {
    background: #fff;
    color: #000;
  }
}
