/* ОнЛинк — единая таблица стилей.
   Шрифт: Golos Text (ParaType, OFL), подключён локально. */

@font-face {
  font-family: "Golos Text";
  font-style: normal;
  font-display: swap;
  font-weight: 400 900;
  src: url("fonts/golos-text-cyrillic-wght-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Golos Text";
  font-style: normal;
  font-display: swap;
  font-weight: 400 900;
  src: url("fonts/golos-text-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Golos Text";
  font-style: normal;
  font-display: swap;
  font-weight: 400 900;
  src: url("fonts/golos-text-cyrillic-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

:root {
  --brand: #2552b0;
  --brand-600: #1e459a;
  --brand-700: #183878;
  --brand-50: #eef3fc;
  --brand-100: #dbe6f8;
  --sky: #1b8de0;
  --ink: #172033;
  --text: #2b3445;
  --muted: #5f6b7e;
  --line: #e2e7ef;
  --soft: #f5f7fb;
  --white: #fff;
  --green: #1f8a4c;
  --green-50: #e9f6ef;
  --warn: #b4530c;
  --warn-50: #fff5e8;

  --font: "Golos Text", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(23, 32, 51, .06), 0 4px 16px rgba(23, 32, 51, .06);
  --shadow-lg: 0 10px 40px rgba(23, 32, 51, .14);
  --container: 1160px;
  --gutter: 24px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
img { max-width: 100%; height: auto; }
svg { width: 1em; height: 1em; flex: none; }
a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brand-700); }
:focus-visible { outline: 3px solid rgba(37, 82, 176, .45); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.25; margin: 0; font-weight: 650; letter-spacing: -.01em; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--brand); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
.muted { color: var(--muted); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 600; font-size: 15px; line-height: 1;
  padding: 12px 18px; border-radius: 10px; border: 1px solid transparent;
  background: var(--brand); color: #fff; text-decoration: none; cursor: pointer;
  transition: background .15s, box-shadow .15s, color .15s;
  white-space: nowrap;
}
.btn:hover { background: var(--brand-600); color: #fff; }
.btn svg { width: 18px; height: 18px; fill: currentColor; }

/* ------------------------------------------------------------ header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .97); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; gap: 28px; height: 92px; }
.logo { flex: none; display: block; line-height: 0; margin-right: auto; }
.logo img { width: 140px; height: auto; display: block; }

.search { position: relative; display: flex; width: 280px; }
.search input {
  width: 100%; font: inherit; font-size: 15px; color: var(--ink);
  padding: 10px 44px 10px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--soft);
  transition: border-color .15s, background .15s, box-shadow .15s;
  -webkit-appearance: none; appearance: none;
}
.search input::placeholder { color: #8a94a6; }
.search input:focus { outline: none; background: var(--surface); border-color: var(--brand); box-shadow: 0 0 0 3px rgba(37, 82, 176, .15); }
.search button {
  position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  width: 36px; height: 36px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); cursor: pointer;
  display: grid; place-items: center;
}
.search button:hover { color: var(--brand); }
.search button svg { width: 20px; height: 20px; fill: currentColor; }

.header-contacts { display: flex; align-items: center; gap: 10px; }
.header-contacts .ico { width: 36px; height: 36px; border-radius: 50%; background: var(--brand-50); color: var(--brand); display: grid; place-items: center; }
.header-contacts .ico svg { width: 18px; height: 18px; fill: currentColor; }
.phones { display: flex; flex-direction: column; line-height: 1.25; }
.phones a { color: var(--ink); font-weight: 650; font-size: 16px; text-decoration: none; white-space: nowrap; font-variant-numeric: tabular-nums; }
.phones a:hover { color: var(--brand); }
.phones .hours { font-size: 12px; color: var(--muted); margin-top: 2px; }

.menu-toggle { display: none; }

/* nav */
.site-nav { background: var(--brand); }
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; }
.nav-item { position: relative; }
.nav-link {
  display: flex; align-items: center; gap: 6px; height: 50px; padding: 0 18px;
  color: rgba(255, 255, 255, .92); font-weight: 550; font-size: 15px; text-decoration: none;
  transition: background .15s, color .15s;
}
.nav-item:first-child .nav-link { margin-left: -18px; }
.nav-link:hover, .nav-item:focus-within > .nav-link, .nav-item:hover > .nav-link { color: #fff; background: rgba(255, 255, 255, .1); }
.nav-item.is-active > .nav-link { color: #fff; box-shadow: inset 0 -3px 0 #8cc8ff; }
.nav-chev svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; opacity: .7; transition: transform .2s; }
.nav-drop {
  list-style: none; margin: 0; padding: 8px; position: absolute; top: 100%; left: 0; min-width: 260px;
  background: var(--surface); border-radius: 0 0 var(--radius) var(--radius); box-shadow: var(--shadow-lg); border: 1px solid var(--line); border-top: 0;
  opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity .15s, transform .15s, visibility .15s;
}
.nav-item:first-child .nav-drop { left: -18px; }
.nav-item:last-child .nav-drop { left: auto; right: 0; }
.nav-item:hover .nav-drop, .nav-item:focus-within .nav-drop { opacity: 1; visibility: visible; transform: none; }
.nav-drop a { display: block; padding: 9px 12px; border-radius: 8px; color: var(--text); text-decoration: none; font-size: 15px; }
.nav-drop a:hover { background: var(--brand-50); color: var(--brand-700); }
.nav-mobile-extra { display: none; }

/* ------------------------------------------------------------ inner page layout */
.site-main { flex: 1 0 auto; }
.page { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 56px; padding-top: 40px; padding-bottom: 72px; }
.page.no-side { grid-template-columns: minmax(0, 1fr); }
.page-body { min-width: 0; max-width: 800px; }

.crumbs { font-size: 14px; color: var(--muted); display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--brand); text-decoration: underline; }
.crumbs span { color: #b4bccb; }
.page-title { font-size: 34px; line-height: 1.18; font-weight: 700; letter-spacing: -.02em; margin-bottom: 28px; text-wrap: balance; }
.page-date { margin: -16px 0 28px; color: var(--muted); font-size: 15px; }

.sidenav { position: sticky; top: 160px; align-self: start; }
.sidenav ul { list-style: none; margin: 0; padding: 0; }
.sidenav > ul { border-left: 2px solid var(--line); }
.sidenav a { display: block; padding: 8px 16px; margin-left: -2px; border-left: 2px solid transparent; color: var(--text); text-decoration: none; font-size: 15px; line-height: 1.35; }
.sidenav a:hover { color: var(--brand); border-left-color: var(--brand-100); }
.sidenav li.is-section > a { color: var(--ink); font-weight: 600; }
.sidenav li.is-current > a { color: var(--brand); border-left-color: var(--brand); font-weight: 600; background: linear-gradient(90deg, var(--brand-50), transparent); }
.sidenav ul ul a { padding: 6px 16px 6px 30px; font-size: 15px; }

/* ------------------------------------------------------------ prose (cleaned CMS content) */
.prose { font-size: 17px; line-height: 1.65; color: var(--text); }
.prose > :first-child { margin-top: 0; }
.prose p { margin: 0 0 1em; }
.prose h2 { font-size: 24px; margin: 1.8em 0 .7em; }
.prose h3 { font-size: 19px; margin: 1.6em 0 .6em; }
.prose h2 + h3, .prose h3 + h3 { margin-top: .6em; }
.prose ul, .prose ol { margin: 0 0 1.1em; padding-left: 1.4em; }
.prose li { margin: .3em 0; }
.prose li::marker { color: var(--brand); }
.prose strong { color: var(--ink); font-weight: 600; }
.prose .t-center { text-align: center; }
.prose img { border-radius: var(--radius-sm); }
.prose .img-right { float: right; margin: 0 0 20px 28px; max-width: 40%; }
.prose .img-left { float: left; margin: 0 28px 20px 0; max-width: 40%; }
.prose .img-center { display: block; margin: 0 auto; }
.prose::after { content: ""; display: table; clear: both; }
.prose [data-hl="price"] { color: var(--green); font-weight: 650; white-space: nowrap; }
.prose [data-hl="warn"] { color: var(--warn); font-weight: 600; }
.prose a { word-break: break-word; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }

/* tables */
.table-wrap { overflow-x: auto; margin: 0 0 1.4em; border: 1px solid var(--line); border-radius: var(--radius); -webkit-overflow-scrolling: touch; clear: both; }
.table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.4; font-variant-numeric: tabular-nums; }
.table th, .table td { padding: 12px 16px; text-align: left; vertical-align: middle; border-bottom: 1px solid var(--line); }
.table thead th { background: var(--soft); color: var(--muted); font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: #fafbfd; }
.table td:first-child { color: var(--ink); font-weight: 550; }
.table [data-num] { white-space: nowrap; }
.table td[data-num] { color: var(--ink); }
.table th.t-center, .table td.t-center { text-align: left; }

/* FAQ / accordions */
.faq { display: grid; gap: 10px; margin: 1.5em 0; }
details { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); transition: box-shadow .15s, border-color .15s; }
details[open] { border-color: var(--brand-100); box-shadow: var(--shadow); }
summary {
  list-style: none; cursor: pointer; padding: 16px 52px 16px 20px; position: relative;
  font-weight: 600; color: var(--ink); line-height: 1.4;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: ""; position: absolute; right: 20px; top: 50%; width: 10px; height: 10px; margin-top: -7px;
  border-right: 2px solid var(--brand); border-bottom: 2px solid var(--brand); transform: rotate(45deg); transition: transform .2s;
}
details[open] > summary::after { transform: rotate(-135deg); margin-top: -2px; }
summary:hover { color: var(--brand); }
.faq-body, .more-body { padding: 0 20px 18px; }
.faq-body > :last-child, .more-body > :last-child { margin-bottom: 0; }

/* promotions */
.promo { display: flex; gap: 20px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 16px; background: var(--surface); }
.promo-icon { flex: none; width: 64px; height: 64px; border-radius: 14px; background: var(--brand-50); display: grid; place-items: center; overflow: hidden; }
.promo-icon img { width: 52px; height: 52px; object-fit: contain; mix-blend-mode: multiply; border-radius: 0; }
.promo-body { min-width: 0; flex: 1; }
.promo h3 { margin: 0 0 4px; font-size: 20px; }
.promo .meta { color: var(--muted); font-size: 14px; margin-bottom: 10px; }
.promo details.more { border: 0; background: none; box-shadow: none; margin-top: 4px; }
.promo details.more > summary { display: inline-block; padding: 0 22px 0 0; color: var(--brand); font-weight: 600; font-size: 15px; }
.promo details.more > summary::after { right: 2px; width: 7px; height: 7px; margin-top: -5px; }
.promo details.more[open] > summary::after { margin-top: -1px; }
.promo .more-body { padding: 14px 0 0; }

.note { background: var(--warn-50); border: 1px solid #f6dcb9; border-radius: var(--radius-sm); padding: 14px 16px; margin: 1em 0; font-size: 15px; }
.note strong { color: var(--warn); }

/* documents */
.doc-list { list-style: none; padding: 0 !important; display: grid; gap: 10px; margin: 1em 0 1.6em; }
.doc-list li { margin: 0; }
.doc { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); transition: border-color .15s, box-shadow .15s; }
.doc:hover { border-color: var(--brand-100); box-shadow: var(--shadow); color: var(--brand); }
.doc-ext { flex: none; width: 46px; height: 46px; border-radius: 10px; display: grid; place-items: center; font-size: 12px; font-weight: 700; letter-spacing: .03em; background: #fdecec; color: #c0362c; }
.doc-ext[data-ext="docx"], .doc-ext[data-ext="doc"] { background: var(--brand-50); color: var(--brand); }
.doc-name { flex: 1; font-weight: 550; }
.doc-size { color: var(--muted); font-size: 14px; white-space: nowrap; }

/* tariff filter */
.tariff-filter { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 18px 20px; background: var(--soft); border-radius: var(--radius); margin-bottom: 28px; }
.tariff-filter label { font-weight: 600; color: var(--ink); }
.select { position: relative; min-width: 280px; }
.select::after { content: ""; position: absolute; right: 16px; top: 50%; width: 8px; height: 8px; margin-top: -6px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); pointer-events: none; }
.select select { width: 100%; font: inherit; font-size: 16px; color: var(--ink); padding: 11px 40px 11px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); -webkit-appearance: none; appearance: none; cursor: pointer; }
.select select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(37, 82, 176, .15); }
.tariff-data .hint { color: var(--muted); }

/* news */
.year-jump { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.year-jump a { padding: 6px 12px; border-radius: 999px; background: var(--soft); color: var(--text); text-decoration: none; font-size: 14px; font-weight: 550; font-variant-numeric: tabular-nums; }
.year-jump a:hover { background: var(--brand-50); color: var(--brand); }
.news-year { margin-bottom: 32px; }
.news-year h2 { font-size: 20px !important; color: var(--muted) !important; margin: 0 0 10px !important; font-variant-numeric: tabular-nums; }
.news-list { list-style: none; padding: 0 !important; margin: 0; border-top: 1px solid var(--line); }
.news-list li { margin: 0; border-bottom: 1px solid var(--line); }
.news-list .news-card { display: grid; grid-template-columns: 130px 1fr; gap: 16px; padding: 14px 4px; text-decoration: none; color: var(--ink); }
.news-list .news-card:hover .news-title { color: var(--brand); }
.news-list time { color: var(--muted); font-size: 15px; }
.news-list .news-title { font-weight: 550; }
.article { font-size: 17px; }
.back { margin-top: 2.4em; padding-top: 1.2em; border-top: 1px solid var(--line); }
.back a { text-decoration: none; font-weight: 600; }

/* search */
.search.search-page { width: 100%; max-width: 640px; gap: 10px; margin-bottom: 28px; }
.search.search-page input { padding: 13px 16px; font-size: 16px; }
.search.search-page .btn { position: static; transform: none; width: auto; height: auto; padding: 0 22px; color: #fff; background: var(--brand); }
.search-results .count { color: var(--muted); margin-bottom: 18px; }
.search-results ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.search-results li { margin: 0; }
.search-results a { display: block; padding: 14px 16px; border-radius: var(--radius-sm); text-decoration: none; color: var(--ink); }
.search-results a:hover { background: var(--soft); }
.search-results .r-path { display: block; font-size: 13px; color: var(--muted); margin-bottom: 2px; }
.search-results .r-title { display: block; font-weight: 600; color: var(--brand); font-size: 17px; }
.search-results .r-snippet { display: block; font-size: 15px; color: var(--text); margin-top: 4px; }
.search-results mark { background: #fff1b8; color: inherit; border-radius: 2px; padding: 0 1px; }

/* ------------------------------------------------------------ home */
.hero { padding-top: 28px; }
.slider { position: relative; border-radius: 18px; overflow: hidden; aspect-ratio: 904 / 257; background: var(--brand-700); box-shadow: var(--shadow); }
.slides { position: absolute; top: 0; right: 0; bottom: 0; left: 0; inset: 0; }
.slide { position: absolute; top: 0; right: 0; bottom: 0; left: 0; inset: 0; opacity: 0; visibility: hidden; transition: opacity .6s ease, visibility .6s; }
.slide.is-active { opacity: 1; visibility: visible; }
.slide img { width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; }
.slider-dots { position: absolute; left: 0; right: 0; bottom: 14px; display: flex; justify-content: center; gap: 8px; }
.slider-dots button { width: 9px; height: 9px; padding: 0; border-radius: 99px; border: 0; background: rgba(255, 255, 255, .6); box-shadow: 0 0 0 1px rgba(0, 0, 0, .12); cursor: pointer; transition: width .25s, background .25s; }
.slider-dots button[aria-current="true"] { width: 26px; background: #fff; }
.slider-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .88); color: var(--ink); display: grid; place-items: center; cursor: pointer; opacity: 0; transition: opacity .2s, background .2s; box-shadow: var(--shadow); }
.slider:hover .slider-arrow, .slider-arrow:focus-visible { opacity: 1; }
.slider-arrow:hover { background: #fff; }
.slider-arrow svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.slider-arrow.prev { left: 14px; } .slider-arrow.prev svg { transform: rotate(90deg); }
.slider-arrow.next { right: 14px; } .slider-arrow.next svg { transform: rotate(-90deg); }

.home-section { padding-top: 48px; }
.home-section:last-child { padding-bottom: 72px; }
.intro { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; align-items: center; margin-bottom: 36px; }
.eyebrow { margin: 0 0 10px; color: var(--sky); font-weight: 650; font-size: 14px; text-transform: uppercase; letter-spacing: .08em; }
.intro h1 { font-size: 40px; line-height: 1.12; letter-spacing: -.025em; font-weight: 700; margin-bottom: 16px; text-wrap: balance; }
.lead { font-size: 19px; color: var(--muted); margin: 0; max-width: 620px; }
.intro-contact { background: var(--soft); border-radius: 16px; padding: 24px; }
.intro-contact-title { margin: 0 0 10px; font-weight: 600; color: var(--ink); }
.intro-phones { display: grid; gap: 2px; }
.intro-phones a { font-size: 24px; font-weight: 700; color: var(--ink); text-decoration: none; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.intro-phones a:hover { color: var(--brand); }
.intro-contact .muted { margin: 6px 0 16px; font-size: 14px; }
.intro-contact .btn { width: 100%; }

.q-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.q-card { display: flex; align-items: center; gap: 16px; padding: 20px; border: 1px solid var(--line); border-radius: 14px; text-decoration: none; color: var(--ink); background: var(--surface); transition: border-color .15s, box-shadow .15s, transform .15s; }
.q-card:hover { border-color: var(--brand-100); box-shadow: var(--shadow); transform: translateY(-1px); color: var(--ink); }
.q-ico { flex: none; width: 48px; height: 48px; border-radius: 12px; background: var(--brand-50); color: var(--brand); display: grid; place-items: center; }
.q-ico svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.q-text { flex: 1; min-width: 0; display: grid; gap: 2px; }
.q-text strong { font-weight: 650; font-size: 17px; }
.q-text span { color: var(--muted); font-size: 15px; line-height: 1.4; }
.q-arrow { color: #b4bccb; transition: color .15s, transform .15s; }
.q-arrow svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.q-card:hover .q-arrow { color: var(--brand); transform: translateX(3px); }

.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.section-head h2 { font-size: 28px; letter-spacing: -.02em; }
.link-more { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; }
.link-more svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.news-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.news-grid .news-card { display: flex; flex-direction: column; gap: 8px; height: 100%; padding: 20px; border-radius: 14px; background: var(--soft); text-decoration: none; color: var(--ink); transition: background .15s; }
.news-grid .news-card:hover { background: var(--brand-50); }
.news-grid time { color: var(--muted); font-size: 14px; }
.news-grid .news-title { font-weight: 600; line-height: 1.4; }

.facts { margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); padding-top: 28px; }
.fact { padding-right: 28px; }
.fact + .fact { padding-left: 28px; border-left: 1px solid var(--line); }
.fact dt { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; margin-bottom: 6px; }
.fact dd { margin: 0; color: var(--ink); font-size: 15px; line-height: 1.5; }

/* ------------------------------------------------------------ footer */
.site-footer { background: #10203f; color: rgba(255, 255, 255, .72); font-size: 15px; flex-shrink: 0; }
.site-footer a { color: rgba(255, 255, 255, .85); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 48px; padding-top: 52px; padding-bottom: 40px; }
.f-title { margin: 0 0 12px; color: #fff; font-weight: 600; font-size: 15px; }
.f-phone { display: block; font-size: 22px; font-weight: 700; color: #fff !important; line-height: 1.35; font-variant-numeric: tabular-nums; }
.f-hours { margin: 4px 0 16px; font-size: 14px; }
.f-link { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.f-link svg { width: 18px; height: 18px; fill: #8cc8ff; }
.f-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 28px; }
.f-cols ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.f-cols a { font-size: 15px; color: rgba(255, 255, 255, .7); }
.f-bottom { display: flex; justify-content: space-between; gap: 12px 32px; flex-wrap: wrap; border-top: 1px solid rgba(255, 255, 255, .1); padding-top: 20px; padding-bottom: 28px; font-size: 14px; color: rgba(255, 255, 255, .5); }
.f-bottom p { margin: 0; }
.f-bottom a { color: rgba(255, 255, 255, .6); }

/* ------------------------------------------------------------ responsive */
@media (max-width: 1100px) {
  .header-contacts .ico { display: none; }
  .search { width: 220px; }
  .nav-link { padding: 0 13px; font-size: 15px; }
  .nav-item:first-child .nav-link { margin-left: -13px; }
  .page { grid-template-columns: 220px minmax(0, 1fr); gap: 40px; }
  .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  :root { --gutter: 20px; }
  html { scroll-padding-top: 76px; }
  .header-row { height: 64px; gap: 12px; }
  .logo img { width: 96px; }
  .search, .header-contacts, .header-row > .btn-lk { display: none; }
  .menu-toggle {
    display: grid; place-items: center; width: 44px; height: 44px; margin-right: -8px; border: 0; background: none; color: var(--ink); cursor: pointer; border-radius: 10px;
  }
  .menu-toggle svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
  .menu-toggle svg + svg, .menu-open .menu-toggle svg:first-child { display: none; }
  .menu-open .menu-toggle svg + svg { display: block; }

  .site-nav { display: none; position: fixed; top: 64px; right: 0; bottom: 0; left: 0; inset: 64px 0 0 0; background: var(--surface); overflow-y: auto; border-top: 1px solid var(--line); }
  .menu-open .site-nav { display: block; }
  .menu-open { overflow: hidden; }
  .nav-list { flex-direction: column; padding: 8px 0; }
  .nav-item { border-bottom: 1px solid var(--line); }
  .nav-link, .nav-item:first-child .nav-link { margin: 0; height: auto; padding: 16px 0 6px; color: var(--ink); font-size: 18px; font-weight: 650; background: none !important; }
  .nav-item.is-active > .nav-link { box-shadow: none; color: var(--brand); }
  .nav-chev { display: none; }
  .nav-drop, .nav-item:first-child .nav-drop { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; min-width: 0; padding: 0 0 10px; }
  .nav-drop a { padding: 8px 0; color: var(--muted); font-size: 16px; }
  .nav-drop a:hover { background: none; }
  .nav-mobile-extra { display: grid; gap: 4px; padding: 20px 0 32px; }
  .nav-mobile-extra > a:not(.btn) { font-size: 22px; font-weight: 700; color: var(--ink); text-decoration: none; }
  .nav-mobile-extra .btn { margin-top: 14px; padding: 14px; }

  .page, .page.with-side { grid-template-columns: minmax(0, 1fr); gap: 0; padding-top: 0; }
  .sidenav { position: static; margin: 0 calc(var(--gutter) * -1); padding: 12px var(--gutter); border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; background: var(--soft); }
  .sidenav::-webkit-scrollbar { display: none; }
  .sidenav > ul { border: 0; display: flex; gap: 8px; width: max-content; }
  .sidenav li { display: contents; }
  .sidenav ul ul { display: contents; }
  .sidenav a, .sidenav ul ul a { margin: 0; border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; font-size: 15px; white-space: nowrap; background: var(--surface); }
  .sidenav li.is-current > a { background: var(--brand); color: #fff; border-color: var(--brand); }
  .sidenav li.is-section:not(.is-current) > a { font-weight: 550; }
  .page-body { padding-top: 24px; }
  .page-title { font-size: 28px; margin-bottom: 22px; }

  .intro { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .intro h1 { font-size: 32px; }
  .lead { font-size: 17px; }
  .q-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .fact, .fact + .fact { padding: 0; border: 0; }

  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
}

@media (max-width: 600px) {
  :root { --gutter: 16px; }
  body { font-size: 16px; }
  .prose { font-size: 16px; }
  .prose h2 { font-size: 21px; }
  .prose h3 { font-size: 18px; }
  .prose .img-right, .prose .img-left { float: none; display: block; margin: 0 auto 18px; max-width: 70%; }
  .page-title { font-size: 25px; }
  .hero { padding-top: 0; }
  .hero .container { padding: 0; }
  .slider { border-radius: 0; aspect-ratio: 904 / 300; }
  .slider-arrow { display: none; }
  .slider-dots { bottom: 10px; }
  .home-section { padding-top: 32px; }
  .intro h1 { font-size: 27px; }
  .intro-phones a { font-size: 22px; }
  .q-grid { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .q-card { padding: 14px 16px; }
  .q-ico { width: 42px; height: 42px; }
  .news-grid { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .news-grid .news-card { padding: 16px; }
  .section-head h2 { font-size: 23px; }
  .news-list .news-card { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .news-list time { font-size: 14px; }
  .promo { flex-direction: column; gap: 12px; padding: 18px; }
  .promo-icon { width: 52px; height: 52px; }
  .promo-icon img { width: 42px; height: 42px; }
  .table th, .table td { padding: 10px 12px; }
  .table { font-size: 15px; }
  .tariff-filter { padding: 16px; }
  .select { min-width: 0; width: 100%; }
  .f-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .doc { flex-wrap: wrap; }
  .doc-name { flex-basis: calc(100% - 64px); }
  .doc-size { margin-left: 60px; margin-top: -10px; }
  .search.search-page { flex-direction: column; }
  .search.search-page .btn { padding: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}

@media print {
  .site-header, .site-footer, .sidenav, .slider { display: none !important; }
  .page { display: block; padding: 0; }
  details > :not(summary) { display: block !important; }
}
.prose [data-hl] strong, .prose [data-hl] em { color: inherit; }
.prose p.kv { margin-bottom: .35em; }
.prose p.kv + :not(.kv) { margin-top: 1.2em; }
@media (max-width: 600px) {
  .f-cols { display: none; }
  .footer-grid { padding-top: 36px; padding-bottom: 24px; }
}
@media (max-width: 600px) {
  .table-wrap.is-wide .table { min-width: 600px; }
}

/* tariff cards */
.plans { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; margin: 0 0 1.6em; }
.plan { display: flex; flex-direction: column; gap: 6px; padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); transition: border-color .15s, box-shadow .15s; }
.plan:hover { border-color: var(--brand-100); box-shadow: var(--shadow); }
.plan-tag { align-self: flex-start; font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--brand); background: var(--brand-50); padding: 3px 8px; border-radius: 6px; }
.plan-name { font-size: 18px; font-weight: 650; color: var(--ink); line-height: 1.3; }
.plan-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.plan-price strong { font-size: 30px; line-height: 1.1; font-weight: 750; letter-spacing: -.02em; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.plan-per { color: var(--muted); font-size: 15px; }
.plan-speed { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--brand); font-size: 15px; }
.plan-speed::before { content: ""; width: 16px; height: 16px; flex: none; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M13 2 4 14h7l-1 8 9-12h-7z'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M13 2 4 14h7l-1 8 9-12h-7z'/%3E%3C/svg%3E") center/contain no-repeat; }
.plan-extra { margin-top: auto; padding-top: 10px; border-top: 1px dashed var(--line); font-size: 14px; line-height: 1.45; color: var(--text); }
.plan-extra-label { color: var(--muted); }
@media (max-width: 600px) {
  .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .plan { padding: 14px; }
  .plan-name { font-size: 16px; }
  .plan-price strong { font-size: 24px; }
  .plan-per { font-size: 13px; }
  .plan-speed { font-size: 14px; }
}

/* news archive */
.news-archive { margin-top: 12px; background: var(--soft); border-color: transparent; }
.news-archive[open] { background: var(--surface); border-color: var(--line); }
.news-archive > summary { color: var(--muted); }
.news-archive .count { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 99px; background: var(--line); color: var(--muted); font-size: 13px; font-weight: 600; }
.news-archive .news-list { margin: 0 20px 14px; }

/* svg logo */
.logo img { width: auto !important; height: 54px; }
@media (max-width: 900px) { .logo img { height: 42px; } }

/* home intro (no duplicated contacts) */
.intro { display: block; max-width: 760px; margin-bottom: 36px; }
.intro-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.btn-lg { padding: 15px 24px; font-size: 16px; }
.btn-ghost { background: var(--brand-50); color: var(--brand); }
.btn-ghost:hover { background: var(--brand-100); color: var(--brand-700); }

/* how to connect */
.how { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; counter-reset: none; }
.how li { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 22px 20px 20px; border-radius: 14px; background: var(--soft); }
.how li:not(:last-child)::after { content: ""; position: absolute; top: 40px; right: -13px; width: 10px; height: 10px; border-top: 2px solid #c6d0e0; border-right: 2px solid #c6d0e0; transform: rotate(45deg); z-index: 1; }
.how-n { width: 36px; height: 36px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 700; margin-bottom: 8px; }
.how strong { color: var(--ink); font-size: 17px; font-weight: 650; }
.how span:not(.how-n) { color: var(--muted); font-size: 15px; line-height: 1.5; }
.how a { font-weight: 600; }
.how-more { margin: 18px 0 0; color: var(--muted); font-size: 15px; }

/* footer phones: only where the header has none */
@media (min-width: 901px) { .f-phones { display: none; } }

/* floating call button (mobile) */
.call-fab { display: none; }
@media (max-width: 900px) {
  .call-fab { display: grid; place-items: center; position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 40; width: 56px; height: 56px; border-radius: 50%; background: var(--green); color: #fff; box-shadow: 0 8px 24px rgba(31, 138, 76, .35); transition: transform .15s; }
  .call-fab:active { transform: scale(.94); }
  .call-fab svg { width: 24px; height: 24px; fill: currentColor; }
  .menu-open .call-fab { display: none; }
  .how { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .how li::after { display: none; }
}
@media (max-width: 600px) {
  .how { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .how li { flex-direction: row; flex-wrap: wrap; align-items: center; column-gap: 12px; padding: 16px; }
  .how-n { margin: 0; width: 32px; height: 32px; }
  .how span:not(.how-n) { flex-basis: 100%; }
  .intro-actions .btn { flex: 1; }
}

/* ------------------------------------------------------------ shared bits */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ic { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.lead-sm { font-size: 18px; color: var(--muted); }
.copy { position: relative; flex: none; width: 34px; height: 34px; margin-left: auto; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--muted); cursor: pointer; display: grid; place-items: center; transition: color .15s, border-color .15s, background .15s; }
.copy:hover { color: var(--brand); border-color: var(--brand-100); }
.copy .ic { width: 17px; height: 17px; }
.copy .ic-ok { display: none; color: var(--green); }
.copy.is-done .ic { display: none; }
.copy.is-done .ic-ok { display: block; }
.copy.is-done { border-color: var(--green); }

/* numbered steps from «1) …» paragraphs */
.prose ol.steps { list-style: none; padding: 0; counter-reset: st; display: grid; gap: 12px; margin: 1.2em 0 1.6em; }
.prose ol.steps > li { counter-increment: st; position: relative; padding: 2px 0 2px 48px; margin: 0; min-height: 32px; }
.prose ol.steps > li::before { content: counter(st); position: absolute; left: 0; top: 0; width: 32px; height: 32px; border-radius: 50%; background: var(--brand-50); color: var(--brand); font-weight: 700; font-size: 15px; display: grid; place-items: center; }
.prose ol.steps > li > ul { margin: 6px 0 0; }

/* promos */
.promo-icon { color: var(--brand); }
.promo-icon .ic { width: 30px; height: 30px; stroke-width: 1.6; }
.promo-badge { display: inline-block; margin-bottom: 8px; padding: 4px 10px; border-radius: 8px; background: var(--green-50); color: var(--green); font-size: 14px; font-weight: 650; }

/* contact cards */
.contact-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.contact-card, .pay-card { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 22px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); margin-bottom: 1.4em; }
.contact-cards .contact-card { margin: 0; }
.contact-card--wide { max-width: 560px; }
.cc-head { display: flex; align-items: center; gap: 12px; }
.cc-head h2 { margin: 0 !important; font-size: 19px !important; }
.cc-ico { width: 42px; height: 42px; border-radius: 12px; background: var(--brand-50); color: var(--brand); display: grid; place-items: center; flex: none; }
.cc-ico .ic { width: 22px; height: 22px; }
.cc-list { list-style: none; margin: 0 !important; padding: 0 !important; display: grid; gap: 10px; width: 100%; }
.cc-row { display: flex; align-items: center; gap: 12px; margin: 0 !important; }
.cc-row > .ic { color: var(--muted); }
.cc-row > span { display: flex; flex-direction: column; line-height: 1.35; min-width: 0; }
.cc-main { font-weight: 650; font-size: 17px; color: var(--ink) !important; text-decoration: none; font-variant-numeric: tabular-nums; word-break: break-all; }
.cc-main:hover { color: var(--brand) !important; }
.cc-sub { font-size: 14px; color: var(--muted); }
.cc-note { margin: 0 !important; color: var(--muted); font-size: 15px; }
.contact-card .btn, .pay-card .btn { margin-top: auto; }
.contact-card .btn .ic, .pay-card .btn .ic { width: 18px; height: 18px; fill: currentColor; stroke: none; }
.pay-card { max-width: 620px; }
.pay-card ol.steps { margin: 4px 0 8px; }

/* connected homes */
.home-search { position: relative; max-width: 520px; margin-bottom: 22px; }
.home-search .ic { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.home-search input { width: 100%; font: inherit; font-size: 16px; color: var(--ink); padding: 12px 14px 12px 44px; border: 1px solid var(--line); border-radius: 10px; background: var(--soft); -webkit-appearance: none; appearance: none; }
.home-search input:focus { outline: none; border-color: var(--brand); background: var(--surface); box-shadow: 0 0 0 3px rgba(37, 82, 176, .15); }
.home-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: start; }
.home-card { border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; background: var(--surface); }
.home-card h2 { display: flex; align-items: center; gap: 8px; font-size: 18px !important; margin: 0 0 10px !important; }
.home-card h2 .ic { color: var(--brand); }
.home-card ul { list-style: none; padding: 0 !important; margin: 0 !important; display: grid; gap: 10px; }
.home-row { margin: 0 !important; display: grid; gap: 4px; }
.home-row .street { font-weight: 600; color: var(--ink); font-size: 15px; }
.houses { display: flex; flex-wrap: wrap; gap: 4px; }
.house { min-width: 30px; padding: 2px 7px; border-radius: 6px; background: var(--soft); font-size: 14px; text-align: center; font-variant-numeric: tabular-nums; }
.home-empty { padding: 14px 16px; border-radius: 10px; background: var(--warn-50); }

/* requisites */
.req { margin: 0 0 1.6em; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.req-row { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 16px; padding: 12px 18px; border-bottom: 1px solid var(--line); align-items: center; }
.req-row:last-child { border-bottom: 0; }
.req-row:nth-child(odd) { background: var(--soft); }
.req dt { color: var(--muted); font-size: 15px; }
.req dd { margin: 0; display: flex; align-items: center; gap: 10px; color: var(--ink); font-variant-numeric: tabular-nums; min-width: 0; }
.req dd > span { min-width: 0; overflow-wrap: anywhere; }

/* 404 */
.nf { padding-top: 64px; padding-bottom: 88px; max-width: 760px; }
.nf-code { margin: 0; font-size: 88px; line-height: 1; font-weight: 750; letter-spacing: -.04em; color: var(--brand-100); }
.nf .lead { margin-bottom: 22px; }
.nf-links { list-style: none; padding: 0; margin: 0 0 24px; display: flex; flex-wrap: wrap; gap: 8px; }
.nf-links a { display: block; padding: 8px 14px; border-radius: 999px; background: var(--soft); text-decoration: none; font-weight: 550; }

@media (max-width: 760px) {
  .contact-cards, .home-cards { grid-template-columns: minmax(0, 1fr); }
  .req-row { grid-template-columns: minmax(0, 1fr); gap: 2px; padding: 10px 14px; }
  .nf-code { font-size: 64px; }
}

/* ------------------------------------------------------------ dark theme */
:root { --surface: #fff; color-scheme: light; }
.logo .logo-dark { display: none; }
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --brand: #4f80e8; --brand-600: #3f6fd8; --brand-700: #9db9ff;
    --brand-50: #172443; --brand-100: #253a68;
    --sky: #5fb6f0;
    --ink: #eef2f9; --text: #ccd5e3; --muted: #93a0b6;
    --line: #253049; --soft: #131c2f; --white: #0b1220; --surface: #0f1729;
    --green: #45c27a; --green-50: #12291d; --warn: #f2a65a; --warn-50: #2a1f12;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 4px 16px rgba(0, 0, 0, .3);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, .5);
  }
  body { background: #0b1220; }
  .site-header { background: rgba(11, 18, 32, .95); }
  .site-nav { background: #183878; }
  .logo .logo-light { display: none; }
  .logo .logo-dark { display: block; }
  .nav-drop, details, .promo, .plan, .q-card, .doc, .select select, .search input:focus, .home-search input:focus { background: var(--surface); }
  .search input, .select select { border-color: var(--line); }
  .table tbody tr:hover td { background: #121b2e; }
  .sidenav li.is-current > a { background: linear-gradient(90deg, var(--brand-50), transparent); }
  .slider-arrow { background: rgba(15, 23, 41, .85); color: var(--ink); }
  .slider-arrow:hover { background: var(--surface); }
  .house { background: #18233a; }
  .prose img:not(.ic) { filter: brightness(.92); }
  .doc-ext { background: #3a1716; color: #ff8a80; }
  .doc-ext[data-ext="docx"], .doc-ext[data-ext="doc"] { background: var(--brand-50); color: #8fb0ff; }
  .search-results mark { background: #5a4a10; }
  .btn-ghost { color: #9db9ff; }
  a:hover { color: #b9ceff; }
  .site-footer { background: #070d19; }
  .note { border-color: #4a3518; }
  .home-empty { color: var(--text); }
  .nf-code { color: var(--brand-100); }
  .sidenav a, .sidenav ul ul a { background: transparent; }
  @media (max-width: 900px) {
    .site-nav { background: #0b1220; }
    .sidenav { background: var(--soft); }
    .sidenav a, .sidenav ul ul a { background: var(--surface); }
    .sidenav li.is-current > a { background: var(--brand); color: #fff; }
  }
}
[hidden] { display: none !important; }
.support-more { display: flex; align-items: center; gap: 14px; margin-top: 24px; padding: 18px 20px; border-radius: 14px; background: var(--soft); }
.support-more p { margin: 0; }

/* ------------------------------------------------------------ colour accents */
:root {
  --a1: #2f6be0; --a2: #12a38a; --a3: #7352d6; --a4: #1d9be6; --a5: #f08a24; --a6: #e0517a;
}
@media (prefers-color-scheme: dark) {
  :root { --a1: #5b8cf0; --a2: #2cc4a8; --a3: #9a80f0; --a4: #4cb6f2; --a5: #f6a24f; --a6: #f07799; }
}
.tint { --acc: var(--a1); }

/* menu bar: brand gradient */
.site-nav { background: linear-gradient(90deg, #1e47a3 0%, #2552b0 45%, #1f7fd6 100%); }
@media (prefers-color-scheme: dark) { .site-nav { background: linear-gradient(90deg, #142f6e 0%, #183878 50%, #135996 100%); } }
@media (max-width: 900px) { .site-nav { background: var(--surface); } }

/* home intro: soft colour glow */
.page-home .intro { position: relative; }
.page-home .home-section:first-of-type, .page-home .hero + .home-section { position: relative; }
.page-home .site-main { background:
    radial-gradient(520px 300px at 6% 560px, color-mix(in srgb, var(--a4) 13%, transparent), transparent 70%),
    radial-gradient(480px 280px at 55% 470px, color-mix(in srgb, var(--a3) 9%, transparent), transparent 70%),
    radial-gradient(520px 320px at 96% 600px, color-mix(in srgb, var(--a2) 12%, transparent), transparent 70%);
  background-repeat: no-repeat; }
.eyebrow { background: linear-gradient(90deg, var(--a1), var(--a2)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* quick links: each with its own colour */
.q-card:nth-child(6n+1) { --acc: var(--a1); }
.q-card:nth-child(6n+2) { --acc: var(--a2); }
.q-card:nth-child(6n+3) { --acc: var(--a5); }
.q-card:nth-child(6n+4) { --acc: var(--a3); }
.q-card:nth-child(6n+5) { --acc: var(--a4); }
.q-card:nth-child(6n+6) { --acc: var(--a6); }
.q-card .q-ico { background: color-mix(in srgb, var(--acc) 13%, transparent); color: var(--acc); }
.q-card:hover { border-color: color-mix(in srgb, var(--acc) 40%, transparent); }
.q-card:hover .q-arrow { color: var(--acc); }

/* how-to-connect: coloured steps */
.how li:nth-child(1) { --acc: var(--a1); }
.how li:nth-child(2) { --acc: var(--a2); }
.how li:nth-child(3) { --acc: var(--a3); }
.how li:nth-child(4) { --acc: var(--a5); }
.how li { background: color-mix(in srgb, var(--acc) 8%, var(--surface)); border: 1px solid color-mix(in srgb, var(--acc) 18%, transparent); }
.how-n { background: var(--acc); box-shadow: 0 6px 16px color-mix(in srgb, var(--acc) 35%, transparent); }

/* news cards: colour stripe */
.news-grid li:nth-child(4n+1) { --acc: var(--a1); }
.news-grid li:nth-child(4n+2) { --acc: var(--a6); }
.news-grid li:nth-child(4n+3) { --acc: var(--a2); }
.news-grid li:nth-child(4n+4) { --acc: var(--a5); }
.news-grid .news-card { position: relative; overflow: hidden; background: color-mix(in srgb, var(--acc) 7%, var(--surface)); }
.news-grid .news-card::before { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 4px; background: var(--acc); }
.news-grid .news-card:hover { background: color-mix(in srgb, var(--acc) 13%, var(--surface)); }
.news-grid time { color: var(--acc); font-weight: 600; }

/* facts */
.fact:nth-child(1) dt { color: var(--a1); }
.fact:nth-child(2) dt { color: var(--a3); }
.fact:nth-child(3) dt { color: var(--a2); }

/* inner pages: tinted band behind the title */
.page-inner .site-main { background:
  radial-gradient(600px 260px at 85% 0%, color-mix(in srgb, var(--a4) 11%, transparent), transparent 70%),
  radial-gradient(520px 240px at 30% 0%, color-mix(in srgb, var(--a3) 7%, transparent), transparent 70%); background-repeat: no-repeat; }

/* tariff cards: colour per plan */
.plan:nth-child(6n+1) { --acc: var(--a4); }
.plan:nth-child(6n+2) { --acc: var(--a1); }
.plan:nth-child(6n+3) { --acc: var(--a2); }
.plan:nth-child(6n+4) { --acc: var(--a3); }
.plan:nth-child(6n+5) { --acc: var(--a5); }
.plan:nth-child(6n+6) { --acc: var(--a6); }
.plan { position: relative; overflow: hidden; }
.plan::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--acc); }
.plan:hover { border-color: color-mix(in srgb, var(--acc) 45%, transparent); }
.plan-speed { color: var(--acc); }
.plan-tag { background: color-mix(in srgb, var(--acc) 13%, transparent); color: var(--acc); }

/* FAQ / promos / cards */
details[open] { border-left: 3px solid var(--a1); }
.faq details:nth-child(5n+2)[open] { border-left-color: var(--a2); }
.faq details:nth-child(5n+3)[open] { border-left-color: var(--a3); }
.faq details:nth-child(5n+4)[open] { border-left-color: var(--a5); }
.faq details:nth-child(5n+5)[open] { border-left-color: var(--a4); }
.promo:nth-of-type(4n+1) { --acc: var(--a1); }
.promo:nth-of-type(4n+2) { --acc: var(--a5); }
.promo:nth-of-type(4n+3) { --acc: var(--a3); }
.promo:nth-of-type(4n+4) { --acc: var(--a2); }
.promo { border-top: 4px solid var(--acc); }
.promo-icon { background: color-mix(in srgb, var(--acc) 13%, transparent); color: var(--acc); }
.contact-card:nth-child(1), .pay-card { --acc: var(--a1); }
.contact-card:nth-child(2) { --acc: var(--a3); }
.contact-card:nth-child(3) { --acc: var(--a4); }
.contact-card:nth-child(4) { --acc: var(--a2); }
.contact-card .cc-ico, .pay-card .cc-ico, .support-more .cc-ico { background: color-mix(in srgb, var(--acc, var(--a1)) 13%, transparent); color: var(--acc, var(--a1)); }
.home-card:nth-child(5n+1) { --acc: var(--a1); }
.home-card:nth-child(5n+2) { --acc: var(--a2); }
.home-card:nth-child(5n+3) { --acc: var(--a3); }
.home-card:nth-child(5n+4) { --acc: var(--a5); }
.home-card:nth-child(5n+5) { --acc: var(--a4); }
.home-card { border-top: 4px solid var(--acc); }
.home-card h2 .ic { color: var(--acc); }
.home-card .house { background: color-mix(in srgb, var(--acc) 10%, transparent); }
.prose ol.steps > li::before { background: color-mix(in srgb, var(--a1) 14%, transparent); color: var(--a1); }
.prose ol.steps > li:nth-child(4n+2)::before { background: color-mix(in srgb, var(--a2) 14%, transparent); color: var(--a2); }
.prose ol.steps > li:nth-child(4n+3)::before { background: color-mix(in srgb, var(--a3) 14%, transparent); color: var(--a3); }
.prose ol.steps > li:nth-child(4n+4)::before { background: color-mix(in srgb, var(--a5) 14%, transparent); color: var(--a5); }
.year-jump a:hover { background: color-mix(in srgb, var(--a4) 15%, transparent); }

/* footer: colour line on top */
.site-footer { position: relative; }
.site-footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: linear-gradient(90deg, var(--a1), var(--a4), var(--a2), var(--a3), var(--a5)); }

/* keep coloured text readable on light backgrounds */
@media (prefers-color-scheme: light) {
  .plan-speed, .plan-tag, .news-grid time, .q-card .q-ico, .fact dt, .promo-icon, .home-card h2 .ic { color: color-mix(in srgb, var(--acc, var(--a1)) 64%, #000); }
}
.table.services td:last-child { font-weight: 400; color: var(--text); font-size: 15px; min-width: 260px; }
.table.services td:first-child { min-width: 150px; }
.note--info { background: var(--brand-50); border-color: var(--brand-100); }
.prose ol.steps > li > p { margin: 6px 0 0; }
.prose ol.steps > li > ul { margin-top: 8px; }
.prose p.tariff-note { font-size: 15px; color: var(--muted); margin-bottom: .4em; padding-left: 14px; position: relative; }
.prose p.tariff-note::before { content: ""; position: absolute; left: 0; top: .65em; width: 5px; height: 5px; border-radius: 50%; background: var(--line); }
.plan-extra { line-height: 1.5; }

/* site-wide notice (assets/notice.js) */
.site-notice { background: #fff4e0; color: #4a2e05; border-bottom: 1px solid #f3d29a; font-size: 15px; line-height: 1.45; }
.site-notice-in { display: flex; align-items: center; gap: 12px; padding-top: 12px; padding-bottom: 12px; }
.site-notice p { margin: 0; flex: 1; }
.site-notice strong { color: #3a2203; }
.site-notice a { color: #8a4b00; font-weight: 650; white-space: nowrap; }
.site-notice-ic { width: 22px; height: 22px; flex: none; fill: none; stroke: #c26a00; stroke-width: 2; stroke-linecap: round; }
.site-notice-x { flex: none; width: 32px; height: 32px; border: 0; border-radius: 8px; background: transparent; color: #8a4b00; font-size: 22px; line-height: 1; cursor: pointer; }
.site-notice-x:hover { background: rgba(194, 106, 0, .12); }
@media (prefers-color-scheme: dark) {
  .site-notice { background: #2e2310; color: #f3dfbd; border-color: #4d3a17; }
  .site-notice strong { color: #ffe9c2; }
  .site-notice a { color: #ffc56e; }
  .site-notice-ic { stroke: #ffb347; }
  .site-notice-x { color: #ffc56e; }
}
@media (max-width: 600px) { .site-notice { font-size: 14px; } .site-notice-in { align-items: flex-start; } }

/* ------------------------------------------------------------ simplified home + compact footer */
.home-intro { padding-top: 40px; }
.home-intro--lead { padding-top: 56px; }
.home-intro .intro { margin-bottom: 28px; max-width: 720px; }
.home-intro--lead .intro h1 { font-size: 44px; }
.news-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.page-home .home-section:last-of-type { padding-bottom: 64px; }

.site-footer--compact .f-compact { display: flex; align-items: center; justify-content: space-between; gap: 14px 32px; flex-wrap: wrap; padding-top: 26px; padding-bottom: 26px; }
.site-footer--compact .f-copy { margin: 0; color: rgba(255, 255, 255, .6); font-size: 15px; }
.site-footer--compact .f-links { display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 15px; }
.site-footer--compact .f-links a { color: rgba(255, 255, 255, .8); }
.site-footer--compact .f-phones { flex-basis: 100%; }
@media (min-width: 901px) { .site-footer--compact .f-phones { display: none; } }
@media (max-width: 900px) {
  .news-grid--3 { grid-template-columns: minmax(0, 1fr); }
  .home-intro--lead .intro h1 { font-size: 32px; }
  .site-footer--compact .f-compact { flex-direction: column; align-items: flex-start; padding-bottom: 96px; }
}
@media (max-width: 600px) {
  .home-intro, .home-intro--lead { padding-top: 28px; }
  .home-intro--lead .intro h1 { font-size: 28px; }
}

/* settlement buttons */
.tariff-filter { display: block; }
.tariff-filter-label { margin: 0 0 12px; font-weight: 600; color: var(--ink); }
.city-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.city-btn { font: inherit; font-size: 15px; font-weight: 550; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; transition: background .15s, border-color .15s, color .15s; }
.city-btn:hover { border-color: var(--brand-100); color: var(--brand); }
.city-btn[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }

/* news archive by years */
.news-archive-body { padding: 0 20px 14px; }
.news-archive-body .news-list { margin: 0 0 14px !important; }
.news-archive-year { font-size: 16px !important; color: var(--muted) !important; margin: 14px 0 6px !important; }

/* mobile menu: backdrop-filter on the header would make the fixed menu size itself to the header */
@media (max-width: 900px) {
  .site-header { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--surface); }
  .site-nav { height: calc(100vh - 64px); height: calc(100dvh - 64px); }
}
.home-card { display: flex; flex-direction: column; }
.home-tariffs { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line); font-weight: 600; font-size: 15px; text-decoration: none; color: var(--acc, var(--brand)) !important; }
.home-tariffs svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .15s; }
.home-tariffs:hover svg { transform: translateX(3px); }
@media (prefers-color-scheme: light) { .home-tariffs { color: color-mix(in srgb, var(--acc, var(--a1)) 64%, #000) !important; } }
/* headings inside FAQ answers — not page-size */
.faq-body h3, .more-body h3 { font-size: 16px; margin: 1em 0 .4em; }

/* ---- страница перехода в ПВОНЕТ */
mark.todo { background: #fde68a; color: #713f12; padding: 0 4px; border-radius: 4px; font-weight: 600; }
.tr .tr-calc { margin: 1.4em 0 2em; padding: 24px; border-radius: 16px; background: linear-gradient(135deg, var(--brand-50), var(--surface)); border: 1px solid var(--line); }
.tr .tr-calc h2 { margin-top: 0; }
.tr-row { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 14px 18px; margin-top: 14px; }
.tr-field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--muted); }
.tr-field input { width: 180px; font-family: inherit; font-size: 26px; font-weight: 600; line-height: 1; letter-spacing: .06em; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--text); }
.tr-field input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-50); }
.tr-new { display: block; min-width: 200px; font-size: 26px; font-weight: 700; letter-spacing: .06em; padding: 12px 14px; border-radius: 12px; background: var(--brand); color: #fff; line-height: 1; }
.tr-arrow { font-size: 26px; color: var(--muted); padding-bottom: 12px; }
.tr-hint { color: #b45309; margin: 10px 0 0; font-size: 14px; }
.tr-note { color: var(--muted); font-size: 13px; margin: 12px 0 0; }
.tr-cmp { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 1em 0 1.6em; }
.tr-cmp > div { padding: 18px 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.tr-cmp h3 { margin: 0 0 8px; font-size: 16px; }
.tr-cmp ul { margin: 0; }
@media (max-width: 600px) {
  .tr-cmp { grid-template-columns: 1fr; }
  .tr-arrow { display: none; }
  .tr-field, .tr-field input, .tr-new { width: 100%; }
}
.tr-row .tr-copy { margin: 0 0 9px; width: 42px; height: 42px; }
.tr-row .tr-copy[hidden] { display: none; }
@media (max-width: 600px) { .tr-row { flex-wrap: nowrap; flex-direction: column; align-items: stretch; } .tr-row .tr-copy { align-self: flex-end; margin-top: -4px; } }

/* место под полосу прокрутки резервируется всегда — страница не «прыгает» */
html { scrollbar-gutter: stable; }

/* поддержка: шаги «не работает интернет» */
.help-steps { margin: 1.2em 0 2em; }
.help-steps .steps { margin: 4px 0 0 !important; }
.help-steps .steps li { color: var(--text); }
.pay-card.help-steps { max-width: none; }
.prose a[href^="tel:"] { white-space: nowrap; }

/* прайс на работы */
.price-list { margin-top: 2.4em; scroll-margin-top: 90px; }
.pl-table td.pl-unit { color: var(--muted); white-space: nowrap; }
.pl-table td.pl-price { white-space: nowrap; font-weight: 600; text-align: right; }
.pl-table th:last-child { text-align: right; }
.pl-callout td { background: var(--brand-50); }
.pl-callout td.pl-price { white-space: normal; font-weight: 600; color: var(--brand); }
.pl-sub { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; }
@media (max-width: 600px) {
  .pl-table thead { display: none; }
  .pl-table tr { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
  .pl-table td { display: block; border: 0 !important; padding: 0 !important; background: none !important; }
  .pl-table td:first-child { grid-column: 1 / -1; }
  .pl-table td.pl-unit { font-size: 13px; }
  .pl-table td.pl-price { text-align: right; }
}
.co-title { margin-top: 1.8em; scroll-margin-top: 90px; }
.co-list { display: grid; gap: 10px; margin: .8em 0; }
.co-group { display: grid; grid-template-columns: 96px 1fr; gap: 16px; align-items: start; padding: 14px 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.co-price { font-weight: 700; font-size: 18px; color: var(--brand); white-space: nowrap; }
.prose .co-places { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 8px; }
.prose .co-places li { margin: 0; padding: 3px 10px; border-radius: 999px; background: var(--brand-50); font-size: 14px; }
.prose .co-places li::before { display: none; }
.co-note { color: var(--muted); font-size: 14px; }
@media (max-width: 600px) { .co-group { grid-template-columns: 1fr; gap: 8px; } }

/* тарифы: особенности тарифа отдельными строками с иконками */
.plan-feats { list-style: none; margin: 8px 0 0 !important; padding: 10px 0 0 !important; border-top: 1px dashed var(--line); display: grid; gap: 8px; }
.prose .plan-feats li, .plan-feats li { position: relative; margin: 0; padding: 0 0 0 26px; font-size: 14px; line-height: 1.35; }
.prose .plan-feats li::before, .plan-feats li::before { content: ""; position: absolute; left: 0; top: 1px; width: 17px; height: 17px; border-radius: 0; background: var(--acc, var(--brand)); -webkit-mask: var(--ic) center / contain no-repeat; mask: var(--ic) center / contain no-repeat; }
.plan-feats b { display: block; font-weight: 600; color: var(--text); }
.plan-feats span { display: block; color: var(--muted); font-size: 13px; margin-top: 1px; }
.pf-night { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 14.5A8 8 0 1 1 9.5 4a6.5 6.5 0 0 0 10.5 10.5z'/%3E%3C/svg%3E"); }
.pf-fast { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M13 3 4 14h7l-1 7 9-11h-7z'/%3E%3C/svg%3E"); }
.pf-grow { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 17l6-6 4 4 6-7M14 8h6v6'/%3E%3C/svg%3E"); }
.pf-giga { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M12 5l7 7-7 7'/%3E%3C/svg%3E"); }
.pf-home { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 11 12 4l9 7v9H3z'/%3E%3C/svg%3E"); }
.pf-info { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 11v5M12 8v.01'/%3E%3C/svg%3E"); }

/* тест скорости */
.speed-frame { margin: 1.2em 0 1.8em; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: #fff; }
.speed-frame iframe { display: block; width: 100%; height: 620px; border: 0; }
@media (max-width: 600px) { .speed-frame iframe { height: 560px; } }
.help-speed { margin: 10px 0 0; font-size: 15px; }

/* тест скорости — общие элементы */
.st { --st-dl: var(--brand); --st-ul: #0d9488; margin: 1.2em 0 1em; padding: 28px 24px 22px; border: 1px solid var(--line); border-radius: 18px; background: linear-gradient(160deg, var(--brand-50), var(--surface) 60%); display: flex; flex-direction: column; align-items: center; text-align: center; }
.prose .st-phase { margin: 14px 0 10px; min-height: 1.5em; font-weight: 600; color: var(--text); }
.st[data-phase="err"] .st-phase { color: #b91c1c; }
.st-progress { width: min(360px, 100%); height: 4px; border-radius: 4px; background: color-mix(in srgb, var(--brand) 12%, transparent); overflow: hidden; }
.st-progress i { display: block; height: 100%; width: 0; background: var(--st-dl); transition: width .2s linear; }
.st[data-phase="ul"] .st-progress i { background: var(--st-ul); }
.st .btn.st-start { margin-top: 18px; min-width: 220px; justify-content: center; }
.st-start:disabled { opacity: .6; cursor: progress; }
.st-tiles { display: grid; gap: 10px; width: 100%; margin-top: 22px; }
.st-tiles-5 { grid-template-columns: repeat(6, 1fr); }
.st-tiles-5 .st-dl, .st-tiles-5 .st-ul { grid-column: span 3; }
.st-tiles-5 .st-ping, .st-tiles-5 .st-lping, .st-tiles-5 .st-jit { grid-column: span 2; }
.st-tiles-3 { grid-template-columns: repeat(3, 1fr); }
.st-tile { padding: 12px 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.st-label { font-size: 13px; color: var(--muted); display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.st-num { font-size: 13px; color: var(--muted); }
.st-num b { font-size: 22px; color: var(--text); font-variant-numeric: tabular-nums; }
.st-dl .st-num b { font-size: 28px; }
.st-ul .st-num b { font-size: 28px; }
.st-tile.is-done { border-color: color-mix(in srgb, var(--brand) 35%, var(--line)); }
.st-extra { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 14px; margin-top: 18px; width: 100%; }
.st-tariff-l { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.st-tariff { font: inherit; font-size: 14px; color: var(--text); padding: 8px 30px 8px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.prose .st-verdict { margin: 14px 0 0; padding: 10px 14px; border-radius: 12px; font-size: 15px; font-weight: 600; text-align: left; width: 100%; }
.st-verdict.is-ok { background: #dcfce7; color: #166534; }
.st-verdict.is-mid { background: #fef3c7; color: #92400e; }
.st-verdict.is-low { background: #fee2e2; color: #991b1b; }
.prose .st-note { font-size: 14px; color: var(--muted); line-height: 1.5; }

/* вариант A — спидометр */
.st-dial { position: relative; width: min(360px, 100%); }
.st-dial svg { display: block; width: 100%; height: auto; }
.st-arc-bg, .st-arc-val { fill: none; stroke-width: 14; stroke-linecap: round; }
.st-arc-bg { stroke: color-mix(in srgb, var(--brand) 12%, transparent); }
.st-arc-val { stroke: var(--st-dl); transition: stroke-dashoffset .25s linear; }
.st[data-phase="ul"] .st-arc-val { stroke: var(--st-ul); }
.st-read { position: absolute; left: 0; right: 0; bottom: 6%; display: flex; flex-direction: column; align-items: center; }
.st-now { font-size: 52px; font-weight: 800; letter-spacing: -.02em; line-height: 1; color: var(--text); font-variant-numeric: tabular-nums; }
.st-unit { font-size: 14px; color: var(--muted); margin-top: 4px; }
.st-scale { display: flex; justify-content: space-between; padding: 6px 4px 0; font-size: 12px; color: var(--muted); }

/* вариант B — график (оформление) */
.st--b { align-items: stretch; text-align: left; padding: 22px; gap: 16px; background: var(--surface); box-shadow: 0 1px 2px rgba(15,23,42,.04), 0 12px 32px -18px rgba(30,64,175,.25); }
.st--b > * { margin: 0 !important; }
.sb-head { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.sb-big { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 14px; background: color-mix(in srgb, var(--c) 7%, var(--surface)); }
.sb-dl { --c: var(--st-dl); } .sb-ul { --c: var(--st-ul); }
.sb-ico { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 15%, transparent); color: var(--c); }
.sb-ico svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.sb-l { display: block; font-size: 13px; font-weight: 600; color: var(--muted); }
.sb-v { display: flex; align-items: baseline; gap: 6px; line-height: 1; margin-top: 4px; }
.sb-v b { font-size: 40px; font-weight: 800; letter-spacing: -.03em; color: var(--text); font-variant-numeric: tabular-nums; }
.sb-v small { font-size: 13px; color: var(--muted); }
.st--b[data-phase="dl"] .sb-dl, .st--b[data-phase="ul"] .sb-ul { box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--c) 45%, transparent); }
.st--b .st-chart { position: relative; height: 190px; margin: 0; border: 0; border-radius: 14px; overflow: hidden;
  background: linear-gradient(180deg, var(--brand-50), transparent 75%); }
.st--b .st-chart canvas { position: absolute; left: 0; right: 0; top: 34px; bottom: 6px; width: 100%; height: calc(100% - 40px); }
.sb-live { position: absolute; right: 14px; top: 10px; font-size: 13px; color: var(--muted); }
.sb-live .st-now { font-size: 18px; font-weight: 800; color: var(--text); }
.sb-status { position: absolute; left: 14px; top: 12px; display: flex; align-items: center; gap: 8px; }
.prose .st--b .st-phase { margin: 0; min-height: 0; font-size: 14px; font-weight: 600; color: var(--text); }
.sb-spin { width: 14px; height: 14px; border-radius: 50%; border: 2px solid color-mix(in srgb, var(--brand) 25%, transparent); border-top-color: var(--brand); display: none; animation: sb-rot .8s linear infinite; }
.st--b[data-phase="ping"] .sb-spin, .st--b[data-phase="probe"] .sb-spin, .st--b[data-phase="dl"] .sb-spin, .st--b[data-phase="ul"] .sb-spin { display: inline-block; }
.st--b[data-phase="done"] .sb-status::before { content: "✓"; color: #16a34a; font-weight: 800; }
@keyframes sb-rot { to { transform: rotate(360deg); } }
.st--b .st-progress { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 3px; border-radius: 0; background: transparent; }
.sb-stats { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: 14px; }
.sb-stat { padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; }
.sb-stat + .sb-stat { border-left: 1px solid var(--line); }
.sb-stat-l { font-size: 13px; color: var(--muted); line-height: 1.25; }
.sb-stat-v { display: flex; align-items: baseline; gap: 4px; }
.sb-stat-v b { font-size: 22px; font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; }
.sb-stat-v small { font-size: 12px; color: var(--muted); }
.st--b .btn.sb-go { align-self: center; min-width: 260px; padding: 14px 28px; font-size: 16px; border-radius: 999px; }
.st--b .st-extra { justify-content: space-between; padding-top: 14px; border-top: 1px dashed var(--line); }
.st--b .st-verdict { text-align: left; }
@media (max-width: 600px) {
  .st--b { padding: 14px; gap: 12px; }
  .sb-head { gap: 8px; }
  .sb-big { flex-direction: column; align-items: flex-start; gap: 8px; padding: 12px; }
  .sb-ico { width: 32px; height: 32px; border-radius: 10px; }
  .sb-ico svg { width: 18px; height: 18px; }
  .sb-v b { font-size: 30px; }
  .st--b .st-chart { height: 150px; }
  .sb-stat { padding: 10px; }
  .sb-stat-v b { font-size: 18px; }
  .st--b .btn.sb-go { width: 100%; min-width: 0; }
  .st--b .st-extra { justify-content: center; }
}

/* вариант C — минимал */
.st--c { background: var(--surface); }
.st-go { position: relative; width: 210px; height: 210px; border-radius: 50%; border: 0; cursor: pointer; color: #fff; font: inherit;
  background: radial-gradient(circle at 30% 25%, color-mix(in srgb, var(--st-dl) 70%, #fff), var(--st-dl) 70%);
  box-shadow: 0 18px 40px -12px color-mix(in srgb, var(--st-dl) 60%, transparent), inset 0 0 0 10px rgba(255,255,255,.12); display: grid; place-items: center; transition: transform .15s, background .3s; }
.st-go:hover:not(:disabled) { transform: scale(1.03); }
.st-go:disabled { opacity: 1; cursor: progress; }
.st--c[data-phase="ul"] .st-go { background: radial-gradient(circle at 30% 25%, color-mix(in srgb, var(--st-ul) 70%, #fff), var(--st-ul) 70%); box-shadow: 0 18px 40px -12px color-mix(in srgb, var(--st-ul) 60%, transparent), inset 0 0 0 10px rgba(255,255,255,.12); }
.st-go::after { content: ""; position: absolute; top: -10px; right: -10px; bottom: -10px; left: -10px; inset: -10px; border-radius: 50%; border: 3px solid color-mix(in srgb, var(--st-dl) 30%, transparent); opacity: 0; }
.st--c[data-phase="dl"] .st-go::after, .st--c[data-phase="ul"] .st-go::after, .st--c[data-phase="ping"] .st-go::after, .st--c[data-phase="probe"] .st-go::after { animation: st-pulse 1.4s ease-out infinite; }
@keyframes st-pulse { 0% { transform: scale(.94); opacity: .9; } 100% { transform: scale(1.12); opacity: 0; } }
.st-go-label { font-size: 34px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.st-go-val, .st-go-again { display: none; }
.st-go .st-now { color: #fff; font-size: 54px; }
.st-go .st-unit { color: rgba(255,255,255,.8); display: block; }
.st-go-again { position: absolute; bottom: 34px; left: 0; right: 0; font-size: 13px; color: rgba(255,255,255,.85); }
.st--c:not([data-phase=""]):not([data-phase="err"]) .st-go-label { display: none; }
.st--c:not([data-phase=""]):not([data-phase="err"]) .st-go-val { display: block; }
.st--c[data-phase="done"] .st-go-again { display: block; }
.st--c .st-progress { display: none; }
.st--c .st-phase { margin-top: 20px; }

@media (max-width: 600px) {
  .st { padding: 22px 14px 16px; }
  .st-now { font-size: 42px; }
  .st-tiles-5 { grid-template-columns: repeat(6, 1fr); }
  .st-tiles-3 { grid-template-columns: repeat(3, 1fr); }
  .st-tile { padding: 10px 6px; }
  .st-num b { font-size: 18px; }
  .st-dl .st-num b, .st-ul .st-num b { font-size: 24px; }
  .st-label { font-size: 12px; }
  .st--b .st-big .st-num b { font-size: 32px; }
  .st-chart { height: 130px; }
  .st-go { width: 180px; height: 180px; }
  .st-tariff-l { width: 100%; justify-content: center; }
}

/* таблицы услуг на телефоне: строка = карточка (название — цена, описание ниже) */
@media (max-width: 600px) {
  .prose table.table:not(.pl-table) thead { display: none; }
  .prose table.table:not(.pl-table) tr { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
  .prose table.table:not(.pl-table) td { display: block; border: 0 !important; padding: 0 !important; background: none !important; text-align: left !important; }
  .prose table.table:not(.pl-table) td:first-child { font-weight: 600; }
  .prose table.table:not(.pl-table) td:nth-child(2) { text-align: right !important; font-weight: 600; white-space: nowrap; }
  .prose table.table:not(.pl-table) td:nth-child(n+3) { grid-column: 1 / -1; color: var(--muted); font-size: 14px; }
  .prose .table-wrap:has(table.table:not(.pl-table)) { overflow: visible; }
}

/* ровнее правый край абзацев; на телефоне — больше места тексту в карточках-шагах */
/* text-wrap: pretty убран — с неразрывными пробелами давал рваные строки */
@media (max-width: 600px) {
  .pay-card { padding: 18px 16px; }
  .prose ol.steps > li { padding-left: 42px; }
  .prose ol.steps > li::before { width: 28px; height: 28px; font-size: 14px; }
  .help-steps .cc-head h2 { font-size: 18px !important; }
}

/* карточки тарифов на телефоне: цена и период всегда в две строки, одинаково во всех карточках */
@media (max-width: 600px) {
  .plan-price { display: flex; flex-direction: column; align-items: flex-start; gap: 0; }
  .plan-price strong { font-size: 26px; line-height: 1.15; }
  .plan-per { margin: 0 !important; }
  .plan-feats li { font-size: 13px; padding-left: 22px; }
  .plan-feats li::before { width: 15px; height: 15px; }
  .plan-feats span { font-size: 12px; }
  .plan-name { font-size: 15px; }
}

/* тест скорости: строка с IP и историей */
.st-info { display: flex; flex-wrap: wrap; gap: 6px 8px; }
.st-info-i { display: inline-flex; align-items: baseline; gap: 6px; padding: 5px 10px; border-radius: 999px; background: var(--brand-50); font-size: 13px; }
.st-info-i i { font-style: normal; color: var(--muted); }
.st-info-i b { font-weight: 600; color: var(--text); font-variant-numeric: tabular-nums; }
.st-net.is-in { background: #dcfce7; } .st-net.is-in b { color: #166534; }
.st-net.is-out { background: #fef3c7; } .st-net.is-out b { color: #92400e; }
.st-hist { width: 100%; text-align: left; }
.prose .st-hist-h { margin: 4px 0 6px; font-size: 13px; color: var(--muted); font-weight: 600; }
.prose .st-hist ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; counter-reset: none; }
.prose .st-hist li { margin: 0; padding: 6px 10px; border-radius: 10px; background: var(--brand-50); display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 14px; font-variant-numeric: tabular-nums; }
.prose .st-hist li::before { display: none; }
.st-hist time { color: var(--muted); min-width: 82px; }
.st-hist .h-dl { color: var(--st-dl); font-weight: 600; } .st-hist .h-ul { color: var(--st-ul); font-weight: 600; }
.st-hist .h-p, .st-hist .h-c, .st-hist .h-ip { color: var(--muted); }
.st-hist .h-ip { margin-left: auto; }
.st-tariff-l[hidden] { display: none !important; }
.q-card[hidden] { display: none !important; }

.st-hist-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.st-hist-clear { border: 0; background: none; padding: 4px 2px; font: inherit; font-size: 13px; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.st-hist-clear:hover { color: #b91c1c; }

.st-advice { width: 100%; text-align: left; padding: 10px 14px 10px 40px; border-radius: 12px; background: var(--brand-50); position: relative; font-size: 14px; }
.st-advice::before { content: "i"; position: absolute; left: 12px; top: 11px; width: 18px; height: 18px; border-radius: 50%; background: var(--brand); color: #fff; font: 700 12px/18px Georgia, serif; text-align: center; }
.prose .st-advice p { margin: 0; }
.prose .st-advice p + p { margin-top: 8px; }
.st-hist .h-d { color: var(--muted); }

/* ===== тест скорости, вариант Б — v2 ===== */
.st--b { gap: 14px; padding: 20px; }
.st--b .sb-head { gap: 12px; }
.st--b .sb-big { flex-direction: column; align-items: flex-start; gap: 6px; padding: 14px 16px 16px; }
.st--b .sb-l { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--muted); }
.st--b .sb-ico { width: 24px; height: 24px; border-radius: 8px; }
.st--b .sb-ico svg { width: 15px; height: 15px; stroke-width: 2.6; }
.st--b .sb-v { margin: 0; }
.st--b .sb-v b { font-size: 44px; }
.st--b .sb-big b { transition: color .2s; }
.st--b[data-phase=""] .sb-v b, .st--b[data-phase="err"] .sb-v b { color: color-mix(in srgb, var(--text) 25%, transparent); }

/* график и кнопка старта внутри него */
.st--b .st-chart { height: 210px; }
.sb-cta { position: absolute; left: 50%; top: 55%; transform: translate(-50%, -50%); display: inline-flex; align-items: center; gap: 12px;
  padding: 16px 30px 16px 18px; border: 0; border-radius: 999px; cursor: pointer; font: inherit; font-size: 17px; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, color-mix(in srgb, var(--st-dl) 80%, #60a5fa), var(--st-dl)); box-shadow: 0 14px 30px -10px color-mix(in srgb, var(--st-dl) 70%, transparent); transition: transform .15s, box-shadow .15s; }
.sb-cta:hover { transform: translate(-50%, -50%) scale(1.04); }
.sb-cta-ico { width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.2); display: grid; place-items: center; }
.sb-cta-ico svg { width: 16px; height: 16px; fill: #fff; margin-left: 2px; }
.st--b:not([data-phase=""]):not([data-phase="err"]) .sb-cta, .st--b.has-run .sb-cta { display: none; }
.st--b[data-phase=""] .sb-live, .st--b[data-phase="err"] .sb-live { visibility: hidden; }
.st--b[data-phase=""] .sb-status .st-phase { color: var(--muted); font-weight: 500; }

/* результат сразу под цифрами */
.st--b .st-verdict, .st--b .st-advice { margin: 0 !important; }
.st--b .sb-stats { border-radius: 14px; }
.st--b .sb-stat-l { white-space: nowrap; }

/* управление */
.st--b .sb-ctrl { margin: 0; padding: 0; border: 0; justify-content: space-between; gap: 10px; }
.sb-ctrl-btns { display: inline-flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.st--b .btn.sb-again { min-width: 0; margin: 0; padding: 10px 22px; border-radius: 999px; }
.st--b .st-copy { border-radius: 999px; }
.st--b .sb-again[hidden], .st--b .st-copy[hidden] { display: none; }

/* служебная строка: IP, сеть, устройство — мелко, одной строкой */
.sb-meta { gap: 4px 6px; padding-top: 12px; border-top: 1px dashed var(--line); }
.sb-meta .st-info-i { padding: 3px 9px; font-size: 12px; background: transparent; border: 1px solid var(--line); }
.sb-meta .st-net.is-in { border-color: #bbf7d0; background: #f0fdf4; }
.sb-meta .st-net.is-out { border-color: #fde68a; background: #fffbeb; }
.st--b .st-hist { margin: 0; }

@media (max-width: 600px) {
  .st--b { padding: 12px; gap: 10px; }
  .st--b .sb-big { padding: 12px; }
  .st--b .sb-v b { font-size: 32px; }
  .st--b .st-chart { height: 180px; }
  .sb-cta { font-size: 16px; padding: 14px 24px 14px 14px; white-space: nowrap; }
  .st--b .sb-ctrl { flex-direction: column; align-items: stretch; }
  .st--b .st-tariff-l { justify-content: space-between; width: auto; }
  .sb-ctrl-btns { justify-content: stretch; }
  .sb-ctrl-btns .btn { flex: 1; justify-content: center; }
  .sb-stat { padding: 10px 8px; }
  .sb-stat-l { font-size: 12px; }
}

/* тёмная тема: цветные плашки теста скорости, итог, пометки */
@media (prefers-color-scheme: dark) {
  .st-verdict.is-ok { background: rgba(34,197,94,.14); color: #86efac; }
  .st-verdict.is-mid { background: rgba(245,158,11,.14); color: #fcd34d; }
  .st-verdict.is-low { background: rgba(239,68,68,.15); color: #fca5a5; }
  .st-net.is-in, .sb-meta .st-net.is-in { background: rgba(34,197,94,.12); border-color: rgba(34,197,94,.35); }
  .st-net.is-in b { color: #86efac; }
  .st-net.is-out, .sb-meta .st-net.is-out { background: rgba(245,158,11,.12); border-color: rgba(245,158,11,.35); }
  .st-net.is-out b { color: #fcd34d; }
  .st-advice { background: color-mix(in srgb, var(--brand) 14%, transparent); }
  .st--b { box-shadow: none; }
  .st--b .sb-big { background: color-mix(in srgb, var(--c) 14%, var(--surface)); }
  .st--b .st-chart { background: linear-gradient(180deg, color-mix(in srgb, var(--brand) 12%, transparent), transparent 75%); }
  .st-hist-clear:hover { color: #fca5a5; }
  mark.todo { background: #854d0e; color: #fef3c7; }
}

/* поддержка: кнопка теста скорости под шагами */
.help-speed { display: flex; align-items: center; justify-content: space-between; gap: 12px 16px; flex-wrap: wrap; margin-top: 16px !important; padding: 14px 16px; border-radius: 12px; background: var(--brand-50); }
.prose .help-speed p { margin: 0; font-size: 15px; }
.help-speed .btn { flex: none; }
@media (max-width: 600px) { .help-speed .btn { width: 100%; justify-content: center; } }
@media (min-width: 601px) { .news-grid.news-grid--3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); } }

/* шапка непрозрачная — без просвечивания при прокрутке */
.site-header { background: var(--surface); -webkit-backdrop-filter: none; backdrop-filter: none; }

/* главная: блок между слайдером и карточками */
.home-intro { padding-top: 28px; }
.home-intro .hi { margin-bottom: 20px; }
.hi-title { font-size: 26px; line-height: 1.2; letter-spacing: -.015em; margin: 0; }
.hi--a { display: flex; align-items: baseline; justify-content: space-between; gap: 10px 24px; flex-wrap: wrap; }
.hi-facts { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; color: var(--muted); }
.hi-facts li { margin: 0; position: relative; padding-left: 16px; }
.hi-facts li::before { content: ""; position: absolute; left: 0; top: .55em; width: 7px; height: 7px; border-radius: 50%; background: var(--brand); opacity: .5; }
.hi-facts b { color: var(--text); font-weight: 600; }
.hi--b, .hi--c { display: flex; flex-direction: column; gap: 14px; }
.hi-alert, .hi-move { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-radius: 14px; text-decoration: none; color: var(--text); }
.hi-alert { background: #fff7ed; border: 1px solid #fed7aa; }
.hi-alert-ico { flex: none; width: 28px; height: 28px; border-radius: 50%; background: #f97316; color: #fff; font-weight: 800; display: grid; place-items: center; }
.hi-alert-go, .hi-move-go { margin-left: auto; flex: none; display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--brand); white-space: nowrap; }
.hi-alert-go svg, .hi-move-go svg { width: 16px; height: 16px; }
.hi-move { background: linear-gradient(135deg, var(--brand), color-mix(in srgb, var(--brand) 70%, #22d3ee)); color: #fff; padding: 18px 22px; box-shadow: 0 14px 30px -16px color-mix(in srgb, var(--brand) 80%, transparent); }
.hi-move-tag { flex: none; padding: 4px 10px; border-radius: 999px; background: rgba(255,255,255,.2); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.hi-move-text { display: flex; flex-direction: column; gap: 4px; }
.hi-move-text b { font-size: 17px; }
.hi-move-text span { font-size: 14px; opacity: .9; }
.hi-move .hi-move-go { color: #fff; background: rgba(255,255,255,.18); padding: 10px 14px; border-radius: 999px; }
@media (max-width: 700px) {
  .hi-title { font-size: 22px; }
  .hi-alert, .hi-move { flex-wrap: wrap; }
  .hi-alert-go, .hi-move-go { margin-left: 0; }
  .hi-move-tag { order: -1; }
}
@media (prefers-color-scheme: dark) {
  .hi-alert { background: rgba(249,115,22,.12); border-color: rgba(249,115,22,.35); }
}

/* ровный шаг строк: целые размеры шрифта и межстрочного интервала в пикселях
   (дробные значения на Windows давали шаг 27/28 px — строки «плясали») */
body { line-height: 26px; }
.prose { font-size: 17px; line-height: 28px; }
.prose li { line-height: 28px; }
.prose .lead-sm, .lead-sm { line-height: 30px; }
.prose small, .prose .muted, .st-note, .prose .st-note { line-height: 22px; }
.faq-body p, .faq-body li { line-height: 26px; }
@media (max-width: 600px) {
  .prose { font-size: 16px; line-height: 26px; }
  .prose li { line-height: 26px; }
  .faq-body p, .faq-body li { line-height: 25px; }
}

/* выравнивание текста по ширине с переносами (абзацы, списки и ответы; карточки и таблицы — без) */
.prose p, .prose ul:not([class]) > li, .prose ol.steps > li, .faq-body p {
  text-align: justify; -webkit-hyphens: auto; hyphens: auto; hyphenate-limit-chars: 6 3 3;
}
.prose .lead-sm, .prose .st-note, .prose .st-verdict, .prose .help-speed p, .prose .tr-note, .prose .tr-rule,
.prose .co-note, .prose .hi-facts li, .prose p.tariff-note { text-align: left; -webkit-hyphens: manual; hyphens: manual; }
@media (max-width: 420px) {
  .prose p, .prose ul:not([class]) > li, .prose ol.steps > li, .faq-body p { text-align: left; }
}

/* мобильные браузеры */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
/* iOS увеличивает страницу при фокусе на поле с шрифтом меньше 16 px */
@media (max-width: 900px) { input, select, textarea { font-size: 16px !important; } }
/* убрать серую подсветку при нажатии на Android/iOS */
a, button, summary, .q-card, .city-btn { -webkit-tap-highlight-color: transparent; }

/* ===== страница «Состояние сети» ===== */
.ns { --ns-line: var(--brand); margin: 1.2em 0 1em; padding: 18px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.ns-sum { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px 14px 48px; border-radius: 14px; position: relative; background: var(--soft); }
.ns-sum::before { content: ""; position: absolute; left: 16px; top: 17px; width: 18px; height: 18px; border-radius: 50%; background: var(--muted); }
.ns-sum b { font-size: 17px; color: var(--text); }
.ns-sum span { font-size: 14px; color: var(--muted); }
.ns-sum.is-ok { background: #ecfdf3; } .ns-sum.is-ok::before { background: #16a34a; box-shadow: 0 0 0 5px rgba(22,163,74,.18); }
.ns-sum.is-warn { background: #fffbeb; } .ns-sum.is-warn::before { background: #f59e0b; box-shadow: 0 0 0 5px rgba(245,158,11,.2); }
.ns-sum.is-bad { background: #fef2f2; } .ns-sum.is-bad::before { background: #dc2626; box-shadow: 0 0 0 5px rgba(220,38,38,.18); }
.ns-cols, .ns-head { display: grid; grid-template-columns: 14px minmax(0, 1.6fr) 64px 72px 56px 64px minmax(100px, 1.3fr); align-items: center; gap: 12px; }
.ns-cols { margin: 16px 0 4px; padding: 0 12px; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.prose .ns-g { margin: 14px 0 6px; font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.ns-row { border-radius: 12px; }
.ns-row + .ns-row { margin-top: 2px; }
.ns-head { width: 100%; padding: 10px 12px; border: 0; border-radius: 12px; background: transparent; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.ns-head:hover, .ns-row.is-open .ns-head { background: var(--soft); }
.ns-dot { width: 12px; height: 12px; border-radius: 50%; background: #16a34a; }
.ns-row.is-warn .ns-dot { background: #f59e0b; } .ns-row.is-bad .ns-dot { background: #dc2626; } .ns-row.is-none .ns-dot { background: var(--line); }
.ns-name { display: flex; flex-direction: column; min-width: 0; }
.ns-name b { font-weight: 600; font-size: 15px; color: var(--text); }
.ns-name small { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ns-v { font-size: 13px; color: var(--muted); white-space: nowrap; }
.ns-v b { font-size: 16px; color: var(--text); font-variant-numeric: tabular-nums; }
.ns-row.is-bad .ns-v b { color: #dc2626; }
.ns-l.is-lossy b { color: #dc2626; }
.ns-spark { width: 100%; height: 30px; display: block; }
.ns-more { display: none; padding: 6px 12px 12px; }
.ns-row.is-open .ns-more { display: block; }
.ns-big { width: 100%; height: 180px; display: block; }
.prose .ns-cap { margin: 6px 0 0; font-size: 13px; color: var(--muted); }
.prose .ns-upd { margin: 12px 0 0; font-size: 13px; color: var(--muted); text-align: right; }
.prose .ns-upd.is-stale { color: #dc2626; font-weight: 600; }
@media (max-width: 700px) {
  .ns { padding: 12px; }
  .ns-cols { display: none; }
  .ns-head { grid-template-columns: 12px minmax(0, 1fr) auto auto; grid-template-areas: "d n p l" "s s s u"; gap: 4px 10px; }
  .ns-u { grid-area: u; align-self: center; font-size: 12px; } .ns-u b { font-size: 13px; }
  .ns-dot { grid-area: d; } .ns-name { grid-area: n; } .ns-p { grid-area: p; } .ns-l { grid-area: l; }
  .ns-j { display: none; }
  .ns-spark { grid-area: s; height: 26px; margin-top: 4px; }
  .ns-big { height: 150px; }
}
@media (prefers-color-scheme: dark) {
  .ns-sum.is-ok { background: rgba(22,163,74,.12); } .ns-sum.is-warn { background: rgba(245,158,11,.12); } .ns-sum.is-bad { background: rgba(220,38,38,.14); }
}

/* описание узла: всплывающая подсказка при наведении (на телефоне — текст в раскрытой строке) */
.ns-name { position: relative; }
.ns-i { display: inline-flex; align-items: center; justify-content: center; width: 15px; height: 15px; margin-left: 6px; border-radius: 50%; border: 1px solid var(--line); font: italic 600 10px/1 Georgia, serif; color: var(--muted); vertical-align: 1px; }
.ns-pop { position: absolute; left: 0; top: calc(100% + 8px); z-index: 5; width: max-content; max-width: min(340px, 80vw); padding: 10px 12px; border-radius: 10px; background: var(--text); color: var(--surface); font-size: 13px; line-height: 19px; font-weight: 400; white-space: normal; box-shadow: 0 8px 24px rgba(15,23,42,.18); opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity .15s, transform .15s, visibility 0s .15s; pointer-events: none; }
.ns-pop::before { content: ""; position: absolute; left: 18px; top: -5px; width: 10px; height: 10px; background: inherit; transform: rotate(45deg); }
.ns-head:hover .ns-pop, .ns-head:focus-visible .ns-pop { opacity: 1; visibility: visible; transform: none; transition-delay: .25s, .25s, 0s; }
.ns-row.is-open .ns-pop { display: none; }
.prose .ns-desc { margin: 0 0 8px; font-size: 14px; line-height: 21px; color: var(--muted); text-align: left; }
@media (hover: none) { .ns-pop { display: none; } }

/* состояние сети: период, группы, доступность, журнал, подсказка на графике */
.ns-top { display: flex; gap: 12px; align-items: stretch; }
.ns-top .ns-sum { flex: 1; min-width: 0; }
.ns-per { display: inline-flex; align-self: flex-start; padding: 3px; border-radius: 12px; background: var(--soft); border: 1px solid var(--line); }
.ns-per button { padding: 7px 14px; border: 0; border-radius: 9px; background: transparent; font: inherit; font-size: 14px; font-weight: 600; color: var(--muted); cursor: pointer; }
.ns-per button[aria-pressed="true"] { background: var(--surface); color: var(--text); box-shadow: 0 1px 3px rgba(15,23,42,.12); }
.prose h2.ns-g { margin: 14px 0 4px; padding: 0; font-size: 13px; text-transform: none; letter-spacing: 0; }
.ns-g-btn { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 12px; border: 0; border-radius: 10px; background: transparent; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.ns-g-btn:hover { background: var(--soft); }
.ns-g-t { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.ns-g-st { font-size: 13px; font-weight: 500; color: #15803d; }
.ns-g-st.is-warn { color: #b45309; } .ns-g-st.is-bad { color: #dc2626; font-weight: 600; }
.ns-chev { margin-left: auto; width: 8px; height: 8px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .15s; }
.ns-g-btn[aria-expanded="false"] .ns-chev { transform: rotate(-45deg); }
.ns-gb[hidden] { display: none; }
.ns-u b { font-size: 15px; }
.ns-u.is-warn b { color: #b45309; } .ns-u.is-bad b { color: #dc2626; }
.ns-bigw { position: relative; }
.ns-big { touch-action: pan-y; cursor: crosshair; }
.ns-tt { position: absolute; top: -6px; z-index: 4; padding: 6px 10px; border-radius: 8px; background: var(--text); color: var(--surface); font-size: 12px; line-height: 17px; white-space: nowrap; pointer-events: none; transform: translateY(-100%); box-shadow: 0 6px 18px rgba(15,23,42,.18); }
.ns-tt b { display: block; font-weight: 600; }
.ns-tt[hidden] { display: none; }
.prose .ns-upd { margin-bottom: 0; }
.ns-ev { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.prose h2.ns-evh { margin: 0 0 8px; font-size: 17px; letter-spacing: 0; }
.ns-evh small { font-size: 13px; font-weight: 500; color: var(--muted); }
.prose .ns-ev0 { margin: 0; font-size: 14px; color: var(--muted); text-align: left; }
.prose ul.ns-el { list-style: none; margin: 0; padding: 0; }
.prose .ns-el li.ns-e { display: grid; grid-template-columns: 12px 178px minmax(0, 1fr) minmax(0, 1.2fr) 96px; gap: 10px; align-items: center; margin: 0; padding: 8px 12px; border-radius: 10px; font-size: 14px; line-height: 20px; text-align: left; }
.prose .ns-el li.ns-e::before { display: none; }
.ns-e:nth-child(odd) { background: var(--soft); }
.ns-e .ns-dot { width: 10px; height: 10px; }
.ns-e.is-warn .ns-dot { background: #f59e0b; } .ns-e.is-bad .ns-dot { background: #dc2626; }
.ns-e.is-on .ns-dot { box-shadow: 0 0 0 4px rgba(220,38,38,.2); }
.ns-e-t { color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ns-e-n b { font-weight: 600; color: var(--text); } .ns-e-n small { font-size: 12px; color: var(--muted); }
.ns-e-w { color: var(--text); }
.ns-e-d { text-align: right; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.ns-e.is-on .ns-e-d { color: #dc2626; font-weight: 600; }
.ns-more-ev { margin-top: 10px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); font: inherit; font-size: 14px; font-weight: 600; color: var(--brand); cursor: pointer; }
.ns-more-ev:hover { background: var(--soft); }
@media (max-width: 700px) {
  .ns-top { flex-direction: column; }
  .ns-per { align-self: stretch; } .ns-per button { flex: 1; }
  .prose .ns-el li.ns-e { grid-template-columns: 10px minmax(0, 1fr) auto; grid-template-areas: "d n dd" "d t t" "d w w"; gap: 2px 10px; align-items: start; }
  .ns-e .ns-dot { grid-area: d; margin-top: 5px; } .ns-e-n { grid-area: n; } .ns-e-d { grid-area: dd; } .ns-e-t { grid-area: t; font-size: 13px; } .ns-e-w { grid-area: w; font-size: 13px; color: var(--muted); }
  .ns-g-st { font-size: 12px; }
}
@media (prefers-color-scheme: dark) {
  .ns-g-st { color: #4ade80; } .ns-g-st.is-warn, .ns-u.is-warn b { color: #fbbf24; } .ns-g-st.is-bad, .ns-u.is-bad b { color: #f87171; }
}

/* h3, превращённые сборкой в h2 для правильной структуры, выглядят как прежде */
.prose h2.h3 { font-size: 19px; margin: 1.6em 0 .6em; letter-spacing: 0; }
@media (max-width: 900px) { .prose h2.h3 { font-size: 18px; } }
/* тёмная тема: кнопки чуть темнее — белый текст должен читаться (контраст ≥ 4.5) */
@media (prefers-color-scheme: dark) {
  .btn:not(.btn-ghost), .btn-lk { background: #3563c9; border-color: #3563c9; }
  .btn:not(.btn-ghost):hover, .btn-lk:hover { background: #2f5bbd; }
}

/* контраст (проверка axe, WCAG AA) */
.city-btn { transition: none; }
.city-btn[aria-pressed="true"] { background: #2552b0; border-color: #2552b0; color: #fff; }
.news-archive .count { color: var(--text); }
.nf-code { color: #6f8cc9; }
.search-page button[type="submit"] { background: #2552b0; border-color: #2552b0; color: #fff; }
@media (prefers-color-scheme: dark) {
  .city-btn[aria-pressed="true"], .search-page button[type="submit"] { background: #3563c9; border-color: #3563c9; }
  .nf-code { color: #5d7fc6; }
  .pl-callout td.pl-price, .pl-callout td.pl-price a { color: #9db9ff; }
  .ns-l.is-lossy b, .ns-row.is-bad .ns-v b, .prose .ns-upd.is-stale { color: #f87171; }
  .search-results mark, .r-title mark { color: #fde68a; background: rgba(250,204,21,.16); }
}
@media (prefers-color-scheme: dark) { .search.search-page .btn { background: #3563c9; } }

/* история проверок и прайс: устойчиво к крупному шрифту на телефоне */
.prose .st-hist li { line-height: 20px; gap: 2px 12px; padding: 8px 12px; }
.st-hist .h-meta { flex-basis: 100%; color: var(--muted); font-size: 13px; line-height: 18px; overflow-wrap: anywhere; }
.prose .st-hist-h { line-height: 18px; margin: 0; }
.st-hist-top { align-items: flex-start; margin-bottom: 8px; }
.st-hist-clear { flex-shrink: 0; padding-top: 0; line-height: 18px; }
@media (max-width: 600px) {
  .pl-table tr { align-items: baseline; }
  .pl-table td.pl-unit, .pl-table td.pl-price { line-height: 22px; }
}
.st-hist .h-p { margin-left: auto; }
.st-hist .h-meta { order: 5; }
/* во время замера стрелка и полоска двигаются покадрово — CSS-анимация только мешает */
.st.is-live .st-progress i, .st.is-live .st-arc-val { transition: none; }

/* запасные цвета для браузеров без color-mix() — сгенерировано сборкой */
@supports not (color: color-mix(in srgb, red 50%, blue)) {
.page-home .site-main { background:
    radial-gradient(520px 300px at 6% 560px, rgba(29,155,230,0.13), transparent 70%),
    radial-gradient(480px 280px at 55% 470px, rgba(115,82,214,0.09), transparent 70%),
    radial-gradient(520px 320px at 96% 600px, rgba(18,163,138,0.12), transparent 70%); }
.q-card .q-ico { background: rgba(47,107,224,0.13); }
.q-card:hover { border-color: rgba(47,107,224,0.40); }
.how li { background: #eef3fd; border: 1px solid rgba(47,107,224,0.18); }
.how-n { box-shadow: 0 6px 16px rgba(47,107,224,0.35); }
.news-grid .news-card { background: #f0f5fd; }
.news-grid .news-card:hover { background: #e4ecfb; }
.page-inner .site-main { background:
  radial-gradient(600px 260px at 85% 0%, rgba(29,155,230,0.11), transparent 70%),
  radial-gradient(520px 240px at 30% 0%, rgba(115,82,214,0.07), transparent 70%); }
.plan:hover { border-color: rgba(47,107,224,0.45); }
.plan-tag { background: rgba(47,107,224,0.13); }
.promo-icon { background: rgba(47,107,224,0.13); }
.contact-card .cc-ico, .pay-card .cc-ico, .support-more .cc-ico { background: rgba(47,107,224,0.13); }
.home-card .house { background: rgba(47,107,224,0.10); }
.prose ol.steps > li::before { background: rgba(47,107,224,0.14); }
.prose ol.steps > li:nth-child(4n+2)::before { background: rgba(18,163,138,0.14); }
.prose ol.steps > li:nth-child(4n+3)::before { background: rgba(115,82,214,0.14); }
.prose ol.steps > li:nth-child(4n+4)::before { background: rgba(240,138,36,0.14); }
.year-jump a:hover { background: rgba(29,155,230,0.15); }
@media (prefers-color-scheme: light) { .plan-speed, .plan-tag, .news-grid time, .q-card .q-ico, .fact dt, .promo-icon, .home-card h2 .ic { color: #1e448f; } }
@media (prefers-color-scheme: light) { .home-tariffs { color: #1e448f !important; } }
.st-progress { background: rgba(37,82,176,0.12); }
.st-tile.is-done { border-color: #a0b3d9; }
.st-arc-bg { stroke: rgba(37,82,176,0.12); }
.sb-big { background: #f0f3f9; }
.sb-ico { background: rgba(37,82,176,0.15); }
.st--b[data-phase="dl"] .sb-dl, .st--b[data-phase="ul"] .sb-ul { box-shadow: inset 0 0 0 2px rgba(37,82,176,0.45); }
.sb-spin { border: 2px solid rgba(37,82,176,0.25); }
.st-go { background: radial-gradient(circle at 30% 25%, #6686c8, var(--st-dl) 70%); box-shadow: 0 18px 40px -12px rgba(37,82,176,0.60), inset 0 0 0 10px rgba(255,255,255,.12); }
.st--c[data-phase="ul"] .st-go { background: radial-gradient(circle at 30% 25%, #56b4ac, var(--st-ul) 70%); box-shadow: 0 18px 40px -12px rgba(13,148,136,0.60), inset 0 0 0 10px rgba(255,255,255,.12); }
.st-go::after { border: 3px solid rgba(37,82,176,0.30); }
.st--b[data-phase=""] .sb-v b, .st--b[data-phase="err"] .sb-v b { color: rgba(43,52,69,0.25); }
.sb-cta { background: linear-gradient(135deg, #3163bf, var(--st-dl)); box-shadow: 0 14px 30px -10px rgba(37,82,176,0.70); }
@media (prefers-color-scheme: dark) { .st-advice { background: rgba(79,128,232,0.14); } }
@media (prefers-color-scheme: dark) { .st--b .sb-big { background: #182644; } }
@media (prefers-color-scheme: dark) { .st--b .st-chart { background: linear-gradient(180deg, rgba(79,128,232,0.12), transparent 75%); } }
.hi-move { background: linear-gradient(135deg, var(--brand), #2479c3); box-shadow: 0 14px 30px -16px rgba(37,82,176,0.80); }
.sb-ul { background: #edf7f6; } .sb-ul .sb-ico { background: rgba(13,148,136,0.15); }
@media (prefers-color-scheme: dark) { .st--b .sb-ul { background: #10302f; } }
}
