/* ===== Radionet — "scenes" design: full-screen chapters, big type ===== */

/* Unbounded, subset to Ukrainian + basic Latin, weights 300–800 (one 45 KB file) */
@font-face {
  font-family: "Unbounded"; font-style: normal; font-weight: 300 800; font-display: swap;
  src: url(/static/fonts/unbounded.woff2) format("woff2");
}

/* ---------- Tokens ---------- */
:root {
  /* brand colours from the logo: navy #23205b, globe gradient cyan #12b7f7 → violet #1E6FD9 */
  --bg: #06122b;
  --bg-alt: #091835;
  --surface: #0e2045;
  --surface-2: #142a56;
  --text: #eef3fc;
  --muted: #a7b6d4;
  --border: #213a6b;
  --line: rgba(238, 243, 252, .12);
  --primary: #5cc4ff;
  --primary-strong: #8ad5ff;
  --cyan: #3fc6f8;
  --accent: #8AD5FF;
  --warn: #f6c24a;
  --good: #35d29a;
  --danger: #ff5964;
  --on-accent: #06122b;
  /* filled buttons: cyan-blue → blue on the dark (blue) theme, white label ≥ 4.8:1 */
  --brand-grad: linear-gradient(100deg, #0b74c4, #1e5fd8);
  --shadow: 0 30px 70px -30px rgba(0, 0, 0, .7);
  --display: "Unbounded", system-ui, sans-serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  --radius: 18px;
  --wrap: 1320px;
  --gutter: clamp(16px, 4vw, 48px);
  --header-h: 72px;
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 100%; background: var(--bg); overflow-x: clip; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-tap-highlight-color: transparent; }
body {
  margin: 0; overflow-x: clip;
  font-family: var(--sans); font-size: 1.0625rem; line-height: 1.6;
  background-color: var(--bg); color: var(--text);
  -webkit-font-smoothing: antialiased;
}
/* One continuous background for the whole page: fixed to the viewport, so sections
   never show where they start or end — content scrolls over a single layer. */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(70vw 60vh at 88% 4%, color-mix(in srgb, var(--primary) 20%, transparent), transparent 70%),
    radial-gradient(60vw 55vh at 4% 96%, color-mix(in srgb, var(--cyan) 10%, transparent), transparent 70%);
}
[hidden] { display: none !important; }
img, video { max-width: 100%; height: auto; }
a { color: var(--link); text-decoration: none; }
@media (hover: hover) { a:hover { text-decoration: underline; text-underline-offset: 3px; } }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .6em; font-weight: 700; }
h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
code { font-family: var(--mono); font-size: .9em; }
::selection { background: color-mix(in srgb, var(--cyan) 35%, transparent); }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }
/* touch screens: no focus ring after a tap. !important on purpose — it must also beat the ~40 component
   :focus-visible rules below (.star-input, .kind-opt, .rq-switch, .hq-card, ...) that have higher specificity.
   Text fields keep their box-shadow focus ring; desktop keyboard (Tab) focus is untouched. */
@media (hover: none) and (pointer: coarse) {
  :focus-visible { outline: none !important; }
  .star-input input:focus-visible + label, .kind-opt input:focus-visible + span, .rq-switch input:focus-visible + span,
  .kab-switch input:focus-visible + .kab-switch-ui { outline: none !important; }
}

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.muted { color: var(--muted); }
.small { font-size: .94rem; }
.mono { font-family: var(--mono); }
.center { text-align: center; }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 2000; background: var(--surface); padding: 8px 14px; border-radius: 8px; }
.skip-link:focus { left: 8px; }

.eyebrow {
  font-family: var(--sans); font-size: .88rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--cyan); font-weight: 700; margin: 0 0 14px;
}
.display {
  font-family: var(--display); font-weight: 600; letter-spacing: -.02em;
  font-size: clamp(2rem, 4.6vw, 4rem); line-height: 1.04; margin: 0 0 .45em;
  text-wrap: balance;
}
.display-xl { font-size: clamp(2.6rem, 7.5vw, 6.6rem); }
.lead { font-size: clamp(1.05rem, 1.4vw, 1.25rem); color: var(--muted); max-width: 62ch; }

/* "Large text": the whole site scales from the root font size (button in the header and in the mobile menu) */
:root[data-fs="lg"] { font-size: 118.75%; }
/* desktop header has no room to grow — it keeps its normal size, everything below it scales */
@media (min-width: 1024px) {
  :root[data-fs="lg"] .main-nav a { font-size: 15.2px; }
  :root[data-fs="lg"] .cabinet-label { font-size: 14.7px; }
  :root[data-fs="lg"] .cabinet-sum { font-size: 13px; }
}

