/*
Theme Name: dds_odna-secunda.ru
Theme URI: https://odna-secunda.ru/
Author: Антон Беляев
Description: Образовательный журнал о физике времени, восприятии, опытах и истории измерения. Концепция «Хронометр».
Version: 1.1
Requires at least: 6.0
Requires PHP: 8.0
License: GNU General Public License v2 or later
Text Domain: odnasec
*/

:root {
    --bg: #F4F7FA;
    --bg-alt: #E8EEF4;
    --ink: #1A2A3A;
    --night: #0B1B2B;
    --cyan: #00B4D8;
    --amber: #FFB703;
    --muted: #6B7F94;
    --line: #C9D6E0;
    --white: #FFFFFF;
    --f-head: "Space Grotesk", "Inter Tight", "Segoe UI", Arial, sans-serif;
    --f-body: "Inter", "Source Sans 3", "Segoe UI", Arial, sans-serif;
}

/* Скрытие по атрибуту hidden — до основных стилей */
.cookie-banner[hidden] { display: none !important; }
[hidden] { display: none !important; }

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

html { scroll-behavior: smooth; }

body {
    margin: 0;
    overflow-x: hidden;
    font-family: var(--f-body);
    font-size: 1.0625rem;
    line-height: 1.65;
    color: var(--ink);
    background-color: var(--bg);
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 400'%3E%3Cg fill='none' stroke='%2300B4D8' stroke-width='3' opacity='0.06'%3E%3Ccircle cx='200' cy='200' r='180'/%3E%3Ccircle cx='200' cy='200' r='160' stroke-dasharray='2 14.75'/%3E%3Cpath d='M200 200 L200 40' stroke-width='6'/%3E%3Cpath d='M200 200 L200 250' stroke-width='6'/%3E%3Ccircle cx='200' cy='200' r='10' fill='%2300B4D8'/%3E%3C/g%3E%3C/svg%3E"),
        repeating-linear-gradient(45deg, transparent 0 23px, var(--bg-alt) 23px 24px);
    background-repeat: no-repeat, repeat;
    background-position: right -60px top 40px, 0 0;
    background-size: 400px 400px, auto;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--f-head);
    color: var(--ink);
    line-height: 1.2;
    margin: 1.6em 0 0.6em;
    letter-spacing: -0.01em;
}
h1 { font-size: 2.2rem; font-weight: 700; margin-top: 0; }
h2 { font-size: 1.75rem; font-weight: 600; }
h3 { font-size: 1.3rem; font-weight: 600; }
h4 { font-size: 1.1rem; }

.entry-content h2, .entry-content h3, .zz-text h3 {
    position: relative;
    padding-left: 18px;
}
.entry-content h2::before, .entry-content h3::before, .zz-text h3::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 6px;
    height: 6px;
    margin-top: -3px;
    border-radius: 50%;
    background: var(--amber);
    transition: transform .25s ease;
}
.entry-content h2:hover::before, .entry-content h3:hover::before, .zz-text h3:hover::before { transform: scale(1.8); }

p { margin: 0 0 1.1em; }
ul, ol { margin: 0 0 1.1em; padding-left: 1.4em; }
li { margin-bottom: .35em; }

a {
    color: var(--cyan);
    text-decoration: none;
    background-image: linear-gradient(var(--amber), var(--amber));
    background-repeat: no-repeat;
    background-position: 0 100%;
    background-size: 100% 0;
    transition: background-size .25s ease, color .2s ease;
}
a:hover, a:focus-visible { background-size: 100% 2px; }

table { width: 100%; border-collapse: collapse; margin: 0 0 1.4em; border: 1px solid var(--line); }
th, td { border: 1px solid var(--line); padding: .6em .8em; text-align: left; }
th { background: var(--bg-alt); font-family: var(--f-head); }

blockquote {
    margin: 1.6em 0;
    padding: 1.2em 1.5em;
    border-left: 4px solid var(--cyan);
    background: var(--bg-alt);
    font-style: italic;
}
blockquote p:last-child { margin-bottom: 0; }

pre, code { font-family: Consolas, "Courier New", monospace; }
pre { overflow-x: auto; background: var(--bg-alt); padding: 1em 1.2em; }

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

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

/* ---------- Кнопки ---------- */
.btn {
    display: inline-block;
    font-family: var(--f-head);
    font-weight: 600;
    font-size: 1rem;
    padding: .75em 1.6em;
    border-radius: 2px;
    border: 2px solid var(--cyan);
    cursor: pointer;
    background-image: none;
    transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}
