/* ============================================================
   Middle Corridor — Trans Expeditions
   Фирменные цвета: #000000 / #E81B41 (бренд-мануал, стр. 5)
   Шрифт: Gotham → веб-аналог Montserrat
   ============================================================ */

:root {
  --c-black: #0b0b0c;
  --c-ink: #1a1a1c;
  --c-red: #e81b41;
  --c-red-dark: #c81234;
  --c-white: #ffffff;
  --c-bg: #ffffff;
  --c-bg-soft: #f6f6f7;
  --c-line: #e5e5e8;
  --c-muted: #6f6f76;
  --c-map-other: #ebebee;
  --c-map-part: #ffffff;
  --c-map-stroke: #d6d6db;
  --font: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --container: 1400px;
  --header-h: 76px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--c-ink);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }

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

.skip-link {
  position: fixed;
  top: -60px;
  left: 16px;
  z-index: 300;
  background: var(--c-black);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 12px 18px;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 14px; }

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

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

.overline {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--c-red-dark); /* мелкий текст — тёмный оттенок ради контраста AA */
}
.overline::before {
  content: "";
  width: 34px;
  height: 2px;
  background: var(--c-red);
  flex: none;
}

h1, h2, h3 { font-weight: 700; color: var(--c-black); line-height: 1.12; }

.h2 {
  font-size: clamp(30px, 4vw, 48px);
  letter-spacing: -.01em;
  margin: 18px 0 0;
}

.lead {
  font-size: clamp(16px, 1.4vw, 18px);
  color: var(--c-muted);
  max-width: 720px;
  margin-top: 22px;
}

.section {
  padding: clamp(56px, 6.5vw, 96px) 0;
  border-top: 1px solid var(--c-line);
}
section[id] { scroll-margin-top: calc(var(--header-h) - 8px); }
.section--soft { background: var(--c-bg-soft); }

/* Тёмная акцентная секция */
.section--dark {
  background: var(--c-black);
  border-top-color: var(--c-black);
}
#partnership.section--dark {
  background:
    linear-gradient(rgba(9, 9, 10, .93), rgba(9, 9, 10, .95)),
    url('../assets/photos/partners-fleet.jpg') center / cover no-repeat;
}
.section--dark .h2 { color: #fff; }
.section--dark .lead { color: rgba(255, 255, 255, .62); }
.section--dark .overline { color: var(--c-red); }
.section--dark .overline::before { background: var(--c-red); }
/* Шапка секции: заголовок слева, подводка справа — без пустой правой зоны */
.section-head {
  margin-bottom: clamp(32px, 4vw, 52px);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  column-gap: clamp(32px, 5vw, 80px);
  align-items: end;
}
.section-head .overline, .section-head .h2, .section-head .about__sub { grid-column: 1; }
/* Одноколоночная шапка (заголовок + подзаголовок на всю ширину, в одну строку) */
.section-head.section-head--stack { grid-template-columns: minmax(0, 1fr); }
.section-head.section-head--stack .about__sub { max-width: none; }
.section-head.section-head--stack .lead { grid-column: 1; grid-row: auto; align-self: start; margin-top: 16px; max-width: none; }
.section-head .lead {
  grid-column: 2;
  grid-row: 1 / 9;
  align-self: end;
  margin-top: 0;
  max-width: none;
}
@media (max-width: 960px) {
  .section-head { grid-template-columns: 1fr; }
  .section-head .lead { grid-column: 1; grid-row: auto; margin-top: 18px; }
}

/* ---------- Reveal-анимации ---------- */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
  transition-delay: var(--d, 0s);
}
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .mc-map .mover, .scroll-hint__line::after, .route-draw { animation: none !important; }
}

/* ============================================================
   Header
   ============================================================ */

.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  transition: background .35s var(--ease), box-shadow .35s var(--ease);
}
.header.scrolled {
  background: rgba(255, 255, 255, .9);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--c-line);
}
.header__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.header__logo { flex: none; }
.header__logo svg { height: 34px; width: auto; }

.nav { display: flex; gap: clamp(14px, 2vw, 30px); }
.nav a {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--c-ink);
  padding: 6px 2px;
  position: relative;
  white-space: nowrap;
  transition: color .25s;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%; bottom: 0;
  height: 2px;
  background: var(--c-red);
  transition: right .3s var(--ease);
}
.nav a:hover, .nav a.active { color: var(--c-red); }
.nav a:hover::after, .nav a.active::after { right: 0; }

