/* ==========================================================================
   Dosage Method — main styles
   Светлая тема для лендинга методики «Дело в дозировке».
   Структура: токены → база → утилиты → компоненты → страницы → адаптив.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Шрифты (самохостинг, без внешних CDN)
   -------------------------------------------------------------------------- */
@font-face {
	font-family: "Inter";
	font-style: normal;
	font-weight: 400 800;
	font-display: swap;
	src: url("../fonts/inter-cyrillic.woff2") format("woff2");
	unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
	font-family: "Inter";
	font-style: normal;
	font-weight: 400 800;
	font-display: swap;
	src: url("../fonts/inter-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
		U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
		U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: "Inter";
	font-style: normal;
	font-weight: 400 800;
	font-display: swap;
	src: url("../fonts/inter-latin-ext.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
		U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
		U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* --------------------------------------------------------------------------
   2. Токены
   -------------------------------------------------------------------------- */
:root {
	--bg: #f8f8fc;
	--bg-soft: #f1f2f9;
	--surface: #ffffff;

	--ink: #14162b;
	--ink-2: #3c4160;
	--muted: #6a6f8a;

	--line: #e7e8f2;
	--line-strong: #d9dbe9;

	--brand: #4f46e5;
	--brand-600: #4338ca;
	--brand-500: #6366f1;
	--brand-400: #818cf8;
	--brand-100: #e0e7ff;
	--brand-50: #eef1ff;

	--cyan: #0891b2;
	--cyan-50: #ecfeff;
	--emerald: #059669;
	--emerald-50: #ecfdf5;
	--amber: #d97706;
	--amber-50: #fffbeb;
	--violet: #7c3aed;
	--violet-50: #f5f3ff;
	--rose: #e11d48;
	--rose-50: #fff1f2;

	--shadow-sm: 0 1px 2px rgba(20, 22, 43, 0.05);
	--shadow-md: 0 18px 46px -26px rgba(20, 22, 43, 0.28);
	--shadow-brand: 0 14px 32px -14px rgba(79, 70, 229, 0.55);

	--radius: 16px;
	--radius-lg: 26px;
	--radius-xl: 32px;

	--container: 1200px;
	--header-h: 76px;

	--font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI",
		Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* --------------------------------------------------------------------------
   3. База
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--header-h) + 16px);
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	font-family: var(--font-sans);
	font-size: 16px;
	line-height: 1.6;
	color: var(--ink);
	background-color: var(--bg);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: hidden;
}

img,
svg,
video {
	max-width: 100%;
	height: auto;
}

svg {
	display: block;
}

a {
	color: var(--brand);
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

a:hover {
	color: var(--brand-600);
}

h1,
h2,
h3,
h4,
h5,
h6 {
	margin: 0 0 0.5em;
	font-weight: 750;
	line-height: 1.18;
	letter-spacing: -0.025em;
	color: var(--ink);
}

p {
	margin: 0 0 1em;
}

ul,
ol {
	margin: 0 0 1em;
	padding-left: 1.4em;
}

button,
input,
select,
textarea {
	font: inherit;
	color: inherit;
}

:focus-visible {
	outline: 2px solid var(--brand-500);
	outline-offset: 3px;
	border-radius: 4px;
}

::selection {
	background: var(--brand);
	color: #fff;
}

/* --------------------------------------------------------------------------
   4. Утилиты разметки
   -------------------------------------------------------------------------- */
.container {
	width: min(100% - 40px, var(--container));
	margin-inline: auto;
}

.container--narrow {
	width: min(100% - 40px, 900px);
	margin-inline: auto;
}

.section {
	padding-block: clamp(56px, 7.5vw, 104px);
}

.section--tight {
	padding-block: clamp(36px, 5vw, 64px);
}

.section--flush-top {
	padding-top: 0;
}

.eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 14px;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--brand);
}

.eyebrow svg {
	width: 15px;
	height: 15px;
}

.eyebrow--cyan {
	color: var(--cyan);
}

.section-title {
	margin-bottom: 14px;
	font-size: clamp(1.7rem, 3.4vw, 2.7rem);
	font-weight: 800;
	letter-spacing: -0.035em;
	line-height: 1.1;
}

.section-lead {
	margin: 0;
	font-size: clamp(0.98rem, 1.4vw, 1.1rem);
	line-height: 1.7;
	color: var(--muted);
}

.section-head {
	max-width: 720px;
	margin: 0 auto clamp(32px, 5vw, 52px);
	text-align: center;
}

.grad-text {
	background: linear-gradient(95deg, #4f46e5 0%, #7c3aed 46%, #0891b2 100%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.icon {
	width: 20px;
	height: 20px;
	flex: none;
}

.hl {
	font-weight: 600;
	color: var(--rose);
	text-decoration: underline;
	text-decoration-style: wavy;
	text-decoration-color: rgba(225, 29, 72, 0.35);
	text-decoration-thickness: 1.5px;
	text-underline-offset: 4px;
}

/* --------------------------------------------------------------------------
   5. Кнопки
   -------------------------------------------------------------------------- */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 13px 22px;
	border: 1px solid transparent;
	border-radius: 14px;
	font-family: inherit;
	font-size: 0.94rem;
	font-weight: 650;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition: transform 0.18s ease, box-shadow 0.18s ease,
		background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.btn:active {
	transform: translateY(1px) scale(0.995);
}

.btn--primary {
	background: linear-gradient(100deg, #4f46e5 0%, #6366f1 58%, #0891b2 100%);
	color: #fff;
	box-shadow: var(--shadow-brand);
}

.btn--primary:hover {
	color: #fff;
	transform: translateY(-1px);
	box-shadow: 0 20px 42px -16px rgba(79, 70, 229, 0.65);
}

.btn--ghost {
	background: rgba(255, 255, 255, 0.72);
	border-color: var(--line-strong);
	color: var(--ink);
	box-shadow: var(--shadow-sm);
}

.btn--ghost:hover {
	background: #fff;
	border-color: var(--brand-100);
	color: var(--brand-600);
	transform: translateY(-1px);
}

.btn--white {
	background: #fff;
	color: #312e81;
	box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.55);
}

.btn--white:hover {
	color: #312e81;
	transform: translateY(-1px);
	box-shadow: 0 24px 46px -18px rgba(0, 0, 0, 0.6);
}

.btn--lg {
	padding: 16px 28px;
	border-radius: 16px;
	font-size: 1rem;
}

.btn--block {
	width: 100%;
}

.btn .icon {
	width: 18px;
	height: 18px;
}

/* --------------------------------------------------------------------------
   6. Шапка сайта
   -------------------------------------------------------------------------- */
.site-header {
	position: sticky;
	top: 0;
	z-index: 60;
	background: rgba(248, 248, 252, 0.84);
	-webkit-backdrop-filter: blur(14px) saturate(160%);
	backdrop-filter: blur(14px) saturate(160%);
	border-bottom: 1px solid rgba(231, 232, 242, 0.9);
}

.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	min-height: var(--header-h);
}

