/*
Theme Name: dds_corport.ru
Author: Алексей Смирнов
Description: Тема для независимого аналитического проекта об SEO-инструментах и сервисах веб-аналитики.
Version: 1.1
Text Domain: corplab
*/

/* -----------------------------------------------------------
   1. Базовый слой
----------------------------------------------------------- */

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

html { scroll-behavior: smooth; }

body {
    margin: 0;
    overflow-x: hidden;
    font-family: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 17px;
    line-height: 1.72;
    color: #1A2633;
    background-color: #F0F4F8;
    background-image: radial-gradient(rgba(26, 38, 51, 0.08) 1px, transparent 1px);
    background-size: 18px 18px;
}

body::after {
    content: "";
    position: fixed;
    right: -60px;
    bottom: -60px;
    width: 340px;
    height: 340px;
    z-index: -1;
    pointer-events: none;
    opacity: 0.05;
    background-repeat: no-repeat;
    background-size: contain;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cg fill='none' stroke='%23B0C8DE' stroke-width='6'%3E%3Ccircle cx='100' cy='100' r='42'/%3E%3Ccircle cx='100' cy='100' r='16'/%3E%3Cpath d='M100 30v24M100 146v24M30 100h24M146 100h24M50 50l17 17M133 133l17 17M150 50l-17 17M67 133l-17 17'/%3E%3C/g%3E%3C/svg%3E");
}

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

a { color: #14707F; text-decoration: none; }
a:hover {
    text-decoration: underline;
    text-decoration-style: dashed;
    text-decoration-color: #00B4A0;
    text-underline-offset: 3px;
}

p { margin: 0 0 1.1em; }

h1, h2, h3, h4, h5, h6 {
    font-family: "Roboto Condensed", "Arial Narrow", "Segoe UI Semibold", Arial, sans-serif;
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.18;
    color: #142433;
    margin: 0 0 0.7em;
}

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

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

/* Заголовки секций: линия ровно в ширину текста */
.sec-title {
    display: inline-block;
    font-size: 2.1rem;
    margin: 0 0 1.6rem;
}
.sec-title::after {
    content: "";
    display: block;
    width: 100%;
    height: 2px;
    margin-top: 0.55rem;
    background: #00B4A0;
}

.sub-title {
    position: relative;
    padding-left: 1.1rem;
    font-size: 1.25rem;
}
.sub-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 8px;
    height: 8px;
    background: #00B4A0;
}

.lead {
    font-size: 1.1rem;
    color: #40566B;
    max-width: 70ch;
}

