/* Прототип сторінки провайдерів: /lab/provayderi/ (.lx-site) і /lab/provayderi_new/ (.lx-new).
   Усе під префіксом .lx, щоб не чіпати бойові сторінки. Сайтові bundle.min.css і main.min.css
   на сторінці є (typeahead, модалка покриття, SweetAlert), тож скидаємо їхні відступи локально. */

/* ——— Токени ——————————————————————————————————————————————————————— */

body.lx-body {
  --ink: #0f2033;
  --ink-2: #45607c;
  --ink-3: #7a8fa6;
  --line: #dfe7f0;
  --line-soft: #edf2f8;
  --paper: #ffffff;
  --mist: #f3f7fc;
  --mist-2: #e8eff8;
  --brand: #1e94f2;
  --brand-deep: #0a5c9e;
  --brand-wash: #e7f2fe;
  --cta: #f97316;
  --cta-deep: #e35f05;
  --on-cta: #ffffff;
  --hi: #0f9d58;
  --mid: #e39a14;
  --lo: #d3453e;
  --hi-wash: #e6f6ee;
  --warn-ink: #a4461a;
  --r: 14px;
  --r-sm: 10px;
  --shadow: 0 1px 2px rgba(15, 32, 51, 0.05), 0 10px 30px rgba(15, 32, 51, 0.07);
  --shadow-lift: 0 2px 4px rgba(15, 32, 51, 0.08), 0 16px 40px rgba(15, 32, 51, 0.12);
  --f-body: "SFUIText", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --f-display: "FuturaPT", "SFUIText", -apple-system, "Segoe UI", sans-serif;
  --nav-top: 0px;
  background: var(--paper);
}

body.lx-new {
  --f-body: "Golos Text", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --f-display: "Jost", "Golos Text", -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}

/* Темна тема лише в новому дизайні: сайтова шапка й підвал світлі */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) body.lx-new {
    --ink: #eef3f9;
    --ink-2: #b3c2d3;
    --ink-3: #8195ab;
    --line: #263548;
    --line-soft: #1c2938;
    --paper: #0e1722;
    --mist: #131f2d;
    --mist-2: #1a2839;
    --brand: #4fa9f5;
    --brand-deep: #8cc7fa;
    --brand-wash: #14304a;
    --cta: #fb8a3c;
    --cta-deep: #ffa564;
    --on-cta: #1a0d02;
    --hi: #2fc07a;
    --mid: #f5b34a;
    --lo: #f06a63;
    --hi-wash: #12352a;
    --warn-ink: #f7a27a;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 10px 30px rgba(0, 0, 0, 0.35);
    --shadow-lift: 0 2px 4px rgba(0, 0, 0, 0.45), 0 16px 40px rgba(0, 0, 0, 0.5);
    color-scheme: dark;
  }
}

:root[data-theme="dark"] body.lx-new {
  --ink: #eef3f9;
  --ink-2: #b3c2d3;
  --ink-3: #8195ab;
  --line: #263548;
  --line-soft: #1c2938;
  --paper: #0e1722;
  --mist: #131f2d;
  --mist-2: #1a2839;
  --brand: #4fa9f5;
  --brand-deep: #8cc7fa;
  --brand-wash: #14304a;
  --cta: #fb8a3c;
  --cta-deep: #ffa564;
  --on-cta: #1a0d02;
  --hi: #2fc07a;
  --mid: #f5b34a;
  --lo: #f06a63;
  --hi-wash: #12352a;
  --warn-ink: #f7a27a;
  color-scheme: dark;
}

.lx-sr {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.lx,
.lx-head,
.lx-foot,
.lx-sticky {
  font-family: var(--f-body);
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  line-height: 1.55;
}

.lx *,
.lx *::before,
.lx *::after {
  box-sizing: border-box;
}

.lx h1,
.lx h2,
.lx h3,
.lx .lx-val,
.lx .lx-big,
.lx .lx-facts dt,
.lx .lx-rank {
  font-family: var(--f-display);
  color: var(--ink);
}

.lx h1 {
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 0 0 12px;
  text-wrap: balance;
}

.lx h2 {
  font-size: clamp(25px, 3vw, 34px);
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 10px;
  text-wrap: balance;
}

.lx h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 6px;
  line-height: 1.3;
}

