/* ==========================================================================
   Индустрия газов: лендинг
   Tokens: Onest 300/400 / white + ink + brand cyan-blue / one easing curve
   ========================================================================== */

:root {
  /* colour: 2 + 1 accent (brand tints only) */
  --bg: #FBFDFE;
  --surface: #EEF5F9;
  --ink: #0B2233;
  --brand: #019FD2;          /* logo main */
  --brand-light: #2CCBFD;    /* logo light wave */
  --brand-deep: #0097C6;     /* logo wordmark */
  --alert: #D8475E;          /* data only: low-level threshold */

  --ink-80: rgba(11, 34, 51, .78);
  --ink-70: rgba(11, 34, 51, .72);
  --ink-55: rgba(11, 34, 51, .56);
  --hair: rgba(11, 34, 51, .12);
  --hair-strong: rgba(11, 34, 51, .22);

  /* type */
  --font: "Onest", system-ui, sans-serif;
  --fs-body: clamp(15px, 1.1vw, 18px);
  --fs-h1: clamp(2.6rem, 6.4vw, 7.4rem);
  --fs-h2: clamp(2rem, 4.6vw, 4.6rem);
  --fs-h3: clamp(20px, 1.7vw, 28px);

  /* motion */
  --ease: cubic-bezier(.22, 1, .36, 1);

  /* radius family: pill / 0 / surface */
  --r-pill: 999px;
  --r-surface: 28px;

  /* spacing scale */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px;
  --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px; --s-10: 144px;
  --section: clamp(96px, 14vh, 176px);
  --gutter: max(clamp(16px, 4vw, 64px), calc((100vw - 1680px) / 2));
  --header-h: 76px;
}

/* Chinese: CJK glyphs come from Noto Sans SC; negative tracking and tight leading are for Latin/Cyrillic only */
:lang(zh) { --font: "Onest", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif; }
:lang(zh) :is(h1, h2, h3, .person__name, .phone__time) { letter-spacing: 0; line-height: 1.14; }

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-weight: 400;
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, ol, ul, dl, dd, figure { margin: 0; padding: 0; }
button, input { font: inherit; color: inherit; }
::selection { background: rgba(1, 159, 210, .22); }

.skip {
  position: fixed; left: var(--s-4); top: -60px; z-index: 200;
  padding: 10px 16px; border-radius: var(--r-pill);
  background: var(--ink); color: #fff; text-decoration: none; font-size: 14px;
  transition: top 320ms var(--ease);
}
.skip:focus { top: var(--s-4); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 6px; }

/* ---------- typography ---------- */
h1, h2, h3 { font-weight: 300; hyphens: none; text-wrap: balance; }
h2 {
  font-size: var(--fs-h2);
  line-height: .96;
  letter-spacing: -0.035em;
}
h3 {
  font-size: var(--fs-h3);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.02em;
}
p { text-wrap: pretty; }
.hero__lead, .how__lead, .data__lead, .alerts__lead, .roadmap__lead, .tanks__lead, .cta__lead, .modal__lead,
.page-head__lead, .article-head__lead, .feature__excerpt, .how__step p,
.site-footer__about { text-wrap: balance; }
.lead { max-width: 46ch; color: var(--ink-70); }

/* ---------- buttons: solid pill + hairline pill ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 28px;
  border: 0;
  border-radius: var(--r-pill);
  overflow: hidden;
  isolation: isolate;
  font-size: 15px;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 620ms var(--ease);
}
.btn--sm { min-height: 44px; padding: 0 18px; font-size: 14px; gap: 6px; }
.btn--wide { width: 100%; }
.btn__fill {
  position: absolute; inset: 0; z-index: -1;
  border-radius: inherit;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 500ms var(--ease);
}
.btn__label { position: relative; transition: color 320ms var(--ease); }
.btn__arrow {
  width: 18px; height: 18px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
  transition: transform 520ms var(--ease), color 320ms var(--ease);
}
.btn--sm .btn__arrow { width: 15px; height: 15px; }
.btn:hover .btn__fill, .btn:focus-visible .btn__fill { transform: scaleX(1); transform-origin: left; }
.btn:hover .btn__arrow { transform: translateX(4px); }
.btn:hover .btn__arrow--ne { transform: translate(3px, -3px); }
.btn:active { transform: scale(.98); }

.btn--solid { background: var(--ink); color: #fff; }
.btn--solid .btn__fill { background: var(--brand); }
.btn--solid:hover, .btn--solid:focus-visible { color: var(--ink); }

.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--hair-strong); }
.btn--ghost .btn__fill { background: var(--ink); }
.btn--ghost:hover, .btn--ghost:focus-visible { color: #fff; }

.btn[disabled] { cursor: default; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 44px;
  text-decoration: none;
  font-size: 15px;
  background: linear-gradient(currentColor, currentColor) left calc(100% - 8px) / 0 1px no-repeat;
  transition: background-size 500ms var(--ease);
}
.link-arrow svg {
  width: 18px; height: 18px; fill: none; stroke: var(--brand); stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
  transition: transform 520ms var(--ease);
}
.link-arrow:hover { background-size: calc(100% - 28px) 1px; }
.link-arrow:hover svg { transform: translateX(5px); }

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-5);
  padding: 0 var(--gutter);
  transition: background-color 620ms var(--ease), box-shadow 620ms var(--ease);
}
.site-header.is-scrolled {
  background: var(--bg);
  box-shadow: 0 1px 0 rgba(11, 34, 51, .06);
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--brand-deep); }
.brand__emblem { width: 54px; height: 40px; overflow: visible; }
.brand__word { width: 118px; height: 16px; }
.brand__tm { align-self: flex-start; margin: 6px 0 0 -8px; font-size: 11px; line-height: 1; color: var(--brand-deep); }
.site-nav__link[aria-current="page"] { color: var(--ink); }
.site-nav__link[aria-current="page"]::after { transform: scaleX(1); }

.site-nav { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 36px); }
.site-nav__link {
  position: relative;
  font-size: 14px;
  text-decoration: none;
  color: var(--ink-80);
  padding: 12px 0;
  transition: color 320ms var(--ease);
}
.site-nav__link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 8px; height: 1px;
  background: var(--brand);
  transform: scaleX(0); transform-origin: right;
  transition: transform 500ms var(--ease);
}
.site-nav__link:hover { color: var(--ink); }
.site-nav__link:hover::after { transform: scaleX(1); transform-origin: left; }

.menu-toggle {
  display: none;
  position: relative;
  width: 44px; height: 44px;
  border: 0; border-radius: var(--r-pill);
  background: transparent;
  cursor: pointer;
}
.menu-toggle span {
  position: absolute; left: 12px; right: 12px; height: 1.5px; background: var(--ink);
  transition: transform 520ms var(--ease);
}
.menu-toggle span:first-child { top: 18px; }
.menu-toggle span:last-child { top: 25px; }
.menu-open .menu-toggle span:first-child { transform: translateY(3.5px) rotate(45deg); }
.menu-open .menu-toggle span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

/* logo assembly: chevrons converge on the drop */
.lg-chev, .lg-drop, .lg-wave { transform-box: fill-box; transform-origin: center; }
.brand .lg-chev {
  transform: translate(calc(cos(var(--a, 0deg)) * 18px), calc(sin(var(--a, 0deg)) * 18px));
  opacity: 0;
  transition: transform 1200ms var(--ease), opacity 900ms var(--ease);
}
.brand .lg-chev:nth-child(1) { transition-delay: 380ms; }
.brand .lg-chev:nth-child(2) { transition-delay: 430ms; }
.brand .lg-chev:nth-child(3) { transition-delay: 480ms; }
.brand .lg-chev:nth-child(4) { transition-delay: 530ms; }
.brand .lg-chev:nth-child(5) { transition-delay: 580ms; }
.brand .lg-drop { transform: scale(.4); opacity: 0; transition: transform 1100ms var(--ease) 700ms, opacity 700ms var(--ease) 700ms; }
.brand .lg-wave { transform: translateX(-14%); opacity: 0; transition: transform 1200ms var(--ease) 300ms, opacity 800ms var(--ease) 300ms; }
.brand .lg-wave--main { transform: translateX(14%); }
.is-ready .brand .lg-chev, .is-ready .brand .lg-drop, .is-ready .brand .lg-wave { transform: none; opacity: 1; }

