/* ============================================
   GK Westa — Main Stylesheet
   Pixel-perfect replica based on original Tilda source
   ============================================ */

:root {
  /* Colors */
  --color-primary: #2563EB;
  --color-primary-hover: #1D4ED8;
  --color-dark: #1a2744;
  --color-dark-text: #2f2f2f;
  --color-gray-text: #676767;
  --color-medium-gray: #697585;
  --color-white: #ffffff;
  --color-bg: #f5f7fa;
  --color-bg-alt: #ffffff;
  --color-bg-muted: #e4e8ee;
  --color-bg-primary-light: #e0edff;
  --color-error: #e53935;
  --color-error-light: #ff6b6b;

  /* Typography */
  --font-primary: 'Manrope', Arial, sans-serif;
  --font-heading: var(--font-primary); /* alias — одна гарнитура на весь сайт */

  /* Layout */
  --container-max: 1200px;
  --container-padding: 20px;

  /* Spacing (8px base) */
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 32px;
  --space-xl: 48px;
  --space-2xl: 64px;
  --space-section: 56px;

  /* Radii */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-pill: 999px;

  /* Borders */
  --color-border-subtle: rgba(15, 23, 42, 0.08);

  /* Shadows — базовые (header, dropdown, модалки) */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.1);
  --shadow-lg: 0 12px 32px rgba(0,0,0,0.12);

  /*
   * Hover-правило пропорциональности карточек (см. design-system.md §7):
   *
   * Крупные (≥200px min-height, большие карточки):
   *   transform: translateY(var(--card-hover-lift));  // -6px
   *   box-shadow: var(--shadow-card-hover-{light|dark|accent});
   *   применяется к: .advantage-card (в .advantages--large), .service-card__img, .review-card
   *
   * Мелкие (<200px min-height, legacy):
   *   transform: translateY(-3px);
   *   box-shadow: var(--shadow-lg);           // для direction, tariff, team
   *   или var(--shadow-card-hover);           // для advantage/gallery/blog (крупные legacy)
   *   применяется к: .direction-card (64px), .tariff-row, .team-card
   */

  /* Shadows — большие карточки (≥200px min-height) */
  --shadow-card-rest: 0 1px 2px rgba(16,24,40,0.04), 0 2px 8px rgba(16,24,40,0.04);
  --shadow-card-hover-light: 0 4px 12px rgba(16,24,40,0.06), 0 16px 40px rgba(47,128,237,0.10);
  --shadow-card-hover-dark: 0 4px 12px rgba(0,0,0,0.30), 0 16px 40px rgba(47,128,237,0.20);
  --shadow-card-hover-accent: 0 4px 12px rgba(47,128,237,0.20), 0 16px 48px rgba(47,128,237,0.30);

  /* Shadows — legacy карточки (hover на белом фоне) */
  --shadow-card-hover: 0 12px 32px rgba(0,0,0,0.18);

  /* Shadows — bullet-блоки (типы грузов, процессы) */
  --shadow-bullet-light: 0 12px 32px rgba(47,128,237,0.15);
  --shadow-bullet-dark: 0 12px 32px rgba(0,0,0,0.25);

  /* Shadows — кнопки и focus-состояния */
  --shadow-btn-hover: 0 4px 16px rgba(47,128,237,0.3);
  --shadow-focus: 0 0 0 3px rgba(47,128,237,0.12);

  /* Text on image overlays — minimum opacity */
  --text-on-image: rgba(255,255,255,0.88);
  --text-on-image-muted: rgba(255,255,255,0.7);

  /* Typography — headings */
  --heading-hero: clamp(44px, 5.5vw, 72px);
  --heading-h1: clamp(32px, 4vw, 48px);
  --heading-section-lg: clamp(28px, 3.4vw, 44px);
  --heading-section: clamp(24px, 2.8vw, 36px);
  --heading-h3: clamp(22px, 2.2vw, 28px);
  --heading-h4: 22px;
  --heading-card: clamp(20px, 2.2vw, 26px);

  /* Typography — statistics */
  --text-stat: clamp(32px, 3.5vw, 48px);
  --text-stat-sm: 20px;

  /* Typography — body */
  --text-lg: 18px;
  --text-base: 16px;
  --text-card: 15px;
  --text-sm: 14px;
  --text-xs: 13px;
  --text-label: 12px;

  /* Typography — line-height */
  --lh-tight: 1.05;
  --lh-heading: 1.1;
  --lh-heading-md: 1.15;
  --lh-heading-sm: 1.25;
  --lh-heading-xs: 1.3;
  --lh-body: 1.55;
  --lh-body-relaxed: 1.6;
  --lh-caption: 1.45;

  /* Typography — letter-spacing */
  --ls-tight: -0.02em;
  --ls-tight-md: -0.015em;
  --ls-tight-sm: -0.01em;
  --ls-tight-xs: -0.005em;
  --ls-normal: 0;
  --ls-wide: 0.08em;

  /* Typography — weights */
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;

  /* Card layout */
  --card-radius: 20px;
  --card-padding: clamp(24px, 3vw, 40px);
  --card-min-height: 260px;
  --card-hover-lift: -6px;

  /* Icon system */
  --icon-container-size: 52px;
  --icon-container-radius: 14px;
  --icon-size: 28px;
  --icon-bg-size: 200px;

  /* Misc */
  --header-height: 75px;
  --transition: 0.3s ease-in-out;
}

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

html { scroll-behavior: smooth; }

html {
  overflow-x: clip;
}

body {
  font-family: var(--font-primary);
  color: var(--color-dark-text);
  font-size: var(--text-base);
  font-weight: var(--fw-regular);
  line-height: var(--lh-body);
  background: var(--color-white);
  overflow-x: clip;
  position: relative;
  width: 100%;
}

/* --- Headings — base styles via design tokens --- */
h1, .h1 {
  font-family: var(--font-heading);
  font-size: var(--heading-h1);
  font-weight: var(--fw-bold);
  line-height: var(--lh-heading);
  letter-spacing: var(--ls-tight-md);
}

h2, .h2 {
  font-family: var(--font-heading);
  font-size: var(--heading-section);
  font-weight: var(--fw-bold);
  line-height: var(--lh-heading-md);
  letter-spacing: var(--ls-tight-sm);
}

h3, .h3 {
  font-family: var(--font-heading);
  font-size: var(--heading-h3);
  font-weight: var(--fw-semibold);
  line-height: var(--lh-heading-sm);
  letter-spacing: var(--ls-tight-xs);
}

h4, .h4 {
  font-family: var(--font-heading);
  font-size: var(--heading-h4);
  font-weight: var(--fw-semibold);
  line-height: var(--lh-heading-xs);
}

.h1--hero,
.hero h1 {
  font-size: var(--heading-hero);
  font-weight: var(--fw-bold);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-tight);
}

.h2--lg {
  font-size: var(--heading-section-lg);
  line-height: var(--lh-heading);
  letter-spacing: var(--ls-tight-sm);
}

a { text-decoration: none; color: inherit; transition: color var(--transition); }
ul, ol { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
button { cursor: pointer; border: none; font-family: inherit; background: none; }
input, textarea, select { font-family: inherit; border: none; outline: none; }

/* A11y utility: скрыть визуально, оставить для скринридеров/поисковиков */
.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;
}

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

/* Якорная навигация: отступ под прозрачным хедером (~113px десктоп, 70px моб.) */
section[id] { scroll-margin-top: 120px; }
@media screen and (max-width: 959px) {
  section[id] { scroll-margin-top: 80px; }
}

/* Плавный скролл для anchor-ссылок (включая Phosphor icons при prefers-reduced-motion) */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* ============================================
   TOP BAR (blue strip with marquee)
   ============================================ */
.top-bar {
  background: var(--color-primary);
  color: var(--color-white);
  height: 34px;
  overflow: hidden;
  font-size: var(--text-sm);
}

.top-bar__marquee {
  display: flex;
  white-space: nowrap;
  animation: marquee 25s linear infinite;
  height: 34px;
  align-items: center;
}

.top-bar__marquee span {
  padding: 0 var(--space-xl);
  flex-shrink: 0;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ============================================
   HEADER — transparent over hero
   ============================================ */
.header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: transparent;
}

/* Row 1: logo + contacts + buttons */
.header__top {
  transition: background var(--transition), box-shadow var(--transition);
}

.header__top.is-sticky {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: var(--color-white);
  box-shadow: var(--shadow-md);
}

.header__top.is-sticky .header__logo-img {
  filter: none;
}

.header__top.is-sticky .header__logo-tagline {
  color: var(--color-gray-text);
}

.header__top.is-sticky .header__phone {
  color: var(--color-dark-text);
}

.header__top.is-sticky .header__email {
  color: var(--color-dark-text);
}

.header__top.is-sticky .header__schedule-label {
  color: var(--color-dark-text);
}

.header__top.is-sticky .header__schedule {
  color: var(--color-gray-text);
}

.header__top.is-sticky .header__btn--outline {
  color: var(--color-dark-text);
  border-color: var(--color-dark-text);
}

.header__top.is-sticky .header__btn--outline:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-white);
}

.header__top.is-sticky .burger span {
  background: var(--color-dark-text);
}

.header__top .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  gap: 20px;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  margin-right: auto;
}

.header__logo-img {
  height: 44px;
  width: auto;
  object-fit: contain;
}

.header__logo-tagline {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.8);
  line-height: 1.35;
}

.header__info {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: var(--text-sm);
}

.header__info-block {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.header__phone {
  font-weight: var(--fw-bold);
  color: var(--color-white);
  white-space: nowrap;
  transition: color var(--transition);
}

.header__phone:hover,
.header__top.is-sticky .header__phone:hover {
  color: var(--color-primary);
}

.header__email {
  color: rgba(255,255,255,0.85);
  white-space: nowrap;
  font-size: var(--text-xs);
  transition: color var(--transition);
}

.header__email:hover,
.header__top.is-sticky .header__email:hover {
  color: var(--color-primary);
}

.header__schedule-label {
  font-weight: var(--fw-bold);
  color: var(--color-white);
  white-space: nowrap;
}

.header__schedule {
  color: rgba(255,255,255,0.8);
  white-space: nowrap;
  font-size: var(--text-xs);
}

.header__buttons {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.header__btn {
  font-size: var(--text-sm);
  font-weight: var(--fw-medium);
  padding: 10px 22px;
  border: 2px solid transparent;
  border-radius: var(--radius-md);
  transition: all var(--transition);
  white-space: nowrap;
  line-height: 1.4;
  display: inline-block;
}

.header__btn--filled {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-white);
}

.header__btn--filled:hover {
  background: var(--color-primary-hover);
  border-color: var(--color-primary-hover);
}

.header__btn--outline {
  background: transparent;
  color: var(--color-white);
  border-color: rgba(255,255,255,0.4);
}

.header__btn--outline:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.6);
  color: var(--color-white);
}

/* Row 2: navigation */
.header__nav {
  border-top: 1px solid rgba(255,255,255,0.1);
}

.header__nav .container {
  display: flex;
  align-items: center;
}

.nav {
  display: flex;
  align-items: center;
}

.nav__item { position: relative; }

.nav__link {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 14px 14px;
  font-size: var(--text-sm);
  font-weight: var(--fw-regular);
  color: rgba(255,255,255,0.8);
  font-family: var(--font-primary);
  white-space: nowrap;
  transition: color var(--transition);
  position: relative;
  border-radius: 99px;
}

.nav__link:hover {
  color: var(--color-white);
}

.nav__link::before {
  content: '';
  position: absolute;
  inset: 4px 0;
  border-radius: 99px;
  background: rgba(255,255,255,0);
  transition: background var(--transition);
}

.nav__link:hover::before {
  background: rgba(255,255,255,0.08);
}

.nav__link svg {
  width: 10px;
  height: 10px;
  transition: transform var(--transition);
}

.nav__item:hover .nav__link svg {
  transform: rotate(180deg);
}

/* Dropdown — light style */
.nav__dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: var(--space-xs);
  min-width: 260px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all var(--transition);
  z-index: 200;
}

.nav__item:hover .nav__dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav__dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  font-size: var(--text-sm);
  font-weight: var(--fw-regular);
  font-family: var(--font-primary);
  color: var(--color-dark-text);
  border-radius: var(--radius-sm);
  transition: background var(--transition), color var(--transition);
}

.nav__dropdown-item:hover {
  background: var(--color-bg);
  color: var(--color-primary);
}

.nav__dropdown-icon {
  width: 22px;
  height: 22px;
  font-size: 22px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
}

.nav__dropdown--wide {
  min-width: 640px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: var(--space-sm);
  padding: var(--space-sm);
}

.nav__dropdown-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav__dropdown-group-title {
  padding: 4px 12px 8px;
  font-size: var(--text-label);
  font-weight: var(--fw-medium);
  font-family: var(--font-primary);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--color-medium-gray);
}

.nav__dropdown-group-title:not(:first-child) {
  margin-top: var(--space-xs);
}

/* Burger */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 10px;
}

.burger span {
  width: 24px;
  height: 2px;
  background: var(--color-white);
  border-radius: 2px;
  transition: all var(--transition);
}

.burger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.burger.active span:nth-child(2) { opacity: 0; }
.burger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: var(--header-height);
  left: 0; right: 0; bottom: 0;
  background: var(--color-white);
  z-index: 999;
  overflow-y: auto;
  padding: 20px;
}

.mobile-menu.active { display: block; }

.mobile-menu__item { border-bottom: 1px solid #eee; }

.mobile-menu__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  font-size: var(--text-base);
  font-weight: var(--fw-medium);
  color: var(--color-dark-text);
}

.mobile-menu__sub { display: none; padding: 0 0 10px 15px; }
.mobile-menu__sub.active { display: block; }
.mobile-menu__sub a {
  display: block;
  padding: 8px 0;
  font-size: var(--text-sm);
  color: var(--color-gray-text);
}
.mobile-menu__sub-group-title {
  display: block;
  padding: 12px 0 4px;
  font-size: var(--text-label);
  font-weight: var(--fw-medium);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--color-medium-gray);
}
.mobile-menu__sub-group-title:first-child { padding-top: 4px; }

/* Контакты сверху мобильного меню */
.mobile-menu__contacts {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0 0 var(--space-md);
  margin-bottom: var(--space-sm);
  border-bottom: 1px solid var(--color-border-subtle);
}
.mobile-menu__phone {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: var(--fw-bold);
  color: var(--color-dark-text);
  letter-spacing: var(--ls-tight-sm);
}
.mobile-menu__email {
  font-size: var(--text-sm);
  color: var(--color-gray-text);
}
.mobile-menu__schedule {
  font-size: var(--text-xs);
  color: var(--color-medium-gray);
  margin-top: 2px;
}

/* ============================================
   HERO SECTION
   Dark bg with photo overlay, white text, full-width
   ============================================ */
.hero {
  position: relative;
  /* Единый диагональный паттерн для всех hero (главная + сервисные + направления):
     слева плотно под текстом (читаемость AAA), справа смягчение —
     на full-width макетах работает как «свет из-за камеры»,
     на двухколоночных (.hero--with-form) даёт глубину под белой формой.
     Цвет — холодный graphite (R14 G20 B32): едва заметный сдвиг в синий,
     перекликается с фирменным --color-dark #1a2744 без насыщенного фильтра.
     ОТКАТ к нейтральному почти-чёрному: заменить rgba(14, 20, 32, ...) → rgba(15, 15, 20, ...). */
  --hero-overlay: linear-gradient(105deg,
                    rgba(14, 20, 32, 0.71) 0%,
                    rgba(14, 20, 32, 0.63) 45%,
                    rgba(14, 20, 32, 0.40) 100%);
  background: var(--hero-overlay),
              url('../images/heroes/hero_bg1.jpg') center/cover no-repeat;
  color: var(--color-white);
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 180px 0 80px;
}

.hero--home {
  align-items: flex-start;
  padding-top: 200px;
}

.hero__content {
  width: 100%;
}

.hero__title {
  font-family: var(--font-heading);
  font-size: var(--heading-hero);
  font-weight: var(--fw-bold);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-tight);
  color: var(--color-white);
  margin-bottom: var(--space-md);
}

.hero__accent {
  text-decoration: underline;
  text-decoration-color: var(--color-white);
  text-decoration-thickness: 3px;
  text-underline-offset: 6px;
  white-space: nowrap;
}

.hero__subtitle {
  margin-bottom: var(--space-lg);
  max-width: 820px;
}

.hero__subtitle p {
  font-size: var(--text-base);
  font-weight: var(--fw-regular);
  line-height: var(--lh-body-relaxed);
  color: var(--text-on-image);
  margin-bottom: 2px;
}

.hero__cta {
  margin-bottom: var(--space-lg);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--color-primary);
  color: var(--color-white);
  padding: 16px 44px;
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: var(--fw-semibold);
  font-family: var(--font-primary);
  line-height: var(--lh-body);
  transition: background 0.18s;
}

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

.hero__badges {
  display: flex;
  gap: var(--space-sm);
  align-items: center;
}

.hero__badge {
  display: inline-block;
  transition: opacity var(--transition);
}

.hero__badge:hover {
  opacity: 0.8;
}

.hero__badge img {
  height: 58px;
  width: auto;
}

/* ============================================
   SITE HEADER — новый однострочный header
   (внутренние страницы; главная использует .hv3)
   ============================================ */

.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  font-family: var(--font-primary);
}

/* --- Top strip --- */
.site-header__strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(20px, calc((100vw - 1200px) / 2 + 20px));
  height: 40px;
  background: transparent;
  border-bottom: 1px solid rgba(255,255,255,0.11);
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,0.82);
  transition: height 0.2s, opacity 0.2s;
}

.site-header__strip-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.site-header__strip-item a {
  color: rgba(255,255,255,0.82);
  transition: color 0.15s;
}
.site-header__strip-item a:hover { color: var(--color-white); }
.site-header__strip-sep { opacity: 0.35; }

/* --- Main bar --- */
.site-header__bar {
  display: flex;
  align-items: center;
  padding: 0 max(20px, calc((100vw - 1200px) / 2 + 20px));
  height: 72px;
  background: transparent;
  border-bottom: 1px solid rgba(255,255,255,0.11);
  gap: 40px;
  transition: background 0.2s, box-shadow 0.2s, height 0.2s;
}

.site-header__logo { display: flex; align-items: center; flex-shrink: 0; }
.site-header__logo-img { height: 36px; width: auto; display: block; }

.site-header__nav {
  display: flex;
  align-items: center;
  flex: 1;
}

/* Nav link colors on dark bg */
.site-header .nav__link {
  color: rgba(255,255,255,0.82);
}
.site-header .nav__link:hover,
.site-header .nav__link--active {
  color: var(--color-white);
}
.site-header .nav__link svg { stroke: rgba(255,255,255,0.5); }

/* Restore dropdown to light colors */
.site-header .nav__dropdown-item       { color: var(--color-dark-text); }
.site-header .nav__dropdown-item:hover { color: var(--color-primary); }
.site-header .nav__dropdown-group-title { color: var(--color-medium-gray); }

.site-header__right {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
  flex-shrink: 0;
}

.site-header__btn-outline {
  font-size: 12px;
  font-weight: 500;
  color: rgba(255,255,255,0.82);
  border: 1px solid rgba(255,255,255,0.32);
  background: rgba(255,255,255,0.07);
  padding: 8px 16px;
  border-radius: var(--radius-md);
  transition: border-color 0.18s, background 0.18s, color 0.18s;
  white-space: nowrap;
  display: inline-block;
}
.site-header__btn-outline:hover {
  border-color: rgba(255,255,255,0.6);
  background: rgba(255,255,255,0.13);
  color: var(--color-white);
}

.site-header__btn-filled {
  font-size: 12px;
  font-weight: 600;
  color: var(--color-white);
  background: var(--color-primary);
  padding: 8px 18px;
  border-radius: var(--radius-md);
  display: inline-block;
  transition: background 0.18s;
  white-space: nowrap;
}
.site-header__btn-filled:hover {
  background: var(--color-primary-hover);
  color: var(--color-white);
}

/* --- Sticky white state --- */
.site-header.is-sticky {
  position: fixed;
}

.site-header.is-sticky .site-header__strip {
  height: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  border-bottom: none;
}

.site-header.is-sticky .site-header__bar {
  background: var(--color-white);
  box-shadow: 0 2px 16px rgba(0,0,0,0.10);
  border-bottom: 1px solid var(--color-border-subtle);
  height: 64px;
}

.site-header.is-sticky .site-header__logo-img {
  content: url('/assets/images/logos/logo_blue.svg');
}

.site-header.is-sticky .nav__link {
  color: var(--color-dark-text);
}
.site-header.is-sticky .nav__link:hover,
.site-header.is-sticky .nav__link--active {
  color: var(--color-primary);
}
.site-header.is-sticky .nav__link svg { stroke: var(--color-dark-text); }

.site-header.is-sticky .site-header__btn-outline {
  color: var(--color-dark-text);
  border-color: rgba(0,0,0,0.2);
  background: transparent;
}
.site-header.is-sticky .site-header__btn-outline:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: var(--color-bg-primary-light);
}

.site-header.is-sticky .site-header__btn-filled,
.site-header--home.is-sticky .site-header__btn-filled {
  background: var(--color-primary);
  color: var(--color-white);
}
.site-header.is-sticky .site-header__btn-filled:hover,
.site-header--home.is-sticky .site-header__btn-filled:hover {
  background: var(--color-primary-hover);
}

/* --- Responsive --- */
@media (max-width: 1279px) {
  .site-header__bar   { gap: 24px; }
}

@media (max-width: 767px) {
  .site-header__strip { display: none; }
  .site-header__bar   { padding: 0 20px; height: 56px; gap: 12px; }
  .site-header__nav   { display: none; }
  .site-header__btn-outline { display: none; }
  .site-header.is-sticky .site-header__bar { height: 56px; }
}

/* Homepage sticky header — hidden until hero scrolls away */
.site-header--home {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transform: translateY(-100%);
  transition: transform 0.25s ease;
  pointer-events: none;
}

.site-header--home .site-header__strip { display: none; }

.site-header--home.is-sticky {
  position: fixed;
  transform: translateY(0);
  pointer-events: auto;
  background: var(--color-white);
}

.site-header--home.is-sticky .site-header__bar {
  background: var(--color-white);
  box-shadow: 0 2px 16px rgba(0,0,0,0.10);
  border-bottom: 1px solid var(--color-border-subtle);
  height: 64px;
}

.site-header--home.is-sticky .site-header__logo-img {
  content: url('/assets/images/logos/logo_blue.svg');
}

.site-header--home.is-sticky .nav__link {
  color: var(--color-dark-text);
}
.site-header--home.is-sticky .nav__link:hover,
.site-header--home.is-sticky .nav__link--active {
  color: var(--color-primary);
}
.site-header--home.is-sticky .nav__link svg { stroke: var(--color-dark-text); }

.site-header--home.is-sticky .site-header__btn-outline {
  color: var(--color-dark-text);
  border-color: rgba(0,0,0,0.2);
  background: transparent;
}
.site-header--home.is-sticky .site-header__btn-outline:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: var(--color-bg-primary-light);
}

/* Bridge gap: prevents dropdown from closing when mouse moves from link to dropdown */
.site-header .nav__item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 12px;
}

/* Pill background for sticky (white) header */
.site-header.is-sticky .nav__link:hover::before,
.site-header--home.is-sticky .nav__link:hover::before {
  background: rgba(37, 99, 235, 0.06);
}

/* ============================================
   CLIENTS (separate section below hero)
   ============================================ */
.clients {
  background: var(--color-bg);
  padding: var(--space-lg) 0;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.clients .container {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.clients__title {
  font-size: var(--text-sm);
  font-weight: var(--fw-medium);
  color: var(--color-medium-gray);
  white-space: nowrap;
  flex-shrink: 0;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.clients__carousel {
  position: relative;
  overflow: hidden;
  flex: 1;
  min-width: 0;
}

.clients__track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: clients-scroll 22s linear infinite;
  will-change: transform;
}

.clients__carousel:hover .clients__track {
  animation-play-state: paused;
}

.clients__logo {
  height: 32px;
  width: auto;
  flex-shrink: 0;
  margin-right: var(--space-xl);
  opacity: 0.4;
  filter: grayscale(100%);
  transition: opacity var(--transition), filter var(--transition);
}

.clients__logo:hover {
  opacity: 0.8;
  filter: grayscale(0%);
}

.clients__logo--lg {
  height: 64px;
}

.clients__fade {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 48px;
  z-index: 1;
  pointer-events: none;
}

.clients__fade--left {
  left: 0;
  background: linear-gradient(to right, var(--color-bg), transparent);
}

.clients__fade--right {
  right: 0;
  background: linear-gradient(to left, var(--color-bg), transparent);
}

@keyframes clients-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ============================================
   ADVANTAGES — bento grid (2 + 3)
   ============================================ */
.advantages,
.cargo-types {
  padding: var(--space-xl) 0 var(--space-section);
  background: var(--color-bg);
}

.advantages__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--space-sm);
}

/* Row 1: card 1 spans 4 cols, card 2 spans 2 cols */
.advantages__grid .advantage-card:nth-child(1) { grid-column: span 4; }
.advantages__grid .advantage-card:nth-child(2) { grid-column: span 2; }

/* Row 2: cards 3-5 each span 2 cols */
.advantages__grid .advantage-card:nth-child(3) { grid-column: span 2; }
.advantages__grid .advantage-card:nth-child(4) { grid-column: span 2; }
.advantages__grid .advantage-card:nth-child(5) { grid-column: span 2; }

/* Base card */
.advantage-card {
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  transition: transform var(--transition), box-shadow var(--transition);
  border: none;
  outline: none;
  position: relative;
  overflow: hidden;
}

.advantage-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card-hover);
}

/* Light card (white bg) */
.advantage-card--light {
  background: var(--color-white);
  color: var(--color-dark-text);
}

.advantage-card--light .advantage-card__title {
  color: var(--color-dark-text);
}

.advantage-card--light .advantage-card__text {
  color: var(--color-gray-text);
}

/* Dark card (navy bg) */
.advantage-card--dark {
  background: var(--color-dark);
  color: var(--color-white);
}

.advantage-card--dark .advantage-card__title {
  color: var(--color-white);
}

.advantage-card--dark .advantage-card__text {
  color: rgba(255,255,255,0.7);
}

/* Muted card (light gray bg) */
.advantage-card--muted {
  background: var(--color-bg-muted);
  color: var(--color-dark-text);
}

.advantage-card--muted .advantage-card__title {
  color: var(--color-dark-text);
}

.advantage-card--muted .advantage-card__text {
  color: var(--color-gray-text);
}

/* Accent card (blue gradient bg) */
.advantage-card--accent {
  background: linear-gradient(135deg, #2563EB 0%, #1B4FCC 100%);
  color: var(--color-white);
}

.advantage-card--accent .advantage-card__title {
  color: var(--color-white);
}

.advantage-card--accent .advantage-card__text {
  color: rgba(255,255,255,0.85);
}

/* Icon */
.advantage-card__icon {
  margin-bottom: var(--space-sm);
}

/* Title */
.advantage-card__title {
  font-family: var(--font-heading);
  font-size: var(--heading-card);
  font-weight: var(--fw-semibold);
  line-height: var(--lh-heading-sm);
  letter-spacing: var(--ls-tight-sm);
  margin-bottom: var(--space-xs);
}

/* Text */
.advantage-card__text {
  font-size: var(--text-sm);
  font-weight: var(--fw-regular);
  line-height: var(--lh-body-relaxed);
  margin: 0;
}

.advantage-card__text + .advantage-card__text {
  margin-top: var(--space-xs);
}

/* Inline links inside card text */
.advantage-card__text a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: opacity 0.2s ease;
}