.btn:hover, .btn:focus-visible { transform: translateY(-2px); background-size: auto; }
.btn-fill { background-color: var(--cyan); color: var(--white); }
.btn-fill:hover, .btn-fill:focus-visible { background-color: var(--amber); border-color: var(--amber); color: var(--night); }
.btn-ghost { background-color: transparent; color: var(--cyan); }
.btn-ghost:hover, .btn-ghost:focus-visible { background-color: var(--cyan); color: var(--white); }
.btn-light { border-color: var(--white); color: var(--white); }
.btn-light:hover, .btn-light:focus-visible { border-color: var(--cyan); }

/* ---------- Шапка ---------- */
.tick-bar { height: 4px; background: linear-gradient(90deg, var(--cyan), var(--amber)); }

.masthead { background: var(--night); color: var(--white); position: relative; }
.masthead-row {
    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: .9rem; color: var(--white); min-width: 0; flex: 1 1 320px; background-image: none; }
.brand:hover { background-size: 0 0; }
.brand-mark { flex: 0 0 auto; display: block; }
.brand-logo { display: block; width: 52px; height: 52px; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; min-width: 0; }
.brand-name {
    font-family: var(--f-head);
    font-weight: 600;
    font-size: .98rem;
    line-height: 1.3;
    color: var(--white);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.brand-desc {
    font-size: .8rem;
    line-height: 1.35;
    color: #9FB2C4;
    margin-top: .2rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.nav-toggle {
    display: none;
    background: transparent;
    border: 2px solid var(--cyan);
    border-radius: 2px;
    width: 46px;
    height: 42px;
    padding: 9px;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-between;
}
.nav-toggle-line { display: block; height: 2px; background: var(--white); }

.primary-nav { flex: 0 0 auto; }
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; gap: .3rem; flex-wrap: wrap; }
.nav-list li { margin: 0; position: relative; }
.nav-list a {
    display: block;
    color: var(--white);
    font-family: var(--f-head);
    font-weight: 500;
    padding: .5rem .9rem;
    background-position: .9rem 100%;
    background-size: 0 2px;
}
.nav-list a:hover, .nav-list .current-menu-item > a { color: var(--cyan); background-size: calc(100% - 1.8rem) 2px; }
.nav-list .sub-menu { list-style: none; margin: 0; padding: .4rem 0; position: absolute; left: 0; top: 100%; background: var(--night); min-width: 200px; display: none; z-index: 20; border-top: 2px solid var(--cyan); }
.nav-list li:hover > .sub-menu, .nav-list li:focus-within > .sub-menu { display: block; }

/* ---------- Хлебные крошки ---------- */
.crumbs { font-size: .88rem; color: var(--muted); padding: 1.4rem 0 .4rem; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--cyan); }
.crumbs-sep { margin: 0 .35rem; color: var(--line); }

/* ---------- Раскладка ---------- */
.site-main { display: block; }
.layout-single { display: block; width: 85%; margin-left: auto; margin-right: auto; padding: 1.5rem 0 5rem; }
.layout-with-sidebar {
    display: grid;
    grid-template-columns: minmax(0, 67fr) minmax(0, 27fr);
    column-gap: 6%;
    padding: 1.5rem 0 5rem;
    align-items: start;
}
.content-area { min-width: 0; }

.sidebar {
    min-width: 0;
    background: var(--white);
    border-left: 1px solid var(--line);
    padding: 1.6rem 1.5rem;
    color: var(--ink);
}
.sidebar .widget { margin-bottom: 2rem; }
.sidebar .widget:last-child { margin-bottom: 0; }
.sidebar .widget-title {
    font-size: 1.1rem;
    margin: 0 0 1rem;
    color: var(--ink);
    padding-left: 14px;
    border-left: 4px solid var(--cyan);
}
.sidebar ul { list-style: none; padding: 0; margin: 0; }
.sidebar li { padding: .6rem 0; border-bottom: 1px dashed var(--line); margin: 0; }
.sidebar li:last-child { border-bottom: 0; }
.sidebar a { color: var(--ink); font-weight: 500; }
.sidebar a:hover { color: var(--cyan); }
.sidebar .post-date { display: block; font-size: .8rem; color: var(--muted); margin-top: .15rem; }
.sidebar p { color: var(--ink); }

.page-head { margin-bottom: 2rem; }
.page-title { font-size: 2.4rem; margin: .4rem 0 .5rem; }
.page-lead { color: var(--muted); }
.empty-note { color: var(--muted); }

/* ---------- Заголовки секций ---------- */
.band-title {
    display: flex;
    align-items: center;
    gap: 1.1rem;
    font-size: 2.1rem;
    margin: 0 0 2.8rem;
}
.band-title::before {
    content: "";
    flex: 0 0 56px;
    height: 4px;
    background: var(--cyan);
}