/* ---------- entrances ---------- */
.rise { opacity: 0; transform: translateY(28px); }
.is-in .rise, .rise.is-in {
  opacity: 1; transform: none;
  transition:
    opacity 900ms var(--ease) var(--d, 0ms),
    transform 900ms var(--ease) var(--d, 0ms);
}
.hero__title .rise { display: inline-block; }
@media (scripting: none) {
  .rise { opacity: 1; transform: none; }
  .brand .lg-chev, .brand .lg-drop, .brand .lg-wave { opacity: 1; transform: none; }
}

/* ---------- floating glass objects ---------- */
html { overflow-x: clip; }
.how, .alerts, .cta, .page-head, .data { overflow-x: clip; }
.float {
  position: absolute; z-index: 0;
  width: clamp(96px, 11vw, 180px); height: auto;
  pointer-events: none;
  will-change: transform;
}
/* every chevron sits in the top-right corner of its block, level with the heading */
.page-head .float { top: calc(var(--header-h) + clamp(40px, 8vh, 96px)); right: var(--gutter); }
.gains .float { top: calc(var(--section) - 28px); right: var(--gutter); }
.alerts .float { top: calc(var(--section) - 28px); left: var(--gutter); } /* the phone owns the right side */

/* ==========================================================================
   01 / Hero
   ========================================================================== */
.hero { position: relative; height: 100vh; height: 100svh; }
.hero__media {
  position: sticky; top: 0;
  height: 100vh; height: 100svh;
  overflow: hidden;
  background: #E9EDF0;
}
.hero__img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: 60% 50%;
  transform: scale(var(--hero-s, 1));
  transform-origin: 72% 58%;
}
.hero__beam {
  position: absolute; top: -20%; right: -6%;
  width: 58%; height: 140%;
  background: linear-gradient(112deg,
    transparent 30%,
    rgba(44, 203, 253, .1) 40%,
    rgba(44, 203, 253, .3) 50%,
    rgba(44, 203, 253, .1) 60%,
    transparent 70%);
  opacity: .5;
  will-change: opacity, transform;
  animation: beam 9s var(--ease) infinite alternate;
  pointer-events: none;
}
@keyframes beam {
  0%   { opacity: .28; transform: translateX(3%); }
  100% { opacity: .72; transform: translateX(-3%); }
}
.hero__sparks { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero__content {
  position: absolute; inset: 0 0 auto 0; z-index: 2;
  height: 100vh; height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 0 var(--gutter) clamp(40px, 9vh, 104px);
}
.hero__title {
  font-size: var(--fs-h1);
  line-height: .9;
  letter-spacing: -0.042em;
  max-width: 12ch;
}
.hero__lead {
  margin-top: var(--s-5);
  max-width: 40ch;
  color: var(--ink-70);
  text-shadow: 0 0 18px rgba(251, 253, 254, .8);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-6); }
.hero .btn--ghost { background: rgba(251, 253, 254, .6); }

/* ==========================================================================
   03 / How it works
   ========================================================================== */
.how {
  position: relative;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--s-5);
  row-gap: var(--s-8);
  padding: var(--section) var(--gutter);
  background: var(--bg);
}
.how__head { grid-column: 1 / span 5; align-self: end; position: relative; z-index: 1; }
.how__lead { margin-top: var(--s-5); max-width: 40ch; color: var(--ink-70); }
.how__steps {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--s-7) clamp(24px, 4vw, 64px);
  list-style: none;
  position: relative; z-index: 1;
}
.how__step { padding-top: var(--s-5); border-top: 1px solid var(--hair); }
.how__num {
  display: block; margin-bottom: var(--s-6);
  font-size: 12px; letter-spacing: .18em; line-height: 1.8;
  color: var(--brand);
  font-variant-numeric: tabular-nums;
}
.how__step p { margin-top: var(--s-4); max-width: 34ch; color: var(--ink-70); }

/* ==========================================================================
   04 / Data: smooth charts
   ========================================================================== */
.data { padding: var(--section) var(--gutter); background: var(--bg); position: relative; }
.data__head {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--s-5); row-gap: var(--s-5);
  align-items: end;
}
.data__title { grid-column: 1 / span 7; }
.data__lead { grid-column: 9 / span 4; color: var(--ink-70); max-width: 40ch; }
.data__controls { display: flex; flex-wrap: wrap; gap: var(--s-3); margin: var(--s-8) 0 var(--s-5); }

.seg {
  position: relative;
  display: inline-flex;
  padding: 4px;
  border-radius: var(--r-pill);
  background: var(--surface);
}
.seg__thumb {
  position: absolute; top: 4px; bottom: 4px; left: 0;
  width: var(--w, 0px);
  transform: translateX(var(--x, 0px));
  border-radius: var(--r-pill);
  background: #fff;
  box-shadow: 0 1px 2px rgba(11, 34, 51, .05), 0 8px 22px rgba(1, 159, 210, .16);
  transition: transform 620ms var(--ease), width 620ms var(--ease);
}
.seg__btn {
  position: relative; z-index: 1;
  min-height: 44px; padding: 0 18px;
  border: 0; border-radius: var(--r-pill);
  background: none;
  font-size: 14px;
  color: var(--ink-55);
  cursor: pointer;
  white-space: nowrap;
  transition: color 320ms var(--ease);
}
.seg__btn:hover { color: var(--ink-80); }
.seg__btn.is-active { color: var(--ink); }

.panel {
  position: relative;
  border-radius: var(--r-surface);
  background: var(--surface);
  padding: clamp(20px, 2.4vw, 36px);
}
.panel__head {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: var(--s-4) var(--s-7);
}
.panel__title { width: 100%; font-size: 18px; letter-spacing: -0.01em; }
.panel__values { display: flex; gap: var(--s-7); }
.stat { display: grid; grid-template-columns: auto auto; align-items: baseline; justify-content: start; column-gap: 6px; }
.stat span {
  font-size: clamp(2.2rem, 3.6vw, 3.6rem);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.035em;
  font-variant-numeric: tabular-nums;
}
.stat small { font-size: 14px; color: var(--ink-55); }
.stat em { grid-column: 1 / -1; order: -1; font-style: normal; font-size: 13px; color: var(--ink-55); margin-bottom: 6px; }
.stat--brand span { color: var(--brand); }