.advantage-card--light .advantage-card__text a,
.advantage-card--muted .advantage-card__text a {
  color: var(--color-primary);
}

.advantage-card--dark .advantage-card__text a,
.advantage-card--accent .advantage-card__text a {
  color: #fff;
}

.advantage-card__text a:hover {
  opacity: 0.7;
}

/* Stat element inside card */
.advantage-card__stat {
  font-size: var(--text-card);
  color: var(--color-gray-text);
  margin-bottom: var(--space-xs);
  line-height: var(--lh-heading-xs);
}

.advantage-card__number {
  font-family: var(--font-heading);
  font-size: var(--text-stat);
  font-weight: var(--fw-bold);
  color: var(--color-primary);
}

/* Responsive */
@media screen and (max-width: 959px) {
  .advantages__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .advantages__grid .advantage-card:nth-child(1) { grid-column: span 2; }
  .advantages__grid .advantage-card:nth-child(2) { grid-column: span 2; }
  .advantages__grid .advantage-card:nth-child(3) { grid-column: span 1; }
  .advantages__grid .advantage-card:nth-child(4) { grid-column: span 1; }
  .advantages__grid .advantage-card:nth-child(5) { grid-column: span 2; }
}

@media screen and (max-width: 639px) {
  .advantages__grid {
    grid-template-columns: 1fr;
  }
  .advantages__grid .advantage-card { grid-column: span 1 !important; }
}

/* ============================================
   ADVANTAGES — Enhanced Bento (большие карточки)
   Scoped via .advantages--large modifier. Базовый .advantages остаётся для обёртки секции.
   ============================================ */

.advantages--large .advantages__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

.advantages--large .advantage-card {
  position: relative;
  padding: var(--card-padding);
  border-radius: var(--card-radius);
  min-height: var(--card-min-height);
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow: hidden;

  transform: translateY(var(--lift, 0));
  transition:
    transform 400ms cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 400ms cubic-bezier(0.16, 1, 0.3, 1);

  box-shadow: var(--shadow-card-rest);
}

/* Hover lift */
.advantages--large .advantage-card:hover { --lift: var(--card-hover-lift); }

/* Variant-specific shadows on hover */
.advantages--large .advantage-card--light:hover,
.advantages--large .advantage-card--muted:hover {
  box-shadow: var(--shadow-card-hover-light);
}

.advantages--large .advantage-card--dark {
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.advantages--large .advantage-card--dark:hover {
  box-shadow: var(--shadow-card-hover-dark);
}

.advantages--large .advantage-card--accent:hover {
  box-shadow: var(--shadow-card-hover-accent);
}

/* Main icon — Phosphor Duotone sizing inside the icon container */
.advantages--large .advantage-card__icon .ph-duotone {
  font-size: var(--icon-size);
  line-height: 1;
}
.advantages--large .advantage-card--light  .advantage-card__icon .ph-duotone,
.advantages--large .advantage-card--muted  .advantage-card__icon .ph-duotone {
  color: var(--color-primary);
}
.advantages--large .advantage-card--dark   .advantage-card__icon .ph-duotone,
.advantages--large .advantage-card--accent .advantage-card__icon .ph-duotone {
  color: var(--color-white);
}

/* Decorative background icon (bottom-right, low-opacity) */
.advantages--large .advantage-card__bg-icon {
  position: absolute;
  right: -20px;
  bottom: -30px;
  font-size: var(--icon-bg-size);
  line-height: 1;
  pointer-events: none;
  z-index: 0;
}
.advantages--large .advantage-card--light  .advantage-card__bg-icon,
.advantages--large .advantage-card--muted  .advantage-card__bg-icon {
  color: #1a2744;
  opacity: 0.05;
}
.advantages--large .advantage-card--dark   .advantage-card__bg-icon,
.advantages--large .advantage-card--accent .advantage-card__bg-icon {
  color: #ffffff;
  opacity: 0.07;
}

/* Ensure content stacks above bg-icon */
.advantages--large .advantage-card__icon,
.advantages--large .advantage-card__title,
.advantages--large .advantage-card__text {
  position: relative;
  z-index: 1;
}

/* Icon container */
.advantages--large .advantage-card__icon {
  width: var(--icon-container-size);
  height: var(--icon-container-size);
  border-radius: var(--icon-container-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 300ms ease-out, transform 300ms ease-out;
  flex-shrink: 0;
  margin-bottom: 0;
}

.advantages--large .advantage-card--light  .advantage-card__icon,
.advantages--large .advantage-card--muted  .advantage-card__icon {
  background: rgba(47, 128, 237, 0.08);
}
.advantages--large .advantage-card--light:hover  .advantage-card__icon,
.advantages--large .advantage-card--muted:hover  .advantage-card__icon {
  background: rgba(47, 128, 237, 0.12);
  transform: scale(1.08);
}

.advantages--large .advantage-card--dark   .advantage-card__icon,
.advantages--large .advantage-card--accent .advantage-card__icon {
  background: rgba(255, 255, 255, 0.10);
}
.advantages--large .advantage-card--dark:hover   .advantage-card__icon,
.advantages--large .advantage-card--accent:hover .advantage-card__icon {
  background: rgba(255, 255, 255, 0.18);
  transform: scale(1.08);
}

/* Title + text — bigger, tighter, editorial */
.advantages--large .advantage-card__title {
  font-size: var(--heading-card);
  font-weight: var(--fw-semibold);
  line-height: var(--lh-heading-sm);
  letter-spacing: var(--ls-tight-sm);
  margin-bottom: 0;
}

.advantages--large .advantage-card__text {
  font-size: var(--text-card);
  font-weight: var(--fw-regular);
  line-height: var(--lh-body);
  max-width: 42ch;
}

/* Focus ring (keyboard nav) */
.advantages--large .advantage-card:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 4px;
}

/* Responsive */
@media screen and (max-width: 959px) {
  .advantages--large .advantages__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (max-width: 639px) {
  .advantages--large .advantages__grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

/* Reduced motion — honor user preference */
@media (prefers-reduced-motion: reduce) {
  .advantages--large .advantage-card {
    opacity: 1 !important;
    translate: 0 0 !important;
    transform: none !important;
    transition: none !important;
  }
  .advantages--large .advantage-card:hover .advantage-card__icon { transform: none; }
}

/* ============================================
   SECTION HEADINGS
   ============================================ */
.section-heading {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.section-heading--left {
  text-align: left;
}

.section-heading__title {
  font-family: var(--font-heading);
  font-size: var(--heading-section);
  font-weight: var(--fw-bold);
  line-height: var(--lh-heading-md);
  letter-spacing: var(--ls-tight-sm);
  margin-bottom: var(--space-sm);
  color: var(--color-dark-text);
}

.section-heading__title--lg {
  font-size: var(--heading-section-lg);
  line-height: var(--lh-heading);
}

.section-heading__subtitle {
  font-size: var(--text-card);
  font-weight: var(--fw-regular);
  color: var(--color-gray-text);
  max-width: 680px;
  margin: 0 auto;
  line-height: var(--lh-body-relaxed);
}

.section-heading--left .section-heading__subtitle {
  margin: 0;
  max-width: none;
}

/* ============================================
   SERVICES (grid cards with images)
   ============================================ */
.services {
  padding: var(--space-xl) 0 var(--space-section);
  background: var(--color-bg);
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.service-card {
  background: transparent;
  border-radius: 0;
  overflow: visible;
  transition: transform 400ms cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  color: var(--color-dark-text);
}

.service-card:hover {
  transform: translateY(var(--card-hover-lift));
}

.service-card:hover .service-card__img {
  box-shadow: var(--shadow-card-hover-light);
}

.service-card:hover .service-card__title {
  color: var(--color-primary);
}

.service-card__img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: var(--card-radius);
  transition: box-shadow 400ms cubic-bezier(0.16, 1, 0.3, 1);
}

.services--containers .service-card__img {
  object-fit: contain;
  background: var(--color-bg);
  padding: var(--space-md);
}


.service-card__body {
  padding: var(--space-sm) 0 0;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.service-card__title {
  font-family: var(--font-heading);
  font-size: var(--heading-card);
  font-weight: var(--fw-semibold);
  line-height: var(--lh-heading-sm);
  letter-spacing: var(--ls-tight-sm);
  margin-bottom: 4px;
  color: var(--color-dark-text);
  transition: color var(--transition);
}

.service-card__text {
  font-size: var(--text-card);
  font-weight: var(--fw-regular);
  color: var(--color-gray-text);
  line-height: var(--lh-body-relaxed);
  flex: 1;
}

/* Bordered card variant — homepage services grid */
.services__grid .service-card {
  background: var(--color-bg-alt);
  border-radius: var(--card-radius);
  overflow: hidden;
  transition: transform 400ms cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 300ms ease;
}

.services__grid .service-card:hover {
  box-shadow: var(--shadow-card-hover-light);
}

.services__grid .service-card:hover .service-card__img {
  box-shadow: none;
}

.services__grid .service-card__img {
  border-radius: 0;
  height: 260px;
}

.services__grid .service-card__body {
  padding: var(--space-sm);
}

.service-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--color-border-subtle);
}

.service-card__tags {
  font-size: 10px;
  font-weight: var(--fw-medium);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--color-gray-text);
  opacity: 0.8;
}

.service-card__arrow {
  color: var(--color-primary);
  font-size: 18px;
  line-height: 1;
  transition: transform 300ms ease;
  flex-shrink: 0;
}

.services__grid .service-card:hover .service-card__arrow {
  transform: translateX(3px);
}

.services__all {
  text-align: left;
}

/* Unified text-link style */
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--color-primary);
  font-size: var(--text-card);
  font-weight: var(--fw-medium);
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
  transition: border-color var(--transition), color var(--transition);
}

.text-link:hover {
  border-bottom-color: var(--color-primary);
}

/* ============================================
   DIRECTIONS — bento + tabs + globe + CTA
   ============================================ */
.directions {
  padding: var(--space-xl) 0 var(--space-section);
  background: var(--color-bg);
}

/* Tabs */
.directions__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  margin: var(--space-md) 0;
  list-style: none;
}

.tab-pill {
  display: inline-flex;
  align-items: center;
  padding: 12px 18px;
  min-height: 44px;
  border-radius: var(--radius-pill);
  background: transparent;
  border: 1px solid var(--color-medium-gray);
  color: var(--color-gray-text);
  font-family: var(--font-primary);
  font-size: var(--text-sm);
  font-weight: var(--fw-medium);
  line-height: 1;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
  opacity: 0.85;
}

.tab-pill:hover {
  border-color: var(--color-dark-text);
  color: var(--color-dark-text);
  opacity: 1;
}

.tab-pill--active,
.tab-pill[aria-selected="true"] {
  background: var(--color-dark-text);
  border-color: var(--color-dark-text);
  color: var(--color-white);
  opacity: 1;
}

.tab-pill:focus-visible {
  outline: none;
  box-shadow: var(--shadow-focus);
}

.directions__label {
  font-family: var(--font-primary);
  font-size: var(--text-label);
  font-weight: var(--fw-semibold);
  line-height: 1.4;
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--color-primary);
  margin: 0 0 var(--space-md);
  display: flex;
  align-items: center;
  gap: 12px;
}

.directions__label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--color-border-subtle);
}

.directions__hero-grid + .directions__label {
  margin-top: var(--space-xl);
}

/* Hero cards grid — крупные карточки (≥200px, система больших карточек) */
.directions__hero-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-sm);
}

.directions__compact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-xs);
}

/* Common card reset */
.direction-card {
  display: flex;
  color: var(--color-dark-text);
  text-decoration: none;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition), color var(--transition), opacity var(--transition);
}

.direction-card:focus-visible {
  outline: none;
  box-shadow: var(--shadow-focus);
}

/* Hero card — крупная, ≥200px → система больших карточек */
.direction-card--hero {
  position: relative;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--space-sm);
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  min-height: 200px;
  box-shadow: var(--shadow-card-rest);
}

.direction-card--hero:hover {
  transform: translateY(var(--card-hover-lift));
  box-shadow: var(--shadow-card-hover-light);
}

.direction-card--hero:hover .direction-card__arrow {
  opacity: 1;
  transform: translateX(4px);
}

.direction-card__head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.direction-card--hero .direction-card__flag {
  width: 36px;
  height: 24px;
  flex-shrink: 0;
  border-radius: 3px;
  object-fit: cover;
  box-shadow: 0 0 0 1px var(--color-border-subtle);
}

.direction-card--hero .direction-card__name {
  font-family: var(--font-primary);
  font-size: var(--heading-card);
  font-weight: var(--fw-semibold);
  line-height: var(--lh-heading-sm);
  letter-spacing: var(--ls-tight-sm);
  color: var(--color-dark-text);
}

.direction-card__arrow {
  margin-left: auto;
  color: var(--color-primary);
  opacity: 0;
  transition: opacity var(--transition), transform var(--transition);
  font-size: 18px;
  line-height: 1;
}

.direction-card__meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: var(--text-sm);
  color: var(--color-gray-text);
}

.direction-card__meta-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--space-sm);
}

.direction-card__meta-label {
  color: var(--color-medium-gray);
}

.direction-card__meta-value {
  color: var(--color-dark-text);
  font-weight: var(--fw-semibold);
  font-variant-numeric: tabular-nums;
}

.direction-card__transport {
  display: flex;
  gap: 8px;
  color: var(--color-medium-gray);
  font-size: 16px;
  line-height: 1;
}

.direction-card__transport i {
  font-size: 18px;
}

/* Compact card — мелкая, <200px → legacy hover */
.direction-card--compact {
  align-items: center;
  gap: 10px;
  background: var(--color-white);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  min-height: 56px;
  font-size: var(--text-card);
  font-weight: var(--fw-medium);
}

.direction-card--compact:hover {
  transform: translateY(-2px);
  border-color: rgba(47, 128, 237, 0.3);
  box-shadow: var(--shadow-md);
  color: var(--color-primary);
}

.direction-card--compact .direction-card__flag {
  width: 24px;
  height: 16px;
  flex-shrink: 0;
  border-radius: 2px;
  object-fit: cover;
  box-shadow: 0 0 0 1px var(--color-border-subtle);
}

/* Hidden state (через фильтр табов) — остаётся в DOM для SEO */
.direction-card--hidden {
  opacity: 0;
  visibility: hidden;
  position: absolute;
  pointer-events: none;
}

/* Отступ между сеткой направлений и встроенным CTA-баннером */
.directions .cta-banner {
  margin-top: var(--space-xl);
}

/* Eyebrow-подзаголовок над .cta-banner__title (контекст overlay-баннера) */
.cta-banner__eyebrow {
  font-size: var(--text-sm);
  font-weight: var(--fw-medium);
  color: var(--text-on-image-muted);
  margin-bottom: var(--space-xs);
}

/* ============================================
   CTA BANNER
   ============================================ */
.cta-banner-section {
  padding: var(--space-xl) 0;
  background: var(--color-bg);
}

.cta-banner {
  background: linear-gradient(rgba(15, 15, 20, 0.55), rgba(15, 15, 20, 0.6)),
              url('../images/backgrounds/loader.jpg') center/cover no-repeat;
  padding: var(--space-2xl) var(--space-xl);
  border-radius: var(--radius-xl);
  color: var(--color-white);
  text-align: left;
}

.cta-banner--avia {
  background: linear-gradient(rgba(15, 15, 20, 0.55), rgba(15, 15, 20, 0.6)),
              url('../images/services/avia-cta.jpg') center/cover no-repeat;
}
.cta-banner--rail {
  background: linear-gradient(rgba(15, 15, 20, 0.55), rgba(15, 15, 20, 0.6)),
              url('../images/services/rail-cta.jpg') center/cover no-repeat;
}
.cta-banner--multimodal {
  background: linear-gradient(rgba(15, 15, 20, 0.55), rgba(15, 15, 20, 0.6)),
              url('../images/services/china_cta_port.jpg') center/cover no-repeat;
}
.cta-banner--auto {
  background: linear-gradient(rgba(15, 15, 20, 0.55), rgba(15, 15, 20, 0.6)),
              url('../images/services/auto-cta.jpg') center/cover no-repeat;
}
.cta-banner--container {
  background: linear-gradient(rgba(15, 15, 20, 0.55), rgba(15, 15, 20, 0.6)),
              url('../images/services/container-cta.jpg') center/cover no-repeat;
}
.cta-banner--ltl {
  background: linear-gradient(rgba(15, 15, 20, 0.55), rgba(15, 15, 20, 0.6)),
              url('../images/services/auto-cta.jpg') center/cover no-repeat;
}
.cta-banner--ship {
  background: linear-gradient(rgba(15, 15, 20, 0.55), rgba(15, 15, 20, 0.6)),
              url('../images/services/ship-cta.jpg') center/cover no-repeat;
}
.cta-banner--tamozhennoe-oformlenie {
  background: linear-gradient(rgba(15, 15, 20, 0.55), rgba(15, 15, 20, 0.6)),
              url('../images/services/customs-cta.jpg') center/cover no-repeat;
}
.cta-banner--sertifikaciya-gruzov {
  background: linear-gradient(rgba(15, 15, 20, 0.55), rgba(15, 15, 20, 0.6)),
              url('../images/services/sertifikaciya-gruzov-cta.jpg') center/cover no-repeat;
}
.cta-banner--strahovanie-gruzov {
  background: linear-gradient(rgba(15, 15, 20, 0.55), rgba(15, 15, 20, 0.6)),
              url('../images/services/ship-cta.jpg') center/cover no-repeat;
}
.cta-banner--autsorsing-ved {
  background: linear-gradient(rgba(15, 15, 20, 0.55), rgba(15, 15, 20, 0.6)),
              url('../images/services/sertifikaciya-gruzov-cta.jpg') center/cover no-repeat;
}
.cta-banner--tamozhennyj-broker {
  background: linear-gradient(rgba(15, 15, 20, 0.55), rgba(15, 15, 20, 0.6)),
              url('../images/services/customs-cta.jpg') center/cover no-repeat;
}
.cta-banner--finansovaya-logistika {
  background: linear-gradient(rgba(15, 15, 20, 0.55), rgba(15, 15, 20, 0.6)),
              url('../images/services/china_cta_port.jpg') center/cover no-repeat;
}
.cta-banner--about {
  background: linear-gradient(rgba(15, 15, 20, 0.55), rgba(15, 15, 20, 0.6)),
              url('../images/services/ship-cta.jpg') center/cover no-repeat;
}
.cta-banner--china {
  background: linear-gradient(rgba(15, 15, 20, 0.55), rgba(15, 15, 20, 0.6)),
              url('../images/services/china_cta_port.jpg') center/cover no-repeat;
}
/* Универсальный CTA-фон для всех направлений: china_cta_port.jpg
   (фото порта с контейнерами). Не качаем страновые *_bg.jpg с Tilda —
   они часто оказываются hero-копией или дублем. При появлении уникального
   port-фото страны — вынести отдельным модификатором. */
.cta-banner--india,
.cta-banner--yuzhnoj-korei,
.cta-banner--vietnam,
.cta-banner--taiwan,
.cta-banner--japan,
.cta-banner--thailand,
.cta-banner--germany,
.cta-banner--france,
.cta-banner--italy,
.cta-banner--spain,
.cta-banner--iran,
.cta-banner--turkey,
.cta-banner--uae,
.cta-banner--egypt,
.cta-banner--usa,
.cta-banner--dprk,
.cta-banner--europe,
.cta-banner--efiopiya,
.cta-banner--ghana {
  background: linear-gradient(rgba(15, 15, 20, 0.55), rgba(15, 15, 20, 0.6)),
              url('../images/services/china_cta_port.jpg') center/cover no-repeat,
              var(--graphite-700, #2a2f3a);
}

/* CTA BG — индекс направлений и услуг (по образцу направлений) */
.cta-banner--directions,
.cta-banner--services {
  background: linear-gradient(rgba(15, 15, 20, 0.55), rgba(15, 15, 20, 0.6)),
              url('../images/services/china_cta_port.jpg') center/cover no-repeat,
              var(--graphite-700, #2a2f3a);
}

.cta-banner__title {
  font-family: var(--font-heading);
  font-size: var(--heading-section);
  font-weight: var(--fw-bold);
  line-height: var(--lh-heading-md);
  letter-spacing: var(--ls-tight-sm);
  margin-bottom: var(--space-md);
  max-width: 650px;
}

/* ============================================
   ABOUT / STATS
   ============================================ */
/* ============================================
   ABOUT — intro + stats + checklists
   ============================================ */
.about {
  padding: var(--space-xl) 0 var(--space-section);
  background: var(--color-bg);
}

/* Hero row: text + floating photo (text wraps around image) */
.about__hero {
  margin-bottom: var(--space-lg);
}
.about__hero > .about__photo,
.about__hero > .about__photo-link {
  float: right;
  width: calc(50% - var(--space-lg) / 2);
  margin: 0 0 var(--space-md) var(--space-lg);
}
/* Clear floats at section boundary so they don't affect next section */
.about .container::after {
  content: "";
  display: block;
  clear: both;
}

.about__title {
  font-family: var(--font-heading);
  font-size: var(--heading-section-lg);
  font-weight: var(--fw-bold);
  line-height: var(--lh-heading);
  letter-spacing: var(--ls-tight-sm);
  color: var(--color-dark-text);
  margin-bottom: var(--space-md);
}

.about__subtitle {
  font-family: var(--font-heading);
  font-size: var(--heading-h3);
  font-weight: var(--fw-semibold);
  line-height: var(--lh-heading-sm);
  letter-spacing: var(--ls-tight-xs);
  color: var(--color-dark-text);
  margin-bottom: var(--space-sm);
}

.about__desc {
  font-size: var(--text-card);
  color: var(--color-gray-text);
  line-height: var(--lh-body-relaxed);
  margin-bottom: var(--space-xs);
}
.about__desc:last-child { margin-bottom: 0; }
.about > .container > .about__hero:last-child { margin-bottom: 0; }

.about__buttons {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-top: var(--space-md);
}


.about__photo-link {
  display: block;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  cursor: zoom-in;
}

.about__photo-link::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3Cline x1='11' y1='8' x2='11' y2='14'/%3E%3Cline x1='8' y1='11' x2='14' y2='11'/%3E%3C/svg%3E") center/48px no-repeat;
  opacity: 0;
  transition: all var(--transition);
  border-radius: var(--radius-lg);
}

.about__photo-link:hover::after {
  background-color: rgba(0,0,0,0.35);
  opacity: 1;
}

.about__photo-link:hover .about__photo {
  transform: scale(1.03);
}

.about__photo {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  transition: transform var(--transition);
}

/* --- Модификатор: страница «Таможенное оформление» (декларация — portrait JPEG)
       Откат: удалить весь блок ниже + класс .about--customs у <section>. --- */
.about--customs .about__photo {
  height: 440px;
  object-position: center top;
}
@media (max-width: 768px) {
  .about--customs .about__photo { height: 360px; }
}

/* --- Модификатор: страница «Сертификация грузов» (сертификат — portrait WebP) --- */
.about--sertifikaciya .about__photo {
  height: 460px;
  object-fit: contain;
  object-position: center top;
  background: var(--color-bg);
  border-radius: var(--radius-lg);
}
@media (max-width: 768px) {
  .about--sertifikaciya .about__photo { height: 340px; }
}

/* --- Модификатор: страница «Страхование грузов» --- */
.about--strahovanie .about__photo {
  height: 400px;
  object-fit: cover;
  object-position: top center;
}
@media (max-width: 768px) {
  .about--strahovanie .about__photo { height: 280px; }
}

/* --- Модификатор: страница «Аутсорсинг ВЭД» --- */
.about--autsorsing-ved .about__photo {
  height: 420px;
  object-fit: cover;
  object-position: center;
}
@media (max-width: 768px) {
  .about--autsorsing-ved .about__photo { height: 280px; }
}

/* --- Модификатор: страница «Финансовая логистика» --- */
.about--finansovaya-logistika .about__photo {
  height: 420px;
  object-fit: cover;
  object-position: center;
}
@media (max-width: 768px) {
  .about--finansovaya-logistika .about__photo { height: 280px; }
}

/* --- Модификатор: страница «Таможенный брокер» --- */
.about--tamozhennyj-broker .about__photo {
  height: 420px;
  object-fit: cover;
  object-position: top center;
}
@media (max-width: 768px) {
  .about--tamozhennyj-broker .about__photo { height: 280px; }
}

/* Photo modal */
.photo-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  cursor: zoom-out;
  transition: all 0.3s ease;
}

.photo-modal.active {
  opacity: 1;
  visibility: visible;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(4px);
}

.photo-modal img {
  max-width: 90%;
  max-height: 90vh;
  border-radius: var(--radius-lg);
  transform: scale(0.92);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.photo-modal__close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  color: var(--color-white);
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
  z-index: 1;
  cursor: pointer;
}

.photo-modal__close:hover {
  background: rgba(255,255,255,0.3);
}

.photo-modal.active img {
  transform: scale(1);
}

/* Stats — single row */
.about__stats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}
/* Когда stats — последний элемент в .about (например /about/),
   убираем хвостовой margin, чтобы между секциями был стандартный 104px */
.about__stats:last-child { margin-bottom: 0; }

.stat-item {
  display: flex;
  flex-direction: column;
  background: var(--color-primary);
  border-radius: var(--radius-lg);
  padding: var(--space-md) var(--space-sm);
  text-align: center;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.stat-item__bg-icon {
  position: absolute;
  right: -8px;
  bottom: -8px;
  width: 80px;
  height: 80px;
  opacity: 0.12;
  pointer-events: none;
}

.stat-item__bg-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

/* Phosphor icons inside stat-item bg-icon — font-based sizing */
.stat-item__bg-icon .ph-fill,
.stat-item__bg-icon .ph-duotone {
  font-size: 80px;
  line-height: 1;
  color: var(--color-white);
}

.stat-item__number {
  font-family: var(--font-heading);
  font-size: var(--text-stat);
  font-weight: var(--fw-bold);
  color: var(--color-white);
  line-height: 1;
  margin-bottom: 6px;
  position: relative;
  z-index: 1;
}

.stat-item__label {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.8);
  line-height: 1.35;
  position: relative;
  z-index: 1;
}

/* Wide stat-item: left-aligned, text title instead of number */
.about__stats--cols-3 { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 1fr; }
.stat-item--wide {
  text-align: left;
  align-items: flex-start;
  padding: var(--space-lg);
}
.stat-item__number--sm {
  font-size: var(--text-stat-sm);
  line-height: var(--lh-heading-xs);
  margin-bottom: var(--space-xs);
}
.stat-item--wide .stat-item__label {
  font-size: var(--text-sm);
  line-height: var(--lh-body);
}
.stat-item--wide .stat-item__bg-icon {
  width: 100px;
  height: 100px;
}