/* Theme toggle icons */
.only-dark { display: none; }
:root[data-theme="dark"] .only-dark { display: block; }
:root[data-theme="dark"] .only-light { display: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 26px; border-radius: 999px; font: 600 1rem/1 var(--sans); white-space: nowrap;
  border: 1px solid transparent; cursor: pointer; text-align: center;
  transition: transform .2s, background-color .2s, border-color .2s, color .2s;
}
@media (hover: hover) { .btn:hover { text-decoration: none; transform: translateY(-2px); } }
.btn-primary { background: var(--brand-grad); color: #fff; }
@media (hover: hover) { .btn-primary:hover { filter: brightness(1.12); } }
.btn-ghost { border-color: var(--line); color: var(--text); background: transparent; }
@media (hover: hover) { .btn-ghost:hover { border-color: var(--text); } }
.btn-sm { padding: 11px 20px; font-size: .97rem; margin-top: 12px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .6; cursor: progress; transform: none; }
.link-arrow { display: inline-block; padding-top: 10px; font-weight: 600; color: var(--text); border-bottom: 2px solid var(--accent); padding-bottom: 4px; }
.link-arrow::after { content: " →"; color: var(--accent); }
@media (hover: hover) { .link-arrow:hover { text-decoration: none; color: var(--accent); } }

.icon-btn {
  display: inline-grid; place-items: center; position: relative;
  width: 42px; height: 42px; border-radius: 50%;
  background: none; border: 1px solid var(--line); cursor: pointer; color: var(--text); font-size: 1rem;
  transition: border-color .2s;
}
@media (hover: hover) { .icon-btn:hover { border-color: var(--text); } }
.icon-btn svg, .cabinet-ic { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Header ---------- */
/* the height is --header-h at any scroll (side panels, scroll-padding-top and flyTo() in main.js count on it);
   scrolling changes only the background and the line under it (.scrolled), and hides / shows it (.hide, transform) */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 500; height: var(--header-h);
  transition: background-color .3s, border-color .3s, transform .35s; will-change: transform;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled, .page .site-header {
  background: color-mix(in srgb, var(--bg) 94%, transparent);
  border-bottom-color: var(--line);
}
.site-header.hide { transform: translateY(-100%); }
.header-inner { display: flex; align-items: center; gap: 24px; height: 100%; }
.brand { display: flex; flex: none; }
.main-nav { margin-left: auto; }
.main-nav ul { display: flex; gap: 2px; margin: 0; padding: 0; list-style: none; }
.main-nav a {
  display: block; padding: 8px 14px; border-radius: 999px; color: var(--text);
  font-weight: 500; font-size: .95rem; white-space: nowrap;
}
@media (hover: hover) { .main-nav a:hover { text-decoration: none; background: var(--line); } }
.main-nav a[aria-current="page"] { color: var(--accent); }
.nav-extra { display: none; }
.header-actions { display: flex; flex: none; align-items: center; gap: 8px; }
.nav-burger { display: none; }
.nav-burger span { display: block; width: 18px; height: 1.6px; background: currentColor; transition: transform .3s; position: absolute; }
.nav-burger span:first-child { transform: translateY(-4px); }
.nav-burger span:last-child { transform: translateY(4px); }
.nav-burger[aria-expanded="true"] span:first-child { transform: rotate(45deg); }
.nav-burger[aria-expanded="true"] span:last-child { transform: rotate(-45deg); }

/* Account badge: green = paid, red = debt */
.cabinet-badge {
  display: flex; align-items: center; gap: 9px; height: 42px;
  padding: 0 16px 0 11px; border-radius: 999px; border: 1px solid var(--line);
  color: var(--text); font-weight: 600; white-space: nowrap;
}
@media (hover: hover) { .cabinet-badge:hover { text-decoration: none; border-color: var(--text); } }
.cabinet-text { display: flex; flex-direction: column; line-height: 1.1; }
.cabinet-label { font-size: .92rem; }
.cabinet-sum { font-size: .82rem; color: var(--muted); font-weight: 700; }
.cabinet-badge.is-paid .cabinet-ic { color: var(--good); }
.cabinet-badge.is-paid .cabinet-sum { color: var(--good); }
.cabinet-badge.is-unpaid .cabinet-ic { color: var(--danger); }
.cabinet-badge.is-unpaid .cabinet-sum { color: var(--danger); }

/* Notifications */
.notif-item { display: flex; gap: 10px; padding: 12px 18px; border-bottom: 1px solid var(--border); }
.notif-item.important { background: color-mix(in srgb, var(--danger) 9%, transparent); }
.notif-icon { font-size: 1.2rem; }
.notif-body { display: flex; flex-direction: column; gap: 2px; }
.notif-body strong { font-size: .95rem; }
.notif-body span { color: var(--muted); font-size: .94rem; }
.notif-foot { display: block; padding: 12px 18px; text-align: center; font-weight: 600; }

@media (max-width: 1023.98px) {
  .nav-burger { display: inline-grid; }
  /* logo on the left; the phone (margin-left: auto, its rule below), «Кабінет» and the burger — one group on the right */
  .header-inner { gap: 8px; }
  .brand { flex: 0 1 auto; min-width: 0; }
  /* Full-screen menu */
  .main-nav {
    position: fixed; inset: var(--header-h) 0 0; margin: 0; z-index: 499;
    display: flex; flex-direction: column; justify-content: space-between;
    padding: 28px var(--gutter) 40px; background: var(--bg); overflow-y: auto; overscroll-behavior: contain;
    opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
 }
  .main-nav.open { opacity: 1; visibility: visible; }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav a {
    font-family: var(--display); font-size: clamp(1.8rem, 8vw, 3rem); font-weight: 500;
    padding: 10px 0; border-radius: 0; letter-spacing: -.01em;
 }
  @media (hover: hover) { .main-nav a:hover { background: none; color: var(--accent); } }
  .nav-extra { display: flex; flex-direction: column; gap: 4px; color: var(--muted); }
  .nav-extra a { font-size: 1.3rem; font-weight: 700; color: var(--text); }
  body.menu-open { overflow: hidden; }
  body.menu-open .site-header { background: var(--bg); }
  /* will-change: transform and backdrop-filter make the header the box of its position: fixed children — the
     full-screen menu inside it shrank to a 68 px strip; with the menu open the header neither hides nor is see-through */
  body.menu-open .site-header, body.menu-open .site-header.scrolled { will-change: auto; -webkit-backdrop-filter: none; backdrop-filter: none; }
  :root body.menu-open .site-header.scrolled { background: var(--bg); }   /* solid — outweighs the light theme's .95 glass */
  body.menu-open .side-dock { display: none; }
}

/* ---------- .reveal: blocks are on screen from the start — no fade-in on scroll (people waited for the text) ---------- */
.reveal { opacity: 1; transform: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  min-height: 100svh; display: flex; align-items: flex-end;
  padding: calc(var(--header-h) + 40px) 0 clamp(28px, 5vh, 56px);
}
.hero-inner {
  width: 100%;  grid-template-columns: minmax(0, 1fr) 290px;

}

.hero-title {
  font-family: var(--display);
  font-size: clamp(2.6rem, 7.2vw, 6.9rem);
}
@media (max-width: 1023.98px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-title { font-size: clamp(2.6rem, 9.2vw, 9rem); }
  .speedbox { margin-top: 36px; }
}
.hero-title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero-title .line span { display: inline-block; animation: line-up .7s cubic-bezier(.2,.7,.1,1) both; animation-delay: calc(.15s + var(--i) * .13s); }
.hero-title .line:last-child span { color: var(--accent); }
@keyframes line-up { from { transform: translateY(105%); } to { transform: none; } }
.hero-eyebrow, .speedbox { animation: fade-in .6s ease both; animation-delay: .7s; }
@keyframes fade-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.btn-lg { padding: 18px 34px; font-size: 1.1rem; }

@keyframes wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* Live network status strip */
/* the ring grows from the dot by transform + opacity (a box-shadow pulse repainted every frame) */
@keyframes ns-pulse { 0% { transform: scale(1); opacity: .9; } 70%, 100% { transform: scale(3.25); opacity: 0; } }

/* ---------- Scenes (chapters) ---------- */
.scene { position: relative; height: auto; padding-block: clamp(64px, 10vh, 120px); }
.scene-tight { padding-block: clamp(40px, 7vh, 80px) clamp(80px, 12vh, 140px); }
.scene-head { margin-bottom: clamp(40px, 7vh, 80px); }
.chapter { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; }
.chapter .eyebrow { margin: 0; }
.chapter-num { font-family: var(--display); font-weight: 300; font-size: .95rem; color: var(--accent); }
.chapter-num::after { content: ""; display: inline-block; width: 48px; height: 1px; margin-left: 16px; vertical-align: middle; background: var(--line); }
.section-title { margin-top: 56px; }

/* 01 — About */
.big-quote {
  margin: clamp(40px, 7vh, 72px) 0 0; padding: 0;
  font-family: var(--display); font-weight: 300; letter-spacing: -.02em; line-height: 1.2;
  font-size: clamp(1.5rem, 3.4vw, 2.8rem); color: var(--accent);
}

/* 02 — Map */
.legend { margin-left: 14px; white-space: nowrap; font-size: .95rem; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; vertical-align: middle; margin-right: 4px; }
.network-map {
  height: min(660px, 74vh); min-height: 420px; position: relative; z-index: 0; overflow: hidden;
  background:
    radial-gradient(70% 60% at 50% 45%, color-mix(in srgb, var(--primary) 10%, transparent), transparent 70%),
    var(--surface);
  /* map palette (theme-aware) */
  --m-hub: #4fd2ff; --m-node: #8AD5FF; --m-village: #7ee0a0; --m-ring: #37e1ff;
  --m-reroute: #ffc93f; --m-down: #ff4d4d;
}
:root[data-theme="light"] .network-map {
  --m-hub: #0b8fd0; --m-node: #1E6FD9; --m-village: #1d9e50; --m-ring: #0a8fb3;
  --m-reroute: #a86f00; --m-down: #d8323c;
}
.net-svg { display: block; width: 100%; height: 100%; touch-action: pan-y; user-select: none; }
/* animated layer (flows, halos) exactly on top of the static map, in its own GPU layer */
.network-map.zoomed .net-svg { touch-action: none; cursor: grab; }
.network-map.zoomed .net-svg:active { cursor: grabbing; }

/* Oblast outline */
.m-oblast { fill: color-mix(in srgb, var(--primary) 7%, var(--surface)); stroke: color-mix(in srgb, var(--m-ring) 55%, transparent); stroke-width: 1.4; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.m-oblast-glow { fill: none; stroke: color-mix(in srgb, var(--m-ring) 16%, transparent); stroke-width: 9; stroke-linejoin: round; vector-effect: non-scaling-stroke; }

/* Links */
/* moving "data" dots along active links */
/* steps(): the SVG is repainted ~20×/s instead of 60 — looks the same, a third of the GPU work */
@keyframes dash-move { to { stroke-dashoffset: -44; } }

/* Nodes */
.m-node { stroke: var(--surface); stroke-width: 1.5; vector-effect: non-scaling-stroke; cursor: pointer; transition: opacity .25s; }
.m-node.t1 { fill: var(--m-hub); stroke: #fff; stroke-width: 2.2; }
.m-node.t2 { fill: var(--m-node); }
.m-node.t3 { fill: var(--m-village); }
.m-node.down { fill: var(--m-down); }
.m-node:focus-visible { stroke: var(--text); stroke-width: 2.5; outline: none; }
@media (hover: hover) { .m-node:hover { stroke: var(--text); stroke-width: 2.5; outline: none; } }
@keyframes node-blink { 50% { opacity: .45; } }
.m-label { font-family: var(--display); font-weight: 600; fill: var(--text); paint-order: stroke; stroke: var(--surface); stroke-linejoin: round; pointer-events: none; }
/* names of nodes and villages: small, quieter, so the hubs still read first */
.m-label.t2, .m-label.t3 { font-family: var(--sans); font-weight: 500; }
.m-label.t3 { fill: color-mix(in srgb, var(--text) 72%, transparent); }
.m-label.down { fill: var(--m-down); }
.net-svg.focus .m-label { opacity: .4; }

/* Selection: dim everything except the chain to the backbone */
.net-svg.focus .m-node:not(.hl) { opacity: .35; }
.m-node.hl { opacity: 1; stroke: var(--text); stroke-width: 2.5; }

/* Tooltip */
.map-tip {
  position: absolute; z-index: 5; transform: translate(-50%, calc(-100% - 12px)); pointer-events: none;
  display: flex; flex-direction: column; gap: 2px; min-width: 190px; max-width: 240px;
  padding: 11px 14px; border-radius: 12px; font-size: .88rem; line-height: 1.35;
  background: color-mix(in srgb, var(--bg) 92%, transparent); border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.map-tip.below { transform: translate(-50%, 12px); }
.map-tip strong { font-size: .98rem; }
.tip-link { margin-top: 4px; font-weight: 700; pointer-events: auto; }

/* Zoom buttons */
.map-ctrls { position: absolute; z-index: 4; left: 12px; top: 12px; display: flex; flex-direction: column; border-radius: 12px; overflow: hidden; border: 1px solid var(--border); background: color-mix(in srgb, var(--bg) 85%, transparent); }
.map-ctrls button { width: 44px; height: 44px; border: none; background: none; color: var(--text); font: 600 1.15rem/1 var(--sans); cursor: pointer; }
.map-ctrls button + button { border-top: 1px solid var(--border); }
@media (hover: hover) { .map-ctrls button:hover { background: var(--surface-2); } }

@media (max-width: 767.98px) {
  /* the oblast is almost square — size the map to it instead of the screen height */
  .network-map { height: auto; min-height: 0; }
  .net-svg { height: auto; aspect-ratio: 1060 / 1107; }
}

/* Stats (big numbers) */
.stat { padding: 26px 24px 8px 0; }
.stat + .stat { padding-left: 24px; border-left: 1px solid var(--line); }
.stat-value {
  font-family: var(--display); font-weight: 600; letter-spacing: -.03em;
  font-size: clamp(2.2rem, 5vw, 4.2rem); line-height: 1.05; font-variant-numeric: tabular-nums;
}
.stat-value small { font-size: .45em; font-weight: 400; }
.stat-sm { font-size: clamp(1.2rem, 2vw, 1.6rem); }
.stat-label { color: var(--muted); margin-top: 6px; }
@media (max-width: 767.98px) {
  .stat + .stat { padding-left: 0; border-left: none; border-top: 1px solid var(--line); }
}

/* 03 — Tariffs */
.tariffs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.tariff {
  position: relative; display: flex; flex-direction: column;
  padding: 34px 30px 30px; border-radius: var(--radius);
  border: 1px solid var(--border); background: var(--surface);
  transition: transform .35s, border-color .35s;
}
@media (hover: hover) { .tariff:hover { transform: translateY(-6px); border-color: color-mix(in srgb, var(--accent) 50%, var(--border)); } }
.tariff h3 { font-family: var(--display); font-weight: 500; font-size: 1.2rem; }
.tariff-speed { font-family: var(--mono); color: var(--cyan); font-weight: 700; }
.tariff-price { font-family: var(--display); font-weight: 700; letter-spacing: -.04em; font-size: clamp(3rem, 5.4vw, 4.6rem); line-height: 1; margin: 26px 0 18px; }
.tariff-price span { font-family: var(--sans); font-size: 1rem; letter-spacing: 0; font-weight: 500; color: var(--muted); }
.tariff p { color: var(--muted); flex: 1; }
.tariff .btn { margin-top: 12px; }
.tariff-featured { background: linear-gradient(160deg, color-mix(in srgb, var(--accent) 16%, var(--surface)), var(--surface) 60%); border-color: color-mix(in srgb, var(--accent) 55%, var(--border)); }
.tariff-badge {
  position: absolute; top: 0; right: 24px; transform: translateY(-50%); padding: 6px 14px; border-radius: 999px;
  background: var(--brand-grad); color: #fff; white-space: nowrap;   /* sits on the card's top edge, clear of the name */
  font-family: var(--mono); font-size: .85rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
}
@media (max-width: 767.98px) { .tariffs { grid-template-columns: 1fr; max-width: 560px; } }

/* 04 — Promos */
.promos { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 3vw, 48px); }
.promo { padding-top: 26px; border-top: 1px solid var(--line); }
.promo h3 { font-size: 1.25rem; }
.promo p { color: var(--muted); }
@media (max-width: 1023.98px) { .promos { grid-template-columns: 1fr; } }


/* Vertical speed test (hero) */
.speedbox {
  align-self: start; margin-top: clamp(8px, 4vh, 48px); display: flex; flex-direction: column; gap: 16px;
  padding: 20px; border-radius: 24px; border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 88%, transparent); box-shadow: var(--shadow);
}

.sb-phase { font: 600 .82rem var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--cyan); }
.speedbox.running .sb-phase { animation: ns-pulse-text 1.2s steps(6) infinite; }
@keyframes ns-pulse-text { 50% { opacity: .55; } }
.sb-now { font-family: var(--display); font-weight: 700; font-size: 2.6rem; line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.sb-now small { display: block; font: 500 .8rem var(--sans); color: var(--muted); letter-spacing: 0; margin-top: 4px; }

.sb-switch { font-size: .94rem; font-weight: 600; color: var(--accent); text-align: center; }
/* connection details: IP, provider, test server… */

@media (max-width: 1023.98px) {
  .speedbox { max-width: 560px; }

}

/* 07 — Works mosaic */
.mosaic { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: clamp(140px, 17vw, 240px); gap: 14px; margin-bottom: 40px; }
@media (max-width: 767.98px) {
  .mosaic { grid-template-columns: 1fr 1fr; grid-auto-rows: 42vw; }
}

/* 08 — Reasons */
.reasons { display: grid; grid-template-columns: repeat(5, 1fr); gap: clamp(24px, 3vw, 40px); }
@media (max-width: 1023.98px) { .reasons { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); } }
.reason h3 { font-size: 1.1rem; }
.reason p { color: var(--muted); }

/* Final — request */
/* soft glow that fades out well inside the section — no visible edge */
.scene-cta { background: radial-gradient(min(700px, 80vw) 380px at 22% 50%, color-mix(in srgb, var(--accent) 9%, transparent), transparent 70%); }
.cta-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.cta-phone a { font-family: var(--display); font-weight: 600; font-size: clamp(1.4rem, 2.8vw, 2.2rem); color: var(--text); letter-spacing: -.02em; }
.request-form, .page-form { display: flex; flex-direction: column; }
.request-form { padding: clamp(24px, 3.4vw, 40px); border-radius: 24px; background: var(--surface); border: 1px solid var(--border); }
.request-form label, .page-form label { font-weight: 600; font-size: 1rem; margin: 0 0 8px; }
.request-form input, .request-form textarea, .request-form select,
.page-form input:not([type=hidden]) {
  width: 100%; min-height: 52px; padding: 14px 16px; margin-bottom: 18px; border-radius: 12px;
  border: 1.5px solid color-mix(in srgb, var(--muted) 45%, var(--border)); background: var(--bg); color: var(--text); font: inherit;
}
.request-form input:focus, .request-form textarea:focus, .request-form select:focus, .page-form input:focus { outline: none; border-color: var(--accent); }
.request-status { min-height: 1.2em; font-weight: 600; margin: 12px 0 0; }
.request-status.ok { color: var(--good); }
.request-status.err { color: var(--danger); }
@media (max-width: 1023.98px) { .cta-grid { grid-template-columns: 1fr; } }

/* ---------- Inner pages ---------- */
.page-hero { padding: calc(var(--header-h) + clamp(32px, 7vh, 96px)) 0 clamp(20px, 3.5vh, 44px); }
/* inner page titles also follow the screen height, so on laptops the form/content starts on the first screen */
.page-hero .display-xl { font-size: clamp(2.4rem, min(6.2vw, 9.5vh), 5.6rem); }
.page-hero .display-xl { margin-bottom: .3em; }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: clamp(22px, 3vw, 34px); }
.panel p { color: var(--muted); }
.panel.narrow, .narrow { max-width: 520px; }
.cols-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.cols-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.prose { margin-top: clamp(48px, 8vh, 96px); }
.prose p { color: var(--muted); }
@media (max-width: 1023.98px) { .cols-2, .cols-3 { grid-template-columns: 1fr; } }
.table-wrap { overflow-x: auto; }
.info-table { width: 100%; border-collapse: collapse; margin: 14px 0 20px; }
.info-table td { padding: 12px 14px 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.info-table td:first-child { color: var(--muted); white-space: nowrap; width: 1%; padding-right: 32px; }
.steps { counter-reset: step; padding: 0; margin: 0; list-style: none; }
.steps li { position: relative; padding: 8px 0 8px 44px; color: var(--muted); }
.steps li strong { color: var(--text); }
.steps li::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: 7px; width: 28px; height: 28px; border-radius: 50%;
  border: 1px solid var(--accent); color: var(--accent); font: 600 .85rem var(--display);
  display: grid; place-items: center;
}
.contact-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; margin: 0 0 48px; border-top: 1px solid var(--line); }
.contact-list div { padding: 28px 0; border-bottom: 1px solid var(--line); }
.contact-list dt { font-family: var(--mono); font-size: .84rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.contact-list dd { margin: 0; font-family: var(--display); font-weight: 500; font-size: clamp(1.1rem, 2.2vw, 1.7rem); letter-spacing: -.01em; }
.contact-list dd a { color: var(--text); }
@media (max-width: 767.98px) { .contact-list { grid-template-columns: 1fr; } }

/* Forms: errors, honeypot */
.form-errors { background: color-mix(in srgb, var(--danger) 12%, transparent); border: 1px solid color-mix(in srgb, var(--danger) 40%, transparent); border-radius: 12px; padding: 6px 14px; margin-bottom: 18px; }
.form-errors p { margin: 6px 0; color: var(--danger); font-weight: 600; }
.hp-field { position: absolute !important; left: -9999px; }
.page-form .muted { margin: 18px 0 0; }

/* Account */
.billing-grid { margin: 0 0 12px; border-top: none; }
.billing-grid .stat { display: flex; flex-direction: column; align-items: flex-start; }
.balance-pos { color: var(--good); }
.balance-neg { color: var(--danger); }
.cabinet-badge.is-paused .cabinet-ic, .cabinet-badge.is-paused .cabinet-sum { color: var(--warn); }
.panel.narrow { margin-top: 28px; }

/* Gallery */
.works-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.work-item { margin: 0; border-radius: 14px; overflow: hidden; background: #000; aspect-ratio: 4 / 3; }
.work-item img, .work-item video { display: block; width: 100%; height: 100%; object-fit: cover; }
.work-lightbox { display: block; height: 100%; cursor: zoom-in; }
.work-lightbox img { transition: transform 1s cubic-bezier(.2,.7,.2,1); }
@media (hover: hover) { .work-lightbox:hover img { transform: scale(1.04); } }
.lightbox { position: fixed; inset: 0; z-index: 1200; background: rgba(0,0,0,.92); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 20px; }
.lightbox img { max-width: 94vw; max-height: 84vh; border-radius: 8px; }
.lightbox-caption { color: #fff; margin-top: 12px; text-align: center; }
.lightbox-close { position: absolute; top: 16px; right: 20px; font-size: 1.8rem; background: none; border: none; color: #fff; cursor: pointer; line-height: 1; }

/* Hookup page: map + address form */
/* dark theme: the light OSM tiles inverted into a night map */
.connect-step { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 600; font-size: 1.05rem; margin: 0 0 16px; }
.connect-step:not(:first-child) { margin-top: 10px; padding-top: 22px; border-top: 1px solid var(--line); }
.connect-step span { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--accent); color: var(--accent); font-size: .85rem; }
.connect-row { display: grid; grid-template-columns: 1.4fr 1fr; gap: 12px; }
@media (max-width: 767.98px) { .connect-row { grid-template-columns: 1fr; gap: 0; } }  /* phones: one field per line, nothing truncated */
.request-form input.filled { animation: field-filled 1.2s ease; }
@keyframes field-filled { 0%, 40% { border-color: var(--good); box-shadow: 0 0 0 3px color-mix(in srgb, var(--good) 25%, transparent); } }
.ac-wrap { position: relative; }
.ac-list {
  position: absolute; left: 0; right: 0; top: calc(100% - 12px); z-index: 20; margin: 0; padding: 6px; list-style: none;
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow); max-height: 300px; overflow-y: auto;
}
.ac-list li { display: flex; flex-direction: column; padding: 9px 12px; border-radius: 8px; cursor: pointer; line-height: 1.3; }
.ac-list li small { color: var(--muted); font-size: .9rem; }
.ac-list li.ac-head { padding: 6px 12px 4px; font-size: 12px; color: var(--muted); cursor: default; }   /* a caption, not an option */
@media (hover: hover) { .ac-list li.ac-head:hover { background: none; } }
.ac-list li.active { background: color-mix(in srgb, var(--primary) 16%, transparent); }
@media (hover: hover) { .ac-list li:hover { background: color-mix(in srgb, var(--primary) 16%, transparent); } }

/* Reviews */
.stars { display: inline-flex; gap: 2px; color: color-mix(in srgb, var(--muted) 45%, transparent); letter-spacing: 0; }
.stars i { font-style: normal; }
.stars i.on { color: var(--warn); }
.reviews-summary { display: flex; align-items: center; gap: 14px; margin-bottom: 28px; }
.reviews-avg { font-family: var(--display); font-weight: 600; font-size: clamp(2.2rem, 4vw, 3.2rem); line-height: 1; }
.reviews-summary .stars { font-size: 1.4rem; }
.reviews-grid { columns: 3 300px; column-gap: 18px; }
.review { break-inside: avoid; margin: 0 0 18px; padding: 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.review-text { white-space: pre-line; margin: 12px 0 16px; }
.review-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; font-size: .9rem; color: var(--muted); }
.review-meta strong { color: var(--text); }
.review-meta time { margin-left: auto; }
.reviews-empty { max-width: 640px; }
.review-form-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 80px); margin-top: clamp(64px, 10vh, 120px); align-items: start; scroll-margin-top: calc(var(--header-h) + 24px); }
.review-sent-title { font-family: var(--display); font-weight: 600; font-size: 1.3rem; color: var(--good) !important; margin-bottom: 6px; }
/* stars are in reverse DOM order (5…1) so "hovered + all to its left" is a plain ~ selector */
.star-input { border: 0; padding: 0; margin: 0 0 16px; min-width: 0; }
.star-input legend { font-weight: 600; font-size: .92rem; margin-bottom: 6px; padding: 0; }
.star-row { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; }
.star-input input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.star-input label { font-size: 2rem; line-height: 1; cursor: pointer; color: color-mix(in srgb, var(--muted) 45%, transparent); margin: 0 !important; transition: color .15s, transform .15s; }
.star-input input:checked ~ label { color: var(--warn); }
@media (hover: hover) { .star-input label:hover, .star-input label:hover ~ label { color: var(--warn); } }
@media (hover: hover) { .star-input label:hover { transform: scale(1.12); } }
.star-input input:focus-visible + label { outline: 2px solid var(--cyan); outline-offset: 2px; border-radius: 4px; }
@media (max-width: 1023.98px) { .review-form-wrap { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { padding-top: clamp(56px, 9vh, 96px); overflow: hidden; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr .8fr; gap: 32px; }
.site-footer .footer-slogan { font-family: var(--display); font-weight: 500; font-size: 1.35rem; letter-spacing: -.01em; line-height: 1.25; color: var(--accent); }
.site-footer h2 { font-family: var(--sans); font-size: .95rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: 14px; }
.site-footer p { color: var(--muted); }
.site-footer a { color: var(--text); }
.footer-nav { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
/* logo is a 360×90 raster — shown at its native size so it stays sharp */
.footer-mark { display: block; width: fit-content; margin: clamp(40px, 7vh, 80px) auto clamp(28px, 4vh, 44px); }
.footer-mark img { display: block; width: 100%; height: auto; }
@media (hover: hover) { .footer-mark:hover { text-decoration: none; } }
.footer-bottom { padding: 22px 0 28px; color: var(--muted); font-size: .9rem; border-top: 1px solid var(--line); }
@media (max-width: 1023.98px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 767.98px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Side dock (chat / call) ---------- */
:root { --panel-w: min(460px, calc(100vw - 72px)); --peek-h: 440px; }
.side-dock {
  position: fixed; right: 0; bottom: clamp(96px, 20vh, 200px); z-index: 910;
  display: flex; flex-direction: column; gap: 8px;
  transition: transform .3s cubic-bezier(.2,.7,.2,1), opacity .2s;
}
.dock-tab {
  width: 58px; padding: 12px 0 10px; border: none; border-radius: 16px 0 0 16px; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  font: 600 .86rem var(--sans); box-shadow: var(--shadow); transition: transform .2s, filter .2s;
}
.dock-tab svg { width: 22px; height: 22px; fill: currentColor; }
.dock-tab.active { transform: translateX(-4px); filter: brightness(1.06); }
@media (hover: hover) { .dock-tab:hover { transform: translateX(-4px); filter: brightness(1.06); } }
.dock-chat { background: var(--brand-grad); color: #fff; }
.dock-call { background: var(--primary); color: #fff; }
:root:not([data-theme="light"]) .dock-call { background: #1E6FD9; } /* white label stays readable on dark */
.side-panel {
  position: fixed; right: 0; bottom: 24px; z-index: 905;
  width: var(--panel-w); height: min(720px, calc(100vh - 96px));
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--surface); border: 1px solid var(--border); border-right: none;
  border-radius: 22px 0 0 22px; box-shadow: var(--shadow);
  transform: translateX(105%); visibility: hidden;
  transition: transform .35s cubic-bezier(.2,.7,.2,1), height .3s ease, visibility 0s .35s;
}
.side-panel.open { transform: none; visibility: visible; transition: transform .35s cubic-bezier(.2,.7,.2,1), height .3s ease, visibility 0s; }
/* auto-opened chat starts compact so it doesn't cover the page; grows once used */
.chat-panel.peek { height: min(var(--peek-h), calc(100vh - 96px)); }
.chat-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chat-chip {
  padding: 7px 12px; border-radius: 999px; border: 1px solid var(--border); background: var(--bg);
  color: var(--text); font: 600 .84rem var(--sans); cursor: pointer;
}
@media (hover: hover) { .chat-chip:hover { border-color: var(--accent); text-decoration: none; } }
.call-panel { height: auto; }
.call-body { padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.call-number { font-family: var(--display); font-weight: 600; font-size: 1.5rem; color: var(--text); letter-spacing: -.01em; }
.call-body p { margin: 0; }
.callback-form { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; padding-top: 14px; border-top: 1px solid var(--line); }
.call-or { font-size: .95rem; color: var(--muted); }
.callback-form input { padding: 11px 14px; border-radius: 12px; border: 1px solid var(--border); background: var(--bg); color: var(--text); font: inherit; }
.chat-head { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-bottom: 1px solid var(--border); }
.chat-title { flex: 1; text-align: center; }
.chat-icon { width: 36px; height: 36px; }
.chat-messages { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.chat-msg { max-width: 85%; padding: 11px 15px; border-radius: 16px; font-size: 1rem; line-height: 1.5; white-space: pre-wrap; word-wrap: break-word; }
.chat-msg.user { align-self: flex-end; background: var(--primary); color: #fff; border-bottom-right-radius: 4px; }
.chat-msg.assistant { align-self: flex-start; background: var(--surface-2); border-bottom-left-radius: 4px; }
.chat-msg.typing { color: var(--muted); font-style: italic; }
.dots { display: inline-flex; gap: 4px; align-items: center; height: 1em; }
.dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); display: inline-block; animation: dot-bounce 1.2s infinite ease-in-out both; }
.dots i:nth-child(2) { animation-delay: .18s; }
.dots i:nth-child(3) { animation-delay: .36s; }
@keyframes dot-bounce { 0%, 80%, 100% { transform: translateY(0); opacity: .5; } 40% { transform: translateY(-5px); opacity: 1; } }
.chat-sessions { position: absolute; inset: 112px 0 0 0; z-index: 5; background: var(--surface); padding: 12px; overflow-y: auto; }
.chat-new { width: 100%; margin-bottom: 10px; }
.chat-session-list { display: flex; flex-direction: column; gap: 4px; }
.chat-session-item {
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
  padding: 10px 12px; border: 1px solid var(--border); border-radius: 12px;
  background: var(--bg); color: var(--text); cursor: pointer; text-align: left; font: inherit;
}
@media (hover: hover) { .chat-session-item:hover { background: var(--surface-2); } }
.chat-session-item.active { border-color: var(--accent); }
.cs-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cs-time { color: var(--muted); font-size: .86rem; white-space: nowrap; }
.chat-empty { color: var(--muted); text-align: center; }
.chat-form { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--border); }
.chat-form input { flex: 1; min-width: 0; padding: 11px 14px; border-radius: 999px; border: 1px solid var(--border); background: var(--bg); color: var(--text); font: inherit; }
.chat-form .btn { padding: 10px 18px; }
@media (max-width: 767.98px) {
  .dock-tab { width: 58px; padding: 10px 0 8px; font-size: .8rem; }
  .side-panel { inset: 0; width: 100%; height: 100%; height: 100dvh; border-radius: 0; border: none; }
  .chat-panel.peek { height: 100dvh; }
  body.dock-open .side-dock { display: none; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- Social icons ---------- */
.socials { display: flex; gap: 6px; }
.soc { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); border: 1px solid var(--line); }
@media (hover: hover) { .soc:hover { color: var(--text); border-color: var(--text); text-decoration: none; } }
.soc svg { width: 17px; height: 17px; fill: currentColor; }
.soc svg.stroke { fill: none; stroke: currentColor; stroke-width: 1.8; }
/* header: the same round buttons as the bell / theme toggle, set off by thin dividers like the hero stats */
/* the icons fit the header row at >=1440 (the header widened to 1400 px; up to 1600 with the compact nav)
   and 768–1080 (the nav is in the burger); elsewhere they live in the burger menu, the footer and the call panel */
/* both header rows use the page's container and side padding (.wrap, the end of the file) */
@media (max-width: 767.98px) {
  .header-actions { gap: 6px; }
  .header-actions .icon-btn { width: 40px; height: 40px; }
  .header-actions .cabinet-badge { height: 40px; }
}
/* call panel: messenger buttons with names */
.call-social { padding-top: 14px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.socials-call { flex-wrap: wrap; gap: 8px; }
.socials-call .soc { width: auto; height: 44px; padding: 0 16px; border-radius: 999px; gap: 8px; display: inline-flex; align-items: center; color: var(--text); font-weight: 600; font-size: 1rem; }
.socials-call .soc-tg svg { fill: #2aabee; }
.socials-call .soc-vb svg { fill: #8AD5FF; }
.socials-call .soc-ig svg { stroke: #e1306c; }
.socials-call .soc-fb svg { fill: #1877f2; }
.socials-menu { margin-top: 14px; }
.socials-menu .soc, .main-nav .socials-menu .soc { width: 48px; height: 48px; padding: 0; border-radius: 50%; display: grid; place-items: center; font-size: 1rem; }
.socials-menu .soc svg { width: 20px; height: 20px; }
.site-footer .socials { margin-top: 12px; }

/* ---------- Network news ---------- */
.nf-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.nf-title { display: inline-flex; align-items: center; gap: 10px; font: 600 .86rem var(--mono); letter-spacing: .06em; white-space: nowrap; text-transform: uppercase; color: var(--cyan); }
.nf-demo { font: 600 .66rem var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 2px 8px; }
.nf-list { list-style: none; margin: 0; padding: 0; }
.nf-item {
  display: flex; gap: 10px; padding: 12px 14px; border-radius: 14px;
  background: color-mix(in srgb, var(--surface) 86%, transparent); border: 1px solid var(--border);
  border-left: 3px solid var(--cyan);
}
.nf-outage { border-left-color: var(--danger); }
.nf-restored { border-left-color: var(--good); }
.nf-works, .nf-new_place { border-left-color: var(--accent); }
.nf-repair { border-left-color: #f08a3c; }
.nf-ic { width: 26px; height: 26px; flex: none; border-radius: 50%; display: grid; place-items: center; font-size: .85rem; background: var(--surface-2); }
.nf-outage .nf-ic { color: var(--danger); } .nf-restored .nf-ic { color: var(--good); }
.nf-body { min-width: 0; }
.nf-meta { font-size: .9rem; color: var(--muted); }
.nf-meta b { color: var(--text); font-weight: 600; }
.nf-outage .nf-meta b { color: var(--danger); }
.nf-place { display: block; font-size: .98rem; margin: 2px 0; }
.nf-body p { margin: 0; font-size: .95rem; color: var(--muted); line-height: 1.5; }
.nf-more { display: inline-block; margin-top: 10px; padding: 8px 0; font-size: .95rem; font-weight: 600; }
.support-outages .nf-list { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }

/* ---------- Instagram ---------- */
.insta { margin-top: clamp(40px, 7vh, 72px); }
.insta-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.insta-head h3 { display: flex; align-items: center; gap: 10px; margin: 0; font-family: var(--display); font-weight: 500; font-size: 1.3rem; }
.insta-logo { width: 26px; height: 26px; fill: none; stroke: var(--accent); stroke-width: 1.8; }
.insta-logo .fill { fill: var(--accent); stroke: none; }
.insta-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.insta-item { position: relative; aspect-ratio: 1; border-radius: 14px; overflow: hidden; background: var(--surface); display: block; }
.insta-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .45s cubic-bezier(.2,.7,.2,1); }
@media (hover: hover) { .insta-item:hover img { transform: scale(1.05); } }
.insta-video { position: absolute; top: 10px; right: 10px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: rgba(0,0,0,.55); color: #fff; font-size: .7rem; }
.insta-cap {
  position: absolute; inset: auto 0 0 0; padding: 30px 12px 10px; font-size: .9rem; color: #fff; line-height: 1.35;
  background: linear-gradient(transparent, rgba(0,0,0,.75)); opacity: 0; transition: opacity .3s;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.insta-item:focus-visible .insta-cap { opacity: 1; }
@media (hover: hover) { .insta-item:hover .insta-cap { opacity: 1; } }
.insta-empty { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 24px; border-radius: 18px; border: 1px dashed var(--border); }
.insta-empty p { margin: 0; color: var(--muted); }
@media (max-width: 767.98px) { .insta-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Support / repair request ---------- */
.support-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(20px, 3vw, 40px); align-items: start; }
.support-side { display: flex; flex-direction: column; gap: 18px; }
.support-done h3 { color: var(--good); }
.kind-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 18px; }
.kind-opt { position: relative; cursor: pointer; }
.kind-opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.kind-opt span {
  display: flex; align-items: center; min-height: 48px; padding: 10px 14px; border-radius: 12px;
  border: 1px solid var(--border); background: var(--bg); font-weight: 600; font-size: .92rem; transition: border-color .2s, background-color .2s;
}
.kind-opt input:checked + span { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, var(--bg)); }
.kind-opt input:focus-visible + span { outline: 2px solid var(--cyan); outline-offset: 2px; }
@media (max-width: 1023.98px) { .support-grid { grid-template-columns: 1fr; } #forma { order: -1; } }
@media (max-width: 767.98px) { .kind-grid { grid-template-columns: 1fr; } }
/* hidden form fields come first — the first visible step needs no divider */
.request-form > p.connect-step:first-of-type { margin-top: 0; padding-top: 0; border-top: none; }

/* ---------- Login dropdown (header) ---------- */
.login-wrap { position: relative; }
.login-drop {
  position: absolute; top: 52px; right: 0; z-index: 600; width: 320px;
  display: flex; flex-direction: column; padding: 18px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--shadow);
}
.login-drop::before { /* little arrow pointing at the button */
  content: ""; position: absolute; top: -7px; right: 34px; width: 12px; height: 12px; transform: rotate(45deg);
  background: var(--surface); border-left: 1px solid var(--border); border-top: 1px solid var(--border);
}
.login-drop-title { font-family: var(--display); font-weight: 600; font-size: 1.05rem; margin: 0 0 14px; }
.login-drop label { font-weight: 600; font-size: .95rem; margin-bottom: 6px; }
.login-drop input:not([type=hidden]) {
  width: 100%; padding: 11px 14px; margin-bottom: 12px; border-radius: 12px;
  border: 1px solid var(--border); background: var(--bg); color: var(--text); font: inherit;
}
.login-drop input:focus { outline: none; border-color: var(--accent); }
.login-drop-links { display: flex; justify-content: space-between; margin: 12px 0 0; font-size: .95rem; }
.field-hint { margin: -8px 0 14px; font-size: .92rem; color: var(--muted); }
/* login with a one-time code (/kabinet/) */
.otp-steps { margin: 0 0 16px; padding-left: 1.3em; line-height: 1.6; }
.otp-bot { margin-bottom: 20px; }
.otp-actions { display: flex; justify-content: space-between; gap: 12px; margin: 14px 0 0; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--accent); cursor: pointer; text-decoration: underline; }
.link-btn:disabled { color: var(--muted); cursor: default; text-decoration: none; }
@media (max-width: 767.98px) { .login-drop { display: none !important; } }

/* ---------- Chat invitation bubble (next to the "Чат" tab) ---------- */
.chat-teaser {
  position: absolute; right: calc(100% + 12px); top: 0; width: 280px;
  padding: 14px 14px 12px; border-radius: 16px 16px 4px 16px;
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow);
  opacity: 0; transform: translateX(12px); transition: opacity .3s, transform .3s;
}
.chat-teaser.show { opacity: 1; transform: none; }
body.dock-open .chat-teaser { display: none; }

/* ---------- Chat on wide screens: a full-height side panel OVER the page (nothing shifts or hides),
   with a shadow so it reads as a separate layer ---------- */
@media (min-width: 1280px) {
  .side-panel {
    top: 0; bottom: 0; height: 100vh !important; border-radius: 0;
    border-top: none; border-bottom: none; box-shadow: -20px 0 50px -30px rgba(0,0,0,.6);
 }
  .chat-panel.peek { height: 100vh; }
  .call-panel { height: auto !important; bottom: auto; top: var(--header-h); border-radius: 0 0 0 18px; border-bottom: 1px solid var(--border); }
}
@media (min-width: 1760px) {
  :root { --panel-w: 440px; }
}

/* ---------- News column: tabs + filters + my requests ---------- */
.nf-tabs { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--surface-2); }
.nf-tab {
  padding: 6px 12px; border: none; border-radius: 999px; background: none; color: var(--muted);
  font: 600 .84rem var(--sans); cursor: pointer;
}
.nf-tab.active { background: var(--surface); color: var(--text); box-shadow: 0 1px 4px rgba(0,0,0,.25); }
.nf-count { display: inline-grid; place-items: center; min-width: 18px; height: 18px; margin-left: 4px; padding: 0 5px; border-radius: 9px; background: var(--primary); color: #fff; font-size: .7rem; }
/* hide / show the news feed */
.nf-head-end { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; }
.nf-filters { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.nf-filter {
  min-height: 40px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--border); background: transparent;
  color: var(--muted); font: 600 .92rem var(--sans); cursor: pointer;
}
@media (hover: hover) { .nf-filter:hover { color: var(--text); } }
.nf-filter.active { background: var(--text); border-color: var(--text); color: var(--bg); }
.nf-empty { color: var(--muted); font-size: .9rem; margin: 8px 0; }
.nf-item[hidden] { display: none !important; }
.rq-status { font-weight: 700; color: var(--text); }
.rq-work { border-left-color: var(--accent); } .rq-work .rq-status { color: var(--accent); }
.rq-done { border-left-color: var(--good); } .rq-done .rq-status { color: var(--good); }
.rq-off { border-left-color: var(--border); }
.rq-panel { margin-top: 28px; }
.rq-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.rq-head h3 { margin: 0; }
.rq-head .btn-sm { margin: 0; }
.rq-table th { text-align: left; font-size: .9rem; color: var(--muted); font-weight: 600; padding: 10px 14px 10px 0; border-bottom: 1px solid var(--line); }
.rq-table td:first-child { width: auto; padding-right: 14px; }
.rq-badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .8rem; font-weight: 700; background: var(--surface-2); }
.rq-badge.rq-work { color: var(--accent); } .rq-badge.rq-done { color: var(--good); } .rq-badge.rq-off { color: var(--muted); }

/* ---------- Less neon: calmer background, cards and accents ---------- */
.nf-item { border-left-width: 2px; background: var(--surface); }
.nf-outage { border-left-color: color-mix(in srgb, var(--danger) 70%, var(--border)); }
.nf-restored { border-left-color: color-mix(in srgb, var(--good) 70%, var(--border)); }
.nf-works, .nf-new_place { border-left-color: color-mix(in srgb, var(--accent) 70%, var(--border)); }
.nf-connected { border-left-color: var(--border); }
.nf-body p { color: var(--muted); }
.nf-place { font-size: 1rem; }
.speedbox { background: var(--surface); }
.m-oblast-glow { stroke-width: 5; opacity: .5; }

/* ---------- Map without boxes: the oblast and the list sit right on the page background ---------- */
.network-map { background: none; overflow: visible; }
.map-ctrls { background: color-mix(in srgb, var(--bg) 60%, transparent); border-color: var(--line); }
/* oblast fill a touch stronger, so the shape holds without a box behind it */
.m-oblast { fill: color-mix(in srgb, var(--primary) 12%, transparent); }
/* the map follows the hero directly — less air above it than other chapters */
.scene-map { padding-top: clamp(40px, 7vh, 80px); }
.scene-map .scene-head { margin-bottom: clamp(16px, 3vh, 32px); }

/* ---------- Chat ⇄ call switch inside the side panels ---------- */
.panel-switch { display: flex; gap: 4px; margin: 10px 14px 0; padding: 3px; border-radius: 999px; background: var(--surface-2); flex: none; }
.panel-switch button {
  flex: 1; padding: 8px 10px; border: none; border-radius: 999px; background: none;
  color: var(--muted); font: 600 .9rem var(--sans); cursor: pointer;
}
@media (hover: hover) { .panel-switch button:hover { color: var(--text); } }
.panel-switch button.active { background: var(--brand-grad); color: #fff; }

/* ================= Hero: who we are + speed test, then the coverage map =================
   Top row: headline + main actions | speed test (results on the left, connection details on the right).
   The map takes the whole width under it, its height follows the oblast's own proportions
   (the page scrolls past it — zoom is on the +/− buttons only).
   ≤1100 px: the speed test drops under the headline; ≤640 px it stacks into one column. */
.hero-map { align-items: stretch; padding: calc(var(--header-h) + 16px) 0 24px; overflow: clip; } /* clip, not hidden: keeps the speed test sticky */
.hero-headline { min-width: 0; }

.hero-tagline::first-letter { text-transform: uppercase; }
.hero-stats { color: var(--muted);  font-variant-numeric: tabular-nums; }

.hero-side { display: flex; flex-direction: column; gap: 12px; min-width: 0; min-height: 0; }

/* never taller than the screen: the whole oblast fits in view under the header + legend
   (on wide screens it sits centred with free space at the sides) */

/* wide speed test: head on top, live number + results + button on the left, details on the right */
.hero-side .speedbox {
  align-self: stretch;
  width: 100%;
  max-width: none;
  flex: none;
  margin: 0;
  padding: 16px;
  gap: 12px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  column-gap: 20px;
  grid-template-areas: "head head" "body info" "verdict info" "run info" "switch info";
}

.hero-side .sb-verdict { grid-area: verdict; }
.sb-verdict { margin: 0; font-size: .95rem; line-height: 1.4; color: var(--muted); }
.sb-verdict[data-level] { font-weight: 600; color: var(--text); padding-left: 10px; border-left: 3px solid var(--good); }
.sb-verdict[data-level="mid"] { border-left-color: var(--warn); }
.sb-verdict[data-level="bad"] { border-left-color: var(--danger); }

/* compact: live number + results in a row, no vertical meter (no room for it in the wide card) */

.hero-side .sb-now { font-size: 1.7rem; }

/* short screens (laptops ≤860 px tall): tighter top, no eyebrow, compact speed test */
@media (min-width: 1024px) and (max-height: 860px) {
  .hero-map { padding-top: calc(var(--header-h) + 8px); }
  .hero-map .hero-eyebrow { display: none; }

}
@media (min-width: 1024px) and (max-height: 820px) {
  .hero-side .speedbox { padding: 12px; gap: 8px; }
  .hero-side .sb-phase, .hero-side .sb-now small { display: none; }
  .hero-side .sb-now { font-size: 1.3rem; }
  .hero-side .speedbox .btn { padding: 11px 16px; }
}

/* tablet + phone: the map takes its height from the oblast's proportions, not from the screen */
@media (max-width: 767.98px) {
  /* phones: less air between chapters, page titles that never run past the screen edge */
  .scene { padding-block: clamp(56px, 9vh, 88px); }
  .scene-head { margin-bottom: 28px; }
  .page-hero { padding: calc(var(--header-h) + 28px) 0 16px; }
  .display-xl, .page-hero .display-xl { font-size: clamp(2rem, 9.6vw, 2.6rem); overflow-wrap: anywhere; hyphens: auto; }
  /* chat / call tabs: a compact pair in the bottom corner instead of over the middle of forms */
  .side-dock { bottom: calc(14px + env(safe-area-inset-bottom)); gap: 6px; }
  .dock-tab { width: 56px; padding: 9px 0 7px; font-size: .8rem; }
  .dock-tab svg { width: 19px; height: 19px; }
  .hero-map { padding-top: calc(var(--header-h) + 8px); }
  .hero-map .hero-eyebrow { font-size: .85rem; letter-spacing: .05em; }

  .hero-side .speedbox { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "body" "verdict" "run" "info" "switch"; row-gap: 12px; }

}

/* logo: white-text version for the dark theme (also the no-JS default), navy-text version for the light one */
.logo-on-light { display: none !important; }
:root[data-theme="light"] .logo-on-light { display: block !important; }
:root[data-theme="light"] .logo-on-dark { display: none !important; }

/* header logo: the globe (an SVG drawn and spun by logo-globe.js) + the wordmark; --logo-h is the globe's size */
.brand { --logo-h: 40px; align-items: center; gap: calc(var(--logo-h) * .2); }
.brand-globe { flex: none; width: calc(var(--logo-h) * 1.2); height: calc(var(--logo-h) * 1.2); margin-block: calc(var(--logo-h) * -.1); overflow: visible; }
.brand-word { flex: 0 1 auto; min-width: 0; height: calc(var(--logo-h) * .41); width: auto; object-fit: contain; object-position: left center; }
@media (max-width: 767.98px) { .brand { --logo-h: 30px; } }      /* phones: smaller; the wordmark shrinks if the row is tight */
.footer-mark img { width: min(380px, 70vw); height: auto; }

/* ================= Desktop ≥1280: content (| chat column ≥1600) =================
   The content is centred over the full width (news live in a slide-out panel). The chat gets its own pinned column only from 1600 px,
   where there's room for it; narrower, it opens over the page and the content keeps the full width. */
@media (min-width: 1280px) {
  :root { --news-w: 250px; --chat-w: 350px; --col-gap: 28px; --panel-w: 400px; }
  main .wrap { container-type: inline-size; }
  .side-panel { top: var(--header-h); bottom: 0; height: calc(100vh - var(--header-h)) !important; }
  .call-panel { height: auto !important; bottom: auto; }
  .site-header.hide { transform: none; } }
@media (min-width: 1760px) {
  :root { --news-w: 280px; --chat-w: 400px; --col-gap: 32px; --panel-w: var(--chat-w); }
  /* the open chat has its own column: the content moves out of its way */
  .chat-on main .wrap, body.chat-open main .wrap {
    margin-right: max(calc(var(--chat-w) + var(--col-gap)), calc((100vw - var(--wrap)) / 2));
 }
}

/* content column can be narrow (≈600–1100 px): adapt the sections to the column, not the screen */
@container (max-width: 1100px) {
  .reasons { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
  .insta-grid { grid-template-columns: repeat(3, 1fr); }
}
@container (max-width: 900px) {
  .tariffs { grid-template-columns: 1fr 1fr; max-width: none; }
  .promos { grid-template-columns: 1fr 1fr; }
  .cta-grid, .legend-grid, .connect-grid, .support-grid, .cols-3 { grid-template-columns: 1fr; }
  .legend-grid .chapter { position: static; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
}
@container (max-width: 640px) {
  .tariffs, .promos, .cols-2 { grid-template-columns: 1fr; }
  .insta-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Chat already open before scripts run (set by the inline head script) ---------- */
.chat-on .chat-panel { transform: none; visibility: visible; transition: none; }

/* ---------- Page transitions: slide in the direction of the header menu ---------- */
/* Page slides are switched OFF for now. To turn them back on, uncomment the next line —
   everything else (direction by menu order, pinned header/news/chat, clipping) is still in place. */
/* @view-transition { navigation: auto; } */
/* these stay in place while the page content slides */
.site-header { view-transition-name: site-header; }
.chat-panel { view-transition-name: chat-panel; }
.call-panel { view-transition-name: call-panel; }
.side-dock { view-transition-name: side-dock; }
/* the page content and footer slide; everything else (background, fibers) stays in the root and doesn't move */
main#content { view-transition-name: page; }
.site-footer { view-transition-name: page-foot; }
/* pinned parts: just swap, no morphing */
::view-transition-group(site-header), ::view-transition-group(chat-panel), ::view-transition-group(call-panel),
::view-transition-group(side-dock) { animation-duration: .25s; }

/* root = background + fibers: switch instantly, never slide (the new page's fibers start immediately) */
::view-transition-old(root) { animation: none; opacity: 0; }
::view-transition-new(root) { animation: none; }
/* content + footer slide; their boxes don't morph */
::view-transition-group(page), ::view-transition-group(page-foot) { animation: none; overflow: clip; }
::view-transition-old(page), ::view-transition-new(page),
::view-transition-old(page-foot), ::view-transition-new(page-foot) {
  animation-duration: .45s; animation-timing-function: cubic-bezier(.4, 0, .2, 1); height: auto;
}
html:active-view-transition-type(forward)::view-transition-old(page),
html:active-view-transition-type(forward)::view-transition-old(page-foot) { animation-name: rn-slide-out-left; }
html:active-view-transition-type(forward)::view-transition-new(page),
html:active-view-transition-type(forward)::view-transition-new(page-foot) { animation-name: rn-slide-in-right; }
html:active-view-transition-type(backward)::view-transition-old(page),
html:active-view-transition-type(backward)::view-transition-old(page-foot) { animation-name: rn-slide-out-right; }
html:active-view-transition-type(backward)::view-transition-new(page),
html:active-view-transition-type(backward)::view-transition-new(page-foot) { animation-name: rn-slide-in-left; }
@keyframes rn-slide-out-left  { to   { transform: translateX(-100%); } }
@keyframes rn-slide-in-right  { from { transform: translateX(100%); } }
@keyframes rn-slide-out-right { to   { transform: translateX(100%); } }
@keyframes rn-slide-in-left   { from { transform: translateX(-100%); } }
@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}
/* page reached by a slide transition: content arrives complete (see the head script, .vt-nav) */
.vt-nav .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
.vt-nav .hero-title .line span, .vt-nav .hero-eyebrow,
.vt-nav .speedbox, .vt-nav .hero-map .hero-title { animation: none !important; }

/* text fields: one rounded focus ring that follows the field's own shape (the default outline is square and gets clipped) */
input:not([type="radio"]):not([type="checkbox"]):not([type="range"]):focus-visible, textarea:focus-visible, select:focus-visible {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent);
}

/* ---------- Payment buttons (/oplata/, account) ---------- */
.pay-panel h3 { margin-top: 0; }
.pay-buttons { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.pay-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 128px; height: 48px; padding: 0 20px;
  border-radius: 12px; font: 600 1.05rem/1 var(--sans, inherit); text-decoration: none; position: relative; transition: transform .15s;
}
@media (hover: hover) { .pay-btn:hover { text-decoration: none; transform: translateY(-2px); } }
.pay-privat { background: #8cc63f; color: #12230a; border: 1px solid #8cc63f; }
.pay-mono { background: #000; color: #fff; border: 1px solid #3a3a3a; cursor: pointer; font-weight: 700; letter-spacing: -.01em; }
:root[data-theme="light"] .pay-mono { border-color: #000; }
.pay-mono[aria-expanded="true"] { box-shadow: 0 0 0 2px var(--accent); }
/* a small pay button as a label (the flipping words in «Вже наш абонент?», abonent-fx.js): not clickable */
.pay-btn.pay-btn--xs { min-width: 0; height: 22px; padding: 0 9px; gap: 0; border-radius: 6px; font-size: 12px; font-weight: 600; line-height: 1;
  transition: none; pointer-events: none; vertical-align: middle; white-space: nowrap; }
.pay-btn--xs:hover { transform: none; }
.pay-btn--xs.pay-card { background: var(--brand-grad); color: #fff; border: 1px solid transparent; }
.pay-btn--xs.pay-iban { background: transparent; color: var(--text); border: 1px solid var(--line); }
.pay-btn--xs.cab-balance { background: rgba(53, 210, 154, .16); color: var(--good); border: 1px solid rgba(53, 210, 154, .4); }
.pay-btn--xs.cab-tariff { background: var(--brand-grad); color: #fff; border: 1px solid transparent; }
.pay-btn--xs.cab-history { background: transparent; color: var(--text); border: 1px solid var(--line); }
.pay-mono-how { flex-basis: 100%; margin: 4px 0 0; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); }
.pay-mono-how p { margin: 0 0 8px; }
.pay-mono-how dl { margin: 0; display: grid; gap: 6px; }
.pay-mono-how dl div { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 8px; align-items: center; }
.pay-mono-how dt { color: var(--muted); font-size: .9rem; }
.pay-mono-how dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 767.98px) { .pay-mono-how dl div { grid-template-columns: 1fr; gap: 2px; } }
.pay-hint { flex-basis: 100%; margin: 4px 0 0; }
.pay-hint.ok { color: var(--good); }
.pay-hint a { color: var(--link); text-decoration: underline; text-underline-offset: 2px; }
/* /oplata/ #rekvizyty: the warning and the recipients' accounts table (site.json pay_accounts) */
.pay-warn { display: flex; align-items: flex-start; gap: 12px; margin: 0 0 16px; padding: 14px 16px; border-radius: 12px;
  border: 2px solid var(--hot-icon); background: color-mix(in srgb, var(--hot-icon) 10%, transparent); line-height: 1.5; }
.pay-warn p { margin: 0; }
.pay-warn-ic { flex: none; font-size: 1.3rem; line-height: 1.15; color: var(--hot-icon); }
.acc-table { width: 100%; border-collapse: collapse; }
.acc-table th { text-align: left; font-weight: 500; font-size: .82em; letter-spacing: .04em; text-transform: uppercase; color: var(--muted);
  padding: 0 16px 10px 0; border-bottom: 1px solid var(--line); }
.acc-table td { padding: 12px 16px 12px 0; border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent); vertical-align: middle; }
.acc-table td:first-child { font-weight: 600; white-space: nowrap; }
.acc-table tr:last-child td { border-bottom: 0; }
.acc-table .copy-chip { max-width: 100%; }
.acc-table .copy-chip > span:first-child { overflow-wrap: anywhere; }
@media (max-width: 640px) {
  .acc-table thead { display: none; }
  .acc-table tr { display: block; padding: 10px 0; border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent); }
  .acc-table tr:last-child { border-bottom: 0; }
  .acc-table td { display: block; padding: 4px 0; border: 0; }
}
.acc-common-title { margin: 28px 0 0; }
@media (max-width: 640px) { .acc-common-title + .table-wrap .info-table td:first-child { white-space: normal; padding-right: 16px; } }
.pay-cards { margin-top: 40px; }

.chat-msg a { color: inherit; text-decoration: underline; text-underline-offset: 2px; word-break: break-word; }

/* ---------- Account: pausing the service ---------- */
.pause-panel h3 { margin-top: 0; }
.pause-state { margin: 0 0 10px; padding: 12px 14px; border-radius: 12px; background: var(--surface-2); border-left: 3px solid var(--warn); }
.pause-active { border-left-color: var(--cyan); }
.pause-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 14px; }
.pause-form label { display: flex; flex-direction: column; gap: 4px; font-size: .95rem; margin: 0; }
.pause-form .pause-comment { flex: 1 1 220px; }
.pause-form input { padding: 9px 12px; border-radius: 10px; border: 1px solid var(--border); background: var(--bg); color: var(--text); font: inherit; }
.pause-form .btn-sm { margin-top: 0; }
.rq-reason { margin-top: 4px; font-size: .9rem; color: var(--muted); max-width: 260px; }

/* ---------- Tech support queue (/operator/) ---------- */
.op-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.op-bar .btn-sm { margin-top: 0; }
.op-bar-end { display: flex; flex-wrap: wrap; gap: 8px; }
.op-tabs { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--surface-2); }
.op-tabs a { padding: 7px 16px; border-radius: 999px; color: var(--muted); font-weight: 600; font-size: .9rem; text-decoration: none; }
.op-tabs a.active { background: var(--surface); color: var(--text); }
.op-item { margin-bottom: 14px; }
.op-item.op-rejected, .op-item.op-cancelled { opacity: .7; }
.op-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-bottom: 10px; }
.op-us { margin-left: auto; font: 600 .78rem var(--mono); color: var(--good); }
.op-info td:first-child { width: 150px; color: var(--muted); }
.op-msg { white-space: pre-wrap; }
.op-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-top: 12px; }
.op-actions .btn-sm { margin-top: 0; }
.op-actions input[type="text"] { flex: 1 1 240px; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--border); background: var(--bg); color: var(--text); font: inherit; }
.op-dates input { padding: 6px 8px; border-radius: 8px; border: 1px solid var(--border); background: var(--bg); color: var(--text); font: inherit; }

/* ================= Coverage: home check, settlement pages, settlement index ================= */
.ac-list li[aria-selected="true"] { background: color-mix(in srgb, var(--primary) 16%, transparent); }

/* home hero: "Чи є Radionet у вашому селі?" */
.hc-row { display: flex; gap: 8px; }
.hc-row input {
  flex: 1; min-width: 0; min-height: 54px; padding: 12px 18px; border-radius: 999px; font: inherit; font-size: 1.05rem;
  border: 1.5px solid color-mix(in srgb, var(--primary) 45%, var(--border)); background: var(--surface); color: var(--text);
}
.hc-row input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
.hc-row .btn { min-height: 54px; }
.hc-row .ac-list { right: 0; top: calc(100% + 6px); }
@media (max-width: 767.98px) { .hc-row .btn { padding-inline: 16px; } }

/* settlement page */
.crumbs { display: flex; flex-wrap: wrap; gap: 6px 10px; margin-bottom: 18px; color: var(--muted); font-size: .95rem; }
.crumbs a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.place-hero .display { font-size: clamp(2rem, 5vw, 3.8rem); max-width: 22ch; }
.place-status { display: flex; gap: 14px; align-items: flex-start; max-width: 760px; margin: 22px 0; padding: 16px 18px; border-radius: 16px;
  background: color-mix(in srgb, var(--good) 10%, var(--surface)); border: 1px solid color-mix(in srgb, var(--good) 40%, var(--border)); }
.place-status.is-down { background: color-mix(in srgb, var(--warn) 12%, var(--surface)); border-color: color-mix(in srgb, var(--warn) 45%, var(--border)); }
.place-status strong { display: block; font-size: 1.08rem; }
.place-status span { color: var(--muted); }
.ps-dot { flex: none; width: 14px; height: 14px; margin-top: 6px; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 5px color-mix(in srgb, var(--good) 22%, transparent); }
.is-down .ps-dot { background: var(--warn); box-shadow: 0 0 0 5px color-mix(in srgb, var(--warn) 25%, transparent); }
.place-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0 0 26px; padding: 0; list-style: none; max-width: 900px; }
.place-facts li { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); }
.place-facts b { font-family: var(--display); font-size: 1.3rem; font-weight: 600; }
.place-facts span { color: var(--muted); }
@media (max-width: 767.98px) { .place-facts { grid-template-columns: 1fr 1fr; } }
.place-h2 { font-family: var(--display); font-size: clamp(1.6rem, 3vw, 2.4rem); margin-bottom: 24px; }
.place-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.place-cols { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); }
@media (max-width: 1023.98px) { .place-cols { grid-template-columns: 1fr; } }
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary { cursor: pointer; padding: 14px 0; font-weight: 700; font-size: 1.08rem; list-style-position: outside; }
.faq summary::marker { color: var(--accent); }
.faq details p { margin: 0 0 16px; color: var(--muted); }
.nearby { list-style: none; margin: 0 0 18px; padding: 0; }
.nearby li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.nearby a { font-weight: 600; }
.nearby span { color: var(--muted); }

/* settlement index */
.place-search { max-width: 560px; margin-bottom: 28px; }
.place-search label { display: block; font-weight: 700; margin-bottom: 8px; }
.place-search input { width: 100%; min-height: 54px; padding: 12px 18px; border-radius: 999px; font: inherit; font-size: 1.05rem;
  border: 1.5px solid color-mix(in srgb, var(--primary) 45%, var(--border)); background: var(--surface); color: var(--text); }
.place-search p { margin: 8px 0 0; }
.place-index { columns: 4 220px; column-gap: 32px; }
.pi-group { break-inside: avoid; margin-bottom: 22px; }
.pi-letter { font-family: var(--display); font-size: 1.4rem; color: var(--accent); margin: 0 0 6px; }
.pi-group ul { list-style: none; margin: 0; padding: 0; }
.pi-group li { padding: 4px 0; }
.pi-group a { color: var(--text); }
.place-missing { padding: 20px; border-radius: 18px; background: var(--surface); border: 1px solid var(--border); max-width: 640px; }

/* ================= Home: coverage map scene (own block after the hero) ================= */
.scene-map { position: relative; padding: clamp(12px, 3vh, 32px) 0 clamp(28px, 5vh, 56px); }
.hero-map { min-height: 0; }

/* Laptops 1101–1500 px: with the news column beside it, a fixed 620 px speed test left the intro only ~290 px
   (the village field and buttons got cramped) — two equal columns, speed-test details under the readout */

/* ================= First launch: promo slider, request modal, page without the news column ================= */

/* request tab in the side dock (replaces the chat tab) */
.dock-tab { text-decoration: none; }
@media (hover: hover) { .dock-tab:hover { text-decoration: none; } }
.dock-tab svg.stroke { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Promo slider (top of the home page) ---------- */
.ps { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); background: var(--surface); }
/* text stays readable over any picture */

/* ---------- Request modal ---------- */
.rq-lock { overflow: hidden; }
.rq-modal {
  width: min(520px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); padding: 0; margin: auto;
  border: 1px solid var(--border); border-radius: 22px; background: var(--surface); color: var(--text); box-shadow: var(--shadow);
}
.rq-modal::backdrop { background: rgba(3, 8, 22, .62); }
.rq-modal[open] { display: flex; flex-direction: column; animation: rq-in .22s cubic-bezier(.2, .7, .2, 1); }
@keyframes rq-in { from { opacity: 0; transform: translateY(14px) scale(.98); } }
.rq-form { display: flex; flex-direction: column; min-height: 0; flex: 1; }
.rq-form[hidden] { display: none; }
.rq-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px 12px 22px; border-bottom: 1px solid var(--line); }
.rq-head h2 { margin: 0; font-size: 1.25rem; }
.rq-body { padding: 16px 22px; overflow-y: auto; display: flex; flex-direction: column; }
.rq-body label { font-weight: 600; margin: 12px 0 6px; }
.rq-body input:not([type=radio]), .rq-body select, .rq-body textarea {
  width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--border);
  background: var(--bg); color: var(--text); font: inherit;
}
.rq-body input:focus, .rq-body select:focus, .rq-body textarea:focus { outline: none; border-color: var(--accent); }
.rq-switch { display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--surface-2); }
.rq-switch label { flex: 1; margin: 0; cursor: pointer; }
.rq-switch input { position: absolute; opacity: 0; pointer-events: none; }
.rq-switch span { display: block; padding: 10px 12px; border-radius: 999px; text-align: center; font-weight: 600; color: var(--muted); }
.rq-switch input:checked + span { background: var(--brand-grad); color: #fff; }
.rq-switch input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.rq-context { margin: 12px 0 0; padding: 10px 14px; border-radius: 12px; background: color-mix(in srgb, var(--accent) 12%, transparent); font-weight: 600; }
.rq-foot { padding: 14px 22px 20px; border-top: 1px solid var(--line); }
.rq-done { padding: 34px 26px 28px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.rq-done[hidden] { display: none; }
.rq-done h2 { margin: 6px 0 0; font-size: 1.35rem; }
.rq-done-ic { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; font-size: 1.6rem; color: #fff; background: var(--good); }
@media (max-width: 767.98px) {
  .rq-modal { width: 100vw; max-width: 100vw; max-height: 100dvh; height: 100dvh; border-radius: 0; border: none; }
}
/* coverage map: every point is a settlement where we work — clearly visible, brand colour */
.m-node.t3 { fill: var(--primary); stroke-width: 1.2; }
.m-label.t3 { fill: color-mix(in srgb, var(--text) 85%, transparent); }

/* modal on short screens: fields keep their height, the body scrolls */
.rq-body > * { flex-shrink: 0; }
.rq-only-support:not([hidden]) { display: flex; flex-direction: column; }
.rq-switch span { white-space: nowrap; }
@media (max-width: 767.98px) { .rq-switch span { padding-inline: 6px; font-size: .95rem; } }
.rq-done { flex: 1; justify-content: center; }

/* hero: the speed test sits under the intro (not beside it), as one wide strip:
   readout | verdict + button | connection details */
.hero-top { display: grid; gap: 16px 32px; align-items: start; }

/* hero: headline on the left, actions card on the right — the block fills the width instead of
   leaving the right half empty; phones / tablets keep one column */

/* tariff tabs: villages / apartment blocks / private houses */
.tariff-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 22px; padding: 4px; border-radius: 999px; background: var(--surface-2); width: fit-content; max-width: 100%; }
.tariff-tab { padding: 10px 18px; border: none; border-radius: 999px; background: none; color: var(--muted); font: 600 .98rem var(--sans); cursor: pointer; }
@media (hover: hover) { .tariff-tab:hover { color: var(--text); } }
.tariff-tab[aria-selected="true"] { background: var(--brand-grad); color: #fff; }
.tariffs[hidden] { display: none; }
.tariff-note { margin: 16px 0 0; font-size: .95rem; }
@media (max-width: 767.98px) { .tariff-tabs { border-radius: 18px; } .tariff-tab { flex: 1 1 100%; } }

/* how to connect: three steps */
.hw-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.hw-step { position: relative; padding: 28px 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.hw-num {
  display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 16px; border-radius: 50%;
  background: var(--brand-grad); color: #fff; font: 700 1.4rem var(--display);
}
.hw-step h3 { margin: 0 0 6px; font-size: 1.3rem; }
.hw-step p { margin: 0; color: var(--muted); }
.hw-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 0; }
@container (max-width: 760px) { .hw-steps { grid-template-columns: 1fr; } }
@media (max-width: 1023.98px) { .hw-steps { grid-template-columns: 1fr; } }
.nf-promo { border-left-color: var(--warn); }
.nf-promo .nf-meta b { color: var(--warn); }

/* ================= Speed test (nPerf-style): info | dial | graphs ================= */
.spd-info > div:last-child { border-bottom: none; }
.spd-ours { font-size: .82rem; color: var(--good); margin-left: 4px; }
/* «✓ ви з нами» on its own line under «Radionet», never broken in the middle; table — as wide as its text */
.spd-ours { display: table; white-space: nowrap; margin-top: 4px; }

/* vertical meter: scale labels + a segmented column; the fill is a gradient masked into segments */
.spd-scale { position: relative; margin: 0; padding: 0; list-style: none; }
.spd-col {
  position: relative; border-radius: 10px; overflow: hidden;
  background: repeating-linear-gradient(to top, var(--surface-2) 0 7px, transparent 7px 10px);
}
.spd-fill {
  --f: 0; position: absolute; left: 0; right: 0; bottom: 0; height: calc(var(--f) * 100%);
  background: linear-gradient(to top, #1E6FD9, var(--cyan) 55%, #7ef0ff) bottom / 100% 300px;

  mask: repeating-linear-gradient(to top, #000 0 7px, transparent 7px 10px);
  box-shadow: 0 0 10px color-mix(in srgb, var(--cyan) 70%, transparent));
}
.spd[data-phase="up"] .spd-fill {
  background: linear-gradient(to top, #1E6FD9, var(--accent) 55%, #d6ccff) bottom / 100% 300px;
  box-shadow: 0 0 10px color-mix(in srgb, var(--accent) 70%, transparent));
}
.spd-center { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 6px; text-align: left; min-width: 0; }
.spd[data-phase="up"] .spd-phase { color: var(--accent); }
@media (hover: hover) { .spd-go:hover { filter: brightness(1.12); } }
.spd-go:disabled { opacity: .6; cursor: progress; }
.spd.running .spd-go { animation: spd-pulse 1.4s ease-in-out infinite; }
@keyframes spd-pulse { 50% { transform: scale(.94); } }

.spd-g h3 { color: var(--cyan); display: flex; gap: 6px; align-items: center; }
.spd-g-up h3 { color: var(--accent); }
.spd-chart { width: 100%; }
.spd-chart path { fill: color-mix(in srgb, var(--cyan) 55%, transparent); stroke: var(--cyan); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.spd-g-up .spd-chart path { fill: color-mix(in srgb, var(--accent) 55%, transparent); stroke: var(--accent); }
.spd-bars { display: flex; align-items: flex-end; gap: 3px; }
.spd-bars span { flex: 1; min-width: 3px; border-radius: 2px 2px 0 0; background: color-mix(in srgb, var(--cyan) 70%, transparent); }
.spd-g dl div { display: flex; gap: 6px; align-items: baseline; }

.spd-server { color: var(--text); font-weight: 600; }
.spd-meta b { color: var(--text); font-weight: 600; }
.spd-verdict[data-level="good"] { color: var(--good); }
.spd-verdict[data-level="mid"] { color: var(--warn); }
.spd-verdict[data-level="bad"] { color: var(--danger); }
.spd .sb-switch { grid-area: switch; }

/* animated connection scheme above the speed test (speedscene.js): server → switch → router → laptop, on the card's own background */
/* phones: speedscene.js crops to the middle of the street */
.scn-svg { display: block; width: 100%; height: 100%; }
.scn-cable-base { fill: none; stroke: #2b3a86; stroke-width: 5; stroke-linejoin: round; }
.scn-cable-line { fill: none; stroke: #3fc6f8; stroke-width: 2; stroke-linejoin: round; stroke-dasharray: 6 8; opacity: .55; }
.scn-cable-glow { fill: none; stroke: #3fc6f8; stroke-width: 8; opacity: .12; transition: opacity .4s, stroke .4s; }
.spd-scene[data-phase="down"] .scn-cable-glow, .spd-scene[data-phase="ping"] .scn-cable-glow { opacity: .35; }
.spd-scene[data-phase="up"] .scn-cable-glow { stroke: #8AD5FF; opacity: .35; }
.spd-scene[data-phase="done"] .scn-cable-glow { stroke: #35d29a; opacity: .45; }
.spd-scene[data-phase="done"] .scn-cable-line { stroke: #35d29a; stroke-dasharray: none; opacity: .9; }
.spd-scene[data-phase="error"] .scn-cable-line, .spd-scene[data-phase="error"] .scn-cable-glow { stroke: #ff5964; }
.spd-scene:not([data-phase="idle"]):not([data-phase="error"]) .scn-cable-line { animation: scn-dash 2.6s linear infinite; }
.spd-scene[data-phase="up"] .scn-cable-line { stroke: #8AD5FF; animation-direction: reverse; }
@keyframes scn-dash { to { stroke-dashoffset: -28; } }
.spd-scene[data-phase="down"] .scn-rack, .spd-scene[data-phase="ping"] .scn-rack { animation: scn-blink .5s steps(2) infinite; }
.spd-scene[data-phase="up"] .scn-rack-r { animation: scn-blink .5s steps(2) infinite; }
@keyframes scn-blink { 50% { opacity: 1; } }
.scn-badge { opacity: 0; transition: opacity .4s, transform .4s; }
.scn-badge rect { fill: #35d29a; }
.scn-badge text { fill: #06122b; font: 700 13px var(--sans); text-anchor: middle; }
.spd-scene[data-phase="done"] .scn-badge, .spd-scene[data-phase="error"] .scn-badge { opacity: 1; }
.spd-scene[data-phase="error"] .scn-badge rect { fill: #ff5964; }
@media (prefers-reduced-motion: reduce) { .spd-scene * { animation: none !important; } }
.scn-grid polyline { stroke: var(--line); stroke-width: .6; fill: none; }
.scn-pad { fill: #3fc6f8; opacity: .08; }
.spd-scene:not([data-phase="idle"]) .scn-pad { opacity: .16; }
.scn-rack { stroke: #3fc6f8; stroke-width: 2; opacity: .45; }
.scn-rack-r { stroke: #1E6FD9; }
.scn-led { fill: #3d4a8f; }
.scn-led-g { fill: #35d29a; }
.scn-led-v { fill: #8AD5FF; }
.spd-scene:not([data-phase="idle"]):not([data-phase="error"]) .scn-led { fill: #35d29a; animation: scn-blink 1.1s steps(2) infinite; }
.spd-scene:not([data-phase="idle"]):not([data-phase="error"]) .scn-led-v { fill: #8AD5FF; animation-duration: 1.6s; }
.scn-wifi-path { fill: none; stroke: #8AD5FF; stroke-width: 1.6; stroke-dasharray: 3 7; opacity: .4; }
.spd-scene[data-phase="done"] .scn-wifi-path { stroke: #35d29a; opacity: .8; }
.scn-waves path { fill: none; stroke: #8AD5FF; stroke-width: 2; stroke-linecap: round; opacity: .5; }
.scn-screen { fill: #1d2366; transition: fill .4s; }
.spd-scene:not([data-phase="idle"]):not([data-phase="error"]) .scn-screen { fill: url(#scn-screen); }
.spd-scene[data-phase="down"] .scn-screen, .spd-scene[data-phase="up"] .scn-screen { animation: scn-breathe 2.4s ease-in-out infinite; }
.spd-scene[data-phase="error"] .scn-screen { fill: #5a1f3a; }
@keyframes scn-breathe { 50% { opacity: .55; } }
/* a device flashes when a packet enters it */
.scn-hit { animation: scn-hit .6s ease-out; }
@keyframes scn-hit { 0% { filter: brightness(1.7) drop-shadow(0 0 8px #3fc6f8); } 100% { filter: none; } }
.spd-scene[data-phase="up"] .scn-hit { animation-name: scn-hit-up; }
@keyframes scn-hit-up { 0% { filter: brightness(1.7) drop-shadow(0 0 8px #8AD5FF); } 100% { filter: none; } }

/* ---------- even more compact: speed test card + promo slider ---------- */
.spd { display: grid; align-items: center; border-radius: var(--radius); animation: fade-in .6s ease both; animation-delay: .5s; gap: 8px 18px; padding: 12px 16px; }

.spd-dial { grid-area: dial; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: stretch; width: 100%; justify-self: center; height: 160px; max-width: 250px; gap: 12px; }
.spd-meter { position: relative; display: grid; grid-template-columns: 30px 26px; gap: 6px; padding: 4px 0; }
.spd-scale li { position: absolute; right: 0; transform: translateY(50%); font: 600 .74rem var(--mono); color: var(--muted); white-space: nowrap; font-size: .62rem; }
.spd-col, .spd-fill { --seg: 6px; }
.spd-now { font: 700 clamp(2.4rem, 4vw, 3.4rem)/1 var(--display); letter-spacing: -.02em; font-size: clamp(1.6rem, 2.4vw, 2.1rem); }
.spd-now small { display: block; font: 500 .85rem var(--sans); color: var(--muted); letter-spacing: 0; font-size: .75rem; margin-top: 2px; }
.spd-phase { font: 600 .78rem var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--cyan); font-size: .68rem; }
.spd-go { border: none; border-radius: 999px; background: var(--brand-grad); color: #fff; font: 700 1rem var(--sans); cursor: pointer; transition: filter .2s, transform .2s; min-height: 34px; min-width: 88px; padding: 4px 14px; font-size: .88rem; margin-top: 2px; }
/* info: two columns of short rows instead of a tall list */
.spd-info { grid-area: info; margin: 0; flex-direction: column; display: grid; grid-template-columns: 1fr 1fr; column-gap: 14px; }
.spd-info > div { display: flex; flex-direction: column; gap: 1px; border-bottom: 1px solid var(--line); padding: 4px 0; }
.spd-info dt { color: var(--cyan); font-weight: 600; font-size: .7rem; }
.spd-info dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; font-size: .86rem; }
.spd-info > div:nth-last-child(2) { border-bottom: none; }
.spd-graphs { grid-area: graphs; display: flex; flex-direction: column; min-width: 0; gap: 6px; }
.spd-g { border-radius: 12px; background: var(--surface-2); padding: 6px 10px; display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "t c" "v v"; align-items: center; column-gap: 10px; }
.spd-g h3 { grid-area: t; margin: 0; font-size: .82rem; white-space: nowrap; }
.spd-g .spd-chart, .spd-g .spd-bars { grid-area: c; height: 22px; }
.spd-g dl { display: flex; flex-wrap: wrap; grid-area: v; margin: 2px 0 0; gap: 0 12px; }
.spd-g dt { color: var(--muted); font-size: .74rem; }
.spd-g dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; font-size: .84rem; }
.spd-foot { grid-area: foot; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; border-top: 1px solid var(--line); color: var(--muted); padding-top: 6px; font-size: .8rem; }
.spd-verdict { grid-area: verdict; margin: 0; color: var(--muted); font-size: .86rem; }
@media (max-width: 767.98px) { .spd-dial { height: 150px; } }

/* speed test: the animated scheme stands upright in its own column on the right */
.scn-svg { height: 100%; }

/* the scheme never grows past its column (an SVG's intrinsic width used to push it over the graphs) */
.spd-scene { grid-area: scene; position: relative; overflow: hidden; min-height: 0; align-self: stretch; min-width: 0; }
.scn-svg { width: 100%; height: 100%; }

/* ---------- Promo slider: illustrations + motion that catches the eye (kept small) ---------- */
.ps-art-svg { width: 100%; height: auto; max-height: 200px; filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .35)); }
/* the active slide's text comes in */
@keyframes ps-in { from { opacity: 0; transform: translateY(14px); } }
@keyframes ps-art-in { from { opacity: 0; transform: translateX(24px) scale(.96); } }
/* a soft glow on the tag while the slide is hovered / focused */
@keyframes ps-glow { 50% { opacity: .65; } }
.ps .btn-primary { position: relative; z-index: 2; }

/* illustration motion */
.pa-wifi path { animation: pa-wave 3.2s ease-in-out infinite; animation-delay: calc(var(--i) * .25s); }
@keyframes pa-wave { 0%, 100% { opacity: .2; } 40% { opacity: 1; } }
.pa-gauge { stroke-dasharray: 100; stroke-dashoffset: 18; }
.pa-needle { transform-origin: 160px 170px; transform: rotate(58deg); }
.pa-ping { stroke-dasharray: 100; stroke-dashoffset: 0; }
.pa-btn { transform-box: fill-box; transform-origin: center; }
@keyframes pa-btn { 0%, 70%, 100% { transform: scale(1); } 80% { transform: scale(1.25); } }

/* ---------- Hero: headline | village check, then four action tiles (no boxed card) ---------- */

.ht-ic { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent); }
.ht-ic svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ht-ic circle { fill: currentColor; stroke: none; }
.ht-txt { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.ht-txt b { font-size: 1rem; }
.ht-txt small { font-size: .84rem; color: var(--muted); }

/* ================= Hero v3: one focal action (village check), fewer frames ================= */
.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; }
.hero-map .hero-inner { display: flex; flex-direction: column; align-items: stretch; gap: clamp(12px, 2vh, 20px); }

.hero-intro { min-width: 0; grid-template-columns: minmax(0, 1fr); display: flex; flex-direction: column; align-items: stretch; gap: 16px; }
.hero-map .hero-eyebrow { margin-bottom: 8px; }
.hero-map .hero-title { display: flex; flex-direction: column; gap: 2px; letter-spacing: -.03em; animation: fade-in .8s ease both; margin: 0 0 10px; }
.hero-tagline { font: 700 clamp(1.9rem, 3.6vw, 3rem)/1.08 var(--display); letter-spacing: -.025em; }

/* the check is the only framed, accented thing in the hero */
.hero-intro .hero-check { align-self: stretch;  padding: 16px; border-radius: calc(var(--radius) + 4px);
 }
.hero-intro .hc-row input { min-height: 60px; font-size: 1.15rem; padding-inline: 22px; }
.hero-intro .hc-row .btn { min-height: 60px; padding-inline: 30px; font-size: 1.05rem; }

/* ===== Village check → the answer card in place of the field (check.js) =====
   the settlement (a link to its page) + its tariffs as tiles; «not yet» — one line and «call me back».
   The form sits at the right column's bottom: the card grows up into the free room, nothing else moves. */
/* light theme: the same card, light glass */

/* secondary actions: a quiet row — no cards, just icon + text */
.hero-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; }
@media (hover: hover) { .hero-tile:hover { text-decoration: none; border-color: var(--accent); transform: none; background: color-mix(in srgb, var(--surface) 80%, transparent); } }

.hero-tiles .ht-txt b { font-size: .95rem; }

/* ---------- Speed test, folded: a single line until «Старт» ---------- */
.spd-bar { display: none; }
.spd.is-compact > :not(.spd-bar):not(.spd-scene) { display: none; }
.spd.is-compact .spd-scene { position: absolute; width: 1px; height: 1px;  opacity: 0; pointer-events: none; }  /* kept rendered so it can measure its paths */
.spd.is-compact { display: block; padding: 12px 14px 12px 18px; border-radius: 999px; position: relative; }
.spd.is-compact .spd-bar { display: flex; align-items: center; gap: 14px; }
.spd-bar-ic { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: var(--cyan); background: color-mix(in srgb, var(--cyan) 14%, transparent); }
.spd-bar-ic svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.spd-bar-ic circle { fill: currentColor; stroke: none; }
.spd-bar-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.spd-bar-txt small { color: var(--muted); font-size: .86rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.spd-bar-go { flex: none; padding: 10px 26px; }
.spd:not(.is-compact) { animation: spd-unfold .45s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes spd-unfold { from { opacity: 0; transform: translateY(-6px); } }
@media (max-width: 767.98px) { .spd.is-compact { border-radius: 18px; } .spd-bar-txt small { white-space: normal; } }
@media (prefers-reduced-motion: reduce) { .spd:not(.is-compact) { animation: none; } }
@media (max-width: 767.98px) {
  .hero-intro .hero-check { padding: 12px; }
  .hero-intro .hc-row { flex-wrap: wrap; }
  .hero-intro .hc-row input { flex-basis: 100%; min-height: 54px; }
  .hero-intro .hc-row .btn { flex: 1; min-height: 50px; }
  .spd-bar-txt b { font-size: .95rem; }
}

/* ---------- Hero art (wide screens): headline + check on the left, illustration on the right ---------- */

.ha-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.ha-flow { stroke-dashoffset: 0; }   /* still dashes, no running "traffic" */
/* the one soft motion left in the illustrations: the Wi-Fi arcs breathe */
.ha-wifi path { animation: pa-wave 3.2s ease-in-out infinite; animation-delay: calc(var(--i) * .25s); }

@media (min-width: 1024px) { .hero-tagline { font-size: clamp(1.8rem, 2.35vw, 2.6rem); } }
.hero-tagline { text-wrap: balance; }

/* ================= Calm home (2026-10): news panel, dock, readability ================= */

/* news: a panel that slides in from the right over the page (opened by the bell, main.js) */
.nf-backdrop { position: fixed; inset: 0; z-index: 600; background: rgba(4, 10, 28, .45); }
.news-feed {
  position: fixed; z-index: 601; top: 0; right: 0; bottom: 0; width: min(420px, 100vw);
  display: flex; flex-direction: column; padding: 18px 18px 22px;
  background: var(--surface); border-left: 1px solid var(--border); box-shadow: -30px 0 60px -30px rgba(0, 0, 0, .5);
  animation: nf-in .25s cubic-bezier(.2, .7, .2, 1);
}
@keyframes nf-in { from { transform: translateX(40px); opacity: 0; } }
.news-feed .nf-pane { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.news-feed .nf-pane[hidden] { display: none; }
.news-feed .nf-list { display: flex; flex-direction: column; gap: 10px; }
.nf-close { flex: none; }
.nf-notif { margin: 0 0 14px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.nf-notif .notif-item { padding: 10px 0; }
body.nf-open { overflow: hidden; }

/* coverage map: names hidden until hover / focus / zoom (map.js) — points stay visible */
.m-label { transition: opacity .15s; }

/* readability: descriptions at least 15px, line-height 1.55 */
.tariff p, .reason p, .hw-step p, .nf-body p, .lead, .site-footer p, .notif-body span,
.hero-tiles .ht-txt small, .hero-stats, .field-hint, .tariff-note {
  font-size: max(.9375rem, 1em); line-height: 1.55;
}
.hero-tiles .ht-txt small, .hero-stats { font-size: .9375rem; }

/* the dock never covers content: wide screens keep a lane for the tabs at the right edge;
   narrower ones get a bottom bar with room reserved under the page */
@media (max-width: 1023.98px) {
  .side-dock {
    left: 0; right: 0; bottom: 0; flex-direction: row; gap: 8px;
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
    background: color-mix(in srgb, var(--surface) 94%, transparent); border-top: 1px solid var(--border);
    backdrop-filter: blur(6px);
 }
  .dock-tab { flex: 1; width: auto; flex-direction: row; justify-content: center; gap: 8px; padding: 11px 0; border-radius: 12px; font-size: .95rem; }
  .dock-tab.active { transform: none; }
@media (hover: hover) { .dock-tab:hover { transform: none; } }
  body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
}

/* --- promo strip above the header (home): part of the header, so it hides / shows with it --- */
:root { --ribbon-h: 0px; }
:root.has-ribbon { --ribbon-h: 40px; --header-h: 112px; }
.header-inner { height: calc(100% - var(--ribbon-h)); }
.promo-ribbon { display: none; }
:root.has-ribbon .promo-ribbon {
  display: block; height: 40px; background: linear-gradient(100deg, #0e1d48, #23205b 60%, #3a2a7a); color: #fff; font-size: .95rem;
}
.promo-ribbon-inner { display: flex; align-items: center; gap: 12px; height: 100%; }
.promo-ribbon-link { flex: 1; min-width: 0; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: center; }
@media (hover: hover) { .promo-ribbon-link:hover { text-decoration: none; } }
.promo-ribbon-link b { color: var(--promo-1); }
.pr-more { margin-left: 10px; color: #9fc0ff; font-weight: 600; }
@media (hover: hover) { .promo-ribbon-link:hover .pr-more { text-decoration: underline; } }
.promo-ribbon-close { flex: none; width: 32px; height: 32px; border: 0; border-radius: 50%; background: none; color: #c9d6f5; cursor: pointer; font-size: .95rem; }
@media (hover: hover) { .promo-ribbon-close:hover { background: rgba(255, 255, 255, .12); color: #fff; } }
@media (max-width: 767.98px) { .pr-more { display: none; } :root.has-ribbon .promo-ribbon { font-size: .88rem; } }

/* --- important-news beacon (bottom left) --- */
@keyframes nb-ring { from { transform: scale(1); opacity: .9; } to { transform: scale(1.7); opacity: 0; } }
/* the panel opened from the beacon slides in from the left */
.news-feed.from-left { right: auto; left: 0; border-left: 0; border-right: 1px solid var(--border); box-shadow: 30px 0 60px -30px rgba(0, 0, 0, .5); animation-name: nf-in-left; }
/* the «Карта» button (z 950) sits bottom left, over the panel's foot — hidden while the panel is open */
body.nf-open #map-toggle { visibility: hidden; }
@keyframes nf-in-left { from { transform: translateX(-40px); opacity: 0; } }
.nf-item.nf-hl { outline: 2px solid var(--promo-1); outline-offset: 2px; background: color-mix(in srgb, var(--promo-1) 10%, var(--surface)); transition: background .4s; }

/* --- fx.js pieces --- */
.btn, .tariff-tab, .hero-tile, .dock-tab { position: relative; overflow: hidden; }
.fx-ripple { position: absolute; border-radius: 50%; background: currentColor; opacity: .22; transform: scale(0); pointer-events: none; animation: fx-ripple .6s ease-out forwards; }
@keyframes fx-ripple { to { transform: scale(1); opacity: 0; } }
.fx-canvas { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 2000; pointer-events: none; }
.fx-toast {
  position: fixed; left: 50%; bottom: 110px; z-index: 2001; transform: translate(-50%, 12px); opacity: 0; pointer-events: none;
  padding: 12px 20px; border-radius: 999px; background: #0e1d48; color: #fff; font-weight: 600; box-shadow: var(--shadow);
  transition: opacity .25s, transform .25s;
}
.fx-toast.show { opacity: 1; transform: translate(-50%, 0); }
.btn.is-done { padding: 0; border-radius: 50%; margin-inline: auto; font-size: 1.35rem; transition: width .4s cubic-bezier(.3, 1.3, .5, 1), border-radius .4s; }
.request-form textarea.filled { animation: field-filled 1.2s ease; }

/* --- tariff cards: promo badge, old price, tilt + highlight, the card flying into the form --- */
.tariff-badges { position: absolute; top: 0; right: 24px; transform: translateY(-50%); display: flex; gap: 6px; }
.tariff-badges .tariff-badge { position: static; transform: none; }
.tariff-badge-promo { background: var(--promo-1); color: #2a1a00; }
.tariff-old { margin-right: 8px; font-size: .45em; font-weight: 500; letter-spacing: 0; color: var(--muted); text-decoration-thickness: 2px; vertical-align: middle; }
.fly-ghost { z-index: 950; pointer-events: none; transition: none; box-shadow: var(--shadow); }

/* --- hero illustration: windows light up when a settlement is found; the easter-egg signal on the fibre --- */
.ha-win { fill: #2b4a8c; transition: fill .6s, filter .6s; }
.hero-art.is-lit .ha-win { fill: #EEF3FC; }
.ha-signal { opacity: 0; }

/* --- map: the found point pulses three times --- */
.m-node.m-pulse { transform-box: fill-box; transform-origin: center; animation: m-pulse .6s ease-in-out 3; }
@keyframes m-pulse { 50% { transform: scale(2.2); } }

/* --- speed test: joke badge, "below your tariff?" --- */
.sb-badge { margin: 4px 0 0;  justify-self: start; padding: 6px 14px; border-radius: 999px; font-weight: 700;
  background: color-mix(in srgb, var(--accent) 14%, var(--surface)); border: 1px solid var(--border); }
.sb-repair { font-weight: 600; }

.spd .sb-badge, .spd .sb-repair { grid-column: 1 / -1; }

/* --- promo colour: warm, used ONLY for promos (nothing else on the site is orange) --- */
:root {
  --promo-1: #FFA50A; --promo-2: #F58300; --promo-ink: #1a1205;   /* amber, not lifecell yellow */
  --promo-grad: linear-gradient(135deg, var(--promo-1), var(--promo-2));
  --promo-text: var(--promo-1);                       /* promo-coloured text (prices) */
  --card-bg: rgba(255, 255, 255, .03); --card-border: rgba(255, 255, 255, .08);
  --sep: rgba(120, 160, 255, .25);
}
:root:not([data-theme="light"]) { --bg: #06122B; --bg-alt: #0f1b3d; }
.promo-label {
  display: inline-block; align-self: flex-start; padding: 5px 12px; border-radius: 999px;
  background: var(--promo-grad); color: var(--promo-ink); font: 800 .8rem var(--sans); letter-spacing: .06em; text-transform: uppercase;
}
.promo-label-lg { font-size: 1rem; letter-spacing: .02em; text-transform: none; }

/* --- promo strip: 44 px, orange, countdown, «Хочу!» --- */
:root.has-ribbon { --ribbon-h: 44px; --header-h: 116px; }
:root.has-ribbon .promo-ribbon { height: 44px; background: var(--promo-grad); color: var(--promo-ink); font: 600 15px var(--sans); }
.promo-ribbon-link { color: var(--promo-ink); }
@media (hover: hover) { .promo-ribbon-link:hover { color: var(--promo-ink); } }
.pr-more { color: var(--promo-ink); text-decoration: underline; text-underline-offset: 3px; }
.pr-timer { flex: none; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pr-want { flex: none; padding: 7px 16px; border-radius: 999px; background: var(--promo-ink); color: #fff; font-weight: 700; white-space: nowrap; }
@media (hover: hover) { .pr-want:hover { text-decoration: none; background: #000; } }
.promo-ribbon-close { width: 44px; height: 44px; color: var(--promo-ink); }
@media (hover: hover) { .promo-ribbon-close:hover { background: rgba(0, 0, 0, .1); color: var(--promo-ink); } }
@media (max-width: 767.98px) { .pr-timer { display: none; } }
@media (max-width: 767.98px) { .promo-ribbon-link { text-align: left; } .pr-want { padding: 6px 12px; } }

/* --- the promo card in the hero (the night-village picture is its background) --- */
.hero-promo {
  position: relative; overflow: hidden;  flex-direction: column; justify-content: flex-end;
  width: 100%; max-width: 420px; justify-self: end; min-height: 270px; padding: 22px; border-radius: 20px;

}
.hero-promo .hero-art { position: absolute; inset: 0;   pointer-events: none; }
.hero-promo .ha-svg { left: auto; right: -20px; top: -10px; width: 82%; height: auto; }
.hp-slide { display: flex; flex-direction: column; gap: 4px; }
.hp-slide p { margin: 0; }
.hp-big { font: 700 clamp(1.8rem, 2.6vw, 2.4rem)/1.1 var(--display); letter-spacing: -.02em; margin-top: 10px !important; }

.hp-cond { font-size: .95rem; }
.hp-dots button { width: 44px; height: 32px; border: 0; background: none; cursor: pointer; display: grid; place-items: center; padding: 0; }

.story-modal {
  width: min(480px, 100vw); height: min(760px, 100dvh); max-width: 100vw; max-height: 100dvh; padding: 0; border: 0; border-radius: 22px;
  background: #0e1d48; color: #fff; overflow: hidden;
}
.story-modal[open] { display: flex; flex-direction: column; animation: rq-in .22s cubic-bezier(.2, .7, .2, 1); }
.story-modal::backdrop { background: rgba(3, 8, 24, .75); }
.sm-progress { display: flex; gap: 4px; padding: 14px 64px 0 16px; }
.sm-progress span { flex: 1; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .25); }
.sm-progress span.done { background: var(--promo-1); }
.sm-close { position: absolute; top: 4px; right: 6px; width: 48px; height: 48px; color: #fff; z-index: 2; }
.sm-card { flex: 1; min-height: 0; display: flex; flex-direction: column; padding: 18px 26px 28px; overflow-y: auto; }
.sm-card[hidden] { display: none; }
.sm-art { flex: 0 1 260px; min-height: 140px; display: grid; place-items: center; }
.sm-art svg, .sm-art img { max-width: 100%; max-height: 240px; }
.sm-emoji { font-size: 96px; line-height: 1; }
.sm-text { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.sm-title { margin: 0; font: 700 1.6rem/1.15 var(--display); color: #fff; }
.sm-desc { margin: 0; color: #d3dcf3; font-size: 1.05rem; line-height: 1.55; }
.sm-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .3); background: rgba(14, 29, 72, .7); color: #fff; font-size: 1.6rem; cursor: pointer; }
.sm-prev { left: 8px; } .sm-next { right: 8px; }
@media (max-width: 767.98px) { .story-modal { width: 100vw; height: 100dvh; border-radius: 0; } .sm-arrow { display: none; } }

/* --- tariff with a promo: a tilted sticker, promo-coloured price, warm outline --- */
.promo-sticker {
  position: absolute; top: -16px; left: -12px; z-index: 2; width: 64px; height: 64px; border-radius: 50%;
  display: grid; place-items: center; background: var(--promo-grad); color: var(--promo-ink);
  font: 800 .78rem var(--sans); letter-spacing: .03em; text-transform: uppercase; transform: rotate(-8deg);
  box-shadow: 0 8px 20px -8px color-mix(in srgb, var(--promo-1) 60%, transparent);
}
.tariff.has-promo { border-color: var(--promo-1); box-shadow: 0 0 0 1px color-mix(in srgb, var(--promo-1) 40%, transparent), 0 14px 40px -18px color-mix(in srgb, var(--promo-1) 50%, transparent); }
.tariff.has-promo .tariff-price { color: var(--promo-text); }
.nf-item.nf-hl { outline-color: var(--promo-1); background: color-mix(in srgb, var(--promo-1) 10%, var(--surface)); }

/* --- dock: «🎁 Акції» --- */
.dock-promo { background: var(--promo-grad); color: var(--promo-ink); }

/* --- rhythm: section padding, headings, separators, alternating backgrounds --- */
body::before { display: none; }
.scene { padding-block: clamp(48px, 6vw, 72px); background: var(--bg); }
.scene + .scene::before, .scene-map + .scene::before {
  content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%); height: 1px;
  width: min(var(--wrap), calc(100% - 2 * var(--gutter))); background: linear-gradient(90deg, transparent, var(--sep), transparent);
}
.chapter { margin-bottom: 12px; }
.scene-head { margin-bottom: 28px; }
.scene .display { font-size: clamp(32px, 3.4vw, 48px); margin-bottom: 24px; line-height: 1.1; }
.scene .display-xl { font-size: clamp(36px, 4vw, 56px); }
.scene .lead { max-width: 640px; }
.scene-head .display { margin-bottom: 12px; }

/* hero → stories → map: gaps ≤ 32 px; the hero keeps the fibre picture (static, faint) */
#hero { position: relative; isolation: isolate; padding-bottom: 16px; background: var(--bg); }
#hero .hero-inner { position: relative; }
.scene-map { padding: 16px 0 32px; background: var(--bg); }

.scene-map .network-map { display: flex; justify-content: center; }

/* about: text | three facts */
.about-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.about-grid .lead { margin-bottom: .8em; }
@media (max-width: 1023.98px) { .about-grid { grid-template-columns: 1fr; } }

/* one card style for tariffs, steps, services, reasons, facts */
.card { background: var(--card-bg); border: 1px solid var(--card-border); border-radius: 16px; padding: 24px; }
.tariff.card { padding: 26px 24px 24px; }
.tariff-featured.card { background: linear-gradient(160deg, color-mix(in srgb, var(--accent) 12%, var(--card-bg)), var(--card-bg) 60%); }
.tariff-price { font-size: clamp(2.4rem, 3.4vw, 3.2rem); margin: 16px 0 12px; }
.hw-step.card { padding: 24px; }

/* services: 3 × 2 cards */
.svc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.svc { transition: transform .2s, border-color .2s; }
@media (hover: hover) { .svc:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--accent) 55%, var(--card-border)); } }
.svc-ic, .reason-ic { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-size: 20px;
  background: color-mix(in srgb, var(--accent) 16%, transparent); margin-bottom: 14px; }
.svc h3 { font-size: 20px; margin: 0 0 6px; }
.svc p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.55; }
@media (max-width: 1023.98px) { .svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767.98px) { .svc-grid { grid-template-columns: 1fr; } }

/* reasons: cards with an icon instead of huge digits */
.reasons { gap: 16px; }
.reason.card h3 { font-size: 1.05rem; margin-bottom: 6px; }
.reason.card p { margin: 0; }

/* works: one compact mosaic, no empty space under Instagram */
#roboty .mosaic { grid-template-columns: 2fr 1fr 1fr; grid-auto-rows: clamp(110px, 11vw, 160px); gap: 12px; margin-bottom: 16px; }
#roboty p.center { margin: 0; }
#roboty .insta { margin-top: 28px; }
#roboty .insta-empty { padding: 16px 22px; }
@media (max-width: 767.98px) { #roboty .mosaic { grid-template-columns: 1fr 1fr; } }

/* request block a bit tighter */
.scene-cta .cta-phone { margin: 12px 0 0; }

/* footer: "still have questions?" with the phone and messengers */
.footer-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; padding: 0 0 32px; margin-bottom: 36px; border-bottom: 1px solid var(--line); }
.footer-cta-q { margin: 0; font: 600 1.25rem var(--display); color: var(--text); }
.footer-cta-phone { font: 700 clamp(1.6rem, 2.6vw, 2.2rem) var(--display); color: var(--text); letter-spacing: -.01em; }
.footer-cta .socials-cta { margin-left: auto; display: flex; gap: 10px; }
.socials-cta .soc { width: auto; height: 48px; padding: 0 18px; border-radius: 999px; gap: 8px; color: var(--text); }
.socials-cta .soc span { font-weight: 600; }
@media (max-width: 767.98px) { .footer-cta .socials-cta { margin-left: 0; } }
.socials-cta .soc { display: inline-flex; align-items: center; }
.footer-cta .socials-cta { flex-wrap: wrap; }   /* all four: the footer's only social links */

/* compact cards: the number / icon sits left of the title */
.hw-step.card, .svc.card { display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 14px; align-content: start; }
.hw-step.card .hw-num, .svc.card .svc-ic { grid-row: span 2; margin: 0; width: 44px; height: 44px; }
.hw-step.card h3, .svc.card h3 { margin: 6px 0 4px; }
.hw-step.card p { margin: 0; }
.svc.card { padding: 20px 22px; }
/* about: the title on one line, compact facts */
.about-grid { grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr); }
.about-grid .display { max-width: none; }
/* footer: smaller logo mark */
.footer-mark img { width: min(220px, 60vw); }
.footer-grid + .footer-mark, .footer-mark { margin-block: 28px 8px; }
.about-grid { grid-template-columns: minmax(0, 2.1fr) minmax(0, 1fr); }

.footer-cta { padding-bottom: 24px; margin-bottom: 28px; }
.tariff-note { margin: 16px 0 0; }
#roboty .scene-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; column-gap: 16px; }
#roboty .scene-head .chapter { grid-column: 1 / -1; }
.scene-head { margin-bottom: 24px; }
.tariff-tabs { margin-bottom: 16px; }
/* B.1 range (48–72 px), but top + bottom of neighbouring sections never add up to more than 120 px of air */
.scene { padding-block: clamp(48px, 6vw, 72px) 48px; }
.scene .wrap > :last-child, .about-grid > div > :last-child { margin-bottom: 0; }
/* the sticker sits on the top-right corner; «Найпопулярніший» moves left on such a card */
.promo-sticker { left: auto; right: -14px; top: -20px; }
.tariff.has-promo .tariff-badges { right: auto; left: 24px; }
/* story card: as tall as its content (up to the screen) */
.story-modal { height: fit-content; max-height: min(760px, 100dvh); }   /* a modal dialog is inset 0 — auto would stretch it */
.sm-arrow { top: auto; bottom: 18px; transform: none; }
.sm-prev { left: auto; right: 72px; } .sm-next { right: 18px; }
.sm-card { padding-bottom: 84px; }
.sm-card { flex: 0 1 auto; }
@media (max-width: 767.98px) { .story-modal { height: 100dvh; } .sm-card { flex: 1 1 auto; } }

/* --- A. the «Новини» tab at the left edge (replaces the beacon) --- */
.news-tab-wrap { position: fixed; left: 0; top: 50%; transform: translateY(-50%); z-index: 905; transition: opacity .3s; }
.news-tab {
  position: relative; width: 36px; height: 120px; padding: 12px 0; display: flex; flex-direction: column; align-items: center; gap: 10px;
  border: 1px solid rgba(255, 255, 255, .10); border-left: 0; border-radius: 0 12px 12px 0; cursor: pointer;
  background: rgba(255, 255, 255, .06); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); color: var(--text);
}
:root[data-theme="light"] .news-tab { background: rgba(255, 255, 255, .7); border-color: rgba(6, 18, 43, .12); }
@media (hover: hover) { .news-tab:hover { background: rgba(255, 255, 255, .10); } }
.nt-ic { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; stroke-linecap: round; }
.nt-label { writing-mode: vertical-rl; transform: rotate(180deg); font: 600 13px var(--sans); letter-spacing: .08em; }
/* unread: a small dot (a number only when more than one) — no motion */
.nt-dot, .notif-badge {
  position: absolute; top: 6px; right: 6px; min-width: 8px; height: 8px; padding: 0; border-radius: 4px;
  background: var(--promo-1); color: var(--promo-ink); font: 700 10px/16px var(--sans); text-align: center;
}
.nt-dot.has-num, .notif-badge.has-num { min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; top: 2px; right: 2px; }
.notif-badge[hidden], .nt-dot[hidden] { display: none; }
.news-peek {
  position: absolute; left: 44px; top: 50%; width: 300px; padding: 16px 18px; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow);
  transform: translate(-12px, -50%); opacity: 0; visibility: hidden; transition: transform .2s, opacity .2s, visibility .2s;
}
.news-peek.open { transform: translate(0, -50%); opacity: 1; visibility: visible; }
.np-meta { margin: 0 0 6px; font-size: .88rem; color: var(--muted); }
.np-meta span { color: var(--text); font-weight: 600; }
.np-title { margin: 0 0 10px; font-weight: 700; line-height: 1.35; }
.np-all { font-weight: 600; }
/* hidden on the first screen (the hero has the promo), while the panel is open, and on phones (the bell) */
body.nf-open .news-tab-wrap { opacity: 0; pointer-events: none; }
@media (max-width: 767.98px) { .news-tab-wrap { display: none; } }

/* --- B.2 hero: tighter headline, stats as chips --- */
.hero-map .hero-title, .hero-tagline { line-height: 1.05; }

:root[data-theme="light"] .hero-stats li { border-color: rgba(6, 18, 43, .06); }

/* --- B.3 glass surfaces --- */
/* (no backdrop-filter: the real background of these is the solid var(--surface) further down — a blur under an opaque
   card cost the GPU a full pass for nothing) */
.card, .hero-tile, #speedbox, .hero-intro .hero-check {
  background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
}
:root[data-theme="light"] :is(.card, .hero-tile, #speedbox, .hero-intro .hero-check) {
  border-color: var(--card-border); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 1px 2px rgba(6, 18, 43, .04);
}
.tariff-featured.card { background: linear-gradient(160deg, color-mix(in srgb, var(--accent) 12%, transparent), rgba(255, 255, 255, .04) 60%); }

/* --- B.4 header: glass once the page is scrolled — nearly opaque (at .7 the bright cards and the orange buttons under it
   showed through); the height stays (the jump to 60 px made the header twitch) --- */
.site-header.scrolled, .page .site-header.scrolled {
  background: rgba(6, 18, 43, .94);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom-color: rgba(255, 255, 255, .08);
}
:root[data-theme="light"] .site-header.scrolled { background: rgba(245, 246, 251, .95); border-bottom-color: rgba(6, 18, 43, .10); }


/* --- B.6 one grid: 1200 px container, 24 px gaps --- */
:root { --wrap: var(--container); }
main .wrap { max-width: var(--container); }
.tariffs, .svc-grid, .reasons, .hw-steps { gap: 24px; }

/* --- C. coverage map: list | map --- */
.scene-map { padding: 16px 0 32px; }
.scene-map .network-map { position: relative; height: 560px; display: block; border-radius: 16px; overflow: hidden;
  background: radial-gradient(70% 70% at 55% 45%, rgba(80, 140, 255, .06), transparent 70%); }
.scene-map .net-svg { width: 100%; height: 100%; max-height: none; margin: 0; }

/* point styles by kind (radii are set by map.js in screen pixels) */
:root { --m-city-c: #1E6FD9; --m-town-c: #5E86C2; --m-village-c: #5E86C2; --m-lbl: #fff; --m-lbl-stroke: #06122B; --m-raion: rgba(255, 255, 255, .08); }
.m-node.k-oblast_center { fill: #fff; stroke: var(--m-city-c); stroke-width: 3; }
.m-node.k-city { fill: var(--m-city-c); stroke: #fff; stroke-width: 1.5; }
.m-node.k-town { fill: var(--m-town-c); stroke: none; }
.m-node.k-village { fill: var(--m-village-c); stroke: none; opacity: .7; }
.m-node { vector-effect: non-scaling-stroke; cursor: pointer; transition: opacity .2s; }
.m-node:focus-visible, .m-node.hl { opacity: 1; outline: none; }
@media (hover: hover) { .m-node:hover { opacity: 1; outline: none; } }
.net-svg.focus .m-node:not(.hl):not(.k-oblast_center) { opacity: .45; }
.m-label { fill: var(--m-lbl); stroke: var(--m-lbl-stroke); paint-order: stroke; stroke-linejoin: round; font-family: var(--sans); font-weight: 500; pointer-events: none; }
.m-label.k-oblast_center { font-weight: 700; }
.m-label.k-city { font-weight: 600; }
.net-svg.focus .m-label { opacity: 1; }
.m-raion { fill: none; stroke: var(--m-raion); stroke-width: 1; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.m-fill-a { stop-color: color-mix(in srgb, var(--primary) 22%, transparent); }
.m-fill-b { stop-color: color-mix(in srgb, var(--primary) 5%, transparent); }
.m-oblast { stroke: color-mix(in srgb, var(--m-city-c) 45%, transparent); }

/* legend in the corner */
.map-key { position: absolute; right: 12px; bottom: 12px; z-index: 3; display: flex; flex-direction: column; gap: 4px; padding: 10px 14px; border-radius: 12px;
  background: color-mix(in srgb, var(--bg) 82%, transparent); border: 1px solid var(--line); font-size: .85rem; color: var(--text);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.map-key span { display: flex; align-items: center; gap: 8px; }
.map-key svg { width: 24px; height: 24px; flex: none; overflow: visible; }

/* the point's card */
.map-tip { display: flex; flex-direction: column; gap: 4px; min-width: 230px; }
.tip-kind { color: var(--muted); font-size: .88rem; }
.tip-price b { color: var(--text); }
.tip-actions { display: flex; align-items: center; gap: 12px; margin-top: 6px; pointer-events: auto; }
.tip-actions .btn { min-height: 40px; }

.map-tip { pointer-events: auto; max-width: 290px; }
/* the legend is a strip along the map's bottom edge — it never covers the oblast */
.scene-map .network-map { display: flex; flex-direction: column; }
.scene-map .net-svg { flex: 1; min-height: 0; height: auto; }
.map-key { position: static; flex-direction: row; flex-wrap: wrap; gap: 4px 18px; align-self: flex-start; margin: 0 12px 12px; padding: 8px 14px; }
@media (max-width: 767.98px) {

  .map-key { gap: 2px 12px; margin: 0 8px 8px; }
}

/* ================= Task 4 C (replacement): one full-width map, a colour per settlement kind ================= */
.scene-map { padding: 16px 0 24px; }
.scene-map .network-map { height: 560px; width: 100%; display: block; border-radius: 16px; }
.scene-map .net-svg { width: 100%; height: 100%; flex: none; }
@media (max-width: 1023.98px) { .scene-map .network-map { height: 360px; } }
/* points: village → town → city → oblast centre are drawn in that order (map.js); no promo orange here */
.m-node.k-oblast_center { fill: #ffffff; stroke: #1E6FD9; stroke-width: 3; opacity: 1; }
.m-node.k-city { fill: #1E6FD9; stroke: #06122B; stroke-width: 1.5; opacity: 1; }
.m-node.k-town { fill: #8AD5FF; stroke: #06122B; stroke-width: 1; opacity: 1; }
.m-node.k-village { fill: #5E86C2; stroke: none; opacity: .75; }
.m-node.hl, .m-node:focus-visible { opacity: 1; }
@media (hover: hover) { .m-node:hover { opacity: 1; } }
.m-label { fill: #fff; stroke: #06122B; paint-order: stroke; stroke-linejoin: round; }
.m-label.k-oblast_center { font-weight: 700; }
/* legend: a compact strip right under the map */
.map-key {
  position: static; display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 6px 18px;
  margin: 10px 0 0; padding: 0; border: 0; background: none; -webkit-backdrop-filter: none; backdrop-filter: none;
  font-size: .9rem; color: var(--muted);
}
.map-key span { display: inline-flex; align-items: center; gap: 7px; }
.mk-dot { display: inline-block; flex: none; border-radius: 50%; box-sizing: border-box; }
.mk-dot.k-oblast_center { width: 14px; height: 14px; background: #fff; border: 3px solid #1E6FD9; box-shadow: 0 0 6px rgba(77, 163, 255, .8); }
.mk-dot.k-city { width: 12px; height: 12px; background: #1E6FD9; border: 1.5px solid #06122B; }
.mk-dot.k-town { width: 9px; height: 9px; background: #8AD5FF; border: 1px solid #06122B; }
.mk-dot.k-village { width: 6px; height: 6px; background: #5E86C2; opacity: .75; }
.mk-counts { color: var(--text); }

/* --- B.1–B.6 the promo card in the hero: orange, the picture as a dark silhouette --- */
.hero-promo { color: var(--promo-ink); }
.hero-promo::before { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(14, 29, 72, .96) 30%, rgba(14, 29, 72, .2)); pointer-events: none; display: none; }

.hero-promo .ha-svg ellipse { display: none; }
.hero-promo .ha-svg [fill]:not([fill="none"]) { fill: rgba(0, 0, 0, .12); }
.hero-promo .ha-svg [stroke] { stroke: rgba(0, 0, 0, .12); }
.hero-promo .ha-svg .ha-signal { stroke: #fff; }
.hero-promo .ha-wifi path { stroke: rgba(0, 0, 0, .22); }
/* time of day (Kyiv): day — a sun; evening — the windows are lit; night — a crescent moon and stars */
.hero-promo .ha-svg circle[cx="372"], .hero-promo .ha-svg circle[cx="379"], .hero-promo .ha-stars circle { transition: fill .6s; }
.hero-promo .tod-day .ha-svg circle[cx="372"] { fill: rgba(255, 255, 255, .55); }
.hero-promo .tod-day .ha-svg circle[cx="379"], .hero-promo .tod-day .ha-stars { display: none; }
.hero-promo .tod-evening .ha-stars, .hero-promo .tod-evening .ha-svg circle[cx="372"], .hero-promo .tod-evening .ha-svg circle[cx="379"] { display: none; }
.hero-promo .tod-night .ha-svg circle[cx="372"] { fill: rgba(255, 255, 255, .75); }
.hero-promo .tod-night .ha-stars circle { fill: rgba(255, 255, 255, .7); }
.hero-promo .tod-evening .ha-win, .hero-promo .hero-art.is-lit .ha-win { fill: #EEF3FC; }
/* text and controls on orange */

.hp-slide > * { position: relative; z-index: 1; }

.hp-timer { margin: 10px 0 0 !important; font: 600 .92rem var(--sans); font-variant-numeric: tabular-nums; }
.hp-dots button::before { content: ""; width: 8px; height: 8px; border-radius: 4px; transition: width .2s; background: rgba(26, 18, 5, .3); }
.hp-dots button[aria-selected="true"]::before { width: 22px; background: var(--promo-ink); }
/* the sticker: white circle, 12°, a small sway every 6 s (0.6 s of motion, then a pause) */
@keyframes sticker-sway { 0%, 90%, 100% { transform: rotate(12deg); } 93% { transform: rotate(15deg); } 96.5% { transform: rotate(9deg); } }
/* a light band across the card every 14 s — the band moves by transform (no repaint of the gradient each frame) */
.hero-promo::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 60%; pointer-events: none; z-index: 0;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .35) 50%, transparent 65%);
  transform: translateX(-100%); animation: promo-shine 14s ease-in-out infinite paused;
}
@keyframes promo-shine { 0% { transform: translateX(-100%); } 17%, 100% { transform: translateX(267%); } }
.hero-promo.is-live .hp-sticker, .hero-promo.is-live::after { animation-play-state: running; }
#hero:not(.is-live) .ha-wifi path { animation-play-state: paused; }

/* --- B.8 the strip: one promo at a time, the next slides in from below --- */
.pr-items { position: relative; flex: 1; min-width: 0; height: 44px; overflow: hidden; }
.pr-item {
  position: absolute; inset: 0; display: flex; align-items: center; gap: 12px; justify-content: center;
  transform: translateY(100%); opacity: 0; visibility: hidden; transition: transform .4s ease, opacity .4s ease, visibility .4s;
}
.pr-item.is-on { transform: none; opacity: 1; visibility: visible; }
.pr-item.is-out { transform: translateY(-100%); opacity: 0; visibility: visible; }
.pr-item .promo-ribbon-link { flex: 0 1 auto; }

/* --- A. the news rail in the left margin (free space ≥ 300 px: 1200 px content → 1800 px wide screens) --- */
.news-rail { display: none; }
.news-strip { display: none; }
@media (min-width: 1760px) {
  .news-rail {
    display: block; position: fixed; z-index: 40; left: 24px; top: max(110px, calc(var(--header-h) + 16px));
    width: min(280px, calc((100vw - var(--container)) / 2 - 32px)); padding: 16px; border-radius: 16px;
    -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); transition: opacity .3s;
 }
  :root.rail-collapsed .news-rail { display: none; }
  :root:not(.rail-collapsed) .news-tab-wrap { display: none; }
  :root.footer-in-view .news-rail { opacity: 0; pointer-events: none; }
}
.nr-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.nr-title { display: flex; align-items: center; gap: 8px; margin: 0; font: 700 1.05rem var(--display); }
.nr-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--promo-1); }
.nr-collapse { width: 44px; height: 44px; }
.nr-collapse svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.nr-list { display: flex; flex-direction: column; gap: 10px; margin: 0 0 12px; padding: 0; list-style: none; }
.nr-card {
  position: relative; width: 100%; display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px 10px 14px; border-radius: 12px;
  border: 1px solid rgba(var(--neon-rgb), .12); color: var(--text); font: inherit; text-align: left; cursor: pointer;
  transition: background .2s, border-color .2s, transform .2s;
}
.nr-card.is-promo::before { content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 3px; border-radius: 2px; background: var(--promo-grad); }
.nr-ic { flex: none; width: 32px; height: 32px; display: grid; place-items: center; font-size: 20px; border-radius: 10px; background: color-mix(in srgb, var(--promo-1) 14%, transparent); }
.nr-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.nr-chip { align-self: flex-start; padding: 2px 8px; border-radius: 999px; font: 700 .72rem var(--sans); letter-spacing: .03em; }
.nr-card.is-promo .nr-chip { background: var(--promo-grad); color: var(--promo-ink); }
.nr-t { font-size: 15px; font-weight: 600; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.nr-ago { font-size: 12px; color: var(--muted); }
.nr-all { font-weight: 600; }
/* life without noise: cards slide in one by one on load; an unread post's outline runs round once, then stays */
.news-rail .nr-li { animation: nr-in .4s ease-out both; }
.news-rail .nr-li:nth-child(2) { animation-delay: 80ms; } .news-rail .nr-li:nth-child(3) { animation-delay: 160ms; }
@keyframes nr-in { from { opacity: 0; transform: translateX(-16px); } }
.nr-li.is-new { animation: nr-new .4s ease-out both; }
@keyframes nr-new { from { opacity: 0; transform: translateY(-14px); } }
.nr-card.is-unread { border-color: color-mix(in srgb, var(--accent) 55%, transparent); }
.nr-card.is-promo.is-unread { border-color: var(--promo-1); }
@property --nr-a { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
.nr-card.is-unread::after {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1.5px; pointer-events: none;
  background: conic-gradient(from var(--nr-a), transparent 0 75%, var(--accent) 88%, transparent);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  animation: nr-sweep 1.5s ease-out .4s 1 both;
}
.nr-card.is-promo.is-unread::after { background: conic-gradient(from var(--nr-a), transparent 0 75%, var(--promo-1) 88%, transparent); }
@keyframes nr-sweep { from { --nr-a: 0deg; opacity: 1; } 85% { opacity: 1; } to { --nr-a: 360deg; opacity: 0; } }

/* phones: the latest news as a swipeable strip under the hero (instead of the tab) */
@media (max-width: 767.98px) {
  .news-strip { display: block; padding: 4px 0 8px; }
  .ns-list { display: flex; gap: 12px; margin: 0; padding: 2px 0 6px; list-style: none; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .ns-list::-webkit-scrollbar { display: none; }
  .ns-list .nr-li { flex: 0 0 260px; scroll-snap-align: start; }
  .ns-list .nr-card { height: 100%; background: rgba(255, 255, 255, .04); border-color: rgba(255, 255, 255, .08); }
  :root[data-theme="light"] .ns-list .nr-card { background: rgba(255, 255, 255, .8); border-color: rgba(6, 18, 43, .10); }
}

/* the tab is there from the start; the 5-second pill with the latest promo next to it */

.news-peek.is-pill { width: auto; max-width: 340px; padding: 10px 18px; border-radius: 999px; border-color: var(--promo-1); display: flex; align-items: center; gap: 10px; }
.news-peek.is-pill .np-meta, .news-peek.is-pill .np-title { margin: 0; }
.news-peek.is-pill .np-meta time, .news-peek.is-pill .np-all { display: none; }

/* --- C.4 the map: a wave from Vinnytsia on first show, then a soft ping now and then --- */
.m-node.m-appear { transform-box: fill-box; transform-origin: center; animation: m-appear .5s ease-out backwards; }
@keyframes m-appear { from { opacity: 0; transform: scale(.2); } }
.m-ping { fill: none; stroke-width: 1.5; vector-effect: non-scaling-stroke; pointer-events: none; transform-box: fill-box; transform-origin: center; animation: m-ping 1.2s ease-out forwards; }
.m-ping.k-oblast_center { stroke: #1E6FD9; } .m-ping.k-city { stroke: #1E6FD9; } .m-ping.k-town { stroke: #8AD5FF; } .m-ping.k-village { stroke: #5E86C2; }
@keyframes m-ping { from { opacity: .9; transform: scale(1); } to { opacity: 0; transform: scale(3.4); } }
.hp-slide > .hp-sticker { position: absolute; z-index: 2; top: 14px; right: 14px; width: 72px; height: 72px; border-radius: 50%; place-items: center; padding: 6px; text-align: center; background: #fff; font: 800 .8rem/1.1 var(--sans); box-shadow: 0 8px 18px -8px rgba(0, 0, 0, .45); transform: rotate(12deg); display: flex; flex-direction: column; justify-content: center; gap: 1px; line-height: 1; }
.hp-sticker b { font: 800 1.3rem/1 var(--display); }
.hp-sticker small { font: 700 .6rem/1.1 var(--sans); max-width: 60px; }
/* the pill: one compact line */
.news-peek.is-pill { white-space: nowrap; max-width: 300px; padding: 8px 16px; }
.news-peek.is-pill .np-meta { flex: none; }
.news-peek.is-pill .np-meta span { padding: 2px 8px; border-radius: 999px; background: var(--promo-grad); color: var(--promo-ink); font-size: .75rem; }
.news-peek.is-pill .np-meta { font-size: 0; }      /* hides the " · " separator, keeps the chip */
.news-peek.is-pill .np-meta span { font-size: .75rem; }
.news-peek.is-pill .np-title { overflow: hidden; text-overflow: ellipsis; font-size: .92rem; }
.m-nodes.m-pre { opacity: 0; }

/* =====================================================================
   Redesign «Синій неон» — block 0: the palette. Deep navy background, blue gradient buttons with WHITE text,
   cyan neon glow; yellow ONLY for promos. Every colour below comes from here.
   ===================================================================== */
:root, :root:not([data-theme="light"]) {
  --bg: #06122B; --bg-alt: #091835; --surface: #0E2045; --surface-2: #10275A;
  --text: #EEF3FC; --muted: #A7B6D4; --muted-2: #7F90B3;             /* 17:1 and 9:1 on --bg */
  --primary: #1E6FD9;                                                  /* fills, lines */
  --btn-grad: linear-gradient(100deg, #0B74C4, #1E5FD8);               /* buttons — text #fff (5.3:1) */
  --neon: #3FC6F8; --neon-soft: #8AD5FF;                               /* glow, numbers, icons */
  --promo: var(--promo-1); --on-promo: var(--promo-ink);                /* promos only — see --promo-1/2 */
  --border: rgba(63, 198, 248, .16);
  --glow-neon: 0 0 18px rgba(63, 198, 248, .55);
  --glow-btn: 0 10px 28px -10px rgba(30, 111, 217, .9);
  --glass-bg: rgba(8, 24, 54, .78);
  --glass-border: rgba(63, 198, 248, .28);
  /* the older tokens, mapped onto the palette */
  --link: var(--neon-soft);
  --accent: var(--neon-soft);
  --cyan: var(--neon);
  --primary-strong: var(--neon-soft);
  --on-accent: #06122B;
  --brand-grad: var(--btn-grad);
  --card-bg: var(--surface); --card-border: var(--border);
  --promo-text: var(--promo-1);
  --sep: rgba(63, 198, 248, .25);
  --neon-rgb: 63, 198, 248;                                            /* rgba(var(--neon-rgb), a): neon tints, any alpha */
  --surface-deep: #0A1A3A;                                             /* the darker end of card gradients */
  --hot: #FFB24D; --hot-icon: #FFB24D;                                 /* orange text / icons (phone, «or call») */
  --footer-bg: linear-gradient(180deg, transparent, rgba(4, 13, 32, .92) 120px);   /* the map fades into the dark */
}
/* light theme — the ONLY block of light tokens. The same roles; blues dark enough for 4.5:1 on --bg (WCAG AA) */
:root[data-theme="light"] {
  --bg: #eef2f8; --bg-alt: #e6ebf4; --surface: #ffffff; --surface-2: #f0f1f9; --surface-deep: #ffffff;
  --text: #06122B; --muted: #5a5f80; --muted-2: var(--muted);
  --border: rgba(30, 111, 217, .18); --line: rgba(6, 18, 43, .12); --sep: rgba(60, 90, 200, .22);
  --card-bg: #ffffff; --card-border: #d3dcec;                         /* white cards stand off the #eef2f8 page */
  --primary: #1B68D1;                                                  /* 4.9:1 on --bg (#1E6FD9 was 4.49) */
  --primary-strong: #1662C4; --accent: #1E5FD8; --link: #1662C4;
  --cyan: #0B74A3; --neon: #0B74A3; --neon-soft: #1662C4; --neon-rgb: 30, 111, 217;
  --btn-grad: linear-gradient(100deg, #0B74C4, #1E5FD8); --brand-grad: var(--btn-grad); --on-accent: #ffffff;
  --glow-neon: 0 0 14px rgba(30, 111, 217, .35); --glow-btn: 0 10px 28px -12px rgba(30, 111, 217, .6);
  --glass-bg: rgba(255, 255, 255, .86); --glass-border: rgba(30, 111, 217, .25);
  --shadow: 0 30px 60px -34px rgba(20, 40, 80, .35);
  --warn: #8a5a00; --good: #157f3f; --danger: #d8323c;
  --promo: var(--promo-1); --on-promo: var(--promo-ink); --promo-text: var(--warn);
  --hot: #c2410c; --hot-icon: #d46a00;                                 /* orange text 5.2:1 / icons 3.3:1 on --bg */
  --footer-bg: var(--bg-alt);
  --m-city-c: #1f6fe0; --m-town-c: #1E6FD9; --m-village-c: #1E6FD9; --m-lbl: #06122B; --m-lbl-stroke: #ffffff;
  --m-raion: rgba(6, 18, 43, .12);
  --hero-rule: rgba(6, 18, 43, .1);
  color-scheme: light;
}
/* page background, alternating sections, cards */
body { background-color: var(--bg); }
.scene { background: var(--bg); }
.card { background: var(--surface); border-color: var(--border); }
:root[data-theme="light"] .card { background: var(--card-bg); }
/* primary buttons: blue gradient, white label */
.btn-primary { background: var(--btn-grad); color: #fff; box-shadow: var(--glow-btn); }
@media (hover: hover) { .btn-primary:hover { color: #fff; } }

/* ===== Block 1: promo strip + menu ===== */
:root.has-ribbon .promo-ribbon { background: var(--promo); color: var(--on-promo); }
.promo-ribbon-link { color: var(--on-promo); font-weight: 600; }
@media (hover: hover) { .promo-ribbon-link:hover { color: var(--on-promo); font-weight: 600; } }
.pr-more { color: var(--on-promo); text-decoration: underline; text-underline-offset: 3px; opacity: .85; }
.pr-want {
  padding: 5px 14px; border-radius: 999px; background: #06122B; color: var(--promo-1); font-weight: 800;
  box-shadow: 0 4px 14px -4px rgba(6, 18, 43, .6); transition: transform .15s;
}
@media (hover: hover) { .pr-want:hover { background: #06122B; color: var(--promo-1); transform: translateY(-1px); } }
.promo-ribbon-close { width: 32px; height: 32px; border-radius: 8px; background: none; color: #06122B; opacity: .7; }
@media (hover: hover) { .promo-ribbon-close:hover { background: rgba(6, 18, 43, .1); color: #06122B; opacity: 1; } }

/* menu: a glowing line under the item (hover / the section in view), no grey pill */
@media (min-width: 1024px) {
  .main-nav a { --nav-px: 14px; position: relative; padding-inline: var(--nav-px); color: var(--text); }
  @media (hover: hover) { .main-nav a:hover { background: none; color: #8AD5FF; } }
  .main-nav a::after {
    content: ""; position: absolute; bottom: 2px; left: var(--nav-px); right: var(--nav-px); height: 2px; border-radius: 1px;
    background: #1E6FD9; box-shadow: 0 0 10px #1E6FD9; transform: scaleX(0); transition: transform .25s cubic-bezier(.2, .8, .2, 1);
 }
  .main-nav a.is-active::after { transform: scaleX(1); }
@media (hover: hover) { .main-nav a:hover::after { transform: scaleX(1); } }
}
@media (hover: hover) { :root[data-theme="light"] .main-nav a:hover { color: var(--neon-soft); } }

/* ===== Block 2: hero stats — one pill row ===== */
.hero-map .hero-stats, .hero-stats {
  display: inline-flex;  gap: 0; align-self: flex-start; margin: 0; padding: 6px; border-radius: 999px;
   border: 1px solid rgba(var(--neon-rgb), .22); list-style: none;
}
.hero-stats li { position: relative; padding: 6px 14px;    font-size: 14px;  white-space: nowrap; }

.hero-stats li + li::before { color: var(--border); content: ""; position: absolute; left: 0; top: 25%; bottom: 25%; width: 1px; background: rgba(var(--neon-rgb), .3); }
.hero-stats b { font-family: var(--display); color: var(--neon-soft); font-weight: 800; margin-right: 4px; }
@media (max-width: 767.98px) {
  .hero-map .hero-stats, .hero-stats { flex-wrap: wrap; border-radius: 16px; }
  .hero-stats li { padding: 4px 12px; }
}

/* ===== Block 3: tiles under the hero — neon icons ===== */
.hero-tile { display: flex; align-items: center; min-height: 72px; color: var(--text); padding: 8px 10px; gap: 10px; border-radius: 12px; transition: transform .2s cubic-bezier(.2, .8, .2, 1), border-color .2s cubic-bezier(.2, .8, .2, 1), box-shadow .2s cubic-bezier(.2, .8, .2, 1); }
.hero-tile .ht-ic, .hero-tiles .ht-ic {
  width: 40px; height: 40px; border-radius: 50%;
  background: radial-gradient(circle at 50% 40%, rgba(var(--neon-rgb), .28), rgba(var(--neon-rgb), .08));
  border: 1px solid rgba(var(--neon-rgb), .45);
  box-shadow: 0 0 14px -2px rgba(var(--neon-rgb), .55), inset 0 0 8px rgba(var(--neon-rgb), .25);
  transition: transform .2s cubic-bezier(.2, .8, .2, 1), box-shadow .2s cubic-bezier(.2, .8, .2, 1);
}
.hero-tile .ht-ic svg, .hero-tiles .ht-ic svg {
  width: 20px; height: 20px;  stroke: var(--neon-soft);
  filter: drop-shadow(0 0 4px rgba(var(--neon-rgb), .9)); transition: stroke .2s;
}
@media (hover: hover) { .hero-tile:hover, .hero-tiles .hero-tile:hover {
  transform: translateY(-3px); border-color: rgba(var(--neon-rgb), .6); box-shadow: 0 12px 30px -12px rgba(var(--neon-rgb), .6);
} }
@media (hover: hover) { .hero-tile:hover .ht-ic { transform: scale(1.06); box-shadow: 0 0 22px rgba(var(--neon-rgb), .8), inset 0 0 8px rgba(var(--neon-rgb), .25); } }
@media (hover: hover) { .hero-tile:hover .ht-ic svg { stroke: #fff; } }
@media (hover: hover) { :root[data-theme="light"] .hero-tile:hover .ht-ic svg { stroke: var(--primary); } }

/* ===== Block 4: the map — a blue scale by settlement kind ===== */
.m-node.k-oblast_center { fill: #FFFFFF; stroke: #1E6FD9; stroke-width: 5; opacity: 1; }
.m-node.k-city { fill: #1E6FD9; stroke: #EEF3FC; stroke-width: 2; opacity: 1; }
.m-node.k-town { fill: #8AD5FF; stroke: #06122B; stroke-width: 1.5; opacity: 1; }
.m-node.k-village { fill: #5E86C2; stroke: none; opacity: .75; }
.m-node { transform-box: fill-box; transform-origin: center; transition: transform .2s, opacity .2s; }
.m-node:focus-visible, .m-node.hl { transform: scale(1.6); }
@media (hover: hover) { .m-node:hover { transform: scale(1.6); } }
.m-oblast { fill: rgba(var(--neon-rgb), .07); stroke: rgba(var(--neon-rgb), .55); stroke-width: 2; }
.m-oblast-glow { stroke: rgba(var(--neon-rgb), .18); }
.m-raion { stroke: rgba(138, 213, 255, .10); }
.m-label { fill: #EEF3FC; stroke: #06122B; paint-order: stroke; stroke-linejoin: round; }
.m-ping.k-oblast_center, .m-ping.k-city { stroke: #1E6FD9; } .m-ping.k-town { stroke: #8AD5FF; } .m-ping.k-village { stroke: #5E86C2; }
/* legend: the same colours and sizes, centred */
.map-key { justify-content: center; gap: 8px 20px; font-size: 14px; color: var(--muted); }
.mk-dot.k-oblast_center { width: 22px; height: 22px; background: #FFFFFF; border: 5px solid #1E6FD9; box-shadow: 0 0 12px #1E6FD9; }
.mk-dot.k-city { width: 14px; height: 14px; background: #1E6FD9; border: 2px solid #EEF3FC; box-shadow: 0 0 6px rgba(var(--neon-rgb), .9); }
.mk-dot.k-town { width: 9px; height: 9px; background: #8AD5FF; border: 1.5px solid #06122B; }
.mk-dot.k-village { width: 5.2px; height: 5.2px; background: #5E86C2; opacity: .75; }

/* ===== Block 5: tariffs — the popular one stands out ===== */
.tariffs { align-items: center; }
.tariff-featured, .tariff-featured.card {
  position: relative; z-index: 2; padding-top: 44px;
  background: linear-gradient(180deg, var(--surface-2), var(--surface-deep)); border: 1.5px solid var(--primary);
  box-shadow: 0 0 0 1px rgba(var(--neon-rgb), .35), 0 0 50px -10px rgba(var(--neon-rgb), .75), 0 30px 60px -30px rgba(0, 0, 0, .8);
}
.tariff-featured { transform: scale(1.06); }
@media (hover: hover) { .tariff-featured:hover { transform: scale(1.06) translateY(-4px); } }
.tariff-badges, .tariff.has-promo .tariff-badges { position: absolute; top: -14px; left: 50%; right: auto; transform: translateX(-50%); }
.tariff-badges .tariff-badge {
  padding: 6px 14px; border-radius: 999px; background: var(--btn-grad); color: #fff; white-space: nowrap;
  font: 800 12px var(--sans); text-transform: uppercase; letter-spacing: .06em; box-shadow: 0 0 18px rgba(var(--neon-rgb), .8);
}
.tariff-badges .tariff-badge::before { content: "★ "; }
.tariff .btn { background: var(--btn-grad); color: #fff; font-weight: 800; border: 0; box-shadow: 0 10px 30px -8px rgba(var(--neon-rgb), .9); white-space: normal; }
@media (hover: hover) { .tariff .btn:hover { color: #fff; } }
:root[data-theme="light"] .tariff-featured, :root[data-theme="light"] .tariff-featured.card { background: linear-gradient(180deg, #ffffff, #eef4ff); }
@media (max-width: 767.98px) {
  .tariff-featured { transform: none; }
@media (hover: hover) { .tariff-featured:hover { transform: none; } }
  .tariff-featured { order: -1; }
}

/* ===== Block 6: «Як підключитися» — the steps joined by a line that lights up ===== */
ol.hw-steps { position: relative; }
.hw-step.card { display: flex; flex-direction: column; align-items: center; text-align: center; padding-top: 24px;
  -webkit-backdrop-filter: none; backdrop-filter: none; }        /* no own stacking context: the line passes under the numbers */
.hw-step.card .hw-num { grid-row: auto; margin: 0 0 12px; }
.hw-step.card h3 { margin: 0 0 6px; }
ol.hw-steps::before, ol.hw-steps::after {
  content: ""; position: absolute; z-index: 1; left: calc(100% / 6); right: calc(100% / 6); top: 47px; height: 2px; border-radius: 1px; pointer-events: none;
}
ol.hw-steps::before { background: rgba(var(--neon-rgb), .18); }
ol.hw-steps::after {
  background: linear-gradient(90deg, var(--primary), var(--neon-soft)); box-shadow: 0 0 10px var(--primary);
  transform: scaleX(0); transform-origin: left; transition: transform 1.4s cubic-bezier(.4, 0, .2, 1);
}
ol.hw-steps.lit::after { transform: scaleX(1); }
.hw-num {
  position: relative; z-index: 2; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  background: var(--surface-deep); color: var(--neon-soft); border: 2px solid rgba(var(--neon-rgb), .35); transition: all .4s;
}
.hw-step.on .hw-num {
  background: var(--primary); color: #fff; border-color: var(--neon-soft);
  box-shadow: 0 0 0 4px rgba(var(--neon-rgb), .18), 0 0 20px rgba(var(--neon-rgb), .9);
}
.hw-step.on { border-color: rgba(var(--neon-rgb), .45); }
:root[data-theme="light"] .hw-step.on .hw-num { box-shadow: none; }      /* light: the filled circle, no neon */
@media (max-width: 1023.98px) { ol.hw-steps::before, ol.hw-steps::after { display: none; } }
@media (prefers-reduced-motion: reduce) { ol.hw-steps::after { transform: scaleX(1); } }

/* ===== Block 7: «Послуги» — light follows the cursor ===== */
#poslugy .svc { position: relative; overflow: hidden; isolation: isolate; transition: transform .25s, border-color .25s, box-shadow .25s; }
#poslugy .svc::before, #poslugy .svc::after { content: ""; position: absolute; pointer-events: none; opacity: 0; transition: opacity .3s; }
#poslugy .svc::before { /* a soft spot under the content */
  inset: 0; z-index: -1; background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(var(--neon-rgb), .22), transparent 60%);
}
#poslugy .svc::after { /* the frame lights up near the cursor */
  inset: 0; padding: 1px; border-radius: inherit;
  background: radial-gradient(180px circle at var(--mx, 50%) var(--my, 50%), #8AD5FF, transparent 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
@media (hover: hover) { #poslugy .svc:hover::before, #poslugy .svc:hover::after { opacity: 1; } }
@media (hover: hover) { #poslugy .svc:hover { transform: translateY(-4px); border-color: rgba(var(--neon-rgb), .35); box-shadow: 0 18px 40px -18px rgba(var(--neon-rgb), .55); } }
@media (hover: hover) { #poslugy .svc:hover h3 { color: #fff; } }
@media (hover: hover) { :root[data-theme="light"] #poslugy .svc:hover h3 { color: var(--primary); } }
@media (hover: none) { #poslugy .svc::before, #poslugy .svc::after { display: none; } }

/* ===== Block 9: «Чому ми» — a 3 + 2 grid ===== */
#chomu-my .reasons { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
#chomu-my .reason { grid-column: span 2; padding: 24px 26px; }
#chomu-my .reason:nth-child(4) { grid-column: 2 / span 2; }
#chomu-my .reason:nth-child(5) { grid-column: 4 / span 2; }
#chomu-my .reason h3 { font-size: 19px; margin: 12px 0 8px; }
#chomu-my .reason p { font-size: 15px; line-height: 1.55; max-width: 36ch; }
@media (max-width: 1023.98px) {
  #chomu-my .reasons { grid-template-columns: repeat(2, 1fr); }
  #chomu-my .reason, #chomu-my .reason:nth-child(4) { grid-column: auto; }
  #chomu-my .reason:nth-child(5) { grid-column: 1 / -1; }
}
@media (max-width: 767.98px) {
  #chomu-my .reasons { grid-template-columns: 1fr; }
  #chomu-my .reason:nth-child(5) { grid-column: auto; }
}

/* ===== Block 10: the request form ===== */
#request-form {
  padding: clamp(22px, 3vw, 32px); border-radius: 18px;
  background: linear-gradient(180deg, var(--surface), var(--surface-deep)); border: 1.5px solid rgba(var(--neon-rgb), .45);
  box-shadow: 0 0 0 1px rgba(var(--neon-rgb), .12), 0 0 60px -20px rgba(var(--neon-rgb), .6), 0 30px 60px -30px rgba(0, 0, 0, .8);
}
#request-form label { color: var(--text); }
#request-form label .muted { color: var(--muted); font-weight: 400; }
#request-form input, #request-form textarea {
  background: var(--bg); border: 1px solid var(--glass-border); color: var(--text); transition: border-color .2s, box-shadow .2s;
}
#request-form input::placeholder, #request-form textarea::placeholder { color: var(--muted-2); }
@media (hover: hover) { #request-form input:hover, #request-form textarea:hover { border-color: rgba(var(--neon-rgb), .5); } }
#request-form input:focus, #request-form textarea:focus {
  outline: none; border-color: #1E6FD9; box-shadow: 0 0 0 3px rgba(var(--neon-rgb), .25), 0 0 18px -4px rgba(var(--neon-rgb), .7);
}
#request-form input:user-invalid, #request-form textarea:user-invalid { border-color: #FF5964; box-shadow: 0 0 0 3px rgba(255, 89, 100, .2); }
#request-form button[type=submit] {
  background: var(--btn-grad); color: #fff; font-weight: 800; border: 0; box-shadow: 0 12px 30px -10px rgba(var(--neon-rgb), .9);
  transition: transform .15s, background .2s;
}
@media (hover: hover) { #request-form button[type=submit]:hover { background: #2F80EA; color: #fff; transform: translateY(-1px); } }
/* light: a plain card — the card border and the soft shadow instead of the neon frame */
:root[data-theme="light"] #request-form { border-color: var(--card-border); box-shadow: var(--shadow); }

/* ===== Block 11: the right dock — one glass panel ===== */
.side-dock {
  right: 12px; gap: 4px; padding: 6px; border-radius: 18px;
  background: var(--glass-bg); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); border: 1px solid var(--glass-border);
  box-shadow: 0 0 30px -10px rgba(var(--neon-rgb), .55), 0 20px 40px -20px rgba(0, 0, 0, .8);
}
.dock-tab, .dock-chat, .dock-call, .dock-promo, :root:not([data-theme="light"]) .dock-call {
  position: relative; width: 64px; height: 58px; padding: 0; border: 0; border-radius: 12px; box-shadow: none; background: transparent;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  font: 600 11px var(--sans); color: var(--muted); transition: background .2s, color .2s, transform .2s;
}
.dock-tab svg { width: 22px; height: 22px; transition: stroke .2s, fill .2s, filter .2s; }
.dock-tab svg.stroke { fill: none; stroke: var(--neon-soft); stroke-width: 1.8; }
.dock-call svg { fill: var(--neon-soft); stroke: none; }
.dock-tab.active { background: rgba(var(--neon-rgb), .16); color: #fff; transform: translateX(-2px); filter: none; }
@media (hover: hover) { .dock-tab:hover { background: rgba(var(--neon-rgb), .16); color: #fff; transform: translateX(-2px); filter: none; } }
@media (hover: hover) { .dock-tab:hover svg.stroke { stroke: #fff; filter: drop-shadow(0 0 6px #1E6FD9); } }
@media (hover: hover) { .dock-call:hover svg { fill: #fff; filter: drop-shadow(0 0 6px #1E6FD9); } }
.dock-tab + .dock-tab::before { content: ""; position: absolute; left: 14px; right: 14px; top: -2px; height: 1px; background: rgba(var(--neon-rgb), .15); }
.dock-promo { color: var(--promo-1); }
.dock-promo svg.stroke { stroke: var(--promo-1); }
@media (hover: hover) { .dock-promo:hover { background: color-mix(in srgb, var(--promo-1) 14%, transparent); color: color-mix(in srgb, var(--promo-1) 70%, #fff); } }
@media (hover: hover) { .dock-promo:hover svg.stroke { stroke: color-mix(in srgb, var(--promo-1) 70%, #fff); filter: none; } }
.dock-promo.has-new::after {
  content: ""; position: absolute; top: 8px; right: 12px; width: 8px; height: 8px; border-radius: 50%;
  background: var(--promo-1); box-shadow: 0 0 8px color-mix(in srgb, var(--promo-1) 90%, transparent);
}
:root[data-theme="light"] .dock-tab { color: #3c4a6b; }
:root[data-theme="light"] .dock-tab svg.stroke { stroke: var(--primary); }
:root[data-theme="light"] .dock-call svg { fill: var(--primary); }
@media (hover: hover) { :root[data-theme="light"] .dock-tab:hover { color: #06122B; } }
:root[data-theme="light"] .dock-promo { color: var(--promo-text); }
:root[data-theme="light"] .dock-promo svg.stroke { stroke: #B37F00; }
/* the dock keeps a lane at the right: content never runs under it */
/* phones: the same glass panel as a bottom bar */
@media (max-width: 1023.98px) {
  .side-dock { left: 8px; right: 8px; bottom: calc(8px + env(safe-area-inset-bottom)); flex-direction: row; padding: 6px; }
  .dock-tab, .dock-chat, .dock-call, .dock-promo, :root:not([data-theme="light"]) .dock-call { flex: 1; width: auto; height: 52px; }
  .dock-tab + .dock-tab::before { left: -2px; right: auto; top: 12px; bottom: 12px; width: 1px; height: auto; }
  @media (hover: hover) { .dock-tab:hover { transform: none; } }
  body { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
}

/* ===== Block 12: the left news rail — the dock's glass ===== */
@media (min-width: 1760px) {
  .news-rail {
    background: var(--glass-bg); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); border: 1px solid var(--glass-border);
    box-shadow: 0 0 30px -10px rgba(var(--neon-rgb), .45), 0 20px 40px -20px rgba(0, 0, 0, .8);
 }
}
.nr-title { color: var(--text); }
.nr-collapse { background: transparent; border: 1px solid rgba(var(--neon-rgb), .3); color: var(--neon-soft); }
@media (hover: hover) { .nr-collapse:hover { background: var(--border); } }
.nr-chip { background: rgba(var(--neon-rgb), .18); color: var(--neon-soft); }
.nr-t { color: var(--text); }
.nr-ago { color: var(--muted-2); }
.nr-card.is-promo {
  background: linear-gradient(90deg, color-mix(in srgb, var(--promo-1) 12%, transparent), color-mix(in srgb, var(--promo-1) 3%, transparent)); border-color: color-mix(in srgb, var(--promo-1) 30%, transparent);
  box-shadow: inset 3px 0 0 var(--promo-1);
}
.nr-card.is-promo::before { display: none; }        /* the inset shadow is the stripe now */
@media (hover: hover) { .nr-card.is-promo:hover { border-color: color-mix(in srgb, var(--promo-1) 60%, transparent); } }
.nr-card.is-promo .nr-chip { background: var(--promo-1); color: #06122B; }
.nr-card.is-promo .nr-ic { background: color-mix(in srgb, var(--promo-1) 15%, transparent); }
.nr-all { color: var(--neon-soft); }
@media (hover: hover) { .nr-all:hover { color: #fff; } }
@media (hover: hover) { :root[data-theme="light"] .nr-all:hover { color: var(--text); } }

/* ===== Block 13: the footer ===== */
.site-footer { position: relative; }
.site-footer::before {
  content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: min(var(--container), 90%); height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent); box-shadow: 0 0 12px var(--primary);
}
.footer-cta { border-bottom-color: rgba(var(--neon-rgb), .18); }
.footer-cta-q { color: var(--muted); }
.footer-cta-phone { color: var(--text); transition: color .2s, text-shadow .2s; }
@media (hover: hover) { .footer-cta-phone:hover { color: var(--neon-soft); text-decoration: none; text-shadow: 0 0 18px rgba(var(--neon-rgb), .8); } }
.site-footer .soc { border: 1px solid rgba(var(--neon-rgb), .35); background: rgba(var(--neon-rgb), .06); color: var(--neon-soft); transition: background .2s, color .2s, box-shadow .2s; }
.site-footer .soc svg { fill: var(--neon-soft); }
.site-footer .soc svg.stroke { fill: none; stroke: var(--neon-soft); }
@media (hover: hover) { .site-footer .soc:hover { background: var(--primary); color: #fff; box-shadow: 0 0 18px -2px rgba(var(--neon-rgb), .9); text-decoration: none; } }
@media (hover: hover) { .site-footer .soc:hover svg { fill: #fff; } }
@media (hover: hover) { .site-footer .soc:hover svg.stroke { fill: none; stroke: #fff; } }
.site-footer h2 { color: var(--neon-soft); }
.site-footer a { color: var(--text); }
@media (hover: hover) { .site-footer a:hover { color: var(--neon-soft); } }
.site-footer p, .site-footer .muted, .footer-bottom { color: var(--muted); }
/* 768–860 px: the content's side gutter is narrower than the tab — the strip under the hero instead */
@media (max-width: 1023.98px) {
  .news-tab-wrap { display: none; }
  .news-strip { display: block; padding: 4px 0 8px; }
  .ns-list { display: flex; gap: 12px; margin: 0; padding: 2px 0 6px; list-style: none; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .ns-list .nr-li { flex: 0 0 260px; scroll-snap-align: start; }
}

/* final pass: no violet anywhere — the light theme's text is the palette navy; the hero card chip on solid navy */
.hp-label { background: #06122B; color: var(--promo-1); }
/* light: the promo plates are white with the page's text */
:root[data-theme="light"] .hp-label { background: #fff; color: var(--text); }
:root[data-theme="light"] .socials-call .soc-vb svg { fill: var(--primary); }

/* ===== Block 14: the live background «Велика карта мережі» (bg-map.js, home page) ===== */
html, body { background: var(--bg); }
#bg-map { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 0; pointer-events: none; overflow: hidden; contain: strict; }
/* two layers (bg-map.js): the map, drawn once and moved by transform on scroll; over it the arcs / glow, screen-sized */
#bg-map > canvas { position: absolute; left: 0; top: 0; will-change: transform; }
#bg-map > .bgm-fx { width: 100%; height: 100%; }
/* appears softly instead of in one frame: bg-map.js adds .ready after the first frame (.no-fade — opened scrolled) */
#bg-map { opacity: 0; transition: opacity .6s ease; }
#bg-map.ready { opacity: 1; }
#bg-map.no-fade { transition: none; }
@media (prefers-reduced-motion: reduce) { #bg-map { transition: none; } }
/* (the header stays position: fixed — it is already above the canvas; "header" would also catch the sections' <header>) */
main, .site-footer { position: relative; z-index: 1; }
main > section, .scene, #hero, .scene-map { background: transparent; }
.scene-alt { background: rgba(9, 24, 53, .35); }
:root[data-theme="light"] .scene-alt { background: rgba(30, 111, 217, .04); }
/* cards keep their own opaque surface — text over the map always reads */
.card, .tariff, .hero-tile, #speedbox, .hero-intro .hero-check { background: var(--surface); }
:root[data-theme="light"] :is(.card, .tariff, .hero-tile, #speedbox, .hero-intro .hero-check) { background: var(--surface); }
/* block 13: the map above the footer fades into the dark (light theme: --bg-alt) */
.site-footer { background: var(--footer-bg); }

/* ===== "Only the map" (home): everything but the background map fades out; scrolling stays on ===== */
body > *:not(#bg-map):not(#map-toggle):not(#mc):not(script) { transition: opacity .4s ease, visibility .4s; }
html.map-only body > *:not(#bg-map):not(#map-toggle):not(#mc):not(#side-dock):not(#call-panel):not(.fb-skip):not(.fb-pin):not(script) { opacity: 0; visibility: hidden; pointer-events: none; }
/* in map mode the dock bar is hidden too: the button goes back to its corner (the live map's zoom sits above it) */
@media (max-width: 1023.98px) { html.map-only #map-toggle { bottom: calc(20px + env(safe-area-inset-bottom)); } }
#map-toggle {
  position: fixed; left: 20px; bottom: 20px; z-index: 950; width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid var(--border); background: rgba(14, 32, 69, .85); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  color: var(--text); display: grid; place-items: center; cursor: pointer; box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .7);
  transition: background .2s, transform .2s;
}
:root[data-theme="light"] #map-toggle { background: rgba(255, 255, 255, .88); color: var(--text); }
@media (hover: hover) { #map-toggle:hover { background: var(--surface-2); transform: scale(1.06); } }
@media (hover: hover) { :root[data-theme="light"] #map-toggle:hover { background: var(--surface-2); } }
#map-toggle svg { width: 22px; height: 22px; }
#map-toggle .ic-close { display: none; }
html.map-only #map-toggle { background: var(--promo-grad); color: var(--promo-ink); border-color: transparent; }
html.map-only #map-toggle .ic-map { display: none; }
html.map-only #map-toggle .ic-close { display: block; }
/* phones / tablets: the dock is a bottom bar (≈64 px) — the button sits above it */
@media (max-width: 1023.98px) { #map-toggle { left: 14px; bottom: calc(84px + env(safe-area-inset-bottom)); } }

/* ===== The hero promo card: a green → blue gradient; ‹ › arrows next to the dots; swipe-friendly ===== */
.hero-promo {
  background: linear-gradient(100deg, #35d29a, #1E6FD9);
  box-shadow: 0 22px 50px -24px rgba(30, 111, 217, .65);
  touch-action: pan-y; }
/* the night crescent is cut out with a circle of the card's colour (blue at that corner now) */
.hero-promo .tod-night .ha-svg circle[cx="379"] { fill: #2585cb; }
.hp-dots { position: relative; display: flex; gap: 2px; margin-top: 10px; align-items: center; }
.hp-dots .hp-arrow {
  width: 34px; height: 34px;   border-radius: 50%;   flex: none;
  background: rgba(10, 20, 45, .85); color: #fff; font: 700 20px/1 var(--sans);  transition: background .15s;
}
.hp-dots .hp-arrow::before, .hp-dots .hp-arrow::after { content: none; display: none; }
@media (hover: hover) { .hp-dots .hp-arrow:hover { background: rgba(4, 10, 25, .95); } }
.hp-dots .hp-arrow:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
:root[data-theme="light"] .hp-dots .hp-arrow { background: rgba(255, 255, 255, .9); color: var(--text); }
@media (hover: hover) { :root[data-theme="light"] .hp-dots .hp-arrow:hover { background: #fff; } }
.hp-dots .hp-prev { margin-right: 4px; } .hp-dots .hp-next { margin-left: 4px; }
/* dark text on the green → blue card: black keeps ≥ 4.5:1 even over the blue end (the amber ink gave ~4.1) */
.hero-promo .hp-slide p, .hero-promo .hp-big, .hero-promo .hp-timer { color: #000 !important; }
/* #akcii — the anchor for /#akcii: a zero-height marker on the card's top edge (same grid area / order as the card) */
#akcii { height: 0; scroll-margin-top: 16px; }   /* + the page's scroll-padding-top (the header) */
@media (min-width: 1024px) { #akcii { grid-area: art; align-self: start; } }
@media (max-width: 1023.98px) { #akcii { order: 1; } }
/* the text stays over the greener part of the card (the full-width card on tablets reaches the blue end) */
.hero-promo .hp-cond, .hero-promo .hp-timer { max-width: 60%; }

/* «Введіть назву населеного пункту» fits a 375 px phone */
@media (max-width: 767.98px) { #tf-q::placeholder { font-size: .86em; } }

/* the dock is always there — on every page from the first screen, and over the live map (#mc is z 900).
   A panel open at the right (call, news, the map's request form) pushes it to the panel's left edge
   (main.js sets --dock-right), so it never lies on top of the panel */
@media (min-width: 1024px) {
  .side-dock { right: var(--dock-right, 12px); transition: right .35s cubic-bezier(.2, .7, .2, 1); }
}
.side-dock { z-index: 910; }
.dock-tab.active { background: rgba(var(--neon-rgb), .22); color: #fff; }
.dock-tab.active svg.stroke { stroke: #fff; }
.dock-call.active svg { fill: #fff; }
:root[data-theme="light"] .dock-tab.active { background: color-mix(in srgb, var(--primary) 16%, transparent); color: #06122B; }
:root[data-theme="light"] .dock-tab.active svg.stroke { stroke: var(--primary-strong); }
:root[data-theme="light"] .dock-call.active svg { fill: var(--primary-strong); }
@media (prefers-reduced-motion: reduce) { .side-dock { transition: none; } }

/* 404 / 500 (error.html) */
.error-actions { display: flex; flex-wrap: wrap; gap: 12px; padding-bottom: 40px; }
/* theme switch (main.js): every colour changes in one frame — no half-faded cards */
.theme-switching *, .theme-switching *::before, .theme-switching *::after { transition: none !important; }
/* /kontakty/: working hours, a line per group of days */
.hours-line { display: block; white-space: nowrap; }

/* ================= Account (/kabinet/): greeting, tabs, login by code, settings ================= */
.kab-hero { padding-bottom: 12px; }
.kab-hello { font-family: var(--display); font-weight: 600; font-size: clamp(1.4rem, 2.6vw, 1.9rem); line-height: 1.2; margin: 0 0 14px; }
/* tabs: one segmented switch in a row */
.kab-tabs { display: inline-flex; flex-wrap: nowrap; gap: 2px; padding: 3px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); max-width: 100%; }
.kab-tabs a { padding: 7px 16px; border-radius: 999px; color: var(--muted); font-weight: 600; text-decoration: none; white-space: nowrap; }
@media (hover: hover) { .kab-tabs a:hover { color: var(--text); } }
.kab-tabs a[aria-current="page"] { background: var(--surface-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--border); }
.kab-tabs a:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.kab-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.kab-panel-head h3 { margin: 0; }

/* login: the bot step and the code */
.otp-bot-step h3, .otp-code-step h3 { margin-top: 0; }
.otp-qr { margin: 18px 0 6px; display: flex; align-items: center; gap: 16px; }
.otp-qr img { border-radius: 12px; background: #fff; flex: none; }
.otp-qr figcaption { color: var(--muted); font-size: .95rem; }
@media (max-width: 1023.98px) { .otp-qr { display: none; } }        /* on a phone the button opens the bot right there */
.otp-wait { display: flex; align-items: center; gap: 10px; margin: 14px 0 0; color: var(--muted); }
.otp-spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--border); border-top-color: var(--accent); animation: otp-spin .9s linear infinite; flex: none; }
.is-stale .otp-spin { display: none; }
@keyframes otp-spin { to { transform: rotate(360deg); } }
.otp-input { font: 600 1.6rem/1 var(--mono, monospace); letter-spacing: .35em; text-align: center; }
.link-btn:disabled { color: var(--muted); cursor: default; text-decoration: none; }

/* settings */
.kab-settings { display: grid; gap: 20px; max-width: 760px; }
.kab-settings .panel { margin: 0; }
.kab-flash { margin: 0; }
.request-status.err { color: var(--danger, #e5484d); }
.kab-state { font-weight: 600; margin: 0 0 6px; }
.kab-on { color: var(--good, #2fbf71); }
.kab-off { color: var(--muted); }
.kab-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.kab-danger { color: var(--danger, #e5484d); border-color: color-mix(in srgb, var(--danger, #e5484d) 45%, var(--border)); }
.kab-connect { display: grid; gap: 10px; justify-items: start; }
.kab-connect .otp-qr { margin: 4px 0; }
.kab-switches { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.kab-switches li { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 10px 0; border-top: 1px solid var(--border); }
.kab-switches li:first-child { border-top: 0; }
.kab-switch { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; flex: 1 1 320px; }
.kab-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.kab-switch-ui { flex: none; width: 42px; height: 24px; border-radius: 999px; background: var(--border); position: relative; margin-top: 2px; transition: background .2s; }
.kab-switch-ui::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); transition: transform .2s; }
.kab-switch input:checked + .kab-switch-ui { background: var(--primary-strong, #1E6FD9); }
.kab-switch input:checked + .kab-switch-ui::after { transform: translateX(18px); }
.kab-switch input:focus-visible + .kab-switch-ui { outline: 2px solid var(--accent); outline-offset: 2px; }
.kab-switch-text { display: grid; gap: 2px; }
.kab-switch-text small { color: var(--muted); font-size: .9rem; }
.kab-param { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .95rem; }
.kab-param input, .kab-param select { width: auto; max-width: 120px; padding: 6px 10px; border-radius: 10px; border: 1px solid var(--border); background: var(--bg); color: var(--text); font: inherit; }
.kab-change { margin-top: 14px; }
.kab-change summary { list-style: none; display: inline-flex; cursor: pointer; }
.kab-change summary::-webkit-details-marker { display: none; }
.kab-change-form { display: grid; gap: 10px; margin-top: 14px; max-width: 520px; }
.kab-change-form label { display: grid; gap: 4px; font-size: .95rem; color: var(--muted); }
.kab-sessions { list-style: none; margin: 0 0 14px; padding: 0; }
.kab-sessions li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid var(--border); }
.kab-sessions li:first-child { border-top: 0; }
.kab-sessions small { display: block; margin-top: 2px; }
.kab-badge { display: inline-block; margin-left: 6px; padding: 2px 8px; border-radius: 999px; font-size: .78rem; font-weight: 700;
  background: color-mix(in srgb, var(--good, #2fbf71) 18%, transparent); color: var(--good, #2fbf71); }
@media (prefers-reduced-motion: reduce) { .otp-spin { animation: none; } .kab-switch-ui, .kab-switch-ui::after { transition: none; } }

/* the check's suggestions above everything below it: the check (a stacking context — backdrop-filter) above the
   tiles next to it, and the whole hero (isolation: isolate) above the following sections — only while the list is open */
.hero-check { min-width: 0; position: relative; }
.hero-check:has(.ac-list:not([hidden])) { z-index: 30; }
/* phones: while the suggestions are open (the keyboard is up anyway) the bottom dock bar steps aside */

/* nobody is looking (tab hidden or the browser window not focused — main.js sets html.fx-paused): every CSS animation
   waits where it is and goes on when they're back */
.fx-paused *, .fx-paused *::before, .fx-paused *::after { animation-play-state: paused !important; }
/* the promo card's wifi waves only while the card is on screen (like its shine) */
.hero-promo:not(.is-live) .pa-wifi path { animation-play-state: paused; }

/* ===== Account page (/kabinet/) — layout ===== */
.kab-hero + .kab-main { padding-top: 24px; }
.kab-main .panel { margin: 16px 0 0; }
.kab-mock { margin: 8px 0 0; }

/* balance + tariff: two cards of the same height */
.kab-main .billing-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 16px; margin: 0; border-top: 0; align-items: stretch; }
.kab-main .billing-grid .stat { min-width: 0; padding: 22px 24px; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface); display: flex; flex-direction: column; align-items: stretch; gap: 6px; }
.kab-main .billing-grid .stat + .stat { padding-left: 24px; border-left: 1px solid var(--border); }
.kab-main .billing-grid .stat-label { margin: 0; }
.kab-balance .stat-value { white-space: nowrap; line-height: 1; display: flex; align-items: baseline; gap: .12em; font-size: clamp(2.4rem, 5vw, 3.6rem); }
.kab-balance .stat-value small { font-size: .4em; font-weight: 600; }
.kab-forecast { margin: 2px 0 0; color: var(--muted); font-weight: 600; }
.kab-forecast.is-warn { color: var(--warn); }
.kab-forecast.is-danger { color: var(--danger); }
.kab-pay-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: auto; padding-top: 14px; }
.kab-more { font-weight: 600; }
.kab-tariff-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.kab-tariff .stat-value { overflow-wrap: anywhere; }
.kab-status { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: .85rem; font-weight: 700; white-space: nowrap; }
.kab-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.kab-status.is-good { color: var(--good); background: color-mix(in srgb, var(--good) 16%, transparent); }
.kab-status.is-warn { color: var(--warn); background: color-mix(in srgb, var(--warn) 16%, transparent); }
.kab-status.is-danger { color: var(--danger); background: color-mix(in srgb, var(--danger) 14%, transparent); }
.kab-facts { margin: auto 0 0; padding-top: 10px; }
.kab-facts div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); }
.kab-facts dt { color: var(--muted); }
.kab-facts dd { margin: 0; font-weight: 600; text-align: right; overflow-wrap: anywhere; }
.mono { font-family: var(--mono); }
@media (max-width: 767.98px) {
  .kab-main .billing-grid { grid-template-columns: minmax(0, 1fr); }
  .kab-main .billing-grid .stat + .stat { border-top: 1px solid var(--border); }
  .kab-pay-actions .btn { width: 100%; justify-content: center; white-space: normal; text-align: center; }
}

/* copy chips: ЄДРПОУ, contract */
.copy-chip { display: inline-flex; align-items: center; gap: 6px; margin: 2px 2px; padding: 3px 8px 3px 10px; vertical-align: baseline;
  border: 1px solid var(--border); border-radius: 8px; background: var(--surface-2); color: var(--text); font: 600 .95em var(--mono); cursor: pointer;
  transition: border-color .2s, color .2s; }
@media (hover: hover) { .copy-chip:hover { border-color: var(--primary); } }
.copy-chip:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.copy-chip .cc-ic { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; opacity: .7; }
.copy-chip .cc-ok { display: none; color: var(--good); font-family: var(--sans); }
.copy-chip.is-copied { border-color: var(--good); }
.copy-chip.is-copied .cc-ic { display: none; }
.copy-chip.is-copied .cc-ok { display: inline; }
.pay-status { margin: 4px 0 0; min-height: 1.2em; flex-basis: 100%; }
.pay-status.ok { color: var(--good); }
.pay-hint { line-height: 2; }
.kab-req-link { margin: 10px 0 0; }

/* pause: collapsed into a summary */
details.pause-panel > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; cursor: pointer; list-style: none; }
details.pause-panel > summary::-webkit-details-marker { display: none; }
details.pause-panel > summary h3 { margin: 0; }
details.pause-panel[open] > summary { margin-bottom: 12px; }
.pause-toggle { color: var(--accent); font-weight: 600; white-space: nowrap; }
.pause-toggle .when-open, details[open] .pause-toggle .when-closed { display: none; }
details[open] .pause-toggle .when-open { display: inline; }
details.pause-panel > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 8px; }
.kab-main .pause-form { display: grid; grid-template-columns: 200px 200px 1fr auto; align-items: end; gap: 12px 14px; }
.kab-main .pause-form label { display: grid; gap: 6px; min-width: 0; }
.kab-main .pause-form input { width: 100%; box-sizing: border-box; min-height: 44px; }
.pause-lbl { font-size: .95rem; white-space: nowrap; }
.pause-lbl small { font-size: .8rem; }
.kab-main .pause-form .btn { min-height: 44px; }
.pause-calc { margin: 10px 0 0; min-height: 1.2em; color: var(--muted); }
.pause-calc.is-warn { color: var(--warn); font-weight: 600; }
@media (max-width: 767.98px) { .kab-main .pause-form { grid-template-columns: minmax(0, 1fr); } .kab-main .pause-form .btn { width: 100%; } }

/* profile: two columns of «label 170px + value» */
.kab-profile { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; margin: 8px 0 18px; }
.kab-profile div { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.kab-profile dt { color: var(--muted); }
.kab-profile dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 767.98px) {
  .kab-profile { grid-template-columns: minmax(0, 1fr); }
  .kab-profile div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .kab-profile dt { font-size: .85rem; }
}

/* phones: the fixed bottom dock never covers the end of the page */
@media (max-width: 767.98px) { body { padding-bottom: calc(72px + 16px + env(safe-area-inset-bottom)); } }

/* flatpickr in the site's colours (both themes) */
.flatpickr-calendar { background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); border-radius: 14px; color: var(--text); }
.flatpickr-calendar.arrowTop::before, .flatpickr-calendar.arrowTop::after { border-bottom-color: var(--surface); }
.flatpickr-months .flatpickr-month, .flatpickr-current-month .flatpickr-monthDropdown-months, .flatpickr-current-month input.cur-year,
.flatpickr-months .flatpickr-prev-month, .flatpickr-months .flatpickr-next-month, span.flatpickr-weekday { color: var(--text); fill: var(--text); background: transparent; }
.flatpickr-current-month .flatpickr-monthDropdown-months option { background: var(--surface); color: var(--text); }
.flatpickr-day { color: var(--text); }
.flatpickr-day:focus { background: var(--surface-2); border-color: var(--border); }
@media (hover: hover) { .flatpickr-day:hover { background: var(--surface-2); border-color: var(--border); } }
.flatpickr-day.today { border-color: var(--primary); }
.flatpickr-day.selected { background: var(--primary-strong, var(--primary)); border-color: var(--primary-strong, var(--primary)); color: #fff; }
@media (hover: hover) { .flatpickr-day.selected:hover { background: var(--primary-strong, var(--primary)); border-color: var(--primary-strong, var(--primary)); color: #fff; } }
.flatpickr-day.flatpickr-disabled, .flatpickr-day.prevMonthDay, .flatpickr-day.nextMonthDay { color: var(--muted); opacity: .45; }
@media (hover: hover) { .flatpickr-day.flatpickr-disabled:hover { color: var(--muted); opacity: .45; } }
.pause-form input.flatpickr-input[readonly] { cursor: pointer; }

/* weak device (base.html sets html[data-fx="low"]: ≤4 cores / ≤4 GB / «save data» / a tablet; bg-map.js also on slow frames):
   decorative endless animations stand still and glass panels lose their blur — the page stays the same, just calmer.
   Functional motion (spinners, the speed test, the map pin) keeps running. */
:root[data-fx="low"] .hero-promo::after, :root[data-fx="low"] .hp-sticker, :root[data-fx="low"] .pa-wifi path,
:root[data-fx="low"] .ha-wifi path,
:root[data-fx="low"] .mm-pulse, :root[data-fx="low"] .pa-btn { animation: none !important; }
:root[data-fx="low"] *, :root[data-fx="low"] *::before, :root[data-fx="low"] *::after { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
/* tablets (base.html: a touch screen wider than 560 px, iPadOS too — html.is-tablet, also data-fx="low"):
   the entrance animations are shorter and without delay; the promo slide text and the network-map lines don't animate */
.is-tablet .hero-title .line span,
.is-tablet .hero-eyebrow,
.is-tablet .speedbox, .is-tablet .spd,
.is-tablet .news-rail .nr-li { animation-duration: .35s !important; animation-delay: 0s !important; }
.is-tablet .nr-card.is-unread::after { animation: none !important; }

/* home: sections below the first screen are laid out and painted only when they come near the viewport
   (smoother scrolling and a lighter start on weak devices); the browser remembers their real height */
.home main > section.scene { content-visibility: auto; contain-intrinsic-size: auto 800px; }
/* …but not the tariffs: paint containment would clip the settlement suggestions under the search (low while the cards are hidden) */
.home main > section.scene#tarify { content-visibility: visible; contain-intrinsic-size: none; }

/* ===== Readability over the background map and the phone layout ===== */
/* text that sits right on the map (no card under it): a soft shadow of the page colour keeps it readable */
.hero-title, .hero-tagline, .hero-eyebrow,
.scene .display, .scene .lead, .scene .eyebrow, .scene .chapter, .scene p {
  text-shadow: 0 1px 2px rgba(6, 18, 43, .95), 0 0 14px rgba(6, 18, 43, .9), 0 0 28px rgba(6, 18, 43, .8);
}
/* light: one soft shadow in the hero (over the map); the sections need none */
:root[data-theme="light"] :is(.hero-title, .hero-tagline, .hero-eyebrow) { text-shadow: 0 0 12px rgba(255, 255, 255, .9); }
:root[data-theme="light"] :is(.scene .display, .scene .lead, .scene .eyebrow, .scene .chapter, .scene p) { text-shadow: none; }
.scene :is(.card, .tariff, .hero-tile, #speedbox) :is(p, .lead, .eyebrow, .display), .card .lead, .card p, .tariff p { text-shadow: none !important; }
/* the hero facts pill and the news cards: a solid surface instead of a see-through tint */
.hero-map .hero-stats, .hero-stats { background: color-mix(in srgb, var(--surface) 90%, transparent); }
.nr-card { background: color-mix(in srgb, var(--surface) 92%, transparent); }
@media (hover: hover) { .nr-card:hover { background: color-mix(in srgb, var(--surface-2) 94%, transparent); border-color: rgba(var(--neon-rgb), .45); transform: translateX(3px); } }
.nr-card.is-unread { background: color-mix(in srgb, var(--surface) 86%, var(--accent) 6%); }

@media (max-width: 767.98px) {
  /* «Про нас»: one column, the three facts in a row (the wider rules above would push them off the screen) */
  .about-grid { grid-template-columns: 1fr; gap: 20px; }
}

/* the hero promo keeps one height whichever slide is on: all slides share one grid cell (the tallest sets the
   height), the hidden ones only become invisible — the title and the search next to it no longer jump */
.hero-promo { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: 1fr auto; }
.hero-promo > .hp-slide { grid-area: 1 / 1; align-self: stretch; justify-content: flex-start; }
.hero-promo > .hp-slide[hidden] { display: flex !important; visibility: hidden; pointer-events: none; }   /* beats the global [hidden] */
.hero-promo > .hp-dots { grid-row: 2; }

/* «Only the map» / the live map: the close button (#map-toggle) sits top right, 44×44 */
html.map-only #map-toggle { left: auto; right: 18px; top: 18px; bottom: auto; width: 44px; height: 44px; }
@media (max-width: 1023.98px) { html.map-only #map-toggle { top: calc(14px + env(safe-area-inset-top)); right: 14px; bottom: auto; } }

/* ===== Phones: the oblast map is not the page background — it is the «Карта» button (map-toggle-icon.js) ===== */
#map-toggle .ic-minimap { display: none; }
@media (max-width: 767.98px) {
  /* no map behind the page; the canvas shows only in «only the map» mode (bg-map.js doesn't draw it otherwise) */
  html:not(.map-only) #bg-map:not(#hero-map > *) { opacity: 0 !important; visibility: hidden; pointer-events: none; }   /* the home hero's own map stays */
  /* a round mini-map, on screen at any scroll, above the dock bar (left/bottom — the 860px rule above);
     :root — so the light-theme colours of #map-toggle don't win; in map mode it is the cross (rules above) */
  :root:not(.map-only) #map-toggle {
    width: 60px; height: 60px; padding: 0; border-radius: 50%;
    background: radial-gradient(circle at 50% 40%, #0e2a5c, #06122b 75%); border: 1.5px solid rgba(95, 212, 255, .75);
    box-shadow: 0 8px 24px -6px rgba(0, 0, 0, .9), 0 0 18px rgba(var(--neon-rgb), .35); transform: none;
 }
@media (hover: hover) { :root:not(.map-only) #map-toggle:hover {
    width: 60px; height: 60px; padding: 0; border-radius: 50%;
    background: radial-gradient(circle at 50% 40%, #0e2a5c, #06122b 75%); border: 1.5px solid rgba(95, 212, 255, .75);
    box-shadow: 0 8px 24px -6px rgba(0, 0, 0, .9), 0 0 18px rgba(var(--neon-rgb), .35); transform: none;
 } }
  :root:not(.map-only) #map-toggle:active { transform: scale(.92); }
  :root:not(.map-only) #map-toggle:has(.ic-minimap) .ic-map { display: none; }
  :root:not(.map-only) #map-toggle .ic-minimap { display: block; width: 50px; height: 50px; filter: drop-shadow(0 0 3px rgba(var(--neon-rgb), .6)); }
}
.mm-pulse { transform-box: fill-box; transform-origin: center; animation: mm-pulse 2.2s ease-out infinite; }
@keyframes mm-pulse { from { transform: scale(1); opacity: 1; } to { transform: scale(4); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .mm-pulse { animation: none; opacity: 0; } }

/* ===== Hero layout — the one place for the hero grid (phone / tablet / desktop) =====
   ≥1025: headline and the check on the left, the promo on the right as tall as both (their bottoms line up);
          then the check's offer, the four tiles and the speed test across the whole width.
   768–1024 and phones: one column — headline (with the figures) → check → offer → promo → tiles 2×2 → speed test.
   Tiles: one height per row; on phones the icon on top, then the title and the note (up to two lines). */
:root { --gutter: 16px; }
.hero-map .hero-top { display: flex; flex-direction: column; align-items: stretch; gap: 24px; }
.hero-intro { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-items: start;
  grid-template-areas: "head" "check" "offer" "promo" "tiles"; }
.hero-headline { grid-area: head; }
.hero-intro .hero-check { grid-area: check; }
.hero-intro .hero-promo { grid-area: promo; max-width: none; justify-self: stretch; }
.hero-intro .hero-tiles { grid-area: tiles; }
.hero-intro > .hero-art { display: none; }
.hero-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: 8px; }
@media (min-width: 1024px) {
  .hero-intro { grid-template-columns: minmax(0, 1.55fr) minmax(360px, 1fr); grid-template-rows: minmax(0, 1fr) auto;
    grid-template-areas: "head promo" "check promo" "offer offer" "tiles tiles"; gap: 24px 32px; }
  .hero-headline { align-self: end; }                  /* a taller promo → the room goes above the headline */
  .hero-intro .hero-promo { align-self: stretch; }
  .hero-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 767.98px) {
  /* (the title wraps rather than being cut: «Не працює інте…» on a 360 px phone hid the point of the tile) */
  .hero-tile { flex-direction: column; align-items: flex-start; gap: 6px; padding: 10px 12px; min-height: 0; }
  .hero-tile .ht-ic, .hero-tiles .ht-ic { width: 34px; height: 34px; }
  .hero-tile .ht-txt { width: 100%; }
  .hero-tile .ht-txt b { font-size: .92rem; line-height: 1.2; }
  .hero-tile .ht-txt small { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
}

/* ===== Promo card: one layout for every slide =====
   the label, the headline and the price from the top (the label stays put when slides change); the right corner always has a visual (the sticker or an icon of the promo's kind) and the text keeps clear
   of it; the dots on the left, both arrows together on the right — SVG chevrons, centred. */
/* only the headline sits next to the visual (72 px + 16): it keeps clear of it and scales with the card;
   the price and the condition are below the visual — the whole width (they were held to 60 %) */
.hero-promo { container-type: inline-size; }
.hero-promo .hp-big { max-width: calc(100% - 88px); font-size: clamp(1.5rem, 8.4cqi, 2.4rem); text-wrap: balance; }
.hero-promo :is(.hp-cond, .hp-timer) { max-width: none; }
.hp-slide > .hp-ico svg { width: 34px; height: 34px; fill: none; stroke: #06122B; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.hp-dots { gap: 0; }
.hp-dots [role="tab"] { width: 32px; height: 32px; }
.hp-dots [role="tab"]::before { width: 8px; height: 8px; }
.hp-dots [role="tab"][aria-selected="true"]::before { width: 24px; }
.hp-dots .hp-prev { order: 1; margin: 0 8px 0 auto; }
.hp-dots .hp-next { order: 2; margin: 0; }
.hp-dots .hp-arrow { width: 38px; height: 38px; padding: 0; display: grid; place-items: center; line-height: 0; }
.hp-dots .hp-arrow svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
/* the night-village picture behind the text: it was never on screen — the recolouring rule above also painted the
   <mask>'s rect, and a near-black mask hides everything; the mask keeps its gradient now */
.hero-promo .hero-art .ha-svg mask rect[fill] { fill: url(#ha-fade); }   /* outweighs .ha-svg [fill]:not(…) */

/* ===== Speed test, unfolded — the one place for its grid (phone / tablet / desktop) =====
   ≥1025: info | dial | graphs | scheme; the verdict and the badge under the dial's button (no line of their own),
          the server / transferred line under the three; the scheme down the whole right side.
   768–1024: info | dial on top, the graphs across under them; ≤767: dial → verdict → graphs → info → the line.
   The scheme only on desktops; narrower it stays rendered but invisible (speedscene.js measures its paths). */
.spd:not(.is-compact) { position: relative; align-items: center; row-gap: 10px;
  grid-template-columns: minmax(0, 1fr); grid-template-areas: "dial" "verdict" "badge" "graphs" "info" "foot"; }
.spd .spd-verdict { grid-area: verdict; text-align: center; justify-self: center; max-width: 34ch; }
.spd .sb-badge { grid-area: badge; justify-self: center; margin: 0; }
.spd .sb-repair, .spd .sb-switch { grid-area: auto; grid-column: 1 / -1; justify-self: center; }
.spd .spd-dial { justify-self: center; align-self: center; height: auto; max-width: none; width: auto; }
.spd .spd-center { align-items: center; text-align: center; gap: 8px; }
.spd .spd-now { font-size: 56px; line-height: 1; letter-spacing: -.04em; }
.spd .spd-now small { margin-top: 4px; }
.spd:not(.is-compact) .spd-scene { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
@media (min-width: 768px) {
  .spd:not(.is-compact) { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas: "info dial" "info verdict" "info badge" "graphs graphs" "foot foot"; }
}
@media (min-width: 1024px) {
  .spd:not(.is-compact) { grid-template-columns: minmax(0, 1fr) minmax(220px, 1fr) minmax(0, 1.3fr) 200px;
    grid-template-areas: "info dial graphs scene" "info verdict graphs scene" "info badge graphs scene" "foot foot foot scene"; }
  .spd .sb-repair, .spd .sb-switch { grid-column: 1 / 4; }
  /* the figure follows its column: «9999» (a gigabit line) still fits beside the meter at any width */
  .spd .spd-dial { width: 100%; justify-self: stretch; }   /* a definite width for the figure's container */
  .spd .spd-center { container-type: inline-size; }
  .spd .spd-now { font-size: min(56px, 30cqi); }
  .spd:not(.is-compact) .spd-scene { position: relative; width: auto; height: auto; opacity: 1; pointer-events: auto; align-self: stretch; }
}

/* ===== Weak devices, more: html[data-fx="low"] =====
   no shadows (cards keep their borders) and no filters (drop-shadow / blur / brightness on hover) — each is a separate
   painting pass; the focus ring of the fields stays, and so does the dark-theme filter of the map tiles. */
:root[data-fx="low"] :not(:focus):not(:focus-visible), :root[data-fx="low"] ::before, :root[data-fx="low"] ::after { box-shadow: none !important; }
:root[data-fx="low"] :not(.leaflet-tile-pane), :root[data-fx="low"] ::before, :root[data-fx="low"] ::after { filter: none !important; }
:root[data-fx="low"] :is(.hero-promo, .hero-tile, #speedbox, .hero-intro .hero-check, .card, .tariff) { border: 1px solid var(--line, rgba(255, 255, 255, .12)); }
/* any endless animation waits while its part of the page is off the screen (main.js: .is-off) */
.is-off, .is-off *, .is-off *::before, .is-off *::after { animation-play-state: paused !important; }
/* «Старт» while the speed test's scripts load on demand */
.spd-bar-go.is-loading { opacity: .7; cursor: progress; }

/* nobody wants motion: every animation and transition finishes at once */
@media (prefers-reduced-motion: reduce) {
  *, ::before, ::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* ===== Hero, under the band (Block 16): two columns — the live map | the promo card + the quick actions 2×2;
   the speed test (.hero-side) stays under the hero at full width. ≤1024: one column; ≤760: a compact map. */
.hero-intro{grid-template-columns:minmax(0,1fr) 400px;grid-template-areas:"main side";column-gap:28px;row-gap:16px;align-items:start}
.hero-col-main{grid-area:main;display:flex;flex-direction:column;gap:16px;min-width:0}
.hero-col-side{grid-area:side;display:flex;flex-direction:column;gap:22px;min-width:0;align-self:start}
.hero-col-side>*{grid-area:auto;margin:0}
.hero-promo{width:100%}

/* the map under the headline (no background, no frame) */
.hero-mapcol{display:flex;flex-direction:column;align-items:center;gap:8px}
.hero-map-slot{position:relative;width:min(100%,470px);aspect-ratio:1/.96;overflow:hidden}
.hero-map-slot #bg-map{position:absolute;inset:0;width:100%;height:100%;transform:none}
.hero-map-slot .bgm-layer{position:absolute;left:0;top:0}
.hero-map-slot .bgm-fx{position:absolute;inset:0 auto auto 0;width:100%;height:100%;transform:none}

/* «Підключитися» in the band */
.hm-connect{background:linear-gradient(135deg,#ff9a1f,#ff7a00);color:#1a0f00}
@media (hover: hover) { .hm-connect:hover{transform:translateY(-1px)} }

:root{--hero-rule:rgba(255,255,255,.08)}
/* the map across the whole left column — the left column ends level with the right one */
.hero-map-slot{width:100%}
/* the speed test — one strip across the whole width under the hero, no box */
.hero-side{display:flex;flex-direction:column;margin-top:28px;border-top:1px solid var(--hero-rule)}
.hero-side>#speedbox.is-compact{background:none!important;border:0!important;box-shadow:none!important;border-radius:0;padding:12px 18px}

/* no promo strip on the home page: the headline keeps clear of the header (outweighs the .hero-map paddings) */
body.home #hero{padding-top:calc(var(--header-h) + 28px)}
/* «Про нас» — one column of text (the figures are in the hero's stats line); the inner div is narrowed, not the
   .wrap, so the text keeps the left edge of the other sections */
#pro-nas .about-grid{grid-template-columns:1fr}
#pro-nas .about-grid>div{max-width:760px}

@media (max-width: 1023.98px) {
  .hero-intro{grid-template-columns:1fr;grid-template-areas:"main" "side"}
  .hero-mapcol,.hero-col-side{max-width:620px;width:100%;margin-inline:auto}
}
/* one column: the promo card, the quick actions, then the map */
@media (max-width: 1023.98px) {
  .hero-intro{display:flex;flex-direction:column;gap:16px;align-items:stretch}   /* stretch: the grid's "start" would shrink them */
  .hero-col-side{display:contents}
  .hero-col-side>*{order:1}
  .hero-col-main{order:2}
  /* the column's 620px moves to its children (display: contents has no box) */
  .hero-col-side>*{max-width:620px;width:100%;margin-inline:auto}
}
/* phones: a compact map — the whole of it opens the coverage map (main.js); the hint in the corner */
.hero-map-hint{display:none}
@media (max-width: 767.98px) {
  .hero-mapcol>.hero-map-slot{--map-foot:26px;display:block;flex:none;width:100%;height:200px;aspect-ratio:auto;margin:2px 0 14px;border-radius:20px;cursor:pointer;
    background:radial-gradient(90% 80% at 50% 50%,rgba(63,198,248,.08),transparent 70%)}
  .hero-map-slot:focus-visible{outline:2px solid #ff9a1f;outline-offset:3px}
  .hero-map-hint{display:block;position:absolute;right:8px;bottom:8px;z-index:2;padding:4px 10px;border-radius:999px;font-size:11px;font-weight:600;line-height:1.3;
    color:#cfe6ff;background:rgba(8,20,45,.75);border:1px solid rgba(63,198,248,.3);-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);pointer-events:none}
  :root[data-theme="light"] .hero-map-slot{background:radial-gradient(90% 80% at 50% 50%,rgba(30,111,217,.07),transparent 70%)}
  :root[data-theme="light"] .hero-map-hint{color:var(--text);background:rgba(255,255,255,.85);border-color:rgba(30,111,217,.3)}
}
/* 320×640 and the like: a lower map */

/* ===== For every age: the phone on the first screen, no text under 12.5 px, controls at least 40 px ===== */
.hdr-phone{display:inline-flex;align-items:center;justify-content:center;flex:none;width:44px;min-height:44px;padding:0;margin:0 0 0 auto;border-radius:999px;color:#e6f2ff;text-decoration:none}
.hdr-phone svg{color:var(--hot-icon)}
@media (hover: hover) { .hdr-phone:hover{background:rgba(255,255,255,.06)} }
:root[data-theme="light"] .hdr-phone{color:var(--text)}
@media (hover: hover) { :root[data-theme="light"] .hdr-phone:hover{background:rgba(6,18,43,.05)} }

/* text: nothing smaller than 12.5–13 px */
.side-dock .dock-tab span{font-size:12.5px}
.nr-chip,.nr-ago{font-size:13px}
.tariff-badges .tariff-badge,.tariff-badge{font-size:13px}   /* outweighs .tariff-badges .tariff-badge's font shorthand */
.nt-dot.has-num,.notif-badge.has-num{font-size:12.5px;min-width:19px;height:19px;border-radius:10px}   /* counters «3» */
.news-peek .np-meta span,#np-kind{font-size:13px}
.hp-sticker small{display:none}
.spd-bar small{font-size:14px}

/* buttons and tabs: at least 40 px */

/* the promo dots and arrows, «Старт», the tariff switch, the «Новини» tab, the close crosses */
.hp-dots [role="tab"]{width:40px;height:40px}
.hp-dots .hp-arrow{width:40px;height:40px}
.spd-bar-go{min-height:40px}
.tariff-tab{min-height:44px}
.news-tab{min-width:40px}
.chat-icon{width:40px;height:40px}

/* the map button: the icon + «Карта» */
#map-toggle{width:auto;padding:0 14px 0 6px;gap:6px;display:inline-flex;align-items:center;border-radius:999px}
#map-toggle .mt-label{font-size:14px;font-weight:600;color:#e6f2ff}
/* map mode: the button is the 44 px cross; phones: the round mini-map is the label itself */
html.map-only #map-toggle .mt-label{display:none}
html.map-only #map-toggle{padding:0;justify-content:center}
@media (max-width: 767.98px) {#map-toggle .mt-label{display:none}}
:root[data-theme="light"] #map-toggle .mt-label{color:var(--text)}

/* ===== Aurora background (dark theme only): soft blue spots over #06122b, fixed to the viewport ===== */
/* the colour lives on html; body is transparent, or its background would cover the z-index -1 layers */
html[data-theme="dark"] { background: #06122b; }
html[data-theme="dark"] body { background: transparent; }
html[data-theme="dark"] body::before,
html[data-theme="dark"] body::after { content: ""; display: block; position: fixed; z-index: -1; pointer-events: none; }
html[data-theme="dark"] body::before {
  inset: 0;
  background:
    radial-gradient(60vw 55vh at 15% 5%, rgba(30, 100, 255, .20), transparent 60%),
    radial-gradient(55vw 50vh at 90% 70%, rgba(30, 100, 255, .10), transparent 60%);
}
/* the drift layer overhangs the viewport (inset -20%); fixed boxes add no scrollable overflow, html clips x anyway */
html[data-theme="dark"] body::after {
  inset: -20%;
  background: radial-gradient(30vw 30vh at 35% 45%, rgba(60, 130, 255, .08), transparent 70%);
  animation: aurora-drift 28s ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes aurora-drift { from { transform: none; } to { transform: translate(6%, -5%) rotate(8deg); } }
@media (prefers-reduced-motion: reduce) { html[data-theme="dark"] body::after { animation: none; } }

/* ===== Request forms: errors under the fields (form-guard.js), address suggestions (address-assist.js) ===== */
.fg-err { display: block; margin: 6px 0 0; color: var(--danger); font-size: .875rem; font-weight: 600; line-height: 1.35; }
.fg-err[hidden] { display: none; }
.request-form .fg-err { margin: -12px 0 14px; }                 /* the inputs there keep an 18px margin below */
:is(.request-form, .rq-body, .callback-form) :is(input, textarea).is-invalid { border-color: var(--danger); }
.aa-wrap > .ac-list { top: 100%; margin-top: 4px; }
.rq-body input.is-flash { animation: field-filled 1.2s ease; }

/* ===== The hero promo card, compact: a ~165 px strip, no order button (the promos are information only) =====
   label top left, the headline (+ the price inline) under it, the sticker on the right, one line of conditions,
   then the dots and arrows. Outweighs the earlier promo blocks (min-height, the flex column, margins). */
.hero-promo { min-height: 160px; padding: 14px 18px; }
.hero-promo .hero-art { opacity: .35; }
.hero-promo > .hp-slide, .hero-promo > .hp-slide[hidden] {
  display: grid !important; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto auto;
  column-gap: 12px; row-gap: 4px; align-items: center; align-content: start; }
.hp-slide > .hp-label { grid-area: 1 / 1; justify-self: start; }
.hero-promo .hp-big { grid-area: 2 / 1; margin: 0 !important; max-width: none; font-size: 24px; line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hp-price-inline { font-size: 15px; font-weight: 600; opacity: .9; letter-spacing: 0; }
.hp-price-inline s { margin-right: 2px; }
.hero-promo .hp-cond { grid-area: 3 / 1 / 4 / 3; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero-promo .hp-timer { grid-area: 4 / 1 / 5 / 3; margin: 0 !important; font-size: 13px; }
/* the sticker ≈ .7 of the old 72 px, in the grid now (not absolute) — the text never runs under it */
.hp-slide > .hp-sticker { position: relative; top: auto; right: auto; grid-area: 1 / 2 / 3 / 3; width: 50px; height: 50px; padding: 4px; }
.hp-slide > .hp-sticker b { font-size: .95rem; }
.hp-slide > .hp-ico svg { width: 24px; height: 24px; }
.hero-promo > .hp-dots { margin-top: 0; }
/* narrow phones: the sticker stays beside the label only, the headline takes the whole width and steps down */
@container (max-width: 330px) {
  .hp-slide > .hp-sticker { grid-row: 1 / 2; }
  .hero-promo .hp-big { grid-column: 1 / 3; font-size: 20px; }
  .hp-price-inline { font-size: 13px; }
}

/* ===== The mini speed test (mini-speedtest.js): right under the headline ===== */
.speedtest {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) 28px; gap: 6px; align-items: center;
  min-height: 56px; box-sizing: border-box; padding: 8px 8px 8px 14px; border-radius: 16px;
  border: 1px solid rgba(63, 198, 248, .18); background: rgba(14, 32, 69, .55);
}
.st-m { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.st-l { display: flex; align-items: center; gap: 4px; font-size: 10px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-l i { font-style: normal; color: #3fc6f8; }
.st-v { font: 700 17px/1.2 var(--display); color: var(--text); font-variant-numeric: tabular-nums; white-space: nowrap; }
.st-v small { margin-left: 3px; font: 500 10px var(--sans); color: var(--muted); }
.st-m.is-run .st-v { color: #8AD5FF; animation: st-pulse 1s ease-in-out infinite; }
@keyframes st-pulse { 50% { opacity: .55; } }
.st-re {
  display: grid; place-items: center; width: 28px; height: 28px; padding: 0; border-radius: 50%; cursor: pointer;
  border: 1px solid rgba(63, 198, 248, .25); background: none; color: #8AD5FF; font: 600 15px/1 var(--sans);
}
@media (hover: hover) { .st-re:hover:not(:disabled) { border-color: var(--accent); color: var(--text); } }
.st-re:disabled { cursor: default; opacity: .8; }
.st-re.is-spin { animation: st-spin 1s linear infinite; }
@keyframes st-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .st-m.is-run .st-v, .st-re.is-spin { animation: none; } }
/* narrow phones: «Завантаження» is the longest label, «Пінг» the shortest — the columns share the width accordingly */
/* before a test — the invitation (mini-speedtest.js: .is-idle); after it — the three figures */
.st-teaser { display: none; }
.speedtest.is-idle { grid-template-columns: minmax(0, 1fr); padding: 8px 8px 8px 12px; }
.speedtest.is-idle > :not(.st-teaser) { display: none; }
.speedtest.is-idle .st-teaser { display: flex; align-items: center; gap: 12px; min-width: 0; }
.st-gauge { flex: none; width: 40px; height: 40px; }
.st-gauge svg { width: 100%; height: 100%; fill: none; stroke-linecap: round; }
.stg-arc { stroke: rgba(63, 198, 248, .22); stroke-width: 4; }
.stg-hot { stroke: #3fc6f8; stroke-width: 4; }
.stg-needle { stroke: var(--text); stroke-width: 2.4; transform-origin: 20px 28px; animation: stg-swing 3.2s ease-in-out infinite; }
.st-gauge circle { fill: var(--text); }
@keyframes stg-swing { 0%, 100% { transform: rotate(-70deg); } 45% { transform: rotate(8deg); } 60% { transform: rotate(-6deg); } }
.st-tt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.st-tt b { font: 700 14px/1.25 var(--display); color: var(--text); }
.st-hook { font-size: 12.5px; line-height: 1.3; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-hook b { color: var(--text); }
.st-hook.is-ours b, .st-hook.is-ours span { color: #3ddc97; }
.st-go {
  flex: none; display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px;
  background: var(--brand-grad); color: #fff; font: 700 14px/1 var(--sans); text-decoration: none;
  box-shadow: 0 6px 18px -6px rgba(43, 140, 255, .7); transition: transform .15s, box-shadow .15s;
}
.st-go::after { content: "▶"; font-size: 10px; margin-left: 8px; }
@media (hover: hover) { .st-go:hover { transform: translateY(-1px); box-shadow: 0 10px 22px -6px rgba(43, 140, 255, .8); } }
.st-re { text-decoration: none; }
:root[data-theme="light"] .st-hook.is-ours :is(b, span) { color: #12895a; }
:root[data-theme="light"] .stg-hot { stroke: var(--primary); }
@media (prefers-reduced-motion: reduce) { .stg-needle { animation: none; transform: rotate(-10deg); } }
/* the provider line under the figures (whoami): «Radionet ✓» in green */
.st-isp { grid-column: 1 / -1; margin: 2px 0 0; font-size: 12px; line-height: 1.3; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-isp b { color: var(--text); font-weight: 700; }
.st-isp.is-ours span, .st-isp.is-ours b { color: #3ddc97; }
:root[data-theme="light"] .st-isp.is-ours :is(span, b) { color: #12895a; }
:root[data-theme="light"] .speedtest { background: rgba(255, 255, 255, .75); border-color: rgba(30, 111, 217, .2); }
:root[data-theme="light"] .st-l i, :root[data-theme="light"] .st-re { color: var(--primary); }
:root[data-theme="light"] .st-m.is-run .st-v { color: var(--primary); }

/* ===== The promo card at the right column's bottom (.hero-duo): the general promos only — the village check
   lives over the map now (its promo goes into the tariff row). ===== */
.hero-duo { display: flex; flex-direction: column; min-width: 0; margin-top: 0; }
.hero-duo > #akcii { order: 0; }                      /* the one-column layout gives #akcii order: 1 */

/* ===== The left news rail: up to 12 posts, the list scrolls inside the rail (main.js: railScroll) =====
   head and «Усі новини» stay put; the rail ends 96 px above the window's bottom (the «Карта» button);
   the fades show only where more cards are beyond the edge (--fade-top / --fade-bot, set from JS). */
@media (min-width: 1760px) {
  #news-rail {
    display: flex; flex-direction: column; width: min(300px, calc((100vw - var(--container)) / 2 - 32px));
    max-height: calc(100vh - max(110px, calc(var(--header-h) + 16px)) - 96px);
  }
  :root.rail-collapsed #news-rail { display: none; }
}
.news-rail :is(.nr-head, .nr-all, .nr-more-hint) { flex: none; }
#nr-list {
  --fade-top: 0px; --fade-bot: 0px;
  position: relative; flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain;
  /* room for the scrollbar on the right and the cards' hover shift / unread outline — the margins give it back */
  padding: 2px 4px 2px 2px; margin: -2px -4px 10px -2px;
  scrollbar-width: thin; scrollbar-color: rgba(63, 198, 248, .35) transparent;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 var(--fade-top), #000 calc(100% - var(--fade-bot)), transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0, #000 var(--fade-top), #000 calc(100% - var(--fade-bot)), transparent 100%);
}
#nr-list::-webkit-scrollbar { width: 4px; }
#nr-list::-webkit-scrollbar-thumb { border-radius: 2px; background: rgba(63, 198, 248, .35); }
#nr-list::-webkit-scrollbar-track { background: transparent; }
#nr-list > .nr-li { flex: none; }
@media (prefers-reduced-motion: no-preference) { #nr-list { scroll-behavior: smooth; } }
.nr-more-hint {
  align-self: center; margin: -4px 0 10px; padding: 4px 12px; border-radius: 999px; cursor: pointer;
  border: 1px solid rgba(63, 198, 248, .3); background: rgba(63, 198, 248, .1); color: var(--neon-soft); font: 600 12px/1.3 var(--sans);
  transition: background .2s, border-color .2s;
}
@media (hover: hover) { .nr-more-hint:hover { background: rgba(63, 198, 248, .2); border-color: rgba(63, 198, 248, .55); } }
:root[data-theme="light"] .nr-more-hint { color: var(--primary); border-color: rgba(30, 111, 217, .3); background: rgba(30, 111, 217, .08); }

/* «Встановити додаток» (main.js): a link-looking button in the footer list and in the phone menu */
.install-app { font: inherit; color: var(--accent); background: none; border: 0; padding: 0; cursor: pointer; text-align: left; }
@media (hover: hover) { .install-app:hover { text-decoration: underline; } }
.install-app::before { content: "⤓ "; }
.nav-extra .install-app { font-weight: 600; min-height: 44px; }
.install-ios { margin: 10px 0 0; font-size: .9rem; color: var(--muted); max-width: 260px; }

/* ===== Header: one row (desktop) and the two-group burger menu (base.html) =====
   ≥1024: the logo, the menu, the orange «Підключитися» (the theme switch is in the top row; details: «Responsive layout» at the end). <1024: logo, phone,
   «Кабінет» with its name, burger; the menu opens with the subscriber's three tiles, then the newcomer's links and
   button; the theme switch is in there too. */
.hdr-cta, .hdr-phone-num { display: none; }
@media (min-width: 1024px) {
  .site-header .header-actions { display: none; }
  .hdr-cta { display: inline-flex; flex: none; padding: 12px 22px; background: linear-gradient(135deg, #ff9a1f, #ff7a00); color: #1a0f00; font-weight: 700; }
  @media (hover: hover) { .hdr-cta:hover { transform: translateY(-1px); filter: brightness(1.05); } }
  .nav-quick, .main-nav .nav-connect, .nav-theme { display: none; }
}

@media (max-width: 1023.98px) {
  /* «Кабінет» with its name — an icon alone didn't say what it is; where the whole logo needs the room — the icon (below) */
  .header-actions .cabinet-badge { width: auto; padding: 0 14px 0 10px; gap: 6px; }
  .header-actions .cabinet-text { display: flex; }
  /* the menu: the subscriber's tiles → «Підключитися» links → the request button → phone, theme, install, socials */
  .main-nav { justify-content: flex-start; gap: 18px; }
  .main-nav > * { flex-shrink: 0; width: 100%; max-width: 560px; }   /* tablets: a column, not stretched over 900 px */
  body.menu-open .news-tab-wrap { display: none; }
  .nav-cap { margin: 0 0 8px; font: 600 .78rem var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
  .nq-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 22px; }
  /* (.main-nav a above sets the big display font for the menu links — the tiles and the button keep their own) */
  .main-nav .nq { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 72px; padding: 10px 6px;
        border: 1px solid var(--line); border-radius: 16px; background: var(--surface); color: var(--text);
        font: 700 15px/1.2 var(--sans); letter-spacing: 0; text-align: center; }
  @media (hover: hover) { .main-nav .nq:hover { border-color: var(--accent); color: var(--text); } }
  .nq .cabinet-ic { width: 24px; height: 24px; }
  .nq-ic { font-size: 22px; line-height: 24px; color: var(--hot-icon); }
  .main-nav ul a { font-size: clamp(1.6rem, 7vw, 2.4rem); padding: 6px 0; }
  .main-nav .nav-connect { align-self: stretch; padding: 16px 20px; border-radius: 999px; background: linear-gradient(135deg, #ff9a1f, #ff7a00);
        color: #1a0f00; font: 700 16px/1.2 var(--sans); letter-spacing: 0; white-space: normal; }
  @media (hover: hover) { .main-nav .nav-connect:hover { color: #1a0f00; } }
  .nav-extra { margin-top: auto; }
  .nav-theme { display: inline-flex; align-items: center; gap: 10px; align-self: flex-start; min-height: 44px; margin-top: 6px; padding: 0 16px 0 12px;
               border: 1px solid var(--line); border-radius: 999px; background: none; color: var(--text); font: 600 1rem var(--sans); cursor: pointer; }
  .nav-theme svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
  .nav-theme span.only-dark, :root[data-theme="dark"] .nav-theme span.only-light { display: none; }
  :root[data-theme="dark"] .nav-theme span.only-dark { display: inline; }
}
/* the whole logo (28 px ≈ 151 px wide) + phone + «Кабінет» with its name + burger need ~400 px; narrower — «Кабінет» is
   the icon in its frame */

/* ===== Testers' «✎ Зауваження» (feedback.js, FEEDBACK=1 only): the button, «tap the spot», the pin, the form ===== */
.fb-fab {
  position: fixed; left: 20px; bottom: 84px; z-index: 9000; display: inline-flex; align-items: center; gap: 6px;
  min-height: 40px; padding: 0 14px; border: 0; border-radius: 999px; background: #e11d48; color: #fff;
  font: 700 14px/1 var(--sans); box-shadow: 0 8px 20px -6px rgba(0, 0, 0, .5); cursor: pointer;
}
@media (hover: hover) { .fb-fab:hover { filter: brightness(1.08); } }
.fb-fab:focus-visible, .fb-btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
@media (max-width: 1023.98px) { .fb-fab { left: 12px; bottom: calc(86px + env(safe-area-inset-bottom)); min-height: 36px; padding: 0 12px; font-size: 13px; } }
.fb-picking, .fb-picking * { cursor: crosshair !important; }
.fb-shield { position: fixed; inset: 0; z-index: 9990; background: rgba(225, 29, 72, .06); }
.fb-bar {
  position: fixed; left: 50%; top: calc(var(--header-h) + 12px); transform: translateX(-50%); z-index: 9991;
  display: flex; align-items: center; gap: 12px; width: max-content; max-width: calc(100vw - 24px); padding: 8px 8px 8px 16px; border-radius: 999px;
  background: #e11d48; color: #fff; font: 600 14px/1.3 var(--sans); box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .6);
}
.fb-bar > span { flex: 1; }
@media (max-width: 767.98px) { .fb-bar { width: calc(100vw - 24px); border-radius: 16px; } }
.fb-pin {
  position: absolute; z-index: 9980; width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 50%; pointer-events: none;
  background: rgba(225, 29, 72, .9); border: 3px solid #fff; box-shadow: 0 0 0 6px rgba(225, 29, 72, .3), 0 4px 12px rgba(0, 0, 0, .4);
}
.fb-pin.is-replay { animation: fb-pulse 1.4s ease-out infinite; }
@keyframes fb-pulse { 70% { box-shadow: 0 0 0 18px rgba(225, 29, 72, 0), 0 4px 12px rgba(0, 0, 0, .4); } }
@media (prefers-reduced-motion: reduce) { .fb-pin.is-replay { animation: none; } }
.fb-panel {
  position: fixed; left: 20px; bottom: 20px; z-index: 9995; display: flex; flex-direction: column; gap: 10px;
  width: min(380px, calc(100vw - 24px)); max-height: calc(100dvh - 40px); overflow: auto; padding: 16px; border-radius: 16px;
  background: var(--surface, #0e2045); color: var(--text); border: 1px solid var(--line); box-shadow: 0 20px 50px -12px rgba(0, 0, 0, .6);
}
@media (max-width: 767.98px) { .fb-panel { left: 12px; right: 12px; bottom: 12px; width: auto; } }
.fb-title { margin: 0; font: 700 16px var(--sans); }
.fb-shot { width: 100%; max-height: 220px; object-fit: contain; object-position: top; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); }
.fb-note, .fb-status { margin: 0; font-size: 13px; color: var(--muted); }
.fb-panel textarea, .fb-panel input { width: 100%; box-sizing: border-box; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--bg); color: var(--text); font: 15px/1.4 var(--sans); }
.fb-row { display: flex; gap: 8px; }
.fb-btn { min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .5); background: transparent; color: inherit; font: 600 14px var(--sans); cursor: pointer; }
.fb-panel .fb-btn { border-color: var(--line); }
.fb-panel .fb-send { background: #e11d48; border-color: #e11d48; color: #fff; }
.fb-send:disabled { opacity: .6; cursor: progress; }
.fb-toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 9999; max-width: calc(100vw - 24px);
  padding: 12px 18px; border-radius: 12px; background: #111827; color: #fff; font: 600 14px/1.4 var(--sans); box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .6);
}


/* ===== Block 15: spacing fixes from the UI review ===== */
/* the featured card is taller and centred, its badge sticks out above it — keep both clear of the tabs */
.tariff-tabs { margin-bottom: 44px; }
/* inner pages: the page head already ends with its own padding */
.page-hero + .scene-tight { padding-top: clamp(12px, 2.5vh, 28px); }
.pay-panel { margin-bottom: 22px; }
.pay-status:empty { min-height: 0; margin: 0; }
/* settlements: short names — more, denser columns */
.place-index { columns: 5 170px; column-gap: 28px; }
.pi-group li { padding: 3px 0; }
/* footer CTA: question + phone, the socials on a row of their own — both centred */
.footer-cta { justify-content: center; }
.footer-cta .socials-cta { flex-basis: 100%; justify-content: center; margin-left: 0; }
/* the request form: the contract hint a little away from its field */
.rq-modal .field-hint { margin: 6px 0 4px; }
/* the call panel: «Передзвонимо вам» / «Напишіть нам» — section labels, like the footer's headings */
.call-or { margin-top: 4px; font: 600 .8rem var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--neon-soft); }
:root[data-theme="light"] .call-or { color: var(--accent); }
/* inner pages: less air above the head, the title on one line where it fits */
@media (min-width: 768px) {
  .page-hero { padding-top: calc(var(--header-h) + clamp(24px, 4.5vh, 60px)); }
  .page-hero .display-xl { font-size: clamp(2.4rem, min(5vw, 8vh), 4.6rem); }
}
/* footer: the section links level with the text of the other columns */
.footer-nav { margin-top: -2px; }
/* the news peek: only as wide as the free margin left of the content (1068 px), so it doesn't run onto the text */
.news-peek:not(.is-pill) { width: clamp(180px, calc((100vw - 1068px) / 2 - 56px), 300px); padding: 14px 16px; }
.news-peek.is-pill { max-width: clamp(180px, calc((100vw - 1068px) / 2 - 56px), 300px); }   /* the pill keeps clear of the content too */
.news-peek:not(.is-pill) .np-title { font-size: .95rem; text-wrap: pretty; }
/* settlements: the search beside the lead in the page head */
.place-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 480px); gap: 16px 48px; align-items: end; }
.place-head .lead { margin: 0; }
.place-head .place-search { margin: 0; max-width: none; }
@media (max-width: 1023.98px) { .place-head { grid-template-columns: 1fr; } }
.pi-letter { padding-top: 4px; }   /* padding: a margin is cut at the top of a column */
/* the footer a little closer to the content */
.site-footer { padding-top: clamp(36px, 5vh, 56px); }
/* hero: no bottom rule under the speed test — the next section's own divider sits right below it */
.hero-side { border-bottom: 0; }
/* inner pages: between the page head and the first block — only the section's own top padding */
.page-hero:has(+ .scene-tight) { padding-bottom: 0; }
.page-hero .wrap > :last-child { margin-bottom: 0; }

/* ===== Block 16: the hero band — across the whole hero, over the two columns =====
   the headline → the figures → «Тарифи для [field]» (no frame; Enter or a suggestion checks it — the submit button
   is sr-only) → one row of tariff tiles (the villages' until a check, the place's after it, + one orange promo tile;
   check.js) → «Підключитися» and the phone. Under it: the map | the promo card + the quick actions 2×2. */
.hero-band { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; min-width: 0; }
.hero-band .hero-title { margin: 0; }
.hero-band .hero-tagline { font: 400 clamp(34px, 3.4vw, 52px)/1.08 var(--display); letter-spacing: -.01em; }
/* the figures: one line, no pill */
.hero-band .hero-stats { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; }
.hero-band .hero-stats li { padding: 0; font-size: 13px; color: var(--muted); white-space: nowrap; }
.hero-band .hero-stats li::before { display: none; }
.hero-band .hero-stats b { font: 800 15px/1.3 var(--display); color: #8AD5FF; margin-right: 4px; }
:root[data-theme="light"] .hero-band .hero-stats b { color: var(--primary); }

/* the settlement field (#tariff-finder → #tf-q): a pin, the input and the button in one row */
.hero-check .hc-row {
  display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 16px; border-radius: 14px;
  background: #0A1D45; border: 1.5px solid rgba(138, 213, 255, .5); cursor: text; transition: border-color .15s, box-shadow .15s;
}
.hero-check .hc-row:focus-within { border-color: #8AD5FF; box-shadow: 0 0 0 4px rgba(138, 213, 255, .15); }
.hero-check .hc-pin { display: grid; place-items: center; flex: none; width: 22px; height: 22px; color: #8AD5FF; }
.hero-check .hc-pin svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.hero-check #tf-q {
  flex: 1; min-width: 0; min-height: 0; padding: 10px 0; border: 0; border-radius: 0; background: none; box-shadow: none;
  font: 500 18px/1.3 var(--sans); color: #fff; -webkit-appearance: none; appearance: none;
}
.hero-check #tf-q:focus { outline: none; box-shadow: none; }
.hero-check #tf-q::placeholder { color: #7F93BC; opacity: 1; }
#tf-q::-webkit-search-cancel-button { display: none; }
.hero-check .hc-go {
  flex: none; padding: 12px 20px; border: 0; border-radius: 10px; cursor: pointer; white-space: nowrap;
  background: #1E6FD9; color: #fff; font: 700 15px/1 var(--sans);
}
@media (hover: hover) { .hero-check .hc-go:hover { background: #2A7FEF; } }
.hero-check .hc-go:focus-visible { outline: 2px solid #8AD5FF; outline-offset: 2px; }
/* после проверки виден только результат */
:root[data-theme="light"] .hero-check .hc-row { background: #fff; border-color: rgba(30, 111, 217, .4); }
:root[data-theme="light"] .hero-check .hc-row:focus-within { border-color: #1E6FD9; box-shadow: 0 0 0 4px rgba(30, 111, 217, .14); }
:root[data-theme="light"] .hero-check .hc-pin { color: #1E6FD9; }
:root[data-theme="light"] .hero-check #tf-q { color: var(--text); }
:root[data-theme="light"] .hero-check #tf-q::placeholder { color: #6B7A99; }
/* the tariff search over the cards (#tarify, tariff-finder.js): the same field, «Показати тарифи», the result line */
.tariff-finder { max-width: 620px; margin: 0 0 14px; }
.tariff-finder .ac-list { max-height: min(480px, 70vh); }   /* the popular five + the caption without a scrollbar */
.tf-error { margin: 8px 0 0; color: var(--danger); font-size: 14px; font-weight: 600; }
.tf-change:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.tf-result:empty { display: none; }
.tf-result { margin: 0 0 22px; }
.tf-sum { margin: 0; font-size: 1.05rem; color: var(--muted); }
.tf-sum b { color: var(--text); }
.tf-change { margin-left: 8px; padding: 0; border: 0; background: none; color: var(--accent); font: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.tf-none { padding: 18px 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.tf-none p { margin: 0 0 12px; color: var(--text); }
/* the request form at the bottom: the tariff from «Замовити» over its fields */
.req-tariff { margin: 0 0 14px; padding: 10px 14px; border-radius: 12px; background: var(--surface-2); color: var(--muted); font-size: 15px; }
.req-tariff b { color: var(--text); }
.req-tariff-change { margin-left: 6px; font-weight: 600; }
.tariffs.tf-in { animation: tf-in .2s ease-out; }
@keyframes tf-in { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .tariffs.tf-in { animation: none; } }
@media (max-width: 767.98px) {
  .tariff-finder .hc-row { flex-wrap: wrap; padding: 8px; }
  .tariff-finder .hc-input { flex-basis: calc(100% - 40px); }
  .tariff-finder .hc-go { flex: 1 1 100%; }
}

@media (max-width: 767.98px) {
  .hero-check #tf-q { font-size: 16px; } /* 16px — чтобы iOS не зумил поле */
  .hero-check .hc-go { padding: 11px 14px; }
}
/* the answer, covered: the same line — «Тарифи для Тульчин ✓ є покриття», «✎ Змінити» on the right (no coverage: the card) */

/* the tariff row */
.hero-band > .hero-tariffs { width: 100%; container: htr / inline-size; }
.htr-row { display: flex; gap: 12px; padding-top: 10px; margin-top: -10px; }   /* room for the badges */
.htr-tile {
  position: relative; flex: 1 1 0; min-width: 0; display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 12px;
  background: rgba(6, 18, 43, .55); border: 1px solid rgba(63, 198, 248, .18); color: var(--text); text-decoration: none;
  transition: transform .15s, border-color .15s;
}
.htr-tile:focus-visible { transform: translateY(-2px); border-color: rgba(138, 213, 255, .6); color: #fff; text-decoration: none; }
@media (hover: hover) { .htr-tile:hover { transform: translateY(-2px); border-color: rgba(138, 213, 255, .6); color: #fff; text-decoration: none; } }
/* every tariff tile is blue (not only «Хіт»), in both themes; the promo tile .htr-deal keeps its orange */
.htr-tile:not(.htr-deal) {
  background: linear-gradient(155deg, #3d8dff 0%, #1e6fd9 42%, #0a3c94 100%);
  border-color: rgba(255, 255, 255, .22); color: #fff; box-shadow: 0 6px 18px rgba(0, 0, 0, .35);
}
.htr-tile:not(.htr-deal) :is(.htr-unit, .htr-name) { color: rgba(255, 255, 255, .85); }
.htr-sp { flex: none; display: flex; flex-direction: column; }
.htr-speed { font: 700 28px/1 var(--display); }
.htr-unit { margin-top: 4px; font-size: 11.5px; line-height: 1.2; color: var(--muted); }
.htr-pr { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.htr-price { font-size: 16px; font-weight: 800; line-height: 1.2; white-space: nowrap; }
.htr-price small { font-size: 12px; font-weight: 600; }
.htr-name { font-size: 12.5px; line-height: 1.25; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.htr-badge {
  position: absolute; top: -10px; right: 10px; padding: 1px 8px; border-radius: 999px; background: #ff8a1f; color: #fff;
  font: 800 11.5px/1.4 var(--sans); letter-spacing: .02em; white-space: nowrap;
}
/* a promo on this tariff here: «Акція» instead of «Хіт», an orange inner edge */
.htr-badge.is-promo { background: linear-gradient(135deg, #FFA50A, #F58300); color: #1a1205; }
.htr-tile.is-promo { box-shadow: inset 0 0 0 2px #ff8a1f, 0 6px 18px rgba(0, 0, 0, .35); }
/* the promo at this place: one orange tile at the row's end */
.htr-deal { max-width: 220px; background: linear-gradient(135deg, #ff8a1f, #e5590b); border-color: transparent; color: #fff; }
.htr-deal:focus-visible { color: #fff; border-color: #ffd08a; }
@media (hover: hover) { .htr-deal:hover { color: #fff; border-color: #ffd08a; } }
.htr-deal :is(.htr-unit, .htr-name) { color: rgba(255, 255, 255, .85); }
.htr-deal .htr-unit:empty { display: none; }
.htr-deal .htr-badge { background: #fff; color: #e5590b; }
/* a narrow row (tablets, phones): three tiles with the speed over the price, the promo tile on its own row */
@container htr (max-width: 899px) {
  .htr-row { flex-wrap: wrap; row-gap: 16px; }
  .htr-tile:not(.htr-deal) { flex: 1 1 30%; flex-direction: column; align-items: flex-start; gap: 6px; padding: 12px; }
  .htr-deal { flex: 0 1 230px; margin-inline: auto; }   /* 3 × 30% + this: no room — its own row */
}
@container htr (max-width: 420px) { .htr-speed { font-size: 24px; } .htr-tile:not(.htr-deal) { padding: 10px; } }

/* a redraw: the changed tiles flip over, glow three times and keep an orange edge, their price lit for a moment;
   the promo tile pops in (check.js: .is-flip / .is-pop; --d — the step between tiles) */
.htr-tile.is-flip { border-color: #ffb347; animation: htr-flip .5s ease-out var(--d, 0s) backwards, htr-glow 1s ease-in-out calc(var(--d, 0s) + .5s) 3; }
.htr-tile.is-flip .htr-price { animation: htr-hot 2.5s var(--d, 0s); }
.htr-deal.is-pop { animation: htr-pop .55s cubic-bezier(.2, 1.4, .4, 1) .25s backwards; }
@keyframes htr-flip { from { transform: perspective(600px) rotateX(90deg); } to { transform: perspective(600px) rotateX(0); } }
@keyframes htr-glow { 50% { box-shadow: 0 0 0 6px rgba(255, 170, 60, .55), 0 0 24px rgba(255, 170, 60, .6); } }
@keyframes htr-hot { from, 85% { color: #ffd08a; } }
@keyframes htr-pop { from { transform: scale(.4); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .htr-tile.is-flip, .htr-tile.is-flip .htr-price, .htr-deal.is-pop { animation: none; } }

/* the hero's tariff groups: pill buttons over the rows (the same groups as the #tarify tabs — main.js keeps them in step) */
.htr-tabs { display: flex; flex-wrap: wrap; gap: 4px; width: fit-content; max-width: 100%; margin-bottom: 14px; padding: 4px; border-radius: 999px; background: var(--surface-2); }
.htr-tab { padding: 8px 16px; border: 0; border-radius: 999px; background: none; color: var(--muted); font: 600 14px/1.2 var(--sans); cursor: pointer; }
@media (hover: hover) { .htr-tab:hover { color: var(--text); } }
.htr-tab[aria-pressed="true"] { background: var(--brand-grad); color: #fff; }
.htr-tab:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.htr-row[hidden] { display: none; }
.htr-old { margin-right: 2px; font-weight: 600; opacity: .7; }

/* the hero's promo cards: the first two promos side by side, equal height (one column on narrow phones);
   dark gradients so white text passes WCAG AA; the «Акція» label is a tilted yellow sticker */
:root { --promo-badge-bg: #ffd23f; --promo-badge-fg: #1a1200; }
:root[data-theme="light"] { --promo-badge-bg: #ffd23f; --promo-badge-fg: #1a1200; }   /* 13.6:1 — the same in the light theme */
.hero-band > .hero-deals { width: 100%; }
.hero-deals { display: grid; grid-auto-flow: column; align-items: stretch; gap: 12px; }
.hd-card {
  position: relative; display: flex; flex-direction: column; gap: 6px; min-width: 0; padding: 16px 18px; border: 0; border-radius: 14px;
  background: linear-gradient(115deg, #0f8f86, #1a5fc0); color: #fff; font: inherit; text-align: left; text-decoration: none;
  cursor: pointer; transition: transform .15s, filter .15s;
}
.hd-card:nth-child(2) { background: linear-gradient(115deg, #c2410c, #ea7a12); }
@media (hover: hover) { .hd-card:hover { filter: brightness(1.08); transform: translateY(-1px); color: #fff; text-decoration: none; } }
.hd-card:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.hd-label {
  align-self: flex-start; padding: 4px 12px; border-radius: 6px; background: var(--promo-badge-bg); color: var(--promo-badge-fg);
  font: 800 13px/1.2 var(--sans); text-transform: none; letter-spacing: 0; transform: rotate(-3deg); box-shadow: 0 3px 0 rgba(0, 0, 0, .25);
}
.hd-label::before { content: "% "; }
.hd-title { color: #fff; font: 700 clamp(17px, 1.45vw, 21px)/1.15 var(--display); letter-spacing: -.01em; }
.hd-title .nw { white-space: nowrap; }
.hd-text { color: rgba(255, 255, 255, .88); font-size: 13.5px; line-height: 1.4; }
.hd-more { margin-top: auto; align-self: flex-end; color: #fff; font-size: 13px; font-weight: 700; }
@media (max-width: 767.98px) { .hero-deals { grid-auto-flow: row; grid-auto-rows: 1fr; grid-template-columns: minmax(0, 1fr); } }   /* row: else the 2nd card took an implicit column beside the 1st */
/* «Діє в:» + one place in a chip, in turn (promos.js): the chip's width follows the name, its height is fixed — the card
   doesn't jump; the old name goes up and fades, the new one comes from below */
.hd-towns { display: flex; align-items: center; gap: 6px; min-width: 0; color: rgba(255, 255, 255, .88); font-size: 13px; line-height: 1; white-space: nowrap; }
.hd-chip {
  position: relative; display: inline-block; flex: none; box-sizing: border-box; height: 24px; max-width: 100%; padding: 0 10px; overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .75); border-radius: 999px; background: rgba(255, 255, 255, .18);
  color: #fff; font: 700 13px/22px var(--sans); transition: width .35s cubic-bezier(.2, .7, .2, 1);
}
.hd-chip-t { display: block; white-space: nowrap; transition: transform .35s cubic-bezier(.2, .7, .2, 1), opacity .35s; }
.hd-chip-t.is-moving { position: absolute; left: 10px; top: 0; }
.hd-chip-t.is-in { transform: translateY(100%); opacity: 0; }
.hd-chip-t.is-out { transform: translateY(-100%); opacity: 0; }
@media (prefers-reduced-motion: reduce) { .hd-chip, .hd-chip-t { transition: none; } }

/* the quick actions read as buttons: a tint and an edge on hover / focus; «›» on the links, a pill on the speed test */
button.hero-tile { width: 100%; font: inherit; color: inherit; text-align: left; }
#hero .hero-tile { position: relative; cursor: pointer; border-radius: 10px; }
#hero .hero-tiles .hero-tile:focus-visible { background: rgba(30, 111, 217, .14) !important; box-shadow: inset 0 0 0 1px rgba(130, 170, 255, .35) !important; outline: none; text-decoration: none; }
@media (hover: hover) { #hero .hero-tiles .hero-tile:hover { background: rgba(30, 111, 217, .14) !important; box-shadow: inset 0 0 0 1px rgba(130, 170, 255, .35) !important; outline: none; text-decoration: none; } }
#hero .hero-tile:has(.ht-chev) { padding-right: 28px !important; }
.ht-chev { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); font-size: 20px; line-height: 1; color: var(--muted); }
#hero .ht-speed { padding-right: 88px !important; }   /* the pill is 75 px + 10 px off the edge */
.ht-start {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%); padding: 6px 12px; border-radius: 999px;
  background: linear-gradient(160deg, #1e6fd9, #0f4fae); color: #fff; font: 700 13px/1.2 var(--sans); white-space: nowrap;
}

/* «Підключитися» + the phone */
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; margin-top: 4px; }
.hero-cta .btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 34px; border-radius: 999px; font-weight: 600; font-size: 15px; text-decoration: none; transition: transform .15s; }
.hero-cta .btn:focus-visible { outline: 2px solid #ff9a1f; outline-offset: 3px; }
.hero-tel { color: var(--muted); font-size: 15px; text-decoration: none; white-space: nowrap; }
.hero-tel b { color: var(--text); font-size: 17px; }
@media (hover: hover) { .hero-tel:hover b { color: var(--hot); } }

/* under the band: the map (≤ 520 px) | the promo card + the quick actions */
.hero-map .hero-top { gap: 26px; }
.hero-mapcol > .hero-map-slot { flex: none; max-height: 520px; }
.hero-col-side { gap: 12px; }
/* the promo card: as tall as its content */
.hero-duo #hero-promo { flex: none; height: auto; min-height: 0; max-height: none; padding: 10px 14px; }
.hero-duo #hero-promo .hp-big { font-size: 19px; }
.hero-duo #hero-promo .hp-cond { font-size: 12px; }
.hero-duo #hero-promo .hp-sticker { transform: scale(.75); }
.hero-duo #hero-promo > .hp-dots { height: 30px; }
/* the quick actions 2×2: the texts wrap to a second line, never «…» */
.hero-col-side > .hero-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: 8px; margin-block: 0; }
.hero-col-side .hero-tile { flex-direction: row; align-items: center; gap: 10px; min-height: 0; padding: 10px 12px; }
.hero-col-side .hero-tile .ht-ic { width: 36px; height: 36px; }
.hero-col-side .hero-tile .ht-txt :is(b, small) { display: block; white-space: normal; overflow: visible; text-overflow: clip; -webkit-line-clamp: unset; }
/* the speed test under the hero: its own line only (the band of the hero is above) */
.hero-side { margin-top: 32px; }

/* phones */
@media (max-width: 767.98px) {
  .hero-band { gap: 12px; }
  .hero-band .hero-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 12px; width: 100%; }
  .hero-band .hero-stats li { white-space: normal; }
  .hero-cta { width: 100%; flex-direction: column; align-items: stretch; text-align: center; }
  .hero-cta .btn { width: 100%; }
  .hero-col-side .hero-tile { flex-direction: column; align-items: flex-start; gap: 6px; }   /* the icon on top: the text gets the tile's width */
}

/* ===== Hero, концепция 1 «Карта — главный герой» (≥1025px)
   Разметка не меняется. Подключить в конец main.css и добавить класс k1 на <section id="hero">.
   Ниже 1025px работают старые правила, этот блок их не трогает.
   Ритм отступов: 12 — внутри группы, 16 — между элементами, 28 — между смысловыми блоками. */
@media (min-width: 1024px) {
  #hero.k1 { overflow: clip; padding-top: calc(var(--header-h) + 28px); }

  /* сетка: слева — продающая колонка 560px (уже — обрезаются подписи плиток), справа — карта */
  #hero.k1 .hero-top {
    display: grid !important;
    grid-template-columns: minmax(0, 560px) minmax(0, 1fr);
    grid-template-areas: "band map" "tiles map" "side side";
    grid-template-rows: auto 1fr auto;
    column-gap: 32px; row-gap: 16px; align-items: start;
  }
  #hero.k1 .hero-intro,
  #hero.k1 .hero-col-side { display: contents !important; }
  #hero.k1 .hero-band { grid-area: band; position: relative; z-index: 2; gap: 16px; }
  #hero.k1 .hero-band .hero-cta { margin-top: 0; }
  #hero.k1 :is(.hero-tiles, .hero-side) { position: relative; z-index: 2; margin: 0; }

  /* карта: по центру колонки по высоте, правый край — по краю кнопки «Підключитися» в шапке */
  #hero.k1 .hero-col-main { grid-area: map; align-self: stretch; position: relative; z-index: 0; min-width: 0; }
  #hero.k1 .hero-mapcol { position: absolute; top: 50%; left: -48px; transform: translateY(-50%); height: auto; display: block; width: calc(100% + 200px); }
  #hero.k1 .hero-mapcol > .hero-map-slot { width: 100%; max-width: 760px; max-height: none; aspect-ratio: 1 / .96; }

  /* быстрые действия — одна тихая строка без карточек: Оплатити · Не працює інтернет? · Перевірити швидкість */
  #hero.k1 .hero-tiles {
    grid-area: tiles; grid-template-columns: repeat(3, auto); gap: 0; align-self: start;   /* by content: the three just fit 560 px */
    border-top: 1px solid rgba(255, 255, 255, .08); border-bottom: 1px solid rgba(255, 255, 255, .08);
  }
  #hero.k1 .hero-tile {
    background: none !important; border: 0 !important; box-shadow: none !important; border-radius: 0;
    flex-direction: column; align-items: flex-start; gap: 4px; padding: 12px 12px 12px 10px; min-height: 0;   /* 10 px: the hover tint */
  }
  #hero.k1 .hero-tile + .hero-tile { padding-left: 10px; border-left: 1px solid rgba(255, 255, 255, .08) !important; }
  #hero.k1 .hero-tile .ht-ic { width: 28px; height: 28px; box-shadow: none; }
  #hero.k1 .hero-tile .ht-txt { min-width: 0; width: 100%; }
  #hero.k1 .hero-tile .ht-txt b { display: block; font: 700 13px/1.25 var(--sans); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  #hero.k1 .hero-tile .ht-txt b br { display: none; }
  #hero.k1 .hero-tile .ht-txt small { display: block; font-size: 12px; line-height: 1.3; -webkit-line-clamp: unset; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

  /* тест скорости: строку-тизер заменяет плитка «Тест швидкості»; полный тест (#speedbox) показывается только после неё */
  #hero.k1 #speedtest { display: none !important; }
  #hero.k1 #speedbox.is-compact { display: none !important; }
  /* без старой линии border-top над #speedbox: она прилипала к рамке карточки */
  #hero.k1 .hero-side { grid-area: side; margin-top: 28px !important; border-top: 0 !important; padding-top: 0 !important; }
  #hero.k1 .hero-side:not(:has(> :not(.is-compact))) { display: none; } /* пустая строка не даёт лишний отступ снизу */


  /* ===== #speedbox: «три числа» — вердикт и «Ще раз» сверху, три колонки, внизу сервер и время ===== */
  #hero.k1 #speedbox {
    padding: 24px 28px 18px !important; row-gap: 20px !important; column-gap: 32px !important; align-items: start;
    grid-template-columns: minmax(0, 1fr) 150px !important;
    grid-template-rows: auto auto auto !important;
    grid-template-areas: "verdict dial" "graphs graphs" "foot foot" !important;
  }
  #hero.k1 #speedbox :is(.spd-info, .sb-badge, .spd-scene, .spd-meter) { display: none !important; }
  #hero.k1 #speedbox :is(.sb-repair, .sb-switch) { grid-column: 1 / -1; }

  /* вердикт */
  #hero.k1 #speedbox .spd-verdict {
    grid-area: verdict; margin: 0 !important; padding: 0 !important; justify-self: start; align-self: center; width: auto !important;
    max-width: 58ch; text-align: left !important; font: 600 18px/1.4 var(--sans) !important;
  }

  /* «Ще раз» справа; во время теста там же живое число. width: 100% — у .spd-center container-type: inline-size,
     без ширины колонка схлопывается в 0 и кнопка вылезает за карточку */
  #hero.k1 #speedbox .spd-dial { grid-area: dial; display: flex; width: 100% !important; align-self: center; }
  #hero.k1 #speedbox .spd-center { display: flex; align-items: center; justify-content: flex-end; gap: 16px; width: 100% !important; }
  #hero.k1 #speedbox .spd-now span { font-size: 28px !important; }
  #hero.k1 #speedbox .spd-phase { font: 600 13px/1.2 var(--sans) !important; letter-spacing: 0 !important; text-transform: none !important; color: var(--muted) !important; }
  #hero.k1 #speedbox[data-phase="done"] :is(.spd-phase, .spd-now) { display: none !important; }

  /* три колонки */
  #hero.k1 #speedbox .spd-graphs {
    grid-area: graphs; display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 !important;
    border-top: 1px solid var(--line); padding-top: 18px;
  }
  #hero.k1 #speedbox .spd-g {
    display: flex !important; flex-direction: column; align-items: stretch !important; gap: 10px; padding: 0 24px !important;
    background: none !important; border: 0 !important; box-shadow: none !important; border-radius: 0 !important;
  }
  #hero.k1 #speedbox .spd-g:first-child { padding-left: 0 !important; }
  #hero.k1 #speedbox .spd-g + .spd-g { border-left: 1px solid var(--line) !important; }
  #hero.k1 #speedbox .spd-g > * { grid-area: auto !important; }
  #hero.k1 #speedbox .spd-g h3 {
    display: flex; gap: 8px; align-items: center; justify-content: flex-start !important; width: auto !important; margin: 0 !important;
    font: 600 14px/1.2 var(--sans) !important; color: var(--text) !important; text-transform: none !important; letter-spacing: 0 !important;
  }
  #hero.k1 #speedbox .spd-g h3 span { font-size: 0; }
  #hero.k1 #speedbox .spd-g-down h3::before { content: "↓"; font-size: 16px; color: #3FC6F8; }
  #hero.k1 #speedbox .spd-g-up h3::before { content: "↑"; font-size: 16px; color: #8AD5FF; }
  #hero.k1 #speedbox .spd-g-ping h3::before { content: "◷"; font-size: 15px; color: #8AD5FF; }
  #hero.k1 #speedbox .spd-g dl { order: 2; margin: 0; display: flex; flex-wrap: wrap; gap: 4px 14px; }
  #hero.k1 #speedbox .spd-g dl > div { display: flex; gap: 6px; align-items: baseline; }
  #hero.k1 #speedbox .spd-g dt { font-size: 12.5px !important; color: var(--muted) !important; }
  #hero.k1 #speedbox .spd-g dd { margin: 0; font-size: 13px !important; font-weight: 600 !important; color: var(--text); }
  #hero.k1 #speedbox .spd-g :is(.spd-chart, .spd-bars) { order: 3; height: 40px; width: 100%; }
  /* главное число колонки: средняя скорость / минимальная затримка */
  #hero.k1 #speedbox :is(.spd-g-down dl > div:nth-child(2), .spd-g-up dl > div:nth-child(2), .spd-g-ping dl > div:first-child) { order: -1; flex-basis: 100%; }
  #hero.k1 #speedbox :is(.spd-g-down dl > div:nth-child(2), .spd-g-up dl > div:nth-child(2), .spd-g-ping dl > div:first-child) dt { display: none; }
  #hero.k1 #speedbox :is(.spd-g-down dl > div:nth-child(2), .spd-g-up dl > div:nth-child(2), .spd-g-ping dl > div:first-child) dd {
    font: 700 34px/1.05 Unbounded, var(--sans) !important; letter-spacing: -.02em;
  }
  #hero.k1 #speedbox .spd-g-down dl > div:nth-child(2) dd { color: #3FC6F8 !important; }

  /* низ */
  #hero.k1 #speedbox .spd-foot {
    grid-area: foot; display: flex; justify-content: space-between; gap: 16px;
    padding-top: 14px; border-top: 1px solid var(--line); font-size: 13px;
  }
}

/* ===== k1: fixes after checking at 1025–1920 and in the light theme */
@media (min-width: 1024px) {
  /* the light theme: the dividers above are drawn for the dark one */
  :root[data-theme="light"] #hero.k1 .hero-tiles,
  :root[data-theme="light"] #hero.k1 .hero-tile + .hero-tile { border-color: var(--line) !important; }
}
/* below 1440 the header wrap is as narrow as the hero's: the drawn map (~8% inset in its box) ends at the CTA / column edge */

/* ===== Documents: footer «Документи» column, requisites, /dogovir/ and /privacy/, consent under request forms ===== */
/* five columns from 1200 px; «Документи» as wide as its longest link (nowrap), the rest share what is left.
   Narrower, five don't fit (the hours split mid-range) — three, then the 2 / 1 of the base rules */
@media (min-width: 1280px) {
  .footer-grid { grid-template-columns: 1.25fr 1.1fr 1.1fr .75fr auto; }
  .footer-docs .footer-nav a { white-space: nowrap; }
}
@media (min-width: 1024px) and (max-width: 1279.98px) { .footer-grid { grid-template-columns: repeat(3, 1fr); } }
.site-footer .footer-req { margin: 14px 0 0; font-size: 13px; line-height: 1.55; color: var(--muted); }

.form-consent { margin: 10px 0 0; font-size: 12.5px; line-height: 1.45; color: var(--muted); }
.form-consent a { color: var(--accent); }

.dk-hero .crumbs { margin-bottom: 8px; }
.dk-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin: 16px 0 28px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.dk-head h1 { font-size: 40px; line-height: 1.1; letter-spacing: -.02em; margin: 0 0 12px; max-width: 760px; text-wrap: balance; }
.dk-meta { display: flex; flex-wrap: wrap; gap: 8px; }
.dk-chip { font-size: 13px; padding: 6px 10px; border-radius: 8px; background: rgba(138, 213, 255, .08); border: 1px solid rgba(138, 213, 255, .22); }
.dk-chip b { color: var(--accent); font-weight: 600; }
.dk-actions { display: flex; flex-wrap: wrap; gap: 10px; flex-shrink: 0; }
.dk-notice { display: flex; gap: 12px; padding: 14px 16px; border-radius: 12px; background: rgba(255, 138, 31, .08); border: 1px solid rgba(255, 138, 31, .3); margin-bottom: 28px; font-size: 14px; line-height: 1.5; }
.dk-notice p { margin: 0; }
.dk-notice b { color: var(--promo-text, #FFA50A); }
.dk-notice-ic { flex: none; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--promo-grad); color: var(--promo-ink); font-weight: 800; font-size: 13px; }
.dk-grid { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 48px; align-items: start; }
.dk-aside { position: sticky; top: calc(var(--header-h) + 24px); }
.dk-toc { font-size: 14px; border-left: 1px solid var(--line); padding-left: 16px; }
.dk-toc-title { margin: 0 0 8px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.dk-aside ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.dk-aside ol a { color: var(--muted); line-height: 1.4; }
@media (hover: hover) { .dk-aside ol a:hover { color: var(--accent); } }
.dk-toc-m { display: none; }
.dk-body { max-width: 760px; font-size: 16px; line-height: 1.7; }
.dk-body h2 { font-size: 22px; margin: 36px 0 10px; scroll-margin-top: 24px; }   /* + html scroll-padding-top (--header-h) */
.dk-body h2:first-child { margin-top: 0; }
.dk-ph { padding: 14px 16px; border: 1.5px dashed rgba(138, 213, 255, .35); border-radius: 10px; color: var(--muted); font-size: 14px; }
.dk-files { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.dk-archive td:last-child { text-align: right; }
@media (max-width: 1023.98px) {
  .dk-head { flex-direction: column; align-items: flex-start; }
  .dk-head h1 { font-size: 28px; }
  .dk-grid { grid-template-columns: 1fr; gap: 24px; }
  .dk-aside { position: static; }
  .dk-toc { display: none; }
  .dk-toc-m { display: block; border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; font-size: 14px; }
  .dk-toc-m summary { cursor: pointer; font-weight: 600; }
  .dk-toc-m nav { margin-top: 12px; }
}

/* --- /dogovir/ with the text (2026-11): the intro card, numbered section heads, the terms glossary with a filter,
   clauses with their numbers in a column (each a link to itself), the contents lights the section being read --- */
.dk-kicker { margin: 0 0 8px; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.dk-toc ol { gap: 2px; }
.dk-toc a { display: flex; gap: 10px; align-items: baseline; padding: 5px 8px; margin-left: -9px; border-radius: 8px; text-decoration: none; transition: color .15s, background-color .15s; }
.dk-toc-n { flex: none; min-width: 20px; font: 600 12px/1 var(--mono); color: var(--muted); opacity: .8; }
.dk-aside .dk-toc a.is-on { color: var(--text); background: rgba(var(--neon-rgb, 63, 198, 248), .1); }
.dk-toc a.is-on .dk-toc-n { color: var(--accent); opacity: 1; }
.dk-toc { max-height: calc(100vh - var(--header-h) - 64px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.dk-toc-m ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.dk-toc-m a { display: flex; gap: 10px; align-items: baseline; padding: 6px 0; color: var(--muted); text-decoration: none; }

.dk-intro { position: relative; padding: 22px 24px 22px 28px; margin-bottom: 8px; border-radius: 16px;
  background: linear-gradient(160deg, rgba(var(--neon-rgb, 63, 198, 248), .08), transparent 70%), var(--card-bg);
  border: 1px solid var(--card-border); overflow: hidden; }
.dk-intro::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--brand-grad); }
.dk-intro p { margin: 0 0 10px; color: var(--muted); }
.dk-intro p:first-child { color: var(--text); font-size: 17px; }
.dk-intro p:last-child { margin-bottom: 0; }

.dk-sec { padding-top: 8px; }
.dk-sec + .dk-sec { margin-top: 28px; border-top: 1px solid var(--line); }
.dk-body .dk-sec h2 { display: flex; gap: 14px; align-items: center; font-size: 22px; line-height: 1.25; margin: 28px 0 16px; text-wrap: balance; }
.dk-num { flex: none; display: grid; place-items: center; min-width: 40px; height: 40px; padding: 0 8px; border-radius: 12px;
  background: var(--brand-grad); color: #fff; font: 700 16px/1 var(--display); box-shadow: 0 8px 20px -10px rgba(30, 111, 217, .9); }

/* terms */
.dk-find { position: relative; display: block; max-width: 360px; margin: 0 0 16px; }
.dk-find svg { position: absolute; left: 14px; top: 50%; width: 18px; height: 18px; translate: 0 -50%; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; pointer-events: none; }
.dk-find input { width: 100%; min-height: 48px; padding: 0 14px 0 42px; border-radius: 12px; border: 1px solid var(--card-border); background: var(--card-bg); color: var(--text); font: inherit; font-size: 16px; }
.dk-find input:focus-visible { outline: 2px solid var(--primary); outline-offset: 1px; }
.dk-terms { display: grid; gap: 10px; margin: 0; }
.dk-term { display: grid; grid-template-columns: minmax(0, 230px) minmax(0, 1fr); gap: 6px 20px; padding: 14px 18px; border-radius: 12px; background: var(--card-bg); border: 1px solid var(--card-border); }
.dk-term[hidden] { display: none; }
.dk-term dt { font-weight: 700; line-height: 1.45; color: var(--accent); overflow-wrap: anywhere; }
.dk-term dt a { color: inherit; }
.dk-term dd { margin: 0; line-height: 1.6; }
.dk-term dd p { margin: 0 0 6px; }
.dk-term dd > :last-child { margin-bottom: 0; }
.dk-terms-none { color: var(--muted); }

/* clauses */
.dk-cl { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 12px; padding: 10px 0; scroll-margin-top: calc(var(--header-h) + 16px); }
.dk-cl + .dk-cl { border-top: 1px dashed var(--line); }
.dk-cl--sub { margin-left: 52px; grid-template-columns: 64px minmax(0, 1fr); }
.dk-cl-n { padding-top: 3px; font: 600 13px/1.5 var(--mono); color: var(--accent); text-decoration: none; white-space: nowrap; }
.dk-cl--sub .dk-cl-n { color: var(--muted); }
@media (hover: hover) { .dk-cl-n:hover { text-decoration: underline; } }
.dk-cl:target { background: rgba(var(--neon-rgb, 63, 198, 248), .08); border-radius: 10px; box-shadow: 0 0 0 8px rgba(var(--neon-rgb, 63, 198, 248), .08); }
.dk-cl-t p { margin: 0 0 6px; }
.dk-cl-t > :last-child { margin-bottom: 0; }
.dk-body a { overflow-wrap: anywhere; }
.dk-list { list-style: none; margin: 6px 0 8px; padding: 0; display: grid; gap: 6px; }
.dk-list li { position: relative; padding-left: 20px; }
.dk-list li::before { content: ""; position: absolute; left: 4px; top: .7em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

.dk-end { margin: 40px 0 0; padding: 18px 20px; border-radius: 14px; border: 1px solid var(--card-border); background: var(--card-bg); color: var(--muted); }

@media (max-width: 767.98px) {
  .dk-body .dk-sec h2 { font-size: 19px; gap: 12px; }
  .dk-num { min-width: 34px; height: 34px; font-size: 14px; border-radius: 10px; }
  .dk-term { grid-template-columns: 1fr; padding: 12px 14px; }
  .dk-cl { grid-template-columns: 1fr; gap: 2px; }
  .dk-cl--sub { margin-left: 16px; grid-template-columns: 1fr; padding-left: 12px; border-left: 2px solid var(--line); }
  .dk-cl + .dk-cl--sub { border-top: 0; }
  .dk-intro { padding: 18px 16px 18px 20px; }
}

/* print: only the contract */
@media print {
  .site-header, .site-footer, .dk-aside, .dk-actions, .dk-find, .crumbs, .dk-end, [class*="dock"], .rail, #mc { display: none !important; }
  body, .dk-body { background: #fff !important; color: #000 !important; }
  .dk-grid { display: block; }
  .dk-body { max-width: none; font-size: 11pt; line-height: 1.45; }
  .dk-term, .dk-intro, .dk-cl { break-inside: avoid; }
  .dk-term, .dk-intro { background: none !important; border-color: #bbb !important; }
  .dk-term dt, .dk-cl-n, .dk-kicker { color: #000 !important; }
  .dk-num { background: none !important; color: #000 !important; box-shadow: none; border: 1.5px solid #000; }
  .dk-body a { color: #000; }
}

/* ===== Simple home (2026-11): for every age — one header row, big type, even rhythm, no floating extras =====
   The header is one row everywhere (--header-h 72 px); the home page: hero → «Вже наш абонент?» → tariffs → how to
   connect → reasons → request; the news panel at the left from 1280 px (the content moves right of it). */

/* the map button is the live map's close cross only (the «Карта» button over the page is gone) */
:root:not(.map-only) #map-toggle { display: none; }

/* --- type: body 17 px, nothing secondary under 14 px; buttons and fields big enough to hit --- */
.btn { min-height: 52px; font-size: 17px; }
.btn-sm { margin-top: 0; }
:root:not([data-theme="light"]) :is(.lead, .tariff p, .card p) { color: #c6d1e8; }   /* dark: the secondary text lighter */

/* --- the top of the page (news, «Вже наш абонент?», tariffs): one rhythm, ~56 px from the end of a section to the next
   heading, headings one size, no separator lines; the sections from «Як підключитися» down keep their own --- */
body.home { --sec-pad: 28px; }
body.home :is(.news-strip, #abonentam, #tarify) { padding-block: var(--sec-pad); }
body.home :is(.news-strip, #abonentam, #tarify)::before { content: none; }
body.home #hero { padding-bottom: 0; }
body.home :is(.news-strip, #abonentam, #tarify) .scene-head { margin-bottom: 20px; }
body.home :is(.news-strip, #abonentam, #tarify) .scene-head > :last-child { margin-bottom: 0; }
body.home :is(.news-strip, #abonentam, #tarify) .display { font: 600 clamp(24px, 1.9vw, 30px)/1.15 var(--display); letter-spacing: -.01em; margin: 0 0 6px; }
body.home #tarify .scene-head .lead { margin: 0; font-size: 17px; }
body.home #hero + .scene { padding-top: calc(2 * var(--sec-pad)); }

/* --- hero: the tariff tiles readable; the map's caption under it --- */
.htr-tab { min-height: 46px; padding: 10px 18px; font-size: 16px; }
.htr-tile { flex-wrap: wrap; row-gap: 8px; }
.htr-tile .htr-price { font-size: 24px; font-weight: 800; }
.htr-tile .htr-price small { font-size: 14px; }
.htr-tile .htr-unit { font-size: 13px; }
.htr-tile .htr-name { font-size: 14px; white-space: normal; }
.htr-badge, .htr-badge.is-promo { font-size: 13px; color: #1a0c00; }
@container htr (max-width: 899px) {             /* the tiles are columns there */
  .htr-tile:not(.htr-deal) { flex-wrap: nowrap; }
}
@container htr (max-width: 560px) {             /* a narrow third of the row: «грн/міс» smaller, never under the price */
  .htr-tile .htr-price { white-space: nowrap; }
  .htr-tile .htr-price small { font-size: 13px; }
}
.hd-text { font-size: 15px; }
.hero-cta .btn { min-height: 52px; font-size: 17px; }
.hero-tel { font-size: 17px; }
.hero-tel b { font-size: 21px; }
.hero-mapcol { padding-bottom: 8px; }
/* desktop: the map in its own column (it used to bleed under the header's button — with the news panel at the left
   it ran off the window), the caption under it */
@media (min-width: 1024px) {
  body.home #hero.k1 .hero-top { grid-template-areas: "band map"; grid-template-rows: auto; }   /* no quick-action / speed rows */
  body.home #hero.k1 .hero-col-main { align-self: center; }
  body.home #hero.k1 .hero-mapcol { position: static; transform: none; width: 100%; }
  body.home #hero.k1 .hero-mapcol > .hero-map-slot { max-width: none; }
}
.hero-map-cap { margin: 10px 0 0; text-align: center; font-size: 16px; line-height: 1.5; color: var(--muted); }
.hero-map-cap a { display: inline-block; margin-left: 6px; padding-block: 6px; font-weight: 700; color: var(--neon-soft); white-space: nowrap; }
:root[data-theme="light"] .hero-map-cap a { color: var(--primary); }

/* --- «Вже наш абонент?»: four big tiles 2 × 2 (one column on phones); the speed test unfolds under them --- */
:root {
  --ab-bg: var(--surface); --ab-border: var(--border); --ab-ic-bg: rgba(var(--neon-rgb), .14); --ab-ic: var(--neon-soft);
  --ab-hover-bg: color-mix(in srgb, var(--neon) 10%, var(--surface)); --ab-hover-border: var(--neon-soft);
}
:root[data-theme="light"] {
  --ab-ic-bg: rgba(30, 111, 217, .10); --ab-ic: var(--primary);
  --ab-hover-bg: color-mix(in srgb, var(--primary) 6%, var(--surface)); --ab-hover-border: var(--primary);
}
.ab-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.ab-grid > li { display: flex; }
.ab-tile {
  display: flex; align-items: center; gap: 16px; width: 100%; min-height: 84px; padding: 18px 20px; border-radius: 16px;
  background: var(--ab-bg); border: 1px solid var(--ab-border); color: var(--text); font: inherit; text-align: left; cursor: pointer;
  transition: background-color .15s, border-color .15s;
}
@media (hover: hover) { .ab-tile:hover { background: var(--ab-hover-bg); border-color: var(--ab-hover-border); color: var(--text); text-decoration: none; } }
.ab-tile:focus-visible { outline: 3px solid var(--ab-hover-border); outline-offset: 3px; border-radius: 16px; }
.ab-ic { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: var(--ab-ic-bg); color: var(--ab-ic); }
.ab-ic svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ab-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ab-txt b { font: 700 19px/1.25 var(--sans); }
.ab-txt small { font-size: 15px; line-height: 1.4; color: var(--muted); }
:root:not([data-theme="light"]) .ab-txt small { color: #c6d1e8; }
.ab-chev { flex: none; font-size: 30px; line-height: 1; color: var(--ab-ic); }
@media (max-width: 767.98px) { .ab-grid { grid-template-columns: 1fr; } }
#abonentam #speedbox { margin-top: 14px; }
#abonentam #speedbox.is-compact { display: none; }

/* --- tariffs: the speed in the system font, the price and «грн/міс» on one baseline, never on top of each other --- */
.tariff .tariff-speed { font: 700 20px/1.3 var(--sans); }
.tariff .tariff-price { display: flex; align-items: baseline; flex-wrap: wrap; column-gap: 8px; }
.tariff .tariff-price span { font-size: 17px; opacity: .85; white-space: nowrap; }
.tariff .tariff-old { margin-right: 0; }
.tariff-tab { min-height: 46px; font-size: 16px; }
/* the search over the cards: a 52 px+ field, 18 px text; «Показати тарифи» 48 px */
.tariff-finder .hc-row { padding: 6px 6px 6px 16px; }
.tariff-finder .hc-input { min-height: 48px; padding: 0; font-size: 18px; }
.tariff-finder .hc-go { min-height: 48px; font-size: 17px; }
/* the room under the search belongs to what is shown under it — nothing yet: the section ends at the field */
#tarify .tariff-finder { margin-bottom: 0; }
#tarify .tariff-finder ~ :not([hidden]) { margin-top: 20px; }
#tarify .tariffs:not([hidden]) { margin-top: 40px; }   /* «Найпопулярніший» sticks out above its (scaled) card */

/* --- news: the left panel on the home page (≥1280); a tab at 1024–1279; a plain block under the hero below 1024 --- */
.nr-t { font-size: 16px; line-height: 1.35; -webkit-line-clamp: 3; overflow-wrap: normal; word-break: normal; hyphens: manual; }
.nr-chip { font-size: 13px; }
.nr-ago { font-size: 14px; }
.nr-all { display: inline-flex; align-items: center; min-height: 44px; font-size: 16px; }
/* ===== Side dock for every age (2026-11): «Акції» · «Заявка» · «Дзвінок» at the right, mid-height of the window;
   buttons ≥ 56 × 56 px, 13 px labels, a visible keyboard focus. Phones (<768): a bar at the bottom — «Подзвонити»
   (tel:) · «Заявка», no «Акції» and no call-back panel. Open dialogs (request, promos) are in the top layer, above it. */
.dock-tel { display: none; }
.side-dock .dock-tab { min-width: 56px; min-height: 56px; }
.side-dock .dock-tab span { font-size: 13px; }
.side-dock .dock-tab:focus-visible { outline: 3px solid var(--neon-soft); outline-offset: 2px; }
:root[data-theme="light"] .side-dock .dock-tab:focus-visible { outline-color: var(--primary); }
@media (min-width: 1024px) {
  .side-dock { top: 50%; bottom: auto; transform: translateY(-50%); }
}
/* ===== Header top row + themes (2026-11): the hours and «Пишіть нам:» over the main row (+40 px — everything that
   counts the header goes by --header-h); the light theme with more contrast, the dark one with half the glow ===== */
:root {
  --topbar-h: 40px; --header-h: calc(72px + var(--topbar-h));      /* the top row + the main row */
  --tb-bg: rgba(4, 12, 30, .96); --tb-text: #dfe7f7; --tb-muted: #9fb0d0; --tb-line: rgba(130, 170, 255, .16);
}
:root[data-theme="light"] { --tb-bg: #eef2fa; --tb-text: #0b1d42; --tb-muted: #4a5b7f; --tb-line: #d6deef; }
.site-header .header-inner { height: calc(100% - var(--ribbon-h) - var(--topbar-h)); }
.top-bar { height: var(--topbar-h); background: var(--tb-bg); border-bottom: 1px solid var(--tb-line); color: var(--tb-text); }
.top-bar-inner { display: flex; align-items: center; gap: 16px; height: 100%; }
.tb-hours { display: inline-flex; align-items: center; gap: 8px; min-width: 0; font-size: 15px; color: var(--tb-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tb-hours svg { flex: none; width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.tb-social { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.tb-cap { margin-right: 4px; font-size: 14px; color: var(--tb-muted); white-space: nowrap; }
.top-bar .socials-top { gap: 2px; }
.top-bar .socials-top .soc {
  display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 8px;
  background: none; color: var(--tb-text);
}
/* icons only at every width: the names stay in the markup (span, aria-label, title) for screen readers and the tooltip */
.top-bar .socials-top .soc span { display: none; }
.top-bar .socials-top .soc svg { width: 19px; height: 19px; }
@media (hover: hover) { .top-bar .socials-top .soc:hover { background: var(--tb-line); color: var(--tb-text); text-decoration: none; } }
.top-bar .socials-top .soc:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
/* --- light theme: the header white with a line under it; the cards' frames and the news' small print darker --- */
:root[data-theme="light"] .site-header, :root[data-theme="light"] .site-header.scrolled { background: #fff; border-bottom: 1px solid #d6deef; }
:root[data-theme="light"] { --ab-border: var(--card-border); }
:root[data-theme="light"] .nr-card:not(.is-unread):not(.is-promo) { border-color: var(--card-border); }
:root[data-theme="light"] .nr-ago { color: #4a5b7f; }
:root[data-theme="light"] .nr-card:not(.is-promo) .nr-chip { color: #1a4a99; }

/* --- dark theme: about half the glow (blur and opacity), the colours unchanged --- */
:root:not([data-theme="light"]) { --glow-btn: 0 6px 16px -8px rgba(30, 111, 217, .45); }
:root:not([data-theme="light"]) :is(.tariff-featured, .tariff-featured.card) {
  box-shadow: 0 0 0 1px rgba(var(--neon-rgb), .18), 0 0 25px -10px rgba(var(--neon-rgb), .38), 0 30px 60px -30px rgba(0, 0, 0, .8);
}
:root:not([data-theme="light"]) .tariff-badges .tariff-badge { box-shadow: 0 0 9px rgba(var(--neon-rgb), .4); }
:root:not([data-theme="light"]) .tariff .btn { box-shadow: 0 6px 16px -8px rgba(var(--neon-rgb), .45); }
:root:not([data-theme="light"]) #request-form button[type=submit] { box-shadow: 0 6px 16px -8px rgba(var(--neon-rgb), .45); }

/* --- section labels without numbers, in normal case (the numbers ran out of order after the sections moved) --- */
body.home .scene .eyebrow { text-transform: none; letter-spacing: .01em; }

/* =====================================================================================================================
   Responsive layout (2026-11): one grid, five ranges. Every width rule in this file uses these thresholds only:
     base < 768 (phones) · md ≥ 768 (tablets) · lg ≥ 1024 (small laptops) · xl ≥ 1280 (laptops) · xxl ≥ 1760
   (written as min-width: N, or max-width: N − .02px for the rules that apply below a threshold).
   The header rows, the page and the footer share --container and the side padding (.wrap): their edges always line up.
   ===================================================================================================================== */
:root {
  --container: 1200px; --wrap: var(--container); --gutter: clamp(16px, 4vw, 66px);
  --rail-w: 272px; --rail-gap: 28px;
  --shift: 0px;                     /* xl, home, news panel open: the page and the header move right of the panel */
  --lane-l: 0px; --lane-r: 0px;     /* room kept free at the edges: the «Новини» tab (left), the dock (right) */
  --main-h: 60px; --header-h: calc(var(--topbar-h) + var(--main-h));
}
@media (min-width: 768px) { :root { --main-h: 64px; } }
@media (min-width: 1024px) { :root { --main-h: 72px; --lane-l: 56px; --lane-r: 100px; } }
@media (min-width: 1280px) and (max-width: 1759.98px) {
  :root:has(> body.home):not(.rail-collapsed) { --shift: calc(var(--rail-w) + var(--rail-gap)); --lane-l: 0px; }
  :root:has(> body.home):not(.rail-collapsed) :is(#content, .site-footer, .site-header) { padding-left: var(--shift); }
}
/* the container: centred in what is left of the window; the padding is the gutter, or more where the window's own
   margin (--free) is too narrow for the tab / the dock */
.wrap, main .wrap {
  --free: max(0px, calc((100vw - var(--shift) - var(--container)) / 2));
  max-width: var(--container);
  padding-left: max(var(--gutter), calc(var(--lane-l) - var(--free)));
  padding-right: max(var(--gutter), calc(var(--lane-r) - var(--free)));
}
img, svg, canvas, video { max-width: 100%; }

/* ---------- header: the top row ---------- */
.tb-phone { display: inline-flex; flex: none; align-items: center; gap: 6px; height: 40px; color: var(--tb-text); font: 700 15px/1 var(--sans); white-space: nowrap; }
.tb-phone svg { color: var(--hot-icon); }
.tb-phone:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.tb-hours, .tb-cap { display: none; }
@media (max-width: 767.98px) { .top-bar .ttc { display: none; } }   /* phones: all four socials; the theme is in the burger (.nav-theme) */
@media (min-width: 1024px) { .tb-hours { display: inline-flex; margin-left: 12px; } }
@media (min-width: 1280px) { .tb-cap { display: inline; } }
/* the theme switch at the row's end: a small sun / moon toggle, the knob on the current theme (base.html .ttc) */
.ttc { display: inline-flex; flex: none; align-items: center; margin-left: 10px; padding-left: 10px; border-left: 1px solid var(--line); }
.ttc-sw {
  position: relative; display: flex; align-items: center; justify-content: space-between; width: 44px; height: 22px; padding: 0 5px;
  border-radius: 999px; background: rgba(127, 127, 127, .18); border: 1px solid var(--line); color: var(--muted); cursor: pointer;
}
.ttc-sw .th { position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: var(--text); transition: transform .3s cubic-bezier(.65, 0, .2, 1); }
:root:not([data-theme="light"]) .ttc-sw .th { transform: translateX(22px); }       /* dark: the knob on the moon */
.ttc-sw svg { position: relative; z-index: 1; display: block; width: 11px; height: 11px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: color .3s; }
:root[data-theme="light"] .ttc-sw .s, :root:not([data-theme="light"]) .ttc-sw .m { color: var(--bg); }   /* the icon under the knob */
/* the knob slides over even while the page switches with no transitions (.theme-switching, main.js) */
.theme-switching .ttc-sw .th { transition: transform .3s cubic-bezier(.65, 0, .2, 1) !important; }
.ttc-sw:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .ttc-sw .th, .theme-switching .ttc-sw .th { transition: none !important; } }

/* ---------- header: the main row ---------- */
.site-header .hdr-phone { display: none; }                          /* the phone is in the top row */
/* «Кабінет»: phones (<768) — a round icon in the top row (.tb-cab: the main row holds the logo, «Заявка | 📍» and the
   burger); 768–1023 — the badge in the main row (.login-wrap, by the burger); ≥1024 — in the top row with its name (the
   main row — logo · menu · «Підключитися» — has no room for it there). Also in «Вже наш абонент?» and the burger menu */
.tb-cab { display: none; }
@media (max-width: 767.98px) {
  .site-header .login-wrap { display: none; }
  .tb-cab {
    display: inline-grid; flex: none; place-items: center; width: 36px; height: 36px; border-radius: 8px;
    color: var(--tb-text);
  }
  .tb-cab span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .tb-cab .cabinet-ic { width: 20px; height: 20px; }
}
@media (min-width: 1024px) {
  .tb-cab {
    display: inline-flex; flex: none; align-items: center; gap: 6px; height: 30px; margin-left: 10px; padding: 0 12px 0 9px;
    border: 1px solid var(--tb-line); border-radius: 999px; color: var(--tb-text); font: 600 14px/1 var(--sans); white-space: nowrap;
  }
  .tb-cab .cabinet-ic { width: 17px; height: 17px; }
}
@media (hover: hover) { .tb-cab:hover { background: var(--tb-line); text-decoration: none; } }
.tb-cab:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
#nav-toggle { display: inline-flex; align-items: center; gap: 8px; width: auto; min-width: 44px; height: 44px; padding: 0 14px; border-radius: 999px; }
#nav-toggle > .nb-bars { position: relative; display: block; width: 18px; height: 12px; background: none; transform: none; }
#nav-toggle > .nb-bars > span { left: 0; top: 5px; }
#nav-toggle > .nb-label { position: static; width: auto; height: auto; background: none; transform: none; font: 600 15px/1 var(--sans); }
@media (min-width: 768px) {
  .hdr-cta { display: inline-flex; flex: none; min-height: 44px; padding: 0 20px; background: linear-gradient(135deg, #ff9a1f, #ff7a00); color: #1a0f00; font-weight: 700; }
  .site-header .header-actions { margin-left: 0; }
}
@media (max-width: 1023.98px) {
  .site-header .header-inner { gap: 12px; }
  .site-header .brand { margin-right: auto; }
  /* the burger menu: big items, the phone and the socials at the bottom */
  .main-nav ul a { display: flex; align-items: center; min-height: 56px; padding: 0; border-bottom: 1px solid var(--line); font: 600 20px/1.2 var(--sans); letter-spacing: 0; }
  .main-nav ul li:has(> a[href="/oplata/"]) { display: none; }      /* «₴ Оплатити» is on top of this menu already */
  .nav-extra a[href^="tel:"] { font: 700 26px/1.3 var(--sans); }
  .nav-extra .socials-menu .soc { width: 48px; height: 48px; }
}
@media (min-width: 1024px) {
  #nav-toggle { display: none; }
  .site-header .header-inner { gap: 16px; }
  .site-header .brand { --logo-h: 34px; }
  .main-nav a { --nav-px: 8px; font-size: 15px; }
  .hdr-cta { min-height: 52px; padding: 0 22px; font-size: 17px; }
}
@media (min-width: 1280px) {
  .site-header .header-inner { gap: 24px; }
  .site-header .brand { --logo-h: 40px; }
  .main-nav a { --nav-px: 14px; font-size: 16px; }
}
/* xl with the news panel open: the header moves right with the page (829 px of row at 1280) — the lg sizes */
@media (min-width: 1280px) and (max-width: 1759.98px) {
  :root:has(> body.home):not(.rail-collapsed) .site-header .header-inner { gap: 14px; }
  :root:has(> body.home):not(.rail-collapsed) .site-header .brand { --logo-h: 34px; }
  :root:has(> body.home):not(.rail-collapsed) .main-nav a { --nav-px: 5px; font-size: 15px; }   /* + «Підключитися | 📍» */
  /* the top row: its background still runs the window's width; no «Пишіть нам:» — it doesn't fit */
  :root:has(> body.home):not(.rail-collapsed) .top-bar { margin-left: calc(-1 * var(--shift)); padding-left: var(--shift); }
  :root:has(> body.home):not(.rail-collapsed) .tb-cap { display: none; }
}

/* ---------- news: the panel at the left (xl+), the tab (lg), a block after «Вже наш абонент?» (md, base) ---------- */
.nr-t { font-size: 16px; line-height: 1.35; -webkit-line-clamp: 3; overflow-wrap: normal; word-break: normal; hyphens: manual; }
.nr-chip { font-size: 13px; }
.nr-ago { font-size: 14px; }
.nr-all { display: inline-flex; align-items: center; min-height: 44px; font-size: 16px; }
@media (min-width: 1280px) {
  body.home #news-rail {
    display: flex; flex-direction: column; position: fixed; z-index: 40; left: 16px; top: calc(var(--header-h) + 16px);
    width: var(--rail-w); max-height: calc(100vh - var(--header-h) - 32px); overflow-y: auto; padding: 16px; border-radius: 16px;
    background: var(--glass-bg); border: 1px solid var(--glass-border);
    box-shadow: 0 0 30px -10px rgba(var(--neon-rgb), .45), 0 20px 40px -20px rgba(0, 0, 0, .8);
  }
  :root.rail-collapsed body.home #news-rail { display: none; }
  :root:not(.rail-collapsed) body.home .news-tab-wrap { display: none; }
  :root.footer-in-view body.home #news-rail { opacity: 1; pointer-events: auto; }
}
body.home .news-strip { display: none; }
@media (max-width: 1023.98px) {
  body.home .news-tab-wrap { display: none; }
  body.home .news-strip { display: block; padding-block: var(--sec-pad); }
  body.home .ns-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; overflow: visible; }
  body.home .ns-list .nr-li { display: flex; }
  body.home .ns-list .nr-card { height: 100%; }
}
@media (max-width: 767.98px) {   /* a swipeable strip: a card is 80 % of the width, the next one peeks in */
  body.home .ns-list {
    display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
    margin-inline: calc(-1 * var(--gutter)); padding: 2px var(--gutter) 6px; scroll-padding-inline: var(--gutter); scrollbar-width: none;
  }
  body.home .ns-list::-webkit-scrollbar { display: none; }
  body.home .ns-list .nr-li { flex: 0 0 80%; scroll-snap-align: start; }
}

/* ---------- hero ---------- */
.hero-map-link { display: none; }
@media (min-width: 1024px) {                                   /* lg+: two columns, the map ~40 % (it shrank to 230 px
                                                                  at xl with the news panel when the left was 560 px) */
  body.home #hero.k1 .hero-top { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); }
}
@media (min-width: 768px) and (max-width: 1023.98px) {         /* md: the map under «Підключитися», ≤ 320 px tall */
  #hero .hero-mapcol > .hero-map-slot { width: min(100%, 333px); max-height: 320px; margin-inline: auto; }
}
@media (max-width: 767.98px) {                                 /* base: the map under the tariffs (home.html moves it) */
  #hero .hero-mapcol > .hero-map-slot { display: none; }
  #hero .hero-band > .hero-map-slot {
    display: block; flex: none; position: relative; width: 100%; height: 280px; aspect-ratio: auto; max-height: none; margin: 0 0 12px;
    overflow: hidden; border-radius: 16px; border: 1px solid rgba(120, 170, 255, .25); background: rgba(8, 20, 48, .6);
    cursor: pointer; touch-action: pan-y;
  }
  :root[data-theme="light"] #hero .hero-band > .hero-map-slot { background: #f5f8fe; border-color: rgba(30, 111, 217, .25); }   /* the dark plate greys the light map */
  #hero .hero-band > .hero-map-slot:focus-visible { outline: 2px solid #ff9a1f; outline-offset: 3px; }
  .hero-map-link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 700; color: var(--neon-soft); }
  :root[data-theme="light"] .hero-map-link { color: var(--primary); }
  .hero-mapcol { align-items: center; }
  .hero-map-cap { margin-top: 0; }
  .hero-band .hero-tagline { font-size: clamp(30px, 8vw, 40px); }
  .htr-tabs { display: flex; flex-wrap: nowrap; width: 100%; }
  .htr-tab { flex: 1 1 50%; padding-inline: 8px; line-height: 1.2; white-space: normal; }
  .htr-tile .htr-price { font-size: 20px; }
  .htr-tile:not(.htr-deal) { padding: 10px; }
  .hero-cta .btn { min-height: 56px; }
  .hero-tel b { font-size: 24px; }
}
@container htr (max-width: 327px) {                            /* under 360 px: the tiles one under another */
  .htr-row { flex-direction: column; gap: 10px; }
  .htr-tile:not(.htr-deal) { flex: none; flex-direction: row; align-items: center; gap: 10px; }
  .htr-tile .htr-sp { min-width: 0; }                           /* the speed over its unit: «1000 Мбіт/с» in one line is too wide */
  .htr-tile .htr-pr { flex: 1; min-width: 0; }
  .htr-tile .htr-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}

/* ---------- the sections ---------- */
@media (max-width: 1023.98px) { .tariff-finder { max-width: none; } }
@media (min-width: 768px) {
  #tarify .tariffs { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: none; }
}
@media (min-width: 768px) and (max-width: 1023.98px) {
  #tarify .tariffs { gap: 16px; }
  #tarify .tariff-featured { transform: none; }
@media (hover: hover) { #tarify .tariff-featured:hover { transform: none; } }
}
@media (max-width: 1023.98px) {                                /* «Як підключитися»: one under another, the number left */
  #yak-pidkliuchytys .hw-step.card { display: grid; grid-template-columns: 46px minmax(0, 1fr); column-gap: 16px; align-items: start; text-align: left; }
  #yak-pidkliuchytys .hw-step.card .hw-num { grid-row: span 2; margin: 0; }
  #yak-pidkliuchytys .hw-step.card h3 { margin: 10px 0 4px; }
}
@media (max-width: 767.98px) {
  #yak-pidkliuchytys .hw-cta .btn { width: 100%; }
}
@media (min-width: 1024px) {                                    /* «Про нас»: the heading | the text */
  #pro-nas .about-grid > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); column-gap: 48px; grid-auto-flow: row dense; max-width: none; }
  #pro-nas .about-grid > div > :is(.chapter, .display) { grid-column: 1; }
  #pro-nas .about-grid > div > :is(.lead, .big-quote) { grid-column: 2; }
  #zayavka .cta-grid { grid-template-columns: 1.1fr .9fr; }    /* (the content column is narrow at xl — not a single column) */
}

/* ---------- footer: «Розділи» / «Документи» fold on phones ---------- */
.footer-fold > summary { list-style: none; }
.footer-fold > summary::-webkit-details-marker { display: none; }
@media (min-width: 768px) { .footer-fold > summary { pointer-events: none; } }
@media (max-width: 767.98px) {
  .footer-fold { border-top: 1px solid var(--line); }
  .footer-fold > summary { display: flex; align-items: center; justify-content: space-between; min-height: 52px; cursor: pointer; }
  .footer-fold > summary h2 { margin: 0; }
  .footer-fold > summary::after { content: "›"; font-size: 24px; line-height: 1; color: var(--muted); transform: rotate(90deg); transition: transform .2s; }
  .footer-fold[open] > summary::after { transform: rotate(-90deg); }
  .footer-fold > .footer-nav { padding-bottom: 12px; }
  .site-footer .footer-nav a { display: inline-block; padding-block: 10px; }
}

/* ---------- floating: the dock at the right (lg+); a bar at the bottom (md, base) ---------- */
.dock-tel, .side-dock .dl-sm { display: none; }
.side-dock .dock-tab { min-width: 56px; min-height: 56px; }
.side-dock .dock-tab span { font-size: 13px; }
.side-dock .dock-tab:focus-visible { outline: 3px solid var(--neon-soft); outline-offset: 2px; }
:root[data-theme="light"] .side-dock .dock-tab:focus-visible { outline-color: var(--primary); }
@media (min-width: 1024px) { .side-dock { top: 50%; bottom: auto; transform: translateY(-50%); } }
@media (max-width: 1023.98px) {
  #side-dock :is(.dock-promo, .dock-call) { display: none; }   /* (outweighs the dark theme's «:root:not(…) .dock-call») */
  #side-dock .dock-tel { display: flex; order: -1; }
  .side-dock .dl-lg { display: none; }
  .side-dock .dl-sm { display: inline; }
  .side-dock .dock-tab, .side-dock .dock-tel { height: 56px; flex-direction: row; gap: 8px; }
  .side-dock .dock-tab span { font-size: 16px; }
  .side-dock .dock-tel svg { fill: var(--neon-soft); }
  :root[data-theme="light"] .side-dock .dock-tel svg { fill: var(--primary); }
  body.nf-open .side-dock { display: none; }                  /* the news panel covers the phone — the bar steps aside */
}
/* the dock's socials (base.html .dock-soc): under «Дзвінок», 2 × 2 icons; the bottom bar (<1024) leaves them out —
   the top row has all four */
.dock-soc { display: grid; grid-template-columns: repeat(2, 32px); justify-content: center; gap: 0; margin-top: 2px; padding-top: 6px; border-top: 1px solid rgba(var(--neon-rgb), .15); }
.dock-soc .soc { width: 32px; height: 32px; border: 0; border-radius: 9px; color: var(--neon-soft); transition: background .2s, color .2s; }
.dock-soc .soc svg { width: 17px; height: 17px; }
@media (hover: hover) { .dock-soc .soc:hover { background: rgba(var(--neon-rgb), .16); color: #fff; text-decoration: none; } }
.dock-soc .soc:focus-visible { outline: 2px solid var(--neon-soft); outline-offset: -2px; }
:root[data-theme="light"] .dock-soc { border-top-color: var(--line); }
:root[data-theme="light"] .dock-soc .soc { color: var(--primary); }
@media (hover: hover) { :root[data-theme="light"] .dock-soc .soc:hover { background: color-mix(in srgb, var(--primary) 12%, transparent); color: var(--primary-strong); } }
:root[data-theme="light"] .dock-soc .soc:focus-visible { outline-color: var(--primary); }
/* «Спідтест»: the bottom bar keeps it to an icon beside «Подзвонити» · «Підключитися» */
@media (max-width: 1023.98px) {
  .dock-soc { display: none; }
  .side-dock :is(.dock-speed, .dock-reviews) { flex: 0 0 56px; }
  .side-dock :is(.dock-speed, .dock-reviews) span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

/* the speed test, not a Radionet subscriber: a line under the details, the whole width of .spd-info (speedtest.js) */
.spd-info > .spd-hint-row { grid-column: 1 / -1; border-bottom: none; padding-top: 6px; }
.spd-info:has(> .spd-hint-row[hidden]) > div:nth-last-child(3) { border-bottom: none; }          /* hidden: the last row bare, as before */
.spd-info:has(> .spd-hint-row:not([hidden])) > div:nth-last-child(2) { border-bottom: 1px solid var(--line); }   /* shown: a line over it */
.spd-hint { display: block; font-size: .82em; font-weight: 600; line-height: 1.35; color: #ff9a1f; }
:root[data-theme="light"] .spd-hint { color: #c25400; }

/* ===== Content width follows the window (2026-11): 1200 px up to ~1790 px of window, then 67 vw, up to 1480 px;
   the hero: the map column as wide as the text column (it was 2 : 3 — ~414 px of map at 1920). The side lanes for
   the news panel and the dock (--lane-l / --lane-r / --free) count from --container — unchanged.
   The map's canvas follows its slot (bg-map.js: a ResizeObserver redraws it at the new size × devicePixelRatio). ===== */
:root { --container: clamp(1200px, 67vw, 1480px); }
@media (min-width: 1024px) {
  body.home #hero.k1 .hero-top { grid-template-columns: minmax(540px, 1fr) minmax(0, 1fr); }
}

/* ===== The connection request from the hero (2026-11): two clear ways — the house on the map / «call me back»
   (only the phone, the form unfolds under the cards); the hero map itself is a button to the connection map ===== */
:root { --hq-map: #5cc4ff; --hq-map-bg: rgba(92, 196, 255, .12); --hq-call: #ff9a1f; --hq-call-bg: rgba(255, 154, 31, .12); }
:root[data-theme="light"] { --hq-map: #1b68d1; --hq-map-bg: rgba(27, 104, 209, .08); --hq-call: #c2410c; --hq-call-bg: rgba(255, 154, 31, .12); }
.hq { width: 100%; container: hq / inline-size; }
.hq-card {
  display: flex; align-items: center; gap: 14px; width: 100%; min-height: 88px; padding: 14px 16px; border-radius: 16px;
  border: 1.5px solid; background: var(--surface); color: var(--text); font: inherit; text-align: left; cursor: pointer;
  transition: background-color .15s, border-color .15s;
}
.hq-map { border-color: color-mix(in srgb, var(--hq-map) 45%, transparent); }
.hq-call { border-color: color-mix(in srgb, var(--hq-call) 50%, transparent); }
@media (hover: hover) {
  .hq-map:hover { background: color-mix(in srgb, var(--hq-map) 10%, var(--surface)); border-color: var(--hq-map); }
  .hq-call:hover { background: color-mix(in srgb, var(--hq-call) 10%, var(--surface)); border-color: var(--hq-call); }
}
.hq-card:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.hq-call[aria-expanded="true"] { background: color-mix(in srgb, var(--hq-call) 10%, var(--surface)); border-color: var(--hq-call); }
.hq-ic { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; }
.hq-ic svg { width: 24px; height: 24px; }
.hq-map .hq-ic { background: var(--hq-map-bg); color: var(--hq-map); }
.hq-map .hq-ic svg { fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.hq-call .hq-ic { background: var(--hq-call-bg); color: var(--hq-call); }
.hq-call .hq-ic svg { fill: currentColor; }
.hq-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.hq-txt b { font: 600 16px/1.25 var(--display); letter-spacing: -.01em; }
.hq-txt small { font-size: 14px; line-height: 1.4; color: var(--muted); }
:root:not([data-theme="light"]) .hq-txt small { color: #c6d1e8; }
.hq-chev { flex: none; font-size: 26px; line-height: 1; color: var(--muted); transition: transform .2s; }
.hq-call[aria-expanded="true"] .hq-chev { transform: rotate(90deg); }
/* a narrow pair (the hero's left column, ≤ 640 px): the icon and the title on one line, the note under them */
@container hq (min-width: 480px) and (max-width: 640px) {
  .hq-card { display: grid; grid-template-columns: 44px minmax(0, 1fr); grid-template-areas: "ic title" "note note"; align-items: center; gap: 8px 12px; }
  .hq-card .hq-ic { grid-area: ic; }
  .hq-card .hq-txt { display: contents; }
  .hq-card .hq-txt b { grid-area: title; }
  .hq-card .hq-txt small { grid-area: note; }
  .hq-card .hq-chev { display: none; }
}
/* the call-back form under the cards */
.qc-box { margin-top: 12px; padding: 16px; border-radius: 16px; border: 1.5px solid var(--hq-call); background: var(--surface); }
.qc-form label { display: block; margin: 0 0 8px; font-weight: 600; font-size: 16px; }
.qc-row { display: flex; gap: 10px; }
.qc-row input {
  flex: 1; min-width: 0; min-height: 52px; padding: 0 16px; border-radius: 999px; font: 500 18px var(--sans); color: var(--text);
  background: var(--bg); border: 1.5px solid rgba(150, 180, 240, .45);
}
:root[data-theme="light"] .qc-row input { border-color: #9fb0cf; }
.qc-row input:focus { outline: none; border-color: var(--hq-call); box-shadow: 0 0 0 3px color-mix(in srgb, var(--hq-call) 25%, transparent); }
.qc-go { flex: none; border-radius: 999px; background: linear-gradient(135deg, #ff9a1f, #ff7a00); color: #1a0f00; font-weight: 700; }
.qc-go:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
@media (max-width: 767.98px) { .qc-row { flex-direction: column; } .qc-go { width: 100%; } }
.qc-form .fg-err { margin: 6px 0 0; }
.qc-form .form-consent { margin-top: 10px; }
.qc-form .request-status:empty { display: none; }
.qc-done { margin: 0; font-weight: 600; font-size: 17px; color: var(--good); }
.qc-done:focus { outline: none; }
.hq-tel { margin: 10px 0 0; font-size: 15px; color: var(--muted); }
.hq-tel a { font-weight: 700; color: var(--text); white-space: nowrap; }

/* the hero map (≥768): a button — the pointer, a plate at its foot with a pulsing dot; hovering it lights the plate */
.hero-map-cta { display: none; }
.mc-opt { font-style: normal; opacity: .75; }                        /* the map's form: «(необов'язково)» */
@media (min-width: 768px) {
  #hero .hero-map-slot { cursor: pointer; }
  #hero .hero-map-slot:focus-visible { outline: 3px solid #ff9a1f; outline-offset: 4px; border-radius: 16px; }
  .hero-map-cta {
    position: absolute; z-index: 2; left: 50%; bottom: 10px; transform: translateX(-50%);
    display: flex; align-items: center; gap: 10px; width: max-content; max-width: calc(100% - 16px); padding: 8px 14px;
    border-radius: 999px; border: 1.5px solid rgba(255, 154, 31, .35); background: rgba(8, 20, 45, .86); color: #e6f2ff;
    font: 600 14px/1.3 var(--sans); text-align: left; pointer-events: none; transition: border-color .15s;
  }
  :root[data-theme="light"] .hero-map-cta { background: rgba(255, 255, 255, .94); color: var(--text); border-color: rgba(214, 98, 0, .35); }
  .hmc-dot { position: relative; flex: none; width: 10px; height: 10px; border-radius: 50%; background: #ff9a1f; }
  .hmc-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: #ff9a1f; animation: hmc-pulse 1.8s ease-out infinite; }
}
@media (min-width: 768px) and (hover: hover) {
  #hero .hero-map-slot:hover .hero-map-cta { border-color: #ff9a1f; }
}
@keyframes hmc-pulse { from { transform: scale(1); opacity: .7; } to { transform: scale(2.8); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .hmc-dot::after { animation: none; display: none; } }

/* abonent-fx — «Вже наш абонент?» comes alive (abonent-fx.js): flipping descriptions, a signal indicator, playing icons */
.abx-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.abx-lead { display: inline-block; }
.abx-flip { display: inline-grid; perspective: 300px; vertical-align: middle; white-space: nowrap; }
.abx-flip > * { grid-area: 1 / 1; transform-origin: 50% 50% -10px; backface-visibility: hidden; }

.abx-meter { flex: none; display: flex; align-items: center; gap: 8px; }
/* «Тест швидкості»: the signal — the arcs light up in turn from the dot out; --sp scales the cycle: hover ×.45, the test
   running (mini-speedtest.js: aria-busy) ×.25. The colour follows the figure's result colour */
#ht-speed { --sp: 1; }
#ht-speed:hover { --sp: .45; }
#ht-speed[aria-busy="true"] { --sp: .25; }
.abx-sig { display: block; flex: 0 0 auto; width: 46px; height: 28px; color: var(--primary); fill: none; stroke: currentColor; stroke-linecap: round; }
.abx-meter.is-good .abx-sig { color: var(--good); }
.abx-sig circle { fill: currentColor; stroke: none; }
.abx-sig path { stroke-width: 3; opacity: .2; animation: abx-sig calc(1.9s * var(--sp)) ease-out infinite; }
.abx-sig .a2 { animation-delay: calc(.22s * var(--sp)); }
.abx-sig .a3 { animation-delay: calc(.44s * var(--sp)); }
@keyframes abx-sig { 0% { opacity: .2; } 22% { opacity: 1; } 60%, 100% { opacity: .2; } }
.ab-tile .ab-chev { transition: transform .25s cubic-bezier(.3, 1.4, .5, 1); }
#ht-speed:hover .ab-chev { transform: translateX(5px); }
@media (prefers-reduced-motion: reduce) {
  .abx-sig path { animation: none; opacity: 1; }
  .ab-tile .ab-chev { transition: none; }
}
.abx-read { display: flex; flex-direction: column; align-items: flex-end; line-height: 1; }
.abx-num { min-width: 3ch; text-align: right; font: 600 22px/1 var(--display); font-variant-numeric: tabular-nums; color: var(--text); transition: color .3s; }
.abx-unit { margin-top: 3px; font: 500 11px/1 var(--sans); color: var(--muted); }
.abx-meter.is-good .abx-num { color: var(--good); }
.abx-meter.is-idle .abx-num { min-width: 0; font: 600 14px/1.2 var(--sans); white-space: nowrap; color: var(--primary-strong); }
.abx-meter.is-idle .abx-unit { display: none; }
@media (hover: hover) { .ab-tile:hover .abx-num { color: var(--primary-strong); } }
@media (max-width: 560px) { .abx-sig { display: none; } .abx-num { font-size: 18px; } }
/* a narrow tile (phones, the two columns at ~768–1000): the figure without the signal, the title on one line */
.ab-grid > li { container-type: inline-size; }
@container (max-width: 420px) {
  .abx-sig { display: none; } .abx-num { font-size: 18px; }
  #ht-speed { gap: 12px; } #ht-speed .ab-txt b { white-space: nowrap; }
}

/* the icons' moving parts (the animations themselves: abonent-fx.js) */
.ab-ic .abx-head { transform-box: view-box; transform-origin: 12px 8px; }
.ab-ic .abx-stripe { stroke-dasharray: 1; }

/* hero-slider — «Вказати на карті» / «Передзвоніть мені» as one card that flips over by itself (hero-slider.js):
   the whole block in one frame, the tabs a full-width segmented switch over it, each card with its action button.
   Without JS (no html.js): both cards one under the other, no tabs */
:root { --hqs-tabs-bg: rgba(0, 0, 0, .25); --hqs-tab-on: rgba(255, 255, 255, .08); }
:root[data-theme="light"] { --hqs-tabs-bg: var(--surface-2); --hqs-tab-on: var(--surface); }
.hqs { margin-bottom: 10px; }
.hqs-box {
  position: relative; display: flex; flex-direction: column; gap: 12px; padding: 8px 8px 16px; border-radius: 18px;
  background: var(--card-bg); border: 1px solid var(--card-border);
}
.hqs-stage { display: grid; perspective: 700px; }
.hqs-panel { grid-area: 1 / 1; display: grid; backface-visibility: hidden; transform-origin: 50% 50% -24px; }
.hqs-panel[hidden] { display: grid !important; visibility: hidden; pointer-events: none; }   /* keeps the height: no jump */
.hqs-panel > .hq-card { width: 100%; margin: 0; }

/* the segments: full width, over the cards (order — in the markup they may come either side of the stage) */
.hqs-tabs {
  order: -1; display: grid; grid-template-columns: 1fr 1fr; gap: 2px; padding: 4px; border-radius: 12px;
  background: var(--hqs-tabs-bg); border: 1px solid var(--card-border);
}
.hqs-tab {
  position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 34px;
  padding: 0 10px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); font: 600 13px var(--sans); cursor: pointer;
  transition: color .25s, background .25s;
}
.hqs-tab svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.hqs-tab[aria-selected="true"] { color: var(--text); background: var(--hqs-tab-on); }
.hqs-tab i { position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: var(--primary); transform-origin: left; transform: scaleX(0); }
.hqs-tab.k-call i { background: var(--promo-1); }
.hqs-tab:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.hqs.paused .hqs-tab[aria-selected="true"] i { opacity: .45; }

/* the card inside the frame: no frame or background of its own; the icon, the text, the action button */
.hqs .hq-card {
  display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: none; align-items: center; column-gap: 14px; row-gap: 0;
  min-height: 0; padding: 4px 10px; background: transparent; border: 0; box-shadow: none;
}
.hqs .hq-card .hq-txt { display: flex; }                            /* not the narrow pair's grid (@container hq above) */
.hqs .hq-card .hq-ic { grid-area: auto; }
.hqs .hq-ic { width: 48px; height: 48px; }
.hqs .hq-txt b { font-size: 18px; padding-right: 0; }
.hqs .hq-txt small { font-size: 13.5px; max-width: 34ch; }
.hqs .hq-chev { display: none; }
.hq-go {
  grid-column: 3; align-self: center; display: inline-flex; align-items: center; height: 34px; padding: 0 14px; border-radius: 10px;
  font: 600 13px var(--sans); white-space: nowrap; transition: transform .15s, filter .2s;
}
.hq-map .hq-go { background: var(--brand-grad); color: #fff; }
.hq-call .hq-go { background: var(--promo-grad); color: var(--promo-ink); }
@media (hover: hover) { .hq-card:hover .hq-go { filter: brightness(1.1); transform: translateX(2px); } }
.hq-card:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 12px; }
@media (max-width: 560px) {
  .hqs .hq-card { grid-template-columns: auto 1fr; }
  .hq-go { grid-column: 1 / -1; justify-self: start; margin-top: 10px; }
}
@media (prefers-reduced-motion: reduce) { .hq-go { transition: none; } }
html:not(.js) .hqs-tabs { display: none; }
html:not(.js) .hqs-stage { gap: 12px; }
html:not(.js) .hqs-panel { grid-area: auto; }
html:not(.js) .hqs-panel[hidden] { visibility: visible; pointer-events: auto; }

/* ===== «Підключитися» in the header (2026-11): one orange pill in two parts — the request form | the map as an address
   picker (base.html .hdr-cta-split; requests.js). Each part is ≥ 44 × 44, with its own hover and keyboard focus;
   phones — «Заявка» | 📍 ===== */
.hdr-cta-split {
  display: inline-flex; flex: none; align-items: stretch; border-radius: 999px;
  background: linear-gradient(135deg, #ff9a1f, #ff7a00); color: #1a0f00;
}
.hdr-cta-split .hdr-cta {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px 0 18px; border-radius: 999px 0 0 999px;
  background: none; color: inherit; font: 700 15px/1 var(--sans); white-space: nowrap; transform: none; filter: none;
}
.hdr-map {
  display: inline-grid; place-items: center; width: 46px; min-height: 44px; border-radius: 0 999px 999px 0;
  border-left: 1px solid rgba(26, 15, 0, .3); color: inherit;
}
.hdr-map svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.1; stroke-linecap: round; stroke-linejoin: round; }
@media (hover: hover) {
  .hdr-cta-split .hdr-cta:hover, .hdr-map:hover { background: rgba(255, 255, 255, .2); text-decoration: none; transform: none; filter: none; }
}
.hdr-cta-split .hdr-cta:active, .hdr-map:active { background: rgba(26, 15, 0, .1); }
.hdr-cta-split .hdr-cta:focus-visible, .hdr-map:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; position: relative; z-index: 1; }
.hdr-cta-split .hc-s { display: none; }
@media (max-width: 767.98px) {
  .hdr-cta-split .hdr-cta { padding: 0 10px 0 14px; }
  .hdr-cta-split .hc-l { display: none; }
  .hdr-cta-split .hc-s { display: inline; }
  .hdr-map { width: 44px; }
}
@media (min-width: 1280px) {
  .hdr-cta-split .hdr-cta { min-height: 52px; padding: 0 18px 0 22px; font-size: 17px; }
  .hdr-map { width: 52px; min-height: 52px; }
}
/* lg, and xl with the news panel open (the header moves right of it): the menu leaves ~150 px — the compact pill */
@media (min-width: 1024px) and (max-width: 1279.98px) {
  .hdr-cta-split .hdr-cta { min-height: 48px; padding: 0 12px 0 16px; font-size: 16px; }
  .hdr-map { width: 46px; min-height: 48px; }
}
@media (min-width: 1280px) and (max-width: 1759.98px) {
  :root:has(> body.home):not(.rail-collapsed) .hdr-cta-split .hdr-cta { min-height: 48px; padding: 0 12px 0 16px; font-size: 16px; }
  :root:has(> body.home):not(.rail-collapsed) .hdr-map { width: 46px; min-height: 48px; }
}
/* phones: the logo, «Заявка | 📍», the burger; under 400 px the burger is its icon (aria-label «Меню») — else the wordmark
   shrinks; the top row's gaps tighter (the phone, four messengers, «Кабінет») */
@media (max-width: 767.98px) { .top-bar-inner { gap: 8px; } }
@media (max-width: 399.98px) {
  #nav-toggle { width: 44px; padding: 0; justify-content: center; }
  #nav-toggle > .nb-label { display: none; }
  .site-header .header-inner { gap: 8px; }
}

/* ===== The request form (_request_form.html): the modal and #zayavka ===== */
.rq-form .rf-f { display: flex; flex-direction: column; min-width: 0; }
.rf-row { display: grid; grid-template-columns: minmax(0, 1fr) 96px 76px; gap: 10px; }
@media (max-width: 479.98px) { .rf-row { grid-template-columns: 1fr 1fr; } .rf-row .rf-street { grid-column: 1 / -1; } }
/* tariff / promo from the link: chips over the fields, ✕ takes one off */
.rq-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; }
.rq-chip {
  display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 3px 3px 3px 12px; border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 13%, transparent); border: 1px solid color-mix(in srgb, var(--accent) 38%, transparent);
  font-weight: 600; font-size: .95rem; line-height: 1.25;
}
.rq-chip > span:not([aria-hidden]) { min-width: 0; }
.rq-chip button {
  flex: none; display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 50%;
  background: none; color: var(--muted); font-size: 14px; cursor: pointer;
}
@media (hover: hover) { .rq-chip button:hover { background: color-mix(in srgb, var(--text) 10%, transparent); color: var(--text); } }
.rq-chip button:focus-visible { outline: 2px solid var(--accent); outline-offset: 0; }
/* the coverage of the house picked on the map */
.rq-cov {
  margin: 10px 0 0; padding: 10px 14px; border-radius: 12px; font-size: .95rem; line-height: 1.4;
  background: color-mix(in srgb, var(--primary) 10%, transparent); border: 1px solid color-mix(in srgb, var(--primary) 30%, transparent);
}
.rq-cov.is-in { background: color-mix(in srgb, var(--good) 12%, transparent); border-color: color-mix(in srgb, var(--good) 42%, transparent); }
.rq-pick {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; margin: 4px 0 0; padding: 0 2px;
  border: 0; background: none; color: var(--accent); font: 600 1rem/1.2 var(--sans); cursor: pointer;
  text-decoration: underline; text-underline-offset: 3px;
}
@media (hover: hover) { .rq-pick:hover { text-decoration-thickness: 2px; } }
.rq-pick:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 8px; }
.rq-body .fg-err { margin: 6px 0 0; }
.rq-body .request-status:empty { display: none; }
.rq-body .request-status { margin: 12px 0 0; }
:root[data-theme="light"] .rq-pick { color: var(--primary); }
/* #zayavka: the same form as a card on the page */
.rq-inline { border-radius: 24px; background: var(--surface); border: 1px solid var(--border); }
form.rq-inline { padding: clamp(18px, 3vw, 30px) clamp(18px, 3vw, 30px) clamp(16px, 2.4vw, 24px); }
.rq-inline .rq-body { padding: 0; overflow: visible; }
.rq-inline .rq-body > .rf-f:first-of-type label { margin-top: 0; }
.rq-inline .rq-foot { padding: 16px 0 0; border-top: 0; }
.rq-done.rq-inline { padding: 34px 26px 28px; }
.rq-done .rq-when { margin: 4px 0 0; font-weight: 600; font-size: 1.05rem; }
.rq-done .muted { margin: 0 0 10px; }
.qc-done { font-weight: 600; }

/* the footer's link to the reviews (base.html .footer-reviews, under the «about» paragraph) */
.footer-reviews { display: block; margin-top: 14px; font-size: 14px; text-decoration: none; }
@media (hover: hover) { .footer-reviews:hover { text-decoration: underline; } }
.fr-stars { color: #ffb020; letter-spacing: 1px; margin-right: 6px; }

/* touch screens: small links get a 44px tap area (UX audit 18.11.2026). Blocks — min-height; links inside a sentence —
   vertical padding, which widens what a finger hits without moving the text (padding on an inline box doesn't change line height) */
@media (pointer: coarse) {
  .tb-phone, .nav-extra a[href^="tel:"], .footer-cta-phone { display: inline-flex; align-items: center; min-height: 44px; }
  .footer-reviews { display: flex; align-items: center; min-height: 44px; }
  .form-consent a, .lead a[data-pick-map] { padding-block: 12px; }
}
