/*
Theme Name: dds_oeuvresetthemes.com
Description: Тема для ресурсного центра методической поддержки педагогов. Лавандовый минимализм, антиква в заголовках, воздушная сетка.
Author: Анна Дубровская
Version: 1.1
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: oeuvth
*/

/* =========================================================
   1. Переменные и база
   ========================================================= */

:root {
    --paper: #F8F6FA;
    --alt: #F0ECF5;
    --ink: #221F26;
    --accent: #9B7BB8;
    --accent-dark: #7D5F9E;
    --accent-soft: #D4C5E0;
    --accent-pale: #E8E0F0;
    --muted: #8A8393;
    --deep: #2B2633;
    --deep-text: #C4B8D0;
    --aside-bg: #F5F2F9;
    --line: #E3DCEC;
    --serif: "Playfair Display", "PT Serif", Georgia, "Times New Roman", serif;
    --sans: "Inter", "Manrope", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
    --shell: min(92%, 1180px);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    overflow-x: hidden;
    background-color: var(--paper);
    background-image: repeating-linear-gradient(45deg,
        rgba(155, 123, 184, 0.02) 0,
        rgba(155, 123, 184, 0.02) 1px,
        transparent 1px,
        transparent 9px);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 17px;
    line-height: 1.72;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.shell {
    width: var(--shell);
    margin-inline: auto;
}

.front-shell {
    width: min(85%, 1180px);
    margin-inline: auto;
}

a {
    color: var(--accent-dark);
    text-decoration: none;
}

.entry-content a,
.widget a,
.crumbs a,
.text-link {
    background-image: linear-gradient(currentColor, currentColor);
    background-size: 0% 1px;
    background-position: 0 100%;
    background-repeat: no-repeat;
    transition: background-size 0.28s ease, color 0.2s ease;
    padding-bottom: 2px;
}

.entry-content a:hover,
.widget a:hover,
.crumbs a:hover,
.text-link:hover {
    background-size: 100% 1px;
    color: var(--accent);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--serif);
    font-weight: 700;
    line-height: 1.22;
    color: var(--ink);
    margin: 0 0 0.7em;
}

h1 { font-size: 3.2rem; }
h2 { font-size: 2.1rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
    margin: 0 0 1.15em;
}

/* =========================================================
   2. Кнопки
   ========================================================= */

.btn,
.entry-content .btn {
    display: inline-block;
    padding: 0.78rem 1.9rem;
    border-radius: 30px;
    background: var(--accent);
    color: #fff;
    font-size: 0.98rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    border: 1px solid var(--accent);
    cursor: pointer;
    transition: background 0.25s ease, box-shadow 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.btn:hover {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
    color: #fff;
    box-shadow: 0 6px 22px rgba(155, 123, 184, 0.45);
}

.btn-ghost {
    background: transparent;
    color: var(--accent-dark);
    border: 1px solid var(--accent);
}

.btn-ghost:hover {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 6px 22px rgba(155, 123, 184, 0.35);
}

/* =========================================================
   3. Шапка
   ========================================================= */

.site-head {
    background: #FFFFFFCC;
    border-bottom: 1px solid var(--line);
    padding: 1.4rem 0;
}

.head-inner {
    display: flex;
    align-items: center;
    gap: 1.6rem;
    flex-wrap: wrap;
}

.brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 0;
    flex: 1 1 320px;
}

.brand-mark {
    flex: 0 0 auto;
    width: 56px;
    height: 56px;
}

.brand-mark img,
.brand-mark svg {
    width: 56px;
    height: 56px;
    display: block;
}

.brand-text {
    min-width: 0;
}

.brand-name {
    display: block;
    font-family: var(--serif);
    font-size: 1.12rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--ink);
    max-height: 3.7em;
    overflow: hidden;
}

.brand-tagline {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.82rem;
    line-height: 1.5;
    color: var(--muted);
    max-height: 3em;
    overflow: hidden;
}

.nav-toggle {
    display: none;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 1.1rem;
    border-radius: 30px;
    border: 1px solid var(--accent);
    background: transparent;
    color: var(--accent-dark);
    font-family: var(--sans);
    font-size: 0.9rem;
    cursor: pointer;
}

.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 1.6rem;
}

.main-nav a {
    position: relative;
    color: var(--ink);
    font-size: 0.97rem;
    font-weight: 500;
    padding-bottom: 4px;
}

.main-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width 0.28s ease;
}

.main-nav a:hover {
    color: var(--accent-dark);
}

.main-nav a:hover::after,
.main-nav .current-menu-item > a::after {
    width: 100%;
}

