/* =========================================================================
   Транспортная компания — основная таблица стилей
   -------------------------------------------------------------------------
   1. Дизайн-токены          5. Секции главной страницы
   2. Базовые стили          6. Внутренние страницы
   3. Раскладка              7. Форма заявки
   4. Общие компоненты       8. Утилиты и reduced motion

   Именование классов — БЭМ: block, block__element, block--modifier.
   Состояния — классы is-* (is-scrolled) и ARIA-атрибуты.
   ========================================================================= */

/* 1. Дизайн-токены ------------------------------------------------------- */

:root {
  --c-bg: #161b22;
  --c-bg-2: #12161c;
  --c-surface: #1f252e;
  --c-surface-2: #262d38;
  --c-line: rgba(242, 246, 248, 0.1);
  --c-line-strong: rgba(242, 246, 248, 0.2);
  --c-text: #f2f6f8;
  --c-muted: #a3adba;
  --c-placeholder: #76808d;
  --c-accent: #6ff5f8;
  --c-accent-2: #a8fbfc;
  --c-accent-ink: #0a1a1c;
  --c-accent-soft: rgba(111, 245, 248, 0.1);
  --c-danger: #ff8a7a;
  --c-warning: #f2c14e;

  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --font-mono: ui-monospace, "Cascadia Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;

  --fs-display: clamp(2.25rem, 1.3rem + 4.2vw, 4.75rem);
  --fs-h1: clamp(2.125rem, 1.5rem + 3vw, 3.75rem);
  --fs-h2: clamp(1.75rem, 1.3rem + 2vw, 2.75rem);
  --fs-h3: clamp(1.125rem, 1.05rem + 0.4vw, 1.375rem);
  --fs-lead: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
  --fs-small: 0.875rem;
  --fs-xs: 0.75rem;

  --space-section: clamp(4rem, 3rem + 5vw, 8rem);
  --gutter: clamp(1rem, 0.5rem + 2.5vw, 2.5rem);
  --container: 1240px;
  --radius: 4px;
  --radius-lg: 8px;
  --header-h: 64px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

@media (min-width: 900px) {
  :root {
    --header-h: 76px;
  }
}

/* 2. Базовые стили ------------------------------------------------------- */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
  color-scheme: dark;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

main {
  flex: 1 0 auto;
}

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

img {
  height: auto;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 0.5em;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-wrap: balance;
  overflow-wrap: break-word;
}

p {
  margin: 0 0 1em;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition: color 0.2s;
}

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

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

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

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

/* 3. Раскладка ----------------------------------------------------------- */

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

.section {
  padding-block: var(--space-section);
}

.section--surface {
  background: var(--c-surface);
}

.section--bordered {
  border-top: 1px solid var(--c-line);
}

.section--tight {
  padding-block: clamp(2.5rem, 2rem + 3vw, 5rem);
}

.section-head {
  display: grid;
  gap: 1rem 3rem;
  margin-bottom: clamp(2.5rem, 2rem + 2vw, 4rem);
}

.section-head__title {
  margin: 0;
  font-size: var(--fs-h2);
}

.section-head__text {
  max-width: 40rem;
  margin: 0;
  color: var(--c-muted);
  font-size: var(--fs-lead);
}

@media (min-width: 900px) {
  .section-head {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    align-items: end;
  }
}

.split {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 960px) {
  .split {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 5rem;
  }

  .split--start {
    align-items: start;
  }
}

/* 4. Общие компоненты ---------------------------------------------------- */

/* Иконки: инлайновые SVG с stroke="currentColor" */
.icon {
  width: 1.5rem;
  height: 1.5rem;
  flex: none;
}

/* Ссылка «Перейти к содержимому» для клавиатуры и скринридеров */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  background: var(--c-accent);
  color: var(--c-accent-ink);
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
}

/* Надзаголовок секции: «01 — Преимущества» */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 1.25rem;
  color: var(--c-muted);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 2rem;
  height: 1px;
  background: var(--c-accent);
}

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

/* Кнопки */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 48px;
  padding: 0.75rem 1.5rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}

.btn .icon {
  width: 1.125rem;
  height: 1.125rem;
  transition: transform 0.2s var(--ease);
}

.btn:hover .icon {
  transform: translateX(3px);
}

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

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

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

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

.btn--sm {
  min-height: 40px;
  padding: 0.5rem 1rem;
  font-size: 0.9375rem;
}

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

.btn[disabled] {
  opacity: 0.6;
  cursor: progress;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

@media (max-width: 479.98px) {
  .btn-row .btn {
    flex: 1 1 100%;
  }
}

/* Шапка */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  background: rgba(22, 27, 34, 0.94);
  transition: border-color 0.2s;
}

@supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)) {
  .site-header {
    background: rgba(22, 27, 34, 0.78);
    -webkit-backdrop-filter: saturate(140%) blur(12px);
    backdrop-filter: saturate(140%) blur(12px);
  }
}

.site-header.is-scrolled,
.nav-open .site-header {
  border-bottom-color: var(--c-line);
}

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

