/* ООО РТМ «Трансформатор» – site styles */

/* ---------- Fonts (self-hosted: foreign CDNs are unreliable from Russia) ---------- */
@font-face {
  font-family: "Manrope"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url(../fonts/manrope-cyrillic.woff2) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Manrope"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url(../fonts/manrope-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Roboto Condensed"; font-style: normal; font-weight: 600 700; font-display: swap;
  src: url(../fonts/roboto-condensed-cyrillic.woff2) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Roboto Condensed"; font-style: normal; font-weight: 600 700; font-display: swap;
  src: url(../fonts/roboto-condensed-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "JetBrains Mono"; font-style: normal; font-weight: 400 500; font-display: swap;
  src: url(../fonts/jetbrains-mono-cyrillic.woff2) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "JetBrains Mono"; font-style: normal; font-weight: 400 500; font-display: swap;
  src: url(../fonts/jetbrains-mono-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Tokens ---------- */
:root {
  --navy-950: #070d18;
  --navy-900: #0b1424;
  --navy-800: #111d33;
  --navy-700: #1a2842;
  --paper: #f3f5f8;
  --ink: #0e1a2c;
  --text: #26344a;
  --muted: #566376;
  --muted-dark: #9aa7ba;
  --line: #dde3ea;
  --line-strong: #c6cfda;
  --line-dark: rgba(255, 255, 255, .12);
  --cyan: #4cb4dc;          /* logo blue, for use on dark */
  --cyan-hover: #72c7e8;
  --cyan-700: #16729b;      /* same hue, AA contrast on light backgrounds */
  --phase-a: #f2c230;       /* phase colours A / B / C, as on the bushings */
  --phase-b: #3fae6a;
  --phase-c: #e0483e;

  --font-sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-cond: "Roboto Condensed", "Arial Narrow", var(--font-sans);
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --container: 1280px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 16px;
  --header-h: 76px;
  --row-h: 150px;           /* justified gallery row height */
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --grid-lines:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
}
@media (min-width: 700px) { :root { --row-h: 210px; } }
@media (min-width: 1200px) { :root { --row-h: 240px; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 800; line-height: 1.05; letter-spacing: -0.025em; text-wrap: balance; overflow-wrap: break-word; hyphens: auto; -webkit-hyphens: auto; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
dl, dd { margin: 0; }
blockquote, figure { margin: 0; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--cyan); color: var(--navy-950); }

.menu-open body, .lb-open body { overflow: hidden; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.skip-link {
  position: fixed; top: 12px; left: 12px; z-index: 200;
  padding: 10px 16px; border-radius: 8px;
  background: #fff; color: var(--ink); font-weight: 700; text-decoration: none;
  transform: translateY(-160%); transition: transform .2s;
}
.skip-link:focus { transform: none; }

.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.mono {
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
}

/* ---------- Sections ---------- */
.section { padding-block: clamp(72px, 9vw, 130px); position: relative; }
.section--paper { background: var(--paper); }
.section--line { border-top: 1px solid var(--line); }
.section--tight { padding-top: clamp(40px, 5vw, 64px); }
.section-label {
  display: inline-flex; align-items: center; gap: 12px;
  color: var(--cyan-700);
}
.section-label::before { content: ""; width: 32px; height: 1px; background: currentColor; }
.section-head { display: grid; gap: 20px; max-width: 860px; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head h2 { font-size: clamp(32px, 4.2vw, 58px); }
.section-lead { font-size: clamp(16.5px, 1.3vw, 19px); color: var(--muted); max-width: 660px; }
/* dark sections */
:is(.services, .section--photos, .vostochny, .vostochny-band, .contact) { color: #fff; }
:is(.services, .section--photos, .vostochny, .vostochny-band, .contact, .page-hero, .hero) .section-label { color: var(--cyan); }
:is(.services, .section--photos, .vostochny, .vostochny-band, .contact) .section-lead { color: var(--muted-dark); }
.section--photos { background: var(--navy-950); }
.section--photos::before, .services::before, .vostochny::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: var(--grid-lines); background-size: 64px 64px;
  mask-image: linear-gradient(180deg, #000, transparent 60%);
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 60%);
}
.section > .container { position: relative; }

.text-link {
  display: inline-flex; align-items: center; gap: 8px; width: fit-content;
  color: var(--cyan-700); font-weight: 700; font-size: 16px; text-decoration: none;
}
.text-link svg { width: 16px; height: 16px; transition: translate .4s var(--ease-out); }
.text-link:hover svg { translate: 4px 0; }
.text-link--light { color: var(--cyan); }

/* ---------- Buttons ---------- */
.btn {
  --h: 56px;
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--h); padding: 0 28px; border-radius: 999px;
  font-weight: 700; font-size: 16px; line-height: 1; text-decoration: none; white-space: nowrap;
  transition: background-color .3s, color .3s, box-shadow .3s, translate .4s var(--ease-out);
}
.btn svg { width: 18px; height: 18px; transition: translate .4s var(--ease-out); }
.btn:hover svg { translate: 4px 0; }
.btn--primary { background: var(--cyan); color: var(--navy-950); }
.btn--primary:hover { background: var(--cyan-hover); translate: 0 -2px; box-shadow: 0 14px 30px -12px rgba(76, 180, 220, .65); }
.btn--primary::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, .5) 50%, transparent 65%);
  translate: -110% 0; transition: translate .9s var(--ease-out);
}
.btn--primary:hover::after { translate: 110% 0; }
.btn--ghost { color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .38); backdrop-filter: blur(6px); }
.btn--ghost:hover { background: rgba(255, 255, 255, .1); box-shadow: inset 0 0 0 1px #fff; }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: var(--navy-700); translate: 0 -2px; }
:is(.section--photos, .services, .vostochny, .vostochny-band) .btn--dark { background: #fff; color: var(--ink); }
:is(.section--photos, .services, .vostochny, .vostochny-band) .btn--dark:hover { background: var(--cyan-hover); }
.btn--sm { --h: 44px; padding: 0 20px; font-size: 15px; }
.btn--block { width: 100%; }
.btn .mono { font-size: 11px; opacity: .65; letter-spacing: 0; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  color: #fff;
  transition: translate .5s var(--ease-out);
}
.site-header::before {
  content: ""; position: absolute; inset: 0;
  background: rgba(9, 16, 29, .84);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  opacity: 0; transition: opacity .35s;
}
.site-header.is-scrolled::before { opacity: 1; }
.site-header.is-hidden { translate: 0 -100%; }
.header-inner { position: relative; display: flex; align-items: center; gap: 26px; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 12px; margin-right: auto; text-decoration: none; }
.brand img { width: 40px; height: 40px; border-radius: 9px; }
.brand-name {
  font-family: var(--font-cond); font-weight: 700; font-size: 21px;
  line-height: 1; letter-spacing: .01em; text-transform: uppercase; white-space: nowrap;
}
.nav { display: none; gap: 20px; }
.nav a {
  position: relative; padding-block: 6px;
  font-size: 14.5px; font-weight: 600; text-decoration: none; opacity: .82; transition: opacity .2s;
  white-space: nowrap;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: currentColor; scale: 0 1; transform-origin: right; transition: scale .4s var(--ease-out);
}
.nav a:hover, .nav a[aria-current="page"] { opacity: 1; }
.nav a:hover::after, .nav a[aria-current="page"]::after { scale: 1 1; transform-origin: left; }
.nav a[aria-current="page"]::after { background: var(--cyan); }
.header-phone { display: none; font-weight: 700; font-size: 15px; text-decoration: none; white-space: nowrap; }
.header-cta { display: none; }
.burger {
  display: grid; place-content: center; gap: 6px;
  width: 46px; height: 46px; border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3);
}
.burger span { width: 18px; height: 2px; border-radius: 2px; background: currentColor; transition: translate .4s var(--ease-out), rotate .4s var(--ease-out); }
.menu-open .burger span:first-child { translate: 0 4px; rotate: 45deg; }
.menu-open .burger span:last-child { translate: 0 -4px; rotate: -45deg; }

@media (min-width: 1200px) {
  .nav, .header-cta { display: flex; }
  .burger { display: none; }
}
@media (min-width: 1440px) { .header-phone { display: inline; } }

/* ---------- Mobile menu ---------- */
.mobile-menu {
  position: fixed; inset: 0; z-index: 40;
  display: flex; flex-direction: column; justify-content: space-between; gap: 32px;
  padding: calc(var(--header-h) + 28px) var(--gutter) 36px;
  overflow-y: auto;
  background: var(--navy-950); color: #fff;
  clip-path: circle(0 at calc(100% - var(--gutter) - 23px) 38px);
  visibility: hidden;
  transition: clip-path .7s var(--ease-out), visibility 0s linear .7s;
}
.menu-open .mobile-menu {
  clip-path: circle(150% at calc(100% - var(--gutter) - 23px) 38px);
  visibility: visible;
  transition: clip-path .7s var(--ease-out);
}
.mobile-menu nav a {
  display: block; padding-block: 6px;
  font-size: clamp(28px, 7.4vw, 40px); font-weight: 800; letter-spacing: -0.02em; text-decoration: none;
  opacity: 0; translate: 0 20px; transition: opacity .5s, translate .6s var(--ease-out);
}
.mobile-menu nav a[aria-current="page"] { color: var(--cyan); }
.menu-open .mobile-menu nav a { opacity: 1; translate: 0 0; }
.menu-open .mobile-menu nav a:nth-child(2) { transition-delay: .04s; }
.menu-open .mobile-menu nav a:nth-child(3) { transition-delay: .08s; }
.menu-open .mobile-menu nav a:nth-child(4) { transition-delay: .12s; }
.menu-open .mobile-menu nav a:nth-child(5) { transition-delay: .16s; }
.menu-open .mobile-menu nav a:nth-child(6) { transition-delay: .2s; }
.menu-open .mobile-menu nav a:nth-child(7) { transition-delay: .24s; }
.mobile-menu__contacts { display: grid; gap: 10px; color: var(--muted-dark); }
.mobile-menu__contacts a { color: #fff; font-size: 22px; font-weight: 700; text-decoration: none; }

/* ---------- Hero (home): headline + photo mosaic ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  padding: calc(var(--header-h) + clamp(20px, 3vw, 40px)) 0 clamp(48px, 6vw, 80px);
  background: var(--navy-950); color: #fff;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background-image: var(--grid-lines); background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 20% 30%, #000, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 20% 30%, #000, transparent 70%);
}
.hero-grid { display: grid; gap: clamp(32px, 5vw, 56px); align-items: center; }
.hero-copy { display: grid; gap: 24px; align-content: center; }
.hero-eyebrow { color: rgba(255, 255, 255, .78); display: flex; align-items: center; gap: 12px; }
.hero-eyebrow::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 4px rgba(76, 180, 220, .22); }
.hero-title { font-size: clamp(36px, 4.1vw, 58px); line-height: 1; letter-spacing: -0.035em; }
@media (max-width: 1023px) { .hero-title { font-size: clamp(36px, 8.4vw, 64px); } }
.hero-title em { font-style: normal; color: var(--cyan); }
.line { display: block; overflow: hidden; padding-bottom: .07em; margin-bottom: -.07em; }
/* Entrance animations run only under .anim (set in <head> when the page loads visible, without
   reduced motion). Content must never depend on an animation: a page loaded in a background tab
   has its animation clock paused, which would leave it invisible. */
.line > span { display: inline-block; }
.anim .line > span { animation: line-up 1.2s var(--ease-out) both; animation-delay: calc(.2s + var(--i, 0) * .12s); }
@keyframes line-up { from { translate: 0 105%; } }
.hero-lead { max-width: 560px; font-size: clamp(16.5px, 1.35vw, 19px); color: rgba(255, 255, 255, .82); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.anim .fade-up { animation: fade-up 1.1s var(--ease-out) both; animation-delay: var(--delay, .6s); }
@keyframes fade-up { from { opacity: 0; translate: 0 24px; } }

.hero-facts {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 24px;
  margin-top: 8px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .14);
}
@media (min-width: 640px) { .hero-facts { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.hero-facts dt { font-family: var(--font-cond); font-size: clamp(28px, 2.6vw, 38px); font-weight: 700; line-height: 1; color: #fff; }
.hero-facts dt b { font-weight: 700; margin-right: 4px; }
.hero-facts dd { margin-top: 6px; font-size: 12.5px; line-height: 1.4; color: rgba(255, 255, 255, .62); }

.mosaic {
  display: grid; gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: clamp(130px, 34vw, 230px);
}
.tile--1, .tile--6 { grid-column: span 2; }
@media (min-width: 1024px) {
  .hero-grid { grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); min-height: calc(100svh - var(--header-h) - 110px); }
  .mosaic {
    grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: repeat(3, minmax(0, 1fr));
    grid-auto-rows: auto; height: clamp(520px, calc(100svh - var(--header-h) - 120px), 740px); gap: 10px;
  }
  .tile--1 { grid-column: 1 / 3; grid-row: 1 / 3; }
  .tile--2 { grid-column: 3; grid-row: 1; }
  .tile--3 { grid-column: 3; grid-row: 2; }
  .tile--4 { grid-column: 1; grid-row: 3; }
  .tile--5 { grid-column: 2; grid-row: 3; }
  .tile--6 { grid-column: 3; grid-row: 3; }
}
.tile {
  position: relative; isolation: isolate; overflow: hidden;
  border-radius: 14px; background: var(--navy-800); color: #fff; text-decoration: none;
}
.tile img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: var(--pos, 50% 50%);
  opacity: 0; scale: 1.08;
  transition: opacity 1.4s ease, scale 7s linear;
}
.tile img.is-active { opacity: 1; scale: 1; }
.tile::after {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(180deg, rgba(7, 13, 24, 0) 38%, rgba(7, 13, 24, .6) 66%, rgba(7, 13, 24, .94));
  transition: opacity .4s;
}
.tile-cap {
  position: absolute; left: 14px; right: 14px; bottom: 12px; z-index: 1;
  display: grid; gap: 4px; font-size: 13px; font-weight: 600; line-height: 1.3;
  text-shadow: 0 1px 8px rgba(7, 13, 24, .6);
}
.tile-cap .mono { justify-self: start; padding: 3px 7px; border-radius: 4px; background: rgba(7, 13, 24, .55); color: var(--cyan); font-size: 10.5px; text-shadow: none; }
.tile-cap [data-tile-cap] { transition: opacity .3s, translate .3s var(--ease-out); }
.tile-cap .is-swapping { opacity: 0; translate: 0 4px; }
.tile:hover img.is-active { scale: 1.04; transition: opacity 1.4s ease, scale 1.2s var(--ease-out); }
@media (max-width: 599px) { .tile-cap [data-tile-cap] { display: none; } }

.phase-waves {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: -1;
  width: 100%; height: 130px; opacity: .45; pointer-events: none;
  mask-image: linear-gradient(90deg, #000, transparent 55%);
  -webkit-mask-image: linear-gradient(90deg, #000, transparent 55%);
}
.phase-waves path { fill: none; stroke-width: 1.6; vector-effect: non-scaling-stroke; animation: wave-shift 7s linear infinite; }
.phase-waves path:nth-child(1) { stroke: var(--phase-a); }
.phase-waves path:nth-child(2) { stroke: var(--phase-b); }
.phase-waves path:nth-child(3) { stroke: var(--phase-c); }
@keyframes wave-shift { to { transform: translateX(-400px); } }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  position: relative; isolation: isolate; overflow: hidden;
  padding: calc(var(--header-h) + clamp(28px, 4vw, 60px)) 0 clamp(48px, 6vw, 84px);
  background: var(--navy-900); color: #fff;
}
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: var(--grid-lines); background-size: 64px 64px;
  mask-image: linear-gradient(180deg, #000, transparent 85%);
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 85%);
}
.page-hero::after {
  content: ""; position: absolute; right: -15%; top: -40%; width: 60vw; height: 60vw; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, rgba(76, 180, 220, .12), transparent);
}
.page-hero-grid { display: grid; gap: 36px; align-items: center; }
.page-hero-copy { min-width: 0; }
@media (min-width: 1024px) {
  .page-hero--split .page-hero-grid { grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(40px, 5vw, 72px); }
}
.page-hero h1 { margin-top: 18px; font-size: clamp(32px, 4.4vw, 60px); max-width: 22ch; }
.page-hero--split h1 { font-size: clamp(26px, 3.2vw, 46px); }
.page-lead { margin-top: 20px; max-width: 62ch; color: var(--muted-dark); font-size: clamp(16px, 1.25vw, 18.5px); }
.page-hero .hero-actions { margin-top: 28px; }
.hero-tag { margin-top: 24px; }
.breadcrumbs { margin-bottom: 26px; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 13.5px; color: rgba(255, 255, 255, .6); }
.breadcrumbs li { display: flex; gap: 10px; min-width: 0; }
.breadcrumbs li + li::before { content: "/"; opacity: .45; }
.breadcrumbs li[aria-current] { color: rgba(255, 255, 255, .88); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 46ch; }
.breadcrumbs a { text-decoration: none; transition: color .2s; }
.breadcrumbs a:hover { color: #fff; }
.page-hero-media a { position: relative; display: block; overflow: hidden; aspect-ratio: 4 / 3; border-radius: var(--radius); background: var(--navy-800); }
.page-hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 50%); transition: scale 1s var(--ease-out); }
.page-hero-media a:hover img { scale: 1.04; }
.page-hero-media figcaption { margin-top: 10px; font-size: 11px; color: var(--muted-dark); letter-spacing: .04em; }

/* ---------- Nameplate ("шильдик") ---------- */
.plate {
  position: relative; display: grid; margin-top: 28px; padding: 8px 20px;
  border: 1px solid rgba(255, 255, 255, .2); border-radius: 10px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .02));
  max-width: 640px;
}
.plate::before, .plate::after {
  content: ""; position: absolute; top: 9px; width: 5px; height: 5px; border-radius: 50%;
  background: rgba(255, 255, 255, .32);
}
.plate::before { left: 8px; }
.plate::after { right: 8px; }
.plate > div { display: grid; grid-template-columns: minmax(104px, .38fr) 1fr; gap: 14px; padding: 11px 0; border-bottom: 1px dashed rgba(255, 255, 255, .14); }
.plate > div:last-child { border-bottom: 0; }
.plate dt { padding-top: 3px; font-size: 10.5px; color: var(--cyan); }
.plate dd { font-weight: 600; font-size: 15px; line-height: 1.4; hyphens: auto; -webkit-hyphens: auto; }
.plate--card { margin-top: 2px; padding: 2px 14px; border-color: var(--line); background: #f7f9fb; max-width: none; }
.plate--card::before, .plate--card::after { background: var(--line-strong); top: 7px; width: 4px; height: 4px; }
.plate--card > div { grid-template-columns: 92px 1fr; gap: 10px; padding: 8px 0; border-color: var(--line); }
.plate--card dt { color: var(--cyan-700); font-size: 10.5px; }
.plate--card dd { font-size: 13.5px; }

/* ---------- Intro / stats ---------- */
.intro { background: var(--paper); }
.intro-grid { display: grid; gap: clamp(36px, 5vw, 64px); }
.statement { font-size: clamp(26px, 3.2vw, 46px); font-weight: 700; line-height: 1.16; letter-spacing: -0.03em; max-width: 28ch; }
.statement .w { opacity: .16; transition: opacity .35s; }
.statement .w.is-lit { opacity: 1; }
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 20px; padding-top: 36px; border-top: 1px solid var(--line-strong); }
@media (min-width: 1024px) { .stats { grid-template-columns: repeat(4, 1fr); gap: 28px; } }
.stat-value {
  display: flex; align-items: baseline; gap: 8px;
  font-family: var(--font-cond); font-weight: 700; font-size: clamp(48px, 6.6vw, 104px);
  line-height: .9; letter-spacing: -0.01em; font-variant-numeric: tabular-nums;
}
.stat-unit { font-family: var(--font-sans); font-size: clamp(18px, 1.6vw, 22px); font-weight: 800; color: var(--cyan-700); letter-spacing: 0; }
.stat-text { margin-top: 14px; max-width: 30ch; color: var(--muted); font-size: 15px; }
.clients { padding-top: 32px; border-top: 1px solid var(--line-strong); }
.clients-label { color: var(--muted); margin-bottom: 16px; }
.clients-list { display: flex; flex-wrap: wrap; gap: 10px; }
.clients-list li { padding: 9px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-weight: 700; font-size: 15px; }

