/*
Theme Name: dds_n8nify.com
Author: Артём Воронов
Description: Тема для информационного проекта об автоматизации в недвижимости.
Version: 1.1
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: n8auto
*/

:root {
    --bg: #F7F5FC;
    --bg-alt: #EDEAF5;
    --ink: #221F2D;
    --accent: #7C5CBF;
    --accent-dark: #63489B;
    --accent-2: #B8A9D4;
    --muted: #8F86A3;
    --line: #D9D0E8;
    --dark: #1F1A2E;
    --white: #FFFFFF;
    --font-head: "Futura", "Century Gothic", "Trebuchet MS", "Segoe UI", Arial, sans-serif;
    --font-body: "Roboto Condensed", "Fira Sans Condensed", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

/* ---------- служебные правила скрытия ---------- */

.cookie-banner[hidden] { display: none !important; }
.nav-list[hidden] { display: none !important; }
.tabs-panel[hidden] { display: none !important; }

/* ---------- база ---------- */

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

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background-color: var(--bg);
    background-image:
        repeating-linear-gradient(45deg, rgba(232, 226, 242, 0.15) 0 1px, transparent 1px 28px),
        repeating-linear-gradient(-45deg, rgba(232, 226, 242, 0.15) 0 1px, transparent 1px 28px);
    background-attachment: fixed;
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.72;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

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

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

.entry-body a:not(.btn),
.widget a,
.trail a,
.site-desc a {
    border-bottom: 1px dotted transparent;
    transition: border-color .18s ease;
}
.entry-body a:not(.btn):hover,
.widget a:hover,
.trail a:hover { border-bottom-color: currentColor; }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-head);
    font-weight: 500;
    letter-spacing: .01em;
    line-height: 1.18;
    color: var(--ink);
    margin: 0 0 .7em;
}

h1 { font-size: 2.3rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.12rem; }

p { margin: 0 0 1.1em; }

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

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--accent);
    color: #fff;
    padding: .6rem 1rem;
    z-index: 99;
}
.skip-link:focus { left: 0; }

/* ---------- приём 1: квадрат перед H2 ---------- */

h2::before {
    content: "";
    display: inline-block;
    width: 4px;
    height: 4px;
    background: var(--accent);
    vertical-align: .55em;
    margin-right: .55em;
}
.widget-title::before,
.comment-title::before { vertical-align: .45em; }

/* ---------- заголовки секций ---------- */

.sec-head { margin-bottom: 1.8rem; }

.sec-head::before {
    content: "";
    display: block;
    width: 86px;
    height: 3px;
    margin-bottom: 1rem;
    background-image:
        radial-gradient(circle, var(--accent) 1.4px, transparent 1.6px),
        linear-gradient(to right, transparent 0, transparent 34px, var(--accent) 34px, var(--accent) 86px);
    background-size: 8px 3px, 86px 1px;
    background-position: 0 center, 0 center;
    background-repeat: repeat-x, no-repeat;
}

.sec-title { margin: 0 0 .4rem; }
.sec-note { color: var(--muted); margin: 0; max-width: 62ch; }

/* ---------- кнопки ---------- */

.btn {
    display: inline-block;
    border-radius: 2px;
    padding: .72rem 1.6rem;
    font-family: var(--font-head);
    font-size: .98rem;
    letter-spacing: .04em;
    text-decoration: none;
    border: 1px solid var(--accent);
    transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}