.legend { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; font-size: 12px; color: var(--ink-55); }
.legend__item { display: inline-flex; align-items: center; gap: 8px; }
.legend__item::before { content: ""; width: 16px; height: 2px; border-radius: 2px; background: var(--brand); }
.legend__item--pressure::before { background: var(--ink); opacity: .7; }
.legend__item--refill::before { width: 0; height: 0; border: 5px solid transparent; border-bottom: 7px solid var(--brand); border-top: 0; background: none; }
.legend__item--low::before { background: repeating-linear-gradient(90deg, var(--alert) 0 4px, transparent 4px 7px); }

.chart { position: relative; height: clamp(260px, 30vw, 420px); margin-top: var(--s-6); touch-action: pan-y; }
.chart--usage, .chart--battery { height: clamp(200px, 18vw, 260px); }
.chart svg { width: 100%; height: 100%; overflow: visible; }
.c-grid { stroke: var(--ink); stroke-opacity: .08; stroke-width: 1; shape-rendering: crispEdges; }
.c-axis { font-size: 11px; fill: var(--ink); fill-opacity: .5; font-variant-numeric: tabular-nums; transition: opacity 320ms var(--ease); }
.c-axis.is-fading { opacity: 0; }
.c-line { fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.c-line--brand { stroke: var(--brand); }
.c-line--ink { stroke: var(--ink); stroke-opacity: .7; stroke-width: 1.6; }
.c-line--soft { stroke: var(--brand-deep); }
.c-glow { fill: none; stroke: var(--brand-light); stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; opacity: .38; }
.c-area { transition: opacity 1100ms var(--ease) 350ms; }
.chart:not(.is-drawn) .c-area { opacity: 0; }
.c-threshold { stroke: var(--alert); stroke-width: 1; stroke-dasharray: 4 4; opacity: .8; }
.c-refill line { stroke: var(--brand); stroke-width: 1; stroke-dasharray: 3 5; opacity: .6; }
.c-refill path { fill: var(--brand); }
.c-refill { transition: opacity 500ms var(--ease); }
.c-cross { stroke: var(--ink); stroke-opacity: .22; stroke-width: 1; }
.c-dot { fill: #fff; stroke-width: 2; }
.c-dot--brand { stroke: var(--brand); }
.c-dot--ink { stroke: var(--ink); stroke-opacity: .7; }
.c-dot-glow { fill: var(--brand-light); opacity: .35; }
.c-hover { transition: opacity 320ms var(--ease); }
.chart:not(.is-hover) .c-hover { opacity: 0; }

.tip {
  position: absolute; top: 0; left: 0; z-index: 3;
  min-width: 150px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 12px 32px rgba(11, 34, 51, .12);
  font-size: 13px; line-height: 1.5;
  font-variant-numeric: tabular-nums;
  pointer-events: none;
  opacity: 0;
  transition: opacity 320ms var(--ease);
  white-space: nowrap;
}
.chart.is-hover .tip { opacity: 1; }
.tip__time { color: var(--ink-55); font-size: 12px; }
.tip__row { display: flex; justify-content: space-between; gap: 16px; }
.tip__row b { font-weight: 400; }
.tip__row--brand b { color: var(--brand-deep); }

.data__pair { display: grid; grid-template-columns: 7fr 5fr; gap: var(--s-4); margin-top: var(--s-4); }

/* ==========================================================================
   05 / Alerts
   ========================================================================== */
.alerts {
  position: relative;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--s-5);
  align-items: center;
  padding: var(--section) var(--gutter);
}
.alerts__text { grid-column: 1 / span 6; align-self: end; position: relative; z-index: 1; }
.alerts__lead { margin: var(--s-5) 0 var(--s-6); max-width: 42ch; color: var(--ink-70); }

.phone { grid-column: 8 / span 4; justify-self: center; position: relative; z-index: 1; width: min(320px, 100%); }
.phone__glow {
  position: absolute; inset: 14% -24% -6%;
  background: radial-gradient(closest-side, rgba(44, 203, 253, .42), rgba(1, 159, 210, .12) 55%, transparent 100%);
  will-change: opacity, transform;
  animation: breathe 6s var(--ease) infinite alternate;
  pointer-events: none;
}
@keyframes breathe { from { opacity: .55; scale: .94; } to { opacity: 1; scale: 1.04; } }

/* iPhone: titanium frame, side buttons, Dynamic Island, lock screen */
.phone__body {
  position: relative;
  aspect-ratio: 9 / 19.5;
  padding: 11px;
  border-radius: 58px;
  background: linear-gradient(150deg, #5B6B77 0%, #2B3A45 18%, #16242F 50%, #2B3A45 82%, #5B6B77 100%);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .18), 0 40px 80px -30px rgba(1, 80, 120, .45);
}
.phone__btn { position: absolute; width: 3px; border-radius: 2px; background: #3A4954; }
.phone__btn--action { left: -3px; top: 17%; height: 4.5%; }
.phone__btn--up { left: -3px; top: 25%; height: 8%; }
.phone__btn--down { left: -3px; top: 35%; height: 8%; }
.phone__btn--power { right: -3px; top: 28%; height: 12%; }
.phone__screen {
  position: relative;
  display: flex; flex-direction: column;
  height: 100%;
  overflow: hidden;
  border-radius: 47px;
  color: #fff;
  background:
    radial-gradient(90% 55% at 20% 8%, rgba(127, 224, 255, .9), transparent 60%),
    radial-gradient(80% 50% at 95% 70%, rgba(1, 159, 210, .85), transparent 65%),
    linear-gradient(172deg, #2CCBFD 0%, #0097C6 48%, #0B2233 100%);
}
.phone__status {
  position: relative;
  display: flex; align-items: center; justify-content: space-between;
  height: 50px; padding: 4px 26px 0 34px;
  font-size: 15px; line-height: 1;
}
.phone__island {
  position: absolute; left: 50%; top: 11px;
  width: 31%; height: 28px;
  border-radius: 20px;
  background: #000;
  transform: translateX(-50%);
}
.phone__icons { display: flex; align-items: center; gap: 5px; }
.phone__icons svg { height: 11px; width: auto; fill: currentColor; }
.phone__icons .phone__batt { height: 12px; }
.phone__lock { margin-top: 10px; text-align: center; }
.phone__padlock { width: 11px; height: 15px; margin: 0 auto 6px; fill: currentColor; }
.phone__date { font-size: 15px; opacity: .92; }
.phone__time { font-size: clamp(64px, 6vw, 80px); font-weight: 400; line-height: 1; letter-spacing: -0.02em; }
.phone__stack { display: flex; flex-direction: column; gap: 8px; margin-top: auto; padding: 0 10px 14px; }
.msg {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 10px 12px 11px;
  border-radius: 20px;
  background: rgba(251, 253, 254, .9);
  color: var(--ink);
  font-size: 13px; line-height: 1.3;
  opacity: 0; transform: translateY(14px) scale(.98);
}
.msg__icon {
  flex: none; display: grid; place-items: center;
  width: 36px; height: 36px; border-radius: 9px;
  background: #fff;
  box-shadow: 0 0 0 .5px rgba(11, 34, 51, .12);
}
.msg__icon svg { width: 28px; height: 22px; }
.msg__body { flex: 1; min-width: 0; }
.msg__top { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--ink-55); }
.msg__top b { font-weight: 400; }
.msg strong { display: block; margin-top: 1px; font-weight: 400; }
.msg--alert strong { color: var(--alert); }
.msg p { color: var(--ink-80); }
.phone__bottom { display: flex; justify-content: space-between; padding: 4px 34px 26px; }
.phone__round {
  display: grid; place-items: center;
  width: 46px; height: 46px; border-radius: 50%;
  background: rgba(11, 34, 51, .38);
}
.phone__round svg { width: 20px; height: 20px; fill: none; stroke: #fff; stroke-width: 1.5; stroke-linejoin: round; }
.phone__home {
  position: absolute; left: 50%; bottom: 8px;
  width: 36%; height: 5px; border-radius: 3px;
  background: #fff;
  transform: translateX(-50%);
}
.phone.is-in .msg { opacity: 1; transform: none; transition: opacity 900ms var(--ease), transform 900ms var(--ease); }
.phone.is-in .msg:nth-child(1) { transition-delay: 500ms; }
.phone.is-in .msg:nth-child(2) { transition-delay: 1500ms; }
.phone.is-in .msg:nth-child(3) { transition-delay: 2500ms; }

/* ==========================================================================
   Home: gains / channels
   ========================================================================== */
.gains, .channels { position: relative; padding: var(--section) var(--gutter) 0; overflow-x: clip; }
.gains__title, .channels__title { max-width: 16ch; position: relative; z-index: 1; }
.gains__list {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-7) clamp(24px, 4vw, 64px);
  margin-top: var(--s-8); padding: 0; list-style: none; position: relative; z-index: 1;
}
.gain { padding-top: var(--s-5); border-top: 1px solid var(--hair); }
.gain__num { display: block; margin-bottom: var(--s-6); font-size: 12px; letter-spacing: .18em; color: var(--brand); font-variant-numeric: tabular-nums; }
.gain p { margin-top: var(--s-4); max-width: 34ch; color: var(--ink-70); }

.channels__head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--s-5); align-items: end; }
.channels__title { grid-column: 1 / span 6; }
.channels__lead { grid-column: 8 / span 4; color: var(--ink-70); max-width: 40ch; }
.channels__list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-5); margin: var(--s-8) 0 0; padding: 0; list-style: none; }
.channel { display: flex; flex-direction: column; gap: var(--s-3); padding-top: var(--s-5); border-top: 1px solid var(--hair); }
.channel p { color: var(--ink-70); max-width: 30ch; }
.channel .link-arrow { margin-top: auto; align-self: flex-start; }
.channel__badge {
  margin-top: auto; align-self: flex-start;
  padding: 6px 14px; border-radius: var(--r-pill);
  background: var(--surface); color: var(--brand-deep); font-size: 13px;
}

