/* ───────────────────────────────
   RESET & BASE
─────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: Arial, sans-serif;
  background-color: #00162B;
  color: #fff;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }

/* ───────────────────────────────
   CSS VARIABLES
─────────────────────────────── */
:root {
  --bg:           #00162B;
  --bg-dark:      #1C202D;
  --bg-card:      #2C3B4C;
  --bg-card-mid:  #292937;
  --accent:       #FF8368;
  --accent-red:   #EE2F53;
  --blue:         #0066B3;
  --text-muted:   #787B86;
  --text-light:   #BBBBC9;
  --border:       rgba(255,255,255,0.12);
  --max-w:        1280px;
  --px:           clamp(16px, 4vw, 80px);
  --header-h:     128px;
}

/* ───────────────────────────────
   TYPOGRAPHY HELPERS
─────────────────────────────── */
.font-play   { font-family: 'Play', Arial, sans-serif; }
.section-title {
  font-family: 'Play', Arial, sans-serif;
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.25;
}

/* ───────────────────────────────
   LAYOUT HELPERS
─────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--px);
}
section { position: relative; }

/* ───────────────────────────────
   COOKIE BANNER
─────────────────────────────── */
.cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 48px);
  max-width: 960px;
  background: #1C202D;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 24px;
  z-index: 9999;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}
.cookie-banner p {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-light);
  flex: 1;
}
.cookie-banner p a { color: var(--accent); }
.cookie-actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
  flex-wrap: wrap;
}
.btn-cookie-accept {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 5px;
  padding: 10px 20px;
  font-family: Arial, sans-serif;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  white-space: nowrap;
}
.btn-cookie-settings {
  background: transparent;
  color: var(--text-light);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 10px 20px;
  font-family: Arial, sans-serif;
  font-size: 14px;
  cursor: pointer;
  white-space: nowrap;
}
.btn-cookie-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 20px;
  cursor: pointer;
  line-height: 1;
  flex-shrink: 0;
}

/* ───────────────────────────────
   COOKIE MODAL
─────────────────────────────── */
.cookie-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 10000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.cookie-modal-overlay.open {
  display: flex;
}
.cookie-modal {
  position: relative;
  background: #1C202D;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  width: 100%;
  max-width: 540px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.6);
}
.cookie-modal__close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 24px;
  cursor: pointer;
  line-height: 1;
  padding: 4px;
  transition: color 0.15s;
}
.cookie-modal__close:hover { color: #fff; }
.cookie-modal__title {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 12px;
}
.cookie-modal__desc {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-light);
  margin: 0 0 24px;
}
.cookie-modal__section {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 20px;
  margin-bottom: 12px;
}
.cookie-modal__section:last-of-type { margin-bottom: 24px; }
.cookie-modal__section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}
.cookie-modal__section-title {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
}
.cookie-modal__section-desc {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-light);
  margin: 0;
}
/* Тоггл */
.cookie-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
  flex-shrink: 0;
}
.cookie-toggle input { display: none; }
.cookie-toggle__slider {
  position: relative;
  width: 44px;
  height: 24px;
  background: #444;
  border-radius: 12px;
  transition: background 0.2s;
  flex-shrink: 0;
}
.cookie-toggle__slider::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.2s;
}
.cookie-toggle input:checked ~ .cookie-toggle__slider { background: #4CAF50; }
.cookie-toggle input:checked ~ .cookie-toggle__slider::after { transform: translateX(20px); }
.cookie-toggle__label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  min-width: 60px;
}
.cookie-toggle input:checked ~ .cookie-toggle__slider ~ .cookie-toggle__label {
  color: #4CAF50;
}
/* Кнопка сохранить */
.cookie-modal__save {
  display: block;
  width: 100%;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 13px 20px;
  font-family: Arial, sans-serif;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: opacity 0.15s;
}
.cookie-modal__save:hover { opacity: 0.88; }
/* Статус тоггла — обновляется через JS */
.cookie-toggle__label::before { content: attr(data-label); }