.site-header__actions {
  display: none;
  align-items: center;
  gap: 1.25rem;
}

.header-phone {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  text-decoration: none;
  white-space: nowrap;
}

/* Логотип */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-right: auto;
  color: var(--c-text);
  text-decoration: none;
}

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

.logo__mark {
  width: 32px;
  height: 32px;
}

.logo__img {
  width: auto;
  max-width: min(300px, 60vw);
  height: 40px;
  object-fit: contain;
  object-position: left center;
}

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

.logo__name {
  font-size: 0.9375rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.logo__tag {
  color: var(--c-muted);
  font-size: 0.6875rem;
  letter-spacing: 0.04em;
}

/* Навигация */
.nav__list {
  display: flex;
  gap: 0.25rem;
  list-style: none;
}

.nav__link {
  position: relative;
  display: block;
  padding: 0.5rem 0.875rem;
  border-radius: var(--radius);
  color: var(--c-muted);
  font-weight: 500;
  text-decoration: none;
}

.nav__link:hover,
.nav__link[aria-current="page"] {
  color: var(--c-text);
}

.nav__link[aria-current="page"]::after {
  content: "";
  position: absolute;
  right: 0.875rem;
  bottom: 0.15rem;
  left: 0.875rem;
  height: 2px;
  background: var(--c-accent);
}

.nav__extra {
  display: none;
}

/* Кнопка звонка в шапке на телефоне (номер в шапке виден только на широких экранах) */
.header-call {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--c-line-strong);
  border-radius: 50%;
  color: var(--c-accent);
}

.header-call .icon {
  width: 1.25rem;
  height: 1.25rem;
}

.header-call:hover {
  border-color: var(--c-accent);
  color: var(--c-accent);
}

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  margin-right: -11px;
  padding: 0 11px;
  border: 0;
  background: none;
  color: var(--c-text);
  cursor: pointer;
}

.nav-toggle__bar {
  display: block;
  width: 100%;
  height: 2px;
  background: currentColor;
  transition: transform 0.2s var(--ease), opacity 0.2s;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar--top {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar--mid {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar--bottom {
  transform: translateY(-7px) rotate(-45deg);
}

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

  .nav-toggle,
  .header-call {
    display: none;
  }
}

@media (max-width: 899.98px) {
  /* Мобильное меню — выезжающая панель под шапкой (только при включённом JS) */
  .js .nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    height: calc(100vh - var(--header-h));
    height: calc(100dvh - var(--header-h));
    padding: 1rem var(--gutter) 2rem;
    overflow-y: auto;
    border-top: 1px solid var(--c-line);
    background: var(--c-bg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.2s, transform 0.2s var(--ease), visibility 0s 0.2s;
  }

  .nav-open .nav {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity 0.2s, transform 0.2s var(--ease), visibility 0s;
  }

  .js .nav__list {
    flex-direction: column;
    gap: 0;
  }

  .js .nav__link {
    padding: 1rem 0;
    border-bottom: 1px solid var(--c-line);
    border-radius: 0;
    color: var(--c-text);
    font-size: 1.375rem;
  }

  .js .nav__link[aria-current="page"]::after {
    top: 50%;
    right: 0;
    bottom: auto;
    left: auto;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    transform: translateY(-50%);
  }

  .js .nav__extra {
    display: grid;
    gap: 1rem;
    margin-top: 2rem;
  }

  .nav__phone {
    font-size: 1.25rem;
    font-weight: 600;
    text-decoration: none;
  }

  body.nav-open {
    overflow: hidden;
  }

  /* Без JS меню показывается обычным списком под логотипом */
  .no-js .site-header__inner {
    flex-wrap: wrap;
    padding-block: 0.75rem;
  }

  .no-js .nav {
    order: 3;
    width: 100%;
  }

  .no-js .nav__link {
    padding-inline: 0;
    margin-right: 1rem;
  }

  .no-js .nav-toggle {
    display: none;
  }
}

/* Фоновая сетка для первых экранов */
.hero::before,
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--c-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--c-line) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: 0.45;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(ellipse at 75% 30%, #000 0%, transparent 65%);
  mask-image: radial-gradient(ellipse at 75% 30%, #000 0%, transparent 65%);
}

/* Изображения в рамке */
.figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  background: var(--c-surface-2);
}

/* Изображение показывается целиком, в своих пропорциях (их задают атрибуты width и height) */
.figure img {
  width: 100%;
  height: auto;
}

.figure__caption {
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--c-line);
  color: var(--c-muted);
  font-size: var(--fs-small);
}

/* Нумерованный список принципов */
.principles {
  margin: 2rem 0;
  border-top: 1px solid var(--c-line);
  list-style: none;
}

.principles__item {
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr);
  gap: 1rem;
  padding: 1.125rem 0;
  border-bottom: 1px solid var(--c-line);
}

.principles__num {
  padding-top: 0.15rem;
  color: var(--c-accent);
  font-family: var(--font-mono);
  font-size: var(--fs-small);
}