/* Bottom: checklists */
.about__bottom {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

.about__block {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
}

.about__block-title {
  font-family: var(--font-heading);
  font-size: var(--heading-h4);
  font-weight: var(--fw-semibold);
  line-height: var(--lh-heading-xs);
  color: var(--color-dark-text);
  margin-bottom: var(--space-sm);
}

.about__checklist li {
  position: relative;
  padding: 6px 0 6px 24px;
  font-size: var(--text-sm);
  color: var(--color-gray-text);
  line-height: var(--lh-body);
}

.about__checklist li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 12px;
  width: 14px;
  height: 14px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232f80ed' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* Responsive */
@media screen and (max-width: 959px) {
  .about__hero > .about__photo,
  .about__hero > .about__photo-link {
    float: none;
    width: 100%;
    margin: 0 0 var(--space-md);
  }
  .about__photo { height: 240px; }
  .about__stats { grid-template-columns: repeat(3, 1fr); }
  .about__stats--cols-3 { grid-template-columns: 1fr; }
  .about__bottom { grid-template-columns: 1fr; gap: var(--space-sm); }
}

@media screen and (max-width: 639px) {
  .about__stats { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================
   TEAM — showcase with mosaic + name list
   ============================================ */
.team {
  padding: var(--space-xl) 0 var(--space-section);
  background: var(--color-bg);
}

.team__showcase {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: var(--space-lg);
  align-items: start;
}

/* Photo mosaic — 3 columns with offsets */
.team__mosaic {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xs);
}

.team__mosaic-col {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.team__mosaic-col--offset { margin-top: 48px; }
.team__mosaic-col--offset-sm { margin-top: 24px; }

.team__photo {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  transition: opacity var(--transition);
}

.team__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition);
}

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

/* Dimming on hover */
.team__showcase.has-hover .team__photo { opacity: 0.5; }
.team__showcase.has-hover .team__photo.active { opacity: 1; }
.team__showcase.has-hover .team__member { opacity: 0.4; }
.team__showcase.has-hover .team__member.active { opacity: 1; }

/* Name list */
.team__list {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  padding-top: var(--space-xs);
}

.team__member {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  cursor: pointer;
  transition: opacity var(--transition);
}

.team__member-dot {
  width: 14px;
  height: 10px;
  border-radius: var(--radius-sm);
  background: rgba(0,0,0,0.15);
  flex-shrink: 0;
  transition: background var(--transition), width var(--transition);
}

.team__member.active .team__member-dot,
.team__member:hover .team__member-dot {
  background: var(--color-dark-text);
  width: 18px;
}

.team__member-name {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: var(--fw-semibold);
  color: var(--color-dark-text);
  line-height: var(--lh-heading-sm);
  transition: color var(--transition);
}

.team__member.active .team__member-name {
  color: var(--color-dark-text);
}

.team__member-role {
  font-size: var(--text-label);
  font-weight: var(--fw-medium);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-gray-text);
  margin-top: 2px;
}

/* Team responsive */
@media screen and (max-width: 959px) {
  .team__showcase { flex-direction: column; }
  .team__mosaic { width: 100%; justify-content: center; }
  .team__photo { width: 120px; height: 130px; }
}

@media screen and (max-width: 639px) {
  .team__photo { width: 100px; height: 110px; }
  .team__mosaic-col--offset { margin-top: 32px; }
  .team__mosaic-col--offset-sm { margin-top: 16px; }
}

/* ============================================
   REVIEWS — slider
   ============================================ */
.reviews {
  padding: var(--space-xl) 0 var(--space-section);
  background: var(--color-bg);
}

.reviews__slider {
  position: relative;
  overflow: visible;
  clip-path: inset(-50px 0);
}

.reviews__track {
  display: flex;
  gap: var(--space-sm);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 0 max(var(--container-padding), calc((100vw - var(--container-max)) / 2 + var(--container-padding)));
}

.review-card {
  flex: 0 0 calc((min(100vw, var(--container-max)) - var(--container-padding) * 2 - var(--space-sm)) / 2);
}

@media screen and (max-width: 768px) {
  .review-card {
    flex: 0 0 calc(100vw - var(--container-padding) * 2);
  }
}

.review-card__body {
  background: var(--color-white);
  border-radius: var(--card-radius);
  padding: var(--space-lg);
  height: 100%;
  display: flex;
  flex-direction: column;
  transition:
    transform 400ms cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 400ms cubic-bezier(0.16, 1, 0.3, 1);
}

.review-card:hover .review-card__body {
  transform: translateY(var(--card-hover-lift));
  box-shadow: var(--shadow-card-hover-light);
}

.review-card__company {
  font-family: var(--font-heading);
  font-size: var(--heading-h4);
  font-weight: var(--fw-semibold);
  line-height: var(--lh-heading-xs);
  letter-spacing: var(--ls-normal);
  color: var(--color-dark-text);
  margin-bottom: var(--space-xs);
}

.review-card__text {
  font-size: var(--text-card);
  font-weight: var(--fw-regular);
  color: var(--color-gray-text);
  line-height: var(--lh-body-relaxed);
  flex: 1;
  margin-bottom: var(--space-sm);
}

.review-card__link {
  color: var(--color-primary);
  font-size: var(--text-sm);
  font-weight: var(--fw-medium);
  transition: color var(--transition);
}

.review-card__link:hover { color: var(--color-primary-hover); }

/* Controls */
.reviews__arrows {
  display: flex;
  gap: var(--space-xs);
  margin-top: var(--space-sm);
}
.reviews .section-heading { margin-bottom: var(--space-md); }

.reviews__btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-white);
  border: 2px solid transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--color-dark-text);
  transition: all var(--transition);
}

.reviews__btn:hover {
  background: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}
.reviews__btn--prev:hover { transform: translateX(-2px); }
.reviews__btn--next:hover { transform: translateX(2px); }
@media (prefers-reduced-motion: reduce) {
  .reviews__btn--prev:hover,
  .reviews__btn--next:hover { transform: none; }
}

.reviews__dots {
  display: flex;
  justify-content: center;
  gap: var(--space-xs);
  margin-top: var(--space-sm);
}

.reviews__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(0,0,0,0.15);
  border: none;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}

.reviews__dot:hover { background: rgba(0,0,0,0.3); }
.reviews__dot.active {
  background: var(--color-primary);
  transform: scale(1.3);
}

/* ============================================
   CTA FORM
   ============================================ */
/* ============================================
   CTA FORM — banner with bg image
   ============================================ */
.cta-form {
  padding: var(--space-xl) 0 var(--space-section);
  background: var(--color-bg);
}

.cta-form__banner {
  background: linear-gradient(rgba(15, 15, 20, 0.65), rgba(15, 15, 20, 0.75)),
              url('../images/backgrounds/footer.jpg') center/cover no-repeat;
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
  color: var(--color-white);
}

.cta-form__meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: var(--space-md);
  font-size: var(--text-xs);
  color: var(--text-on-image-muted);
}
.cta-form__meta i { font-size: 18px; color: var(--color-primary); }

.cta-form__title {
  font-family: var(--font-heading);
  font-size: var(--heading-section);
  font-weight: var(--fw-bold);
  line-height: var(--lh-heading-md);
  letter-spacing: var(--ls-tight-sm);
  margin-bottom: var(--space-sm);
  color: var(--color-white);
}

.cta-form__subtitle {
  font-size: var(--text-card);
  color: var(--text-on-image);
  line-height: var(--lh-body-relaxed);
}

.cta-form__form {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.cta-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-sm);
}

.cta-form__field {
  position: relative;
}
.cta-form__field i {
  position: absolute;
  left: 14px;
  top: 16px;
  font-size: 18px;
  color: rgba(255,255,255,0.75);
  pointer-events: none;
}

.cta-form__input {
  width: 100%;
  background: rgba(255,255,255,0.3);
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: var(--radius-md);
  padding: 13px 16px 13px 44px;
  color: var(--color-white);
  font-size: var(--text-sm);
  font-family: var(--font-primary);
  font-weight: var(--fw-regular);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.cta-form__input::placeholder {
  color: rgba(255,255,255,0.8);
}

.cta-form__input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: var(--shadow-focus);
}

.cta-form__field.is-invalid .cta-form__input {
  border-color: var(--color-error-light);
  background: rgba(255, 107, 107, 0.18);
  box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.18);
}

.cta-form__field.is-invalid i {
  color: var(--color-error-light);
}

.cta-form__textarea {
  height: 80px;
  resize: vertical;
}

.cta-form__row--full {
  grid-template-columns: 1fr;
}

.cta-form__submit {
  background: var(--color-primary);
  color: var(--color-white);
  padding: 16px var(--space-xl);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: var(--fw-semibold);
  font-family: var(--font-primary);
  line-height: var(--lh-body);
  min-width: 240px;
  transition: background 0.18s;
  align-self: flex-start;
}

.cta-form__submit:hover {
  background: var(--color-primary-hover);
}

.cta-form__agree {
  margin-top: var(--space-xs);
  font-size: var(--text-label);
  color: rgba(255,255,255,0.6);
  line-height: var(--lh-caption);
}
.cta-form__agree a {
  color: rgba(255,255,255,0.85);
  text-decoration: underline;
}
.cta-form__agree a:hover {
  color: var(--color-white);
}

/* Responsive */
@media screen and (max-width: 959px) {
  .cta-form__banner { grid-template-columns: 1fr; padding: var(--space-xl); }
  .cta-form__row { grid-template-columns: 1fr; }
  .cta-form__textarea { grid-column: span 1; }
}

@media screen and (max-width: 639px) {
  .cta-form__banner { padding: var(--space-lg); }
}

/* ============================================
   FOOTER — 3 columns like screenshot
   ============================================ */
.footer {
  background: var(--color-dark);
  color: var(--color-white);
  padding: var(--space-2xl) 0 0;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: var(--space-xl);
  padding-bottom: var(--space-xl);
}

.footer__logo {
  height: 40px;
  width: auto;
  margin-bottom: var(--space-xs);
}

.footer__tagline {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.5);
  margin-bottom: var(--space-md);
}

.footer__info p {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.65);
  margin-bottom: 4px;
  line-height: var(--lh-caption);
}

.footer__info p a,
.footer__info ul a {
  color: rgba(255,255,255,0.65);
  transition: color var(--transition);
}

.footer__info p a:hover,
.footer__info ul a:hover { color: var(--color-white); }

.footer__info .header__btn--filled {
  margin: var(--space-sm) 0;
}

/* Copy email button */
.copy-email-btn {
  display: inline-flex;
  align-items: center;
  background: none;
  border: none;
  cursor: pointer;
  color: inherit;
  opacity: 0.5;
  padding: 0 2px;
  font-size: 14px;
  line-height: 1;
  transition: opacity 0.15s, color 0.15s;
  vertical-align: middle;
  position: relative;
}
.copy-email-btn:hover { opacity: 1; }
.copy-email-btn.copied { opacity: 1; color: #4ade80; }

.copy-email-btn::after {
  content: 'Скопировать email';
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: rgba(15, 23, 42, 0.88);
  color: #fff;
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
  padding: 4px 8px;
  border-radius: 5px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s;
  font-family: var(--font-primary);
  z-index: 9999;
}
.copy-email-btn:hover::after { opacity: 1; }
.copy-email-btn.copied::after { content: 'Скопировано!'; }

.footer__col-title {
  font-size: var(--text-sm);
  font-weight: var(--fw-semibold);
  color: var(--color-white);
  margin-bottom: 12px;
}

.footer__col-title + ul + .footer__col-title,
.footer ul + .footer__col-title,
.footer p + .footer__col-title,
.footer .header__btn--filled + .footer__col-title {
  margin-top: var(--space-md);
}

.footer ul {
  margin-bottom: 0;
}

.footer ul li {
  margin-bottom: 6px;
}

.footer ul li a {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.55);
  transition: color var(--transition);
}

.footer ul li a:hover { color: var(--color-white); }

.footer__sitemap { display: none; }

.footer__copyright {
  text-align: center;
  padding: var(--space-sm) 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.35);
}

/* ============================================
   MODALS
   bg overlay: rgba(0,0,0,0.70)
   container: #f2f2f2, border-radius: 10px
   ============================================ */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: background 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
  background: rgba(0,0,0,0.60);
  backdrop-filter: blur(4px);
}

.modal {
  background: var(--color-white);
  border-radius: var(--radius-xl);
  padding: 40px;
  max-width: 560px;
  width: 90%;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 24px 48px rgba(0,0,0,0.15);
  transform: scale(0.92) translateY(16px);
  opacity: 0;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.25s ease;
}

@media (max-width: 520px) {
  .modal {
    padding: 28px 20px;
  }
}

.modal-overlay.active .modal {
  transform: scale(1) translateY(0);
  opacity: 1;
}

.modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  background: var(--color-bg);
  font-size: 18px;
  color: var(--color-gray-text);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background var(--transition), color var(--transition);
}

.modal__close:hover {
  background: var(--color-bg-muted);
  color: var(--color-dark-text);
}

.modal__title {
  font-family: var(--font-heading);
  font-size: var(--heading-h3);
  font-weight: var(--fw-semibold);
  line-height: var(--lh-heading-sm);
  letter-spacing: var(--ls-tight-xs);
  margin-bottom: 20px;
  color: var(--color-dark-text);
}

.modal__form .form-group {
  margin-bottom: 10px;
}

.modal__form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.modal__form .form-row .form-group {
  margin-bottom: 10px;
}

@media (max-width: 520px) {
  .modal__form .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

.modal__form .form-field {
  position: relative;
}

.modal__form .form-field > i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  color: var(--color-medium-gray);
  pointer-events: none;
  z-index: 1;
}

.modal__form .form-field--textarea > i {
  top: 18px;
  transform: none;
}

.modal__form input,
.modal__form textarea {
  width: 100%;
  height: 52px;
  border: 1px solid rgba(0,0,0,0.12);
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: 20px 12px 6px 42px;
  font-size: var(--text-sm);
  font-family: var(--font-primary);
  font-weight: var(--fw-regular);
  color: var(--color-dark-text);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.modal__form textarea {
  height: 80px;
  resize: vertical;
  padding: 24px 12px 8px 42px;
}

.modal__form input::placeholder,
.modal__form textarea::placeholder {
  color: transparent;
  transition: color 0.15s ease;
}

.modal__form input:focus::placeholder,
.modal__form textarea:focus::placeholder {
  color: var(--color-medium-gray);
}

.modal__form input:focus,
.modal__form textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: var(--shadow-focus);
}

.modal__form .form-label {
  position: absolute;
  left: 42px;
  top: 50%;
  transform: translateY(-50%);
  margin: 0;
  font-size: var(--text-sm);
  font-weight: var(--fw-regular);
  color: var(--color-medium-gray);
  pointer-events: none;
  background: var(--color-white);
  padding: 0 4px;
  transition: top 0.18s ease, left 0.18s ease, font-size 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.modal__form .form-field--textarea .form-label {
  top: 18px;
  transform: none;
}

.modal__form input:focus ~ .form-label,
.modal__form input:not(:placeholder-shown) ~ .form-label,
.modal__form textarea:focus ~ .form-label,
.modal__form textarea:not(:placeholder-shown) ~ .form-label {
  top: -7px;
  left: 32px;
  font-size: 11px;
  font-weight: var(--fw-medium);
  transform: none;
  padding: 0 6px;
}

.modal__form input:focus ~ .form-label,
.modal__form textarea:focus ~ .form-label {
  color: var(--color-primary);
}

.modal__form .form-field.is-invalid input,
.modal__form .form-field.is-invalid textarea {
  border-color: var(--color-error);
  box-shadow: 0 0 0 3px rgba(229, 57, 53, 0.12);
}

.modal__form .form-field.is-invalid > i,
.modal__form .form-field.is-invalid input ~ .form-label,
.modal__form .form-field.is-invalid textarea ~ .form-label {
  color: var(--color-error);
}

@keyframes form-field-shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-6px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(4px); }
}

.cta-form__field.is-invalid,
.modal__form .form-field.is-invalid,
.hero__form-field.is-invalid {
  animation: form-field-shake 0.4s ease;
}

.modal__form .radio-group {
  display: flex;
  gap: 20px;
  margin-bottom: 12px;
}

.modal__form .radio-group label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: var(--text-sm);
  cursor: pointer;
}

.modal__form .radio-group input[type="radio"] {
  width: auto;
  height: auto;
  box-shadow: none;
}

.modal__form .radio-group input[type="radio"]:focus {
  box-shadow: none;
  outline: none;
}

.modal__form .btn-submit {
  width: 100%;
  height: 40px;
  background: var(--color-primary);
  color: var(--color-white);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: var(--fw-medium);
  margin-top: var(--space-xs);
  transition: background 0.18s;
}

.modal__form .btn-submit:hover {
  background: var(--color-primary-hover);
}

.modal__form .form-agree {
  margin-top: var(--space-xs);
  font-size: var(--text-label);
  line-height: var(--lh-caption);
  color: var(--color-medium-gray);
}
.modal__form .form-agree a {
  color: var(--color-primary);
  text-decoration: underline;
}
.modal__form .form-agree a:hover {
  color: var(--color-primary-hover);
}


/* ============================================
   COOKIE BANNER
   ============================================ */
.cookie-banner {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0; right: 0;
  background: var(--color-white);
  box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
  padding: 15px 0;
  z-index: 1800;
}

.cookie-banner.active { display: block; }

.cookie-banner .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.cookie-banner__text {
  font-size: var(--text-sm);
  color: var(--color-gray-text);
}

.cookie-banner__btn {
  background: var(--color-primary);
  color: var(--color-white);
  padding: 8px 24px;
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: var(--fw-regular);
  white-space: nowrap;
  transition: background var(--transition);
}

.cookie-banner__btn:hover { background: var(--color-primary-hover); }

/* ============================================
   RESPONSIVE
   Breakpoints: 1199px, 959px, 639px, 479px
   ============================================ */
@media screen and (max-width: 1199px) {
  .hero__content { max-width: 85%; }
  .header__info { gap: 12px; }
  .header__schedule { display: none; }
}

@media screen and (max-width: 959px) {
  .header__nav { display: none; }
  .burger { display: flex; }
  .header__info { display: none; }
  .header__buttons { display: none; }
  .header__logo-tagline { display: none; }

  .hero__content { max-width: 100%; }
  .hero { min-height: auto; padding: 90px 0 var(--space-xl); }
  .hero--home { padding-top: 90px; }

  /* Directions: планшет — 2×2 топ, 3 колонки компактных */
  .directions__compact-grid { grid-template-columns: repeat(3, 1fr); }

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

@media screen and (max-width: 767px) {
  /* Directions: мобильный — 1 колонка топ, 2 компактных */
  .directions__hero-grid { grid-template-columns: 1fr; }
  .directions__compact-grid { grid-template-columns: repeat(2, 1fr); }

  /* Tabs: горизонтальный скролл вместо переноса */
  .directions__tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    margin-left: calc(var(--container-padding) * -1);
    margin-right: calc(var(--container-padding) * -1);
    padding: 0 var(--container-padding);
  }
  .directions__tabs::-webkit-scrollbar { display: none; }
  .tab-pill { flex-shrink: 0; }
}

@media screen and (max-width: 639px) {
  :root { --header-height: 60px; }

  .clients .container { flex-direction: column; align-items: stretch; gap: var(--space-sm); }
  .clients__title { white-space: normal; font-size: var(--text-xs); letter-spacing: 0.06em; }
  .clients__carousel { flex: 0 0 auto; width: 100%; }
  .clients__logo { height: 26px; margin-right: 36px; }
  .clients__logo--lg { height: 44px; }
  .clients__fade { width: 28px; }

  .hero__badges { gap: var(--space-xs); flex-wrap: wrap; }
  .hero__badge img { height: 40px; }

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

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

@media screen and (max-width: 479px) {
  .about__stats { grid-template-columns: 1fr; }

  .header__logo-img { height: 28px; width: 113px; }

  .hero__badge img { height: 36px; }
}


/* ============================================
   SERVICE PAGE — modifiers & new components
   ============================================ */

/* --- Breadcrumb --- */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: var(--text-label);
  color: rgba(255,255,255,0.45);
  margin-bottom: var(--space-md);
  letter-spacing: 0.02em;
}
.breadcrumb__link {
  color: rgba(255,255,255,0.45);
  transition: color var(--transition);
}
.breadcrumb__link:hover { color: rgba(255,255,255,0.7); }
.breadcrumb__sep { opacity: 0.4; }
.breadcrumb__current { color: rgba(255,255,255,0.6); }

/* --- Service Page Hero (modifier on .hero) ---
   Затемнение тянется из --hero-overlay у .hero, фото — у каждого модификатора своё.
   Так .hero--with-form может переопределить --hero-overlay (горизонтальный нави)
   и при этом сохранить родное фото каждой страницы. */
