/*
Theme Name: dds_hioola.ru
Author: Анна Соколова
Description: Тема для образовательного портала о финансовой грамотности и банковских профессиях.
Version: 1.1
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: hifin
*/

/* ===== Переменные ===== */
:root {
    --bg: #F5F2F7;
    --bg-alt: #EBE4F0;
    --head-bg: #FFFFFF;
    --head-line: #C5B9D1;
    --foot-bg: #23203A;
    --foot-bg-2: #3A2E5E;
    --side-bg: #FCFAFF;
    --ink: #201E30;
    --acc: #00B4B3;
    --acc2: #A88BCA;
    --mute: #9A92AB;
    --line: #DCD3E6;
    --shadow: #D6CDE0;
    --font-head: "Manrope", "Inter", "Segoe UI", Arial, sans-serif;
    --font-body: "Literata", "Source Serif 4", Georgia, "Times New Roman", serif;
}

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

html { scroll-behavior: smooth; }

body {
    margin: 0;
    overflow-x: hidden;
    font-family: var(--font-body);
    font-size: 1.0625rem;
    line-height: 1.75;
    color: var(--ink);
    background-color: var(--bg);
    background-image:
        repeating-linear-gradient(60deg, rgba(168, 139, 202, 0.045) 0 1px, transparent 1px 40px),
        repeating-linear-gradient(-60deg, rgba(168, 139, 202, 0.045) 0 1px, transparent 1px 40px),
        repeating-linear-gradient(0deg, rgba(168, 139, 202, 0.04) 0 1px, transparent 1px 35px);
}

body::after {
    content: "";
    position: fixed;
    right: -60px;
    bottom: -60px;
    width: 440px;
    height: 440px;
    z-index: -1;
    pointer-events: none;
    opacity: 0.06;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cg fill='none' stroke='%2300B4B3' stroke-width='6'%3E%3Ccircle cx='100' cy='100' r='72'/%3E%3Ccircle cx='100' cy='100' r='48'/%3E%3Cpath d='M100 8v22M100 170v22M8 100h22M170 100h22M35 35l16 16M149 149l16 16M165 35l-16 16M51 149l-16 16'/%3E%3C/g%3E%3Ctext x='100' y='118' text-anchor='middle' font-family='Arial' font-size='54' fill='%2300B4B3'%3E%E2%82%BD%3C/text%3E%3C/svg%3E") no-repeat center / contain;
}

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

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-head);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.2;
    color: var(--ink);
    margin: 2rem 0 0.9rem;
}

h1 { font-size: 3.5rem; line-height: 1.14; letter-spacing: -0.035em; }
h2 { font-size: 2rem; }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.15rem; }

p { margin: 0 0 1.2rem; }

ul, ol { margin: 0 0 1.2rem; padding-left: 1.3rem; }
li { margin-bottom: 0.4rem; }

blockquote {
    margin: 1.8rem 0;
    padding: 1.4rem 1.6rem;
    background: var(--bg-alt);
    border-left: 4px solid var(--acc);
    font-style: italic;
}

table { width: 100%; border-collapse: collapse; margin: 1.6rem 0; }
table, th, td { border: 1px solid var(--head-line); }
th, td { padding: 0.7rem 0.9rem; text-align: left; }
th { background: var(--bg-alt); font-family: var(--font-head); }

code, pre { font-family: "SFMono-Regular", Consolas, monospace; font-size: 0.92em; }
pre { overflow-x: auto; padding: 1rem; background: var(--bg-alt); }

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

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

/* ===== Ссылки в тексте: подчёркивание «шторкой» от центра ===== */
.entry-content a,
.widget a,
.card-excerpt a,
.breadcrumbs a,
.comment-body a {
    position: relative;
    color: var(--acc);
}

.entry-content a::after,
.widget a::after,
.card-excerpt a::after,
.breadcrumbs a::after,
.comment-body a::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: -2px;
    height: 1px;
    background: var(--acc2);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.25s ease;
}

.entry-content a:hover::after,
.widget a:hover::after,
.card-excerpt a:hover::after,
.breadcrumbs a:hover::after,
.comment-body a:hover::after { transform: scaleX(1); }