/* ---------- Service cards ---------- */
.services { background: var(--navy-900); }
.services-grid { position: relative; display: grid; gap: 14px; }
@media (min-width: 720px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .services-grid { grid-template-columns: repeat(3, 1fr); } }
.service-card {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; align-items: flex-end;
  min-height: 400px; border-radius: var(--radius);
  background: var(--navy-800);
}
@media (min-width: 1024px) { .service-card { min-height: 430px; } }
.service-card img {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 50%);
  scale: 1.04; transition: scale 1.4s var(--ease-out);
}
.service-card:hover img { scale: 1.12; }
.service-card::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(7, 13, 24, .35) 0%, rgba(7, 13, 24, 0) 26%, rgba(7, 13, 24, .55) 52%, rgba(7, 13, 24, .95) 100%);
}
.service-card__top {
  position: absolute; top: 20px; left: 22px; right: 20px;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.tag {
  display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border-radius: 999px;
  background: rgba(7, 13, 24, .5); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, .22); color: #fff;
  text-transform: none; letter-spacing: .02em;   /* keeps "кВ" lowercase */
}
.tag--num { width: 30px; padding: 0; justify-content: center; }
.service-card__body { display: grid; gap: 10px; padding: 24px 24px 26px; }
.service-card h3 { font-size: clamp(22px, 1.9vw, 27px); }
.service-card p { max-width: 46ch; color: rgba(255, 255, 255, .8); font-size: 15px; line-height: 1.55; }
.card-link {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 4px; width: fit-content;
  color: var(--cyan); font-weight: 700; font-size: 15px; text-decoration: none;
}
.service-card .card-link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card-link svg { width: 16px; height: 16px; transition: translate .4s var(--ease-out); }
:is(.service-card, .pcard-link):hover .card-link svg { translate: 4px 0; }

