/*
Theme Name: RV4U 2026
Theme URI: https://russianvoice4u.com
Author: Pavel
Description: Двуязычная (EN/RU) тема для сайта диктора: демо с волной, клиенты, отзывы, студия, форма заказа с расчётом хронометража.
Version: 1.2.2
Requires at least: 6.4
Requires PHP: 8.0
License: GPL-2.0-or-later
Text Domain: rv4u-2026
*/

/* ---------- Токены ---------- */
:root {
	/* Тёмная схема. Палитра: #1f3343 #53687c #7aaae2 #4f9cec #2066ae #3a5a81 */
	color-scheme: dark;
	--paper: #142433;        /* фон страницы — глубже основного тёмно-синего */
	--paper-2: #1f3343;      /* поверхности: панели, карточки */
	--ink: #eaf1f8;          /* основной текст */
	--ink-soft: #b6c4d3;
	--mute: #8a9db1;
	--line: #2b455d;
	--line-strong: #53687c;  /* верхние линейки списков */
	--cobalt: #4f9cec;       /* акцент: ссылки, фокус, активные элементы */
	--cobalt-deep: #7aaae2;  /* акцент при наведении */
	--btn: #2066ae;          /* кнопки */
	--btn-hover: #2a77c6;
	--rec: #4f9cec;          /* кнопка воспроизведения */
	--on-accent: #0d1b28;    /* тёмный текст на голубом */
	--white: #ffffff;
	--field: #1a2d3f;        /* поля форм */
	--field-line: #35536f;
	--panel: #1f3343;        /* расчёт цены */
	--panel-line: #33516e;
	--panel-text: #c7d4e2;
	--reel: #2066ae;         /* полоса главного демо */
	--foot: #0e1a26;         /* подвал */

	--f-display: "Unbounded", "Arial Black", sans-serif;
	--f-text: "Golos Text", "Helvetica Neue", Arial, sans-serif;

	--step--1: 0.875rem;
	--step-0: 1.0625rem;
	--step-1: 1.3125rem;
	--step-2: 1.75rem;
	--step-3: 2.5rem;
	--step-4: clamp(2.75rem, 7.2vw, 6.25rem);

	--gutter: clamp(1rem, 4vw, 3rem);
	--max: 1240px;
	--radius-s: 6px;
	--radius-l: 22px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--f-text);
	font-size: var(--step-0);
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--cobalt); text-underline-offset: 3px; }
a:hover { color: var(--cobalt-deep); }
:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 3px; border-radius: 4px; }
button { font: inherit; color: inherit; cursor: pointer; }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
.skip-link:focus {
	clip: auto; width: auto; height: auto; z-index: 100; top: 8px; left: 8px;
	background: var(--btn); color: var(--white); padding: .6rem 1rem; border-radius: var(--radius-s);
}

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Шапка ---------- */
.site-head {
	position: sticky; top: 0; z-index: 50;
	background: color-mix(in srgb, var(--paper) 88%, transparent);
	backdrop-filter: saturate(1.4) blur(12px);
	-webkit-backdrop-filter: saturate(1.4) blur(12px);
	border-bottom: 1px solid transparent;
	transition: border-color .2s;
}
.site-head.is-scrolled { border-bottom-color: var(--line); }
.site-head .wrap { display: flex; align-items: center; gap: 1.5rem; height: 68px; }
.brand {
	font-family: var(--f-display); font-weight: 700; font-size: 1.05rem;
	color: var(--ink); text-decoration: none; letter-spacing: -0.01em; margin-right: auto;
	display: flex; align-items: center; gap: .6rem;
}
.brand img { height: 34px; width: auto; }
.brand .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--rec); flex: none; box-shadow: 0 0 0 4px rgba(79, 156, 236, .18); }
.nav { display: flex; gap: 1.6rem; }
.nav a { color: var(--ink-soft); text-decoration: none; font-size: var(--step--1); font-weight: 500; }
.nav a:hover { color: var(--ink); }
.lang {
	display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px;
	font-size: .8125rem; font-weight: 600;
}
.lang a { padding: .25rem .6rem; border-radius: 999px; text-decoration: none; color: var(--ink-soft); }
.lang a[aria-current="true"] { background: var(--ink); color: var(--paper); }