/* ───────────────────────────────
   HEADER / NAV
─────────────────────────────── */
.header {
  /* position: fixed; */
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(0, 22, 43, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 128px;
  padding: 0 80px 0 30px;
  max-width: 1440px;
  margin: 0 30px;
  gap: 32px;
}
.header-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.header-logo img {
  width: 64px;
  height: 64px;
  object-fit: contain;
}
.header-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.header-nav a {
  font-family: 'Play', Arial, sans-serif;
  font-size: 16px;
  color: var(--text-light);
  padding: 8px 14px;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 4px;
}
.header-nav a:hover { background: var(--border); color: #fff; }
.header-nav a.active { color: var(--accent); }
.nav-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  color: inherit;
  opacity: 0.85;
}
.nav-arrow svg {
  display: block;
  width: 16px;
  height: 16px;
}
.header-nav a.active .nav-arrow {
  opacity: 1;
}
.header-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
}
.header-burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.3s;
}

/* ───────────────────────────────
   HERO SECTION
─────────────────────────────── */
.hero {
  height: 100vh;
  min-height: 600px;
  background: var(--bg);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
}

/* Фото — верхняя левая часть, естественные цвета */
.hero-photo {
  position: absolute;
  top: 0;
  left: 0;
  width: 62%;
  height: 68%;
  object-fit: cover;
  object-position: center center;
  filter: saturate(1.15);
}

/* Градиент — мягкое растворение к низу и к правому краю */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right,  transparent 35%, rgba(0,22,43,0.6) 58%, #00162B 78%),
    linear-gradient(to bottom, rgba(0,22,43,0.15) 0%, rgba(0,22,43,0.5) 65%, #00162B 85%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-bottom: 0;
}

/* SVG-заголовок */
.hero-title {
  padding: 0 73px;
  margin-bottom: 40px;
}
/* Обёртка ровно по ширине SVG, слоган позиционируется внутри */
.hero-title__inner {
  display: inline-block;
  position: relative;
  width: min(953px, 90vw);
}

.hero-title img {
  width: 100%;
  height: auto;
  display: block;
}

/* SVG 953×230; правый текст «ТЕХНОЛОГИИ» начинается на X≈600 (63%),
   нижняя строка заканчивается на Y≈105 (46% высоты) */
.hero-tagline {
  position: absolute;
  top: calc(50% + 10px);   /* чуть ниже строки «ТЕХНОЛОГИИ» */
  left: 63%;               /* по левому краю слова «ТЕХНОЛОГИИ» */
  margin: 0;
  font-family: Arial, sans-serif;
  font-size: clamp(12px, 1vw, 15px);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.04em;
  line-height: 1.4;
  white-space: nowrap;
}

/* Ticker */
.hero-ticker {
  background: rgba(0, 22, 43, 0.6);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--border);
  padding: 14px 0;
  overflow: hidden;
}
.ticker-track {
  display: flex;
  gap: 0;
  animation: ticker-scroll 28s linear infinite;
  white-space: nowrap;
}
.ticker-track:hover { animation-play-state: paused; }
.ticker-item {
  font-family: Arial, sans-serif;
  font-size: 16px;
  color: var(--text-light);
  padding: 0 32px;
  flex-shrink: 0;
}
.ticker-item::before {
  content: '•';
  color: var(--accent);
  margin-right: 12px;
}
@keyframes ticker-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ───────────────────────────────
   PROJECTS SECTION
─────────────────────────────── */
/* ───────────────────────────────
   PROJECTS SECTION
   Full-section background image with 3 angular
   geometric cards at the bottom (clip-path parallelograms)
─────────────────────────────── */
.projects {
  position: relative;
  background:
    linear-gradient(180deg, rgba(0,22,43,0.15) 0%, rgba(0,22,43,0.45) 55%),
    url('images/projects-cover.png') center top / 100% auto no-repeat;
  height: clamp(480px, 38vw, 560px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Full-height flex container */
.projects-container {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding-top: clamp(40px, 6vw, 80px);
  padding-bottom: clamp(40px, 6vw, 80px);
  gap: clamp(32px, 4vw, 60px);
}

/* Title row */
.projects-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Правая часть заголовка: кнопки навигации + ↗ */
.projects-top-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

/* Пара кнопок prev/next */
.projects-nav-btns {
  display: flex;
  gap: 8px;
}

.proj-nav-btn {
  width: 56px;
  height: 56px;
  border-radius: 5px;
  border: 1px solid rgba(255,255,255,0.2);
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #fff;
  transition: background 0.2s, border-color 0.2s;
}

.proj-nav-btn:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.4);
}

/* Arrow button (top-right, ↗ ссылка) */
.btn-arrow-sq {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 8px;
  color: #fff;
  flex-shrink: 0;
  transition: background 0.2s, border-color 0.2s;
}
.btn-arrow-sq:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.5); }