.principles__title {
  display: block;
  margin-bottom: 0.15rem;
}

.principles__text {
  margin: 0;
  color: var(--c-muted);
  font-size: 0.9375rem;
}

/* Метки (страны, регионы) */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
}

.tag {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  border: 1px solid var(--c-line-strong);
  border-radius: 999px;
  color: var(--c-muted);
  font-size: var(--fs-small);
}

a.tag {
  text-decoration: none;
}

a.tag:hover {
  border-color: var(--c-accent);
  color: var(--c-text);
}

/* Список с маркером-чертой */
.check-list {
  display: grid;
  gap: 0.6rem;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 1.5rem;
  color: var(--c-muted);
}

.check-list li::before {
  content: "";
  position: absolute;
  top: 0.8em;
  left: 0;
  width: 0.75rem;
  height: 1px;
  background: var(--c-accent);
}

/* Контакты */
.contact-list {
  border-top: 1px solid var(--c-line);
  list-style: none;
}

.contact-item {
  display: grid;
  grid-template-columns: 2.75rem minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--c-line);
}

.contact-item__icon {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--c-line-strong);
  border-radius: var(--radius);
  color: var(--c-accent);
}

.contact-item__icon .icon {
  width: 1.25rem;
  height: 1.25rem;
}

.contact-item__label {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--c-muted);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.contact-item__value {
  font-size: 1.125rem;
  font-weight: 600;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.contact-item__text {
  margin: 0;
  color: var(--c-muted);
}

.contact-block__social {
  margin-top: 1.75rem;
}

.contact-block__social .contact-item__label {
  margin-bottom: 0.75rem;
}

/* Блок ЭПД */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1.25rem;
  padding: 0.4rem 0.9rem;
  border: 1px solid rgba(111, 245, 248, 0.45);
  border-radius: 999px;
  background: var(--c-accent-soft);
  color: var(--c-accent-2);
  font-size: var(--fs-small);
  font-weight: 600;
}

.badge .icon {
  width: 1.125rem;
  height: 1.125rem;
}

.epd__list {
  margin-top: 0;
}

.epd__id {
  margin-bottom: 1.5rem;
  padding: 1rem 1.25rem;
  border: 1px solid var(--c-line-strong);
  border-radius: var(--radius);
  background: var(--c-surface);
}

.epd__id-value {
  display: block;
  font-family: var(--font-mono);
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  overflow-wrap: anywhere;
  user-select: all;
}

.epd__note {
  display: flex;
  gap: 0.75rem;
  margin: 0;
  color: var(--c-muted);
  font-size: 0.9375rem;
}

.epd__note .icon {
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.1rem;
  color: var(--c-accent);
}

/* Мессенджеры и соцсети */
.social-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.5rem 1rem;
  border: 1px solid var(--c-line-strong);
  border-radius: 999px;
  color: var(--c-text);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  transition: border-color 0.2s, background-color 0.2s;
}

.social-link .icon {
  width: 1.125rem;
  height: 1.125rem;
  color: var(--c-accent);
}

.social-link:hover {
  border-color: var(--c-accent);
  background: var(--c-accent-soft);
  color: var(--c-text);
}

.social-list--compact .social-link {
  min-height: 40px;
  padding: 0.4rem 0.85rem;
  font-size: var(--fs-small);
}

.site-footer__social {
  margin-top: 1.25rem;
}

/* Блок с призывом к действию */
.cta {
  position: relative;
  display: grid;
  gap: 2rem;
  overflow: hidden;
  padding: clamp(2rem, 1.5rem + 3vw, 4.5rem);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 100% 0%, rgba(111, 245, 248, 0.14), transparent 55%),
    var(--c-surface);
}

.cta::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 4px;
  background: var(--c-accent);
}

.cta__title {
  margin-bottom: 0.75rem;
  font-size: var(--fs-h2);
}

.cta__text {
  max-width: 40rem;
  margin: 0;
  color: var(--c-muted);
  font-size: var(--fs-lead);
}

@media (min-width: 900px) {
  .cta {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 3rem;
  }
}

/* Предупреждение (заглушки, демо-режим) */
.notice {
  display: flex;
  gap: 0.875rem;
  padding: 1rem 1.25rem;
  border: 1px solid rgba(242, 193, 78, 0.35);
  border-radius: var(--radius);
  background: rgba(242, 193, 78, 0.06);
  font-size: 0.9375rem;
}

.notice .icon {
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.15rem;
  color: var(--c-warning);
}

.notice p {
  margin: 0;
}

/* Подвал */
.site-footer {
  padding-block: 4rem 2rem;
  border-top: 1px solid var(--c-line);
  background: var(--c-bg-2);
  color: var(--c-muted);
  font-size: 0.9375rem;
}

.site-footer__grid {
  display: grid;
  gap: 2.5rem;
}

.site-footer__about {
  max-width: 22rem;
  margin: 1rem 0 0;
}

