/*
Theme Name: dds_pentilanero.com
Author: Марина Лебедева
Description: Тема для информационного портала о цифровых инструментах и нейросетях для продуктивности.
Version: 1.1
Text Domain: pentgid
*/

:root {
    --paper: #F8F7FC;
    --alt: #F0EFF8;
    --head: #2A2438;
    --foot: #1C1825;
    --side: #FFFFFF;
    --ink: #2C2A38;
    --accent: #7C6DF0;
    --accent2: #F5A6B8;
    --muted: #9A94A8;
    --line: #DFDBEA;
    --dot: #D6D0E3;
}

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

html { scroll-behavior: smooth; }

body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    color: var(--ink);
    background-color: var(--paper);
    background-image: radial-gradient(circle, rgba(214, 208, 227, 0.3) 1px, transparent 1px);
    background-size: 24px 24px;
    font-family: "PT Root UI", "IBM Plex Sans", "Segoe UI", Tahoma, sans-serif;
    font-size: 17px;
    line-height: 1.72;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: Inter, Manrope, "Segoe UI", Arial, sans-serif;
    color: var(--ink);
    line-height: 1.22;
    letter-spacing: -0.01em;
    margin: 0 0 0.7em;
    font-weight: 700;
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.15rem; }

p { margin: 0 0 1.15em; }

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

.entry-body a,
.widget a,
.crumbs a,
.card-title a {
    position: relative;
}

.entry-body a::after,
.crumbs a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 1px;
    background: currentColor;
    transition: width 0.25s ease;
}

.entry-body a:hover::after,
.crumbs a:hover::after { width: 100%; }

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

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

.skip { position: absolute; left: -9999px; }

/* ---------- Шапка ---------- */

.site-head {
    background: var(--head);
    color: #EDEAF6;
    padding: 1.6rem 0;
}

.head-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 1.4rem;
    align-items: center;
    justify-content: space-between;
}

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

.brand-logo, .brand-mark { flex: 0 0 auto; display: block; }
.brand-mark { width: 46px; height: 46px; }
.brand-logo { width: auto; height: 46px; }

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

.site-name {
    display: block;
    font-family: Inter, Manrope, sans-serif;
    font-weight: 700;
    font-size: 1.02rem;
    line-height: 1.35;
    color: #FFFFFF;
    max-width: 46ch;
}

a.site-name:hover { color: var(--accent2); }

.site-desc {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.8rem;
    line-height: 1.5;
    color: #A9A2BF;
    max-width: 62ch;
}

.nav-toggle {
    display: none;
    background: transparent;
    border: 1px solid rgba(237, 234, 246, 0.35);
    border-radius: 6px;
    color: #EDEAF6;
    padding: 0.5rem 0.9rem;
    font: inherit;
    font-size: 0.9rem;
    cursor: pointer;
}

.main-nav[hidden] { display: none !important; }

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