.muted { color: #7A8B9B; }

.inner-rule {
    border: 0;
    border-top: 1px solid #C5D3E0;
    margin: 2.6rem 0;
}

/* Кнопки */
.btn {
    display: inline-block;
    padding: 0.72rem 1.5rem;
    border: 1px solid #00B4A0;
    border-radius: 4px;
    background: transparent;
    color: #00806F;
    font-family: "Roboto Condensed", "Arial Narrow", Arial, sans-serif;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.22s ease, color 0.22s ease;
}
.btn:hover {
    background: #00B4A0;
    color: #FFFFFF;
    text-decoration: none;
}
.btn-light {
    border-color: #00B4A0;
    color: #7FE4D8;
}
.btn-light:hover { background: #00B4A0; color: #0B1A26; }

/* Нумерация в квадрате */
.num-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    border: 1px solid #00B4A0;
    color: #00806F;
    font-size: 0.82rem;
    font-weight: 700;
    font-family: "Roboto Condensed", Arial, sans-serif;
    background: none;
}

/* -----------------------------------------------------------
   2. Шапка
----------------------------------------------------------- */

.site-header {
    background: #142433;
    color: #E4EDF4;
    padding: 1.6rem 0;
}

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

.brand {
    display: flex;
    align-items: center;
    gap: 0.95rem;
    min-width: 0;
    max-width: 640px;
}
.brand-logo { display: block; width: auto; max-height: 54px; }
.brand-mark { display: block; flex: 0 0 46px; }
.brand-text { min-width: 0; }
.brand-name {
    display: block;
    font-family: "Roboto Condensed", "Arial Narrow", Arial, sans-serif;
    font-size: 1.02rem;
    font-weight: 700;
    line-height: 1.35;
    color: #FFFFFF;
    text-decoration: none;
    max-height: 4.1em;
    overflow: hidden;
}
.brand-name:hover { color: #7FE4D8; text-decoration: none; }
.brand-desc {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.8rem;
    line-height: 1.5;
    color: #8FA3B5;
    max-height: 3em;
    overflow: hidden;
}

.nav-toggle {
    display: none;
    padding: 0.5rem 0.9rem;
    border: 1px solid #4A6274;
    border-radius: 4px;
    background: transparent;
    color: #E4EDF4;
    font-size: 0.95rem;
    cursor: pointer;
}

.main-nav ul {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}
.main-nav a {
    color: #D5E2EC;
    font-family: "Roboto Condensed", "Arial Narrow", Arial, sans-serif;
    font-size: 1.02rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding-bottom: 3px;
    border-bottom: 2px solid transparent;
}
.main-nav a:hover,
.main-nav .current-menu-item > a {
    color: #FFFFFF;
    border-bottom-color: #00B4A0;
    text-decoration: none;
}

.top-bar {
    height: 4px;
    width: 100%;
    background: #00B4A0;
}

/* -----------------------------------------------------------
   3. Раскладки
----------------------------------------------------------- */

.page-body { padding: 2.6rem 0 3.6rem; }

.layout-with-sidebar {
    display: grid;
    grid-template-columns: minmax(0, 67fr) minmax(0, 27fr);
    gap: 6%;
    align-items: start;
}

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

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

.sidebar {
    min-width: 0;
    background: #EAF0F6;
    border: 1px solid #D0DCE8;
    padding: 1.5rem 1.4rem;
    color: #1A2633;
}
.sidebar .widget + .widget { margin-top: 1.8rem; }
.sidebar .widget-title {
    font-size: 1.15rem;
    color: #142433;
    margin-bottom: 0.9rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #C5D3E0;
}
.sidebar ul { margin: 0; padding: 0; list-style: none; }
.sidebar li { padding: 0.42rem 0 0.42rem 0.95rem; position: relative; }
.sidebar li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.95em;
    width: 6px;
    height: 6px;
    background: #00B4A0;
}
.sidebar a { color: #1A2633; }
.sidebar a:hover { color: #00806F; }
.sidebar .post-date { display: block; font-size: 0.82rem; color: #7A8B9B; }
.sidebar p { color: #35485B; }

/* Хлебные крошки */
.crumbs {
    font-size: 0.88rem;
    color: #7A8B9B;
    padding: 1.1rem 0 0;
}
.crumbs a { color: #40566B; }
.crumbs a:hover { color: #00806F; }
.crumbs-sep { color: #A5B6C5; margin: 0 0.25rem; }

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

.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: 1px solid #D0DCE8;
    border-left: 3px solid transparent;
    border-radius: 0;
    box-shadow: none;
    transition: border-left-color 0.2s ease;
}
.card:hover { border-left-color: #00B4A0; }

.card-thumb-wrap { display: block; overflow: hidden; }
.card-thumb-wrap a { display: block; }
.card-thumb-wrap img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.card-body {
    flex: 1;
    min-width: 0;
    padding: 1.25rem 1.35rem 1.5rem;
    display: flex;
    flex-direction: column;
}
.card-title {
    font-size: 1.24rem;
    margin: 0 0 0.55rem;
}
.card-title a { color: #142433; }
.card-title a:hover { color: #00806F; text-decoration: none; }

.entry-meta {
    font-size: 0.82rem;
    color: #7A8B9B;
    margin-bottom: 0.7rem;
    font-family: "Roboto Condensed", Arial, sans-serif;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.entry-meta a { color: #7A8B9B; }
.entry-meta a:hover { color: #00806F; }
.meta-cat::before { content: "/ "; color: #A5B6C5; }

.card-excerpt { color: #40566B; font-size: 0.96rem; }
.card-excerpt p { margin: 0 0 0.5em; background: none; }

.card-more { margin-top: auto; padding-top: 1rem; }

/* Горизонтальная карточка (лента раздела) */
.card-row {
    flex-direction: row;
    align-items: stretch;
}
.card-row .card-thumb-wrap {
    flex: 0 0 280px;
    position: relative;
    overflow: hidden;
}
.card-row .card-thumb-wrap a {
    display: block;
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
}
.card-row .card-thumb-wrap img {
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    object-fit: cover;
    display: block;
}
.feed { display: flex; flex-direction: column; gap: 1.5rem; }

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

.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: 42px;
    height: 42px;
    padding: 0 0.75rem;
    border: 1px solid #D0DCE8;
    border-radius: 4px;
    background: #FFFFFF;
    color: #1A2633;
    font-family: "Roboto Condensed", Arial, sans-serif;
    font-weight: 700;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.pager .page-numbers:hover {
    background: #00B4A0;
    border-color: #00B4A0;
    color: #FFFFFF;
    text-decoration: none;
}
.pager .page-numbers.current {
    background: #142433;
    border-color: #142433;
    color: #FFFFFF;
}
.pager .page-numbers.dots {
    border: 0;
    background: none;
    color: #7A8B9B;
}

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

.band { padding: 4.2rem 0; }
.band-a { background: #F0F4F8; }
.band-b { background: #E6EEF5; }
.band-w { background: #FFFFFF; }

/* 6.1 Hero */
.hero {
    position: relative;
    overflow: hidden;
    background: #142433;
    color: #E4EDF4;
    padding: 4.6rem 0 4.4rem;
}
.hero-art {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0.22;
    pointer-events: none;
}
.hero-inner { position: relative; }
.hero-tag {
    display: inline-block;
    font-family: "Roboto Condensed", Arial, sans-serif;
    font-size: 0.85rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #7FE4D8;
    margin-bottom: 1.1rem;
}
.hero h1 {
    color: #FFFFFF;
    max-width: 18ch;
    margin-bottom: 1.2rem;
}
.hero h1 em { font-style: normal; color: #00B4A0; }
.hero-text {
    max-width: 60ch;
    color: #B9C9D6;
    font-size: 1.08rem;
    margin-bottom: 1.9rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; }

/* 6.2 Карта тем */
.topic-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.4rem;
}
.topic-tile {
    display: block;
    min-width: 0;
    padding: 1.7rem 1.5rem;
    background: #FFFFFF;
    border: 1px solid #D0DCE8;
    border-radius: 0;
    transition: border-color 0.22s ease;
}
.topic-tile:hover { border-color: #FFC857; text-decoration: none; }
.topic-tile svg { display: block; margin-bottom: 1rem; }
.topic-tile h3 { font-size: 1.2rem; margin-bottom: 0.45rem; }
.topic-tile p { margin: 0; font-size: 0.94rem; color: #40566B; }

/* 6.3 Таймлайн */
.tline { display: block; margin-top: 0.6rem; }
.tline-item {
    display: grid;
    grid-template-columns: 150px 28px minmax(0, 1fr);
    align-items: start;
}
.tline-stage {
    font-family: "Roboto Condensed", Arial, sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #142433;
    padding: 0 1rem 2.2rem 0;
    text-align: right;
    min-width: 0;
}
.tline-stage span { display: block; font-size: 0.8rem; color: #7A8B9B; letter-spacing: 0.1em; }
.tline-axis {
    position: relative;
    align-self: stretch;
    min-height: 100%;
}
.tline-axis::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 1px;
    margin-left: -0.5px;
    background: #D0DCE8;
}
.tline-item:last-child .tline-axis::before { bottom: auto; height: 14px; }
.tline-axis::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 8px;
    width: 11px;
    height: 11px;
    margin-left: -5.5px;
    background: #00B4A0;
}
.tline-body { min-width: 0; padding: 0 0 2.2rem 1rem; }
.tline-body h3 { margin-bottom: 0.35rem; }
.tline-body p { margin: 0; color: #40566B; }

/* 6.4 Статистика */
.stats-band {
    background: linear-gradient(160deg, #E6EEF5 0%, #D5E3EE 100%);
    padding: 3.4rem 2.4rem;
}
.stats-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.6rem;
    margin-top: 1.2rem;
}
.stat-cell { min-width: 0; }
.stat-num {
    display: block;
    font-family: "Roboto Condensed", "Arial Narrow", Arial, sans-serif;
    font-size: 3.2rem;
    font-weight: 700;
    line-height: 1;
    color: #FFC857;
    text-shadow: 0 1px 0 rgba(20, 36, 51, 0.28);
}
.stat-label {
    display: block;
    margin-top: 0.6rem;
    color: #7A8B9B;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* 6.5 Последние записи + CTA-плашка */
.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.4rem;
    flex-wrap: wrap;
}

.note-plate {
    background: #142433;
    color: #C9D8E4;
    padding: 2.2rem 2.2rem;
    border-radius: 0;
    margin-top: 2.6rem;
}
.note-plate h3, .note-plate .sub-title { color: #FFFFFF; }
.note-plate .sub-title::before { background: #FFC857; }
.note-plate p { margin-bottom: 1.3rem; }

/* Цитата со скошенным углом */
.lab-quote {
    position: relative;
    background: #FFFFFF;
    border: 1px solid #D0DCE8;
    padding: 1.9rem 2rem 1.9rem 2.6rem;
    margin: 0;
    color: #26384A;
    font-size: 1.12rem;
}
.lab-quote::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 14px;
    background: #00B4A0;
    clip-path: polygon(0 0, 100% 14%, 100% 86%, 0 100%);
}
.lab-quote cite {
    display: block;
    margin-top: 0.9rem;
    font-style: normal;
    font-size: 0.88rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #7A8B9B;
}

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

.entry {
    background: #FFFFFF;
    border: 1px solid #D0DCE8;
    padding: 2.2rem 2.2rem 2.6rem;
}
.entry-title { font-size: 2.4rem; margin-bottom: 0.6rem; }
.entry-thumb { margin: 0 0 1.6rem; }
.entry-thumb img { display: block; width: 100%; height: auto; }

.entry-content h2 { font-size: 1.8rem; margin-top: 2rem; }
.entry-content h3 { font-size: 1.35rem; margin-top: 1.6rem; }
.entry-content ul, .entry-content ol { padding-left: 1.3rem; }
.entry-content li { margin-bottom: 0.45rem; }
.entry-content blockquote {
    margin: 1.6rem 0;
    padding: 1.2rem 1.5rem;
    background: #EAF0F6;
    border-left: 4px solid #00B4A0;
    color: #26384A;
}
.entry-content img { display: block; height: auto; }

.entry-content table,
.wp-block-table table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.6rem 0;
}
.entry-content th, .entry-content td,
.wp-block-table th, .wp-block-table td {
    border: 1px solid #C5D3E0;
    padding: 0.65rem 0.8rem;
    text-align: left;
}
.entry-content th { background: #E6EEF5; }

.entry-tags {
    margin-top: 1.8rem;
    padding-top: 1.2rem;
    border-top: 1px solid #C5D3E0;
    font-size: 0.9rem;
    color: #7A8B9B;
}
.entry-tags a { color: #40566B; }

.page-title-block { margin-bottom: 1.8rem; }

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

.comments-area {
    margin-top: 2.2rem;
    background: #FFFFFF;
    border: 1px solid #D0DCE8;
    padding: 2rem 2.2rem 2.4rem;
}
.comments-area .comment-list { list-style: none; margin: 0 0 2rem; padding: 0; }
.comments-area .comment-list .children { list-style: none; margin: 1rem 0 0 1.6rem; padding: 0; }
.comment-item {
    border: 1px solid #D0DCE8;
    padding: 1.1rem 1.3rem;
    margin-bottom: 1rem;
    background: #F7FAFC;
}
.comment-head {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    align-items: baseline;
    margin-bottom: 0.5rem;
}
.comment-author { font-weight: 700; color: #142433; }
.comment-date { font-size: 0.82rem; color: #7A8B9B; }
.comment-tools { font-size: 0.88rem; }
.comment-hold { font-size: 0.88rem; color: #7A8B9B; }

.comment-form label {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 0.35rem;
    color: #40566B;
}
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 0.65rem 0.8rem;
    border: 1px solid #D0DCE8;
    border-radius: 4px;
    background: #FFFFFF;
    font: inherit;
    color: #1A2633;
}
.comment-form textarea { min-height: 150px; }
.comment-form .form-submit input {
    display: inline-block;
    padding: 0.72rem 1.5rem;
    border: 1px solid #00B4A0;
    border-radius: 4px;
    background: transparent;
    color: #00806F;
    font-family: "Roboto Condensed", Arial, sans-serif;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.22s ease, color 0.22s ease;
}
.comment-form .form-submit input:hover { background: #00B4A0; color: #FFFFFF; }

/* Поиск */
.search-form { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.search-form input[type="search"] {
    flex: 1 1 200px;
    min-width: 0;
    padding: 0.65rem 0.8rem;
    border: 1px solid #D0DCE8;
    border-radius: 4px;
    background: #FFFFFF;
    font: inherit;
    color: #1A2633;
}
.search-form button {
    padding: 0.65rem 1.3rem;
    border: 1px solid #00B4A0;
    border-radius: 4px;
    background: transparent;
    color: #00806F;
    font-family: "Roboto Condensed", Arial, sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.22s ease, color 0.22s ease;
}
.search-form button:hover { background: #00B4A0; color: #FFFFFF; }

/* 404 */
.err-block {
    background: #FFFFFF;
    border: 1px solid #D0DCE8;
    padding: 2.4rem 2.2rem;
}
.err-actions { margin-top: 1.6rem; }
.err-code {
    font-family: "Roboto Condensed", Arial, sans-serif;
    font-size: 4.4rem;
    line-height: 1;
    color: #00B4A0;
    margin-bottom: 0.6rem;
}

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

.site-footer {
    background: #0B1A26;
    color: #B9C9D6;
    padding: 3.2rem 0 1.8rem;
    margin-top: 0;
}
.footer-cols {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2.4rem;
}
.footer-col { min-width: 0; }
.site-footer .widget-title {
    font-size: 1.12rem;
    color: #FFFFFF;
    margin-bottom: 0.9rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #23384A;
}
.site-footer p { color: #B9C9D6; }
.site-footer ul { margin: 0; padding: 0; list-style: none; }
.site-footer li { padding: 0.35rem 0 0.35rem 0.95rem; position: relative; }
.site-footer li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.9em;
    width: 6px;
    height: 6px;
    background: #00B4A0;
}
.site-footer a { color: #D5E2EC; }
.site-footer a:hover { color: #7FE4D8; }
.site-footer .post-date { display: block; font-size: 0.82rem; color: #8397A8; }

.footer-bottom {
    margin-top: 2.6rem;
    padding-top: 1.4rem;
    border-top: 1px solid #1B2E3D;
    font-size: 0.88rem;
    color: #8397A8;
}

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

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

.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.2rem;
    flex-wrap: wrap;
    padding: 1.1rem 1.6rem;
    background: #142433;
    color: #C9D8E4;
    border-top: 4px solid #00B4A0;
    font-size: 0.92rem;
}
.cookie-banner p { margin: 0; max-width: 80ch; }
.cookie-banner a { color: #7FE4D8; }

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

@media (max-width: 960px) {
    h1 { font-size: 2.6rem; }
    .sec-title { font-size: 1.75rem; }
    .layout-with-sidebar {
        grid-template-columns: minmax(0, 1fr);
        gap: 2.4rem;
    }
    .layout-single { width: 100%; }
    .topic-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .stats-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .nav-toggle { display: inline-block; }
    .main-nav {
        flex: 1 1 100%;
        display: none;
    }
    .main-nav.is-open { display: block; }
    .main-nav ul {
        flex-direction: column;
        gap: 0.2rem;
        padding-top: 0.8rem;
    }
    .main-nav a { display: block; padding: 0.55rem 0; }
    .brand { max-width: none; }
}

@media (max-width: 600px) {
    body { font-size: 16px; }
    h1 { font-size: 2.1rem; }
    .entry-title { font-size: 1.85rem; }
    .band { padding: 2.8rem 0; }
    .hero { padding: 3rem 0 2.8rem; }
    .topic-grid { grid-template-columns: minmax(0, 1fr); }
    .stats-row { grid-template-columns: minmax(0, 1fr); gap: 1.4rem; }
    .stats-band { padding: 2.2rem 1.4rem; }
    .footer-cols { grid-template-columns: minmax(0, 1fr); }
    .entry, .comments-area, .err-block { padding: 1.5rem 1.3rem 1.8rem; }
    .note-plate { padding: 1.8rem 1.4rem; }
    .lab-quote { padding: 1.5rem 1.3rem 1.5rem 1.9rem; font-size: 1.02rem; }
    .cookie-banner { padding: 1rem 1.1rem; }
    .tline-item { grid-template-columns: 20px minmax(0, 1fr); }
    .tline-stage {
        grid-column: 2;
        grid-row: 1;
        text-align: left;
        padding: 0 0 0.4rem 0.9rem;
    }
    .tline-axis { grid-column: 1; grid-row: 1 / span 2; }
    .tline-body { grid-column: 2; grid-row: 2; padding-left: 0.9rem; }
    .card-row { flex-direction: column; }
    .card-row .card-thumb-wrap {
        flex: none;
        width: 100%;
        position: static;
    }
    .card-row .card-thumb-wrap a { position: static; }
    .card-row .card-thumb-wrap img {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
    }
    body::after { display: none; }
}