/* ===== Кнопки: скошенный правый нижний угол ===== */
.btn {
    display: inline-block;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 0.98rem;
    letter-spacing: 0.01em;
    padding: 0.85rem 1.7rem;
    border: 0;
    cursor: pointer;
    border-radius: 4px 4px 0 0;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary {
    background: var(--acc);
    color: #fff;
    box-shadow: 0 3px 8px rgba(0, 180, 179, 0.25);
}

.btn-primary:hover {
    transform: translateY(2px);
    box-shadow: 0 8px 18px rgba(0, 180, 179, 0.38);
}

.btn-ghost {
    background: transparent;
    color: var(--ink);
    box-shadow: inset 0 0 0 2px var(--acc2);
}

.btn-ghost:hover {
    background: rgba(168, 139, 202, 0.15);
    transform: translateY(2px);
    box-shadow: inset 0 0 0 2px var(--acc2), 0 6px 14px rgba(168, 139, 202, 0.3);
}

/* ===== Заголовки секций и «финансовый индикатор» ===== */
.section-title {
    position: relative;
    padding-left: 14px;
    border-left: 2px solid var(--acc2);
    margin: 0 0 1.8rem;
    font-size: 2.1rem;
}

.section-title .st-note {
    display: block;
    margin-top: 0.5rem;
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 1rem;
    letter-spacing: 0;
    color: var(--mute);
    line-height: 1.6;
}

.entry-content h2 {
    position: relative;
    padding-left: 18px;
}

.entry-content h2::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.22em;
    width: 3px;
    height: 0.95em;
    background: linear-gradient(to top, var(--acc) 0 30%, var(--line) 30% 100%);
}

.entry-content h3 {
    display: inline-block;
    border-bottom: 1px dotted var(--acc2);
    padding-bottom: 0.25rem;
}

.num-accent {
    font-family: var(--font-head);
    font-weight: 800;
    color: var(--acc);
    text-shadow: 0 0 10px rgba(0, 180, 179, 0.3);
}

/* ===== Шапка ===== */
.site-header {
    background: var(--head-bg);
    border-bottom: 1px solid var(--head-line);
}

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

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

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

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

.site-title {
    margin: 0;
    font-size: 0.98rem;
    font-weight: 800;
    line-height: 1.35;
    letter-spacing: -0.01em;
}

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

.site-tagline {
    margin: 0.35rem 0 0;
    font-size: 0.82rem;
    line-height: 1.5;
    color: var(--mute);
    display: none;
}

.nav-toggle {
    display: none;
    background: transparent;
    border: 2px solid var(--acc2);
    border-radius: 4px 4px 0 0;
    padding: 0.5rem 0.9rem;
    font-family: var(--font-head);
    font-weight: 700;
    color: var(--ink);
    cursor: pointer;
}

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

.main-nav li { margin: 0; }

.main-nav a {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--ink);
    padding-bottom: 3px;
    border-bottom: 2px solid transparent;
    transition: border-color 0.2s ease, color 0.2s ease;
}

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

/* ===== Раскладки ===== */
.site-main { padding-bottom: 4rem; }

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

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

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

/* ===== Хлебные крошки ===== */
.breadcrumbs {
    font-family: var(--font-head);
    font-size: 0.85rem;
    color: var(--mute);
    padding: 1.4rem 0 0.4rem;
}

.breadcrumbs a { color: var(--acc); }
.breadcrumbs .sep { margin: 0 0.35rem; color: var(--acc2); }

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

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

.card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: #fff;
    border-radius: 16px 16px 0 0;
    box-shadow: 0 4px 12px var(--shadow);
    outline: 2px solid transparent;
    outline-offset: -2px;
    transition: transform 0.25s ease, outline-color 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
    transform: translateY(-6px);
    outline-color: var(--acc);
    box-shadow: 0 10px 22px var(--shadow);
}

.card-thumb-wrap {
    overflow: hidden;
    border-radius: 16px 16px 0 0;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 20px), 0 100%);
}

.card-thumb-wrap a { display: block; }

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