/* ---------- Карточки ---------- */
.card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.8rem; }
.card-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 4px;
    overflow: hidden;
    transition: border-color .25s ease, transform .25s ease;
}
.card:hover { border-color: var(--cyan); transform: translateY(-4px); }
.card-thumb { border-bottom: 2px solid var(--cyan); }
.card-thumb a { display: block; background-image: none; }
.card-thumb img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    object-fit: cover;
    background: var(--bg-alt);
}
.card-body { flex: 1; display: flex; flex-direction: column; padding: 1.3rem 1.4rem 1.5rem; min-width: 0; }
.card-meta { display: flex; flex-wrap: wrap; gap: .8rem; font-size: .8rem; color: var(--muted); margin-bottom: .6rem; }
.card-cat { color: var(--ink); font-weight: 600; }
.card-cat::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--amber); margin-right: .45rem; vertical-align: middle; }
.card-title { font-size: 1.2rem; margin: 0 0 .7rem; line-height: 1.3; }
.card-title a { color: var(--ink); }
.card-title a:hover { color: var(--cyan); }
.card-excerpt { color: #3D4F61; font-size: .95rem; flex: 1; }
.card-excerpt p { margin: 0 0 0.5em; background: none; }
.card-more { align-self: flex-start; font-family: var(--f-head); font-weight: 600; margin-top: .6rem; }
.card-more::after { content: " →"; }

/* ---------- Пагинация ---------- */
.pager { display: flex; flex-wrap: wrap; gap: .45rem; margin: 3rem 0 0; align-items: center; }
.pager .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.6rem;
    height: 2.6rem;
    padding: 0 .8rem;
    border: 1px solid var(--line);
    border-radius: 2px;
    background: var(--white);
    color: var(--ink);
    font-family: var(--f-head);
    font-weight: 600;
    background-image: none;
    transition: border-color .2s ease, background-color .2s ease, color .2s ease;
}
.pager a.page-numbers:hover { border-color: var(--cyan); color: var(--cyan); }
.pager .page-numbers.current { background: var(--cyan); border-color: var(--cyan); color: var(--white); }
.pager .page-numbers.dots { border: 0; background: transparent; min-width: auto; }

/* ---------- Запись ---------- */
.entry { min-width: 0; }
.entry-head { margin-bottom: 1.5rem; }
.entry-title { font-size: 2.5rem; margin: .4rem 0 .7rem; }
.entry-meta { display: flex; flex-wrap: wrap; gap: 1rem; color: var(--muted); font-size: .9rem; }
.entry-cat { color: var(--ink); font-weight: 600; }
.entry-cover { margin: 0 0 2rem; }
.entry-cover img { display: block; width: 100%; border-bottom: 2px solid var(--cyan); }
.entry-content { overflow-wrap: break-word; }
.entry-content img { display: block; }
.entry-content > *:first-child { margin-top: 0; }
.entry-content .wp-block-image, .entry-content figure { margin: 1.6em 0; }
.entry-content figcaption { font-size: .85rem; color: var(--muted); margin-top: .5em; }
.entry-tags { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: .5rem; }
.entry-tags a { border: 1px solid var(--line); padding: .25rem .7rem; font-size: .85rem; border-radius: 2px; background-image: none; }
.entry-tags a:hover { border-color: var(--cyan); }

/* ---------- Комментарии ---------- */
.talk { margin-top: 3.5rem; padding-top: 2rem; border-top: 1px dashed var(--muted); }
.talk-title { font-size: 1.5rem; margin-top: 0; }
.talk-list, .talk-list .children { list-style: none; padding: 0; margin: 0; }
.talk-list .children { padding-left: 2rem; }
.talk-body { background: var(--white); border: 1px solid var(--line); border-radius: 4px; padding: 1.1rem 1.3rem; margin-bottom: 1rem; }
.talk-meta { display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; font-size: .85rem; color: var(--muted); margin-bottom: .6rem; }
.talk-meta img { display: block; border-radius: 50%; }
.talk-author { font-weight: 600; color: var(--ink); }
.talk-reply a { font-size: .85rem; font-weight: 600; }
.comment-respond { margin-top: 2rem; }
.comment-form label { display: block; font-weight: 500; margin-bottom: .3rem; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
    width: 100%;
    padding: .7rem .9rem;
    border: 1px solid var(--line);
    border-radius: 2px;
    background: var(--white);
    font: inherit;
    color: var(--ink);
}
.comment-form input:focus, .comment-form textarea:focus { outline: 2px solid var(--cyan); outline-offset: 0; border-color: var(--cyan); }
.comment-form .comment-form-cookies-consent label { display: inline; }

