/*
Theme Name: Whokla
Author: Sandr Chenk
Author URI: https://sandr-chenk.com/
Description: Тема для Whokla.
Version: 0.5
Requires at least: 7.0
Tested up to: 7.1
Requires PHP: 8.5
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: whokla
*/

/* ==========================================================================
   Токени
   ========================================================================== */

:root {
	--bg: #fff;
	--bg-soft: #f6f7f9;
	--card: #fff;
	--line: #e7e9ee;
	--text: #14161b;
	--muted: #5f6573;
	--faint: #9096a3;

	--accent: #0f7bff;
	--accent-soft: #e8f2ff;
	--accent-line: #b9d6ff;

	--danger: #e5484d;
	--danger-soft: #fdecec;
	--danger-ink: #b4232a;
	--warn: #d98a00;
	--warn-soft: #fff5dc;
	--warn-ink: #9a6200;
	--ok: #1f9d55;
	--ok-soft: #e5f6ec;
	--ok-ink: #157a41;
	--neutral-soft: #eef0f4;

	--shadow: 0 1px 2px rgb(16 24 40 / 4%), 0 4px 16px rgb(16 24 40 / 6%);
	--radius: 16px;
	--radius-sm: 12px;
	--pill: 999px;
	--container: 1160px;
	--gutter: 20px;
	--header: 64px;

	color-scheme: light;             /* темної теми немає: поля форм і смуги прокрутки — світлі навіть у темній ОС */
	accent-color: var(--accent);     /* радіокнопки й чекбокси браузера — кольору сайту */
	interpolate-size: allow-keywords; /* анімація до height: auto — плавне розкриття <details> */
}

/* ==========================================================================
   База
   ========================================================================== */

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-padding-top: calc(var(--header) + 16px); /* якорі (#check, #comment-…) не ховаються під липкою шапкою */
	scrollbar-gutter: stable; /* місце під смугу прокрутки завжди є — сторінка не «стрибає», коли «Показати ще» у відгуках додає рядки */
}

body {
	margin: 0;
	font-family: Manrope, system-ui, -apple-system, "Segoe UI", sans-serif;
	font-size: 16px;
	line-height: 1.5;
	color: var(--text);
	background: var(--bg);
	-webkit-font-smoothing: antialiased;
}

a {
	color: var(--accent);
}

img {
	max-width: 100%;
	height: auto;
}

h1,
h2,
h3 {
	letter-spacing: -0.025em;
	line-height: 1.15;
	text-wrap: balance; /* рядки заголовка рівної довжини, без одного слова в останньому */
}

p,
li,
dd {
	text-wrap: pretty; /* без «висячого» слова в останньому рядку абзацу */
}

button,
input,
textarea,
select {
	font: inherit;
}

[hidden] {
	display: none !important;
}

.container {
	max-width: var(--container);
	margin: 0 auto;
	padding: 0 var(--gutter);
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

.skip-link:focus {
	position: fixed !important;
	top: 8px;
	left: 8px;
	z-index: 100;
	width: auto;
	height: auto;
	padding: 8px 14px;
	clip-path: none;
	color: #fff;
	background: var(--text);
	border-radius: var(--pill);
}

:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 2px;
}

/* ==========================================================================
   Шапка
   ========================================================================== */

.site-header {
	position: sticky;
	top: 0;
	z-index: 10;
	background: rgb(255 255 255 / 85%);
	border-bottom: 1px solid var(--line);
	backdrop-filter: blur(10px);
}

.admin-bar .site-header {
	top: var(--wp-admin--admin-bar--height, 32px);
}

.site-header__bar {
	display: flex;
	align-items: center;
	gap: 24px;
	min-height: var(--header);
}

.brand {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-size: 19px;
	font-weight: 800;
	letter-spacing: -0.02em;
	color: var(--text);
	text-decoration: none;
}

.brand--small {
	font-size: 16px;
}

.brand__icon {
	display: grid;
	width: 32px;
	height: 32px;
	place-items: center;
	background: var(--accent);
	border-radius: 9px;
}

.brand__icon svg {
	fill: none;
	stroke: #fff;
	stroke-width: 2.2;
	stroke-linecap: round;
}

.site-menu {
	margin-left: auto;
}

.site-menu ul,
.footer-menu ul {
	display: flex;
	gap: 4px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-menu a {
	display: block;
	padding: 8px 14px;
	font-size: 14px;
	font-weight: 600;
	color: var(--muted);
	white-space: nowrap;
	text-decoration: none;
	border-radius: var(--pill);
}

.site-menu a:hover {
	color: var(--text);
}

.site-menu .current-menu-item > a,
.site-menu .current_page_item > a {
	color: var(--text);
	background: var(--bg-soft);
}

/* ==========================================================================
   Підвал
   ========================================================================== */

.site-footer {
	margin-top: 24px;
	padding: 32px 0 40px;
	font-size: 13px;
	color: var(--faint);
	background: var(--bg);
	border-top: 1px solid var(--line);
}

.site-footer__top {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 16px 24px;
}

.footer-menu ul {
	flex-wrap: wrap;
	gap: 18px;
}

.footer-menu a {
	font-weight: 600;
	color: var(--muted);
	text-decoration: none;
}

.site-footer__note {
	max-width: 760px;
	margin: 16px 0 0;
}

/* ==========================================================================
   Спільні елементи
   ========================================================================== */

.eyebrow {
	margin: 0;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.14em;
	color: var(--accent);
	text-transform: uppercase;
}

.card {
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
}

a.card,
.card a {
	color: inherit;
	text-decoration: none;
}

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 13px 26px;
	font-size: 15px;
	font-weight: 700;
	white-space: nowrap;
	border: 1px solid transparent;
	border-radius: var(--pill);
	cursor: pointer;
}

.btn--primary {
	color: #fff;
	background: var(--accent);
}

