/*
Theme Name: dds_asmgetcourse.ru
Author: Алексей Смирнов
Description: Информационная тема для портала о дополнительном образовании и повышении квалификации.
Version: 1.1
Text Domain: asmgc
*/

/* ---------- Переменные ---------- */
:root {
    --bg: #F5F0F7;
    --bg-alt: #ECE4F0;
    --panel: #FBF9FC;
    --ink: #1E1A24;
    --deep: #2A2530;
    --accent: #7B5C9C;
    --accent-dark: #5E407A;
    --accent-soft: #B894D1;
    --muted: #978AA3;
    --line: #D3C7DD;
    --grid: rgba(232, 223, 238, 0.3);
    --shell: 1180px;
}

/* ---------- Служебные правила скрытия ---------- */
.cookie-banner[hidden] { display: none !important; }
.tab-panel[hidden] { display: none !important; }
.nav-list[hidden] { display: none !important; }

/* ---------- База ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    background-color: var(--bg);
    background-image:
        linear-gradient(var(--grid) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid) 1px, transparent 1px);
    background-size: 24px 24px, 24px 24px;
    color: var(--ink);
    font-family: "Inter", "Manrope", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    font-size: 17px;
    line-height: 1.72;
    -webkit-font-smoothing: antialiased;
}

body::before {
    content: "";
    position: fixed;
    top: -160px;
    right: -180px;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    background: radial-gradient(circle at 40% 40%, rgba(211, 199, 221, 0.75), rgba(211, 199, 221, 0) 68%);
    filter: blur(12px);
    pointer-events: none;
    z-index: 0;
}

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

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

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

.entry-content a,
.widget a,
.card-excerpt a {
    position: relative;
    background-image: linear-gradient(var(--accent), var(--accent));
    background-repeat: no-repeat;
    background-position: 0 100%;
    background-size: 0 1px;
    transition: background-size .28s ease;
}

.entry-content a:hover,
.widget a:hover,
.card-excerpt a:hover { background-size: 100% 1px; }

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

h1 { font-size: 3.5rem; letter-spacing: .02em; font-weight: 800; }
h2 { font-size: 2rem; }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.15rem; }

p { margin: 0 0 1.15em; }

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

.top-bar {
    height: 4px;
    background: linear-gradient(90deg, var(--accent), var(--accent-soft));
}

/* ---------- Шапка ---------- */
.site-head {
    background: rgba(245, 240, 247, 0.72);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
    padding: 1.4rem 0;
}

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

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

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

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

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

.brand-desc {
    display: block;
    font-size: .8rem;
    color: var(--muted);
    line-height: 1.45;
    max-height: 2.9em;
    overflow: hidden;
    margin-top: .2rem;
}

.nav-toggle {
    display: none;
    border: 1px solid var(--accent);
    background: none;
    color: var(--accent);
    border-radius: 8px;
    padding: .5rem .9rem;
    font: inherit;
    font-size: .95rem;
    cursor: pointer;
}

.site-nav { flex: 0 1 auto; }

.nav-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: .3rem 1.4rem;
    margin: 0;
    padding: 0;
}

.nav-list a {
    display: inline-block;
    padding: .35rem 0;
    color: var(--ink);
    font-weight: 600;
    font-size: .98rem;
    border-bottom: 2px solid transparent;
    transition: color .2s ease, border-color .2s ease;
}

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

/* ---------- Кнопки ---------- */
.btn {
    display: inline-block;
    border-radius: 8px;
    padding: .78rem 1.6rem;
    font-weight: 700;
    font-size: .98rem;
    line-height: 1.3;
    cursor: pointer;
    transition: background-color .2s ease, color .2s ease, transform .2s ease, box-shadow .2s ease;
    border: 1px solid var(--accent);
}

.btn-filled {
    background: var(--accent);
    color: #fff;
}

.btn-filled:hover {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--accent);
}