.lx p {
  margin: 0 0 12px;
}

.lx a {
  color: var(--brand-deep);
}

.lx button {
  font-family: inherit;
  cursor: pointer;
}

.lx :focus-visible,
.lx-head :focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 2px;
}

.lx [hidden] {
  display: none !important;
}

.lx-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.lx-sub {
  color: var(--ink-2);
  font-size: 17px;
  max-width: 68ch;
}

.lx-lbl {
  display: block;
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--ink-3);
  font-weight: 600;
  font-family: var(--f-body);
}

/* ——— Оболонка: поточний дизайн ——————————————————————————————————— */

/* .page-content має overflow: hidden, а це вбиває position: sticky у меню сторінки */
body.lx-site .page-content {
  overflow: visible;
  overflow: clip;
  padding-top: 78px;
}

body.lx-site .page-header {
  padding-top: 14px;
}

body.lx-site .lx {
  background: var(--paper);
  border-radius: 18px 18px 0 0;
}

/* ——— Оболонка: новий дизайн ——————————————————————————————————————— */

body.lx-new {
  background: var(--paper);
  color: var(--ink);
}

.lx-head {
  border-bottom: 1px solid var(--line-soft);
  background: var(--paper);
}

.lx-head__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 64px;
}

.lx-logo {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 23px;
  letter-spacing: -0.02em;
  color: var(--ink) !important;
  text-decoration: none !important;
}

.lx-logo small {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-3);
  letter-spacing: 0;
}

.lx-head__nav {
  display: flex;
  gap: 24px;
  font-size: 15px;
}

.lx-head__nav a {
  color: var(--ink-2);
  text-decoration: none;
}

.lx-head__nav a:hover,
.lx-head__nav a[aria-current] {
  color: var(--ink);
}

.lx-head__nav a[aria-current] {
  font-weight: 600;
}

@media (max-width: 760px) {
  .lx-head__nav {
    display: none;
  }
}

.lx-foot {
  border-top: 1px solid var(--line-soft);
  background: var(--paper);
  color: var(--ink-3);
  font-size: 14px;
  padding: 26px 0 40px;
}

.lx-foot__row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  align-items: center;
  justify-content: space-between;
}

.lx-foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.lx-foot a {
  color: var(--ink-2);
  text-decoration: none;
}

/* ——— Герой ————————————————————————————————————————————————————————— */

.lx-hero {
  padding: 22px 0 34px;
}

body.lx-site .lx-hero {
  border-radius: 18px 18px 0 0;
}

.lx-crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  color: var(--ink-3);
  margin-bottom: 18px;
}

.lx-crumbs a {
  color: var(--ink-2);
  text-decoration: none;
}

.lx-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  gap: 44px;
  align-items: center;
}

.lx-hero__sub {
  font-size: 18px;
  color: var(--ink-2);
  max-width: 56ch;
}

@media (max-width: 920px) {
  .lx-hero__grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }
}

/* Стандартна форма пошуку міста: сайтовий typeahead, свої розміри */
.lx-search {
  display: flex;
  gap: 10px;
  align-items: stretch;
  margin: 20px 0 0;
  max-width: 660px;
}

.lx-search__field {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  margin: 0 !important;
  padding: 0 !important;
}

.lx-search__field .twitter-typeahead {
  width: 100%;
  display: block !important;
}

.lx .lx-search input.lx-search__input {
  width: 100%;
  height: 60px;
  margin: 0;
  padding: 0 56px 0 20px;
  font-family: var(--f-body);
  font-size: 18px;
  color: var(--ink);
  background: var(--paper) !important;
  border: 2px solid var(--line);
  border-radius: 12px;
  box-shadow: none;
}

.lx .lx-search input.lx-search__input:focus {
  border-color: var(--brand);
  outline: 0;
  box-shadow: 0 0 0 4px var(--brand-wash);
}

.lx .lx-search input.lx-search__input::placeholder {
  color: var(--ink-3);
}

.lx-search--compact {
  margin: 18px 0 26px;
  max-width: 560px;
}

