/*
Theme Name: dds_listofcitiesandcounties.com
Author: Дмитрий Савельев
Description: Тема для информационно-аналитического портала о выборе города для жизни и переезде.
Version: 1.1
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: citypick
*/

:root {
    --bg: #F4F6FA;
    --bg-alt: #E8EDF5;
    --dark: #0B1A2F;
    --dark-2: #1E3A5F;
    --panel: #FFFFFF;
    --ink: #1E293B;
    --accent: #2A6B9E;
    --accent-2: #B0C9E8;
    --muted: #6B7A8F;
    --shadow-flat: 0 2px 8px rgba(11, 26, 47, 0.08);
    --shadow-deep: 0 4px 12px rgba(11, 26, 47, 0.12);
}

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

html { scroll-behavior: smooth; }

body {
    margin: 0;
    overflow-x: hidden;
    font-family: "Roboto", "Open Sans", "Segoe UI", Arial, sans-serif;
    font-size: 17px;
    line-height: 1.7;
    color: var(--ink);
    background-color: var(--bg);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='40'%3E%3Crect x='0' y='0' width='6' height='1' fill='%232A6B9E' fill-opacity='0.15'/%3E%3C/svg%3E");
    background-repeat: repeat;
}

body::after {
    content: "";
    position: fixed;
    right: 0;
    bottom: 0;
    width: 560px;
    height: 300px;
    opacity: 0.03;
    pointer-events: none;
    z-index: 0;
    background-repeat: no-repeat;
    background-position: right bottom;
    background-size: contain;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 560 300'%3E%3Cg fill='none' stroke='%230B1A2F' stroke-width='3'%3E%3Cpath d='M20 210 L44 150 L96 128 L150 140 L196 120 L214 150 L258 158 L246 196 L206 226 L150 236 L92 232 L44 240 Z'/%3E%3Cpath d='M300 120 L338 94 L372 108 L404 88 L438 100 L470 84 L512 96 L540 120 L534 154 L498 168 L470 152 L436 166 L400 154 L362 168 L326 154 L302 150 Z'/%3E%3Cpath d='M96 128 L106 108 L134 112'/%3E%3Cpath d='M372 108 L376 138 L404 144'/%3E%3C/g%3E%3C/svg%3E");
}

.page-wrap { position: relative; z-index: 1; }

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

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

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

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

p { margin: 0 0 1.1em; }

a { color: var(--accent); }

.entry-content a,
.widget-area a,
.text-link {
    color: var(--accent);
    text-decoration: underline;
    text-decoration-color: currentColor;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.entry-content a:hover,
.text-link:hover {
    text-decoration-color: var(--accent);
    text-decoration-thickness: 2px;
}

/* --- Кнопки --- */
.btn {
    display: inline-block;
    padding: 0.62em 1.5em;
    border-radius: 4px;
    font-family: "Inter", "Manrope", Arial, sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: 2px solid var(--accent);
    background: transparent;
    color: var(--accent);
    transition: background-color .15s linear, color .15s linear, transform .05s linear;
}

.btn:hover { background: var(--accent); color: #FFFFFF; }

.btn-fill {
    background: var(--accent);
    color: #FFFFFF;
}

.btn-fill:hover {
    background: #245D8A;
    color: #FFFFFF;
    transform: translateY(1px);
}

/* --- Заголовки секций --- */
.sec-head { margin: 0 0 1.9rem; }

.sec-title {
    display: inline-block;
    position: relative;
    padding-left: 22px;
    margin: 0;
}

.sec-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.42em;
    width: 12px;
    height: 12px;
    background: var(--accent);
}

.sec-title::after {
    content: "";
    position: absolute;
    left: 22px;
    bottom: -10px;
    width: calc(50% - 11px);
    height: 2px;
    background: var(--accent);
}

.sec-lead {
    max-width: 720px;
    margin: 1.4rem 0 0;
    color: var(--muted);
}

/* --- Шапка --- */
.site-head {
    background: var(--dark);
    color: #E6EDF6;
    padding: 1.4rem 0;
}

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

.brand {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    min-width: 0;
    flex: 1 1 320px;
    text-decoration: none;
    color: inherit;
}

.brand-logo { display: block; width: 54px; height: 54px; flex: none; }
.brand img.brand-logo { width: auto; max-height: 60px; }

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

.brand-name {
    display: block;
    font-family: "Inter", "Manrope", Arial, sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.35;
    color: #FFFFFF;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.brand-desc {
    display: block;
    margin-top: 0.3rem;
    font-size: 0.82rem;
    line-height: 1.5;
    color: #9FB2C8;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.nav-toggle {
    display: none;
    padding: 0.5em 0.9em;
    border: 2px solid #35506F;
    border-radius: 4px;
    background: transparent;
    color: #E6EDF6;
    font: inherit;
    font-size: 0.9rem;
    cursor: pointer;
}

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

.main-nav a {
    display: inline-block;
    font-family: "Inter", "Manrope", Arial, sans-serif;
    font-size: 0.95rem;
    color: #D8E3F0;
    text-decoration: none;
    padding-bottom: 3px;
    border-bottom: 2px solid transparent;
}

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

/* --- Хлебные крошки --- */
.breadcrumbs {
    font-size: 0.86rem;
    color: var(--muted);
    padding: 1.1rem 0 0;
}

.breadcrumbs a { color: var(--accent); text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }
.breadcrumbs .sep { margin: 0 0.45rem; color: #A9B7C7; }

/* --- Раскладки --- */
.site-main { padding: 1.6rem 0 3.4rem; }

.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; }

/* --- Карточки записей --- */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
    gap: 1.6rem;
}

