:root {
  --accent-1: #DF2A35;
  --accent-1-hover: #A92028;
  --accent-2: #FDCA41;
  --accent-2-hover: #E6B83B;
  --dark: #080708;
  --dark-2: #141413;
  --dark-3: #1E1E1D;
  --light: #FFFFFF;
  --additional: #3772FF;
  --white: #FFFFFF;
  --success: #2E9E5B;
  --text-secondary: #4A4B48;
  --text-muted: #6E6F6C;
  --text-on-dark-muted: #A9AAA7;
  --border: #DCDDDA;
  --border-strong: #C9CAC7;
  --field-bg: #F2F2F0;
  /* Подсветка пункта под курсором в выпадающих меню. Отдельный токен, а не
     --light: тот стал белым, и на белом меню подсветка была не видна. */
  --hover-tint: #ECEDEA;
  /* Montserrat — заголовки, кнопки, цифры и технические подписи капсом.
     Open Sans — весь читаемый текст. */
  --font-heading: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Open Sans', 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
  --container: 1560px;
  --header-h: 62px;
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 26px;
  --radius-xl: 26px;
  --radius-pill: 999px;
  --gap-tile: 14px;
  --section-gap: clamp(56px, 8vw, 96px);
  --shadow-sm: none;
  --shadow-md: none;
  --shadow-lg: 0 18px 50px rgba(8, 7, 8, 0.12);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--dark);
  background: var(--light);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.page-body { flex: 1 0 auto; display: flex; flex-direction: column; min-width: 0; }
/* min-width:0 обязателен: иначе flex-элемент не сжимается ниже min-content своего
   содержимого, и бегущие строки (width:max-content) растягивают страницу вбок */
.page-body > * { flex: none; min-width: 0; }
body > * { min-width: 0; }

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-1); text-decoration: none; transition: color 0.15s; }
a:hover { color: var(--dark); text-decoration: none; }

.mono {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

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

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.035em;
}

h1, h2, h3, h4 { text-align: left; }

h1 { font-size: clamp(36px, 3.9vw, 64px); }
h2 { font-size: clamp(34px, 3.6vw, 54px); margin-bottom: 1.5rem; line-height: 1; letter-spacing: -0.04em; }
h3 { font-size: clamp(19px, 2vw, 24px); margin-bottom: 1rem; line-height: 1.15; letter-spacing: -0.02em; }
h4 { font-size: 1.125rem; margin-bottom: 0.5rem; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(16px, 3vw, 32px);
}

.section { padding: clamp(24px, 4vw, 48px) 0; }
.section--light { background: var(--light); }
.section--dark { background: var(--dark); color: var(--light); }
.section--dark a:not(.btn) { color: var(--accent-2); }
.section--dark .btn--secondary {
  color: var(--dark) !important;
  background: var(--accent-2);
  border-color: var(--accent-2);
}
.section--dark .btn--secondary:hover {
  color: var(--dark) !important;
  background: var(--accent-2-hover);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  padding: 17px 30px;
  border-radius: var(--radius-pill);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background-color 150ms var(--ease-out), border-color 150ms var(--ease-out), color 150ms var(--ease-out), transform 150ms var(--ease-out);
  text-decoration: none;
  white-space: nowrap;
}

.btn:active { transform: scale(0.97); }

.btn--primary { background: var(--accent-1); color: var(--white); border-color: var(--accent-1); }
.btn--primary:hover { background: var(--dark); border-color: var(--dark); color: var(--white); text-decoration: none; }
.btn--secondary { background: var(--dark); color: var(--light); border-color: var(--dark); }
.btn--secondary:hover { background: var(--accent-1); border-color: var(--accent-1); text-decoration: none; color: var(--white); }
.btn--outline { background: transparent; color: var(--dark); border-color: var(--dark); box-shadow: inset 0 0 0 1.5px var(--dark); border-color: transparent; }
.btn--outline:hover { background: var(--dark); color: var(--light); text-decoration: none; }
.btn--outline-light { background: transparent; color: var(--light); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,0.7); border-color: transparent; }
.btn--outline-light:hover { background: var(--white); color: var(--dark); text-decoration: none; }
.btn--sm { padding: 12px 22px; font-size: 14px; }
.btn--hero-primary { background: var(--accent-2); color: var(--dark); border-color: var(--accent-2); }
.btn--hero-primary:hover { background: var(--accent-2-hover); border-color: var(--accent-2-hover); color: var(--dark); text-decoration: none; }
.btn--lg { padding: 18px 32px; }

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header__contacts { display: flex; align-items: center; gap: 18px; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; color: var(--text-secondary); white-space: nowrap; }
.header__hours { display: flex; align-items: center; gap: 8px; }
.header__dot { width: 7px; height: 7px; border-radius: var(--radius-pill); background: var(--accent-1); flex-shrink: 0; animation: qp-blink 1.6s steps(1) infinite; }
.header__phone { color: var(--dark); }
.header__phone:hover { color: var(--accent-1); }

@keyframes qp-blink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }

.header__main { padding: 14px 0; }

.header__main .container {
  display: flex;
  align-items: center;
  gap: 32px;
}

.logo {
  display: inline-block;
  text-decoration: none;
  flex-shrink: 0;
}

.logo:hover { text-decoration: none; }

.logo__img {
  display: block;
  height: 24px;
  width: auto;
}

.logo--footer .logo__img {
  height: 22px;
  filter: invert(1);
}

.logo__tagline { display: none; }

.header__actions {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-left: auto;
  min-width: 0;
}

.nav {
  display: flex;
  gap: 4px;
  align-items: center;
  flex-wrap: nowrap;
  min-width: 0;
  font-family: var(--font-mono);
}

.nav__link {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
  padding: 8px 9px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  white-space: nowrap;
}

.nav__link:hover, .nav__link--active { background: transparent; text-decoration: none; color: var(--dark); font-weight: 600; }

.nav__dropdown { position: relative; }
.nav__dropdown-menu {
  /* Закрывается не мгновенно: пауза даёт увести курсор на пункты по диагонали */
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.16s var(--ease-out) 0.25s, visibility 0s linear 0.41s;
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 8px;
  min-width: 280px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 8px;
  z-index: 50;
}
.nav__dropdown-menu::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: -14px;
  height: 14px;
}

.nav__dropdown:hover .nav__dropdown-menu,
.nav__dropdown:focus-within .nav__dropdown-menu {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.16s var(--ease-out) 0s, visibility 0s linear 0s;
}

.nav__dropdown-menu a {
  display: block;
  padding: 10px 14px;
  color: var(--dark);
  font-size: 13px;
  border-radius: var(--radius-md);
}

.nav__dropdown-menu a:hover { background: var(--hover-tint); text-decoration: none; }

.nav-group { padding: 6px 0; }
.nav-group + .nav-group { border-top: 1px solid var(--border); }
.nav-group__title {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  padding: 8px 14px 4px;
}
.nav-subgroup {
  margin: 4px 0 4px 14px;
  padding-left: 10px;
  border-left: 2px solid var(--accent-2);
}
.nav-subgroup a { font-size: 12px; }

/* Services mega-menu: flat list + 3rd-level flyout on hover */
.nav__dropdown-menu--mega {
  min-width: 300px;
  padding: 8px;
  overflow: visible;
}
.mega-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.mega-nav__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  color: var(--dark);
  font-size: 13px;
  border-radius: var(--radius-md);
  text-decoration: none;
}
.mega-nav__link:hover {
  background: var(--hover-tint);
  text-decoration: none;
  color: var(--dark);
}
.mega-nav__item--has-children {
  position: relative;
}
.mega-nav__link--parent .mega-nav__chevron {
  opacity: 0.55;
  font-size: 16px;
  line-height: 1;
}
.mega-nav__item--has-children:hover > .mega-nav__link--parent {
  background: var(--hover-tint);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.mega-nav__submenu {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.16s var(--ease-out) 0.25s, visibility 0s linear 0.41s;
  position: absolute;
  left: calc(100% + 4px);
  top: 0;
  min-width: 280px;
  padding: 8px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  z-index: 60;
}
.mega-nav__submenu::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: -10px;
  width: 10px;
}
.mega-nav__item--has-children:hover > .mega-nav__submenu,
.mega-nav__item--has-children:focus-within > .mega-nav__submenu {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.16s var(--ease-out) 0s, visibility 0s linear 0s;
}
.mega-nav__submenu a {
  display: block;
  padding: 10px 14px;
  color: var(--dark);
  font-size: 13px;
  border-radius: var(--radius-md);
  text-decoration: none;
}
.mega-nav__submenu a:hover {
  background: var(--hover-tint);
  text-decoration: none;
}

.header-search {
  position: relative;
  min-width: 0;
}

.header-search--inline {
  width: 180px;
  flex-shrink: 0;
}

.header-search__input {
  width: 100%;
  font-family: var(--font-mono);
  font-size: 12px;
  height: 36px;
  padding: 9px 14px;
  border: none;
  border-radius: var(--radius-pill);
  background: var(--field-bg);
  box-shadow: inset 0 0 0 1px var(--border);
  color: var(--dark);
}

.header-search__input::placeholder { color: var(--text-muted); }

.header-search__results {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: min(560px, calc(100vw - 32px));
  display: grid;
  gap: 10px;
  max-height: min(520px, calc(100vh - 160px));
  overflow-y: auto;
  padding: 12px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  z-index: 80;
}

.header-search__results[hidden] { display: none; }

.search-result {
  display: grid;
  gap: 4px;
  padding: 12px;
  color: var(--dark);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--white);
}

.search-result:hover { color: var(--dark); text-decoration: none; border-color: var(--additional); }
.search-result span { font-size: 10px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--additional); }
.search-result strong { font-size: 13px; line-height: 1.3; }
.search-result small { color: var(--text-secondary); line-height: 1.4; }
.header-search__hint { color: var(--text-secondary); font-size: 13px; margin: 0; }

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  /* комфортная тач-цель: 44×44 по рекомендациям для мобильных */
  width: 44px;
  height: 44px;
  padding: 0;
  margin-right: -8px;
}

.burger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--dark);
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  position: fixed;
  inset: 0;
  background: var(--dark);
  z-index: 200;
  padding: 24px;
  overflow-y: auto;
  transform: translateX(100%);
  opacity: 0;
  visibility: hidden;
  transition: transform 280ms var(--ease-drawer), opacity 220ms var(--ease-out), visibility 0s linear 280ms;
  pointer-events: none;
}

.mobile-nav.open {
  transform: translateX(0);
  opacity: 1;
  visibility: visible;
  transition: transform 280ms var(--ease-drawer), opacity 220ms var(--ease-out), visibility 0s;
  pointer-events: auto;
}

@media (prefers-reduced-motion: reduce) {
  .mobile-nav {
    transition: opacity 200ms ease;
    transform: none;
  }
}

.mobile-nav__close {
  align-self: flex-end;
  background: none;
  border: none;
  color: var(--light);
  font-size: 28px;
  cursor: pointer;
  margin-bottom: 24px;
}

.mobile-nav a {
  color: var(--light);
  font-size: 18px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(231,232,230,0.15);
  text-decoration: none;
}

.mobile-nav__cta { margin-top: auto; display: flex; flex-direction: column; gap: 12px; padding-top: 24px; }
.mobile-nav__label {
  color: var(--accent-2);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 12px;
}
.mobile-nav a.mobile-nav__sub { padding-left: 16px; font-size: 15px; opacity: 0.86; }

/* Hero */
.hero {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  color: var(--light);
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.hero__bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(8,7,8,0.85) 0%, rgba(8,7,8,0.55) 100%);
}

.hero--light { color: var(--dark); background: var(--white); }
.hero--light .hero__overlay { display: none; }
.hero--light .hero__lead { color: var(--text-secondary); opacity: 1; }

.hero__content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--container);
  margin-left: auto;
  margin-right: auto;
  padding-top: 80px;
  padding-bottom: 80px;
  text-align: left;
}

.hero__content h1 {
  margin-bottom: 1rem;
  max-width: 100%;
  text-align: left;
}
.hero__lead {
  font-size: 18px;
  opacity: 0.9;
  margin-bottom: 2rem;
  max-width: 560px;
  text-align: left;
}

.hero__mode-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 280px;
  padding: 14px 4px;
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 600;
  color: var(--dark);
  text-decoration: none;
}

.hero__mode-btn:hover { text-decoration: none; }
.hero__mode-btn__text { white-space: nowrap; }

.hero__rotator {
  display: inline-block;
  text-align: left;
  color: var(--accent-1);
  transition: opacity 0.12s ease, transform 0.12s ease;
}

.hero__rotator.is-swapping {
  opacity: 0;
  transform: translateY(8px);
}

.hero__mode-btn__arrow {
  transition: transform 0.2s ease;
}

.hero__mode-btn:hover .hero__mode-btn__arrow {
  transform: translateX(3px);
}

@media (prefers-reduced-motion: reduce) {
  .hero__rotator, .hero__mode-btn__arrow { transition: none; }
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 2rem;
  justify-content: flex-start;
}