.site-footer__title {
  margin-bottom: 1rem;
  color: var(--c-text);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.site-footer__list {
  display: grid;
  gap: 0.6rem;
  list-style: none;
}

.site-footer__list a {
  text-decoration: none;
  overflow-wrap: anywhere;
}

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--c-line);
  font-size: var(--fs-small);
}

.site-footer__bottom p {
  margin: 0;
}

@media (min-width: 768px) {
  .site-footer__grid {
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1.5fr);
  }
}

/* 5. Секции главной страницы --------------------------------------------- */

/* Первый экран */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(2.5rem, 2rem + 4vw, 6rem) clamp(2.5rem, 2rem + 3vw, 4.5rem);
  border-bottom: 1px solid var(--c-line);
}

.hero__inner {
  position: relative;
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

.hero__title {
  margin-bottom: 1.5rem;
  font-size: var(--fs-display);
  line-height: 1.02;
  letter-spacing: -0.035em;
}

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

.hero__lead {
  max-width: 36rem;
  margin-bottom: 2rem;
  color: var(--c-muted);
  font-size: var(--fs-lead);
}

/* Баннер на первом экране (если выбран в админке) */
.hero__banner {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  background: var(--c-surface);
}

.hero__banner img {
  width: 100%;
  height: auto;
}

/* Крупный логотип на первом экране */
.hero__brand {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  padding: 2rem;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 50% 42%, rgba(111, 245, 248, 0.16), transparent 60%),
    var(--c-surface);
}

/* Угловые метки — отсылка к разметке грузовых документов */
.hero__brand::before,
.hero__brand::after {
  content: "";
  position: absolute;
  width: 1.5rem;
  height: 1.5rem;
  border-color: var(--c-accent);
  border-style: solid;
}

.hero__brand::before {
  top: 1rem;
  left: 1rem;
  border-width: 1px 0 0 1px;
}

.hero__brand::after {
  right: 1rem;
  bottom: 1rem;
  border-width: 0 1px 1px 0;
}

.hero__brand-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  max-width: 100%;
  text-align: center;
}

.hero__brand-mark {
  width: clamp(5rem, 3.5rem + 6vw, 8.5rem);
  height: auto;
  margin-bottom: 0.5rem;
}

.hero__brand-name {
  max-width: 100%;
  font-size: clamp(1.75rem, 1.2rem + 2.6vw, 3.25rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.08em;
  overflow-wrap: anywhere;
}

.hero__brand-tag {
  color: var(--c-muted);
  font-family: var(--font-mono);
  font-size: var(--fs-small);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero__brand-logo {
  width: auto;
  max-width: 80%;
  max-height: 14rem;
  object-fit: contain;
}

@media (max-width: 959.98px) {
  .hero__brand {
    aspect-ratio: auto;
    padding-block: 3rem;
  }
}

@media (min-width: 960px) {
  .hero__inner {
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
    gap: 4rem;
  }
}

/* Преимущества */
.features {
  display: grid;
  gap: 2.5rem 2rem;
  list-style: none;
}

.feature {
  position: relative;
  padding-top: 1.5rem;
  border-top: 1px solid var(--c-line-strong);
}

.feature::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 3rem;
  height: 1px;
  background: var(--c-accent);
}

.feature__icon {
  width: 2rem;
  height: 2rem;
  margin-bottom: 1.25rem;
  color: var(--c-accent);
}

.feature__title {
  margin-bottom: 0.5rem;
  font-size: var(--fs-h3);
}

.feature__text {
  margin: 0;
  color: var(--c-muted);
}

@media (min-width: 600px) {
  .features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .features--4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* Услуги — сетка с общими линиями вместо отдельных карточек */
.services-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  border-top: 1px solid var(--c-line);
  border-left: 1px solid var(--c-line);
  list-style: none;
}

.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 2rem clamp(1.25rem, 1rem + 1vw, 2rem) 1.75rem;
  border-right: 1px solid var(--c-line);
  border-bottom: 1px solid var(--c-line);
  transition: background-color 0.25s;
}

.service-card:hover,
.service-card:focus-within {
  background: var(--c-surface);
}

.service-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 2.5rem;
}

.service-card__num {
  color: var(--c-muted);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.1em;
}

.service-card__icon {
  width: 2.5rem;
  height: 2.5rem;
  color: var(--c-accent);
}

.service-card__title {
  font-size: var(--fs-h3);
}

.service-card__text {
  flex: 1;
  color: var(--c-muted);
}

.service-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  text-decoration: none;
}

/* Вся карточка кликабельна через растянутую ссылку */
.service-card__link::after {
  content: "";
  position: absolute;
  inset: 0;
}

.service-card__link .icon {
  width: 1rem;
  height: 1rem;
  color: var(--c-accent);
  transition: transform 0.2s var(--ease);
}

.service-card:hover .service-card__link .icon {
  transform: translateX(4px);
}

.services-more {
  margin-top: 2.5rem;
}

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

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