/* =========================================================
   4. Раскладка страниц
   ========================================================= */

.site-main {
    padding: 2.6rem 0 4rem;
}

.layout-single {
    display: block;
    width: 85%;
    margin-left: auto;
    margin-right: auto;
}

.layout-with-sidebar {
    display: grid;
    grid-template-columns: minmax(0, 67%) minmax(0, 27%);
    justify-content: space-between;
    gap: 2.4rem;
    align-items: start;
}

.content-area {
    min-width: 0;
}

.sidebar {
    min-width: 0;
    background: var(--aside-bg);
    border-radius: 16px;
    padding: 1.6rem 1.5rem;
    color: var(--ink);
}

/* Хлебные крошки */

.crumbs {
    font-size: 0.86rem;
    color: var(--muted);
    margin-bottom: 1.6rem;
}

.crumbs a {
    color: var(--accent-dark);
}

.crumbs-sep {
    color: var(--accent-soft);
    margin: 0 0.25rem;
}

/* Заголовки секций и страниц */

.page-title,
.sec-title {
    position: relative;
    display: table;
    padding-top: 1.5rem;
    margin-bottom: 1.9rem;
}

.page-title::before,
.sec-title::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
}

.page-title::after,
.sec-title::after {
    content: "";
    position: absolute;
    left: -14px;
    bottom: -12px;
    width: calc(100% + 28px);
    height: 1px;
    background: var(--accent);
}

.sec-title-center {
    margin-left: auto;
    margin-right: auto;
}

/* =========================================================
   5. Карточки записей
   ========================================================= */

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: 1.8rem;
}

.card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(155, 123, 184, 0.12);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 34px rgba(155, 123, 184, 0.22);
}

.card-thumb {
    display: block;
    overflow: hidden;
}

.card-thumb img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.card-thumb-fallback {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    background: linear-gradient(135deg, var(--accent-pale), var(--accent-soft));
    position: relative;
}

.card-thumb-fallback::after {
    content: "F";
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--serif);
    font-size: 2.6rem;
    color: rgba(125, 95, 158, 0.55);
}

.card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 1.4rem 1.5rem 1.6rem;
}

.card-meta {
    font-size: 0.8rem;
    color: var(--muted);
    margin-bottom: 0.6rem;
}

.card-title {
    font-size: 1.32rem;
    margin: 0 0 0.65rem;
}

.card-title a {
    color: var(--ink);
}

.card-title a:hover {
    color: var(--accent-dark);
}

.card-excerpt {
    color: #4A4551;
    font-size: 0.95rem;
    margin-bottom: 1.2rem;
}

.card-excerpt p {
    margin: 0 0 0.5em;
    background: none;
}

.card-more {
    margin-top: auto;
    align-self: flex-start;
}

/* =========================================================
   6. Пагинация
   ========================================================= */

.pager {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 2.6rem;
}

.pager .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 1rem;
    border-radius: 30px;
    border: 1px solid var(--accent-soft);
    background: #fff;
    color: var(--ink);
    font-size: 0.95rem;
    transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.pager .page-numbers:hover {
    border-color: var(--accent);
    color: var(--accent-dark);
    box-shadow: 0 4px 16px rgba(155, 123, 184, 0.2);
}

.pager .page-numbers.current {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

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

/* =========================================================
   7. Главная страница
   ========================================================= */

.front-section {
    padding: 4.2rem 0;
}

.front-section.is-alt {
    background: var(--alt);
}

.front-lead {
    max-width: 62ch;
    color: #4A4551;
}

/* 7.1 Hero */

.fs-hero {
    position: relative;
    padding: 0;
    overflow: hidden;
    background: var(--deep);
}

.fs-hero-media {
    position: absolute;
    inset: 0;
}

.fs-hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.85;
}

.fs-hero-blob {
    position: absolute;
    right: -60px;
    bottom: -90px;
    width: 360px;
    height: 360px;
    pointer-events: none;
    opacity: 0.75;
}

.fs-hero-inner {
    position: relative;
    padding: 6rem 0;
}

.fs-hero-plate {
    width: min(100%, 640px);
    padding: 2.6rem 2.4rem;
    border-radius: 18px;
    background: rgba(248, 246, 250, 0.82);
    backdrop-filter: blur(9px);
    -webkit-backdrop-filter: blur(9px);
    text-align: left;
}

.fs-hero-plate h1 {
    margin: 0 0 1.1rem;
    font-size: 3.2rem;
}

.fs-hero-rule {
    width: 96px;
    height: 3px;
    background: var(--accent);
    margin-bottom: 1.3rem;
}