/* ---------- Поиск ---------- */
.seek { display: flex; gap: .5rem; max-width: 520px; margin: 0 0 1.5rem; }
.seek-field { flex: 1; min-width: 0; padding: .7rem .9rem; border: 1px solid var(--line); border-radius: 2px; font: inherit; background: var(--white); color: var(--ink); }
.seek-field:focus { outline: 2px solid var(--cyan); border-color: var(--cyan); }
.sidebar .seek { flex-wrap: wrap; }

/* ---------- 404 ---------- */
.lost { padding: 3rem 0 6rem; max-width: 640px; }
.lost-num { font-family: var(--f-head); font-size: 6rem; font-weight: 700; line-height: 1; color: var(--amber); margin: 0; }
.lost-title { font-size: 2.4rem; margin: .6rem 0 1rem; }
.lost-text { color: var(--muted); }

/* ---------- Главная: общие ---------- */
.band { padding: 6rem 0; background-color: var(--bg); }
.band-alt { background-color: var(--bg-alt); }
.band-more { margin: 2.5rem 0 0; }

.scale-divider {
    position: relative;
    height: 0;
    width: min(85%, 1240px);
    margin: 0 auto;
}
.scale-divider::before {
    content: "";
    position: absolute;
    left: 25%;
    right: 25%;
    top: -1px;
    height: 1px;
    background-image: repeating-linear-gradient(90deg, var(--muted) 0 4px, transparent 4px 8px);
}
.scale-divider span {
    position: absolute;
    left: 50%;
    top: -5px;
    width: 9px;
    height: 9px;
    margin-left: -4.5px;
    border-radius: 50%;
    background: var(--amber);
    z-index: 2;
}

/* Hero */
.hero {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    background-color: var(--night);
    background-size: cover;
    background-position: center;
    color: var(--white);
    overflow: hidden;
}
.hero-veil {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle, rgba(0, 180, 216, .08) 1.5px, transparent 2px) 0 0 / 22px 38px,
        radial-gradient(circle, rgba(0, 180, 216, .08) 1.5px, transparent 2px) 11px 19px / 22px 38px,
        linear-gradient(120deg, rgba(11, 27, 43, .7), rgba(26, 42, 58, .7));
}
.hero-inner { position: relative; z-index: 1; padding: 5rem 0; }
.hero-title { color: var(--white); font-size: 3.2rem; max-width: 16ch; margin: 0 0 1.2rem; line-height: 1.08; }
.hero-sub { color: var(--cyan); font-size: 1.2rem; max-width: 56ch; margin: 0 0 2.2rem; }

/* Статистика */
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.fact {
    display: flex;
    flex-direction: column;
    gap: .6rem;
    padding: .5rem 1.6rem;
    min-width: 0;
    border-left: 1px dashed var(--line);
}
.fact:first-child { border-left: 0; padding-left: 0; }
.fact-num {
    font-family: var(--f-head);
    font-weight: 700;
    font-size: 2.5rem;
    line-height: 1.1;
    color: var(--amber);
    overflow-wrap: anywhere;
}
.fact:first-child .fact-num { font-size: clamp(1.6rem, 2.1vw, 2.5rem); }
.fact-cap { color: var(--muted); font-size: .95rem; line-height: 1.45; }