/* ---------- Home: telemetry modules ---------- */
.modules { padding: var(--section) var(--gutter) 0; }
.modules__head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--s-5); align-items: end; }
.modules__title { grid-column: 1 / span 6; max-width: 16ch; }
.modules__lead { grid-column: 8 / span 4; max-width: 40ch; color: var(--ink-70); }
.modules__list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(24px, 3vw, 48px); margin-top: var(--s-8); list-style: none; }
.module { min-width: 0; }
.module__media {
  display: flex; align-items: center; justify-content: center;
  height: clamp(250px, 27vw, 360px); padding: var(--s-5);
  background: var(--surface); border-radius: var(--r-surface);
}
.module__media img { width: 100%; height: 100%; object-fit: contain; }
.module-filters { position: absolute; width: 0; height: 0; overflow: hidden; }
.module:not(.module--scales):not(.module--auto) .module__media img { filter: url("#module-black"); }
.module--scales .module__media img { width: 80%; height: 80%; }
.module figcaption { margin-top: var(--s-6); }
.module__label { display: block; margin-bottom: var(--s-3); color: var(--brand-deep); font-size: 12px; letter-spacing: .12em; }
.module p { margin-top: var(--s-4); max-width: 34ch; color: var(--ink-70); }

/* ==========================================================================
   Product page
   ========================================================================== */
html:has(.page-product) { scroll-padding-top: calc(var(--header-h) + 60px); }
.subnav {
  position: sticky; top: var(--header-h); z-index: 50;
  display: flex; gap: var(--s-2); overflow-x: auto; scrollbar-width: none;
  padding: var(--s-3) var(--gutter);
  background: var(--bg);
  border-bottom: 1px solid var(--hair);
}
.subnav a {
  flex: none; display: inline-flex; align-items: center; min-height: 36px; padding: 0 16px;
  border-radius: var(--r-pill); font-size: 14px; text-decoration: none; color: var(--ink-80);
  transition: background-color 320ms var(--ease), color 320ms var(--ease);
}
.subnav a:hover { background: var(--surface); color: var(--ink); }

/* ---------- tanks: images from app.telemetryx.ru, level fill works like in the account ---------- */
.tanks { position: relative; padding: var(--section) var(--gutter) 0; overflow-x: clip; }
.tanks__head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--s-5); row-gap: var(--s-5); align-items: end; }
.tanks__title { grid-column: 1 / span 7; }
.tanks__lead { grid-column: 9 / span 4; color: var(--ink-70); max-width: 40ch; }
.tanks__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--s-4); margin-top: var(--s-8); }
.tank {
  position: relative; margin: 0;
  display: flex; flex-direction: column; justify-content: space-between; gap: var(--s-5);
  padding: clamp(20px, 2.4vw, 36px);
  border-radius: var(--r-surface);
  background: radial-gradient(70% 60% at 50% 55%, rgba(44, 203, 253, .14), transparent 70%), var(--surface);
}
.tank--cryo-v, .tank--stat-v { grid-column: span 3; grid-row: span 2; }
.tank--cryo-h, .tank--stat-h { grid-column: span 6; }
.tank--truck { grid-column: 1 / -1; }

.tank__frame { position: relative; margin: auto; aspect-ratio: var(--ar); }
.tank--cryo-v .tank__frame { --ar: 360 / 1166; height: min(460px, 54vh); }
.tank--stat-v .tank__frame { --ar: 380 / 853; height: min(400px, 48vh); }
.tank--cryo-h .tank__frame { --ar: 760 / 325; width: min(100%, 460px); }
.tank--stat-h .tank__frame { --ar: 760 / 326; width: min(100%, 460px); }
.tank--truck .tank__frame { --ar: 1100 / 352; width: min(100%, 880px); }
.tank__img { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; }