.btn-outline:hover {
    background: var(--accent);
    color: #fff;
    transform: translateY(-2px);
}

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

.breadcrumbs a { color: var(--accent); }
.breadcrumbs a:hover { color: var(--accent-dark); }
.breadcrumbs .sep { margin: 0 .45rem; color: var(--accent-soft); }

/* ---------- Раскладка ---------- */
.site-main { padding: 2.2rem 0 3.6rem; }

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

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

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

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

.sec-title {
    font-size: 2rem;
    margin: 0 0 .55rem;
    position: relative;
    padding-left: 1.15rem;
}

.sec-title::before {
    content: "•";
    position: absolute;
    left: 0;
    top: -.16em;
    color: var(--accent);
    font-size: 1.05em;
    line-height: 1;
}

.sec-rule {
    display: block;
    width: 30%;
    height: 2px;
    background: var(--accent-soft);
    border: 0;
    margin: 0 0 .6rem;
}

.sec-lead {
    color: var(--muted);
    max-width: 62ch;
    margin: 0;
}

.page-title {
    margin-bottom: .5rem;
}

/* ---------- Главная: секции ---------- */
.fs {
    padding: 80px 0;
    position: relative;
}

.fs-alt {
    background: var(--bg-alt);
}

.sec-cta-row { margin-top: 2rem; margin-bottom: 0; }

.fs-wave {
    display: block;
    width: 100%;
    height: 34px;
    color: var(--accent-soft);
    opacity: .5;
}

/* Блок 1 — Hero */
.hero {
    background: linear-gradient(135deg, #F5F0F7 0%, #ECE4F0 100%);
    padding: 84px 0;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    gap: 3rem;
    align-items: center;
}

.hero-copy { min-width: 0; }

.hero h1 { margin-bottom: .55rem; }

.hero-kicker {
    display: inline-block;
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1rem;
}

.hero-lead {
    font-size: 1.12rem;
    color: #4A4152;
    max-width: 54ch;
    margin-bottom: 1.9rem;
}

.hero-art { min-width: 0; }
.hero-art img { display: block; width: 100%; height: auto; }

/* Блок 2 — Таймлайн */
.tl {
    position: relative;
    margin: 0;
    padding: 0 0 0 0;
    list-style: none;
}

.tl-item {
    display: grid;
    grid-template-columns: minmax(0, 190px) 34px minmax(0, 1fr);
    gap: 0 1.2rem;
    align-items: start;
    padding-bottom: 2.3rem;
}

.tl-item:last-child { padding-bottom: 0; }

.tl-stage {
    text-align: right;
    color: var(--accent);
    font-weight: 700;
    font-size: .95rem;
    padding-top: .15rem;
    min-width: 0;
}

.tl-stage span {
    display: block;
    color: var(--muted);
    font-weight: 600;
    font-size: .8rem;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.tl-axis {
    position: relative;
    justify-self: center;
    width: 34px;
    align-self: stretch;
}

.tl-axis::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 6px;
    bottom: -2.3rem;
    width: 2px;
    margin-left: -1px;
    background: var(--accent-soft);
}

.tl-item:last-child .tl-axis::before { display: none; }

.tl-dot {
    position: absolute;
    left: 50%;
    top: 6px;
    width: 14px;
    height: 14px;
    margin-left: -7px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 4px rgba(184, 148, 209, .28);
}

.tl-body {
    min-width: 0;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 1.2rem 1.4rem;
}

.tl-body h3 { margin-bottom: .35rem; font-size: 1.12rem; }
.tl-body p { margin: 0; color: #4A4152; font-size: .98rem; }

/* Блок 3 — Статистика */
.stats-plate {
    position: relative;
    border-radius: 14px;
    padding: 3rem 2.4rem;
    background:
        linear-gradient(120deg, rgba(184, 148, 209, .15), rgba(211, 199, 221, .15)),
        var(--panel);
    border: 1px solid var(--line);
}

.stats-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
    text-align: center;
}

.stat { min-width: 0; }

.stat-num {
    display: block;
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.05;
    color: var(--deep);
    letter-spacing: -.02em;
}

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

/* Блок 4 — Рубрикатор */
.topic-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.4rem;
}

