/* =========================================================
   Уполномоченный по ЖКХ — «жидкое стекло» в палитре
   партии «Новые люди». Шрифт: New People (только он).
   Все пиктограммы рисуются вектором: в New People нет глифов для
   стрелок, знака умножения, буллета, многоточия и копирайта.
   ========================================================= */

@font-face { font-family: "New People"; src: url("../fonts/NewPeople-Regular.woff2") format("woff2");  font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "New People"; src: url("../fonts/NewPeople-Medium.woff2") format("woff2");   font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "New People"; src: url("../fonts/NewPeople-SemiBold.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "New People"; src: url("../fonts/NewPeople-Bold.woff2") format("woff2");     font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "New People"; src: url("../fonts/NewPeople-Black.woff2") format("woff2");    font-weight: 900; font-style: normal; font-display: swap; }
@font-face { font-family: "New People"; src: url("../fonts/NewPeople-Italic.woff2") format("woff2");   font-weight: 400; font-style: italic; font-display: swap; }

/* ---------------- Токены ---------------- */
:root {
  --tiffany: #0ad1c9;
  --deep:    #0ba8a2;
  --coral:   #ef4056;
  --mint:    #d6eeec;
  --ink:     #000000;
  --white:   #ffffff;

  --ink-80: rgba(0, 0, 0, .8);
  --ink-62: rgba(0, 0, 0, .62);
  --ink-45: rgba(0, 0, 0, .45);
  --deep-ink: #04413f;

  --paper: #f6fdfc;

  --glass-bg:   rgba(255, 255, 255, .62);
  --glass-brd:  rgba(255, 255, 255, .85);
  --glass-blur: blur(26px) saturate(180%);

  --shadow-s: 0 8px 24px rgba(4, 92, 88, .07);
  --shadow-m: 0 22px 60px rgba(4, 92, 88, .12), 0 2px 6px rgba(4, 92, 88, .05);
  --shadow-l: 0 40px 110px rgba(4, 92, 88, .18), 0 4px 12px rgba(4, 92, 88, .06);
  --shadow-coral: 0 18px 42px rgba(239, 64, 86, .32);
  --shadow-tiff:  0 18px 42px rgba(10, 209, 201, .34);

  --r-xs: 14px;
  --r-sm: 20px;
  --r-md: 28px;
  --r-lg: 36px;
  --r-xl: 48px;
  --r-2xl: 64px;
  --r-full: 999px;

  --spring: cubic-bezier(.2, .82, .2, 1);
  --ease:   cubic-bezier(.4, 0, .2, 1);

  --header-h: 88px;
}

/* ---------------- База ---------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 18px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "New People", ui-sans-serif, system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-locked { overflow: hidden; }

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { margin: 0; line-height: 1.06; letter-spacing: -.02em; font-weight: 900; }
p { margin: 0; }
ol, ul { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }

::selection { background: rgba(10, 209, 201, .28); }

:focus-visible { outline: 3px solid var(--deep); outline-offset: 3px; border-radius: var(--r-xs); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.skip-link {
  position: fixed; z-index: 2000; top: 12px; left: 12px;
  padding: .8rem 1.3rem; border-radius: var(--r-full);
  background: var(--ink); color: var(--white); font-weight: 600;
  transform: translateY(-160%); transition: transform .3s var(--spring);
}
.skip-link:focus { transform: translateY(0); }

.container { width: min(1200px, calc(100% - 40px)); margin-inline: auto; }

/* ---------------- Векторные иконки ---------------- */
.ic {
  width: 1.15em; height: 1.15em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
  overflow: visible;
}

/* ---------------- Живой фон ---------------- */
.aurora {
  position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none;
  background: radial-gradient(120% 90% at 50% -10%, #ffffff 0%, #f2fbfa 42%, #eaf8f7 100%);
}
.aurora-blob { position: absolute; display: block; border-radius: 50%; filter: blur(90px); opacity: .55; will-change: transform; }
.blob-1 { width: 52vw; height: 52vw; left: -14vw; top: -12vw; background: radial-gradient(circle at 30% 30%, rgba(10,209,201,.55), rgba(10,209,201,0) 68%); animation: drift-a 26s var(--ease) infinite alternate; }
.blob-2 { width: 46vw; height: 46vw; right: -12vw; top: 8vh;   background: radial-gradient(circle at 60% 40%, rgba(214,238,236,.95), rgba(214,238,236,0) 70%); animation: drift-b 32s var(--ease) infinite alternate; }
.blob-3 { width: 38vw; height: 38vw; left: 24vw; top: 62vh;    background: radial-gradient(circle at 50% 50%, rgba(11,168,162,.34), rgba(11,168,162,0) 70%); animation: drift-c 29s var(--ease) infinite alternate; }
.blob-4 { width: 26vw; height: 26vw; right: 8vw; bottom: -6vh; background: radial-gradient(circle at 50% 50%, rgba(239,64,86,.18), rgba(239,64,86,0) 70%); animation: drift-d 34s var(--ease) infinite alternate; }
.aurora-grid {
  position: absolute; inset: 0; opacity: .5;
  background-image:
    linear-gradient(rgba(10,209,201,.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10,209,201,.055) 1px, transparent 1px);
  background-size: 68px 68px;
  mask-image: radial-gradient(110% 80% at 50% 20%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(110% 80% at 50% 20%, #000 20%, transparent 78%);
}
@keyframes drift-a { from { transform: translate3d(0,0,0) scale(1); } to { transform: translate3d(8vw, 10vh, 0) scale(1.16); } }
@keyframes drift-b { from { transform: translate3d(0,0,0) scale(1.08); } to { transform: translate3d(-9vw, 14vh, 0) scale(.92); } }
@keyframes drift-c { from { transform: translate3d(0,0,0) scale(.94); } to { transform: translate3d(12vw, -12vh, 0) scale(1.18); } }
@keyframes drift-d { from { transform: translate3d(0,0,0) scale(1); } to { transform: translate3d(-10vw, -8vh, 0) scale(1.24); } }

/* ---------------- Стекло ---------------- */
.glass {
  position: relative;
  background: var(--glass-bg);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-brd);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-m), inset 0 1px 0 rgba(255,255,255,.9);
  overflow: hidden;
}
.glass::before {
  content: "";
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background: linear-gradient(160deg, rgba(255,255,255,.85) 0%, rgba(255,255,255,.16) 34%, rgba(255,255,255,0) 60%);
  mix-blend-mode: screen;
}
[data-glare]::after {
  content: "";
  position: absolute; inset: -1px; pointer-events: none; z-index: 0;
  border-radius: inherit;
  background: radial-gradient(320px circle at var(--gx, 50%) var(--gy, 0%), rgba(10,209,201,.20), rgba(255,255,255,0) 62%);
  opacity: 0; transition: opacity .45s var(--ease);
}
[data-glare]:hover::after { opacity: 1; }
.glass > * { position: relative; z-index: 1; }

/* ---------------- Типографика ---------------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  margin-bottom: 1.1rem;
  padding: .55rem 1.05rem;
  font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  line-height: 1;
  color: var(--deep);
  border-radius: var(--r-full);
  background: rgba(255,255,255,.6);
  border: 1px solid rgba(10,209,201,.24);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.eyebrow > span:last-child { display: block; transform: translateY(.5px); }

.pulse-dot {
  position: relative; width: 9px; height: 9px; border-radius: 50%; flex: none;
  color: var(--tiffany); background: currentColor;
}
.pulse-dot::after, .status-dot::after {
  content: ""; position: absolute; inset: 0; border: 2px solid currentColor;
  border-radius: 50%; opacity: .55; animation: pulse-ring 2.4s var(--ease) infinite;
}
.pulse-dot.coral { color: var(--coral); }
@keyframes pulse-ring { 70%, 100% { transform: scale(2.7); opacity: 0; } }

h1 { font-size: clamp(2.2rem, 4.4vw, 3.55rem); padding-left: .06em; margin-left: -.06em; }
h1 em {
  font-style: normal;
  background: linear-gradient(100deg, var(--tiffany), var(--deep) 60%, var(--tiffany));
  background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
h2 { font-size: clamp(1.75rem, 3.4vw, 2.85rem); }
h3 { font-size: 1.16rem; font-weight: 700; letter-spacing: -.01em; }

.section { padding: clamp(72px, 9vw, 128px) 0; position: relative; }
.section-heading { max-width: 860px; margin-bottom: clamp(38px, 5vw, 64px); }
.section-intro { margin-top: 1.5rem; display: grid; gap: .9rem; color: var(--ink-62); font-size: 1.06rem; max-width: 720px; }
.section-intro strong { color: var(--ink); font-weight: 600; }

/* ---------------- Кнопки ---------------- */
.button {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  padding: 1.02rem 1.7rem;
  border: 0; border-radius: var(--r-full);
  font-weight: 700; font-size: .98rem; line-height: 1.1; letter-spacing: -.005em;
  text-align: center;
  overflow: hidden; isolation: isolate;
  transition: transform .38s var(--spring), box-shadow .38s var(--spring), background-color .3s var(--ease), color .3s var(--ease);
  will-change: transform;
}
.button > span { position: relative; z-index: 2; }
.button .ic { position: relative; z-index: 2; transition: transform .38s var(--spring); }
.button:hover .ic-shift { transform: translateX(4px); }
.button::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: radial-gradient(160px circle at var(--bx, 50%) var(--by, 50%), rgba(255,255,255,.42), transparent 60%);
  opacity: 0; transition: opacity .3s var(--ease);
}
.button:hover::before { opacity: 1; }
.button:active { transform: scale(.97) !important; }

.button-primary { color: var(--white); background: linear-gradient(135deg, var(--tiffany), var(--deep)); box-shadow: var(--shadow-tiff); }
.button-primary:hover { box-shadow: 0 24px 54px rgba(10,209,201,.44); }
.button-coral { color: var(--white); background: linear-gradient(135deg, #ff5b6f, var(--coral)); box-shadow: var(--shadow-coral); }
.button-coral:hover { box-shadow: 0 24px 54px rgba(239,64,86,.42); }
.button-ghost {
  color: var(--deep-ink);
  background: rgba(255,255,255,.68);
  border: 1px solid rgba(10,209,201,.3);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: var(--shadow-s);
}
.button-ghost:hover { background: rgba(255,255,255,.92); box-shadow: var(--shadow-m); }
.button-dark { color: var(--white); background: var(--ink); box-shadow: 0 18px 40px rgba(0,0,0,.22); }
.button-dark:hover { box-shadow: 0 24px 52px rgba(0,0,0,.3); }

.button-sm { padding: .72rem 1.15rem; font-size: .88rem; }
.button-wide { width: 100%; }

.link-button {
  background: none; border: 0; padding: 0;
  color: var(--deep-ink); font-weight: 700;
  border-bottom: 2px solid rgba(11,168,162,.4);
  transition: border-color .3s var(--ease), color .3s var(--ease);
}
.link-button:hover { color: #a91d34; border-color: rgba(169,29,52,.55); }

/* ---------------- Шапка ---------------- */
.site-header { position: fixed; z-index: 900; top: 16px; left: 0; right: 0; }
.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; overflow: hidden; z-index: 950; }
.scroll-progress span {
  display: block; height: 100%; width: 100%;
  transform: scaleX(0); transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--tiffany), var(--deep) 55%, var(--coral));
  transition: transform .08s linear;
}
.header-inner {
  display: flex; align-items: center; gap: .9rem;
  padding: .55rem .6rem .55rem 1.1rem;
  border-radius: var(--r-full);
  background: rgba(255,255,255,.5);
  transition: background-color .4s var(--ease), box-shadow .4s var(--ease);
}
.site-header.is-scrolled .header-inner {
  background: rgba(255,255,255,.8);
  box-shadow: var(--shadow-m), inset 0 1px 0 rgba(255,255,255,.9);
}
.brand img { width: 74px; height: auto; transition: transform .4s var(--spring); }
.brand:hover img { transform: scale(1.05) rotate(-2deg); }

.desktop-nav { position: relative; display: flex; gap: .1rem; margin-left: auto; }
.desktop-nav a {
  position: relative; z-index: 1;
  padding: .6rem .95rem; border-radius: var(--r-full);
  font-size: .92rem; font-weight: 600; color: var(--ink-62);
  transition: color .3s var(--ease);
}
.desktop-nav a:hover, .desktop-nav a.is-active { color: var(--deep-ink); }
.nav-pill {
  position: absolute; z-index: 0; top: 0; left: 0; height: 100%; width: 0;
  border-radius: var(--r-full);
  background: rgba(10,209,201,.16);
  border: 1px solid rgba(10,209,201,.22);
  opacity: 0;
  transition: transform .45s var(--spring), width .45s var(--spring), opacity .3s var(--ease);
}
.header-actions { display: flex; align-items: center; gap: .45rem; flex: none; }

/* Бургер: три полоски, при открытии складываются в букву «Ж».
   b1/b3 — левые лучи, b4/b5 — правые (в покое спрятаны под b1/b3), b2 — стойка. */
.menu-button {
  position: relative; display: none; flex: none;
  width: 46px; height: 46px; border: 0; border-radius: var(--r-full);
  background: rgba(10,209,201,.14);
  transition: background-color .35s var(--ease);
}
.menu-button:hover { background: rgba(10,209,201,.24); }
.menu-button .bar {
  position: absolute; left: 50%; top: 50%;
  width: var(--len, 20px); height: 2.2px;
  border-radius: 2px; background: var(--deep-ink);
  opacity: var(--op, 1);
  transform: translate(-50%, -50%) translate(var(--tx, 0px), var(--ty, 0px)) rotate(var(--rot, 0deg));
  transition:
    transform .5s var(--spring),
    width .45s var(--spring),
    opacity .3s var(--ease);
}
.menu-button .b1 { --ty: -7px; }
.menu-button .b2 { --ty: 0px; }
.menu-button .b3 { --ty: 7px; }
/* правые лучи в покое лежат ровно под своими левыми — их не видно */
.menu-button .b4 { --ty: -7px; --op: 0; }
.menu-button .b5 { --ty: 7px;  --op: 0; }

.menu-button[aria-expanded="true"] .b2 { --rot: 90deg; --len: 23px; }
.menu-button[aria-expanded="true"] .b1 { --tx: -5.5px; --ty: -5.5px; --rot: 45deg;  --len: 15px; }
.menu-button[aria-expanded="true"] .b4 { --tx:  5.5px; --ty: -5.5px; --rot: -45deg; --len: 15px; --op: 1; }
.menu-button[aria-expanded="true"] .b3 { --tx: -5.5px; --ty:  5.5px; --rot: -45deg; --len: 15px; }
.menu-button[aria-expanded="true"] .b5 { --tx:  5.5px; --ty:  5.5px; --rot: 45deg;  --len: 15px; --op: 1; }

/* лучи расходятся чуть позже стойки — читается как «сборка» буквы */
.menu-button[aria-expanded="true"] .b1,
.menu-button[aria-expanded="true"] .b3 { transition-delay: .06s; }
.menu-button[aria-expanded="true"] .b4,
.menu-button[aria-expanded="true"] .b5 { transition-delay: .1s; }

.mobile-nav {
  display: grid; gap: .2rem;
  width: calc(100% - 40px); margin: .7rem auto 0;
  padding: .8rem; border-radius: var(--r-lg);
  animation: menu-in .4s var(--spring);
}
.mobile-nav[hidden] { display: none; }
.mobile-nav > a { padding: .85rem 1.1rem; border-radius: var(--r-md); font-weight: 600; transition: background-color .3s var(--ease); }
.mobile-nav > a:hover { background: rgba(10,209,201,.14); }
.mobile-menu-actions { display: grid; gap: .55rem; margin-top: .45rem; }
.mobile-menu-actions .button { width: 100%; padding: .9rem 1.1rem; }
.mobile-pdf { display: flex; align-items: center; justify-content: space-between; gap: .6rem; color: var(--white); }
@keyframes menu-in { from { opacity: 0; transform: translateY(-12px); } }

/* ---------------- Появление ---------------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--spring), transform .8s var(--spring); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .hero .reveal { opacity: 1; transform: none; transition: none; }

/* по словам — без обрезающей маски, чтобы буквы не срезались по краям */
.split-title .word { display: inline-block; }
.split-title .word > span {
  display: inline-block;
  transform: translateY(.5em);
  opacity: 0;
  transition: transform .85s var(--spring), opacity .7s var(--ease);
}
.split-title.is-visible .word > span { transform: none; opacity: 1; }

/* ---------------- Hero ---------------- */
.hero { position: relative; padding: calc(var(--header-h) + 54px) 0 26px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr); gap: clamp(28px, 4vw, 64px); align-items: start; }
.hero-copy h1 { margin-bottom: 1.5rem; }
.hero-lead { max-width: 34rem; margin-bottom: 1rem; color: var(--ink-62); font-size: clamp(1rem, 1.25vw, 1.12rem); }
.hero-lead.strong { color: var(--ink); font-weight: 500; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.9rem 0 1.7rem; }

.status-note {
  display: flex; gap: .9rem; align-items: flex-start;
  max-width: 36rem; padding: 1.1rem 1.35rem;
  border-radius: var(--r-md);
  font-size: .92rem; color: var(--ink-62);
}
.status-note strong { color: var(--ink); font-weight: 700; }
.status-dot { position: relative; flex: none; width: 10px; height: 10px; margin-top: .45rem; border-radius: 50%; color: var(--coral); background: currentColor; }

/* ---------------- Интерактив: труба ---------------- */
.hero-visual { display: grid; gap: .9rem; margin-top: 42px; }
.pipe-stage { --stage-pad: 1.5rem; padding: var(--stage-pad) var(--stage-pad) 1.2rem; border-radius: var(--r-2xl); }
.pipe-head { text-align: center; }
.pipe-kicker { display: inline-flex; align-items: center; gap: .5rem; line-height: 1; font-size: .68rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; color: var(--coral); }
.pipe-kicker > span:last-child { transform: translateY(.5px); }
.pipe-title { margin: .55rem 0 .35rem; font-size: clamp(1.4rem, 2.6vw, 1.95rem); }
.pipe-hint { min-height: 2.6em; font-size: .93rem; color: var(--ink-62); transition: color .3s var(--ease); }
.pipe-hint.is-warn { color: var(--coral); font-weight: 600; }

.pipe-scene { position: relative; margin-top: .4rem; }
.pipe-svg { display: block; width: 100%; height: auto; }

.pipe-v { fill: none; stroke: url(#metal-v); stroke-width: 56; stroke-linecap: butt; }
.pipe-h { fill: none; stroke: url(#metal-h); stroke-width: 56; stroke-linecap: round; filter: drop-shadow(0 14px 26px rgba(4,92,88,.16)); }
.pipe-flange { fill: #ffffff; stroke: rgba(11,168,162,.5); stroke-width: 3; }
.valve-stem { fill: url(#metal-stem); }
.valve-collar { fill: #ffffff; stroke: rgba(11,168,162,.45); stroke-width: 3; }

/* поддон */
.basin-shell { fill: rgba(255,255,255,.5); stroke: rgba(11,168,162,.32); stroke-width: 3; }
#basin-liquid { transition: transform .9s var(--ease); }
.basin-fill { fill: rgba(10,209,201,.34); animation: wave-x 5.5s var(--ease) infinite alternate-reverse; }
.basin-wave { fill: rgba(10,209,201,.26); animation: wave-x 4s var(--ease) infinite alternate; }
@keyframes wave-x { from { transform: translateX(-16px); } to { transform: translateX(16px); } }

/* вода: цепочка капель */
.stream { transition: opacity .5s var(--ease); }
.wdrop {
  fill: var(--tiffany);
  animation: drop-fall var(--drop-dur, 1.55s) cubic-bezier(.42, 0, .72, .42) infinite;
  transform-box: fill-box; transform-origin: 50% 0;
}
.wdrop.w2 { animation-delay: calc(var(--drop-dur, 1.55s) * .2); }
.wdrop.w3 { animation-delay: calc(var(--drop-dur, 1.55s) * .4); }
.wdrop.w4 { animation-delay: calc(var(--drop-dur, 1.55s) * .6); }
.wdrop.w5 { animation-delay: calc(var(--drop-dur, 1.55s) * .8); }
@keyframes drop-fall {
  0%   { transform: translateY(0) scaleY(.7);      opacity: 0; }
  14%  { opacity: 1; }
  55%  { transform: translateY(50px) scaleY(1);    opacity: 1; }
  88%  { transform: translateY(88px) scaleY(1.14); opacity: 1; }
  100% { transform: translateY(102px) scaleY(.5);  opacity: 0; }
}
.splash-rings .sr {
  fill: none; stroke: rgba(255,255,255,.9); stroke-width: 3;
  transform-box: fill-box; transform-origin: 50% 50%;
  opacity: 0;
  animation: ring-out var(--drop-dur, 1.55s) ease-out infinite;
}
.splash-rings .sr2 { animation-delay: calc(var(--drop-dur, 1.55s) * .33); }
.splash-rings .sr3 { animation-delay: calc(var(--drop-dur, 1.55s) * .66); }
@keyframes ring-out {
  0%, 78% { opacity: 0; transform: scale(.25); }
  86%     { opacity: .9; }
  100%    { opacity: 0; transform: scale(1.5); }
}
.pipe-scene.is-closed .stream,
.pipe-scene.is-closed .splash-rings { opacity: 0; animation-play-state: paused; }
.pipe-scene.is-closed .wdrop,
.pipe-scene.is-closed .sr { animation-play-state: paused; }

/* вентиль */
.valve {
  position: absolute;
  left: 31.43%; top: 3.57%;
  width: 25%; aspect-ratio: 1;
  transform: translateX(-50%);
  padding: 0; border: 0; background: none; border-radius: 50%;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.valve-ring {
  position: absolute; inset: -12%;
  border-radius: 50%;
  border: 2px dashed rgba(10,209,201,.45);
  animation: ring-spin 14s linear infinite;
  transition: opacity .5s var(--ease);
}
@keyframes ring-spin { to { transform: rotate(360deg); } }
.valve::before {
  content: ""; position: absolute; inset: -20%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(239,64,86,.26), transparent 66%);
  animation: attention 2.1s ease-in-out infinite;
}
@keyframes attention { 0%, 100% { transform: scale(.86); opacity: .5; } 50% { transform: scale(1.06); opacity: .9; } }
.valve-wheel {
  position: absolute; inset: 0; display: block;
  transform: rotate(var(--turn, 0deg));
  transition: transform .95s cubic-bezier(.16, 1.05, .3, 1);
  filter: drop-shadow(0 12px 26px rgba(4,92,88,.26));
}
.valve-wheel svg { width: 100%; height: 100%; display: block; }
.wheel-rim { fill: none; stroke: url(#wheel-metal); stroke-width: 15; }
.wheel-rim-inner { fill: none; stroke: rgba(255,255,255,.7); stroke-width: 4; }
.wheel-spokes rect { fill: url(#wheel-metal); }
.wheel-hub { fill: #ffffff; stroke: rgba(11,168,162,.5); stroke-width: 4; }
.wheel-hub-dot { fill: var(--coral); }
.valve:hover .valve-wheel { transform: rotate(var(--turn, 0deg)) scale(1.04); }
.valve:active .valve-wheel { transform: rotate(var(--turn, 0deg)) scale(.97); }
.pipe-scene.is-closed .valve::before,
.pipe-scene.is-closed .valve-ring { opacity: 0; }
.pipe-scene.is-closed .valve { pointer-events: none; }

/* счётчик оборотов — в свободном левом нижнем углу сцены */
.pipe-turns {
  position: absolute; left: 1%; bottom: 5%;
  display: grid; justify-items: start; gap: 0;
  padding: .7rem 1rem; border-radius: var(--r-md);
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(10,209,201,.24);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: var(--shadow-s);
  transition: opacity .4s var(--ease);
}
.turn-label { font-size: .6rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-45); line-height: 1.5; }
.pipe-turns strong { font-size: 1.7rem; font-weight: 900; line-height: 1; color: var(--coral); font-variant-numeric: tabular-nums; }
.pipe-scene.is-closed .pipe-turns { opacity: 0; }

.pipe-timer {
  position: absolute; right: 1%; top: 2%;
  display: grid; gap: .1rem; justify-items: end;
  padding: .6rem 1rem; border-radius: var(--r-md);
}
.timer-label { font-size: .62rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-45); line-height: 1.4; }
.pipe-timer strong { font-size: 1.3rem; font-weight: 900; line-height: 1; color: var(--coral); font-variant-numeric: tabular-nums; }
.pipe-scene.is-closed .pipe-timer strong { color: var(--deep); }

.pipe-result {
  margin-top: 1rem; padding: 1.2rem 1.3rem;
  border-radius: var(--r-lg);
  background: linear-gradient(140deg, rgba(214,238,236,.9), rgba(255,255,255,.75));
  border: 1px solid rgba(10,209,201,.28);
  display: grid; gap: .7rem; justify-items: start;
  animation: result-in .7s var(--spring);
}
.pipe-result[hidden] { display: none; }
@keyframes result-in { from { opacity: 0; transform: translateY(18px) scale(.97); } }
.result-lead { font-size: 1.16rem; font-weight: 700; }
.result-lead b { color: var(--deep); }
.result-text { font-size: .95rem; color: var(--ink-62); }
.result-text b { color: var(--coral); font-weight: 700; }
.pipe-result .button { width: 100%; }
.pipe-reset {
  justify-self: center;
  background: none; border: 0; padding: .2rem;
  font-size: .82rem; font-weight: 600; color: var(--ink-45);
  border-bottom: 1px dashed rgba(0,0,0,.25);
}
.pipe-reset:hover { color: var(--deep); }
.pipe-caption { text-align: center; font-size: .9rem; color: var(--ink-62); }

/* ---------------- Бегущая строка ---------------- */
.ticker { margin-top: clamp(38px, 5vw, 66px); overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.ticker-track { display: flex; width: max-content; animation: ticker 34s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-group { display: flex; align-items: center; gap: 1.6rem; padding-right: 1.6rem; }
.ticker-group span { font-size: clamp(1.1rem, 2.2vw, 1.7rem); font-weight: 900; letter-spacing: -.02em; color: rgba(4,65,63,.78); text-transform: lowercase; white-space: nowrap; }
.tick-dot { flex: none; width: 9px; height: 9px; border-radius: 50%; border: 2px solid var(--tiffany); }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------------- Волна между секциями ---------------- */
/* Волна тянется на всю ширину без стыков (preserveAspectRatio="none")
   и «дышит» на месте: по оси X ничего не едет. */
.wave-divider { position: relative; line-height: 0; margin: -1px 0; pointer-events: none; }
.wave-divider svg { display: block; width: 100%; height: clamp(52px, 6.5vw, 88px); }
.wave-divider.flip svg { transform: scaleY(-1); }
.wave-divider path { transform-origin: 50% 100%; will-change: transform; }
.wave-back  { fill: rgba(10, 209, 201, .09);  animation: wave-breathe-a 9s ease-in-out infinite alternate; }
.wave-mid   { fill: rgba(10, 209, 201, .13); animation: wave-breathe-b 7s ease-in-out infinite alternate; }
.wave-front { fill: rgba(10, 209, 201, .18); animation: wave-breathe-c 5.5s ease-in-out infinite alternate; }
@keyframes wave-breathe-a { from { transform: translateY(3px)  scaleY(.94); } to { transform: translateY(-4px) scaleY(1.07); } }
@keyframes wave-breathe-b { from { transform: translateY(-3px) scaleY(1.06); } to { transform: translateY(4px)  scaleY(.93); } }
@keyframes wave-breathe-c { from { transform: translateY(2px)  scaleY(.97); } to { transform: translateY(-3px) scaleY(1.05); } }

/* ---------------- Проблемы ---------------- */
.problem-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 22px); }
.problem-card {
  padding: 1.7rem 1.5rem 1.6rem; border-radius: var(--r-xl);
  display: grid; align-content: start; gap: .75rem;
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .5s var(--spring), box-shadow .5s var(--spring);
}
.problem-card:hover { box-shadow: var(--shadow-l), inset 0 1px 0 rgba(255,255,255,.9); }
.card-number { font-size: .74rem; font-weight: 800; letter-spacing: .14em; color: rgba(11,168,162,.55); }
.card-icon {
  width: 54px; height: 54px; display: grid; place-items: center;
  border-radius: var(--r-sm);
  background: linear-gradient(140deg, rgba(10,209,201,.18), rgba(214,238,236,.6));
  border: 1px solid rgba(10,209,201,.22);
  transition: transform .5s var(--spring);
}
.problem-card:hover .card-icon { transform: translateY(-4px) rotate(-6deg); }
.card-icon svg { width: 26px; height: 26px; fill: none; stroke: var(--deep); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.problem-card p { color: var(--ink-62); font-size: .95rem; }
.accent-card { background: linear-gradient(150deg, rgba(239,64,86,.1), rgba(255,255,255,.66)); border-color: rgba(239,64,86,.28); }
.accent-card .card-icon { background: linear-gradient(140deg, rgba(239,64,86,.18), rgba(255,255,255,.5)); border-color: rgba(239,64,86,.26); }
.accent-card .card-icon svg { stroke: var(--coral); }
.accent-card .card-number { color: rgba(239,64,86,.6); }

/* ---------------- Полномочия ---------------- */
.powers-grid { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: clamp(28px, 4vw, 64px); align-items: start; }
.powers-title { position: sticky; top: calc(var(--header-h) + 26px); }
.principle-card { margin-top: 1.8rem; padding: 1.4rem 1.5rem; border-radius: var(--r-lg); background: linear-gradient(150deg, rgba(10,209,201,.16), rgba(255,255,255,.7)); }
.principle-card span { display: block; margin-bottom: .5rem; font-size: .7rem; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; color: var(--deep); }
.principle-card p { font-size: 1.02rem; font-weight: 500; }

.powers-list { display: grid; gap: 12px; }
.power-item {
  display: flex; align-items: center; gap: 1.1rem;
  padding: 1.15rem 1.5rem; border-radius: var(--r-full);
  transition: transform .45s var(--spring), box-shadow .45s var(--spring), background-color .4s var(--ease);
}
.power-item:hover { transform: translateX(10px); box-shadow: var(--shadow-m), inset 0 1px 0 rgba(255,255,255,.9); background: rgba(255,255,255,.82); }
.power-item b {
  flex: none; width: 44px; height: 44px; display: grid; place-items: center;
  border-radius: 50%; font-size: .85rem; font-weight: 800; color: var(--white);
  background: linear-gradient(140deg, var(--tiffany), var(--deep));
  box-shadow: 0 8px 18px rgba(10,209,201,.34);
}
.power-item p { font-size: .98rem; }
.power-item:nth-child(7) b { background: linear-gradient(140deg, #ff5b6f, var(--coral)); box-shadow: 0 8px 18px rgba(239,64,86,.34); }

.clarification {
  margin-top: clamp(30px, 4vw, 52px);
  padding: 1.5rem 1.8rem; border-radius: var(--r-lg);
  font-size: 1rem; color: var(--ink-62);
  background: rgba(255,255,255,.55);
}
.clarification strong { color: var(--coral); }

/* ---------------- Процесс ---------------- */
.process-track { display: grid; gap: 0; }
.process-row {
  position: relative;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 2vw, 28px);
}
.process-line {
  position: absolute; left: 9%; right: 9%; top: 48px; height: 7px;
  border-radius: var(--r-full); background: rgba(10,209,201,.24); overflow: hidden;
}
/* П-образный возврат: маршрут уходит вниз справа и вливается в следующий ряд слева */
.process-connector {
  display: block; height: 46px;
  margin: 14px 9%;
  border: 7px solid rgba(10,209,201,.24);
  border-top: 0;
  border-radius: 0 0 32px 32px;
}
.process-fill {
  display: block; height: 100%; width: 0;
  border-radius: var(--r-full);
  background: linear-gradient(90deg, var(--tiffany), var(--deep));
  transition: width .5s var(--ease);
}
.step {
  position: relative; z-index: 1;
  padding: 1.6rem 1.5rem; border-radius: var(--r-xl);
  display: flex; gap: 1.1rem; align-items: flex-start;
  transition: transform .45s var(--spring), box-shadow .45s var(--spring);
}
.step:hover { transform: translateY(-8px); box-shadow: var(--shadow-l), inset 0 1px 0 rgba(255,255,255,.9); }
.step-num {
  flex: none; width: 46px; height: 46px; display: grid; place-items: center;
  border-radius: 50%; font-weight: 900; font-size: 1.05rem; color: var(--white);
  background: linear-gradient(140deg, var(--tiffany), var(--deep));
  box-shadow: 0 10px 22px rgba(10,209,201,.32);
}
.step h3 { margin-bottom: .4rem; }
.step p { font-size: .93rem; color: var(--ink-62); }

/* ---------------- Портреты ---------------- */
/* Портреты обрезаны заранее (anastasia.jpg — поясной 4:5,
   anastasia-face.jpg — квадрат по лицу), поэтому здесь только центрирование. */
.portrait { position: relative; overflow: hidden; background: linear-gradient(150deg, var(--tiffany), var(--deep)); }
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.portrait.no-photo img { display: none; }

.portrait-lg { border-radius: var(--r-xl); box-shadow: var(--shadow-m); aspect-ratio: 4 / 5; }
/* если контейнер станет квадратным (мобильные) — держим лицо в кадре */
.portrait-lg img { object-position: 50% 22%; }
.portrait-lg figcaption {
  position: absolute; left: 12px; right: 12px; bottom: 12px;
  display: grid; gap: .18rem;
  padding: .85rem 1.1rem; border-radius: var(--r-md);
  background: rgba(255,255,255,.78);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,.9);
}
.portrait-lg figcaption strong { font-size: 1rem; font-weight: 800; }
.portrait-lg figcaption span { font-size: .76rem; color: var(--ink-62); line-height: 1.35; }

.portrait-sm { width: 68px; height: 68px; flex: none; border-radius: 50%; box-shadow: var(--shadow-s); }
.portrait-xs { width: 52px; height: 52px; flex: none; border-radius: 50%; box-shadow: var(--shadow-s); }

/* ---------------- Личная позиция ---------------- */
.personal-card {
  display: grid; grid-template-columns: minmax(0, .42fr) minmax(0, 1fr);
  gap: clamp(24px, 3.4vw, 54px); align-items: center;
  padding: clamp(24px, 3.4vw, 48px); border-radius: var(--r-2xl);
}
.personal-copy h2 { margin-bottom: 1rem; }
.personal-copy p { margin-bottom: .9rem; color: var(--ink-62); }
.quote {
  padding: 1rem 1.3rem; border-radius: var(--r-md);
  background: rgba(214,238,236,.6);
  border-left: 4px solid var(--tiffany);
  font-size: 1.1rem; font-weight: 600; color: var(--ink) !important; font-style: italic;
}
.personal-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.3rem; }

/* ---------------- Форма обратной связи ---------------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr); gap: clamp(26px, 3.4vw, 56px); align-items: start; }
.contact-copy h2 { margin-bottom: 1.3rem; }
.contact-copy > p { color: var(--ink-62); margin-bottom: 1.5rem; }
.contact-author { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.2rem; }
.contact-author p { font-size: .95rem; color: var(--ink-62); margin: 0; }
.contact-author strong { color: var(--ink); font-weight: 700; }
.contact-facts { display: grid; gap: 10px; }
.contact-facts li { display: flex; align-items: center; gap: .9rem; padding: .95rem 1.2rem; border-radius: var(--r-full); font-size: .93rem; }
.contact-facts b {
  flex: none; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%;
  font-size: .8rem; color: var(--white); background: linear-gradient(140deg, var(--tiffany), var(--deep));
}

.contact-form { padding: clamp(22px, 2.6vw, 38px); border-radius: var(--r-2xl); display: grid; gap: 14px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { position: relative; }
.field input, .field textarea {
  width: 100%; padding: 1.5rem 1.1rem .68rem;
  border: 1px solid rgba(10,209,201,.26); border-radius: var(--r-md);
  background: rgba(255,255,255,.75);
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease), background-color .3s var(--ease);
  resize: vertical;
}
.field textarea { min-height: 140px; border-radius: var(--r-lg); }
.field input:hover, .field textarea:hover { background: rgba(255,255,255,.92); }
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--tiffany); background: var(--white);
  box-shadow: 0 0 0 4px rgba(10,209,201,.16);
}
.field label {
  position: absolute; left: 1.15rem; top: 1.02rem;
  font-size: .95rem; color: var(--ink-45); pointer-events: none;
  transform-origin: 0 0;
  transition: transform .28s var(--spring), color .28s var(--ease);
}
.field label i { color: var(--coral); font-style: normal; }
.field input:focus + label,
.field input:not(:placeholder-shown) + label,
.field textarea:focus + label,
.field textarea:not(:placeholder-shown) + label {
  transform: translateY(-.62rem) scale(.76);
  color: var(--deep);
}
.field.has-error input, .field.has-error textarea { border-color: var(--coral); box-shadow: 0 0 0 4px rgba(239,64,86,.14); }
.field-counter { position: absolute; right: 1rem; bottom: .6rem; font-size: .72rem; color: var(--ink-45); }

.honeypot { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.check { display: flex; gap: .8rem; align-items: flex-start; cursor: pointer; font-size: .87rem; color: var(--ink-62); line-height: 1.5; }
.check input { position: absolute; opacity: 0; width: 0; height: 0; }
.check-box {
  flex: none; width: 22px; height: 22px; margin-top: 1px;
  border-radius: 8px; border: 2px solid rgba(10,209,201,.5);
  background: rgba(255,255,255,.8);
  display: grid; place-items: center;
  transition: background-color .3s var(--spring), border-color .3s var(--ease), transform .3s var(--spring);
}
.check-box svg {
  width: 14px; height: 14px; fill: none; stroke: var(--white);
  stroke-width: 3; stroke-linecap: round; stroke-linejoin: round;
  transform: scale(0); transition: transform .3s var(--spring);
}
.check input:checked + .check-box { background: linear-gradient(140deg, var(--tiffany), var(--deep)); border-color: var(--deep); }
.check input:checked + .check-box svg { transform: scale(1); }
.check input:focus-visible + .check-box { outline: 3px solid var(--deep); outline-offset: 3px; }
.check:hover .check-box { transform: scale(1.08); }
.check-text a { color: var(--deep); font-weight: 600; border-bottom: 1px solid rgba(11,168,162,.4); }
.check-text i { color: var(--coral); font-style: normal; }
.check.has-error .check-box { border-color: var(--coral); animation: shake .4s var(--ease); }
@keyframes shake { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }

.form-status { min-height: 1.4em; font-size: .9rem; font-weight: 600; }
.form-status.success { color: var(--deep); }
.form-status.error { color: var(--coral); }
.form-status.pending { color: var(--ink-45); }

/* ---------------- Документы ---------------- */
.document-card {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto;
  gap: clamp(20px, 2.6vw, 42px); align-items: center;
  padding: clamp(26px, 3.2vw, 48px); border-radius: var(--r-2xl);
}
.document-icon {
  position: relative; width: 92px; height: 116px; border-radius: 22px 22px 22px 6px;
  display: grid; place-items: center;
  background: linear-gradient(150deg, var(--white), var(--mint));
  border: 1px solid rgba(10,209,201,.3);
  box-shadow: var(--shadow-m);
  transform: rotate(-5deg); transition: transform .5s var(--spring);
}
.document-card:hover .document-icon { transform: rotate(2deg) translateY(-6px); }
.document-icon span { font-size: .95rem; font-weight: 900; letter-spacing: .06em; color: var(--deep); }
.document-icon i { position: absolute; right: -10px; top: -10px; width: 30px; height: 30px; border-radius: 50%; background: var(--coral); box-shadow: var(--shadow-coral); }
.document-copy h2 { margin-bottom: .8rem; }
.document-copy p { color: var(--ink-62); }

/* ---------------- FAQ ---------------- */
.faq-grid { display: grid; grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr); gap: clamp(26px, 3.4vw, 56px); align-items: start; }
.faq-heading { position: sticky; top: calc(var(--header-h) + 26px); }
.faq-list { display: grid; gap: 12px; }
.faq-list details { border-radius: var(--r-lg); transition: box-shadow .4s var(--ease); }
.faq-list details[open] { box-shadow: var(--shadow-m), inset 0 1px 0 rgba(255,255,255,.9); }
.faq-list summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.25rem 1.5rem; cursor: pointer; list-style: none;
  font-weight: 700; font-size: 1.02rem;
  transition: color .3s var(--ease);
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary:hover { color: var(--deep); }
.faq-list summary i {
  position: relative; flex: none; width: 30px; height: 30px; border-radius: 50%;
  background: rgba(10,209,201,.16); transition: background-color .3s var(--ease), transform .4s var(--spring);
}
.faq-list summary i::before, .faq-list summary i::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2.4px;
  margin: -1.2px 0 0 -6px; border-radius: 2px; background: var(--deep);
  transition: transform .4s var(--spring);
}
.faq-list summary i::after { transform: rotate(90deg); }
.faq-list details[open] summary i { background: var(--coral); transform: rotate(180deg); }
.faq-list details[open] summary i::before, .faq-list details[open] summary i::after { background: var(--white); }
.faq-list details[open] summary i::after { transform: rotate(0deg); }
.faq-answer { padding: 0 1.5rem 1.4rem; color: var(--ink-62); font-size: .96rem; animation: faq-in .45s var(--spring); }
@keyframes faq-in { from { opacity: 0; transform: translateY(-8px); } }

/* ---------------- Подвал ---------------- */
.site-footer { padding: 0 0 clamp(30px, 4vw, 54px); }
.footer-card { padding: clamp(26px, 3.4vw, 48px); border-radius: var(--r-2xl); display: grid; gap: 1.5rem; }
.footer-top { display: flex; flex-wrap: wrap; align-items: center; gap: 1.1rem; }
.footer-logo { width: 90px; }
.footer-title { display: grid; gap: .2rem; }
.footer-title strong { font-size: 1.12rem; font-weight: 800; }
.footer-title span { font-size: .88rem; color: var(--ink-62); max-width: 28rem; }
.footer-cta { display: flex; gap: .5rem; margin-left: auto; }
.footer-nav { display: flex; flex-wrap: wrap; gap: .5rem; padding-top: 1.2rem; border-top: 1px solid rgba(10,209,201,.2); }
.footer-nav a {
  padding: .5rem 1rem; border-radius: var(--r-full);
  font-size: .85rem; font-weight: 600; color: var(--ink-62);
  background: rgba(255,255,255,.6); border: 1px solid rgba(10,209,201,.2);
  transition: color .3s var(--ease), background-color .3s var(--ease), transform .3s var(--spring);
}
.footer-nav a:hover { color: var(--deep-ink); background: rgba(10,209,201,.16); transform: translateY(-2px); }
.footer-note { font-size: .86rem; color: var(--ink-62); }
.imprint {
  padding: 1.1rem 1.3rem; border-radius: var(--r-md);
  background: rgba(255,255,255,.55); border: 1px solid rgba(10,209,201,.16);
  font-size: .74rem; line-height: 1.55; color: var(--ink-45);
}
.footer-copy { display: inline-flex; align-items: center; gap: .35rem; font-size: .82rem; color: var(--ink-45); }
.footer-copy .ic { width: 1em; height: 1em; stroke-width: 1.8; }

/* ---------------- Диалог ---------------- */
.support-dialog {
  width: min(520px, calc(100% - 32px));
  padding: 0;
  border: 1px solid var(--glass-brd);
  /* умеренное скругление: при 64px угол срезал кнопку закрытия */
  border-radius: var(--r-lg);
  background: transparent;
  box-shadow: var(--shadow-l);
  color: var(--ink);
  overflow: hidden;
}
.dialog-inner {
  position: relative;
  padding: clamp(24px, 3vw, 38px);
  background: rgba(255,255,255,.9);
  -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  border-radius: inherit;
}
.dialog-inner::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: linear-gradient(160deg, rgba(255,255,255,.9) 0%, rgba(255,255,255,.15) 38%, rgba(255,255,255,0) 62%);
}
.dialog-inner > * { position: relative; }
.support-dialog::backdrop { background: rgba(4, 65, 63, .34); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.support-dialog[open] { animation: dialog-in .5s var(--spring); }
@keyframes dialog-in { from { opacity: 0; transform: translateY(24px) scale(.95); } }
/* портрет не заезжает под кнопку закрытия */
.dialog-portrait { margin-bottom: 1rem; }
.support-dialog .eyebrow { max-width: calc(100% - 56px); }
.support-dialog h2 { margin-bottom: .8rem; font-size: clamp(1.35rem, 3vw, 1.8rem); }
.dialog-lead { margin-bottom: 1.4rem; font-size: .95rem; color: var(--ink-62); }
.support-dialog form { display: grid; gap: 14px; }
.dialog-close {
  position: absolute; right: 18px; top: 18px; z-index: 2;
  width: 42px; height: 42px; display: grid; place-items: center;
  border: 0; border-radius: 50%; background: rgba(10,209,201,.14);
  color: var(--deep-ink);
  transition: background-color .3s var(--ease), transform .4s var(--spring), color .3s var(--ease);
}
.dialog-close:hover { background: var(--coral); color: var(--white); transform: rotate(90deg); }
.dialog-close .ic { width: 18px; height: 18px; stroke-width: 2.2; }

/* ---------------- Наверх ---------------- */
.to-top {
  position: fixed; z-index: 800; right: 22px; bottom: 22px;
  width: 52px; height: 52px; display: grid; place-items: center;
  border: 1px solid var(--glass-brd); border-radius: 50%;
  background: rgba(255,255,255,.72);
  color: var(--deep);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  box-shadow: var(--shadow-m);
  transition: transform .45s var(--spring), box-shadow .45s var(--spring);
  animation: to-top-in .45s var(--spring);
}
.to-top[hidden] { display: none; }
.to-top:hover { transform: translateY(-5px); box-shadow: var(--shadow-l); }
.to-top .ic { width: 20px; height: 20px; stroke-width: 2.2; }
@keyframes to-top-in { from { opacity: 0; transform: scale(.7); } }

/* ---------------- Круги от клика ---------------- */
.ripple {
  position: fixed; z-index: 1500; pointer-events: none;
  width: 14px; height: 14px; margin: -7px 0 0 -7px;
  border-radius: 50%; border: 2px solid rgba(10,209,201,.6);
  animation: ripple .7s var(--ease) forwards;
}
@keyframes ripple { to { transform: scale(5.5); opacity: 0; } }

/* ---------------- Внутренние страницы ---------------- */
.legal-page { padding: calc(var(--header-h) + 56px) 0 clamp(50px, 6vw, 90px); }
.legal-card { padding: clamp(26px, 3.4vw, 56px); border-radius: var(--r-2xl); }
.legal-card h1 { font-size: clamp(1.9rem, 4vw, 3rem); margin-bottom: 1.2rem; }
.legal-card h2 { font-size: clamp(1.25rem, 2.2vw, 1.6rem); margin: 2.2rem 0 .8rem; }
.legal-card h3 { margin: 1.4rem 0 .5rem; }
.legal-card p, .legal-card li { color: var(--ink-62); font-size: .98rem; }
.legal-card p + p { margin-top: .8rem; }
.legal-card ul, .legal-card ol { display: grid; gap: .55rem; margin: .9rem 0 0; padding-left: 1.4rem; }
.legal-card ul li { list-style: disc; }
.legal-card ol li { list-style: decimal; }
.legal-card strong { color: var(--ink); font-weight: 600; }
.legal-card a { color: var(--deep); font-weight: 600; border-bottom: 1px solid rgba(11,168,162,.4); }
.legal-meta { display: flex; width: fit-content; gap: .6rem; align-items: center; margin-bottom: 1.5rem; font-size: .8rem; color: var(--ink-45); }
.legal-back { display: inline-flex; align-items: center; gap: .45rem; margin-bottom: 1.4rem; font-weight: 600; color: var(--deep); }
.legal-back .ic { width: 1.05em; height: 1.05em; }
.legal-back:hover { color: var(--coral); }
.data-table { width: 100%; margin-top: 1rem; border-collapse: separate; border-spacing: 0 8px; font-size: .93rem; }
.data-table td { padding: .9rem 1rem; background: rgba(255,255,255,.6); color: var(--ink-62); }
.data-table tr td:first-child { border-radius: var(--r-sm) 0 0 var(--r-sm); font-weight: 600; color: var(--ink); width: 34%; }
.data-table tr td:last-child { border-radius: 0 var(--r-sm) var(--r-sm) 0; }

/* ---------------- Адаптив ---------------- */
@media (max-width: 1180px) {
  .header-actions .header-support span { display: none; }
  .header-actions .header-support { padding: .72rem .8rem; }
}

@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 560px; width: 100%; margin-top: 0; }
  .problem-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .powers-grid, .faq-grid, .contact-grid { grid-template-columns: 1fr; }
  .powers-title, .faq-heading { position: static; }
  .personal-card { grid-template-columns: 1fr; }
  .portrait-lg { max-width: 340px; aspect-ratio: 1 / 1; }
  .document-card { grid-template-columns: auto minmax(0, 1fr); }
  .document-card .button { grid-column: 1 / -1; justify-self: start; }

  /* труба доходит до левого края карточки и обрезается по нему */
  .pipe-scene { margin-left: calc(-1 * var(--stage-pad)); width: calc(100% + var(--stage-pad)); }
  .pipe-turns { left: calc(var(--stage-pad) + 10px); }

  /* маршрут: одна колонка, линия слева */
  .process-row { grid-template-columns: 1fr; gap: 14px; padding-left: 26px; }
  .process-row::before {
    content: ""; position: absolute; left: 9px; top: 26px; bottom: 26px; width: 5px;
    border-radius: var(--r-full);
    background: linear-gradient(180deg, var(--tiffany), var(--deep));
    opacity: .34;
  }
  .process-line { display: none; }
  .process-connector {
    width: 5px; height: 26px; margin: 0 0 0 9px;
    border: 0; border-radius: var(--r-full);
    background: linear-gradient(180deg, var(--deep), var(--tiffany)); opacity: .34;
  }
}

@media (max-width: 860px) {
  .desktop-nav { display: none; }
  .header-actions { display: flex; margin-left: auto; }
  .header-actions .header-support { display: none; }
  .header-actions .button-ghost { display: none; }
  .menu-button { display: flex; margin-left: 0; }
  .brand img { width: 62px; }
  :root { --header-h: 76px; }
}

@media (max-width: 620px) {
  .container { width: calc(100% - 28px); }
  .problem-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .hero-actions .button, .personal-actions .button { width: 100%; }
  .footer-cta { margin-left: 0; width: 100%; }
  .footer-title span { max-width: none; }
  .pipe-stage { --stage-pad: 1rem; padding: 1.1rem var(--stage-pad) .9rem; }
  .pipe-timer { right: 2%; top: 0; padding: .45rem .7rem; }
  .pipe-turns { left: calc(var(--stage-pad) + 10px); bottom: 2%; padding: .5rem .75rem; }
  .pipe-turns strong { font-size: 1.3rem; }
  .to-top { right: 14px; bottom: 14px; width: 46px; height: 46px; }
  .header-actions .button-primary { padding: .72rem 1rem; font-size: .84rem; }
  .contact-author { align-items: flex-start; }
}

/* ---------------- Уважение к настройкам ---------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .js .reveal { opacity: 1; transform: none; }
  .split-title .word > span { opacity: 1; transform: none; }
}

/* =========================================================
   Региональная страница /zhkh2/ — тот же визуальный язык
   без верхнего интерактива с вентилем.
   ========================================================= */

.summit-hero { padding-bottom: 0; }
.summit-hero .hero-grid { align-items: center; padding-bottom: clamp(34px, 6vw, 76px); }
.summit-hero .hero-visual { margin-top: 0; }

.summit-card {
  min-height: 540px;
  padding: clamp(28px, 4vw, 54px);
  border-radius: var(--r-2xl);
  display: flex;
  flex-direction: column;
  justify-content: center;
  background:
    radial-gradient(circle at 88% 10%, rgba(239,64,86,.18), transparent 28%),
    linear-gradient(145deg, rgba(255,255,255,.8), rgba(214,238,236,.7));
}
.summit-card::after { opacity: .7; }
.summit-date { display: flex; align-items: center; gap: 1rem; margin-bottom: .7rem; }
.summit-date strong {
  font-size: clamp(5.6rem, 11vw, 9.2rem);
  line-height: .78;
  letter-spacing: -.08em;
  color: var(--coral);
  text-shadow: 0 16px 42px rgba(239,64,86,.18);
}
.summit-date span { font-size: 1.08rem; font-weight: 800; line-height: 1.15; text-transform: uppercase; letter-spacing: .1em; }
.summit-city {
  position: absolute; top: 28px; right: 28px;
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .55rem .9rem; border-radius: var(--r-full);
  color: var(--white); background: var(--coral); font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .09em;
}
.summit-city .ic { width: 1rem; height: 1rem; }
.summit-label { color: var(--deep); font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .14em; }
.summit-card h2 { margin: .45rem 0 .9rem; font-size: clamp(2rem, 4vw, 3.3rem); }
.summit-card > p:not(.summit-label) { max-width: 34rem; color: var(--ink-62); }
.summit-tracks { display: grid; grid-template-columns: 1fr 1fr; gap: .65rem; margin-top: 1.7rem; }
.summit-tracks span {
  min-height: 66px; padding: .85rem 1rem; display: flex; align-items: center; gap: .7rem;
  border-radius: var(--r-sm); background: rgba(255,255,255,.7); border: 1px solid rgba(10,209,201,.2);
  font-size: .83rem; font-weight: 700; line-height: 1.25;
}
.summit-tracks b { color: var(--deep); font-size: 1rem; }

.marquee { overflow: hidden; padding: 17px 0; border-block: 1px solid rgba(10,209,201,.18); background: rgba(255,255,255,.52); }
.marquee-track { width: max-content; display: flex; align-items: center; gap: 1.2rem; animation: regional-marquee 34s linear infinite; }
.marquee-track span { color: var(--deep-ink); font-size: .76rem; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; white-space: nowrap; }
.marquee-track i { width: 8px; height: 8px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 5px rgba(239,64,86,.12); }
@keyframes regional-marquee { to { transform: translateX(-50%); } }

.direction-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.direction-grid .problem-card { min-height: 320px; }
.direction-grid h3 { margin-top: auto; font-size: clamp(1.35rem, 2vw, 1.75rem); }

.region-questions .power-item { min-height: 92px; }
.outcomes-grid { margin-top: clamp(42px, 6vw, 76px); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.outcome-card { min-height: 210px; padding: 26px; }
.outcome-card > span { display: block; margin-bottom: 2.2rem; color: var(--deep); font-weight: 900; }
.outcome-card h3 { margin-bottom: .6rem; }
.outcome-card p { color: var(--ink-62); font-size: .91rem; }

.roadmap-list { display: grid; gap: 13px; }
.roadmap-item {
  display: grid; grid-template-columns: 190px minmax(0, 1fr) auto; align-items: center; gap: clamp(18px, 3vw, 42px);
  min-height: 112px; padding: 22px 28px; border-radius: var(--r-lg);
}
.roadmap-item time { color: var(--deep); font-size: .83rem; font-weight: 900; text-transform: uppercase; letter-spacing: .11em; }
.roadmap-item h3 { margin-bottom: .3rem; }
.roadmap-item p { color: var(--ink-62); font-size: .94rem; }
.roadmap-main { background: linear-gradient(135deg, rgba(239,64,86,.14), rgba(255,255,255,.82)); border-color: rgba(239,64,86,.3); box-shadow: var(--shadow-l); }
.roadmap-main time { color: var(--coral); }

.regional-voice { padding-top: 30px; }
.regional-voice .personal-copy p { font-size: 1.08rem; }

.form-section { scroll-margin-top: calc(var(--header-h) + 10px); }
.registration-section { background: linear-gradient(180deg, rgba(214,238,236,.26), transparent); }
.registration-section .contact-facts { grid-template-columns: 1fr 1fr; }
.registration-section .contact-facts li { border-radius: var(--r-md); }

.field select {
  width: 100%; min-height: 58px; padding: 1.55rem 1rem .6rem;
  border: 1px solid rgba(10,209,201,.28); border-radius: var(--r-sm);
  outline: none; color: var(--ink); background: rgba(255,255,255,.72);
  appearance: none; cursor: pointer;
}
.select-field::after {
  content: ""; position: absolute; right: 1.1rem; top: 1.45rem; z-index: 2;
  width: 9px; height: 9px; border-right: 2px solid var(--deep); border-bottom: 2px solid var(--deep); transform: rotate(45deg); pointer-events: none;
}
.field select:hover { background: rgba(255,255,255,.92); }
.field select:focus { border-color: var(--deep); box-shadow: 0 0 0 4px rgba(10,209,201,.16); }
.field select:focus + label,
.field select:valid + label { top: .42rem; font-size: .68rem; color: var(--deep); transform: none; }
.field.has-error select { border-color: var(--coral); box-shadow: 0 0 0 4px rgba(239,64,86,.14); }

.proposal-layout { max-width: 980px; }
.proposal-heading { margin-inline: auto; text-align: center; }
.proposal-heading .section-intro { margin-inline: auto; }
.proposal-form { max-width: 900px; margin-inline: auto; padding: clamp(24px, 4vw, 52px); }
.proposal-form .field textarea { min-height: 130px; }
.contact-form button:disabled { opacity: .62; cursor: wait; transform: none !important; }

@media (max-width: 1050px) {
  .summit-card { min-height: 500px; }
  .outcomes-grid { grid-template-columns: 1fr 1fr; }
  .roadmap-item { grid-template-columns: 150px minmax(0, 1fr) auto; }
}

@media (max-width: 820px) {
  .header-actions .button-ghost { display: none; }
  .summit-hero .hero-grid { padding-bottom: 42px; }
  .summit-card { min-height: auto; }
  .direction-grid { grid-template-columns: 1fr; }
  .direction-grid .problem-card { min-height: 250px; }
  .roadmap-item { grid-template-columns: 1fr; gap: 8px; }
  .roadmap-item .button { justify-self: start; margin-top: .5rem; }
}

@media (max-width: 620px) {
  .header-actions .button-primary { padding-inline: .9rem; }
  .summit-card { padding: 28px 20px; }
  .summit-city { position: static; align-self: flex-start; order: -1; margin-bottom: 2.4rem; }
  .summit-date strong { font-size: 6rem; }
  .summit-tracks, .outcomes-grid, .registration-section .contact-facts { grid-template-columns: 1fr; }
  .outcome-card { min-height: 170px; }
  .roadmap-item { padding: 22px 20px; }
  .proposal-form { padding: 22px 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
}

@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .glass, .header-inner, .dialog-inner, .to-top, .pipe-turns { background: rgba(255, 255, 255, .93); }
}