/* the liquid box sits over the tank body (under the window for the truck) */
.tank__fill { position: absolute; z-index: 2; overflow: hidden; pointer-events: none; }
.tank--cryo-v .tank__fill { inset: 20% 18.9% 15% 18.9%; border-radius: 10px; }
.tank--stat-v .tank__fill { inset: .5% 16% 18% .7%; border-radius: 50% / 9%; }
.tank--cryo-h .tank__fill { inset: 3% 2.5% 17% 24%; border-radius: 14% / 50%; }
.tank--stat-h .tank__fill { inset: 11% 5% 21% 5%; border-radius: 12% / 50%; }
.tank--truck .tank__fill { z-index: 0; inset: 26% 8% 51% 28%; border-radius: 6px; }
.tank__liquid {
  position: absolute; left: 0; right: 0; bottom: 0;
  height: calc(var(--lv, 0) * 1%);
  background: linear-gradient(to top, rgba(2, 132, 199, .74), rgba(56, 189, 248, .6) 60%, rgba(103, 232, 249, .52));
  transition: height 1600ms var(--ease);
}
.tank--truck .tank__liquid { background: linear-gradient(to top, #0284C7, #38BDF8 60%, #67E8F9); }
.tank__surface { position: absolute; left: 0; right: 0; top: 0; height: 2px; background: rgba(255, 255, 255, .9); box-shadow: 0 0 14px rgba(255, 255, 255, .8); }
.tank__liquid i { position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .5); opacity: .4; }
.tanks__grid.is-live .tank__liquid i { animation: tank-bubble 2.4s var(--ease) infinite; }
.tank__liquid i:nth-of-type(1) { left: 18%; bottom: 10%; width: 6px; height: 6px; }
.tank__liquid i:nth-of-type(2) { right: 22%; bottom: 26%; width: 8px; height: 8px; animation-delay: 1.1s; }
@keyframes tank-bubble { 0%, 100% { opacity: .25; transform: translateY(0); } 50% { opacity: .9; transform: translateY(-6px); } }

.tank__cap { display: grid; grid-template-columns: 1fr auto; column-gap: var(--s-4); row-gap: 2px; align-items: baseline; }
.tank__cap b { font-weight: 400; font-size: clamp(16px, 1.2vw, 18px); line-height: 1.2; }
.tank__cap > span { grid-row: 2; font-size: 14px; color: var(--ink-55); }
.tank__cap em {
  grid-column: 2; grid-row: 1 / span 2; align-self: end;
  font-style: normal; font-weight: 300; font-size: clamp(28px, 2.6vw, 40px); line-height: 1; letter-spacing: -0.03em;
  color: var(--brand); font-variant-numeric: tabular-nums; white-space: nowrap;
}
.tank__badge { grid-column: 1 / -1; justify-self: start; margin-top: var(--s-3); padding: 4px 12px; border-radius: var(--r-pill); background: #fff; color: var(--brand-deep); font-size: 12px; }
/* ---------- roadmap: one pipe, three stages (dark block) ---------- */
/* The only dark section on the site: it tells "what is live / what is next",
   so it reads as its own chapter, not one more list. */
.roadmap {
  --on-dark: #fff;
  --on-dark-70: rgba(255, 255, 255, .72);
  --on-dark-55: rgba(255, 255, 255, .56);
  --on-dark-hair: rgba(255, 255, 255, .12);
  --stage-gap: clamp(24px, 3.4vw, 64px);
  position: relative; isolation: isolate; overflow: clip;
  margin-top: var(--section);
  padding: var(--section) var(--gutter);
  background: var(--ink); color: var(--on-dark);
}
.roadmap::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(48% 60% at 8% 0%, rgba(44, 203, 253, .20), transparent 70%),
    radial-gradient(40% 50% at 100% 100%, rgba(1, 159, 210, .16), transparent 70%);
}
.roadmap__head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--s-5); row-gap: var(--s-5); align-items: end; }
.roadmap__title { grid-column: 1 / span 7; }
.roadmap__lead { grid-column: 9 / span 4; color: var(--on-dark-70); max-width: 40ch; }

.roadmap__stages {
  display: grid; grid-template-columns: 1.15fr 1fr .85fr;
  margin-top: var(--s-9); padding: 0; list-style: none;
}
.stage { min-width: 0; padding-right: var(--stage-gap); }
.stage:last-child { padding-right: 0; }

/* rail: station dot + the pipe segment that runs on to the next station */
.stage__rail { position: relative; display: flex; align-items: center; height: 18px; margin-bottom: var(--s-7); }
.stage__line {
  position: absolute; left: 0; right: calc(-1 * var(--stage-gap)); top: 50%;
  height: 3px; margin-top: -1.5px; border-radius: var(--r-pill); overflow: hidden;
  transform-origin: left; transform: scaleX(0);
  transition: transform 1400ms var(--ease) var(--rail-d, 0ms);
}
.stage:last-child .stage__line { right: 0; }
.is-in .stage__line { transform: none; }
.stage--build { --rail-d: 450ms; }
.stage--plan { --rail-d: 900ms; }
.stage__dot { position: relative; z-index: 1; width: 18px; height: 18px; border-radius: 50%; background: var(--ink); }

/* 01 live: solid glowing pipe, gas flowing through it */
.stage--live .stage__line {
  background: linear-gradient(90deg, var(--brand), var(--brand-light));
  box-shadow: 0 0 18px rgba(44, 203, 253, .55);
}
.stage--live .stage__line::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at center, rgba(255, 255, 255, .95) 0 1.2px, transparent 2.4px) 0 50% / 44px 100% repeat-x;
  /* project easing: gas moves in gulps, one pipe segment per beat */
  animation: pipe-flow 1.6s var(--ease) infinite;
}
@keyframes pipe-flow { to { background-position-x: 44px; } }
.stage--live .stage__dot { background: var(--brand-light); box-shadow: 0 0 0 6px rgba(44, 203, 253, .18); }
.stage--live .stage__dot::after {
  content: ""; position: absolute; inset: -6px; border-radius: 50%;
  background: rgba(44, 203, 253, .45);
  animation: ping 2.4s var(--ease) infinite;
}
@keyframes ping { 0% { transform: scale(.5); opacity: .8; } 100% { transform: scale(2.2); opacity: 0; } }

/* 02 launching: the pipe is being filled, a pulse travels along it */
.stage--build .stage__line { background: linear-gradient(90deg, var(--brand-light), rgba(44, 203, 253, .28) 62%, var(--on-dark-hair)); }
.stage--build .stage__line::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 22%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .9), transparent);
  transform: translateX(-100%);
  animation: pipe-pulse 3.2s var(--ease) 1.6s infinite;
}
@keyframes pipe-pulse { 0% { transform: translateX(-100%); } 70%, 100% { transform: translateX(460%); } }
.stage--build .stage__dot { background: conic-gradient(var(--brand-light) 0 50%, var(--ink) 50%); box-shadow: inset 0 0 0 2px var(--brand-light); }

/* 03 planned: not laid yet, dashed */
.stage--plan .stage__line { background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .3) 0 6px, transparent 6px 12px); }
.stage--plan .stage__dot { box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .32); }