.card {
    display: flex;
    flex-direction: column;
    background: var(--panel);
    border-radius: 4px;
    box-shadow: var(--shadow-flat);
    overflow: hidden;
    transition: background-color .15s linear, box-shadow .15s linear;
}

.card:hover {
    background: var(--bg-alt);
    box-shadow: var(--shadow-deep);
}

.card-thumb { display: block; }

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

.thumb-stub {
    background-image: radial-gradient(rgba(176, 201, 232, 0.5) 1px, transparent 1px), linear-gradient(135deg, var(--dark) 0%, var(--dark-2) 100%);
    background-size: 12px 12px, auto;
}

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

.card-cat {
    font-family: "Inter", "Manrope", Arial, sans-serif;
    font-size: 0.74rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.card-cat a { color: inherit; text-decoration: none; }
.card-cat a:hover { text-decoration: underline; }

.card-title {
    position: relative;
    font-size: 1.16rem;
    line-height: 1.35;
    padding-left: 20px;
    margin: 0 0 0.6rem;
}

.card-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.42em;
    width: 12px;
    height: 12px;
    background: var(--accent);
}

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

.card-excerpt {
    font-size: 0.94rem;
    color: #40506A;
    min-width: 0;
}

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

.card-meta {
    margin-top: auto;
    padding-top: 0.9rem;
    font-size: 0.8rem;
    color: var(--muted);
}

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

/* --- Сайдбар и виджеты --- */
.sidebar { min-width: 0; }

.sidebar .widget {
    background: var(--panel);
    border-radius: 4px;
    box-shadow: var(--shadow-flat);
    padding: 1.3rem 1.4rem;
    margin-bottom: 1.6rem;
    color: var(--ink);
}

.sidebar .widget-title,
.sidebar .widget h2,
.sidebar .widget h3 {
    position: relative;
    font-size: 1.1rem;
    padding-left: 20px;
    margin: 0 0 1rem;
    color: var(--dark);
}

.sidebar .widget-title::before,
.sidebar .widget h2::before,
.sidebar .widget h3::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.42em;
    width: 12px;
    height: 12px;
    background: var(--accent);
}

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

.sidebar .widget li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--bg-alt);
}

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

.sidebar .widget a {
    color: var(--ink);
    text-decoration: none;
}

.sidebar .widget a:hover { color: var(--accent); text-decoration: underline; }
.sidebar .widget .post-date { display: block; font-size: 0.78rem; color: var(--muted); }

/* --- Подвал --- */
.site-foot {
    background: var(--dark);
    color: #C6D4E4;
    padding: 3rem 0 1.6rem;
}

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

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

