:root {
  --bg:        #f3f7fb;
  --bg-tint:   #e9f1f9;
  --surface:   #ffffff;
  --surface-2: #f5f9fc;
  --ink:       #0a1c2e;
  --ink-2:     #33506b;
  --muted:     #687f96;
  --line:      #dbe5ef;
  --line-2:    #c8d7e6;

  --navy:      #06182b;
  --navy-2:    #0b2a48;
  --blue:      #1e66f0;
  --cyan:      #22b8f2;
  --cyan-ink:  #0b7fb3;
  --signal:    #ff7a1a;

  --safe:      #12a364;
  --warning:   #e0900b;
  --danger:    #e5383b;
  --off:       #8798aa;

  --r-sm: 10px;
  --r:    16px;
  --r-lg: 24px;
  --r-pill: 999px;

  --sh-1: 0 1px 2px rgba(6,24,43,.06), 0 2px 10px rgba(6,24,43,.05);
  --sh-2: 0 6px 18px rgba(6,24,43,.07), 0 18px 44px rgba(6,24,43,.08);
  --sh-glow: 0 10px 30px rgba(34,184,242,.35);

  --f-display: 'Unbounded', 'Golos Text', system-ui, sans-serif;
  --f-body:    'Golos Text', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-mono:    'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

  --ease: cubic-bezier(.22,.61,.36,1);
  --t: .25s var(--ease);
  --wrap: 1200px;
  --gut: 16px;
  --strip-h: 34px;
  --bar-h: 62px;

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg:        #061321;
    --bg-tint:   #081a2c;
    --surface:   #0c2034;
    --surface-2: #0f263d;
    --ink:       #e6eef6;
    --ink-2:     #aac0d4;
    --muted:     #7d94aa;
    --line:      #18324b;
    --line-2:    #22405d;
    --cyan-ink:  #5cd0fa;
    --sh-1: 0 1px 2px rgba(0,0,0,.35);
    --sh-2: 0 10px 30px rgba(0,0,0,.4);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg:        #061321;
  --bg-tint:   #081a2c;
  --surface:   #0c2034;
  --surface-2: #0f263d;
  --ink:       #e6eef6;
  --ink-2:     #aac0d4;
  --muted:     #7d94aa;
  --line:      #18324b;
  --line-2:    #22405d;
  --cyan-ink:  #5cd0fa;
  --sh-1: 0 1px 2px rgba(0,0,0,.35);
  --sh-2: 0 10px 30px rgba(0,0,0,.4);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--bar-h) + 16px);
}
body {
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, iframe { max-width: 100%; }
img { display: block; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul { list-style: none; }
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 600; line-height: 1.15; letter-spacing: -.01em; }
::selection { background: rgba(34,184,242,.3); }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }
svg[stroke="currentColor"] { stroke-linecap: round; stroke-linejoin: round; }
[hidden] { display: none !important; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  padding: 10px 16px; border-radius: var(--r-sm);
  background: var(--cyan); color: var(--navy); font-weight: 600;
  transition: top var(--t);
}
.skip-link:focus { top: 12px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--f-mono); font-size: .72rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--cyan-ink);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: ""; width: 18px; height: 2px; background: currentColor; border-radius: 2px;
}
.eyebrow--light { color: var(--cyan); }
.eyebrow:has(.pulse)::before { display: none; }

.dot {
  display: inline-block; width: 9px; height: 9px; border-radius: 50%;
  background: var(--off); flex-shrink: 0;
}
.dot--safe    { background: var(--safe); }
.dot--warning { background: var(--warning); }
.dot--danger  { background: var(--danger); }
.dot--live    { background: var(--safe); }
.dot--off, .dot--unknown { background: var(--off); }