/* Zigzag */
.zigzag { display: flex; flex-direction: column; gap: 4rem; }
.zz-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 3rem;
    align-items: center;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 4px;
    padding: 2.2rem;
}
.zz-row:nth-child(even) { background: var(--white); }
.zz-flip .zz-media { order: 2; }
.zz-media { margin: 0; min-width: 0; }
.zz-media img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-bottom: 2px solid var(--cyan); }
.zz-text { min-width: 0; }
.zz-text h3 { margin-top: 0; font-size: 1.55rem; }
.zz-text p { color: #3D4F61; }
.text-link { font-family: var(--f-head); font-weight: 600; }

/* FAQ */
.faq { max-width: 880px; }
.faq-item { border-bottom: 1px dashed var(--line); }
.faq-item:first-child { border-top: 1px dashed var(--line); }
.faq-item summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    padding: 1.35rem 0;
    font-family: var(--f-head);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: "+";
    flex: 0 0 auto;
    font-size: 1.9rem;
    line-height: 1;
    font-weight: 500;
    color: var(--cyan);
    transition: transform .25s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item summary:hover { color: var(--cyan); }
.faq-answer { border-left: 2px solid var(--cyan); padding: 0 0 0 1.3rem; margin: 0 0 1.5rem; color: var(--muted); }
.faq-answer p { margin: 0; }

/* ---------- Подвал ---------- */
.colophon {
    background-color: var(--night);
    background-image: radial-gradient(circle, rgba(0, 180, 216, .08) 1.5px, transparent 2px);
    background-size: 22px 22px;
    color: #C9D6E0;
    padding: 4.5rem 0 1.8rem;
    margin-top: 0;
}
.colophon-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3rem; }
.colophon-col { min-width: 0; }
.colophon .widget { margin-bottom: 1.5rem; color: #C9D6E0; }
.colophon .widget-title {
    color: var(--white);
    font-size: 1.1rem;
    margin: 0 0 1rem;
    padding-left: 14px;
    border-left: 4px solid var(--cyan);
}
.colophon p, .colophon .textwidget { color: #C9D6E0; font-size: .95rem; }
.colophon ul { list-style: none; margin: 0; padding: 0; }
.colophon li { margin: 0 0 .55rem; }
.colophon a { color: var(--white); }
.colophon a:hover { color: var(--cyan); }
.colophon .post-date { color: #8FA3B7; font-size: .8rem; display: block; }
.colophon-copy {
    margin: 2.5rem 0 0;
    padding-top: 1.4rem;
    border-top: 1px dashed #2E4458;
    font-size: .85rem;
    color: #8FA3B7;
}

/* ---------- Cookie ---------- */
.cookie-banner {
    position: fixed;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.2rem;
    max-width: 920px;
    margin: 0 auto;
    padding: 1rem 1.4rem;
    background: var(--night);
    color: #DCE6EE;
    border-top: 3px solid var(--cyan);
    border-radius: 2px;
}
.cookie-text { margin: 0; font-size: .9rem; }

/* ---------- Адаптив ---------- */
@media (max-width: 960px) {
    .layout-with-sidebar { grid-template-columns: minmax(0, 1fr); row-gap: 3rem; }
    .layout-single { width: 100%; }
    .card-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 2rem; }
    .fact:nth-child(3) { border-left: 0; padding-left: 0; }
    .fact:first-child .fact-num { font-size: 2rem; }
    .zz-row { grid-template-columns: minmax(0, 1fr); gap: 1.6rem; }
    .zz-flip .zz-media { order: 0; }
    .colophon-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hero-title { font-size: 2.6rem; }

    .nav-toggle { display: flex; }
    .primary-nav { flex: 1 1 100%; display: none; }
    .primary-nav.is-open { display: block; }
    .nav-list { flex-direction: column; gap: 0; border-top: 1px solid #1F3448; padding-top: .5rem; }
    .nav-list a { padding: .7rem 0; background-position: 0 100%; }
    .nav-list a:hover, .nav-list .current-menu-item > a { background-size: 0 0; }
    .nav-list .sub-menu { position: static; display: block; border: 0; padding-left: 1rem; }
}

@media (max-width: 600px) {
    body { font-size: 1rem; background-size: 240px 240px, auto; background-position: right -80px top 20px, 0 0; }
    h1 { font-size: 1.9rem; }
    .shell-front { width: 92%; }
    .scale-divider { width: 92%; }
    .brand-desc { display: none; }
    .band { padding: 4rem 0; }
    .band-title { font-size: 1.6rem; gap: .8rem; margin-bottom: 2rem; }
    .band-title::before { flex-basis: 32px; }
    .hero { min-height: 70vh; }
    .hero-inner { padding: 3.5rem 0; }
    .hero-title { font-size: 2.1rem; }
    .hero-sub { font-size: 1.05rem; }
    .card-grid, .card-grid-3 { grid-template-columns: minmax(0, 1fr); }
    .facts { grid-template-columns: minmax(0, 1fr); }
    .fact, .fact:nth-child(3) { border-left: 0; padding: 0 0 1.4rem; border-bottom: 1px dashed var(--line); }
    .fact:last-child { border-bottom: 0; padding-bottom: 0; }
    .zigzag { gap: 2.5rem; }
    .zz-row { padding: 1.4rem 1.3rem; }
    .faq-item summary { font-size: 1.08rem; }
    .colophon-grid { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
    .page-title, .entry-title, .lost-title { font-size: 1.9rem; }
    .sidebar { padding: 1.4rem 1.2rem; }
    .cookie-banner { flex-direction: column; align-items: flex-start; padding: 1rem 1.2rem; }
    .seek { flex-direction: column; }
    .talk-list .children { padding-left: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; }
}