.stage__num {
  font-size: clamp(56px, 7.4vw, 128px); font-weight: 300;
  line-height: .86; letter-spacing: -0.045em;
  font-variant-numeric: tabular-nums;
  color: var(--on-dark-55);
}
.stage--live .stage__num {
  background: linear-gradient(180deg, #fff 10%, var(--brand-light) 120%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stage__name { display: flex; align-items: baseline; gap: 10px; margin-top: var(--s-5); color: var(--on-dark); }
.stage__count { font-size: 13px; line-height: 1; letter-spacing: 0; color: var(--brand-light); font-variant-numeric: tabular-nums; }

.stage__list { display: grid; margin: var(--s-6) 0 0; padding: 0; list-style: none; }
.stage__list li {
  position: relative; padding: 15px 0 15px 32px;
  border-top: 1px solid var(--on-dark-hair);
  font-size: clamp(15px, 1.1vw, 18px); line-height: 1.45;
  color: var(--on-dark); text-wrap: pretty;
}
.stage__list li::before {
  content: ""; position: absolute; left: 0; top: calc(15px + .725em - 10px);
  width: 20px; height: 20px;
  -webkit-mask: var(--ico) center / contain no-repeat; mask: var(--ico) center / contain no-repeat;
  background: var(--brand-light);
}
.stage--live .stage__list li { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Ccircle cx='10' cy='10' r='8.2' fill='none' stroke='%23000' stroke-width='1.5'/%3E%3Cpath d='M6.4 10.3l2.4 2.4 4.8-5' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.stage--build .stage__list li { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Ccircle cx='10' cy='10' r='8.2' fill='none' stroke='%23000' stroke-opacity='.35' stroke-width='1.5'/%3E%3Cpath d='M10 1.8a8.2 8.2 0 0 1 0 16.4z' fill='%23000'/%3E%3C/svg%3E"); color: var(--on-dark-70); }
.stage--plan .stage__list li { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Ccircle cx='10' cy='10' r='8.2' fill='none' stroke='%23000' stroke-width='1.5' stroke-dasharray='2.6 2.6'/%3E%3C/svg%3E"); color: var(--on-dark-55); }
.stage--plan .stage__list li::before { background: rgba(255, 255, 255, .5); }
.stage__tag {
  display: inline-block; margin-left: 6px; padding: 3px 9px 2px; vertical-align: 2px;
  border-radius: var(--r-pill); background: rgba(44, 203, 253, .16);
  font-size: 11px; line-height: 1.6; letter-spacing: .16em; text-transform: uppercase;
  color: var(--brand-light);
}
.roadmap .link-arrow { margin-top: var(--s-6); color: var(--on-dark); }
.roadmap .link-arrow svg { stroke: var(--brand-light); }
.roadmap :focus-visible { outline-color: var(--brand-light); }

/* ---------- language switch ---------- */
.lang { display: inline-flex; padding: 3px; border-radius: var(--r-pill); background: var(--surface); }
.lang__link {
  display: grid; place-items: center; min-width: 38px; min-height: 38px; padding: 0 10px;
  border-radius: var(--r-pill); font-size: 13px; text-decoration: none; color: var(--ink-55);
  transition: background-color 320ms var(--ease), color 320ms var(--ease);
}
.lang__link:hover { color: var(--ink); }
.lang__link[aria-current="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(11, 34, 51, .06); }

/* ==========================================================================
   Contacts page
   ========================================================================== */
.page-head__actions { margin-top: var(--s-6); position: relative; z-index: 1; }
.contacts { padding: var(--s-7) var(--gutter) var(--section); }
.contacts__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-7) var(--s-5); margin: 0; }
.contact { padding-top: var(--s-5); border-top: 1px solid var(--hair); }
.contact dt { font-size: 13px; color: var(--ink-55); }
.contact dd { margin: var(--s-3) 0 0; font-size: clamp(18px, 1.5vw, 24px); font-weight: 300; letter-spacing: -0.01em; }
.contact dd a { text-decoration: none; transition: color 320ms var(--ease); }
.contact dd a:hover { color: var(--brand-deep); }
.contact dd .link-arrow { font-size: inherit; }
.person {
  display: grid; grid-template-columns: auto 1fr; align-items: end; column-gap: clamp(24px, 5vw, 96px); row-gap: var(--s-3);
  margin-bottom: var(--s-8); padding: clamp(28px, 3.4vw, 48px);
  border-radius: var(--r-surface);
  background: radial-gradient(70% 120% at 100% 0%, rgba(44, 203, 253, .2), transparent 60%), var(--surface);
}
.person__label { grid-column: 1 / -1; font-size: 13px; color: var(--ink-55); }
.person__name { font-size: clamp(2.4rem, 5vw, 4.8rem); font-weight: 300; line-height: .9; letter-spacing: -0.04em; }
.person__who { display: flex; align-items: center; gap: clamp(16px, 2vw, 28px); min-width: 0; }
/* portrait in a round frame: white ring + hairline brand ring, sized to the name cap height */
.person__photo {
  flex: none; width: clamp(72px, 7vw, 112px); height: auto; aspect-ratio: 1;
  border-radius: 50%; object-fit: cover;
  box-shadow: 0 0 0 4px #fff, 0 0 0 5px rgba(1, 159, 210, .35), 0 22px 40px -22px rgba(1, 80, 120, .55);
}
.person__links { display: flex; flex-wrap: wrap; gap: var(--s-3); justify-self: end; }
.person__link {
  display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 22px;
  border-radius: var(--r-pill); background: #fff; text-decoration: none;
  font-size: clamp(16px, 1.3vw, 20px); font-variant-numeric: tabular-nums;
  transition: transform 620ms var(--ease), box-shadow 620ms var(--ease);
}
.person__link svg { width: 18px; height: 18px; fill: var(--brand); }
.person__link:hover { transform: translateY(-3px); box-shadow: 0 18px 36px -20px rgba(1, 80, 120, .4); }

/* ==========================================================================
   News list parts
   ========================================================================== */
.news__grid {
  display: grid; grid-template-columns: 7fr 5fr; column-gap: clamp(24px, 4vw, 72px);
  margin-top: var(--s-8);
  align-items: start;
}
.meta { display: flex; flex-wrap: wrap; gap: 6px 10px; font-size: 13px; color: var(--ink-55); font-variant-numeric: tabular-nums; }
.meta__rubric { color: var(--brand-deep); }

.feature { display: block; text-decoration: none; }
.feature__media { position: relative; overflow: hidden; margin-left: calc(var(--gutter) * -1); aspect-ratio: 16 / 11; background: var(--surface); }
.feature__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--ease); }
.feature__body { margin-top: var(--s-5); }
.feature__title { margin-top: var(--s-3); font-size: clamp(26px, 2.6vw, 42px); line-height: 1.02; letter-spacing: -0.03em; font-weight: 300; max-width: 22ch; transition: color 320ms var(--ease); }
.feature__excerpt { margin-top: var(--s-4); max-width: 52ch; color: var(--ink-70); }
.feature:hover .feature__media img { transform: scale(1.04); }
.feature:hover .feature__title { color: var(--brand-deep); }

.rows { list-style: none; }
.row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 112px;
  gap: var(--s-2) var(--s-5);
  align-items: start;
  padding: var(--s-5) 0;
  border-top: 1px solid var(--hair);
  text-decoration: none;
}
.rows li:last-child .row { border-bottom: 1px solid var(--hair); }
.row__main { display: grid; gap: var(--s-2); }
.row__title {
  font-size: clamp(19px, 1.5vw, 24px); font-weight: 400; line-height: 1.15; letter-spacing: -0.02em;
  transition: transform 620ms var(--ease), color 320ms var(--ease);
}
.row__thumb { width: 112px; aspect-ratio: 4 / 3; overflow: hidden; background: var(--surface); }
.row__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 800ms var(--ease); }
.row:hover .row__title { transform: translateX(6px); color: var(--brand-deep); }
.row:hover .row__thumb img { transform: scale(1.08); }

/* ==========================================================================
   08 / CTA + demo modal
   ========================================================================== */