.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
	font-family: var(--f-text); font-weight: 600; font-size: var(--step--1);
	padding: .8rem 1.3rem; border-radius: 999px; border: 0; text-decoration: none;
	background: var(--btn); color: var(--white); transition: background .15s, transform .15s;
}
.btn:hover { background: var(--btn-hover); color: var(--white); }
.btn:active { transform: scale(.97); }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); box-shadow: none; }
.head-cta { padding: .6rem 1.05rem; }

.menu-toggle { display: none; background: none; border: 0; padding: .5rem; margin-right: -.5rem; }
.menu-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0; transition: transform .2s, opacity .2s; }

@media (max-width: 880px) {
	.menu-toggle { display: block; }
	.head-cta { display: none; }
	.nav {
		position: fixed; inset: 68px 0 auto 0; flex-direction: column; gap: 0;
		background: var(--paper); border-bottom: 1px solid var(--line);
		padding: .5rem var(--gutter) 1.25rem; display: none;
	}
	.nav a { font-size: var(--step-1); padding: .7rem 0; border-bottom: 1px solid var(--line); color: var(--ink); }
	.nav-open .nav { display: flex; }
	.nav-open .menu-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
	.nav-open .menu-toggle span:nth-child(2) { opacity: 0; }
	.nav-open .menu-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ---------- Hero: два канала ---------- */
.hero { position: relative; padding: clamp(3rem, 9vw, 7rem) 0 clamp(2.5rem, 6vw, 4.5rem); overflow: hidden; }
.hero .wrap { position: relative; }
.hero__ghost {
	position: absolute; left: calc(var(--gutter) + .14em); top: .52em;
	font-family: var(--f-display); font-weight: 800; font-size: var(--step-4); line-height: .95;
	letter-spacing: -0.03em; color: transparent; -webkit-text-stroke: 1.5px var(--cobalt-deep);
	opacity: .28; white-space: nowrap; pointer-events: none; user-select: none;
}
@media (max-width: 640px) { .hero__ghost { display: none; } }
.hero__title {
	position: relative; margin: 0; max-width: 14ch;
	font-family: var(--f-display); font-weight: 800; font-size: var(--step-4);
	line-height: .95; letter-spacing: -0.03em;
}
.hero__lead { position: relative; max-width: 46ch; margin: 1.6rem 0 0; font-size: var(--step-1); color: var(--ink-soft); line-height: 1.45; }
.hero__actions { position: relative; display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }

.reel {
	position: relative; margin-top: clamp(2.5rem, 6vw, 4rem);
	display: grid; grid-template-columns: auto 1fr; gap: clamp(1rem, 3vw, 2rem); align-items: center;
	background: var(--reel); color: var(--white); border-radius: var(--radius-l);
	padding: clamp(1.1rem, 3vw, 1.75rem) clamp(1.1rem, 3vw, 2rem);
}
.reel__play {
	width: clamp(64px, 9vw, 92px); aspect-ratio: 1; border-radius: 50%; border: 0;
	background: var(--white); color: var(--reel); display: grid; place-items: center;
	transition: transform .15s;
}
.reel__play:hover { transform: scale(1.05); }
.reel__play svg { width: 34%; height: 34%; }
.reel__meta { display: flex; justify-content: space-between; gap: 1rem; font-size: var(--step--1); color: #d3e3f5; margin-bottom: .6rem; }
.reel__meta strong { color: var(--white); font-weight: 600; }
.wave { position: relative; height: clamp(54px, 9vw, 84px); cursor: pointer; touch-action: none; }
.wave canvas { width: 100%; height: 100%; display: block; }
.reel .wave { --wave-base: rgba(255, 255, 255, .32); --wave-fill: #ffffff; }

/* ---------- Секции ---------- */
.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section + .section { border-top: 1px solid var(--line); }
.section__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem 2rem; margin-bottom: clamp(1.75rem, 4vw, 3rem); }
.section__title { font-family: var(--f-display); font-weight: 700; font-size: var(--step-3); line-height: 1.05; letter-spacing: -0.02em; margin: 0; }
.section__note { margin: 0; max-width: 42ch; color: var(--ink-soft); }

/* Демо: трек-лист */
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.25rem; }
.filters button {
	border: 1px solid var(--line); background: transparent; border-radius: 999px;
	padding: .45rem .95rem; font-size: var(--step--1); font-weight: 500; color: var(--ink-soft);
}
.filters button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }

