/* ============================================================
   НК-Групп - стили
   Палитра: белый / синий / красный (флаг РФ). Стиль: бизнес, лаконичный.
   ============================================================ */

:root {
  --white:      #ffffff;
  --blue:       #0039a6;   /* синий флага */
  --blue-dark:  #002b7f;
  --blue-deep:  #001a4d;
  --red:        #d52b1e;   /* красный флага */
  --red-dark:   #b21f15;
  --ink:        #14181f;
  --ink-soft:   #3c4350;
  --gray:       #6b7280;
  --gray-line:  #e6e8ee;
  --bg:         #ffffff;
  --bg-alt:     #f5f7fb;
  --bg-deep:    #0b1530;

  --radius:     14px;
  --radius-lg:  22px;
  --shadow-sm:  0 2px 8px rgba(11, 21, 48, .06);
  --shadow-md:  0 14px 40px rgba(11, 21, 48, .12);
  --maxw:       1180px;
  --header-h:   72px;

  --font: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
          'Helvetica Neue', Arial, 'Noto Sans', sans-serif;
}

/* ---------- Сброс ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth; scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%; text-size-adjust: 100%;
  width: 100%;
  overflow-x: hidden;   /* фолбэк для старых браузеров */
  overflow-x: clip;     /* обрезает в т.ч. fixed-элементы, не ломая sticky */
}

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  -webkit-tap-highlight-color: transparent;   /* без серой вспышки при тапе на iOS/Android */
  width: 100%;
  min-height: 100vh; min-height: 100dvh;
  overflow-x: hidden;
  overflow-x: clip;
  overflow-wrap: break-word;   /* длинные слова/адреса не распирают верстку */
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* Доступность: видимый фокус для клавиатуры */
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 4px; }
.btn:focus-visible, .nav__link:focus-visible { outline-offset: 3px; }

/* Скрыто визуально, доступно скринридерам и поисковику */
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ---------- Контейнер / секции ---------- */
/* безопасные зоны (вырез/закругления экранов iPhone и пр.) */
.container {
  width: 100%; max-width: var(--maxw); margin: 0 auto;
  padding-left: max(24px, env(safe-area-inset-left));
  padding-right: max(24px, env(safe-area-inset-right));
}

.section { padding: 96px 0; }
.section--alt { background: var(--bg-alt); }

.section__head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section__tag {
  display: inline-block;
  font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--blue);
  padding: 6px 14px; border-radius: 999px;
  background: rgba(0, 57, 166, .08);
  margin-bottom: 18px;
}
.section__title { font-size: clamp(28px, 4vw, 42px); font-weight: 800; line-height: 1.15; letter-spacing: -.02em; }
.section__lead { margin-top: 16px; color: var(--gray); font-size: 18px; }