.lx .lx-search--compact input.lx-search__input {
  height: 52px;
  font-size: 17px;
  padding-right: 20px;
}

.lx .lx-search__field .tt-menu,
.lx .lx-search__field .tt-dropdown-menu {
  width: 100%;
  margin-top: 8px;
  padding: 8px 0;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow-lift);
  font-size: 16px;
  text-align: left;
  z-index: 50 !important;
}

.lx .lx-search__field .tt-suggestion {
  padding: 10px 18px;
  margin: 0;
  color: var(--ink);
  white-space: normal;
}

.lx .lx-search__field .tt-suggestion.tt-cursor,
.lx .lx-search__field .tt-suggestion:hover {
  background: var(--brand-wash);
  color: var(--brand-deep);
}

/* Іконка GPS у полі: лише на десктопі */
.lx .lx-search__gps.btn-gps {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  margin: 0;
  padding: 0;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 10px;
  background: transparent none !important;
  color: var(--ink-3);
  z-index: 3;
}

.lx .lx-search__gps.btn-gps:hover {
  background: var(--brand-wash) !important;
  color: var(--brand-deep);
}

.lx .lx-search__gps.btn-gps::before,
.lx .lx-search__gps.btn-gps::after {
  display: none;
}

.lx-cta {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 26px;
  min-height: 52px;
  border: 0;
  border-radius: 12px;
  background: var(--cta);
  color: var(--on-cta);
  font-family: var(--f-body);
  font-size: 17px;
  font-weight: 600;
  white-space: nowrap;
}

.lx-cta:hover {
  background: var(--cta-deep);
}

.lx-hero .lx-cta {
  min-height: 60px;
}

.lx-hero__gps {
  display: none;
  margin: 12px 0 0;
}

.lx-linkbtn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 0;
  border: 0;
  background: none;
  font-size: 15px;
  font-weight: 500;
  color: var(--brand-deep);
  text-decoration: none;
}

.lx-linkbtn svg {
  width: 18px;
  height: 18px;
}

.lx-linkbtn:hover {
  text-decoration: underline;
}

@media (max-width: 760px) {
  .lx .lx-search__gps.btn-gps {
    display: none !important;
  }

  .lx .lx-search input.lx-search__input {
    padding-right: 16px;
  }

  .lx-hero__gps {
    display: block;
  }

  .lx-search {
    flex-direction: column;
  }

  .lx-cta {
    width: 100%;
  }
}

/* Цифри бази під пошуком */
.lx-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin: 30px 0 6px;
  padding: 18px 0 0;
  border-top: 1px solid var(--line-soft);
}

.lx-facts div {
  margin: 0;
}

.lx-facts dt {
  font-size: 26px;
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.01em;
}

.lx-facts dd {
  margin: 4px 0 0;
  font-size: 13.5px;
  color: var(--ink-2);
  line-height: 1.35;
}

.lx-asof {
  font-size: 13px;
  color: var(--ink-3);
  margin: 10px 0 0 !important;
}

@media (max-width: 560px) {
  .lx-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* SVG-мапа України */
.lx-map {
  margin: 0;
}

.lx-map__svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.lx-map__areas path {
  fill: var(--mist-2);
  stroke: var(--paper);
  stroke-width: 1.4;
  stroke-linejoin: round;
  transition: fill 0.15s ease;
}

/* Невибірні області: без наведення й кліку */
.lx-map__areas path.is-off {
  fill: var(--line-soft);
  pointer-events: none;
}

.lx-map__areas a:hover path,
.lx-map__areas a:focus path {
  fill: var(--brand-wash);
}

.lx-map__areas a:focus {
  outline: none;
}

.lx-map__areas a:focus-visible path {
  stroke: var(--brand);
  stroke-width: 2.5;
}

.lx-map__cities circle {
  fill: var(--brand);
  stroke: var(--paper);
  stroke-width: 2;
  transition: r 0.15s ease, fill 0.15s ease;
}

.lx-map__cities circle.lx-map__hit {
  fill: transparent;
  stroke: none;
}

.lx-map__cities a:hover circle:not(.lx-map__hit),
.lx-map__cities a:focus-visible circle:not(.lx-map__hit) {
  fill: var(--cta);
}

.lx-map__cap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px 16px;
  margin-top: 12px;
  font-size: 14px;
}