.site-foot .widget { margin-bottom: 1.5rem; color: #C6D4E4; }

.site-foot .widget-title,
.site-foot .widget h2,
.site-foot .widget h3 {
    position: relative;
    font-size: 1.05rem;
    color: #FFFFFF;
    padding-left: 20px;
    margin: 0 0 1rem;
}

.site-foot .widget-title::before,
.site-foot .widget h2::before,
.site-foot .widget h3::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.42em;
    width: 12px;
    height: 12px;
    background: var(--accent-2);
}

.site-foot .widget p { color: #C6D4E4; }

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

.site-foot .widget li { padding: 0.4rem 0; }

.site-foot .widget a {
    color: #D8E3F0;
    text-decoration: none;
    border-bottom: 1px solid rgba(176, 201, 232, 0.35);
}

.site-foot .widget a:hover { color: #FFFFFF; border-bottom-color: var(--accent-2); }
.site-foot .widget .post-date { display: block; font-size: 0.78rem; color: #93A6BC; }

.foot-bottom {
    margin-top: 2.2rem;
    padding-top: 1.3rem;
    border-top: 1px solid #1C2E48;
    font-size: 0.84rem;
    color: #93A6BC;
}

/* --- 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: 1rem 1.6rem;
    background: var(--dark-2);
    color: #E6EDF6;
    font-size: 0.9rem;
    box-shadow: 0 -2px 12px rgba(11, 26, 47, 0.25);
}

.cookie-banner p { margin: 0; min-width: 0; }
.cookie-banner a { color: var(--accent-2); }

.cookie-accept {
    flex: none;
    border-color: var(--accent-2);
    background: var(--accent-2);
    color: var(--dark);
}

.cookie-accept:hover { background: #FFFFFF; border-color: #FFFFFF; color: var(--dark); }

/* --- Пагинация --- */
.pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 2.4rem;
}

.pagination .page-numbers {
    display: inline-block;
    padding: 0.45em 0.9em;
    border: 2px solid var(--accent-2);
    border-radius: 4px;
    background: var(--panel);
    color: var(--accent);
    font-family: "Inter", "Manrope", Arial, sans-serif;
    font-size: 0.92rem;
    text-decoration: none;
}

.pagination a.page-numbers:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #FFFFFF;
}

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

.pagination .page-numbers.dots {
    border-color: transparent;
    background: transparent;
    color: var(--muted);
}

/* --- Главная: секции --- */
.front-section { padding: 3.2rem 0; }
.front-section.alt { background: var(--bg-alt); }

.fs-inner {
    display: block;
    width: 85%;
    margin-left: auto;
    margin-right: auto;
}

.fs-actions { margin-top: 2rem; }

/* Блок 1 — цитата/тезис */
.fs-quote {
    padding: 3.4rem 0;
}

.quote-plate {
    padding: 3rem 2.6rem;
    border-radius: 4px;
    color: #FFFFFF;
    background-color: var(--dark);
    background-image: radial-gradient(rgba(176, 201, 232, 0.16) 1px, transparent 1px), linear-gradient(135deg, #0B1A2F 0%, #1E3A5F 100%);
    background-size: 14px 14px, auto;
}

.quote-plate blockquote {
    margin: 0;
    padding-left: 1.6rem;
    border-left: 4px solid rgba(42, 107, 158, 0.75);
}

.quote-plate .quote-text {
    font-family: "Inter", "Manrope", Arial, sans-serif;
    font-size: 1.85rem;
    line-height: 1.35;
    font-weight: 600;
    margin: 0 0 1rem;
    color: #FFFFFF;
}

.quote-plate .quote-sub {
    margin: 0;
    font-size: 1rem;
    color: #B7C9DE;
    max-width: 760px;
}

/* Блок 2 — рубрикатор */
.topic-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
    gap: 1.4rem;
}

.topic-tile {
    display: block;
    min-width: 0;
    padding: 1.6rem 1.5rem;
    border: 2px solid var(--accent-2);
    border-radius: 4px;
    background: var(--panel);
    text-decoration: none;
    color: var(--ink);
    transition: background-color .15s linear, border-color .15s linear, color .15s linear;
}

.topic-tile svg { display: block; width: 40px; height: 40px; margin-bottom: 1rem; }
.topic-tile svg * { stroke: var(--accent); transition: stroke .15s linear; }

.topic-tile .tile-name {
    display: block;
    font-family: "Inter", "Manrope", Arial, sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.4rem;
    transition: color .15s linear;
}

.topic-tile .tile-note { font-size: 0.9rem; color: var(--muted); transition: color .15s linear; }

.topic-tile:hover { background: var(--accent); border-color: var(--accent); }
.topic-tile:hover .tile-name,
.topic-tile:hover .tile-note { color: #FFFFFF; }
.topic-tile:hover svg * { stroke: #FFFFFF; }

/* Блок 3 — таймлайн */
.timeline { position: relative; padding: 0.5rem 0; }

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

.tl-item {
    position: relative;
    width: 46%;
    margin-bottom: 2rem;
    padding: 1.4rem 1.5rem;
    background: var(--panel);
    border-radius: 4px;
    box-shadow: var(--shadow-flat);
    min-width: 0;
}

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

.tl-item::after {
    content: "";
    position: absolute;
    top: 1.8rem;
    width: 12px;
    height: 12px;
    background: var(--accent);
}

.tl-item:nth-child(odd)::after { right: -12%; }
.tl-item:nth-child(even)::after { left: -12%; }

.tl-stage {
    font-family: "Inter", "Manrope", Arial, sans-serif;
    font-size: 0.78rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.4rem;
}

.tl-item h3 { font-size: 1.2rem; margin: 0 0 0.5rem; }
.tl-item p { margin: 0; font-size: 0.94rem; color: #40506A; }

/* Блок 4 — статистика */
.stats-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.stat-cell {
    min-width: 0;
    padding: 1.2rem 1.4rem;
    border-left: 1px solid #CBD7E6;
}

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

.stat-num {
    display: block;
    font-family: "Inter", "Manrope", Arial, sans-serif;
    font-size: 2.6rem;
    font-weight: 700;
    line-height: 1.1;
    color: var(--dark);
}

.stat-cap {
    display: block;
    margin-top: 0.4rem;
    font-size: 0.92rem;
    color: var(--muted);
}

/* --- Записи и страницы --- */
.entry-head { margin-bottom: 1.6rem; }
.entry-title { margin: 0 0 0.6rem; font-size: 2.4rem; }
.entry-meta { font-size: 0.86rem; color: var(--muted); }
.entry-meta a { color: var(--accent); text-decoration: none; }

.entry-thumb { margin: 0 0 1.8rem; }
.entry-thumb img { display: block; width: 100%; border-radius: 4px; }

.entry-content { min-width: 0; }
.entry-content h2 { margin-top: 2rem; font-size: 1.75rem; }
.entry-content h3 { margin-top: 1.6rem; }
.entry-content ul, .entry-content ol { padding-left: 1.3rem; }
.entry-content li { margin-bottom: 0.4rem; }

.entry-content blockquote {
    margin: 1.6rem 0;
    padding: 1.2rem 1.5rem;
    background: var(--panel);
    border-left: 4px solid rgba(42, 107, 158, 0.6);
    border-radius: 0 4px 4px 0;
    box-shadow: var(--shadow-flat);
}

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

.entry-content img { border-radius: 4px; display: block; }

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

.entry-content th,
.entry-content td {
    border: 1px solid #C3D1E2;
    padding: 0.65rem 0.8rem;
    text-align: left;
}

.entry-content th { background: var(--bg-alt); font-family: "Inter", "Manrope", Arial, sans-serif; }

.entry-tags { margin-top: 2rem; font-size: 0.86rem; }

.entry-tags a {
    display: inline-block;
    margin: 0 0.4rem 0.4rem 0;
    padding: 0.25em 0.7em;
    background: var(--accent-2);
    color: var(--dark);
    border-radius: 4px;
    text-decoration: none;
}

.entry-tags a:hover { background: var(--accent); color: #FFFFFF; }

.post-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: space-between;
    margin-top: 2.2rem;
    padding-top: 1.4rem;
    border-top: 1px solid #CBD7E6;
    font-size: 0.92rem;
}

.post-nav a { color: var(--accent); text-decoration: none; }
.post-nav a:hover { text-decoration: underline; }

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

/* --- Комментарии --- */
.comments-block {
    margin-top: 2.6rem;
    padding: 1.6rem 1.8rem;
    background: var(--panel);
    border-radius: 4px;
    box-shadow: var(--shadow-flat);
}

.comments-block .comment-list {
    list-style: none;
    margin: 0 0 1.6rem;
    padding: 0;
}

.comments-block .comment-list ul.children {
    list-style: none;
    margin: 1rem 0 0 1.4rem;
    padding: 0;
}

.comment-item {
    padding: 1rem 0;
    border-top: 1px solid var(--bg-alt);
}

.comment-head { font-size: 0.85rem; color: var(--muted); margin-bottom: 0.5rem; }
.comment-author { font-weight: 700; color: var(--dark); }
.comment-body p { margin: 0 0 0.6em; }

.comment-form label { display: block; font-size: 0.88rem; 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.6em 0.8em;
    border: 2px solid var(--accent-2);
    border-radius: 4px;
    background: var(--bg);
    font: inherit;
    font-size: 0.95rem;
    color: var(--ink);
}

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

.comment-form .form-submit input {
    padding: 0.62em 1.5em;
    border: 2px solid var(--accent);
    border-radius: 4px;
    background: var(--accent);
    color: #FFFFFF;
    font-family: "Inter", "Manrope", Arial, sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
}

.comment-form .form-submit input:hover { background: #245D8A; transform: translateY(1px); }

/* --- Форма поиска --- */
.search-form {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.search-form .search-field {
    flex: 1 1 200px;
    min-width: 0;
    padding: 0.6em 0.9em;
    border: 2px solid var(--accent-2);
    border-radius: 4px;
    background: var(--panel);
    font: inherit;
    font-size: 0.95rem;
    color: var(--ink);
}

.search-form .search-submit {
    flex: none;
    padding: 0.6em 1.3em;
    border: 2px solid var(--accent);
    border-radius: 4px;
    background: var(--accent);
    color: #FFFFFF;
    font-family: "Inter", "Manrope", Arial, sans-serif;
    font-weight: 600;
    cursor: pointer;
}

.search-form .search-submit:hover { background: #245D8A; }

.sidebar .widget .search-form .search-field { background: var(--bg); }

/* --- 404 и пустые состояния --- */
.notice-plate {
    padding: 2.4rem 2.2rem;
    background: var(--panel);
    border-radius: 4px;
    box-shadow: var(--shadow-flat);
}

.notice-plate h1 { font-size: 2.6rem; }
.notice-plate .search-form { max-width: 520px; margin-top: 1.4rem; }
.notice-plate .btn { margin-top: 1.4rem; }

.archive-head { margin-bottom: 1.8rem; }
.archive-head h1 { font-size: 2.3rem; }

/* --- Адаптив --- */
@media (max-width: 960px) {
    h1 { font-size: 2.5rem; }
    .entry-title { font-size: 2rem; }

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

    .layout-single { width: 100%; }
    .fs-inner { width: 100%; }

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

    .stats-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .stat-cell:nth-child(3) { border-left: 0; padding-left: 0; }

    .nav-toggle { display: inline-block; margin-left: auto; }

    .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: 1rem;
    }

    .main-nav a { padding: 0.5rem 0; }
}

@media (max-width: 600px) {
    body { font-size: 16px; }
    h1 { font-size: 2.1rem; }
    h2 { font-size: 1.6rem; }
    .entry-title { font-size: 1.7rem; }

    .front-section { padding: 2.4rem 0; }
    .fs-quote { padding: 2.4rem 0; }
    .quote-plate { padding: 1.8rem 1.4rem; }
    .quote-plate .quote-text { font-size: 1.35rem; }

    .foot-cols { grid-template-columns: minmax(0, 1fr); }

    .stats-row { grid-template-columns: minmax(0, 1fr); }
    .stat-cell { border-left: 0; padding-left: 0; border-top: 1px solid #CBD7E6; }
    .stat-cell:first-child { border-top: 0; }

    .timeline::before { left: 6px; }
    .tl-item { width: 100%; margin-left: 0; margin-right: 0; padding-left: 1.5rem; }
    .tl-item::after { left: 0; right: auto; }
    .tl-item:nth-child(odd)::after { right: auto; left: 0; }
    .tl-item:nth-child(even)::after { left: 0; }

    .comments-block { padding: 1.2rem 1.1rem; }
    .notice-plate { padding: 1.6rem 1.3rem; }
    .cookie-banner { padding: 1rem 1.2rem; }
    body::after { display: none; }
}