.fs-hero-plate p {
    color: #3C3745;
    margin-bottom: 1.6rem;
}

/* 7.2 Сетка иконок */

.icon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
    gap: 1.6rem;
}

.icon-card {
    min-width: 0;
    padding: 2rem 1.8rem;
    border: 1px solid var(--accent-soft);
    border-radius: 12px;
    background: transparent;
    transition: background 0.28s ease, border-color 0.28s ease;
}

.icon-card:hover {
    background: var(--alt);
    border-color: var(--accent);
}

.icon-card svg {
    width: 46px;
    height: 46px;
    margin-bottom: 1rem;
}

.icon-card h3 {
    font-size: 1.32rem;
    margin-bottom: 0.5rem;
}

.icon-card p {
    margin: 0;
    color: #4A4551;
    font-size: 0.95rem;
}

/* 7.3 Таймлайн */

.fs-timeline {
    background:
        radial-gradient(circle, rgba(125, 95, 158, 0.18) 1.5px, transparent 1.6px) 0 0 / 18px 18px,
        linear-gradient(135deg, var(--accent-pale), var(--accent-soft));
}

.timeline {
    position: relative;
    margin-top: 2.4rem;
    padding: 0.5rem 0;
}

.timeline::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    margin-left: -1px;
    background: var(--accent);
}

.tl-item {
    position: relative;
    width: 50%;
    padding: 0 2.6rem 2.4rem 0;
    min-width: 0;
}

.tl-item:nth-child(even) {
    margin-left: 50%;
    padding: 0 0 2.4rem 2.6rem;
    text-align: left;
}

.tl-item:nth-child(odd) {
    text-align: right;
}

.tl-item::after {
    content: "";
    position: absolute;
    top: 0.55rem;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid var(--accent);
    box-shadow: inset 0 0 0 3px var(--accent);
}

.tl-item:nth-child(odd)::after {
    right: -8px;
}

.tl-item:nth-child(even)::after {
    left: -8px;
}

.tl-name {
    font-family: var(--serif);
    font-size: 1.32rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
}

.tl-text {
    margin: 0;
    color: #453F4E;
    font-size: 0.95rem;
}

/* 7.4 Статистика */

.fs-stats {
    background: var(--deep);
    color: #F2EEF7;
    border-radius: 0;
}

.stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr));
    gap: 1.6rem;
    padding: 2.6rem 2.2rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 14px;
}

.stat {
    min-width: 0;
    text-align: center;
}

.stat-num {
    display: block;
    font-family: var(--serif);
    font-size: 2.9rem;
    line-height: 1.1;
    color: #F5F1FA;
}

.stat-cap {
    display: block;
    margin-top: 0.45rem;
    font-size: 0.88rem;
    color: var(--deep-text);
}

.fs-stats .sec-title {
    color: #F5F1FA;
}

.fs-stats .front-lead {
    color: var(--deep-text);
}

/* Последние записи */

.fs-latest .cards {
    margin-bottom: 0;
}

/* =========================================================
   8. Контент записи и страницы
   ========================================================= */

.entry {
    background: #fff;
    border-radius: 16px;
    padding: 2.4rem 2.4rem 2.6rem;
    box-shadow: 0 4px 20px rgba(155, 123, 184, 0.1);
}

.entry-meta {
    font-size: 0.85rem;
    color: var(--muted);
    margin-bottom: 1.4rem;
}

.entry-thumb {
    margin: 0 0 1.8rem;
}

.entry-thumb img {
    width: 100%;
    border-radius: 12px;
    aspect-ratio: 16 / 8;
    object-fit: cover;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
    margin-top: 2rem;
}

.entry-content ul,
.entry-content ol {
    list-style: none;
    padding-left: 0;
    margin: 0 0 1.4rem;
}

.entry-content li {
    position: relative;
    padding-left: 2.3rem;
    margin-bottom: 0.6rem;
}

.entry-content li::before {
    content: "F";
    position: absolute;
    left: 0;
    top: 0.28em;
    width: 1.45rem;
    height: 1.45rem;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    font-family: var(--serif);
    font-size: 0.82rem;
    line-height: 1.45rem;
    text-align: center;
}

.entry-content blockquote {
    margin: 1.8rem 0;
    padding: 1.4rem 1.6rem;
    border-left: 3px solid var(--accent);
    background:
        radial-gradient(circle, rgba(125, 95, 158, 0.16) 1.4px, transparent 1.5px) 0 0 / 16px 16px,
        linear-gradient(135deg, var(--accent-pale), var(--accent-soft));
    border-radius: 0 12px 12px 0;
    font-family: var(--serif);
    font-size: 1.15rem;
}

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

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

.entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 0 1.6rem;
    border: 1px solid var(--accent-soft);
}

.entry-content th,
.entry-content td {
    border: 1px solid var(--accent-soft);
    padding: 0.7rem 0.9rem;
    text-align: left;
}

.entry-content th {
    background: var(--alt);
    font-family: var(--serif);
}

.entry-tags {
    margin-top: 2rem;
    font-size: 0.88rem;
    color: var(--muted);
}

.entry-tags a {
    display: inline-block;
    margin: 0 0.4rem 0.4rem 0;
    padding: 0.25rem 0.85rem;
    border-radius: 30px;
    background: var(--alt);
    color: var(--accent-dark);
}

/* =========================================================
   9. Сайдбар и виджеты
   ========================================================= */

.widget {
    margin-bottom: 1.8rem;
}

.widget:last-child {
    margin-bottom: 0;
}

.widget-title {
    position: relative;
    font-size: 1.15rem;
    margin-bottom: 1rem;
    padding-left: 1rem;
}

.widget-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
}

.widget ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.widget li {
    padding: 0.5rem 0;
    border-bottom: 1px dashed var(--line);
}

.widget li:last-child {
    border-bottom: none;
}

.sidebar .widget,
.sidebar .widget p,
.sidebar .widget li {
    color: var(--ink);
}

.sidebar .widget-title {
    color: var(--ink);
}

.sidebar .widget a {
    color: var(--accent-dark);
}

.sidebar .widget .post-date,
.sidebar .widget .rss-date {
    color: var(--muted);
    font-size: 0.82rem;
}

/* =========================================================
   10. Подвал
   ========================================================= */

.site-foot {
    background: var(--deep);
    color: #E7E1EF;
    padding: 3.2rem 0 1.8rem;
}

.foot-cols {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
    gap: 2rem;
}

.foot-col {
    min-width: 0;
}

.site-foot .widget-title {
    color: #F5F1FA;
}

.site-foot .widget-title::before {
    background: var(--accent-soft);
}

.site-foot .widget,
.site-foot .widget p,
.site-foot .widget li,
.site-foot .textwidget {
    color: #DAD2E4;
}

.site-foot .widget a {
    color: var(--accent-soft);
}

.site-foot .widget a:hover {
    color: #fff;
}

.site-foot .widget li {
    border-bottom: 1px dashed rgba(212, 197, 224, 0.22);
}

.site-foot .post-date {
    color: var(--deep-text);
}

.foot-bottom {
    margin-top: 2.6rem;
    padding-top: 1.4rem;
    border-top: 1px solid rgba(212, 197, 224, 0.2);
    font-size: 0.86rem;
    color: var(--deep-text);
}

/* =========================================================
   11. Формы поиска и комментарии
   ========================================================= */

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.search-form {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.search-form label {
    flex: 1 1 180px;
    min-width: 0;
}

.search-field {
    width: 100%;
    padding: 0.72rem 1.1rem;
    border-radius: 30px;
    border: 1px solid var(--accent-soft);
    background: #fff;
    color: var(--ink);
    font-family: var(--sans);
    font-size: 0.95rem;
}

.search-field:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(155, 123, 184, 0.18);
}

.comments-area {
    margin-top: 2.4rem;
    background: #fff;
    border-radius: 16px;
    padding: 2rem 2.2rem 2.2rem;
    box-shadow: 0 4px 20px rgba(155, 123, 184, 0.1);
}

.comments-title,
.comment-reply-title {
    font-size: 1.5rem;
}

.comment-list {
    list-style: none;
    margin: 0 0 2rem;
    padding: 0;
}

.comment-list .children {
    list-style: none;
    margin: 1rem 0 0;
    padding-left: 1.6rem;
    border-left: 2px solid var(--alt);
}

.comment-item {
    margin-bottom: 1.2rem;
}

.comment-inner {
    padding: 1.2rem 1.4rem;
    background: var(--alt);
    border-radius: 12px;
}

.comment-head {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    align-items: baseline;
    margin-bottom: 0.5rem;
}

.comment-author {
    font-family: var(--serif);
    font-weight: 700;
}

.comment-date,
.comment-actions {
    font-size: 0.83rem;
    color: var(--muted);
}

.comment-hold {
    font-size: 0.88rem;
    color: var(--accent-dark);
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 0.75rem 1.1rem;
    border: 1px solid var(--accent-soft);
    border-radius: 12px;
    background: #fff;
    font-family: var(--sans);
    font-size: 0.95rem;
    color: var(--ink);
}