/* ─── CARD ROW ─── */
/* Три карточки с точной геометрией из Figma SVG.
   Фигура: гексагон с диагональным срезом top-right и bottom-left.
   Нет перекрытий — каждая карточка занимает свою долю с gap между ними.
─────────────────────────────── */
.project-cards {
  display: flex;
  align-items: stretch;
  /* Figma: левый отступ 63px/1440=4.375%, правый ~5%, gap ~30px/1440=2.1% */
  padding: 0 5% 0 4.375%;
  gap: 2.1%;
}

.project-card {
  flex: 1;
  position: relative;
  padding: 20px 24px 24px 32px;
  color: #fff;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* ── Точная геометрия из SVG (412×274):
   Top-right cut:  (352,0) → (411,59)   = 85.4%,0% → 99.8%,21.5%
   Bottom-left cut:(60,274) → (1.4,216)  = 14.6%,100% → 0.3%,78.8%
   Corner radius ~5px (упрощаем до прямых)
── */
.project-card::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  clip-path: polygon(
    1.2% 0%,       /* top-left (после скругления) */
    85.4% 0%,      /* начало диагонального среза top-right */
    99.8% 21.5%,   /* конец среза top-right */
    99.8% 98.2%,   /* bottom-right (перед скруглением) */
    98.8% 100%,    /* bottom-right corner */
    14.6% 100%,    /* начало диагонального среза bottom-left */
    0.3% 78.8%,    /* конец среза bottom-left */
    0% 1.8%        /* top-left corner */
  );
  /* Cards 1 & 2: orange accent + grey-navy (default здесь для 1&2) */
  background:
    linear-gradient(46deg, rgba(255,131,104,0) 0%, rgba(255,131,104,0.75) 95%),
    linear-gradient(-90deg, rgba(120,123,134,0.75) 0%, rgba(0,22,43,0.75) 100%);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

/* Card 3: только серо-синий, без оранжевого */
.project-card:nth-child(3)::before {
  background: linear-gradient(-90deg, rgba(120,123,134,0.75) 0%, rgba(0,22,43,0.75) 100%);
}

.project-card:hover::before { filter: brightness(1.12); }

/* Стрелка в углу карточки (видна только на мобиле) */
.project-card-arrow { display: none; }

/* Пагинация карточек и направлений (только мобайл) */
.projects-pagination { display: none; }
.directions-pagination { display: none; }

/* ── Typography (Figma: Play font) ── */
/* Card text content sits above the ::before */
.project-card-title {
  font-family: 'Play', Arial, sans-serif;
  font-size: clamp(16px, 1.6vw, 22px);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: #fff;
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}
.project-card-desc {
  font-family: 'Play', Arial, sans-serif;
  font-size: clamp(12px, 1.1vw, 16px);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.3;
  color: #fff;
  position: relative;
  z-index: 1;
  opacity: 0.85;
}

/* btn-outline still used elsewhere (news etc.) */
.btn-outline {
  font-family: Arial, sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: var(--text-light);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 10px 18px;
  transition: border-color 0.2s, color 0.2s;
  white-space: nowrap;
}
.btn-outline:hover { border-color: var(--accent); color: #fff; }

/* ───────────────────────────────
   DIRECTIONS SECTION
─────────────────────────────── */
.directions {
  background: var(--bg);
  position: relative;
  overflow: hidden;
  padding: 0;
}
.directions-bg {
  position: absolute;
  inset: 0;
  background: url('images/directions-bg.svg') center 0 / auto 100% no-repeat;
  pointer-events: none;
}
.directions-inner {
  position: relative;
  z-index: 1;
  padding: clamp(48px, 5.5vw, 80px) clamp(24px, 5.5vw, 80px) clamp(48px, 5.5vw, 80px);
  max-width: 1440px;
  margin: 0 auto;
}
.directions-title {
  margin-bottom: clamp(48px, 7vw, 100px);
}

/* Три колонки: текст | фото | текст */
.directions-layout {
  display: grid;
  grid-template-columns: 1fr clamp(220px, 28vw, 420px) 1fr;
  gap: 0 clamp(24px, 4vw, 64px);
  align-items: start;
}

.directions-col {
  display: flex;
  flex-direction: column;
  gap: clamp(32px, 4.5vw, 64px);
}

.direction-item {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

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

.direction-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.direction-icon img {
  width: 24px;
  height: 24px;
  opacity: 0.75;
}

.direction-name {
  font-family: 'Play', Arial, sans-serif;
  font-size: clamp(20px, 2vw, 30px);
  font-weight: 400;
  letter-spacing: -0.005em;
  line-height: 1;
  color: #fff;
}

.direction-desc {
  font-family: Arial, sans-serif;
  font-size: clamp(14px, 1.3vw, 20px);
  font-weight: 400;
  line-height: 1.4;
  color: #fff;
}

/* Центральное фото */
.directions-center {
  align-self: stretch;
}
.directions-center-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 5px;
  display: block;
}

/* ───────────────────────────────
   ABOUT SECTION
─────────────────────────────── */
.about {
  background: var(--bg);
  border-top: 1px solid #56718F;
}

.about-main {
  max-width: 1440px;
  margin: 0 auto;
  padding: clamp(40px, 5vw, 65px) clamp(24px, 5.5vw, 82px) 0;
}

.about-main .section-title {
  margin-bottom: clamp(28px, 4vw, 50px);
}

.about-text {
  font-family: Arial, sans-serif;
  font-size: clamp(16px, 1.6vw, 24px);
  line-height: 1.33;
  letter-spacing: -0.01em;
  color: #fff;
  margin-bottom: clamp(32px, 5vw, 66px);
}

.about-text-secondary {
  margin-top: clamp(24px, 4vw, 55px);
  margin-bottom: 0;
}

/* Статистика — горизонтальная строка */
.about-stats {
  display: flex;
  gap: clamp(24px, 3.3vw, 48px);
}

.stat-item {
  display: flex;
  align-items: center;
  gap: clamp(12px, 1.6vw, 24px);
  flex: 1;
}

.stat-num {
  font-family: 'Play', Arial, sans-serif;
  font-size: clamp(36px, 3.9vw, 56px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.14;
  text-align: right;
  flex-shrink: 0;
  min-width: clamp(70px, 7vw, 100px);
  background: linear-gradient(180deg, #1C202D 25%, #FF8368 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-family: Arial, sans-serif;
  font-size: clamp(13px, 1.1vw, 16px);
  line-height: 1.5;
  color: #fff;
}

.about-divider {
  border: none;
  border-top: 1px solid #56718F;
  margin: clamp(40px, 7vw, 100px) 0 0;
}

/* ── Баннер (заявка + противодействие коррупции) ── */
/* Figma: 1440×170, два прямоугольника x:80/x:727, width:630 каждый */
.about-banner {
  display: flex;
  gap: 17px;
  max-width: 1440px;
  margin: clamp(32px, 4vw, 56px) auto 0;
  /* те же горизонтальные отступы что у .about-main */
  padding: 0 clamp(24px, 5.5vw, 82px);
}

.about-banner-left,
.about-banner-right {
  position: relative;
  flex: 1;
  min-height: 170px;
  border-radius: 5px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 48px;
}

.about-banner-left {
  background: linear-gradient(33deg, #00162B 0%, #2C3B4C 50%);
}

.about-banner-right {
  background:
    linear-gradient(46deg, rgba(255,131,104,0) 9%, rgba(255,131,104,1) 100%),
    linear-gradient(33deg, #00162B 0%, #2C3B4C 50%);
  text-decoration: none;
  color: #fff;
  transition: filter 0.2s;
}
.about-banner-right:hover { filter: brightness(1.1); }

.about-banner-text {
  font-family: Arial, sans-serif;
  font-size: clamp(16px, 1.6vw, 24px);
  line-height: 1.33;
  letter-spacing: -0.01em;
  color: #fff;
  text-align: center;
}

/* Логотип-вордмарк в правом верхнем углу левой панели */
.about-banner-logo {
  position: absolute;
  top: 20px;
  left: 20px;
  width: 135px;
  height: auto;
}

/* Стрелка: x:1258-727=531px от левого края правой панели → right:67px, bottom:18px */
.about-banner-arrow {
  position: absolute;
  right: clamp(16px, 4.6vw, 67px);
  bottom: 18px;
}

.about-bottom-divider {
  display: block;
  border: none;
  border-top: 1px solid #56718F;
  max-width: 1280px;
  margin: 0 auto;
}

/* ───────────────────────────────
   PARTNERS SECTION
─────────────────────────────── */
.partners {
  padding: clamp(60px, 8vw, 120px) 0;
  border-top: 1px solid var(--border);
}
.partners .section-title { margin-bottom: 48px; }
.partners-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.partner-logo {
  aspect-ratio: 2/1;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 13px;
  font-family: Arial, sans-serif;
  transition: background 0.2s;
}
.partner-logo:hover { background: #394557; }

/* ───────────────────────────────
   NEWS SECTION
─────────────────────────────── */
.news {
  padding: clamp(60px, 8vw, 120px) 0;
  background: #1C202D;
  border-radius: 16px;
  margin: 0 clamp(8px, 2vw, 24px) clamp(24px, 4vw, 48px);
}
.news-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 48px;
}
.news-header .section-title { color: var(--bg); }
.news .section-title { color: var(--text-light); }
.btn-all-news {
  font-family: Arial, sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: var(--text-light);
  border: 1px solid var(--text-muted);
  border-radius: 5px;
  padding: 10px 18px;
  transition: all 0.2s;
  white-space: nowrap;
}
.btn-all-news:hover { border-color: var(--accent); color: #fff; }
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.news-card {
  background: #292937;
  border-radius: 5px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.news-card-img {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, #2C3B4C 0%, #1C202D 100%);
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}
.news-card-img img { width: 100%; height: 100%; object-fit: cover; }
.news-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.news-card-date {
  font-family: 'Play', Arial, sans-serif;
  font-size: 15px;
  color: var(--accent);
  letter-spacing: -0.005em;
  text-align: right;
}
.news-card-title {
  font-family: 'Play', Arial, sans-serif;
  font-size: clamp(16px, 1.5vw, 20px);
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: -0.005em;
  color: var(--text-light);
}
.news-card-excerpt {
  font-family: Arial, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-muted);
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-card-footer { padding: 0 20px 20px; }
.btn-read {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: Arial, sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: var(--text-light);
  border: 1px solid var(--text-muted);
  border-radius: 5px;
  padding: 8px 16px;
  transition: all 0.2s;
}
.btn-read:hover { border-color: var(--accent); color: #fff; }
.btn-read-icon { font-size: 12px; }

/* ───────────────────────────────
   FOOTER
─────────────────────────────── */
footer {
  background: linear-gradient(43deg, rgba(0, 22, 43, 1) 0%, rgba(57, 69, 87, 1) 91%);
}

/* Основная зона: brand (254px) + nav-area (остаток) */
.footer-main {
  display: flex;
  align-items: flex-start;
  gap: 0;
  padding: 64px 80px 56px;
}

/* Брендовая колонка */
.footer-brand {
  width: 254px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-height: 276px;
}
.footer-brand__mpt {
  width: 218px;
  height: auto;
  display: block;
}
.footer-brand__cit {
  width: 180px;
  height: auto;
  display: block;
}
.footer-social {
  display: flex;
  gap: 16px;
  margin-top: auto;
  align-items: center;
}
.footer-social__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  opacity: 0.85;
  transition: opacity 0.2s;
}
.footer-social__btn:hover { opacity: 1; }
.footer-social__btn img { display: block; width: 100%; height: 100%; object-fit: contain; }

/* Блок трёх колонок навигации */
.footer-nav-area {
  margin-left: 186px; /* gap между brand (254px) и nav (start x:520, minus left 80px = 186px) */
  display: grid;
  grid-template-columns: 264px 264px 264px;
  gap: 0 24px;
  align-items: start;
}

/* Навигационная колонка */
.footer-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-col__heading {
  font-family: 'Play', Arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  color: #56718F;
  margin-bottom: 8px;
}
footer .footer-col a {
  font-family: Arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  color: #fff;
  text-decoration: none;
  transition: color 0.18s;
}
footer .footer-col a:hover { color: var(--accent); }

/* Контакты с иконками */
.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-family: Arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 20px;
  color: #fff;
  text-decoration: none;
}
.footer-contact-item svg {
  flex-shrink: 0;
  margin-top: 2px;
  opacity: 0.8;
}
.footer-contact-item:hover { color: var(--accent); }

/* Нижняя строка (bottom bar) */
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 0 80px 40px;
}
.footer-bottom span,
.footer-bottom a {
  font-family: Arial, sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  color: #56718F;
  text-decoration: none;
  transition: color 0.18s;
}
.footer-bottom a:hover { color: #fff; }

/* ───────────────────────────────
   DROPDOWN MENU (card under nav item)
─────────────────────────────── */
.dropdown-overlay {
  display: none;
  position: fixed;
  top: 0; /* переопределяется JS: rect.bottom триггера + gap */
  /* left задаётся через JS по позиции nav-ссылки */
  width: 280px;
  background: linear-gradient(180deg, rgba(86,113,143,0.22) 0%, rgba(0,22,43,0.65) 100%);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 0;
  z-index: 1001;
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(0,0,0,0.5);
}
.dropdown-overlay.open { display: block; }

/* Убираем паддинг контейнера внутри дропдауна */
.dropdown-overlay .container {
  padding: 0;
  max-width: none;
  margin: 0;
}
.dropdown-inner {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.dropdown-col { flex: 1; }
.dropdown-col-title {
  font-family: 'Play', Arial, sans-serif;
  font-size: 12px;
  color: var(--text-muted);
  padding: 12px 20px 8px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.dropdown-col a {
  display: block;
  font-size: 15px;
  color: var(--text-light);
  padding: 13px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  text-decoration: none;
  transition: color 0.18s, background 0.18s;
}
.dropdown-col a:last-child { border-bottom: none; }
.dropdown-col a:hover { color: #fff; background: rgba(255,255,255,0.05); }

/* ───────────────────────────────
   MOBILE MENU — ACCORDION
─────────────────────────────── */
.mobile-menu {
  display: none;
  position: fixed;
  top: 80px;
  left: 0;
  right: 0;
  bottom: 0;
  background: #00162B;
  z-index: 998;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
}
.mobile-menu.open { display: flex; }

/* Nav list */
.mobile-nav-list {
  flex: 1;
  list-style: none;
  padding: 0;
  margin: 0;
}
.mobile-nav-item {
  border-top: 1px solid #56718F;
}
.mobile-nav-item:last-child {
  border-bottom: 1px solid #56718F;
}

/* Top-level row */
.mobile-nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 20px;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
}
.mobile-nav-row-link {
  font-family: 'Play', Arial, sans-serif;
  font-size: 20px;
  font-weight: 400;
  color: #fff;
  line-height: 1.2;
  text-decoration: none;
}
.mobile-nav-chevron {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  transition: transform 0.3s ease;
  color: #56718F;
}
.mobile-nav-item.expanded .mobile-nav-chevron {
  transform: rotate(180deg);
}

/* Sub-menu */
.mobile-nav-sub {
  list-style: none;
  padding: 4px 20px 24px;
  margin: 0;
  display: none;
  flex-direction: column;
  gap: 12px;
}
.mobile-nav-item.expanded .mobile-nav-sub {
  display: flex;
}
.mobile-nav-sub a {
  font-family: Arial, sans-serif;
  font-size: 16px;
  color: #BBBBC9;
  text-decoration: none;
  line-height: 1.4;
  transition: color 0.2s;
}
.mobile-nav-sub a:hover { color: #fff; }
.mobile-nav-sub a.accent { color: var(--accent); }

/* Plain link item (no submenu) */
.mobile-nav-row.plain a {
  display: block;
  font-family: 'Play', Arial, sans-serif;
  font-size: 20px;
  font-weight: 400;
  color: #fff;
  text-decoration: none;
  line-height: 1.2;
}

/* Contacts block at bottom of mobile menu */
.mobile-menu-contacts {
  flex-shrink: 0;
}
/* "Контакты" header — border-top separator, 64px height, padding 20px */
.mobile-contacts-header {
  border-top: 1px solid #56718F;
  padding: 20px;
  font-family: Arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  color: #fff;
}
/* Body of contacts — padding left/right 20px, top gap 4px */
.mobile-contacts-body {
  padding: 4px 20px 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.mobile-contact-row {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 24px;
  font-family: Arial, sans-serif;
  font-size: 16px;
  color: #fff;
  line-height: 1.5;
}
.mobile-contact-row a {
  color: #fff;
  text-decoration: none;
  transition: color 0.2s;
}
.mobile-contact-row a:hover { color: #BBBBC9; }
.mobile-contact-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
}
/* Social icons row — gap 40px from hours row in Figma (y:176 vs y:136) */
.mobile-social-row {
  display: flex;
  gap: 12px;
  margin-top: 28px; /* 176 - (112+24) = 40px minus 12px gap already accounted = 28px */
}
/* Social buttons: exactly 56×56, borderRadius 5px, border #56718F as in Figma */
.mobile-social-btn {
  display: block;
  width: 56px;
  height: 56px;
  border-radius: 5px;
  overflow: hidden;
  transition: opacity 0.2s;
}
.mobile-social-btn:hover { opacity: 0.8; }
.mobile-social-btn img { width: 56px; height: 56px; display: block; }

/* Burger animation when open */
.header-burger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.header-burger.open span:nth-child(2) {
  opacity: 0;
}
.header-burger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile-only elements hidden on desktop */
.directions-img-mobile { display: none; }
.about-deco-mobile { display: none; }

/* ───────────────────────────────
   RESPONSIVE — TABLET
─────────────────────────────── */
@media (max-width: 1100px) {
  .directions-grid { grid-template-columns: repeat(2, 1fr); }
  .partners-grid   { grid-template-columns: repeat(3, 1fr); }
}

/* ───────────────────────────────
   RESPONSIVE — MOBILE (≤768px)
   Figma: 360px, padding 0 20px, gap 24px
─────────────────────────────── */
@media (max-width: 768px) {
  :root { --px: 20px; }

  /* HEADER: высота 80px */
  .header-inner {
    height: 80px;
    padding: 0 20px;
    margin: 0;
    max-width: 100%;
  }
  .header-logo img { width: 48px; height: 48px; }
  .header-nav   { display: none; }
  .header-burger { display: flex; }

  /* HERO: 544px, фото 383×259 (верхние ~48%), SVG-title на y=264 */
  .hero {
    height: 544px;
    min-height: unset;
  }
  .hero-photo {
    width: 106%;   /* 383/360 = 106% — чуть шире экрана */
    height: 259px;
    top: 0;
    left: -3%;
    object-fit: cover;
    object-position: center top;
  }
  .hero::before {
    background:
      linear-gradient(to bottom,
        rgba(0,22,43,0.1)  0%,
        rgba(0,22,43,0.4)  45%,
        rgba(0,22,43,0.85) 65%,
        #00162B            80%
      );
  }
  /* SVG-title: 317×73, позиция y=264 — показываем мобильную версию */
  .hero-title {
    padding: 0 20px;
    margin-bottom: 16px;
  }
  .hero-title img {
    content: url('images/hero-title-mobile.svg');
    width: 317px;
    max-width: 100%;
  }

  /* TICKER: мельче на мобиле */
  .ticker-item { font-size: 13px; padding: 0 20px; }

  /* PROJECTS: mobile — карточки стопкой, фон во всю высоту секции */
  .projects {
    height: auto;
    min-height: 0;
    background:
      linear-gradient(180deg, rgba(0,22,43,0) 0%, rgba(0,22,43,0.4) 60%, rgba(0,22,43,0.85) 100%),
      url('images/projects-cover.png') center top / cover no-repeat,
      #00162B;
  }
  .projects-container {
    padding: 40px 0 32px;
    gap: 24px;
  }
  .projects-top { padding: 0 20px; }

  /* Скрываем prev/next кнопки на мобиле */
  .projects-nav-btns { display: none; }

  .project-cards {
    flex-direction: column;
    padding: 20px 12px 0; /* 20px сверху, 12px по бокам */
    gap: 12px;
    align-items: stretch;
  }
  .project-card {
    flex: 0 0 185px;   /* фиксированная высота */
    width: auto;       /* НЕ 100% — stretch сам растянет до content-area */
    min-width: 0;
    margin: 0;
    padding: 20px 24px 20px 24px;
    box-sizing: border-box;
  }
  /* На мобиле — все карточки серо-синий градиент (без оранжевого) */
  .project-card::before,
  .project-card:nth-child(1)::before,
  .project-card:nth-child(2)::before,
  .project-card:nth-child(3)::before {
    background: linear-gradient(135deg, rgba(120,123,134,0.85) 0%, rgba(0,22,43,0.85) 100%);
  }
  .project-card-title { font-size: 22px; }
  .project-card-desc { font-size: 15px; padding-right: 56px; }

  /* Стрелка в правом нижнем углу карточки — бордер FF8368 */
  .project-card-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    right: 18px;
    bottom: 18px;
    width: 36px;
    height: 36px;
    border: 1px solid #FF8368;
    border-radius: 4px;
    color: #FF8368;
    z-index: 2;
    background: transparent;
  }

  /* Пагинация карточек */
  .projects-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 15px 0 15px;
  }
  .projects-pagination-active {
    width: 24px;
    height: 8px;
    border-radius: 2px;
    background: #FF8368;
  }
  .projects-pagination-dot {
    width: 8px;
    height: 8px;
    border-radius: 2px;
    background: #56718F;
  }

  /* DIRECTIONS: убираем SVG-фон на мобайле */
  .directions-bg { display: none; }

  /* фото сверху, потом первые 3 карточки, пагинация */
  .directions-inner { padding: 40px 20px 0; }
  .directions-title { margin-bottom: 20px; }
  .directions-layout {
    grid-template-columns: 1fr;
    gap: 0;
  }
  /* Порядок: картинка → левый столбец (1–3) → правый скрыт */
  .directions-center { order: -1; }
  .directions-col:last-child { display: none; }
  .directions-col { gap: 0; }
  .directions-center {
    width: 60%;              /* ~211px из Figma пропорционально */
    aspect-ratio: 211 / 280; /* портретная пропорция из Figma */
    height: auto;
    max-height: 220px;
    margin: 0 auto 32px;     /* по центру, 32px до карточек */
    border-radius: 8px;
    overflow: hidden;
  }
  .directions-center-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }
  /* Бордеры на всю ширину (отрицательный margin компенсирует padding inner) */
  .direction-item {
    border-top: 1px solid #56718F;
    margin: 0 -20px;
    padding: 16px 20px;
  }
  .direction-item:last-child { border-bottom: none; }
  .direction-name { font-size: 18px; }
  .direction-desc { font-size: 14px; }

  /* Пагинация направлений — без бордеров */
  .directions-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 15px 0;
    border: none;
  }

  /* О ЦИТ */
  .about-main { padding: 40px 20px 0; }
  .about-text { font-size: 15px; line-height: 1.4; margin-bottom: 32px; }
  .about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px 20px;
  }
  .stat-item {
    flex: unset;
    gap: 12px;
  }
  .stat-num {
    font-size: 40px;
    min-width: 60px;
  }
  .stat-label { font-size: 14px; }
  .about-divider { margin-top: 40px; }

  /* Баннер: панели стопкой, отменяем абсолютное позиционирование */
  .about-banner {
    position: relative;
    height: auto;
    margin: 24px 0 0;
    padding: 0 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  .about-banner-left,
  .about-banner-right {
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    min-height: 130px;
    padding: 24px 24px 24px 24px;
  }
  .about-banner-logo {
    width: 100px;
    top: 14px;
    left: 16px;
  }
  .about-banner-text { font-size: 16px; line-height: 1.35; }
  .about-banner-arrow {
    right: 14px;
    bottom: 14px;
    width: 24px;
    height: 24px;
  }
  .about-bottom-divider { margin-top: 0; }

  /* PARTNERS: 3 колонки как в макете */
  .partners { padding: 40px 0; }
  .partners-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }

  /* NEWS: одна колонка */
  .news { margin: 0 0 24px; border-radius: 0; padding: 40px 0; }
  .news-grid { grid-template-columns: 1fr; }
  .news-header { flex-wrap: wrap; gap: 16px; }

  /* FOOTER */
  .footer-main {
    flex-direction: column;
    padding: 40px 32px 32px;
    gap: 32px;
  }
  .footer-brand {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    min-height: auto;
    gap: 20px;
  }
  .footer-brand__logo { width: 100px; }
  .footer-brand__mpt { width: 160px; }
  .footer-social { margin-top: 0; }
  .footer-nav-area {
    margin-left: 0;
    grid-template-columns: 1fr 1fr;
    gap: 32px 24px;
    width: 100%;
  }
  .footer-col__heading { font-size: 14px; }
  footer .footer-col a, .footer-contact-item { font-size: 15px; }
  .footer-bottom { padding: 0 32px 32px; }

  /* COOKIE */
  .cookie-banner {
    width: calc(100% - 24px);
    flex-direction: column;
    align-items: flex-start;
    bottom: 12px;
    gap: 16px;
  }
  .cookie-actions { width: 100%; }
  .btn-cookie-accept, .btn-cookie-settings { flex: 1; text-align: center; }
  .btn-cookie-close { position: absolute; top: 12px; right: 16px; }

  .section-title { font-size: clamp(24px, 7vw, 32px); }
}

@media (max-width: 480px) {
  .about-stats { grid-template-columns: 1fr 1fr; }
  .stat-num    { font-size: 36px; }
  .footer-main {
    padding: 32px 20px 24px;
    gap: 28px;
  }
  .footer-brand { flex-direction: column; gap: 16px; }
  .footer-nav-area { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { padding: 0 20px 28px; flex-direction: column; align-items: flex-start; }
}