.main-nav a {
    color: #EDEAF6;
    font-size: 0.96rem;
    padding-bottom: 3px;
    border-bottom: 2px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.main-nav a:hover,
.main-nav .current-menu-item > a {
    color: #FFFFFF;
    border-bottom-color: var(--accent);
}

.accent-rule { height: 3px; background: var(--accent); }

/* ---------- Каркас страницы ---------- */

.page-wrap { padding: 2.6rem 0 3.4rem; }

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

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

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

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

.crumbs {
    font-size: 0.85rem;
    color: var(--muted);
    margin-bottom: 1.4rem;
    line-height: 1.6;
}

.crumbs a { color: var(--accent); }
.crumbs-sep { margin: 0 0.35rem; color: var(--line); }

/* ---------- Заголовки секций и ромб ---------- */

.sec-title {
    display: flex;
    align-items: stretch;
    gap: 0.85rem;
    margin: 0 0 1.6rem;
}

.sec-title::before {
    content: "";
    flex: 0 0 4px;
    background: var(--accent);
    border-radius: 2px;
}

.entry-body h2::before,
.entry-body h3::before,
.sec-sub h3::before {
    content: "◇";
    color: var(--accent);
    font-size: 0.8em;
    margin-right: 0.5rem;
}

/* ---------- Кнопки ---------- */

.btn {
    display: inline-block;
    padding: 0.78rem 1.5rem;
    border-radius: 6px;
    background: var(--accent);
    color: #FFFFFF;
    font-family: Inter, Manrope, sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.2;
    border: 1px solid var(--accent);
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
    background: #6355DA;
    border-color: #6355DA;
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(124, 109, 240, 0.28);
    color: #FFFFFF;
}

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

.btn-ghost:hover {
    background: rgba(124, 109, 240, 0.12);
    color: var(--accent);
    border-color: var(--accent);
    box-shadow: 0 8px 18px rgba(124, 109, 240, 0.16);
}

.btn-light {
    background: #FFFFFF;
    color: var(--head);
    border-color: #FFFFFF;
}

.btn-light:hover {
    background: #EDEAF6;
    border-color: #EDEAF6;
    color: var(--head);
}

/* ---------- Карточки записей ---------- */

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

.card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: #FFFFFF;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(44, 42, 56, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(124, 109, 240, 0.15);
}

.card-thumb { display: block; }

.card-thumb img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 12px 12px 0 0;
}

.card-thumb-empty {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 12px 12px 0 0;
    background: linear-gradient(135deg, #E0DBF2 0%, #F5F3FC 100%);
    position: relative;
}

.card-thumb-empty::after {
    content: "◇";
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 2rem;
    opacity: 0.5;
}

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

.card-meta {
    font-size: 0.78rem;
    color: var(--muted);
    margin-bottom: 0.6rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    align-items: center;
}

.card-cat {
    color: #9C5F73;
    background: rgba(245, 166, 184, 0.28);
    border-radius: 4px;
    padding: 0.12rem 0.5rem;
}

.card-title {
    font-size: 1.18rem;
    margin: 0 0 0.6rem;
    line-height: 1.35;
}

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

.card-excerpt {
    font-size: 0.92rem;
    color: #56526A;
    margin-bottom: 1.1rem;
}

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

.card-more {
    margin-top: auto;
    align-self: flex-start;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent);
}

.card-more:hover { color: #6355DA; }

/* ---------- Пагинация ---------- */

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

.pager .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 0.8rem;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #FFFFFF;
    color: var(--ink);
    font-size: 0.92rem;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.pager .page-numbers:hover {
    color: var(--accent);
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(124, 109, 240, 0.14);
}

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

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

/* ---------- Главная ---------- */

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

.front-section.alt {
    background-color: var(--alt);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='520' height='420' viewBox='0 0 520 420'%3E%3Cg fill='none' stroke='%237C6DF0' stroke-width='2'%3E%3Cpath d='M60 340c60-70 120-40 180-110s130-30 200-120'/%3E%3Cpath d='M40 240c80 20 140-40 220-10s150-20 220-90'/%3E%3C/g%3E%3Cg fill='%237C6DF0'%3E%3Ccircle cx='60' cy='340' r='9'/%3E%3Ccircle cx='240' cy='230' r='9'/%3E%3Ccircle cx='440' cy='110' r='9'/%3E%3Ccircle cx='260' cy='230' r='6'/%3E%3Ccircle cx='480' cy='150' r='6'/%3E%3C/g%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right -60px bottom -40px;
    background-size: 520px auto;
}

.front-section.alt > .shell-narrow { position: relative; }

/* Блок 1 — hero */

.fs-hero {
    background: var(--head);
    color: #EDEAF6;
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.fs-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: repeating-linear-gradient(115deg, rgba(124, 109, 240, 0.22) 0 1px, transparent 1px 68px),
                      repeating-linear-gradient(65deg, rgba(237, 234, 246, 0.1) 0 1px, transparent 1px 68px);
    opacity: 0.9;
    pointer-events: none;
}

.hero-inner { position: relative; max-width: 46rem; }

.hero-tag {
    display: inline-block;
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent2);
    border: 1px solid rgba(245, 166, 184, 0.5);
    border-radius: 6px;
    padding: 0.32rem 0.75rem;
    margin-bottom: 1.4rem;
}