.hero--service { min-height: 480px; }
.hero--service-dark { background: var(--dark); }
.hero--service-dark .hero__content { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; padding-top: 72px; padding-bottom: 64px; }
.hero--service-dark .hero__content h1 { margin: 0; color: var(--white); }
.hero--service-dark .hero__lead { margin: 0; opacity: 1; color: rgba(255,255,255,0.78); }
.hero--service-dark .hero__actions { margin: 0; }

/* Home hero */
/* Hero главной — две карточки: контент слева, контейнеры справа */
.hero-home {
  background: var(--light);
  padding: clamp(16px, 3vw, 32px) clamp(16px, 3vw, 32px) 0;
}
/* Одна рамка на весь блок: текст и контейнеры внутри общей окантовки,
   у изображения нет ни своего фона, ни своих скруглений. */
.hero-home__grid {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(440px, 100%), 1fr));
  align-items: stretch;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.hero-home__card {
  background: transparent;
  padding: clamp(28px, 3.5vw, 56px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
}
.hero-home__eyebrow { color: var(--text-muted); }

.hero-home__heading { display: flex; flex-direction: column; gap: 0; }
.hero-home__word-row { height: clamp(38px, 3.9vw, 64px); overflow: hidden; display: flex; align-items: center; }
.hero-home__word {
  font-size: clamp(38px, 3.9vw, 64px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  font-weight: 700;
  color: var(--accent-1);
  transition: opacity 0.28s ease, transform 0.28s ease;
  display: inline-block;
}
.hero-home__word.is-swapping { opacity: 0; transform: translateY(8px); }

.hero-home__title {
  margin: 0;
  font-size: clamp(38px, 3.9vw, 64px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  font-weight: 700;
  color: var(--dark);
}

.hero-home__lead {
  margin: 0;
  font-size: 17px;
  line-height: 1.5;
  color: var(--text-secondary);
  max-width: 42ch;
  font-weight: 500;
}

.hero-home__actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* Счётчики — внутри левой карточки, под разделителем */
.hero-home__stats {
  margin-top: auto;
  padding-top: clamp(24px, 3vw, 36px);
  border-top: 1px solid var(--border);
  width: 100%;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px 16px;
}
.hero-home__stat { display: flex; flex-direction: column; align-items: flex-start; }
.hero-home__stat-value { display: flex; align-items: baseline; gap: 2px; }
.hero-home__stat-num {
  font-size: clamp(30px, 3vw, 44px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--dark);
}
/* Суффикс — это «+» у числа, поэтому набирается тем же кеглем, а не мелким */
.hero-home__stat-suffix {
  font-size: clamp(30px, 3vw, 44px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--dark);
}
.hero-home__stat-rule {
  display: block;
  width: 28px;
  height: 4px;
  border-radius: var(--radius-pill);
  background: var(--accent-2);
  margin: 12px 0;
}
.hero-home__stat-label { color: var(--text-muted); font-size: 11px; line-height: 1.45; }

/* Правая карточка с контейнерами */
.hero-home__visual {
  position: relative;
  background: transparent;
  overflow: hidden;
  min-height: clamp(320px, 42vw, 560px);
}
.hero-home__boxes {
  /* object-fit кадрирует сам PNG: его левая половина прозрачная и иначе
     съедала бы всю карточку пустотой */
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 88% 65%;
  pointer-events: none;
}

@media (max-width: 900px) {
  .hero-home__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .hero-home__visual { min-height: 240px; }
  .hero-home__boxes { object-position: 86% 70%; }
}

/* Home services bento */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 186px;
  grid-auto-flow: dense;
  gap: var(--gap-tile);
  margin-top: 28px;
}

.bento-tile {
  position: relative;
  border-radius: var(--radius-lg);
  border: 1px solid var(--dark);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  transition: transform 0.35s var(--ease-out);
}
.bento-tile:hover { transform: translateY(-5px); text-decoration: none; }
.bento-tile__media { position: relative; flex: 1 1 auto; min-height: 0; overflow: hidden; }
.bento-tile__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bento-tile__body {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 9px;
  flex: 0 0 auto;
  background: #FFFFFF;
  color: #080708;
  padding: 18px 22px;
}
.bento-tile__body .mono { color: inherit; font-size: 11px; }
.bento-tile__more {
  position: absolute;
  right: 20px;
  top: 20px;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  font-weight: 700;
  line-height: 1;
  z-index: 3;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.bento-tile:hover .bento-tile__more,
.bento-tile:focus-visible .bento-tile__more { opacity: 1; transform: translateY(0); }
@media (hover: none) {
  .bento-tile__more { opacity: 1; transform: none; }
}

/* Bento reveal-on-scroll (progressive enhancement: only active once JS confirms it can drive the reveal) */
.js-reveal-ready [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out); }
[data-reveal].is-revealed { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .js-reveal-ready [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* Breadcrumbs */
.breadcrumbs {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 400;
  color: var(--text-secondary);
}
.breadcrumbs.container { padding-top: 16px; padding-bottom: 16px; }
.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}
.breadcrumbs li { display: flex; align-items: center; min-width: 0; }
.breadcrumbs li:not(:first-child)::before {
  content: '→';
  margin: 0 8px;
  opacity: 0.6;
}
.breadcrumbs a { color: inherit; text-decoration: none; opacity: 0.75; transition: opacity 0.15s ease; }
.breadcrumbs a:hover { opacity: 1; text-decoration: none; }
.breadcrumbs span[aria-current] { opacity: 0.6; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 60vw; }

/* Breadcrumbs inside a dark/photographic hero */
.hero__content > .breadcrumbs {
  color: #FFFFFF;
  margin-bottom: 6px;
  max-width: none;
  padding: 0;
  margin-left: 0;
  margin-right: 0;
}
.hero__content > .breadcrumbs a { opacity: 0.65; }
.hero__content > .breadcrumbs a:hover { opacity: 1; }
.hero__content > .breadcrumbs span[aria-current] { opacity: 0.5; }

@media (max-width: 640px) {
  .breadcrumbs { font-size: 12px; }
  .breadcrumbs li:not(:first-child)::before { margin: 0 6px; }
  .breadcrumbs span[aria-current] { max-width: 40vw; }
}

/* Cards grid */
.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: none;
  overflow: hidden;
  transition: transform 0.35s var(--ease-out);
}

.card:hover { transform: translateY(-5px); }

.card__img { aspect-ratio: 16/10; object-fit: cover; width: 100%; }
.card__body { padding: 24px; }
.card__body p { font-size: 14px; color: var(--text-secondary); margin-bottom: 16px; }
.card__body h3 { font-size: 1.125rem; margin-bottom: 0.5rem; }
.card--featured { border-color: var(--accent-1); border-width: 2px; }
.card--featured .card__badge {
  display: inline-block;
  background: var(--accent-1);
  color: var(--white);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Feature block */
.feature-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.feature-split__img { border-radius: var(--radius-xl); overflow: hidden; }
.feature-split__img img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }

/* Lists */
.check-list { list-style: none; }
.check-list li {
  padding: 8px 0 8px 28px;
  position: relative;
  font-size: 15px;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  width: 8px;
  height: 8px;
  background: var(--accent-1);
  border-radius: 2px;
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 24px;
}

.step { text-align: center; }
.step__num {
  width: 40px;
  height: 40px;
  background: var(--accent-1);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  margin: 0 auto 12px;
  font-size: 14px;
}

.step__title { font-size: 13px; font-weight: 600; }

/* Callout / quote block */
.callout {
  background: var(--light);
  border-left: 4px solid var(--accent-1);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin: 24px 0 0;
}

.callout__title { font-weight: 600; margin-bottom: 4px; }
.callout .check-list { margin: 0; }
.callout .check-list li { padding-top: 6px; padding-bottom: 6px; }

/* Notes / info cards */
.notes-grid .card { border-top: 3px solid var(--additional); }

/* Process steps (numbered, with description) */
.process-steps {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.process-step { display: flex; gap: 16px; align-items: flex-start; }
.process-step__num {
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--dark);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 14px;
}

.process-step__body h4 { font-size: 1rem; margin-bottom: 4px; }
.process-step__body p { font-size: 14px; color: var(--text-secondary); }

/* Flow chain — schematic delivery route */
.flow-chain {
  background: var(--dark);
  border-radius: var(--radius-xl);
  padding: clamp(20px, 4vw, 40px);
  margin-top: 24px;
}

.flow-chain__row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }

.flow-chain__node {
  background: rgba(55, 114, 255, 0.15);
  border: 1px solid var(--additional);
  color: var(--light);
  padding: 10px 16px;
  border-radius: var(--radius-md);
  font-size: 13px;
  white-space: nowrap;
}

.flow-chain__node:first-child { background: rgba(253, 202, 65, 0.15); border-color: var(--accent-2); color: var(--accent-2); }
.flow-chain__node:last-child { background: rgba(46, 158, 91, 0.15); border-color: var(--success); color: var(--success); }
.flow-chain__arrow { color: var(--additional); font-size: 16px; flex: none; }

/* Related-service cards (with photo placeholder) */
.related-card { text-decoration: none; color: inherit; display: flex; flex-direction: column; height: 100%; }
.related-card .card__body { flex: 1; display: flex; flex-direction: column; }
.related-card .card__body p { flex: 1; }
.related-card .btn { margin-top: 12px; align-self: flex-start; }

/* Data table */
.table-wrap { overflow-x: auto; margin-top: 24px; }
table.data-table { width: 100%; border-collapse: collapse; font-size: 14px; }
table.data-table th,
table.data-table td { border: 1px solid var(--border); padding: 10px 14px; text-align: left; }
table.data-table th { background: var(--light); font-weight: 600; }
table.data-table tr:nth-child(even) td { background: rgba(8, 7, 8, 0.02); }

/* Route map */
.route-map {
  background: var(--dark);
  border-radius: var(--radius-xl);
  padding: 40px;
  color: var(--light);
  position: relative;
  overflow: hidden;
}

.route-map__line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin: 32px 0;
}

.route-map__city {
  background: rgba(55, 114, 255, 0.2);
  border: 1px solid var(--additional);
  padding: 8px 14px;
  border-radius: var(--radius-md);
  font-size: 13px;
}

.route-map__city--hub {
  background: rgba(253, 202, 65, 0.2);
  border-color: var(--accent-2);
  color: var(--accent-2);
}

.route-map__arrow { color: var(--additional); font-size: 20px; }

.route-map__cities-china {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.route-map__cities-china span {
  font-size: 11px;
  padding: 4px 8px;
  background: rgba(255,255,255,0.08);
  border-radius: 4px;
}

/* Shipment examples */
.price-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
}

.price-card__label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--accent-1); margin-bottom: 4px; font-weight: 600; }
.price-card__value { font-family: var(--font-heading); font-size: 1.25rem; margin-bottom: 16px; line-height: 1.25; }
.price-card__row { display: flex; justify-content: space-between; gap: 16px; font-size: 13px; padding: 6px 0; border-bottom: 1px solid var(--border); }
.price-card__row span:first-child { color: var(--text-secondary); flex-shrink: 0; }
.price-card__row span:last-child { text-align: right; }
.price-card__row:last-of-type { border-bottom: 1px solid var(--border); }
.shipment-card__fit {
  margin-top: 14px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--text-secondary);
}

/* FAQ */
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item__q {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 20px 32px 20px 0;
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  position: relative;
  color: var(--dark);
}

.faq-item__q::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent-1);
  font-size: 24px;
  font-weight: 400;
}

.faq-item.open .faq-item__q::after { content: "−"; }

.faq-item__a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 220ms var(--ease-out);
  font-size: 15px;
  color: var(--text-secondary);
}

.faq-item.open .faq-item__a { /* max-height set inline by JS to the measured content height */ }

.faq-item__a-inner {
  padding-bottom: 20px;
}

.section--dark .faq-item { border-bottom-color: rgba(231, 232, 230, 0.2); }
.section--dark .faq-item__q { color: var(--light); }
.section--dark .faq-item__a { color: rgba(231, 232, 230, 0.75); }

/* Form */
.form { display: grid; gap: 16px; min-width: 0; }
.form > * { min-width: 0; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form__group { display: flex; flex-direction: column; gap: 8px; }
.form__label { font-family: var(--font-mono); font-size: 12px; color: var(--text-muted); }
.form__input, .form__textarea {
  font-family: var(--font-heading);
  font-size: 16px;
  padding: 16px 18px;
  border: none;
  box-shadow: inset 0 0 0 1px var(--border);
  border-radius: var(--radius-sm);
  background: var(--field-bg);
  color: var(--dark);
  transition: box-shadow 0.15s;
}

.form__input:focus, .form__textarea:focus {
  outline: none;
  background: var(--white);
  box-shadow: inset 0 0 0 2px var(--accent-1);
}

.form__input[aria-invalid="true"] {
  box-shadow: inset 0 0 0 2px var(--accent-1);
}

.form__error {
  min-height: 16px;
  color: var(--accent-1);
  font-size: 12px;
  line-height: 1.35;
}

.form__textarea { min-height: 120px; resize: vertical; }

.cta-section {
  background: var(--dark);
  color: var(--light);
  border-radius: var(--radius-xl);
  padding: clamp(32px, 5vw, 64px);
}

.cta-section .form__input,
.cta-section .form__textarea {
  background: rgba(255,255,255,0.05);
  border-color: rgba(231,232,230,0.2);
  color: var(--light);
}

.cta-section .form__label { color: var(--light); }

.cta-section__form { max-width: 640px; }
.form__row--stacked { grid-template-columns: 1fr; }

.consult-split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 40px;
  align-items: stretch;
  margin-top: 28px;
}