.lx-map__hover {
  color: var(--ink-2);
  font-weight: 500;
}

@media (max-width: 920px) {
  .lx-map {
    max-width: 520px;
  }
}

/* ——— Меню сторінки ———————————————————————————————————————————————— */

.lx-nav {
  position: sticky;
  top: var(--nav-top);
  z-index: 40;
  background: var(--paper);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  transition: transform 0.2s ease;
}

.lx-nav__list {
  list-style: none;
  margin: 0;
  padding: 10px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.lx-nav__list a {
  display: inline-block;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--mist);
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}

.lx-nav__list a:hover,
.lx-nav__list a.is-active {
  background: var(--brand);
  color: #fff;
  text-decoration: none;
}

@media (max-width: 760px) {
  .lx-nav.is-hidden {
    transform: translateY(-110%);
  }
}

/* ——— Секції ————————————————————————————————————————————————————————— */

.lx-section {
  padding: 52px 0;
  scroll-margin-top: 60px;
}

.lx-section--mist {
  background: var(--mist);
}

.lx-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0 0 !important;
}

.lx-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 8px 16px;
  border-radius: var(--r-sm);
  border: 1.5px solid transparent;
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none !important;
  white-space: nowrap;
}

.lx-btn svg {
  width: 18px;
  height: 18px;
}

.lx-btn--cta {
  background: var(--cta);
  color: var(--on-cta) !important;
}

.lx-btn--cta:hover {
  background: var(--cta-deep);
}

.lx-btn--primary {
  background: var(--brand-wash);
  color: var(--brand-deep) !important;
}

.lx-btn--primary:hover {
  background: var(--brand);
  color: #fff !important;
}

.lx-btn--ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--brand-deep) !important;
}

.lx-btn--ghost:hover {
  border-color: var(--brand);
}

/* ——— Вкладки й фільтри ———————————————————————————————————————————— */

.lx-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0 10px;
}

.lx-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink-2);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none !important;
}

.lx-tab svg {
  width: 18px;
  height: 18px;
}

.lx-tab:hover {
  border-color: var(--brand);
  color: var(--ink);
}

.lx-tab[aria-current] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.lx-tabsub {
  color: var(--ink-2);
  font-size: 15px;
  max-width: 78ch;
  min-height: 3em;
}

.lx-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 8px 0 12px;
}

.lx-find {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 12px;
  border: 1.5px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--paper);
  margin: 0;
  flex: 0 1 240px;
}

.lx-find svg {
  width: 18px;
  height: 18px;
  color: var(--ink-3);
  flex: none;
}

.lx .lx-find input {
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  width: 100%;
  min-width: 0;
  padding: 0;
  outline: 0;
}

.lx-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 40px;
  padding: 0 14px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink-2);
  font-size: 14.5px;
}

.lx-chip svg {
  width: 16px;
  height: 16px;
}

.lx-chip[aria-pressed="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.lx .lx-select {
  height: 40px;
  padding: 0 10px;
  border: 1.5px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 14.5px;
}

.lx-reset {
  border: 0;
  background: none;
  color: var(--brand-deep);
  font-size: 14.5px;
  text-decoration: underline;
  padding: 0 6px;
}

.lx-count {
  font-size: 14px;
  color: var(--ink-2);
  margin: 0 0 8px !important;
}

.lx-count b {
  color: var(--ink);
}

/* ——— Рядки провайдерів ———————————————————————————————————————————— */

.lx-list {
  border-top: 1px solid var(--line);
}

.lx-row {
  display: grid;
  grid-template-columns: 34px 150px repeat(4, minmax(110px, 1fr)) 170px;
  gap: 16px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.lx-list:not(.is-top) .lx-row {
  grid-template-columns: 0 150px repeat(4, minmax(110px, 1fr)) 170px;
  column-gap: 16px;
}

.lx-list:not(.is-top) .lx-rank {
  visibility: hidden;
}

.lx-row--head {
  padding: 10px 0;
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--ink-3);
  font-weight: 600;
}

.lx-row .lx-lbl {
  display: none;
}