.brand {
	display: flex;
	align-items: center;
	gap: 12px;
	color: inherit;
	text-decoration: none;
}

.brand:hover {
	color: inherit;
}

.brand__mark {
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	border-radius: 13px;
	background: linear-gradient(135deg, #4f46e5 10%, #0891b2 100%);
	color: #fff;
	font-size: 0.8rem;
	font-weight: 800;
	letter-spacing: 0.01em;
	box-shadow: 0 10px 20px -10px rgba(79, 70, 229, 0.75);
	transition: transform 0.2s ease;
}

.brand:hover .brand__mark {
	transform: rotate(-3deg) scale(1.03);
}

.brand__text {
	display: flex;
	flex-direction: column;
	line-height: 1.1;
}

.brand__name {
	font-size: 1.1rem;
	font-weight: 750;
	letter-spacing: -0.02em;
}

.brand__tagline {
	margin-top: 3px;
	font-size: 0.58rem;
	font-weight: 600;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	color: var(--muted);
}

.brand__logo {
	max-height: 44px;
	width: auto;
}

.nav {
	display: flex;
	align-items: center;
	gap: 30px;
}

.nav__list {
	display: flex;
	align-items: center;
	gap: 28px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.nav__list li {
	margin: 0;
}

.nav__list a {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	font-size: 0.9rem;
	font-weight: 550;
	color: var(--ink-2);
	text-decoration: none;
	transition: color 0.15s ease;
}

.nav__list a:hover,
.nav__list .current-menu-item > a,
.nav__list .current_page_item > a {
	color: var(--brand);
}

.nav__badge {
	padding: 2px 7px;
	border: 1px solid var(--brand-100);
	border-radius: 99px;
	background: var(--brand-50);
	color: var(--brand);
	font-size: 0.6rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.nav__actions {
	display: flex;
	align-items: center;
	gap: 10px;
}

.nav__cta {
	padding: 11px 18px;
	font-size: 0.85rem;
	border-radius: 12px;
}

.nav-toggle {
	display: none;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 1px solid var(--line-strong);
	border-radius: 12px;
	background: #fff;
	color: var(--ink);
	cursor: pointer;
	box-shadow: var(--shadow-sm);
}

.nav-toggle .icon {
	width: 22px;
	height: 22px;
}

.mobile-nav {
	display: none;
	border-top: 1px solid var(--line);
	background: rgba(255, 255, 255, 0.97);
	-webkit-backdrop-filter: blur(14px);
	backdrop-filter: blur(14px);
}

.mobile-nav.is-open {
	display: block;
}

.mobile-nav__list {
	display: grid;
	gap: 2px;
	margin: 0;
	padding: 14px 0 18px;
	list-style: none;
}

.mobile-nav__list a {
	display: block;
	padding: 11px 4px;
	font-size: 1rem;
	font-weight: 600;
	color: var(--ink-2);
	text-decoration: none;
	border-radius: 8px;
}

.mobile-nav__list a:hover {
	color: var(--brand);
}

.mobile-nav .btn {
	margin: 6px 0 4px;
}

/* --------------------------------------------------------------------------
   7. Герой
   -------------------------------------------------------------------------- */
.hero {
	position: relative;
	overflow: hidden;
	padding-block: clamp(48px, 7vw, 96px) clamp(56px, 8vw, 108px);
	text-align: center;
}

.hero__bg {
	position: absolute;
	inset: 0;
	pointer-events: none;
	background: radial-gradient(
			58% 55% at 50% -5%,
			rgba(99, 102, 241, 0.13),
			transparent 72%
		),
		radial-gradient(42% 45% at 88% 18%, rgba(8, 145, 178, 0.1), transparent 72%),
		radial-gradient(40% 42% at 8% 32%, rgba(124, 58, 237, 0.09), transparent 72%);
}

.hero__dots {
	position: absolute;
	inset: 0;
	pointer-events: none;
	background-image: radial-gradient(rgba(79, 70, 229, 0.16) 1px, transparent 1px);
	background-size: 26px 26px;
	-webkit-mask-image: radial-gradient(58% 52% at 50% 4%, #000 0%, transparent 78%);
	mask-image: radial-gradient(58% 52% at 50% 4%, #000 0%, transparent 78%);
}

.hero__inner {
	position: relative;
	z-index: 1;
}

.hero__badge {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	padding: 8px 16px;
	border: 1px solid var(--brand-100);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.85);
	color: var(--brand-600);
	font-size: 0.8rem;
	font-weight: 600;
	box-shadow: 0 10px 24px -16px rgba(79, 70, 229, 0.5);
}

.hero__badge-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--emerald);
	box-shadow: 0 0 0 4px rgba(5, 150, 105, 0.14);
	animation: pulse-dot 2.6s ease-in-out infinite;
}

@keyframes pulse-dot {
	0%,
	100% {
		box-shadow: 0 0 0 4px rgba(5, 150, 105, 0.14);
	}
	50% {
		box-shadow: 0 0 0 7px rgba(5, 150, 105, 0.05);
	}
}

.hero__title {
	max-width: 17ch;
	margin: 24px auto 22px;
	font-size: clamp(2.35rem, 6.1vw, 4.4rem);
	font-weight: 800;
	line-height: 1.04;
	letter-spacing: -0.045em;
}

.hero__lead {
	max-width: 62ch;
	margin: 0 auto 34px;
	color: var(--ink-2);
	font-size: clamp(1rem, 1.5vw, 1.16rem);
	line-height: 1.7;
}

.hero__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px;
}

.hero__benefits {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px 34px;
	max-width: 720px;
	margin: 42px auto 0;
	padding-top: 26px;
	border-top: 1px solid var(--line);
	color: var(--muted);
	font-size: 0.9rem;
	font-weight: 550;
}

.benefit {
	display: inline-flex;
	align-items: center;
	gap: 9px;
}

.benefit__check {
	display: grid;
	place-items: center;
	width: 22px;
	height: 22px;
	border: 1px solid rgba(5, 150, 105, 0.2);
	border-radius: 50%;
	background: var(--emerald-50);
	color: var(--emerald);
}

.benefit__check .icon {
	width: 13px;
	height: 13px;
}

/* --------------------------------------------------------------------------
   8. История / аналогия с гитарой
   -------------------------------------------------------------------------- */
.story__panel {
	position: relative;
	overflow: hidden;
	padding: clamp(24px, 4.5vw, 64px);
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	background: var(--surface);
	box-shadow: var(--shadow-md);
}

.story__panel::before {
	content: "";
	position: absolute;
	right: -140px;
	bottom: -160px;
	width: 380px;
	height: 380px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(99, 102, 241, 0.14), transparent 68%);
	pointer-events: none;
}

