/* ============ Rozma — main styles ============ */
:root {
  --bg: #dce3e9; --surface: #eef2f5; --ink: #0d1c2c; --ink-2: #47586a; --ink-3: #7d8b99;
  --line: rgba(13, 28, 44, .09); --blue: #0178b0; --blue-600: #17628f; --blue-50: #dde9f2; --orange: #f27a2e;
  --navy: #0c1a29;
  --r-xl: 32px; --r-lg: 26px; --r: 20px; --r-sm: 12px;
  --shadow: 0 30px 70px -28px rgba(16, 48, 84, .32), 0 2px 8px rgba(16, 48, 84, .05);
  --shadow-sm: 0 12px 30px -18px rgba(16, 48, 84, .35);
  --font-d: 'Unbounded', 'Arial Black', system-ui, sans-serif;
  --font: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --wrap: 1240px; --pad: clamp(20px, 5vw, 64px);
  --ease: cubic-bezier(.2, .75, .2, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body { margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.6; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, video, canvas, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; }
:focus-visible { outline: 3px solid rgba(27, 139, 214, .45); outline-offset: 3px; border-radius: 8px; }
.wrap { width: min(var(--wrap), 100% - var(--pad) * 2); margin-inline: auto; }

/* ---------- layers ---------- */
.sky { position: fixed; inset: 0; z-index: 0; background: linear-gradient(180deg, #98b2c7 0%, #b2c3d1 42%, #bfcbd6 70%, #c4cfd9 100%); }
#factory { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 1; pointer-events: none; transition: opacity .4s linear; }
main { position: relative; z-index: 2; }
.no-webgl .sky { background: linear-gradient(90deg, rgba(244, 247, 250, .95) 30%, rgba(244, 247, 250, .4)), url(../video/extrusion.jpg) center / cover; }
.no-webgl .step .card { opacity: 1; transform: none; }
main > section:not(.story), .footer { position: relative; z-index: 2; }
.header { z-index: 50; }

/* ---------- loader ---------- */
.loader { position: fixed; inset: 0; z-index: 100; display: grid; place-content: center; gap: 22px; background: #cdd7e0; transition: opacity .7s ease, visibility .7s; }
.loader__logo { width: 160px; aspect-ratio: 1134 / 355; background: url(../img/logo.svg) center / contain no-repeat; animation: pulse 1.4s ease-in-out infinite; }
.loader__bar { width: 150px; height: 3px; background: rgba(27, 139, 214, .15); border-radius: 3px; overflow: hidden; }
.loader__bar i { display: block; height: 100%; width: 40%; background: var(--blue); border-radius: 3px; animation: load 1.1s var(--ease) infinite; }
.is-loaded .loader { opacity: 0; visibility: hidden; }
@keyframes pulse { 50% { transform: scale(.96); opacity: .7; } }
@keyframes load { from { transform: translateX(-100%); } to { transform: translateX(260%); } }

/* ---------- buttons, pills, type ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 54px; padding: 0 28px; border-radius: 999px; font-weight: 700; font-size: 16px; letter-spacing: -.005em; transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .25s; white-space: nowrap; }
.btn--sm { height: 44px; padding: 0 20px; font-size: 15px; }
.btn--primary { background: var(--blue); color: #fff; box-shadow: 0 14px 30px -12px rgba(27, 139, 214, .7); }
.btn--primary:hover { background: var(--blue-600); transform: translateY(-2px); box-shadow: 0 18px 36px -12px rgba(27, 139, 214, .8); }
.btn--ghost { background: rgba(255, 255, 255, .78); color: var(--ink); box-shadow: inset 0 0 0 1.5px rgba(13, 28, 44, .1); backdrop-filter: blur(10px); }
.btn--ghost:hover { background: #fff; transform: translateY(-2px); }
.btn--white { background: #fff; color: var(--blue-600); }
.btn--block { width: 100%; }
.pill { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 10px; border-radius: 999px; background: rgba(255, 255, 255, .8); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .9), var(--shadow-sm); backdrop-filter: blur(10px); font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); }
.pill--dark { background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); color: #d8e3ee; }
.flag-ua { width: 22px; height: 15px; border-radius: 4px; background: linear-gradient(#0057b7 50%, #ffd700 50%); flex: none; }
.kicker { display: inline-flex; align-items: center; gap: 12px; font-size: 13px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--blue); margin-bottom: 18px; }
.kicker::before { content: ''; width: 26px; height: 2px; border-radius: 2px; background: currentColor; }
.h2 { font-family: var(--font-d); font-weight: 600; font-size: clamp(34px, 4.4vw, 64px); line-height: 1.04; letter-spacing: -.035em; }
.lead { font-size: clamp(17px, 1.35vw, 20px); color: var(--ink-2); max-width: 560px; }

/* ---------- header ---------- */
.header { position: fixed; top: 0; left: 0; right: 0; height: 78px; display: flex; align-items: center; gap: 32px; padding: 0 var(--pad); transition: background .35s, box-shadow .35s, height .35s; }
.header::before { content: ''; position: absolute; inset: 0 0 -40px; z-index: -1; pointer-events: none; background: linear-gradient(180deg, rgba(228, 234, 239, .92) 0%, rgba(228, 234, 239, .6) 55%, rgba(228, 234, 239, 0) 100%); transition: opacity .35s; }
.header.is-scrolled::before { opacity: 0; }
.header.is-scrolled { background: rgba(214, 222, 229, .85); backdrop-filter: blur(18px) saturate(1.6); box-shadow: 0 1px 0 var(--line); height: 68px; }
.header__logo { color: var(--blue); flex: none; }
.logo { width: 118px; height: auto; }
.logo--light { color: #fff; width: 150px; }
.nav { display: flex; gap: 30px; margin-left: auto; }
.nav a { font-size: 15px; font-weight: 700; color: var(--ink); position: relative; padding: 6px 0; transition: color .25s; }
.nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 2px; background: var(--blue); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.nav a:hover { color: var(--ink); }
.nav a:hover::after { transform: scaleX(1); }
.header__right { display: flex; align-items: center; gap: 16px; }
.langs { display: inline-flex; padding: 4px; border-radius: 999px; background: rgba(255, 255, 255, .7); box-shadow: inset 0 0 0 1px var(--line); }
.langs button { height: 32px; min-width: 40px; padding: 0 10px; border-radius: 999px; font-size: 12.5px; font-weight: 800; letter-spacing: .04em; color: var(--ink-3); transition: background .25s, color .25s; }
.langs button.is-active { background: var(--ink); color: #fff; }
.langs--dark { background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); }
.langs--dark button { color: #8fa3b8; }
.langs--dark button.is-active { background: #fff; color: var(--navy); }
.burger { display: none; width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, .8); box-shadow: inset 0 0 0 1px var(--line); place-content: center; gap: 6px; }
.burger span { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .3s var(--ease); }
.menu-open .burger span:first-child { transform: translateY(4px) rotate(45deg); }
.menu-open .burger span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* ---------- story (3D tour) ---------- */
.story { position: relative; }
.step { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: 110px var(--pad) 60px; }
.step--left { justify-content: flex-start; }
.step--right { justify-content: flex-end; }
.step--right .card { margin-right: 4vw; }
.step--left .card { margin-left: 2vw; }
.card { width: min(440px, 100%); padding: 34px 36px 36px; border-radius: var(--r-xl); background: rgba(238, 242, 245, .9); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .9), var(--shadow); opacity: 0; transform: translateY(40px) scale(.98); transition: opacity .7s ease, transform .9s var(--ease); }
.step.is-active .card { opacity: 1; transform: none; }
.card__k { font-size: 12.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--blue); }
.card__big { font-family: var(--font-d); font-weight: 600; font-size: clamp(38px, 3.9vw, 58px); line-height: 1; letter-spacing: -.04em; margin: 16px 0 14px; white-space: nowrap; background: linear-gradient(100deg, var(--ink) 30%, var(--blue) 110%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.card__big--2 { white-space: normal; font-size: clamp(27px, 2.5vw, 37px); line-height: 1.05; }
.card__t { font-size: 22px; font-weight: 800; letter-spacing: -.01em; line-height: 1.25; margin-bottom: 10px; }
.card__p { color: var(--ink-2); font-size: 16px; }

.step--hero { align-items: center; }
.step--hero::before { content: ''; position: absolute; inset: 0 0 -30vh; pointer-events: none; background: linear-gradient(90deg, rgba(228, 234, 239, .95) 0%, rgba(228, 234, 239, .88) 34%, rgba(228, 234, 239, .5) 47%, rgba(228, 234, 239, 0) 62%);
  /* fades out downwards, so scrolling never reveals a hard edge */
  -webkit-mask-image: linear-gradient(180deg, #000 0, #000 62%, transparent 100%); mask-image: linear-gradient(180deg, #000 0, #000 62%, transparent 100%); }
.hero { position: relative; max-width: 760px; }
.hero .pill { margin-bottom: 26px; }
.hero__title { font-family: var(--font-d); font-weight: 600; font-size: clamp(40px, 5.2vw, 86px); line-height: 1; letter-spacing: -.045em; }
.hero__title span { color: var(--blue); }
.hero__text { margin-top: 26px; max-width: 560px; font-size: clamp(17px, 1.35vw, 20px); color: #26384a; font-weight: 500; }
.hero__cta { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 14px; }
.hero > * { animation: rise 1s var(--ease) both; }
.hero > :nth-child(2) { animation-delay: .08s; } .hero > :nth-child(3) { animation-delay: .16s; } .hero > :nth-child(4) { animation-delay: .24s; }
.is-loading .hero > * { animation-play-state: paused; }
@keyframes rise { from { opacity: 0; transform: translateY(30px); } }
.scroll-hint { position: absolute; left: var(--pad); bottom: 30px; display: flex; align-items: center; gap: 12px; padding: 8px 16px 8px 10px; border-radius: 999px; background: rgba(240, 244, 247, .88); box-shadow: 0 8px 24px -12px rgba(10, 30, 50, .45); backdrop-filter: blur(8px); font-size: 13px; font-weight: 700; color: var(--ink); }
.scroll-hint kbd { display: inline-grid; place-content: center; min-width: 22px; height: 22px; padding: 0 5px; margin: 0 1px; border-radius: 6px; background: rgba(255, 255, 255, .75); box-shadow: inset 0 0 0 1px rgba(13, 28, 44, .15), 0 2px 0 rgba(13, 28, 44, .12); font: 800 12px var(--font); color: var(--ink); }
.scroll-hint__mouse { width: 24px; height: 36px; border-radius: 12px; box-shadow: inset 0 0 0 2px var(--ink-2); position: relative; }
.scroll-hint__mouse::after { content: ''; position: absolute; left: 50%; top: 8px; width: 4px; height: 7px; margin-left: -2px; border-radius: 2px; background: var(--blue); animation: wheel 1.6s ease-in-out infinite; }
@keyframes wheel { 60% { transform: translateY(9px); opacity: 0; } 61% { transform: none; opacity: 0; } }
.step--outro { min-height: 70vh; }

.rail { position: fixed; right: 26px; top: 50%; transform: translateY(-50%); z-index: 40; display: flex; flex-direction: column; gap: 4px; opacity: 0; pointer-events: none; transition: opacity .4s; }
.in-story .rail { opacity: 1; pointer-events: auto; }
.rail button { display: flex; align-items: center; justify-content: flex-end; flex-direction: row-reverse; gap: 12px; height: 28px; padding: 0 4px; }
.rail i { width: 8px; height: 8px; border-radius: 50%; background: rgba(13, 28, 44, .55); box-shadow: 0 0 0 2px rgba(255, 255, 255, .85); transition: transform .3s var(--ease), background .3s; flex: none; }
.rail span { font-size: 12.5px; font-weight: 800; letter-spacing: .04em; color: var(--ink); background: rgba(255, 255, 255, .85); padding: 3px 10px; border-radius: 999px; opacity: 0; transform: translateX(6px); transition: opacity .3s, transform .3s var(--ease); white-space: nowrap; }
.rail button:hover span, .rail button.is-active span { opacity: 1; transform: none; }
.rail button.is-active i { background: var(--blue); transform: scale(1.6); }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .8s ease, transform 1s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- world ---------- */
.world { padding: 120px 0 80px; background: linear-gradient(180deg, rgba(196, 207, 217, 0) 0%, #d3dce4 18%, var(--bg) 100%); }
.world__inner { display: grid; grid-template-columns: 5fr 7fr; align-items: center; gap: 40px; }
.world__text .lead { margin-top: 22px; }
.places { list-style: none; margin: 34px 0 0; padding: 0; display: grid; gap: 10px; }
.places li { display: flex; align-items: baseline; gap: 14px; padding: 14px 18px; border-radius: 16px; background: rgba(255, 255, 255, .75); box-shadow: inset 0 0 0 1px var(--line); max-width: 420px; }
.places b { font-size: 12.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--blue); min-width: 120px; }
.places span { font-weight: 600; }
/* delivery map */
.world__map { position: relative; width: 100%; max-width: 820px; justify-self: end; aspect-ratio: 1000 / 666; border-radius: var(--r-xl); background: radial-gradient(120% 100% at 70% 90%, #c9dceb 0%, #d9e5ee 55%, #e3eaf0 100%); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .7), var(--shadow); overflow: visible; }
.map__svg { display: block; width: 100%; height: 100%; border-radius: inherit; overflow: hidden; }
.map__c { fill: #eef2f5; stroke: #c3cfda; stroke-width: 1; stroke-linejoin: round; transition: fill .3s; }
.map__c--partner { fill: #d3e5f3; stroke: #98bedc; cursor: pointer; }
.map__c--partner:hover, .map__c--partner.is-on { fill: #bcd8ee; }
.map__c--partner.map__c--quiet { cursor: default; fill: #d3e5f3; }
.mpt--quiet { pointer-events: none; cursor: default; }
.mpt--quiet .mpt__ring { display: none; }
.map__ua { stroke: #fff; stroke-width: 1.4; stroke-linejoin: round; }
.world__map { --mk: 1; --mkl: 1; }
.map__label { font: 800 calc(17px * var(--mk)) var(--font); letter-spacing: .14em; text-transform: uppercase; fill: #5f7c95; pointer-events: none; }
.map__label--big { font: 600 calc(40px * var(--mkl, 1)) var(--font-d); letter-spacing: .08em; fill: #fff; opacity: .95; }
.map__label--small { font-size: calc(13px * var(--mk)); letter-spacing: .1em; }
.map__label--sea { font: italic 600 calc(19px * var(--mk)) var(--font); letter-spacing: .1em; text-transform: none; fill: #7d9ab2; }
.map__routes { pointer-events: none; }
.map__route { fill: none; stroke: var(--blue-600); stroke-width: calc(2.4px * var(--mk)); stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; }
.map__route--casing { stroke: #fff; stroke-width: calc(6px * var(--mk)); opacity: .85; }
.is-drawn .map__route { animation: mroute 1.4s var(--ease) var(--d) forwards; }
@keyframes mroute { to { stroke-dashoffset: 0; } }
.map__parcel { fill: #fff; stroke: var(--blue); stroke-width: 2.4; opacity: 0; }
.is-drawn .map__parcel { animation: mfade .6s 1.4s forwards; }
@keyframes mfade { to { opacity: 1; } }
.mpt { cursor: pointer; outline: none; }
.mpt__hit { fill: transparent; }
.mpt__dot { fill: var(--blue-600); stroke: #fff; stroke-width: 3; transition: transform .25s var(--ease); }
.mpt--hub .mpt__dot { fill: #fff; stroke: var(--blue-600); stroke-width: 4; }
.mpt--office .mpt__dot { fill: #fff; stroke: var(--blue-600); stroke-width: 3.5; }
.mpt--office .mpt__ring { stroke: #fff; opacity: .9; }
.mpt__ring { fill: none; stroke: var(--blue); stroke-width: 2; opacity: .5; transform-box: fill-box; transform-origin: center; animation: mpulse 2.4s ease-out infinite; }
.mpt--hub .mpt__ring { stroke: #fff; opacity: .9; }
@keyframes mpulse { from { transform: scale(1); opacity: .6; } to { transform: scale(2.6); opacity: 0; } }
.mpt:hover .mpt__dot, .mpt.is-on .mpt__dot, .mpt:focus-visible .mpt__dot { transform: scale(1.35); }
.mpt:focus-visible .mpt__hit { stroke: var(--blue); stroke-width: 2; }
.mtip { position: absolute; z-index: 3; min-width: 220px; max-width: 280px; padding: 14px 16px 15px; border-radius: 16px; background: rgba(255, 255, 255, .97); box-shadow: 0 18px 40px -16px rgba(10, 30, 50, .45), inset 0 0 0 1px rgba(13, 28, 44, .06); transform: translate(-50%, calc(-100% - 18px)) scale(.96); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .2s, transform .25s var(--ease), visibility .2s; font-size: 14px; line-height: 1.45; }
.mtip.is-on { opacity: 1; visibility: visible; pointer-events: auto; transform: translate(-50%, calc(-100% - 18px)); }
.mtip.is-below, .mtip.is-below.is-on { transform: translate(-50%, 22px); }
.mtip.is-left, .mtip.is-left.is-on { transform: translate(-88%, calc(-100% - 18px)); }
.mtip.is-right, .mtip.is-right.is-on { transform: translate(-12%, calc(-100% - 18px)); }
.mtip.is-below.is-left { transform: translate(-88%, 22px); }
.mtip.is-below.is-right { transform: translate(-12%, 22px); }
.mtip b { display: block; font-size: 16px; font-weight: 800; color: var(--ink); }
.mtip__sub { display: block; color: var(--ink-2); font-size: 13px; margin: 2px 0 8px; }
.mtip__rows { display: grid; gap: 2px; }
.mtip__rows a, .mtip__rows span { font-weight: 700; color: var(--blue-600); }
.mtip__rows a:hover { text-decoration: underline; }
.mtip small { display: block; margin-top: 8px; font-size: 11.5px; font-weight: 700; color: var(--ink-3); letter-spacing: .02em; }
.world__hint { position: absolute; bottom: -34px; left: 50%; transform: translateX(-50%); white-space: nowrap; font-size: 12.5px; font-weight: 700; color: var(--ink-3); letter-spacing: .04em; }

/* ---------- numbers ---------- */
.numbers { padding: 60px 0 40px; }
.numbers__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.stat { padding: 30px 32px; border-radius: var(--r-lg); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.stat b { display: block; font-family: var(--font-d); font-weight: 600; font-size: clamp(38px, 4vw, 58px); letter-spacing: -.04em; line-height: 1.05; color: var(--ink); }
.stat:nth-child(odd) b { color: var(--blue); }
.stat span { display: block; margin-top: 8px; color: var(--ink-2); font-weight: 600; }
.numbers__grid .stat:nth-child(2) { transition-delay: .06s; } .numbers__grid .stat:nth-child(3) { transition-delay: .12s; }
.numbers__grid .stat:nth-child(5) { transition-delay: .06s; } .numbers__grid .stat:nth-child(6) { transition-delay: .12s; }

/* ---------- section head ---------- */
.section-head { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; margin-bottom: 44px; }
.section-head > div:last-child { display: grid; gap: 22px; justify-items: start; }

/* ---------- products ---------- */
.products { padding: 110px 0 60px; }
.pgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pcard { display: flex; flex-direction: column; padding: 14px 14px 28px; border-radius: var(--r-xl); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.pcard:hover { transform: translateY(-6px); box-shadow: inset 0 0 0 1px rgba(27, 139, 214, .2), var(--shadow); }
.pcard__img { aspect-ratio: 4 / 3; border-radius: 22px; overflow: hidden; background: radial-gradient(120% 90% at 50% 20%, #eef2f6 0%, #d9e2ea 100%); margin-bottom: 22px; }
.pcard__img img { width: 100%; height: 100%; object-fit: contain; opacity: 0; transform: scale(.94); transition: opacity .6s, transform .8s var(--ease); }
.pcard__img img.is-ready, .pcard__img img:not([data-thumb]) { opacity: 1; transform: none; }
.pcard:hover .pcard__img img { transform: scale(1.05) rotate(-1deg); }
.pcard > .tag, .pcard > h3, .pcard > p, .pcard > .more, .pcard > div > * { margin-inline: 14px; }
.tag { align-self: flex-start; display: inline-block; padding: 5px 12px; border-radius: 999px; background: var(--blue-50); color: var(--blue-600); font-size: 12.5px; font-weight: 800; letter-spacing: .02em; }
.pcard h3 { font-size: 23px; font-weight: 800; letter-spacing: -.015em; margin-top: 14px; }
.pcard p { color: var(--ink-2); font-size: 15.5px; margin-top: 8px; flex: 1; }
.more { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; font-weight: 800; color: var(--blue); font-size: 15px; }
.more::after { content: '→'; transition: transform .3s var(--ease); }
.pcard:hover .more::after { transform: translateX(5px); }
.pcard--wide { grid-column: span 2; display: grid; grid-template-columns: 1.3fr 1fr; align-items: stretch; gap: 10px; padding: 14px 14px 14px; }
.pcard--wide .pcard__img { margin: 0; aspect-ratio: auto; height: 100%; min-height: 240px; }
.pcard--wide > div { justify-content: center; }
.pcard--wide .pcard__img img { object-fit: cover; }   /* tall picture box: fill it instead of leaving empty bands */
.pcard--wide p { flex: none; }
@media (max-width: 560px) { .pdlg__gallery { grid-template-columns: repeat(2, 1fr); } }
.pcard--wide > div { display: flex; flex-direction: column; padding: 20px 26px; }
.pcard--wide > div > * { margin-inline: 0; }

/* product details panel (side sheet) */
.pdlg { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: transparent; color: var(--ink); overflow: hidden; }
.pdlg::backdrop { background: rgba(13, 28, 44, .42); backdrop-filter: blur(3px); animation: pdlgFade .3s ease both; }
.pdlg.is-closing::backdrop { animation: pdlgFade .26s ease reverse both; }
.pdlg__sheet { position: absolute; top: 12px; right: 12px; bottom: 12px; width: min(540px, calc(100% - 24px)); overflow-y: auto; overscroll-behavior: contain; padding: 22px 30px 30px; border-radius: var(--r-xl); background: var(--surface); box-shadow: 0 40px 90px -30px rgba(10, 30, 50, .6); animation: pdlgIn .45s var(--ease) both; }
.pdlg.is-closing .pdlg__sheet { animation: pdlgOut .26s ease both; }
@keyframes pdlgFade { from { opacity: 0; } }
@keyframes pdlgIn { from { transform: translateX(40px); opacity: 0; } }
@keyframes pdlgOut { to { transform: translateX(40px); opacity: 0; } }
.pdlg__x { position: sticky; top: 0; float: right; z-index: 2; width: 42px; height: 42px; margin: 0 -8px 0 0; border-radius: 50%; background: #fff; box-shadow: var(--shadow-sm, 0 4px 14px -6px rgba(10, 30, 50, .35)); font-size: 26px; line-height: 1; color: var(--ink); transition: transform .2s; margin-bottom: -42px; transform-origin: center; }
.pdlg__x { top: 10px; margin-right: 2px; }
.pdlg__x:hover { transform: rotate(90deg); }
.pdlg__img { position: relative; aspect-ratio: 16 / 10; margin: 0 0 22px; border-radius: 22px; clip-path: inset(0 round 22px); background: radial-gradient(120% 90% at 50% 20%, #f3f6f9 0%, #d9e2ea 100%); }
.pdlg__img img { width: 100%; height: 100%; object-fit: contain; }
.pdlg__img.is-photo { background: #0d1216; }
.pdlg__img.is-photo img { object-fit: cover; }
.pdlg__gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 0; padding: 0; list-style: none; }
.pdlg__gallery:empty, .pdlg__range:empty, .pdlg__more:empty { display: none; }
.pdlg__gallery li { display: flex; flex-direction: column; gap: 6px; padding: 8px 8px 10px; border-radius: 14px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.pdlg__gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; border-radius: 9px; background: radial-gradient(120% 90% at 50% 20%, #f3f6f9 0%, #e1e8ee 100%); padding: 6px; }
.pdlg__gallery span { font-size: 12.5px; font-weight: 700; line-height: 1.25; color: var(--ink-2); }
.pdlg__more { margin-top: 10px; font-size: 13px; color: var(--ink-3); }
.pdlg__soon { position: absolute; left: 14px; bottom: 12px; padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, .85); font-size: 11.5px; font-weight: 700; color: var(--ink-3); }
.pdlg__t { font-family: var(--font-d); font-weight: 600; font-size: clamp(26px, 3vw, 34px); line-height: 1.1; letter-spacing: -.03em; margin: 14px 0 12px; }
.pdlg__intro { color: var(--ink-2); font-size: 16px; }
.pdlg__h { margin: 26px 0 10px; font-size: 12.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--blue); }
.pdlg__specs { margin: 0; border-radius: 16px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.pdlg__specs div { display: grid; grid-template-columns: 38% 1fr; gap: 12px; padding: 11px 16px; }
.pdlg__specs div + div { border-top: 1px solid var(--line); }
.pdlg__specs dt { color: var(--ink-3); font-size: 14px; font-weight: 600; }
.pdlg__specs dd { margin: 0; font-size: 15px; font-weight: 700; }
.pdlg__range { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.pdlg__range li { padding: 7px 13px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); font-size: 14px; font-weight: 600; }
.pdlg__cta { position: sticky; bottom: -30px; margin: 28px -30px -30px; padding: 18px 30px 26px; background: linear-gradient(180deg, rgba(238, 242, 245, 0), var(--surface) 26%); }
.pdlg__note { margin-top: 10px; font-size: 13px; color: var(--ink-3); text-align: center; }
html:has(.pdlg[open]) { overflow: hidden; }
.pdlg:focus, .pdlg:focus-visible { outline: none; }
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 200; padding: 11px 20px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 14.5px; font-weight: 700; box-shadow: 0 16px 36px -14px rgba(10, 30, 50, .6); transform: translate(-50%, 20px); opacity: 0; pointer-events: none; transition: opacity .25s, transform .35s var(--ease); }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* certificates */
.certs { padding: 40px 0 110px; }
.certs__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; margin-top: 46px; }
.cert { margin: 0; padding: 14px 14px 20px; border-radius: var(--r-lg); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); transition: transform .5s var(--ease), box-shadow .5s; }
.cert:hover { transform: translateY(-6px); box-shadow: inset 0 0 0 1px rgba(27, 139, 214, .2), var(--shadow); }
.cert__doc { position: relative; display: flex; flex-direction: column; align-items: center; gap: 9px; aspect-ratio: 1 / 1.414; padding: 16% 14% 0; border-radius: 14px; background: linear-gradient(180deg, #fff, #f4f7f9); box-shadow: 0 10px 26px -16px rgba(10, 30, 50, .5), inset 0 0 0 1px rgba(13, 28, 44, .06); overflow: hidden; }
.cert__doc::before { content: ''; position: absolute; inset: 7px; border: 1.5px solid rgba(31, 120, 182, .22); border-radius: 9px; pointer-events: none; }
.cert__logo { width: 42%; aspect-ratio: 3.2; border: 2px solid rgba(31, 120, 182, .45); border-radius: 7px; margin-bottom: 10%; }
.cert__l { display: block; width: 100%; height: 6px; border-radius: 3px; background: #e3e9ee; }
.cert__l.w90 { width: 90%; } .cert__l.w80 { width: 80%; } .cert__l.w70 { width: 70%; } .cert__l.w60 { width: 60%; }
.cert__seal { position: absolute; right: 14%; bottom: 10%; width: 26%; aspect-ratio: 1; border-radius: 50%; border: 2px dashed rgba(31, 120, 182, .4); background: radial-gradient(circle, rgba(31, 120, 182, .1) 0 45%, transparent 46%); }
.cert figcaption { margin: 16px 6px 0; }
.cert figcaption b { display: block; font-size: 17px; font-weight: 800; }
.cert figcaption span { font-size: 14px; color: var(--ink-3); }
.cert { display: block; color: inherit; }
.certs__grid:not(.is-open) .cert:nth-child(n+5) { display: none; }
.certs__grid.is-open .cert:nth-child(n+5) { animation: certIn .5s var(--ease) both; }
@keyframes certIn { from { opacity: 0; transform: translateY(18px); } }
.certs__more { display: flex; align-items: center; gap: 10px; margin: 30px auto 0; padding: 13px 22px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px var(--line), 0 10px 26px -18px rgba(10, 30, 50, .5); font-weight: 800; font-size: 15px; color: var(--ink); transition: transform .25s; }
.certs__more:hover { transform: translateY(-2px); }
.certs__more b { color: var(--ink-3); font-weight: 700; }
.certs__more i { width: 9px; height: 9px; margin-top: -4px; border-right: 2.5px solid var(--blue); border-bottom: 2.5px solid var(--blue); transform: rotate(45deg); transition: transform .35s var(--ease), margin .35s; }
.certs__more[aria-expanded="true"] i { transform: rotate(-135deg); margin-top: 4px; }
.certs__more[aria-expanded="true"] b { display: none; }
.cert__doc img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.cert__doc::before { z-index: 1; }
.cert figcaption b { font-size: 15.5px; line-height: 1.25; }
@media (max-width: 900px) { .certs__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 30px; } .certs { padding-bottom: 80px; } }

/* ---------- real footage ---------- */
.real { padding: 80px 0; }
.bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: clamp(170px, 17vw, 240px); gap: 16px; }
.clip { position: relative; margin: 0; border-radius: var(--r-lg); overflow: hidden; background: #dfe7ef; }
.clip video { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.clip:hover video { transform: scale(1.05); }
.clip::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8, 20, 33, 0) 55%, rgba(8, 20, 33, .55)); pointer-events: none; }
.clip figcaption { position: absolute; left: 18px; bottom: 14px; z-index: 1; color: #fff; font-weight: 800; font-size: 15px; letter-spacing: .01em; }
.clip--a { grid-column: span 2; grid-row: span 2; }
.clip--f, .clip--g { grid-column: span 2; }
.clip--a figcaption { font-size: 20px; left: 24px; bottom: 20px; }

/* ---------- history ---------- */
.history { position: relative; height: 320vh; background: var(--bg); }
.history__pin { position: sticky; top: 0; height: 100vh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; gap: 56px; }
.history__head { display: grid; grid-template-columns: auto 1fr; align-items: end; column-gap: 60px; }
.history__head .kicker { grid-column: 1 / -1; }
.history__head .lead { justify-self: end; }
.history__track { position: relative; display: flex; gap: 22px; padding: 40px max(var(--pad), calc((100vw - var(--wrap)) / 2)) 10px; will-change: transform; width: max-content; }
.history__line { position: absolute; left: 0; right: 0; top: 12px; height: 2px; background: rgba(27, 139, 214, .15); }
.history__line i { display: block; height: 100%; width: 100%; background: var(--blue); transform-origin: left; transform: scaleX(var(--hp, 0)); }
.event { position: relative; width: 300px; flex: none; padding: 28px 28px 30px; border-radius: var(--r-lg); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.event::before { content: ''; position: absolute; top: -34px; left: 28px; width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 3px var(--blue); }
.event b { display: block; font-family: var(--font-d); font-weight: 600; font-size: 46px; letter-spacing: -.04em; color: var(--blue); line-height: 1; margin-bottom: 16px; }
.event p { color: var(--ink-2); font-weight: 500; }
.event--now { background: var(--blue); }
.event--now b, .event--now p { color: #fff; }
.event--now::before { background: var(--blue); box-shadow: 0 0 0 6px rgba(27, 139, 214, .2); }

/* ---------- suppliers ---------- */
.suppliers { padding: 70px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); text-align: center; }
.suppliers__row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 28px 40px; margin-top: 18px; }
.sup { font-family: var(--font-d); font-weight: 600; font-size: clamp(18px, 2vw, 26px); color: #a1aebb; letter-spacing: .04em; transition: color .3s; }
.sup:hover { color: var(--ink); }
a.sup { position: relative; display: inline-flex; align-items: flex-start; gap: 4px; padding: 6px 4px; transition: color .3s, transform .35s var(--ease); }
a.sup i { font-style: normal; font-family: var(--font); font-size: .55em; font-weight: 800; color: var(--blue); opacity: 0; transform: translate(-4px, 4px); transition: opacity .3s, transform .35s var(--ease); }
a.sup::after { content: ''; position: absolute; left: 4px; right: 4px; bottom: 0; height: 2px; border-radius: 2px; background: var(--blue); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
a.sup:hover, a.sup:focus-visible { color: var(--blue); transform: translateY(-3px); }
a.sup:hover i, a.sup:focus-visible i { opacity: 1; transform: none; }
a.sup:hover::after, a.sup:focus-visible::after { transform: scaleX(1); }
.sup--telko { text-transform: none; letter-spacing: 0; font-family: var(--font); font-weight: 800; }

/* ---------- partner ---------- */
.partner { padding: 110px 0; background: radial-gradient(120% 120% at 0% 0%, #2a6f9e 0%, #215f8a 45%, #183f5e 100%); color: #fff; overflow: hidden; }
.partner__inner { display: grid; grid-template-columns: 1fr 1.05fr; gap: 60px; align-items: start; }
.partner .kicker { color: #bfe2fb; }
.partner .lead { color: #dcefff; margin-top: 22px; }
.checks { list-style: none; padding: 0; margin: 34px 0 0; display: grid; gap: 14px; }
.checks li { display: flex; gap: 14px; align-items: flex-start; font-weight: 600; }
.checks li::before { content: ''; flex: none; width: 24px; height: 24px; margin-top: 1px; border-radius: 50%; background: rgba(255, 255, 255, .16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 12.5l3.2 3.2L17 9' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat; }
.form { padding: 34px; border-radius: var(--r-xl); background: #fff; color: var(--ink); box-shadow: 0 40px 80px -30px rgba(4, 30, 60, .55); display: grid; gap: 16px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label > span, .chips legend { display: block; font-size: 13px; font-weight: 800; color: var(--ink-2); margin-bottom: 7px; letter-spacing: .01em; }
.form input:not([type=checkbox]), .form select, .form textarea { width: 100%; height: 50px; padding: 0 16px; border-radius: 14px; border: 1.5px solid #dde5ee; background: #f7f9fb; font: inherit; font-size: 16px; color: var(--ink); transition: border-color .2s, background .2s, box-shadow .2s; }
.form textarea { height: auto; padding: 14px 16px; resize: vertical; min-height: 96px; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--blue); background: #fff; box-shadow: 0 0 0 4px rgba(27, 139, 214, .14); }
.form .is-invalid { border-color: #e2403a !important; }
.chips { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips legend { width: 100%; padding: 0; }
.chips label { position: relative; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips label span { display: inline-block; margin: 0; padding: 8px 14px; border-radius: 999px; font-size: 14px; font-weight: 700; color: var(--ink-2); background: #f1f5f9; box-shadow: inset 0 0 0 1.5px #e1e8ef; cursor: pointer; transition: all .2s; }
.chips input:checked + span { background: var(--blue-50); color: var(--blue-600); box-shadow: inset 0 0 0 1.5px var(--blue); }
.chips input:focus-visible + span { outline: 3px solid rgba(27, 139, 214, .45); }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--ink-2); cursor: pointer; }
.consent input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--blue); flex: none; }
.consent span { margin: 0 !important; font-weight: 500 !important; font-size: 14px !important; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form__status { min-height: 1.4em; font-weight: 700; font-size: 15px; }
.form__status.is-ok { color: #13915a; }
.form__status.is-err { color: #d23a30; }

/* ---------- footer ---------- */
.footer { background: var(--navy); color: #b9c7d6; padding: 80px 0 30px; }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer__brand { display: grid; gap: 22px; align-content: start; justify-items: start; }
.footer h4 { font-size: 12.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #6f87a0; margin-bottom: 8px; }
.footer__col p { margin-bottom: 24px; color: #e3ebf3; font-weight: 500; }
.footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.socials { display: flex; gap: 18px; font-weight: 700; font-size: 15px; }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-top: 50px; padding-top: 26px; border-top: 1px solid rgba(255, 255, 255, .08); font-size: 14px; color: #6f87a0; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .nav { gap: 20px; }
  .header .btn--sm { display: none; }
}
@media (max-width: 900px) {
  body { font-size: 16px; }
  .nav { position: fixed; inset: 0; z-index: -1; flex-direction: column; justify-content: center; align-items: center; gap: 10px; background: rgba(244, 247, 250, .97); backdrop-filter: blur(10px); opacity: 0; pointer-events: none; transition: opacity .35s; margin: 0; }
  .nav a { font-family: var(--font-d); font-size: 28px; font-weight: 600; color: var(--ink); }
  .menu-open .nav { opacity: 1; pointer-events: auto; }
  .burger { display: grid; }
  .header__right { margin-left: auto; }
  .step { align-items: flex-end; padding: 90px 16px 7vh; }
  .step--left, .step--right { justify-content: center; }
  .step--right .card, .step--left .card { margin: 0; }
  .card { padding: 24px 24px 26px; }
  .step--hero { align-items: flex-end; padding-bottom: 14vh; }
  .step--hero::before { inset: 0; background: linear-gradient(0deg, rgba(228, 234, 239, .95) 0%, rgba(228, 234, 239, .85) 50%, rgba(228, 234, 239, 0) 78%); -webkit-mask-image: linear-gradient(0deg, #000 55%, transparent 80%); mask-image: linear-gradient(0deg, #000 55%, transparent 80%); }
  .scroll-hint { display: none; }
  .rail { display: none; }
  .world__inner { grid-template-columns: 1fr; }
  .world__map { justify-self: stretch; }
  .world__hint { white-space: normal; width: 100%; text-align: center; }
  .numbers__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .stat { padding: 20px 18px; }
  .stat b { font-size: clamp(24px, 7.4vw, 40px); white-space: nowrap; }
  .stat b[data-unit] { font-size: clamp(20px, 6vw, 34px); }   /* '75 000 m²' is longer: keep it inside the card */
  .stat span { font-size: 14px; line-height: 1.4; }
  .section-head { grid-template-columns: 1fr; gap: 18px; }
  .pgrid { grid-template-columns: 1fr 1fr; }
  .pcard--wide { grid-column: auto; grid-template-columns: minmax(0, 1fr); gap: 0; padding: 14px 14px 28px; }
  .pcard--wide .pcard__img { aspect-ratio: 4 / 3; height: auto; min-height: 0; margin-bottom: 22px; }
  .pcard--wide > div { padding: 0 14px; }
  .bento { grid-template-columns: 1fr 1fr; grid-auto-rows: 160px; }
  .clip--a { grid-column: span 2; grid-row: span 2; }
  .clip--f, .clip--g { grid-column: span 1; }
  .history { height: auto; }
  .history__pin { position: static; height: auto; padding: 90px 0; }
  .history__head { grid-template-columns: 1fr; }
  .history__head .lead { justify-self: start; margin-top: 16px; }
  .history__track { width: auto; overflow-x: auto; scroll-snap-type: x mandatory; transform: none !important; padding-bottom: 20px; }
  .event { width: 78vw; scroll-snap-align: center; }
  .history__line { display: none; }
  .event::before { display: none; }
  .partner__inner { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .pgrid { grid-template-columns: 1fr; }
  .form { padding: 22px; }
  .form__row { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
  .header { gap: 12px; }
  .langs button { min-width: 34px; padding: 0 7px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
/* ---------- privacy policy page ---------- */
.legal-page { background: var(--bg); }
.legal-bar { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; padding: 14px var(--pad); background: rgba(220, 227, 233, .88); backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--line); }
.legal-bar__logo { color: var(--blue); }
.legal-bar__logo .logo { width: 96px; height: auto; display: block; }
.legal { max-width: 780px; padding-top: 56px; padding-bottom: 110px; }
.legal__back { display: inline-block; margin-bottom: 26px; font-weight: 700; color: var(--blue); }
.legal h1 { font-family: var(--font-d); font-weight: 600; font-size: clamp(32px, 4.6vw, 54px); line-height: 1.05; letter-spacing: -.035em; }
.legal__date { margin: 12px 0 34px; color: var(--ink-3); font-weight: 600; }
.legal h2 { margin: 34px 0 10px; font-size: 20px; font-weight: 800; letter-spacing: -.01em; }
.legal p { color: var(--ink-2); margin: 0 0 12px; }
.legal p a { color: var(--blue-600); font-weight: 700; }
.footer__legal { margin-left: 10px; text-decoration: underline; text-underline-offset: 3px; opacity: .85; }
.consent a { text-decoration: underline; text-underline-offset: 2px; }
/* ---------- catalogue page ---------- */
.cat { padding-top: 46px; padding-bottom: 110px; }
.cat__head { display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: end; }
.cat h1 { font-family: var(--font-d); font-weight: 600; font-size: clamp(34px, 5vw, 64px); line-height: 1.02; letter-spacing: -.035em; }
.cat__lead { margin-top: 14px; max-width: 560px; color: var(--ink-2); font-size: 17px; }
.cat__lang { margin-top: 8px; color: var(--ink-3); font-size: 14px; font-weight: 600; }
.cat__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.cat__actions small { opacity: .7; font-weight: 600; margin-left: 4px; }
.cat__toc { position: sticky; top: 66px; z-index: 5; display: flex; gap: 8px; overflow-x: auto; margin: 34px calc(var(--pad) * -1) 26px; padding: 10px var(--pad); background: rgba(220, 227, 233, .88); backdrop-filter: blur(10px); scrollbar-width: none; }
.cat__toc::-webkit-scrollbar { display: none; }
.cat__toc a { flex: none; padding: 8px 14px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); font-size: 14px; font-weight: 700; color: var(--ink); transition: background .2s, color .2s; }
.cat__toc a:hover { background: var(--blue); color: #fff; }
.cat__pages { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.cpage { margin: 0; scroll-margin-top: 130px; }
.cpage button { display: block; width: 100%; padding: 0; border-radius: 16px; overflow: hidden; background: #fff; box-shadow: 0 18px 40px -26px rgba(10, 30, 50, .55), inset 0 0 0 1px var(--line); cursor: zoom-in; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.cpage button:hover { transform: translateY(-4px); box-shadow: 0 26px 50px -26px rgba(10, 30, 50, .6), inset 0 0 0 1px var(--line); }
.cpage img { display: block; width: 100%; height: auto; aspect-ratio: 1; }
.cpage figcaption { margin-top: 8px; font-size: 13px; font-weight: 600; color: var(--ink-3); text-align: center; }
.cview { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(9, 18, 28, .94); color: #fff; overflow: hidden; }
.cview::backdrop { background: transparent; }
.cview__bar { position: absolute; top: 0; left: 0; right: 0; z-index: 3; display: flex; align-items: center; gap: 10px; padding: 12px 16px; }
.cview__n { margin-right: auto; font-weight: 700; font-size: 14px; opacity: .85; }
.cview__btn { width: 42px; height: 42px; border-radius: 50%; background: rgba(255, 255, 255, .12); color: #fff; font-size: 24px; line-height: 1; }
.cview__btn:hover { background: rgba(255, 255, 255, .24); }
.cview__stage { position: absolute; inset: 64px 0 0; overflow: auto; display: grid; place-items: center; padding: 0 70px 20px; overscroll-behavior: contain; }
.cview__stage img { max-width: 100%; max-height: calc(100vh - 90px); border-radius: 8px; background: #fff; cursor: zoom-in; }
.cview.is-zoom .cview__stage { place-items: start; padding: 0; }
.cview.is-zoom .cview__stage img { max-width: none; max-height: none; width: max(1500px, 160vw); cursor: zoom-out; border-radius: 0; }
.cview.is-zoom .cview__zoom { background: var(--blue); }
.cview__nav { position: absolute; top: 50%; z-index: 2; width: 52px; height: 52px; margin-top: -26px; border-radius: 50%; background: rgba(255, 255, 255, .14); color: #fff; font-size: 34px; line-height: 1; }
.cview__nav:hover:not(:disabled) { background: rgba(255, 255, 255, .28); }
.cview__nav:disabled { opacity: .2; }
.cview__prev { left: 12px; } .cview__next { right: 12px; }
.cview.is-zoom .cview__nav { display: none; }
@media (max-width: 760px) {
  .cat__head { grid-template-columns: 1fr; gap: 22px; }
  .cat__pages { grid-template-columns: 1fr; gap: 16px; }
  .cat__toc { top: 62px; }
  .cview__stage { padding: 0 8px 12px; }
  .cview__nav { top: auto; bottom: 14px; margin: 0; width: 46px; height: 46px; font-size: 28px; }
  .cview.is-zoom .cview__stage img { width: 260vw; }
}

/* ---------- phones: no live background blur (very expensive over the moving 3D scene), slightly more solid panels instead ---------- */
@media (max-width: 820px), (pointer: coarse) {
  .card, .header.is-scrolled, .btn--ghost, .pill, .scroll-hint, .nav, .cat__toc, .legal-bar, .pdlg::backdrop { -webkit-backdrop-filter: none; backdrop-filter: none; }
  .card { background: rgba(240, 244, 247, .97); }
  .header.is-scrolled { background: rgba(218, 226, 233, .97); }
  .btn--ghost, .pill:not(.pill--dark), .scroll-hint { background: rgba(255, 255, 255, .94); }
  .cat__toc, .legal-bar { background: rgba(220, 227, 233, .97); }
}
/* phones: small fixes */
@media (max-width: 560px) {
  .clip figcaption { left: 12px; right: 12px; bottom: 10px; font-size: 13px; line-height: 1.25; }
  .stat span { font-size: 13px; overflow-wrap: anywhere; hyphens: auto; }
}