/* 4 или 8 услуг — по четыре в ряд, чтобы не оставалось пустых ячеек */
@media (min-width: 1200px) {
  .services-grid:has(> li:nth-child(4):last-child),
  .services-grid:has(> li:nth-child(8):last-child) {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* География: крупные факты */
.facts {
  display: grid;
  gap: 1.5rem 2rem;
  list-style: none;
}

.fact {
  display: grid;
  gap: 0.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--c-line-strong);
}

.fact__title {
  color: var(--c-accent);
  font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

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

@media (min-width: 768px) {
  .facts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Плавающая кнопка «Мы готовы работать с ЭПД» в правом нижнем углу */
.epd-tab {
  position: fixed;
  right: clamp(1rem, 0.5rem + 1.5vw, 1.75rem);
  bottom: calc(clamp(1rem, 0.5rem + 1.5vw, 1.75rem) + env(safe-area-inset-bottom, 0px));
  z-index: 45;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.8rem 1.25rem;
  border-radius: 999px;
  background: var(--c-accent);
  color: var(--c-accent-ink);
  font-size: 0.9375rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
  transition: background-color 0.2s, transform 0.2s;
}

.epd-tab .icon {
  width: 1.25rem;
  height: 1.25rem;
}

.epd-tab:hover {
  background: var(--c-accent-2);
  color: var(--c-accent-ink);
  transform: translateY(-2px);
}

.nav-open .epd-tab {
  display: none;
}

/* Место под кнопку, чтобы она не закрывала копирайт в подвале */
.site-footer {
  padding-bottom: 6rem;
}

@media (max-width: 479.98px) {
  .epd-tab {
    padding: 0.7rem 1rem;
    font-size: 0.875rem;
  }
}

.epd__text p {
  font-size: 1.0625rem;
}

/* 6. Внутренние страницы ------------------------------------------------- */

.page-hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(2.5rem, 2rem + 4vw, 6rem) clamp(2.5rem, 2rem + 3vw, 4.5rem);
  border-bottom: 1px solid var(--c-line);
}

.page-hero > .container {
  position: relative;
}

.page-hero__title {
  max-width: 18ch;
  font-size: var(--fs-h1);
  letter-spacing: -0.03em;
}

.page-hero__lead {
  max-width: 40rem;
  margin: 0;
  color: var(--c-muted);
  font-size: var(--fs-lead);
}

.page-hero__tags {
  margin-top: 2rem;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  color: var(--c-muted);
  font-size: var(--fs-small);
  list-style: none;
}

.breadcrumbs li + li::before {
  content: "/";
  margin-right: 0.5rem;
  color: var(--c-line-strong);
}

.breadcrumbs a {
  text-decoration: none;
}

/* Подробное описание услуги */
.service-detail {
  display: grid;
  gap: 1.5rem 3rem;
  padding-block: clamp(2.5rem, 2rem + 2vw, 4rem);
  border-top: 1px solid var(--c-line);
}

.service-detail:first-child {
  padding-top: 0;
  border-top: 0;
}

.service-detail:last-child {
  padding-bottom: 0;
}

.service-detail__head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
}

.service-detail__num {
  color: var(--c-accent);
  font-family: var(--font-mono);
  font-size: var(--fs-small);
}

.service-detail__icon {
  width: 2.5rem;
  height: 2.5rem;
  color: var(--c-accent);
}

.service-detail__title {
  margin: 0;
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.125rem);
}

.service-detail__lead {
  color: var(--c-muted);
  font-size: 1.0625rem;
}

.service-detail__cols {
  display: grid;
  gap: 2rem;
  margin-top: 2rem;
}

.service-detail__subtitle {
  margin-bottom: 0.875rem;
  font-size: 1rem;
  letter-spacing: 0;
}

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

@media (min-width: 960px) {
  .service-detail {
    grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  }

  .service-detail__head {
    position: sticky;
    top: calc(var(--header-h) + 2rem);
    align-self: start;
  }
}

/* Этапы работы */
.steps {
  display: grid;
  gap: 2rem;
  counter-reset: step;
  list-style: none;
}

.step {
  padding-top: 1.25rem;
  border-top: 1px solid var(--c-line-strong);
  counter-increment: step;
}

.step::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  margin-bottom: 1rem;
  color: var(--c-accent);
  font-family: var(--font-mono);
  font-size: var(--fs-small);
}

.step__title {
  font-size: 1.125rem;
}

.step__text {
  margin: 0;
  color: var(--c-muted);
  font-size: 0.9375rem;
}

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

@media (min-width: 1100px) {
  .steps {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

/* Реквизиты и другие пары «название — значение» */
.dl {
  margin: 0;
  border-top: 1px solid var(--c-line);
}

.dl__row {
  display: grid;
  gap: 0.25rem 2rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--c-line);
}

.dl__row dt {
  color: var(--c-muted);
  font-size: var(--fs-small);
}

.dl__row dd {
  margin: 0;
  font-weight: 500;
  overflow-wrap: anywhere;
}

@media (min-width: 640px) {
  .dl__row {
    grid-template-columns: 14rem minmax(0, 1fr);
  }
}

/* Текстовые документы (политика конфиденциальности) */
.prose {
  max-width: 46rem;
}

.prose h2 {
  margin-top: 2.5rem;
  font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.625rem);
}