.story__grid {
	position: relative;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: clamp(28px, 4.5vw, 64px);
	align-items: start;
}

.story__col--right {
	padding-left: clamp(20px, 4vw, 56px);
	border-left: 1px solid var(--line);
}

.story__kicker {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 16px;
	color: var(--brand);
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.13em;
	text-transform: uppercase;
}

.story__kicker .icon {
	width: 16px;
	height: 16px;
}

.story__title {
	margin-bottom: 18px;
	font-size: clamp(1.5rem, 2.7vw, 2.15rem);
	font-weight: 800;
	letter-spacing: -0.03em;
	line-height: 1.16;
}

.story__title span {
	display: block;
	margin-top: 6px;
	color: var(--muted);
	font-size: 0.74em;
	font-weight: 500;
	letter-spacing: -0.015em;
}

.story p {
	color: var(--ink-2);
}

.story__card {
	padding: 18px;
	border: 1px solid var(--brand-100);
	border-radius: var(--radius);
	background: var(--brand-50);
	color: var(--ink-2);
	font-size: 0.9rem;
	line-height: 1.65;
}

.story__card-title {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 6px;
	color: var(--brand-600);
	font-size: 0.85rem;
	font-weight: 700;
}

.story__card p:last-child {
	margin-bottom: 0;
}

