/* IRONCORE — desktop v3 (stage 02, on review).
   Photographs carry the story, type stays quiet. Dark "night site" sections alternate
   with cool concrete-grey sections. Red only for actions and the active marker. */

/* Onest, SIL OFL 1.1, self-hosted */
@font-face { font-family: "Onest"; font-weight: 400; font-display: swap; src: url("../fonts/onest-cyrillic-400-normal.woff2") format("woff2"); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: "Onest"; font-weight: 400; font-display: swap; src: url("../fonts/onest-latin-400-normal.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: "Onest"; font-weight: 500; font-display: swap; src: url("../fonts/onest-cyrillic-500-normal.woff2") format("woff2"); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: "Onest"; font-weight: 500; font-display: swap; src: url("../fonts/onest-latin-500-normal.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: "Onest"; font-weight: 600; font-display: swap; src: url("../fonts/onest-cyrillic-600-normal.woff2") format("woff2"); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: "Onest"; font-weight: 600; font-display: swap; src: url("../fonts/onest-latin-600-normal.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; }

:root {
  --night: #0F151D;
  --night-2: #151C26;
  --night-3: #1D2632;
  --line-d: rgba(226, 232, 240, .13);
  --line-d2: rgba(226, 232, 240, .28);
  --on: #EDF1F6;
  --on-2: #98A5B5;

  --concrete: #E3E7EB;
  --card: #F7F8FA;
  --ink: #121922;
  --ink-2: #4E5A68;
  --line: #C6CDD5;

  --blue: #0757C8;
  --blue-d: #5D97EF;
  --red: #E60028;
  --red-dk: #C20022;

  --f: "Onest", "Segoe UI", system-ui, sans-serif;
  --wrap: 1280px;
  --gut: clamp(24px, 4.4vw, 72px);
  --hdr: 76px;
  --ease: cubic-bezier(.22, .7, .18, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--f); font-size: 17px; line-height: 1.55; color: var(--on); background: var(--night);
  font-variant-numeric: tabular-nums lining-nums; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
h1, h2, h3, b, strong, .btn { text-wrap: balance; }
p, li, dd, dt, figcaption, summary { text-wrap: pretty; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; text-align: inherit; }
a { color: inherit; }
[hidden] { display: none !important; }
section[id] { scroll-margin-top: 24px; }
:focus-visible { outline: 2px solid var(--blue-d); outline-offset: 3px; }
.sec--light :focus-visible, .modal :focus-visible { outline-color: var(--blue); }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--on); color: var(--ink); padding: 10px 16px; }
.skip:focus { top: 12px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gut)); margin: 0 auto; padding-left: var(--gut); padding-right: var(--gut); }

