/*
Theme Name: Eng-Eng
Theme URI: https://eng-eng.ru/
Description: Справочник английской грамматики: карта времён, короткие статьи (Коротко → правило → примеры → ошибки → подробнее), топики с переводом, интерактивные упражнения [quiz]. Bitter + Lunasima. Mobile-first, без jQuery.
Version: 2.0.0
Author: Eng-Eng
Text Domain: engeng
Requires PHP: 7.4
*/

:root {
	--paper: #f3f5f9;
	--card: #ffffff;
	--ink: #1b2a4a;
	--ink-2: #2c3e66;
	--text: #222a3d;
	--muted: #5f6980;
	--line: #e1e6ee;
	--line-2: #cfd6e2;
	--tint: #f6f8fb;
	--past: #7a3b69;
	--past-bg: #f6eaf2;
	--present: #13776f;
	--present-bg: #e3f3f0;
	--future: #b76e00;
	--future-bg: #fdf1dc;
	--err: #b3261e;
	--err-bg: #fdeceb;
	--ok: #1d7a3a;
	--ok-bg: #e6f4ea;
	--r: 10px;
	--shadow: 0 1px 0 #e3e8f0, 0 6px 18px -12px rgba(27, 42, 74, .3);
	--f-head: "Bitter", Georgia, serif;
	--f-body: "Lunasima", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--f-ipa: "Charis SIL", "Doulos SIL", "Lucida Sans Unicode", "Segoe UI", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--text); font: 400 17px/1.6 var(--f-body); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink-2); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--present); }