.topic-tile {
    display: block;
    min-width: 0;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 1.6rem 1.5rem;
    color: var(--ink);
    transition: background-color .2s ease, color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.topic-tile svg {
    display: block;
    width: 40px;
    height: 40px;
    color: var(--accent);
    margin-bottom: .9rem;
    transition: color .2s ease;
}

.topic-tile strong {
    display: block;
    font-size: 1.08rem;
    margin-bottom: .3rem;
}

.topic-tile span {
    display: block;
    color: var(--muted);
    font-size: .9rem;
    line-height: 1.55;
    transition: color .2s ease;
}

.topic-tile:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(123, 92, 156, .18);
}

.topic-tile:hover svg,
.topic-tile:hover span { color: #fff; }

/* ---------- Карточки записей ---------- */
.cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.6rem;
}

.cards-list {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.6rem;
}

.card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: var(--panel);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(123, 92, 156, 0.08);
    transition: box-shadow .25s ease, transform .25s ease;
}

.card:hover {
    box-shadow: 0 8px 24px rgba(123, 92, 156, 0.15);
    transform: translateY(-3px);
}

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

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

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

.card-title {
    font-size: 1.16rem;
    margin: 0 0 .5rem;
}

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

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

.card-excerpt {
    color: #4A4152;
    font-size: .96rem;
    margin-bottom: 1.1rem;
}

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

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

/* Горизонтальная карточка в ленте */
.cards-list .card { flex-direction: row; }

.cards-list .card-thumb-wrap {
    flex: 0 0 300px;
    position: relative;
    overflow: hidden;
    min-height: 210px;
}

.cards-list .card-thumb-wrap a {
    display: block;
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
}

.cards-list .card-thumb-wrap img {
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    object-fit: cover;
    border-radius: 0;
}

/* ---------- Запись и страница ---------- */
.entry {
    background: var(--panel);
    border-radius: 14px;
    padding: 2.4rem 2.4rem 2.6rem;
    box-shadow: 0 4px 12px rgba(123, 92, 156, 0.08);
}

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

.entry-thumb {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 12px;
    object-fit: cover;
    margin-bottom: 1.8rem;
}

.entry-content h2 { margin-top: 1.9rem; font-size: 1.7rem; }
.entry-content h3 { margin-top: 1.5rem; }

.entry-content ul, .entry-content ol { padding-left: 1.3rem; }
.entry-content li { margin-bottom: .45rem; }

.entry-content blockquote {
    margin: 1.6rem 0;
    padding: 1.2rem 1.6rem;
    border-left: 4px solid var(--accent-soft);
    background: var(--bg-alt);
    border-radius: 0 10px 10px 0;
    font-size: 1.1rem;
}

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

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

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

.entry-content th,
.entry-content td {
    border: 1px solid var(--line);
    padding: .6rem .8rem;
    text-align: left;
}

.entry-content th { background: var(--bg-alt); }

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

.entry-tags a {
    display: inline-block;
    background: var(--bg-alt);
    border-radius: 8px;
    padding: .25rem .7rem;
    margin: .2rem .3rem .2rem 0;
    color: var(--accent);
}

/* Акцентная цитата на главной / страницах */
.quote-plate {
    background: linear-gradient(120deg, rgba(184, 148, 209, .15), rgba(211, 199, 221, .15)), var(--panel);
    border-left: 4px solid var(--accent-soft);
    border-radius: 0 12px 12px 0;
    padding: 2rem 2.2rem;
    font-size: 1.24rem;
    color: var(--ink);
}

/* ---------- Сайдбар ---------- */
.sidebar { min-width: 0; }