.consult-split__img {
  width: 100%;
  height: 100%;
  min-height: 380px;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

.consult-split__form {
  background: var(--dark);
  color: var(--light);
  border-radius: var(--radius-xl);
  padding: clamp(28px, 4vw, 48px);
}

.consult-split__form .form__input,
.consult-split__form .form__textarea {
  background: rgba(255,255,255,0.05);
  border-color: rgba(231,232,230,0.2);
  color: var(--light);
}

.consult-split__form .form__label { color: var(--light); }

@media (max-width: 860px) {
  .consult-split { grid-template-columns: 1fr; }
  .consult-split__img { min-height: 220px; }
}

/* Process steps */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.process-card {
  position: relative;
  padding: 24px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--white);
  transition: background 0.2s, color 0.2s;
}

.process-card__num {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--accent-1);
  margin-bottom: 12px;
  line-height: 1;
  transition: color 0.2s;
}

.process-card__title { font-size: 1rem; margin-bottom: 8px; }
.process-card__desc { font-size: 13px; color: var(--text-secondary); line-height: 1.5; transition: color 0.2s; }

.process-card:hover {
  background: var(--dark);
  color: var(--light);
}

.process-card:hover .process-card__num { color: var(--accent-2); }
.process-card:hover .process-card__desc { color: rgba(231, 232, 230, 0.75); }

/* Tear-off tickets */
.tickets-grid { gap: 24px; }

.ticket {
  background: var(--white);
  border: 1px dashed var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.ticket__stub {
  padding: 20px 20px 24px;
  background: var(--dark);
  color: var(--light);
  min-height: 148px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.ticket__method {
  display: inline-block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-2);
  font-weight: 600;
  margin-bottom: 8px;
}

.ticket__title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  line-height: 1.25;
  margin-bottom: 8px;
}

.ticket__route { display: block; font-size: 13px; opacity: 0.75; }

.ticket__perf {
  position: relative;
  height: 0;
  border-top: 2px dashed var(--border);
}

.ticket__perf::before,
.ticket__perf::after {
  content: '';
  position: absolute;
  top: -10px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--white);
}

.ticket__perf::before { left: -10px; }
.ticket__perf::after { right: -10px; }

.ticket__body { padding: 20px; }

.ticket__row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 13px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}

.ticket__row span:first-child { color: var(--text-secondary); }
.ticket__row span:last-child { text-align: right; font-weight: 500; }
.ticket__row--price { margin-top: 6px; padding-top: 12px; border-top: 1px dashed var(--border); }
.ticket__row--price span:first-child { color: var(--text-secondary); }
.ticket__row--price span:last-child { font-family: var(--font-mono); font-size: 18px; font-weight: 600; color: var(--accent-1); }
.ticket__fit { margin-top: 14px; font-size: 13px; color: var(--text-secondary); line-height: 1.5; }

/* Cargo accordion */
.cargo-accordion {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
  margin-top: 32px;
}

.cargo-accordion__item {
  border-bottom: 1px solid var(--border);
}

.cargo-accordion__head {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 18px 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-mono);
}

.cargo-accordion__num {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.cargo-accordion__title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  flex: 1;
}

.cargo-accordion__plus {
  position: relative;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.cargo-accordion__plus::before,
.cargo-accordion__plus::after {
  content: '';
  position: absolute;
  background: var(--dark);
  transition: transform 0.2s;
}

.cargo-accordion__plus::before { top: 8px; left: 0; width: 18px; height: 2px; }
.cargo-accordion__plus::after { top: 0; left: 8px; width: 2px; height: 18px; }

.cargo-accordion__item.is-active .cargo-accordion__plus::after { transform: rotate(90deg); opacity: 0; }
.cargo-accordion__item.is-active .cargo-accordion__title { color: var(--accent-1); }

.cargo-accordion__panel { padding: 0 0 20px 34px; font-size: 14px; color: var(--text-secondary); line-height: 1.5; }
.cargo-accordion__panel[hidden] { display: none; }

.cargo-accordion__visual {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--light);
}

.cargo-accordion__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.cargo-accordion__img.is-active { opacity: 1; }

@media (max-width: 860px) {
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .cargo-accordion { grid-template-columns: 1fr; }
  .cargo-accordion__visual { order: -1; }
}

/* Footer */
.footer {
  background: var(--dark);
  color: var(--light);
  padding: 64px 0 32px;
  margin-top: 0;
}

.footer a { color: var(--light); }
.footer a:hover { color: var(--accent-2); }

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 48px;
}

.footer__brand p { font-size: 14px; opacity: 0.8; margin-top: 16px; max-width: 280px; }
.footer__title { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 16px; color: var(--white); }
.footer__col ul { list-style: none; }
.footer__col li { margin-bottom: 8px; }
.footer__col a { font-size: 14px; text-decoration: none; color: var(--text-on-dark-muted); }
.footer__col a:hover { color: var(--white); }
.footer__legal-note { font-size: 12px !important; opacity: 0.65; max-width: 320px !important; }

.footer__marquee { overflow: hidden; border-bottom: 1px solid var(--dark-3); padding-bottom: 40px; margin-bottom: 44px; }
.footer__marquee-track {
  display: flex;
  gap: 56px;
  white-space: nowrap;
  width: max-content;
  font-size: clamp(32px, 6vw, 96px);
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--dark-2);
  animation: qp-marquee-rev 60s linear infinite;
}
@keyframes qp-marquee-rev { from { transform: translateX(-50%); } to { transform: translateX(0); } }
@media (prefers-reduced-motion: reduce) {
  .footer__marquee-track { animation: none; }
}

.footer__bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(231,232,230,0.15);
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  font-size: 12px;
  opacity: 0.7;
}

.footer__legal { display: flex; flex-wrap: wrap; gap: 16px; }

/* Mobile CTA bar */
.mobile-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 8px 12px;
  z-index: 90;
  box-shadow: 0 -4px 12px rgba(8,7,8,0.08);
}

.mobile-cta__inner {
  display: grid;
  grid-template-columns: 1fr;
}

.mobile-cta .btn { width: 100%; }

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  visibility: hidden;
  pointer-events: none;
}

.modal.open {
  visibility: visible;
  pointer-events: auto;
}

.modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(8, 7, 8, 0.72);
  opacity: 0;
  transition: opacity 220ms var(--ease-out);
}

.modal.open .modal__overlay { opacity: 1; }

.modal__dialog {
  position: relative;
  width: min(560px, calc(100% - 32px));
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  margin: 16px auto;
  background: var(--accent-2);
  color: var(--dark);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 5vw, 48px);
  box-shadow: 0 24px 80px rgba(8,7,8,0.32);
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 220ms var(--ease-out), transform 220ms var(--ease-out);
}

.modal.open .modal__dialog {
  opacity: 1;
  transform: scale(1);
}

@media (prefers-reduced-motion: reduce) {
  .modal__dialog { transition: opacity 200ms ease; transform: none; }
  .modal__overlay { transition: opacity 200ms ease; }
}

.modal__close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: var(--white);
  color: var(--dark);
  font-size: 24px;
  cursor: pointer;
}

.modal__eyebrow {
  font-family: var(--font-heading);
  color: var(--dark);
  margin-bottom: 12px;
}

.modal__lead { margin-bottom: 24px; font-size: 18px; }

.modal-form {
  background: var(--white);
  padding: clamp(20px, 4vw, 36px);
  border-radius: var(--radius-md);
}

/* Tags */
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  font-size: 13px;
  padding: 8px 16px;
  background: var(--light);
  border-radius: var(--radius-md);
  color: var(--dark);
  text-decoration: none;
}

.tag:hover { background: var(--accent-2); text-decoration: none; color: var(--dark); }

.section-header { margin-bottom: 40px; max-width: 720px; text-align: left; }
.section-header p { color: var(--text-secondary); margin-top: 12px; }

.section-header--dark h2 { color: var(--light); }
.section-header--dark p { color: var(--light); opacity: 0.8; }

.section > .container > h2 { text-align: left; }

/* Placeholder */
.placeholder {
  background: linear-gradient(135deg, var(--light) 0%, #d5d6d4 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.placeholder::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 12px,
    rgba(8, 7, 8, 0.03) 12px,
    rgba(8, 7, 8, 0.03) 24px
  );
}

.placeholder__label {
  position: relative;
  z-index: 1;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  padding: 8px 14px;
  border: 1px dashed rgba(8, 7, 8, 0.2);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.6);
}

.placeholder--hero { width: 100%; height: 100%; position: absolute; inset: 0; }
.placeholder--card { aspect-ratio: 16/10; width: 100%; }
.placeholder--mini { aspect-ratio: 4/3; width: 100%; border-radius: var(--radius-md) var(--radius-md) 0 0; }
.placeholder--split { aspect-ratio: 4/3; width: 100%; border-radius: var(--radius-xl); }

/* Equal service cards (legacy /services page) */
.grid--services { grid-template-columns: repeat(4, 1fr); }
.card--service { display: flex; flex-direction: column; height: 100%; }
.card--service .card__body { flex: 1; display: flex; flex-direction: column; }
.card--service .card__body h4 { flex: 1; }
.card--service .card__body p { margin-bottom: 8px; }
.card__more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: auto;
  padding-top: 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--additional);
}

/* Homepage services mosaic (like reference screenshot) */
.services-mosaic {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: minmax(180px, 1fr) minmax(180px, 1fr) minmax(200px, 1fr);
  grid-template-areas:
    "a b c"
    "d b c"
    "e f g";
  gap: 16px;
  align-items: stretch;
}
.mosaic-card {
  display: flex;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s, transform 0.2s;
  min-height: 0;
}
.mosaic-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  text-decoration: none;
}
.mosaic-card__body {
  display: flex;
  flex-direction: column;
  padding: 22px 22px 18px;
  min-width: 0;
  flex: 1;
}
.mosaic-card__body h3 {
  font-size: clamp(1.05rem, 1.5vw, 1.35rem);
  margin-bottom: 8px;
  color: var(--dark);
}
.mosaic-card__body p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.45;
  margin: 0;
}
.mosaic-card .placeholder--card {
  flex: 0 0 42%;
  aspect-ratio: auto;
  min-height: 120px;
  border-radius: 0;
  align-self: stretch;
}
.mosaic-card--short {
  flex-direction: row;
  align-items: stretch;
}
.mosaic-card--short .mosaic-card__body {
  flex: 1 1 55%;
  justify-content: center;
}
.mosaic-card--short .placeholder--card {
  flex: 0 0 40%;
}
.mosaic-card--tall {
  flex-direction: column;
}
.mosaic-card--tall .mosaic-card__body {
  flex: 0 0 auto;
}
.mosaic-card--tall .placeholder--card {
  flex: 1 1 auto;
  min-height: 180px;
  width: 100%;
}

.feature-split--reverse .feature-split__img { order: 2; }
.feature-split--reverse > div:first-child { order: 1; }

.card--service {
  display: flex;
  flex-direction: column;
}
.card--service .card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.mini-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow 0.2s;
}

.mini-card:hover { box-shadow: var(--shadow-md); }
.mini-card__body { padding: 20px; }
.mini-card__body h3 { font-size: 1rem; margin-bottom: 8px; }
.mini-card__body p { font-size: 13px; color: var(--text-secondary); line-height: 1.5; }

.grid--mini { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }

/* Cargo types — manual horizontal scroll */
.section--cargo .section-header { margin-bottom: 28px; }
.cargo-marquee {
  width: 100%;
  overflow: hidden;
}
.cargo-marquee__viewport {
  overflow-x: auto;
  overflow-y: hidden;
  width: 100%;
  padding: 4px 0 12px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.cargo-marquee__track {
  display: flex;
  width: max-content;
}
.cargo-marquee__group {
  display: flex;
  gap: 20px;
  padding-inline: max(16px, calc((100vw - var(--container)) / 2 + 16px));
}
.cargo-marquee__group[aria-hidden="true"] { display: none; }
.cargo-marquee__card {
  flex: 0 0 260px;
  width: 260px;
  scroll-snap-align: start;
}

/* Geography / directions board — site brand */
/* ===== Карта направлений (гексагональная) =====
   Сетка приходит готовым SVG из build-geo-hexmap.js: зоны сгруппированы в
   <g data-zone>, поэтому активный регион подсвечивается чистым CSS по
   data-geo-active на контейнере — JS только переключает атрибут. */
.geo {
  margin-top: clamp(20px, 2.5vw, 32px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(20px, 2.5vw, 40px);
  align-items: start;
}

.geo-map {
  position: relative;
  width: 100%;
  background: var(--field-bg);
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16 / 9;
}
.geo-map svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

/* Суша по умолчанию */
.geo-map [data-zone] { fill: var(--border-strong); fill-opacity: 0.8; transition: fill 0.25s var(--ease-out), fill-opacity 0.25s var(--ease-out); }
.geo-map [data-zone="base"] { fill-opacity: 0.5; }
/* Активный регион подсвечивается синим, остальные — обычная суша */
.geo[data-geo-active="china"] .geo-map [data-zone="china"],
.geo[data-geo-active="central-asia"] .geo-map [data-zone="central-asia"],
.geo[data-geo-active="europe"] .geo-map [data-zone="europe"],
.geo[data-geo-active="sea"] .geo-map [data-zone="sea"],
.geo[data-geo-active="cis"] .geo-map [data-zone="cis"],
.geo[data-geo-active="russia"] .geo-map [data-zone="russia"] {
  fill: var(--additional);
  fill-opacity: 0.95;
}

/* Правая половина: переключатели и карточка активного направления */
.geo-side { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.geo-tabs { display: flex; flex-wrap: wrap; gap: 10px; }
.geo-tab {
  padding: 12px 22px;
  border-radius: var(--radius-pill);
  background: var(--white);
  color: var(--dark);
  border: 1.5px solid var(--border);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.geo-tab:hover { border-color: var(--border-strong); }
.geo-tab:focus-visible { outline: 2px solid var(--additional); outline-offset: 2px; }
.geo-tab.is-active { color: var(--white); border-color: transparent; background: var(--additional); }

.geo-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(20px, 2.4vw, 28px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}
.geo-card[hidden] { display: none; }
.geo-card__title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(22px, 2.2vw, 28px);
  letter-spacing: -0.02em;
  margin: 0;
}
.geo-card__list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.geo-card__list li {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-secondary);
}
.geo-card__list li::before {
  content: "•";
  margin-top: 2px;
  color: var(--additional);
  flex: 0 0 auto;
}
.geo-card__more {
  display: inline-flex;
  align-items: center;
  padding: 14px 26px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--dark);
  color: var(--dark);
  text-decoration: none;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 15px;
  transition: background 0.2s, color 0.2s;
}
.geo-card__more:hover { background: var(--dark); color: var(--white); text-decoration: none; }

@media (max-width: 1024px) {
  /* Колонки друг под другом: карта сверху, переключатели под ней */
  .geo { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 620px) {
  /* Табы в одну прокручиваемую строку, иначе на узком экране они занимают
     половину высоты блока */
  .geo-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 2px;
  }
  .geo-tabs::-webkit-scrollbar { display: none; }
  .geo-tab { flex: 0 0 auto; white-space: nowrap; padding: 11px 18px; font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .geo-map [data-zone] { transition: none !important; }
}

/* Directions scheme */
.directions-scheme {
  background: var(--dark);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 48px);
  border: none;
}

.directions-scheme__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.directions-scheme__row:last-child { margin-bottom: 0; }

.directions-scheme__label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-2);
  min-width: 100px;
  flex-shrink: 0;
}

.directions-scheme__cities {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  flex: 1;
}

.directions-scheme__city {
  font: inherit;
  font-size: 12px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--light);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-pill);
  cursor: default;
}

.directions-scheme__city--hub {
  background: var(--accent-2);
  border-color: var(--accent-2);
  color: var(--dark);
  font-weight: 600;
}

.directions-scheme__city--ru {
  background: rgba(223, 42, 53, 0.12);
  border-color: var(--accent-1);
  color: var(--light);
}

.directions-scheme__arrow {
  color: var(--accent-2);
  font-weight: 600;
  font-size: 18px;
  padding: 0 4px;
  flex-shrink: 0;
}

.directions-scheme__connector {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 0;
  color: var(--accent-2);
  font-size: 24px;
  letter-spacing: 4px;
}

/* Nav wide dropdown */
.nav__dropdown-menu--wide { min-width: 320px; max-height: 70vh; overflow-y: auto; }
.nav__dropdown-menu__title {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  padding: 8px 14px 4px;
}

.price-card__price {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  font-weight: inherit;
}

/* Carousel */
.carousel { position: relative; }
.carousel__header { display: flex; justify-content: flex-end; gap: 8px; margin-bottom: 16px; }
.carousel__btn {
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  background: var(--white);
  border-radius: var(--radius-md);
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}
.carousel__btn:hover { background: var(--light); }
.carousel__viewport { overflow: hidden; width: 100%; }
.carousel__track {
  display: flex;
  gap: 20px;
  will-change: transform;
}
.carousel[data-visible="4"] .carousel__track > * {
  flex: 0 0 calc((100% - 60px) / 4);
  min-width: 0;
}
.carousel-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: box-shadow 0.2s, border-color 0.2s;
}
.carousel-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--accent-1);
}
.carousel-card__body { padding: 20px; }
.carousel-card__body h3 {
  font-size: 1rem;
  margin-bottom: 8px;
  line-height: 1.3;
}
.carousel-card__body p {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}
.carousel-card__meta {
  display: block;
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 12px;
}
.carousel-card--direction .card__more { padding-top: 0; }

.carousel__track .mini-card { flex: 0 0 calc((100% - 60px) / 4); min-width: 0; }

.directions-scheme--interactive .directions-scheme__city {
  cursor: pointer;
  transition: transform 0.15s, background 0.15s, border-color 0.15s;
}
.directions-scheme--interactive .directions-scheme__city:hover,
.directions-scheme--interactive .directions-scheme__city.is-active {
  transform: translateY(-2px);
  background: var(--accent-2);
  border-color: var(--accent-2);
  color: var(--dark);
  font-weight: 600;
}
.directions-scheme__panel {
  margin-top: 24px;
  padding: 20px 24px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-md);
  min-height: 72px;
}
.directions-scheme__panel-title {
  font-family: var(--font-mono);
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--accent-2);
}
.directions-scheme__panel p { font-size: 14px; color: var(--light); }
.directions-scheme__panel-hint { font-size: 14px; color: rgba(231, 232, 230, 0.6); margin: 0; }

/* Steps flow */
.steps-flow {
  display: flex;
  align-items: stretch;
  gap: 0;
  overflow-x: auto;
  padding: 80px 0 24px;
  margin-top: -40px;
}
.step-flow-item {
  position: relative;
  flex: 0 0 140px;
  text-align: center;
  display: flex;
  flex-direction: column;
}
.step-flow-item__box {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 12px;
  cursor: default;
  transition: border-color 0.15s, box-shadow 0.15s;
  min-height: 110px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
}
.step-flow-item:hover .step-flow-item__box {
  border-color: var(--accent-1);
  box-shadow: var(--shadow-md);
}
.step-flow-item__num {
  width: 32px;
  height: 32px;
  background: var(--accent-1);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  margin: 0 auto 10px;
}
.step-flow-item__title {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
  min-height: 2.6em;
  display: flex;
  align-items: center;
  justify-content: center;
}
.step-flow-item__tooltip {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  width: 220px;
  padding: 12px 14px;
  background: var(--dark);
  color: var(--light);
  font-size: 12px;
  line-height: 1.5;
  border-radius: var(--radius-md);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
  z-index: 10;
  text-align: left;
  box-shadow: var(--shadow-lg);
}
.step-flow-item:hover .step-flow-item__tooltip {
  opacity: 1;
  visibility: visible;
}
.step-flow-arrow {
  flex: 0 0 28px;
  align-self: center;
  text-align: center;
  color: var(--accent-1);
  font-size: 20px;
  font-weight: 600;
  padding-bottom: 20px;
}

/* Advantages 2x2 */
.advantages-grid .card__body h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--accent-1);
  margin-bottom: 12px;
}
.advantages-grid .card { height: 100%; }

.price-section__cta { margin-top: 32px; text-align: left; }

.blog-card__type {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 10px;
}

.blog-card__type--blog { background: rgba(55, 114, 255, 0.15); color: var(--additional); }
.blog-card__type--news { background: rgba(223, 42, 53, 0.12); color: var(--accent-1); }

.content-list {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.content-list a,
.content-list__item {
  display: block;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  color: var(--dark);
  background: var(--white);
}

.contact-form-grid { align-items: stretch; }

.contact-form-left {
  display: flex;
  flex-direction: column;
  gap: 24px;
  height: 100%;
}

.contact-form-left__img {
  flex: 1 1 auto;
  min-height: 160px;
  width: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

@media (max-width: 860px) {
  .contact-form-left { height: auto; }
  .contact-form-left__img { min-height: 220px; flex: none; }
}

.content-list a:hover { border-color: var(--accent-1); color: var(--dark); text-decoration: none; }

.contact-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 20px;
}

.contact-strip > * {
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--white);
}

.contact-strip--branded {
  justify-content: center;
  margin-top: 0;
}

/* 404 page */
.not-found-root {
  min-height: 100vh;
  padding-bottom: 0;
  background: var(--light);
}

.not-found-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
}

.not-found-header__inner {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.not-found {
  background: var(--light);
}

.not-found__hero {
  position: relative;
  overflow: hidden;
  min-height: calc(100vh - var(--header-h));
  display: flex;
  align-items: center;
  padding: clamp(56px, 9vw, 112px) 0;
  color: var(--dark);
  background:
    linear-gradient(135deg, rgba(255,255,255,0.92), rgba(231,232,230,0.84)),
    repeating-linear-gradient(90deg, rgba(8,7,8,0.04) 0 1px, transparent 1px 72px),
    repeating-linear-gradient(0deg, rgba(8,7,8,0.04) 0 1px, transparent 1px 72px);
}

.not-found__hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, transparent 0 62%, rgba(223,42,53,0.9) 62% 66%, transparent 66%),
    linear-gradient(115deg, transparent 0 70%, rgba(253,202,65,0.9) 70% 73%, transparent 73%);
  pointer-events: none;
}

.not-found__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
}

.not-found__eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 6px 12px;
  margin-bottom: 18px;
  background: var(--dark);
  color: var(--accent-2);
  border-radius: var(--radius-md);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0;
}

.not-found__content h1 {
  max-width: 720px;
  margin-bottom: 18px;
  font-size: clamp(2.25rem, 6vw, 5.5rem);
  letter-spacing: 0;
}

.not-found__lead {
  max-width: 720px;
  margin-bottom: 28px;
  color: rgba(8, 7, 8, 0.78);
  font-size: clamp(1rem, 2vw, 1.25rem);
}

.not-found__panel {
  background: var(--dark);
  color: var(--light);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 40px);
  box-shadow: var(--shadow-lg);
}

.not-found__code {
  color: var(--accent-2);
  font-family: var(--font-heading);
  font-size: clamp(4rem, 12vw, 8rem);
  line-height: 0.9;
  letter-spacing: 0;
}

.not-found__panel p {
  margin: 16px 0 20px;
  color: rgba(231, 232, 230, 0.78);
}

.not-found__links {
  display: grid;
  gap: 10px;
}

.not-found__links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  padding: 12px 14px;
  color: var(--light);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-md);
}

.not-found__links a::after {
  content: "->";
  color: var(--accent-2);
}

.not-found__links a:hover {
  color: var(--light);
  border-color: var(--accent-2);
  text-decoration: none;
}

.sitemap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 32px;
}

.sitemap-list { list-style: none; display: grid; gap: 8px; }
.sitemap-list a { color: var(--dark); }
.meta-note { color: var(--text-secondary); font-size: 13px; }

.footer__grid--extended {
  grid-template-columns: 1.2fr 1fr 1fr 0.8fr;
}

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

.step { text-align: left; }
.step__num { margin: 0 0 12px; }

.prose { max-width: none; }
.prose p { margin-bottom: 1rem; }
.prose ul, .prose ol { margin: 0 0 1rem; padding-left: 1.25rem; }
.prose li { margin-bottom: 0.4rem; }

.container.prose { max-width: var(--container); }

/* Button-styled (non-interactive) bullet pills, dot color cycles */
.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.pill-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
}

.pill-item::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex: none;
}

.pill-item--c0::before { background: var(--accent-1); }
.pill-item--c1::before { background: var(--additional); }
.pill-item--c2::before { background: var(--success); }
.pill-item--c3::before { background: var(--accent-2); }

/* Calc-fields checklist */
.calc-checklist {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px 32px;
  margin-top: 24px;
}

.calc-checklist__item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  line-height: 1.4;
}

.calc-checklist__icon {
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--dark);
  color: var(--light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  margin-top: 1px;
}

@media (max-width: 640px) {
  .calc-checklist { grid-template-columns: 1fr; }
}

/* Scheme cards — colored, one row */
.scheme-row {
  display: grid;
  gap: 20px;
  margin-top: 24px;
}

.scheme-card {
  padding: 24px;
  border-radius: var(--radius-lg);
  background: var(--white);
  color: var(--dark);
}

.scheme-card h3 { font-size: 1.125rem; margin-bottom: 0.5rem; }
.scheme-card p { font-size: 14px; }
.scheme-card ul { margin: 12px 0 0; padding-left: 1.1rem; font-size: 13px; }
.scheme-card li { margin-bottom: 0.3rem; }

.scheme-card--c0 { background: var(--accent-1); color: var(--white); }
.scheme-card--c1 { background: var(--accent-2); color: var(--dark); }
.scheme-card--c2 { background: var(--dark); color: var(--light); }
.scheme-card--c3 { background: var(--additional); color: var(--white); }

@media (max-width: 960px) {
  .scheme-row { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 560px) {
  .scheme-row { grid-template-columns: 1fr !important; }
}

/* Cargo accordion cards */
.accordion-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--white);
  overflow: hidden;
  transition: background 0.2s, color 0.2s;
}