.btn-outline { color: var(--accent); background: transparent; }
.btn-outline:hover { background: var(--accent); color: #fff; }
.btn-fill { color: #fff; background: var(--accent); }
.btn-fill:hover { background: var(--accent-dark); border-color: var(--accent-dark); }

/* ---------- шапка ---------- */

.site-head {
    position: relative;
    background: rgba(247, 245, 252, .82);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line);
    overflow: hidden;
}

.head-blob {
    position: absolute;
    right: -60px;
    top: -110px;
    width: 380px;
    height: 380px;
    opacity: .5;
    pointer-events: none;
}

.head-inner {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1.6rem;
    padding: 1.7rem 0;
    flex-wrap: wrap;
}

.brand {
    display: flex;
    align-items: center;
    gap: .9rem;
    min-width: 0;
    flex: 1 1 320px;
    text-decoration: none;
    color: inherit;
}
.brand-logo, .brand-mark { flex: 0 0 auto; display: block; width: 46px; height: 46px; }
.brand-text { min-width: 0; }
.site-name {
    display: block;
    font-family: var(--font-head);
    font-size: 1.1rem;
    line-height: 1.3;
    letter-spacing: .02em;
    color: var(--ink);
    max-height: 2.7em;
    overflow: hidden;
}
.site-desc {
    display: block;
    margin-top: .3rem;
    font-size: .8rem;
    line-height: 1.45;
    color: var(--muted);
    max-height: 2.9em;
    overflow: hidden;
}

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

.main-nav { flex: 0 1 auto; }
.nav-list {
    display: flex;
    gap: 1.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}
.nav-list a {
    font-family: var(--font-head);
    font-size: .97rem;
    letter-spacing: .03em;
    color: var(--ink);
    border-bottom: 1px dotted transparent;
    padding-bottom: 2px;
    transition: color .18s ease, border-color .18s ease;
}
.nav-list a:hover { color: var(--accent); border-bottom-color: var(--accent); }
.nav-list .current-menu-item > a { color: var(--accent); }

/* ---------- макет ---------- */

.site-main { padding: 2.6rem 0 4.5rem; }
.home .site-main { padding: 0 0 1rem; }

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

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

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

/* ---------- хлебные крошки ---------- */

.trail {
    font-size: .86rem;
    color: var(--muted);
    margin-bottom: 1.6rem;
}
.trail a { color: var(--muted); }
.trail a:hover { color: var(--accent); }
.trail-sep { color: var(--accent-2); margin: 0 .35rem; }

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

.card-list { display: grid; gap: 1.4rem; margin-bottom: 2.5rem; }

.card {
    display: flex;
    flex-direction: column;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 0;
    border-left: 1px solid var(--line);
    overflow: hidden;
    transition: transform .18s ease, border-left-color .18s ease, border-left-width .18s ease;
}
.card:hover { transform: translateY(-2px); border-left: 3px solid var(--accent); }

.card-row { display: flex; gap: 1.5rem; min-width: 0; }

.card-thumb-wrap {
    flex: 0 0 210px;
    width: 210px;
    aspect-ratio: 1 / 1;
    position: relative;
    overflow: hidden;
    align-self: flex-start;
    background: var(--bg-alt);
}
.card-thumb-wrap a {
    display: block;
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
}
.card-thumb-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.card-body {
    flex: 1;
    min-width: 0;
    padding: 1.4rem 1.5rem 1.5rem 0;
}
.card:not(.card-has-thumb) .card-body { padding-left: 1.5rem; }

.card-title { font-size: 1.24rem; margin: 0 0 .5rem; }
.card-title::before { content: none; }
.card-title a { color: var(--ink); }
.card-title a:hover { color: var(--accent); }

.card-meta {
    font-size: .82rem;
    color: var(--muted);
    margin-bottom: .7rem;
    display: flex;
    gap: .9rem;
    flex-wrap: wrap;
}
.card-cat a { color: var(--accent); }

.card-excerpt { color: #4A4457; font-size: .96rem; }
.card-excerpt p { margin: 0 0 0.5em; background: none; }

.card-more {
    display: inline-block;
    margin-top: .5rem;
    font-family: var(--font-head);
    font-size: .9rem;
    color: var(--accent);
    letter-spacing: .04em;
    border-bottom: 1px dotted transparent;
}
.card-more:hover { border-bottom-color: var(--accent); }

/* ---------- пагинация ---------- */

.pager {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin: 2.2rem 0 0;
}
.pager .page-numbers {
    display: inline-block;
    min-width: 42px;
    text-align: center;
    padding: .5rem .85rem;
    border: 1px solid var(--line);
    border-radius: 2px;
    background: var(--white);
    color: var(--ink);
    font-family: var(--font-head);
    font-size: .95rem;
    transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}
.pager .page-numbers:hover { border-color: var(--accent); color: var(--accent); }
.pager .page-numbers.current {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}
.pager .page-numbers.dots {
    border-color: transparent;
    background: transparent;
    color: var(--muted);
}

/* ---------- главная: общие секции ---------- */

.front-section { padding: 4.2rem 0; }
.front-section.is-alt { background: var(--bg-alt); }
.front-section.is-glow { background: linear-gradient(160deg, var(--bg) 0%, var(--bg-alt) 100%); }

/* блок 1: hero */

.hero {
    position: relative;
    padding: 5.5rem 2.4rem;
    background-color: var(--bg-alt);
    background-image:
        radial-gradient(circle at 78% 22%, rgba(124, 92, 191, .22) 0, rgba(124, 92, 191, 0) 58%),
        radial-gradient(circle, rgba(124, 92, 191, .16) 1.3px, transparent 1.5px);
    background-size: auto, 22px 22px;
    border: 1px solid var(--line);
    overflow: hidden;
}
.hero-inner { position: relative; max-width: 40ch; }
.hero h1 {
    font-size: 3.5rem;
    line-height: 1.06;
    margin: 0 0 1.1rem;
    letter-spacing: -0.01em;
}
.hero p {
    color: #443E55;
    font-size: 1.08rem;
    margin-bottom: 2rem;
}
.hero-mark {
    display: block;
    width: 4px;
    height: 4px;
    background: var(--accent);
    margin-bottom: 1.6rem;
}
.hero-art {
    position: absolute;
    right: -40px;
    bottom: -60px;
    width: 460px;
    max-width: 60%;
    opacity: .55;
    pointer-events: none;
}

/* блок 2: таймлайн */

.tl { position: relative; margin: 0; padding: 0 0 0 2.2rem; list-style: none; }
.tl::before {
    content: "";
    position: absolute;
    left: 5px;
    top: .5rem;
    bottom: .5rem;
    width: 0;
    border-left: 1px dashed var(--accent);
}
.tl-item { position: relative; padding: 0 0 2.1rem; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
    content: "";
    position: absolute;
    left: -2.2rem;
    top: .55rem;
    width: 11px;
    height: 11px;
    background: var(--bg);
    border: 1px solid var(--accent);
}
.tl-item.is-done::before { background: var(--accent); }
.tl-step {
    display: block;
    font-family: var(--font-head);
    font-size: .78rem;
    letter-spacing: .18em;
    color: var(--accent);
    margin-bottom: .3rem;
}
.tl-name { font-size: 1.18rem; margin: 0 0 .35rem; }
.tl-name::before { content: none; }
.tl-text { margin: 0; color: #4A4457; max-width: 64ch; }

/* блок «последние записи» */

.latest-grid { display: grid; gap: 1.4rem; }
.front-cta { margin-top: 2.4rem; }

/* блок 3: zigzag */

.zz-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 3rem;
    align-items: center;
}
.zz-row + .zz-row { margin-top: 3.4rem; }
.zz-row.is-flip .zz-media { order: 2; }
.zz-media img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border: 1px solid var(--line);
}
.zz-text { min-width: 0; }
.zz-text h3 { font-size: 1.5rem; }
.zz-text p { color: #4A4457; }
.zz-list { margin: 0; padding: 0; list-style: none; }
.zz-list li { position: relative; padding-left: 1.4rem; margin-bottom: .5rem; color: #4A4457; }
.zz-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .72em;
    width: 4px;
    height: 4px;
    background: var(--accent);
}

/* цитата — «лазерная» линия */

.laser-quote {
    margin: 0;
    padding: 1.6rem 1.8rem;
    border-left: 1px solid var(--accent-2);
    background: transparent;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.laser-quote:hover {
    border-left-color: var(--accent);
    box-shadow: -1px 0 12px -4px var(--accent);
}
.laser-quote p { font-size: 1.15rem; margin-bottom: .5rem; }
.laser-quote cite { font-style: normal; font-size: .86rem; color: var(--muted); }

/* блок 4: рубрикатор */

.topics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.2rem;
}
.topic-tile {
    display: block;
    padding: 1.8rem 1.5rem;
    background: transparent;
    border: 1px solid var(--line);
    border-radius: 0;
    color: var(--ink);
    transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}
.topic-tile svg { display: block; width: 34px; height: 34px; margin-bottom: 1rem; }
.topic-tile .ti-line { stroke: var(--accent); }
.topic-tile h3 { font-size: 1.1rem; margin: 0 0 .4rem; }
.topic-tile h3::before { content: none; }
.topic-tile p { margin: 0; font-size: .9rem; color: var(--muted); }
.topic-tile:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}
.topic-tile:hover h3,
.topic-tile:hover p { color: #fff; }
.topic-tile:hover .ti-line { stroke: #fff; }

/* ---------- записи и страницы ---------- */

.entry-head { margin-bottom: 1.6rem; }
.entry-title { font-size: 2.15rem; margin-bottom: .6rem; }
.entry-title::before { content: none; }
.entry-meta { font-size: .85rem; color: var(--muted); display: flex; gap: 1rem; flex-wrap: wrap; }

.entry-thumb { margin-bottom: 1.8rem; }
.entry-thumb img { display: block; width: 100%; aspect-ratio: 16 / 7; object-fit: cover; }

.entry-body { font-size: 1.02rem; }
.entry-body h2 { margin-top: 2rem; }
.entry-body h3 { margin-top: 1.6rem; }
.entry-body ul, .entry-body ol { padding-left: 1.3rem; }
.entry-body li { margin-bottom: .4rem; }
.entry-body img { display: block; height: auto; }
.entry-body blockquote {
    margin: 1.8rem 0;
    padding: 1.2rem 1.6rem;
    border-left: 1px solid var(--accent-2);
    color: #3B3548;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.entry-body blockquote:hover {
    border-left-color: var(--accent);
    box-shadow: -1px 0 12px -4px var(--accent);
}

.entry-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    border: 1px solid var(--line);
    background: var(--white);
}
.entry-body th, .entry-body td {
    border: 1px solid var(--line);
    padding: .65rem .8rem;
    text-align: left;
}
.entry-body th { background: var(--bg-alt); font-family: var(--font-head); font-weight: 500; }

.entry-tags { margin-top: 2rem; font-size: .88rem; color: var(--muted); }
.entry-tags a { margin-right: .5rem; }

.post-nav {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 1.2rem;
    margin-top: 2.5rem;
    padding-top: 1.8rem;
    border-top: 1px solid var(--line);
    font-size: .95rem;
}
.post-nav .nxt { text-align: right; }
.post-nav span { display: block; font-size: .78rem; color: var(--muted); letter-spacing: .1em; }

/* ---------- сайдбар ---------- */

.sidebar {
    min-width: 0;
    background: var(--white);
    border: 1px solid var(--line);
    box-shadow: 0 14px 34px -22px rgba(124, 92, 191, .55);
    padding: 1.6rem 1.5rem;
}
.sidebar .widget + .widget { margin-top: 2rem; padding-top: 1.6rem; border-top: 1px solid var(--line); }
.sidebar .widget-title { font-size: 1.05rem; color: var(--ink); margin-bottom: .9rem; }
.sidebar .widget, .sidebar .widget p, .sidebar .widget li { color: var(--ink); font-size: .95rem; }
.sidebar .widget ul { list-style: none; margin: 0; padding: 0; }
.sidebar .widget li { padding: .42rem 0 .42rem 1rem; position: relative; }
.sidebar .widget li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 1.05em;
    width: 4px;
    height: 4px;
    background: var(--accent-2);
}
.sidebar .widget a { color: var(--ink); }
.sidebar .widget a:hover { color: var(--accent); }
.sidebar .post-date { display: block; color: var(--muted); font-size: .8rem; }

/* ---------- формы ---------- */

.search-form { display: flex; gap: .5rem; }
.search-form input[type="search"] {
    flex: 1;
    min-width: 0;
    padding: .6rem .75rem;
    border: 1px solid var(--line);
    border-radius: 2px;
    background: var(--white);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: .95rem;
}
.search-form input[type="search"]:focus { outline: 1px solid var(--accent); }
.search-form button {
    border: 1px solid var(--accent);
    background: var(--accent);
    color: #fff;
    border-radius: 2px;
    padding: .6rem 1.1rem;
    font-family: var(--font-head);
    cursor: pointer;
}
.search-form button:hover { background: var(--accent-dark); border-color: var(--accent-dark); }

/* ---------- комментарии ---------- */

.comments-area {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--line);
}
.comment-title { font-size: 1.35rem; }
.comment-list { list-style: none; margin: 0 0 2rem; padding: 0; }
.comment-list .children { list-style: none; margin: 1rem 0 0 1.6rem; padding: 0; }
.comment-inner {
    background: var(--white);
    border: 1px solid var(--line);
    padding: 1.1rem 1.3rem;
    margin-bottom: 1rem;
}
.comment-head { display: flex; gap: 1rem; flex-wrap: wrap; align-items: baseline; margin-bottom: .5rem; }
.comment-author { font-family: var(--font-head); }
.comment-date { font-size: .8rem; color: var(--muted); }
.comment-actions { font-size: .88rem; }
.comment-hold { color: var(--muted); font-size: .88rem; }