.prose p,
.prose li {
  color: var(--c-muted);
}

.prose ul {
  margin-bottom: 1em;
  padding-left: 1.25rem;
}

.prose li {
  margin-bottom: 0.35rem;
}

.prose strong {
  color: var(--c-text);
}

/* Страница контактов */
.contact-layout {
  display: grid;
  gap: 3rem;
}

.contact-layout__aside > * + * {
  margin-top: 2rem;
}

.panel {
  padding: clamp(1.5rem, 1rem + 2vw, 2.5rem);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  background: var(--c-surface);
}

.panel__title {
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
}

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

@media (min-width: 1024px) {
  .contact-layout {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 5rem;
    align-items: start;
  }
}

/* Страница 404 */
.error-page {
  position: relative;
  overflow: hidden;
  padding-block: clamp(4rem, 3rem + 6vw, 9rem);
}

.error-page__code {
  margin: 0 0 1rem;
  color: var(--c-accent);
  font-family: var(--font-mono);
  font-size: clamp(4rem, 3rem + 6vw, 8rem);
  font-weight: 700;
  line-height: 1;
}

/* 7. Форма заявки -------------------------------------------------------- */

.form {
  display: grid;
  gap: 1.25rem;
}

.form__row {
  display: grid;
  gap: 1.25rem;
}

.form__legend {
  margin: 0;
  color: var(--c-muted);
  font-size: var(--fs-small);
}

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

.field {
  display: grid;
  gap: 0.5rem;
  align-content: start;
}

.field__label {
  font-size: 0.9375rem;
  font-weight: 500;
}

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

.field__optional {
  color: var(--c-muted);
  font-weight: 400;
}

.field__control {
  width: 100%;
  min-height: 52px;
  padding: 0.875rem 1rem;
  border: 1px solid var(--c-line-strong);
  border-radius: var(--radius);
  background: var(--c-bg);
  color: var(--c-text);
  font-size: 1rem; /* 16px — iOS не увеличивает масштаб при фокусе */
  transition: border-color 0.2s, box-shadow 0.2s;
}

.field__control::placeholder {
  color: var(--c-placeholder);
}

.field__control:hover {
  border-color: rgba(242, 246, 248, 0.32);
}

.field__control:focus {
  outline: none;
  border-color: var(--c-accent);
  box-shadow: 0 0 0 3px rgba(111, 245, 248, 0.25);
}

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

textarea.field__control {
  min-height: 140px;
  resize: vertical;
}

select.field__control {
  padding-right: 2.75rem;
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23A7B0A8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-position: right 1rem center;
  background-repeat: no-repeat;
  background-size: 1.125rem;
  cursor: pointer;
}

select.field__control option {
  background: var(--c-surface);
  color: var(--c-text);
}

.field__hint {
  color: var(--c-muted);
  font-size: var(--fs-small);
}

.field__error {
  color: var(--c-danger);
  font-size: var(--fs-small);
}

.field__error:empty {
  display: none;
}

.checkbox {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.75rem;
  align-items: start;
  color: var(--c-muted);
  font-size: 0.9375rem;
  cursor: pointer;
}

.checkbox input {
  width: 1.25rem;
  height: 1.25rem;
  margin: 0.15rem 0 0;
  accent-color: var(--c-accent);
  cursor: pointer;
}

.form__status {
  padding: 1rem 1.25rem;
  border: 1px solid var(--c-line-strong);
  border-radius: var(--radius);
  font-size: 0.9375rem;
}

.form__status:empty {
  display: none;
}

.form__status--success {
  border-color: rgba(111, 245, 248, 0.5);
  background: var(--c-accent-soft);
}

.form__status--error {
  border-color: rgba(255, 138, 122, 0.5);
  background: rgba(255, 138, 122, 0.08);
}

.form__status--demo {
  border-color: rgba(242, 193, 78, 0.45);
  background: rgba(242, 193, 78, 0.07);
}

/* Без JavaScript форму отправить некуда — показываем только контакты и предупреждение */
.no-js [data-request-form] {
  display: none;
}

/* Скрытое поле-ловушка для спам-ботов */
.form__trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* 8. Утилиты и reduced motion -------------------------------------------- */

[hidden] {
  display: none !important;
}

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

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

.mt-lg {
  margin-top: 2.5rem;
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

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

/* Иконки связи в шапке ------------------------------------------------------ */
.header-social {
  display: flex;
  gap: 0.4rem;
  list-style: none;
}

.header-social__link {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--c-line-strong);
  border-radius: 50%;
  color: var(--c-accent);
  transition: border-color 0.2s, background-color 0.2s;
}

.header-social__link .icon {
  width: 1.15rem;
  height: 1.15rem;
}

.header-social__link:hover {
  border-color: var(--c-accent);
  background: var(--c-accent-soft);
  color: var(--c-accent);
}