.lx-rank {
  font-size: 22px;
  font-weight: 600;
  color: var(--ink-3);
  text-align: right;
}

.lx-row:nth-child(-n + 4) .lx-rank {
  color: var(--ink);
}

.lx-who {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  min-width: 0;
  text-decoration: none !important;
  color: var(--ink) !important;
}

/* Файли логотипів 222×152 з білим полем усередині: показуємо в тій самій пропорції, без рамки */
.lx-who__logo {
  display: block;
  width: 88px;
  aspect-ratio: 222 / 152;
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
}

.lx-who__logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.lx-who:hover .lx-who__logo {
  box-shadow: 0 0 0 2px var(--brand-wash);
}

.lx-who__name {
  font-family: var(--f-display);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.25;
}

.lx-who__tech {
  font-size: 12.5px;
  color: var(--ink-3);
}

.lx-val {
  display: block;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.15;
}

.lx-val small {
  font-family: var(--f-body);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink-3);
}

.lx-val--none {
  font-family: var(--f-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-3);
}

.lx-note {
  display: block;
  margin-top: 3px;
  font-size: 12.5px;
  color: var(--ink-2);
}

.lx-note--warn {
  color: var(--warn-ink);
}

.lx-star {
  width: 16px;
  height: 16px;
  margin-right: 3px;
  vertical-align: -1px;
  color: var(--mid);
}

/* Лінійка автономності: спільна шкала 4 · 8 · 12 · 24 · 72 год на всі рядки */
.lx-ruler {
  position: relative;
  display: block;
  height: 6px;
  margin-top: 8px;
  border-radius: 3px;
  background: var(--line-soft);
  overflow: hidden;
}

.lx-ruler i {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  border-radius: 3px;
  background: var(--hi);
}

.lx-ruler--mid i {
  background: var(--mid);
}

.lx-ruler--lo i {
  background: var(--lo);
}

/* Поділки 4 · 8 · 12 · 24 год на логарифмічній шкалі до 72 год (позиції як rulerPos у шаблоні) */
.lx-ruler::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(var(--paper), var(--paper)) 37% 0 / 1.5px 100% no-repeat,
    linear-gradient(var(--paper), var(--paper)) 51% 0 / 1.5px 100% no-repeat,
    linear-gradient(var(--paper), var(--paper)) 60% 0 / 1.5px 100% no-repeat,
    linear-gradient(var(--paper), var(--paper)) 75% 0 / 1.5px 100% no-repeat;
}

.lx-act {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.lx-act .lx-btn {
  min-height: 38px;
  padding: 7px 10px;
  font-size: 13.5px;
}

.lx-row.is-other .lx-who__logo {
  opacity: 0.85;
}

@media (max-width: 1080px) {
  .lx-row--head {
    display: none;
  }

  .lx-row,
  .lx-list:not(.is-top) .lx-row {
    grid-template-columns: 30px repeat(3, minmax(0, 1fr));
    grid-template-areas:
      "rank who who who"
      ".    bo  bo  bo"
      ".    c1  c2  c3"
      ".    act act act";
    row-gap: 12px;
    padding: 18px 0;
  }

  .lx-list:not(.is-top) .lx-row {
    grid-template-columns: 0 repeat(3, minmax(0, 1fr));
    column-gap: 0;
  }

  .lx-list:not(.is-top) .lx-row > *:not(.lx-rank) {
    margin-right: 12px;
  }

  /* Підписи клітинок на вузьких екранах малює CSS: у розмітці 600 рядків вони важили б ~150 КБ */
  .lx-cell::before {
    display: block;
    margin-bottom: 2px;
    font-family: var(--f-body);
    font-size: 11.5px;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--ink-3);
    font-weight: 600;
  }

  .lx-cell--price::before {
    content: "Вартість";
  }

  .lx-cell--speed::before {
    content: "Швидкість";
  }

  .lx-cell--rev::before {
    content: "Відгуки";
  }

  .lx-rank {
    grid-area: rank;
    text-align: left;
  }

  .lx-who {
    grid-area: who;
  }

  .lx-bo {
    grid-area: bo;
    max-width: 320px;
  }

  .lx-cell--price {
    grid-area: c1;
  }

  .lx-cell--speed {
    grid-area: c2;
  }

  .lx-cell--rev {
    grid-area: c3;
  }

  .lx-act {
    grid-area: act;
    flex-direction: row;
  }

  .lx-act .lx-btn {
    flex: 1 1 0;
  }

  .lx-bo .lx-lbl {
    display: none;
  }

  .lx-bo .lx-val {
    display: inline;
    font-size: 16px;
  }

  .lx-bo .lx-val::before {
    content: "Без світла ";
    font-family: var(--f-body);
    font-size: 14px;
    font-weight: 500;
    color: var(--ink-2);
  }

  .lx-bo .lx-val--none::before {
    content: "Без світла: ";
  }
}

