/* INTEGRA Engineering Group — дизайн-концепт 02
   Фирменные цвета: Pantone 654C (0/58/112) и Pantone 137C (255/164/0).
   Шрифты: Montserrat — веб-аналог Gotham Pro (заголовки брендбука), Inter — как в буклете,
   Barlow Condensed — аналог PF Din Text Comp Pro (цифры и индексы). Файлы шрифтов — локально, fonts.css. */

/* ───────── 1. Токены ───────── */
:root {
  color-scheme: light;
  --navy: #003a70;
  --navy-700: #002c57;
  --navy-900: #001b38;
  --orange: #ffa400;
  --orange-hover: #ffb733;

  --bg: #ffffff;
  --bg-soft: #f2f5f8;
  --surface: #ffffff;
  --ink: #0a2239;
  --text: #33465a;
  --muted: #627488;
  --line: #dce3ea;
  --accent-text: var(--navy);
  --art: #003a70;

  --on-dark: #ffffff;
  --on-dark-muted: #a8bdd3;
  --line-dark: rgba(255, 255, 255, .17);

  --f-head: 'Montserrat', 'Gotham Pro', 'Helvetica Neue', Arial, sans-serif;
  --f-body: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  --f-num: 'Barlow Condensed', 'DIN Condensed', 'Arial Narrow', sans-serif;

  --gutter: clamp(20px, 5.5vw, 96px);
  --maxw: 1680px;
  --header-h: 88px;
  --section: clamp(72px, 9vw, 150px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

[data-theme='dark'] {
  --bg: #051729;
  --bg-soft: #081f36;
  --surface: #0b2741;
  --ink: #f2f6fa;
  --text: #c6d3e0;
  --muted: #8ea3b9;
  --line: #1a3653;
  --accent-text: #8ec3f5;
  --art: #5d8fc2;
  color-scheme: dark;
}

/* ───────── 2. База ───────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.65 var(--f-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background-color .4s, color .4s;
}
img, video, svg { display: block; max-width: 100%; }
picture { display: contents; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4, p, figure, ol, ul, dl, dd, blockquote { margin: 0; padding: 0; }
ol, ul { list-style: none; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
::selection { background: var(--orange); color: var(--navy-900); }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 32px); }
.section { padding-block: var(--section); }
.section--soft { background: var(--bg-soft); }
.section--navy { background: var(--navy); color: var(--on-dark-muted); }
.section--navy h2, .section--navy h3 { color: var(--on-dark); }

/* ───────── 3. Типографика ───────── */
h1, h2, h3, h4 { font-family: var(--f-head); color: var(--ink); text-wrap: balance; }
.h-xl { font-size: clamp(40px, 5.2vw, 84px); font-weight: 700; line-height: 1.02; letter-spacing: -.025em; }
.h-lg { font-size: clamp(30px, 3.5vw, 56px); font-weight: 700; line-height: 1.08; letter-spacing: -.02em; }
.h-md { font-size: clamp(22px, 2vw, 30px); font-weight: 600; line-height: 1.2; letter-spacing: -.01em; }
.h-sm { font-size: 19px; font-weight: 600; line-height: 1.3; }
.lead { font-size: clamp(19px, 1.55vw, 23px); line-height: 1.55; color: var(--text); max-width: 46em; }
.muted { color: var(--muted); }
.num { font-family: var(--f-num); font-weight: 300; font-variant-numeric: tabular-nums lining-nums; letter-spacing: 0; }

/* Кикер: подпись раздела с короткой оранжевой чертой — рифма с горизонтальными прорезями логотипа */
.kicker {
  display: inline-flex; align-items: center; gap: 14px;
  font: 700 12px/1 var(--f-head); letter-spacing: .16em; text-transform: uppercase; color: var(--accent-text);
}
.kicker::before { content: ''; width: 28px; height: 2px; background: var(--orange); flex: none; }
.kicker--light { color: var(--on-dark); }

/* ───────── 4. Кнопки и ссылки ───────── */
.btn {
  display: inline-flex; align-items: center; gap: 18px;
  padding: 19px 26px 19px 28px;
  background: var(--orange); color: var(--navy-900);
  font: 700 14px/1 var(--f-head); letter-spacing: .02em;
  transition: background-color .25s, gap .3s var(--ease);
}
.btn:hover { background: var(--orange-hover); gap: 26px; }
.btn--ghost { background: transparent; color: inherit; box-shadow: inset 0 0 0 1px currentColor; }
.btn--ghost:hover { background: var(--orange); color: var(--navy-900); box-shadow: none; }
.arrow { width: 18px; height: 12px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; }

.link {
  display: inline-flex; align-items: center; gap: 12px;
  font: 700 14px/1 var(--f-head); color: var(--accent-text);
  padding-bottom: 8px; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  transition: gap .3s var(--ease), background-size .3s var(--ease);
}
.link:hover { gap: 20px; }
.link--light { color: var(--on-dark); }

.status { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.status::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .45; }
.status--active::before { background: var(--orange); opacity: 1; box-shadow: 0 0 0 0 rgba(255, 164, 0, .6); animation: pulse 2.2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(255, 164, 0, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 164, 0, 0); } }

/* ───────── 5. Шапка ───────── */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h);
  color: var(--ink); background: var(--bg);
  box-shadow: 0 1px 0 var(--line);
  transition: transform .45s var(--ease), background-color .35s, color .35s, box-shadow .35s;
}
.header__in { height: 100%; display: flex; align-items: center; gap: clamp(20px, 3vw, 56px); }
.header--overlay { background: transparent; color: #fff; box-shadow: 0 1px 0 rgba(255, 255, 255, .2); }
.header--hidden { transform: translateY(-100%); }
.logo { display: block; flex: none; color: var(--navy); margin-right: auto; }
[data-theme='dark'] .logo, .header--overlay .logo, .footer .logo { color: #fff; }
.logo__svg { width: 168px; height: auto; }

.nav { display: flex; align-self: stretch; gap: clamp(18px, 2.2vw, 40px); }
.nav__item { position: relative; display: flex; align-items: center; }
.nav__link { position: relative; display: flex; align-items: center; height: 100%; font: 600 14px/1 var(--f-head); letter-spacing: .01em; white-space: nowrap; }
.nav__link::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--orange); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.nav__link:hover::after, .nav__link.is-active::after, .nav__item:hover > .nav__link::after { transform: scaleX(1); }

/* Упрощённое «мегаменю»: только для «Услуг» */
.drop {
  position: absolute; top: 100%; left: -32px; width: 620px; padding: 14px 32px 22px;
  background: var(--surface); color: var(--ink); box-shadow: 0 30px 60px -20px rgba(0, 27, 56, .35), 0 0 0 1px var(--line);
  opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .25s, transform .3s var(--ease), visibility .25s;
}
.nav__item:hover .drop, .nav__item:focus-within .drop { opacity: 1; visibility: visible; transform: none; }
.drop a { display: grid; grid-template-columns: 44px 1fr auto; align-items: baseline; gap: 6px; padding: 15px 0; border-bottom: 1px solid var(--line); transition: padding .3s var(--ease); }
.drop a:last-child { border-bottom: 0; }
.drop a:hover { padding-left: 8px; }
.drop .num { font-size: 20px; color: var(--orange); }
.drop b { font: 600 16px/1.3 var(--f-head); }
.drop small { grid-column: 2; font-size: 13.5px; line-height: 1.45; color: var(--muted); }
.drop .arrow { grid-row: 1; grid-column: 3; opacity: 0; transition: opacity .2s; color: var(--accent-text); }
.drop a:hover .arrow { opacity: 1; }

.tools { display: flex; align-items: center; gap: 6px; }
.lang { display: flex; align-items: center; font: 700 13px/1 var(--f-head); letter-spacing: .06em; margin-right: 10px; }
.lang a { padding: 10px 6px; opacity: .55; transition: opacity .2s; }
.lang a.is-active, .lang a:hover { opacity: 1; }
.lang a.is-active { box-shadow: inset 0 -2px 0 var(--orange); }
.lang i { width: 1px; height: 12px; background: currentColor; opacity: .3; }
.icon-btn { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; transition: background-color .2s, color .2s; }
.icon-btn:hover { background: var(--orange); color: var(--navy-900); }
.icon-btn svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
[data-theme='dark'] .icon-moon, :root:not([data-theme='dark']) .icon-sun { display: none; }
.burger { display: none; }
.mnav { display: none; }

/* ───────── 6. Первый экран ───────── */
.hero { position: relative; height: 100vh; min-height: 640px; max-height: 1200px; color: #fff; overflow: hidden; background: var(--navy-900); display: flex; flex-direction: column; justify-content: flex-end; }
.hero__media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__shade { position: absolute; inset: 0; background:
  linear-gradient(180deg, rgba(0, 27, 56, .62) 0, rgba(0, 27, 56, 0) 26%),
  linear-gradient(0deg, rgba(0, 27, 56, .9) 0, rgba(0, 27, 56, .5) 38%, rgba(0, 27, 56, 0) 72%),
  linear-gradient(90deg, rgba(0, 27, 56, .45) 0, rgba(0, 27, 56, 0) 60%); }
.hero__body { position: relative; padding-bottom: clamp(36px, 5vh, 64px); }
.hero__title { margin: 26px 0 26px; color: #fff; font-size: clamp(38px, 5.6vw, 100px); font-weight: 800; line-height: .98; letter-spacing: -.015em; text-transform: uppercase; }
.hero__title span { display: block; overflow: hidden; }
.hero__title span i { display: block; font-style: normal; transform: translateY(105%); animation: rise 1.1s var(--ease) forwards; }
.hero__title span:nth-child(2) i { animation-delay: .12s; }
@keyframes rise { to { transform: none; } }
.hero__row { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.hero__lead { max-width: 30em; font-size: clamp(17px, 1.4vw, 21px); line-height: 1.5; color: rgba(255, 255, 255, .88); }
.hero__foot { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 72px; border-top: 1px solid rgba(255, 255, 255, .22); font-size: 13.5px; color: rgba(255, 255, 255, .8); }
.hero__caption { display: inline-flex; align-items: center; gap: 12px; transition: color .2s; }
.hero__caption:hover { color: #fff; }
.hero__caption b { font-weight: 600; color: #fff; }
.hero__ctrl { display: flex; align-items: center; gap: 22px; }
.hero__scroll { display: inline-flex; align-items: center; gap: 12px; font: 600 11px/1 var(--f-head); letter-spacing: .16em; text-transform: uppercase; }
.hero__scroll i { position: relative; width: 1px; height: 34px; background: rgba(255, 255, 255, .3); overflow: hidden; }
.hero__scroll i::after { content: ''; position: absolute; inset: 0; background: var(--orange); animation: drip 2.2s var(--ease) infinite; }
@keyframes drip { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(100%); } }
.pause { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .45); transition: background-color .2s, color .2s; }
.pause:hover { background: #fff; color: var(--navy-900); }
.pause svg { width: 12px; height: 12px; fill: currentColor; }
.pause .i-play, .pause.is-paused .i-pause { display: none; }
.pause.is-paused .i-play { display: block; }

/* ───────── 7. Миссия / вступление ───────── */
.statement { font: 500 clamp(24px, 2.75vw, 44px)/1.26 var(--f-head); letter-spacing: -.015em; color: var(--ink); text-wrap: pretty; }
.statement .w { opacity: .18; transition: opacity .5s linear; }
.statement .w.on { opacity: 1; }
.intro__top { grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; row-gap: 28px; }
.intro__top .kicker { grid-column: 1 / span 3; align-self: start; margin-top: 16px; }
.intro__top .statement { grid-column: 4 / -1; }
.intro__about { grid-column: 4 / span 5; margin-top: clamp(40px, 5vw, 80px); }
.intro__about p { margin-bottom: 30px; }
.intro__facts { grid-column: 10 / -1; margin-top: clamp(40px, 5vw, 80px); }
.facts-list div { padding: 16px 0; border-top: 1px solid var(--line); }
.facts-list div:last-child { border-bottom: 1px solid var(--line); }
.facts-list dt { font: 600 11px/1 var(--f-head); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.facts-list dd { font: 600 16px/1.4 var(--f-head); color: var(--ink); }

/* ───────── 8. Заголовок секции ───────── */
.shead { display: grid; grid-template-columns: subgrid; grid-column: 1 / -1; align-items: end; row-gap: 22px; margin-bottom: clamp(40px, 5vw, 76px); }
.shead .kicker { grid-column: 1 / -1; }
.shead h2 { grid-column: 1 / span 8; }
.shead__side { grid-column: 9 / -1; justify-self: end; text-align: right; }
.shead__side p { color: var(--muted); max-width: 26em; text-align: left; }

/* ───────── 9. Направления ───────── */
.dirs { grid-column: 1 / span 6; border-top: 1px solid var(--line); }
.dir { display: grid; grid-template-columns: 64px 1fr 28px; align-items: center; gap: 8px; padding: clamp(20px, 2vw, 30px) 0; border-bottom: 1px solid var(--line); color: var(--muted); position: relative; transition: color .3s, padding .4s var(--ease); }
.dir::before { content: ''; position: absolute; left: 0; bottom: -1px; height: 2px; width: 100%; background: var(--orange); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.dir .num { font-size: 26px; color: var(--muted); transition: color .3s; }
.dir h3 { font-size: clamp(21px, 2.1vw, 33px); font-weight: 600; line-height: 1.15; letter-spacing: -.015em; color: inherit; transition: color .3s; }
.dir .arrow { opacity: 0; transform: translateX(-10px); transition: opacity .3s, transform .4s var(--ease); color: var(--accent-text); }
.dir.is-active { padding-left: 14px; }
.dir.is-active, .dir.is-active h3 { color: var(--ink); }
.dir.is-active .num { color: var(--orange); }
.dir.is-active::before { transform: scaleX(1); }
.dir.is-active .arrow { opacity: 1; transform: none; }
.dirs-panel { grid-column: 7 / -1; padding-left: clamp(0px, 3vw, 56px); position: relative; align-self: stretch; display: flex; flex-direction: column; justify-content: space-between; min-height: 440px; }
.dirs-art { position: relative; flex: 1; min-height: 320px; color: var(--art); overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.dirs-art .art { position: absolute; left: 0; bottom: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .35s; }
.dirs-art .art.is-on { opacity: 1; }
.dirs-text { position: relative; min-height: 132px; margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.dirs-text > div { position: absolute; inset: 24px 0 0; opacity: 0; transform: translateY(8px); transition: opacity .35s, transform .45s var(--ease); pointer-events: none; }
.dirs-text > div.is-on { opacity: 1; transform: none; pointer-events: auto; }
.dirs-text p { font-size: 18px; line-height: 1.55; color: var(--text); max-width: 32em; }

/* Линейные иллюстрации из буклета: прорисовка линий */
.art { width: 100%; height: auto; overflow: hidden; }
.art path { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 0s .35s; }
.art.is-drawn path, .art.is-on path { stroke-dashoffset: 0; transition: stroke-dashoffset 2.2s cubic-bezier(.4, 0, .2, 1); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.tags span { padding: 8px 12px; font: 600 12px/1 var(--f-head); letter-spacing: .03em; color: var(--accent-text); box-shadow: inset 0 0 0 1px var(--line); }
.section--navy .tags span, .on-dark .tags span { color: #fff; box-shadow: inset 0 0 0 1px var(--line-dark); }

/* ───────── 10. Показатели ───────── */
.stats { position: relative; color: #fff; background: var(--navy-900); overflow: hidden; isolation: isolate; }
.stats__media { position: absolute; inset: -20% 0 auto; width: 100%; height: 140%; object-fit: cover; z-index: -2; will-change: transform; }
.stats::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(0, 40, 80, .94), rgba(0, 46, 90, .8) 55%, rgba(0, 46, 90, .62)); }
.stats .shead h2 { color: #fff; }
.stats__grid { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line-dark); }
.stat { padding: clamp(24px, 3vw, 44px) clamp(16px, 2vw, 32px) clamp(24px, 3vw, 40px) 0; }
.stat + .stat { padding-left: clamp(16px, 2vw, 32px); border-left: 1px solid var(--line-dark); }
.stat__v { display: flex; align-items: baseline; font-family: var(--f-num); font-weight: 300; font-size: clamp(64px, 8.2vw, 148px); line-height: .92; letter-spacing: -.01em; white-space: nowrap; }
.stat__v sup { font-size: .42em; color: var(--orange); font-weight: 400; align-self: flex-start; margin: .12em 0 0 .06em; line-height: 1; }
.stat__v small { font: 600 clamp(15px, 1.4vw, 22px)/1 var(--f-head); margin-left: .5em; letter-spacing: 0; }
.stat p { margin-top: 18px; font-size: 16px; color: var(--on-dark-muted); max-width: 14em; }
.stats__note { grid-column: 1 / -1; display: flex; align-items: center; gap: 20px; margin-top: clamp(28px, 3vw, 48px); padding-top: 24px; border-top: 1px solid var(--line-dark); font-size: 16px; color: var(--on-dark-muted); }
.stats__note b { font: 400 30px/1 var(--f-num); color: var(--orange); letter-spacing: .01em; white-space: nowrap; }

/* ───────── 11. Карточки проектов ───────── */
.pcard { display: block; position: relative; color: var(--ink); }
.pcard__media { position: relative; overflow: hidden; background: var(--navy); aspect-ratio: 4 / 3; }
.pcard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.pcard:hover .pcard__media img { transform: scale(1.045); }
.pcard__media::after { content: ''; position: absolute; left: 0; bottom: 0; width: 100%; height: 4px; background: var(--orange); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.pcard:hover .pcard__media::after { transform: scaleX(1); }
.pcard__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; margin: 18px 0 10px; font: 600 12px/1.3 var(--f-head); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.pcard__meta .yr { color: var(--accent-text); }
.pcard h3 { font-size: clamp(19px, 1.5vw, 23px); font-weight: 600; line-height: 1.25; letter-spacing: -.01em; transition: color .2s; }
.pcard:hover h3 { color: var(--accent-text); }
.pcard p.desc { margin-top: 10px; font-size: 15.5px; line-height: 1.55; color: var(--muted); }
/* Проект без фотографии: фирменная линейная графика вместо серой заглушки */
.pcard__media--art { display: grid; place-items: end center; color: rgba(255, 164, 0, .85); background: var(--navy) url("../img/art/waves.2a64fae15b22.svg") center / cover; }
.pcard__media--art .art { width: 120%; max-width: none; margin-bottom: -4%; }

.pgrid { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(36px, 4vw, 64px) clamp(16px, 2vw, 32px); }
.pgrid > .pcard { grid-column: span 4; }
.pgrid > .pcard--half { grid-column: span 6; }
.pgrid > .pcard--half .pcard__media { aspect-ratio: 16 / 10; }
.pgrid > .pcard--feature { grid-column: 1 / -1; color: #fff; }
.pcard--feature .pcard__media { aspect-ratio: 21 / 9; min-height: 420px; }
.pcard--feature .pcard__media::before { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(0deg, rgba(0, 27, 56, .88), rgba(0, 27, 56, .1) 58%), linear-gradient(90deg, rgba(0, 27, 56, .5), rgba(0, 27, 56, 0) 55%); }
.pcard--feature .pcard__media img { position: absolute; inset: -14% 0 auto; height: 128%; }
.pcard--feature .pcard__body { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; padding: clamp(24px, 3.4vw, 56px); display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; }
.pcard--feature .pcard__meta { margin-top: 0; color: rgba(255, 255, 255, .85); }
.pcard--feature .pcard__meta .yr { color: #fff; }
.pcard--feature h3 { color: #fff; font-size: clamp(26px, 3.2vw, 52px); font-weight: 700; line-height: 1.05; letter-spacing: -.02em; max-width: 14em; }
.pcard--feature:hover h3 { color: #fff; }
.pcard__specs { display: flex; gap: clamp(20px, 3vw, 48px); flex: none; }
.pcard__specs div { padding-left: 16px; border-left: 1px solid rgba(255, 255, 255, .35); }
.pcard__specs b { display: block; font: 300 clamp(34px, 3.4vw, 56px)/1 var(--f-num); }
.pcard__specs b small { font: 600 14px/1 var(--f-head); margin-left: 6px; }
.pcard__specs span { display: block; margin-top: 8px; font-size: 13px; color: rgba(255, 255, 255, .75); }
.pcard__count { position: absolute; z-index: 2; top: clamp(20px, 2.4vw, 36px); right: clamp(24px, 3.4vw, 56px); font: 400 18px/1 var(--f-num); letter-spacing: .08em; color: #fff; }

/* ───────── 12. Ценности ───────── */
.values { position: relative; overflow: hidden; isolation: isolate; }
.values::before { content: ''; position: absolute; z-index: -1; inset: auto -10% -18% -10%; height: 70%; background: url("../img/art/waves.2a64fae15b22.svg") center / cover no-repeat; opacity: .4; }
.values__head { grid-column: 1 / span 4; align-self: start; position: sticky; top: calc(var(--header-h) + 40px); }
.values__head h2 { margin: 22px 0 24px; font-size: clamp(28px, 2.5vw, 42px); overflow-wrap: break-word; }
.values__list { grid-column: 6 / -1; counter-reset: v; }
.value { display: grid; grid-template-columns: 72px 1fr 1.25fr; gap: 24px; align-items: center; padding: clamp(22px, 2.4vw, 34px) 0; border-top: 1px solid var(--line-dark); }
.value:last-child { border-bottom: 1px solid var(--line-dark); }
.value .num { font-size: 40px; line-height: 1; color: var(--orange); }
.value h3 { font-size: clamp(18px, 1.55vw, 23px); font-weight: 600; line-height: 1.25; color: #fff; }
.value p { font-size: 15.5px; line-height: 1.6; color: var(--on-dark-muted); }

/* ───────── 13. Новости ───────── */
.news-main { grid-column: 1 / span 6; }
.news-main .ncard__media { aspect-ratio: 3 / 2; }
.news-side { grid-column: 7 / -1; display: flex; flex-direction: column; padding-left: clamp(0px, 2vw, 32px); }
.ncard { display: block; color: var(--ink); }
.ncard__media { overflow: hidden; aspect-ratio: 16 / 10; background: var(--bg-soft); }
.ncard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.ncard:hover img { transform: scale(1.045); }
.ncard time { display: block; margin: 20px 0 10px; font: 600 12px/1 var(--f-head); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.ncard h3 { font-size: clamp(22px, 2.1vw, 32px); font-weight: 600; line-height: 1.18; letter-spacing: -.015em; transition: color .2s; }
.ncard:hover h3 { color: var(--accent-text); }
.ncard p { margin-top: 12px; color: var(--muted); max-width: 36em; }
.ncard--row { display: grid; grid-template-columns: 46% 1fr; gap: clamp(16px, 2vw, 32px); padding: 28px 0; border-top: 1px solid var(--line); align-items: start; }
.ncard--row:first-child { padding-top: 0; border-top: 0; }
.ncard--row .ncard__media { aspect-ratio: 4 / 3; }
.ncard--row time { margin-top: 4px; }
.ncard--row:last-child { padding-bottom: 0; }
.ncard--row h3 { font-size: clamp(18px, 1.5vw, 22px); line-height: 1.28; }
.ncard--row p { font-size: 15px; }
.ngrid { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(40px, 4vw, 64px) clamp(16px, 2vw, 32px); }
.ngrid .ncard h3 { font-size: clamp(19px, 1.5vw, 23px); line-height: 1.25; }

/* ───────── 14. Клиенты и партнёры ───────── */
.logos { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); column-gap: clamp(16px, 2vw, 32px); padding-top: 28px; border-top: 1px solid var(--line); }
.logos + .logos { margin-top: clamp(36px, 4vw, 60px); }
.logos__label h3 { font-size: 19px; font-weight: 600; }
.logos__label span { display: block; margin-top: 6px; font-size: 14px; color: var(--muted); }
.logos__grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1px; padding: 1px; }
.logos__cell { position: relative; aspect-ratio: 5 / 3; background: #fff; box-shadow: 0 0 0 1px var(--line); }
.logos__cell img { position: absolute; inset: 24% 20%; width: 60%; height: 52%; object-fit: contain; mix-blend-mode: multiply; filter: grayscale(1); opacity: .62; transition: filter .35s, opacity .35s, transform .5s var(--ease); }
.logos__cell:hover img { filter: none; opacity: 1; transform: scale(1.05); }
[data-theme='dark'] .logos__cell { background: #e9eef3; box-shadow: 0 0 0 1px #b9c6d3; }

/* ───────── 15. Контакты + карта ───────── */
.contact { position: relative; background: var(--navy); color: var(--on-dark-muted); overflow: hidden; }
.contact__in { display: grid; grid-template-columns: 5fr 7fr; min-height: 620px; }
.contact__info { padding: var(--section) clamp(24px, 4vw, 72px) var(--section) var(--gutter); display: flex; flex-direction: column; align-items: flex-start; }
.contact__info h2 { color: #fff; margin: 22px 0 36px; }
.contact__phone { font: 300 clamp(38px, 4vw, 64px)/1 var(--f-num); color: #fff; letter-spacing: .01em; transition: color .2s; }
.contact__phone:hover { color: var(--orange); }
.contact__rows { width: 100%; margin: 36px 0 40px; }
.contact__rows div { display: grid; grid-template-columns: 110px 1fr; gap: 16px; align-items: center; padding: 16px 0; border-top: 1px solid var(--line-dark); }
.contact__rows dt { font: 600 11px/1.2 var(--f-head); letter-spacing: .14em; text-transform: uppercase; }
.contact__rows dd { color: #fff; font-size: 16.5px; line-height: 1.5; }
.contact__rows a:hover { color: var(--orange); }
.map { position: relative; background: #0b2c4f; overflow: hidden; min-height: 420px; }
.map__tiles { position: absolute; width: 2304px; height: 1536px; filter: grayscale(1) contrast(1.12) brightness(1.04); }
.map__tiles img { position: absolute; width: 256px; height: 256px; max-width: none; }
.map::after { content: ''; position: absolute; inset: 0; background: var(--navy); mix-blend-mode: color; opacity: .6; pointer-events: none; }
[data-theme='dark'] .map__tiles { filter: grayscale(1) invert(1) contrast(.82) brightness(.82); }
.map__dot { position: absolute; z-index: 2; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 4px #fff, 0 6px 16px rgba(0, 27, 56, .5); }
.map__dot::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; box-shadow: 0 0 0 0 rgba(255, 164, 0, .7); animation: ring 2.4s infinite; }
@keyframes ring { to { box-shadow: 0 0 0 30px rgba(255, 164, 0, 0); } }
.map__copy { position: absolute; z-index: 2; right: 8px; bottom: 6px; font-size: 10.5px; color: var(--navy-900); opacity: .6; }
.map__pin { position: absolute; z-index: 2; left: clamp(20px, 3vw, 40px); bottom: clamp(20px, 3vw, 40px); padding: 18px 22px; background: #fff; color: var(--navy-900); font-size: 14px; line-height: 1.45; box-shadow: 0 20px 40px -18px rgba(0, 27, 56, .5); border-left: 4px solid var(--orange); }
.map__pin b { display: block; font: 700 14px/1.3 var(--f-head); margin-bottom: 4px; }
.map__pin .num { display: block; margin-top: 8px; font-size: 15px; font-weight: 400; color: var(--muted); letter-spacing: .04em; }

/* ───────── 16. Подвал ───────── */
.footer { position: relative; background: var(--navy-900); color: var(--on-dark-muted); font-size: 15px; overflow: hidden; }
.footer__art { height: clamp(90px, 11vw, 170px); background: url("../img/art/skyline.0dbec70d5c39.svg") center bottom / auto 100% repeat-x; pointer-events: none; }
.footer__top { display: grid; grid-template-columns: 4fr 2fr 2fr 4fr; gap: clamp(24px, 3vw, 48px); padding-block: clamp(48px, 5vw, 80px); border-top: 1px solid var(--line-dark); }
.footer .logo__svg { width: 210px; }
.footer__slogan { margin-top: 26px; font: 600 12px/1.6 var(--f-head); letter-spacing: .16em; text-transform: uppercase; color: #fff; }
.footer h4 { font: 600 11px/1 var(--f-head); letter-spacing: .16em; text-transform: uppercase; color: var(--on-dark-muted); margin-bottom: 20px; }
.footer li + li { margin-top: 12px; }
.footer li a, .footer__contact a { color: #fff; transition: color .2s; }
.footer li a:hover, .footer__contact a:not(.footer__dl):hover { color: var(--orange); }
.footer__contact p + p { margin-top: 10px; }
.footer__dl { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 26px; padding: 18px 20px; color: #fff; box-shadow: inset 0 0 0 1px var(--line-dark); transition: background-color .25s, color .25s, box-shadow .25s; }
.footer__dl:hover, .footer__dl:focus-visible { background: var(--orange); color: var(--navy-900); box-shadow: none; }
.footer__dl b { display: block; font: 600 14px/1.3 var(--f-head); }
.footer__dl small { font-size: 12.5px; opacity: .7; }
.footer__dl svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; flex: none; }
.footer__bottom { display: flex; justify-content: space-between; gap: 24px; padding-block: 24px 96px; border-top: 1px solid var(--line-dark); font-size: 13px; }

/* ───────── 17. Внутренние страницы ───────── */
main { min-height: 60vh; }
.page-pad { padding-top: var(--header-h); }
.crumbs { display: flex; gap: 10px; font: 600 12px/1 var(--f-head); letter-spacing: .06em; color: var(--muted); }
.crumbs a:hover { color: var(--accent-text); }
.crumbs span::before { content: '/'; margin-right: 10px; opacity: .5; }

.phero { padding-block: clamp(36px, 4vw, 64px) clamp(48px, 6vw, 96px); }
.phero .crumbs { margin-bottom: clamp(48px, 6vw, 96px); }
.phero__grid { align-items: end; row-gap: 28px; }
.phero__grid h1 { grid-column: 1 / span 8; margin-top: 22px; }
.phero__grid .kicker { grid-column: 1 / -1; }
.phero__grid .lead { grid-column: 9 / -1; padding-bottom: 8px; }
.phero__count { font: 300 clamp(40px, 5.2vw, 84px)/1 var(--f-num); color: var(--orange); margin-left: .25em; vertical-align: top; }

/* Тёмный первый экран внутренней страницы с видео / фото */
.mhero { position: relative; min-height: min(86vh, 860px); display: flex; flex-direction: column; justify-content: flex-end; color: #fff; background: var(--navy-900); overflow: hidden; isolation: isolate; }
.mhero__media { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.mhero::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0, 27, 56, .6) 0, rgba(0, 27, 56, 0) 28%), linear-gradient(0deg, rgba(0, 27, 56, .92) 0, rgba(0, 27, 56, .35) 55%, rgba(0, 27, 56, .1)); }
.mhero .crumbs { color: rgba(255, 255, 255, .7); margin-bottom: 28px; }
.mhero .crumbs a:hover { color: #fff; }
.mhero h1 { color: #fff; max-width: 15em; }
.mhero__body { padding-bottom: clamp(32px, 4vw, 56px); }
.mhero .lead { color: rgba(255, 255, 255, .88); margin-top: 24px; max-width: 34em; }

/* Паспорт проекта */
.passport { display: grid; grid-template-columns: repeat(6, 1fr); border-top: 1px solid rgba(255, 255, 255, .25); }
.passport div { padding: 22px 20px 26px 0; }
.passport div + div { padding-left: 20px; border-left: 1px solid rgba(255, 255, 255, .25); }
.passport dt { font: 600 11px/1 var(--f-head); letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .65); margin-bottom: 10px; }
.passport dd { font: 600 16px/1.35 var(--f-head); color: #fff; }

.story__label { grid-column: 1 / span 3; }
.story__body { grid-column: 4 / span 6; }
.story__body--wide { grid-column: 4 / span 7; }
.story__body .lead { color: var(--ink); font-weight: 500; font-family: var(--f-head); font-size: clamp(21px, 1.9vw, 28px); line-height: 1.4; letter-spacing: -.01em; margin-bottom: 28px; }
.story__body p + p { margin-top: 1.1em; }
.story__aside { grid-column: 11 / -1; }

.specs { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.spec { padding: clamp(24px, 3vw, 40px) 24px clamp(24px, 3vw, 40px) 0; }
.spec + .spec { padding-left: clamp(16px, 2vw, 32px); border-left: 1px solid var(--line); }
.spec b { display: block; font: 300 clamp(52px, 6vw, 104px)/.95 var(--f-num); color: var(--ink); white-space: nowrap; }
.spec b small { font: 600 clamp(14px, 1.3vw, 20px)/1 var(--f-head); margin-left: .4em; color: var(--accent-text); }
.spec > span { display: block; margin-top: 14px; font-size: 15px; color: var(--muted); }

.works { grid-column: 4 / -1; display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(16px, 2vw, 32px); counter-reset: w; }
.works li { counter-increment: w; display: grid; grid-template-columns: 44px 1fr; padding: 20px 0; border-top: 1px solid var(--line); font-size: 16px; line-height: 1.5; color: var(--ink); }
.works li::before { content: counter(w, decimal-leading-zero); font: 400 17px/1.5 var(--f-num); color: var(--orange); letter-spacing: .04em; }

/* Галерея */
.gallery { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(8px, .9vw, 14px); }
.gallery button { position: relative; overflow: hidden; background: var(--bg-soft); grid-column: span 3; aspect-ratio: 4 / 3; cursor: zoom-in; }
.gallery button:nth-child(1) { grid-column: span 6; grid-row: span 2; aspect-ratio: auto; }
.gallery button:nth-child(6), .gallery button:nth-child(7) { grid-column: span 6; aspect-ratio: 16 / 9; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease), filter .4s; }
.gallery button:hover img { transform: scale(1.05); }
.gallery__more { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0, 27, 56, .72); color: #fff; font: 300 54px/1 var(--f-num); }
.gallery__more small { display: block; font: 600 12px/1 var(--f-head); letter-spacing: .14em; text-transform: uppercase; margin-top: 10px; }
.gallery__hint { grid-column: 1 / -1; display: flex; justify-content: space-between; margin-top: 16px; font-size: 13.5px; color: var(--muted); }

.vblock { position: relative; grid-column: 1 / -1; aspect-ratio: 21 / 9; overflow: hidden; background: var(--navy-900); color: #fff; }
.vblock video, .vblock img { width: 100%; height: 100%; object-fit: cover; }
.vblock__play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 22px; background: rgba(0, 27, 56, .38); transition: background-color .3s, opacity .3s; font: 600 14px/1 var(--f-head); letter-spacing: .1em; text-transform: uppercase; }
.vblock__play:hover { background: rgba(0, 27, 56, .2); }
.vblock__play i { width: 84px; height: 84px; border-radius: 50%; background: var(--orange); display: grid; place-items: center; transition: transform .4s var(--ease); }
.vblock__play:hover i { transform: scale(1.08); }
.vblock__play svg { width: 20px; height: 20px; fill: var(--navy-900); margin-left: 4px; }
.vblock.is-playing .vblock__play { opacity: 0; pointer-events: none; }

.docs { grid-column: 4 / -1; }
.doc { display: grid; grid-template-columns: 56px 1fr auto; align-items: center; gap: 16px; padding: 20px 0; border-top: 1px solid var(--line); color: var(--ink); transition: padding .35s var(--ease); }
.doc:last-child { border-bottom: 1px solid var(--line); }
.doc:hover { padding-left: 10px; }
.doc i { font: 700 11px/1 var(--f-head); font-style: normal; letter-spacing: .08em; color: var(--navy-900); background: var(--orange); padding: 7px 0; text-align: center; width: 44px; }
.doc b { display: block; font: 600 17px/1.3 var(--f-head); margin-bottom: 3px; }
.doc span { font-size: 14px; color: var(--muted); }

.pnav { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.pnav a { padding: clamp(28px, 3.4vw, 56px) var(--gutter); display: flex; flex-direction: column; gap: 12px; transition: background-color .3s; color: var(--ink); }
.pnav a + a { border-left: 1px solid var(--line); text-align: right; align-items: flex-end; }
.pnav a:hover { background: var(--bg-soft); }
.pnav small { font: 600 11px/1 var(--f-head); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.pnav b { font: 600 clamp(18px, 1.8vw, 26px)/1.25 var(--f-head); max-width: 22em; }

/* Услуги: каталог. Композиция разворота буклета: заголовок и текст сверху, линейная иллюстрация во всю ширину снизу */
.srow { position: relative; display: grid; grid-template-columns: subgrid; grid-column: 1 / -1; align-items: start; padding-top: clamp(40px, 5vw, 72px); border-top: 1px solid var(--line); color: var(--ink); overflow: hidden; }
.srow:last-child { border-bottom: 1px solid var(--line); }
.srow .num { grid-column: 1 / span 1; font-size: clamp(40px, 4.4vw, 72px); line-height: .9; color: var(--orange); }
.srow__text { grid-column: 2 / span 6; }
.srow__text h2 { margin-bottom: 20px; transition: color .25s; }
.srow:hover h2 { color: var(--accent-text); }
.srow__text p { color: var(--text); max-width: 36em; }
.srow__side { grid-column: 9 / -1; display: flex; flex-direction: column; align-items: flex-start; gap: 28px; padding-top: 10px; }
.srow__side .tags { margin-top: 0; }
.srow__art { grid-column: 1 / -1; color: var(--art); margin-top: clamp(20px, 3vw, 44px); opacity: .9; transition: color .4s; }
.srow:hover .srow__art { color: var(--orange); }
.srow__art .art { max-height: 340px; }

/* Направление: детальная */
.scope { grid-column: 4 / -1; display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(16px, 2vw, 32px); }
.scope li { padding: 20px 0 20px 28px; border-top: 1px solid var(--line); position: relative; color: var(--ink); font-weight: 500; }
.scope li::before { content: ''; position: absolute; left: 0; top: 31px; width: 14px; height: 2px; background: var(--orange); }
.art-band { color: rgba(255, 164, 0, .9); }
.other-dirs { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line-dark); }
.other-dirs a { padding: 28px 24px 32px 0; color: #fff; transition: color .2s; }
.other-dirs a + a { padding-left: 24px; border-left: 1px solid var(--line-dark); }
.other-dirs .num { display: block; font-size: 24px; color: var(--orange); margin-bottom: 40px; }
.other-dirs b { font: 600 19px/1.25 var(--f-head); }
.other-dirs a:hover { color: var(--orange); }

/* О компании */
.about-media { position: relative; height: clamp(360px, 46vw, 720px); overflow: hidden; background: var(--navy-900); }
.about-media video, .about-media img { position: absolute; inset: -10% 0; width: 100%; height: 120%; object-fit: cover; }
.adv { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.adv div { padding: 32px clamp(16px, 2.4vw, 40px) 8px 0; }
.adv div + div { padding-left: clamp(16px, 2.4vw, 40px); border-left: 1px solid var(--line); }
.adv .num { font-size: 34px; color: var(--orange); display: block; margin-bottom: clamp(32px, 4vw, 64px); }
.adv h3 { font-size: 22px; font-weight: 600; margin-bottom: 14px; }
.adv p { font-size: 16px; color: var(--muted); }
.mission { position: relative; overflow: hidden; isolation: isolate; }
.mission::before { content: ''; position: absolute; z-index: -1; inset: 0; background: url("../img/art/waves.2a64fae15b22.svg") center / cover no-repeat; opacity: .6; }
.mission blockquote { grid-column: 3 / span 9; font: 500 clamp(24px, 2.8vw, 44px)/1.28 var(--f-head); letter-spacing: -.015em; color: #fff; }
.mission .kicker { grid-column: 3 / -1; margin-bottom: 32px; }
.mission__goal { grid-column: 3 / span 6; margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--line-dark); }
.mission__goal b { display: block; font: 600 11px/1 var(--f-head); letter-spacing: .14em; text-transform: uppercase; margin-bottom: 12px; color: var(--orange); }
.timeline { grid-column: 1 / -1; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(128px, 1fr); overflow-x: auto; padding: 5px 0 12px; scrollbar-width: thin; }
.timeline li { position: relative; padding: 30px 9px 0; border-top: 1px solid var(--line); text-align: center; }
.timeline li::before { content: ''; position: absolute; top: -5px; left: calc(50% - 4.5px); width: 9px; height: 9px; background: var(--orange); }
.timeline b { display: block; font: 300 clamp(36px, 3.3vw, 52px)/1 var(--f-num); color: var(--ink); margin-bottom: 14px; }
.timeline span { font-size: 13.5px; line-height: 1.5; color: var(--muted); display: block; max-width: 15em; margin-inline: auto; }
.offices { grid-column: 4 / -1; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.offices li { padding: 24px 16px 4px 0; }
.offices li + li { padding-left: 24px; border-left: 1px solid var(--line); }
.offices b { display: block; font: 600 20px/1.2 var(--f-head); color: var(--ink); }
.offices span { font-size: 14px; color: var(--muted); }

/* Статья */
.article { grid-column: 4 / span 6; }
.article time { font: 600 12px/1 var(--f-head); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.article h1 { font-size: clamp(32px, 3.6vw, 56px); font-weight: 700; line-height: 1.08; letter-spacing: -.02em; margin: 20px 0 28px; }
.article .lead { font-family: var(--f-head); font-weight: 500; color: var(--ink); margin-bottom: 8px; }
.article-cover { grid-column: 2 / span 10; margin-block: clamp(32px, 4vw, 56px); aspect-ratio: 16 / 8; overflow: hidden; }
.article-cover img { width: 100%; height: 100%; object-fit: cover; }
.prose p + p { margin-top: 1.2em; }
.prose h2 { font-size: 26px; font-weight: 600; margin: 1.8em 0 .6em; }
.prose blockquote { margin: 1.8em 0; padding-left: 28px; border-left: 3px solid var(--orange); font: 500 22px/1.45 var(--f-head); color: var(--ink); }

/* Карьера */
.empty { grid-column: 4 / -1; display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(24px, 4vw, 64px); padding: clamp(32px, 4vw, 64px); background: var(--bg-soft); position: relative; overflow: hidden; }
.empty h2 { margin-bottom: 16px; }
.mails a { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 0; border-top: 1px solid var(--line); font: 600 clamp(17px, 1.5vw, 21px)/1.2 var(--f-head); color: var(--ink); transition: color .2s, padding .35s var(--ease); }
.mails a:last-child { border-bottom: 1px solid var(--line); }
.mails a:hover { color: var(--accent-text); padding-left: 10px; }
.demo-note { grid-column: 4 / -1; margin-top: clamp(48px, 5vw, 80px); padding: 14px 18px; border: 1px dashed var(--muted); font-size: 13.5px; color: var(--muted); }
.vacs { grid-column: 4 / -1; margin-top: 20px; }
.vac { display: grid; grid-template-columns: 1fr 200px 160px 28px; gap: 20px; align-items: center; padding: 26px 0; border-top: 1px solid var(--line); color: var(--ink); transition: padding .35s var(--ease); }
.vac:last-child { border-bottom: 1px solid var(--line); }
.vac:hover { padding-left: 10px; }
.vac b { font: 600 21px/1.25 var(--f-head); }
.vac span { font-size: 15px; color: var(--muted); }

/* Обращение акционера (О компании) */
.addr { overflow-x: clip; }
.addr .grid { align-items: center; }
.addr__text { grid-column: 1 / span 7; }
.addr__text h2 { margin: 22px 0 32px; }
.addr__body p { font-size: clamp(17px, 1.3vw, 19px); line-height: 1.7; color: var(--text); max-width: 38em; }
.addr__body p + p { margin-top: 1em; }
.addr__body p:first-child { font: 500 clamp(19px, 1.6vw, 24px)/1.5 var(--f-head); color: var(--ink); letter-spacing: -.005em; }
.addr__sign { margin-top: 36px; padding-left: 18px; border-left: 3px solid var(--orange); }
.addr__sign b { display: block; font: 600 18px/1.3 var(--f-head); color: var(--ink); }
.addr__sign span { font-size: 14.5px; color: var(--muted); }
.addr__note { margin-top: 28px; display: inline-block; padding: 8px 12px; border: 1px dashed var(--muted); font-size: 13px; color: var(--muted); }
.addr__photo { grid-column: 9 / -1; position: relative; margin: 0; }
.addr__circle { position: relative; aspect-ratio: 1; border-radius: 50%; overflow: hidden; background: linear-gradient(160deg, #e3ebf3, #c9d7e5); isolation: isolate; }
[data-theme='dark'] .addr__circle { background: linear-gradient(160deg, #12314f, #0b2741); }
.addr__circle img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; transition: transform 1.2s var(--ease); }
/* Лёгкая фирменная тонировка: тёплый свет сверху, синева снизу */
.addr__circle::after { content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(200deg, rgba(255, 164, 0, .14), rgba(0, 58, 112, 0) 45%, rgba(0, 58, 112, .28)); transition: opacity .8s; }
.addr__photo:hover .addr__circle img { transform: scale(1.05); }
.addr__photo:hover .addr__circle::after { opacity: .5; }
/* Кольцо и точка на орбите */
.addr__ring { position: absolute; inset: -7%; width: 114%; height: 114%; overflow: visible; pointer-events: none; transform: rotate(-90deg); }
.addr__ring circle { fill: none; stroke: var(--line-strong, #c3cdd8); stroke-width: .25; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 2.4s cubic-bezier(.4, 0, .2, 1) .5s; }
.addr__orbit { position: absolute; inset: -7%; z-index: 2; pointer-events: none; transform: rotate(35deg); }
.addr__dot { position: absolute; top: 50%; left: 0; width: 7.5%; aspect-ratio: 1; margin: -3.75% 0 0 -3.75%; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 6px rgba(255, 164, 0, .18); opacity: 0; transform: scale(0); transition: opacity .5s 1.6s, transform .6s var(--ease) 1.6s; }
/* Появление: портрет раскрывается кругом из центра, камера чуть «отъезжает» */
.rv-photo .addr__circle { clip-path: circle(0% at 50% 50%); transition: clip-path 1.4s cubic-bezier(.7, 0, .2, 1); }
.rv-photo .addr__circle img { transform: scale(1.18); transition: transform 2s var(--ease); }
.rv-photo.is-in .addr__circle { clip-path: circle(50% at 50% 50%); }
.rv-photo.is-in .addr__circle img { transform: scale(1); }
.rv-photo.is-in:hover .addr__circle img { transform: scale(1.05); transition-duration: 1.2s; }
.rv-photo.is-in .addr__ring circle { stroke-dashoffset: 0; }
.rv-photo.is-in .addr__dot { opacity: 1; transform: scale(1); }

/* Вакансия */
.vmeta { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 0 clamp(28px, 4vw, 64px); margin-top: 12px; padding-top: 24px; border-top: 1px solid var(--line); }
.vmeta dt { font: 600 11px/1 var(--f-head); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.vmeta dd { font: 600 16px/1.3 var(--f-head); color: var(--ink); }
.vbody { grid-column: 1 / span 7; display: grid; gap: clamp(36px, 4vw, 64px); }
.vsec .kicker { margin-bottom: 20px; }
.vsec .lead { color: var(--ink); }
.vsec .scope { grid-column: auto; grid-template-columns: 1fr; }
.vapply { grid-column: 9 / -1; align-self: start; position: sticky; top: calc(var(--header-h) + 32px); padding: clamp(24px, 2.4vw, 36px); background: var(--bg-soft); }
.vapply p { margin: 12px 0 20px; color: var(--text); }
.vapply .hint-sm { margin: 18px 0 0; font-size: 14px; color: var(--muted); }
.vacs--full { grid-column: 1 / -1; margin-top: 0; }

/* Контакты */
.cgrid { grid-column: 1 / -1; display: grid; grid-template-columns: 5fr 7fr; gap: clamp(24px, 4vw, 72px); align-items: stretch; }
.cgrid .map { min-height: 560px; }
.clist div { padding: 22px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 130px 1fr; gap: 16px; align-items: center; }
.clist div:last-child { border-bottom: 1px solid var(--line); }
.clist dt { font: 600 11px/1.2 var(--f-head); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.clist dd { font-size: 18px; line-height: 1.5; color: var(--ink); }
.clist dd a:hover { color: var(--accent-text); }
.clist .big { font: 300 clamp(36px, 3.6vw, 56px)/1 var(--f-num); }

/* Поиск */
.search-ov { position: fixed; inset: 0; z-index: 80; background: rgba(0, 20, 43, .72); opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; backdrop-filter: blur(6px); }
.search-ov.is-open { opacity: 1; visibility: visible; }
.search-ov__panel { background: var(--bg); padding-block: 28px clamp(32px, 4vw, 56px); transform: translateY(-24px); transition: transform .45s var(--ease); max-height: 100vh; overflow: auto; }
.search-ov.is-open .search-ov__panel { transform: none; }
.search-ov__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: clamp(24px, 4vw, 56px); color: var(--ink); }
.sfield { display: flex; align-items: center; gap: 20px; border-bottom: 2px solid var(--ink); padding-bottom: 14px; color: var(--ink); }
.sfield svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; flex: none; }
.sfield input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; color: inherit; font: 500 clamp(24px, 3vw, 46px)/1.2 var(--f-head); letter-spacing: -.015em; }
.sfield input::placeholder { color: var(--muted); opacity: .6; }
.sfield input::-webkit-search-cancel-button { display: none; }
.shints { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 22px; font-size: 14px; color: var(--muted); }
.shints button { padding: 9px 14px; font: 600 13px/1 var(--f-head); color: var(--accent-text); box-shadow: inset 0 0 0 1px var(--line); transition: background-color .2s, color .2s; }
.shints button:hover { background: var(--navy); color: #fff; }
.sres { margin-top: 28px; }
.sres__group { font: 600 11px/1 var(--f-head); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding: 28px 0 12px; }
.sitem { display: grid; grid-template-columns: 120px 1fr auto; gap: 24px; align-items: center; padding: 16px 0; border-top: 1px solid var(--line); color: var(--ink); transition: padding .35s var(--ease); }
.sitem:hover { padding-left: 10px; }
.sitem img, .sitem .ph { width: 120px; height: 80px; object-fit: cover; background: var(--navy) url("../img/art/waves.2a64fae15b22.svg") center / 220% no-repeat; }
.sitem b { display: block; font: 600 19px/1.3 var(--f-head); }
.sitem span { font-size: 14.5px; color: var(--muted); }
.sitem mark { background: rgba(255, 164, 0, .35); color: inherit; padding: 0 2px; }
.sitem .arrow { color: var(--accent-text); }
.sres__total { margin-top: 18px; color: var(--muted); font-size: 15px; }
.sres__total b { color: var(--ink); }

/* 404 */
.nf { position: relative; min-height: calc(100vh - 0px); display: flex; flex-direction: column; justify-content: center; background: var(--navy); color: var(--on-dark-muted); overflow: hidden; padding-top: var(--header-h); }
.nf__code { font: 300 clamp(160px, 26vw, 460px)/.8 var(--f-num); color: #fff; letter-spacing: -.02em; }
.nf__code em { font-style: normal; color: var(--orange); }
.nf h1 { color: #fff; margin: 28px 0 16px; }
.nf p { max-width: 30em; margin-bottom: 36px; }
.nf__art { position: absolute; right: -4%; bottom: 0; width: 64%; color: rgba(255, 164, 0, .8); pointer-events: none; }

/* Светлый вариант блока ценностей и пагинация */
.values--light::before { display: none; }
.values--light .value { border-color: var(--line); }
.values--light .value h3 { color: var(--ink); }
.values--light .value p { color: var(--text); }
.pager { grid-column: 1 / -1; display: flex; align-items: center; gap: 4px; margin-top: clamp(48px, 5vw, 80px); padding-top: 28px; border-top: 1px solid var(--line); }
.pager a { min-width: 48px; height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 12px; padding: 0 14px; font: 400 20px/1 var(--f-num); letter-spacing: .06em; color: var(--muted); cursor: pointer; transition: color .2s, background-color .2s; }
.pager a:hover { color: var(--ink); }
.pager a.is-active { background: var(--navy); color: #fff; }
.pager__next { margin-left: auto; font: 700 14px/1 var(--f-head) !important; letter-spacing: 0 !important; color: var(--accent-text) !important; }

/* ───────── 18. Лайтбокс ───────── */
.lb { position: fixed; inset: 0; z-index: 90; background: rgba(0, 14, 30, .96); color: #fff; display: grid; grid-template-rows: auto 1fr auto; opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
.lb.is-open { opacity: 1; visibility: visible; }
.lb__bar { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; font: 400 20px/1 var(--f-num); letter-spacing: .08em; }
.lb__bar div { display: flex; gap: 4px; }
.lb__bar span b { color: var(--orange); font-weight: 400; }
.lb__stage { position: relative; overflow: hidden; display: grid; place-items: center; }
.lb__stage img { max-width: 92vw; max-height: 100%; object-fit: contain; transition: transform .45s var(--ease); cursor: zoom-in; user-select: none; }
.lb__stage img.is-zoom { cursor: zoom-out; transition: transform .15s linear; }
.lb__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 56px; height: 56px; }
.lb__nav--prev { left: 20px; } .lb__nav--next { right: 20px; }
.lb__nav--prev svg { transform: rotate(180deg); }
.lb .icon-btn { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .28); background: rgba(0, 14, 30, .5); }
.lb .icon-btn:hover { background: var(--orange); box-shadow: none; }
.lb__thumbs { display: flex; gap: 8px; justify-content: center; padding: 14px 20px 20px; overflow-x: auto; }
.lb__thumbs button { flex: none; width: 84px; height: 56px; opacity: .45; transition: opacity .2s, box-shadow .2s; }
.lb__thumbs button.is-on { opacity: 1; box-shadow: 0 0 0 2px var(--orange); }
.lb__thumbs img { width: 100%; height: 100%; object-fit: cover; }

/* ───────── 19. Появление блоков ───────── */
.rv { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.rv.is-in { opacity: 1; transform: none; }
.rv-img img { clip-path: inset(0 0 100% 0); transition: clip-path 1.1s var(--ease) var(--d, 0s), transform 1s var(--ease); }
.rv-img.is-in img { clip-path: inset(0); }

/* ───────── 21. Адаптив (ориентир для вёрстки, отдельно не согласуется) ───────── */
@media (max-width: 1180px) {
  .nav { gap: 18px; }
  .drop { width: 520px; }
  .passport { grid-template-columns: repeat(3, 1fr); }
  .passport div:nth-child(4) { padding-left: 0; border-left: 0; }
  .passport div:nth-child(n + 4) { border-top: 1px solid rgba(255, 255, 255, .25); }
  .value { grid-template-columns: 56px 1fr; }
  .value p { grid-column: 2; }
  .logos__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  :root { --header-h: 68px; }
  body { font-size: 16px; }
  .nav, .lang { display: none; }
  .burger { display: grid; }
  .header.is-menu { background: var(--navy-900); color: #fff; box-shadow: none; }
  .header.is-menu .logo { color: #fff; }
  .header.is-menu .mnav { display: flex; }
  .mnav { position: fixed; inset: var(--header-h) 0 0; flex-direction: column; padding: 12px var(--gutter) 40px; background: var(--navy-900); color: #fff; overflow: auto; }
  .mnav > a { display: flex; align-items: baseline; gap: 18px; padding: 20px 0; border-bottom: 1px solid var(--line-dark); font: 600 26px/1.2 var(--f-head); }
  .mnav .num { font-size: 18px; color: var(--orange); }
  .mnav p { display: flex; justify-content: space-between; margin-top: auto; padding-top: 32px; font: 300 30px/1 var(--f-num); }
  .mnav p span { font: 700 13px/2.4 var(--f-head); letter-spacing: .08em; }
  .logo__svg { width: 132px; }
  .intro__top .kicker, .intro__top .statement, .intro__about, .intro__facts, .shead h2, .shead__side, .dirs, .dirs-panel, .values__head, .values__list,
  .news-main, .news-side, .story__label, .story__body, .story__body--wide, .story__aside, .works, .docs, .scope, .srow .num, .srow__text, .srow__side, .srow__art, .phero__grid h1, .phero__grid .lead,
  .mission blockquote, .mission .kicker, .mission__goal, .offices, .article, .article-cover, .empty, .vacs, .demo-note, .vbody, .vapply, .addr__text, .addr__photo { grid-column: 1 / -1; }
  .addr__photo { max-width: 360px; margin-top: 40px; }
  .vapply { position: static; }
  .shead__side { justify-self: start; text-align: left; }
  .dirs-panel { display: none; }
  .dir .arrow { opacity: 1; transform: none; }
  .values__head { position: static; margin-bottom: 32px; }
  .stats__grid, .specs { grid-template-columns: 1fr 1fr; }
  .pcard--feature .pcard__media { aspect-ratio: 4 / 5; min-height: 0; }
  .pcard--feature h3 { max-width: none; }
  .stat:nth-child(3), .spec:nth-child(3) { padding-left: 0; border-left: 0; }
  .stat:nth-child(n + 3), .spec:nth-child(n + 3) { border-top: 1px solid var(--line-dark); }
  .spec:nth-child(n + 3) { border-top-color: var(--line); }
  .pgrid > .pcard, .pgrid > .pcard--half { grid-column: span 6; }
  .pcard--feature .pcard__body { flex-direction: column; align-items: flex-start; }
  .ngrid { grid-template-columns: 1fr 1fr; }
  .news-side { margin-top: 40px; }
  .logos { grid-template-columns: 1fr; row-gap: 20px; }
  .logos__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .contact__in, .cgrid, .empty { grid-template-columns: 1fr; }
  .contact__info { padding-right: var(--gutter); }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .works, .scope, .adv, .offices, .other-dirs { grid-template-columns: 1fr; }
  .adv div + div, .offices li + li, .other-dirs a + a { padding-left: 0; border-left: 0; }
  .gallery button, .gallery button:nth-child(n) { grid-column: span 6; grid-row: auto; aspect-ratio: 4 / 3; }
  .vac { grid-template-columns: 1fr 28px; }
  .vac span { grid-column: 1; }
  .pnav { grid-template-columns: 1fr; }
  .pnav a + a { border-left: 0; border-top: 1px solid var(--line); }
  .srow__art { margin-top: 32px; }
  .hero__ctrl .hero__scroll { display: none; }
  .review b { display: none; }
}
@media (max-width: 560px) {
  .pgrid > .pcard, .pgrid > .pcard--half, .ngrid { grid-column: 1 / -1; grid-template-columns: 1fr; }
  .stats__grid, .specs, .footer__top { grid-template-columns: 1fr; }
  .stat + .stat, .spec + .spec { padding-left: 0; border-left: 0; border-top: 1px solid var(--line-dark); }
  .spec + .spec { border-top-color: var(--line); }
  .ncard--row { grid-template-columns: 1fr; }
  .clist div, .contact__rows div { grid-template-columns: 1fr; gap: 4px; }
  .passport { grid-template-columns: 1fr 1fr; }
  .pcard__specs { flex-wrap: wrap; }
  .hero__caption span { display: none; }
  .sitem { grid-template-columns: 80px 1fr; }
  .sitem img, .sitem .ph { width: 80px; height: 56px; }
  .sitem .arrow { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .rv, .rv-img img { opacity: 1; transform: none; clip-path: none; }
  .rv-photo .addr__circle { clip-path: none; } .rv-photo .addr__circle img { transform: none; } .addr__ring circle { stroke-dashoffset: 0; } .addr__dot { opacity: 1; transform: none; } .addr__orbit { animation: none; }
  .art path { stroke-dashoffset: 0; }
  .statement .w { opacity: 1; }
}

/* ───────── 22. Дополнения рабочей версии ───────── */
.prose a { color: var(--accent-text); text-decoration: underline; text-underline-offset: 4px; }
.prose ul, .prose ol { margin: 1em 0; padding-left: 1.3em; list-style: revert; }
.prose li + li { margin-top: .4em; }
.pager a[aria-disabled="true"] { opacity: .35; pointer-events: none; }
.preview-bar { position: fixed; z-index: 120; left: 50%; bottom: 14px; transform: translateX(-50%); padding: 10px 18px; border-radius: 999px; background: var(--orange); color: var(--navy-900); font: 700 12px/1 var(--f-head); letter-spacing: .04em; box-shadow: 0 12px 30px -10px rgba(0,0,0,.4); }
.preview-bar a { text-decoration: underline; margin-left: 10px; }
.sres__empty { margin-top: 18px; color: var(--muted); }