/* На средних экранах номер прячем: телефон есть среди иконок */
@media (min-width: 900px) and (max-width: 1199.98px) {
  .header-phone {
    display: none;
  }
}

/* Полоса связи над шапкой — только на телефонах и планшетах */
.contact-bar {
  border-bottom: 1px solid var(--c-line);
  background: var(--c-bg-2);
}

.contact-bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 48px;
}

.contact-bar__hours {
  color: var(--c-muted);
  font-size: var(--fs-small);
  white-space: nowrap;
}

.header-social--bar .header-social__link {
  width: 36px;
  height: 36px;
}

@media (min-width: 900px) {
  .contact-bar {
    display: none;
  }
}

/* Ключевые факты ------------------------------------------------------------ */
.highlights {
  display: grid;
  gap: 1rem;
  list-style: none;
}

.highlight {
  display: grid;
  gap: 0.25rem;
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--c-line);
  border-left: 3px solid var(--c-accent);
  border-radius: var(--radius);
  background: var(--c-surface);
}

.highlight__title {
  color: var(--c-accent);
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.25rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

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

.section--surface .highlight {
  background: var(--c-bg);
}

/* Услуги: список «Что входит» во всю ширину, в две колонки на широких экранах */
.service-detail__includes {
  margin-top: 2rem;
}

@media (min-width: 768px) {
  .service-detail__includes .check-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 2rem;
  }
}

/* Шапка: пункты меню и кнопка не переносятся; номер телефона — только на широких экранах */
.nav__link,
.site-header__actions .btn {
  white-space: nowrap;
}

.site-header__actions {
  gap: 0.9rem;
}

@media (min-width: 900px) and (max-width: 1439.98px) {
  .header-phone {
    display: none;
  }
}

@media (min-width: 900px) and (max-width: 1199.98px) {
  .site-header__inner {
    gap: 1rem;
  }

  .nav__link {
    padding-inline: 0.55rem;
  }

  .logo__img {
    max-width: 200px;
  }

  .header-social__link {
    width: 34px;
    height: 34px;
  }
}

/* Кнопка звонка в шапке не нужна, если над шапкой есть полоса связи */
.contact-bar ~ .site-header .header-call {
  display: none;
}

/* Галерея фото услуги */
.service-gallery {
  margin-top: 2rem;
}

.service-gallery__more {
  margin-top: 1rem;
}

.service-photos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.service-photos__item {
  margin: 0;
  padding: 0;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  background: var(--c-surface);
}

/* Фото-кнопка открывает просмотр */
button.service-photos__item {
  cursor: zoom-in;
  transition: border-color 0.2s;
}

button.service-photos__item:hover {
  border-color: var(--c-accent);
}

.service-photos__item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s var(--ease);
}

button.service-photos__item:hover img {
  transform: scale(1.04);
}

.service-photos__item--empty {
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 0.5rem;
  border: 1px dashed var(--c-line-strong);
  color: var(--c-muted);
  font-size: var(--fs-small);
}

.service-photos__item--empty .icon {
  width: 2rem;
  height: 2rem;
  color: var(--c-accent);
  opacity: 0.7;
}

@media (max-width: 479.98px) {
  .service-photos {
    gap: 0.6rem;
  }
}

/* Первый экран без изображения справа: текст в одну колонку, ограниченной ширины */
@media (min-width: 960px) {
  .hero__inner--single {
    grid-template-columns: minmax(0, 1fr);
  }
}

.hero__inner--single > div {
  max-width: 52rem;
}

.hero__inner--single .hero__lead {
  max-width: 44rem;
}

/* Карточка связи на первом экране */
.contact-card {
  display: grid;
  gap: 1rem;
  padding: clamp(1.25rem, 1rem + 1.5vw, 2rem);
  border: 1px solid var(--c-line-strong);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 100% 0%, rgba(111, 245, 248, 0.12), transparent 55%),
    var(--c-surface);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

.contact-card__title {
  margin: 0;
  font-size: clamp(1.375rem, 1.2rem + 0.8vw, 1.75rem);
}

.contact-card__text {
  margin: -0.25rem 0 0.25rem;
  color: var(--c-muted);
}

.contact-card__call {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 1.1rem;
  border-radius: var(--radius);
  background: var(--c-accent);
  color: var(--c-accent-ink);
  text-decoration: none;
  transition: background-color 0.2s;
}

.contact-card__call:hover {
  background: var(--c-accent-2);
  color: var(--c-accent-ink);
}

.contact-card__call-icon {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: rgba(10, 26, 28, 0.12);
}

.contact-card__call-label {
  display: block;
  font-size: var(--fs-small);
  font-weight: 600;
  opacity: 0.75;
}

.contact-card__call-number {
  display: block;
  font-size: clamp(1.125rem, 1rem + 0.5vw, 1.375rem);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.contact-card__messengers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(7.5rem, 1fr));
  gap: 0.5rem;
  list-style: none;
}

.contact-card__messenger {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--c-line-strong);
  border-radius: var(--radius);
  color: var(--c-text);
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.2s, background-color 0.2s;
}