.tracks { list-style: none; margin: 0; padding: 0; border-top: 1.5px solid var(--line-strong); }
.track {
	display: grid; grid-template-columns: 52px minmax(0, 1.2fr) minmax(0, 2fr) 64px; gap: 1rem 1.5rem;
	align-items: center; padding: 1rem 0; border-bottom: 1px solid var(--line);
}
.track[hidden] { display: none; }
.track__play {
	width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--line-strong);
	background: transparent; display: grid; place-items: center; transition: background .15s, color .15s;
}
.track__play svg { width: 14px; height: 14px; }
.track__play:hover, .track.is-playing .track__play { background: var(--ink); color: var(--paper); }
.track.is-playing .track__play { background: var(--rec); border-color: var(--rec); color: var(--on-accent); }
.track__name { font-weight: 600; line-height: 1.3; }
.track__cat { display: block; font-weight: 400; font-size: var(--step--1); color: var(--mute); margin-top: .15rem; }
.track .wave { height: 40px; --wave-base: #3a5a81; --wave-fill: var(--ink); }
.track.is-playing .wave { --wave-fill: var(--rec); }
.track__time { text-align: right; font-variant-numeric: tabular-nums; font-size: var(--step--1); color: var(--ink-soft); }
.track__dl { grid-column: 2 / -1; display: none; }

@media (max-width: 680px) {
	.track { grid-template-columns: 44px 1fr auto; }
	.track .wave { grid-column: 1 / -1; order: 3; }
	.track__time { order: 2; }
}

.empty {
	border: 1.5px dashed var(--line); border-radius: var(--radius-l); padding: 2rem; color: var(--ink-soft);
}
.empty a { font-weight: 600; }

/* Клиенты */
.clients { display: flex; flex-wrap: wrap; border-top: 1.5px solid var(--line-strong); }
.client { flex: 0 1 220px; display: grid; place-items: center; min-height: 110px; padding: 1.25rem; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); }
@media (max-width: 520px) { .client { flex-basis: 50%; } .client:nth-child(2n) { border-right: 0; } }
.client img { max-height: 44px; width: auto; filter: grayscale(1) contrast(1.1); opacity: .75; transition: filter .2s, opacity .2s; }
.client:has(img) { background: #e6edf5; }
.client a:hover img, .client:hover img { filter: none; opacity: 1; }
.client span { font-weight: 600; color: var(--ink-soft); text-align: center; }

/* Отзывы */
.reviews { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: clamp(1.5rem, 4vw, 3rem); }
.review { margin: 0; }
.review blockquote { margin: 0; font-size: var(--step-1); line-height: 1.45; }
.review blockquote::before { content: "“"; display: block; font-family: var(--f-display); font-size: 3.2rem; line-height: .8; color: var(--cobalt); margin-bottom: .4rem; }
.review figcaption { margin-top: 1rem; font-size: var(--step--1); color: var(--ink-soft); }
.review figcaption strong { color: var(--ink); display: block; font-size: var(--step-0); }

/* Обо мне + студия */
.about { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.about__photo { border-radius: var(--radius-l); overflow: hidden; aspect-ratio: 4 / 5; background: var(--paper-2); }
.about__photo img { width: 100%; height: 100%; object-fit: cover; }
.about__text { font-size: var(--step-1); line-height: 1.5; }
.about__text p { margin: 0 0 1em; max-width: 52ch; }
.specs { margin: 2rem 0 0; display: grid; grid-template-columns: max-content 1fr; gap: 0; border-top: 1.5px solid var(--line-strong); font-size: var(--step-0); }
.specs dt, .specs dd { margin: 0; padding: .8rem 0; border-bottom: 1px solid var(--line); }
.specs dt { color: var(--mute); padding-right: 2rem; }
@media (max-width: 820px) {
	.about { grid-template-columns: 1fr; }
	.about__photo { max-width: 420px; }
}

/* Заказ */
.order { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.1rem 1.25rem; }
.field { display: flex; flex-direction: column; gap: .4rem; min-width: 0; }
.field select { max-width: 100%; text-overflow: ellipsis; }
.field--wide { grid-column: 1 / -1; }
.field[hidden] { display: none; }
fieldset.field { border: 0; margin: 0; padding: 0; min-width: 0; }
.choice legend { font-size: var(--step--1); font-weight: 600; margin-bottom: .4rem; padding: 0; }
.field.choice label { display: flex; align-items: flex-start; gap: .55rem; font-weight: 400; font-size: var(--step-0); padding: .35rem 0; cursor: pointer; }
.choice input { margin-top: .3rem; accent-color: var(--cobalt); width: auto; }
.field label { font-size: var(--step--1); font-weight: 600; }
.field .hint { font-size: .8125rem; color: var(--mute); font-weight: 400; }
.field input, .field select, .field textarea {
	font: inherit; color: var(--ink); background: var(--field);
	border: 1.5px solid var(--field-line); border-radius: var(--radius-s); padding: .75rem .85rem; width: 100%;
}
.field textarea { min-height: 170px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--cobalt); box-shadow: 0 0 0 3px color-mix(in srgb, var(--cobalt) 20%, transparent); }
.hp { position: absolute; left: -9999px; }
.form .btn { justify-self: start; }
@media (max-width: 640px) { .form { grid-template-columns: minmax(0, 1fr); } }

.estimate {
	position: sticky; top: 92px; background: var(--panel); color: var(--ink); border: 1px solid var(--panel-line);
	border-radius: var(--radius-l); padding: 1.75rem;
}
.estimate h3 { margin: 0 0 .9rem; font-size: var(--step--1); font-weight: 600; color: var(--mute); }
.estimate__type { margin: 0; font-weight: 600; line-height: 1.35; }
.estimate__price { margin: .5rem 0 0; font-family: var(--f-display); font-weight: 800; font-size: clamp(1.45rem, 2.3vw, 2rem); line-height: 1.05; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.estimate__msg { margin: .75rem 0 0; color: var(--panel-text); font-size: var(--step--1); }
.estimate__lines { list-style: none; margin: 1.1rem 0 0; padding: 0; font-size: .8125rem; color: var(--panel-text); }
.estimate__lines li { display: flex; justify-content: space-between; gap: 1rem; padding: .45rem 0; border-top: 1px solid var(--panel-line); }
.estimate__lines li span:last-child { white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--ink); }
.estimate__len { display: flex; justify-content: space-between; gap: 1rem; margin-top: 1rem; padding-top: .8rem; border-top: 1px solid var(--panel-line); font-size: var(--step--1); }
.estimate__len span { color: var(--mute); }
.estimate__len[hidden], .estimate__msg[hidden], .estimate__note[hidden] { display: none; }
.estimate__note { margin: 1rem 0 0; font-size: .8125rem; color: var(--panel-text); }
.estimate__foot { margin: 1.1rem 0 0; font-size: .75rem; color: var(--mute); }
@media (max-width: 900px) {
	.order { grid-template-columns: minmax(0, 1fr); }
	/* На телефоне — компактная плашка с ценой, прилипает к низу экрана, пока видна форма */
	.estimate {
		position: sticky; bottom: 10px; z-index: 5; padding: .9rem 1.1rem; border-radius: 16px;
		box-shadow: 0 10px 30px rgba(0, 0, 0, .45);
		display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: .1rem 1rem;
	}
	.estimate h3, .estimate__lines, .estimate__note, .estimate__len, .estimate__foot { display: none; }
	.estimate__type { font-size: .8125rem; color: var(--panel-text); font-weight: 500; grid-column: 1 / -1; }
	.estimate__price { margin: 0; font-size: 1.35rem; grid-column: 1; }
	.estimate__msg { margin: .2rem 0 0; grid-column: 1 / -1; font-size: .8125rem; }
}

.notice { border-radius: var(--radius-s); padding: 1rem 1.2rem; margin-bottom: 1.5rem; font-weight: 500; }
.notice--ok { background: #1c3d63; color: #d4e7fb; }
.notice--err { background: #4a2229; color: #ffd0d0; }

/* Подвал */
.site-foot { background: var(--foot); color: var(--ink); padding: clamp(3rem, 7vw, 5rem) 0 2rem; }
.foot__big { font-family: var(--f-display); font-weight: 800; font-size: clamp(1.9rem, 5.5vw, 4.25rem); line-height: 1; letter-spacing: -0.02em; margin: 0 0 2rem; max-width: 16ch; }
.foot__big a { color: var(--ink); text-decoration: none; }
.foot__big a:hover { color: var(--cobalt-deep); }
.contacts { display: flex; flex-wrap: wrap; gap: .75rem; }
.contacts a { color: var(--ink); text-decoration: none; border: 1px solid var(--panel-line); border-radius: 999px; padding: .6rem 1.1rem; font-size: var(--step--1); font-weight: 500; }
.contacts a:hover { background: var(--ink); color: var(--foot); }
.foot__base { margin-top: 3.5rem; padding-top: 1.25rem; border-top: 1px solid var(--panel-line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; font-size: .8125rem; color: #8d93b3; }
.foot__base a { color: var(--mute); }

/* Обычные страницы */
.page-body { padding: clamp(3rem, 7vw, 5rem) 0; }
.page-body .entry { max-width: 70ch; }
.page-body h1 { font-family: var(--f-display); font-size: var(--step-3); line-height: 1.05; letter-spacing: -0.02em; }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; animation: none !important; }
}
.track__dlink { margin-left: .75rem; font-weight: 500; }

/* ---------- Добавки: меню, ссылки «все…», видео, услуги, соцсети ---------- */
.nav a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--cobalt); }
.more { font-weight: 600; text-decoration: none; color: var(--cobalt); white-space: nowrap; }
.more:hover { text-decoration: underline; }

.videos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: clamp(1.25rem, 3vw, 2rem); }
.video { margin: 0; }
.video__frame, .video__iframe {
	display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; padding: 0;
	border-radius: 14px; overflow: hidden; background: var(--paper-2); position: relative;
}
.video__frame img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.video__frame:hover img { transform: scale(1.03); }
.video__play {
	position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px;
	border-radius: 50%; background: var(--rec); color: var(--on-accent); display: grid; place-items: center;
	box-shadow: 0 6px 24px rgba(0, 0, 0, .45);
}
.video__play svg { width: 20px; height: 20px; margin-left: 3px; }
.video__title { margin: .75rem 0 0; font-weight: 600; }