.lang {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
}
.lang button {
  padding: 14px 10px;
  color: #77777e;
  transition: color .25s;
}
.lang button.active { color: var(--c-black); }
.lang button:hover { color: var(--c-red); }
.lang span { color: #d5d5da; }

.burger {
  display: none;
  width: 44px; height: 44px;
  position: relative;
  z-index: 130;
}
.burger span, .burger::before, .burger::after {
  content: "";
  position: absolute;
  left: 10px; right: 10px;
  height: 2px;
  background: var(--c-black);
  transition: transform .3s var(--ease), opacity .2s;
}
.burger::before { top: 15px; }
.burger span { top: 21px; }
.burger::after { top: 27px; }
.burger.open::before { transform: translateY(6px) rotate(45deg); }
.burger.open span { opacity: 0; }
.burger.open::after { transform: translateY(-6px) rotate(-45deg); }

/* ============================================================
   Hero
   ============================================================ */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-top: calc(var(--header-h) + clamp(28px, 6vh, 72px));
  overflow: hidden;
  background:
    radial-gradient(1200px 500px at 70% 90%, #f1f1f3 0%, rgba(246,246,247,0) 60%),
    var(--c-bg);
}

.hero__top { text-align: center; position: relative; z-index: 2; }

/* Фирменный знак — крупная вотермарка первого экрана */
.hero__mark {
  position: absolute;
  top: 4vh;
  right: -3vw;
  height: 88vh;
  width: auto;
  z-index: 0;
  opacity: .05;
  pointer-events: none;
}

.hero__title {
  font-size: clamp(44px, 8.4vw, 108px);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .01em;
  line-height: .98;
  margin-top: 20px;
}
.hero__title em {
  font-style: normal;
  color: var(--c-red);
}

.hero__subtitle {
  font-size: clamp(15px, 1.6vw, 20px);
  font-weight: 500;
  color: var(--c-muted);
  margin: 22px auto 0;
  max-width: 640px;
}

.hero__map-wrap {
  position: relative;
  flex: 1;
  min-height: 380px;
  margin-top: clamp(10px, 3vh, 40px);
}
.hero__map-wrap .mc-map {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 8%, #000 96%, transparent),
    linear-gradient(to right, transparent, #000 3%, #000 97%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to bottom, transparent, #000 8%, #000 96%, transparent),
    linear-gradient(to right, transparent, #000 3%, #000 97%, transparent);
  mask-composite: intersect;
}

.hero__note {
  max-width: 720px;
  margin: 26px auto 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--c-muted);
}
.hero__note strong {
  color: var(--c-ink);
  font-weight: 600;
}
.hero__note p { margin-top: 8px; }
@media (max-height: 820px) and (min-width: 1101px) {
  /* на невысоких экранах оставляем карте больше места */
  .hero { padding-top: calc(var(--header-h) + 18px); }
  .hero__title { font-size: clamp(40px, 6.6vw, 84px); }
  .hero__subtitle { margin-top: 14px; }
  .hero__note { max-width: 900px; margin-top: 16px; font-size: 12.5px; }
  .hero__note p:last-child { display: none; }
}
.hero__note strong {
  display: block;
  color: var(--c-ink);
  font-weight: 600;
  margin-bottom: 8px;
}

.scroll-hint {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--c-muted);
}
.scroll-hint__line {
  width: 1px; height: 44px;
  background: var(--c-line);
  position: relative;
  overflow: hidden;
}
.scroll-hint__line::after {
  content: "";
  position: absolute;
  left: 0; top: -50%;
  width: 100%; height: 50%;
  background: var(--c-red);
  animation: hint-drop 2s var(--ease) infinite;
}
@keyframes hint-drop {
  0% { top: -50%; }
  70%, 100% { top: 110%; }
}


/* Названия стран поверх карты (их собственные — чёрные, на графите не видны) */
.mc-map .ov-regions .lbl--region {
  font-family: var(--font);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: .3em;
  fill: rgba(255, 255, 255, .8);
  stroke: none;
}
.mc-map .ov-regions text[data-i18n="map.europe"] { fill: #7a7a82; }

/* Подписи городов (живой текст, чуть крупнее) */
.mc-map .mc-cities text {
  font-family: var(--font);
  font-size: 18px;
  font-weight: 600;
  fill: #141417;
  paint-order: stroke;
  stroke: rgba(255,255,255,.92);
  stroke-width: 3.4px;
  pointer-events: none;
}
/* Названия стран (свои, английские, мелкие, контрастные) */
.mc-map .mc-countries text[data-i18n-x="EUROPE"] { fill: #8a8a92; stroke: rgba(255,255,255,.55); }
.mc-map .mc-countries text {
  font-family: var(--font);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: .28em;
  fill: #ffffff;
  paint-order: stroke;
  stroke: rgba(11,11,12,.35);
  stroke-width: 3px;
  pointer-events: none;
}
/* ---------- Карта маршрута (реальные дороги, брендбук) ---------- */

.mc-map .hatch-line { stroke: #0b0b0c; stroke-opacity: .05; stroke-width: 1; }
.mc-map .map-others path {
  fill: var(--map-other, #e9e9ec);
  stroke: var(--map-line, #ffffff);
  stroke-width: .8;
}
/* страны коридора — графит (брендбук: чёрный) */
.mc-map .map-corridor .cty {
  fill: var(--map-corridor-fill, #2a2a31);
  stroke: var(--map-line, #ffffff);
  stroke-width: .8;
}
.mc-map .cty--ge { fill: #3a3a43; }

/* МАРШРУТ — единственный красный акцент (фуры) */
.mc-map .rd-case {
  stroke: var(--map-rail, #ffffff);
  stroke-width: 5;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.mc-map .rd {
  stroke: var(--c-red);
  stroke-width: 2.6;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
/* море — единственный переход через Каспий (кораблик) */
.mc-map .rs {
  stroke: var(--c-red);
  stroke-width: 2;
  fill: none;
  stroke-dasharray: 2 6;
  stroke-linecap: round;
}
/* авиа — единственное направление Караганда–Льеж (самолёт) */
.mc-map .ra {
  stroke: #8d8d97;
  stroke-width: 1.3;
  fill: none;
  stroke-dasharray: 5 5;
  stroke-linecap: round;
}
.mc-map .mk--w { fill: var(--map-rail, #ffffff); }
.mc-map .mk--r { fill: var(--c-red); }

.mc-map .pt-ring2 { fill: var(--map-rail, #ffffff); stroke: var(--c-red); stroke-width: 1.6; }
.mc-map .pt-core { fill: var(--c-red); }
.mc-map .pt--city { fill: var(--map-dark, #141417); }
.mc-map .pt--capital {
  fill: var(--map-dark, #141417);
  stroke: var(--map-rail, #ffffff);
  stroke-width: 1.4;
}

.mc-map .lbl {
  font-family: var(--font);
  font-size: 12.5px;
  font-weight: 600;
  fill: var(--map-text, #141417);
  paint-order: stroke;
  stroke: var(--map-halo, rgba(255, 255, 255, .88));
  stroke-width: 3px;
}
.mc-map .lbl--minor { font-size: 11px; font-weight: 500; fill: var(--map-text2, #3c3c42); }
.mc-map .lbl--region {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .3em;
  text-transform: uppercase;
  fill: rgba(255, 255, 255, .7);
  stroke: none;
}
/* ЕВРОПА лежит на светлой заливке — ей нужен серый */
.mc-map text[data-i18n="map.europe"] { fill: #9a9aa4; }
.mc-map .lbl--sea {
  font-size: 9.5px;
  letter-spacing: .2em;
  fill: var(--map-region, #9a9aa2);
  stroke: none;
}

.mc-map .mover .mover-bg { fill: #ffffff; stroke: var(--c-red, #e81b41); stroke-width: 1.4; }
.mc-map .mover .mover-ic { fill: none; stroke: var(--c-black, #0b0b0c); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }


/* анимация: прорисовка линий каскадом, затем точки, подписи, транспорт */
.mc-map .draw {
  stroke-dasharray: var(--len);
  stroke-dashoffset: var(--len);
  animation: mc-draw .9s var(--ease) forwards;
  animation-delay: calc(.25s + var(--i) * .08s);
}
.mc-map .rs.draw, .mc-map .ra.draw {
  stroke-dashoffset: 0;
  opacity: 0;
  animation: mc-fade .7s var(--ease) forwards;
  animation-delay: calc(.45s + var(--i) * .08s);
}
.mc-map .rs.draw { stroke-dasharray: 2 6; }
.mc-map .ra.draw { stroke-dasharray: 5 5; }
@keyframes mc-draw { to { stroke-dashoffset: 0; } }
@keyframes mc-fade { to { opacity: 1; } }
.mc-map .points, .mc-map .labels {
  opacity: 0;
  animation: mc-fade 1s var(--ease) 2.1s forwards;
}
.mc-map .movers {
  opacity: 0;
  animation: mc-fade 1s var(--ease) 2.9s forwards;
}

@media (prefers-reduced-motion: reduce) {
  .mc-map .draw, .mc-map .rs.draw, .mc-map .ra.draw {
    animation: none;
    stroke-dashoffset: 0;
    opacity: 1;
  }
  .mc-map .rs.draw { stroke-dasharray: 2 6; }
  .mc-map .ra.draw { stroke-dasharray: 5 5; }
  .mc-map .points, .mc-map .labels { animation: none; opacity: 1; }
  .mc-map .movers { display: none; }
}


/* ============================================================
   02 — Значение маршрута: карточки
   ============================================================ */

.cards-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--c-line);
  border: 1px solid var(--c-line);
}
.card {
  background: var(--c-white);
  padding: clamp(26px, 2.6vw, 40px);
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 280px;
  position: relative;
  overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.card::before {
  content: "";
  position: absolute;
  top: -1px; left: 0;
  width: 100%; height: 3px;
  background: var(--c-red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s var(--ease);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 44px rgba(11, 11, 12, .08);
  z-index: 2;
}
.card:hover::before { transform: scaleX(1); }
.card__wm {
  position: absolute;
  right: -26px;
  bottom: -26px;
  width: 150px;
  height: 150px;
  fill: none;
  stroke: var(--c-red);
  stroke-width: .8;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: .07;
  pointer-events: none;
}
.card__icon {
  width: 44px; height: 44px;
  color: var(--c-red);
}
.card__icon svg {
  width: 100%; height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-top: 6px;
  min-height: 50px; /* зона на 2 строки: тексты во всех карточках начинаются на одном уровне */
  display: flex;
  align-items: flex-start;
}
.card p { font-size: 14px; color: var(--c-muted); }

/* ============================================================
   03 — Экосистема проектов
   ============================================================ */

.projects { border-top: 1px solid var(--c-line); }
.project {
  display: grid;
  grid-template-columns: 90px 1fr 2fr;
  gap: clamp(16px, 3vw, 48px);
  align-items: baseline;
  padding: clamp(24px, 3vw, 38px) 22px;
  border-bottom: 1px solid var(--c-line);
  transition: background .35s var(--ease);
  position: relative;
}
.project h3, .project p { transition: color .35s var(--ease); }
.project:hover { background: var(--c-black); }
.project:hover h3 { color: #fff; }
.project:hover p { color: rgba(255, 255, 255, .66); }
.project:hover .project__num { color: var(--c-red); }
.project__num {
  font-size: 13px;
  font-weight: 700;
  color: var(--c-red-dark);
  letter-spacing: .1em;
}
.project h3 {
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 700;
  letter-spacing: -.01em;
}
.project p { font-size: 14.5px; color: var(--c-muted); max-width: 640px; }

/* ============================================================
   04 — Trans Expeditions
   ============================================================ */

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}

.about-grid .h2 { margin-bottom: 8px; }
.about__sub {
  font-size: 15px;
  font-weight: 600;
  color: var(--c-red-dark);
  margin-bottom: 22px;
}
.section-head .about__sub { margin: 14px 0 0; max-width: 720px; }
.about__text p { color: var(--c-muted); font-size: 15.5px; margin-bottom: 14px; }

.competences { margin-top: 34px; display: grid; gap: 0; }
.competence {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 16px;
  padding: 18px 0;
  border-top: 1px solid var(--c-line);
}
.competence__icon { color: var(--c-red); padding-top: 3px; }
.competence__icon svg {
  width: 26px; height: 26px;
  fill: none; stroke: currentColor;
  stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
}
.competence .competence__t { font-size: 15px; font-weight: 600; color: var(--c-black); }
.competence p { font-size: 13.5px; color: var(--c-muted); margin-top: 4px; }

.stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--c-red);
}
.stat {
  background: var(--c-red-dark);
  padding: clamp(24px, 2.4vw, 36px);
  min-height: 150px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
}
.stats .stat:nth-child(3) { grid-column: 1 / -1; min-height: 0; }
.stat__value {
  font-size: clamp(28px, 2.6vw, 40px);
  font-weight: 800;
  color: #fff;
  letter-spacing: -.02em;
  line-height: 1.05;
}
.stat p {
  font-size: 12.5px;
  color: rgba(255, 255, 255, .92);
  line-height: 1.5;
}
.stat--wide { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: flex-start; gap: 20px; min-height: 0; }
.stat--wide .geo {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.geo span {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 7px 13px;
  border: 1px solid rgba(255, 255, 255, .45);
  border-radius: 100px;
  color: #fff;
}

.about__visual {
  margin-top: 28px;
  aspect-ratio: 16 / 9;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(120deg, #17171a 0%, #2a2a30 60%, #3c3c44 100%);
}
.about__visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.about__visual .te-pattern {
  position: absolute;
  right: -40px;
  bottom: -60px;
  width: 55%;
  opacity: .5;
}
.about__visual figcaption {
  position: absolute;
  left: 22px;
  bottom: 18px;
  color: rgba(255, 255, 255, .55);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
}

/* ============================================================
   05 — Команда
   ============================================================ */

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(18px, 2vw, 28px);
}
@media (max-width: 1200px) {
  .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.person__photo {
  aspect-ratio: 4 / 4.6;
  background: linear-gradient(160deg, #ececef 0%, #dedee2 100%);
  position: relative;
  overflow: hidden;
}
.person__photo::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 3px;
  background: var(--c-red);
  transform: scaleX(.18);
  transform-origin: left;
  transition: transform .4s var(--ease);
}
.person:hover .person__photo::after { transform: scaleX(1); }
.person__photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
}
.person__initials {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 64px;
  font-weight: 800;
  color: #c6c6cc;
  letter-spacing: .04em;
}
.person h3 { font-size: 18px; font-weight: 700; margin-top: 18px; }
.person__role {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--c-red-dark);
  margin-top: 6px;
}
.person p { font-size: 13.5px; color: var(--c-muted); margin-top: 12px; }

/* ============================================================
   06 — Кейсы
   ============================================================ */

.cases { display: grid; gap: clamp(24px, 3vw, 40px); }
.case {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  background: #fff;
  border: 1px solid var(--c-line);
}
.case__media {
  position: relative;
  min-height: 320px;
  background:
    linear-gradient(150deg, #1a1a1e 0%, #303038 70%, #45454f 100%);
  overflow: hidden;
}
.case__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.case__media .te-pattern {
  position: absolute;
  left: -30px;
  top: -40px;
  width: 60%;
  opacity: .35;
}
.case__media figcaption {
  position: absolute;
  left: 22px; bottom: 18px;
  color: rgba(255,255,255,.5);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.case__tag {
  position: absolute;
  top: 20px; left: 22px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #fff;
  background: var(--c-red);
  padding: 7px 12px;
}
.case__body { padding: clamp(26px, 3vw, 44px); }
.case h3 { font-size: clamp(22px, 2.4vw, 30px); }
.case__desc { font-size: 14.5px; color: var(--c-muted); margin-top: 14px; max-width: 560px; }

.case__params {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px 24px;
  margin-top: 26px;
  padding-top: 24px;
  border-top: 1px solid var(--c-line);
}
.param b {
  display: block;
  font-size: clamp(19px, 1.8vw, 24px);
  font-weight: 800;
  color: var(--c-black);
  letter-spacing: -.01em;
  line-height: 1.1;
}
.param span { font-size: 11.5px; color: var(--c-muted); display: block; margin-top: 4px; line-height: 1.45; }

.case__more {
  max-height: 0;
  overflow: hidden;
  transition: max-height .5s var(--ease);
}
.case__more-inner {
  margin-top: 22px;
  padding: 18px 20px;
  background: var(--c-bg-soft);
  border-left: 2px solid var(--c-red);
  font-size: 14px;
  color: var(--c-ink);
}
.case__more-inner b { display: block; margin-bottom: 6px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--c-red); }

.case__toggle {
  margin-top: 14px;
  padding: 10px 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--c-black);
  transition: color .25s;
}
.case__toggle:hover { color: var(--c-red); }
.case__toggle .ic {
  width: 26px; height: 26px;
  border: 1px solid currentColor;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: transform .35s var(--ease);
}
.case__toggle .ic::before, .case__toggle .ic::after {
  content: "";
  position: absolute;
  background: currentColor;
}
.case__toggle .ic::before { width: 10px; height: 1.6px; }
.case__toggle .ic::after { width: 1.6px; height: 10px; transition: transform .3s; }
.case.expanded .case__toggle .ic::after { transform: scaleY(0); }

/* ============================================================
   07 — Партнёрство
   ============================================================ */

.partners {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, .18);
  border: 1px solid rgba(255, 255, 255, .18);
}
.partner {
  background: var(--c-black);
  padding: clamp(22px, 2.2vw, 34px) clamp(18px, 1.8vw, 28px);
  min-height: 170px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  transition: background .3s;
}
.partner:hover { background: #17171a; }
.partner { position: relative; overflow: hidden; }
.partner__ic {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: var(--c-red);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  margin-top: 10px;
}
.partner__wm {
  position: absolute;
  right: -22px;
  bottom: -22px;
  width: 120px;
  height: 120px;
  fill: none;
  stroke: #ffffff;
  stroke-width: .8;
  opacity: .07;
  pointer-events: none;
}
.partner__n {
  font-size: 12px;
  font-weight: 700;
  color: var(--c-red);
}
.partner h3 {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
  color: #fff;
  overflow-wrap: break-word;
}

/* ============================================================
   CTA — призыв к сотрудничеству
   ============================================================ */

.cta {
  background:
    linear-gradient(rgba(200, 18, 52, .9), rgba(200, 18, 52, .9)),
    url('../assets/photos/cta-blade.jpg') center / cover no-repeat;
  color: #fff;
  padding: clamp(56px, 7vw, 96px) 0;
  border-top: none;
  position: relative;
  overflow: hidden;
}
.cta .te-pattern {
  position: absolute;
  right: -50px;
  top: -70px;
  width: 320px;
  opacity: .12;
  --mark-fill: #ffffff;
  pointer-events: none;
}
.cta__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px 48px;
  position: relative;
  z-index: 1;
}
.cta h2 {
  color: #fff;
  font-size: clamp(26px, 3.2vw, 40px);
  letter-spacing: -.01em;
}
.cta p {
  color: rgba(255, 255, 255, .88);
  font-size: 15px;
  margin-top: 12px;
  max-width: 560px;
}
.btn.btn--light {
  background: #fff;
  color: var(--c-red-dark);
  flex: none;
}
.btn.btn--light:hover {
  background: #ffffff;
  color: var(--c-black);
  transform: translateY(-3px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .28);
}

/* ============================================================
   08 — FAQ
   ============================================================ */

.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: start;
}
.faq { max-width: none; }
.faq-side {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  background:
    linear-gradient(rgba(11, 11, 12, .88), rgba(11, 11, 12, .92)),
    url('../assets/photos/faq-office.jpg') center / cover no-repeat;
  color: #fff;
  padding: clamp(28px, 3vw, 44px);
  overflow: hidden;
  position: relative;
  position: sticky;
}
.faq-side .te-pattern {
  position: absolute;
  right: -46px;
  top: -56px;
  width: 200px;
  opacity: .16;
  pointer-events: none;
}
.faq-side h3 { color: #fff; font-size: clamp(19px, 1.8vw, 24px); position: relative; }
.faq-side p { color: rgba(255, 255, 255, .66); font-size: 14px; margin: 12px 0 22px; position: relative; }
.faq-side .btn { position: relative; }
@media (max-width: 960px) {
  .faq-grid { grid-template-columns: 1fr; }
  .faq-side { position: static; }
}
.faq-item { border-bottom: 1px solid var(--c-line); }
.faq-item:first-child { border-top: 1px solid var(--c-line); }
.faq-item__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  text-align: left;
  padding: 22px 2px;
  font-size: clamp(15px, 1.6vw, 18px);
  font-weight: 600;
  color: var(--c-black);
  transition: color .25s;
}
.faq-item__q:hover { color: var(--c-red); }
.faq-item__q .ic {
  flex: none;
  width: 30px; height: 30px;
  border: 1px solid var(--c-line);
  border-radius: 50%;
  position: relative;
  transition: transform .4s var(--ease), border-color .3s, background .3s;
}
.faq-item__q .ic::before, .faq-item__q .ic::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  background: var(--c-red);
  transform: translate(-50%, -50%);
  transition: background .3s;
}
.faq-item__q .ic::before { width: 12px; height: 1.6px; }
.faq-item__q .ic::after { width: 1.6px; height: 12px; transition: transform .3s var(--ease), background .3s; }
.faq-item.open .faq-item__q .ic {
  transform: rotate(180deg);
  border-color: var(--c-red);
  background: var(--c-red);
}
.faq-item.open .faq-item__q .ic::before, .faq-item.open .faq-item__q .ic::after { background: #fff; }
.faq-item.open .faq-item__q .ic::after { transform: translate(-50%, -50%) scaleY(0); }
.faq-item__a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .45s var(--ease);
}
.faq-item__a p {
  padding: 0 44px 24px 2px;
  font-size: 14.5px;
  color: var(--c-muted);
  max-width: 720px;
}

/* ============================================================
   09 — Контакты
   ============================================================ */

.contacts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 5vw, 80px);
  align-items: start;
}

.contact-rows { margin-top: 34px; display: grid; }
.contact-row {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 18px;
  padding: 18px 0;
  border-top: 1px solid var(--c-line);
  align-items: start;
}
.contact-row svg {
  width: 22px; height: 22px;
  fill: none; stroke: var(--c-red);
  stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
  margin-top: 2px;
}
.contact-row span {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--c-muted);
  margin-bottom: 4px;
}
.contact-row a, .contact-row p {
  font-size: 16px;
  font-weight: 600;
  color: var(--c-black);
  line-height: 1.5;
}
.contact-row a:hover { color: var(--c-red); }

.socials {
  margin-top: 26px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.social {
  border: 1px solid var(--c-line);
  padding: 18px 20px;
  display: grid;
  grid-template-columns: 28px 1fr 16px;
  gap: 14px;
  align-items: center;
  transition: border-color .3s, transform .3s var(--ease);
}
.social:hover { border-color: var(--c-red); transform: translateY(-3px); }
.social__ic { color: var(--c-black); }
.social__ic svg { width: 24px; height: 24px; fill: currentColor; }
.social b { font-size: 14px; font-weight: 700; display: block; }
.social span { font-size: 11.5px; color: var(--c-muted); display: block; margin-top: 2px; line-height: 1.4; }
.social__arr { color: #c9c9cf; transition: color .3s, transform .3s; }
.social:hover .social__arr { color: var(--c-red); transform: translate(3px, -3px); }

/* ---------- WhatsApp и карта ---------- */

.contact-side { display: grid; gap: 20px; }

.wa-card {
  background: var(--c-black);
  color: #fff;
  padding: clamp(22px, 2.2vw, 30px);
  position: relative;
  overflow: hidden;
}
.wa-card .te-pattern {
  position: absolute;
  right: -50px;
  top: -60px;
  width: 220px;
  opacity: .16;
  pointer-events: none;
}
.wa-card__ic {
  display: inline-flex;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--c-red);
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  position: relative;
}
.wa-card__ic svg { width: 24px; height: 24px; fill: #fff; }
.wa-card h3 { color: #fff; font-size: clamp(18px, 1.7vw, 22px); position: relative; }
.wa-card p { color: rgba(255, 255, 255, .66); font-size: 13.5px; margin: 10px 0 18px; max-width: 460px; position: relative; }
.wa-card .btn { position: relative; }

.map-card {
  border: 1px solid var(--c-line);
  background: #fff;
}
.map-card__frame {
  display: block;
  width: 100%;
  height: 470px;
  border: 0;
}
.map-card__info {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 24px;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
}
.map-card__info b { display: block; font-size: 14px; }
.map-card__info span { display: block; font-size: 12px; color: var(--c-muted); margin-top: 4px; max-width: 380px; }
.map-card__btn {
  flex: none;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--c-red-dark);
  border: 1px solid var(--c-red);
  padding: 12px 18px;
  transition: background .3s, color .3s;
}
.map-card__btn:hover { background: var(--c-red); color: #fff; }

/* ---------- Форма ---------- */

.form-card {
  background: var(--c-black);
  color: #fff;
  padding: clamp(28px, 3.4vw, 48px);
  position: relative;
  overflow: hidden;
}
.form-card .te-pattern {
  position: absolute;
  right: -60px;
  top: -70px;
  width: 46%;
  opacity: .18;
  pointer-events: none;
}
.form-card h3 { color: #fff; font-size: clamp(20px, 2vw, 26px); }
.form-card > p { color: rgba(255,255,255,.55); font-size: 13.5px; margin-top: 10px; }

.form { margin-top: 26px; display: grid; gap: 18px; position: relative; z-index: 1; }
.field label {
  display: block;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(255,255,255,.5);
  margin-bottom: 7px;
}
.field input, .field textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255,255,255,.42);
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  padding: 8px 0 12px;
  outline: none;
  transition: border-color .3s;
  border-radius: 0;
}
.field textarea { resize: vertical; min-height: 56px; }
.field input:focus, .field textarea:focus { border-color: var(--c-red); }
.field input:focus-visible, .field textarea:focus-visible {
  outline: 2px solid var(--c-red);
  outline-offset: 3px;
}
.field input::placeholder, .field textarea::placeholder { color: rgba(255,255,255,.5); }
.field.invalid input, .field.invalid textarea { border-color: var(--c-red); }
.field .err {
  display: none;
  font-size: 11.5px;
  color: #ff7a93;
  margin-top: 6px;
}
.field.invalid .err { display: block; }

.form-error {
  font-size: 13px;
  color: #ff7a93;
  border-left: 2px solid #ff7a93;
  padding: 10px 14px;
  background: rgba(255, 122, 147, .08);
}
.form-error[hidden] { display: none; }
.btn[disabled] { opacity: .55; pointer-events: none; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: var(--c-red);
  color: #fff;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 18px 34px;
  transition: background .3s, transform .3s var(--ease);
}
.btn:hover { background: var(--c-red-dark); transform: translateY(-2px); }
.btn svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; }

.form__policy { font-size: 11px; color: rgba(255,255,255,.6); line-height: 1.55; }
.form__policy a { text-decoration: underline; }

.form-success {
  display: none;
  padding: 40px 0 20px;
  text-align: center;
}
.form-success.show { display: block; }
.form-success .ok {
  width: 64px; height: 64px;
  margin: 0 auto 22px;
  border: 2px solid var(--c-red);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.form-success .ok svg { width: 28px; height: 28px; fill: none; stroke: var(--c-red); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.form-success p { color: rgba(255,255,255,.75); font-size: 15px; max-width: 320px; margin: 0 auto; }

/* ============================================================
   Footer
   ============================================================ */

.footer {
  background: var(--c-black);
  color: rgba(255, 255, 255, .6);
  padding: 34px 0 26px;
  border-top: 3px solid var(--c-red);
}
.footer__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}
.footer__logo svg { height: 32px; width: auto; }
.footer__logo { --logo-word: #ffffff; flex: none; }
.footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 22px;
}
.footer__nav a, .footer__soc a {
  font-size: 12.5px;
  color: rgba(255, 255, 255, .72);
  transition: color .25s;
  padding: 6px 0;
  display: inline-block;
  white-space: nowrap;
}
.footer__nav a:hover, .footer__soc a:hover { color: var(--c-red); }
.footer__soc {
  display: flex;
  gap: 4px 18px;
}
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 32px;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-right: 96px; /* зазор под плавающую кнопку WhatsApp */
  font-size: 12px;
  color: rgba(255, 255, 255, .6);
}
.footer__bottom a { text-decoration: underline; transition: color .25s; }
.footer__bottom a:hover { color: #fff; }
@media (max-width: 960px) {
  .footer__row { flex-direction: column; align-items: flex-start; gap: 18px; }
  .footer__bottom { padding-right: 0; padding-bottom: 64px; }
}

/* ============================================================
   Плавающая кнопка связи
   ============================================================ */

.fab {
  position: fixed;
  right: 26px;
  bottom: 26px;
  z-index: 90;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--c-red);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(232, 27, 65, .35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(.8);
  pointer-events: none;
  transition: opacity .4s var(--ease), transform .4s var(--ease), background .3s, visibility .4s;
}
.fab.show { opacity: 1; visibility: visible; transform: none; pointer-events: auto; }
.fab:hover { background: var(--c-red-dark); }
.fab svg { width: 26px; height: 26px; fill: currentColor; stroke: none; }

/* ============================================================
   Адаптив
   ============================================================ */

/* лёгкое сжатие меню на средних ширинах (8 пунктов) */
@media (max-width: 1400px) and (min-width: 1201px) {
  .nav { gap: 14px; }
  .nav a { font-size: 11px; letter-spacing: .06em; }
}

@media (max-width: 1200px) {
  .cards-4 { grid-template-columns: 1fr 1fr; }
  .partners { grid-template-columns: repeat(6, 1fr); }
  .partner { grid-column: span 2; }
  .partner:nth-child(4), .partner:nth-child(5) { grid-column: span 3; }
  .project { grid-template-columns: 60px 1fr; }
  .project p { grid-column: 2; }

  /* мобильное меню: 7 пунктов навигации не помещаются в шапку уже при ~1055px */
  .nav {
    position: fixed;
    inset: 0;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 120;
    background: #fff;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 8px;
    opacity: 0;
    visibility: hidden;
    transition: opacity .35s var(--ease);
  }
  .nav.open { opacity: 1; visibility: visible; }
  .nav a { font-size: 17px; padding: 12px; }
  .burger { display: block; }
  .header .lang { margin-left: auto; margin-right: 4px; }
  /* логотип и переключатель языка остаются кликабельными над оверлеем меню */
  .header__logo, .header .lang { position: relative; z-index: 130; }

  .about-grid, .contacts-grid { grid-template-columns: 1fr; }
  .case { grid-template-columns: 1fr; }
  .case__media { min-height: 220px; }
  .scroll-hint {
    position: static;
    transform: none;
    margin: 28px auto 30px;
  }
}

@media (max-width: 840px) {
  .team-grid { grid-template-columns: 1fr; gap: 22px; }
  .person {
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 0 24px;
    align-items: start;
  }
  .person__photo { grid-row: 1 / 4; aspect-ratio: 4 / 4.6; }
  .person h3 { margin-top: 0; }
}

@media (max-width: 520px) {
  .person { grid-template-columns: 1fr; }
  .person__photo { grid-row: auto; margin-bottom: 4px; max-height: 340px; }
  .person h3 { margin-top: 16px; }
}

/* Мобильные и планшеты: карта целиком по ширине, hero по высоте контента, без scroll-подсказки */
@media (max-width: 1024px) {
  .scroll-hint { display: none; }
  .hero { min-height: auto; padding-bottom: clamp(22px, 5vw, 44px); }
  .hero__map-wrap {
    flex: none;
    min-height: 0;
    min-width: 0;
    width: 100%;
    max-width: 100%;
    margin-top: clamp(10px, 3vw, 26px);
    overflow: hidden;
  }
  .hero__map-wrap .mc-map {
    position: static;
    width: 100%;
    max-width: 100%;
    height: auto;
    -webkit-mask-image: none;
    mask-image: none;
  }
}

@media (max-width: 640px) {
  .cards-4 { grid-template-columns: 1fr; }
  .card { min-height: 0; }
  .card h3 { min-height: 0; }
  .partners { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .partner { grid-column: auto; min-height: 0; }
  .partner h3 { hyphens: auto; }
  .partner:nth-child(4) { grid-column: auto; }
  .partner:nth-child(5) { grid-column: span 2; }
  .case__params { grid-template-columns: 1fr 1fr; }
  .socials { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .stat { min-height: 0; }
  .hero__top .overline::before { display: none; }
  .mc-map .lbl { font-size: 15px; }
  .mc-map .lbl--minor { font-size: 13px; }
  .fab { right: 18px; bottom: 18px; }
  .footer__grid { grid-template-columns: 1fr; }
}

/* Фолбэк для браузеров без aspect-ratio (Safari ≤ 14) */
@supports not (aspect-ratio: 1 / 1) {
  .person__photo::before { content: ""; display: block; padding-top: 115%; }
  .about__visual::before { content: ""; display: block; padding-top: 56.25%; }
}