/* ---------- Type ---------- */
.h2 { font-size: clamp(36px, 3.5vw, 54px); line-height: 1.06; font-weight: 600; letter-spacing: -.026em; }
.h2--xl { font-size: clamp(44px, 5.2vw, 80px); line-height: 1.0; letter-spacing: -.032em; max-width: 15ch; }
.h3 { font-size: clamp(26px, 2.2vw, 34px); line-height: 1.12; font-weight: 600; letter-spacing: -.02em; }
.lead { margin-top: 20px; font-size: 18px; line-height: 1.55; color: var(--on-2); max-width: 54ch; }
.sec--light .lead { color: var(--ink-2); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; text-align: center;
  min-height: 56px; padding: 8px 30px; border: 1px solid transparent; border-radius: 2px; line-height: 1.2;
  font-size: 16px; font-weight: 600; text-decoration: none; transition: background-color .25s, border-color .25s, color .25s;
}
.btn--sm { min-height: 44px; padding: 6px 20px; font-size: 15px; }
.btn--red { background: var(--red); color: #fff; }
.btn--red:hover { background: var(--red-dk); }
.btn--line { border-color: rgba(237,241,246,.5); color: var(--on); }
.btn--line:hover { border-color: var(--on); background: rgba(237,241,246,.06); }
.btn--block { width: 100%; }

/* ---------- Header: logo | centred nav | action ---------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--hdr);
  transition: background-color .35s, transform .45s var(--ease), border-color .35s; border-bottom: 1px solid transparent;
}
.header.is-solid { background: rgba(15,21,29,.97); border-bottom-color: var(--line-d); }
.header.is-hidden { transform: translateY(-100%); }
.header__in { height: 100%; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 32px; }
.brand { justify-self: start; }
.brand img { width: 150px; height: auto; }
.nav { display: flex; gap: 32px; }
.nav a { position: relative; padding: 8px 0; font-size: 15px; text-decoration: none; color: var(--on); white-space: nowrap; opacity: .82; transition: opacity .2s; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav a:hover, .nav a.is-active { opacity: 1; }
.nav a:hover::after, .nav a.is-active::after { transform: scaleX(1); }
.header__end { justify-self: end; display: flex; align-items: center; gap: 12px; }
.burger { display: none; width: 44px; height: 44px; position: relative; border: 1px solid var(--line-d2); border-radius: 2px; }
.burger span { position: absolute; left: 12px; right: 12px; height: 1.5px; background: var(--on); transition: transform .25s; }
.burger span:first-child { top: 17px; } .burger span:last-child { top: 25px; }
.burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* ---------- 01 Hero ---------- */
.hero {
  position: relative; overflow: hidden; display: flex; align-items: center;
  min-height: max(680px, min(100svh, 980px));
  background: linear-gradient(180deg, #1F3152 0%, #263B5E 46%, #20272F 60%, #14181D 100%);
}
.hero::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(90deg, rgba(15,21,29,.55) 0, rgba(15,21,29,.25) 34%, rgba(15,21,29,0) 50%); }
.hero__scene { position: absolute; right: 0; bottom: 0; height: min(94%, 64vw); aspect-ratio: 1672 / 941; will-change: transform; }
.hero__scene img {
  width: 100%; height: 100%; object-fit: cover;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 26%), linear-gradient(180deg, transparent 0, #000 14%);
  -webkit-mask-composite: source-in; mask-image: linear-gradient(90deg, transparent 0, #000 26%), linear-gradient(180deg, transparent 0, #000 14%); mask-composite: intersect;
}
.hero__lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.hero__lines polyline { fill: none; stroke: rgba(237,241,246,.7); stroke-width: 1; vector-effect: non-scaling-stroke; stroke-dasharray: 300; stroke-dashoffset: 300; animation: draw 1s var(--ease) .6s forwards; }
.hero__lines polyline:nth-child(2) { animation-delay: .8s; } .hero__lines polyline:nth-child(3) { animation-delay: 1s; }
.hero__dot { position: absolute; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; border-radius: 50%; background: var(--on); box-shadow: 0 0 0 4px rgba(237,241,246,.18); }
.hero__tag { position: absolute; white-space: nowrap; font-size: 13px; line-height: 1; padding: 8px 11px; color: var(--on); background: rgba(15,21,29,.82); border: 1px solid var(--line-d); opacity: 0; animation: fade .5s ease 1.3s forwards; }
.hero__tag--c { transform: translate(-50%, -50%); }
.hero__tag--l { transform: translate(-100%, -50%); }
.hero__in { position: relative; z-index: 2; padding-top: var(--hdr); padding-bottom: 40px; }
.hero__title { font-size: clamp(50px, 5.4vw, 84px); line-height: 1.0; font-weight: 600; letter-spacing: -.035em; max-width: 9.5ch; }
.hero__lead { margin-top: 30px; max-width: 34ch; font-size: 19px; line-height: 1.5; color: #CBD4E0; }
.hero__cta { display: flex; gap: 14px; margin-top: 44px; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade { to { opacity: 1; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes settle { from { transform: scale(1.03); } to { transform: none; } }

/* ---------- Section shells ---------- */
.sec { padding: clamp(96px, 10vw, 160px) 0; position: relative; }
.sec--dark { background: var(--night); color: var(--on); }
.sec--light { background: var(--concrete); color: var(--ink); }
#security { background: linear-gradient(180deg, #14181D 0, var(--night) 240px); padding-top: clamp(80px, 8vw, 128px); }
.head { display: flex; align-items: flex-end; justify-content: space-between; gap: 48px; margin-bottom: 56px; }
.head__text { max-width: 780px; }
.head .btn { flex: none; }

/* Image reveal: a section cut opening top-down, once */
.reveal { overflow: hidden; }
.reveal img { transition: clip-path 1.2s var(--ease), transform 1.8s var(--ease); }
.reveal.is-pending img { clip-path: inset(0 0 100% 0); transform: scale(1.08); }

/* ---------- Picker: full-width selector used by scales and engineering ---------- */
.picker { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 12px; margin-bottom: 40px; }
.picker [role="tab"] {
  position: relative; display: flex; flex-direction: column; justify-content: flex-start;
  padding: 18px 56px 18px 20px; border: 1px solid var(--line); border-radius: 2px; background: rgba(255,255,255,.4);
  color: var(--ink); transition: background-color .25s, border-color .25s, color .25s;
}
.picker [role="tab"]::after { content: ""; position: absolute; top: 20px; right: 20px; width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid currentColor; opacity: .45; transition: opacity .25s; }
.picker [role="tab"] b { display: block; font-size: 18px; font-weight: 600; line-height: 1.25; letter-spacing: -.01em; }
.picker [role="tab"] span { display: block; margin-top: 4px; font-size: 14px; color: var(--ink-2); }
.picker [role="tab"]:hover { border-color: var(--ink); background: var(--card); }
.picker [role="tab"]:hover::after { opacity: .9; }
.picker [role="tab"][aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: var(--card); }
.picker [role="tab"][aria-selected="true"] span { color: #B5BFCB; }
.picker [role="tab"][aria-selected="true"]::after { opacity: 1; background: radial-gradient(circle, var(--red) 0 4px, transparent 4.5px); }
.picker--dark [role="tab"] { border-color: var(--line-d2); background: rgba(237,241,246,.03); color: var(--on); }
.picker--dark [role="tab"] span { color: var(--on-2); }
.picker--dark [role="tab"]:hover { border-color: var(--on); background: rgba(237,241,246,.07); }
.picker--dark [role="tab"][aria-selected="true"] { background: var(--on); border-color: var(--on); color: var(--ink); }
.picker--dark [role="tab"][aria-selected="true"] span { color: var(--ink-2); }

/* ---------- 02 Security atlas ---------- */
.atlas { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 40px; align-items: start; }
.atlas__img { position: relative; background: var(--night-2); }
.atlas__img img { width: 100%; aspect-ratio: 1672 / 941; object-fit: cover; }
.pin {
  position: absolute; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%;
  background: var(--on); color: var(--ink); font-size: 14px; font-weight: 600; display: grid; place-items: center; text-align: center;
  box-shadow: 0 0 0 6px rgba(237,241,246,.2); transition: background-color .25s, color .25s, transform .25s var(--ease);
}
.pin:hover { transform: scale(1.12); }
.pin.is-on { background: var(--red); color: #fff; box-shadow: 0 0 0 6px rgba(230,0,40,.28); }
.pin.is-on::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 1px solid rgba(230,0,40,.7); animation: ping 2.2s var(--ease) infinite; }
@keyframes ping { from { transform: scale(1); opacity: 1; } to { transform: scale(1.9); opacity: 0; } }
.legend { border-top: 1px solid var(--line-d); }
.legend li { border-bottom: 1px solid var(--line-d); }
.legend__btn { display: grid; grid-template-columns: 24px 1fr 14px; gap: 14px; align-items: baseline; width: 100%; padding: 17px 0; font-size: 17px; font-weight: 500; line-height: 1.3; color: var(--on-2); transition: color .2s; }
.legend__btn span { font-size: 14px; }
.legend__btn::after { content: ""; width: 12px; height: 12px; align-self: center;
  background: linear-gradient(currentColor, currentColor) center / 12px 1.5px no-repeat, linear-gradient(currentColor, currentColor) center / 1.5px 12px no-repeat; transition: transform .3s var(--ease); }
.legend__btn:hover, .legend__btn[aria-expanded="true"] { color: var(--on); }
.legend__btn[aria-expanded="true"] span { color: var(--red); }
.legend__btn[aria-expanded="true"]::after { transform: rotate(45deg); }
.legend__body { padding: 0 28px 22px 38px; animation: fade-in .4s ease; }
.legend__body p { font-size: 15px; line-height: 1.5; color: var(--on-2); }
.legend__body p + p { margin-top: 10px; color: var(--on); }
.legend__body b { display: block; font-size: 12.5px; font-weight: 500; color: var(--on-2); margin-bottom: 2px; }

/* ---------- 03 Solutions ---------- */
.scale__panel { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 64px; align-items: start; }
.scale__panel:not([hidden]) .scale__img img { animation: settle .9s var(--ease); }
.scale__panel:not([hidden]) .scale__info { animation: fade-in .6s ease; }
.scale__img { aspect-ratio: 7 / 6; background: var(--night); overflow: hidden; }
.scale__img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; }
.tag { display: inline-block; font-size: 13px; color: var(--blue); border: 1px solid currentColor; padding: 3px 9px; border-radius: 2px; }
.scale__info .h3 { margin-top: 16px; }
.scale__desc { margin-top: 14px; font-size: 16px; color: var(--ink-2); max-width: 40ch; }
.figs { margin-top: 32px; }
.figs div { padding: 14px 0 12px; border-top: 1px solid var(--line); }
.figs div:last-child { border-bottom: 1px solid var(--line); }
.figs dt { font-size: 14px; color: var(--ink-2); }
.figs dd { margin-top: 2px; font-size: clamp(34px, 3.2vw, 46px); line-height: 1.1; font-weight: 600; letter-spacing: -.03em; }
.figs small { margin-left: 8px; font-size: 17px; font-weight: 500; color: var(--blue); letter-spacing: 0; }
.scale__fmt { margin-top: 20px; font-size: 15px; color: var(--ink); }
.scale__fmt span { display: block; font-size: 13px; color: var(--ink-2); margin-bottom: 2px; }
.scale__note { margin-top: 20px; font-size: 13px; line-height: 1.5; color: var(--ink-2); }

.formats-head { margin: 128px 0 48px; }
.formats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.format__img { aspect-ratio: 4 / 3; overflow: hidden; background: var(--night); }
.format__img img { width: 100%; height: 100%; object-fit: cover; }
.format:hover .format__img img { transform: scale(1.04); }
.format figcaption { margin-top: 18px; font-size: 15px; line-height: 1.5; color: var(--ink-2); max-width: 30ch; }
.format b { display: block; margin-bottom: 6px; font-size: 19px; font-weight: 600; color: var(--ink); }

/* ---------- 04 Services ---------- */
.svc { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 72px; align-items: start; }
.svc__media { position: sticky; top: 112px; aspect-ratio: 5 / 4; background: var(--night-2); overflow: hidden; }
.svc__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.03); transition: opacity .7s ease, transform 1.2s var(--ease), clip-path 1.2s var(--ease); }
.svc__media img.is-on { opacity: 1; transform: none; z-index: 1; }
.svc__media img.was-on { opacity: 1; transform: none; transition: none; z-index: 0; }
.svc__list { border-top: 1px solid var(--line-d); }
.svc__btn { display: grid; grid-template-columns: 1fr 14px; column-gap: 20px; align-items: center; width: 100%; padding: 22px 0; border-top: 1px solid var(--line-d); color: var(--on-2); transition: color .25s; }
.svc__btn:first-child { border-top: 0; }
.svc__btn b, .svc__btn i { grid-column: 1; }
.svc__btn::after { grid-column: 2; grid-row: 1 / span 2; }
.svc__btn b { display: block; font-size: 20px; font-weight: 500; line-height: 1.3; letter-spacing: -.01em; }
.svc__btn i { display: block; margin-top: 4px; font-size: 14px; color: var(--on-2); opacity: .8; }
.svc__btn::after { content: ""; width: 12px; height: 12px;
  background: linear-gradient(currentColor, currentColor) center / 12px 1.5px no-repeat, linear-gradient(currentColor, currentColor) center / 1.5px 12px no-repeat; transition: transform .3s var(--ease); }
.svc__btn:hover { color: var(--on); }
.svc__btn[aria-expanded="true"] { color: #fff; }
.svc__btn[aria-expanded="true"] b { font-weight: 600; }
.svc__btn[aria-expanded="true"]::after { transform: rotate(45deg); }
.svc__panel { padding: 0 34px 26px 0; animation: fade-in .45s ease; }
.svc__panel p { font-size: 15.5px; color: var(--on-2); max-width: 52ch; }
.res { margin-top: 14px; color: var(--on) !important; }
.res span { display: block; font-size: 12.5px; color: var(--blue-d); margin-bottom: 2px; }

/* ---------- 05 Process: sticky head, steps light up as you read ---------- */
.process { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 72px; align-items: start; }
.process__head { position: sticky; top: 112px; }
.process__head .btn { margin-top: 36px; }
.steps { position: relative; --p: 0; }
.steps::before, .steps::after { content: ""; position: absolute; left: 21px; top: 28px; bottom: 28px; width: 1px; background: var(--line); }
.steps::after { background: var(--ink); transform: scaleY(var(--p)); transform-origin: top; }
.step { position: relative; display: grid; grid-template-columns: 44px minmax(0, 1.2fr) minmax(0, 1fr); gap: 28px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.step:first-child { padding-top: 6px; }
.step:last-child { border-bottom: 0; }
.step__n { position: relative; z-index: 1; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-size: 15px; font-weight: 600; background: var(--concrete); border: 1px solid var(--line); color: var(--ink-2); transition: background-color .5s, border-color .5s, color .5s; }
.step__main, .step__res { opacity: .38; transition: opacity .6s ease; }
.step h3 { font-size: 21px; line-height: 1.25; font-weight: 600; letter-spacing: -.012em; padding-top: 8px; }
.step__main p { margin-top: 4px; font-size: 15px; color: var(--ink-2); }
.step__res { padding-top: 10px; font-size: 15px; color: var(--ink); }
.step__res span { display: block; font-size: 12.5px; color: var(--blue); margin-bottom: 2px; }
.step.is-on .step__n { background: var(--ink); border-color: var(--ink); color: var(--card); }
.step.is-on .step__main, .step.is-on .step__res { opacity: 1; }

/* ---------- 06 Engineering ---------- */
.eng__panel { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 64px; align-items: start; }
.eng__panel:not([hidden]) .eng__img img { animation: settle .9s var(--ease); }
.eng__panel:not([hidden]) .eng__body { animation: fade-in .6s ease; }
.eng__img { aspect-ratio: 3 / 2; overflow: hidden; background: var(--night-2); }
.eng__img img { width: 100%; height: 100%; object-fit: cover; }
.eng__lead { font-size: 19px; line-height: 1.45; color: var(--on); max-width: 40ch; }
.big { display: grid; grid-template-columns: 1fr 1fr; margin-top: 32px; border-top: 1px solid var(--line-d); }
.big div { padding-top: 18px; }
.big div + div { padding-left: 24px; border-left: 1px solid var(--line-d); }
.big dd { font-size: clamp(52px, 5vw, 76px); line-height: 1; font-weight: 600; letter-spacing: -.04em; }
.big small, .formula small { margin-left: 8px; font-size: 18px; font-weight: 500; letter-spacing: 0; color: var(--blue-d); }
.big dt { margin-top: 8px; font-size: 14px; color: var(--on-2); }
.formula { margin-top: 32px; padding: 20px 0; border-top: 1px solid var(--line-d); border-bottom: 1px solid var(--line-d); font-size: clamp(32px, 2.8vw, 42px); font-weight: 600; letter-spacing: -.03em; line-height: 1.2; }
.formula small { margin: 0 4px 0 2px; font-size: 16px; }
.formula--pue { margin-top: 0; display: flex; align-items: center; gap: 18px; }
.frac { display: inline-grid; text-align: center; font-size: 22px; letter-spacing: -.01em; }
.frac span:first-child { padding: 0 10px 6px; border-bottom: 2px solid var(--on); }
.frac span:last-child { padding: 6px 10px 0; }
.eng__note { margin-top: 24px; padding-left: 16px; border-left: 1px solid var(--blue-d); font-size: 14.5px; line-height: 1.55; color: var(--on-2); }
.eng__calc { margin-top: 18px; font-size: 14.5px; color: var(--on-2); }

.red { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 32px; border-top: 1px solid var(--line-d); }
.red__col { padding: 20px 16px 0 0; }
.red__col + .red__col { padding-left: 20px; border-left: 1px solid var(--line-d); }
.red__col > b { display: block; font-size: 36px; line-height: 1; font-weight: 600; letter-spacing: -.03em; }
.red__col .mods { margin-top: 22px; }
.red__col p { margin-top: 16px; font-size: 14px; color: var(--on-2); }
.red__col strong { display: block; font-size: 16px; font-weight: 600; color: var(--on); }
.mods { display: flex; gap: 4px; align-items: flex-end; height: 30px; }
.mods i { width: 12px; height: 30px; border: 1.5px solid var(--blue-d); background: rgba(93,151,239,.3); }
.mods i.sp { border-style: dashed; background: none; }
.mods i.b { border-color: var(--on); background: rgba(237,241,246,.18); }
.mods u { width: 6px; }
.pue { width: 100%; margin-top: 24px; border-collapse: collapse; }
.pue caption { text-align: left; font-size: 14px; color: var(--on-2); margin-bottom: 8px; }
.pue th { text-align: left; font-size: 13px; font-weight: 500; color: var(--on-2); padding: 0 12px 8px 0; border-bottom: 1px solid var(--line-d); }
.pue td { padding: 13px 12px 13px 0; border-bottom: 1px solid var(--line-d); font-size: 20px; font-weight: 600; }
.pue td:last-child { width: 46%; padding-right: 0; }
.bar { display: block; height: 10px; width: calc(var(--v) / 1.8 * 100%); background: rgba(237,241,246,.2); position: relative; }
.bar i { position: absolute; inset: 0 auto 0 0; width: calc(1 / var(--v) * 100%); background: var(--blue-d); }
.key { margin-top: 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; color: var(--on-2); }
.key i { width: 10px; height: 10px; }
.key .k1 { background: var(--blue-d); }
.key .k2 { background: rgba(237,241,246,.2); margin-left: 14px; }
.key .k3 { border: 1.5px dashed var(--blue-d); margin-left: 14px; }

/* ---------- 07 Why ---------- */
.why { margin-top: 80px; }
.why__row { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 4fr) minmax(0, 3fr); gap: 48px; padding: 30px 0; border-top: 1px solid var(--line); }
.why__row:last-child { border-bottom: 1px solid var(--line); }
.why__row h3 { font-size: 22px; line-height: 1.25; font-weight: 600; letter-spacing: -.015em; }
.why__row p { font-size: 15.5px; color: var(--ink-2); }
.why__get { color: var(--ink) !important; font-weight: 500; }

/* Photo band: the three-step statement */
.band { position: relative; overflow: hidden; background: var(--night); color: var(--on); min-height: min(100vh, 920px); display: flex; align-items: center; padding: clamp(140px, 13vw, 220px) 0; }
.band__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; opacity: .7; }
.band::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(15,21,29,.96) 0%, rgba(15,21,29,.82) 45%, rgba(15,21,29,.35) 100%); }
.band__in { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 56px; align-items: end; }
.band__title { font-size: clamp(36px, 3.7vw, 56px); line-height: 1.08; font-weight: 600; letter-spacing: -.032em; }
.band__title span { display: block; white-space: nowrap; }
.band__title span:nth-child(2) { padding-left: 1.2em; }
.band__title span:nth-child(3) { padding-left: 2.4em; }
[data-lines].is-pending span { opacity: 0; transform: translateY(.35em); }
[data-lines] span { transition: opacity .8s ease, transform 1s var(--ease); }
[data-lines] span:nth-child(2) { transition-delay: .18s; } [data-lines] span:nth-child(3) { transition-delay: .36s; }
.band__side { padding-bottom: 6px; }
.band__side p { font-size: 17px; color: #C3CCD8; max-width: 38ch; }
.band__side .btn { margin-top: 28px; }

/* ---------- 08 Materials ---------- */
.docs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.doc { display: flex; flex-direction: column; align-items: flex-start; }
.doc__img { align-self: stretch; aspect-ratio: 4 / 4.6; overflow: hidden; background: var(--night-2); }
.doc__img img { width: 100%; height: 100%; object-fit: cover; }
.doc:hover .doc__img img { transform: scale(1.03); }
.doc__meta { margin-top: 20px; font-size: 13px; color: var(--blue-d); font-weight: 500; }
.doc h3 { margin-top: 6px; font-size: 22px; line-height: 1.25; font-weight: 600; letter-spacing: -.015em; }
.doc > p:not(.doc__meta) { margin: 8px 0 22px; font-size: 15px; color: var(--on-2); max-width: 36ch; }
.doc .btn { margin-top: auto; min-height: 48px; padding: 6px 22px; font-size: 15px; }

/* ---------- 09 FAQ ---------- */
.faq { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 96px; align-items: start; }
.faq__title { font-size: clamp(34px, 3.2vw, 48px); overflow-wrap: anywhere; }
.faq__title { position: sticky; top: 112px; }
.acc { border-top: 1px solid var(--ink); }
.acc details { border-bottom: 1px solid var(--line); }
.acc summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 1fr 20px; gap: 24px; align-items: start; padding: 24px 0; font-size: 19px; font-weight: 500; line-height: 1.35; transition: color .2s; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: ""; width: 14px; height: 14px; margin-top: 6px; justify-self: end;
  background: linear-gradient(currentColor, currentColor) center / 14px 1.5px no-repeat, linear-gradient(currentColor, currentColor) center / 1.5px 14px no-repeat; transition: transform .3s var(--ease); }
.acc details[open] summary::after { transform: rotate(45deg); }
.acc summary:hover { color: var(--blue); }
.acc details p { padding: 0 48px 28px 0; font-size: 16px; color: var(--ink-2); max-width: 66ch; }
.acc details[open] p { animation: fade-in .4s ease; }

/* ---------- 10 Contact ---------- */
.contact { background: var(--night-2); }
.contact__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 96px; align-items: stretch; }
.contact__text { display: flex; flex-direction: column; }
.theses { margin-top: 44px; }
.theses li { position: relative; padding: 14px 0 14px 32px; border-bottom: 1px solid var(--line-d); font-size: 17px; }
.theses li:first-child { border-top: 1px solid var(--line-d); }
.theses li::before { content: ""; position: absolute; left: 2px; top: 21px; width: 14px; height: 7px; border-left: 1.5px solid var(--blue-d); border-bottom: 1.5px solid var(--blue-d); transform: rotate(-45deg); }
.call { margin-top: auto; padding-top: 56px; }
.call span { display: block; font-size: 14px; color: var(--on-2); }
.call a { display: inline-block; margin-top: 6px; font-size: 30px; font-weight: 600; letter-spacing: -.02em; text-decoration: none; border-bottom: 1px solid var(--line-d2); padding-bottom: 4px; transition: border-color .2s; }
.call a:hover { border-color: var(--on); }
.contact__form { padding-left: 56px; border-left: 1px solid var(--line-d); }

/* ---------- Form (light by default: modal) ---------- */
.field { position: relative; margin-bottom: 14px; }
.field input, .field textarea {
  display: block; width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: #fff;
  border: 1px solid #B9C2CD; border-radius: 2px; padding: 24px 14px 8px; min-height: 58px; transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 104px; }
.field label { position: absolute; left: 15px; top: 18px; font-size: 16px; color: var(--ink-2); pointer-events: none; transition: top .2s var(--ease), font-size .2s var(--ease); }
.field label span { color: var(--red); }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label { top: 7px; font-size: 12px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(7,87,200,.16); }
.field input[aria-invalid="true"] { border-color: var(--red); }
.field__err { margin-top: 6px; font-size: 13px; color: var(--red-dk); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 18px; }
.chips__label { flex-basis: 100%; font-size: 13px; color: var(--ink-2); margin-bottom: 2px; }
.chip { min-height: 34px; padding: 4px 12px; font-size: 13.5px; border: 1px solid #B9C2CD; border-radius: 17px; color: var(--ink); transition: border-color .2s, background-color .2s, color .2s; }
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--card); }
.file { display: flex; align-items: center; gap: 12px; padding: 14px; margin-bottom: 18px; border: 1px dashed #B9C2CD; border-radius: 2px; cursor: pointer; font-size: 14.5px; color: var(--ink-2); transition: border-color .2s; }
.file:hover { border-color: var(--ink); }
.file:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(7,87,200,.16); }
.file input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.file svg { flex: none; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.file__list { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.form__demo { margin-top: 12px; font-size: 13px; color: var(--ink-2); }
.form__status { margin-top: 14px; padding: 14px 16px; font-size: 14.5px; background: #FFF5E3; border-left: 3px solid #B86E00; color: var(--ink); }
.form__status a { font-weight: 600; }

/* Form on dark (#contact): same structure, quiet surfaces */
.contact .field input, .contact .field textarea { background: rgba(237,241,246,.04); border-color: var(--line-d2); color: var(--on); }
.contact .field label { color: var(--on-2); }
.contact .field input:focus, .contact .field textarea:focus { border-color: var(--blue-d); box-shadow: 0 0 0 3px rgba(93,151,239,.2); }
.contact .field__err { color: #FF6B80; }
.contact .chips__label, .contact .form__demo { color: var(--on-2); }
.contact .chip { border-color: var(--line-d2); color: var(--on); }
.contact .chip:hover { border-color: var(--on); }
.contact .chip[aria-pressed="true"] { background: var(--on); border-color: var(--on); color: var(--ink); }
.contact .file { border-color: var(--line-d2); color: var(--on-2); }
.contact .file:hover { border-color: var(--on); }
.contact .form__status { background: rgba(255,186,74,.1); border-left-color: #E0A030; color: var(--on); }

/* ---------- Modal ---------- */
.modal { border: 0; padding: 0; background: transparent; width: min(520px, calc(100% - 32px)); max-height: calc(100vh - 32px); color: var(--ink); }
.modal::backdrop { background: rgba(8,12,18,.72); }
.modal[open] { animation: rise .35s var(--ease); }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.modal__box { position: relative; background: var(--card); padding: 40px; max-height: calc(100vh - 32px); overflow-y: auto; }
.modal__title { font-size: 26px; line-height: 1.2; font-weight: 600; letter-spacing: -.02em; margin-bottom: 24px; padding-right: 44px; }
.modal__close { position: absolute; top: 18px; right: 18px; width: 44px; height: 44px; display: grid; place-items: center; }
.modal__close svg { width: 18px; height: 18px; stroke: var(--ink); stroke-width: 1.6; }
.modal__close:hover { background: var(--concrete); }
body.no-scroll { overflow: hidden; }

/* ---------- Footer ---------- */
.footer { background: var(--night); color: var(--on-2); padding: 88px 0 32px; border-top: 1px solid var(--line-d); }
.footer__top { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 4fr) minmax(0, 3fr); gap: 48px; align-items: start; }
.footer__brand img { width: 150px; }
.footer__brand p { margin-top: 18px; font-size: 14px; line-height: 1.5; }
.footer__label { font-size: 13px; color: var(--on-2); margin-bottom: 16px; }
.footer__links { display: grid; grid-template-columns: repeat(2, max-content); gap: 10px 48px; }
.footer__links a { font-size: 15px; color: var(--on); text-decoration: none; white-space: nowrap; }
.footer__links a:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer__phone { display: block; font-size: 22px; font-weight: 600; color: var(--on); text-decoration: none; white-space: nowrap; }
.footer__phone:hover { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.footer__col .btn { margin-top: 20px; }
.footer__bottom { display: flex; justify-content: space-between; gap: 24px; margin-top: 80px; padding-top: 24px; font-size: 13px; position: relative; }
.footer__bottom::before { content: ""; position: absolute; top: 0; left: var(--gut); right: var(--gut); height: 1px; background: var(--line-d); }

/* ---------- 1024 ---------- */
@media (max-width: 1200px) {
  .header__in { gap: 20px; }
  .brand img { width: 132px; }
  .nav { gap: 20px; }
  .nav a { font-size: 14px; }
  .hero__scene { height: min(86%, 64vw); }
  .hero__title { font-size: 56px; }
  .hero__lead { font-size: 17px; max-width: 30ch; }
  .hero__lines polyline:nth-child(2), .hero__dot:nth-of-type(2), .hero__tag:nth-of-type(2) { display: none; }
  .atlas { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 32px; }
  .legend__btn { font-size: 15.5px; padding: 14px 0; }
  .scale__panel, .eng__panel { gap: 40px; }
  .picker [role="tab"] b { font-size: 18px; }
  .picker [role="tab"] span { font-size: 13.5px; }
  .svc { gap: 48px; }
  .process, .faq { gap: 56px; }
  .step { grid-template-columns: 44px minmax(0, 1fr); }
  .step__res { grid-column: 2; padding-top: 0; }
  .red__col > b { font-size: 28px; }
  .red__col + .red__col { padding-left: 14px; }
  .mods i { width: 10px; }
  .why__row { gap: 32px; }
  .band__in { gap: 40px; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .contact__grid { gap: 56px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .contact__form { padding-left: 40px; }
  .head .btn { max-width: 280px; }
}

/* ---------- Mobile-only elements (hidden on desktop) ---------- */
.svc__pic { display: none; }
.hero__lines--m { display: none; }
.drawer { display: none; }

/* =================== MOBILE (stage 03): 768 / 390 / 360 =================== */
@media (max-width: 960px) {
  :root { --hdr: 64px; --gut: 24px; }
  body { font-size: 16px; }
  body, h1, h2, h3, p, li, dd, dt, summary, figcaption { overflow-wrap: break-word; }
  .sec { padding: 80px 0; }
  #security { padding-top: 72px; }
  .h2 { font-size: 38px; line-height: 1.08; }
  .h2--xl { font-size: 44px; max-width: 16ch; }
  .lead { margin-top: 14px; font-size: 17px; }

  /* Section CTAs: compact, one line, one height; full width only in the form, drawer and footer */
  main .btn { width: 100%; min-height: 56px; padding: 8px 16px; font-size: 16px; white-space: nowrap; }
  main .btn--block, .footer .btn, .drawer .btn { width: 100%; min-height: 56px; padding: 8px 20px; font-size: 16px; white-space: normal; }

  /* Section CTA moves from the heading to the end of its block: first the content, then the ask */
  #security > .wrap, #solutions > .wrap, #services > .wrap, #engineering > .wrap, .process { display: flex; flex-direction: column; }
  #security .head, #solutions .head, #services .head, #engineering .head, .process__head { display: contents; }
  #security .head__text, #solutions .head__text, #services .head__text, #engineering .head__text { margin-bottom: 36px; }
  #security .head > .btn, #solutions .head > .btn, #services .head > .btn, #engineering .head > .btn, .process__head > .btn { order: 99; align-self: stretch; margin-top: 40px; }

  /* Header: logo | compact action + burger */
  .header__in { grid-template-columns: auto minmax(0, 1fr); gap: 12px; }
  .header .nav { display: none; }
  .brand { display: flex; align-items: center; min-height: 44px; }
  .brand img { width: 128px; }
  .header__end { gap: 8px; }
  .header .btn--sm { min-height: 44px; padding: 6px 16px; }
  .burger { display: block; }

  /* Drawer menu: slides in from the right, full height, dimmed page */
  .drawer { display: block; position: fixed; inset: 0; z-index: 80; }
  .drawer[hidden] { display: none !important; }
  .drawer__scrim { position: absolute; inset: 0; background: rgba(8,12,18,.72); opacity: 0; transition: opacity .35s ease; }
  .drawer__panel {
    position: absolute; top: 0; right: 0; bottom: 0; width: min(420px, 88vw); display: flex; flex-direction: column;
    background: var(--night); border-left: 1px solid var(--line-d); transform: translateX(100%); transition: transform .35s var(--ease);
    overflow-y: auto; overscroll-behavior: contain; padding: 0 24px max(24px, env(safe-area-inset-bottom));
  }
  .drawer.is-open .drawer__scrim { opacity: 1; }
  .drawer.is-open .drawer__panel { transform: none; }
  .drawer__top { display: flex; align-items: center; justify-content: space-between; min-height: var(--hdr); flex: none; border-bottom: 1px solid var(--line-d); }
  .drawer__top img { width: 116px; height: auto; }
  .drawer__close { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--line-d2); border-radius: 2px; margin-right: -2px; }
  .drawer__close svg { width: 18px; height: 18px; stroke: var(--on); stroke-width: 1.6; }
  .drawer__nav { display: flex; flex-direction: column; padding: 12px 0 32px; }
  .drawer__nav a { display: flex; align-items: center; min-height: 60px; font-size: 24px; font-weight: 500; letter-spacing: -.015em; text-decoration: none; color: var(--on); border-bottom: 1px solid var(--line-d); }
  .drawer__nav a.is-active { color: #fff; box-shadow: inset 3px 0 0 var(--red); padding-left: 14px; }
  .drawer__end { margin-top: auto; padding-top: 24px; }
  .drawer__phone { display: flex; align-items: center; min-height: 48px; margin-bottom: 12px; font-size: 22px; font-weight: 600; text-decoration: none; color: var(--on); }

  /* 01 Hero: as on desktop — one scene, the render sits low and right behind the text, nothing cropped */
  .hero { --sw: 132vw; display: block; min-height: 0; }
  .hero::before { background: linear-gradient(180deg, rgba(15,21,29,.35) 0, rgba(15,21,29,0) 40%); }
  .hero__in { padding-top: calc(var(--hdr) + 40px); padding-bottom: calc(var(--sw) * .5628 * .94); }
  .hero__title { font-size: 52px; max-width: 11ch; }
  .hero__lead { margin-top: 20px; font-size: 18px; max-width: 40ch; }
  .hero__cta { flex-direction: column; gap: 12px; margin-top: 32px; }
  .hero__scene { right: 0; bottom: 0; width: var(--sw); height: auto; transform: none !important; will-change: auto; }
  .hero__scene img { height: auto; }
  /* Callouts stay on mobile: building, container modules, underground level */
  .hero__lines polyline:nth-child(2), .hero__dot:nth-of-type(2), .hero__tag:nth-of-type(2) { display: block; }
  .hero__tag { font-size: 12px; padding: 7px 9px; }
  .hero__lines--m { display: none; }

  /* Shared heads: title, lead, then a full-width CTA */
  .head { flex-direction: column; align-items: stretch; gap: 28px; margin-bottom: 36px; }
  .head .btn { max-width: none; }

  /* 02 Security: cutaway with finger-sized pins, accordion below */
  .atlas { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .atlas__img { margin: 0 calc(-1 * var(--gut)); }
  .pin { width: 40px; height: 40px; margin: -20px 0 0 -20px; font-size: 15px; box-shadow: 0 0 0 5px rgba(237,241,246,.2); }
  .pin:hover { transform: none; }
  .legend__btn { font-size: 17px; padding: 16px 0; min-height: 56px; align-items: center; }
  .legend__body { padding: 0 0 20px 38px; }

  /* Pickers (scales, engineering) */
  .picker { margin-bottom: 28px; gap: 8px; }
  .picker [role="tab"] { padding: 16px 48px 16px 16px; min-height: 76px; }
  .picker [role="tab"]::after { top: 18px; right: 16px; }
  .picker [role="tab"] b { font-size: 17px; }
  .picker [role="tab"] span { font-size: 13.5px; }
  .picker--dark { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); }

  /* 03 Solutions */
  .scale__panel, .eng__panel { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .scale__img { aspect-ratio: 4 / 3; }
  .scale__desc { max-width: none; }
  .figs { margin-top: 24px; }
  .figs dd { font-size: 38px; }
  .formats-head { margin: 80px 0 32px; }
  .formats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 20px; }
  .format figcaption { margin-top: 14px; max-width: none; }
  .format b { font-size: 18px; }

  /* 04 Services: accordion, the photo lives inside the open service */
  .svc { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .svc__media { display: none; }
  .svc__pic { display: block; aspect-ratio: 3 / 2; margin: 2px 0 18px; overflow: hidden; background: var(--night-2); }
  .svc__pic img { width: 100%; height: 100%; object-fit: cover; }
  .svc__btn { padding: 18px 0; min-height: 64px; }
  .svc__btn b { font-size: 18px; }
  .svc__panel { padding: 0 0 24px; }
  .svc__panel p { max-width: none; }

  /* 05 Process: vertical line, result under the step text */
  .process { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .process__head .lead { margin-bottom: 36px; }
  .process__head { position: static; }
  .process__head .btn { margin-top: 28px; }
  .step { grid-template-columns: 44px minmax(0, 1fr); gap: 4px 18px; padding: 22px 0; }
  .step__res { grid-column: 2; padding-top: 8px; }
  .step h3 { font-size: 19px; }

  /* 06 Engineering */
  .eng__lead { font-size: 18px; max-width: none; }
  .big dd { font-size: 52px; }
  .red__col > b { font-size: 28px; }
  .red__col + .red__col { padding-left: 14px; }
  .mods { gap: 3px; }
  .mods i { width: 10px; }
  .mods u { width: 4px; }
  .formula { font-size: 30px; }

  /* 07 Why */
  .why { margin-top: 40px; }
  .why__row { grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 24px 0; }
  .why__row h3 { font-size: 20px; }
  .why__get { margin-top: 4px; }

  /* Final band: no ladder, height by content */
  .band { min-height: 0; padding: 96px 0; }
  .band::before { background: linear-gradient(180deg, rgba(15,21,29,.9) 0%, rgba(15,21,29,.78) 55%, rgba(15,21,29,.92) 100%); }
  .band__in { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .band__title { font-size: 38px; }
  .band__title span { white-space: normal; padding-left: 0 !important; }
  .band__side p { max-width: 48ch; }
  .band__side .btn { margin-top: 24px; }

  /* 08 Materials: one column; image beside text on tablets */
  .docs { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .doc { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); column-gap: 28px; align-items: start; }
  .doc__img { grid-row: 1 / span 4; aspect-ratio: 4 / 4.6; }
  .doc__meta { margin-top: 0; }
  .doc > p:not(.doc__meta) { max-width: none; margin-bottom: 20px; }
  .doc .btn { min-height: 56px; }

  /* 09 FAQ */
  .faq { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .faq__title { position: static; font-size: 38px; overflow-wrap: break-word; }
  .acc summary { font-size: 17px; padding: 20px 0; gap: 16px; }
  .acc details p { padding: 0 0 22px; max-width: none; }

  /* 10 Contact + form */
  .contact__grid { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .theses { margin-top: 32px; }
  .call { margin-top: 0; padding-top: 32px; }
  .call a { font-size: 26px; min-height: 44px; }
  .contact__form { padding-left: 0; border-left: 0; }
  .chip { min-height: 44px; padding: 6px 14px; border-radius: 22px; font-size: 14px; }
  .file { min-height: 56px; }
  .file__list { white-space: normal; overflow: visible; }
  .modal__box { padding: 28px 24px; }
  .modal__close { top: 10px; right: 10px; }
  .modal__title { font-size: 22px; }

  /* 11 Footer: logo, sections in 2 columns, phone and button full width */
  .footer { padding: 64px 0 28px; }
  .footer__top { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .footer__links { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; }
  .footer__links a { display: flex; align-items: center; min-height: 44px; white-space: normal; }
  .footer__phone { display: flex; align-items: center; min-height: 48px; font-size: 24px; }
  .footer__col .btn { margin-top: 16px; }
  .footer__bottom { flex-direction: column; gap: 8px; margin-top: 48px; }
}

/* Phones */
@media (max-width: 600px) {
  .sec { padding: 64px 0; }
  #security { padding-top: 56px; }
  .h2 { font-size: 30px; line-height: 1.12; letter-spacing: -.022em; }
  .h2--xl { font-size: 34px; }
  .lead { font-size: 16px; }
  .hero { --sw: 180vw; }
  /* Phones: tags sit left of the cut, aligned on one edge, lines go to the dots */
  .hero__lines { display: none; }
  .hero__lines--m { display: block; }
  .hero__tag { font-size: 11.5px; padding: 6px 8px; }
  .hero__tag:nth-of-type(2) { left: 67% !important; top: 75% !important; }
  .hero__tag:nth-of-type(3) { left: 68.2% !important; top: 91% !important; }
  .hero__in { padding-top: calc(var(--hdr) + 28px); }
  .hero__title { font-size: 40px; line-height: 1.04; }
  .hero__lead { margin-top: 16px; font-size: 16.5px; }
  .hero__cta { margin-top: 28px; }
  .brand img { width: 116px; }
  .header .btn--sm { padding: 6px 14px; font-size: 14.5px; }

  /* Pickers: a swipeable strip with snap, it scrolls on its own, not the page */
  .picker, .picker--dark {
    grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 74%; overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; scroll-padding: 0 var(--gut); scrollbar-width: none; -webkit-overflow-scrolling: touch;
    margin-left: calc(-1 * var(--gut)); margin-right: calc(-1 * var(--gut)); padding: 0 var(--gut);
  }
  .picker::-webkit-scrollbar { display: none; }
  .picker [role="tab"] { scroll-snap-align: start; }
  .picker [role="tab"] b { font-size: 16px; }
  .figs dd { font-size: 34px; }
  .formats { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .formats-head { margin-top: 64px; }

  .doc { display: flex; }
  .doc__img { aspect-ratio: 4 / 3; }
  .doc__meta { margin-top: 18px; }
  .doc h3 { font-size: 20px; }

  .svc__btn b { font-size: 17px; }
  .step h3 { font-size: 18px; }

  .eng__lead { font-size: 16.5px; }
  .big dd { font-size: 44px; }
  .big div + div { padding-left: 16px; }
  .big small, .formula small { margin-left: 4px; font-size: 15px; }
  .formula { font-size: 24px; }
  .formula small { font-size: 13.5px; }
  .formula--pue { gap: 12px; }
  .frac { font-size: 16px; }
  .red__col { padding-right: 8px; }
  .red__col + .red__col { padding-left: 10px; }
  .red__col > b { font-size: 24px; }
  .red__col p { font-size: 13px; }
  .red__col strong { font-size: 14.5px; }
  .mods i { width: 8px; height: 26px; }
  .mods { height: 26px; }
  .pue td { font-size: 17px; padding-right: 8px; }
  .pue td:last-child { width: 40%; }
  .key .k2, .key .k3 { margin-left: 8px; }

  .band { padding: 72px 0; }
  .band__title { font-size: 30px; line-height: 1.12; }
  .faq__title { font-size: 30px; }
  .acc summary { font-size: 16.5px; }
  .call a { font-size: 24px; }
}

@media (max-width: 380px) {
  :root { --gut: 20px; }
  .hero__title { font-size: 36px; }
  .hero__tag { font-size: 11px; padding: 5px 7px; letter-spacing: -.01em; }
  main .btn { padding: 8px 12px; font-size: 15px; }
  .h2 { font-size: 28px; }
  .h2--xl, .faq__title, .band__title { font-size: 28px; }
  .figs dd { font-size: 31px; }
  .big dd { font-size: 40px; }
  .formula { font-size: 22px; }
  .drawer__panel { padding-left: 20px; padding-right: 20px; }
  .drawer__nav a { font-size: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .hero__lines polyline { stroke-dashoffset: 0; }
  .hero__tag { opacity: 1; }
  .reveal.is-pending img { clip-path: none; transform: none; }
  [data-lines].is-pending span { opacity: 1; transform: none; }
}

/* ---------- Form states used by the WordPress theme ---------- */
.form__status.is-ok { background: #E7F3EA; border-left-color: #1E7B45; }
.contact .form__status.is-ok { background: rgba(90,190,120,.12); border-left-color: #5ABE78; }
.form [type="submit"][disabled] { opacity: .6; cursor: progress; }
.form__hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.consent { position: relative; display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: flex-start; margin: 0 0 18px; font-size: 13.5px; line-height: 1.45; color: var(--ink-2); }
.consent input { flex: none; width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--red); }
.consent label { flex: 1; min-width: 0; cursor: pointer; }
.consent a { color: inherit; }
.consent .field__err { flex-basis: 100%; margin: 0 0 0 28px; }
.contact .consent { color: var(--on-2); }

/* ---------- 01 Hero: светлый рендер (согласован 17.11) ---------- */
.hero__blur { display: none; position: absolute; inset: 0; pointer-events: none; }
.hero__blur i { position: absolute; inset: 0; }
/* Desktop: рендер закрывает весь первый экран (cover), слева мягкое постепенное размытие под текстом */
@media (min-width: 961px) {
  .hero { background: var(--night); }
  .hero::before { background: linear-gradient(90deg, rgba(11,15,21,.5) 0, rgba(11,15,21,.32) 26%, rgba(11,15,21,.08) 46%, rgba(11,15,21,0) 58%), linear-gradient(180deg, rgba(11,15,21,.4) 0, rgba(11,15,21,0) 16%); }
  /* Ширина кадра = max(ширина экрана, высота блока × 16:9); высота блока = его min-height */
  .hero__scene {
    --w: max(100vw, calc(max(680px, min(100svh, 980px)) * 1.777));
    right: auto; bottom: auto; width: var(--w); height: auto;
    left: clamp(calc(100% - var(--w)), calc(50% - var(--w) * .62), 0px);
    top: calc(50% - var(--w) * .2814);
  }
  .hero__scene img { height: auto; -webkit-mask-image: none; mask-image: none; }
  .hero__blur { display: block; }
  .hero__blur i:nth-child(1) { -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); -webkit-mask-image: linear-gradient(90deg, #000 0, #000 26%, transparent 54%); mask-image: linear-gradient(90deg, #000 0, #000 26%, transparent 54%); }
  .hero__blur i:nth-child(2) { -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); -webkit-mask-image: linear-gradient(90deg, #000 0, #000 18%, transparent 42%); mask-image: linear-gradient(90deg, #000 0, #000 18%, transparent 42%); }
  .hero__blur i:nth-child(3) { -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); -webkit-mask-image: linear-gradient(90deg, #000 0, #000 8%, transparent 30%); mask-image: linear-gradient(90deg, #000 0, #000 8%, transparent 30%); }
  .hero__title, .hero__lead { text-shadow: 0 1px 18px rgba(8,11,16,.45); }
}
/* Tablet/phone: рендер целиком под текстом, фон блока в цвет неба на рендере */
@media (max-width: 960px) {
  .hero { background: linear-gradient(180deg, #5E6D84 0, #7687A1 45%, #8B9EBC 100%); }
  .hero::before { background: linear-gradient(180deg, rgba(15,21,29,.22) 0, rgba(15,21,29,0) 42%); }
  .hero__title, .hero__lead { text-shadow: 0 1px 14px rgba(10,14,20,.35); }
}

/* ---------- Pickers on phones: одна плашка и стрелки ---------- */
.pickbar { display: contents; }
.pickbar__btn { display: none; }
@media (max-width: 600px) {
  .pickbar { display: grid; grid-template-columns: 48px minmax(0, 1fr) 48px; gap: 8px; margin-bottom: 28px; }
  .pickbar .picker {
    display: block; overflow: visible; margin: 0; padding: 0; scroll-snap-type: none;
  }
  .pickbar .picker [role="tab"] { width: 100%; height: 100%; min-height: 104px; }
  .pickbar .picker [role="tab"][aria-selected="false"] { display: none; }
  .pickbar__btn {
    display: flex; align-items: center; justify-content: center; padding: 0;
    border: 1px solid var(--line); border-radius: 2px; background: rgba(255,255,255,.4); color: var(--ink);
    cursor: pointer; transition: background-color .2s, border-color .2s;
  }
  .pickbar__btn svg { width: 18px; height: 18px; }
  .pickbar__btn:active { background: var(--card); border-color: var(--ink); }
  .sec--dark .pickbar__btn { border-color: var(--line-d2); background: rgba(237,241,246,.03); color: var(--on); }
  .sec--dark .pickbar__btn:active { background: rgba(237,241,246,.1); border-color: var(--on); }
  .pickbar__count { grid-column: 2; margin-top: -2px; font-size: 13px; color: var(--ink-2); text-align: center; }
  .sec--dark .pickbar__count { color: var(--on-2); }
}
.pickbar__count { display: none; }
@media (max-width: 600px) { .pickbar__count { display: block; } }

/* FAQ: ответ из нескольких абзацев */
.acc details p:not(:last-child) { padding-bottom: 12px; }
.acc details strong { font-weight: 600; color: var(--ink); }