.widget {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 1.4rem 1.5rem;
    margin-bottom: 1.4rem;
    color: var(--ink);
}

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

.widget-title {
    font-size: 1.08rem;
    margin: 0 0 .9rem;
    padding-bottom: .55rem;
    border-bottom: 2px solid var(--accent-soft);
    color: var(--ink);
}

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

.widget li {
    padding: .45rem 0 .45rem 1rem;
    position: relative;
    border-bottom: 1px solid rgba(211, 199, 221, .6);
    color: var(--ink);
    font-size: .95rem;
}

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

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

.widget a { color: var(--accent); }
.widget a:hover { color: var(--accent-dark); }
.widget .post-date { display: block; color: var(--muted); font-size: .8rem; }
.widget p { color: var(--ink); font-size: .95rem; }

/* ---------- Формы ---------- */
.search-form {
    display: flex;
    gap: .6rem;
    flex-wrap: wrap;
}

.search-form input[type="search"] {
    flex: 1 1 180px;
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: .7rem .9rem;
    font: inherit;
    background: #fff;
    color: var(--ink);
}

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

.search-form button {
    border: 1px solid var(--accent);
    background: var(--accent);
    color: #fff;
    border-radius: 8px;
    padding: .7rem 1.2rem;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: background-color .2s ease, transform .2s ease;
}

.search-form button:hover { background: var(--accent-dark); transform: translateY(-2px); }

/* ---------- Комментарии ---------- */
.comments-area {
    margin-top: 2.2rem;
    background: var(--panel);
    border-radius: 14px;
    padding: 2rem 2.2rem;
    box-shadow: 0 4px 12px rgba(123, 92, 156, 0.08);
}

.comments-title { font-size: 1.4rem; }

.comment-list { list-style: none; margin: 0 0 1.6rem; padding: 0; }
.comment-list ul.children { list-style: none; padding-left: 1.4rem; }

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

.comment-head {
    display: flex;
    align-items: center;
    gap: .7rem;
    margin-bottom: .5rem;
}

.comment-author { font-weight: 700; }
.comment-date { color: var(--muted); font-size: .82rem; }
.comment-body p:last-child { margin-bottom: 0; }
.comment-reply-link { font-size: .88rem; font-weight: 600; }

.comment-respond { margin-top: 1.4rem; }

.comment-form label {
    display: block;
    font-size: .9rem;
    font-weight: 600;
    margin-bottom: .3rem;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: .7rem .9rem;
    font: inherit;
    background: #fff;
    color: var(--ink);
    margin-bottom: .9rem;
}

.comment-form .submit {
    border: 1px solid var(--accent);
    background: var(--accent);
    color: #fff;
    border-radius: 8px;
    padding: .75rem 1.5rem;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: background-color .2s ease, transform .2s ease;
}

.comment-form .submit:hover { background: var(--accent-dark); transform: translateY(-2px); }

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

.pagination .page-numbers {
    display: inline-block;
    min-width: 42px;
    text-align: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: .5rem .85rem;
    color: var(--accent);
    background: var(--panel);
    font-weight: 600;
    line-height: 1.3;
    transition: background-color .2s ease, color .2s ease, transform .2s ease;
}

.pagination a.page-numbers:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    transform: translateY(-2px);
}

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

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

/* ---------- 404 и поиск ---------- */
.notice-plate {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 2.4rem 2.4rem;
}

.plate-404 .code {
    font-size: 5rem;
    font-weight: 800;
    color: var(--accent-soft);
    line-height: 1;
    margin-bottom: .6rem;
}

.plate-404 .search-form { margin: 1.5rem 0; max-width: 460px; }

/* ---------- Подвал ---------- */
.site-foot {
    background: var(--deep);
    color: #D8D2E0;
    padding: 3.4rem 0 0;
    margin-top: 2rem;
}

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

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