.text-gradient {
  background: linear-gradient(100deg, var(--blue) 0%, var(--red) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: inherit; font-weight: 700; font-size: 16px;
  padding: 13px 24px; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: transform .15s ease, background .2s ease, box-shadow .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn--lg { padding: 16px 30px; font-size: 17px; }
.btn--primary { background: var(--red); color: #fff; box-shadow: 0 8px 20px rgba(213, 43, 30, .28); }
.btn--primary:hover { background: var(--red-dark); transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--blue); border-color: rgba(0, 57, 166, .25); }
.btn--ghost:hover { background: rgba(0, 57, 166, .06); border-color: var(--blue); }

/* ============================================================
   Шапка
   ============================================================ */
.header {
  position: -webkit-sticky; position: sticky; top: 0; z-index: 100;
  height: var(--header-h);
  background: rgba(255, 255, 255, .97);
  /* ВАЖНО: без backdrop-filter/filter/transform - иначе шапка становится
     containing block для вложенного fixed-меню, и панель уезжает к верху
     страницы при прокрутке вместо позиционирования по экрану. */
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.header.is-scrolled { border-bottom-color: var(--gray-line); box-shadow: var(--shadow-sm); }
/* Сетка: логотип слева, меню по центру, действия справа */
.header__inner {
  height: 100%; display: grid; align-items: center; gap: 20px;
  grid-template-columns: auto 1fr auto;
}

/* Логотип */
.logo { display: inline-flex; align-items: center; }
.logo__img { height: 42px; width: auto; display: block; }
.footer__logo img { height: 46px; width: auto; display: block; }

/* Навигация (центр) */
.nav { display: flex; align-items: center; justify-content: center; gap: 28px; }
.header__actions { display: flex; align-items: center; gap: 14px; justify-self: end; }
.nav__cta--in { display: none; }
.nav__list { display: flex; align-items: center; gap: 26px; }
.nav__link {
  position: relative; font-weight: 600; font-size: 16px; color: var(--ink-soft);
  padding: 4px 0; transition: color .2s ease;
}
.nav__link::after {
  content: ''; position: absolute; left: 0; bottom: -2px; width: 0; height: 2px;
  background: var(--red); transition: width .25s ease;
}
.nav__link:hover { color: var(--ink); }
.nav__link.is-active { color: var(--blue); }
.nav__link.is-active::after { width: 100%; background: var(--blue); }
.nav__cta { font-size: 15px; padding: 10px 20px; }

/* Бургер */
.burger {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; background: none; border: none; cursor: pointer; padding: 10px;
}
.burger span { display: block; height: 2.5px; width: 100%; background: var(--ink); border-radius: 2px; transition: transform .3s ease, opacity .2s ease; }
.burger.is-open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

.nav-overlay {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(11, 21, 48, .45); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
  opacity: 0; transition: opacity .25s ease;
}
.nav-overlay.is-visible { opacity: 1; }

/* ============================================================
   Hero
   ============================================================ */
.hero { position: relative; overflow: hidden; padding: 92px 0 80px; }
.hero__bg {
  position: absolute; inset: 0; z-index: -1; overflow: hidden;
  background:
    radial-gradient(900px 520px at 85% -10%, rgba(0, 57, 166, .12), transparent 60%),
    radial-gradient(720px 480px at 5% 115%, rgba(213, 43, 30, .09), transparent 60%),
    var(--bg);
}
.hero__bg::after {
  content: ''; position: absolute; inset: 0;
  background-image: linear-gradient(var(--gray-line) 1px, transparent 1px),
                    linear-gradient(90deg, var(--gray-line) 1px, transparent 1px);
  background-size: 48px 48px; opacity: .35;
  -webkit-mask-image: radial-gradient(62% 62% at 50% 38%, #000, transparent 82%);
          mask-image: radial-gradient(62% 62% at 50% 38%, #000, transparent 82%);
}
/* геометрические фигуры триколора */
.hero__shape { position: absolute; border-radius: 40px; opacity: .12; }
.hero__shape--blue { width: 560px; height: 230px; top: 26px; right: -160px; background: var(--blue); transform: rotate(-16deg); }
.hero__shape--red  { width: 440px; height: 200px; bottom: -10px; left: -150px; background: var(--red);  transform: rotate(-16deg); }
/* диагональные триколор-полосы в углу */
.hero__stripes {
  position: absolute; top: -60px; right: -40px; width: 320px; height: 320px;
  background: repeating-linear-gradient(-45deg,
    var(--blue) 0 10px, transparent 10px 26px,
    var(--red) 26px 36px, transparent 36px 64px);
  opacity: .14; transform: rotate(0deg);
  -webkit-mask-image: radial-gradient(closest-side, #000, transparent);
          mask-image: radial-gradient(closest-side, #000, transparent);
}
.hero__inner { position: relative; text-align: center; max-width: 880px; margin: 0 auto; }
.hero__eyebrow {
  display: inline-block; font-weight: 700; font-size: 14px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--red); margin-bottom: 22px;
  padding-bottom: 4px; border-bottom: 2px solid rgba(213, 43, 30, .25);
}
.hero__title { font-size: clamp(34px, 6.2vw, 66px); font-weight: 800; line-height: 1.06; letter-spacing: -.03em; }
.hero__subtitle { margin: 26px auto 0; max-width: 640px; font-size: clamp(17px, 2.2vw, 20px); color: var(--ink-soft); }
.hero__actions { margin-top: 38px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* Строка логотипов компаний на баннере */
.hero__brands { margin-top: 56px; }
.hero__brands-label {
  display: block; font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--gray); margin-bottom: 18px;
}
.hero__logos { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.hero__logo {
  display: flex; align-items: center; justify-content: center;
  height: 66px; padding: 0 24px;
  background: #fff; border: 1px solid var(--gray-line); border-radius: 14px; box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.hero__logo:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: rgba(0, 57, 166, .2); }
.hero__logo img { max-height: 34px; max-width: 140px; width: auto; object-fit: contain; }

/* ============================================================
   О группе
   ============================================================ */
.about { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: start; }
.about__lead p { font-size: 19px; color: var(--ink-soft); }
.about__lead p + p { margin-top: 18px; }
.about__points { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.about__points li {
  background: var(--bg-alt); border: 1px solid var(--gray-line); border-radius: var(--radius);
  padding: 22px; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.about__points li:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: rgba(0,57,166,.2); }
.about__point-num { font-weight: 800; color: var(--red); font-size: 14px; letter-spacing: .08em; }
.about__points h3 { margin: 8px 0 6px; font-size: 19px; font-weight: 700; }
.about__points p { font-size: 15px; color: var(--gray); }

/* ============================================================
   Компании группы
   ============================================================ */
.companies { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.company-card {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--gray-line); border-radius: var(--radius-lg);
  padding: 28px; box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  position: relative; overflow: hidden;
}
.company-card::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: linear-gradient(var(--blue), var(--red)); transform: scaleY(0); transform-origin: top;
  transition: transform .25s ease;
}
.company-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }
.company-card:hover::before { transform: scaleY(1); }
.company-card__top { margin-bottom: 16px; }
.company-card__badge {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--blue); background: rgba(0, 57, 166, .08); padding: 6px 12px; border-radius: 999px;
}
.company-card__name { font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.company-card__desc { margin: 12px 0 22px; color: var(--ink-soft); font-size: 15.5px; flex-grow: 1; }
.company-card__link {
  font-weight: 700; color: var(--red); font-size: 15px; display: inline-flex; align-items: center; gap: 6px;
  transition: gap .2s ease, color .2s ease;
}
.company-card__link:hover { gap: 12px; color: var(--red-dark); }
.company-card__link--muted { color: var(--gray); font-weight: 600; }

.company-card--cta {
  background: linear-gradient(145deg, var(--blue) 0%, var(--blue-deep) 100%);
  color: #fff; border-color: transparent;
}
.company-card--cta::before { display: none; }
.company-card--cta .company-card__name { color: #fff; }
.company-card--cta .company-card__desc { color: rgba(255, 255, 255, .82); }
.company-card--cta .btn { align-self: flex-start; }

/* ============================================================
   Команда
   ============================================================ */
.team { display: grid; grid-template-columns: repeat(5, 1fr); gap: 22px; }
.team-quote { max-width: 880px; margin: 0 auto 50px; text-align: center; padding: 0 16px; }
.team-quote::before { content: '\201C'; display: block; font-family: Georgia, 'Times New Roman', serif; font-size: 68px; line-height: .7; color: var(--red); margin-bottom: 6px; }
.team-quote p { font-size: clamp(16px, 2vw, 20px); color: var(--ink-soft); font-weight: 500; line-height: 1.55; }
.team-quote p + p { margin-top: 14px; }
.member { text-align: center; }
.member__photo {
  width: 100%; aspect-ratio: 1 / 1; border-radius: var(--radius-lg);
  background: linear-gradient(150deg, #e8edf7, #dfe5f2);
  border: 1px solid var(--gray-line);
  position: relative; overflow: hidden;
}
.member__photo img {
  width: 100%; height: 100%; object-fit: cover; object-position: top center;
  transition: transform .35s ease;
}
.member:hover .member__photo img { transform: scale(1.04); }
.member__photo::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 5px; z-index: 1;
  background: linear-gradient(90deg, var(--blue), var(--red));
}
.member__name { margin-top: 16px; font-size: 18px; font-weight: 700; }
.member__role { color: var(--gray); font-size: 15px; }

/* ============================================================
   Объекты - карусель
   ============================================================ */
.carousel {
  position: relative;
  display: flex; align-items: center; gap: 12px;
  max-width: calc(var(--maxw) + 48px); margin: 0 auto;
  padding: 0 24px;
}
.carousel__viewport { flex: 1 1 auto; overflow: hidden; }
.carousel__track {
  display: flex; gap: 22px;
  overflow-x: auto; scroll-snap-type: x mandatory;
  scroll-behavior: smooth; -webkit-overflow-scrolling: touch;
  padding: 8px 2px 20px;
  -ms-overflow-style: none; scrollbar-width: none;
}
.carousel__track::-webkit-scrollbar { display: none; }

.carousel__nav {
  flex: 0 0 auto;
  width: 48px; height: 48px; border-radius: 50%;
  background: #fff; border: 1px solid var(--gray-line); color: var(--blue);
  font-size: 20px; cursor: pointer; box-shadow: var(--shadow-sm);
  display: flex; align-items: center; justify-content: center;
  transition: background .2s, color .2s, transform .15s, opacity .2s;
}
.carousel__nav:hover { background: var(--blue); color: #fff; transform: scale(1.06); }
.carousel__nav:disabled { opacity: .35; cursor: default; transform: none; background: #fff; color: var(--blue); }

.tag {
  font-size: 12.5px; font-weight: 600; color: var(--blue);
  background: rgba(0, 57, 166, .07); border: 1px solid rgba(0, 57, 166, .12);
  padding: 5px 11px; border-radius: 999px;
}

.objects__links { display: flex; gap: 26px; flex-wrap: wrap; }
.objects__links a {
  font-weight: 700; color: var(--ink); font-size: 15px;
  display: inline-flex; align-items: center; gap: 6px;
  border-bottom: 2px solid transparent; transition: color .2s, gap .2s, border-color .2s;
}
.objects__links a:hover { color: var(--red); gap: 10px; border-color: var(--red); }

/* ============================================================
   Контакты
   ============================================================ */
.contacts { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; align-items: stretch; }
.contacts__info { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; align-content: start; }
.contacts__item { }
.contacts__label { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); }
.contacts__value { margin-top: 6px; font-size: 17px; color: var(--ink); }
.contacts__value a { color: var(--ink); border-bottom: 1px solid transparent; transition: border-color .2s; }
.contacts__value a:hover { border-color: var(--red); }
.contacts__value em { color: var(--gray); font-size: 14px; }
.contacts__item--wide { grid-column: 1 / -1; }
.contacts__social {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; color: var(--blue) !important;
  padding: 8px 16px; border-radius: 999px;
  background: rgba(0, 57, 166, .07); border: 1px solid rgba(0, 57, 166, .14) !important;
}
.contacts__social:hover { background: rgba(0, 57, 166, .12); }

.contacts__map {
  border-radius: var(--radius-lg); overflow: hidden; min-height: 320px;
  border: 1px solid var(--gray-line);
  background: linear-gradient(135deg, #eef2fa, #e3e9f5);
  display: flex; align-items: center; justify-content: center;
}
.contacts__map-placeholder { text-align: center; color: var(--gray); }
.contacts__map-placeholder strong { display: block; font-size: 22px; color: var(--ink-soft); }
.contacts__map-placeholder span { font-size: 14px; }

/* Карта Яндекса: прямой iframe (как на bp13.ru) */
.contacts__map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ============================================================
   Подвал
   ============================================================ */
.footer { background: var(--bg-deep); color: #cdd5e6; padding: 64px 0 28px; }
.footer__inner { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.footer__tagline { margin-top: 14px; color: #8a96b3; font-size: 15px; }
.footer__nav { display: flex; flex-direction: column; gap: 10px; }
.footer__nav-title { font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #95a1bd; margin-bottom: 4px; }
.footer__nav a { color: #cdd5e6; font-size: 15px; transition: color .2s; width: fit-content; }
.footer__nav a:hover { color: #fff; }
.footer__nav-muted { color: #95a1bd; font-size: 15px; }
.footer__bottom {
  margin-top: 44px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .1);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  color: #8a96b3; font-size: 14px;
}

/* Правовые ссылки в нижней строке подвала */
.footer__legal { display: flex; flex-wrap: wrap; gap: 6px 20px; order: 1; width: 100%; }
.footer__legal a { color: #8a96b3; }
.footer__legal a:hover { color: #fff; }
@media (min-width: 761px) {
  .footer__legal { order: 0; width: auto; }
}

/* Наверх */
/* --cookie-h: высота баннера cookie, пока он висит внизу; ставится скриптом,
   чтобы кнопка «наверх» не оказалась под ним. Без JS переменной нет - берется 0px. */
.to-top {
  position: fixed; right: 24px; bottom: calc(24px + var(--cookie-h, 0px)); z-index: 80;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--blue); color: #fff; font-size: 22px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md); cursor: pointer;
  opacity: 0; transform: translateY(12px); transition: opacity .25s, transform .25s, background .2s, bottom .3s ease;
}
.to-top.is-visible { opacity: 1; transform: translateY(0); }
.to-top:hover { background: var(--blue-dark); }

/* ============================================================
   Анимации появления (reveal)
   Скрываем элементы только если активен JS (класс .js на <html>),
   иначе контент всегда виден.
   ============================================================ */
.js .reveal,
.js .reveal-group > * {
  opacity: 0; transform: translateY(26px);
  transition: opacity .7s cubic-bezier(.22,.61,.36,1), transform .7s cubic-bezier(.22,.61,.36,1);
  will-change: opacity, transform;
}
.reveal.is-visible,
.reveal-group.is-visible > * { opacity: 1; transform: none; }
.reveal-group.is-visible > *:nth-child(1) { transition-delay: .04s; }
.reveal-group.is-visible > *:nth-child(2) { transition-delay: .12s; }
.reveal-group.is-visible > *:nth-child(3) { transition-delay: .20s; }
.reveal-group.is-visible > *:nth-child(4) { transition-delay: .28s; }
.reveal-group.is-visible > *:nth-child(5) { transition-delay: .36s; }
.reveal-group.is-visible > *:nth-child(6) { transition-delay: .44s; }

@media (prefers-reduced-motion: reduce) {
  .js .reveal, .js .reveal-group > * { opacity: 1; transform: none; transition: none; }
}

/* ============================================================
   Адаптив
   ============================================================ */
@media (max-width: 980px) {
  .companies { grid-template-columns: repeat(2, 1fr); }
  .team { grid-template-columns: repeat(3, 1fr); }
  .about { grid-template-columns: 1fr; gap: 36px; }
  .contacts { grid-template-columns: 1fr; }
  .contacts__map { min-height: 300px; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .carousel { padding: 0 16px; gap: 8px; }

  /* Бургер-меню и выезжающая панель */
  .nav {
    position: fixed; top: 0; right: 0; z-index: 95;
    height: 100vh; height: 100dvh; width: min(340px, 86vw);
    flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 0;
    background: #fff; padding: calc(var(--header-h) + 16px) 28px 28px;
    box-shadow: -12px 0 40px rgba(11, 21, 48, .18);
    overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
    /* Прячем БЕЗ выноса за экран: панель всегда в границах вьюпорта,
       поэтому ее нельзя «достать» горизонтальным свайпом. */
    visibility: hidden; opacity: 0; pointer-events: none;
    transition: opacity .25s ease, visibility .25s ease;
  }
  .nav.is-open { visibility: visible; opacity: 1; pointer-events: auto; }
  .nav__list { flex-direction: column; align-items: flex-start; gap: 4px; width: 100%; }
  .nav__list li { width: 100%; }
  .nav__link { display: block; width: 100%; padding: 14px 0; font-size: 19px; border-bottom: 1px solid var(--gray-line); }
  .nav__link::after { display: none; }
  .nav__cta { font-size: 15px; padding: 12px 20px; }
  .nav__cta--out { display: none; }
  .nav__cta--in { display: inline-flex; margin-top: 22px; width: 100%; }
  .burger { display: flex; }
  .logo__img { height: 38px; }
}

@media (max-width: 760px) {
  .section { padding: 72px 0; }
  .logo__img { height: 36px; }

  .hero { padding: 56px 0 64px; }
  .hero__actions .btn { flex: 1 1 auto; }
  .hero__brands { margin-top: 44px; }
  .hero__logo { height: 56px; padding: 0 18px; }
  .hero__logo img { max-height: 28px; max-width: 120px; }
  .hero__stripes { width: 220px; height: 220px; }

  .carousel__nav { width: 42px; height: 42px; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .container { padding-left: max(18px, env(safe-area-inset-left)); padding-right: max(18px, env(safe-area-inset-right)); }
  .companies, .about__points, .team, .contacts__info { grid-template-columns: 1fr; }
  .section__head { margin-bottom: 40px; }
  .footer__inner { grid-template-columns: 1fr; gap: 32px; }
  .company-card, .asset-key { padding: 22px; }
  .hero__logo { height: 50px; padding: 0 14px; }
  .hero__logo img { max-height: 24px; max-width: 100px; }
  .photo-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .asset-key__val { font-size: 28px; }
}

/* ============================================================
   Многостраничные компоненты
   ============================================================ */

/* Баннер внутренних страниц */
.page-hero { position: relative; overflow: hidden; padding: 88px 0 70px; }
.page-hero__bg {
  position: absolute; inset: 0; z-index: -1; overflow: hidden;
  background:
    radial-gradient(760px 380px at 90% -30%, rgba(0, 57, 166, .12), transparent 60%),
    radial-gradient(560px 340px at -2% 125%, rgba(213, 43, 30, .08), transparent 60%),
    var(--bg-alt);
  border-bottom: 1px solid var(--gray-line);
}
/* фирменная сетка */
.page-hero__bg::after {
  content: ''; position: absolute; inset: 0;
  background-image: linear-gradient(var(--gray-line) 1px, transparent 1px),
                    linear-gradient(90deg, var(--gray-line) 1px, transparent 1px);
  background-size: 46px 46px; opacity: .4;
  -webkit-mask-image: radial-gradient(80% 120% at 100% 0%, #000, transparent 70%);
          mask-image: radial-gradient(80% 120% at 100% 0%, #000, transparent 70%);
}
/* геометрические фигуры */
.page-hero__shape { position: absolute; border-radius: 32px; opacity: .10; }
.page-hero__shape--a { width: 440px; height: 170px; top: 6px; right: -140px; background: var(--blue); transform: rotate(-15deg); }
.page-hero__shape--b { width: 340px; height: 150px; bottom: -50px; left: -120px; background: var(--red); transform: rotate(-15deg); }
/* декоративный значок раздела */
.page-hero__art {
  position: absolute; top: 50%; right: clamp(20px, 7vw, 120px); transform: translateY(-50%);
  width: clamp(150px, 22vw, 250px); height: auto; color: var(--blue); opacity: .09;
}
/* акценты по разделам */
.page-hero--about   .page-hero__art { color: var(--blue); }
.page-hero--companies .page-hero__art { color: var(--red); }
.page-hero--objects .page-hero__art { color: var(--blue); }
.page-hero--charity .page-hero__art { color: var(--red); }
.page-hero--contacts .page-hero__art { color: var(--blue); }
.page-hero--legal   .page-hero__art { color: var(--blue); }

.page-hero__crumbs { position: relative; display: flex; align-items: center; gap: 9px; font-size: 14px; color: var(--gray); }
.page-hero__crumbs a { color: var(--blue); font-weight: 600; }
.page-hero__crumbs a:hover { text-decoration: underline; }
.page-hero__crumbs span { color: var(--gray); opacity: .6; }
.page-hero__title { position: relative; margin-top: 14px; font-size: clamp(30px, 5vw, 48px); font-weight: 800; line-height: 1.1; letter-spacing: -.02em; }
.page-hero__sub { position: relative; margin-top: 14px; max-width: 680px; font-size: 18px; color: var(--ink-soft); }
@media (max-width: 760px) {
  .page-hero { padding: 60px 0 48px; }
  .page-hero__art { right: -24px; width: 150px; opacity: .07; }
}
@media (max-width: 560px) {
  .page-hero__art { display: none; }
}

/* Логотип/монограмма в карточке компании */
.company-card__logo { height: 60px; display: flex; align-items: center; margin-bottom: 18px; }
.company-card__logo img { max-height: 54px; max-width: 180px; width: auto; object-fit: contain; }
.company-card__mono {
  width: 58px; height: 58px; border-radius: 15px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 21px; color: #fff; letter-spacing: .02em;
  background: linear-gradient(145deg, var(--blue), var(--red));
}

/* Тизеры на главной */
.teasers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.teaser {
  display: flex; flex-direction: column; gap: 8px;
  padding: 30px; border-radius: var(--radius-lg);
  background: #fff; border: 1px solid var(--gray-line); box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.teaser:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }
.teaser__icon {
  width: 50px; height: 50px; border-radius: 14px; display: flex; align-items: center; justify-content: center;
  font-size: 24px; color: var(--red); background: rgba(213, 43, 30, .08); margin-bottom: 6px;
}
.teaser h3 { font-size: 21px; font-weight: 800; letter-spacing: -.01em; }
.teaser p { color: var(--ink-soft); font-size: 15px; flex-grow: 1; }
.teaser__more { font-weight: 700; color: var(--blue); font-size: 15px; transition: letter-spacing .2s; }
.teaser:hover .teaser__more { letter-spacing: .01em; }

/* CTA-баннер */
.cta-band { background: linear-gradient(135deg, var(--blue) 0%, var(--blue-deep) 100%); color: #fff; padding: 60px 0; }
.cta-band__inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.cta-band h2 { font-size: clamp(24px, 3.4vw, 34px); font-weight: 800; letter-spacing: -.02em; }
.cta-band p { margin-top: 8px; color: rgba(255, 255, 255, .85); font-size: 17px; }
.btn--white { background: #fff; color: var(--blue); }
.btn--white:hover { background: #eef2fb; transform: translateY(-2px); }

/* Прочее */
.section__cta { margin-top: 36px; text-align: center; }
.about__points--wide { grid-template-columns: repeat(4, 1fr); }

/* Благотворительность */
.charity-intro { max-width: 760px; margin: 0 auto 46px; text-align: center; font-size: 20px; color: var(--ink-soft); }
.charity { display: grid; gap: 28px; max-width: 920px; margin: 0 auto; }
.charity-card {
  position: relative; overflow: hidden;
  background: #fff; border: 1px solid var(--gray-line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
.charity-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.charity-card::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; z-index: 2; background: linear-gradient(var(--blue), var(--red)); }
.charity-card__photo { width: 100%; aspect-ratio: 21 / 9; overflow: hidden; background: var(--bg-alt); }
.charity-card__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.charity-card:hover .charity-card__photo img { transform: scale(1.04); }
.charity-card__inner { padding: 32px 36px; }
.charity-card__head { margin-bottom: 24px; padding-bottom: 20px; border-bottom: 1px solid var(--gray-line); }
.charity-card__no { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--red); }
.charity-card__title { margin-top: 8px; font-size: 24px; font-weight: 800; letter-spacing: -.01em; line-height: 1.2; }
.charity-card__rows { display: grid; gap: 16px; }
.charity-card__rows > div { display: grid; grid-template-columns: 200px 1fr; gap: 22px; align-items: start; }
.charity-card__rows dt { font-weight: 700; color: var(--blue); font-size: 15px; }
.charity-card__rows dd { color: var(--ink-soft); font-size: 16px; }

/* Адаптив компонентов */
@media (max-width: 980px) {
  .teasers { grid-template-columns: 1fr; }
  .about__points--wide { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .charity-card__inner { padding: 24px 22px; }
  .charity-card__photo { aspect-ratio: 16 / 9; }
  .charity-card__rows > div { grid-template-columns: 1fr; gap: 4px; }
  .charity-card__rows dt { color: var(--red); }
  .cta-band__inner .btn { width: 100%; }
}
@media (max-width: 560px) {
  .about__points--wide { grid-template-columns: 1fr; }
}

/* ============================================================
   Горизонтальный таймлайн (история)
   ============================================================ */
.htl__track { gap: 0; padding: 34px 0; align-items: stretch; }
.htl-item { position: relative; flex: 0 0 clamp(220px, 24vw, 280px); min-height: 300px; scroll-snap-align: center; }
.htl-item::before {
  content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 3px;
  transform: translateY(-50%); background: rgba(0, 57, 166, .18);
}
.htl-item:first-child::before { left: 50%; }
.htl-item:last-child::before { right: 50%; }
.htl-item__dot {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 18px; height: 18px; border-radius: 50%; z-index: 2;
  background: #fff; border: 4px solid var(--red); box-shadow: 0 0 0 4px rgba(213, 43, 30, .12);
  transition: transform .25s ease;
}
.htl-item:hover .htl-item__dot { transform: translate(-50%, -50%) scale(1.25); }
.htl-item__card {
  position: absolute; left: 14px; right: 14px;
  background: #fff; border: 1px solid var(--gray-line); border-radius: var(--radius);
  padding: 14px 16px; box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
.htl-item:hover .htl-item__card { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.htl-item--up .htl-item__card { bottom: calc(50% + 24px); }
.htl-item--down .htl-item__card { top: calc(50% + 24px); }
.htl-item__card::after {
  content: ''; position: absolute; left: 50%; transform: translateX(-50%);
  width: 2px; height: 16px; background: rgba(0, 57, 166, .18);
}
.htl-item--up .htl-item__card::after { bottom: -16px; }
.htl-item--down .htl-item__card::after { top: -16px; }
.htl-item__year {
  display: inline-block; font-size: 20px; font-weight: 800; color: var(--red);
  padding-bottom: 4px; margin-bottom: 6px; border-bottom: 3px solid rgba(0, 57, 166, .25);
}
.htl-item__text { font-size: 13px; line-height: 1.45; color: var(--ink-soft); }
.htl-item--now .htl-item__card { background: linear-gradient(145deg, var(--blue), var(--blue-deep)); border-color: transparent; }
.htl-item--now .htl-item__year { color: #fff; border-bottom-color: rgba(255, 255, 255, .4); }
.htl-item--now .htl-item__text { color: rgba(255, 255, 255, .9); }
.htl-item--now .htl-item__dot { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(0, 57, 166, .15); }

/* ============================================================
   Компании - фичи
   ============================================================ */
.features { display: grid; gap: 26px; }
.feature {
  position: relative; display: grid; grid-template-columns: 320px 1fr;
  background: #fff; border: 1px solid var(--gray-line); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-sm); transition: box-shadow .25s ease;
}
.feature:hover { box-shadow: var(--shadow-md); }
.feature::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: linear-gradient(var(--blue), var(--red)); z-index: 1; }
.feature__aside {
  padding: 34px; background: var(--bg-alt); border-right: 1px solid var(--gray-line);
  display: flex; flex-direction: column; align-items: flex-start; gap: 18px;
}
.feature__logo { min-height: 60px; display: flex; align-items: center; }
.feature__logo img { max-height: 58px; max-width: 230px; object-fit: contain; }
.feature__mono { width: 64px; height: 64px; border-radius: 16px; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 24px; color: #fff; background: linear-gradient(145deg, var(--blue), var(--red)); }
.feature__badge { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--blue); background: rgba(0, 57, 166, .08); padding: 7px 13px; border-radius: 999px; }
.feature__site { margin-top: auto; font-weight: 700; color: var(--red); font-size: 15px; display: inline-flex; align-items: center; gap: 6px; transition: gap .2s ease; }
.feature__site:hover { gap: 10px; }
.feature__site--muted { color: var(--gray); }
.feature__body { padding: 34px 36px; }
.feature__title { font-size: 27px; font-weight: 800; letter-spacing: -.02em; }
.feature__desc { margin: 12px 0 18px; color: var(--ink-soft); font-size: 16px; }
.feature__list { display: grid; gap: 10px; }
.feature__list li { position: relative; padding-left: 26px; color: var(--ink-soft); font-size: 15px; }
.feature__list li::before { content: ''; position: absolute; left: 0; top: 8px; width: 10px; height: 10px; border-radius: 50%; background: linear-gradient(135deg, var(--blue), var(--red)); }
.feature:nth-child(even) { grid-template-columns: 1fr 320px; }
.feature:nth-child(even) .feature__aside { order: 2; border-right: none; border-left: 1px solid var(--gray-line); }
.feature:nth-child(even) .feature__body { order: 1; }
.feature:nth-child(even)::before { left: auto; right: 0; }

/* ============================================================
   Приветствие руководителя
   ============================================================ */
.greeting { display: grid; grid-template-columns: 360px 1fr; gap: 48px; align-items: start; }
.greeting__photo {
  margin: 0; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 5;
  border: 1px solid var(--gray-line); box-shadow: var(--shadow-md);
  background: linear-gradient(150deg, #e8edf7, #dfe5f2);
}
.greeting__photo img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.greeting__text .section__tag { margin-bottom: 16px; }
.greeting__text p { color: var(--ink-soft); margin-bottom: 14px; font-size: 16px; }
.greeting__tagline { font-size: clamp(20px, 2.6vw, 26px); font-weight: 800; color: var(--red); letter-spacing: -.01em; }
.greeting__sign { font-weight: 800; color: var(--ink); margin-top: 8px; }
.greeting__sign span { display: block; color: var(--gray); font-weight: 600; font-size: 14px; margin-top: 2px; }

/* ============================================================
   Мощности и ресурсы
   ============================================================ */
.rstats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 40px; }
.rstat { text-align: center; padding: 26px 18px; background: #fff; border: 1px solid var(--gray-line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.rstat__num { font-size: clamp(22px, 2.6vw, 30px); font-weight: 800; color: var(--blue); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.rstat p { margin-top: 8px; color: var(--gray); font-size: 14px; }
/* Подзаголовки внутри материальной базы */
.resources__subtitle { font-size: 21px; font-weight: 800; letter-spacing: -.01em; margin: 46px 0 18px; }
.resources__subtitle--muted { margin-top: 52px; font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--gray); }

/* Акцент: собственный офис и склады */
.assets-key { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.asset-key {
  position: relative; overflow: hidden;
  background: #fff; border: 1px solid var(--gray-line); border-radius: var(--radius-lg);
  padding: 28px; box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.asset-key::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: linear-gradient(var(--blue), var(--red)); }
.asset-key:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: transparent; }
.asset-key__icon { display: inline-flex; width: 52px; height: 52px; border-radius: 14px; align-items: center; justify-content: center; color: var(--blue); background: rgba(0, 57, 166, .08); margin-bottom: 18px; }
.asset-key__icon svg { width: 28px; height: 28px; }
.asset-key__val { display: block; font-size: clamp(28px, 3.4vw, 36px); font-weight: 800; color: var(--blue); letter-spacing: -.02em; line-height: 1; font-variant-numeric: tabular-nums; }
.asset-key__name { margin-top: 8px; font-size: 16px; font-weight: 600; color: var(--ink-soft); }

/* Сетка фото-заглушек (офис / склад) */
.photo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }
.photo-ph {
  position: relative; margin: 0; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--gray-line); background: linear-gradient(135deg, #eef2fa, #e3e9f5);
  display: flex; align-items: center; justify-content: center;
}
.photo-ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.photo-ph:hover img { transform: scale(1.05); }
.photo-ph__label { display: inline-flex; align-items: center; gap: 8px; color: var(--gray); font-size: 13px; font-weight: 600; }
.photo-ph__label::before {
  content: '+'; display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 50%; border: 1.5px dashed var(--gray); font-size: 16px; line-height: 1;
}

/* Прочие активы - фоном */
.assets-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 28px; }
.assets-list li { position: relative; padding-left: 18px; font-size: 14.5px; color: var(--gray); }
.assets-list li::before { content: ''; position: absolute; left: 0; top: 9px; width: 6px; height: 6px; border-radius: 50%; background: var(--gray-line); }
.assets-list b { color: var(--ink-soft); font-weight: 700; }

/* ============================================================
   Объекты - сетка с фото и фильтром
   ============================================================ */
.filters { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 40px; }
.filter { font-family: inherit; font-weight: 600; font-size: 15px; padding: 9px 18px; border-radius: 999px; cursor: pointer; background: #fff; color: var(--ink-soft); border: 1px solid var(--gray-line); transition: all .2s ease; }
.filter:hover { border-color: var(--blue); color: var(--blue); }
.filter.is-active { background: var(--blue); color: #fff; border-color: var(--blue); }

.objects-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.object-tile { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--gray-line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .25s ease, box-shadow .25s ease; }
.object-tile.is-hidden { display: none; }
.object-tile:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.object-tile__photo { position: relative; aspect-ratio: 16 / 10; background: linear-gradient(135deg, #eef2fa, #dde6f5); display: flex; align-items: flex-end; padding: 14px; overflow: hidden; }
.object-tile__photo::before { content: attr(data-label); position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--gray); font-size: 13px; font-weight: 600; opacity: .55; }
.object-tile__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.object-tile:hover .object-tile__photo img { transform: scale(1.05); }
.object-tile__cat { position: relative; z-index: 1; font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: #fff; background: var(--red); padding: 5px 11px; border-radius: 999px; }
.object-tile__body { display: flex; flex-direction: column; flex-grow: 1; padding: 22px; }
.object-tile__title { font-size: 19px; font-weight: 800; letter-spacing: -.01em; line-height: 1.25; }
.object-tile__desc { margin: 8px 0 16px; color: var(--ink-soft); font-size: 14.5px; flex-grow: 1; }
.object-tile__tags { display: flex; flex-wrap: wrap; gap: 7px; }
.objects__links { margin-top: 44px; justify-content: center; }

/* Карточка-компания как ссылка (главная) */
.company-card--link { cursor: pointer; }

/* ============================================================
   Адаптив новых компонентов
   ============================================================ */
@media (max-width: 980px) {
  .feature, .feature:nth-child(even) { grid-template-columns: 1fr; }
  .feature__aside, .feature:nth-child(even) .feature__aside {
    order: 0; border-right: none; border-left: none; border-bottom: 1px solid var(--gray-line);
    flex-direction: row; align-items: center; flex-wrap: wrap; gap: 16px;
  }
  .feature:nth-child(even) .feature__body { order: 0; }
  .feature__site { margin-top: 0; margin-left: auto; }
  .greeting { grid-template-columns: 1fr; gap: 28px; max-width: 640px; margin: 0 auto; }
  .greeting__photo { max-width: 320px; }
  .rstats { grid-template-columns: repeat(2, 1fr); }
  .objects-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .objects-grid { grid-template-columns: 1fr; }
  .htl-item { flex-basis: 80vw; }
  .feature__body { padding: 26px 22px; }
  .feature__aside { padding: 24px; }
}

/* ============================================================
   Контакты компаний группы
   ============================================================ */
.ccards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.ccard { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--gray-line); border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease; }
.ccard:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.ccard__logo { height: 58px; display: flex; align-items: center; margin-bottom: 16px; }
.ccard__logo img { max-height: 44px; max-width: 190px; object-fit: contain; }
.ccard__mono { width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 19px; color: #fff; background: linear-gradient(145deg, var(--blue), var(--red)); }
.ccard__name { font-size: 20px; font-weight: 800; letter-spacing: -.01em; margin-bottom: 16px; }
.ccard__rows { display: grid; gap: 12px; }
.ccard__row { display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; }
.ccard__lbl { flex: 0 0 54px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--blue); padding-top: 3px; }
.ccard__val { color: var(--ink-soft); line-height: 1.5; }
.ccard__val a { color: var(--ink); border-bottom: 1px solid transparent; transition: border-color .2s ease; }
.ccard__val a:hover { border-color: var(--red); }

@media (max-width: 980px) { .ccards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .ccards { grid-template-columns: 1fr; } }

/* НК-Индустрия: квадратный логотип крупнее остальных, чтобы хорошо читался */
.hero__logo img[src*="bp13"]    { max-height: 52px; }
.feature__logo img[src*="bp13"] { max-height: 82px; max-width: 130px; }
.ccard__logo img[src*="bp13"]   { max-height: 56px; }
@media (max-width: 760px) {
  .hero__logo img[src*="bp13"] { max-height: 42px; }
}
@media (max-width: 560px) {
  .hero__logo img[src*="bp13"] { max-height: 38px; }
}

/* ============================================================
   Лайтбокс-галерея
   ============================================================ */
.photo-ph--zoom { cursor: pointer; }
.photo-ph__zoom {
  position: absolute; right: 10px; bottom: 10px; z-index: 2;
  width: 34px; height: 34px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(11, 21, 48, .55); color: #fff;
  opacity: 0; transform: translateY(6px); transition: opacity .2s ease, transform .2s ease;
  pointer-events: none;
}
.photo-ph--zoom:hover .photo-ph__zoom,
.photo-ph--zoom:focus-visible .photo-ph__zoom { opacity: 1; transform: translateY(0); }
.photo-ph__zoom svg { width: 18px; height: 18px; }

.lightbox {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center; padding: 24px;
  background: rgba(8, 12, 24, .93);
  opacity: 0; transition: opacity .2s ease;
}
.lightbox.is-open { opacity: 1; }
.lightbox[hidden] { display: none; }
.lightbox__stage { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 12px; max-width: 100%; }
.lightbox__img {
  max-width: min(1100px, 92vw); max-height: 84vh; width: auto; height: auto;
  object-fit: contain; border-radius: 10px; background: #fff;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .5);
}
.lightbox__cap { color: rgba(255, 255, 255, .85); font-size: 14px; text-align: center; max-width: 80vw; }
.lightbox__btn {
  position: absolute; display: flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(255, 255, 255, .14); color: #fff; font-size: 30px; line-height: 1;
  transition: background .2s ease, transform .15s ease;
}
.lightbox__btn:hover { background: rgba(255, 255, 255, .26); }
.lightbox__close { top: 18px; right: 18px; font-size: 26px; }
.lightbox__prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 18px; top: 50%; transform: translateY(-50%); }
.lightbox__prev:hover { transform: translateY(-50%) scale(1.07); }
.lightbox__next:hover { transform: translateY(-50%) scale(1.07); }
.lightbox__counter {
  position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%);
  color: rgba(255, 255, 255, .8); font-size: 14px; font-weight: 600; letter-spacing: .04em;
}
@media (max-width: 560px) {
  .lightbox__btn { width: 44px; height: 44px; font-size: 24px; }
  .lightbox__prev { left: 8px; }
  .lightbox__next { right: 8px; }
  .lightbox__close { top: 12px; right: 12px; }
}

/* ============================================================
   Метрики-доказательства (темная акцентная полоса)
   Группа в цифрах сразу под героем - «доказательства важнее обещаний».
   ============================================================ */
.metrics {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--blue-deep) 0%, #0a1838 55%, var(--blue-dark) 145%);
  color: #fff; padding: 60px 0;
}
.metrics::after {
  content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(70% 120% at 50% 0%, #000, transparent 75%);
          mask-image: radial-gradient(70% 120% at 50% 0%, #000, transparent 75%);
}
.metrics .container { position: relative; z-index: 1; }
.metrics__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.metric { position: relative; text-align: center; padding: 4px 12px; }
.metric + .metric::before {
  content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 1px; height: 56px; background: rgba(255, 255, 255, .12);
}
.metric__val {
  display: block; font-size: clamp(40px, 5.4vw, 62px); font-weight: 800;
  line-height: 1; letter-spacing: -.03em;
  background: linear-gradient(180deg, #ffffff 0%, #c2d0f2 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  font-variant-numeric: tabular-nums;
}
.metric__label { margin-top: 14px; color: #9fadd0; font-size: 15px; font-weight: 600; }

/* ============================================================
   Бенто-сетка компетенций (доминирующий layout 2025-2026)
   ============================================================ */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 1fr; gap: 18px; }
.bento__tile {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; gap: 8px;
  background: #fff; border: 1px solid var(--gray-line); border-radius: var(--radius-lg);
  padding: 26px; box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.bento__tile:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: rgba(0, 57, 166, .2); }
.bento__icon {
  width: 46px; height: 46px; border-radius: 13px; display: flex; align-items: center; justify-content: center;
  color: var(--blue); background: rgba(0, 57, 166, .08); margin-bottom: 4px;
}
.bento__icon svg { width: 24px; height: 24px; }
.bento__tile h3 { font-size: 19px; font-weight: 800; letter-spacing: -.01em; }
.bento__tile p { color: var(--gray); font-size: 15px; }

.bento__tile--lead {
  grid-column: span 2; grid-row: span 2;
  background: linear-gradient(155deg, var(--blue) 0%, var(--blue-deep) 100%);
  color: #fff; border-color: transparent;
}
.bento__tile--lead:hover { transform: translateY(-5px); border-color: transparent; }
.bento__tile--lead::after {
  content: ''; position: absolute; right: -40px; bottom: -60px; width: 280px; height: 280px;
  background: repeating-linear-gradient(-45deg,
    var(--red) 0 10px, transparent 10px 26px, #fff 26px 34px, transparent 34px 60px);
  opacity: .10; pointer-events: none;
  -webkit-mask-image: radial-gradient(closest-side, #000, transparent);
          mask-image: radial-gradient(closest-side, #000, transparent);
}
.bento__kicker { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .72); }
.bento__lead-title { position: relative; font-size: clamp(23px, 3vw, 33px); font-weight: 800; line-height: 1.12; letter-spacing: -.02em; margin: 8px 0 2px; }
.bento__tile--lead p { position: relative; color: rgba(255, 255, 255, .84); font-size: 16px; max-width: 34ch; }
.bento__cta {
  position: relative; margin-top: auto; padding-top: 18px; font-weight: 700; color: #fff; font-size: 15px;
  display: inline-flex; align-items: center; gap: 7px; transition: gap .2s ease;
}
.bento__tile--lead:hover .bento__cta { gap: 12px; }

@media (max-width: 980px) {
  .metrics__grid { grid-template-columns: repeat(2, 1fr); gap: 18px 24px; }
  .metric + .metric::before { display: none; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento__tile--lead { grid-column: span 2; grid-row: auto; }
}
@media (max-width: 560px) {
  .metrics { padding: 44px 0; }
  .metrics__grid { grid-template-columns: 1fr 1fr; gap: 30px 16px; }
  .bento { grid-template-columns: 1fr; }
  .bento__tile--lead { grid-column: span 1; }
}

/* ============================================================
   Правовые страницы (политика, согласие на обработку, cookie)
   ============================================================ */
.legal { max-width: 860px; margin: 0 auto; }

.legal__intro { font-size: 18px; color: var(--ink-soft); }

/* Карточка реквизитов оператора */
.legal__card {
  margin-top: 24px; padding: 26px 28px;
  background: var(--bg-alt); border: 1px solid var(--gray-line);
  border-radius: var(--radius-lg);
}
.legal__card-title { font-size: 15px; font-weight: 800; margin-bottom: 14px; }
.legal__req { display: grid; gap: 10px; margin: 0; }
.legal__req > div { display: grid; grid-template-columns: 190px 1fr; gap: 6px 18px; }
.legal__req dt { color: var(--gray); font-size: 15px; }
.legal__req dd { color: var(--ink); font-size: 15px; font-weight: 600; }

/* Оглавление */
.legal__toc {
  margin-top: 34px; padding: 24px 28px;
  background: #fff; border: 1px solid var(--gray-line);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
}
.legal__toc-title { font-size: 15px; font-weight: 800; margin-bottom: 12px; }
.legal__toc ol { list-style: none; counter-reset: toc; display: grid; gap: 8px; }
.legal__toc li { counter-increment: toc; }
.legal__toc a { color: var(--blue); font-weight: 600; font-size: 15px; }
.legal__toc a::before { content: counter(toc) '. '; color: var(--gray); font-weight: 700; }
.legal__toc a:hover { text-decoration: underline; }

/* Разделы документа */
.legal__block { margin-top: 48px; scroll-margin-top: calc(var(--header-h) + 20px); }
.legal__block h2 {
  font-size: clamp(21px, 2.6vw, 26px); font-weight: 800;
  line-height: 1.25; letter-spacing: -.01em;
  padding-bottom: 14px; margin-bottom: 20px;
  border-bottom: 2px solid var(--gray-line);
}
.legal__block h3 {
  margin-top: 28px; margin-bottom: 10px;
  font-size: 18px; font-weight: 800; color: var(--blue);
}
.legal__block p { color: var(--ink-soft); }
.legal__block p + p { margin-top: 14px; }
.legal__block a { color: var(--blue); font-weight: 600; text-decoration: underline; }

.legal__list, .legal__num {
  margin-top: 14px; padding-left: 4px;
  display: grid; gap: 9px; color: var(--ink-soft);
}
.legal__list li { position: relative; padding-left: 20px; }
.legal__list li::before {
  content: ''; position: absolute; left: 0; top: 11px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--red);
}
.legal__num { list-style: decimal; padding-left: 24px; }
.legal__num li { padding-left: 4px; }
.legal__num li::marker { color: var(--gray); font-weight: 700; }

/* Контакт для обращений */
.legal__contact {
  margin-top: 20px; padding: 20px 24px;
  border-left: 3px solid var(--blue); background: var(--bg-alt);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.legal__contact p { margin: 0; }

@media (max-width: 560px) {
  .legal__card, .legal__toc { padding: 20px; }
  .legal__req > div { grid-template-columns: 1fr; gap: 2px; }
  .legal__block { margin-top: 36px; }
}

/* ---------- Всплывашка согласия на cookie ---------- */
/* Показывается скриптом, если согласие еще не сохранено. Без JS не появляется вовсе. */
.cookie {
  /* 85: выше кнопки «наверх» (80), но ниже затемнения меню (90) и лайтбокса (1000),
     иначе при открытом мобильном меню баннер всплывает поверх затемнения. */
  position: fixed; z-index: 85;
  left: max(16px, env(safe-area-inset-left));
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  display: flex; justify-content: center;
  opacity: 0; transform: translateY(24px); pointer-events: none;
  transition: opacity .3s ease, transform .3s ease;
}
.cookie[hidden] { display: none; }
.cookie.is-visible { opacity: 1; transform: none; pointer-events: auto; }

.cookie__inner {
  width: 100%; max-width: var(--maxw);
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
  padding: 20px 24px;
  background: #fff; border: 1px solid var(--gray-line);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-md);
  /* потолок высоты: на низких экранах баннер не должен съедать всю страницу */
  max-height: 70vh; max-height: 70dvh; overflow-y: auto;
}
.cookie__body { flex: 1 1 420px; min-width: 0; }
.cookie__text { font-size: 14px; line-height: 1.5; color: var(--ink-soft); }
.cookie__text a { color: var(--blue); font-weight: 700; text-decoration: underline; }
.cookie__links { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-top: 9px; font-size: 13px; }
.cookie__links a { color: var(--blue); font-weight: 700; }
.cookie__links a:hover { text-decoration: underline; }
.cookie__btn { flex: 0 0 auto; }

@media (max-width: 700px) {
  .cookie { bottom: max(10px, env(safe-area-inset-bottom)); left: max(10px, env(safe-area-inset-left)); right: max(10px, env(safe-area-inset-right)); }
  .cookie__inner { padding: 16px; gap: 12px; }
  .cookie__text { font-size: 13px; line-height: 1.45; }
  .cookie__links { gap: 2px 14px; margin-top: 7px; font-size: 12px; }
  .cookie__btn { width: 100%; padding: 12px 18px; }
}

/* ============================================================
   Кросс-браузерность: фолбэки и печать
   ============================================================ */
/* Фолбэк для браузеров без aspect-ratio (Safari <15 и т.п.) */
@supports not (aspect-ratio: 1 / 1) {
  .object-tile__photo { height: 220px; }
  .photo-ph { height: 200px; }
  .member__photo { height: 240px; }
  .greeting__photo { height: 460px; }
  .charity-card__photo { height: 250px; }
}

/* Версия для печати */
@media print {
  .header, .footer, .nav, .nav-overlay, .header__actions, .to-top,
  .hero__bg, .page-hero__bg, .page-hero__art, .carousel__nav,
  .lightbox, .cta-band .btn, .hero__actions, .section__cta, .cookie { display: none !important; }
  html, body { background: #fff !important; color: #000 !important; }
  * { box-shadow: none !important; text-shadow: none !important; }
  a { color: #000 !important; text-decoration: underline; }
  .section, .hero, .page-hero { padding: 14px 0 !important; }
  .reveal, .reveal-group > *, .js .reveal, .js .reveal-group > * { opacity: 1 !important; transform: none !important; }
  .carousel__track { overflow: visible !important; flex-wrap: wrap; }
  .object-tile, .company-card, .feature, .charity-card, .asset-key, .ccard, .member,
  .bento__tile, .metric { break-inside: avoid; page-break-inside: avoid; }
  /* Темные акцентные блоки - читаемыми на белой печати */
  .metrics, .bento__tile--lead { background: #fff !important; color: #000 !important; }
  .metric__val { background: none !important; -webkit-text-fill-color: #000 !important; color: #000 !important; }
  .metric__label, .bento__kicker, .bento__tile--lead p, .bento__cta { color: #000 !important; }
  .metric + .metric::before, .bento__tile--lead::after, .metrics::after { display: none !important; }
}