.services { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); border-top: 1.5px solid var(--line-strong); }
.service { padding: 1.25rem 1.5rem 1.5rem 0; border-bottom: 1px solid var(--line); }
.service dt { font-family: var(--f-display); font-weight: 700; font-size: var(--step-1); line-height: 1.2; letter-spacing: -0.01em; margin-bottom: .5rem; }
.service dd { margin: 0; color: var(--ink-soft); }

.socials { display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; margin-top: 1.75rem; }
.socials a { color: var(--ink-soft); text-decoration: none; font-size: var(--step--1); }
.socials a:hover { color: var(--paper); }
.foot__links a { margin-left: 1rem; }

/* ---------- Содержимое страниц и записей ---------- */
.entry__title { font-family: var(--f-display); font-weight: 800; font-size: var(--step-3); line-height: 1.05; letter-spacing: -0.02em; margin: 0 0 2rem; }
.entry__content { max-width: 72ch; }
.entry__content > * { margin-top: 0; margin-bottom: 1.1em; }
.entry__content h2 { font-family: var(--f-display); font-weight: 700; font-size: var(--step-2); line-height: 1.15; letter-spacing: -0.01em; margin-top: 2.2em; }
.entry__content h3 { font-size: var(--step-1); margin-top: 1.8em; }
.entry__content ul, .entry__content ol { padding-left: 1.3em; }
.entry__content li { margin-bottom: .35em; }
.entry__content blockquote { margin-left: 0; padding-left: 1.25rem; border-left: 3px solid var(--cobalt); font-size: var(--step-1); }
.entry__content img, .entry__content video, .entry__content iframe { border-radius: 12px; max-width: 100%; }
.entry__content figure { margin-left: 0; margin-right: 0; }
.entry__content figcaption { font-size: var(--step--1); color: var(--mute); margin-top: .5rem; }
.entry__content .alignwide, .entry__content .alignfull, .entry__content .wp-block-table, .entry__content table { max-width: none; }
.entry__content hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }

/* Таблицы цен: широкие, на телефоне листаются вбок, а не ломают страницу */
.entry__content table { display: block; overflow-x: auto; border-collapse: collapse; width: 100%; font-size: var(--step--1); font-variant-numeric: tabular-nums; }
.entry__content th, .entry__content td { padding: .65rem .9rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; white-space: nowrap; }
.entry__content td:first-child, .entry__content th:first-child { white-space: normal; min-width: 14ch; }
.entry__content thead th, .entry__content tr:first-child th { border-bottom: 1.5px solid var(--line-strong); font-weight: 600; }
.entry__content tbody tr:hover { background: var(--paper-2); }

/* Формы плагинов (контакты, оплата) */
.entry__content input[type="text"], .entry__content input[type="email"], .entry__content input[type="tel"],
.entry__content input[type="number"], .entry__content input[type="url"], .entry__content select, .entry__content textarea,
.comments input[type="text"], .comments input[type="email"], .comments input[type="url"], .comments textarea {
	font: inherit; color: var(--ink); background: var(--field); border: 1.5px solid var(--field-line);
	border-radius: var(--radius-s); padding: .7rem .85rem; max-width: 100%;
}
.entry__content textarea, .comments textarea { width: 100%; }
.entry__content input[type="submit"], .entry__content button[type="submit"], .entry__content .wp-block-button__link {
	font: inherit; font-weight: 600; font-size: var(--step--1); background: var(--btn); color: var(--white);
	border: 0; border-radius: 999px; padding: .8rem 1.3rem; cursor: pointer; text-decoration: none;
}
.entry__content input[type="submit"]:hover, .entry__content button[type="submit"]:hover, .entry__content .wp-block-button__link:hover { background: var(--btn-hover); color: var(--white); }