.cta {
  position: relative;
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--s-5); row-gap: var(--s-7);
  align-items: end;
  padding: var(--section) var(--gutter);
}
.cta__text { grid-column: 1 / span 7; position: relative; z-index: 1; }
.cta__title { font-size: clamp(2.2rem, 4.3vw, 4.8rem); line-height: .92; letter-spacing: -0.04em; }
.cta__lead { margin-top: var(--s-5); max-width: 44ch; color: var(--ink-70); }
.cta__actions { grid-column: 9 / span 4; justify-self: end; display: flex; flex-direction: column; align-items: center; gap: var(--s-4); position: relative; z-index: 1; }
.cta__chevron { width: clamp(96px, 10vw, 160px); height: auto; pointer-events: none; } /* the button sits right under its chevron */

.field { display: grid; gap: var(--s-2); }
.field__label { font-size: 13px; color: var(--ink-55); }
.field__input {
  min-height: 52px;
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--hair-strong);
  background: transparent;
  color: var(--ink);
  font: inherit; font-size: 18px;
  outline: none;
  transition: border-color 320ms var(--ease);
  border-radius: 0;
}
.field__input::placeholder { color: var(--ink); opacity: .32; }
.field__input:focus { border-bottom-color: var(--brand); }
.field__select {
  appearance: none; cursor: pointer; padding-right: 28px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%23019FD2' stroke-width='1.8'/%3E%3C/svg%3E") no-repeat right center / 18px;
}
.field__error { display: none; font-size: 13px; color: var(--alert); }
.field.is-error .field__input { border-bottom-color: var(--alert); }
.field.is-error .field__error { display: block; }
.modal__fail { font-size: 14px; color: var(--alert); }
.modal__fail a { color: inherit; text-decoration: underline; }

.choice { border: 0; padding: 0; margin: 0; min-width: 0; }
.choice legend { padding: 0; margin-bottom: var(--s-2); }
.choice__row { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.choice__opt { position: relative; }
.choice__opt input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.choice__opt span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px;
  border: 1px solid var(--hair-strong); border-radius: var(--r-pill);
  font-size: 15px;
  transition: background-color 320ms var(--ease), color 320ms var(--ease), border-color 320ms var(--ease);
}
.choice__opt input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.choice__opt input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }

html.modal-open { overflow: hidden; }
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: var(--s-5); }
.modal[hidden] { display: none; }
.modal__backdrop {
  position: absolute; inset: 0;
  background: rgba(11, 34, 51, .32);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  opacity: 0; transition: opacity 420ms var(--ease);
}
.modal__dialog {
  position: relative;
  width: min(520px, 100%); max-height: calc(100svh - 48px); overflow: auto;
  padding: clamp(28px, 4vw, 44px);
  border-radius: var(--r-surface);
  background: var(--bg);
  box-shadow: 0 40px 100px -30px rgba(1, 60, 90, .45);
  outline: none;
  opacity: 0; transform: translateY(24px) scale(.98);
  transition: opacity 420ms var(--ease), transform 620ms var(--ease);
}
.modal.is-open .modal__backdrop { opacity: 1; }
.modal.is-open .modal__dialog { opacity: 1; transform: none; }
.modal__close {
  position: absolute; top: 14px; right: 14px;
  width: 44px; height: 44px; display: grid; place-items: center;
  border: 0; border-radius: var(--r-pill); background: transparent; color: var(--ink-70); cursor: pointer;
  transition: background-color 320ms var(--ease), color 320ms var(--ease);
}
.modal__close:hover { background: var(--surface); color: var(--ink); }
.modal__close svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.modal__title { font-size: clamp(1.8rem, 3vw, 2.6rem); line-height: 1; letter-spacing: -0.035em; padding-right: 44px; }
.modal__lead { margin-top: var(--s-4); color: var(--ink-70); }
.modal__form { display: grid; gap: var(--s-5); margin-top: var(--s-6); }
.modal__done { display: grid; justify-items: start; gap: var(--s-4); padding: var(--s-5) 0; }
.modal__done[hidden] { display: none; }
.modal__check { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 50%; background: var(--surface); color: var(--brand); }
.modal__check svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
button.link-arrow { border: 0; padding: 0; background-color: transparent; color: inherit; font: inherit; font-size: 15px; cursor: pointer; }

@media (max-width: 600px) {
  .modal { place-items: end stretch; padding: 0; }
  .modal__dialog {
    width: 100%; max-height: 92svh;
    border-radius: var(--r-surface) var(--r-surface) 0 0;
    padding-bottom: calc(28px + env(safe-area-inset-bottom));
    transform: translateY(100%);
  }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { padding: var(--s-9) var(--gutter) var(--s-6); border-top: 1px solid var(--hair); }
.site-footer__cols {
  display: grid; grid-template-columns: 6fr 3fr 3fr; gap: var(--s-6);
}
.site-footer__about { max-width: 36ch; color: var(--ink-70); }
.site-footer__nav { display: grid; align-content: start; gap: 2px; }
.site-footer__nav a {
  justify-self: start;
  padding: 8px 0;
  font-size: 15px; text-decoration: none; color: var(--ink-70);
  background: linear-gradient(var(--brand), var(--brand)) left calc(100% - 6px) / 0 1px no-repeat;
  transition: color 320ms var(--ease), background-size 500ms var(--ease);
}
.site-footer__nav a:hover { color: var(--ink); background-size: 100% 1px; }
.site-footer__legal { margin-top: var(--s-8); font-size: 13px; color: var(--ink-55); }

/* ==========================================================================
   Articles list page
   ========================================================================== */
.page-head { padding: calc(var(--header-h) + clamp(64px, 12vh, 140px)) var(--gutter) var(--s-7); position: relative; }
.page-head__title { font-size: clamp(2.8rem, 8vw, 8.6rem); line-height: .88; letter-spacing: -0.045em; }
.page-head__lead { margin-top: var(--s-5); max-width: 44ch; color: var(--ink-70); }
.page-head .seg { margin-top: var(--s-7); }
.list { padding: 0 var(--gutter) var(--section); }
.list .news__grid { margin-top: 0; }
.list [hidden] { display: none; }
.list .news__grid:has(> .feature[hidden]) { grid-template-columns: 1fr; }
.list .news__grid:has(> .feature[hidden]) .row { grid-template-columns: minmax(0, 1fr) 168px; }
.list .news__grid:has(> .feature[hidden]) .row__thumb { width: 168px; }
.list__empty { padding: var(--s-7) 0; color: var(--ink-55); }

/* ==========================================================================
   Article page
   ========================================================================== */
.progress {
  position: fixed; left: 0; top: 0; z-index: 70;
  width: 100%; height: 2px;
  background: var(--brand);
  transform: scaleX(var(--p, 0)); transform-origin: left;
}
.article-head {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--s-5);
  padding: calc(var(--header-h) + clamp(56px, 10vh, 120px)) var(--gutter) var(--s-7);
}
.article-head > * { grid-column: 1 / span 10; }
.article-head .link-arrow { margin-bottom: var(--s-6); justify-self: start; }
.article-head .link-arrow svg { transform: rotate(180deg); }
.article-head .link-arrow:hover svg { transform: rotate(180deg) translateX(5px); }
.article-head__title { margin-top: var(--s-4); font-size: clamp(2.3rem, 5.4vw, 5.6rem); line-height: .94; letter-spacing: -0.04em; }
.article-head__lead { margin-top: var(--s-5); grid-column: 1 / span 7; font-size: clamp(17px, 1.4vw, 21px); color: var(--ink-70); max-width: 52ch; }
.article-cover { height: min(72vh, 760px); overflow: hidden; }
.article-cover img { width: 100%; height: 100%; object-fit: cover; }
.article-body {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--s-5);
  padding: var(--s-9) var(--gutter);
}
.article-aside { grid-column: 1 / span 3; align-self: start; position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: var(--s-2); font-size: 13px; color: var(--ink-55); }
.article-aside b { font-weight: 400; color: var(--brand-deep); }
.prose { grid-column: 4 / span 6; max-width: 62ch; font-size: clamp(16px, 1.15vw, 19px); line-height: 1.65; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { margin-top: 2em; font-size: clamp(26px, 2.4vw, 38px); line-height: 1.04; letter-spacing: -0.03em; }
.prose h3 { margin-top: 1.6em; font-size: clamp(20px, 1.6vw, 26px); }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li + li { margin-top: .4em; }
.prose li::marker { color: var(--brand); }
.prose blockquote {
  margin-left: 0; margin-right: 0; padding: 0;
  font-size: clamp(22px, 2vw, 30px); line-height: 1.2; letter-spacing: -0.02em; font-weight: 300;
  color: var(--brand-deep);
}
.prose a { color: var(--brand-deep); text-underline-offset: 3px; }
.more { padding: 0 var(--gutter) var(--section); }
.more__title { font-size: clamp(1.8rem, 3.4vw, 3.2rem); letter-spacing: -0.035em; line-height: .96; margin-bottom: var(--s-6); }


/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
  .modules__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .how__steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .channels__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .data__title { grid-column: 1 / -1; }
  .data__lead { grid-column: 1 / span 8; }
  .roadmap__title, .tanks__title { grid-column: 1 / -1; }
  .roadmap__lead, .tanks__lead { grid-column: 1 / span 8; }
  .tank--cryo-v, .tank--stat-v { grid-column: span 6; }
  .tank--cryo-h, .tank--stat-h { grid-column: span 12; }
  .phone { grid-column: 7 / span 6; }
  .alerts__text { grid-column: 1 / span 6; }
}

