/* Светофор ВПН — токены и вёрстка по дизайн-хендоффу */

:root {
  color-scheme: light dark;

  --page:        light-dark(#fbfbf9, #101211);
  --page-out:    light-dark(#f4f4f1, #0b0d0c);
  --text:        light-dark(#16181a, #eceeed);
  --text-2:      light-dark(#5c6063, #9aa2a0);
  --text-3:      light-dark(#74787a, #8b9391);
  --label:       light-dark(#7c8082, #8b9391);
  --faint:       light-dark(#a0a3a4, #626b68);
  --surface:     light-dark(#f6f6f2, #171a19);
  --field:       light-dark(#f0f0ec, #1c201f);
  --card:        light-dark(#fbfbf9, #141716);
  --border:      light-dark(#e6e6e1, #232826);
  --border-soft: light-dark(#ededea, #1c2120);
  --border-field:light-dark(#e2e2dc, #262c2a);
  --border-btn:  light-dark(#dcdcd6, #2a302e);

  --green:    light-dark(oklch(0.5 0.13 152), oklch(0.8 0.17 150));
  --green-bg: light-dark(#e2efe6, oklch(0.3 0.06 152));
  --yellow:   light-dark(oklch(0.56 0.13 70), oklch(0.83 0.16 82));
  --yellow-bg:light-dark(#f7ecd8, oklch(0.32 0.05 82));
  --red:      light-dark(oklch(0.52 0.17 27), oklch(0.7 0.19 25));
  --red-bg:   light-dark(#f8e3dd, oklch(0.3 0.07 25));

  --dot-green:  light-dark(oklch(0.62 0.15 152), oklch(0.8 0.17 150));
  --dot-yellow: light-dark(oklch(0.74 0.15 78), oklch(0.83 0.16 82));
  --dot-red:    light-dark(oklch(0.58 0.18 27), oklch(0.7 0.19 25));

  --inv-bg:   light-dark(#16181a, #eceeed);
  --inv-text: light-dark(#fbfbf9, #101211);

  --page-max: 1320px;
  --pad-x: 16px;
  --pad-top: 20px;
  --pad-bottom: 28px;

  --c: var(--faint);
  --c-bg: var(--field);
}
[data-theme="light"] { color-scheme: light; }
[data-theme="dark"]  { color-scheme: dark; }

/* семантика светофора: элемент получает s-* или w-*, дети берут --c / --c-bg */
.s-ok, .w-ok           { --c: var(--green);  --c-bg: var(--green-bg); }
.s-part, .w-part       { --c: var(--yellow); --c-bg: var(--yellow-bg); }
.s-no, .w-no           { --c: var(--red);    --c-bg: var(--red-bg); }
.s-unknown, .w-unknown { --c: var(--faint);  --c-bg: var(--field); }
.k-ok { color: var(--green); } .k-part { color: var(--yellow); } .k-no { color: var(--red); }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--page-out);
  color: var(--text);
  font: 400 14px/1.5 Helvetica, Arial, "Helvetica Neue", system-ui, sans-serif;
  font-variant-numeric: tabular-nums;
  text-wrap: pretty;
}
h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -0.02em; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
img { display: block; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; border-radius: 4px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

.container {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: var(--pad-top) var(--pad-x) var(--pad-bottom);
  background: var(--page);
}
.page { background: var(--page); }
.narrow { max-width: 1320px; }
.dim { color: var(--label); font-weight: 500; }
.small { font-size: 12.5px; }

/* ── шапка ─────────────────────────────────────────────────────────────── */
.header {
  position: sticky; top: 0; z-index: 30;
  background: var(--page);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: var(--page-max); margin: 0 auto;
  padding: 11px 16px;
  display: flex; align-items: center; gap: 20px;
}
.logo { display: inline-flex; align-items: center; gap: 8px; }
.dots { display: inline-flex; gap: 3px; }
.dots i { width: 8px; height: 8px; border-radius: 50%; display: block; }
.dot-g { background: var(--dot-green); }
.dot-y { background: var(--dot-yellow); }
.dot-r { background: var(--dot-red); }
.logo-text { font-size: 15px; font-weight: 700; letter-spacing: 0.02em; }
.nav { display: none; gap: 2px; margin-right: auto; }
.pill {
  padding: 9px 13px; border-radius: 9px; font-size: 14px; font-weight: 500;
  color: var(--text-2); transition: background .12s;
}
.pill:hover { background: var(--surface); }
.pill.is-active { background: var(--inv-bg); color: var(--inv-text); font-weight: 700; }
.header-right { display: flex; gap: 8px; margin-left: auto; }
.icon-btn {
  width: 36px; height: 36px; border-radius: 9px; border: 1px solid var(--border-btn);
  display: grid; place-items: center; font-size: 15px; transition: background .12s;
}
.icon-btn:hover { background: var(--surface); }
.theme-icon-dark { display: none; }
[data-theme="dark"] .theme-icon-light { display: none; }
[data-theme="dark"] .theme-icon-dark { display: inline; }
@media (prefers-color-scheme: dark) {
  html:not([data-theme]) .theme-icon-light { display: none; }
  html:not([data-theme]) .theme-icon-dark { display: inline; }
}
.mobile-menu {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
  padding: 0 16px 12px; border-bottom: 1px solid var(--border); background: var(--page);
}
.mobile-menu[hidden] { display: none; }
.menu-tile {
  min-height: 44px; border-radius: 10px; background: var(--field);
  display: grid; place-items: center; font-size: 14px; font-weight: 500;
}
.menu-tile.is-active { background: var(--inv-bg); color: var(--inv-text); font-weight: 700; }

/* ── герой и плитки ────────────────────────────────────────────────────── */
.hero h1 {
  font-size: 24px; line-height: 1.12; letter-spacing: -0.025em; max-width: 15em;
}
.hero .lead, .lead {
  margin-top: 10px; font-size: 13.5px; line-height: 1.5; color: var(--text-2); max-width: 46em;
}
.page-title { font-size: 22px; letter-spacing: -0.025em; }
.stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 20px;
}
.stat {
  border: 1px solid var(--border-field); border-radius: 12px; background: var(--surface);
  padding: 14px 16px; display: grid; gap: 4px;
}
.stat-num { font-size: 30px; font-weight: 700; letter-spacing: -0.02em; line-height: 1; }
.stat-green { color: var(--green); }
.stat-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--label); }

/* ── раскладка каталога ────────────────────────────────────────────────── */
.layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; margin-top: 22px; }
.sidebar { display: grid; gap: 12px; align-content: start; }
.search-row { display: flex; gap: 8px; }
.search {
  flex: 1; height: 40px; border-radius: 10px; padding: 0 12px;
  background: var(--field); border: 1px solid var(--border-field); color: var(--text);
}
.search::placeholder { color: var(--label); }
.filters-toggle { padding: 0 14px; height: 40px; border-radius: 10px; font-size: 13px; }
.btn-inv {
  background: var(--inv-bg); color: var(--inv-text); border-radius: 10px;
  font-weight: 700; font-size: 13px;
}
.btn-inv.wide { width: 100%; min-height: 48px; border-radius: 11px; }
.btn-inv.inline { display: inline-block; padding: 12px 18px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  padding: 8px 13px; border-radius: 999px; font-size: 12.5px; background: var(--field);
  color: var(--text); transition: background .12s; border: 1px solid transparent;
}
.chip:hover { background: var(--border-field); }
.chip.is-active { background: var(--inv-bg); color: var(--inv-text); font-weight: 700; }
.chip.chip-sq { border-radius: 8px; }
.chip.chip-static { background: var(--surface); border: 1px solid var(--border-field); }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
label.chip { cursor: pointer; }
.filters {
  border: 1px solid var(--border); border-radius: 12px; background: var(--surface);
  padding: 14px; display: none; gap: 14px; grid-auto-rows: min-content;
}
.filters.is-open { display: grid; }
.filter-block { display: grid; gap: 8px; }
.filter-title {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--label);
}
.range-row { display: flex; align-items: center; gap: 10px; }
.range-row input[type="range"] { flex: 1; accent-color: oklch(0.55 0.14 152); }
.range-value { font-size: 12.5px; color: var(--text-2); min-width: 56px; text-align: right; }
.reset {
  font-size: 12.5px; color: var(--text-2); text-decoration: underline dotted;
  justify-self: start;
}
.apply { min-height: 44px; }
.quick { display: grid; gap: 8px; }

.results { display: grid; gap: 12px; align-content: start; }
.results-head {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 13px; color: var(--text-2);
}
.results-sort { font-size: 12.5px; color: var(--label); }

/* ── список ────────────────────────────────────────────────────────────── */
.list { border: 1px solid var(--border); border-radius: 14px; overflow: hidden; background: var(--page); }
.list-head { display: none; }
.row {
  display: flex; align-items: center; gap: 12px; padding: 12px 15px;
  border-top: 1px solid var(--border-soft); transition: background .12s;
}
.row:first-child { border-top: 0; }
.row:hover { background: var(--surface); }
.c-name { display: flex; align-items: center; gap: 12px; min-width: 0; flex: 1; }
.logo-sq {
  width: 38px; height: 38px; border-radius: 10px; flex: none; object-fit: cover;
  background: var(--field);
}
.logo-initials {
  display: grid; place-items: center; color: var(--text-2); font-weight: 700; font-size: 13px;
}
.name-wrap { min-width: 0; display: grid; gap: 2px; }
.name-line { display: flex; align-items: center; gap: 7px; min-width: 0; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--c); flex: none; }
.name {
  font-size: 14.5px; font-weight: 700; letter-spacing: -0.01em;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.subline { font-size: 11.5px; color: var(--text-3); }
.sub-desk { display: none; }
.c-price, .c-traffic, .c-rating { display: none; }
.c-wl { flex: none; }
.pill.w-unknown, .pill.w-ok, .pill.w-part, .pill.w-no, .c-wl .pill { display: none; }
.badge-wl {
  font-size: 9.5px; font-weight: 700; border-radius: 6px; padding: 4px 6px;
  color: var(--c); background: var(--c-bg);
}
.c-votes { flex: none; display: grid; gap: 4px; justify-items: end; width: 54px; }
.ratio { font-size: 13px; font-weight: 700; color: var(--c); }
.bar { display: block; width: 100%; height: 4px; border-radius: 2px; background: var(--field); overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--c); border-radius: inherit; }
.bar-lg { height: 6px; border-radius: 3px; }
.bar-md { height: 5px; border-radius: 3px; }
.c-date { flex: none; width: 42px; text-align: right; font-size: 11px; color: var(--faint); }
.more {
  min-height: 46px; border-radius: 10px; border: 1px solid var(--border-btn);
  width: 100%; font-size: 13.5px; font-weight: 500; transition: background .12s;
}
.more:hover { background: var(--surface); }
.empty { padding: 40px 16px; text-align: center; font-size: 14px; color: var(--text-2); }
.empty-inline { font-size: 13.5px; color: var(--text-2); }

/* ── карточка сервиса ──────────────────────────────────────────────────── */
.back { font-size: 13.5px; color: var(--text-2); }
.svc-head { display: flex; align-items: center; gap: 12px; margin-top: 14px; flex-wrap: wrap; }
.svc-logo { width: 48px; height: 48px; border-radius: 13px; flex: none; background: var(--field); font-size: 16px; }
.svc-title { min-width: 0; flex: 1; }
.svc-title h1 { font-size: 21px; letter-spacing: -0.025em; }
.svc-meta { font-size: 12.5px; color: var(--text-2); margin-top: 4px; }
.status-pill {
  font-size: 12.5px; font-weight: 700; padding: 7px 13px; border-radius: 999px;
  color: var(--c); background: var(--c-bg);
}
.note-banner {
  margin-top: 12px; font-size: 12.5px; font-weight: 600; color: var(--green);
}
.svc-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin-top: 16px; }
.svc-main { display: grid; gap: 16px; align-content: start; }
.svc-side { display: grid; gap: 12px; align-content: start; }
.card { border: 1px solid var(--border); border-radius: 12px; background: var(--surface); padding: 15px; }
.card-title { font-size: 16px; }
.card-note { font-size: 12.5px; color: var(--text-2); margin-top: 6px; }
.votes-card { display: grid; gap: 10px; }
.votes-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.votes-ratio { font-size: 28px; font-weight: 700; letter-spacing: -0.02em; color: var(--c); line-height: 1; }
.votes-label { font-size: 12.5px; color: var(--text-2); margin-top: 6px; }
.votes-rating { font-size: 13.5px; font-weight: 600; color: var(--text-2); }
.wl-block { border-color: var(--c); background: var(--c-bg); display: grid; gap: 8px; }
.wl-head { display: flex; align-items: center; gap: 8px; }
.wl-badge {
  font-size: 10px; font-weight: 700; padding: 4px 6px; border-radius: 6px;
  background: var(--c); color: var(--page);
}
.wl-head h2 { font-size: 14px; }
.wl-status { margin-left: auto; font-size: 12.5px; font-weight: 700; color: var(--c); }
.wl-ratio { font-size: 18px; font-weight: 700; color: var(--c); }
.wl-note { font-size: 12.5px; line-height: 1.5; color: var(--text-2); }
.op-table { border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.op-head, .op-row { display: grid; grid-template-columns: 1fr 70px 70px; gap: 8px; padding: 9px 14px; }
.op-head {
  background: var(--field); font-size: 10px; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--label);
}
.op-row { border-top: 1px solid var(--border-soft); font-size: 13px; align-items: center; }
.op-head span + span, .op-row span + span { text-align: right; }
.op-val { font-weight: 700; color: var(--c); }
.op-empty { color: var(--faint); font-weight: 400; }
.tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.tile {
  border: 1px solid var(--border); border-radius: 10px; background: var(--surface);
  padding: 10px 12px; display: grid; gap: 4px;
}
.tile-key { font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--label); }
.tile-val { font-size: 13.5px; font-weight: 600; }
.block { display: grid; gap: 10px; }
.block-title { font-size: 16px; }
.desc { font-size: 14px; line-height: 1.6; white-space: pre-line; max-width: 40em; }
.links { display: grid; gap: 4px; font-size: 12.5px; color: var(--text-2); word-break: break-all; }
.links a { text-decoration: underline; text-decoration-color: var(--border-btn); }
.reviews { display: grid; gap: 8px; }
.review { border: 1px solid var(--border); border-radius: 12px; padding: 13px; background: var(--card); }
.review-head { display: flex; align-items: center; gap: 8px; }
.review-author { font-size: 13px; font-weight: 700; }
.review-stars { display: inline-flex; gap: 1px; font-size: 13px; line-height: 1; font-style: normal; }
.review-stars .st { font-style: normal; }
/* пустые звёзды — тем же символом, но заметно бледнее: «☆» на мелком кегле
   почти неотличима от «★», и отзыв на единицу читался как пятёрка */
.review-stars .st.off { color: var(--border-btn); }
.review-date { margin-left: auto; font-size: 11.5px; color: var(--faint); }
.review-body { font-size: 13.5px; line-height: 1.55; margin-top: 8px; }
.review-reply {
  margin-top: 8px; padding-left: 10px; border-left: 4px solid var(--border-btn);
  font-size: 12.5px; color: var(--text-2);
}

/* панель голосования */
.op-chips .chip { padding: 7px 11px; }
.mode-switch { display: flex; gap: 6px; margin-top: 10px; }
.mode {
  flex: 1; min-height: 36px; border-radius: 9px; border: 1px solid var(--border-btn);
  font-size: 12.5px; transition: background .12s;
}
.mode.is-active { background: var(--inv-bg); color: var(--inv-text); font-weight: 700; }
.vote-card .chips { margin-top: 12px; }
.vote-buttons { display: flex; gap: 8px; margin-top: 12px; }
.vote-btn {
  flex: 1; min-height: 48px; border-radius: 11px; border: 1px solid var(--border-btn);
  font-size: 13px; font-weight: 700; color: var(--c); transition: background .12s;
}
.vote-btn:hover { background: var(--c-bg); }
.vote-btn.is-active { background: var(--c-bg); border-color: var(--c); }
.vote-note { margin-top: 10px; font-size: 12.5px; font-weight: 600; color: var(--green); }
.vote-note.is-error { color: var(--red); }
.stars-input { display: flex; align-items: center; gap: 4px; margin-top: 10px; }
.star { font-size: 27px; line-height: 1; color: var(--border-btn); }
.star.is-on { color: var(--yellow); }
.stars-label { margin-left: 8px; font-size: 12.5px; color: var(--text-2); }
.review-input {
  width: 100%; min-height: 92px; border-radius: 11px; padding: 11px 12px; margin-top: 10px;
  background: var(--field); border: 1px solid var(--border-field); resize: vertical;
}
.review-input::placeholder { color: var(--label); }
.nojs-form { display: grid; gap: 8px; margin-top: 10px; }
.nojs-form select, .nojs-form button {
  min-height: 40px; border-radius: 10px; border: 1px solid var(--border-btn);
  background: var(--field); padding: 0 10px;
}
.nojs-form button { background: var(--inv-bg); color: var(--inv-text); font-weight: 700; }

/* ── подборки, протоколы, FAQ ──────────────────────────────────────────── */
.cards-2 { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; margin-top: 18px; align-items: start; }
.pick {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px;
  border: 1px solid var(--border); border-radius: 12px; background: var(--surface);
  transition: background .12s;
}
.pick:hover { background: var(--field); }
.pick-text { display: grid; gap: 4px; flex: 1; min-width: 0; }
.pick-title { font-size: 15px; font-weight: 700; }
.pick-note { font-size: 12.5px; color: var(--text-2); }
.pick-count { font-size: 16px; font-weight: 700; color: var(--green); }
.pick-arrow { color: var(--faint); font-size: 18px; }
.proto { border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; background: var(--surface); }
.proto-head { display: flex; align-items: center; gap: 8px; }
.proto-head h2 { font-size: 15px; }
.proto-verdict { margin-left: auto; font-size: 11.5px; font-weight: 700; color: var(--c); }
.proto-text { font-size: 13.5px; line-height: 1.55; margin-top: 8px; color: var(--text-2); }
.qa { border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; background: var(--surface); }
.qa summary {
  display: flex; align-items: center; gap: 12px; cursor: pointer; list-style: none;
  font-size: 14.5px; font-weight: 700;
}
.qa summary::-webkit-details-marker { display: none; }
.qa-sign { margin-left: auto; width: 12px; height: 12px; position: relative; flex: none; }
.qa-sign::before, .qa-sign::after {
  content: ""; position: absolute; background: var(--text-2); inset: 5px 0 auto; height: 2px;
}
.qa-sign::after { transform: rotate(90deg); transition: transform .12s; }
.qa[open] .qa-sign::after { transform: rotate(0deg); }
.qa p { font-size: 13.5px; line-height: 1.6; color: var(--text-2); margin-top: 10px; }
.wl-count { margin-top: 14px; font-size: 13.5px; color: var(--text-2); }
.list-plain { margin-top: 12px; max-width: 760px; }

/* ── подвал и табы ─────────────────────────────────────────────────────── */
.footer { background: var(--surface); border-top: 1px solid var(--border); }
.footer-inner {
  max-width: var(--page-max); margin: 0 auto; padding: 28px 16px 34px;
  display: grid; grid-template-columns: 1fr; gap: 22px;
}
.footer-text { font-size: 12.5px; line-height: 1.55; color: var(--text-2); margin-top: 10px; max-width: 34em; }
.footer-links { display: grid; gap: 8px; font-size: 13px; color: var(--text-2); align-content: start; }
.footer-links a:hover { color: var(--text); }
.tabs {
  position: sticky; bottom: 0; z-index: 20; display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  height: 54px; background: var(--page); border-top: 1px solid var(--border);
}
.tab { display: grid; place-items: center; gap: 2px; color: var(--faint); font-size: 10px; letter-spacing: 0.02em; }
.tab-icon { font-size: 15px; }
.tab.is-active { color: var(--text); }

/* ── ≥700px: планшет ───────────────────────────────────────────────────── */
@media (min-width: 700px) {
  :root { --page-max: 820px; --pad-x: 28px; --pad-top: 28px; --pad-bottom: 40px; }
  .header-inner { padding: 14px 32px; }
  .nav { display: flex; }
  .burger, .mobile-menu, .tabs { display: none; }
  .hero h1 { font-size: 34px; }
  .hero .lead, .lead { font-size: 16px; }
  .page-title { font-size: 30px; }
  .stats { max-width: 620px; }
  .list { border-radius: 14px; }
  .svc-title h1 { font-size: 28px; }
  .svc-logo { width: 60px; height: 60px; }
  .tiles { grid-template-columns: repeat(3, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; padding: 28px 32px 34px; }
  .cards-2 { gap: 12px; }
}

/* ── ≥1024px: сайдбар и компактная таблица ─────────────────────────────── */
@media (min-width: 1024px) {
  :root { --page-max: 1320px; --pad-x: 32px; --pad-top: 34px; --pad-bottom: 44px; }
  .hero h1 { font-size: 42px; }
  .layout { grid-template-columns: 290px minmax(0, 1fr); gap: 32px; margin-top: 26px; }
  .sidebar { position: sticky; top: 84px; align-self: start; }
  .filters-toggle { display: none; }
  .filters { display: grid; }
  .results { gap: 10px; }

  .list-head, .row {
    display: grid;
    grid-template-columns: minmax(170px, 1fr) 104px 138px 76px;
    gap: 12px; align-items: center;
  }
  .list-head {
    background: var(--surface); padding: 11px 18px; font-size: 10.5px;
    text-transform: uppercase; letter-spacing: 0.07em; color: var(--label);
  }
  .list-head span:nth-child(2), .list-head span:nth-child(3), .list-head span:nth-child(6) { display: none; }
  .row { padding: 12px 18px; }
  .c-wl .pill {
    display: inline-block; font-size: 11.5px; font-weight: 700; padding: 5px 9px;
    border-radius: 7px; color: var(--c); background: var(--c-bg);
  }
  .badge-wl { display: none; }
  .sub-desk { display: block; }
  .sub-mob { display: none; }
  .c-votes { width: auto; justify-items: start; }
  .c-date { width: auto; font-size: 12px; }
  .more { width: auto; align-self: flex-start; padding: 0 20px; }
  .svc-grid { grid-template-columns: minmax(0, 1fr) 380px; gap: 28px; }
  .svc-side { position: sticky; top: 84px; align-self: start; }
  .cards-2 { grid-template-columns: 1fr 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr 1fr; }
  .svc-main { gap: 20px; }
}

/* ── ≥1280px: полная таблица ───────────────────────────────────────────── */
@media (min-width: 1280px) {
  .list-head, .row {
    grid-template-columns: minmax(210px, 1fr) 78px 104px 96px 128px 60px 74px;
  }
  .list-head span:nth-child(2), .list-head span:nth-child(3), .list-head span:nth-child(6) { display: block; }
  .c-price { display: block; font-size: 13px; }
  .c-traffic { display: block; font-size: 13px; color: var(--text-2); }
  .c-rating { display: block; font-size: 13px; font-weight: 600; }
  .svc-title h1 { font-size: 34px; }
}

/* <700px: список раскрывается во всю ширину экрана */
@media (max-width: 699px) {
  .results .list {
    margin: 0 calc(var(--pad-x) * -1);
    border-left: 0; border-right: 0; border-radius: 0;
  }
}


/* ── «Добавить ВПН»: мастер из трёх шагов ──────────────────────────────── */

/* Всё, что имеет смысл только с JS (быстрые кнопки, сводка, предпросмотр).
   Прячем через html:not(.js), а не через .js-only { display: none }, — иначе
   при включённом JS пришлось бы возвращать каждому элементу его display. */
html:not(.js) .js-only { display: none; }

.add-page { display: block; }
.add-banner { margin-bottom: 14px; }
.add-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; align-items: start; }
.add-main { display: grid; gap: 22px; min-width: 0; }
.add-head { display: grid; gap: 13px; }

.wz-steps { display: flex; gap: 8px; }
.wz-step { flex: 1; display: grid; gap: 7px; text-align: left; }
.wz-bar { display: block; height: 4px; border-radius: 2px; background: var(--border-field); }
.wz-step.is-done .wz-bar { background: var(--inv-bg); }
.wz-label { font-size: 11.5px; font-weight: 500; color: var(--label); }
.wz-step.is-current .wz-label { font-weight: 700; color: var(--text); }

.add-form { display: grid; gap: 16px; }
.wz-pane { display: grid; gap: 16px; }
.wz-pane[hidden] { display: none; }

.fld {
  height: 44px; border-radius: 10px; border: 1px solid var(--border-field);
  background: var(--surface); padding: 0 13px; width: 100%; font-size: 14px;
}
.fld:focus { outline: none; border-color: var(--faint); }
.fld::placeholder { color: var(--label); }
.fld-lg { height: 48px; font-size: 15px; }
.fld-num { width: 96px; flex: none; }
.fld-area { height: auto; min-height: 88px; padding: 12px 13px; line-height: 1.5; resize: vertical; }

.add-pair { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.add-box {
  border: 1px solid var(--border); border-radius: 12px; background: var(--surface);
  padding: 15px; display: grid; gap: 12px;
}
.add-box-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.add-box-body { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
/* Блок показывается, только если выбран нужный вариант. Это делает сам CSS,
   поэтому «Диапазон» и «Пробный период» работают и без JavaScript. */
.add-box:not(:has(input[name="trial"][value="yes"]:checked)) [data-wz-when="trial=yes"],
.add-box:not(:has(input[name="dev_mode"][value="exact"]:checked)) [data-wz-when="dev_mode=exact"],
.add-box:not(:has(input[name="dev_mode"][value="range"]:checked)) [data-wz-when="dev_mode=range"] {
  display: none;
}
.add-box-body .fld { background: var(--page); flex: 1; min-width: 190px; }
.add-box-body .fld-num { flex: none; min-width: 0; }
.add-range { gap: 9px; }
.filter-title.strong { font-weight: 700; color: var(--text); letter-spacing: 0.08em; }
.add-hint { font-size: 12.5px; color: var(--text-3); line-height: 1.5; }
.add-hidden { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* чипы-переключатели: состояние держит сам input, JS для этого не нужен */
.chip-tap { cursor: pointer; user-select: none; min-height: 40px; display: inline-flex; align-items: center; }
.chip-tap:has(input:checked) { background: var(--inv-bg); color: var(--inv-text); font-weight: 700; }
.chip-tap:has(input:focus-visible) { outline: 2px solid var(--green); outline-offset: 2px; }
.chip-nested { background: var(--page); border: 1px solid var(--border-field); }
.chip-num { min-width: 40px; justify-content: center; text-align: center; }

.wz-tiles { display: grid; gap: 8px; }
.wz-tile {
  display: flex; align-items: center; gap: 13px; flex-wrap: wrap; cursor: pointer;
  border: 1.5px solid var(--border-field); border-radius: 11px; padding: 14px 15px;
  background: var(--surface); transition: background .12s, border-color .12s;
}
.wz-tile input { position: absolute; opacity: 0; pointer-events: none; }
.wz-tile:has(input:checked) { border-color: var(--c); background: var(--c-bg); }
.wz-tile:has(input:focus-visible) { outline: 2px solid var(--green); outline-offset: 2px; }
.wz-dot { width: 14px; height: 14px; border-radius: 50%; flex: none; background: var(--c); opacity: 0.35; }
.wz-tile:has(input:checked) .wz-dot { opacity: 1; }
.wz-tile-label { font-size: 14.5px; font-weight: 700; flex: none; }
.wz-tile-sub { font-size: 12.5px; color: var(--text-3); }

.wz-summary {
  border: 1px solid var(--border); border-radius: 12px; background: var(--surface); overflow: hidden;
}
.wz-sum-row {
  display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 12px;
  padding: 11px 15px; border-bottom: 1px solid var(--border-soft); font-size: 13.5px;
}
.wz-sum-row:last-child { border-bottom: 0; }
.wz-sum-row b { font-weight: 600; overflow-wrap: anywhere; }
.wz-sum-row span { color: var(--text-3); }

.rate-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.rate-dots { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 7px; --c: var(--faint); }
.rate-dots:has(input[value="5"]:checked), .rate-dots:has(input[value="4"]:checked) { --c: var(--green); }
.rate-dots:has(input[value="3"]:checked) { --c: var(--yellow); }
.rate-dots:has(input[value="2"]:checked), .rate-dots:has(input[value="1"]:checked) { --c: var(--red); }
.rate-dot {
  width: 30px; height: 30px; border-radius: 50%; cursor: pointer;
  border: 1.5px solid var(--border-btn); background: none; transition: background .12s;
}
.rate-dot input { position: absolute; opacity: 0; pointer-events: none; }
/* закрашиваем выбранную и все, что визуально левее (DOM обратный) */
.rate-dots .rate-dot:has(input:checked), .rate-dots .rate-dot:has(input:checked) ~ .rate-dot {
  background: var(--c); border-color: var(--c);
}
.rate-dot:has(input:focus-visible) { outline: 2px solid var(--green); outline-offset: 2px; }

.wz-nav { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.wz-back {
  min-height: 48px; padding: 0 20px; border-radius: 11px; border: 1px solid var(--border-btn);
  font-size: 14px; transition: background .12s;
}
.wz-back:hover { background: var(--field); }
.wz-next, .wz-send { min-height: 48px; padding: 0 26px; border-radius: 11px; font-size: 15px; }
.wz-next[hidden], .wz-send[hidden], .wz-back[hidden] { display: none; }

.add-aside { display: grid; gap: 10px; align-content: start; min-width: 0; }
.prev-card { display: grid; gap: 10px; }
.prev-top { display: flex; align-items: center; gap: 8px; }
.prev-name {
  font-size: 15.5px; font-weight: 700; letter-spacing: -0.01em; min-width: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.prev-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--c); }
.prev-sub { font-size: 12px; color: var(--text-3); line-height: 1.45; }
.prev-status { font-size: 12px; font-weight: 700; color: var(--c); }

.add-cta {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  flex-wrap: wrap; margin-top: 16px;
}
.add-cta p { font-size: 13px; color: var(--text-2); }

@media (min-width: 700px) {
  .add-pair { grid-template-columns: 1fr 1fr; }
  .wz-sum-row { grid-template-columns: 150px minmax(0, 1fr); }
}
@media (min-width: 1100px) {
  .add-layout { grid-template-columns: minmax(0, 1fr) 280px; gap: 32px; }
  .add-aside { position: sticky; top: 88px; }
}