.comment-form textarea {
    min-height: 150px;
}

.comment-form label {
    display: block;
    margin-bottom: 0.3rem;
    font-size: 0.9rem;
    color: var(--muted);
}

.comment-form p {
    margin-bottom: 1rem;
}

.comment-form .submit {
    display: inline-block;
    padding: 0.78rem 1.9rem;
    border-radius: 30px;
    background: var(--accent);
    color: #fff;
    border: 1px solid var(--accent);
    font-family: var(--sans);
    font-size: 0.98rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.25s ease, box-shadow 0.25s ease;
}

.comment-form .submit:hover {
    background: var(--accent-dark);
    box-shadow: 0 6px 22px rgba(155, 123, 184, 0.45);
}

/* =========================================================
   12. 404 и поиск
   ========================================================= */

.notfound {
    background: #fff;
    border-radius: 16px;
    padding: 2.6rem 2.4rem;
    box-shadow: 0 4px 20px rgba(155, 123, 184, 0.1);
}

.notfound-code {
    font-family: var(--serif);
    font-size: 4.6rem;
    line-height: 1;
    color: var(--accent);
    margin-bottom: 0.6rem;
}

.notfound-actions {
    margin-top: 1.6rem;
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
    align-items: center;
}

.list-empty {
    background: #fff;
    border-radius: 16px;
    padding: 2rem 2.2rem;
    box-shadow: 0 4px 20px rgba(155, 123, 184, 0.1);
}

/* =========================================================
   13. Cookie-баннер
   ========================================================= */

.cookie-banner[hidden] {
    display: none !important;
}

.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.2rem;
    flex-wrap: wrap;
    padding: 1.1rem 1.6rem;
    background: var(--deep);
    color: #E7E1EF;
    box-shadow: 0 -6px 24px rgba(34, 31, 38, 0.28);
}

.cookie-banner p {
    margin: 0;
    font-size: 0.9rem;
    min-width: 0;
    flex: 1 1 320px;
}

.cookie-banner a {
    color: var(--accent-soft);
    text-decoration: underline;
}

/* =========================================================
   14. Адаптив
   ========================================================= */

@media (max-width: 960px) {
    h1 { font-size: 2.4rem; }
    h2 { font-size: 1.8rem; }

    .layout-with-sidebar {
        grid-template-columns: minmax(0, 1fr);
        gap: 2rem;
    }

    .layout-single {
        width: 100%;
    }

    .fs-hero-plate h1 {
        font-size: 2.5rem;
    }

    .fs-hero-inner {
        padding: 4.4rem 0;
    }

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

    .main-nav {
        flex: 1 1 100%;
    }

    .main-nav ul {
        display: none;
        flex-direction: column;
        gap: 0.2rem;
        padding-top: 0.8rem;
    }

    .main-nav.is-open ul {
        display: flex;
    }

    .main-nav li {
        border-bottom: 1px dashed var(--line);
        padding: 0.5rem 0;
    }
}

@media (max-width: 600px) {
    body {
        font-size: 16px;
    }

    h1 { font-size: 2rem; }
    h2 { font-size: 1.55rem; }
    h3 { font-size: 1.3rem; }

    .site-main {
        padding: 2rem 0 3rem;
    }

    .front-section {
        padding: 3rem 0;
    }

    .fs-hero-inner {
        padding: 3.4rem 0;
    }

    .fs-hero-plate {
        padding: 1.8rem 1.4rem;
    }

    .fs-hero-plate h1 {
        font-size: 2rem;
    }

    .fs-hero-blob {
        width: 220px;
        height: 220px;
    }

    .stats-row {
        padding: 1.9rem 1.4rem;
    }

    .entry,
    .comments-area,
    .notfound,
    .list-empty {
        padding: 1.6rem 1.3rem;
    }

    .sidebar {
        padding: 1.4rem 1.2rem;
    }

    .icon-card {
        padding: 1.6rem 1.3rem;
    }

    .timeline::before {
        left: 7px;
    }

    .tl-item,
    .tl-item:nth-child(even),
    .tl-item:nth-child(odd) {
        width: 100%;
        margin-left: 0;
        padding: 0 0 1.9rem 2.2rem;
        text-align: left;
    }

    .tl-item:nth-child(odd)::after,
    .tl-item:nth-child(even)::after {
        left: 0;
        right: auto;
    }

    .entry-content blockquote {
        padding: 1.2rem 1.2rem;
    }

    .cookie-banner {
        padding: 1rem 1.1rem;
    }
}