.story__icon {
	display: grid;
	place-items: center;
	width: 48px;
	height: 48px;
	margin-bottom: 18px;
	border-radius: 15px;
	background: linear-gradient(135deg, #0891b2, #4f46e5);
	color: #fff;
	box-shadow: 0 14px 26px -14px rgba(8, 145, 178, 0.8);
}

.story__icon .icon {
	width: 24px;
	height: 24px;
}

.formula {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 10px;
	margin: 22px 0;
}

.formula__step {
	padding: 14px 8px;
	border: 1px solid var(--line);
	border-radius: 14px;
	background: var(--bg);
	text-align: center;
}

.formula__value {
	display: block;
	font-size: 1.05rem;
	font-weight: 800;
	letter-spacing: -0.02em;
}

.formula__step:nth-child(1) .formula__value {
	color: var(--brand);
}

.formula__step:nth-child(2) .formula__value {
	color: var(--cyan);
}

.formula__step:nth-child(3) .formula__value {
	color: var(--emerald);
}

.formula__label {
	display: block;
	margin-top: 2px;
	color: var(--muted);
	font-size: 0.7rem;
	font-weight: 500;
}

.callout {
	padding: 16px 18px;
	border: 1px solid rgba(5, 150, 105, 0.2);
	border-radius: var(--radius);
	background: linear-gradient(
		100deg,
		rgba(236, 253, 245, 0.95),
		rgba(238, 241, 255, 0.95)
	);
	color: var(--ink-2);
	font-size: 0.92rem;
	line-height: 1.65;
}

.callout strong {
	color: var(--ink);
}

.callout--brand {
	border-color: var(--brand-100);
	background: var(--brand-50);
}

/* --------------------------------------------------------------------------
   9. Демо-плеер
   -------------------------------------------------------------------------- */
.demo__head {
	max-width: 720px;
	margin: 0 auto clamp(30px, 4.5vw, 44px);
	text-align: center;
}

.player {
	position: relative;
	overflow: hidden;
	max-width: 880px;
	margin-inline: auto;
	padding: clamp(20px, 3.5vw, 40px);
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	background: var(--surface);
	box-shadow: 0 30px 70px -40px rgba(20, 22, 43, 0.4);
}

.player::before {
	content: "";
	position: absolute;
	inset: 0 0 auto;
	height: 4px;
	background: linear-gradient(90deg, #4f46e5, #7c3aed 45%, #0891b2);
}

.player__tabs {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 5px;
	max-width: 460px;
	margin: 0 auto 22px;
	padding: 5px;
	border: 1px solid var(--line);
	border-radius: 15px;
	background: var(--bg-soft);
}

.tab {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 11px 12px;
	border: 0;
	border-radius: 11px;
	background: transparent;
	color: var(--muted);
	font-family: inherit;
	font-size: 0.82rem;
	font-weight: 650;
	line-height: 1.2;
	cursor: pointer;
	transition: background-color 0.18s ease, color 0.18s ease,
		box-shadow 0.18s ease;
}

.tab .icon {
	width: 16px;
	height: 16px;
}

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

.tab.is-active {
	background: #fff;
	color: var(--ink);
	box-shadow: var(--shadow-sm);
}

.tab--stream.is-active {
	background: linear-gradient(100deg, #e11d48, #f43f5e);
	color: #fff;
	box-shadow: 0 10px 22px -12px rgba(225, 29, 72, 0.8);
}

.tab--dosage.is-active {
	background: linear-gradient(100deg, #4f46e5, #6366f1);
	color: #fff;
	box-shadow: 0 10px 22px -12px rgba(79, 70, 229, 0.85);
}

.tab--stream.is-active:hover,
.tab--dosage.is-active:hover {
	color: #fff;
}

.mode-banner {
	margin-bottom: 20px;
	padding: 13px 16px;
	border: 1px solid transparent;
	border-radius: 14px;
	font-size: 0.84rem;
	line-height: 1.6;
	transition: background-color 0.25s ease, border-color 0.25s ease,
		color 0.25s ease;
}

.mode-banner strong {
	font-weight: 700;
}

.mode-banner--good {
	border-color: rgba(5, 150, 105, 0.18);
	background: var(--emerald-50);
	color: #065f46;
}

.mode-banner--bad {
	border-color: rgba(225, 29, 72, 0.16);
	background: var(--rose-50);
	color: #9f1239;
}

.phrase-box {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 8px;
	min-height: 168px;
	padding: clamp(22px, 4vw, 36px);
	border: 1px solid var(--line);
	border-radius: 20px;
	background: linear-gradient(180deg, #fcfcff 0%, #f4f5fc 100%);
	text-align: center;
	overflow: hidden;
}

.phrase-box::after {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	background-image: radial-gradient(
		rgba(79, 70, 229, 0.13) 1px,
		transparent 1px
	);
	background-size: 22px 22px;
	-webkit-mask-image: radial-gradient(70% 70% at 50% 50%, #000, transparent 85%);
	mask-image: radial-gradient(70% 70% at 50% 50%, #000, transparent 85%);
	opacity: 0.55;
}

.phrase {
	position: relative;
	z-index: 1;
	margin: 0;
	color: var(--ink);
	font-size: clamp(1.2rem, 2.6vw, 1.85rem);
	font-weight: 700;
	line-height: 1.5;
	letter-spacing: -0.015em;
	word-break: normal;
}

.word {
	display: inline-block;
	padding: 0 4px;
	border-radius: 7px;
	transition: background-color 0.16s ease, color 0.16s ease,
		transform 0.16s ease, box-shadow 0.16s ease;
}

.word.is-active {
	background: var(--brand-100);
	color: var(--brand-600);
	transform: translateY(-1px);
	box-shadow: inset 0 -2px 0 var(--brand);
}

[data-mode="stream"] .word.is-active {
	background: #ffe4e6;
	color: #be123c;
	box-shadow: inset 0 -2px 0 var(--rose);
}

.translation {
	position: relative;
	z-index: 1;
	margin: 0;
	color: var(--muted);
	font-size: 0.9rem;
	line-height: 1.6;
	transition: opacity 0.25s ease;
}

.wave {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: flex-end;
	justify-content: center;
	gap: 4px;
	height: 32px;
	margin-top: 18px;
}

.wave span {
	width: 3px;
	height: 6px;
	border-radius: 99px;
	background: var(--brand-400);
	opacity: 0.5;
	transition: height 0.14s ease, background-color 0.2s ease, opacity 0.2s ease;
}

.wave.is-playing span {
	opacity: 1;
}

.player__footer {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	margin-top: 24px;
	padding-top: 22px;
	border-top: 1px solid var(--line);
}

.player__play {
	min-width: 210px;
}

.load {
	display: grid;
	flex: 1 1 300px;
	gap: 7px;
	min-width: 0;
}

.load__label {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 10px;
	color: var(--muted);
	font-size: 0.78rem;
	font-weight: 600;
}

.load__value {
	color: var(--emerald-600, #047857);
	font-weight: 800;
}

.load__track {
	height: 9px;
	border: 1px solid var(--line);
	border-radius: 99px;
	background: var(--bg-soft);
	overflow: hidden;
}

.load__bar {
	height: 100%;
	width: 25%;
	border-radius: 99px;
	background: linear-gradient(90deg, #34d399, #10b981);
	transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1),
		background 0.3s ease;
}

.load__bar--high {
	background: linear-gradient(90deg, #fb7185, #e11d48);
}

.load__value--high {
	color: var(--rose);
}

.compare {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
	max-width: 880px;
	margin: 20px auto 0;
}

.compare__card {
	padding: 20px 22px;
	border: 1px solid var(--line);
	border-left: 4px solid var(--line);
	border-radius: 16px;
	background: var(--surface);
}

.compare__card--bad {
	border-left-color: #fb7185;
}

.compare__card--good {
	border-left-color: #34d399;
}

.compare__title {
	display: flex;
	align-items: center;
	gap: 9px;
	margin-bottom: 7px;
	color: var(--ink);
	font-size: 0.92rem;
	font-weight: 700;
}

.compare__title .icon {
	width: 18px;
	height: 18px;
}

.compare__title--bad .icon {
	color: var(--rose);
}

.compare__title--good .icon {
	color: var(--emerald);
}

.compare__text {
	margin: 0;
	color: var(--muted);
	font-size: 0.84rem;
	line-height: 1.65;
}

/* --------------------------------------------------------------------------
   10. Четыре причины
   -------------------------------------------------------------------------- */
.causes-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 22px;
}

.cause {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding: clamp(22px, 3vw, 34px);
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	background: var(--surface);
	transition: transform 0.22s ease, box-shadow 0.22s ease,
		border-color 0.22s ease;
}

.cause:hover {
	transform: translateY(-3px);
	border-color: var(--brand-100);
	box-shadow: 0 26px 54px -32px rgba(79, 70, 229, 0.45);
}

.cause__num {
	display: grid;
	place-items: center;
	width: 46px;
	height: 46px;
	border-radius: 14px;
	font-size: 0.95rem;
	font-weight: 800;
	letter-spacing: 0.01em;
}

.cause__num--brand {
	border: 1px solid var(--brand-100);
	background: var(--brand-50);
	color: var(--brand);
}

.cause__num--cyan {
	border: 1px solid rgba(8, 145, 178, 0.18);
	background: var(--cyan-50);
	color: var(--cyan);
}

.cause__num--emerald {
	border: 1px solid rgba(5, 150, 105, 0.18);
	background: var(--emerald-50);
	color: var(--emerald);
}

.cause__num--violet {
	border: 1px solid rgba(124, 58, 237, 0.18);
	background: var(--violet-50);
	color: var(--violet);
}

.cause__title {
	margin: 0;
	font-size: clamp(1.15rem, 1.9vw, 1.4rem);
	font-weight: 750;
	letter-spacing: -0.025em;
	line-height: 1.28;
}

.cause__text {
	flex: 1;
	margin: 0;
	color: var(--ink-2);
	font-size: 0.93rem;
	line-height: 1.7;
}

.cause__text strong {
	color: var(--ink);
	font-weight: 650;
}

.cause__note {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	padding: 11px 14px;
	border: 1px solid transparent;
	border-radius: 12px;
	font-size: 0.78rem;
	font-weight: 600;
	line-height: 1.5;
}

.cause__note .icon {
	width: 16px;
	height: 16px;
	margin-top: 1px;
}

.cause__note--cyan {
	border-color: rgba(8, 145, 178, 0.16);
	background: var(--cyan-50);
	color: #155e75;
}

.cause__note--amber {
	border-color: rgba(217, 119, 6, 0.16);
	background: var(--amber-50);
	color: #92400e;
}

.cause__note--emerald {
	border-color: rgba(5, 150, 105, 0.16);
	background: var(--emerald-50);
	color: #065f46;
}

.cause__note--violet {
	border-color: rgba(124, 58, 237, 0.16);
	background: var(--violet-50);
	color: #5b21b6;
}

/* --------------------------------------------------------------------------
   11. Грамматика за 15 минут
   -------------------------------------------------------------------------- */
.grammar {
	position: relative;
	overflow: hidden;
	padding: clamp(24px, 4.5vw, 56px);
	border: 1px solid var(--brand-100);
	border-radius: var(--radius-xl);
	background: linear-gradient(135deg, #f5f4ff 0%, #fdfdff 46%, #eefbfd 100%);
}

.grammar::before {
	content: "";
	position: absolute;
	top: -170px;
	right: -120px;
	width: 360px;
	height: 360px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(99, 102, 241, 0.16), transparent 68%);
	pointer-events: none;
}

.grammar::after {
	content: "";
	position: absolute;
	bottom: -190px;
	left: -140px;
	width: 380px;
	height: 380px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(8, 145, 178, 0.13), transparent 68%);
	pointer-events: none;
}

.grammar .section-head {
	position: relative;
	z-index: 1;
	margin-bottom: 34px;
}

.timeline {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	gap: 14px;
	align-items: stretch;
	max-width: 820px;
	margin-inline: auto;
}

.time-card {
	padding: 26px 22px;
	border: 1px solid var(--line);
	border-radius: 20px;
	background: rgba(255, 255, 255, 0.86);
	text-align: center;
	box-shadow: var(--shadow-sm);
}

.time-card--rule {
	border-color: rgba(79, 70, 229, 0.28);
	box-shadow: 0 20px 40px -28px rgba(79, 70, 229, 0.55);
}

.time-card--exc {
	border-color: rgba(8, 145, 178, 0.28);
	box-shadow: 0 20px 40px -28px rgba(8, 145, 178, 0.55);
}

.time-card__value {
	display: block;
	margin-bottom: 4px;
	font-size: clamp(1.75rem, 3vw, 2.3rem);
	font-weight: 800;
	letter-spacing: -0.035em;
	line-height: 1;
}

.time-card--rule .time-card__value {
	color: var(--brand);
}

.time-card--exc .time-card__value {
	color: var(--cyan);
}

.time-card__label {
	display: block;
	margin-bottom: 8px;
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--muted);
}

.time-card__text {
	margin: 0;
	color: var(--ink-2);
	font-size: 0.83rem;
	line-height: 1.6;
}

.timeline__plus {
	display: grid;
	place-items: center;
	min-width: 28px;
	color: var(--line-strong);
	font-size: 1.9rem;
	font-weight: 600;
}

.total {
	position: relative;
	z-index: 1;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	max-width: 100%;
	margin-top: 26px;
	padding: 12px 20px;
	border: 1px solid var(--line);
	border-radius: 14px;
	background: #fff;
	color: var(--ink-2);
	font-size: 0.88rem;
	line-height: 1.5;
	box-shadow: var(--shadow-sm);
}

.total .icon {
	width: 17px;
	height: 17px;
	color: var(--emerald);
}

.total strong {
	color: var(--ink);
}

.grammar__total-wrap {
	text-align: center;
}

/* --------------------------------------------------------------------------
   12. Финальный призыв
   -------------------------------------------------------------------------- */
.cta {
	padding-block: clamp(20px, 4vw, 48px) clamp(56px, 7.5vw, 104px);
}

.cta__panel {
	position: relative;
	overflow: hidden;
	padding: clamp(36px, 6vw, 76px) clamp(22px, 4vw, 48px);
	border-radius: var(--radius-xl);
	background: radial-gradient(
		130% 150% at 50% -30%,
		#4338ca 0%,
		#312e81 46%,
		#1e1b4b 100%
	);
	text-align: center;
	box-shadow: 0 44px 90px -44px rgba(49, 46, 129, 0.85);
}

.cta__glow {
	position: absolute;
	border-radius: 50%;
	filter: blur(72px);
	opacity: 0.55;
	pointer-events: none;
}

.cta__glow--a {
	top: -140px;
	left: 12%;
	width: 340px;
	height: 340px;
	background: rgba(99, 102, 241, 0.55);
}

.cta__glow--b {
	right: 6%;
	bottom: -160px;
	width: 360px;
	height: 360px;
	background: rgba(8, 145, 178, 0.4);
}

.cta__inner {
	position: relative;
	z-index: 1;
}

.cta__title {
	margin-bottom: 18px;
	color: #fff;
	font-size: clamp(1.85rem, 4vw, 3.05rem);
	font-weight: 800;
	letter-spacing: -0.04em;
	line-height: 1.08;
}

.cta__title .grad-text {
	background: linear-gradient(95deg, #c7d2fe 0%, #a5f3fc 100%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.cta__text {
	max-width: 56ch;
	margin: 0 auto 32px;
	color: #c9cdef;
	font-size: clamp(0.98rem, 1.4vw, 1.08rem);
	line-height: 1.7;
}

.cta__note {
	margin: 18px 0 0;
	color: #9ba0d0;
	font-size: 0.78rem;
}

/* --------------------------------------------------------------------------
   13. Подвал
   -------------------------------------------------------------------------- */
.site-footer {
	margin-top: 12px;
	border-top: 1px solid var(--line);
	background: #fff;
}

.site-footer__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 22px 40px;
	padding-block: 32px;
}

.footer-brand {
	display: flex;
	align-items: center;
	gap: 11px;
}

.footer-brand .brand__mark {
	width: 32px;
	height: 32px;
	border-radius: 10px;
	font-size: 0.62rem;
	box-shadow: none;
}

.footer-brand__name {
	font-size: 0.9rem;
	font-weight: 700;
	letter-spacing: -0.01em;
}

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

.footer-nav__list a {
	color: var(--muted);
	font-size: 0.84rem;
	text-decoration: none;
}

.footer-nav__list a:hover {
	color: var(--brand);
}

.footer-legal {
	color: var(--muted);
	font-size: 0.78rem;
}

/* --------------------------------------------------------------------------
   14. Внутренние страницы (записи, страницы, архивы)
   -------------------------------------------------------------------------- */
.page-hero {
	position: relative;
	padding-block: clamp(36px, 5.5vw, 68px) clamp(18px, 2.5vw, 28px);
	background: radial-gradient(
		52% 70% at 50% 0%,
		rgba(99, 102, 241, 0.1),
		transparent 72%
	);
	text-align: center;
}

.page-hero__title {
	max-width: 20ch;
	margin: 0 auto 10px;
	font-size: clamp(1.8rem, 4.2vw, 3rem);
	font-weight: 800;
	letter-spacing: -0.04em;
	line-height: 1.08;
}

.page-hero__lead {
	max-width: 60ch;
	margin: 0 auto;
	color: var(--muted);
	font-size: 1rem;
	line-height: 1.7;
}

.breadcrumbs {
	margin-bottom: 14px;
	color: var(--muted);
	font-size: 0.78rem;
}

.breadcrumbs a {
	color: var(--muted);
	text-decoration: none;
}

.breadcrumbs a:hover {
	color: var(--brand);
}

.post-meta {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px 18px;
	margin-top: 16px;
	color: var(--muted);
	font-size: 0.8rem;
}

.post-meta a {
	color: var(--muted);
	text-decoration: none;
}

.post-meta a:hover {
	color: var(--brand);
}

.entry-wrap {
	max-width: 840px;
	margin: 0 auto;
}

.entry {
	padding: clamp(22px, 4vw, 48px);
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	background: var(--surface);
	box-shadow: var(--shadow-sm);
}

.entry__thumb {
	margin: -8px 0 28px;
}

.entry__thumb img {
	border-radius: var(--radius);
}

.entry-content {
	color: var(--ink-2);
	font-size: 1rem;
	line-height: 1.8;
}

.entry-content > * {
	margin-bottom: 1.2em;
}

.entry-content h2 {
	margin-top: 1.8em;
	font-size: 1.55rem;
	font-weight: 750;
	color: var(--ink);
}

.entry-content h3 {
	margin-top: 1.6em;
	font-size: 1.25rem;
	font-weight: 700;
	color: var(--ink);
}

.entry-content h4 {
	font-size: 1.08rem;
	color: var(--ink);
}

.entry-content a {
	color: var(--brand);
	font-weight: 550;
}

.entry-content ul,
.entry-content ol {
	padding-left: 1.3em;
}

.entry-content li {
	margin-bottom: 0.4em;
}

.entry-content blockquote,
.entry-content .wp-block-quote {
	margin: 1.6em 0;
	padding: 18px 22px;
	border: 1px solid var(--brand-100);
	border-left: 4px solid var(--brand-400);
	border-radius: 12px;
	background: var(--brand-50);
	color: var(--ink-2);
	font-style: italic;
}

.entry-content blockquote p:last-child {
	margin-bottom: 0;
}

.entry-content img {
	border-radius: 14px;
}

.entry-content figure {
	margin: 1.6em 0;
}

.entry-content figcaption {
	margin-top: 8px;
	color: var(--muted);
	font-size: 0.8rem;
	text-align: center;
}

.entry-content code {
	padding: 2px 6px;
	border: 1px solid var(--line);
	border-radius: 6px;
	background: var(--bg-soft);
	font-size: 0.88em;
}

.entry-content pre {
	padding: 18px;
	border-radius: 12px;
	background: #1e1b4b;
	color: #e0e7ff;
	overflow-x: auto;
	font-size: 0.85rem;
}

.entry-content pre code {
	padding: 0;
	border: 0;
	background: transparent;
	color: inherit;
}

.entry-content table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.9rem;
}

.entry-content th,
.entry-content td {
	padding: 10px 12px;
	border: 1px solid var(--line);
	text-align: left;
}

.entry-content th {
	background: var(--bg-soft);
	font-weight: 650;
}

.entry-footer {
	margin-top: 28px;
	padding-top: 20px;
	border-top: 1px solid var(--line);
}

.tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	list-style: none;
	margin: 0;
	padding: 0;
	font-size: 0.78rem;
}

.tags a {
	display: inline-block;
	padding: 4px 11px;
	border: 1px solid var(--line);
	border-radius: 99px;
	background: var(--bg);
	color: var(--muted);
	text-decoration: none;
}

.tags a:hover {
	border-color: var(--brand-100);
	background: var(--brand-50);
	color: var(--brand);
}

.post-nav {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px;
	max-width: 840px;
	margin: 22px auto 0;
}

.post-nav a {
	display: block;
	padding: 16px 18px;
	border: 1px solid var(--line);
	border-radius: 14px;
	background: #fff;
	color: var(--ink-2);
	font-size: 0.85rem;
	text-decoration: none;
	transition: border-color 0.18s ease, color 0.18s ease,
		transform 0.18s ease;
}

.post-nav a:hover {
	border-color: var(--brand-100);
	color: var(--brand);
	transform: translateY(-1px);
}

.post-nav__label {
	display: block;
	margin-bottom: 4px;
	color: var(--muted);
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.post-nav__next {
	text-align: right;
}

/* Если соседняя запись только одна — не оставляем пустую половину. */
.post-nav a:only-child {
	grid-column: 1 / -1;
}

.post-nav__next:only-child {
	text-align: left;
}

/* Списки записей */
.post-list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 20px;
	max-width: 1000px;
	margin-inline: auto;
}

.post-card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	background: var(--surface);
	transition: transform 0.2s ease, box-shadow 0.2s ease,
		border-color 0.2s ease;
}

.post-card:hover {
	transform: translateY(-2px);
	border-color: var(--brand-100);
	box-shadow: var(--shadow-md);
}

.post-card__thumb {
	display: block;
	aspect-ratio: 16 / 9;
	background: linear-gradient(135deg, var(--brand-50), var(--cyan-50));
	overflow: hidden;
}

.post-card__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.35s ease;
}

.post-card:hover .post-card__thumb img {
	transform: scale(1.03);
}

.post-card__thumb--empty {
	position: relative;
	display: grid;
	place-items: center;
	background: radial-gradient(120% 130% at 18% 0%, #eef1ff 0%, #f8f8fc 55%, #ecfeff 100%);
}

.post-card__thumb--empty::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image: radial-gradient(rgba(79, 70, 229, 0.16) 1px, transparent 1px);
	background-size: 20px 20px;
	-webkit-mask-image: radial-gradient(70% 70% at 50% 50%, #000, transparent 88%);
	mask-image: radial-gradient(70% 70% at 50% 50%, #000, transparent 88%);
}

.post-card__mark {
	position: relative;
	display: grid;
	place-items: center;
	width: 56px;
	height: 56px;
	border-radius: 18px;
	background: linear-gradient(135deg, #4f46e5 10%, #0891b2 100%);
	color: #fff;
	font-size: 0.72rem;
	font-weight: 800;
	letter-spacing: 0.02em;
	box-shadow: 0 16px 30px -16px rgba(79, 70, 229, 0.7);
}

.post-card__body {
	display: flex;
	flex-direction: column;
	flex: 1;
	gap: 8px;
	padding: 22px;
}

.post-card__meta {
	color: var(--muted);
	font-size: 0.74rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.post-card__title {
	margin: 0;
	font-size: 1.15rem;
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 1.35;
}

.post-card__title a {
	color: var(--ink);
	text-decoration: none;
}

.post-card__title a:hover {
	color: var(--brand);
}

.post-card__excerpt {
	flex: 1;
	margin: 0;
	color: var(--muted);
	font-size: 0.88rem;
	line-height: 1.65;
}

.post-card__more {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: 6px;
	color: var(--brand);
	font-size: 0.82rem;
	font-weight: 650;
	text-decoration: none;
}

.post-card__more .icon {
	width: 15px;
	height: 15px;
	transition: transform 0.18s ease;
}

.post-card__more:hover .icon {
	transform: translateX(3px);
}

/* Пагинация */
.pagination {
	display: flex;
	justify-content: center;
	margin-top: 36px;
}

.pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.pagination .page-numbers {
	display: inline-grid;
	place-items: center;
	min-width: 40px;
	height: 40px;
	padding: 0 12px;
	border: 1px solid var(--line);
	border-radius: 10px;
	background: #fff;
	color: var(--ink-2);
	font-size: 0.85rem;
	font-weight: 600;
	text-decoration: none;
}

.pagination .page-numbers.current,
.pagination .page-numbers:hover {
	border-color: transparent;
	background: var(--brand);
	color: #fff;
}

.pagination .page-numbers.dots {
	border-color: transparent;
	background: transparent;
}

/* Поиск */
.search-form {
	display: flex;
	gap: 8px;
	max-width: 460px;
	margin-inline: auto;
}

.search-form label {
	flex: 1;
}

.search-form .search-field {
	width: 100%;
	padding: 13px 16px;
	border: 1px solid var(--line-strong);
	border-radius: 12px;
	background: #fff;
	font-size: 0.92rem;
	transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.search-form .search-field:focus {
	border-color: var(--brand-400);
	box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
	outline: none;
}

.search-form .search-submit {
	padding: 13px 20px;
	border: 0;
	border-radius: 12px;
	background: var(--brand);
	color: #fff;
	font-size: 0.9rem;
	font-weight: 650;
	cursor: pointer;
}

.search-form .search-submit:hover {
	background: var(--brand-600);
}

/* Пустые состояния */
.empty-state {
	max-width: 620px;
	margin-inline: auto;
	padding: clamp(28px, 5vw, 52px);
	border: 1px dashed var(--line-strong);
	border-radius: var(--radius-lg);
	background: rgba(255, 255, 255, 0.7);
	text-align: center;
}

.empty-state__icon {
	display: grid;
	place-items: center;
	width: 56px;
	height: 56px;
	margin: 0 auto 16px;
	border-radius: 18px;
	background: var(--brand-50);
	color: var(--brand);
}

.empty-state__icon .icon {
	width: 26px;
	height: 26px;
}

.empty-state h2,
.empty-state h1 {
	font-size: 1.4rem;
	font-weight: 750;
}

.empty-state p {
	color: var(--muted);
}

/* --------------------------------------------------------------------------
   15. Комментарии
   -------------------------------------------------------------------------- */
.comments-area {
	max-width: 840px;
	margin: 32px auto 0;
	padding: clamp(22px, 4vw, 40px);
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	background: #fff;
}

.comments-title,
.comment-reply-title {
	font-size: 1.2rem;
	font-weight: 750;
}

.comment-list {
	margin: 0 0 24px;
	padding: 0;
	list-style: none;
}

.comment-list .children {
	margin: 16px 0 0 22px;
	padding: 0;
	list-style: none;
}

.comment-body {
	padding: 16px 18px;
	border: 1px solid var(--line);
	border-radius: 14px;
	background: var(--bg);
}

.comment-list > li + li,
.comment-list .children > li + li {
	margin-top: 14px;
}

.comment-meta {
	margin-bottom: 8px;
	font-size: 0.8rem;
	color: var(--muted);
}

.comment-author {
	display: flex;
	align-items: center;
	gap: 8px;
	color: var(--ink);
	font-weight: 650;
}

.comment-author img {
	border-radius: 50%;
}

.comment-metadata a {
	color: var(--muted);
	text-decoration: none;
}

.reply a {
	font-size: 0.78rem;
	font-weight: 600;
	text-decoration: none;
}

.comment-content {
	font-size: 0.9rem;
	line-height: 1.7;
}

.comment-form {
	display: grid;
	gap: 12px;
}

.comment-form label {
	display: block;
	margin-bottom: 4px;
	font-size: 0.78rem;
	font-weight: 650;
	color: var(--ink-2);
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
	width: 100%;
	padding: 11px 14px;
	border: 1px solid var(--line-strong);
	border-radius: 10px;
	background: #fff;
	font-size: 0.9rem;
}

.comment-form textarea {
	min-height: 120px;
	resize: vertical;
}

.comment-form .submit {
	justify-self: start;
	padding: 12px 24px;
	border: 0;
	border-radius: 12px;
	background: var(--brand);
	color: #fff;
	font-weight: 650;
	cursor: pointer;
}

.comment-form .submit:hover {
	background: var(--brand-600);
}

.comment-respond {
	margin-top: 8px;
}

/* --------------------------------------------------------------------------
   16. WordPress: выравнивания и служебное
   -------------------------------------------------------------------------- */
.entry-content .alignwide {
	max-width: 1000px;
	margin-left: auto;
	margin-right: auto;
}

.entry-content .alignfull {
	max-width: none;
}

.wp-block-image img {
	height: auto;
}

.wp-block-embed {
	margin-bottom: 1.4em;
}

.sticky-post-badge {
	display: inline-block;
	margin-bottom: 10px;
	padding: 3px 10px;
	border-radius: 99px;
	background: var(--brand-50);
	color: var(--brand);
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   16b. Дополнительные элементы
   -------------------------------------------------------------------------- */
.player__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.player__icon--stop {
	display: none;
}

.player__play.is-playing .player__icon--play {
	display: none;
}

.player__play.is-playing .player__icon--stop {
	display: inline-flex;
}

.nav-toggle__open {
	display: flex;
}

.nav-toggle__close {
	display: none;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__open {
	display: none;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__close {
	display: flex;
}

.callout {
	display: flex;
	align-items: flex-start;
	gap: 10px;
}

.callout .icon {
	width: 18px;
	height: 18px;
	margin-top: 2px;
	color: var(--brand);
}

.post-meta__item {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.post-meta__item .icon {
	width: 14px;
	height: 14px;
}

.search-wrap {
	max-width: 460px;
	margin: 22px auto 0;
}

.page-404 {
	max-width: 660px;
	margin-inline: auto;
	text-align: center;
}

.page-404__code {
	display: block;
	margin-bottom: 12px;
	font-size: clamp(4rem, 11vw, 7rem);
	font-weight: 800;
	line-height: 1;
	letter-spacing: -0.05em;
}

.page-404__actions {
	margin-top: 26px;
}

body.admin-bar .site-header {
	top: 32px;
}

@media screen and (max-width: 782px) {
	body.admin-bar .site-header {
		top: 46px;
	}
}

/* --------------------------------------------------------------------------
   17. Адаптив
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
	.nav {
		gap: 18px;
	}

	.nav__list {
		gap: 18px;
	}

	.story__col--right {
		padding-left: clamp(16px, 3vw, 36px);
	}
}

@media (max-width: 900px) {
	.nav,
	.nav__actions .nav__cta {
		display: none;
	}

	.nav-toggle {
		display: inline-flex;
	}

	.hero {
		padding-block: clamp(36px, 6vw, 64px) clamp(44px, 7vw, 76px);
	}

	.story__grid {
		grid-template-columns: 1fr;
	}

	.story__col--right {
		padding-top: 28px;
		padding-left: 0;
		border-top: 1px solid var(--line);
		border-left: 0;
	}

	.timeline {
		grid-template-columns: 1fr;
		max-width: 460px;
	}

	.timeline__plus {
		padding: 2px 0;
		font-size: 1.4rem;
	}

	.post-list {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 760px) {
	.causes-grid,
	.compare {
		grid-template-columns: 1fr;
	}

	.player__footer {
		flex-direction: column;
		align-items: stretch;
	}

	.player__play {
		width: 100%;
	}

	/* В колоночной раскладке flex-basis работает как высота — сбрасываем. */
	.load {
		flex: 0 1 auto;
		width: 100%;
	}

	.post-nav {
		grid-template-columns: 1fr;
	}

	.post-nav__next {
		text-align: left;
	}

	.hero__benefits {
		gap: 10px 22px;
		font-size: 0.84rem;
	}
}

@media (max-width: 600px) {
	.container,
	.container--narrow {
		width: calc(100% - 32px);
	}

	.hero__title {
		letter-spacing: -0.035em;
	}

	.hero__actions .btn {
		width: 100%;
	}

	.formula {
		gap: 6px;
	}

	.formula__step {
		padding: 11px 5px;
	}

	.formula__value {
		font-size: 0.95rem;
	}

	.formula__label {
		font-size: 0.64rem;
	}

	.tab {
		font-size: 0.75rem;
		padding: 10px 8px;
	}

	.tab .icon {
		display: none;
	}

	.phrase {
		font-size: 1.12rem;
	}

	.phrase-box {
		min-height: 150px;
		padding: 20px 16px;
	}

	.site-footer__inner {
		justify-content: center;
		text-align: center;
	}

	.footer-nav__list {
		justify-content: center;
	}

	.brand__tagline {
		display: none;
	}

	.total {
		align-items: flex-start;
		text-align: left;
	}

	.comment-list .children {
		margin-left: 10px;
	}
}

/* --------------------------------------------------------------------------
   18. Доступность и печать
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation-duration: 0.001ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.001ms !important;
	}
}

@media print {
	.site-header,
	.site-footer,
	.cta__panel,
	.player,
	.compare {
		display: none !important;
	}

	body {
		background: #fff;
		color: #000;
	}
}