.contact-card__messenger .icon {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--c-accent);
}

.contact-card__messenger:hover {
  border-color: var(--c-accent);
  background: var(--c-accent-soft);
  color: var(--c-text);
}

.contact-card .btn .icon {
  width: 1.125rem;
  height: 1.125rem;
}

.contact-card__hours {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 0;
  color: var(--c-muted);
  font-size: var(--fs-small);
  text-align: center;
}

.contact-card__hours .icon {
  width: 1rem;
  height: 1rem;
  color: var(--c-accent);
}

/* Мессенджеры в карточке связи — всегда в один ряд */
.contact-card__messengers {
  grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
  grid-auto-flow: column;
}

@media (max-width: 479.98px) {
  .contact-card__messenger {
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.6rem 0.25rem;
    font-size: var(--fs-small);
  }
}

/* Контакты без формы: карточка связи справа, на широких экранах прилипает при прокрутке */
@media (min-width: 1024px) {
  .contact-layout__card {
    position: sticky;
    top: calc(var(--header-h) + 1.5rem);
  }
}

/* На телефонах карточка со звонком и мессенджерами — первой на странице контактов */
@media (max-width: 1023.98px) {
  .contact-layout__card {
    order: -1;
  }
}

/* «Что перевозим»: сетка карточек с иконками */
.cargo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr));
  gap: 1rem;
  list-style: none;
}

.cargo {
  display: grid;
  gap: 0.35rem;
  align-content: start;
  padding: 1.5rem;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  background: var(--c-bg);
  transition: border-color 0.2s;
}

.cargo:hover {
  border-color: rgba(111, 245, 248, 0.45);
}

.cargo__icon {
  width: 2.25rem;
  height: 2.25rem;
  margin-bottom: 0.75rem;
  color: var(--c-accent);
}

.cargo__title {
  font-size: 1.125rem;
  font-weight: 700;
}

.cargo__text {
  color: var(--c-muted);
  font-size: 0.9375rem;
}

/* Ровные ряды: 2 колонки на планшетах, 3 на широких экранах */
.cargo-grid {
  grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 560px) {
  .cargo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 960px) {
  .cargo-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Полноэкранный просмотр фото (лайтбокс) */
body.lightbox-open {
  overflow: hidden;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.5rem;
  padding: clamp(0.75rem, 0.5rem + 2vw, 2rem);
  background: rgba(8, 11, 13, 0.92);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.lightbox__figure {
  grid-column: 2;
  display: grid;
  gap: 0.75rem;
  justify-items: center;
  margin: 0;
  min-width: 0;
}

.lightbox__img {
  max-width: 100%;
  max-height: 82vh;
  border-radius: var(--radius);
  object-fit: contain;
}


.lightbox__nav {
  display: grid;
  place-items: center;
  width: clamp(2.75rem, 2rem + 2vw, 3.5rem);
  height: clamp(2.75rem, 2rem + 2vw, 3.5rem);
  border: 1px solid var(--c-line-strong);
  border-radius: 50%;
  background: rgba(16, 19, 16, 0.7);
  color: var(--c-text);
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s;
}

.lightbox__nav:hover {
  border-color: var(--c-accent);
  background: var(--c-surface);
}

.lightbox__nav--prev {
  grid-column: 1;
}

.lightbox__nav--next {
  grid-column: 3;
}

.lightbox__close {
  position: absolute;
  top: clamp(0.75rem, 0.5rem + 1vw, 1.5rem);
  right: clamp(0.75rem, 0.5rem + 1vw, 1.5rem);
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--c-line-strong);
  border-radius: 50%;
  background: rgba(16, 19, 16, 0.7);
  color: var(--c-text);
  cursor: pointer;
}

.lightbox__close:hover {
  border-color: var(--c-accent);
}

.lightbox__counter {
  position: absolute;
  bottom: clamp(0.5rem, 0.25rem + 1vw, 1.25rem);
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  color: var(--c-muted);
  font-size: var(--fs-small);
  font-variant-numeric: tabular-nums;
}

/* На узких экранах стрелки — снизу, чтобы не налезали на фото */
@media (max-width: 599.98px) {
  .lightbox {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr auto;
  }

  .lightbox__figure {
    grid-column: 1;
    grid-row: 1;
    align-self: center;
  }

  .lightbox__nav {
    grid-row: 2;
  }

  .lightbox__nav--prev {
    grid-column: 1;
    justify-self: start;
  }

  .lightbox__nav--next {
    grid-column: 1;
    justify-self: end;
  }

  .lightbox__counter {
    bottom: auto;
    top: clamp(0.75rem, 0.5rem + 1vw, 1.5rem);
    left: clamp(0.75rem, 0.5rem + 1vw, 1.5rem);
    transform: none;
  }
}

/* ЭПД: значения-коды (ИНН/КПП, ФНС ID) в нумерованном списке */
.principles__text--code {
  font-family: var(--font-mono, ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace);
  letter-spacing: 0.02em;
  word-break: break-word;
  overflow-wrap: anywhere;
}