.accordion-card__toggle {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 20px 24px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: inherit;
}

.accordion-card__toggle h3 { margin: 0; font-size: 1.125rem; }

.accordion-card__plus {
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  line-height: 1;
  transition: transform 0.2s;
}

.accordion-card.is-open .accordion-card__plus { transform: rotate(45deg); }

.accordion-card__body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 220ms var(--ease-out);
}

.accordion-card.is-open .accordion-card__body { /* max-height set inline by JS to the measured content height */ }

@media (prefers-reduced-motion: reduce) {
  .faq-item__a,
  .accordion-card__body {
    transition: max-height 150ms linear;
  }
}

.accordion-card__body ul { margin: 0; padding: 0 24px 24px 66px; }
.accordion-card__body li { margin-bottom: 0.4rem; }

.accordion-card--caution.is-open {
  background: var(--accent-1);
  color: var(--white);
}

.accordion-card--caution.is-open .accordion-card__plus { border-color: rgba(255,255,255,0.5); }

/* Benefit cards — icon badge + short statement */
.benefit-card .card__body {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 24px;
}

.benefit-card p { margin: 0; padding-top: 8px; font-size: 16px; font-weight: 600; line-height: 1.4; }

.benefit-card__icon {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
}

.benefit-card__icon--c0 { background: var(--accent-1); }
.benefit-card__icon--c1 { background: var(--additional); }
.benefit-card__icon--c2 { background: var(--success); }
.benefit-card__icon--c3 { background: var(--accent-2); color: var(--dark); }

.badge-draft {
  display: inline-block;
  background: var(--accent-2);
  color: var(--dark);
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 4px;
  margin-left: 8px;
  vertical-align: middle;
  font-weight: 600;
}

/* Responsive */
@media (max-width: 1560px) {
  /* часы работы дублируются в подвале и на странице контактов */
  .header__hours { display: none; }
}

@media (max-width: 1100px) {
  .header-search--inline { display: none; }
}

@media (max-width: 1320px) {
  .header__contacts { display: none; }
}

@media (max-width: 1100px) {
  .nav { display: none; }
  .header__consult { display: none; }
  .burger { display: flex; }
}

@media (max-width: 1024px) {
  .logo__tagline { display: none; }
  .grid--4, .grid--services { grid-template-columns: repeat(2, 1fr); }
  .services-mosaic {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
    grid-template-areas:
      "a b"
      "d b"
      "c c"
      "e f"
      "g g";
  }
  .mosaic-card--tall .placeholder--card { min-height: 140px; }
  .footer__grid, .footer__grid--extended { grid-template-columns: 1fr 1fr; }
  .feature-split { grid-template-columns: 1fr; }
  .footer__col--services ul { grid-template-columns: 1fr; }
  .sitemap-grid { grid-template-columns: 1fr 1fr; }
  .carousel[data-visible="4"] .carousel__track > *,
  .carousel__track .mini-card { flex: 0 0 calc((100% - 20px) / 2); }
}

@media (max-width: 480px) {
  .hero__mode-btn { min-width: 0; width: 100%; }
}

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