.site-foot .widget {
    background: transparent;
    border: 0;
    border-radius: 0;
    padding: 0;
    margin-bottom: 1.6rem;
    color: #D8D2E0;
}

.site-foot .widget-title {
    color: #FFFFFF;
    border-bottom-color: rgba(184, 148, 209, .5);
}

.site-foot .widget li {
    color: #D8D2E0;
    border-bottom-color: rgba(216, 210, 224, .16);
}

.site-foot .widget li::before { background: var(--accent-soft); }
.site-foot .widget p { color: #D8D2E0; }
.site-foot .widget a { color: #E4DAF0; }
.site-foot .widget a:hover { color: #FFFFFF; }
.site-foot .widget .post-date { color: #A79EB4; }

.foot-bottom {
    margin-top: 2rem;
    padding: 1.3rem 0 1.6rem;
    border-top: 1px solid rgba(216, 210, 224, .16);
    font-size: .88rem;
    color: #A79EB4;
}

/* ---------- Cookie-баннер ---------- */
.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    display: flex;
    align-items: center;
    gap: 1.2rem;
    flex-wrap: wrap;
    background: var(--deep);
    color: #E4DEEC;
    padding: 1.1rem 1.6rem;
    border-top: 3px solid var(--accent);
    font-size: .92rem;
}

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

.cookie-banner button {
    border: 1px solid var(--accent);
    background: var(--accent);
    color: #fff;
    border-radius: 8px;
    padding: .6rem 1.4rem;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: background-color .2s ease, transform .2s ease;
}

.cookie-banner button:hover { background: var(--accent-dark); transform: translateY(-2px); }

/* ---------- Адаптив ---------- */
@media (max-width: 960px) {
    h1 { font-size: 2.4rem; }
    .sec-title, h2 { font-size: 1.65rem; }

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

    .layout-single { width: 100%; }

    .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
    .hero-art { max-width: 480px; }

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

    .nav-toggle { display: inline-block; order: 2; margin-left: auto; }
    .site-nav { flex: 1 1 100%; order: 3; }
    .nav-list { flex-direction: column; gap: 0; }
    .nav-list li { border-bottom: 1px solid var(--line); }
    .nav-list a { display: block; padding: .65rem 0; }
}

@media (max-width: 600px) {
    body { font-size: 16px; }
    h1 { font-size: 2rem; }
    .sec-title, h2 { font-size: 1.45rem; }

    .fs { padding: 52px 0; }
    .hero { padding: 52px 0; }

    .stats-plate { padding: 2rem 1.4rem; }
    .stats-row { grid-template-columns: minmax(0, 1fr); gap: 1.6rem; }
    .stat-num { font-size: 3rem; }

    .quote-plate { padding: 1.6rem 1.4rem; font-size: 1.1rem; }
    .entry { padding: 1.6rem 1.3rem 1.8rem; }
    .comments-area { padding: 1.5rem 1.3rem; }
    .notice-plate { padding: 1.8rem 1.4rem; }

    .cards { grid-template-columns: minmax(0, 1fr); }
    .topic-grid { grid-template-columns: minmax(0, 1fr); }
    .foot-cols { grid-template-columns: minmax(0, 1fr); gap: 1.4rem; }

    .tl-item {
        grid-template-columns: 26px minmax(0, 1fr);
        gap: 0 .9rem;
    }
    .tl-stage {
        grid-column: 1 / -1;
        text-align: left;
        margin-bottom: .5rem;
        padding-left: 2.2rem;
    }
    .tl-axis { width: 26px; }
    .tl-body { padding: 1rem 1.1rem; }

    .cards-list .card { flex-direction: column; }
    .cards-list .card-thumb-wrap {
        flex: none;
        width: 100%;
        position: static;
        min-height: 0;
    }
    .cards-list .card-thumb-wrap a { position: static; }
    .cards-list .card-thumb-wrap img {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
        border-radius: 12px 12px 0 0;
    }

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