.comment-respond { background: var(--white); border: 1px solid var(--line); padding: 1.5rem 1.6rem; }
.comment-respond .comment-reply-title { font-size: 1.2rem; }
.comment-form label { display: block; font-size: .86rem; color: var(--muted); margin-bottom: .3rem; }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: .6rem .75rem;
    border: 1px solid var(--line);
    border-radius: 2px;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: .95rem;
}
.comment-form textarea { min-height: 140px; }
.comment-form .submit {
    border: 1px solid var(--accent);
    background: var(--accent);
    color: #fff;
    border-radius: 2px;
    padding: .7rem 1.5rem;
    font-family: var(--font-head);
    letter-spacing: .04em;
    cursor: pointer;
}
.comment-form .submit:hover { background: var(--accent-dark); border-color: var(--accent-dark); }

/* ---------- 404 и поиск ---------- */

.notfound { text-align: left; max-width: 60ch; }
.notfound .code {
    font-family: var(--font-head);
    font-size: 5rem;
    line-height: 1;
    color: var(--accent-2);
    margin-bottom: 1rem;
}
.notfound .search-form { margin: 1.6rem 0; max-width: 460px; }
.empty-note { color: var(--muted); }

/* ---------- подвал ---------- */

.site-foot {
    background: var(--dark);
    color: #CFC7DE;
    padding: 3.4rem 0 1.8rem;
}
.foot-cols {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2.4rem;
}
.site-foot .widget-title {
    font-size: 1.02rem;
    color: #FFFFFF;
    margin-bottom: .9rem;
}
.site-foot .widget-title::before { background: var(--accent-2); }
.site-foot .widget,
.site-foot .widget p,
.site-foot .widget li { color: #CFC7DE; font-size: .93rem; }
.site-foot .widget ul { list-style: none; margin: 0; padding: 0; }
.site-foot .widget li { padding: .34rem 0 .34rem 1rem; position: relative; }
.site-foot .widget li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 1em;
    width: 4px;
    height: 4px;
    background: var(--accent-2);
}
.site-foot .widget a { color: #E4DEF0; }
.site-foot .widget a:hover { color: var(--accent-2); }
.site-foot .post-date { display: block; color: #9C93AE; font-size: .8rem; }

.foot-bottom {
    margin-top: 2.8rem;
    padding-top: 1.4rem;
    border-top: 1px solid rgba(184, 169, 212, .22);
    font-size: .85rem;
    color: #9C93AE;
}

/* ---------- cookie ---------- */

.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    gap: 1.4rem;
    flex-wrap: wrap;
    background: var(--dark);
    color: #E4DEF0;
    border-top: 1px solid var(--accent);
    padding: 1rem 1.6rem;
    font-size: .9rem;
}
.cookie-banner p { margin: 0; flex: 1; min-width: 240px; }
.cookie-banner a { color: var(--accent-2); }
.cookie-banner button {
    border: 1px solid var(--accent);
    background: var(--accent);
    color: #fff;
    border-radius: 2px;
    padding: .55rem 1.4rem;
    font-family: var(--font-head);
    letter-spacing: .04em;
    cursor: pointer;
}
.cookie-banner button:hover { background: var(--accent-dark); border-color: var(--accent-dark); }

/* ---------- адаптив ---------- */

@media (max-width: 960px) {
    body { font-size: 16px; }
    .layout-with-sidebar { grid-template-columns: minmax(0, 1fr); }
    .layout-single { width: 100%; }
    .hero h1 { font-size: 2.6rem; }
    .hero { padding: 3.6rem 1.8rem; }
    .hero-art { display: none; }
    .topics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .zz-row { grid-template-columns: minmax(0, 1fr); gap: 1.6rem; }
    .zz-row.is-flip .zz-media { order: 0; }
    .head-blob { width: 260px; height: 260px; }
}

@media (max-width: 600px) {
    .nav-toggle { display: inline-block; }
    .main-nav { flex: 1 1 100%; }
    .nav-list { flex-direction: column; gap: .2rem; padding-top: .8rem; }
    .nav-list li { border-bottom: 1px solid var(--line); }
    .nav-list a { display: block; padding: .6rem 0; }

    .head-inner { padding: 1.2rem 0; }
    .site-name { font-size: 1rem; }

    .front-shell { width: min(92%, 1180px); }
    .front-section { padding: 2.8rem 0; }
    .hero { padding: 2.6rem 1.3rem; }
    .hero h1 { font-size: 2.05rem; }
    .hero-inner { max-width: none; }

    .card-row { flex-direction: column; gap: 0; }
    .card-thumb-wrap {
        flex: none;
        width: 100%;
        position: static;
        aspect-ratio: auto;
    }
    .card-thumb-wrap a { position: static; }
    .card-thumb-wrap img {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
    }
    .card-body { padding: 1.2rem 1.2rem 1.3rem; }
    .card:not(.card-has-thumb) .card-body { padding-left: 1.2rem; }

    .topics { grid-template-columns: minmax(0, 1fr); }
    .foot-cols { grid-template-columns: minmax(0, 1fr); }
    .post-nav { grid-template-columns: minmax(0, 1fr); }
    .post-nav .nxt { text-align: left; }
    .sidebar { padding: 1.3rem 1.2rem; }
    .laser-quote { padding: 1.1rem 1.2rem; }
    .cookie-banner { padding: 1rem 1.2rem; }
    .entry-title { font-size: 1.7rem; }
    .tl { padding-left: 1.8rem; }
    .tl-item::before { left: -1.8rem; }
}