@media (max-width: 768px) {
  body { padding-bottom: 64px; }
  .nav, .header__actions .btn:not(.burger-btn) { display: none; }
  .header-search--inline { display: none; }
  .header__actions { display: flex; justify-content: flex-end; }
  .burger { display: flex; }
  .header__actions .btn.burger-btn { display: inline-flex; }
  .grid--2, .grid--3, .grid--4, .grid--services { grid-template-columns: 1fr; }
  .bento-grid { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .bento-tile { grid-column: span 1 !important; grid-row: span 1 !important; min-height: 260px; }
  .services-mosaic {
    grid-template-columns: 1fr;
    grid-template-areas:
      "a"
      "b"
      "c"
      "d"
      "e"
      "f"
      "g";
  }
  .mosaic-card--short { flex-direction: column; }
  .mosaic-card--short .placeholder--card {
    flex: 0 0 auto;
    min-height: 120px;
    width: 100%;
  }
  .form__row { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .sitemap-grid { grid-template-columns: 1fr; }
  .mobile-cta { display: block; }
  .hero { min-height: 480px; }
  .header__top .container { justify-content: center; text-align: center; }
  .header__contacts { justify-content: center; }
  .carousel[data-visible="4"] .carousel__track > *,
  .carousel__track .mini-card { flex: 0 0 100%; }
  .step-flow-item { flex: 0 0 120px; }
  .modal__dialog { width: calc(100% - 20px); margin: 10px auto; padding: 24px 18px; }
  .not-found-header__inner { min-height: 76px; }
  .not-found-header__inner .btn { display: none; }
  .not-found__grid { grid-template-columns: 1fr; }
  .not-found__hero { min-height: auto; padding: 48px 0; }
  .not-found__hero::before {
    background:
      linear-gradient(150deg, transparent 0 78%, rgba(223,42,53,0.9) 78% 84%, transparent 84%),
      linear-gradient(150deg, transparent 0 88%, rgba(253,202,65,0.9) 88% 92%, transparent 92%);
  }
  .not-found__content h1 { font-size: clamp(2rem, 12vw, 3.5rem); }
  .not-found__panel { padding: 22px; }
}

@media (min-width: 769px) {
  .burger-btn { display: none !important; }
}

/* ===== Home v2 sections ===== */

/* Board (directions table) */
.board-grid { display: grid; grid-template-columns: 1.7fr 1fr; gap: var(--gap-tile); margin-top: 28px; }
.board-table { background: var(--dark); border-radius: var(--radius-lg); padding: 28px 32px; color: var(--light); }
.board-table__head { display: grid; grid-template-columns: 1.6fr 1fr 0.8fr 0.7fr; gap: 16px; color: var(--text-muted); padding-bottom: 14px; border-bottom: 1px solid var(--dark-3); }
.board-row { display: grid; grid-template-columns: 1.6fr 1fr 0.8fr 0.7fr; gap: 16px; align-items: center; padding: 18px 0; border-bottom: 1px solid #1B1B1A; cursor: pointer; font-family: var(--font-mono); font-size: 14px; color: var(--text-on-dark-muted); transition: color 0.2s; background: none; border-left: none; border-right: none; border-top: none; width: 100%; text-align: left; }
.board-row:last-child { border-bottom: none; }
.board-row__name { font-family: var(--font-heading); font-size: 19px; font-weight: 700; letter-spacing: -0.01em; color: inherit; }
.board-row__rate { text-align: right; }
.board-row.is-active { color: var(--white); }
.board-row.is-active .board-row__rate { color: var(--accent-2); }
.board-side { display: grid; grid-template-rows: auto 1fr; gap: var(--gap-tile); }
.board-panels { position: relative; }
.board-panel { display: none; background: var(--accent-2); border-radius: var(--radius-lg); padding: 28px; flex-direction: column; gap: 14px; color: var(--dark); }
.board-panel.is-active { display: flex; }
.board-panel h3 { margin: 0; font-size: 30px; letter-spacing: -0.02em; line-height: 1.05; }
.board-panel__bullets { display: flex; flex-direction: column; gap: 9px; font-size: 15px; line-height: 1.45; color: #3C3F10; }
.board-panel__bullet { display: flex; gap: 10px; border-top: 1px solid rgba(60,63,16,0.25); padding-top: 9px; }
.board-panel__link { font-size: 15px; font-weight: 700; color: var(--dark); margin-top: 4px; }
.placeholder--board-map { border-radius: var(--radius-lg); min-height: 210px; }

/* Cargo marquee */
.cargo-marquee { overflow: hidden; margin-top: 28px; }
.cargo-marquee__track { display: flex; gap: var(--gap-tile); width: max-content; animation: qp-cargo-scroll 46s linear infinite; }
@media (prefers-reduced-motion: reduce) { .cargo-marquee__track { animation: none; } }
@keyframes qp-cargo-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.cargo-marquee__card { width: 340px; flex-shrink: 0; background: var(--white); border-radius: var(--radius-lg); overflow: hidden; color: var(--dark); text-decoration: none; }
.cargo-marquee__card:hover { text-decoration: none; }
.cargo-marquee__img { width: 100%; height: 190px; object-fit: cover; }
.cargo-marquee__body { padding: 20px 22px; display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 21px; font-weight: 700; letter-spacing: -0.01em; }
.cargo-marquee__desc { margin: 20px 0 0; font-size: 17px; line-height: 1.5; color: var(--text-secondary); max-width: 60ch; }

/* Tracker */
.tracker-grid { background: var(--dark); border-radius: var(--radius-lg); padding: 14px; display: grid; grid-template-columns: 0.85fr 1.15fr; gap: var(--gap-tile); margin-top: 28px; }
.tracker-list { display: flex; flex-direction: column; gap: 8px; padding: 18px 14px; }
.tracker-list__hint { color: var(--text-muted); padding: 0 12px 8px; }
.tracker-row { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: var(--radius-sm); cursor: pointer; color: var(--text-on-dark-muted); background: none; border: none; width: 100%; text-align: left; font-family: var(--font-heading); transition: background 0.2s; }
.tracker-row.is-active { background: var(--dark-2); color: var(--white); }
.tracker-row__dot { width: 9px; height: 9px; border-radius: var(--radius-pill); background: #3A3A38; flex-shrink: 0; }
.tracker-row.is-active .tracker-row__dot { background: var(--accent-1); }
.tracker-row__body { display: flex; flex-direction: column; gap: 3px; flex: 1; }
.tracker-row__title { font-size: 17px; font-weight: 700; letter-spacing: -0.01em; }
.tracker-panels { position: relative; }
.tracker-panel { display: none; background: var(--light); border-radius: var(--radius-md); padding: 34px; flex-direction: column; gap: 28px; }
.tracker-panel.is-active { display: flex; }
.tracker-panel__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.tracker-panel__heading { display: flex; flex-direction: column; gap: 8px; }
.tracker-panel__heading h3 { margin: 0; font-size: 34px; letter-spacing: -0.03em; line-height: 1.02; }
.tracker-panel__term { background: var(--dark); color: var(--accent-2); border-radius: var(--radius-sm); padding: 16px 20px; display: flex; flex-direction: column; gap: 4px; min-width: 130px; }
.tracker-panel__term .mono { color: var(--text-muted); }
.tracker-panel__term span:last-child { font-family: var(--font-mono); font-size: 24px; font-weight: 600; }
.tracker-progress { height: 8px; border-radius: var(--radius-pill); background: var(--border-strong); overflow: hidden; }
.tracker-progress__bar { height: 100%; border-radius: var(--radius-pill); background: var(--accent-1); }
.tracker-stages { display: flex; justify-content: space-between; gap: 8px; }
.tracker-stage { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; flex: 1; }
.tracker-stage__dot { width: 11px; height: 11px; border-radius: var(--radius-pill); background: var(--border-strong); }
.tracker-stage.is-done .tracker-stage__dot { background: var(--accent-1); }
.tracker-stage .mono { color: var(--text-muted); font-size: 11px; }
.tracker-stage.is-current .mono { color: var(--dark); font-weight: 600; }
.tracker-panel__facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tracker-fact { background: var(--white); border-radius: var(--radius-sm); padding: 16px 18px; display: flex; flex-direction: column; gap: 5px; font-family: var(--font-mono); font-size: 14px; }
.tracker-fact .mono { font-size: 10px; }
.tracker-panel__bottom { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-top: auto; }
.tracker-panel__bottom p { margin: 0; font-size: 15px; line-height: 1.5; color: var(--text-secondary); max-width: 38ch; }
.tracker-note { margin: 16px 0 0; color: var(--text-muted); }

/* Process track */
.process-track { background: var(--dark); padding: 44px 0; margin-top: 28px; overflow-x: hidden; }
.process-track__meta { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-bottom: 22px; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; }
.process-track__meta span:first-child { color: var(--text-muted); }
.process-track__meta span:last-child { color: var(--accent-2); }
.process-track__line { display: none; }
.process-track__steps { display: grid; grid-template-columns: repeat(8, minmax(160px, 1fr)); gap: var(--gap-tile); position: relative; overflow-x: auto; }
.process-track__steps::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 30px;
  height: 2px;
  background-image: repeating-linear-gradient(90deg, #3A3A38 0 12px, transparent 12px 24px);
  background-size: 24px 2px;
  animation: qp-dash 1.4s linear infinite;
}
@media (prefers-reduced-motion: reduce) { .process-track__steps::before { animation: none; } }
@keyframes qp-dash { to { background-position: 24px 0; } }
.process-track__step { display: flex; flex-direction: column; gap: 16px; position: relative; cursor: default; }
.process-track__node { position: relative; width: 60px; height: 60px; border-radius: var(--radius-pill); display: flex; align-items: center; justify-content: center; background: var(--dark-2); color: #C7C8C5; box-shadow: inset 0 0 0 1px #2A2A28; z-index: 1; flex-shrink: 0; transition: background 0.35s, color 0.35s, box-shadow 0.35s; }
.process-track__node svg { display: block; }
.process-track__body { display: flex; flex-direction: column; gap: 8px; }
.process-track__num { color: #5C5D5A; font-size: 12px; transition: color 0.3s; }
.process-track__body h3 { margin: 0; font-size: 19px; font-weight: 700; letter-spacing: -0.01em; color: var(--text-on-dark-muted); transition: color 0.3s; }
.process-track__body p { margin: 0; font-size: 13px; line-height: 1.5; color: #46463F; transition: color 0.3s; }

.process-track__step.is-active .process-track__node { background: var(--accent-1); color: var(--white); box-shadow: 0 0 0 6px rgba(223,42,53,0.18); }
.process-track__step.is-active .process-track__num { color: var(--accent-2); }
.process-track__step.is-active .process-track__body h3 { color: var(--white); }
.process-track__step.is-active .process-track__body p { color: var(--text-on-dark-muted); }
.process-track__step.is-done .process-track__node { background: var(--accent-2); color: var(--dark); }

/* Advantages bento */
/* Все четыре карточки преимуществ в один ряд, равной ширины — плитку с
   фото склада убрали, поэтому больше нет нужды в спанах 2/2/2 под неё. */
.advantages-bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap-tile); margin-top: 28px; }
.advantages-bento__tile { border-radius: var(--radius-lg); padding: 32px 28px; display: flex; flex-direction: column; justify-content: space-between; gap: 20px; min-height: 240px; }
.advantages-bento__tile h3 { margin: 0 0 12px; letter-spacing: -0.02em; }
.advantages-bento__tile p { margin: 0; font-size: 15px; line-height: 1.45; }
.advantages-bento__tile--red { background: var(--accent-1); color: var(--white); }
.advantages-bento__tile--red h3 { font-size: 26px; line-height: 1.1; }
.advantages-bento__tile--red p { opacity: 0.9; }
.advantages-bento__tile--white { background: var(--white); color: var(--dark); }
.advantages-bento__tile--white .mono { color: var(--text-muted); }
.advantages-bento__tile--white h3 { font-size: 22px; }
.advantages-bento__tile--white p { color: var(--text-secondary); }
.advantages-bento__tile--dark { background: var(--dark); color: var(--light); }
.advantages-bento__tile--dark h3 { font-size: 26px; line-height: 1.1; }
.advantages-bento__tile--dark p { color: var(--text-on-dark-muted); }

/* Ticker */
.ticker { background: var(--white); border-radius: var(--radius-lg); padding: 18px 0; overflow: hidden; }
.ticker__track { display: flex; gap: 40px; width: max-content; white-space: nowrap; font-family: var(--font-mono); font-size: 16px; color: var(--dark); animation: qp-marquee-rev 42s linear infinite; }
.ticker__item { display: flex; gap: 40px; }
@media (prefers-reduced-motion: reduce) { .ticker__track { animation: none; } }

/* About */
.about-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap-tile); margin-top: 28px; }
.about-profile { grid-column: span 2; background: var(--white); border-radius: var(--radius-lg); padding: 36px; display: flex; flex-direction: column; justify-content: space-between; gap: 26px; min-height: 240px; }
.about-profile .mono { color: var(--text-muted); }
.about-profile p { margin: 0; font-size: 22px; line-height: 1.4; max-width: 44ch; }
.about-stat { background: var(--dark); color: var(--light); border-radius: var(--radius-lg); padding: 28px; display: flex; flex-direction: column; justify-content: space-between; gap: 20px; min-height: 180px; }
.about-stat .mono { color: var(--text-muted); }
.about-stat__num { display: block; font-family: var(--font-mono); font-size: 46px; font-weight: 600; line-height: 0.9; color: var(--accent-2); }
.about-stat__note { display: block; margin-top: 4px; color: #8A8B88; font-size: 13px; }
/* Home FAQ (big accordion) */
.home-faq { display: flex; flex-direction: column; gap: 10px; margin-top: 28px; }
.home-faq__item { border-radius: var(--radius-lg); background: var(--white); color: var(--dark); transition: background 0.25s; }
.home-faq__item.is-open { background: var(--dark); color: var(--light); }
.home-faq__q { display: flex; align-items: center; justify-content: space-between; gap: 24px; width: 100%; text-align: left; background: none; border: none; cursor: pointer; padding: 30px 34px; font-family: var(--font-heading); font-size: clamp(20px, 2vw, 28px); font-weight: 700; letter-spacing: -0.02em; color: inherit; }
.home-faq__sign { font-family: var(--font-mono); font-size: 30px; line-height: 1; flex-shrink: 0; color: var(--text-muted); }
.home-faq__item.is-open .home-faq__sign { color: var(--accent-2); }
.home-faq__a { margin: 0; padding: 0 34px 30px; font-size: 17px; line-height: 1.6; max-width: 80ch; color: var(--text-secondary); }
.home-faq__item.is-open .home-faq__a { color: var(--text-on-dark-muted); }
.home-faq__a[hidden] { display: none; }

/* Home form split */
.home-form { background: var(--white); border-radius: var(--radius-lg); overflow: hidden; display: grid; grid-template-columns: 1fr 1.15fr; margin-top: 28px; }
.home-form__intro { background: var(--accent-2); padding: 44px; display: flex; flex-direction: column; gap: 26px; color: var(--dark); }
.home-form__intro .mono { color: #5F6614; }
.home-form__intro h2 { margin: 0; color: var(--dark); }
.home-form__intro p { margin: 0; font-size: 18px; line-height: 1.45; color: #3C3F10; max-width: 34ch; }
.home-form__contacts { margin-top: auto; font-size: 14px; line-height: 1.9; color: #4C5211; }
.home-form__contacts a { color: #4C5211; }
.home-form__contacts div:first-child a { color: var(--dark); font-size: 19px; }
.home-form__panel { padding: 44px; display: flex; flex-direction: column; gap: 16px; border: 1px solid var(--dark); }
.home-form__panel .mono { color: var(--accent-1); }

@media (max-width: 1024px) {
  .board-grid, .tracker-grid, .about-grid { grid-template-columns: minmax(0, 1fr); }
  .about-profile { grid-column: span 1; }
  .advantages-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-form { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .board-table__head { display: none; }
  .board-row { grid-template-columns: 1fr; gap: 4px; }
  .board-row__route, .board-row__term { color: var(--text-muted); }
  .board-row__rate { text-align: left; }
  .tracker-grid { grid-template-columns: minmax(0, 1fr); padding: 10px; }
  .tracker-panel__top { flex-direction: column; }
  .tracker-panel__bottom { flex-direction: column; align-items: flex-start; gap: 16px; }
  .process-track__steps { grid-template-columns: repeat(8, minmax(140px, 1fr)); }
  .advantages-bento { grid-template-columns: minmax(0, 1fr); }
  .home-form__q, .home-faq__q { padding: 22px 24px; }
  .home-faq__a { padding: 0 24px 22px; }
}

/* Services listing page */
.service-list-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap-tile); margin-top: 0; }
.service-list-card { display: flex; flex-direction: column; background: var(--white); border-radius: var(--radius-lg); overflow: hidden; color: var(--dark); text-decoration: none; transition: transform 0.35s var(--ease-out); }
.service-list-card:hover { transform: translateY(-5px); text-decoration: none; }
.service-list-card__img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.placeholder--service-list { aspect-ratio: 16/9; min-height: 0; border-radius: 0; }
.service-list-card__body { padding: 28px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.service-list-card__body h3 { margin: 0; font-size: 23px; font-weight: 700; line-height: 1.15; letter-spacing: -0.015em; }
.service-list-card__body p { margin: 0; font-size: 15px; line-height: 1.5; color: var(--text-secondary); }
.service-list-card__more { margin-top: auto; padding-top: 14px; color: var(--accent-1); font-size: 13px; }

@media (max-width: 1024px) {
  .service-list-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .service-list-grid { grid-template-columns: 1fr; }
}

/* ===== Service page bento content ===== */

/* Intro + calc split */
.service-intro-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: var(--gap-tile); align-items: start; }
.service-intro-grid__text { display: flex; flex-direction: column; gap: 20px; }
.service-intro-grid__text p { margin: 0; font-size: 18px; line-height: 1.5; color: var(--dark); max-width: 62ch; }
.service-intro-grid__text p:not(:first-child) { font-size: 17px; color: var(--text-secondary); }
.bento-audience-card { background: var(--white); border-radius: var(--radius-lg); padding: 28px; display: flex; flex-direction: column; gap: 8px; }
.bento-audience-card .mono { display: block; }
.bento-audience-card span:last-child { font-size: 18px; line-height: 1.45; }
.bento-calc-card { background: var(--dark); color: var(--light); border-radius: var(--radius-lg); padding: 32px; display: flex; flex-direction: column; gap: 18px; }
.bento-calc-card__list { display: flex; flex-direction: column; gap: 12px; }
.bento-calc-card__item { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; line-height: 1.4; color: var(--text-on-dark-muted); border-bottom: 1px solid var(--dark-3); padding-bottom: 12px; }
.bento-calc-card__item:last-child { border-bottom: none; padding-bottom: 0; }
.bento-calc-card__item .mono { color: var(--accent-2); flex-shrink: 0; }

/* Pills card (когда подходит / грузы) */
.bento-pills-card { border-radius: var(--radius-lg); padding: 36px; display: flex; flex-direction: column; gap: 22px; background: var(--white); box-shadow: inset 0 0 0 1.5px var(--border-strong); }
.bento-pills-card .mono { color: var(--text-muted); text-transform: uppercase; }
.bento-pills-card--dark { background: var(--dark); color: var(--light); box-shadow: none; }
.bento-pills-card--dark .mono { color: var(--accent-2); }
.bento-pills-card__list { display: flex; flex-wrap: wrap; gap: 10px; }
.bento-pill { font-size: 16px; padding: 12px 20px; border-radius: var(--radius-pill); background: var(--field-bg); color: var(--dark); }
.bento-pills-card--dark .bento-pill { background: var(--dark-2); color: var(--light); }

/* Colored cycle row (schemes / container types) */
.bento-color-row { display: grid; gap: var(--gap-tile); margin-top: 0; }
.bento-color-card { padding: 24px; border-radius: var(--radius-lg); background: var(--white); color: var(--dark); }
.bento-color-card h3 { margin: 0 0 8px; font-size: 19px; }
.bento-color-card p { margin: 0; font-size: 14px; line-height: 1.5; }
.bento-color-card ul { margin: 12px 0 0; padding-left: 1.1rem; font-size: 13px; }
.bento-color-card li { margin-bottom: 0.3rem; }
.bento-color-card--c0 { background: var(--accent-1); color: var(--white); }
.bento-color-card--c1 { background: var(--accent-2); color: var(--dark); }
.bento-color-card--c2 { background: var(--dark); color: var(--light); }
.bento-color-card--c3 { background: #EDEDEB; color: var(--dark); }

@media (max-width: 960px) {
  .bento-color-row { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 560px) {
  .bento-color-row { grid-template-columns: 1fr !important; }
}

/* Generic bento card grid */
.bento-card-grid { display: grid; gap: var(--gap-tile); }
.bento-card-grid--2 { grid-template-columns: repeat(2, 1fr); }
.bento-card-grid--3 { grid-template-columns: repeat(3, 1fr); }
.bento-card-grid--4 { grid-template-columns: repeat(4, 1fr); }
.bento-card { background: var(--white); border-radius: var(--radius-lg); padding: 26px; min-height: 150px; display: flex; flex-direction: column; justify-content: space-between; gap: 18px; }
.bento-card .mono { display: block; }
.bento-card h3 { margin: 0; font-size: 18px; line-height: 1.35; letter-spacing: -0.01em; }
.bento-card p { margin: 0; font-size: 15px; line-height: 1.5; color: var(--text-secondary); }
.bento-card p:empty { display: none; }
.bento-summary-card { background: var(--accent-2); border-radius: var(--radius-lg); padding: 28px; display: flex; flex-direction: column; justify-content: space-between; gap: 18px; min-height: 150px; }
.bento-summary-card .mono:first-child { color: #4C5211; }
.bento-summary-card span:nth-child(2) { font-size: 22px; font-weight: 700; line-height: 1.1; }

@media (max-width: 1024px) {
  .service-intro-grid { grid-template-columns: 1fr; }
  .bento-card-grid--4 { grid-template-columns: repeat(2, 1fr); }
  .bento-card-grid--3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .bento-card-grid--2, .bento-card-grid--3, .bento-card-grid--4 { grid-template-columns: 1fr; }
}

.placeholder--mini-img { aspect-ratio: 4/3; width: 100%; object-fit: cover; border-radius: var(--radius-md) var(--radius-md) 0 0; display: block; }

/* ============================================================
   Страница услуги — редизайн по design_handoff_service_page
   ============================================================ */

.svc-wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(16px, 3vw, 32px);
}
.svc-section { padding: clamp(24px, 4vw, 48px) clamp(16px, 3vw, 32px); max-width: var(--container); margin: 0 auto; }
.svc-section--flush { padding-top: clamp(16px, 3vw, 32px); }
.svc-h2 { margin: 0; font-size: clamp(34px, 3.6vw, 54px); font-weight: 700; line-height: 1; letter-spacing: -0.04em; }
.svc-h3 { margin: 0; font-size: clamp(19px, 2vw, 24px); font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; }
.svc-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 20px; }
.svc-head .mono { color: var(--text-muted); }
.svc-lede { margin: 14px 0 0; font-size: 17px; color: var(--text-secondary); }
.svc-grid { margin-top: clamp(20px, 2.5vw, 32px); display: grid; gap: var(--gap-tile); }
.svc-grid--intro { grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); align-items: stretch; margin-top: 0; }
.svc-grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); }
.svc-grid--tiles { grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); }
.svc-grid--cards { grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr)); }
.svc-grid--wide { grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); }
.svc-grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); align-items: stretch; }