.hero--service {
  background: var(--hero-overlay),
              url('../images/services/avia.jpg') center / cover no-repeat;
}
.hero--rail {
  background: var(--hero-overlay),
              url('../images/services/rail-hero.jpg') center / cover no-repeat;
}
.hero--multimodal {
  background: var(--hero-overlay),
              url('../images/heroes/hero_multimodal.jpg') center / cover no-repeat;
}
.hero--flagship {
  background: var(--hero-overlay),
              url('../images/services/flagship-hero.jpg') center / cover no-repeat;
}
.hero--auto {
  background: var(--hero-overlay),
              url('../images/services/auto-hero.jpg') center / cover no-repeat;
}
.hero--container {
  background: var(--hero-overlay),
              url('../images/services/container-hero.jpg') center / cover no-repeat;
}
.hero--ltl {
  background: var(--hero-overlay),
              url('../images/services/ltl-hero.jpg') center / cover no-repeat;
}
.hero--ship {
  background: var(--hero-overlay),
              url('../images/services/ship-hero.jpg') center / cover no-repeat;
}
.hero--tamozhennoe-oformlenie {
  background: var(--hero-overlay),
              url('../images/services/customs.jpg') center / cover no-repeat,
              var(--graphite-700, #2a2f3a);
}
.hero--sertifikaciya-gruzov {
  background: var(--hero-overlay),
              url('../images/heroes/hero_sertifikaciya-gruzov.jpg') center / cover no-repeat,
              var(--graphite-700, #2a2f3a);
}
.hero--strahovanie-gruzov {
  background: var(--hero-overlay),
              url('../images/heroes/hero_strahovanie-gruzov.jpg') center / cover no-repeat,
              var(--graphite-700, #2a2f3a);
}
.hero--autsorsing-ved {
  background: var(--hero-overlay),
              url('../images/heroes/hero_autsorsing-ved.jpg') center / cover no-repeat,
              var(--graphite-700, #2a2f3a);
}
.hero--tamozhennyj-broker {
  background: var(--hero-overlay),
              url('../images/heroes/hero_tamozhennyj-broker.jpg') center / cover no-repeat,
              var(--graphite-700, #2a2f3a);
}
.hero--finansovaya-logistika {
  background: var(--hero-overlay),
              url('../images/heroes/hero_finansovaya-logistika.jpg') center / cover no-repeat,
              var(--graphite-700, #2a2f3a);
}
.hero--china {
  background: var(--hero-overlay),
              url('../images/services/china_bg.jpg') center / cover no-repeat;
}
.hero--avto-china {
  background: var(--hero-overlay),
              url('../images/heroes/hero_avto_china.jpg') center / cover no-repeat,
              var(--graphite-700, #2a2f3a);
}
.hero--gonkong {
  background: var(--hero-overlay),
              url('../images/heroes/hero_gonkong.jpg') center / cover no-repeat,
              var(--graphite-700, #2a2f3a);
}
.hero--pekin {
  background: var(--hero-overlay),
              url('../images/heroes/hero_pekin.jpg') center / cover no-repeat,
              var(--graphite-700, #2a2f3a);
}
.hero--manchzhuriya {
  background: var(--hero-overlay),
              url('../images/heroes/hero_manchzhuriya.jpg') center / cover no-repeat,
              var(--graphite-700, #2a2f3a);
}
.hero--guanchzhou {
  background: var(--hero-overlay),
              url('../images/heroes/hero_guanchzhou.jpg') center / cover no-repeat,
              var(--graphite-700, #2a2f3a);
}
.hero--cindao {
  background: var(--hero-overlay),
              url('../images/heroes/hero_cindao.jpg') center / cover no-repeat,
              var(--graphite-700, #2a2f3a);
}
.hero--shanhaj {
  background: var(--hero-overlay),
              url('../images/heroes/hero_shanhaj.jpg') center / cover no-repeat,
              var(--graphite-700, #2a2f3a);
}
.hero--elektronika-china {
  background: var(--hero-overlay),
              url('../images/heroes/hero_elektronika_china.jpg') center / cover no-repeat,
              var(--graphite-700, #2a2f3a);
}
.hero--avi-china {
  background: var(--hero-overlay),
              url('../images/heroes/hero_avi_china.jpg') center / cover no-repeat,
              var(--graphite-700, #2a2f3a);
}
.hero--more-china {
  background: var(--hero-overlay),
              url('../images/heroes/hero_more_china.jpg') center / cover no-repeat,
              var(--graphite-700, #2a2f3a);
}
.hero--rail-china {
  background: var(--hero-overlay),
              url('../images/heroes/hero_rail_china.jpg') center / cover no-repeat,
              var(--graphite-700, #2a2f3a);
}
.hero--sbornye-china {
  background: var(--hero-overlay),
              url('../images/heroes/hero_sbornye_china.jpg') center / cover no-repeat,
              var(--graphite-700, #2a2f3a);
}
.hero--ekspress-china {
  background: var(--hero-overlay),
              url('../images/heroes/hero_express_china.jpg') center / cover no-repeat,
              var(--graphite-700, #2a2f3a);
}
.hero--multi-china {
  background: var(--hero-overlay),
              url('../images/heroes/hero_multi_china.jpg') center / cover no-repeat,
              var(--graphite-700, #2a2f3a);
}
.hero--odezda-china {
  background: var(--hero-overlay),
              url('../images/services/odezda-china-about.jpg') center / cover no-repeat,
              var(--graphite-700, #2a2f3a);
}
.hero--zapchasti-china {
  background: var(--hero-overlay),
              url('../images/services/zapchasti-china-about.jpg') center / cover no-repeat,
              var(--graphite-700, #2a2f3a);
}
.hero--mebel-china {
  background: var(--hero-overlay),
              url('../images/services/mebel-china-about.jpg') center / cover no-repeat,
              var(--graphite-700, #2a2f3a);
}
.hero--oborudovanie-china {
  background: var(--hero-overlay),
              url('../images/services/oborudovanie-china-about.jpg') center / cover no-repeat,
              var(--graphite-700, #2a2f3a);
}
.hero--radiodetal-china {
  background: var(--hero-overlay),
              url('../images/services/radiodetal-china-about.jpg') center / cover no-repeat,
              var(--graphite-700, #2a2f3a);
}
.hero--instrument-china {
  background: var(--hero-overlay),
              url('../images/services/instrument-china-about.jpg') center / cover no-repeat,
              var(--graphite-700, #2a2f3a);
}
.hero--india {
  background: var(--hero-overlay),
              url('../images/heroes/hero_india.jpg') center / cover no-repeat,
              var(--graphite-700, #2a2f3a);
}
.hero--avi-india {
  background: var(--hero-overlay),
              url('../images/heroes/hero_avi_india.jpg') center / cover no-repeat,
              var(--graphite-700, #2a2f3a);
}
.hero--sea-india {
  background: var(--hero-overlay),
              url('../images/heroes/hero_sea_india.jpg') center / cover no-repeat,
              var(--graphite-700, #2a2f3a);
}
.hero--sbornye-india {
  background: var(--hero-overlay),
              url('../images/heroes/hero_sbornye_india.jpg') center / cover no-repeat,
              var(--graphite-700, #2a2f3a);
}
.hero--lekarstva-india {
  background: var(--hero-overlay),
              url('../images/heroes/hero_lekarstva_india.jpg') center / cover no-repeat,
              var(--graphite-700, #2a2f3a);
}
.hero--oborudovanie-india {
  background: var(--hero-overlay),
              url('../images/heroes/hero_oborudovanie_india.jpg') center / cover no-repeat,
              var(--graphite-700, #2a2f3a);
}
.hero--odezhda-india {
  background: var(--hero-overlay),
              url('../images/heroes/hero_odezhda_india.jpg') center / cover no-repeat,
              var(--graphite-700, #2a2f3a);
}
.hero--thailand {
  background: var(--hero-overlay),
              url('../images/heroes/hero_thailand.jpg') center / cover no-repeat,
              var(--graphite-700, #2a2f3a);
}
.hero--dprk {
  background: var(--hero-overlay),
              url('../images/heroes/hero_dprk.jpg') center / cover no-repeat,
              var(--graphite-700, #2a2f3a);
}
.hero--avi-kndr {
  background: var(--hero-overlay),
              url('../images/heroes/hero_avi_kndr.jpg') center / cover no-repeat,
              var(--graphite-700, #2a2f3a);
}
.hero--avto-kndr {
  background: var(--hero-overlay),
              url('../images/heroes/hero_avto_kndr.jpg') center / cover no-repeat,
              var(--graphite-700, #2a2f3a);
}
.hero--zhd-kndr {
  background: var(--hero-overlay),
              url('../images/heroes/hero_zhd_kndr.jpg') center / cover no-repeat,
              var(--graphite-700, #2a2f3a);
}
.hero--sbornye-kndr {
  background: var(--hero-overlay),
              url('../images/heroes/hero_sbornye_kndr.jpg') center / cover no-repeat,
              var(--graphite-700, #2a2f3a);
}
.hero--multimodal-kndr {
  background: var(--hero-overlay),
              url('../images/heroes/hero_multimodal_kndr.jpg') center / cover no-repeat,
              var(--graphite-700, #2a2f3a);
}
.hero--usa {
  background: var(--hero-overlay),
              url('../images/heroes/hero_usa.jpg') center / cover no-repeat,
              var(--graphite-700, #2a2f3a);
}
.hero--europe {
  background: var(--hero-overlay),
              url('../images/heroes/hero_europe.jpg') center / cover no-repeat,
              var(--graphite-700, #2a2f3a);
}
.hero--turkey {
  background: var(--hero-overlay),
              url('../images/heroes/hero_turkey.jpg') center / cover no-repeat,
              var(--graphite-700, #2a2f3a);
}
.hero--avi-turkey {
  background: var(--hero-overlay),
              url('../images/heroes/hero_avi_turkey.jpg') center / cover no-repeat,
              var(--graphite-700, #2a2f3a);
}
.hero--morskie-turkey {
  background: var(--hero-overlay),
              url('../images/heroes/hero_morskie_turkey.jpg') center / cover no-repeat,
              var(--graphite-700, #2a2f3a);
}
.hero--avto-turkey {
  background: var(--hero-overlay),
              url('../images/heroes/hero_avto_turkey.jpg') center / cover no-repeat,
              var(--graphite-700, #2a2f3a);
}
.hero--sbornye-turkey {
  background: var(--hero-overlay),
              url('../images/heroes/hero_sbornye_turkey.jpg') center / cover no-repeat,
              var(--graphite-700, #2a2f3a);
}
.hero--multimodal-turkey {
  background: var(--hero-overlay),
              url('../images/heroes/hero_multimodal_turkey.jpg') center / cover no-repeat,
              var(--graphite-700, #2a2f3a);
}
.hero--stambul {
  background: var(--hero-overlay),
              url('../images/heroes/hero_stambul.jpg') center / cover no-repeat,
              var(--graphite-700, #2a2f3a);
}
.hero--antalya {
  background: var(--hero-overlay),
              url('../images/heroes/hero_antalya.jpg') center / cover no-repeat,
              var(--graphite-700, #2a2f3a);
}
.hero--bursa {
  background: var(--hero-overlay),
              url('../images/heroes/hero_bursa.jpg') center / cover no-repeat,
              var(--graphite-700, #2a2f3a);
}
.hero--odezda-turkey {
  background: var(--hero-overlay),
              url('../images/heroes/hero_odezda_turkey.jpg') center / cover no-repeat,
              var(--graphite-700, #2a2f3a);
}
.hero--mebel-turkey {
  background: var(--hero-overlay),
              url('../images/heroes/hero_mebel_turkey.jpg') center / cover no-repeat,
              var(--graphite-700, #2a2f3a);
}
.hero--obuv-turkey {
  background: var(--hero-overlay),
              url('../images/heroes/hero_obuv_turkey.jpg') center / cover no-repeat,
              var(--graphite-700, #2a2f3a);
}
.hero--avtozap-turkey {
  background: var(--hero-overlay),
              url('../images/heroes/hero_avtozap_turkey.jpg') center / cover no-repeat,
              var(--graphite-700, #2a2f3a);
}
.hero--lekarstva-turkey {
  background: var(--hero-overlay),
              url('../images/heroes/hero_lekarstva_turkey.jpg') center / cover no-repeat,
              var(--graphite-700, #2a2f3a);
}
.hero--iran {
  background: var(--hero-overlay),
              url('../images/heroes/hero_iran.jpg') center / cover no-repeat,
              var(--graphite-700, #2a2f3a);
}
.hero--avi-iran { background: var(--hero-overlay), url('../images/heroes/hero_avi_iran.jpg') center / cover no-repeat, var(--graphite-700, #2a2f3a); }
.hero--avto-iran { background: var(--hero-overlay), url('../images/heroes/hero_avto_iran.jpg') center / cover no-repeat, var(--graphite-700, #2a2f3a); }
.hero--zd-iran { background: var(--hero-overlay), url('../images/heroes/hero_zd_iran.jpg') center / cover no-repeat, var(--graphite-700, #2a2f3a); }
.hero--sbornye-iran { background: var(--hero-overlay), url('../images/heroes/hero_sbornye_iran.jpg') center / cover no-repeat, var(--graphite-700, #2a2f3a); }
.hero--multi-iran { background: var(--hero-overlay), url('../images/heroes/hero_multi_iran.jpg') center / cover no-repeat, var(--graphite-700, #2a2f3a); }
.hero--uae {
  background: var(--hero-overlay),
              url('../images/heroes/hero_uae.jpg') center / cover no-repeat,
              var(--graphite-700, #2a2f3a);
}
.hero--avi-oae {
  background: var(--hero-overlay),
              url('../images/heroes/hero_avi_oae.jpg') center / cover no-repeat,
              var(--graphite-700, #2a2f3a);
}
.hero--sea-oae {
  background: var(--hero-overlay),
              url('../images/heroes/hero_sea_oae.jpg') center / cover no-repeat,
              var(--graphite-700, #2a2f3a);
}
.hero--sbornye-oae {
  background: var(--hero-overlay),
              url('../images/heroes/hero_sbornye_oae.jpg') center / cover no-repeat,
              var(--graphite-700, #2a2f3a);
}
.hero--dubai {
  background: var(--hero-overlay),
              url('../images/heroes/hero_dubai.jpg') center / cover no-repeat,
              var(--graphite-700, #2a2f3a);
}
.hero--avto-oae {
  background: var(--hero-overlay),
              url('../images/heroes/hero_avto_oae.jpg') center / cover no-repeat,
              var(--graphite-700, #2a2f3a);
}
.hero--avto-dubai {
  background: var(--hero-overlay),
              url('../images/heroes/hero_avto_dubai.jpg') center / cover no-repeat,
              var(--graphite-700, #2a2f3a);
}
.hero--konteyner-oae {
  background: var(--hero-overlay),
              url('../images/heroes/hero_konteyner_oae.jpg') center / cover no-repeat,
              var(--graphite-700, #2a2f3a);
}
.hero--elektronika-oae {
  background: var(--hero-overlay),
              url('../images/heroes/hero_elektronika_oae.jpg') center / cover no-repeat,
              var(--graphite-700, #2a2f3a);
}
.hero--lekarstva-oae {
  background: var(--hero-overlay),
              url('../images/heroes/hero_lekarstva_oae.jpg') center / cover no-repeat,
              var(--graphite-700, #2a2f3a);
}
.hero--abu-dabi {
  background: var(--hero-overlay),
              url('../images/heroes/hero_abu_dabi.jpg') center / cover no-repeat,
              var(--graphite-700, #2a2f3a);
}
.hero--egypt {
  background: var(--hero-overlay),
              url('../images/heroes/hero_egypt.jpg') center / cover no-repeat,
              var(--graphite-700, #2a2f3a);
}
.hero--ghana {
  background: var(--hero-overlay),
              url('../images/heroes/hero_ghana.jpg') center / cover no-repeat,
              var(--graphite-700, #2a2f3a);
}
.hero--avi-ghana { background: var(--hero-overlay), url('../images/heroes/hero_avi_ghana.jpg') center / cover no-repeat, var(--graphite-700, #2a2f3a); }
.hero--sea-ghana { background: var(--hero-overlay), url('../images/heroes/hero_sea_ghana.jpg') center / cover no-repeat, var(--graphite-700, #2a2f3a); }
.hero--multi-ghana { background: var(--hero-overlay), url('../images/heroes/hero_multi_ghana.jpg') center / cover no-repeat, var(--graphite-700, #2a2f3a); }
.hero--efiopiya {
  background: var(--hero-overlay),
              url('../images/heroes/hero_efiopiya.jpg') center / cover no-repeat,
              var(--graphite-700, #2a2f3a);
}
.hero--avi-efiopiya { background: var(--hero-overlay), url('../images/heroes/hero_avi_efiopiya.jpg') center / cover no-repeat, var(--graphite-700, #2a2f3a); }
.hero--sea-efiopiya { background: var(--hero-overlay), url('../images/heroes/hero_sea_efiopiya.jpg') center / cover no-repeat, var(--graphite-700, #2a2f3a); }
.hero--multi-efiopiya { background: var(--hero-overlay), url('../images/heroes/hero_multi_efiopiya.jpg') center / cover no-repeat, var(--graphite-700, #2a2f3a); }
.hero--germany {
  background: var(--hero-overlay),
              url('../images/heroes/hero_germany.jpg') center / cover no-repeat,
              var(--graphite-700, #2a2f3a);
}
.hero--avi-germany { background: var(--hero-overlay), url('../images/heroes/hero_avi_germany.jpg') center / cover no-repeat, var(--graphite-700, #2a2f3a); }
.hero--avto-germany { background: var(--hero-overlay), url('../images/heroes/hero_avto_germany.jpg') center / cover no-repeat, var(--graphite-700, #2a2f3a); }
.hero--zd-germany { background: var(--hero-overlay), url('../images/heroes/hero_zd_germany.jpg') center / cover no-repeat, var(--graphite-700, #2a2f3a); }
.hero--sea-germany { background: var(--hero-overlay), url('../images/heroes/hero_sea_germany.jpg') center / cover no-repeat, var(--graphite-700, #2a2f3a); }
.hero--sbornye-germany { background: var(--hero-overlay), url('../images/heroes/hero_sbornye_germany.jpg') center / cover no-repeat, var(--graphite-700, #2a2f3a); }
.hero--multi-germany { background: var(--hero-overlay), url('../images/heroes/hero_multi_germany.jpg') center / cover no-repeat, var(--graphite-700, #2a2f3a); }
.hero--vietnam {
  background: var(--hero-overlay),
              url('../images/heroes/hero_vietnam.jpg') center / cover no-repeat,
              var(--graphite-700, #2a2f3a);
}
.hero--yuzhnoj-korei {
  background: var(--hero-overlay),
              url('../images/heroes/hero_yuzhnoj-korei.jpg') center / cover no-repeat,
              var(--graphite-700, #2a2f3a);
}
.hero--taiwan {
  background: var(--hero-overlay),
              url('../images/heroes/hero_taiwan.jpg') center / cover no-repeat,
              var(--graphite-700, #2a2f3a);
}
.hero--avi-taiwan { background: var(--hero-overlay), url('../images/heroes/hero_avi_taiwan.jpg') center / cover no-repeat, var(--graphite-700, #2a2f3a); }
.hero--sea-taiwan { background: var(--hero-overlay), url('../images/heroes/hero_sea_taiwan.jpg') center / cover no-repeat, var(--graphite-700, #2a2f3a); }
.hero--sbornye-taiwan { background: var(--hero-overlay), url('../images/heroes/hero_sbornye_taiwan.jpg') center / cover no-repeat, var(--graphite-700, #2a2f3a); }
.hero--multi-taiwan { background: var(--hero-overlay), url('../images/heroes/hero_multi_taiwan.jpg') center / cover no-repeat, var(--graphite-700, #2a2f3a); }
.hero--japan {
  background: var(--hero-overlay),
              url('../images/heroes/hero_japan.jpg') center / cover no-repeat,
              var(--graphite-700, #2a2f3a);
}
.hero--france {
  background: var(--hero-overlay),
              url('../images/heroes/hero_france.jpg') center / cover no-repeat,
              var(--graphite-700, #2a2f3a);
}
.hero--italy {
  background: var(--hero-overlay),
              url('../images/heroes/hero_italy.jpg') center / cover no-repeat,
              var(--graphite-700, #2a2f3a);
}
.hero--spain {
  background: var(--hero-overlay),
              url('../images/heroes/hero_spain.jpg') center / cover no-repeat,
              var(--graphite-700, #2a2f3a);
}
/* hero__highlight removed — key figures now highlighted via <strong> inside subtitle */
.hero__subtitle strong { color: var(--color-white); font-weight: var(--fw-semibold); }

/* --- About section: service page variant (has fullwidth text below) --- */
/* With float-based .about__hero, text wraps around floating image naturally.
   If intro text is shorter than image — image overflows below; fullwidth starts after clearfix.
   If intro text is longer — text wraps below image. No awkward column gaps. */
.about:has(.about__fullwidth) .about__hero { margin-bottom: var(--space-md); }
.about:has(.about__fullwidth) .about__photo { object-fit: cover; }
.about:has(.about__fullwidth) .about__desc { margin-bottom: var(--space-sm); }
.about__fullwidth .about__desc:last-child { margin-bottom: 0; }
.about__fullwidth { margin-top: 0; }


/* --- Advantages grid modifier: simple N-column (no bento nth-child) --- */
.advantages__grid--cols-3 {
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}
.advantages__grid--cols-3 .advantage-card { grid-column: auto; }

/* --- Section bg modifier: white instead of gray --- */
.advantages--white { background: var(--color-bg-alt); }

/* --- Text columns (service description) --- */
.text-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
}
.text-columns p {
  margin-bottom: var(--space-sm);
  font-size: var(--text-card);
  line-height: var(--lh-body-relaxed);
  color: var(--color-gray-text);
}

/* --- Tariff Rows (ServerManagement-style) --- */
.tariff-header {
  display: grid;
  grid-template-columns: 56px 1fr 160px 120px 140px;
  gap: var(--space-sm);
  padding: 0 var(--space-md);
  margin-bottom: var(--space-xs);
}
.tariff-header__col {
  font-family: var(--font-heading);
  font-size: var(--text-label);
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: var(--ls-wide);
  color: var(--color-medium-gray);
}
.tariff-rows {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}
.tariff-row {
  display: grid;
  grid-template-columns: 56px 1fr 160px 120px 140px;
  gap: var(--space-sm);
  align-items: center;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--space-sm) var(--space-md);
  text-decoration: none;
  color: var(--color-dark-text);
  position: relative;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}
.tariff-row:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}
/* Gradient accent on right edge (like ServerManagement status glow) */
.tariff-row::after {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 120px;
  background: linear-gradient(to left, rgba(47, 128, 237, 0.06), transparent);
  pointer-events: none;
}
.tariff-row__num {
  font-family: var(--font-heading);
  font-size: var(--text-stat-sm);
  font-weight: var(--fw-bold);
  color: var(--color-bg-muted);
  line-height: 1;
}
.tariff-row__dir {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: var(--text-card);
  font-weight: var(--fw-medium);
}
.tariff-row__flag {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: contain;
  flex-shrink: 0;
  border: 1px solid var(--color-bg);
}
.tariff-row__price {
  font-size: var(--text-card);
  color: var(--color-gray-text);
}
.tariff-row__price strong {
  color: var(--color-primary);
  font-weight: var(--fw-bold);
  font-size: var(--text-base);
}
.tariff-row__time {
  font-size: var(--text-sm);
  color: var(--color-medium-gray);
}
.tariff-row__action {
  font-size: var(--text-xs);
  font-weight: var(--fw-semibold);
  color: var(--color-primary);
  text-align: right;
  position: relative;
  z-index: 1;
  transition: color var(--transition);
}
.tariff-row:hover .tariff-row__action {
  color: var(--color-primary-hover);
}

/* Tariff rows responsive */
@media screen and (max-width: 959px) {
  .tariff-header { display: none; }
  .tariff-row {
    grid-template-columns: 40px 1fr auto;
    grid-template-rows: auto auto;
    gap: 4px var(--space-sm);
    padding: var(--space-sm);
  }
  .tariff-row__num { grid-row: 1 / 3; }
  .tariff-row__dir { grid-column: 2; }
  .tariff-row__price { grid-column: 3; grid-row: 1; font-size: var(--text-sm); }
  .tariff-row__time { grid-column: 2; font-size: var(--text-xs); }
  .tariff-row__action { grid-column: 3; grid-row: 2; font-size: var(--text-label); }
  .tariff-row::after { display: none; }
}
@media screen and (max-width: 639px) {
  .tariff-row__flag { width: 22px; height: 22px; }
}

/* --- Tariff Rows: rail variant (7 columns: num, dir, 20ft, 40ft, LCL, time, action) --- */
.tariff-header--rail,
.tariff-rows--rail .tariff-row {
  grid-template-columns: 48px 1fr 96px 96px 108px 100px 110px;
}
.tariff-row__price--num {
  font-size: var(--text-card);
  color: var(--color-gray-text);
}
.tariff-row__price--num strong {
  color: var(--color-primary);
  font-weight: var(--fw-bold);
  font-size: var(--text-base);
}
@media screen and (max-width: 1099px) {
  .tariff-header--rail,
  .tariff-rows--rail .tariff-row {
    grid-template-columns: 44px 1fr 84px 84px 96px 88px 96px;
    gap: var(--space-xs);
  }
  .tariff-row__price--num,
  .tariff-row__price--num strong {
    font-size: var(--text-sm);
  }
}
@media screen and (max-width: 959px) {
  .tariff-header--rail { display: none; }
  .tariff-rows--rail .tariff-row {
    grid-template-columns: 40px repeat(3, 1fr);
    grid-template-rows: auto auto auto;
    gap: 6px var(--space-sm);
    padding: var(--space-sm);
  }
  .tariff-rows--rail .tariff-row__num { grid-column: 1; grid-row: 1 / 4; }
  .tariff-rows--rail .tariff-row__dir { grid-column: 2 / 5; grid-row: 1; }
  .tariff-rows--rail .tariff-row__price--20 { grid-column: 2; grid-row: 2; }
  .tariff-rows--rail .tariff-row__price--40 { grid-column: 3; grid-row: 2; }
  .tariff-rows--rail .tariff-row__price--lcl { grid-column: 4; grid-row: 2; }
  .tariff-rows--rail .tariff-row__price--num {
    font-size: var(--text-xs);
    line-height: 1.3;
  }
  .tariff-rows--rail .tariff-row__price--num strong { font-size: var(--text-sm); display: block; }
  .tariff-rows--rail .tariff-row__time { grid-column: 2 / 4; grid-row: 3; font-size: var(--text-xs); }
  .tariff-rows--rail .tariff-row__action { grid-column: 4; grid-row: 3; font-size: var(--text-label); text-align: right; }
}

/* --- Tariff Rows: multimodal variant (6 columns: num, dir, контейнер, LCL, time, action) ---
   Упрощённый формат для services/mezhdunarodnye-multimodalnye-perevozki/ —
   мультимодаль = комбинация видов транспорта door-to-door, цена за контейнер + LCL. */
.tariff-header--multimodal,
.tariff-rows--multimodal .tariff-row {
  grid-template-columns: 48px 1fr 150px 130px 120px 110px;
}
@media screen and (max-width: 1099px) {
  .tariff-header--multimodal,
  .tariff-rows--multimodal .tariff-row {
    grid-template-columns: 44px 1fr 120px 108px 100px 96px;
    gap: var(--space-xs);
  }
}
@media screen and (max-width: 959px) {
  .tariff-header--multimodal { display: none; }
  .tariff-rows--multimodal .tariff-row {
    grid-template-columns: 40px 1fr 1fr 1fr;
    grid-template-rows: auto auto auto;
    gap: 6px var(--space-sm);
    padding: var(--space-sm);
  }
  .tariff-rows--multimodal .tariff-row__num { grid-column: 1; grid-row: 1 / 4; }
  .tariff-rows--multimodal .tariff-row__dir { grid-column: 2 / 5; grid-row: 1; }
  .tariff-rows--multimodal .tariff-row__price--cont { grid-column: 2; grid-row: 2; }
  .tariff-rows--multimodal .tariff-row__price--lcl { grid-column: 3 / 5; grid-row: 2; }
  .tariff-rows--multimodal .tariff-row__price--num {
    font-size: var(--text-xs);
    line-height: 1.3;
  }
  .tariff-rows--multimodal .tariff-row__price--num strong { font-size: var(--text-sm); display: block; }
  .tariff-rows--multimodal .tariff-row__time { grid-column: 2 / 4; grid-row: 3; font-size: var(--text-xs); }
  .tariff-rows--multimodal .tariff-row__action { grid-column: 4; grid-row: 3; font-size: var(--text-label); text-align: right; }
}

/* --- Tariffs section base wrapper --- */
.tariffs {
  padding: var(--space-xl) 0 var(--space-section);
  background: var(--color-bg);
}

/* --- Tariff Rows: avto-china variant (6 columns: city, FTL MSK, FTL SPb, LTL $/kg, time, type) ---
   Версия для страницы directions/dostavka-gruzov-iz-kitaya/avtomobilnye-perevozki-iz-kitaya/.
   Карточки строк — div (не <a>), без hover-translate и градиента. */
.tariff-header--avto-china,
.tariff-rows--avto-china .tariff-row {
  grid-template-columns: 1fr 120px 120px 96px 100px 140px;
}
.tariff-rows--avto-china .tariff-row {
  cursor: default;
}
.tariff-rows--avto-china .tariff-row:hover {
  transform: none;
  box-shadow: var(--shadow-sm);
}
.tariff-rows--avto-china .tariff-row::after { display: none; }
.tariff-row__city {
  font-family: var(--font-heading);
  font-size: var(--text-card);
  font-weight: var(--fw-semibold);
  color: var(--color-dark-text);
}
.tariff-row__type {
  font-size: var(--text-sm);
  color: var(--color-medium-gray);
}
.tariff-rows__disclaimer {
  margin-top: var(--space-md);
  font-size: var(--text-sm);
  color: var(--color-medium-gray);
  line-height: 1.5;
}
.cargo-types__footnote {
  margin-top: var(--space-md);
  font-size: var(--text-sm);
  color: var(--color-medium-gray);
  line-height: 1.5;
}
@media screen and (max-width: 1099px) {
  .tariff-header--avto-china,
  .tariff-rows--avto-china .tariff-row {
    grid-template-columns: 1fr 100px 100px 84px 92px 120px;
    gap: var(--space-xs);
  }
}
@media screen and (max-width: 959px) {
  .tariff-header--avto-china { display: none; }
  .tariff-rows--avto-china .tariff-row {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto auto auto;
    gap: 6px var(--space-sm);
    padding: var(--space-sm) var(--space-md);
  }
  .tariff-rows--avto-china .tariff-row__city {
    grid-column: 1 / 3;
    grid-row: 1;
    font-size: var(--text-base);
    padding-bottom: 4px;
    border-bottom: 1px solid var(--color-bg);
    margin-bottom: 4px;
  }
  .tariff-rows--avto-china .tariff-row__price:nth-of-type(2) { grid-column: 1; grid-row: 2; }
  .tariff-rows--avto-china .tariff-row__price:nth-of-type(3) { grid-column: 2; grid-row: 2; }
  .tariff-rows--avto-china .tariff-row__price:nth-of-type(4) { grid-column: 1; grid-row: 3; }
  .tariff-rows--avto-china .tariff-row__time { grid-column: 2; grid-row: 3; }
  .tariff-rows--avto-china .tariff-row__type { grid-column: 1 / 3; grid-row: 4; font-size: var(--text-xs); }
  .tariff-rows--avto-china .tariff-row__price,
  .tariff-rows--avto-china .tariff-row__time {
    font-size: var(--text-sm);
  }
  .tariff-rows--avto-china .tariff-row__price strong {
    font-size: var(--text-sm);
  }
}

/* --- Tariff Rows: gonkong variant (4 columns: transport, price, time, notes) ---
   Страница /directions/dostavka-gruzov-iz-kitaya/dostavka-iz-gonkonga/.
   Мультимодальная таблица — 3 строки по виду транспорта, <a> со стандартным hover. */
.tariff-header--gonkong,
.tariff-rows--gonkong .tariff-row {
  grid-template-columns: 1fr 180px 120px 1fr;
}
.tariff-rows--gonkong .tariff-row__city {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}
.tariff-rows--gonkong .tariff-row__city i {
  font-size: 1.1em;
  color: var(--color-primary);
  flex-shrink: 0;
}
@media screen and (max-width: 959px) {
  .tariff-header--gonkong { display: none; }
  .tariff-rows--gonkong .tariff-row {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto auto;
    gap: 6px var(--space-sm);
    padding: var(--space-sm) var(--space-md);
  }
  .tariff-rows--gonkong .tariff-row__city {
    grid-column: 1 / 3;
    grid-row: 1;
    font-size: var(--text-base);
    padding-bottom: 4px;
    border-bottom: 1px solid var(--color-bg);
    margin-bottom: 4px;
  }
  .tariff-rows--gonkong .tariff-row__price { grid-column: 1; grid-row: 2; }
  .tariff-rows--gonkong .tariff-row__time { grid-column: 2; grid-row: 2; }
  .tariff-rows--gonkong .tariff-row__type { grid-column: 1 / 3; grid-row: 3; font-size: var(--text-xs); }
}

/* --- Tariff Rows: turciya variant (3 columns: city, price, time) --- */
.tariff-header--turciya,
.tariff-header--ghana,
.tariff-header--efiopiya,
.tariff-header--efiopiya-sea,
.tariff-header--efiopiya-multi,
.tariff-rows--turciya .tariff-row,
.tariff-rows--ghana .tariff-row,
.tariff-rows--efiopiya .tariff-row,
.tariff-rows--efiopiya-sea .tariff-row,
.tariff-rows--efiopiya-multi .tariff-row {
  grid-template-columns: 1fr 160px 120px;
}
@media screen and (max-width: 959px) {
  .tariff-header--turciya,
  .tariff-header--ghana,
  .tariff-header--efiopiya,
  .tariff-header--efiopiya-sea,
  .tariff-header--efiopiya-multi { display: none; }
  .tariff-rows--turciya .tariff-row,
  .tariff-rows--ghana .tariff-row,
  .tariff-rows--efiopiya .tariff-row,
  .tariff-rows--efiopiya-sea .tariff-row,
  .tariff-rows--efiopiya-multi .tariff-row {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 6px var(--space-sm);
    padding: var(--space-sm) var(--space-md);
  }
  .tariff-rows--turciya .tariff-row__city,
  .tariff-rows--ghana .tariff-row__city,
  .tariff-rows--efiopiya .tariff-row__city,
  .tariff-rows--efiopiya-sea .tariff-row__city,
  .tariff-rows--efiopiya-multi .tariff-row__city { grid-column: 1 / 3; grid-row: 1; font-size: var(--text-base); padding-bottom: 4px; border-bottom: 1px solid var(--color-bg); margin-bottom: 4px; }
  .tariff-rows--turciya .tariff-row__price,
  .tariff-rows--ghana .tariff-row__price,
  .tariff-rows--efiopiya .tariff-row__price,
  .tariff-rows--efiopiya-sea .tariff-row__price,
  .tariff-rows--efiopiya-multi .tariff-row__price { grid-column: 1; grid-row: 2; }
  .tariff-rows--turciya .tariff-row__time,
  .tariff-rows--ghana .tariff-row__time,
  .tariff-rows--efiopiya .tariff-row__time,
  .tariff-rows--efiopiya-sea .tariff-row__time,
  .tariff-rows--efiopiya-multi .tariff-row__time { grid-column: 2; grid-row: 2; }
}

/* --- Tariff Rows: avi-china variant (4 columns: city, price $/kg, time, notes) --- */
.tariff-header--avi-china,
.tariff-rows--avi-china .tariff-row {
  grid-template-columns: 1fr 130px 110px 1fr;
}
@media screen and (max-width: 959px) {
  .tariff-header--avi-china { display: none; }
  .tariff-rows--avi-china .tariff-row {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto auto;
    gap: 6px var(--space-sm);
    padding: var(--space-sm) var(--space-md);
  }
  .tariff-rows--avi-china .tariff-row__city {
    grid-column: 1 / 3;
    grid-row: 1;
    font-size: var(--text-base);
    padding-bottom: 4px;
    border-bottom: 1px solid var(--color-bg);
    margin-bottom: 4px;
  }
  .tariff-rows--avi-china .tariff-row__price { grid-column: 1; grid-row: 2; }
  .tariff-rows--avi-china .tariff-row__time { grid-column: 2; grid-row: 2; }
  .tariff-rows--avi-china .tariff-row__type { grid-column: 1 / 3; grid-row: 3; font-size: var(--text-xs); }
}

/* --- Tariff Rows: more-china / rail-china / sbornye-china / ekspress-china variants --- */
.tariff-header--more-china,
.tariff-rows--more-china .tariff-row,
.tariff-header--rail-china,
.tariff-rows--rail-china .tariff-row,
.tariff-header--sbornye-china,
.tariff-rows--sbornye-china .tariff-row,
.tariff-header--ekspress-china,
.tariff-rows--ekspress-china .tariff-row {
  grid-template-columns: 1fr 130px 110px 1fr;
}
@media screen and (max-width: 959px) {
  .tariff-header--more-china,
  .tariff-header--rail-china,
  .tariff-header--sbornye-china,
  .tariff-header--ekspress-china { display: none; }
  .tariff-rows--more-china .tariff-row,
  .tariff-rows--rail-china .tariff-row,
  .tariff-rows--sbornye-china .tariff-row,
  .tariff-rows--ekspress-china .tariff-row {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto auto;
    gap: 6px var(--space-sm);
    padding: var(--space-sm) var(--space-md);
  }
  .tariff-rows--more-china .tariff-row__city,
  .tariff-rows--rail-china .tariff-row__city,
  .tariff-rows--sbornye-china .tariff-row__city,
  .tariff-rows--ekspress-china .tariff-row__city {
    grid-column: 1 / 3;
    grid-row: 1;
    font-size: var(--text-base);
    padding-bottom: 4px;
    border-bottom: 1px solid var(--color-bg);
    margin-bottom: 4px;
  }
  .tariff-rows--more-china .tariff-row__price,
  .tariff-rows--rail-china .tariff-row__price,
  .tariff-rows--sbornye-china .tariff-row__price,
  .tariff-rows--ekspress-china .tariff-row__price { grid-column: 1; grid-row: 2; }
  .tariff-rows--more-china .tariff-row__time,
  .tariff-rows--rail-china .tariff-row__time,
  .tariff-rows--sbornye-china .tariff-row__time,
  .tariff-rows--ekspress-china .tariff-row__time { grid-column: 2; grid-row: 2; }
  .tariff-rows--more-china .tariff-row__type,
  .tariff-rows--rail-china .tariff-row__type,
  .tariff-rows--sbornye-china .tariff-row__type,
  .tariff-rows--ekspress-china .tariff-row__type { grid-column: 1 / 3; grid-row: 3; font-size: var(--text-xs); }
}

/* --- Tariffs Bento by country (flagship) ---
   Использует .direction-card паттерн с главной страницы. 5 hero-карточек:
   Wide span 2x2 (Китай, основной хаб) + 4 normal — итого в 4-col grid 2 rows × 4 cols.
   После — стандартный .directions__compact-grid с остальными странами (как на главной).
   Флаги прямоугольные 36×24 (hero) / 24×16 (compact) с border-radius: 3px. */
.tariffs-bento__hero {
  grid-template-columns: repeat(4, 1fr);
}
.tariffs-bento__hero .direction-card--hero-wide {
  grid-column: span 2;
  grid-row: span 2;
}
.direction-card__badge {
  margin-left: auto;
  font-size: var(--text-label);
  font-weight: var(--fw-semibold);
  color: var(--color-primary);
  background: var(--color-bg-primary-light);
  padding: 4px 12px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: var(--ls-wide);
  white-space: nowrap;
}

/* Wide-карточка использует те же hero-стили + расширенный meta-блок (5 транспортов) */
.direction-card--hero-wide .direction-card__meta {
  gap: 8px;
  font-size: var(--text-card);
}
.direction-card--hero-wide .direction-card__meta-row {
  padding: 6px 0;
  border-bottom: 1px solid var(--color-border-subtle);
}
.direction-card--hero-wide .direction-card__meta-row:last-child { border-bottom: none; }

/* Badge не должен ломать flex-распределение arrow */
.direction-card__head:has(.direction-card__badge) .direction-card__arrow { margin-left: 0; }
.direction-card__head:has(.direction-card__badge) .direction-card__name { margin-right: 0; }

/* Responsive */
@media screen and (max-width: 1099px) {
  .tariffs-bento__hero { grid-template-columns: repeat(2, 1fr); }
  .tariffs-bento__hero .direction-card--hero-wide { grid-column: span 2; grid-row: auto; }
}
@media screen and (max-width: 639px) {
  .tariffs-bento__hero { grid-template-columns: 1fr; }
  .tariffs-bento__hero .direction-card--hero-wide { grid-column: auto; }
}

/* --- Transport Options (flagship) ---
   4 карточки транспортов между Advantages и About. Использует .service-card визуал (фото сверху). */
.transport-options { padding: var(--space-xl) 0 var(--space-section); background: var(--color-bg); }
.transport-options__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
  margin-top: var(--space-lg);
}
.transport-options__card {
  /* наследует .service-card стили — мы только добавляем структуру внутри body */
}
.transport-options__card .service-card__body {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}
.transport-options__stats {
  display: flex;
  align-items: baseline;
  gap: var(--space-sm);
  margin: var(--space-xs) 0 var(--space-xs);
  padding-bottom: var(--space-xs);
  border-bottom: 1px solid var(--color-border-subtle);
}
.transport-options__price {
  font-family: var(--font-heading);
  font-size: var(--text-stat-sm);
  font-weight: var(--fw-bold);
  color: var(--color-primary);
}
.transport-options__time {
  font-size: var(--text-sm);
  color: var(--color-gray-text);
}
.transport-options__link {
  font-size: var(--text-label);
  font-weight: var(--fw-semibold);
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: var(--ls-wide);
  margin-top: auto;
  padding-top: var(--space-xs);
  display: inline-block;
}
@media screen and (max-width: 639px) {
  .transport-options__grid { grid-template-columns: 1fr; }
}

/* --- CTA Banner Form (overlay with inline fields) --- */
.cta-banner--form {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
  text-align: left;
}
.cta-banner--form .cta-banner__title { flex: 1; }
.cta-banner__form { flex: 1; }
.cta-banner__fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-sm);
}
.cta-banner__input {
  width: 100%;
  padding: 14px 16px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: var(--radius-md);
  color: var(--color-white);
  font-size: var(--text-card);
  font-family: var(--font-primary);
  outline: none;
  transition: border-color var(--transition);
}
.cta-banner__input::placeholder { color: rgba(255,255,255,0.6); }
.cta-banner__input:focus { border-color: var(--color-primary); }
.cta-banner__submit {
  grid-column: 1 / -1;
  padding: 14px 32px;
  background: var(--color-primary);
  color: var(--color-white);
  border: none;
  border-radius: var(--radius-md);
  font-size: var(--text-base);
  font-weight: var(--fw-semibold);
  font-family: var(--font-primary);
  cursor: pointer;
  transition: background 0.18s;
}
.cta-banner__submit:hover {
  background: var(--color-primary-hover);
}
.cta-banner__agree {
  margin-top: var(--space-xs);
  font-size: var(--text-label);
  color: rgba(255,255,255,0.5);
  text-align: center;
}
.cta-banner__agree a {
  color: rgba(255,255,255,0.7);
  text-decoration: underline;
}

/* --- Cases — bento grid with overlay cards --- */
.cases {
  background: var(--color-bg);
  padding: var(--space-xl) 0 var(--space-section);
}

/* Bento layout: primary card left full height, 3 small cards right */
.cases__bento {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: repeat(3, 1fr);
  gap: var(--space-md);
  min-height: 640px;
}
.gallery-card--primary {
  grid-row: 1 / -1;
}

/* Gallery card — image with gradient overlay */
.gallery-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border-radius: var(--radius-xl);
  overflow: hidden;
  color: var(--color-white);
  text-decoration: none;
  transition: transform var(--transition), box-shadow var(--transition);
}
.gallery-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card-hover);
}
.gallery-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  transition: transform 0.5s ease;
}
.gallery-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(15, 15, 20, 0.55), rgba(15, 15, 20, 0.6));
  z-index: 1;
}
.gallery-card__body {
  position: relative;
  z-index: 2;
  padding: var(--space-lg);
}
.gallery-card__tag {
  display: inline-block;
  width: fit-content;
  padding: var(--space-xs) var(--space-sm);
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-sm);
  font-size: var(--text-label);
  font-weight: var(--fw-medium);
  text-transform: uppercase;
  letter-spacing: var(--ls-wide);
  margin-bottom: var(--space-sm);
}
.gallery-card__title {
  font-family: var(--font-heading);
  font-size: var(--heading-h4);
  font-weight: var(--fw-semibold);
  line-height: var(--lh-heading-xs);
  margin-bottom: var(--space-xs);
}
.gallery-card--primary .gallery-card__title {
  font-size: var(--heading-section);
}
.gallery-card__text {
  font-size: var(--text-sm);
  line-height: var(--lh-body);
  color: var(--text-on-image-muted);
  margin-bottom: var(--space-sm);
}
.gallery-card__text:last-child { margin-bottom: 0; }
.gallery-card__link {
  font-size: var(--text-xs);
  font-weight: var(--fw-medium);
  color: rgba(255,255,255,0.7);
  transition: color var(--transition);
}
.gallery-card:hover .gallery-card__link {
  color: var(--color-white);
}

/* Cases responsive */
@media screen and (max-width: 959px) {
  .cases__bento {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    height: auto;
  }
  .gallery-card { min-height: 280px; }
  .gallery-card--primary { grid-row: auto; min-height: 340px; }
}

/* --- Blog — horizontal overlay cards (same visual language as cases) --- */
.blog {
  padding: var(--space-xl) 0 var(--space-2xl);
  background: var(--color-bg);
}
.blog__list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}
.blog-card {
  position: relative;
  display: flex;
  border-radius: var(--radius-xl);
  overflow: hidden;
  text-decoration: none;
  color: var(--color-white);
  min-height: 200px;
  transition: transform var(--transition), box-shadow var(--transition);
}
.blog-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card-hover);
}
.blog-card__img-wrap {
  position: absolute;
  inset: 0;
}
.blog-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.blog-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(15, 15, 20, 0.55), rgba(15, 15, 20, 0.6));
}
.blog-card__body {
  position: relative;
  z-index: 1;
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.blog-card__tag {
  display: inline-block;
  width: fit-content;
  padding: var(--space-xs) var(--space-sm);
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-sm);
  font-size: var(--text-label);
  font-weight: var(--fw-medium);
  text-transform: uppercase;
  letter-spacing: var(--ls-wide);
  margin-bottom: var(--space-sm);
}
.blog-card__title {
  font-family: var(--font-heading);
  font-size: var(--heading-h4);
  font-weight: var(--fw-semibold);
  line-height: var(--lh-heading-xs);
  margin-bottom: var(--space-xs);
}
.blog-card__text {
  font-size: var(--text-sm);
  line-height: var(--lh-body);
  color: var(--text-on-image-muted);
  margin-bottom: var(--space-xs);
}
.blog-card__link {
  font-size: var(--text-xs);
  font-weight: var(--fw-medium);
  color: rgba(255,255,255,0.7);
  transition: color var(--transition);
}
.blog-card:hover .blog-card__link { color: var(--color-white); }

@media screen and (max-width: 959px) {
  .blog__list { grid-template-columns: 1fr; }
}

/* --- Feature Tabs (left list + right image, auto-progress) --- */
.feat-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: stretch;
}
.feat-tabs__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}
.feat-tabs__item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  padding: var(--space-md);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: background var(--transition), box-shadow var(--transition);
}
.feat-tabs__item:hover { background: rgba(47,128,237,0.04); }
.feat-tabs__item.active {
  background: var(--color-white);
  box-shadow: var(--shadow-md);
}

/* Icon circle */
.feat-tabs__icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: rgba(47,128,237,0.08);
  color: var(--color-primary);
  transition: background var(--transition), color var(--transition);
}
.feat-tabs__icon .ph-duotone,
.feat-tabs__icon .ph-fill {
  font-size: 22px;
  line-height: 1;
}
.feat-tabs__item.active .feat-tabs__icon {
  background: var(--color-primary);
  color: var(--color-white);
}

/* Content */
.feat-tabs__content { flex: 1; min-width: 0; }
.feat-tabs__title {
  font-family: var(--font-heading);
  font-size: var(--heading-h4);
  font-weight: var(--fw-semibold);
  line-height: var(--lh-heading-xs);
  letter-spacing: var(--ls-normal);
  color: var(--color-dark-text);
  margin-bottom: 4px;
  transition: color var(--transition);
}
.feat-tabs__item.active .feat-tabs__title { color: var(--color-dark-text); }
.feat-tabs__text {
  font-size: var(--text-card);
  line-height: 1.55;
  color: var(--color-gray-text);
  transition: color var(--transition);
}

/* Progress bar */
.feat-tabs__progress {
  height: 3px;
  background: var(--color-bg-muted);
  border-radius: 2px;
  margin-top: var(--space-sm);
  overflow: hidden;
  opacity: 0;
  transition: opacity var(--transition);
}
.feat-tabs__item.active .feat-tabs__progress { opacity: 1; }
.feat-tabs__progress-bar {
  height: 100%;
  width: 0;
  background: linear-gradient(to right, var(--color-primary), var(--color-primary-hover));
  border-radius: 2px;
  transition: width 0.1s linear;
}

/* Image */
.feat-tabs__image {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--color-white);
  border: 1px solid var(--color-bg-muted);
  padding: var(--space-md);
}
.feat-tabs__img {
  position: absolute;
  inset: var(--space-md);
  width: calc(100% - var(--space-md) * 2);
  height: calc(100% - var(--space-md) * 2);
  object-fit: contain;
  transition: opacity 0.5s ease;
}

@media screen and (max-width: 959px) {
  .feat-tabs {
    grid-template-columns: 1fr;
  }
  .feat-tabs__image {
    order: -1;
    aspect-ratio: 16 / 9;
  }
}

/* --- Bullet Variant B: White card + left accent stripe --- */
.bullet-stripe {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  grid-auto-rows: 1fr;
}
.bullet-stripe__item {
  background: var(--color-bg-primary-light);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  position: relative;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}
.bullet-stripe__item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-bullet-light);
}
/* Background icon — bottom right (like stat-item) */
.bullet-stripe__bg-icon {
  position: absolute;
  right: -8px;
  bottom: -8px;
  width: 100px;
  height: 100px;
  opacity: 0.07;
  pointer-events: none;
  color: var(--color-primary);
}
.bullet-stripe__bg-icon svg {
  width: 100%;
  height: 100%;
}
/* Phosphor Fill inside bullet-stripe bg-icon */
.bullet-stripe__bg-icon .ph-fill,
.bullet-stripe__bg-icon .ph-duotone {
  font-size: 100px;
  line-height: 1;
  color: var(--color-primary);
}
.bullet-stripe__icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  margin-bottom: var(--space-md);
  position: relative;
  z-index: 1;
}
.bullet-stripe__icon .ph-duotone,
.bullet-stripe__icon .ph-fill {
  font-size: 36px;
  line-height: 1;
}
.bullet-stripe__title {
  font-family: var(--font-heading);
  font-size: var(--heading-h4);
  font-weight: var(--fw-semibold);
  line-height: var(--lh-heading-xs);
  color: var(--color-dark-text);
  margin-bottom: var(--space-xs);
  position: relative;
  z-index: 1;
}
.bullet-stripe__title a {
  color: inherit;
  text-decoration: none;
  font-weight: inherit;
  font-size: inherit;
  font-family: inherit;
  line-height: inherit;
}
.bullet-stripe__title a:hover {
  color: var(--color-primary);
}
.bullet-stripe__text {
  font-size: var(--text-sm);
  line-height: var(--lh-body-relaxed);
  color: var(--color-gray-text);
  position: relative;
  z-index: 1;
}

@media screen and (max-width: 959px) {
  .bullet-stripe { grid-template-columns: 1fr; }
}

/* --- Bullet Variant C: Dark card + glow accent --- */
.bullet-dark {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  grid-auto-rows: 1fr;
}
.bullet-dark__item {
  background: var(--color-dark);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  position: relative;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}
.bullet-dark__item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-bullet-dark);
}
.bullet-dark__item::after {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(47, 128, 237, 0.15);
  pointer-events: none;
}
.bullet-dark__icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(47, 128, 237, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  margin-bottom: var(--space-sm);
  position: relative;
  z-index: 1;
}
.bullet-dark__icon .ph-duotone,
.bullet-dark__icon .ph-fill {
  font-size: 22px;
  line-height: 1;
}
.bullet-dark__title {
  font-family: var(--font-heading);
  font-size: var(--heading-h4);
  font-weight: var(--fw-semibold);
  line-height: var(--lh-heading-xs);
  color: var(--color-white);
  margin-bottom: var(--space-xs);
  position: relative;
  z-index: 1;
}
.bullet-dark__text {
  font-size: var(--text-sm);
  line-height: var(--lh-body-relaxed);
  color: rgba(255,255,255,0.65);
  position: relative;
  z-index: 1;
}

@media screen and (max-width: 959px) {
  .bullet-dark { grid-template-columns: 1fr; }
}

/* --- Team Cards — slider with pastel bg + badge --- */
.team-cards {
  padding: var(--space-xl) 0 var(--space-section);
  background: var(--color-bg);
}
.team-cards__arrows {
  display: flex;
  gap: var(--space-xs);
  margin-top: var(--space-md);
}
.team-cards .section-heading { margin-bottom: var(--space-md); }
.team-cards__arrow {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-white);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--color-dark-text);
  cursor: pointer;
  transition: all var(--transition);
}
.team-cards__arrow:hover {
  background: var(--color-primary);
  color: var(--color-white);
}
.team-cards__arrow--prev:hover { transform: translateX(-2px); }
.team-cards__arrow--next:hover { transform: translateX(2px); }
@media (prefers-reduced-motion: reduce) {
  .team-cards__arrow--prev:hover,
  .team-cards__arrow--next:hover { transform: none; }
}

/* Slider track */
.team-cards__slider {
  overflow: visible;
  clip-path: inset(-50px -56px);
}
.team-cards__track {
  display: flex;
  gap: var(--space-md);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 0 max(var(--container-padding), calc((100vw - var(--container-max)) / 2 + var(--container-padding)));
}

/* Card */
.team-card {
  flex: 0 0 240px;
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}
.team-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card-hover-light);
}

/* Photo area with pastel bg */
.team-card__photo {
  aspect-ratio: 3 / 4;
  overflow: hidden;
}
.team-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}
.team-card__photo--blue  { background: var(--color-bg-primary-light); }
.team-card__photo--light { background: #f0e6ff; }
.team-card__photo--mint  { background: #e0f5ee; }
.team-card__photo--peach { background: #fde8d8; }

/* White badge overlapping photo */
.team-card__badge {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--color-white);
  border-radius: var(--radius-md) var(--radius-md) var(--radius-xl) var(--radius-xl);
  padding: 10px var(--space-sm);
  margin: 0 var(--space-xs) var(--space-xs);
  box-shadow: 0 -4px 16px rgba(0,0,0,0.06);
}
.team-card__name {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-normal);
  color: var(--color-dark-text);
  line-height: var(--lh-heading-xs);
  margin-bottom: 2px;
}
.team-card__role {
  font-size: var(--text-label);
  font-weight: var(--fw-medium);
  text-transform: uppercase;
  letter-spacing: var(--ls-wide);
  color: var(--color-medium-gray);
  line-height: 1.4;
}

.team-cards__link { margin-top: var(--space-lg); }

@media screen and (max-width: 639px) {
  .team-card { flex: 0 0 180px; }
  .team-card__badge { padding: var(--space-xs) var(--space-sm); }
  .team-cards__arrows { display: none; }
}

/* --- FAQ Accordion (animated, vanilla JS) --- */
.faq {
  padding: var(--space-xl) 0 var(--space-section);
  background: var(--color-bg);
}
.faq__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}
.faq__item {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow var(--transition);
}
.faq__item.active {
  box-shadow: var(--shadow-md);
}

/* Question button */
.faq__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  width: 100%;
  padding: var(--space-md) var(--space-lg);
  background: none;
  border: none;
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: var(--fw-semibold);
  color: var(--color-dark-text);
  text-align: left;
  cursor: pointer;
  transition: color var(--transition);
}
.faq__question:hover { color: var(--color-primary); }
.faq__item.active .faq__question { color: var(--color-primary); }

/* Plus/minus icon */
.faq__icon {
  flex-shrink: 0;
  color: var(--color-primary);
  opacity: 0.6;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
/* Vertical line of the plus hides on open → becomes minus */
.faq__icon line:first-child {
  transition: opacity 0.2s ease, transform 0.2s ease;
  transform-origin: center;
}
.faq__item.active .faq__icon {
  transform: rotate(180deg);
  opacity: 1;
}
.faq__item.active .faq__icon line:first-child {
  opacity: 0;
  transform: rotate(90deg);
}

/* Answer — animated height */
.faq__answer {
  height: 0;
  overflow: hidden;
  transition: height 0.25s ease-out;
}
.faq__answer-inner {
  padding: 0 var(--space-lg) var(--space-md);
}
.faq__answer-inner p {
  font-size: var(--text-card);
  line-height: var(--lh-body-relaxed);
  color: var(--color-gray-text);
}

/* --- Process — snake timeline --- */
.process {
  background: var(--color-bg);
  padding: var(--space-xl) 0 var(--space-section);
}

.snake__row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
  position: relative;
}
/* Dashed horizontal line behind dots */
.snake__row::before {
  content: '';
  position: absolute;
  top: 24px;
  left: calc(12.5% + 12px);
  right: calc(12.5% + 12px);
  height: 3px;
  background: repeating-linear-gradient(
    to right,
    rgba(47,128,237,0.25) 0,
    rgba(47,128,237,0.25) 8px,
    transparent 8px,
    transparent 16px
  );
}
.snake__row--reverse { direction: rtl; }
.snake__row--reverse .snake__item { direction: ltr; }

/* Vertical turn connector — wide rounded corner, outside text area */
.snake__turn {
  position: relative;
  height: 56px;
  margin: var(--space-sm) 0;
}
.snake__turn--right {
  margin-left: 87.5%;
  transform: translateX(-50%);
  width: 2px;
  height: 56px;
  background: repeating-linear-gradient(
    to bottom,
    rgba(47,128,237,0.25) 0,
    rgba(47,128,237,0.25) 6px,
    transparent 6px,
    transparent 12px
  );
}

/* Step item */
.snake__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: default;
}

/* Dot with ring + hover */
.snake__dot {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-bottom: var(--space-sm);
  position: relative;
  z-index: 1;
  box-shadow: 0 0 0 6px var(--color-bg-primary-light);
  transition: transform var(--transition), box-shadow var(--transition);
}
.snake__item:hover .snake__dot {
  transform: scale(1.1);
  box-shadow: 0 0 0 8px var(--color-bg-primary-light), 0 4px 16px rgba(47,128,237,0.25);
}
.snake__dot span {
  font-family: var(--font-heading);
  font-size: var(--text-base);
  font-weight: var(--fw-bold);
  color: var(--color-white);
}

/* Text with hover */
.snake__text {
  font-size: var(--text-sm);
  line-height: var(--lh-body);
  color: var(--color-gray-text);
  max-width: 200px;
  transition: color var(--transition);
}
.snake__item:hover .snake__text {
  color: var(--color-dark-text);
}

/* Responsive */
@media screen and (max-width: 959px) {
  .snake__row { grid-template-columns: repeat(2, 1fr); }
  .snake__row::before { left: calc(25% + 12px); right: calc(25% + 12px); }
  .snake__turn--right {
    margin-left: 75%;
  }
}
@media screen and (max-width: 639px) {
  .snake__row { grid-template-columns: 1fr; gap: 0; }
  .snake__row::before { display: none; }
  .snake__turn { display: none; }
  .snake__row--reverse { direction: ltr; }
  .snake__item {
    flex-direction: row;
    text-align: left;
    align-items: flex-start;
    gap: var(--space-sm);
    padding: var(--space-sm) 0;
    position: relative;
    cursor: default;
  }
  .snake__item::before {
    content: '';
    position: absolute;
    left: 23px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: repeating-linear-gradient(
      to bottom,
      var(--color-bg-muted) 0,
      var(--color-bg-muted) 6px,
      transparent 6px,
      transparent 12px
    );
  }
  .snake__item:first-child::before { top: 24px; }
  .snake__item:last-child::before { bottom: calc(100% - 24px); }
  .snake__dot { flex-shrink: 0; }
  .snake__text { max-width: none; }
}

/* --- Service Page Responsive --- */
@media screen and (max-width: 1199px) {
}

@media screen and (max-width: 959px) {
  .advantages__grid--cols-3 { grid-template-columns: repeat(2, 1fr); }
  .text-columns { grid-template-columns: 1fr; }
  .cta-banner--form { flex-direction: column; }
  .cta-banner--form .cta-banner__title { text-align: center; }
  .cta-banner__fields { grid-template-columns: 1fr; }
}

@media screen and (max-width: 639px) {
  .breadcrumb { font-size: var(--text-label); }

  .advantages__grid--cols-3 { grid-template-columns: 1fr; }
}

/* ============================================
   TYPOGRAPHY UTILITIES
   Utility classes for text roles (used in UI-kit, occasional overrides).
   Base elements h1–h4 already styled via tokens.
   ============================================ */
.text-body-lg {
  font-family: var(--font-primary);
  font-size: var(--text-lg);
  font-weight: var(--fw-regular);
  line-height: var(--lh-body-relaxed);
}

.text-body {
  font-family: var(--font-primary);
  font-size: var(--text-base);
  font-weight: var(--fw-regular);
  line-height: var(--lh-body);
}

.text-body-sm {
  font-family: var(--font-primary);
  font-size: var(--text-sm);
  font-weight: var(--fw-regular);
  line-height: var(--lh-body);
}

.text-caption {
  font-family: var(--font-primary);
  font-size: var(--text-xs);
  font-weight: var(--fw-regular);
  line-height: var(--lh-caption);
}

.text-label {
  font-family: var(--font-primary);
  font-size: var(--text-label);
  font-weight: var(--fw-medium);
  line-height: 1.4;
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
}

.text-stat {
  font-family: var(--font-heading);
  font-size: var(--text-stat);
  font-weight: var(--fw-bold);
  line-height: 1;
}

.text-stat-sm {
  font-family: var(--font-heading);
  font-size: var(--text-stat-sm);
  font-weight: var(--fw-bold);
  line-height: var(--lh-heading-xs);
}


/* ============================================
   ROUTE MAP — две карточки (карта + список городов)
   + подблоки описаний маршрутов ниже
   ============================================ */
.route-map {
  padding: var(--space-xl) 0 var(--space-section);
  background: var(--color-bg);
}

.route-map__grid {
  margin-top: var(--space-xl);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: var(--space-md);
  align-items: stretch;
}

/* ----- Канвас карты ----- */
.route-map__canvas {
  background: var(--color-bg-alt);
  border-radius: var(--card-radius);
  padding: var(--space-lg);
  box-shadow: var(--shadow-card-rest);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.route-map__canvas-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.route-map__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--color-bg);
  border-radius: var(--radius-pill);
  font-size: var(--text-sm);
  font-weight: var(--fw-medium);
  color: var(--color-dark-text);
}
.route-map__badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-primary);
}

.route-map__locale {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--text-sm);
  color: var(--color-gray-text);
  letter-spacing: 0.06em;
}
.route-map__locale-flag {
  width: 20px;
  height: 14px;
  border-radius: 2px;
  object-fit: cover;
  box-shadow: 0 0 0 1px var(--color-border-subtle);
}

/* ----- Контейнер карты (placeholder + overlay) ----- */
.route-map__map {
  position: relative;
  width: 100%;
  aspect-ratio: 626.957 / 511.369;
  background: var(--color-bg);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.route-map__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transform: scale(0.9);
  transform-origin: center;
}

/* ----- Overlay со всеми пинами/бейджами ----- */
.route-map__overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  transform: scale(0.9);
  transform-origin: center;
}
.route-map__overlay a {
  pointer-events: auto;
  cursor: pointer;
}

/* Погранпереходы — pill-бейджи */
.route-map__border-bg {
  fill: var(--color-bg-alt);
  stroke: var(--color-primary);
  stroke-width: 1.2;
}
.route-map__border-text {
  font-family: var(--font-heading);
  font-size: 10px;
  font-weight: var(--fw-semibold);
  fill: var(--color-dark);
  text-anchor: middle;
  dominant-baseline: middle;
}

/* Города — точка + подпись */
.route-map__city-dot {
  fill: var(--color-primary);
  transition: r 200ms ease-out;
}
.route-map__city-label {
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: var(--fw-bold);
  fill: var(--color-dark);
  pointer-events: none;
  paint-order: stroke fill;
  stroke: #ffffff;
  stroke-width: 5;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.route-map__city-pin:hover .route-map__city-dot,
.route-map__city-pin:focus .route-map__city-dot {
  r: 8;
  fill: var(--color-primary-hover);
}

/* ----- Легенда под картой ----- */
.route-map__legend {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  padding-top: var(--space-sm);
  border-top: 1px solid var(--color-border-subtle);
  font-size: var(--text-sm);
  color: var(--color-gray-text);
}
.route-map__legend-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.route-map__legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-primary);
}
.route-map__legend-dash {
  width: 18px;
  height: 2px;
  border-top: 2px dashed var(--color-primary);
}
.route-map__legend-pill {
  display: inline-block;
  padding: 2px 10px;
  border-radius: var(--radius-pill);
  background: var(--color-bg-alt);
  border: 1px solid var(--color-primary);
  color: var(--color-dark);
  font-weight: var(--fw-medium);
  font-size: var(--text-xs);
}

/* ----- Правая панель: список городов ----- */
.route-map__list-panel {
  background: var(--color-bg-alt);
  border-radius: var(--card-radius);
  padding: var(--space-lg);
  box-shadow: var(--shadow-card-rest);
  display: flex;
  flex-direction: column;
  /* Не даём содержимому вытягивать строку grid — высоту задаёт канвас слева */
  min-height: 0;
  overflow: hidden;
}
.route-map__list-title {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-gray-text);
  margin: 0 0 var(--space-sm);
  padding: 0 var(--space-xs);
}
.route-map__list {
  display: flex;
  flex-direction: column;
  flex: 1 1 0;
  min-height: 0;
  overflow-y: auto;
  /* Аккуратный скроллбар */
  scrollbar-width: thin;
  scrollbar-color: var(--color-border-subtle) transparent;
}
.route-map__list::-webkit-scrollbar {
  width: 6px;
}
.route-map__list::-webkit-scrollbar-track {
  background: transparent;
}
.route-map__list::-webkit-scrollbar-thumb {
  background: var(--color-border-subtle);
  border-radius: 3px;
}

.route-city {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-xs);
  border-radius: var(--radius-md);
  color: var(--color-dark-text);
  text-decoration: none;
  transition: background var(--transition);
  border-bottom: 1px solid var(--color-border-subtle);
  flex: 1;
}
.route-city:last-child { border-bottom: none; }
.route-city:hover,
.route-city.is-active { background: var(--color-bg); }

.route-city__num {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: var(--fw-semibold);
  color: var(--color-gray-text);
  font-variant-numeric: tabular-nums;
  min-width: 24px;
}
.route-city__name {
  font-size: var(--text-base);
  font-weight: var(--fw-semibold);
  color: var(--color-dark-text);
  line-height: 1.2;
}
.route-city__tag {
  font-size: var(--text-sm);
  color: var(--color-gray-text);
  margin-top: 2px;
}
.route-city__dist {
  font-size: var(--text-sm);
  color: var(--color-gray-text);
  font-variant-numeric: tabular-nums;
  font-weight: var(--fw-medium);
  white-space: nowrap;
}

/* ----- Variant: .route-map--russia (2-кол grid: карта слева, список справа) ----- */
.route-map--russia .route-map__map {
  /* Aspect-ratio под viewBox Russia_Map.svg (20955×11530) */
  aspect-ratio: 20955 / 11530;
}
/* Карта России широкая — даём ей больше места, список сжимаем */
.route-map--russia .route-map__grid {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
}
/* Возвращаем legacy-вариант (img+overlay) — глобально он скрыт после миграции на d3 */
.route-map--russia .route-map__map--legacy { display: block; }

/* Контейнер inline-SVG карты-фона */
.route-map--russia .route-map__bg-inline {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: scale(0.92);
  transform-origin: center;
}
.route-map__bg-svg {
  width: 100%;
  height: 100%;
  display: block;
}
/* Регионы РФ — UI-стандартный цвет провинций (как в d3-картах) */
.route-map__bg-svg path {
  fill: #C5CBD3;
  stroke: #FFFFFF;
  stroke-width: 10;
  stroke-linejoin: round;
  pointer-events: none;
  transition: fill 200ms ease-out;
}

/* Overlay поверх инжектированной карты */
.route-map--russia .route-map__overlay {
  pointer-events: none;
  transform: scale(0.92);
  transform-origin: center;
}
/* Пины должны принимать события и быть кликабельными для hover-эффекта */
.route-map--russia .route-map__city-pin {
  pointer-events: auto;
  cursor: pointer;
}
/* Пины и подписи на overlay-карте РФ — крупнее обычных, т.к. viewBox 20955×11530 */
.route-map--russia .route-map__city-dot {
  fill: var(--color-primary);
  transition: r 200ms ease-out, fill 200ms ease-out;
}
.route-map--russia .route-map__city-pin:hover .route-map__city-dot,
.route-map--russia .route-map__city-pin:focus .route-map__city-dot,
.route-map--russia .route-map__city-pin.is-active .route-map__city-dot {
  r: 280;
  fill: var(--color-primary-hover);
}
.route-map--russia .route-map__city-label {
  font-family: var(--font-heading);
  font-size: 420px;
  font-weight: var(--fw-bold);
  fill: var(--color-dark);
  paint-order: stroke fill;
  stroke: #ffffff;
  stroke-width: 110;
  stroke-linejoin: round;
  pointer-events: none;
  transition: fill 200ms ease-out;
}
.route-map--russia .route-map__city-pin:hover .route-map__city-label,
.route-map--russia .route-map__city-pin:focus .route-map__city-label,
.route-map--russia .route-map__city-pin.is-active .route-map__city-label {
  fill: var(--color-primary);
}
.route-map--russia .route-map__city-leader {
  stroke: var(--color-primary);
  stroke-width: 18;
  stroke-dasharray: 60 40;
  fill: none;
}
/* ----- Подблоки описаний маршрутов ----- */
.route-map__details {
  margin-top: var(--space-2xl);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}
.route-detail {
  background: var(--color-bg-alt);
  border-radius: var(--card-radius);
  padding: var(--card-padding);
  box-shadow: var(--shadow-card-rest);
  display: flex;
  flex-direction: column;
  transition: transform 400ms cubic-bezier(0.16,1,0.3,1),
              box-shadow  400ms cubic-bezier(0.16,1,0.3,1);
}
.route-detail:hover {
  transform: translateY(var(--card-hover-lift));
  box-shadow: var(--shadow-card-hover-light);
}
.route-detail__head {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}
.route-detail__icon {
  width: var(--icon-container-size);
  height: var(--icon-container-size);
  border-radius: var(--icon-container-radius);
  background: var(--color-bg-primary-light);
  color: var(--color-primary);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.route-detail__icon .ph-duotone { font-size: var(--icon-size); }
.route-detail__heading {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.route-detail__title {
  font-family: var(--font-heading);
  font-size: var(--heading-h3);
  font-weight: var(--fw-semibold);
  line-height: var(--lh-heading-sm);
  letter-spacing: var(--ls-tight-sm);
  color: var(--color-dark-text);
  margin: 0;
}
.route-detail__term {
  font-size: var(--text-sm);
  font-weight: var(--fw-medium);
  color: var(--color-gray-text);
  background: var(--color-bg);
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  align-self: flex-start;
  white-space: nowrap;
}
.route-detail__intro {
  font-size: var(--text-sm);
  line-height: var(--lh-body-relaxed);
  color: var(--color-gray-text);
  margin: 0 0 var(--space-md);
}
.route-detail__list {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}
.route-detail__list:last-child {
  margin-bottom: var(--space-md);
}
.route-detail__list li {
  font-size: var(--text-sm);
  line-height: var(--lh-body-relaxed);
  color: var(--color-gray-text);
  padding-left: 20px;
  position: relative;
}
.route-detail__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-primary);
}
.route-detail__list li strong {
  color: var(--color-dark-text);
  font-weight: var(--fw-semibold);
}
.route-detail__note {
  font-size: var(--text-sm);
  line-height: var(--lh-body-relaxed);
  color: var(--color-gray-text);
  margin: 0 0 var(--space-md);
}
.route-detail__cta {
  margin-top: auto;
  align-self: flex-start;
  color: var(--color-primary);
  font-size: var(--text-sm);
  font-weight: var(--fw-semibold);
  text-decoration: none;
  transition: color var(--transition), transform var(--transition);
}
.route-detail__cta:hover {
  color: var(--color-primary-hover);
  transform: translateX(4px);
}

/* ----- Адаптив ----- */
@media screen and (max-width: 1199px) {
  .route-map__details { grid-template-columns: repeat(2, 1fr); }
}
@media screen and (max-width: 1023px) {
  .route-map__grid {
    grid-template-columns: 1fr;
  }
  .route-map__list-panel {
    order: -1;
    /* В одну колонку — список рендерится в полную высоту, скролл не нужен */
    overflow: visible;
  }
  .route-map__list {
    overflow-y: visible;
    flex: 0 0 auto;
  }
}
@media screen and (max-width: 767px) {
  .route-map__details { grid-template-columns: 1fr; }
  .route-map__canvas-head { flex-direction: column; align-items: flex-start; }
}

/* ============================================
   ROUTE MAP v2 — d3-geo рендер
   Старая версия скрывается через .route-map__map--legacy { display: none }
   Откат: убрать .route-map__map--d3 (или добавить ему display:none) и убрать legacy hide
   ============================================ */
.route-map__map--legacy { display: none; }

.route-map__d3 {
  display: block;
  width: 100%;
  height: 100%;
}

.route-map__d3 .province {
  fill: #C5CBD3;
  stroke: #FFFFFF;
  stroke-width: 0.8;
  stroke-linejoin: round;
  pointer-events: none;
  transition: fill 200ms ease-out;
}

.route-map__d3 .city-leader {
  stroke: var(--color-primary);
  stroke-width: 1.2;
  fill: none;
  opacity: 0.55;
  pointer-events: none;
}

.route-map__d3 .city-pin {
  cursor: pointer;
}

.route-map__d3 .city-hit {
  fill: transparent;
}

.route-map__d3 .city-dot {
  fill: var(--color-primary);
  transition: r 200ms ease-out, fill 200ms ease-out;
}

.route-map__d3 .city-pin:hover .city-dot,
.route-map__d3 .city-pin:focus .city-dot,
.route-map__d3 .city-pin.is-active .city-dot {
  r: 9;
  fill: var(--color-primary-hover);
}

.route-map__d3 .city-label {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: var(--fw-bold);
  fill: var(--color-dark);
  paint-order: stroke fill;
  stroke: #ffffff;
  stroke-width: 7;
  stroke-linejoin: round;
  user-select: none;
  cursor: pointer;
  transition: fill 200ms ease-out;
}

.route-map__d3 .city-pin:hover .city-label,
.route-map__d3 .city-pin:focus .city-label,
.route-map__d3 .city-pin.is-active .city-label {
  fill: var(--color-primary);
}

/* Reduced motion для карты — отключаем все transitions/animations */
@media (prefers-reduced-motion: reduce) {
  .route-map__d3 .city-dot,
  .route-map__d3 .city-label,
  .route-map__d3 .province {
    transition: none !important;
  }
}

/* ============================================
   TRANSPORT ACCORDION — компонент UI-кита
   Используется в .route-map__details--accordion
   Откат на 6-карточный вариант: убрать --accordion и убрать --cards у блока ниже
   ============================================ */
.route-map__details--cards { display: none; }
.route-map__details--accordion {
  display: block;
  grid-template-columns: none;
  gap: 0;
  margin-top: var(--space-2xl);
}

.transport-accordion {
  background: var(--color-bg-alt);
  border-radius: var(--card-radius);
  box-shadow: var(--shadow-card-rest);
  overflow: hidden;
}

.transport-accordion__item {
  border-bottom: 1px solid var(--color-border-subtle);
  position: relative;
  transition: background var(--transition);
}
.transport-accordion__item:last-child {
  border-bottom: none;
}
/* Левая акцентная полоска у открытого */
.transport-accordion__item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--color-primary);
  opacity: 0;
  transition: opacity var(--transition);
}
.transport-accordion__item[open]::before { opacity: 1; }

/* Шапка-summary: heading-block + preview + chevron */
.transport-accordion__summary {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  cursor: pointer;
  list-style: none;
  user-select: none;
  transition: background var(--transition);
}
.transport-accordion__summary::-webkit-details-marker { display: none; }
.transport-accordion__summary::marker { content: ''; }
/* Hover — заметно темнее, но НЕ совпадает с фоном страницы */
.transport-accordion__summary:hover {
  background: var(--color-bg-muted);
}
/* Открытый — лёгкий primary-tint, отличается от hover */
.transport-accordion__item[open] > .transport-accordion__summary {
  background: var(--color-bg-primary-light);
}
.transport-accordion__item[open] > .transport-accordion__summary:hover {
  background: var(--color-bg-primary-light);
}

/* Левый блок: иконка + заголовок + срок */
.transport-accordion__heading-block {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  min-width: 0;
}

.transport-accordion__icon {
  width: 44px;
  height: 44px;
  border-radius: var(--icon-container-radius);
  background: var(--color-bg-primary-light);
  color: var(--color-primary);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: background var(--transition), color var(--transition);
}
.transport-accordion__item[open] .transport-accordion__icon {
  background: var(--color-primary);
  color: var(--color-white);
}
.transport-accordion__icon .ph-duotone { font-size: 22px; }

.transport-accordion__heading {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  min-width: 0;
  flex: 1;
}
.transport-accordion__title-row {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex-wrap: wrap;
}
.transport-accordion__title {
  font-family: var(--font-heading);
  font-size: var(--heading-h4);
  font-weight: var(--fw-semibold);
  line-height: var(--lh-heading-sm);
  letter-spacing: var(--ls-tight-sm);
  color: var(--color-dark-text);
  margin: 0;
}
.transport-accordion__term {
  font-size: var(--text-sm);
  font-weight: var(--fw-semibold);
  color: var(--color-dark-text);
  background: var(--color-bg-alt);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-border-subtle);
  align-self: flex-start;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.transport-accordion__item[open] .transport-accordion__term {
  background: var(--color-white);
  border-color: var(--color-primary);
  color: var(--color-primary);
}

/* Preview — подзаголовок под title-row */
.transport-accordion__preview {
  font-size: var(--text-sm);
  line-height: var(--lh-body-relaxed);
  color: var(--color-gray-text);
  margin: 0;
}

.transport-accordion__chevron {
  color: var(--color-medium-gray);
  transition: transform var(--transition), color var(--transition);
  flex-shrink: 0;
}
.transport-accordion__item[open] > .transport-accordion__summary .transport-accordion__chevron {
  transform: rotate(180deg);
  color: var(--color-primary);
}

/* Тело — раскрытый контент. Анимация высоты управляется JS (как FAQ): 0.25s ease-out */
.transport-accordion__body {
  padding: 0 var(--space-lg);
  padding-left: calc(var(--space-lg) + 44px + var(--space-md));
  overflow: hidden;
  height: 0;
  transition: height 250ms ease-out;
}
.transport-accordion__body-inner {
  padding: var(--space-md) 0 var(--space-lg);
}

.transport-accordion__text {
  font-size: var(--text-base);
  line-height: var(--lh-body-relaxed);
  color: var(--color-dark-text);
  margin: 0 0 var(--space-md);
  max-width: 800px;
}

.transport-accordion__subtitle {
  font-family: var(--font-heading);
  font-size: var(--heading-h4);
  font-weight: var(--fw-semibold);
  line-height: var(--lh-heading-sm);
  letter-spacing: var(--ls-tight-sm);
  color: var(--color-dark-text);
  margin: var(--space-lg) 0 var(--space-sm);
}

.transport-accordion__list {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  max-width: 800px;
}
.transport-accordion__list li {
  font-size: var(--text-sm);
  line-height: var(--lh-body-relaxed);
  color: var(--color-gray-text);
  padding-left: 20px;
  position: relative;
}
.transport-accordion__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-primary);
}
.transport-accordion__list li strong {
  color: var(--color-dark-text);
  font-weight: var(--fw-semibold);
}
/* Простой список (без bullet-markers, для перечислений типов) */
.transport-accordion__list--simple li {
  padding-left: 16px;
}
.transport-accordion__list--simple li::before {
  width: 4px;
  height: 4px;
  background: var(--color-medium-gray);
  top: 10px;
}

.transport-accordion__note {
  font-size: var(--text-sm);
  line-height: var(--lh-body-relaxed);
  color: var(--color-gray-text);
  margin: 0 0 var(--space-md);
  max-width: 800px;
  font-style: italic;
}

/* Action zone — text-link (ghost) + компактный primary CTA */
.transport-accordion__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-md);
  margin-top: var(--space-lg);
  position: relative;
  z-index: 1;
}
/* Уменьшаем .btn-primary в контексте accordion — не нужен такой крупный CTA внутри карточки */
.transport-accordion__cta.btn-primary {
  padding: 10px 18px;
  font-size: var(--text-sm);
}
.transport-accordion__link {
  font-size: var(--text-sm);
}

/* Декоративная watermark-иконка (как в advantage-card по design-system §7) */
.transport-accordion__body-inner {
  position: relative;
}
.transport-accordion__bg-icon {
  position: absolute;
  right: -60px;
  bottom: -80px;
  font-size: clamp(280px, 32vw, 380px);
  color: var(--color-primary);
  opacity: 0.07;
  pointer-events: none;
  z-index: 0;
  line-height: 1;
}
@media screen and (max-width: 767px) {
  .transport-accordion__bg-icon {
    right: -40px;
    bottom: -60px;
    font-size: clamp(220px, 50vw, 300px);
  }
}
.transport-accordion__body-inner > *:not(.transport-accordion__bg-icon) {
  position: relative;
  z-index: 1;
}

@media (prefers-reduced-motion: reduce) {
  .transport-accordion__chevron,
  .transport-accordion__btn,
  .transport-accordion__item::before,
  .transport-accordion__body { transition: none; }
}

/* Мобильный */
@media screen and (max-width: 767px) {
  .transport-accordion__summary {
    padding: var(--space-sm) var(--space-md);
    gap: var(--space-sm);
  }
  .transport-accordion__heading-block {
    gap: var(--space-sm);
  }
  .transport-accordion__icon {
    width: 36px;
    height: 36px;
  }
  .transport-accordion__icon .ph-duotone { font-size: 18px; }
  .transport-accordion__title {
    font-size: var(--text-lg);
  }
  .transport-accordion__body {
    padding: var(--space-sm) var(--space-md) var(--space-md);
  }
  @supports (interpolate-size: allow-keywords) {
    .transport-accordion__item[open] > .transport-accordion__body {
      padding-top: var(--space-sm);
      padding-bottom: var(--space-md);
    }
  }
  .transport-accordion__actions {
    flex-direction: column;
    align-items: stretch;
  }
  .transport-accordion__btn {
    justify-content: center;
  }
}

/* ============================================
   HERO — variant `hero--with-form`
   Right-side calc card on top of background photo.
   To revert: remove `hero--with-form` modifier from <section>;
   pill and form-card hide automatically, original layout returns.
   ============================================ */
.hero__pill,
.hero__form-card { display: none; }

.hero--with-form {
  /* Затемнение наследуется от .hero (единый диагональный паттерн 105°, 0.86→0.55).
     Здесь только меняем геометрию: высота — по содержимому формы, без 85vh-растяжения. */
  padding: 180px 0 80px;
  min-height: auto;
}

.hero--with-form .hero__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) 460px;
  gap: 64px;
  /* выравнивание по верху: текст идёт сразу после header'а, не центрируется относительно формы */
  align-items: start;
}

.hero--with-form .hero__content { max-width: none; }

.hero--with-form .hero__cta { display: none; }

.hero--with-form .hero__title { margin-bottom: 20px; }

.hero--with-form .hero__subtitle { margin-bottom: 28px; max-width: 620px; }

.hero--with-form .hero__pill {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 6px 22px 6px 8px;
  margin-bottom: 28px;
  border-radius: var(--radius-pill);
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.14);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  font-size: var(--text-sm);
  font-weight: var(--fw-medium);
  color: rgba(255, 255, 255, 0.92);
}

.hero__pill-flags {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.hero__pill-flag {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--color-white);
  border: 2px solid rgba(15, 23, 42, 0.85);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hero__pill-flag + .hero__pill-flag { margin-left: -10px; }

.hero__pill-flag img {
  width: 140%;
  height: 140%;
  object-fit: cover;
  display: block;
}

/* --- Form card (single allowed glass layer per design v2) --- */
.hero--with-form .hero__form-card {
  display: block;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: 0 30px 60px -20px rgba(11, 18, 32, 0.35), 0 12px 24px -12px rgba(11, 18, 32, 0.25);
  color: var(--color-dark-text);
}

.hero__form-title {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: var(--fw-bold);
  line-height: 1.25;
  letter-spacing: var(--ls-tight);
  margin: 0 0 6px;
  color: var(--color-dark-text);
}

.hero__form-subtitle {
  font-size: var(--text-sm);
  color: var(--color-medium-gray);
  margin: 0 0 20px;
}

.hero__form-group { margin-bottom: 12px; }

.hero__form-label {
  display: block;
  font-size: 11px;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-medium-gray);
  margin-bottom: 6px;
}

.hero__form-field {
  position: relative;
  display: flex;
  align-items: center;
}

.hero__form-field > i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  color: var(--color-medium-gray);
  pointer-events: none;
}

.hero__form-field:focus-within > i {
  color: var(--color-primary);
}

.hero__form-field input {
  width: 100%;
  height: 48px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #f6f8fb;
  border-radius: var(--radius-md);
  padding: 0 14px 0 42px;
  font-size: var(--text-base);
  font-family: var(--font-primary);
  color: var(--color-dark-text);
  transition: border-color var(--transition), background var(--transition), box-shadow var(--transition);
}

.hero__form-field input::placeholder {
  color: var(--color-medium-gray);
  opacity: 1;
}

.hero__form-field input:focus {
  outline: none;
  background: var(--color-white);
  border-color: var(--color-primary);
  box-shadow: var(--shadow-focus);
}

.hero__form-field.is-invalid input {
  border-color: var(--color-error);
  background: rgba(229, 57, 53, 0.06);
  box-shadow: 0 0 0 3px rgba(229, 57, 53, 0.12);
}

.hero__form-field.is-invalid > i {
  color: var(--color-error);
}

/* Segmented control: client type */
.hero__form-segmented {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  background: #f6f8fb;
  padding: 4px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.hero__form-segmented label {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  border-radius: 8px;
  font-size: var(--text-xs);
  font-weight: var(--fw-medium);
  color: var(--color-medium-gray);
  cursor: pointer;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition);
}

.hero__form-segmented label:hover { color: var(--color-dark-text); }

.hero__form-segmented input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.hero__form-segmented label:has(input:checked) {
  background: var(--color-white);
  color: var(--color-primary);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08), 0 1px 2px rgba(15, 23, 42, 0.04);
}

.hero__form-segmented input:focus-visible + span {
  outline: 2px solid var(--color-primary);
  outline-offset: 4px;
  border-radius: 4px;
}

/* Submit */
.hero__form-submit {
  width: 100%;
  padding: 16px;
  margin-top: 8px;
  background: var(--color-primary);
  color: var(--color-white);
  border: none;
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: var(--fw-semibold);
  font-family: var(--font-primary);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 0.18s;
}

.hero__form-submit:hover {
  background: var(--color-primary-hover);
}

.hero__form-submit:active { transform: translateY(0); }

.hero__form-agree {
  margin: 12px 0 0;
  font-size: var(--text-label);
  line-height: 1.45;
  color: var(--color-medium-gray);
  text-align: center;
}

.hero__form-agree a {
  color: var(--color-medium-gray);
  text-decoration: underline;
  text-decoration-color: rgba(105, 117, 133, 0.4);
  text-underline-offset: 2px;
}

.hero__form-agree a:hover { color: var(--color-primary); }

/* --- Responsive --- */
@media screen and (max-width: 1199px) {
  .hero--with-form .hero__layout {
    grid-template-columns: minmax(0, 1fr) 420px;
    gap: 40px;
  }
}

@media screen and (max-width: 959px) {
  .hero--with-form { padding: 120px 0 64px; }
  .hero--with-form .hero__layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .hero--with-form .hero__form-card {
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
  }
}

@media screen and (max-width: 639px) {
  .hero--with-form { padding: 90px 0 48px; }
  .hero--with-form .hero__form-card { padding: 24px; }
  .hero__form-segmented { grid-template-columns: 1fr; gap: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero__form-submit:hover { transform: none; }
}

/* ============================================
   CONTACTS PAGE
   ============================================ */

/* Hero — contacts variant. Фон — городская/офисная атмосфера.
   Использует тот же graphite-overlay, что и .hero — наследуется.
   В отличие от стандартного .hero (align-items: center, 85vh) — короткий
   hero для интерфейсной страницы: контент идёт от верха после padding-top,
   высота естественная (не растягивается до полэкрана). */
.hero--contacts {
  background: var(--hero-overlay),
              url('../images/heroes/hero_airplane.jpg') center / cover no-repeat;
  min-height: auto;
  align-items: flex-start;
}
/* В flex-родителе (.hero — display: flex) .container shrink-to-fit'ит
   ширину под контент, если контента мало (короткий H1). Из-за margin: 0 auto
   контейнер тогда визуально центрируется и ломает выравнивание H1/breadcrumb
   (совпадает по горизонтали с сервисными страницами только при длинном H1).
   Принудительно растягиваем .container на полную ширину flex-родителя. */
.hero--contacts > .container { width: 100%; }

.hero__cta--row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  align-items: center;
  margin-bottom: var(--space-lg);
}

/* Secondary кнопка — для второстепенных CTA на светлых блоках */
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 17px 32px;
  border-radius: var(--radius-md);
  font-size: var(--text-lg);
  font-weight: var(--fw-medium);
  font-family: var(--font-primary);
  line-height: var(--lh-body);
  color: var(--color-dark-text);
  background: var(--color-bg);
  border: 1.5px solid var(--color-bg-muted);
  transition: background var(--transition), border-color var(--transition);
}
.btn-secondary:hover {
  background: var(--color-bg-muted);
  border-color: #d1d8e2;
}

/* Active state для верхнего nav__link (Контакты подсвечены, например) */
.nav__link--active {
  color: var(--color-white);
  font-weight: var(--fw-semibold);
}

.nav__link--active::before {
  background: rgba(255,255,255,0.14);
}

/* Active item on sticky white header */
.site-header.is-sticky .nav__link--active,
.site-header--home.is-sticky .nav__link--active {
  color: var(--color-primary);
}
.site-header.is-sticky .nav__link--active::before,
.site-header--home.is-sticky .nav__link--active::before {
  background: rgba(37, 99, 235, 0.08);
}

/* Eyebrow-метка над section-heading */
.section-heading__eyebrow {
  display: inline-block;
  font-size: var(--text-sm);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: var(--space-xs);
}

/* ===== CONTACTS BENTO — три большие карточки ===== */
.contacts-bento {
  padding: var(--space-section) 0 var(--space-xl);
  background: var(--color-bg);
}

.contacts-bento__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  margin-top: var(--space-xl);
}

/* Белые карточки следуют паттерну .advantage-card / .tariff-row из UI-кита:
   border: none, выделяются на сером фоне секции цветовым контрастом + shadow при hover. */
.contact-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: var(--space-lg);
  background: var(--color-bg-alt);
  border: none;
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: var(--color-dark-text);
  min-height: 280px;
  transition: transform var(--transition), box-shadow var(--transition);
  overflow: hidden;
}
.contact-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-hover-light);
}

.contact-card__icon-wrap {
  position: relative;
  width: 56px;
  height: 56px;
  margin-bottom: var(--space-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.contact-card__icon {
  font-size: 36px;
  color: var(--color-primary);
  position: relative;
  z-index: 2;
}
.contact-card__icon-bg {
  position: absolute;
  font-size: 84px;
  color: var(--color-primary);
  opacity: 0.06;
  top: -14px;
  left: -14px;
  z-index: 1;
  pointer-events: none;
}

.contact-card__label {
  font-size: var(--text-sm);
  font-weight: var(--fw-medium);
  color: var(--color-gray-text);
  margin-bottom: 8px;
  letter-spacing: 0.01em;
}

.contact-card__value {
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: var(--fw-bold);
  line-height: 1.2;
  color: var(--color-dark-text);
  margin-bottom: var(--space-md);
  word-break: break-word;
}
.contact-card__value--sm {
  font-size: 19px;
  line-height: 1.4;
}

.contact-card__meta {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: var(--text-sm);
  color: var(--color-gray-text);
  line-height: var(--lh-body-relaxed);
  margin-bottom: var(--space-md);
}
.contact-card__meta i {
  color: var(--color-primary);
  font-size: 18px;
  flex-shrink: 0;
  margin-top: 1px;
}

.contact-card__cta {
  margin-top: auto;
  font-size: var(--text-md);
  font-weight: var(--fw-semibold);
  color: var(--color-primary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap var(--transition);
}
.contact-card:hover .contact-card__cta { gap: 12px; }

/* ===== OFFICE MAP ===== */
.office-map {
  padding: var(--space-xl) 0 var(--space-section);
  background: var(--color-bg);
}

.office-map__wrap {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 0;
  background: var(--color-bg-alt);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.office-map__embed {
  position: relative;
  min-height: 480px;
  background: #e8edf3;
}

/* Контейнер для Yandex Maps JS API v3. API сам управляет canvas/DOM —
   нам нужно лишь дать ему элемент с размерами. */
.office-map__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* Кастомный pin — рендерится Yandex API внутри карты как Placemark.
   Привязан к координатам, двигается вместе с картой при pan/zoom.
   Стили — visual-only: position и left/top контролирует Yandex API. */
.map-pin {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  filter: drop-shadow(0 4px 10px rgba(15,26,48,0.35));
  transition: transform var(--transition);
  cursor: pointer;
}
.map-pin:hover { transform: scale(1.06); }
.map-pin__disc {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--color-white);
  border: 3px solid var(--color-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.map-pin__disc img {
  width: 38px;
  height: 38px;
  display: block;
}
.map-pin__stem {
  width: 0;
  height: 0;
  margin-top: -2px;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 12px solid var(--color-primary);
}

.office-map__info {
  padding: var(--space-xl);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.office-map__title {
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: var(--fw-bold);
  line-height: 1.25;
  color: var(--color-dark-text);
  margin-bottom: var(--space-lg);
}

.office-map__details {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}
.office-map__details li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  font-size: var(--text-md);
  line-height: 1.5;
  color: var(--color-dark-text);
}
.office-map__details li i {
  font-size: 24px;
  color: var(--color-primary);
  flex-shrink: 0;
  margin-top: 2px;
}
.office-map__details li strong {
  font-weight: var(--fw-semibold);
}

.office-map__actions {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}
.office-map__actions .btn-primary i { font-size: 20px; }

/* ===== REQUISITES ===== */
.requisites {
  padding: var(--space-section) 0;
  background: var(--color-bg);
  position: relative;
}

.requisites__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 1fr);
  gap: var(--space-xl);
  margin-top: var(--space-xl);
  /* align-items не задаём — default stretch: aside растягивается под высоту таблицы реквизитов */
}

.requisites__list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: var(--color-bg-alt);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.req-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px var(--space-md);
  border-top: 1px solid var(--color-bg-muted);
  border-left: 1px solid var(--color-bg-muted);
  font-family: var(--font-primary);
}
.req-row:nth-child(1),
.req-row:nth-child(2) {
  border-top: 0;
}
.req-row:nth-child(odd) {
  border-left: 0;
}
/* Широкие строки (юр.адрес) растягиваются на 2 колонки */
.req-row--wide {
  grid-column: 1 / -1;
}
.req-row--wide + .req-row { border-left: 0; }

.req-row__label {
  font-size: var(--text-sm);
  font-weight: var(--fw-medium);
  color: var(--color-gray-text);
  letter-spacing: 0.01em;
}
.req-row__value {
  font-size: var(--text-md);
  font-weight: var(--fw-semibold);
  color: var(--color-dark-text);
  word-break: break-word;
  user-select: text;
}

/* PDF-карточка */
.requisites__aside { display: flex; }

/* Тёмная карточка с четвертью-круглым полупрозрачным декором справа сверху —
   тот же визуальный паттерн что у .bullet-dark__item (UI-кит).
   Solid --color-dark вместо gradient: меньше шума, больше фокуса на тексте. */
.req-card {
  padding: var(--space-xl);
  background: var(--color-dark);
  color: var(--color-white);
  border-radius: var(--radius-lg);
  text-align: left;
  position: relative;
  overflow: hidden;
  width: 100%;
  display: flex;
  flex-direction: column;
}
.req-card::after {
  content: "";
  position: absolute;
  top: -80px;
  right: -80px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: rgba(47, 128, 237, 0.15);
  pointer-events: none;
}

.req-card__icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(47, 128, 237, 0.20);
  color: var(--color-primary);
  font-size: 36px;
  margin-bottom: var(--space-md);
  position: relative;
  z-index: 2;
}

.req-card__title {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: var(--fw-bold);
  line-height: 1.25;
  margin-bottom: var(--space-sm);
  color: var(--color-white);
  position: relative;
  z-index: 2;
}

.req-card__desc {
  font-size: var(--text-md);
  line-height: var(--lh-body-relaxed);
  color: rgba(255,255,255,0.8);
  /* margin-top: auto на следующем блоке прижимает кнопки к низу карточки,
     чтобы при большой высоте контейнера не было пустоты между текстом и CTA */
  margin-bottom: var(--space-lg);
  position: relative;
  z-index: 2;
}

/* Группа CTA-кнопок — уезжает к низу карточки за счёт margin-top: auto */
.req-card__cta-group {
  margin-top: auto;
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.req-card__btn {
  width: 100%;
  justify-content: center;
  white-space: nowrap;
}
.req-card__btn i { font-size: 20px; }

/* Outline-вариант на тёмной req-card */
.req-card__btn--outline {
  background: transparent;
  border: 1.5px solid rgba(255,255,255,0.25);
  color: var(--color-white);
}
.req-card__btn--outline:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.5);
}

/* Состояние «скопировано» для основной кнопки */
.req-card__btn.is-copied {
  background: #1ebe5d;
}
.req-card__btn.is-copied:hover { background: #1ebe5d; }

/* Toast уведомление о копировании */
.requisites__copied {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  background: var(--color-dark);
  color: var(--color-white);
  border-radius: var(--radius-pill);
  font-size: var(--text-md);
  font-weight: var(--fw-medium);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
  z-index: 1000;
}
.requisites__copied.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.requisites__copied i {
  font-size: 22px;
  color: #25D366;
}

/* ===== Адаптив контактной страницы ===== */
@media screen and (max-width: 1199px) {
  .contacts-bento__grid { grid-template-columns: repeat(3, 1fr); gap: var(--space-sm); }
  .office-map__wrap { grid-template-columns: 1.3fr 1fr; }
  .requisites__layout { grid-template-columns: 1.4fr 1fr; gap: var(--space-lg); }
}

@media screen and (max-width: 959px) {
  .hero--contacts { min-height: auto; padding: 120px 0 64px; }
  .contacts-bento__grid { grid-template-columns: 1fr; }
  .contact-card { min-height: auto; }
  .office-map__wrap { grid-template-columns: 1fr; }
  .office-map__embed { min-height: 360px; order: 2; }
  .office-map__info { padding: var(--space-lg); order: 1; }
  .requisites__layout { grid-template-columns: 1fr; }
  .requisites__aside { position: static; }
  .map-pin__disc { width: 52px; height: 52px; }
  .map-pin__disc img { width: 32px; height: 32px; }
}

@media screen and (max-width: 639px) {
  .hero--contacts { padding: 90px 0 48px; }
  .hero__cta--row { flex-direction: column; align-items: stretch; }
  .hero__cta--row .btn-primary { justify-content: center; width: 100%; }
  .requisites__list { grid-template-columns: 1fr; }
  .req-row { border-left: 0 !important; }
  .req-row:nth-child(n+2) { border-top: 1px solid var(--color-bg-muted); }
  .req-row:nth-child(1) { border-top: 0; }
  .office-map__actions { flex-direction: column; }
  .office-map__actions .btn-primary,
  .office-map__actions .btn-secondary { width: 100%; justify-content: center; }
}

/* ============================================
   ABOUT PAGE
   Hero modifier + timeline + licenses grid +
   team grid (override of .team-cards slider) + social block
   ============================================ */

/* Hero variant — фон команды/офиса. Высота как у --contacts (без min-height, естественная) */
.hero--about {
  background: var(--hero-overlay),
              url('../images/about/hero_bg.jpg') center / cover no-repeat;
  min-height: auto;
  align-items: flex-start;
}
.hero--about > .container { width: 100%; }
.hero--about .hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  align-items: center;
  margin-top: var(--space-md);
  margin-bottom: 0;
}
.hero--about .hero__cta .btn-secondary {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.32);
  color: var(--color-white);
}
.hero--about .hero__cta .btn-secondary:hover {
  background: rgba(255,255,255,0.2);
  border-color: rgba(255,255,255,0.5);
}

/* ============================================
   TIMELINE — горизонтальная лента вех компании
   Используется на /about. Карточки-вехи с числом-годом + заголовком + описанием.
   Скроллится по горизонтали на ≤959px, на десктопе — grid 5 колонок.
   ============================================ */
.timeline {
  padding: var(--space-xl) 0 var(--space-section);
  background: var(--color-bg);
}

.timeline__track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-md);
  margin-top: var(--space-xl);
}

/* Соединительная пунктирная линия между точками — над карточками */
.timeline__track::before {
  content: '';
  position: absolute;
  top: 22px; /* совпадает с центром .timeline-item__dot */
  left: calc(10% + 8px);
  right: calc(10% + 8px);
  border-top: 2px dashed rgba(47,128,237,0.32);
  z-index: 0;
}

.timeline-item {
  position: relative;
  padding: 56px var(--space-sm) 0;
  text-align: center;
}

.timeline-item__dot {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--color-primary);
  border: 6px solid var(--color-bg-primary-light);
  box-sizing: content-box;
  z-index: 1;
  transition: transform var(--transition);
}
.timeline-item:hover .timeline-item__dot {
  transform: translateX(-50%) scale(1.12);
  box-shadow: 0 0 0 6px rgba(47,128,237,0.12);
}

.timeline-item__year {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(28px, 3vw, 36px);
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-tight-sm);
  line-height: 1;
  color: var(--color-primary);
  margin-bottom: 8px;
  font-variant-numeric: tabular-nums;
}

.timeline-item__title {
  font-family: var(--font-heading);
  font-size: var(--heading-h4);
  font-weight: var(--fw-semibold);
  line-height: var(--lh-heading-xs);
  color: var(--color-dark-text);
  margin-bottom: 8px;
}

.timeline-item__text {
  font-size: var(--text-card);
  line-height: var(--lh-body);
  color: var(--color-gray-text);
  margin: 0;
}

@media screen and (max-width: 959px) {
  .timeline__track {
    grid-template-columns: repeat(5, 220px);
    overflow-x: auto;
    padding: 0 var(--space-md) var(--space-sm);
    margin: var(--space-lg) calc(var(--space-md) * -1) 0;
    scroll-snap-type: x mandatory;
  }
  .timeline-item { scroll-snap-align: start; }
  .timeline__track::before { display: none; }
}

@media screen and (max-width: 639px) {
  .timeline__track { grid-template-columns: repeat(5, 80vw); }
}

/* ============================================
   LICENSES — grid сертификатов (lightbox по клику)
   ============================================ */
.licenses {
  padding: var(--space-xl) 0 var(--space-section);
  background: var(--color-bg);
}

.licenses__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

/* Вариант для 3 карточек: широкие колонки + центрирование сетки */
.licenses__grid--3col {
  grid-template-columns: repeat(3, 1fr);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}
.licenses__grid--3col .license-card__thumb {
  aspect-ratio: 1 / 1.35;
}

.license-card {
  display: block;
  background: var(--color-white);
  border-radius: var(--card-radius);
  padding: var(--space-sm);
  box-shadow: var(--shadow-card-rest);
  cursor: zoom-in;
  transition: transform var(--transition), box-shadow var(--transition);
  position: relative;
  overflow: hidden;
}
.license-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card-hover-light);
}

.license-card__thumb {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  background: var(--color-bg);
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
}
.license-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: var(--color-white);
  transition: transform var(--transition);
}
.license-card:hover .license-card__thumb img {
  transform: scale(1.04);
}

/* Магнифер на hover */
.license-card__thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(15,15,20,0) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3Cline x1='11' y1='8' x2='11' y2='14'/%3E%3Cline x1='8' y1='11' x2='14' y2='11'/%3E%3C/svg%3E") center/40px no-repeat;
  opacity: 0;
  transition: all var(--transition);
}
.license-card:hover .license-card__thumb::after {
  background-color: rgba(15,15,20,0.4);
  opacity: 1;
}

/* Внешняя ссылка (PDF в новой вкладке) — иконка стрелки вместо магнифера */
.license-card--external {
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}
.license-card--external .license-card__thumb::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='44' viewBox='0 0 256 256' fill='white'%3E%3Cpath d='M200,64V168a8,8,0,0,1-16,0V83.31L69.66,197.66a8,8,0,0,1-11.32-11.32L172.69,72H88a8,8,0,0,1,0-16H192A8,8,0,0,1,200,64Z'/%3E%3C/svg%3E");
  background-size: 44px;
}

/* PDF-метка в углу превью */
.license-card__pdf-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  background: rgba(15,15,20,0.7);
  color: var(--color-white);
  font-size: 11px;
  font-weight: var(--fw-semibold);
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: var(--ls-wide);
  z-index: 2;
  pointer-events: none;
}
.license-card__pdf-tag i { font-size: 12px; }

/* Reviews-gallery: единая сетка PDF-сканов вместо слайдера + подсекции */
.reviews--gallery .reviews__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
  margin-top: var(--space-lg);
}
@media screen and (max-width: 1199px) {
  .reviews--gallery .reviews__grid { grid-template-columns: repeat(3, 1fr); }
}
@media screen and (max-width: 639px) {
  .reviews--gallery .reviews__grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-sm); }
}
@media screen and (max-width: 379px) {
  .reviews--gallery .reviews__grid { grid-template-columns: 1fr; }
}

.license-card__title {
  font-size: var(--text-sm);
  font-weight: var(--fw-medium);
  color: var(--color-dark-text);
  line-height: var(--lh-body);
  margin: var(--space-sm) 0 0;
}

@media screen and (max-width: 959px) {
  .licenses__grid { grid-template-columns: repeat(3, 1fr); }
}
@media screen and (max-width: 639px) {
  .licenses__grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-sm); }
}

/* ============================================
   TEAM CARDS — grid override (все карточки в сетке, без слайдера)
   Применяется на /about. Сохраняем ту же стилистику team-card.
   ============================================ */
.team-cards--grid .team-cards__slider {
  overflow: visible;
  clip-path: none;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}
.team-cards--grid .team-cards__track {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-md);
  padding: 0;
  transform: none !important; /* отключаем слайдер */
}
.team-cards--grid .team-card {
  flex: 1 1 auto;
  width: 100%;
}
.team-cards--grid .team-cards__arrows { display: none; }

@media screen and (max-width: 1199px) {
  .team-cards--grid .team-cards__track { grid-template-columns: repeat(4, 1fr); }
}
@media screen and (max-width: 959px) {
  .team-cards--grid .team-cards__track { grid-template-columns: repeat(3, 1fr); }
}
@media screen and (max-width: 639px) {
  .team-cards--grid .team-cards__track { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================
   SOCIAL BLOCK — социальные инвестиции
   Использует .about__hero pattern, но добавляет акцент-pill
   ============================================ */
.social-block {
  padding: var(--space-xl) 0 var(--space-section);
  background: var(--color-bg);
}
.social-block .about__hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
  margin-bottom: 0;
}
.social-block .about__hero > .about__photo,
.social-block .about__hero > .about__photo-link {
  float: none;
  width: 100%;
  margin: 0;
}
.social-block .about__photo {
  height: 420px;
}

.social-block__pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--color-bg-primary-light);
  color: var(--color-primary);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: var(--text-label);
  font-weight: var(--fw-medium);
  text-transform: uppercase;
  letter-spacing: var(--ls-wide);
  margin-bottom: var(--space-sm);
}
.social-block__pill i { font-size: 16px; }

@media screen and (max-width: 959px) {
  .social-block .about__hero { grid-template-columns: 1fr; gap: var(--space-md); }
  .social-block .about__photo { height: 280px; }
}

/* ============================================
   LEADERSHIP — «Первые лица» (страница /about/)
   3 карточки руководителей с фото, ФИО, должностью и цитатой
   ============================================ */
.leadership {
  padding: var(--space-xl) 0 var(--space-section);
  background: var(--color-bg);
}

.leadership__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

/* Одиночная featured-карточка — компактный layout «цитата → подпись» */
.leadership__grid--single {
  grid-template-columns: 1fr;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
.leader-card--featured {
  padding: clamp(32px, 3.5vw, 48px);
  align-items: stretch;
  text-align: center;
  overflow: visible; /* не скрываем декоративную кавычку у верха */
}
/* Декоративная кавычка сверху — небольшая, как акцент */
.leader-card--featured .leader-card__bg-quote {
  position: static;
  font-size: 48px;
  color: var(--color-primary);
  opacity: 0.35;
  margin: 0 auto var(--space-sm);
  display: block;
  line-height: 1;
}
/* Цитата идёт первой — крупная, italic, без border-left */
.leader-card--featured .leader-card__quote {
  order: -1; /* поднимаем над __head */
  font-size: var(--text-lg);
  line-height: var(--lh-body-relaxed);
  padding: 0;
  border: 0;
  margin: 0 0 var(--space-lg);
}
/* Подпись: фото 64px + имя + должность по центру */
.leader-card--featured .leader-card__head {
  flex-direction: row;
  align-items: center;
  justify-content: center;
  text-align: left;
  gap: var(--space-md);
  margin-bottom: 0;
}
.leader-card--featured .leader-card__photo {
  width: 64px;
  height: 64px;
  flex: 0 0 64px;
}
.leader-card--featured .leader-card__name {
  font-size: var(--text-lg);
  margin-bottom: 2px;
}
.leader-card--featured .leader-card__role {
  font-size: var(--text-sm);
}
@media screen and (max-width: 639px) {
  .leader-card--featured { padding: var(--space-lg); }
  .leader-card--featured .leader-card__quote { font-size: var(--text-base); }
  .leader-card--featured .leader-card__head { flex-direction: column; text-align: center; gap: var(--space-sm); }
}

.leader-card {
  background: var(--color-white);
  border-radius: var(--card-radius);
  padding: var(--card-padding);
  box-shadow: var(--shadow-card-rest);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.leader-card:hover {
  transform: translateY(var(--card-hover-lift));
  box-shadow: var(--shadow-card-hover-light);
}

.leader-card__head {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

.leader-card__photo {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top center;
  flex: 0 0 88px;
  background: var(--color-bg-primary-light);
}

.leader-card__name {
  font-family: var(--font-heading);
  font-size: var(--heading-h4);
  font-weight: var(--fw-semibold);
  line-height: var(--lh-heading-xs);
  letter-spacing: var(--ls-tight-xs);
  color: var(--color-dark-text);
  margin: 0 0 4px;
}

.leader-card__role {
  font-size: var(--text-sm);
  font-weight: var(--fw-medium);
  color: var(--color-medium-gray);
  line-height: var(--lh-body);
  margin: 0;
}

.leader-card__quote {
  position: relative;
  font-size: var(--text-card);
  line-height: var(--lh-body-relaxed);
  color: var(--color-dark-text);
  margin: 0;
  padding-left: var(--space-md);
  border-left: 3px solid var(--color-primary);
  font-style: italic;
}

/* Большая декоративная кавычка-фон — уходит за нижний край */
.leader-card__bg-quote {
  position: absolute;
  right: -16px;
  bottom: -36px;
  font-size: 200px;
  line-height: 1;
  color: var(--color-primary);
  opacity: 0.06;
  pointer-events: none;
  z-index: 0;
}
.leader-card > * { position: relative; z-index: 1; }

@media screen and (max-width: 959px) {
  .leadership__grid { grid-template-columns: 1fr; }
  .leader-card__photo { width: 72px; height: 72px; flex-basis: 72px; }
}

/* ============================================
   DOCUMENTS — «Документы компании» (PDF download cards)
   Используется на /about/ перед CTA-формой
   ============================================ */
.documents {
  padding: var(--space-xl) 0 var(--space-section);
  background: var(--color-bg);
}

.documents__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.document-card {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  align-items: center;
  gap: var(--space-md);
  background: var(--color-white);
  border: 1px solid var(--color-bg-muted);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  text-decoration: none;
  color: inherit;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.document-card:hover {
  transform: translateY(-3px);
  border-color: var(--color-primary);
  box-shadow: var(--shadow-lg);
}

.document-card__icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: var(--color-bg-primary-light);
  color: var(--color-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  transition: background var(--transition), color var(--transition);
}
.document-card:hover .document-card__icon {
  background: var(--color-primary);
  color: var(--color-white);
}

.document-card__body { min-width: 0; }

.document-card__title {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: var(--fw-semibold);
  line-height: var(--lh-heading-xs);
  color: var(--color-dark-text);
  margin: 0 0 4px;
}

.document-card__meta {
  font-size: var(--text-sm);
  color: var(--color-gray-text);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.document-card__meta-sep {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--color-medium-gray);
  opacity: 0.6;
  display: inline-block;
}

.document-card__cta {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-bg);
  color: var(--color-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex: 0 0 44px;
  transition: background var(--transition), color var(--transition), transform var(--transition);
}
.document-card:hover .document-card__cta {
  background: var(--color-primary);
  color: var(--color-white);
  transform: translateY(2px);
}

@media screen and (max-width: 959px) {
  .documents__grid { grid-template-columns: 1fr; }
}

/* ============================================
   ABOUT-PAGE values block (4 принципа)
   Переиспользуем .advantages--large.--cols-3, без новых правил.
   ============================================ */

/* ============================================
   BLOG PAGE — /blog/
   Hero + поиск + рубрики + сетка статей + пагинация
   ============================================ */

/* Hero страницы блога — graphite-градиент с фото-фоном (как .hero--about), но компактнее */
.hero--blog {
  background: var(--hero-overlay),
              url('../images/heroes/westa-train.jpg') center / cover no-repeat;
  min-height: auto;
  align-items: flex-start;
  padding-bottom: var(--space-xl);
}
.hero--blog > .container { width: 100%; }
.hero--blog .hero__title { margin-bottom: var(--space-sm); }
.hero--blog .hero__subtitle { max-width: 720px; }

/* Hero индексных страниц /directions/ и /services/ — тот же компактный паттерн, что .hero--blog */
.hero--directions,
.hero--services {
  min-height: auto;
  align-items: flex-start;
  padding-bottom: var(--space-xl);
}
.hero--directions > .container,
.hero--services > .container { width: 100%; }
.hero--directions .hero__title,
.hero--services .hero__title { margin-bottom: var(--space-sm); }
.hero--directions .hero__subtitle,
.hero--services .hero__subtitle { max-width: 720px; }
.hero--directions {
  background: var(--hero-overlay),
              url('../images/heroes/hero_bg2.jpg') center / cover no-repeat;
}
.hero--services {
  background: var(--hero-overlay),
              url('../images/heroes/hero_bg1.jpg') center / cover no-repeat;
}

/* --- Toolbar: поиск + рубрики --- */
/* Серый фон — продолжение секции с сеткой ниже, без визуального разрыва.
   Поиск выделяется не фоном тулбара, а собственным белым фоном инпута. */
.blog-toolbar {
  background: var(--color-bg);
  padding: var(--space-xl) 0 var(--space-md);
  position: relative;
  z-index: 5;
}

.blog-toolbar__search {
  position: relative;
  max-width: 720px;
  margin: 0 0 var(--space-md);
}

.blog-toolbar__search-icon {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  color: var(--color-medium-gray);
  pointer-events: none;
  transition: color var(--transition);
}

.blog-toolbar__search-input {
  width: 100%;
  height: 56px;
  padding: 0 24px 0 56px;
  background: var(--color-white);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-pill);
  font-family: var(--font-primary);
  font-size: var(--text-base);
  color: var(--color-dark-text);
  transition: border-color var(--transition), background var(--transition), box-shadow var(--transition);
  -webkit-appearance: none;
  appearance: none;
}
.blog-toolbar__search-input::placeholder {
  color: var(--color-medium-gray);
}
.blog-toolbar__search-input::-webkit-search-cancel-button { display: none; }
.blog-toolbar__search-input:hover {
  border-color: var(--color-medium-gray);
}
.blog-toolbar__search-input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: var(--shadow-focus);
}
.blog-toolbar__search-input:focus + .blog-toolbar__search-icon,
.blog-toolbar__search:focus-within .blog-toolbar__search-icon {
  color: var(--color-primary);
}

.blog-toolbar__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  margin: 0;
  padding: 0;
  list-style: none;
}

/* --- Сетка статей --- */
/* Сидит на том же сером фоне, что и .blog-toolbar — без шва между ними. */
.blog-grid-section {
  padding: var(--space-md) 0 var(--space-section);
  background: var(--color-bg);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  margin: 0;
}

/* Скрытые карточки (фильтр / пагинация). Используем display:none —
   из DOM не выпадают, ссылки/SEO остаются. */
.article-card[hidden],
.article-card.is-hidden { display: none; }

/* Article card — белая, 16:9 обложка сверху, текст ниже */
.article-card {
  display: flex;
  flex-direction: column;
  background: var(--color-white);
  border-radius: var(--card-radius);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-card-rest);
  transition: transform var(--transition), box-shadow var(--transition);
  min-height: 360px;
}
.article-card:hover {
  transform: translateY(var(--card-hover-lift));
  box-shadow: var(--shadow-card-hover-light);
}

.article-card__cover {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--color-bg-muted);
  overflow: hidden;
}
.article-card__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.article-card__body {
  padding: var(--space-md) var(--space-md) var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  flex: 1;
}

.article-card__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: var(--text-xs);
  color: var(--color-gray-text);
  margin-bottom: 4px;
}

.article-card__cat {
  display: inline-block;
  padding: 4px 10px;
  background: var(--color-bg-primary-light);
  color: var(--color-primary);
  border-radius: var(--radius-pill);
  font-size: var(--text-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-tight-xs);
  white-space: nowrap;
}

.article-card__date {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.article-card__title {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: var(--fw-semibold);
  line-height: var(--lh-heading-xs);
  letter-spacing: var(--ls-tight-xs);
  color: var(--color-dark-text);
  margin: 4px 0 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color var(--transition);
}
.article-card:hover .article-card__title {
  color: var(--color-primary);
}

.article-card__excerpt {
  font-size: var(--text-card);
  line-height: var(--lh-body);
  color: var(--color-gray-text);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* «Читать →» — text-link стиль (как на главной: «Подробнее о компании →») */
.article-card__more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: var(--space-sm);
  font-size: var(--text-sm);
  font-weight: var(--fw-semibold);
  color: var(--color-primary);
  letter-spacing: var(--ls-tight-xs);
}
.article-card__more-arrow {
  display: inline-block;
  transition: transform var(--transition);
}
.article-card:hover .article-card__more-arrow {
  transform: translateX(3px);
}

/* --- Empty state --- */
.blog-empty {
  text-align: center;
  padding: var(--space-2xl) var(--space-md);
  background: var(--color-bg-alt);
  border-radius: var(--card-radius);
  box-shadow: var(--shadow-card-rest);
}
.blog-empty__icon {
  font-size: 56px;
  color: var(--color-medium-gray);
  margin-bottom: var(--space-md);
  display: inline-block;
}
.blog-empty__title {
  font-family: var(--font-heading);
  font-size: var(--heading-h3);
  font-weight: var(--fw-semibold);
  color: var(--color-dark-text);
  margin: 0 0 var(--space-xs);
}
.blog-empty__text {
  font-size: var(--text-base);
  color: var(--color-gray-text);
  margin: 0;
}

/* --- Pagination --- */
.blog-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  margin-top: var(--space-xl);
}

.blog-pagination__btn,
.blog-pagination__page {
  min-width: 44px;
  height: 44px;
  padding: 0 14px;
  border-radius: var(--radius-pill);
  background: var(--color-white);
  border: 1px solid var(--color-border-subtle);
  color: var(--color-dark-text);
  font-family: var(--font-primary);
  font-size: var(--text-sm);
  font-weight: var(--fw-medium);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
  font-variant-numeric: tabular-nums;
}

.blog-pagination__btn i { font-size: 18px; }

.blog-pagination__btn:hover:not(:disabled),
.blog-pagination__page:hover:not(.is-active):not(.is-ellipsis) {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.blog-pagination__btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.blog-pagination__pages {
  display: flex;
  gap: var(--space-xs);
}

/* Активная страница — primary blue (навигация, не фильтр).
   Чёрный fill оставляем только за tab-pill (рубрики). */
.blog-pagination__page.is-active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-white);
  cursor: default;
}

.blog-pagination__page.is-ellipsis {
  background: transparent;
  border-color: transparent;
  cursor: default;
  color: var(--color-medium-gray);
}

/* --- Адаптив --- */
@media screen and (max-width: 1199px) {
  .blog-grid { grid-template-columns: repeat(3, 1fr); }
}
@media screen and (max-width: 959px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-toolbar { padding: var(--space-md) 0; }
  .blog-toolbar__search-input { height: 52px; font-size: 15px; }
  .blog-toolbar__search-icon { left: 18px; font-size: 20px; }
  .blog-toolbar__search-input { padding-left: 50px; }
}
@media screen and (max-width: 639px) {
  .blog-grid { grid-template-columns: 1fr; }
  .article-card { min-height: auto; }
  .article-card__title { font-size: 18px; }
  .blog-pagination__page,
  .blog-pagination__btn { min-width: 40px; height: 40px; padding: 0 10px; }
}



/* ============================================
   ARTICLE PAGE — /blog/<slug>/
   Премиум-журнальная вёрстка: светлый hero + читаемая колонка контента.
   ============================================ */

/* Header light — флипает цвета шапки/нав-ссылок для страниц с светлым hero
   (где обычная белая шапка нечитаема). Применяется через class="header--light"
   на <header>. Логотип использует logo_blue.svg в HTML. */
.header--light .header__logo-tagline { color: var(--color-gray-text); }
.header--light .header__phone,
.header--light .header__email,
.header--light .header__schedule-label { color: var(--color-dark-text); }
.header--light .header__schedule { color: var(--color-gray-text); }
.header--light .header__btn--outline {
  color: var(--color-dark-text);
  border-color: var(--color-dark-text);
}
.header--light .header__btn--outline:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-white);
}
.header--light .nav__link { color: var(--color-gray-text); }
.header--light .nav__link:hover { color: var(--color-dark-text); }
.header--light .nav__link:hover::before { background: rgba(15, 23, 42, 0.05); }
.header--light .header__nav { border-top-color: var(--color-border-subtle); }
.header--light .burger span { background: var(--color-dark-text); }

/* Hero статьи — светлый, без фото-фона. Только breadcrumb + meta + H1 + lead.
   Естественная высота. Сидит на --color-bg, без разрыва с .article-page (тот же фон). */
.hero--article {
  background: var(--color-bg);
  color: var(--color-dark-text);
  min-height: auto;
  align-items: flex-start;
  padding: 140px 0 var(--space-xl);
}

/* --- Hero overlay-вариант (магазинно-редакторский, NYT-style) ---
   Фото обложки → full-bleed background, поверх — graphite-overlay диагональный,
   текст (breadcrumb, meta, h1, lead) светлый поверх. Активируется через
   class="hero--article-overlay" и inline style с фото обложки.
   На страницах с этим вариантом удаляется standalone .article-page__cover. */
.hero--article-overlay {
  background: var(--hero-overlay), var(--color-dark) center / cover no-repeat;
  background-image: var(--hero-overlay), var(--hero-bg-img, none);
  color: var(--color-white);
  min-height: clamp(440px, 60vh, 580px);
  align-items: flex-start; /* контент сверху, как в .hero--blog */
  padding: 180px 0 var(--space-xl); /* совпадает с padding-top остальных hero */
}
.hero--article-overlay > .container { width: 100%; }

/* Breadcrumb на overlay — белый с opacity */
.hero--article-overlay .breadcrumb { color: var(--text-on-image-muted); }
.hero--article-overlay .breadcrumb__link { color: var(--text-on-image-muted); }
.hero--article-overlay .breadcrumb__link:hover { color: var(--color-white); }
.hero--article-overlay .breadcrumb__current { color: rgba(255, 255, 255, 0.85); }
.hero--article-overlay .breadcrumb__sep { color: rgba(255, 255, 255, 0.4); opacity: 1; }

/* Meta-строка на overlay */
.hero--article-overlay .article-meta {
  color: rgba(255, 255, 255, 0.72);
  gap: 14px; /* чуть просторнее, чтобы элементы не слипались */
  margin: 0 0 var(--space-md);
  font-size: var(--text-sm);
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
}
.hero--article-overlay .article-meta__cat { color: var(--color-white); font-weight: var(--fw-semibold); }
.hero--article-overlay .article-meta__date,
.hero--article-overlay .article-meta__reading {
  font-variant-numeric: tabular-nums;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
/* Sep-точки на overlay — тут нужны явные размеры, .hero--article стили не наследуются */
.hero--article-overlay .article-meta__sep {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  display: inline-block;
}
.hero--article-overlay .article-meta__reading i { color: rgba(255, 255, 255, 0.6); font-size: 14px; }
.hero--article-overlay .article-meta__author { color: rgba(255, 255, 255, 0.72); font-weight: var(--fw-medium); }

/* H1 + lead на overlay */
.hero--article-overlay .hero__title {
  color: var(--color-white);
  /* text-wrap: balance — Chrome 114+/Safari 17.4+/Firefox 121+, авто-балансирует
     длину строк заголовка. Дополняется &nbsp; в HTML после коротких предлогов
     (см. /tmp/typography_fix.py). */
  text-wrap: balance;
}
.hero--article-overlay .hero__subtitle { max-width: 760px; }
.hero--article-overlay .hero__subtitle p {
  color: var(--text-on-image);
  text-wrap: pretty; /* для абзацев — мягкая балансировка последней строки */
}

/* На страницах с overlay-hero standalone .article-page__cover скрываем —
   обложка уже работает как фон. */
.article-page--photo-hero .article-page__cover { display: none; }

/* Колонка контента — узкая (720px) и центрирована для symmetric whitespace
   (NYT/HBR/Stripe Press editorial-pattern). Padding-top 80px = воздух от byline. */
.article-page--photo-hero .article-page__layout {
  max-width: 720px;
  margin: 0 auto;
  padding-top: 80px;
}
/* На photo-hero варианте hero сам по себе — premium-сигнал, primary-rule
   перед H2 становится избыточным шумом (особенно над первой H2 сразу под hero).
   Убираем для всех секций этого варианта. */
.article-page--photo-hero .article-body__section > h2::before { display: none; }
.article-page--photo-hero .article-body__section > h2 { padding-top: 0; }

/* В центрированной 720px колонке вся ширина = ширина текста, поэтому
   .article-body__section-content max-width не нужен. */
.article-page--photo-hero .article-body__section-content { max-width: none; }

/* Back-link тоже центрируем, чтобы был в одной колонке с текстом */
.article-page--photo-hero .article-page__back {
  max-width: 720px;
  margin: var(--space-xl) auto 0;
}

/* Related-articles и cta-form на photo-hero страницах — narrower 920px,
   чтобы сгладить переход от 720px центрированной колонки контента
   к full-width блокам. Используем :has() (Chrome 105+/Safari 15.4+/Firefox 121+). */
main:has(.article-page--photo-hero) .related-articles .container > *,
main:has(.article-page--photo-hero) .cta-form .cta-form__banner {
  max-width: 920px;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================
   ARTICLE BYLINE — мета-полоса между hero и текстом.
   Используется только в photo-hero варианте, где meta вынесена из hero.
   ============================================ */
.article-byline {
  background: var(--color-bg-alt); /* белый */
  border-bottom: 1px solid var(--color-border-subtle);
  padding: 18px 0;
}
.article-byline__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  font-size: var(--text-sm);
  color: var(--color-gray-text);
  max-width: 720px;
  margin: 0 auto; /* такая же центровка, как у layout */
}
.article-byline__cat {
  color: var(--color-primary);
  font-weight: var(--fw-semibold);
}
.article-byline__date,
.article-byline__reading {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-variant-numeric: tabular-nums;
}
.article-byline__reading i {
  font-size: 14px;
  color: var(--color-medium-gray);
}
.article-byline__author {
  color: var(--color-gray-text);
  font-weight: var(--fw-medium);
}
.article-byline__sep {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--color-medium-gray);
  opacity: 0.5;
  display: inline-block;
}

@media screen and (max-width: 959px) {
  .article-byline { padding: 14px 0; }
  .article-byline__row { gap: 10px; font-size: var(--text-xs); }
}
.hero--article > .container { width: 100%; }
/* Контент hero-а — на всю ширину контейнера (как остальные страницы),
   без узкой 760-колонки. */
.hero--article .hero__content { max-width: none; }

/* Breadcrumb — на светлом фоне dark-text */
.hero--article .breadcrumb { color: var(--color-gray-text); }
.hero--article .breadcrumb__link { color: var(--color-gray-text); }
.hero--article .breadcrumb__link:hover { color: var(--color-primary); }
.hero--article .breadcrumb__sep { color: var(--color-medium-gray); opacity: 0.6; }
.hero--article .breadcrumb__current { color: var(--color-dark-text); }

/* Article meta — компактная серая строка под breadcrumb (рубрика · дата · ⏱ N мин) */
.hero--article .article-meta {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin: var(--space-sm) 0 var(--space-md);
  font-size: var(--text-sm);
  color: var(--color-gray-text);
}
.hero--article .article-meta__cat {
  font-weight: var(--fw-semibold);
  color: var(--color-primary);
  text-transform: none;
}
.hero--article .article-meta__date,
.hero--article .article-meta__reading {
  font-variant-numeric: tabular-nums;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.hero--article .article-meta__reading i {
  font-size: 14px;
  color: var(--color-medium-gray);
}
.hero--article .article-meta__sep {
  width: 3px; height: 3px; border-radius: 50%;
  background: var(--color-medium-gray);
  opacity: 0.5;
  display: inline-block;
}
/* Author signature — trust signal (web-designer-instructions-v2 §1.2) */
.hero--article .article-meta__author {
  font-weight: var(--fw-medium);
  color: var(--color-gray-text);
}

/* H1 и lead на светлом */
.hero--article .hero__title {
  font-size: var(--heading-section-lg); /* clamp(28px, 3.4vw, 44px) */
  font-weight: var(--fw-bold);
  line-height: var(--lh-heading-md);
  letter-spacing: var(--ls-tight-sm);
  color: var(--color-dark-text);
  margin-bottom: var(--space-md);
  text-wrap: balance;
}
.hero--article .hero__subtitle {
  max-width: 720px; /* комфортные ~65 символов в строке (см. design-system §3.3) */
  color: var(--color-gray-text);
}
.hero--article .hero__subtitle p {
  font-size: var(--text-lg);
  line-height: var(--lh-body-relaxed);
  color: var(--color-gray-text);
  margin: 0;
}

/* --- Article container — на том же светло-сером фоне, без разрыва с hero --- */
.article-page {
  padding: 0 0 var(--space-section);
  background: var(--color-bg);
}

/* Layout — на всю ширину контейнера. Cover и h2 используют всю ширину,
   текстовые элементы (.article-body__section-content) ограничены ~880px
   для комфортного чтения (75 символов/строка). */
.article-page__layout {
  max-width: none;
  margin: 0;
}

/* Cover image — full layout width */
.article-page__cover img { width: 100%; }

/* Cover image — full-width в layout-е, но плоский 21:9 кроп (cinematic),
   чтобы не доминировал на странице. На 1160px ширине = ~497px высота
   (было 16:9 → ~650px). */
.article-page__cover {
  margin: 0 0 var(--space-2xl);
  border-radius: var(--card-radius);
  overflow: hidden;
  background: var(--color-white);
  box-shadow: var(--shadow-card-rest);
}
.article-page__cover img {
  width: 100%;
  height: auto;
  aspect-ratio: 21 / 9;
  object-fit: cover;
  display: block;
}

/* --- Article body typography --- */
.article-body {
  font-size: var(--text-lg);
  line-height: var(--lh-body-relaxed);
  color: var(--color-dark-text);
}

/* --- Section: каждая логическая секция (h2 + параграфы/списки/callouts) ---
   Single-column. H2 во всю ширину текстовой колонки, контент под ним.
   Между секциями — тонкий border-top для ритма. */
.article-body__section {
  padding: var(--space-xl) 0;
}
.article-body__section + .article-body__section {
  border-top: 1px solid var(--color-border-subtle);
}
.article-body__section:first-child { padding-top: 0; }

/* H2 с primary-rule сверху — отличительный приём (web-designer-instructions-v2 §3,
   «современная сдержанность с одним отличительным приёмом»). Тонкая 3px×40px
   черта primary-цвета над заголовком — премиум-журнальный маркер раздела. */
.article-body__section > h2 {
  position: relative;
  font-family: var(--font-heading);
  font-size: var(--heading-section);
  font-weight: var(--fw-bold);
  line-height: var(--lh-heading-md);
  letter-spacing: var(--ls-tight-sm);
  color: var(--color-dark-text);
  margin: 0 0 var(--space-md);
  padding-top: var(--space-md);
  scroll-margin-top: 100px;
  text-wrap: balance; /* анти-orphan для длинных заголовков */
}
.article-body__section > h2::before {
  content: '';
  display: block;
  width: 40px;
  height: 3px;
  background: var(--color-primary);
  border-radius: 2px;
  margin-bottom: var(--space-md);
}
.article-body__section:first-child > h2 { padding-top: 0; }

/* Контентные элементы (параграфы, списки, callouts) — узкая колонка для чтения
   ~65 символов/строка (design-system §3.3). H2 и cover — на всю ширину layout-а. */
.article-body__section-content {
  max-width: 720px;
}
.article-body__section-content > * { margin: 0 0 var(--space-md); }
.article-body__section-content > *:last-child { margin-bottom: 0; }

/* --- Heading variants --- */
.article-body__section-content h3 {
  font-family: var(--font-heading);
  font-size: var(--heading-h3);
  font-weight: var(--fw-semibold);
  line-height: var(--lh-heading-sm);
  letter-spacing: var(--ls-tight-xs);
  color: var(--color-dark-text);
  margin: var(--space-lg) 0 var(--space-sm);
  scroll-margin-top: 100px;
}
.article-body__section-content h3:first-child { margin-top: 0; }

/* --- Body text --- */
.article-body p {
  font-size: var(--text-lg);
  line-height: var(--lh-body-relaxed);
  color: var(--color-dark-text);
}

.article-body strong, .article-body b {
  font-weight: var(--fw-semibold);
  color: var(--color-dark-text);
}

.article-body em, .article-body i:not([class]) {
  font-style: italic;
  color: var(--color-gray-text);
}

.article-body a {
  color: var(--color-primary);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color var(--transition);
}
.article-body a:hover { color: var(--color-primary-hover); }

/* --- Lists --- */
.article-body ul,
.article-body ol {
  padding-left: 0;
  list-style: none;
}

.article-body li {
  position: relative;
  padding-left: 28px;
  margin-bottom: var(--space-xs);
  font-size: var(--text-lg);
  line-height: var(--lh-body-relaxed);
}
.article-body li:last-child { margin-bottom: 0; }

.article-body ul > li::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 14px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-primary);
}

.article-body ol { counter-reset: article-list; }
.article-body ol > li { counter-increment: article-list; }
.article-body ol > li::before {
  content: counter(article-list) '.';
  position: absolute;
  left: 0;
  top: 0;
  font-weight: var(--fw-semibold);
  color: var(--color-primary);
  min-width: 24px;
}

/* --- Inline image inside article body --- */
.article-body figure {
  margin: var(--space-lg) 0;
  border-radius: var(--card-radius);
  overflow: hidden;
  background: var(--color-bg-muted);
}
.article-body figure img {
  width: 100%;
  height: auto;
  display: block;
}
.article-body figure figcaption {
  padding: var(--space-sm) var(--space-md);
  background: var(--color-white);
  font-size: var(--text-sm);
  color: var(--color-gray-text);
  text-align: center;
}

/* --- Callout (info/tip box) --- */
.article-body__callout {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-md);
  align-items: flex-start;
  background: var(--color-bg-primary-light);
  border-left: 4px solid var(--color-primary);
  border-radius: var(--radius-md);
  padding: var(--space-md) var(--space-lg);
  margin: var(--space-lg) 0;
}
.article-body__callout > i {
  font-size: 24px;
  color: var(--color-primary);
  margin-top: 2px;
}
.article-body__callout-content {
  font-size: var(--text-base);
  line-height: var(--lh-body);
  color: var(--color-dark-text);
}
.article-body__callout-content > *:first-child { margin-top: 0; }
.article-body__callout-content > *:last-child { margin-bottom: 0; }
.article-body__callout-content p {
  margin: 0 0 var(--space-xs);
  font-size: var(--text-base);
  line-height: var(--lh-body);
}
.article-body__callout-content p:last-child { margin-bottom: 0; }
.article-body__callout-content ul,
.article-body__callout-content ol { margin-bottom: 0; }
.article-body__callout-content li {
  font-size: var(--text-base);
  margin-bottom: 4px;
}

/* --- Stats block — премиум-визуализация ключевых данных кейса.
   Используется вместо callout для «Характеристики груза и сроки» в case-статьях.
   Каждый стат: small uppercase label primary + крупное value. */
.article-body__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md) var(--space-xl);
  background: var(--color-bg-primary-light);
  border-radius: var(--radius-md);
  padding: var(--space-lg) var(--space-xl);
  margin: var(--space-lg) 0;
}
.article-body__stat {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.article-body__stat-label {
  font-size: var(--text-label);
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: var(--ls-wide);
  color: var(--color-primary);
}
.article-body__stat-value {
  font-size: var(--text-lg);
  font-weight: var(--fw-semibold);
  line-height: var(--lh-heading-sm);
  color: var(--color-dark-text);
}
@media screen and (max-width: 639px) {
  .article-body__stats {
    grid-template-columns: 1fr;
    padding: var(--space-md);
  }
}

/* --- Back to blog link, после тела --- */
.article-page__back {
  margin: var(--space-xl) 0 0;
  padding-top: var(--space-lg);
  border-top: 1px solid var(--color-border-subtle);
}
.article-page__back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--color-gray-text);
  font-size: var(--text-sm);
  font-weight: var(--fw-medium);
  transition: color var(--transition);
}
.article-page__back-link:hover { color: var(--color-primary); }
/* Стрелка ← (text glyph, как &rarr; в .article-card__more) */
.article-page__back-arrow {
  display: inline-block;
  font-size: 16px;
  line-height: 1;
  transition: transform var(--transition);
}
.article-page__back-link:hover .article-page__back-arrow {
  transform: translateX(-3px);
}

/* --- Related articles --- */
.related-articles {
  padding: var(--space-xl) 0 var(--space-section);
  background: var(--color-bg);
}
.related-articles__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

/* --- Адаптив --- */
@media screen and (max-width: 959px) {
  .hero--article { padding: 120px 0 var(--space-lg); }
  .hero--article .hero__title { font-size: clamp(28px, 4vw, 36px); }
  .article-body { font-size: var(--text-base); }
  .article-body p,
  .article-body li { font-size: var(--text-base); }
  .article-body__section {
    padding: var(--space-lg) 0;
  }
  .article-body__section > h2 { font-size: var(--heading-h3); }
  .related-articles__grid { grid-template-columns: repeat(2, 1fr); }
}
@media screen and (max-width: 639px) {
  .related-articles__grid { grid-template-columns: 1fr; }
  .article-body__callout {
    grid-template-columns: 1fr;
    padding: var(--space-md);
  }
  .article-body__callout > i { display: none; }
}

/* ─── Autocomplete ──────────────────────────────────────────── */
.autocomplete-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: var(--color-white);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  list-style: none;
  margin: 0;
  padding: 4px 0;
  z-index: 200;
  overflow: hidden;
}
.autocomplete-dropdown--open { display: block; }
.autocomplete-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  cursor: pointer;
  font-size: var(--text-sm);
  color: var(--color-dark-text);
  transition: background var(--transition);
}
.autocomplete-item:hover,
.autocomplete-item--active { background: var(--color-bg); }
.autocomplete-item strong { font-weight: 600; }
.autocomplete-item__icon {
  color: var(--color-medium-gray);
  font-size: 16px;
  flex-shrink: 0;
}
.autocomplete-item--manual {
  color: var(--color-gray-text);
  font-style: italic;
  border-top: 1px solid var(--color-border-subtle);
  margin-top: 2px;
}
.autocomplete-item--manual .autocomplete-item__icon { color: var(--color-gray-text); }

/* ===== CERT TYPES — сетка видов сертификатов ===== */
.cert-types {
  padding: var(--section-y) 0;
  background: var(--color-bg);
}

/* bullet-stripe responsive override: 2 кол. на ≤959px (иначе 6 карточек падают в 1 кол.) */
@media screen and (max-width: 959px) {
  .cert-types .bullet-stripe {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (max-width: 479px) {
  .cert-types .bullet-stripe {
    grid-template-columns: 1fr;
  }
}

/* Кнопка «Открыть» внутри bullet-stripe__item (для сертификатов) */
.bullet-stripe__open {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: var(--space-sm);
  font-size: var(--text-xs);
  font-weight: var(--fw-semibold);
  color: var(--color-primary);
  text-decoration: none;
  position: relative;
  z-index: 1;
  transition: opacity var(--transition);
}

.bullet-stripe__open:hover {
  opacity: 0.7;
}
/* ===== END CERT TYPES ===== */

/* ===== LEAD FORM: success / error states ===== */
.form-success {
  text-align: center;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  animation: form-success-in 0.4s ease both;
}
.form-success__icon {
  font-size: 56px;
  line-height: 1;
  color: var(--color-primary);
  margin-bottom: 14px;
}
.form-success__title {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--color-dark);
}
.form-success__text {
  font-size: 15px;
  line-height: 1.5;
  color: var(--color-gray-text);
  margin: 0 auto;
  max-width: 360px;
}
@keyframes form-success-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.form-error {
  margin: 0 0 14px;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  background: rgba(229, 57, 53, 0.08);
  color: var(--color-error);
  font-size: 14px;
  line-height: 1.45;
  animation: form-success-in 0.3s ease both;
}
.form-error a {
  color: inherit;
  font-weight: 600;
  white-space: nowrap;
}
/* ===== END LEAD FORM STATES ===== */