.entry--embed { max-width: none; }

/* Блог */
.posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 0 clamp(1.5rem, 4vw, 3rem); border-top: 1.5px solid var(--line-strong); }
.post-card { padding: 1.5rem 0 1.75rem; border-bottom: 1px solid var(--line); }
.post-card__date { display: block; font-size: var(--step--1); color: var(--mute); margin-bottom: .4rem; }
.post-card__title { font-family: var(--f-display); font-weight: 700; font-size: var(--step-1); line-height: 1.2; margin: 0 0 .6rem; letter-spacing: -0.01em; }
.post-card__title a { color: var(--ink); text-decoration: none; }
.post-card__title a:hover { color: var(--cobalt); }
.post-card__excerpt { margin: 0 0 .9rem; color: var(--ink-soft); }
.pager { display: flex; justify-content: space-between; margin-top: 2rem; font-weight: 600; }

.comments { max-width: 72ch; margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.comments__title { font-family: var(--f-display); font-size: var(--step-2); margin: 0 0 1.5rem; }
.comment-list { list-style: none; padding: 0; }
.comment-list .comment { padding: 1.25rem 0; border-bottom: 1px solid var(--line); }
.comment-list .children { list-style: none; padding-left: 1.5rem; }
.comment-meta { font-size: var(--step--1); color: var(--mute); }
.comment-author img { border-radius: 50%; float: left; margin-right: .75rem; }
.comment-form p { display: flex; flex-direction: column; gap: .35rem; }
.comment-form .comment-form-cookies-consent { flex-direction: row; align-items: center; }

/* Подвал всегда внизу, даже на короткой странице */
body { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
#main { flex: 1 0 auto; }
.field.choice input[type="radio"], .field.choice input[type="checkbox"] { width: 1.1rem; height: 1.1rem; padding: 0; border: 0; background: none; box-shadow: none; flex: none; margin: .25rem 0 0; accent-color: var(--cobalt); }

/* ---------- Полосы виджетов ---------- */
.bands { padding: clamp(1.5rem, 4vw, 2.5rem) 0; }
.bands--top { border-bottom: 1px solid var(--line); }
.bands--bottom { border-top: 1px solid var(--line); background: var(--paper-2); }
.bands__grid { display: grid; gap: clamp(1.25rem, 3vw, 2.5rem); }
.bands--columns .bands__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.bands--stack .bands__grid { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 760px) { .bands--columns .bands__grid { grid-template-columns: minmax(0, 1fr); } }
.band { min-width: 0; }
.band .widget + .widget { margin-top: 1.5rem; }
.widget__title, .band .wp-block-heading { font-family: var(--f-display); font-weight: 700; font-size: var(--step-1); line-height: 1.2; letter-spacing: -0.01em; margin: 0 0 .75rem; }
.band p { margin: 0 0 .8em; color: var(--ink-soft); }
.band ul { margin: 0; padding-left: 1.2em; }
.band img, .band iframe, .band video { max-width: 100%; height: auto; border-radius: 12px; }