.pulse {
  position: relative; display: inline-block;
  width: 8px; height: 8px; border-radius: 50%; background: var(--safe);
  flex-shrink: 0;
}
.pulse::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: inherit; animation: pulse 2s var(--ease) infinite;
}
@keyframes pulse { from { transform: scale(1); opacity: .7; } to { transform: scale(2.8); opacity: 0; } }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 22px;
  border-radius: var(--r-pill);
  font-weight: 600; font-size: .95rem; line-height: 1.2;
  border: 1px solid transparent;
  transition: transform var(--t), background var(--t), box-shadow var(--t), color var(--t), border-color var(--t);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--sm { min-height: 40px; padding: 8px 16px; font-size: .88rem; }
.btn--block { width: 100%; }
.btn--accent { background: var(--cyan); color: var(--navy); }
.btn--accent:hover { box-shadow: var(--sh-glow); background: #46c6f6; }
.btn--primary { background: var(--blue); color: #fff; }
.btn--primary:hover { box-shadow: 0 10px 28px rgba(30,102,240,.35); }
.btn--outline { border-color: var(--line-2); color: var(--ink); background: var(--surface); }
.btn--outline:hover { border-color: var(--cyan); color: var(--cyan-ink); }
.btn--glass { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.2); color: #fff; backdrop-filter: blur(8px); }
.btn--glass:hover { background: rgba(255,255,255,.16); }
.btn--ghost-light { border-color: rgba(255,255,255,.22); color: #dbe9f6; }
.btn--ghost-light:hover { border-color: var(--cyan); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.icon-btn {
  display: inline-grid; place-items: center;
  width: 44px; height: 44px; border-radius: 12px;
  color: var(--ink-2);
  transition: background var(--t), color var(--t);
}
.icon-btn:hover { background: var(--surface-2); color: var(--ink); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; color: var(--cyan-ink); min-height: 44px;
}
.link-arrow svg { transition: transform var(--t); }
.link-arrow:hover svg { transform: translateX(4px); }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

.hdr {
  position: sticky; top: calc(-1 * var(--strip-h)); z-index: 100;
}
.hdr-strip {
  height: var(--strip-h);
  background: var(--navy);
  color: #a9c3da;
  font-size: .78rem;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.hdr-strip__inner {
  height: 100%; display: flex; align-items: center; gap: 18px;
  overflow-x: auto; scrollbar-width: none; white-space: nowrap;
}
.hdr-strip__inner::-webkit-scrollbar { display: none; }
.hdr-strip__label {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--f-mono); font-size: .68rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: var(--cyan);
}
.hdr-strip__list { display: flex; gap: 18px; }
.hdr-strip__item, .hdr-strip__item a { display: inline-flex; align-items: center; gap: 7px; }
.hdr-strip__item a:hover .hdr-strip__name { color: #fff; }
.hdr-strip__item .dot { width: 7px; height: 7px; }
.hdr-strip__val { font-family: var(--f-mono); font-weight: 700; color: #fff; }
.hdr-strip__more { display: none; margin-left: auto; color: #7f9cb7; }
.hdr-strip__more:hover { color: #fff; }

.hdr-bar {
  height: var(--bar-h);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.6) blur(14px);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t), box-shadow var(--t), background var(--t);
}
.hdr.is-scrolled .hdr-bar { border-color: var(--line); box-shadow: 0 6px 24px rgba(6,24,43,.06); }
.hdr-nav { height: 100%; display: flex; align-items: center; gap: 16px; }

.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; }
.brand__mark { display: grid; place-items: center; transition: transform .5s var(--ease); }
.brand:hover .brand__mark { transform: rotate(180deg); }
.brand__text { font-family: var(--f-display); font-weight: 700; font-size: 1.08rem; letter-spacing: -.02em; }
.brand__text span { color: var(--cyan-ink); }
.brand--light .brand__text { color: #fff; }
.brand--light .brand__text span { color: var(--cyan); }

.hdr-links { display: none; }
.hdr-actions { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.hdr-cta { display: none; }

.theme-toggle .i-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .i-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .i-moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .i-sun { display: none; }
  :root:not([data-theme="light"]) .theme-toggle .i-moon { display: block; }
}

.hdr-burger { position: relative; }
.hdr-burger span {
  position: absolute; left: 12px; right: 12px; height: 2px; border-radius: 2px;
  background: currentColor; transition: transform var(--t), top var(--t);
}
.hdr-burger span:nth-child(1) { top: 17px; }
.hdr-burger span:nth-child(2) { top: 25px; right: 18px; }
.hdr-burger.is-open span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.hdr-burger.is-open span:nth-child(2) { top: 21px; right: 12px; transform: rotate(-45deg); }

.tmenu { position: fixed; inset: 0; z-index: 150; }
.tmenu__backdrop {
  position: absolute; inset: 0; background: rgba(3,12,22,.55);
  opacity: 0; transition: opacity .3s var(--ease);
}
.tmenu__panel {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: min(380px, 100%);
  display: flex; flex-direction: column;
  background: var(--navy); color: #e6eef6;
  padding: max(14px, env(safe-area-inset-top)) 20px max(20px, env(safe-area-inset-bottom));
  transform: translateX(100%); transition: transform .35s var(--ease);
  overflow-y: auto;
}
.tmenu.is-open .tmenu__backdrop { opacity: 1; }
.tmenu.is-open .tmenu__panel { transform: none; }
.tmenu__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.tmenu__head .icon-btn { color: #cfe0ef; }
.tmenu__head .icon-btn:hover { background: rgba(255,255,255,.08); color: #fff; }
.tmenu__title { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--cyan); }
.tmenu__group { border-top: 1px solid rgba(255,255,255,.08); padding: 6px 0; }
.tmenu__link {
  display: flex; align-items: baseline; gap: 14px;
  min-height: 52px; padding: 10px 0;
  font-family: var(--f-display); font-size: 1.35rem; font-weight: 600;
}
.tmenu__link.is-active { color: var(--cyan); }
.tmenu__num { font-family: var(--f-mono); font-size: .72rem; color: #6f8aa4; font-weight: 500; }
.tmenu__subs { display: grid; gap: 2px; padding: 0 0 8px 34px; }
.tmenu__sub { display: flex; align-items: center; gap: 10px; min-height: 44px; color: #b7cbdd; }
.tmenu__sub:hover { color: #fff; }
.tmenu__sub-ico { color: var(--cyan); display: grid; }
.tmenu__foot { margin-top: auto; padding-top: 24px; display: grid; gap: 14px; }
.tmenu__mail { text-align: center; color: #8fa9c1; font-size: .9rem; min-height: 44px; display: grid; place-items: center; }
body.has-menu-open { overflow: hidden; }

.ad { margin: 40px auto 0; text-align: center; }
.ad::before {
  content: attr(aria-label);
  display: inline-block; margin-bottom: 10px;
  font-family: var(--f-mono); font-size: .62rem; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--muted); opacity: .7; user-select: none;
}
.ad > div[id^="yandex_rtb"] { border-radius: var(--r-sm); overflow: hidden; }
.ad:has(> div[id^="yandex_rtb"]:empty) { display: none; }
.ad--nolabel::before { display: none; }
.ad--capped { max-width: 860px; padding-inline: var(--gut); }
.ad--top { margin: 14px auto 8px; }
.ad--top > div[id^="yandex_rtb"] { max-height: 370px; }
.ad--between { margin: 0 auto; padding-top: 8px; padding-bottom: 48px; }
.ad--incontent { margin: 36px auto 0; }

.hdr-strip__note { font-family: var(--f-mono); font-size: .66rem; color: #6f8aa4; }

.rustore-badge { display: inline-flex; flex-direction: column; gap: 6px; border-radius: 10px; transition: transform var(--t), filter var(--t); }
.rustore-badge img { height: 56px; width: auto; display: block; }
.rustore-badge--sm img { height: 44px; }
.rustore-badge__cap { font-family: var(--f-mono); font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: #7f9cb7; }
.rustore-badge:hover { transform: translateY(-2px); filter: drop-shadow(0 10px 22px rgba(34,184,242,.35)); }

.ftr {
  position: relative; margin-top: 40px;
  background: var(--navy); color: #a9c0d5;
  padding: 24px 0 max(28px, env(safe-area-inset-bottom));
}
.ftr-wave { position: absolute; left: 0; right: 0; top: -38px; height: 40px; line-height: 0; }
.ftr-wave svg { width: 100%; height: 100%; fill: var(--navy); }
.ftr-h { font-family: var(--f-mono); font-size: .7rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--cyan); margin-bottom: 14px; }
.ftr-top { display: grid; gap: 36px; padding: 24px 0 36px; border-bottom: 1px solid rgba(255,255,255,.08); }
.ftr-brand p { margin: 14px 0 20px; max-width: 46ch; font-size: .92rem; }
.ftr-brand__actions { display: flex; flex-wrap: wrap; gap: 10px; }

.floods { display: grid; gap: 9px; }
.floods__row { display: grid; grid-template-columns: 48px 1fr 64px; gap: 12px; align-items: center; font-family: var(--f-mono); font-size: .8rem; }
.floods__year { color: #dbe8f4; font-weight: 700; }
.floods__bar { height: 8px; border-radius: 6px; background: rgba(255,255,255,.06); overflow: hidden; }
.floods__bar span { display: block; height: 100%; width: var(--w); border-radius: 6px; background: linear-gradient(90deg, #12507f, var(--cyan)); transform-origin: left; }
.ftr.is-in .floods__bar span { animation: grow 1.4s var(--ease) both; }
.floods__val { text-align: right; color: #fff; }
.floods__row--ref .floods__year, .floods__row--ref .floods__val { color: #ff9c9e; }
.floods__row--ref .floods__bar span { background: var(--danger); }
.ftr-floods__note { margin-top: 12px; font-size: .78rem; color: #7f9cb7; }

.ftr-cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px 20px; padding: 36px 0; }
.ftr-col ul { display: grid; gap: 4px; }
.ftr-col a { display: inline-flex; align-items: center; min-height: 36px; font-size: .92rem; transition: color var(--t); }
.ftr-col a:hover { color: #fff; }
.ftr-col--contact { grid-column: 1 / -1; }
.ftr-mail { font-family: var(--f-display); font-size: 1.05rem !important; color: #fff; word-break: break-all; }
.ftr-small { font-size: .82rem; color: #7f9cb7; margin-top: 4px; }

.ftr-legal { display: grid; gap: 10px; padding: 18px; border-radius: var(--r); background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.07); font-size: .78rem; line-height: 1.55; color: #87a3bd; }
.ftr-bottom { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px; padding-top: 22px; font-size: .8rem; color: #7f9cb7; }
.ftr-bottom a:hover { color: #fff; }
.ftr-up {
  margin-left: auto; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.18); color: #fff; transition: background var(--t), border-color var(--t), transform var(--t);
}
.ftr-up:hover { background: var(--cyan); border-color: var(--cyan); color: var(--navy); transform: translateY(-3px); }

@media (min-width: 560px) {
  :root { --gut: 24px; }
  .ftr-cols { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 720px) {
  .hdr-strip__more { display: inline; }
  .hdr-cta { display: inline-flex; }
}
@media (min-width: 960px) {
  :root { --bar-h: 72px; --gut: 32px; }
  .hdr-burger { display: none; }
  .hdr-links { display: flex; align-items: center; gap: 2px; margin-left: 28px; }
  .hdr-item { position: relative; display: flex; align-items: center; }
  .hdr-link {
    position: relative; display: inline-flex; align-items: center; min-height: 44px;
    padding: 0 14px; border-radius: var(--r-pill);
    font-weight: 500; font-size: .95rem; color: var(--ink-2);
    transition: color var(--t), background var(--t);
  }
  .hdr-item--drop .hdr-link { padding-right: 4px; }
  .hdr-link:hover { color: var(--ink); background: var(--surface-2); }
  .hdr-item.is-active .hdr-link { color: var(--ink); }
  .hdr-item.is-active .hdr-link::after {
    content: ""; position: absolute; left: 14px; right: 14px; bottom: 6px; height: 2px;
    border-radius: 2px; background: var(--cyan);
  }
  .hdr-item--drop.is-active .hdr-link::after { right: 4px; }
  .hdr-caret { display: grid; place-items: center; width: 26px; height: 44px; color: var(--muted); transition: transform var(--t), color var(--t); }
  .hdr-item.is-open .hdr-caret { transform: rotate(180deg); color: var(--ink); }
  .hdr-drop {
    position: absolute; top: calc(100% + 10px); left: 0; min-width: 280px;
    padding: 8px; border-radius: var(--r);
    background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-2);
    opacity: 0; visibility: hidden; transform: translateY(-6px);
    transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
  }
  .hdr-drop::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
  .hdr-item.is-open .hdr-drop { opacity: 1; visibility: visible; transform: none; }
  .hdr-drop__item { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 10px; transition: background var(--t); }
  .hdr-drop__item:hover { background: var(--surface-2); }
  .hdr-drop__ico { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: color-mix(in srgb, var(--cyan) 12%, transparent); color: var(--cyan-ink); flex-shrink: 0; }
  .hdr-drop__name { display: block; font-weight: 600; font-size: .92rem; }
  .hdr-drop__desc { display: block; font-size: .78rem; color: var(--muted); }
  .ftr-top { grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
  .ftr-cols { grid-template-columns: repeat(4, 1fr); }
  .ftr-col--contact { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

.hdr-strip__viewport { min-width: 0; flex: 1; overflow: hidden; }
.hdr-strip__track { display: flex; width: max-content; }
.hdr-strip__list { padding-right: 18px; }
.hdr-strip__list--clone { display: none; }
.hdr-strip__tg {
  display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0;
  height: 24px; padding: 0 10px; border-radius: 999px;
  background: rgba(34,184,242,.14); color: #8fdcff; font-weight: 600;
  transition: background var(--t), color var(--t);
}
.hdr-strip__tg:hover { background: var(--cyan); color: var(--navy); }
.hdr-strip__more { margin-left: 0; }

@media (max-width: 719.98px) {
  .hdr-strip__inner { overflow: hidden; gap: 10px; padding-right: 8px; }
  .hdr-strip__label-text { display: none; }
  .hdr-strip__viewport {
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 14px, #000 calc(100% - 14px), transparent);
            mask-image: linear-gradient(90deg, transparent, #000 14px, #000 calc(100% - 14px), transparent);
  }
  .hdr-strip__list--clone { display: flex; }
  .hdr-strip__track { animation: tni-marquee 22s linear infinite; }
  .hdr-strip__viewport:hover .hdr-strip__track,
  .hdr-strip__viewport:active .hdr-strip__track,
  .hdr-strip__viewport:focus-within .hdr-strip__track { animation-play-state: paused; }
  .hdr-strip__tg span { display: none; }
  .hdr-strip__tg { width: 26px; height: 26px; padding: 0; justify-content: center; }
}
@keyframes tni-marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .hdr-strip__track { animation: none !important; }
  .hdr-strip__list--clone { display: none !important; }
  .hdr-strip__viewport { overflow-x: auto; scrollbar-width: none; }
}

.tmenu__tg { background: rgba(34,184,242,.14); color: #bfeaff; border: 1px solid rgba(34,184,242,.3); }
.tmenu__tg:hover { background: var(--cyan); color: var(--navy); }
.ftr-tg { display: inline-flex !important; align-items: center; gap: 8px; color: #8fdcff; font-weight: 600; }
.ftr-tg:hover { color: #fff; }