/* --- Hero --- */
.svc-hero { position: relative; border-radius: var(--radius-lg); overflow: hidden; background: var(--dark); color: var(--white); }
.svc-hero__photo { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0.38; }
/* Затемнение ослаблено: слева хватает контраста для белого заголовка,
   справа фотография остаётся видимой. */
/* Затемнение сильно ослаблено и собрано у левого края — там, где текст.
   Правая половина кадра почти чистая. Читаемость белого заголовка
   подстрахована тенью на самом тексте, а не заливкой всего hero. */
.svc-hero__veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(8,7,8,0.58) 0%, rgba(8,7,8,0.30) 18%, rgba(8,7,8,0.08) 36%, rgba(8,7,8,0) 54%);
}
.svc-hero__title,
.svc-hero__lead,
.svc-hero__inner .breadcrumbs,
.svc-hero__inner .mono { text-shadow: 0 1px 14px rgba(8,7,8,0.75), 0 1px 3px rgba(8,7,8,0.55); }
.svc-hero__inner { position: relative; padding: clamp(24px, 3vw, 40px) clamp(24px, 4vw, 64px) clamp(32px, 4vw, 56px); }
.svc-hero__cols { margin-top: clamp(28px, 4vw, 56px); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(380px, 100%), 1fr)); gap: clamp(24px, 3vw, 48px); align-items: end; }
.svc-hero__title { margin: 16px 0 0; max-width: 18em; font-size: clamp(36px, 3.9vw, 64px); font-weight: 700; line-height: 0.98; letter-spacing: -0.035em; color: var(--white); }
.svc-hero__lead { margin: 20px 0 0; max-width: 33em; font-size: 17px; line-height: 1.6; color: var(--text-on-dark-muted); }
.svc-hero__actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.svc-hero__hours { color: var(--text-muted); }
.svc-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr)); gap: var(--gap-tile); }
.svc-fact { background: var(--dark-2); border-radius: var(--radius-lg); padding: 26px 22px; }
.svc-fact__value { font-size: clamp(19px, 2vw, 24px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; color: var(--accent-2); }
.svc-fact__label { display: block; margin-top: 10px; color: var(--text-on-dark-muted); }
.svc-hero .breadcrumbs { padding: 0; max-width: none; margin: 0; }

/* --- Интро --- */
.svc-intro { background: #EDEDEB; border-radius: var(--radius-lg); padding: clamp(24px, 2.5vw, 36px); }
.svc-intro__lead { margin: 0; font-size: clamp(19px, 2vw, 24px); line-height: 1.35; letter-spacing: -0.02em; font-weight: 700; }
.svc-intro__body { margin: 20px 0 0; font-size: 17px; line-height: 1.6; color: var(--text-secondary); }
.svc-intro__aud { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--border-strong); }
.svc-intro__aud p { margin: 10px 0 0; font-size: 17px; line-height: 1.5; font-weight: 700; }
.svc-calc { background: var(--dark); color: var(--white); border-radius: var(--radius-lg); padding: 32px; }
.svc-calc__list { margin-top: 20px; list-style: none; }
.svc-calc__item { display: flex; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--dark-3); }
.svc-calc__item:last-child { border-bottom: none; }
.svc-calc__item .mono { color: var(--text-muted); padding-top: 4px; text-transform: none; flex-shrink: 0; }
.svc-calc__item span:last-child { font-size: 17px; line-height: 1.45; }
.svc-calc .btn { margin-top: 24px; }

/* --- Плитки «когда подходит» --- */
.svc-panel { border-radius: var(--radius-lg); padding: clamp(24px, 2vw, 32px); }
.svc-panel--light { background: #EDEDEB; }
.svc-panel--accent { background: var(--accent-2); color: #3C3F10; }
.svc-panel--accent .mono { color: #5F6614; }
.svc-panel--dark { background: var(--dark-2); color: var(--white); }
.svc-panel--dark .mono { color: var(--accent-2); }
.svc-marklist { margin-top: 18px; display: grid; gap: 14px; list-style: none; }
.svc-marklist li { display: flex; gap: 12px; font-size: 17px; line-height: 1.45; }
.svc-marklist li::before { content: '—'; color: var(--accent-1); flex-shrink: 0; }
.svc-marklist--warn li::before { content: '!'; }
.svc-pills { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 10px; list-style: none; }
.svc-pills li { background: rgba(8,7,8,0.08); border-radius: var(--radius-pill); padding: 11px 18px; font-size: 15px; }
.svc-panel__note { margin: 22px 0 0; font-size: 15px; line-height: 1.5; color: var(--text-on-dark-muted); }

/* --- «Что входит» --- */
.svc-inc { background: #EDEDEB; border-radius: var(--radius-lg); padding: clamp(24px, 2vw, 32px); min-height: 186px; display: flex; align-items: flex-end; }
.svc-inc--cta { background: var(--accent-1); color: var(--white); flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 18px; }
.svc-inc--cta .btn { align-self: flex-start; }

/* --- Преимущества --- */
.svc-benefit { background: var(--white); border-radius: var(--radius-lg); border: 1px solid var(--border); padding: 28px; }

/* --- «Как проходит перевозка» --- */
.svc-flow { background: var(--dark); color: var(--white); border-radius: var(--radius-lg); padding: clamp(28px, 3.5vw, 56px); }
.svc-flow .svc-h2 { color: var(--white); }
.svc-steps { margin-top: clamp(24px, 3vw, 40px); list-style: none; }
.svc-step { display: grid; grid-template-columns: 56px 1fr; gap: 24px; padding: 24px 0; border-top: 1px solid var(--dark-3); }
.svc-step:last-child { border-bottom: 1px solid var(--dark-3); }
.svc-step__num { color: var(--accent-2); text-transform: none; }
.svc-step__body { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 10px 40px; }
.svc-step__body p { margin: 0; font-size: 17px; line-height: 1.6; color: var(--text-on-dark-muted); }
.svc-total { margin-top: clamp(24px, 3vw, 40px); background: var(--accent-2); color: #3C3F10; border-radius: var(--radius-lg); padding: clamp(24px, 2.5vw, 36px); display: flex; flex-wrap: wrap; gap: 20px; align-items: center; }
.svc-total .mono { color: #5F6614; }
.svc-total__value { margin-top: 10px; font-size: clamp(24px, 2.6vw, 38px); font-weight: 700; line-height: 1.05; letter-spacing: -0.035em; color: var(--dark); }
.svc-total .btn { margin-left: auto; }
.svc-warns { margin-top: var(--gap-tile); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: var(--gap-tile); }
.svc-warn { background: var(--dark-2); border-radius: var(--radius-lg); padding: 28px; }
.svc-warn p { margin: 12px 0 0; font-size: 17px; line-height: 1.6; color: var(--text-on-dark-muted); }

/* --- Схема маршрута --- */
.svc-scheme { margin-top: clamp(20px, 2.5vw, 32px); background: #EDEDEB; border-radius: var(--radius-lg); padding: clamp(24px, 2.5vw, 36px); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 28px; align-items: start; }
.svc-scheme__cities { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 10px; }
.svc-scheme__hub { display: grid; gap: 14px; justify-items: center; text-align: center; padding-top: 26px; }
.svc-scheme__arrows { font-family: var(--font-mono); font-size: 14px; color: var(--accent-1); }
.svc-scheme__hub-card { background: var(--dark); color: var(--white); border-radius: var(--radius-lg); padding: 20px 28px; }
.svc-scheme__hub-card .mono { color: var(--accent-2); }
.svc-scheme__hub-name { margin-top: 8px; font-size: clamp(19px, 2vw, 24px); font-weight: 700; letter-spacing: -0.02em; }
.svc-chip {
  border-radius: var(--radius-pill);
  padding: 13px 20px;
  font-size: 15px;
  font-family: inherit;
  border: 1.5px solid var(--border-strong);
  background: var(--white);
  color: var(--dark);
  cursor: pointer;
  transition: all 0.3s var(--ease-out);
}
.svc-chip:hover { border-color: var(--dark); }
.svc-chip.is-active { background: var(--dark); color: var(--white); font-weight: 700; border-color: var(--dark); }
.svc-scheme__panel { margin-top: var(--gap-tile); background: var(--dark); color: var(--white); border-radius: var(--radius-lg); padding: clamp(24px, 2.5vw, 36px); display: flex; flex-wrap: wrap; gap: 20px; align-items: center; }
.svc-scheme__panel-copy { max-width: 56em; }
.svc-scheme__panel .directions-scheme__panel-title { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-2); }
.svc-scheme__panel p { margin: 10px 0 0; font-size: 17px; line-height: 1.6; color: var(--white); }
.svc-scheme__panel .directions-scheme__panel-hint { margin: 0; color: var(--text-on-dark-muted); }
.svc-scheme__panel .btn { margin-left: auto; white-space: nowrap; }

/* --- FAQ --- */
.svc-faq { margin-top: clamp(20px, 2.5vw, 32px); border-top: 1px solid var(--border); list-style: none; }
.svc-faq__item { border-bottom: 1px solid var(--border); }
.svc-faq__q {
  width: 100%;
  display: flex;
  gap: 20px;
  align-items: baseline;
  background: transparent;
  border: 0;
  padding: 24px 0;
  text-align: left;
  cursor: pointer;
  color: var(--dark);
  font-family: inherit;
}
.svc-faq__q span:first-child { flex: 1; font-size: clamp(19px, 2vw, 24px); font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; }
.svc-faq__sign { font-family: var(--font-mono); font-size: 20px; color: var(--accent-1); line-height: 1; }
.svc-faq__a { margin: 0; padding: 0 0 24px; max-width: 70em; font-size: 17px; line-height: 1.6; color: var(--text-secondary); }
.svc-faq__a[hidden] { display: none; }

/* --- Другие услуги --- */
.svc-rel { display: block; color: var(--dark); text-decoration: none; }
.svc-rel:hover { text-decoration: none; color: var(--dark); }
.svc-rel__media { border-radius: var(--radius-lg); overflow: hidden; background: #EDEDEB; }
.svc-rel__media img { display: block; width: 100%; height: 186px; object-fit: cover; }
.svc-rel__body { margin-top: var(--gap-tile); background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; }
.svc-rel__body p { margin: 10px 0 0; font-size: 17px; line-height: 1.5; color: var(--text-secondary); }

/* --- Форма --- */
.svc-form { background: var(--dark); color: var(--white); border-radius: var(--radius-lg); padding: clamp(28px, 3.5vw, 56px); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); gap: clamp(24px, 3vw, 48px); align-items: stretch; }
/* Без min-width:0 грид-колонка отталкивается от min-content самого
   широкого потомка — на узких экранах длинный текст согласия из
   чекбокса раздувал колонку до содержимого и утаскивал всю страницу
   вбок вместо того, чтобы просто перенестись на новую строку. */
.svc-form > * { min-width: 0; }
.svc-form .svc-h2 { color: var(--white); }
.svc-form__lead { margin: 18px 0 0; max-width: 30em; font-size: 17px; line-height: 1.6; color: var(--text-on-dark-muted); }
.svc-contacts { margin-top: 32px; border-top: 1px solid var(--dark-3); }
.svc-contacts__row { display: grid; grid-template-columns: minmax(130px, 150px) 1fr; gap: 18px; padding: 16px 0; border-bottom: 1px solid var(--dark-3); }
.svc-contacts__row:last-child { border-bottom: none; }
.svc-contacts__row .mono { color: var(--text-muted); }
.svc-contacts__row a { font-size: 17px; color: var(--white); font-weight: 700; }
.svc-contacts__row a:hover { color: var(--accent-2); }
.svc-contacts__row span:last-child { font-size: 17px; line-height: 1.5; }
.svc-contacts__msgr { display: flex; flex-wrap: wrap; gap: 10px; }
.svc-contacts__msgr a { font-weight: 700; }
.svc-form__img { margin-top: 24px; width: 100%; height: 200px; object-fit: cover; border-radius: var(--radius-lg); }
.svc-form__card { background: var(--white); color: var(--dark); border: 1px solid var(--dark); border-radius: var(--radius-lg); padding: clamp(24px, 2.5vw, 36px); }
.svc-form__card .mono { color: var(--text-muted); }
.svc-form__title { margin: 10px 0 24px; font-size: clamp(24px, 2.4vw, 34px); font-weight: 700; line-height: 1.05; letter-spacing: -0.035em; }

@media (max-width: 640px) {
  .svc-step { grid-template-columns: 1fr; gap: 8px; }
  .svc-total .btn, .svc-scheme__panel .btn { margin-left: 0; }
  .svc-contacts__row { grid-template-columns: 1fr; gap: 6px; }
}

/* Чекбокс согласия — .form уже задаёт gap между детьми, свой отступ не нужен.
   Форма всегда лежит на светлой подложке (белая карточка, белая панель на
   главной или жёлтый попап), поэтому один набор цветов подходит везде. */
.form__consent { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; line-height: 1.5; color: var(--text-muted); cursor: pointer; }
.form__consent input[type="checkbox"] { flex: 0 0 auto; width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--accent-1); cursor: pointer; }
.form__consent a { color: inherit; text-decoration: underline; }
.form__consent a:hover { color: var(--accent-1); }
.svc-form__card .btn[type="submit"] { width: 100%; }

/* Плавная подсветка пунктов выпадающих меню */
.nav__dropdown-menu a,
.mega-nav__link,
.mega-nav__submenu a { transition: background-color 0.15s var(--ease-out), color 0.15s var(--ease-out); }


/* Montserrat шире прежнего моноширинного шрифта: длинные подписи маршрутов
   перестали сжиматься и распирали блок вбок. min-width:0 возвращает
   flex-элементу возможность сжиматься, длинная строка переносится. */
.tracker-list, .tracker-row, .tracker-row__body { min-width: 0; }
.tracker-row__body .mono { overflow-wrap: anywhere; }

/* Шаги трекера: подписи стали шире после смены шрифта */
.tracker-stages, .tracker-stage { min-width: 0; }
.tracker-stage .mono { overflow-wrap: anywhere; }

/* ===== Правки 16.09.2026 ===== */

/* 8 и 10. Светлые плитки сливались с белым фоном секции — обводим */
.advantages-bento__tile--white,
.about-profile { border: 1px solid var(--dark); }

/* 2. Попап: без надзаголовка и компактнее, чтобы форма помещалась в окно
   целиком и её не приходилось прокручивать */
.modal__dialog { padding: 28px 28px 30px; }
.modal__dialog h2 { font-size: clamp(22px, 2.4vw, 30px); line-height: 1.1; margin: 0; }
.modal__lead { margin: 8px 0 0; font-size: 14px; line-height: 1.45; }
.modal-form { margin-top: 16px; gap: 10px; }
.modal-form .form__group { gap: 4px; }
.modal-form .form__label { font-size: 11px; }
.modal-form .form__input,
.modal-form .form__textarea { padding: 11px 14px; font-size: 15px; }
.modal-form .form__textarea { min-height: 0; }
.modal-form .btn { padding: 13px 26px; font-size: 15px; }

/* 11. Страница обращений руководства */
.address-lede { margin: 12px 0 0; max-width: 62ch; font-size: 17px; line-height: 1.6; color: var(--text-secondary); }
.address-grid {
  margin-top: clamp(24px, 3vw, 40px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr));
  gap: var(--gap-tile);
}
.address-card {
  background: var(--white);
  border: 1px solid var(--dark);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 3vw, 44px);
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.address-card__eyebrow { color: var(--text-muted); }
.address-card__title { margin: 14px 0 0; font-size: clamp(24px, 2.4vw, 32px); line-height: 1.1; letter-spacing: -0.02em; }
.address-card__greeting { margin: 20px 0 0; font-size: 18px; font-weight: 700; color: var(--dark); }
.address-card__text { margin: 14px 0 0; font-size: 16px; line-height: 1.6; color: var(--text-secondary); }
.address-card__sign {
  margin-top: auto;
  padding-top: clamp(22px, 2.5vw, 32px);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.address-card__author { font-family: var(--font-heading); font-size: 17px; font-weight: 700; color: var(--dark); }
.address-card__role { color: var(--text-muted); }

/* 1. Поиск сжимается вместе с шапкой, а не выдавливает соседей */
.header-search--inline { flex: 0 1 200px; min-width: 130px; }

/* 3. Выравнивание шапки.
   Пункты меню были строчными: их вертикальные отступы не входили в высоту
   строки, из-за чего ссылки с выпадающим списком и без него вставали на
   разные уровни, а всё меню — на 2px ниже логотипа. */
.nav__dropdown { display: inline-flex; align-items: center; }
.nav__link { display: inline-flex; align-items: center; }
/* Ховер менял насыщенность с 500 на 600 — текст дёргался по ширине */
.nav__link { font-weight: 600; }
.nav__link:hover, .nav__link--active { font-weight: 600; }
/* В логотипе под словом идёт волна, поэтому оптический центр надписи выше
   геометрического — компенсируем, чтобы слово встало на линию меню */
.header .logo__img { transform: translateY(3px); }

/* Крошки в hero услуг и направлений — белым, иначе на светлой фотографии
   серый текст не читается */
.svc-hero__inner .breadcrumbs,
.svc-hero__inner .breadcrumbs a,
.svc-hero__inner .breadcrumbs span[aria-current] { color: #FFFFFF; }
.svc-hero__inner .breadcrumbs a { opacity: 0.9; }
.svc-hero__inner .breadcrumbs a:hover { opacity: 1; }
.svc-hero__inner .breadcrumbs li:not(:first-child)::before { color: rgba(255,255,255,0.7); }

/* Картинка у формы: низ выравнивается по низу формы */
.svc-form > div:first-child { display: flex; flex-direction: column; }
.svc-form__img { margin-top: auto; }

/* ===== Ускоренная ЖД-доставка: собственные блоки ===== */

/* Крупные цифры */
.rail9-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
  gap: var(--gap-tile);
}
.rail9-stat {
  background: var(--dark);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: clamp(26px, 2.6vw, 36px);
  min-width: 0;
}
.rail9-stat__value {
  font-size: clamp(44px, 4.6vw, 68px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--accent-2);
}
.rail9-stat__unit {
  margin-top: 6px;
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
}
.rail9-stat__note {
  margin: 14px 0 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-on-dark-muted);
}

/* Две текстовые панели */
.rail9-panel {
  background: var(--white);
  border: 1px solid var(--dark);
  border-radius: var(--radius-lg);
  padding: clamp(26px, 2.8vw, 40px);
  min-width: 0;
}
.rail9-panel__title { margin: 0 0 6px; font-size: clamp(22px, 2.2vw, 30px); }

/* Карта маршрута + преимущества */
.rail9-map {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(360px, 100%), 1fr));
  gap: var(--gap-tile);
  align-items: stretch;
  margin-top: clamp(20px, 2.5vw, 32px);
}
.rail9-map__media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #EDEDEB;
  min-height: 260px;
}
.rail9-map__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rail9-map__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.rail9-point {
  background: var(--white);
  border: 1px solid var(--dark);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--dark);
  flex: 1 1 auto;
  display: flex;
  align-items: center;
}