.btn--primary:hover {
	background: color-mix(in oklab, var(--accent), #fff 12%); /* світліший відтінок фону, текст і іконки не змінюються */
}

.btn--primary:disabled {
	opacity: 0.6;
	cursor: wait;
}

.btn--ghost {
	padding: 12px 24px;
	color: var(--text);
	background: var(--card);
	border-color: var(--line);
}

.btn--ghost:hover {
	color: var(--accent);
	border-color: var(--accent);
}

/* Вердикт номера (Rating::status()) */
.badge {
	display: inline-block;
	padding: 4px 10px;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.4;
	white-space: nowrap;
	border-radius: var(--pill);
}

.badge--danger { color: var(--danger-ink); background: var(--danger-soft); }
.badge--warning { color: var(--warn-ink); background: var(--warn-soft); }
.badge--success { color: var(--ok-ink); background: var(--ok-soft); }
.badge--neutral { color: var(--muted); background: var(--neutral-soft); }

.dot {
	display: inline-block;
	flex: none;
	width: 7px;
	height: 7px;
	border-radius: 50%;
}

.dot--danger { background: var(--danger); }
.dot--warning { background: var(--warn); }
.dot--success { background: var(--ok); }
.dot--neutral { background: var(--faint); }

.num {
	font-weight: 800;
	letter-spacing: -0.01em;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

.num--lg {
	font-size: 24px;
	letter-spacing: -0.02em;
}

.meta {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 14px;
	font-size: 12px;
	font-weight: 600;
	color: var(--faint);
}

.empty {
	padding: 40px 0;
	color: var(--muted);
	text-align: center;
}

.crumbs {
	padding-top: 20px;
	font-size: 13px;
	font-weight: 600;
	color: var(--faint);
}

.crumbs a {
	color: var(--muted);
	text-decoration: none;
}

/* ==========================================================================
   Головна
   ========================================================================== */

.hero {
	padding: 72px 0 40px;
	text-align: center;
}

.hero__title {
	max-width: 820px;
	margin: 14px auto 18px;
	font-size: clamp(34px, 6vw, 64px);
	font-weight: 800;
	line-height: 1.05;
	letter-spacing: -0.035em;
}

.hero__lead {
	max-width: 620px;
	margin: 0 auto;
	font-size: 18px;
	color: var(--muted);
}

.hero-search {
	display: flex;
	align-items: center;
	gap: 10px;
	max-width: 620px;
	margin: 32px auto 0;
	padding: 8px 8px 8px 24px;
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: var(--pill);
	box-shadow: 0 8px 30px rgb(15 123 255 / 10%);
}

.hero-search:focus-within {
	border-color: var(--accent-line);
}

.hero-search__icon {
	flex: none;
	fill: none;
	stroke: var(--faint);
	stroke-width: 2.2;
	stroke-linecap: round;
}

.hero-search__input {
	flex: 1;
	min-width: 0;
	font-size: 17px;
	color: var(--text);
	background: transparent;
	border: 0;
	outline: 0;
}

.hero-search__input::placeholder {
	color: var(--faint);
}

/* Єдина форма пошуку (template-parts/phone-search.php): по центру — головна, ліворуч — рубрика */
.phone-search__status {
	max-width: 620px;
	margin: 12px auto 0;
}

.phone-search__hint {
	margin: 12px 0 0;
	font-size: 13px;
	color: var(--faint);
}

.phone-search__hint b {
	font-weight: 600;
	color: var(--muted);
}

.phone-search--left .hero-search {
	margin: 26px 0 0;
	box-shadow: 0 8px 30px rgb(15 123 255 / 10%);
}

.phone-search--left .phone-search__status {
	margin-left: 0;
	text-align: left;
}

.phone-search--left .phone-search__hint {
	padding-left: 24px;
}

.hero-stats {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 24px 56px;
	margin: 44px 0 0;
}

.hero-stats dt {
	font-size: 34px;
	font-weight: 800;
	letter-spacing: -0.03em;
	font-variant-numeric: tabular-nums;
}

.hero-stats dd {
	margin: 0;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.1em;
	color: var(--faint);
	text-transform: uppercase;
}

.section {
	padding: 40px 0;
}

.section--soft {
	background: var(--bg-soft);
}

.section--tight {
	padding-top: 8px;
}

.section__head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 20px;
}

.section__title {
	margin: 0;
	font-size: 26px;
	font-weight: 800;
}

.section__sub {
	margin: 2px 0 0;
	font-size: 14px;
	color: var(--muted);
}

.section__more {
	font-size: 14px;
	font-weight: 700;
	white-space: nowrap;
	text-decoration: none;
}

.grid {
	display: grid;
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* Оператори: усі в один ряд на десктопі (5 карток), на телефоні — по дві; якщо якоїсь категорії
   ще немає, решта розтягується на всю ширину */
.grid--ops { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.grid--6 { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }

/* Небезпечні номери */
.hot-card {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 18px;
}

.hot-card:hover,
.code-card:hover {
	border-color: var(--accent-line);
}

.hot-card__top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
}

.hot-card__top .num {
	font-size: 19px;
}

.hot-card__quote {
	display: -webkit-box;
	overflow: hidden;
	font-size: 14px;
	color: var(--muted);
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

/* Місто, відгуки, час — унизу картки: у ряду на одному рівні, хоч цитата в один рядок, хоч у два */
.hot-card .meta {
	margin-top: auto;
}

/* Оператори */
.op-card {
	overflow: hidden;
	transition: transform 0.15s;
}

.op-card:hover {
	transform: translateY(-3px);
}

.op-card__cover {
	display: grid;
	height: 110px;
	place-items: center;
	font-size: 24px;
	font-weight: 800;
	letter-spacing: -0.02em;
}

.op-card__foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	padding: 12px 14px;
	font-size: 14px;
	font-weight: 700;
}

.op-card__foot small {
	font-size: 12px;
	font-weight: 500;
	color: var(--faint);
	white-space: nowrap;
}

/* Плашки кодів компактні — щоб у картку вміщалося до 5 кодів в один рядок (Vodafone) */
.op-card__codes {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	padding: 0 14px 14px;
}

.op-card__codes span {
	padding: 2px 5px;
	font-size: 11px;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	color: var(--muted);
	background: var(--bg-soft);
	border-radius: 6px;
}

/* Міста */
.code-card {
	display: block;
	padding: 16px;
	border-radius: 14px;
}

.code-card b {
	font-size: 22px;
	font-weight: 800;
	letter-spacing: -0.02em;
}

.code-card span {
	display: block;
	margin-top: 2px;
	font-size: 14px;
	font-weight: 600;
}

.code-card small {
	font-size: 12px;
	color: var(--faint);
}

/* Чипи номерів */
.chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.chip {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 14px;
	font-size: 14px;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
	color: var(--text);
	text-decoration: none;
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: var(--pill);
}

.chip:hover {
	color: var(--accent);
	border-color: var(--accent);
}

/* Як це працює: номер кроку — лічильник списку */
.steps {
	counter-reset: step;
}

.step {
	padding: 24px;
	counter-increment: step;
}

.step::before {
	content: counter(step);
	display: grid;
	width: 36px;
	height: 36px;
	margin-bottom: 14px;
	place-items: center;
	font-weight: 800;
	color: var(--accent);
	background: var(--accent-soft);
	border-radius: 10px;
}

.step__title {
	margin: 0 0 6px;
	font-size: 17px;
	font-weight: 800;
}

.step p {
	margin: 0;
	font-size: 14px;
	color: var(--muted);
}

/* ==========================================================================
   Топи: шапка, перемикачі
   ========================================================================== */

.top-page {
	padding-bottom: 24px;
}

.top-head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px;
	padding: 22px 0 28px;
}

.top-head__title {
	margin: 8px 0 0;
	font-size: clamp(32px, 5vw, 48px);
	font-weight: 800;
	line-height: 1.05;
	letter-spacing: -0.035em;
}

.top-head__lead {
	max-width: 560px;
	margin: 8px 0 0;
	color: var(--muted);
}

.top-head__controls {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.seg {
	display: flex;
	padding: 4px;
	background: var(--bg-soft);
	border-radius: var(--pill);
}

.seg--light {
	background: var(--card);
	border: 1px solid var(--line);
}

.seg__item {
	padding: 8px 16px;
	font-size: 14px;
	font-weight: 700;
	color: var(--muted);
	white-space: nowrap;
	text-decoration: none;
	border-radius: var(--pill);
}

.seg__item:hover {
	color: var(--text);
}

.seg__item[aria-current="page"] {
	color: var(--text);
	background: var(--card);
	box-shadow: 0 1px 3px rgb(16 24 40 / 12%);
}

.seg--light .seg__item[aria-current="page"] {
	color: #fff;
	background: var(--text);
	box-shadow: none;
}

/* Місце в топі: 1–3 — золото, срібло, бронза */
.place {
	display: grid;
	flex: none;
	width: 40px;
	height: 40px;
	place-items: center;
	font-size: 18px;
	font-weight: 800;
	color: var(--muted);
	background: var(--bg-soft);
	border-radius: var(--radius-sm);
}

.place--1 { color: #9a6200; background: #fff4d6; }
.place--2 { color: #5f6573; background: #eef0f4; }
.place--3 { color: #9a4a14; background: #fbe9dd; }

.delta {
	font-size: 13px;
	font-weight: 800;
	color: var(--faint);
	white-space: nowrap;
}

.delta--up { color: var(--danger); }
.delta--down { color: var(--ok); }
.delta--new { color: var(--accent); }

/* ==========================================================================
   Популярні номери
   ========================================================================== */

.podium {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.pod--first {
	border-color: var(--accent-line);
	box-shadow: 0 8px 30px rgb(15 123 255 / 12%);
}

.pod__link {
	display: flex;
	flex-direction: column;
	gap: 14px;
	height: 100%;
	padding: 22px;
}

.pod__top {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.pod__place {
	margin-top: -10px;
	font-size: 13px;
	font-weight: 600;
	color: var(--faint);
}

.pod__views {
	display: flex;
	align-items: baseline;
	gap: 8px;
}

.pod__views b {
	font-size: 34px;
	font-weight: 800;
	letter-spacing: -0.03em;
	font-variant-numeric: tabular-nums;
}

.pod__views > span {
	font-size: 13px;
	font-weight: 700;
	color: var(--faint);
}

.pod__views .delta {
	margin-left: auto;
}

.spark {
	display: block;
	width: 100%;
	height: 44px;
}

.spark polyline {
	fill: none;
	stroke: var(--accent);
	stroke-width: 2.5;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.rank {
	margin-top: 28px;
	overflow: hidden;
}

/* Рядків до 122, тому в рядку мінімум елементів: місце (data-n), точка оператора (--c)
   й смуга переглядів (--w) — псевдоелементи */
.rank__list {
	margin: 0;
	padding: 0;
	list-style: none;
}

/* Рядки поза екраном браузер не малює, доки до них не догорнуть (пошук по сторінці їх знаходить) */
.rank__list li {
	content-visibility: auto;
	contain-intrinsic-size: auto 49px;
}

.rank__row {
	display: grid;
	grid-template-columns: 48px 170px 150px minmax(0, 1fr) 90px 70px 120px;
	align-items: center;
	gap: 16px;
	padding: 14px 20px;
	font-size: 14px;
	border-top: 1px solid var(--line);
}

.rank__list li:first-child .rank__row {
	border-top: 0;
}

a.rank__row:hover {
	background: #fafbfc;
}

.rank__row--head {
	padding-top: 12px;
	padding-bottom: 12px;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.1em;
	color: var(--faint);
	text-transform: uppercase;
	background: var(--bg-soft);
	border-top: 0;
	border-bottom: 1px solid var(--line);
}

/* Місце в топі — перша комірка рядка. З атрибута, а не лічильником CSS:
   content-visibility ізолює лічильники всередині кожного рядка */
.rank__list .rank__row::before {
	content: attr(data-n);
	font-weight: 800;
	color: var(--faint);
	font-variant-numeric: tabular-nums;
}

.rank__row .num {
	font-size: 15px;
}

.rank__place {
	display: flex;
	align-items: center;
	gap: 8px;
	overflow: hidden;
	font-weight: 600;
	color: var(--muted);
	white-space: nowrap;
	text-overflow: ellipsis;
}

/* Точка кольору оператора: --c у style рядка */
.rank__list .rank__place::before {
	content: "";
	flex: none;
	width: 8px;
	height: 8px;
	background: var(--c);
	border-radius: 3px;
}

/* Смуга переглядів: --w у style рядка. Окремий клас, а не .rank__bar: той на вузьких екранах
   ховає комірку (display: none), і правило з display тут його б перебило */
.rank__meter {
	display: block;
	height: 8px;
	overflow: hidden;
	background: var(--bg-soft);
	border-radius: var(--pill);
}

.rank__meter::before {
	content: "";
	display: block;
	width: var(--w);
	height: 100%;
	background: var(--accent);
	border-radius: inherit;
}

.bar {
	display: block;
	height: 8px;
	overflow: hidden;
	background: var(--bg-soft);
	border-radius: var(--pill);
}

.bar i {
	display: block;
	height: 100%;
	background: var(--accent);
	border-radius: var(--pill);
}

.rank__views {
	font-weight: 800;
	font-variant-numeric: tabular-nums;
	text-align: right;
}

/* Динаміка й оцінка — самі комірки сітки (без обгортки), притиснуті праворуч */
.rank__delta,
.rank__badge {
	justify-self: end;
	text-align: right;
}

/* ==========================================================================
   Топ за коментарями
   ========================================================================== */

.page-template-template-comments {
	background: var(--bg-soft);
}

.page-template-template-comments .site-header {
	background: rgb(255 255 255 / 92%);
}

.top-cols {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 340px;
	align-items: start;
	gap: 24px;
}

.talk-list {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.talk {
	transition: border-color 0.15s;
}

.talk:hover {
	border-color: var(--accent-line);
}

.talk__link {
	display: grid;
	grid-template-columns: 44px minmax(0, 1fr) auto;
	align-items: start;
	gap: 16px;
	padding: 18px 20px;
}

.talk .place {
	width: 44px;
	height: 44px;
	font-size: 17px;
}

.talk__main {
	min-width: 0;
}

.talk__top {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
}

.talk__top .num {
	font-size: 18px;
}

.talk__place {
	font-size: 13px;
	font-weight: 600;
	color: var(--faint);
}

/* Розподіл оцінок: один елемент, кольори — градієнт у style (TopComments::mix) */
.mix {
	display: block;
	max-width: 320px;
	height: 6px;
	margin: 10px 0 8px;
	border-radius: var(--pill);
}

.legend {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 12px;
	font-size: 12px;
	font-weight: 600;
	color: var(--muted);
}

.legend > span {
	display: inline-flex;
	align-items: center;
	gap: 5px;
}

/* Точка кольору оцінки: --c у style пункту */
.legend > span::before {
	content: "";
	width: 7px;
	height: 7px;
	background: var(--c);
	border-radius: 50%;
}

.quote {
	display: block;
	margin-top: 12px;
	padding: 12px 14px;
	font-size: 14px;
	color: #2b2f38;
	background: var(--bg-soft);
	border-radius: var(--radius-sm);
}

.quote small {
	display: block;
	margin-top: 4px;
	font-size: 12px;
	font-weight: 600;
	color: var(--faint);
}

/* Число — <b>, підпис «коментарів» — просто текст комірки (без окремого елемента) */
.talk__count {
	font-size: 12px;
	font-weight: 700;
	color: var(--faint);
	text-align: right;
}

.talk__count b {
	display: block;
	font-size: 26px;
	font-weight: 800;
	letter-spacing: -0.03em;
	color: var(--text);
	font-variant-numeric: tabular-nums;
}

.talk__count em {
	display: block;
	margin-top: 4px;
	font-size: 12px;
	font-style: normal;
	font-weight: 800;
	color: var(--danger);
}

.top-side {
	position: sticky;
	top: calc(var(--header) + 24px);
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.summary {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
	padding: 20px;
}

.summary div {
	padding: 12px;
	background: var(--bg-soft);
	border-radius: var(--radius-sm);
}

.summary b {
	display: block;
	font-size: 22px;
	font-weight: 800;
	letter-spacing: -0.02em;
}

.summary span {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.08em;
	color: var(--faint);
	text-transform: uppercase;
}

.feed {
	padding: 20px;
}

.feed__title {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 6px;
	font-size: 17px;
	font-weight: 800;
}

.live {
	width: 8px;
	height: 8px;
	background: var(--danger);
	border-radius: 50%;
	box-shadow: 0 0 0 4px var(--danger-soft);
}

.feed__item {
	display: block;
	padding: 12px 0;
	border-top: 1px solid var(--line);
}

.feed__title + .feed__item {
	border-top: 0;
}

.feed__top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
}

.feed__top .num {
	font-size: 14px;
}

.feed__text {
	display: -webkit-box;
	margin-top: 4px;
	overflow: hidden;
	font-size: 13px;
	color: var(--muted);
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.feed__item small {
	font-size: 11px;
	font-weight: 700;
	color: var(--faint);
}

/* ==========================================================================
   Внутрішні сторінки: макет з бічною колонкою, записи, рубрики
   ========================================================================== */

.layout-sidebar .site-main {
	padding: 32px 0;
}

.layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 32px;
}

.content {
	min-width: 0;
}

@media (width >= 768px) {
	.layout:has(.sidebar) {
		grid-template-columns: minmax(0, 1fr) 300px;
	}
}

.widget {
	margin-bottom: 24px;
}

.widget:last-child {
	margin-bottom: 0;
}

.widget-title {
	margin: 0 0 12px;
	font-size: 16px;
	font-weight: 800;
}

.page-header {
	margin-bottom: 28px;
}

.page-title {
	margin: 0 0 8px;
	font-size: clamp(28px, 4vw, 40px);
	font-weight: 800;
	letter-spacing: -0.03em;
}

.post-card {
	margin-bottom: 24px;
	padding-bottom: 24px;
	border-bottom: 1px solid var(--line);
}

.post-card:last-child {
	border-bottom: 0;
}

.post-card .entry-title {
	margin: 0 0 8px;
	font-size: 22px;
}

.post-card .entry-title a {
	color: inherit;
	text-decoration: none;
}

.entry-meta {
	margin-bottom: 12px;
	font-size: 14px;
	color: var(--faint);
}

.post-thumbnail {
	display: block;
	margin-bottom: 16px;
}

.post-thumbnail img {
	border-radius: var(--radius-sm);
}

.entry-content > *:first-child {
	margin-top: 0;
}

.entry-footer {
	margin-top: 24px;
	font-size: 14px;
	color: var(--faint);
}

.pagination .nav-links,
.post-navigation .nav-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 8px;
}

.post-navigation a {
	font-weight: 700;
	text-decoration: none;
}

.pagination .page-numbers {
	padding: 6px 12px;
	font-weight: 700;
	color: var(--muted);
	text-decoration: none;
	border: 1px solid var(--line);
	border-radius: var(--pill);
}

.pagination .page-numbers.current {
	color: #fff;
	background: var(--text);
	border-color: var(--text);
}

/* 404 → 410 (404.php): вузька колонка по центру, текст — ліворуч */
.gone {
	max-width: 480px;
	margin: 0 auto;
	padding: clamp(48px, 12dvh, 120px) 0;
}

.gone__eyebrow {
	margin-bottom: 18px;
}

.gone__code {
	margin: 0 0 20px;
	font-size: clamp(48px, 10vw, 72px);
	font-weight: 800;
	line-height: 1;
	letter-spacing: -0.04em;
}

.gone__title {
	margin: 0 0 16px;
	font-size: clamp(20px, 3.2vw, 24px);
	font-weight: 700;
	line-height: 1.35;
	letter-spacing: -0.015em;
}

.gone__text {
	margin: 0 0 28px;
	font-size: 15px;
	line-height: 1.65;
	color: var(--muted);
}

.gone__rule {
	margin: 0 0 20px;
	border: 0;
	border-top: 1px solid var(--line);
}

.gone__foot {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 8px 16px;
}

.gone__stamp {
	margin: 0;
	font-size: 12px;
	color: var(--muted);
}

.gone__stamp b {
	font-weight: 600;
	color: var(--text);
}

.gone__back {
	font-size: 13px;
	font-weight: 600;
	white-space: nowrap;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.gone__back:hover {
	color: var(--text);
}

/* ==========================================================================
   Віджети
   ========================================================================== */

/* «Останні записи», «Останні переглянуті записи» */
.links-title {
	text-align: left;
}

.links-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.links-grid__item {
	padding: 6px 12px;
	font-size: 14px;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
	color: var(--text);
	text-decoration: none;
	white-space: nowrap;
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: var(--pill);
}

.links-grid__item:hover,
.links-grid__item:focus-visible {
	color: var(--accent);
	border-color: var(--accent);
}

/* Пошук номера: віджет і форма на головній (повідомлення, капча) */
.pdw-search__title {
	margin-bottom: 8px;
	font-size: 16px;
	font-weight: 800;
}

.pdw-search__form {
	display: flex;
	gap: 8px;
}

.pdw-search__field {
	flex: 1 1 0;
	min-width: 0;
	height: 40px;
	padding: 0 14px;
	font-size: 14px;
	background: var(--bg-soft);
	border: 1px solid var(--line);
	border-radius: var(--pill);
	outline: 0;
}

.pdw-search__field:focus {
	border-color: var(--accent-line);
}

.pdw-search__form .pdw-search__submit {
	height: 40px;
	padding: 0 16px;
	font-size: 14px;
	font-weight: 700;
	color: #fff;
	background: var(--accent);
	border: 0;
	border-radius: var(--pill);
	cursor: pointer;
}

.pdw-search__submit:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

.pdw-search__status {
	margin-top: 8px;
	text-align: center;
}

.pdw-search__status:empty {
	display: none;
}

.pdw-search__msg {
	margin: 0;
	font-size: 14px;
	font-weight: 600;
}

/* «Номера … на сайті ще немає. Додати?» + «Так» / «Ні» (phone-search.js) */
.pdw-search__ask {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 8px 10px;
}

.pdw-search__ask .pdw-search__msg {
	color: var(--text);
	text-wrap: balance;
}

.pdw-search__ask b {
	font-weight: 800;
	white-space: nowrap;
	font-variant-numeric: tabular-nums;
}

.pdw-search__yes,
.pdw-search__no {
	height: 36px;
	padding: 0 18px;
	font: inherit;
	font-size: 14px;
	font-weight: 700;
	border-radius: var(--pill);
	cursor: pointer;
}

.pdw-search__yes {
	color: #fff;
	background: var(--text);
	border: 1px solid var(--text);
}

.pdw-search__no {
	color: var(--text);
	background: #fff;
	border: 1px solid var(--line);
}

.pdw-search__no:hover {
	border-color: var(--muted);
}

.pdw-search__yes:focus-visible,
.pdw-search__no:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 2px;
}

.pdw-search__msg--loading { color: var(--accent); }
.pdw-search__msg--error { color: var(--danger-ink); }

.pdw-captcha {
	position: relative;
	width: 100%;
	height: 340px;
	overflow: hidden;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--radius-sm);
}

.pdw-captcha iframe {
	width: 100%;
	height: 100%;
	border: 0;
}

.pdw-captcha__close {
	position: absolute;
	top: 4px;
	right: 8px;
	z-index: 1;
	padding: 0;
	font-size: 22px;
	line-height: 1;
	color: var(--text);
	background: none;
	border: 0;
	cursor: pointer;
}

/* ==========================================================================
   Міста та оператори (template-cat-page-city.php)
   ========================================================================== */

.cat-page {
	padding-bottom: 16px;
}

.cat-head {
	padding: 40px 0 32px;
	text-align: center;
}

.cat-head__title {
	margin: 10px 0 12px;
	font-size: clamp(32px, 5vw, 52px);
	font-weight: 800;
	line-height: 1.05;
	letter-spacing: -0.035em;
}

.cat-head__lead {
	max-width: 560px;
	margin: 0 auto;
	color: var(--muted);
}

.cat-section {
	padding: 28px 0;
}

.cat-section__head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 8px 16px;
	margin-bottom: 18px;
}

.cat-section__title {
	margin: 0;
	font-size: 24px;
	font-weight: 800;
}

.cat-section__sub {
	font-size: 13px;
	font-weight: 600;
	color: var(--faint);
}

/* Оператори: суцільна фірмова плашка */
.ops-grid {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 14px;
}

.op-tile {
	overflow: hidden;
	transition: transform 0.15s;
}

.op-tile:hover {
	transform: translateY(-3px);
}

.op-tile__cover {
	display: grid;
	height: 92px;
	place-items: center;
	font-size: 20px;
	font-weight: 800;
	letter-spacing: -0.02em;
}

.op-tile__body {
	display: block;
	padding: 12px 14px;
}

.op-tile__body b {
	display: block;
	font-size: 15px;
}

.op-tile__body small {
	font-size: 12px;
	font-weight: 600;
	color: var(--faint);
}

/* Компактні плашки — до 5 кодів в один рядок (Vodafone) */
.op-tile__codes {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	margin-top: 8px;
}

.op-tile__codes span {
	padding: 2px 5px;
	font-variant-numeric: tabular-nums;
	font-size: 11px;
	font-weight: 700;
	color: var(--muted);
	background: var(--bg-soft);
	border-radius: 6px;
}

/* Міста */
.city-list {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 10px;
}

.city-tile {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 14px 16px;
	color: var(--text);
	text-decoration: none;
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: 14px;
	transition: border-color 0.15s;
}

.city-tile:hover,
.city-tile:focus-visible {
	border-color: var(--accent);
}

.city-tile b {
	font-size: 15px;
	font-weight: 700;
}

.city-tile small {
	display: block;
	font-size: 12px;
	font-weight: 600;
	color: var(--faint);
}

.code-badge {
	flex: none;
	padding: 4px 8px;
	font-size: 13px;
	font-weight: 800;
	font-variant-numeric: tabular-nums;
	color: var(--accent);
	background: var(--accent-soft);
	border-radius: 8px;
}

/* Архівні міста — приглушені */
.city-tile--archived {
	opacity: 0.55;
}

.city-tile--archived .code-badge {
	color: var(--faint);
	background: var(--bg-soft);
}

.cat-note {
	margin: 12px 0 0;
	font-size: 12px;
	font-weight: 600;
	color: var(--faint);
}

/* ==========================================================================
   Рубрика — місто або оператор (category.php)
   ========================================================================== */

.term-hero {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 380px;
	align-items: center;
	gap: 28px;
	padding: 26px 0 32px;
}

.tag {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.12em;
	color: var(--accent);
	text-transform: uppercase;
}

.tag svg {
	fill: none;
	stroke: currentColor;
	stroke-width: 2.6;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.term-hero__title {
	margin: 10px 0 12px;
	font-size: clamp(34px, 5.4vw, 56px);
	font-weight: 800;
	line-height: 1.05;
	letter-spacing: -0.035em;
}

.term-hero__lead {
	max-width: 560px;
	margin: 0;
	font-size: 17px;
	color: var(--muted);
}

.term-stats {
	display: flex;
	flex-wrap: wrap;
	gap: 16px 36px;
	margin: 24px 0 0;
}

.term-stats dt {
	font-size: 28px;
	font-weight: 800;
	letter-spacing: -0.03em;
	font-variant-numeric: tabular-nums;
}

.term-stats dd {
	margin: 0;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.1em;
	color: var(--faint);
	text-transform: uppercase;
}

/* Картка коду */
.codeinfo {
	padding: 22px;
	border-radius: 20px;
}

.codeinfo__big {
	display: flex;
	align-items: baseline;
	gap: 12px;
	margin: 0;
}

.codeinfo__big b {
	font-size: 56px;
	font-weight: 800;
	line-height: 1;
	letter-spacing: -0.04em;
	color: var(--accent);
}

.codeinfo__big span {
	font-size: 14px;
	font-weight: 700;
	color: var(--muted);
}

/* Кілька кодів: назва замість одного коду, під нею — усі коди */
.codeinfo__big--name {
	flex-wrap: wrap;
}

.codeinfo__big--name b {
	font-size: 40px;
	letter-spacing: -0.03em;
}

.codeinfo__codes {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 12px 0 0;
}

.codeinfo__codes span {
	padding: 4px 10px;
	font-size: 16px;
	font-weight: 800;
	font-variant-numeric: tabular-nums;
	color: var(--accent);
	background: var(--accent-soft);
	border-radius: 8px;
}

.codeinfo__rows {
	display: grid;
	gap: 8px;
	margin: 16px 0 0;
}

.codeinfo__rows div {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	font-size: 14px;
}

.codeinfo__rows dt {
	font-weight: 600;
	color: var(--faint);
}

.codeinfo__rows dd {
	margin: 0;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	text-align: right;
}

/* Список номерів рубрики */
.list-head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 28px 0 16px;
	border-top: 1px solid var(--line);
}

.list-head__title {
	margin: 0;
	font-size: 24px;
	font-weight: 800;
}

.list-head__sub {
	margin: 0;
	font-size: 13px;
	font-weight: 600;
	color: var(--faint);
}

.sort select {
	padding: 8px 14px;
	font-size: 14px;
	font-weight: 600;
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: var(--pill);
	cursor: pointer;
}

.num-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 14px;
}

.num-card {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 16px;
	border-radius: 14px;
	transition: transform 0.15s, border-color 0.15s;
}

.num-card:hover {
	border-color: var(--accent-line);
	transform: translateY(-2px);
}

.num-card__top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
}

.num-card__top .num {
	font-size: 17px;
}

.num-card__top .badge {
	padding: 3px 9px;
	font-size: 11px;
}

.num-card__meta {
	font-size: 12px;
	font-weight: 600;
	color: var(--faint);
}

.num-card__cta {
	font-size: 13px;
	font-weight: 700;
	color: var(--accent);
}

.few-tile {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 6px;
	padding: 16px;
	background: var(--bg-soft);
	border: 1.5px dashed #cfd6e2;
	border-radius: 14px;
}

.few-tile b {
	font-size: 14px;
}

.few-tile span {
	font-size: 13px;
	color: var(--muted);
}

.term-page .pagination {
	margin-top: 24px;
}

.term-desc {
	max-width: 780px;
	margin-top: 32px;
	color: var(--muted);
}

/* Поради */
.info-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
	margin-top: 40px;
}

.info-card {
	padding: 22px;
	box-shadow: none;
}

.info-card__icon {
	display: grid;
	width: 38px;
	height: 38px;
	margin-bottom: 12px;
	place-items: center;
	background: var(--accent-soft);
	border-radius: 11px;
}

.info-card__icon svg {
	fill: none;
	stroke: var(--accent);
	stroke-width: 2.2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.info-card h3 {
	margin: 0 0 6px;
	font-size: 16px;
	font-weight: 800;
}

.info-card p {
	margin: 0;
	font-size: 14px;
	color: var(--muted);
}

/* Інші міста й питання */
.term-more {
	margin-top: 48px;
}

.term-more .section__title {
	margin-bottom: 16px;
}

.term-more__chips b {
	color: var(--accent);
}

.faq {
	max-width: 780px;
	margin-top: 32px;
}

.faq details {
	padding: 16px 0;
	border-top: 1px solid var(--line);
}

.faq details:last-child {
	border-bottom: 1px solid var(--line);
}

.faq summary {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	font-size: 16px;
	font-weight: 700;
	list-style: none;
	cursor: pointer;
}

.faq summary::after {
	content: "+";
	font-size: 20px;
	line-height: 1;
	color: var(--faint);
}

.faq details[open] summary::after {
	content: "−";
}

.faq details p {
	margin: 8px 0 0;
	color: var(--muted);
}

/* ==========================================================================
   Контакти (template-contact.php, форма — Whokla\Contact)
   ========================================================================== */

.contact-head {
	max-width: 640px;
	padding: 32px 0 28px;
}

.contact-head__title {
	margin: 10px 0 12px;
	font-size: clamp(32px, 5vw, 52px);
	font-weight: 800;
	line-height: 1.05;
	letter-spacing: -0.035em;
}

.contact-head__lead {
	margin: 0;
	font-size: 17px;
	color: var(--muted);
}

/* Теми: радіокнопки-картки (поле приховане, вибрана картка — з рамкою акценту) */
.contact-topics {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 14px;
	margin: 0 0 28px;
	padding: 0;
	border: 0;
}

.contact-topic {
	position: relative;
	display: block;
	padding: 20px;
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	cursor: pointer;
	transition: border-color 0.15s, box-shadow 0.15s;
}

.contact-topic:hover {
	border-color: var(--accent-line);
}

.contact-topic:has(:checked) {
	border-color: var(--accent);
	box-shadow: 0 0 0 1px var(--accent), 0 8px 24px rgb(15 123 255 / 10%);
}

.contact-topic:has(:focus-visible) {
	outline: 2px solid var(--accent);
	outline-offset: 2px;
}

.contact-topic__icon {
	display: grid;
	width: 40px;
	height: 40px;
	margin-bottom: 12px;
	place-items: center;
	background: var(--accent-soft);
	border-radius: var(--radius-sm);
}

.contact-topic__icon svg {
	fill: none;
	stroke: var(--accent);
	stroke-width: 2.2;
	stroke-linecap: round;
}

.contact-topic b {
	display: block;
	font-size: 16px;
	font-weight: 800;
}

.contact-topic > span:last-child {
	font-size: 13px;
	color: var(--muted);
}

.contact-cols {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 360px;
	align-items: start;
	gap: 24px;
}

.contact-card {
	padding: 28px;
}

.contact-card__title {
	margin: 0 0 18px;
	font-size: 21px;
	font-weight: 800;
	letter-spacing: -0.02em;
}

.contact-form {
	display: grid;
	gap: 14px;
}

.contact-form .contact-card__title {
	margin-bottom: 4px;
}

.contact-form__row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
}

.contact-field__label {
	display: block;
	margin-bottom: 6px;
	font-size: 13px;
	font-weight: 700;
	color: var(--muted);
}

.contact-field__input {
	width: 100%;
	padding: 12px 14px;
	font-size: 15px;
	color: var(--text);
	background: var(--bg-soft);
	border: 1px solid var(--line);
	border-radius: var(--radius-sm);
	outline: 0;
}

.contact-field__input:focus {
	background: var(--card);
	border-color: var(--accent);
	box-shadow: 0 0 0 4px var(--accent-soft);
}

.contact-field__input[aria-invalid="true"] {
	border-color: var(--danger);
}

textarea.contact-field__input {
	min-height: 140px;
	max-height: 60dvh;
	resize: vertical;
	field-sizing: content; /* поле росте разом із текстом */
}

.contact-field__error {
	margin: 6px 0 0;
	font-size: 13px;
	font-weight: 600;
	color: var(--danger-ink);
}

/* Номер — лише для теми «Видалити коментар або номер» */
.contact-page:not(:has([name="contact_topic"][value="delete"]:checked)) .contact-field--number {
	display: none;
}

/* Пастка для ботів: у розмітці є (боти заповнюють), людям не видно */
.contact-form__hp {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
}

.contact-form__foot {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-top: 4px;
}

.contact-form__note {
	max-width: 380px;
	margin: 0;
	font-size: 12px;
	font-weight: 600;
	color: var(--faint);
}

.contact-form__note a {
	text-decoration: none;
}

.contact-alert {
	margin: 0;
	padding: 14px 16px;
	font-size: 14px;
	font-weight: 700;
	color: var(--danger-ink);
	background: var(--danger-soft);
	border-radius: var(--radius-sm);
}

.contact-sent {
	padding: 18px 20px;
	background: var(--ok-soft);
	border-radius: var(--radius-sm);
}

.contact-sent .contact-card__title {
	margin-bottom: 6px;
	color: var(--ok-ink);
}

.contact-sent p {
	margin: 0 0 16px;
	color: var(--ok-ink);
}

.contact-side {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.contact-box {
	margin: 0;
	padding: 22px;
}

.contact-box__title {
	margin: 0 0 8px;
	font-size: 17px;
	font-weight: 800;
	letter-spacing: -0.01em;
}

.contact-box p {
	margin: 0;
	font-size: 14px;
	color: var(--muted);
}

.contact-steps {
	display: grid;
	gap: 12px;
	margin: 14px 0 0;
	padding: 0;
	list-style: none;
	counter-reset: contact-step;
}

.contact-steps li {
	display: flex;
	gap: 12px;
	font-size: 14px;
	color: var(--muted);
	counter-increment: contact-step;
}

.contact-steps li::before {
	content: counter(contact-step);
	display: grid;
	flex: none;
	width: 26px;
	height: 26px;
	place-items: center;
	font-size: 13px;
	font-weight: 800;
	color: var(--accent);
	background: var(--accent-soft);
	border-radius: 8px;
}

.contact-meta {
	display: grid;
	gap: 12px;
}

.contact-meta > div {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	font-size: 14px;
}

.contact-meta dt {
	font-weight: 600;
	color: var(--faint);
}

.contact-meta dd {
	margin: 0;
	font-weight: 700;
	text-align: right;
}

.contact-meta a {
	color: inherit;
	text-decoration: none;
}

.contact-faq {
	max-width: none;
	margin-top: 40px;
}

.contact-faq .section__title {
	margin-bottom: 14px;
	font-size: 24px;
	letter-spacing: -0.025em;
}

.contact-faq details p {
	max-width: 760px;
}

.contact-faq a {
	text-decoration: none;
}

/* ==========================================================================
   Документи: правила, конфіденційність (template-rules.php, template-privacy.php → template-parts/doc.php)
   Блоки в тексті сторінки — класи нижче; правила розкладає Doc::rules()
   ========================================================================== */

.doc-head {
	padding: 28px 0 26px;
	border-bottom: 1px solid var(--line);
}

.doc-head__tabs {
	display: inline-flex;
	margin-bottom: 22px;
}

.doc-head__title {
	margin: 0;
	font-size: clamp(30px, 4.6vw, 48px);
	font-weight: 800;
	line-height: 1.08;
	letter-spacing: -0.035em;
}

.doc-head__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 16px;
	margin: 12px 0 0;
	font-size: 13px;
	font-weight: 600;
	color: var(--faint);
}

/* Верхня зона (<!--doc-top-->): зведення правил (Doc::rules) */
.tldr {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
	margin-top: 28px;
}

.tldr__item {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 16px;
	border: 1px solid var(--line);
	border-radius: 14px;
}

.tldr__item i {
	display: grid;
	flex: none;
	width: 30px;
	height: 30px;
	place-items: center;
	font-size: 14px;
	font-style: normal;
	font-weight: 800;
	border-radius: 9px;
}

.tldr__item--yes i { color: var(--ok); background: var(--ok-soft); }
.tldr__item--no i { color: var(--danger); background: var(--danger-soft); }
.tldr__item--info i { color: var(--accent); background: var(--accent-soft); }

.tldr__item b {
	display: block;
	font-size: 14px;
}

.tldr__item span {
	font-size: 13px;
	color: var(--muted);
}

/* Сітка: зміст + текст */
.doc {
	display: grid;
	grid-template-columns: 250px minmax(0, 1fr);
	gap: 56px;
	padding-top: 36px;
}

.doc--single {
	grid-template-columns: minmax(0, 1fr);
}

.toc {
	position: sticky;
	top: calc(var(--header) + 24px);
	display: flex;
	flex-direction: column;
	align-self: start;
	gap: 1px;
	max-height: calc(100dvh - var(--header) - 48px); /* dvh — видима висота, з урахуванням панелей мобільного браузера */
	overflow: auto;
}

.toc__title {
	margin: 14px 0 6px 12px;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.12em;
	color: var(--faint);
	text-transform: uppercase;
}

.toc__title:first-child {
	margin-top: 0;
}

.toc__link {
	padding: 6px 12px;
	font-size: 14px;
	font-weight: 600;
	color: var(--muted);
	text-decoration: none;
	border-radius: 9px;
}

.toc--grouped .toc__link {
	font-size: 13.5px;
}

/* H3 під своїм H2 у простому змісті */
.toc__link--sub {
	padding-left: 24px;
	font-size: 13.5px;
}

.toc__link:hover {
	color: var(--text);
	background: var(--bg-soft);
}

.toc__link[aria-current] {
	color: var(--accent);
	background: var(--accent-soft);
}

/* Текст документа */
.doc-body {
	max-width: 720px;
}

.doc-body h2,
.doc-body h3 {
	scroll-margin-top: calc(var(--header) + 24px);
}

.doc-body h2 {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 44px 0 12px;
	font-size: 24px;
	font-weight: 800;
	letter-spacing: -0.02em;
}

.doc-body > h2:first-child {
	margin-top: 0;
}

/* Номер розділу в H2: <span class="num">1</span> */
.doc-body h2 .num {
	display: grid;
	flex: none;
	width: 30px;
	height: 30px;
	place-items: center;
	font-size: 14px;
	color: var(--muted);
	background: var(--bg-soft);
	border-radius: 9px;
}

.doc-body h3 {
	margin: 32px 0 8px;
	font-size: 19px;
	font-weight: 800;
	letter-spacing: -0.01em;
}

.doc-body p,
.doc-body li {
	font-size: 16px;
	line-height: 1.75;
	color: #3a3f4a;
}

.doc-body p {
	margin: 0 0 14px;
}

.doc-body a {
	font-weight: 700;
	text-decoration: none;
}

.doc-body .lead {
	font-size: 18px;
	line-height: 1.65;
	color: #2b2f38;
}

/* Червона плашка з «!» — попередження */
.callout {
	display: flex;
	gap: 14px;
	margin: 20px 0;
	padding: 18px 20px;
	background: var(--danger-soft);
	border-radius: 14px;
}

.callout::before {
	content: "!";
	display: grid;
	flex: none;
	width: 32px;
	height: 32px;
	place-items: center;
	font-weight: 800;
	color: #fff;
	background: var(--danger);
	border-radius: 10px;
}

.doc-body .callout p {
	margin: 0;
	font-weight: 600;
	line-height: 1.6;
	color: #8f1d23;
}

/* Список заборон із ✕; <b> на початку пункту — суть */
.doc-body .rules {
	display: grid;
	gap: 10px;
	margin: 16px 0 20px;
	padding: 0;
	list-style: none;
}

.doc-body .rules li {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 14px 16px;
	font-size: 15px;
	line-height: 1.55;
	border: 1px solid var(--line);
	border-radius: var(--radius-sm);
}

.doc-body .rules li::before {
	content: "✕";
	display: grid;
	flex: none;
	width: 22px;
	height: 22px;
	margin-top: 1px;
	place-items: center;
	font-size: 12px;
	font-weight: 800;
	color: var(--danger);
	background: var(--danger-soft);
	border-radius: 7px;
}

.doc-body .rules b {
	color: var(--text);
}

/* Що варто писати — зелені плашки з ✓ */
.doc-body .good {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
	margin: 16px 0 20px;
	padding: 0;
	list-style: none;
}

.doc-body .good li {
	display: flex;
	gap: 10px;
	padding: 14px 16px;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.5;
	color: #14572f;
	background: var(--ok-soft);
	border-radius: var(--radius-sm);
}

.doc-body .good li::before {
	content: "✓";
	font-weight: 800;
	color: var(--ok);
}

/* Кроки: «Крок N» — лічильник списку */
.doc-body .steps {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 10px;
	margin: 16px 0 20px;
	padding: 0;
	list-style: none;
	counter-reset: step;
}

.doc-body .steps li {
	padding: 14px;
	font-size: 14px;
	line-height: 1.5;
	border: 1px solid var(--line);
	border-radius: var(--radius-sm);
	counter-increment: step;
}

.doc-body .steps li::before {
	content: "Крок " counter(step);
	display: block;
	margin-bottom: 4px;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.08em;
	color: var(--accent);
	text-transform: uppercase;
}

/* Список із крапками в рамках; так само — звичайний список із редактора */
.doc-body .list,
.doc-body ul:not([class]) {
	display: grid;
	gap: 8px;
	margin: 10px 0 14px;
	padding: 0;
	list-style: none;
}

.doc-body .list li,
.doc-body ul:not([class]) > li {
	position: relative;
	padding: 10px 14px 10px 38px;
	font-size: 15px;
	line-height: 1.55;
	border: 1px solid var(--line);
	border-radius: var(--radius-sm);
}

.doc-body .list li::before,
.doc-body ul:not([class]) > li::before {
	content: "";
	position: absolute;
	top: 17px;
	left: 15px;
	width: 8px;
	height: 8px;
	background: var(--accent);
	border-radius: 50%;
}

.doc-end {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-top: 48px;
	padding: 22px;
	background: var(--bg-soft);
	border-radius: var(--radius);
}

.doc-end b {
	font-size: 16px;
}

.doc-body .doc-end p {
	margin: 0;
	font-size: 14px;
	color: var(--muted);
}

.doc-end .btn {
	padding: 12px 22px;
	text-decoration: none;
}

/* ==========================================================================
   Сторінка номера (single.php → template-parts/number/*)
   ========================================================================== */

/* Сірий фон, білі картки */
.number-page {
	background: var(--bg-soft);
}

.number-page .site-header {
	background: rgb(255 255 255 / 92%);
}

.number-page .crumbs {
	padding-bottom: 14px;
}

.number-wrap {
	padding-bottom: 16px;
}

/* Перший екран */
.nhero {
	display: grid;
	grid-template-columns: 1.25fr 1fr;
	gap: 24px;
	padding: 28px;
}

.nhero__pills {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin: 0;
}

.pill {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 5px 11px;
	font-size: 12px;
	font-weight: 700;
	color: var(--muted);
	text-decoration: none;
	background: var(--bg-soft);
	border-radius: var(--pill);
}

a.pill:hover {
	color: var(--text);
}

.pill__sq {
	width: 10px;
	height: 10px;
	border-radius: 3px;
}

.nhero__title {
	margin: 14px 0 6px;
	font-size: clamp(34px, 5.2vw, 54px);
	font-weight: 800;
	line-height: 1.05;
	letter-spacing: -0.035em;
	font-variant-numeric: tabular-nums;
}

.nhero__intl {
	margin: 0;
	font-size: 15px;
	font-weight: 600;
	color: var(--muted);
}

/* Вердикт: колір — Rating::status() / PostRating::status() */
.verdict {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-top: 22px;
	padding: 14px 16px;
	color: var(--verdict-ink);
	background: var(--verdict-soft);
	border-radius: 14px;
}

.verdict--danger { --verdict: var(--danger); --verdict-soft: var(--danger-soft); --verdict-ink: var(--danger-ink); }
.verdict--warning { --verdict: var(--warn); --verdict-soft: var(--warn-soft); --verdict-ink: var(--warn-ink); }
.verdict--success { --verdict: var(--ok); --verdict-soft: var(--ok-soft); --verdict-ink: var(--ok-ink); }
.verdict--neutral { --verdict: var(--faint); --verdict-soft: var(--neutral-soft); --verdict-ink: var(--muted); }

.verdict__icon {
	display: grid;
	flex: none;
	width: 40px;
	height: 40px;
	place-items: center;
	background: var(--verdict);
	border-radius: var(--radius-sm);
}

.verdict__icon svg {
	fill: none;
	stroke: #fff;
	stroke-width: 2.4;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.verdict b {
	display: block;
	font-size: 17px;
	font-weight: 800;
	letter-spacing: -0.01em;
}

.verdict b + span {
	font-size: 13px;
	font-weight: 600;
	opacity: 0.85;
}

.nhero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 20px;
}

.nhero__actions .btn {
	gap: 8px;
	padding: 12px 22px;
	text-decoration: none;
}

.nhero__actions svg {
	fill: none;
	stroke: currentColor;
	stroke-width: 2.4;
	stroke-linecap: round;
}

.nhero__actions .btn--ghost {
	background: var(--bg-soft);
}

/* Плитки з цифрами */
.tiles {
	display: grid;
	grid-template-columns: 1fr 1fr;
	align-content: start;
	gap: 12px;
	margin: 0;
}

.tile {
	padding: 16px;
	background: var(--bg-soft);
	border-radius: 14px;
}

.tile dt {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.1em;
	color: var(--faint);
	text-transform: uppercase;
}

.tile dd {
	margin: 0;
}

.tile b {
	display: block;
	font-size: 28px;
	font-weight: 800;
	letter-spacing: -0.03em;
	font-variant-numeric: tabular-nums;
}

.tile b small {
	font-size: 15px;
	font-weight: 700;
	color: var(--faint);
}

.tile .tile__small {
	margin-top: 6px;
	font-size: 20px;
}

.stars {
	display: flex;
	gap: 2px;
	margin-top: 4px;
}

.stars svg {
	fill: #e2e4ea;
}

.stars svg.is-on {
	fill: #f5a524;
}

/* Дві колонки: картки й бічна колонка */
.ncols {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 340px;
	align-items: start;
	gap: 24px;
	margin-top: 24px;
}

.ncols--single {
	grid-template-columns: minmax(0, 1fr);
}

.nstack {
	display: flex;
	flex-direction: column;
	gap: 24px;
	min-width: 0;
}

.ncard {
	padding: 24px;
}

.ncard--small {
	padding: 20px;
}

.ncard__head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 16px;
}

.ncard__title {
	margin: 0;
	font-size: 21px;
	font-weight: 800;
	letter-spacing: -0.02em;
}

.ncard--small .ncard__title {
	margin-bottom: 12px;
	font-size: 17px;
}

.ncard__sub {
	font-size: 13px;
	font-weight: 600;
	color: var(--faint);
}

.ncard__count {
	margin-left: 4px;
	font-size: 15px;
	color: var(--faint);
}

/* Як оцінюють номер */
.bars {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.bars__row {
	display: grid;
	grid-template-columns: 110px minmax(0, 1fr) 44px;
	align-items: center;
	gap: 12px;
	font-size: 14px;
	font-weight: 600;
}

.bars__row .bar {
	height: 10px;
}

.bars__row em {
	font-style: normal;
	font-variant-numeric: tabular-nums;
	color: var(--faint);
	text-align: right;
}

/* Інтерес до номера */
.chart {
	display: flex;
	align-items: flex-end;
	gap: 4px;
	height: 160px;
	padding-top: 8px;
}

/* Стовпчик дня: зверху — число переглядів (вертикально), під ним — сам стовпчик.
   Висота стовпчика — частка --h від висоти колонки мінус місце під число (до 5 знаків) */
.chart__col {
	display: flex;
	flex: 1;
	flex-direction: column;
	align-items: center;
	justify-content: flex-end;
	min-width: 0;
	height: 100%;
}

.chart__val {
	margin-bottom: 3px;
	font-size: 10px;
	font-weight: 700;
	line-height: 1;
	font-variant-numeric: tabular-nums;
	color: var(--muted);
	white-space: nowrap;
	writing-mode: vertical-rl;
	transform: rotate(180deg);
}

.chart__col i {
	width: 100%;
	height: calc((100% - 34px) * var(--h, 0));
	min-height: 3px;
	background: var(--accent-soft);
	border-radius: 4px 4px 0 0;
}

.chart__col.is-recent i {
	background: var(--accent);
}

.chart__col.is-recent .chart__val {
	color: var(--accent);
}

/* Пік — день із найбільшою кількістю переглядів за 32 дні */
.chart__col.is-peak i {
	background: var(--danger);
}

.chart__col.is-peak .chart__val {
	color: var(--danger);
}

.chart__x {
	display: flex;
	justify-content: space-between;
	margin-top: 6px;
	font-size: 11px;
	font-weight: 600;
	color: var(--faint);
}

.chart__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 20px;
	margin: 14px 0 0;
	font-size: 13px;
	font-weight: 600;
	color: var(--muted);
}

.chart__meta b {
	color: var(--text);
}

.chart__meta .is-up { color: var(--danger); }
.chart__meta .is-down { color: var(--ok); }

/* Відгуки */
.rfilter {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-bottom: 14px;
}

.rfilter__btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 12px;
	font-size: 13px;
	font-weight: 700;
	color: var(--muted);
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: var(--pill);
	cursor: pointer;
}

.rfilter__btn i {
	width: 7px;
	height: 7px;
	border-radius: 50%;
}

.rfilter__btn[aria-pressed="true"] {
	color: #fff;
	background: var(--text);
	border-color: var(--text);
}

.review-list,
.review-list .children {
	margin: 0;
	padding: 0;
	list-style: none;
}

.review-list > li + li > .review {
	border-top: 1px solid var(--line);
}

.review {
	padding: 18px 0;
}

.review-list > li:first-child > .review {
	padding-top: 4px;
}

.review__head {
	display: flex;
	align-items: center;
	gap: 12px;
}

.ava {
	display: grid;
	flex: none;
	width: 38px;
	height: 38px;
	place-items: center;
	font-size: 14px;
	font-weight: 800;
	border-radius: 50%;
}

.ava--danger { color: var(--danger-ink); background: var(--danger-soft); }
.ava--warning { color: var(--warn-ink); background: var(--warn-soft); }
.ava--success { color: var(--ok-ink); background: var(--ok-soft); }
.ava--neutral { color: var(--muted); background: var(--bg-soft); }
.ava--mod { color: #fff; background: var(--accent); }

.review__who {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.review__name {
	font-size: 14px;
	font-weight: 700;
}

.review__date {
	font-size: 12px;
	font-weight: 600;
	color: var(--faint);
}

.review__head .badge {
	margin-left: auto;
}

.review__pending {
	margin: 10px 0 0 50px;
	font-size: 13px;
	color: var(--muted);
}

.review__text {
	margin: 10px 0 0 50px;
	font-size: 15px;
	color: #2b2f38;
}

.review__text p {
	margin: 0 0 8px;
}

.review__text p:last-child {
	margin-bottom: 0;
}

.review__text.is-clamped {
	max-height: 100px; /* = CLAMP у site.js */
	overflow: hidden;
	mask-image: linear-gradient(#000 70%, transparent);
}

.review__more {
	margin: 4px 0 0 50px;
	padding: 0;
	font-size: 14px;
	font-weight: 700;
	color: var(--accent);
	background: none;
	border: 0;
	cursor: pointer;
}

.review__foot {
	margin: 10px 0 0 50px;
	font-size: 13px;
	font-weight: 700;
}

.review__foot a {
	color: var(--muted);
	text-decoration: none;
}

.review__foot a:hover {
	color: var(--accent);
}

/* Відповіді — вкладені плашки; відповідь модератора — синя */
.review-list .children {
	margin-left: 50px;
}

.review--reply {
	margin-top: 14px;
	padding: 14px 16px;
	background: var(--bg-soft);
	border-left: 3px solid #d3d7df;
	border-radius: var(--radius-sm);
}

.review--reply .ava {
	width: 30px;
	height: 30px;
	font-size: 12px;
}

.review--reply .review__text,
.review--reply .review__foot,
.review--reply .review__more {
	margin-left: 0;
}

.review--reply .review__text {
	margin-top: 8px;
	font-size: 14px;
}

.review--mod {
	background: var(--accent-soft);
	border-left-color: var(--accent);
}

.modtag {
	margin-left: 6px;
	padding: 2px 7px;
	font-size: 11px;
	font-weight: 800;
	color: var(--accent);
	background: #fff;
	border-radius: 6px;
}

.review-empty {
	padding: 8px 0;
	font-weight: 600;
	color: var(--faint);
}

.reviews__more {
	width: 100%;
	margin-top: 8px;
}

.reviews .pagination,
.reviews .comments-pagination {
	margin-top: 16px;
}

/* Форма «Хто вам дзвонив?» */
.comment-form-rating {
	margin: 8px 0 16px;
	padding: 0;
	border: 0;
}

.comment-form-rating legend {
	margin-bottom: 8px;
	font-size: 13px;
	font-weight: 700;
	color: var(--muted);
}

.rating-options {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.rating-option {
	position: relative;
	cursor: pointer;
}

.rating-option input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.rating-option span {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 9px 14px;
	font-size: 14px;
	font-weight: 700;
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: var(--pill);
	transition: background-color 0.15s, color 0.15s;
}

.rating-option span i {
	width: 8px;
	height: 8px;
	border-radius: 50%;
}

.rating-option input:checked + span {
	color: #fff;
	background: var(--text);
	border-color: var(--text);
}

.rating-option input:focus-visible + span {
	outline: 2px solid var(--accent);
	outline-offset: 2px;
}

.comment-form-comment {
	margin: 0 0 12px;
}

.comment-form-comment textarea {
	width: 100%;
	min-height: 110px;
	max-height: 60dvh;
	padding: 12px 14px;
	font-size: 15px;
	background: var(--bg-soft);
	border: 1px solid var(--line);
	border-radius: var(--radius-sm);
	outline: 0;
	resize: vertical;
	field-sizing: content; /* поле росте разом із текстом */
}

.comment-form-comment textarea:focus {
	background: var(--card);
	border-color: var(--accent);
	box-shadow: 0 0 0 4px var(--accent-soft);
}

.form-submit {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

.form-submit .comment-notes {
	flex: 1 1 260px;
	margin: 0;
	font-size: 12px;
	font-weight: 600;
	color: var(--faint);
}

.form-submit .btn {
	padding: 12px 22px;
}

.comment-reply-title small a {
	font-size: 13px;
}

/* Як ще записують номер (разом із текстом про оператора / місто) */
.formats summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	font-size: 17px;
	list-style: none;
	cursor: pointer;
}

.formats summary svg {
	flex: none;
	fill: none;
	stroke: currentColor;
	stroke-width: 2.4;
	transition: transform 0.15s;
}

.formats[open] summary svg {
	transform: rotate(180deg);
}

.formats__about {
	margin-top: 16px;
	font-size: 14px;
	color: var(--muted);
}

.formats__about p {
	margin: 0 0 10px;
}

.formats__list {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 16px 0 0;
}

.formats__list span {
	padding: 5px 10px;
	font-size: 13px;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
	color: var(--muted);
	background: var(--bg-soft);
	border-radius: 8px;
}

.disclaimer {
	margin: 0;
	font-size: 12px;
	line-height: 1.6;
	color: var(--faint);
}

/* Бічна колонка */
.nside {
	position: sticky;
	top: calc(var(--header) + 24px);
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.chip--small {
	padding: 7px 12px;
	font-size: 13px;
	gap: 7px;
}

/* Коментарі звичайних статей (не номер) — ті самі картки */
.layout-sidebar .reviews,
.layout-sidebar .ncard {
	margin-top: 24px;
}

/* ==========================================================================
   Адаптив
   ========================================================================== */

@media (width <= 980px) {
	/* Меню — прокручуваний рядок під логотипом */
	.site-header__bar {
		flex-wrap: wrap;
		gap: 0 12px;
	}

	.site-menu {
		width: calc(100% + var(--gutter) * 2);
		margin: 0 calc(var(--gutter) * -1);
		padding: 0 var(--gutter) 8px;
		overflow-x: auto;
		scrollbar-width: none;
	}

	.grid--6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.ops-grid,
	.city-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }

	.term-hero { grid-template-columns: minmax(0, 1fr); }

	.nhero,
	.ncols { grid-template-columns: minmax(0, 1fr); }
	.nside { position: static; }

	/* Документ: простий зміст — рядком «пігулок» над текстом; згрупований (політика) — прихований */
	.doc { grid-template-columns: minmax(0, 1fr); gap: 20px; }
	.toc { position: static; flex-flow: row wrap; gap: 6px; max-height: none; }
	.toc__title { width: 100%; margin-left: 0; }
	.toc__link { padding: 6px 12px; font-size: 13px; border: 1px solid var(--line); border-radius: var(--pill); }
	.toc__link--sub,
	.toc--grouped { display: none; }
	.tldr { grid-template-columns: minmax(0, 1fr); }
	.num-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.info-grid { grid-template-columns: minmax(0, 1fr); }
	.grid--3,
	.podium { grid-template-columns: minmax(0, 1fr); }

	.rank__row { grid-template-columns: 36px minmax(0, 1fr) 80px 110px; }
	.rank__place,
	.rank__bar,
	.rank__delta { display: none; }

	.top-cols { grid-template-columns: minmax(0, 1fr); }
	.top-side { position: static; }

	.contact-cols { grid-template-columns: minmax(0, 1fr); }
}

@media (width <= 560px) {
	:root { --gutter: 16px; }

	.hero { padding: 48px 0 24px; }
	.hero__lead { font-size: 16px; }
	.hero-search { padding: 6px 6px 6px 18px; }
	.hero-search .btn { padding: 12px 18px; }
	.hero-stats { gap: 20px 28px; }
	.hero-stats dt { font-size: 26px; }

	.grid--6 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.op-card__cover { height: 84px; font-size: 20px; }

	.ops-grid,
	.city-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.op-tile__cover { height: 72px; font-size: 17px; }
	.cat-section__head { flex-direction: column; }
	.city-tile { padding: 12px; }

	.num-grid { grid-template-columns: minmax(0, 1fr); }
	.term-hero__lead { font-size: 15px; }
	.doc-body .lead { font-size: 16px; }
	.doc-body .good,
	.doc-body .steps { grid-template-columns: minmax(0, 1fr); }

	.nhero,
	.ncard { padding: 18px; }
	.tile b { font-size: 24px; }
	.bars__row { grid-template-columns: 92px minmax(0, 1fr) 38px; gap: 8px; }
	.review__text,
	.review__pending,
	.review__more,
	.review__foot,
	.review-list .children { margin-left: 0; }
	.codeinfo__big b { font-size: 44px; }
	.section__title { font-size: 22px; }
	.section__head { flex-direction: column; align-items: flex-start; }

	.top-head__controls,
	.seg { width: 100%; }
	.seg { overflow-x: auto; }
	.seg__item { flex: 1; text-align: center; }

	.rank__row { grid-template-columns: 28px minmax(0, 1fr) 64px; gap: 10px; padding: 12px 14px; }
	.rank__badge { display: none; }

	.talk__link { grid-template-columns: 36px minmax(0, 1fr); gap: 12px; padding: 16px; }
	.talk .place { width: 36px; height: 36px; font-size: 15px; }
	.talk__count { display: flex; grid-column: 2; align-items: baseline; gap: 8px; text-align: left; }
	.talk__count b { font-size: 20px; }
	.talk__count em { margin: 0; }

	.contact-topics,
	.contact-form__row { grid-template-columns: minmax(0, 1fr); }
	.contact-card { padding: 18px; }
}

/* ==========================================================================
   Рух — лише якщо користувач не просив його зменшити. Браузери без підтримки
   просто показують усе, як раніше.
   ========================================================================== */

@media (prefers-reduced-motion: no-preference) {
	/* Якорі («Залишити відгук», зміст документа) — плавна прокрутка */
	html {
		scroll-behavior: smooth;
	}

	/* Перехід між сторінками сайту — м'яке перетікання замість «блимання»; шапка стоїть на місці */
	@view-transition {
		navigation: auto;
	}

	.site-header {
		view-transition-name: site-header;
	}

	/* Плавне розкриття <details>: часті питання, «Як ще можуть записувати цей номер» */
	.faq details::details-content,
	.formats::details-content {
		block-size: 0;
		overflow-y: clip;
		transition: block-size 0.25s ease, content-visibility 0.25s allow-discrete;
	}

	.faq details[open]::details-content,
	.formats[open]::details-content {
		block-size: auto;
	}
}

@media (prefers-reduced-motion: reduce) {
	.op-card,
	.op-tile,
	.city-tile,
	.num-card,
	.talk {
		transition: none;
	}

	.op-card:hover,
	.op-tile:hover,
	.num-card:hover {
		transform: none;
	}
}