.hero-inner h1 {
    color: #FFFFFF;
    margin-bottom: 1.1rem;
}

.hero-lead {
    font-size: 1.08rem;
    color: #BDB6D2;
    margin-bottom: 2rem;
    max-width: 38rem;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; }

/* Блок 2 — чек-лист */

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

.check-item {
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem;
    align-items: baseline;
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--line);
}

.check-item:last-child { border-bottom: none; }

.pix-check {
    flex: 0 0 22px;
    width: 22px;
    height: 22px;
    position: relative;
    align-self: flex-start;
    margin-top: 0.35rem;
}

.pix-check i {
    position: absolute;
    width: 5px;
    height: 5px;
    background: var(--accent);
    display: block;
}

.pix-check i:nth-child(1) { left: 0;    top: 10px; }
.pix-check i:nth-child(2) { left: 5px;  top: 15px; }
.pix-check i:nth-child(3) { left: 10px; top: 10px; }
.pix-check i:nth-child(4) { left: 15px; top: 5px; opacity: 0.75; }
.pix-check i:nth-child(5) { left: 20px; top: 0;   opacity: 0.5; }

.check-text {
    flex: 1 1 260px;
    min-width: 0;
    font-family: Inter, Manrope, sans-serif;
    font-weight: 600;
    font-size: 1.05rem;
    line-height: 1.45;
}

.check-note {
    flex: 1 1 300px;
    min-width: 0;
    color: var(--muted);
    font-size: 0.93rem;
}

/* Блок 3 — статистика */

.stat-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: center;
}

.stat-cell {
    min-width: 0;
    text-align: center;
    padding: 0.6rem 1rem;
    border-left: 1px solid var(--line);
}

.stat-cell:first-child { border-left: none; }

.stat-num {
    display: block;
    font-family: Inter, Manrope, sans-serif;
    font-weight: 700;
    font-size: 2.8rem;
    line-height: 1.05;
    color: var(--ink);
}

.stat-label {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.87rem;
    color: var(--muted);
}

/* Блок 4 — рубрикатор */

.topic-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.2rem;
}

.topic-tile {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    min-width: 0;
    padding: 1.4rem 1.5rem;
    background: #FFFFFF;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(44, 42, 56, 0.08);
    color: var(--ink);
    font-family: Inter, Manrope, sans-serif;
    font-weight: 600;
    transition: background 0.22s ease, color 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
}

.topic-tile svg { flex: 0 0 auto; color: var(--muted); transition: color 0.22s ease; }

.topic-tile span { min-width: 0; }

.topic-tile:hover {
    background: var(--alt);
    color: var(--accent);
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(124, 109, 240, 0.15);
}

.topic-tile:hover svg { color: var(--accent); }

/* CTA / акцентная плашка */