@media (max-width: 520px) {
  .lx-row,
  .lx-list:not(.is-top) .lx-row {
    grid-template-columns: 26px repeat(2, minmax(0, 1fr));
    grid-template-areas:
      "rank who who"
      ".    bo  bo"
      ".    c1  c2"
      ".    c3  c3"
      ".    act act";
  }

  .lx-list:not(.is-top) .lx-row {
    grid-template-columns: 0 repeat(2, minmax(0, 1fr));
  }

  .lx-who__logo {
    width: 80px;
  }
}

.lx-empty {
  padding: 28px;
  margin-top: 12px;
  text-align: center;
  background: var(--mist);
  border-radius: var(--r);
  color: var(--ink-2);
}

.lx-empty b {
  display: block;
  color: var(--ink);
  margin-bottom: 4px;
}

.lx-more {
  display: block;
  margin: 22px auto 0;
  padding: 12px 26px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--brand-deep);
  font-size: 15px;
  font-weight: 600;
}

.lx-more:hover {
  border-color: var(--brand);
}

/* ——— Міста ————————————————————————————————————————————————————————— */

.lx-cities {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 26px 32px;
}

.lx-cities__group h3,
.lx-h3 {
  font-family: var(--f-body) !important;
  font-size: 12px !important;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-3) !important;
  font-weight: 600 !important;
  margin: 0 0 10px !important;
}

.lx-h3 {
  margin-top: 34px !important;
}

.lx-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.lx-chips a {
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  font-size: 14.5px;
  text-decoration: none;
}

.lx-chips a:hover {
  border-color: var(--brand);
  color: var(--brand-deep);
}

.lx-areas {
  margin-top: 26px;
}

.lx-areas summary {
  cursor: pointer;
  color: var(--brand-deep);
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 12px;
}

/* ——— Без світла ——————————————————————————————————————————————————— */

.lx-tech {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.lx-tech__item {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--paper);
}

.lx-tech__item--home {
  background: var(--mist);
}

.lx-big {
  display: block;
  margin: 6px 0 8px;
  font-size: 30px;
  font-weight: 600;
  line-height: 1;
}

.lx-big small {
  font-family: var(--f-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-3);
}

.lx-tech__item p {
  font-size: 14.5px;
  color: var(--ink-2);
  margin: 0;
}

@media (max-width: 1000px) {
  .lx-tech {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .lx-tech {
    grid-template-columns: 1fr;
  }
}

/* ——— Швидкість ————————————————————————————————————————————————————— */

.lx-speed {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 40px;
  align-items: start;
  margin-top: 22px;
}

.lx-bars {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.lx-bar {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr) 110px 110px;
  gap: 14px;
  align-items: center;
  font-size: 15px;
}

.lx-bar__name {
  color: var(--ink) !important;
  font-weight: 500;
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lx-bar__name:hover {
  color: var(--brand-deep) !important;
}

.lx-bar__track {
  display: block;
  height: 12px;
  border-radius: 6px;
  background: var(--line-soft);
  overflow: hidden;
}

.lx-bar__track i {
  display: block;
  height: 100%;
  border-radius: 6px;
  background: var(--brand);
}

.lx-bar__val {
  text-align: right;
  color: var(--ink-2);
  font-size: 14px;
}

.lx-bar__val b {
  font-family: var(--f-display);
  font-size: 19px;
  color: var(--ink);
}

.lx-bar__n {
  font-size: 13px;
  color: var(--ink-3);
}

.lx-speed__cta {
  padding: 22px;
  border-radius: var(--r);
  background: var(--paper);
  border: 1px solid var(--line);
}

.lx-speed__cta svg {
  width: 34px;
  height: 34px;
  color: var(--brand);
  margin-bottom: 8px;
}

.lx-speed__cta p {
  font-size: 14.5px;
  color: var(--ink-2);
}

@media (max-width: 1000px) {
  .lx-speed {
    grid-template-columns: 1fr;
  }

  .lx-bar {
    grid-template-columns: 150px minmax(0, 1fr) 96px;
  }

  .lx-bar__n {
    display: none;
  }
}

@media (max-width: 520px) {
  .lx-bar {
    grid-template-columns: 1fr 96px;
    row-gap: 4px;
  }

  .lx-bar__track {
    grid-column: 1 / -1;
    order: 3;
  }
}

/* ——— Відгуки ——————————————————————————————————————————————————————— */

.lx-rates {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
}

.lx-rate {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--paper);
  color: var(--ink) !important;
  text-decoration: none !important;
}

.lx-rate:hover {
  border-color: var(--brand);
}

.lx-rate__head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
}