/* Расписание */
.rail9-sched {
  background: var(--white);
  border: 1px solid var(--dark);
  border-radius: var(--radius-lg);
  padding: clamp(22px, 2.4vw, 32px);
  min-width: 0;
  overflow-x: auto;
}
.rail9-sched__head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.rail9-sched__note { color: var(--accent-1); }
.rail9-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.rail9-table th {
  text-align: left;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
  padding: 0 0 10px;
  border-bottom: 1px solid var(--border);
}
.rail9-table td { padding: 12px 0; border-bottom: 1px solid var(--border); color: var(--dark); }
.rail9-table tr:last-child td { border-bottom: none; }
.rail9-table td + td, .rail9-table th + th { padding-left: 18px; }

/* Какие грузы можно перевозить: наведение меняет изображение */
.rail9-cargo {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr));
  gap: var(--gap-tile);
  margin-top: clamp(20px, 2.5vw, 32px);
  align-items: stretch;
}
.rail9-cargo__visual {
  /* вагоны сняты на белом фоне и вытянуты по горизонтали — вписываем
     целиком, обрезка кадра съела бы половину состава */
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #FFFFFF;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  min-height: 260px;
}
.rail9-cargo__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 18px;
  opacity: 0;
  transition: opacity 0.3s var(--ease-out);
}
.rail9-cargo__img.is-active { opacity: 1; }
.rail9-cargo__list { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.rail9-cargo__item {
  flex: 1 1 auto;
  text-align: left;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text-secondary);
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.rail9-cargo__item:hover,
.rail9-cargo__item.is-active {
  background: var(--dark);
  border-color: var(--dark);
  color: var(--white);
}

@media (max-width: 640px) {
  .rail9-cargo__visual, .rail9-map__media { min-height: 220px; }
  .rail9-point { padding: 14px 18px; font-size: 15px; }
}

/* «Другие услуги»: фото и подпись в одной рамке, а не двумя карточками */
.svc-rel--framed {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--dark);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.35s var(--ease-out);
}
.svc-rel--framed:hover { transform: translateY(-4px); }
.svc-rel--framed .svc-rel__media { border-radius: 0; }
.svc-rel--framed .svc-rel__body {
  margin-top: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  flex: 1 1 auto;
}

/* Страница «Реквизиты» */
.req-grid { margin-top: clamp(20px, 2.5vw, 32px); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(560px, 100%), 1fr)); gap: var(--gap-tile); align-items: start; }
.req-card { background: var(--white); border: 1px solid var(--dark); border-radius: var(--radius-lg); padding: clamp(22px, 2.6vw, 34px); min-width: 0; }
.req-card__title { margin: 0 0 8px; font-size: 22px; }
.req-row { display: grid; grid-template-columns: minmax(120px, 190px) minmax(0, 1fr); gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.req-row:last-child { border-bottom: none; }
.req-row__label { color: var(--text-muted); }
.req-row__value { font-size: 16px; line-height: 1.45; color: var(--dark); overflow-wrap: break-word; font-variant-numeric: tabular-nums; }
@media (max-width: 560px) { .req-row { grid-template-columns: 1fr; gap: 4px; } }


@media (min-width: 1100px) {
  .req-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .req-grid .req-card:first-child { grid-row: span 2; }
}

/* «О компании» на главной: профиль и три плитки — в один ряд */
@media (min-width: 1025px) {
  .about-grid { grid-template-columns: 2fr repeat(3, minmax(0, 1fr)); }
  .about-profile { grid-column: span 1; min-height: 0; justify-content: center; }
  .about-profile p { font-size: 20px; }
}
@media (min-width: 769px) and (max-width: 1024px) {
  .about-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .about-profile { grid-column: span 3; min-height: 0; }
}

/* Статьи: тонкая окантовка карточек на главной и в блоге */
.blog-card, .blog-card--home { border: 1px solid var(--dark); }

/* Обращение генерального директора: текст слева, место под фото справа */
.ceo-address {
  margin-top: clamp(20px, 2.5vw, 32px);
  background: var(--white);
  border: 1px solid var(--dark);
  border-radius: var(--radius-lg);
  padding: clamp(22px, 3vw, 44px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 360px);
  gap: clamp(8px, 1vw, 16px);
  align-items: stretch;
}
.ceo-address__text { min-width: 0; display: flex; flex-direction: column; }
.ceo-address__text p { margin: 16px 0 0; font-size: 17px; line-height: 1.65; color: var(--text-secondary); max-width: 68ch; }
.ceo-address__text p:first-child { margin-top: 0; }
.ceo-address__text .ceo-address__greeting { font-size: clamp(20px, 2vw, 26px); font-weight: 700; line-height: 1.25; color: var(--dark); }
.ceo-address__sign { margin-top: auto; padding-top: clamp(22px, 2.5vw, 32px); display: flex; flex-direction: column; gap: 6px; }
.ceo-address__author { font-family: var(--font-heading); font-size: 18px; font-weight: 700; color: var(--dark); }
.ceo-address__role { color: var(--text-muted); }
.ceo-address__photo { min-width: 0; }
.ceo-address__photo img { display: block; width: 100%; height: 100%; min-height: 320px; aspect-ratio: 4 / 5; border-radius: var(--radius-lg); object-fit: cover; object-position: center top; background: var(--white); }
@media (max-width: 820px) {
  .ceo-address { grid-template-columns: minmax(0, 1fr); }
  .ceo-address__photo { max-width: 320px; }
}

/* ===== Уведомление о cookie =====
   Компактная карточка в углу, а не полноширинная плашка — так она не
   спорит с нижней мобильной кнопкой «Получить консультацию» за то же
   место экрана. Скрыта через visibility/opacity (не атрибутом hidden),
   тот же приём, что у .modal — чтобы можно было плавно проявить и убрать. */
.cookie-banner {
  position: fixed;
  left: 20px;
  right: 20px;
  bottom: 20px;
  z-index: 150;
  max-width: 420px;
  background: var(--dark);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: var(--shadow-lg);
  visibility: hidden;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.3s var(--ease-out), transform 0.3s var(--ease-out), visibility 0s linear 0.3s;
}
.cookie-banner.is-visible {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  transition: opacity 0.3s var(--ease-out), transform 0.3s var(--ease-out);
}
.cookie-banner p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--text-on-dark-muted); }
.cookie-banner a { color: var(--white); text-decoration: underline; }
.cookie-banner a:hover { color: var(--accent-2); }
.cookie-banner .btn { align-self: flex-start; }

@media (max-width: 768px) {
  /* На мобильном ширина под контейнер, а снизу — запас под липкую кнопку
     «Получить консультацию» (.mobile-cta), иначе баннер лёг бы поверх неё. */
  .cookie-banner { left: 12px; right: 12px; bottom: 84px; max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
  .cookie-banner { transition: none; }
}