.card-body {
    flex: 1;
    min-width: 0;
    padding: 1.3rem 1.4rem 1.6rem;
    border-top: 1px solid var(--line);
    display: flex;
    flex-direction: column;
}

.card--nothumb .card-body { border-top: 0; }

.card-meta {
    font-family: var(--font-head);
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--mute);
    margin-bottom: 0.5rem;
}

.card-title { margin: 0 0 0.7rem; font-size: 1.25rem; }
.card-title a { color: var(--ink); }
.card-title a:hover { color: var(--acc); }

.card-excerpt { font-size: 0.97rem; color: #3A3550; }
.card-excerpt p { margin: 0 0 0.5em; background: none; }

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

/* ===== Главная ===== */
.front-section { padding: 90px 0; }
.front-section .shell { width: min(85%, 1160px); }
.front-section--alt { background: var(--bg-alt); }

/* Блок 1 — hero */
.hero {
    position: relative;
    overflow: hidden;
    background: #23203A;
    padding: 110px 0;
}

.hero-img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, rgba(35, 32, 58, 0.88) 0%, rgba(58, 46, 94, 0.55) 60%, rgba(58, 46, 94, 0.25) 100%);
}

.hero .shell { position: relative; width: min(85%, 1160px); }

.hero-plate {
    max-width: 640px;
    padding: 2.6rem 2.4rem;
    background: rgba(245, 242, 247, 0.14);
    backdrop-filter: blur(9px);
    border-radius: 16px 16px 0 0;
    border-left: 3px solid var(--acc);
    text-align: left;
}

.hero-kicker {
    font-family: var(--font-head);
    font-size: 0.8rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--acc);
    margin: 0 0 1rem;
}

.hero h1 { margin: 0 0 1.1rem; color: #fff; }

.hero p {
    color: #E7E1F0;
    font-size: 1.08rem;
    margin: 0 0 1.8rem;
    max-width: 46ch;
}

/* Блок 2 — таймлайн */
.tl { position: relative; margin-top: 2.6rem; }

.tl::before {
    content: "";
    position: absolute;
    left: 150px;
    top: 0.7rem;
    bottom: 1.4rem;
    border-left: 2px dashed var(--acc);
}

.tl-item {
    position: relative;
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    column-gap: 60px;
    padding-bottom: 2.6rem;
}

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

.tl-item::before {
    content: "";
    position: absolute;
    left: 141px;
    top: 0.55rem;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--acc2);
    border: 3px solid #fff;
    box-shadow: 0 0 0 1px var(--acc2);
}

.tl-num {
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 2.4rem;
    line-height: 1;
    color: var(--acc);
    text-align: right;
    text-shadow: 0 0 12px rgba(0, 180, 179, 0.3);
}

.tl-body { min-width: 0; }
.tl-body h3 { margin: 0 0 0.5rem; font-size: 1.22rem; }
.tl-body p { margin: 0; color: #3A3550; }

/* Блок 3 — статистика */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr));
    gap: 2rem;
    margin-top: 2.4rem;
}

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

.stat-num {
    display: block;
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 4rem;
    line-height: 1;
    letter-spacing: -0.04em;
    color: var(--acc);
    text-shadow: 0 0 14px rgba(0, 180, 179, 0.3);
}

.stat-cap {
    display: block;
    margin-top: 0.8rem;
    font-size: 0.9rem;
    line-height: 1.55;
    color: var(--mute);
}

/* Блок 4 — карта тем */
.topic-map {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
    gap: 1.6rem;
    margin-top: 2.4rem;
}