h1, h2, h3, h4 { font-family: var(--f-head); color: var(--ink); line-height: 1.25; margin: 1.6em 0 .55em; letter-spacing: -.005em; }
p, ul, ol { margin: 0 0 1em; }
.wrap { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 8px; top: 8px; background: var(--ink); color: #fff; padding: 6px 10px; z-index: 99; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.btn { display: inline-block; background: var(--ink); color: #fff; border-radius: 999px; padding: 10px 18px; font-weight: 700; text-decoration: none; }
.btn:hover { background: var(--present); color: #fff; }
.btn--ghost { background: transparent; color: var(--ink); border: 2px solid var(--ink); }
.empty { color: var(--muted); }

/* ---------- Шапка ---------- */
.hd { background: var(--card); border-bottom: 1px solid var(--line); }
.hd__row { display: flex; align-items: center; gap: 12px; padding-top: 12px; padding-bottom: 10px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.logo__m { display: inline-flex; font: 700 15px/1 var(--f-head); }
.logo__m b { background: var(--ink); color: #fff; padding: 7px 6px 7px 8px; border-radius: 8px 0 0 8px; }
.logo__m i { font-style: normal; color: var(--ink); border: 2px solid var(--ink); border-left: 0; padding: 5px 8px 5px 6px; border-radius: 0 8px 8px 0; }
.logo__t { display: flex; flex-direction: column; font: 700 17px/1.1 var(--f-head); }
.logo__t small { font: 400 12px/1.3 var(--f-body); color: var(--muted); }
.hd__q { margin-left: auto; flex: 0 1 260px; }
.hd__q input { width: 100%; border: 1px solid var(--line); background: var(--paper); border-radius: 999px; padding: 8px 14px; font: inherit; font-size: 15px; }
.chips { overflow-x: auto; scrollbar-width: none; padding-bottom: 10px; }
.chips::-webkit-scrollbar { display: none; }
.chips__l { display: flex; gap: 8px; list-style: none; margin: 0; padding: 0; white-space: nowrap; }
.chips__l a { display: block; padding: 6px 13px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); font-size: 14px; font-weight: 600; text-decoration: none; color: var(--ink); }
.chips__l .current-menu-item a, .chips__l a:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
@media (max-width: 560px) {
	.logo__t small { display: none; }
	.hd__q { flex-basis: 150px; }
}

/* ---------- Главная ---------- */
.hero { background: var(--ink); color: #e9edf7; }
.hero__in { padding-top: 34px; padding-bottom: 30px; }
.hero__t { color: #fff; margin: 0 0 10px; font-size: clamp(26px, 5vw, 42px); max-width: 20ch; }
.hero__d { max-width: 58ch; color: #c9d2e8; }
.hero__d:last-child { margin-bottom: 0; }
.finder { display: flex; gap: 8px; max-width: 560px; }
.finder input { flex: 1; min-width: 0; border: 0; border-radius: var(--r); padding: 12px 14px; font: inherit; }
.finder button { border: 0; border-radius: var(--r); background: var(--future); color: #fff; font-weight: 700; padding: 0 18px; cursor: pointer; }
.ph .finder input, .nf .finder input { border: 1px solid var(--line); }
.sec { padding-top: 34px; padding-bottom: 8px; }
.sec__h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.sec__t { margin: 0 0 8px; font-size: clamp(22px, 3.4vw, 28px); }
.sec__more { font-weight: 700; font-size: 15px; }
.sec__d { color: var(--muted); max-width: 64ch; }
.links { display: flex; flex-wrap: wrap; gap: 6px 18px; list-style: none; padding: 0; margin: 14px 0 0; font-weight: 600; }

/* Карта времён */
.tmap { display: grid; gap: 10px; margin: 14px 0 6px; }
.tmap__row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tmap__row--head { display: none; }
.tmap__time { grid-column: 1 / -1; display: flex; align-items: baseline; gap: 8px; font-family: var(--f-head); }
.tmap__time b { font-size: 20px; }
.tmap__time small { font: 400 13px var(--f-body); color: var(--muted); }
.tmap__c { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px; border-radius: var(--r); background: var(--card); box-shadow: var(--shadow); text-decoration: none; border-top: 4px solid currentColor; min-height: 78px; }
.tmap__n { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.tmap__f { color: var(--text); font-size: 15px; }
.tmap__c--off { opacity: .62; box-shadow: none; border-top-style: dashed; }
.tmap__row--past .tmap__time b, .tmap__row--past .tmap__c { color: var(--past); }
.tmap__row--present .tmap__time b, .tmap__row--present .tmap__c { color: var(--present); }
.tmap__row--future .tmap__time b, .tmap__row--future .tmap__c { color: var(--future); }
a.tmap__c:hover { transform: translateY(-2px); }
@media (min-width: 921px) {
	.tmap { gap: 8px; }
	.tmap__row, .tmap__row--head { display: grid; grid-template-columns: 150px repeat(4, 1fr); gap: 8px; align-items: stretch; }
	.tmap__time { grid-column: auto; flex-direction: column; justify-content: center; gap: 0; }
	.tmap__asp { font: 700 14px var(--f-head); color: var(--ink); padding: 0 4px; }
}

.band--topics { background: var(--present-bg); margin-top: 34px; padding-bottom: 30px; }
.topics { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 12px; }
.topic { position: relative; display: flex; flex-direction: column; padding: 14px; background: var(--card); border-radius: var(--r); text-decoration: none; box-shadow: var(--shadow); border-left: 5px solid var(--present); }
.topic__en { font: 700 18px/1.2 var(--f-head); color: var(--ink); }
.topic__ru { color: var(--muted); font-size: 14px; }
.topic__soon { position: absolute; top: 8px; right: 10px; font-size: 11px; color: var(--muted); }
.topic--soon { opacity: .7; box-shadow: none; }
a.topic:hover .topic__en { color: var(--present); }

.words { display: grid; grid-template-columns: 1fr; gap: 8px; margin-top: 10px; }
.word { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); text-decoration: none; }
.word__t { font-weight: 700; color: var(--ink); }
.word__ex { color: var(--past); font-size: 14px; text-align: right; }
.word--soon { opacity: .65; }

.split { display: grid; gap: 28px; }
.rules { counter-reset: r; list-style: none; padding: 0; margin: 10px 0 0; }
.rules li { counter-increment: r; display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--line); font-weight: 600; }
.rules li::before { content: counter(r); font: 700 14px/1.8 var(--f-head); color: #fff; background: var(--ink-2); min-width: 26px; height: 26px; border-radius: 50%; text-align: center; }
.rules--plan li { color: var(--muted); }

.cards { display: grid; grid-template-columns: 1fr; gap: 12px; margin-top: 12px; }
.card { background: var(--card); border-radius: var(--r); padding: 16px; box-shadow: var(--shadow); border-top: 4px solid var(--ink-2); }
.card--vremena { border-top-color: var(--present); }
.card--topiki { border-top-color: var(--future); }
.card--slova { border-top-color: var(--past); }
.card--uprazhneniya { border-top-color: var(--ok); }
.card__cat { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.card__t { margin: 4px 0 6px; font-size: 18px; }
.card__t a { text-decoration: none; color: var(--ink); }
.card__t a:hover { color: var(--present); }
.card__ex { color: var(--muted); font-size: 15px; margin: 0; }
@media (min-width: 561px) {
	.topics { grid-template-columns: repeat(3, 1fr); }
	.words { grid-template-columns: repeat(2, 1fr); }
	.cards { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 921px) {
	.topics { grid-template-columns: repeat(4, 1fr); }
	.words { grid-template-columns: repeat(4, 1fr); }
	.word { flex-direction: column; }
	.word__ex { text-align: left; }
	.cards { grid-template-columns: repeat(3, 1fr); }
	.cards--4 { grid-template-columns: repeat(4, 1fr); }
	.split { grid-template-columns: 1.1fr 1fr; gap: 44px; }
}

/* ---------- Шапка раздела ---------- */
.ph { background: var(--card); border-bottom: 1px solid var(--line); padding: 26px 0 20px; }
.ph__k { margin: 0; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.ph__t { margin: 4px 0 8px; font-size: clamp(26px, 4.6vw, 38px); }
.ph__d { color: var(--muted); max-width: 64ch; }
.ph--vremena { border-bottom: 4px solid var(--present); }
.ph--topiki { border-bottom: 4px solid var(--future); }
.ph--slova { border-bottom: 4px solid var(--past); }

/* ---------- Статья (v2: светлый чистый лист) ---------- */
body.single { background: var(--card); }
body.single .hd { border-bottom-color: var(--line); }
.art__head { padding-top: 22px; max-width: 772px; }
.art__cat { display: inline-block; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; text-decoration: none; color: var(--present); }
.art--topiki .art__cat { color: var(--future); }
.art--slova .art__cat { color: var(--past); }
.art__t { margin: 6px 0 8px; font-size: clamp(26px, 5vw, 38px); line-height: 1.2; }
.art__meta { color: var(--muted); font-size: 14px; margin-bottom: 12px; }
.art__meta span { margin: 0 6px; }
.art__nav { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 2px 16px 4px; }
.art__nav::-webkit-scrollbar { display: none; }
.art__nav a { flex: 0 0 auto; font-size: 14px; font-weight: 700; color: var(--ink); text-decoration: none; background: var(--tint); border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; }
.art__nav a:hover, .art__nav a:focus-visible { background: var(--ink); border-color: var(--ink); color: #fff; }
.art__nav a.is-quiz { background: var(--ok-bg); border-color: #bfe0c9; color: var(--ok); }
.art__cover { margin-top: 14px; max-width: 772px; }
.art__cover img { border-radius: var(--r); aspect-ratio: 2 / 1; object-fit: cover; width: 100%; max-height: 360px; }
@media (max-width: 560px) {
	.art__cover img { aspect-ratio: 21 / 9; }
	.content .wp-block-image img { aspect-ratio: 2 / 1; max-height: 190px; }
	.ee-rule { padding: 16px 12px 6px; }
	.ee-rule .tbl { margin-left: -4px; margin-right: -4px; }
}
.art__body { max-width: 772px; padding-bottom: 20px; }
.toc { background: var(--tint); border: 1px solid var(--line); border-radius: var(--r); padding: 10px 16px; margin: 14px 0 6px; }
.toc summary { cursor: pointer; font: 700 16px var(--f-head); color: var(--ink); }
.toc summary small { font: 700 12px var(--f-body); background: var(--card); border-radius: 999px; padding: 1px 8px; margin-left: 6px; color: var(--muted); }
.toc ol { margin: 10px 0 4px; padding-left: 20px; }
.toc li { margin: 4px 0; }

.content { font-size: 17.5px; line-height: 1.65; }
.content > *:first-child { margin-top: 18px; }
.content h2 { font-size: clamp(22px, 3.4vw, 27px); margin: 1.7em 0 .6em; scroll-margin-top: 16px; }
.content h3 { font-size: 19px; margin: 1.3em 0 .4em; }
.content ul, .content ol { padding-left: 1.3em; }
.content ul li, .content ol li { margin: 4px 0; }
.content li strong, .content p > strong:first-child { color: var(--ink); }
.content em { color: var(--ink-2); }
.content [lang="en"] { font-feature-settings: "kern"; }
.content blockquote { margin: 1.2em 0; padding: 12px 16px; border-left: 4px solid var(--future); background: var(--future-bg); border-radius: 0 var(--r) var(--r) 0; }
.content blockquote p:last-child { margin: 0; }
.content code { font-size: .92em; background: var(--present-bg); padding: 1px 5px; border-radius: 4px; }
.content img { border-radius: var(--r); }
.content .wp-block-image img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; max-height: 300px; }
.content figure { margin: 1.4em 0; }
.content figcaption { color: var(--muted); font-size: 14px; margin-top: 6px; }
.content s, .content del { text-decoration-thickness: 2px; }
.ipa { font-family: var(--f-ipa); color: var(--muted); white-space: nowrap; }

/* Лид и «Коротко» */
.ee-lead { font-size: 19px; line-height: 1.55; color: var(--ink-2); }
.ee-short { margin: 1.2em 0 1.4em; padding: 14px 18px 12px; border-radius: var(--r); background: var(--present-bg); border: 1px solid #c5e5df; }
.ee-short__t { margin: 0 0 6px; font: 700 13px/1.2 var(--f-body); text-transform: uppercase; letter-spacing: .08em; color: var(--present); }
.ee-short ul { list-style: none; margin: 0; padding: 0; }
.ee-short li { position: relative; padding-left: 26px; margin: 6px 0; }
.ee-short li::before { content: ""; position: absolute; left: 2px; top: .5em; width: 12px; height: 7px; border-left: 2.5px solid var(--present); border-bottom: 2.5px solid var(--present); transform: rotate(-45deg); }

/* Правило — выделенная карточка */
.ee-rule { position: relative; margin: 1em 0 1.4em; padding: 18px 18px 8px; border-radius: 14px; background: var(--card); border: 1px solid var(--line-2); border-top: 5px solid var(--ink); box-shadow: 0 10px 28px -20px rgba(27, 42, 74, .45); }
.ee-rule::before { content: "Правило"; position: absolute; top: -13px; left: 14px; font: 700 11px/1 var(--f-body); letter-spacing: .08em; text-transform: uppercase; color: #fff; background: var(--ink); padding: 6px 9px; border-radius: 999px; }
.ee-rule > :first-child { margin-top: 4px; }
.ee-rule .tbl { box-shadow: none; }
.ee-formula { font: 600 18px/1.45 var(--f-head); color: var(--ink); background: var(--tint); border-radius: 8px; padding: 10px 14px; margin: 0 0 12px; }
.ee-formula b { color: var(--present); }
.art--vremena .ee-rule { border-top-color: var(--present); }
.art--vremena .ee-rule::before { background: var(--present); }

/* Примеры EN → RU */
.ee-ex { list-style: none; margin: .8em 0 1.3em; padding: 0 !important; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.content .ee-ex li { margin: 0; padding: 10px 14px; display: grid; gap: 2px; border-top: 1px solid var(--line); }
.ee-ex li:first-child { border-top: 0; }
.ee-ex li:nth-child(even) { background: var(--tint); }
.ee-ex [lang="en"] { font-weight: 700; color: var(--ink); }
.ee-ex [lang="en"] b { color: var(--present); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.ee-ex [lang="en"] + span { color: var(--muted); font-size: 16px; }
@media (min-width: 721px) {
	.content .ee-ex li { grid-template-columns: 1fr 1fr; gap: 18px; align-items: baseline; }
	.ee-ex [lang="en"] + span::before { content: "→"; color: var(--line-2); margin-right: 8px; }
}

/* Частые ошибки ✗ → ✓ */
.ee-err { list-style: none; margin: .8em 0 1.3em; padding: 0 !important; display: grid; gap: 8px; }
.content .ee-err li { margin: 0; padding: 10px 14px; border-radius: var(--r); background: var(--tint); border: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; }
.ee-err s, .ee-err del { color: var(--err); text-decoration-color: rgba(179, 38, 30, .55); }
.ee-err s { position: relative; margin-left: 18px; }
.ee-err s::before { content: "✗"; position: absolute; left: -18px; font-weight: 700; }
.ee-err b { color: var(--ok); }
.ee-err b::before { content: "✓ "; }
.ee-err li > span { flex: 1 0 100%; color: var(--muted); font-size: 15.5px; }

/* Подробнее — раскрывашки */
.ee-more, .ee-tr { margin: 10px 0; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--card); }
.ee-more > summary, .ee-tr > summary { list-style: none; cursor: pointer; position: relative; padding: 12px 44px 12px 16px; font-weight: 700; color: var(--ink); border-radius: var(--r); }
.ee-more > summary::-webkit-details-marker, .ee-tr > summary::-webkit-details-marker { display: none; }
.ee-more > summary::after, .ee-tr > summary::after { content: "+"; position: absolute; right: 12px; top: 50%; transform: translateY(-50%); width: 24px; height: 24px; border-radius: 50%; background: var(--tint); border: 1px solid var(--line); font: 700 17px/22px var(--f-body); text-align: center; color: var(--ink-2); }
.ee-more[open] > summary::after, .ee-tr[open] > summary::after { content: "−"; }
.ee-more > summary:hover, .ee-tr > summary:hover { background: var(--tint); }
.ee-more > summary:focus-visible, .ee-tr > summary:focus-visible { outline: 3px solid #9fc3ff; outline-offset: 2px; }
.ee-more[open] > summary { border-bottom: 1px solid var(--line); border-radius: var(--r) var(--r) 0 0; }
.ee-more > :not(summary), .ee-tr > :not(summary) { margin-left: 16px; margin-right: 16px; }
.ee-more > :last-child, .ee-tr > :last-child { margin-bottom: 14px; }
.ee-more > summary + *, .ee-tr > summary + * { margin-top: 12px; }
.ee-more .tbl, .ee-more .ee-ex { margin-left: 16px; margin-right: 16px; }
.ee-tr { border-style: dashed; background: var(--tint); }
.ee-tr > summary { color: var(--present); }
.ee-sub { font-weight: 700; color: var(--ink); margin: 1em 16px .4em; }

/* Текст топика, подсказка, итог */
.ee-text { margin: 1em 0; padding: 16px 18px 6px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line-2); border-left: 5px solid var(--future); font-size: 18px; line-height: 1.75; }
.ee-note { padding: 10px 14px; border-radius: var(--r); background: var(--future-bg); border-left: 4px solid var(--future); font-size: 16px; }
.ee-next { margin: 2em 0 1em; padding: 16px 18px; border-radius: 14px; background: var(--ink); color: #dfe5f2; }
.ee-next p { margin: 0 0 10px; }
.ee-next__t, .ee-next__h { font: 700 18px var(--f-head); color: #fff; }
.ee-next__h { font-size: 15px; font-family: var(--f-body); text-transform: uppercase; letter-spacing: .06em; color: #aebbd6; margin-top: 4px !important; }
.content .ee-next ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.content .ee-next li { margin: 0; }
.ee-next a { display: inline-block; padding: 7px 14px; border-radius: 999px; background: #fff; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 15px; }
.ee-next a:hover { background: var(--present-bg); color: var(--present); }

/* Таблицы — глобально */
.tbl { position: relative; overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 1em 0 1.3em; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--card);
	background-image: linear-gradient(to right, #fff 30%, rgba(255, 255, 255, 0)), linear-gradient(to left, #fff 30%, rgba(255, 255, 255, 0)), linear-gradient(to right, rgba(27, 42, 74, .14), rgba(27, 42, 74, 0)), linear-gradient(to left, rgba(27, 42, 74, .14), rgba(27, 42, 74, 0));
	background-position: left center, right center, left center, right center; background-repeat: no-repeat; background-size: 30px 100%, 30px 100%, 12px 100%, 12px 100%; background-attachment: local, local, scroll, scroll; }
.tbl table { border-collapse: collapse; width: 100%; font-size: 16px; line-height: 1.45; }
.tbl--wide table { min-width: 560px; }
.tbl th { background: #edf1f7; color: var(--ink); text-align: left; padding: 10px 12px; font-weight: 700; font-size: 14.5px; border-bottom: 2px solid var(--line-2); vertical-align: bottom; }
.tbl td { padding: 9px 12px; border-top: 1px solid var(--line); vertical-align: top; }
.tbl tbody tr:first-child td { border-top: 0; }
.tbl th + th, .tbl td + td { border-left: 1px solid var(--line); }
.tbl tbody tr:nth-child(even) td { background: rgba(237, 241, 247, .55); }
.tbl td:first-child { font-weight: 700; color: var(--ink); }
.tbl td em, .tbl td [lang="en"] { font-style: normal; color: var(--ink); }
.tbl td.ipa { font-weight: 400; }
.tbl__hint { display: none; font-size: 13px; color: var(--muted); margin: -.9em 0 1.2em; }
.content figure.wp-block-table { margin: 0; }
@media (max-width: 560px) {
	.tbl table { font-size: 15px; }
	.tbl th, .tbl td { padding: 8px 10px; }
	.tbl--wide + .tbl__hint { display: block; }
}

.author { display: flex; gap: 14px; align-items: flex-start; margin: 28px 0 10px; padding: 16px; border-radius: var(--r); background: var(--tint); border: 1px solid var(--line); }
.author__av { flex: 0 0 44px; height: 44px; border-radius: 50%; background: var(--present); color: #fff; font: 700 20px/44px var(--f-head); text-align: center; }
.author p { margin: 0; font-size: 15px; }

.ee-slot { margin: 20px 0; }
.ee-offer { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; padding: 16px; border-radius: var(--r); background: var(--card); border: 2px solid var(--ink); }
.ee-offer__note { font-size: 12px; color: var(--muted); }
.ee-offer__title { font-weight: 700; margin: 2px 0; }
.ee-offer__text { margin: 0; font-size: 15px; }
.ee-offer__btn { background: var(--future); color: #fff; border-radius: 999px; padding: 9px 16px; text-decoration: none; font-weight: 700; }

/* ---------- Квиз [quiz] ---------- */
.qz { margin: 1em 0 1.6em; border: 2px solid var(--ink); border-radius: 14px; background: var(--card); font-size: 16.5px; overflow: hidden; }
.qz__hd { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; padding: 14px 16px 10px; background: var(--tint); border-bottom: 1px solid var(--line); }
.qz__t { margin: 0; font: 700 19px/1.25 var(--f-head); color: var(--ink); }
.qz__n { font-size: 14px; color: var(--muted); }
.qz__l { list-style: none; margin: 0 !important; padding: 0 !important; counter-reset: qz; }
.content .qz__i { counter-increment: qz; margin: 0; padding: 14px 16px 14px 52px; border-top: 1px solid var(--line); position: relative; }
.qz__i:first-child { border-top: 0; }
.qz__i::before { content: counter(qz); position: absolute; left: 14px; top: 13px; width: 26px; height: 26px; border-radius: 50%; background: var(--tint); border: 1px solid var(--line-2); font: 700 13px/24px var(--f-body); text-align: center; color: var(--ink-2); }
.qz__i fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.qz__q { margin: 0 0 8px; font-weight: 700; color: var(--ink); line-height: 1.5; padding: 0; }
.qz__o { display: flex; flex-wrap: wrap; gap: 8px; }
.qz__o label { position: relative; display: inline-flex; align-items: center; cursor: pointer; }
.qz__o input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.qz__o span { display: inline-block; padding: 6px 14px; border: 1.5px solid var(--line-2); border-radius: 999px; background: var(--card); color: var(--ink); font-weight: 600; }
.qz__o label:hover span { border-color: var(--ink-2); }
.qz__o input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.qz__o input:focus-visible + span { outline: 3px solid #9fc3ff; outline-offset: 2px; }
.qz__in, .qz__sel { font: inherit; font-weight: 700; color: var(--ink); border: 0; border-bottom: 2px dashed var(--ink-2); background: #eef3fb; border-radius: 6px 6px 0 0; padding: 2px 8px; margin: 2px 2px; min-width: 7ch; max-width: 100%; }
.qz__in { width: 11ch; }
.qz__sel { cursor: pointer; padding-right: 4px; }
.qz__in:focus, .qz__sel:focus { outline: 3px solid #9fc3ff; outline-offset: 1px; background: #fff; }
.qz__fb { display: none; margin: 8px 0 0; font-size: 15px; color: var(--muted); }
.qz__fb b { color: var(--ink); }
.qz__i.is-ok { background: var(--ok-bg); }
.qz__i.is-bad { background: var(--err-bg); }
.qz__i.is-ok::before { content: "✓"; background: var(--ok); border-color: var(--ok); color: #fff; }
.qz__i.is-bad::before { content: "✗"; background: var(--err); border-color: var(--err); color: #fff; }
.qz__i.is-ok .qz__in, .qz__i.is-ok .qz__sel { border-bottom-color: var(--ok); background: #d4ecdb; }
.qz__i.is-bad .qz__in, .qz__i.is-bad .qz__sel { border-bottom-color: var(--err); background: #f8d9d6; }
.qz__i.is-ok input:checked + span { background: var(--ok); border-color: var(--ok); }
.qz__i.is-bad input:checked + span { background: var(--err); border-color: var(--err); }
.qz__i.is-empty { background: var(--future-bg); }
.qz.is-shown .qz__fb { display: block; }
.qz__o .is-right span { box-shadow: 0 0 0 3px var(--ok); }
.qz__bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 12px 16px 14px; border-top: 1px solid var(--line); background: var(--tint); }
.qz__bar button { font: inherit; font-weight: 700; font-size: 16px; border: 2px solid var(--ink); border-radius: 999px; padding: 8px 18px; background: var(--ink); color: #fff; cursor: pointer; }
.qz__bar button.qz__ghost { background: var(--card); color: var(--ink); }
.qz__bar button:hover { background: var(--present); border-color: var(--present); color: #fff; }
.qz__bar button:focus-visible { outline: 3px solid #9fc3ff; outline-offset: 2px; }
.qz__bar button[hidden] { display: none; }
.qz__score { font: 700 18px var(--f-head); color: var(--ink); margin-left: auto; }
.qz__score:empty { display: none; }
@media (max-width: 560px) {
	.content .qz__i { padding: 12px 12px 12px 46px; }
	.qz__i::before { left: 10px; }
	.qz__score { margin-left: 0; flex: 1 0 100%; }
}

/* ---------- Тренажёр глаголов [ee_verbs] и старый [ee_quiz] ---------- */
.ee-quiz, .ee-verbs { margin: 1.4em 0; padding: 16px; border-radius: 14px; background: var(--card); border: 2px solid var(--ink); font-size: 16px; }
.ee-quiz__h, .ee-v__h { font: 700 19px var(--f-head); color: var(--ink); margin: 0 0 10px; }
.ee-q { padding: 10px 0; border-top: 1px dashed var(--line); }
.ee-q__s { margin: 0 0 8px; font-weight: 600; }
.ee-q__o { display: flex; flex-wrap: wrap; gap: 6px; }
.ee-q__o button { font: inherit; font-size: 15px; border: 1px solid var(--line); background: var(--tint); border-radius: 999px; padding: 5px 13px; cursor: pointer; color: var(--ink); }
.ee-q__o button[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: #fff; }
.ee-q.is-ok .ee-q__o button[aria-pressed="true"] { background: var(--ok); border-color: var(--ok); }
.ee-q.is-bad .ee-q__o button[aria-pressed="true"] { background: var(--err); border-color: var(--err); }
.ee-q__fb { margin: 6px 0 0; font-size: 14px; color: var(--muted); }
.ee-q.is-ok .ee-q__fb { color: var(--ok); }
.ee-q.is-bad .ee-q__fb { color: var(--err); }
.ee-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 12px; }
.ee-bar button, .ee-v__go { font: inherit; font-weight: 700; border: 0; border-radius: 999px; padding: 9px 16px; background: var(--ink); color: #fff; cursor: pointer; }
.ee-bar button.ee-ghost { background: transparent; color: var(--ink); border: 2px solid var(--ink); }
.ee-score { font-weight: 700; color: var(--ink); }
.ee-v__card { display: grid; gap: 8px; }
.ee-v__base { font: 700 26px/1.2 var(--f-head); color: var(--past); }
.ee-v__ru { color: var(--muted); font-size: 15px; margin-top: -4px; }
.ee-v__row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ee-v__row input { width: 100%; font: inherit; padding: 9px 12px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--tint); }
.ee-v__row input.is-ok { border-color: var(--ok); background: var(--ok-bg); }
.ee-v__row input.is-bad { border-color: var(--err); background: var(--err-bg); }
.ee-v__fb { min-height: 1.4em; font-size: 15px; margin: 0; }
.ee-v__stat { font-size: 14px; color: var(--muted); margin: 0; }
.ee-v__modes { display: flex; gap: 6px; flex-wrap: wrap; font-size: 14px; }
.ee-v__modes button { font: inherit; border: 1px solid var(--line); background: var(--tint); border-radius: 999px; padding: 4px 11px; cursor: pointer; }
.ee-v__modes button[aria-pressed="true"] { background: var(--past); border-color: var(--past); color: #fff; }

/* Старые секции по смыслу H2 (для записей до v2) */
.ee-sec { position: relative; margin: 1.8em 0; padding: 4px 16px 6px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); }
.ee-sec__l { position: absolute; top: -10px; right: 12px; font: 700 11px/1 var(--f-body); letter-spacing: .06em; text-transform: uppercase; color: #fff; background: var(--ink-2); padding: 5px 8px; border-radius: 999px; }
.ee-sec--tr { border: 0; padding: 0; }

/* ---------- Страница, 404, пагинация ---------- */
.pg { max-width: 820px; padding-top: 26px; padding-bottom: 30px; }
.pg__t { margin-top: 0; font-size: clamp(27px, 5vw, 38px); }
.nf { padding-top: 40px; padding-bottom: 40px; max-width: 700px; }
.nf__card { display: inline-flex; flex-direction: column; background: var(--card); box-shadow: var(--shadow); border-top: 5px solid var(--past); border-radius: var(--r); padding: 16px 22px; transform: rotate(-2deg); }
.nf__card span { font: 700 56px/1 var(--f-head); color: var(--past); }
.nf__card i { font-style: normal; color: var(--muted); font-size: 14px; }
.nav-links { display: flex; flex-wrap: wrap; gap: 6px; margin: 24px 0; }
.page-numbers { padding: 6px 12px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); text-decoration: none; }
.page-numbers.current { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------- Подвал ---------- */
.ft { margin-top: 40px; background: var(--ink); color: #c9d2e8; font-size: 15px; }
.ft a { color: #fff; }
.ft__row { display: grid; gap: 18px; padding-top: 28px; padding-bottom: 16px; }
.ft .logo { color: #fff; }
.ft .logo__m b { background: #fff; color: var(--ink); }
.ft .logo__m i { color: #fff; border-color: #fff; }
.ft .logo__t small { color: #aeb8d3; }
.ft__t { margin: 10px 0 0; max-width: 42ch; }
.ft__m { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; }
.ft__c { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; border-top: 1px solid rgba(255, 255, 255, .15); padding-top: 12px; padding-bottom: 18px; font-size: 14px; }
.ft__l { display: flex; flex-wrap: wrap; gap: 6px 16px; }
@media (min-width: 921px) {
	.ft__row { grid-template-columns: 1fr 1fr; align-items: start; }
	.ft__m { justify-content: flex-end; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