@media (max-width: 860px) {
  .float { width: 76px; }
  .page-head .float { top: calc(var(--header-h) + 8px); right: var(--gutter); }
  .gains .float, .alerts .float { top: 20px; right: var(--gutter); left: auto; }

  .contacts__grid { grid-template-columns: 1fr; }
  .gains__list, .channels__list { grid-template-columns: 1fr; }
  .modules__list { grid-template-columns: 1fr; row-gap: var(--s-7); }
  .modules__title, .modules__lead { grid-column: 1 / -1; }
  .modules__lead { max-width: 46ch; }
  .module__media { height: 320px; }
  .roadmap__lead, .tanks__lead { grid-column: 1 / -1; }
  .tank--cryo-v .tank__frame, .tank--stat-v .tank__frame { height: 300px; }
  .roadmap__stages { grid-template-columns: 1fr; row-gap: var(--s-8); margin-top: var(--s-8); }
  .stage { padding-right: 0; }
  .stage__line { right: 0; }
  .stage__rail { margin-bottom: var(--s-5); }
  .person { grid-template-columns: 1fr; }
  .person__links { justify-self: start; }
  .lang { margin-top: var(--s-4); }
  .channels__title, .channels__lead { grid-column: 1 / -1; }
  .channels__lead { margin-top: var(--s-5); }

  :root { --header-h: 64px; }
  .brand__emblem { width: 46px; height: 34px; }
  .brand__word { width: 104px; height: 14px; }
  .menu-toggle { display: block; }
  .site-nav {
    position: fixed; inset: 0; z-index: -1;
    flex-direction: column; align-items: flex-start; justify-content: flex-end; gap: var(--s-2);
    padding: 0 var(--gutter) 48px;
    background: var(--bg);
    opacity: 0; visibility: hidden;
    transform: translateY(-12px);
    transition: opacity 500ms var(--ease), transform 620ms var(--ease), visibility 0s linear 620ms;
  }
  .menu-open .site-nav { opacity: 1; visibility: visible; transform: none; transition: opacity 500ms var(--ease), transform 620ms var(--ease); }
  .site-nav__link { font-size: 34px; font-weight: 300; letter-spacing: -0.03em; line-height: 1.1; padding: 8px 0; color: var(--ink); }
  .site-nav .btn { margin-top: var(--s-5); min-height: 52px; padding: 0 24px; font-size: 15px; }
  .menu-open { overflow: hidden; }

  .hero { height: 100svh; }
  .hero__media { background: linear-gradient(180deg, #EEF1F4 0%, #E7EBEF 60%, #EEF2F5 100%); }
  .hero__img {
    height: 62%;
    object-position: 74% 55%;
    transform-origin: 74% 60%;
    -webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 70%, transparent 100%);
  }
  .hero__beam { width: 100%; right: -30%; }
  .hero__title { max-width: none; }
  .hero__actions .btn { flex: 1 1 auto; }


  .how { row-gap: var(--s-7); }
  .how__head { grid-column: 1 / -1; }
  .how__steps { grid-template-columns: 1fr; gap: var(--s-6); }
  .how__num { margin-bottom: var(--s-4); }

  .data__lead { grid-column: 1 / -1; }
  .data__controls { margin-top: var(--s-7); }
  .data__controls .seg { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
  .panel__values { gap: var(--s-6); }
  .data__pair { grid-template-columns: 1fr; }
  .panel { border-radius: 22px; }
  .chart { margin-top: var(--s-5); }

  .alerts { row-gap: var(--s-8); }
  .alerts__text, .phone { grid-column: 1 / -1; }


  .news__grid { grid-template-columns: 1fr; row-gap: var(--s-7); }
  .feature__media { margin-right: calc(var(--gutter) * -1); }
  .row { grid-template-columns: minmax(0, 1fr) 84px; }
  .row__thumb { width: 84px; }

  .cta__text, .cta__actions { grid-column: 1 / -1; }
  .cta__actions { justify-self: start; }
  .cta__chevron { width: 88px; }

  .site-footer__cols { grid-template-columns: 1fr 1fr; }
  .site-footer__about { grid-column: 1 / -1; }

  .article-head > *, .article-head__lead { grid-column: 1 / -1; }
  .article-cover { height: 52vh; }
  .article-aside { grid-column: 1 / -1; position: static; grid-auto-flow: column; justify-content: start; gap: var(--s-4); margin-bottom: var(--s-6); }
  .prose { grid-column: 1 / -1; }
}

@media (max-width: 480px) {
  .hero__actions { flex-direction: column; align-items: stretch; }
  .panel__values { width: 100%; justify-content: space-between; }
  .seg__btn { padding: 0 14px; font-size: 13px; }
}

@media (max-width: 600px) {
  .tank--cryo-v, .tank--stat-v { grid-column: span 12; }
}

/* ---------- reduced motion: collapse to final state ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rise, .is-in .rise, .msg, .brand .lg-chev, .brand .lg-drop, .brand .lg-wave {
    opacity: 1 !important; transform: none !important; filter: none !important; transition: none !important;
  }
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-delay: 0ms !important; }
  .hero__sparks { display: none; }
}