.topic-tile {
    display: block;
    min-width: 0;
    background: #fff;
    border: 1px solid var(--acc2);
    border-radius: 4px 4px 0 0;
    padding: 1.8rem 1.6rem;
    transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.topic-tile svg { display: block; width: 40px; height: 40px; margin-bottom: 1.1rem; }
.topic-tile svg * { stroke: var(--acc); transition: stroke 0.25s ease; }

.topic-tile h3 {
    margin: 0 0 0.4rem;
    font-size: 1.12rem;
    color: var(--ink);
    transition: color 0.25s ease;
}

.topic-tile p {
    margin: 0;
    font-size: 0.92rem;
    color: var(--mute);
    transition: color 0.25s ease;
}

.topic-tile:hover { background: var(--acc); transform: translateY(-4px); }
.topic-tile:hover h3, .topic-tile:hover p { color: #fff; }
.topic-tile:hover svg * { stroke: #fff; }

/* CTA / акцентная плашка */
.accent-plate {
    background: linear-gradient(120deg, var(--foot-bg) 0%, var(--foot-bg-2) 100%);
    background-image:
        repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 12px),
        linear-gradient(120deg, var(--foot-bg) 0%, var(--foot-bg-2) 100%);
    color: #F1EDF7;
    padding: 2.6rem 2.4rem;
    border-radius: 12px 12px 0 0;
}

.accent-plate h2 { color: #fff; margin-top: 0; }
.accent-plate p { color: #D6CEE6; }

.front-latest .card-grid { margin-top: 2.4rem; }

/* ===== Запись / страница ===== */
.entry-header { padding: 1.4rem 0 0.6rem; }
.entry-title { margin: 0 0 0.7rem; font-size: 2.6rem; }
.entry-meta { font-family: var(--font-head); font-size: 0.85rem; color: var(--mute); }

.entry-thumb {
    display: block;
    width: 100%;
    margin: 1.6rem 0;
    border-radius: 12px 12px 0 0;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 22px), 0 100%);
    object-fit: cover;
}

.entry-content { margin-top: 1.4rem; }
.entry-content img { display: block; border-radius: 8px 8px 0 0; }
.entry-content > *:first-child { margin-top: 0; }

.page-head { padding: 1.2rem 0 0; }
.page-head .entry-title { font-size: 2.4rem; }

.tags-line { margin: 2rem 0 0; font-family: var(--font-head); font-size: 0.88rem; }
.tags-line a { display: inline-block; margin: 0 0.4rem 0.4rem 0; }

/* ===== Сайдбар ===== */
.sidebar {
    min-width: 0;
    background: var(--side-bg);
    border-radius: 12px 12px 0 0;
    padding: 1.6rem 1.5rem;
    box-shadow: 0 4px 12px var(--shadow);
    margin-top: 2rem;
}

.sidebar .widget + .widget { margin-top: 2rem; }

.sidebar .widget-title {
    margin: 0 0 1rem;
    font-size: 1.05rem;
    color: var(--ink);
    padding-left: 12px;
    border-left: 2px solid var(--acc2);
}

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

.sidebar .widget a { color: var(--acc); }
.sidebar .widget .post-date { color: var(--mute); }

.sidebar ul { list-style: none; padding: 0; margin: 0; }
.sidebar li { padding: 0.5rem 0; border-bottom: 1px dotted var(--line); }
.sidebar li:last-child { border-bottom: 0; }

/* ===== Поиск ===== */
.search-form { display: flex; gap: 0.6rem; flex-wrap: wrap; }

.search-form input[type="search"] {
    flex: 1 1 180px;
    min-width: 0;
    padding: 0.7rem 0.9rem;
    border: 1px solid var(--head-line);
    border-radius: 4px 4px 0 0;
    font-family: var(--font-body);
    font-size: 0.95rem;
    background: #fff;
    color: var(--ink);
}

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

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

.pagination .page-numbers {
    display: inline-block;
    min-width: 42px;
    text-align: center;
    padding: 0.55rem 0.85rem;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 0.92rem;
    color: var(--ink);
    background: #fff;
    border: 1px solid var(--head-line);
    border-radius: 4px 4px 0 0;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.pagination .page-numbers:hover { border-color: var(--acc); color: var(--acc); }

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

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

/* ===== Комментарии ===== */
.comments-area { margin-top: 3rem; }
.comments-title, .comment-reply-title { font-size: 1.5rem; }
.comment-list { list-style: none; padding: 0; margin: 0 0 2rem; }
.comment-list ul.children { list-style: none; padding-left: 1.6rem; }

.comment-body {
    background: #fff;
    border-radius: 12px 12px 0 0;
    box-shadow: 0 3px 10px var(--shadow);
    padding: 1.2rem 1.3rem;
    margin-bottom: 1.2rem;
}

.comment-author { font-family: var(--font-head); font-weight: 700; }
.comment-metadata { font-size: 0.82rem; color: var(--mute); margin-bottom: 0.6rem; }

.comment-form label { display: block; font-family: var(--font-head); 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(--head-line);
    border-radius: 4px 4px 0 0;
    font-family: var(--font-body);
    font-size: 0.98rem;
    background: #fff;
    color: var(--ink);
    margin-bottom: 1rem;
}

.comment-form .submit {
    display: inline-block;
    font-family: var(--font-head);
    font-weight: 700;
    padding: 0.85rem 1.7rem;
    border: 0;
    cursor: pointer;
    background: var(--acc);
    color: #fff;
    border-radius: 4px 4px 0 0;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%);
}

/* ===== 404 ===== */
.notfound { padding: 3rem 0; }
.notfound h1 { font-size: 3rem; }
.notfound .search-form { max-width: 480px; margin: 1.8rem 0; }

/* ===== Подвал ===== */
.site-footer {
    background: var(--foot-bg);
    color: #D6CEE6;
    padding: 3.4rem 0 1.6rem;
    margin-top: 3rem;
}

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

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

.site-footer .widget-title {
    margin: 0 0 1rem;
    font-size: 1.02rem;
    color: #fff;
    padding-left: 12px;
    border-left: 2px solid var(--acc);
}

.site-footer .widget,
.site-footer .widget p,
.site-footer .widget li,
.site-footer .widget .post-date { color: #C9C0DC; }

.site-footer .widget a { color: #EDE7F6; }
.site-footer .widget a:hover { color: var(--acc); }

.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { padding: 0.4rem 0; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.site-footer li:last-child { border-bottom: 0; }

.footer-bottom {
    margin-top: 2.6rem;
    padding-top: 1.2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    font-family: var(--font-head);
    font-size: 0.85rem;
    color: #9A92AB;
}

/* ===== 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;
    align-items: center;
    justify-content: space-between;
    gap: 1.2rem;
    padding: 1.1rem 1.6rem;
    background: var(--foot-bg);
    color: #E7E1F0;
    box-shadow: 0 -4px 16px rgba(32, 30, 48, 0.28);
}

.cookie-banner p { margin: 0; font-size: 0.92rem; min-width: 0; }
.cookie-banner a { color: var(--acc); }

/* ===== Адаптив ===== */
@media (min-width: 961px) {
    .site-tagline { display: block; }
}

@media (max-width: 960px) {
    h1 { font-size: 2.6rem; }
    .entry-title { font-size: 2.1rem; }

    .layout-with-sidebar { grid-template-columns: minmax(0, 1fr); }
    .layout-single { width: 100%; }

    .nav-toggle { display: block; }

    .main-nav {
        flex-basis: 100%;
        display: none;
    }

    .main-nav.is-open { display: block; }

    .main-nav ul { flex-direction: column; gap: 0.2rem; padding-top: 0.8rem; }
    .main-nav li { border-bottom: 1px dotted var(--line); }
    .main-nav a { display: block; padding: 0.7rem 0; border-bottom: 0; }

    .front-section { padding: 64px 0; }
    .front-section .shell, .hero .shell { width: min(92%, 1160px); }
    .hero { padding: 80px 0; }
}

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

    .front-section { padding: 48px 0; }
    .hero { padding: 56px 0; }
    .hero-plate { padding: 1.8rem 1.4rem; }
    .accent-plate { padding: 1.8rem 1.4rem; }

    .tl::before { left: 8px; }
    .tl-item { grid-template-columns: minmax(0, 1fr); column-gap: 0; padding-left: 42px; }
    .tl-item::before { left: 0; }
    .tl-num { text-align: left; font-size: 1.9rem; margin-bottom: 0.4rem; }

    .stat-num { font-size: 3rem; }

    .card-thumb-wrap { clip-path: polygon(0 0, 100% 0, 100% calc(100% - 12px), 0 100%); }

    .sidebar { padding: 1.3rem 1.1rem; }

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