/* ---------- Project cards ---------- */
.works { background: var(--paper); }
.works-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 28px; margin-bottom: clamp(32px, 4vw, 52px); }
.works-head .section-head { margin-bottom: 0; }
.pcards { display: grid; gap: 18px; }
@media (min-width: 640px) { .pcards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .pcards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.pcard.is-hidden { display: none; }
.pcard.is-shown { animation: pop-in .6s var(--ease-out) both; animation-delay: var(--d, 0s); }
.pcard-link {
  display: flex; flex-direction: column; height: 100%;
  border-radius: var(--radius); overflow: hidden; background: #fff; border: 1px solid var(--line);
  color: var(--ink); text-decoration: none;
  transition: translate .5s var(--ease-out), box-shadow .5s var(--ease-out), border-color .3s;
}
.pcard-link:hover { translate: 0 -4px; border-color: var(--line-strong); box-shadow: 0 26px 50px -30px rgba(14, 26, 44, .5); }
.pcard-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--navy-800); }
.pcard-media img { width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 50%); transition: scale 1s var(--ease-out); }
.pcard-link:hover .pcard-media img { scale: 1.05; }
.pcard-count {
  position: absolute; top: 12px; left: 12px; padding: 6px 10px; border-radius: 999px;
  background: rgba(7, 13, 24, .66); color: #fff; font-size: 10.5px;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.pcard-thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px 4px 0; }
.pcard-thumbs img { width: 100%; height: 64px; object-fit: cover; border-radius: 6px; background: var(--paper); }
.pcard-body { flex: 1; display: grid; gap: 10px; align-content: start; padding: 16px 18px 20px; }
.pcard-kicker { color: var(--cyan-700); font-size: 10.5px; }
.pcard h3 { font-size: clamp(19px, 1.55vw, 22px); line-height: 1.2; letter-spacing: -0.015em; }
.pcard .card-link { color: var(--cyan-700); margin-top: 2px; }
@keyframes pop-in { from { opacity: 0; translate: 0 18px; scale: .98; } }

.filter-bar { margin-bottom: 28px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter {
  display: inline-flex; align-items: center; gap: 8px;
  height: 42px; padding: 0 16px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: #fff; color: var(--ink);
  font-size: 14.5px; font-weight: 700;
  transition: background .25s, color .25s, border-color .25s;
}
.filter:hover { border-color: var(--ink); }
.filter[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.filter .mono { font-size: 11px; opacity: .6; letter-spacing: 0; }
.section--photos .filter { background: transparent; border-color: rgba(255, 255, 255, .24); color: #fff; }
.section--photos .filter:hover { border-color: #fff; }
.section--photos .filter[aria-pressed="true"] { background: #fff; border-color: #fff; color: var(--ink); }
.jg-wrap > .filters { margin-bottom: 24px; }

/* ---------- Home: Восточный полигон band ---------- */
.vostochny-band { background: var(--navy-900); overflow: hidden; }
.vostochny-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 1024px) { .vostochny-grid { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 64px; } }
.vostochny-grid .section-head { margin-bottom: 28px; }
.strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.strip-item { display: block; overflow: hidden; aspect-ratio: 3 / 4; border-radius: 10px; background: var(--navy-800); }
.strip-item img { width: 100%; height: 100%; object-fit: cover; transition: scale 1s var(--ease-out); }
.strip-item:hover img { scale: 1.06; }
@media (min-width: 1024px) { .strip-item:nth-child(even) { translate: 0 28px; } .strip { padding-bottom: 28px; } }

/* ---------- Photo marquee ---------- */
.photo-marquee { overflow: hidden; padding: 52px 0 60px; background: var(--navy-950); color: #fff; border-block: 1px solid rgba(255, 255, 255, .07); }
.pm-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; margin-bottom: 24px; }
.photo-marquee .section-label { color: var(--cyan); }
.pm-viewport { overflow: hidden; }
.pm-track { display: flex; width: max-content; animation: marquee 110s linear infinite; }
.pm-viewport:hover .pm-track, .pm-viewport:focus-within .pm-track { animation-play-state: paused; }
.pm-group { display: flex; gap: 10px; padding-right: 10px; }
.pm-item { flex: none; display: block; height: clamp(160px, 19vw, 240px); overflow: hidden; border-radius: 10px; background: var(--navy-800); }
.pm-item img { width: auto; height: 100%; transition: scale 1s var(--ease-out), opacity .3s; }
.pm-item:hover img { scale: 1.05; }
@keyframes marquee { to { translate: -50% 0; } }

/* ---------- Process ---------- */
.process { background: #fff; }
.process-grid { display: grid; gap: 24px; }
.process-visual { display: none; }
.process-frame { position: relative; overflow: hidden; aspect-ratio: 1; border-radius: var(--radius); background: var(--navy-900); }
.process-frame img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: var(--pos, 50% 50%);
  opacity: 0; scale: 1.08;
  transition: opacity 1s ease, scale 1.8s var(--ease-out);
}
.process-frame img.is-active { opacity: 1; scale: 1; }
.process-counter {
  position: absolute; left: 18px; bottom: 18px;
  padding: 8px 14px; border-radius: 999px;
  background: rgba(7, 13, 24, .6); color: #fff;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.process-counter b { color: var(--cyan); font-weight: 500; }
.process-steps { position: relative; padding-left: 40px; }
.process-steps::before, .process-steps::after { content: ""; position: absolute; left: 8px; top: 12px; bottom: 12px; width: 2px; border-radius: 2px; }
.process-steps::before { background: var(--line); }
.process-steps::after { background: var(--cyan-700); transform-origin: top; scale: 1 var(--p, .2); transition: scale .8s var(--ease-out); }
.process-step { position: relative; padding-block: 26px; }
.process-step::before {
  content: ""; position: absolute; left: -40px; top: 32px;
  width: 18px; height: 18px; border-radius: 50%;
  background: #fff; border: 2px solid var(--line-strong);
  transition: background .4s, border-color .4s, box-shadow .4s;
}
.process-step.is-active::before { background: var(--cyan-700); border-color: var(--cyan-700); box-shadow: 0 0 0 7px rgba(22, 114, 155, .14); }
.process-step .mono { color: var(--cyan-700); }
.process-step h3 { margin: 10px 0 12px; font-size: clamp(24px, 2.3vw, 32px); }
.process-step p { max-width: 46ch; color: var(--muted); }
.process-step__img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: var(--pos, 50% 50%); margin-top: 20px; border-radius: 12px; }

@media (min-width: 1024px) {
  .process-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(48px, 7vw, 100px); align-items: start; }
  .process-visual { display: block; position: sticky; top: calc(var(--header-h) + 32px); }
  .process-frame { max-height: calc(100vh - var(--header-h) - 64px); margin-inline: auto; }
  .process-step { min-height: 56vh; display: flex; flex-direction: column; justify-content: center; padding-block: 0; opacity: .3; transition: opacity .6s; }
  .process-step.is-active { opacity: 1; }
  .process-step::before { top: calc(50% - 9px); }
  .process-step__img { display: none; }
}

/* ---------- Justified photo gallery ---------- */
.jg { display: flex; flex-wrap: wrap; gap: 8px; }
.jg::after { content: ""; flex-grow: 10000; }
.jg-item { position: relative; flex: var(--r) 1 calc(var(--r) * var(--row-h)); min-width: 0; }
.jg-item.is-hidden, .jg-item.is-collapsed { display: none; }
.jg-item.is-shown { animation: pop-in .6s var(--ease-out) both; animation-delay: var(--d, 0s); }
.jg-link {
  position: relative; display: block; overflow: hidden; aspect-ratio: var(--r);
  border-radius: 10px; background: var(--navy-800); color: #fff; text-decoration: none;
}
.jg-link img { width: 100%; height: 100%; object-fit: cover; transition: scale 1s var(--ease-out); }
.jg-link:hover img { scale: 1.05; }
.jg-cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: grid; gap: 3px; padding: 44px 12px 10px;
  background: linear-gradient(180deg, transparent, rgba(7, 13, 24, .62) 40%, rgba(7, 13, 24, .92));
  font-size: 13px; font-weight: 600; line-height: 1.3;
  opacity: 0; translate: 0 8px; transition: opacity .35s, translate .45s var(--ease-out);
}
.jg-cap .mono { color: var(--cyan); font-size: 10.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.jg-link:hover .jg-cap, .jg-link:focus-visible .jg-cap { opacity: 1; translate: 0 0; }
.zoom {
  position: absolute; top: 10px; right: 10px;
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: rgba(7, 13, 24, .55); color: #fff; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  opacity: 0; scale: .8; transition: opacity .3s, scale .4s var(--ease-out);
}
.zoom svg { width: 15px; height: 15px; }
a:hover > .zoom, a:focus-visible > .zoom { opacity: 1; scale: 1; }
.jg-more { display: flex; justify-content: center; margin-top: 32px; }
.part + .part { margin-top: clamp(40px, 5vw, 64px); }
.part-head { display: grid; gap: 6px; margin-bottom: 18px; }
.part-head h3 { font-size: clamp(20px, 1.8vw, 26px); line-height: 1.2; letter-spacing: -0.015em; }
.part-head .mono { color: var(--cyan); font-size: 11px; }

/* ---------- Letters and documents ---------- */
.letters { display: grid; gap: 18px; }
@media (min-width: 640px) { .letters { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .letters { grid-template-columns: repeat(4, minmax(0, 1fr)); } .letters--docs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1280px) { .letters--docs { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 640px) and (max-width: 1099px) { .letters--full, .letters--docs { grid-template-columns: minmax(0, 1fr); } }
@media (min-width: 1100px) { .letters--full { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.letter {
  display: grid; gap: 16px; align-content: start;
  padding: 16px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line);
}
.letters--full .letter, .letters--docs .letter { grid-template-columns: minmax(0, 120px) minmax(0, 1fr); align-items: start; gap: 20px; padding: 20px; }
@media (min-width: 1100px) { .letters--full .letter { grid-template-columns: minmax(0, 170px) minmax(0, 1fr); } }
.letter-scan { position: relative; }
.letter-page { position: relative; display: block; overflow: hidden; aspect-ratio: 1 / 1.414; border-radius: 8px; border: 1px solid var(--line); background: #fff; }
.letter-page img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; transition: scale 1s var(--ease-out); }
.letter-page:hover img { scale: 1.04; }
.letter-pages { position: absolute; left: 8px; bottom: 8px; padding: 4px 8px; border-radius: 999px; background: rgba(7, 13, 24, .72); color: #fff; font-size: 10.5px; pointer-events: none; }
.letter-meta { color: var(--cyan-700); font-size: 10.5px; }
.letter h3 { margin: 6px 0 12px; font-size: 18px; line-height: 1.25; letter-spacing: -0.01em; hyphens: auto; }
@media (max-width: 639px) {
  /* phones: compact rows (small scan left, text right) instead of full-width scans */
  .letters .letter { grid-template-columns: minmax(0, 84px) minmax(0, 1fr); align-items: start; gap: 14px; padding: 16px; }
  .letters .letter h3 { font-size: 16px; }
  .letter blockquote { font-size: 14.5px; }
}
.letter blockquote { padding-left: 14px; border-left: 2px solid var(--cyan-700); color: var(--text); font-size: 15px; line-height: 1.5; }
.letter-summary { margin-top: 12px; color: var(--muted); font-size: 14.5px; line-height: 1.5; }
.letter--doc .letter-summary { margin-top: 0; }
.resources { display: grid; gap: 14px; margin-top: 18px; counter-reset: r; }
@media (min-width: 900px) { .resources { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.resources li { position: relative; padding: 22px 22px 22px 22px; border-radius: var(--radius); background: var(--navy-900); color: rgba(255, 255, 255, .86); font-size: 15px; line-height: 1.55; }
.resources li::before { counter-increment: r; content: counter(r, decimal-leading-zero); display: block; margin-bottom: 10px; font-family: var(--font-mono); font-size: 12px; color: var(--cyan); }
.docs-note { margin-top: 28px; max-width: 80ch; color: var(--muted); font-size: 15px; }
.reviews-teaser, .docs-teaser { background: var(--paper); }
.docs-teaser { border-top: 1px solid var(--line); }

/* ---------- Scope lists, split layout ---------- */
.split { display: grid; gap: 28px; }
@media (min-width: 1024px) { .split { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(40px, 6vw, 88px); } }
.split .section-head { margin-bottom: 24px; }
.split .section-head h2 { font-size: clamp(28px, 2.9vw, 42px); }
.scope { counter-reset: s; border-top: 1px solid var(--line); }
.scope li { position: relative; padding: 16px 0 16px 46px; border-bottom: 1px solid var(--line); font-size: 16.5px; font-weight: 600; line-height: 1.45; }
.scope li::before { counter-increment: s; content: counter(s, decimal-leading-zero); position: absolute; left: 0; top: 19px; font-family: var(--font-mono); font-size: 12px; color: var(--cyan-700); }
.scope--dark { border-color: var(--line-dark); }
.scope--dark li { border-color: var(--line-dark); color: rgba(255, 255, 255, .9); }
.scope--dark li::before { color: var(--cyan); }
.svc-links .mono { color: var(--muted); margin-bottom: 12px; }
.svc-links ul { display: flex; flex-wrap: wrap; gap: 8px; }
.svc-links a { display: inline-flex; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-strong); background: #fff; font-size: 14.5px; font-weight: 700; text-decoration: none; transition: border-color .2s, color .2s; }
.svc-links a:hover { border-color: var(--cyan-700); color: var(--cyan-700); }

/* ---------- Восточный полигон: stages, reference table ---------- */
.vostochny { background: var(--navy-900); }
.stages { display: grid; gap: 18px; }
@media (min-width: 900px) { .stages { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.stage { padding: clamp(20px, 2.4vw, 30px); border-radius: var(--radius); border: 1px solid var(--line-dark); background: rgba(255, 255, 255, .03); }
.stage-period { color: var(--cyan); }
.stage-text { margin: 12px 0 20px; color: var(--muted-dark); font-size: 15px; }
.stage-list { display: flex; flex-wrap: wrap; gap: 8px; }
.stage-list li { padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line-dark); font-size: 14px; line-height: 1.3; }
.stage-list li:has(a) { border-color: rgba(76, 180, 220, .6); background: rgba(76, 180, 220, .12); }
.stage-list a { color: #fff; text-decoration: none; }
.stage-list a::after { content: " →"; color: var(--cyan); }
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; }
.ref-table, .req-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.ref-table { min-width: 760px; }
.ref-table th, .ref-table td, .req-table th, .req-table td { padding: 14px 18px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.ref-table tr:last-child td, .req-table tr:last-child th, .req-table tr:last-child td { border-bottom: 0; }
.ref-table thead th { font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); background: #f7f9fb; }
.ref-table td:first-child { width: 52px; color: var(--muted); }
.ref-table td:nth-child(3) { width: 25%; color: var(--text); }
.ref-table td:last-child { width: 112px; white-space: nowrap; color: var(--muted); }
.ref-table a { color: var(--ink); font-weight: 600; text-decoration-color: var(--cyan-700); text-underline-offset: 3px; }
.ref-table a:hover { color: var(--cyan-700); }
.req-table th { width: 34%; color: var(--muted); font-weight: 600; }
.req-table td { color: var(--ink); font-weight: 600; }
@media (max-width: 699px) {
  /* phones: tables become stacked rows, nothing scrolls sideways */
  .table-wrap { overflow-x: visible; }
  .ref-table { min-width: 0; }
  .ref-table thead { display: none; }
  .ref-table, .ref-table tbody, .ref-table tr, .ref-table td,
  .req-table, .req-table tbody, .req-table tr, .req-table th, .req-table td { display: block; width: auto !important; }
  .ref-table tr { position: relative; padding: 14px 16px 14px 50px; border-bottom: 1px solid var(--line); }
  .ref-table tr:last-child { border-bottom: 0; }
  .ref-table td { padding: 0; border: 0; overflow-wrap: anywhere; }
  .ref-table td:first-child { position: absolute; left: 16px; top: 17px; }
  .ref-table td:nth-child(3) { margin-top: 6px; font-size: 14px; }
  .ref-table td:last-child { margin-top: 2px; font-size: 13px; white-space: normal; font-family: var(--font-mono); }
  .req-table tr { padding: 12px 16px; border-bottom: 1px solid var(--line); }
  .req-table tr:last-child { border-bottom: 0; }
  .req-table th, .req-table td { padding: 0; border: 0; overflow-wrap: anywhere; }
  .req-table th { margin-bottom: 2px; font-size: 13px; }
}

/* ---------- About ---------- */
.about-grid { display: grid; gap: 40px; align-items: start; }
@media (min-width: 1024px) { .about-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(48px, 6vw, 88px); } }
.prose-block > p { color: var(--text); font-size: 17px; }
.prose-block > p + p { margin-top: 1em; }
.collage { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 1024px) { .collage { position: sticky; top: calc(var(--header-h) + 24px); padding-bottom: 32px; } .collage-item:nth-child(even) { translate: 0 32px; } }
.collage-item { display: block; overflow: hidden; aspect-ratio: 3 / 4; border-radius: 12px; background: var(--navy-800); }
.collage-item img { width: 100%; height: 100%; object-fit: cover; transition: scale 1s var(--ease-out); }
.collage-item:hover img { scale: 1.05; }
.staff { display: grid; gap: 16px; }
@media (min-width: 760px) { .staff { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.staff-item { padding: clamp(22px, 2.6vw, 32px); border-radius: var(--radius); border: 1px solid var(--line-dark); background: rgba(255, 255, 255, .04); }
.staff-num { font-family: var(--font-cond); font-size: clamp(56px, 6vw, 88px); font-weight: 700; line-height: .9; color: var(--cyan); }
.staff-item p:last-child { margin-top: 12px; color: rgba(255, 255, 255, .82); }
.staff-note { margin: 22px 0 clamp(48px, 6vw, 80px); max-width: 76ch; color: var(--muted-dark); }
.split--dark { padding-top: clamp(40px, 5vw, 64px); border-top: 1px solid var(--line-dark); }
.vehicles { display: grid; gap: 6px; margin-top: 26px; color: rgba(255, 255, 255, .82); font-size: 15.5px; }
.vehicles .mono { color: var(--cyan); }
.permits p { color: var(--text); font-size: 17px; }
.permits p + p { margin-top: 1em; }
.permits .text-link { margin-top: 22px; }
.geo { display: grid; gap: 14px; }
@media (min-width: 760px) { .geo { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .geo { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.geo-item { padding: 22px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.geo-item h3 { margin-bottom: 8px; font-size: 19px; letter-spacing: -0.01em; }
.geo-item p { color: var(--muted); font-size: 15px; }

/* ---------- Call-to-action band ---------- */
.cta-band { padding: clamp(44px, 5.5vw, 76px) 0; background: var(--cyan); color: var(--navy-950); }
.cta-inner { display: grid; gap: 24px 40px; align-items: center; }
@media (min-width: 1024px) { .cta-inner { grid-template-columns: minmax(0, 1.3fr) auto; } }
.cta-band .section-label { color: var(--navy-900); }
.cta-band h2 { margin-top: 14px; max-width: 28ch; font-size: clamp(25px, 2.8vw, 38px); line-height: 1.1; }
.cta-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.cta-band .btn--primary { background: var(--navy-950); color: #fff; }
.cta-band .btn--primary:hover { background: var(--navy-700); box-shadow: 0 14px 30px -12px rgba(7, 13, 24, .6); }
.cta-phone { font-family: var(--font-cond); font-size: clamp(26px, 2.6vw, 34px); font-weight: 700; line-height: 1; text-decoration: none; white-space: nowrap; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  display: grid; grid-template-rows: auto minmax(0, 1fr) auto;
  background: rgba(5, 9, 17, .96); color: #fff;
  opacity: 0; transition: opacity .35s;
}
.lightbox.is-open { opacity: 1; }
.lightbox-top { display: flex; align-items: center; justify-content: space-between; padding: 14px var(--gutter); }
.lightbox-stage { position: relative; display: flex; align-items: center; justify-content: center; min-height: 0; padding: 0 clamp(8px, 7vw, 96px); }
.lightbox-stage img {
  max-width: 100%; max-height: 100%; border-radius: 8px; object-fit: contain;
  scale: .96; transition: opacity .3s, scale .5s var(--ease-out);
}
.lightbox.is-open .lightbox-stage img { scale: 1; }
.lightbox-stage img.is-loading { opacity: 0; }
.lightbox-caption { display: grid; justify-items: center; gap: 8px; padding: 16px var(--gutter) 24px; text-align: center; }
.lightbox-caption p { color: rgba(255, 255, 255, .9); font-weight: 600; max-width: 70ch; }
.lb-object { color: var(--cyan); font-size: 11.5px; text-decoration: none; }
.lb-object:hover { color: var(--cyan-hover); }
.lb-btn {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  background: rgba(255, 255, 255, .08); transition: background .2s;
}
.lb-btn:hover { background: rgba(255, 255, 255, .2); }
.lb-btn svg { width: 20px; height: 20px; }
.lb-prev, .lb-next { position: absolute; top: 50%; translate: 0 -50%; }
.lb-prev { left: clamp(8px, 2vw, 24px); }
.lb-next { right: clamp(8px, 2vw, 24px); }
@media (max-width: 599px) { .lightbox-stage { padding-bottom: 64px; } .lb-prev, .lb-next { top: auto; bottom: 4px; translate: none; } }

/* ---------- Contacts ---------- */
.contact { background: var(--navy-900); overflow: hidden; }
.contact::after {
  content: ""; position: absolute; right: -20%; top: -30%; width: 70vw; height: 70vw; pointer-events: none;
  background: radial-gradient(closest-side, rgba(76, 180, 220, .13), transparent);
}
.contact-grid { position: relative; z-index: 1; display: grid; gap: 56px; }
@media (min-width: 1024px) { .contact-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: clamp(48px, 7vw, 96px); align-items: start; } }
.contact-info .section-head { margin-bottom: 40px; }
.contact-phone { display: inline-block; font-family: var(--font-cond); font-size: clamp(38px, 4.4vw, 56px); font-weight: 700; line-height: 1; text-decoration: none; transition: color .2s; }
.contact-phone:hover { color: var(--cyan); }
.contact-phone-note { margin-top: 8px; color: var(--muted-dark); }
.contact-list { display: grid; gap: 22px; margin-top: 36px; }
.contact-list dt { color: var(--muted-dark); }
.contact-list dd { margin-top: 4px; font-size: 18px; font-weight: 600; }
.contact-list a { text-decoration: none; transition: color .2s; }
.contact-list a:hover { color: var(--cyan); }
.requisites { margin-top: 36px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .12); color: var(--muted-dark); line-height: 2; }

.form-card { position: relative; padding: clamp(24px, 3.4vw, 44px); border-radius: 22px; background: #fff; color: var(--ink); box-shadow: 0 40px 80px -36px rgba(0, 0, 0, .6); }
.form-card h3 { font-size: clamp(26px, 2.4vw, 32px); }
.form-card > p { margin-top: 10px; color: var(--muted); }
.form-grid { display: grid; gap: 16px; margin-top: 28px; }
@media (min-width: 600px) { .form-grid { grid-template-columns: 1fr 1fr; } }
.field--full { grid-column: 1 / -1; }
.field label { display: block; margin-bottom: 7px; font-size: 13.5px; font-weight: 700; }
.field label .req { color: var(--cyan-700); }
.field input, .field select, .field textarea {
  width: 100%; height: 52px; padding: 0 15px;
  border: 1px solid var(--line-strong); border-radius: 11px; background: var(--paper);
  font: inherit; font-size: 16px; font-weight: 500; color: var(--ink);
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.field textarea { height: auto; min-height: 112px; padding: 13px 15px; resize: vertical; }
.field select {
  appearance: none; -webkit-appearance: none; padding-right: 42px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23566376' stroke-width='1.8'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center;
}
.field input::placeholder, .field textarea::placeholder { color: #8a95a5; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--cyan-700); background: #fff; box-shadow: 0 0 0 4px rgba(22, 114, 155, .14); }
.field-error { display: none; margin-top: 6px; color: #c0392b; font-size: 13px; font-weight: 600; }
.field.is-invalid input, .field.is-invalid textarea { border-color: #d24b3c; }
.field.is-invalid .field-error { display: block; }
.consent { display: flex; align-items: flex-start; gap: 12px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.consent input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--cyan-700); }
.consent a { color: var(--cyan-700); }
.consent.is-invalid { color: #c0392b; }
.form-actions { display: grid; gap: 14px; margin-top: 8px; }
.form-status { display: none; padding: 14px 16px; border-radius: 11px; font-size: 15px; font-weight: 600; }
.form-status.is-ok { display: block; background: #e6f4ec; color: #1d6b3f; }
.form-status.is-error { display: block; background: #fbeaea; color: #a23126; }

.map {
  position: relative; z-index: 1; overflow: hidden;
  height: clamp(300px, 34vw, 420px); margin-top: clamp(56px, 8vw, 96px);
  border-radius: var(--radius); border: 1px solid rgba(255, 255, 255, .08); background: var(--navy-800);
}
.map iframe { display: block; width: 100%; height: 100%; border: 0; }
.map-placeholder {
  position: absolute; inset: 0;
  display: grid; place-content: center; justify-items: center; gap: 16px; padding: 24px; text-align: center;
  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: 44px 44px; background-position: center;
}
.map-pin { width: 18px; height: 18px; border-radius: 50%; background: var(--cyan); animation: pin-pulse 2.2s infinite; }
@keyframes pin-pulse {
  0% { box-shadow: 0 0 0 0 rgba(76, 180, 220, .55); }
  70% { box-shadow: 0 0 0 26px rgba(76, 180, 220, 0); }
  100% { box-shadow: 0 0 0 0 rgba(76, 180, 220, 0); }
}
.map-address { font-size: clamp(20px, 2vw, 26px); font-weight: 800; }
.map-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-950); color: rgba(255, 255, 255, .72); padding: 72px 0 calc(28px + env(safe-area-inset-bottom)); font-size: 15px; }
@media (max-width: 1199px) { .site-footer { padding-bottom: calc(96px + env(safe-area-inset-bottom)); } }  /* room for the floating call bar */
.footer-grid { display: grid; gap: 36px; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .footer-grid { grid-template-columns: 1.4fr .8fr 1.1fr 1.2fr; gap: 40px; } }
.footer-brand .brand-name { color: #fff; }
.footer-brand p { margin-top: 18px; max-width: 40ch; }
.footer-title { margin-bottom: 14px; color: var(--muted-dark); }
.footer-links { display: grid; gap: 8px; }
.footer-links a { text-decoration: none; transition: color .2s; }
.footer-links a:hover { color: #fff; }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 28px;
  margin-top: 56px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .08);
  font-size: 13.5px; color: rgba(255, 255, 255, .5);
}
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer-bottom a { text-decoration: none; }
.footer-bottom a:hover { color: #fff; }

/* ---------- Mobile call bar ---------- */
.mobile-cta {
  position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 45;
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 8px;
  border-radius: 999px; background: rgba(9, 16, 29, .9);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .55);
  translate: 0 160%; transition: translate .6s var(--ease-out);
}
.mobile-cta.is-visible { translate: 0 0; }
.mobile-cta .btn { --h: 48px; padding: 0 14px; font-size: 15px; }
@media (min-width: 1200px) { .mobile-cta { display: none; } }

/* ---------- Text pages (policy, consent) ---------- */
.prose { max-width: 780px; padding-block: clamp(48px, 6vw, 80px); }
.prose h2 { margin: 2.2em 0 .7em; font-size: clamp(21px, 2vw, 26px); letter-spacing: -0.015em; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--text); }
.prose p + p, .prose p + ul, .prose ul + p { margin-top: .8em; }
.prose ul { display: grid; gap: .35em; padding-left: 1.3em; list-style: "— "; }
.prose .requisites-block { margin-top: 2.4em; padding: 22px 24px; border-radius: 12px; background: #fff; border: 1px solid var(--line); line-height: 1.9; }

/* ---------- Scroll reveal (only with .anim, see the hero animations) ---------- */
.anim [data-reveal] {
  opacity: 0; translate: 0 30px;
  transition: opacity 1s var(--ease-out), translate 1.1s var(--ease-out);
  transition-delay: var(--d, 0s);
}
.anim [data-reveal].is-in { opacity: 1; translate: 0 0; }
.anim [data-reveal="mask"] {
  opacity: 1; translate: none;
  clip-path: inset(9% 7% 9% 7% round var(--radius));
  transition: clip-path 1.3s var(--ease-out);
  transition-delay: var(--d, 0s);
}
.anim [data-reveal="mask"].is-in { clip-path: inset(0 0 0 0 round var(--radius)); }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    transition-delay: 0s !important;
  }
  .js [data-reveal] { opacity: 1; translate: none; clip-path: none; }
  .pm-track, .phase-waves path, .map-pin { animation: none !important; }
  .pm-viewport { overflow-x: auto; }
  .statement .w { opacity: 1; }
}