.accent-plate {
    background: linear-gradient(120deg, #E0DBF2 0%, rgba(224, 219, 242, 0) 100%);
    border-radius: 12px;
    padding: 2.2rem 2.2rem;
    margin: 2rem 0;
}

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

/* ---------- Запись и страница ---------- */

.entry-head { margin-bottom: 1.6rem; }

.entry-head h1 { font-size: 2.5rem; }

.entry-meta {
    font-size: 0.85rem;
    color: var(--muted);
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
}

.entry-thumb {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 1.8rem;
}

.entry-body {
    background: #FFFFFF;
    border-radius: 12px;
    padding: 2.2rem 2.4rem;
    box-shadow: 0 8px 24px rgba(44, 42, 56, 0.08);
}

.entry-body h2 { font-size: 1.75rem; margin-top: 1.8em; }
.entry-body h3 { font-size: 1.32rem; margin-top: 1.6em; }
.entry-body h2:first-child, .entry-body h3:first-child { margin-top: 0; }

.entry-body img { border-radius: 10px; display: block; }

.entry-body ul, .entry-body ol { padding-left: 1.3rem; margin: 0 0 1.2em; }
.entry-body li { margin-bottom: 0.45em; }

.entry-body blockquote {
    margin: 1.6em 0;
    padding: 1.4rem 1.6rem;
    background: linear-gradient(120deg, #E0DBF2 0%, rgba(224, 219, 242, 0) 100%);
    border-left: 4px solid var(--accent);
    border-radius: 0 12px 12px 0;
}

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

.entry-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.4em 0;
    border: 1px solid var(--line);
    font-size: 0.94rem;
}

.entry-body th, .entry-body td {
    border: 1px solid var(--line);
    padding: 0.65rem 0.8rem;
    text-align: left;
}

.entry-body th { background: var(--alt); font-weight: 700; }

.entry-tags { margin-top: 1.8rem; font-size: 0.86rem; color: var(--muted); }
.entry-tags a { margin-right: 0.5rem; }

/* ---------- Сайдбар и виджеты ---------- */

.sidebar { min-width: 0; }

.sidebar .widget {
    background: var(--side);
    border-radius: 12px;
    padding: 1.4rem 1.5rem;
    margin-bottom: 1.4rem;
    box-shadow: 0 8px 24px rgba(44, 42, 56, 0.08);
    color: var(--ink);
    font-size: 0.94rem;
}

.sidebar .widget-title {
    font-size: 1.05rem;
    margin-bottom: 1rem;
    color: var(--ink);
}

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

.sidebar .widget li {
    padding: 0.55rem 0;
    border-bottom: 1px solid var(--line);
    line-height: 1.45;
}

.sidebar .widget li:last-child { border-bottom: none; }
.sidebar .widget a { color: var(--ink); }
.sidebar .widget a:hover { color: var(--accent); }
.sidebar .widget .post-date { display: block; color: var(--muted); font-size: 0.8rem; }

/* ---------- Подвал ---------- */

.site-foot {
    background: var(--foot);
    color: #C8C2DA;
    padding: 3rem 0 1.6rem;
    margin-top: 2rem;
}

.foot-cols {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
}

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

.site-foot .widget { margin-bottom: 1.4rem; font-size: 0.92rem; color: #C8C2DA; }

.site-foot .widget-title {
    font-size: 1rem;
    color: #FFFFFF;
    margin-bottom: 0.9rem;
    padding-left: 0.7rem;
    border-left: 3px solid var(--accent);
}

.site-foot .widget ul { list-style: none; margin: 0; padding: 0; }
.site-foot .widget li { padding: 0.35rem 0; line-height: 1.5; }
.site-foot .widget a { color: #C8C2DA; }
.site-foot .widget a:hover { color: var(--accent2); }
.site-foot .widget p { color: #C8C2DA; }
.site-foot .widget .post-date { color: #8E87A5; font-size: 0.8rem; }

.foot-bottom {
    margin-top: 2rem;
    padding-top: 1.3rem;
    border-top: 1px solid rgba(200, 194, 218, 0.18);
    font-size: 0.85rem;
    color: #8E87A5;
}

/* ---------- Поиск ---------- */

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

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

.search-form input[type="search"] {
    width: 85%;
    max-width: 100%;
    padding: 0.7rem 0.9rem;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #FFFFFF;
    color: var(--ink);
    font: inherit;
    font-size: 0.94rem;
}

.sidebar .search-form input[type="search"] { width: 100%; }

.search-form input[type="search"]:focus { outline: 2px solid var(--accent); outline-offset: 1px; }

/* ---------- Комментарии ---------- */

.comments-area {
    margin-top: 2.4rem;
    background: #FFFFFF;
    border-radius: 12px;
    padding: 2rem 2.2rem;
    box-shadow: 0 8px 24px rgba(44, 42, 56, 0.08);
}

.comments-area h2, .comments-area h3 { font-size: 1.35rem; }

.comment-list { list-style: none; margin: 0 0 1.8rem; padding: 0; }
.comment-list .children { list-style: none; margin: 0.9rem 0 0 1.4rem; padding: 0; }

.comment-item {
    padding: 1.1rem 1.2rem;
    border: 1px solid var(--line);
    border-radius: 12px;
    margin-bottom: 1rem;
}

.comment-head { display: flex; flex-wrap: wrap; gap: 0.8rem; align-items: baseline; margin-bottom: 0.5rem; }
.comment-author { font-weight: 700; }
.comment-date { font-size: 0.82rem; color: var(--muted); }
.comment-actions { font-size: 0.88rem; }

.comment-form label { display: block; font-size: 0.9rem; margin-bottom: 0.3rem; }

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 0.7rem 0.9rem;
    border: 1px solid var(--line);
    border-radius: 6px;
    font: inherit;
    font-size: 0.95rem;
    background: #FFFFFF;
    color: var(--ink);
}

.comment-form .submit {
    display: inline-block;
    padding: 0.78rem 1.5rem;
    border-radius: 6px;
    background: var(--accent);
    border: 1px solid var(--accent);
    color: #FFFFFF;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.comment-form .submit:hover {
    background: #6355DA;
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(124, 109, 240, 0.28);
}

/* ---------- 404 ---------- */

.error-box {
    background: #FFFFFF;
    border-radius: 12px;
    padding: 2.4rem 2.4rem;
    box-shadow: 0 8px 24px rgba(44, 42, 56, 0.08);
}

.error-code {
    font-family: Inter, Manrope, sans-serif;
    font-size: 4rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 0.6rem;
}

/* ---------- Cookie-баннер ---------- */

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

.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.6rem;
    background: var(--head);
    color: #DDD8EC;
    font-size: 0.9rem;
    box-shadow: 0 -8px 24px rgba(44, 42, 56, 0.18);
}

.cookie-banner p { margin: 0; min-width: 0; flex: 1 1 320px; }
.cookie-banner a { color: var(--accent2); }

/* ---------- Адаптив ---------- */

@media (max-width: 960px) {
    h1 { font-size: 2.6rem; }
    .entry-head h1 { font-size: 2rem; }
    .layout-with-sidebar { grid-template-columns: minmax(0, 1fr); }
    .layout-single { width: 100%; }
    .shell-narrow { width: min(92%, 1180px); }
    .topic-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .stat-row { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 1.4rem; }
    .stat-cell:nth-child(3) { border-left: none; }
    .entry-body { padding: 1.8rem; }
}

@media (max-width: 600px) {
    body { font-size: 16px; }
    h1 { font-size: 2.1rem; }
    h2 { font-size: 1.6rem; }
    .front-section { padding: 2.6rem 0; }
    .fs-hero { padding: 3.4rem 0; }
    .accent-plate { padding: 1.8rem 1.4rem; }
    .nav-toggle { display: inline-block; }
    .head-inner { align-items: flex-start; }
    .main-nav { flex: 1 1 100%; }
    .main-nav[hidden] { display: none !important; }
    .main-nav ul { flex-direction: column; gap: 0.85rem; }
    .topic-grid { grid-template-columns: minmax(0, 1fr); }
    .foot-cols { grid-template-columns: minmax(0, 1fr); }
    .stat-row { grid-template-columns: minmax(0, 1fr); }
    .stat-cell { border-left: none; border-top: 1px solid var(--line); }
    .stat-cell:first-child { border-top: none; }
    .stat-num { font-size: 2.3rem; }
    .entry-body { padding: 1.4rem 1.2rem; }
    .comments-area { padding: 1.4rem 1.2rem; }
    .error-box { padding: 1.6rem 1.3rem; }
    .cookie-banner { padding: 1rem 1.1rem; }
    .front-section.alt { background-image: none; }
}