.lx-rate__head b {
  font-size: 16px;
  font-weight: 600;
}

.lx-rate__score {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--f-display);
  font-size: 24px;
  font-weight: 600;
}

.lx-rate__score svg {
  width: 18px;
  height: 18px;
  color: var(--mid);
}

.lx-rate__axes {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  font-size: 13.5px;
  color: var(--ink-2);
}

.lx-rate__axes b {
  color: var(--ink);
  font-weight: 600;
}

.lx-rate__foot {
  font-size: 13px;
  color: var(--ink-3);
}

.lx-reviews {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.lx-review {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 18px;
  border-radius: var(--r);
  background: var(--mist);
}

.lx-review header {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 14px;
  color: var(--ink-2);
}

.lx-review header b {
  color: var(--ink);
  font-weight: 600;
}

.lx-review p {
  margin: 0 !important;
  font-size: 15px;
  color: var(--ink);
  flex: 1;
}

.lx-review footer {
  font-size: 12.5px;
  color: var(--ink-3);
}

.lx-review__score {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  flex: none;
  font-weight: 600;
  color: var(--ink);
}

.lx-review__score svg {
  width: 14px;
  height: 14px;
}

.lx-review__score--good svg {
  color: var(--hi);
}

.lx-review__score--mid svg {
  color: var(--mid);
}

.lx-review__score--bad svg {
  color: var(--lo);
}

@media (max-width: 1000px) {
  .lx-rates,
  .lx-reviews {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .lx-rates,
  .lx-reviews {
    grid-template-columns: 1fr;
  }
}

/* ——— FAQ ——————————————————————————————————————————————————————————— */

.lx-faq {
  margin-top: 18px;
  max-width: 860px;
  border-top: 1px solid var(--line);
}

.lx-details {
  border-bottom: 1px solid var(--line);
}

.lx-details summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 0;
  cursor: pointer;
  list-style: none;
}

.lx-details summary::-webkit-details-marker {
  display: none;
}

.lx-details summary h3 {
  margin: 0;
  font-size: 18px;
}

.lx-details summary::after {
  content: "+";
  flex: none;
  font-size: 24px;
  line-height: 1;
  color: var(--ink-3);
}

.lx-details[open] summary::after {
  content: "–";
}

.lx-details__body {
  padding: 0 0 18px;
  color: var(--ink-2);
  max-width: 72ch;
}

/* ——— Липка CTA на мобільному ——————————————————————————————————————— */

.lx-sticky {
  display: none;
}

@media (max-width: 760px) {
  .lx-sticky {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    display: block;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: var(--paper);
    border-top: 1px solid var(--line);
    box-shadow: 0 -8px 24px rgba(15, 32, 51, 0.1);
    transform: translateY(110%);
    transition: transform 0.2s ease;
  }

  .lx-sticky.is-on {
    transform: translateY(0);
  }

  .lx-sticky .lx-cta {
    width: 100%;
    min-height: 52px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lx-nav,
  .lx-sticky,
  .lx-map__areas path {
    transition: none;
  }
}
