/*
Theme Name: dds_snptech.ru
Theme URI: https://snptech.ru/
Author: Алексей Снегирёв
Description: Тема «Лаборатория автоматизации» для образовательного портала об создании чат-ботов и автоматизации.
Version: 1.1
Requires at least: 6.0
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: snpbot
*/

:root {
    --bg: #F4F7FA;
    --bg-alt: #E8EEF5;
    --navy: #0B1E33;
    --side: #EDF2F8;
    --ink: #12263A;
    --teal: #00C2A8;
    --coral: #FF7A45;
    --mute: #6B7F94;
    --line: #D3DEE9;
    --soft: #B0C4D8;
    --f-head: "Unbounded", "Arial", sans-serif;
    --f-body: "Golos Text", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    --grid-dark: linear-gradient(rgba(11,30,51,.03) 1px, transparent 1px), linear-gradient(90deg, rgba(11,30,51,.03) 1px, transparent 1px);
    --grid-light: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: var(--f-body);
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--ink);
    background-color: var(--bg);
    background-image: var(--grid-dark);
    background-size: 24px 24px;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

body::after {
    content: "";
    position: fixed;
    right: 1.5rem;
    bottom: 1.5rem;
    width: 300px;
    height: 240px;
    pointer-events: none;
    z-index: 0;
    opacity: .06;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 240' fill='none' stroke='%2300C2A8' stroke-width='4'%3E%3Crect x='10' y='20' width='110' height='56' rx='4'/%3E%3Crect x='180' y='20' width='110' height='56' rx='4'/%3E%3Crect x='95' y='160' width='110' height='56' rx='4'/%3E%3Cpath d='M120 48 H172 M164 40 L174 48 L164 56'/%3E%3Cpath d='M235 76 V118 H150 V152 M142 144 L150 154 L158 144'/%3E%3C/svg%3E") no-repeat center / contain;
}

.site-main, .basement { position: relative; z-index: 1; }

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--f-head);
    font-weight: 600;
    letter-spacing: .02em;
    line-height: 1.25;
    color: var(--navy);
    margin: 1.6em 0 .6em;
}
h1 { font-size: 2.1rem; }
h2 { font-size: 1.55rem; }
h3 { font-size: 1.2rem; }
h4 { font-size: 1.05rem; }

p { margin: 0 0 1.1em; }

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

.entry-content a,
.archive-desc a,
.talk-text a {
    color: #00917E;
    background-image: linear-gradient(currentColor, currentColor);
    background-repeat: no-repeat;
    background-position: 0 100%;
    background-size: 0 2px;
    transition: background-size .25s ease;
}
.entry-content a:hover,
.archive-desc a:hover,
.talk-text a:hover { background-size: 100% 2px; }

table { width: 100%; border-collapse: collapse; margin: 1.5em 0; border: 1px solid var(--line); font-size: .95rem; }
th, td { border: 1px solid var(--line); padding: .6em .8em; text-align: left; vertical-align: top; }
th { background: var(--bg-alt); font-weight: 600; }

blockquote {
    margin: 1.6em 0;
    padding: 1.2rem 1.5rem;
    background: var(--bg-alt);
    border-left: 3px solid var(--teal);
    border-radius: 4px;
}
blockquote p:last-child { margin-bottom: 0; }

pre, code { font-family: "JetBrains Mono", Consolas, monospace; font-size: .9em; }
pre { background: var(--navy); color: #E3ECF5; padding: 1rem 1.2rem; border-radius: 4px; overflow-x: auto; }
:not(pre) > code { background: var(--bg-alt); padding: .1em .35em; border-radius: 3px; }

.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%, 1240px); margin-inline: auto; }

/* ---------- Верхняя полоса ---------- */
.run-bar {
    height: 4px;
    background: repeating-linear-gradient(90deg, var(--teal) 0 64px, var(--coral) 64px 88px);
}

/* ---------- Кнопки ---------- */
.btn {
    display: inline-block;
    font-family: var(--f-body);
    font-weight: 600;
    font-size: .98rem;
    line-height: 1.2;
    padding: .85em 1.5em;
    border-radius: 4px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
    text-align: center;
}
.btn:hover { transform: translateX(2px); }
.btn-fill { background: var(--teal); color: var(--navy); border-color: var(--teal); }
.btn-fill:hover { background: var(--coral); border-color: var(--coral); color: var(--navy); }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-ghost:hover { background: var(--navy); color: #fff; }
.btn-ghost-light { background: transparent; color: #fff; border-color: #fff; }
.btn-ghost-light:hover { background: #fff; color: var(--navy); }

/* ---------- Шапка ---------- */
.topline { background: var(--navy); color: #fff; position: relative; z-index: 5; }
.topline-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 0;
    flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: .9rem; color: #fff; min-width: 0; flex: 1 1 320px; }
.brand-mark { flex: 0 0 auto; display: block; }
.brand-logo, .brand-svg { display: block; width: 46px; height: 46px; 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: .82rem;
    letter-spacing: .03em;
    line-height: 1.35;
    color: #fff;
}
.brand-desc {
    font-size: .76rem;
    line-height: 1.4;
    color: var(--soft);
    margin-top: .25rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.nav-toggle {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    background: transparent;
    border: 1px solid rgba(255,255,255,.35);
    color: #fff;
    border-radius: 4px;
    padding: .55rem .8rem;
    font: inherit;
    font-size: .9rem;
    cursor: pointer;
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
    display: block; width: 18px; height: 2px; background: var(--teal); position: relative;
}
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }

.site-nav { width: 100%; display: none; }
.site-nav.is-open { display: block; }
.site-nav-list { list-style: none; margin: 0; padding: .5rem 0 0; display: flex; flex-direction: column; }
.site-nav-list a {
    display: block;
    padding: .65rem 0;
    color: #E3ECF5;
    font-weight: 500;
    border-top: 1px solid rgba(255,255,255,.08);
}
.site-nav-list a:hover,
.site-nav-list .current-menu-item > a { color: var(--teal); }

/* ---------- Хлебные крошки ---------- */
.crumbs { font-size: .88rem; color: var(--mute); padding: 1.4rem 0 .4rem; }
.crumbs a { color: #00917E; }
.crumbs a:hover { color: var(--navy); }
.crumbs-sep { color: var(--soft); margin: 0 .25rem; }

/* ---------- Раскладки ---------- */
.layout-single { display: block; padding-bottom: 3.5rem; }
.layout-single .content-area { margin-left: auto; margin-right: auto; }
.layout-with-sidebar { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.5rem; padding-bottom: 3.5rem; }
.content-area, .sidebar { min-width: 0; }

.page-heading, .entry-title { font-size: 1.9rem; margin: .6em 0 .5em; }

/* ---------- Заголовки секций ---------- */
.sec-title {
    position: relative;
    display: flex;
    align-items: center;
    margin: 0 0 2rem;
    font-size: 1.45rem;
}
.sec-title span { position: relative; padding-left: 1.3rem; }
.sec-title span::before {
    content: "";
    position: absolute;
    left: 0;
    top: .45em;
    width: .6rem;
    height: .6rem;
    background: var(--teal);
}
.entry-content h2 { position: relative; padding-left: 1.2rem; margin-left: -12px; }
.entry-content h2::before {
    content: "";
    position: absolute;
    left: 0;
    top: .5em;
    width: .5rem;
    height: .5rem;
    background: var(--teal);
}

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

.card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 6px;
    box-shadow: 0 4px 16px rgba(11,30,51,.08);
    overflow: hidden;
    min-width: 0;
    position: relative;
    transition: transform .25s ease, box-shadow .25s ease;
}
.card::before {
    content: "";
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 3px;
    background: var(--teal);
    opacity: 0;
    z-index: 2;
    transition: opacity .25s ease;
}
.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 22px rgba(11,30,51,.13);
}
.card:hover::before { opacity: 1; }
.card-thumb { border-bottom: 1px solid var(--bg-alt); background: var(--bg-alt); }
.card-thumb a { display: block; }
.card-thumb img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}
.card-body { flex: 1; display: flex; flex-direction: column; padding: 1.2rem 1.35rem 1.4rem; min-width: 0; }
.card-tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .7rem; }
.tag-chip {
    display: inline-block;
    font-size: .76rem;
    font-weight: 500;
    line-height: 1.3;
    padding: .22em .6em;
    background: var(--bg-alt);
    color: var(--navy);
    border: 1px solid var(--teal);
    border-radius: 2px;
    transition: background-color .2s ease;
}
.tag-chip:hover { background: var(--teal); color: var(--navy); }
.card-title { font-size: 1.05rem; margin: 0 0 .45rem; line-height: 1.4; overflow-wrap: anywhere; }
.card-title a { color: var(--navy); }
.card-title a:hover { color: #00917E; }
.card-meta { font-size: .82rem; color: var(--mute); margin-bottom: .6rem; }
.card-excerpt { font-size: .95rem; color: var(--ink); flex: 1; }
.card-excerpt p { margin: 0 0 0.5em; background: none; }
.card-more {
    align-self: flex-start;
    margin-top: .6rem;
    font-weight: 600;
    font-size: .92rem;
    color: #00917E;
    background-image: linear-gradient(currentColor, currentColor);
    background-repeat: no-repeat;
    background-position: 0 100%;
    background-size: 0 2px;
    transition: background-size .25s ease;
}
.card-more::after { content: " →"; }
.card-more:hover { background-size: 100% 2px; }

.empty-note { color: var(--mute); }

/* ---------- Пагинация ---------- */
.pager { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; margin: 2.5rem 0 0; }
.pager .page-numbers,
.pager .post-page-numbers {
    display: inline-block;
    min-width: 2.5rem;
    padding: .5em .8em;
    text-align: center;
    font-size: .92rem;
    font-weight: 500;
    color: var(--navy);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 4px;
    transition: background-color .2s ease, color .2s ease, transform .2s ease;
}
.pager a.page-numbers:hover,
.pager a.post-page-numbers:hover { background: var(--navy); color: #fff; transform: translateX(2px); }
.pager .page-numbers.current,
.pager .post-page-numbers.current { background: var(--teal); border-color: var(--teal); color: var(--navy); }
.pager .page-numbers.dots { border: 0; background: none; min-width: 0; }

/* ---------- Запись ---------- */
.entry-meta { font-size: .88rem; color: var(--mute); margin-bottom: 1.4rem; }
.entry-thumb { margin: 0 0 1.8rem; }
.entry-thumb img { display: block; width: 100%; border-radius: 6px; border: 1px solid var(--line); }
.entry-content { overflow-wrap: break-word; }
.entry-content ul, .entry-content ol { padding-left: 1.4em; margin: 0 0 1.2em; }
.entry-content li { margin-bottom: .35em; }
.entry-content img { border-radius: 4px; }
.entry-tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 2rem; }
.entry-tags a {
    font-size: .8rem; padding: .22em .6em; background: var(--bg-alt); color: var(--navy);
    border: 1px solid var(--teal); border-radius: 2px;
}
.entry-tags a:hover { background: var(--teal); }

/* ---------- Сайдбар ---------- */
.sidebar {
    background: var(--side);
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 1.5rem 1.4rem;
    align-self: start;
    color: var(--ink);
}
.sidebar .wgt + .wgt { margin-top: 1.8rem; }
.sidebar .wgt-title {
    font-size: .95rem;
    margin: 0 0 1rem;
    padding-left: 1rem;
    position: relative;
    color: var(--navy);
}
.sidebar .wgt-title::before { content: ""; position: absolute; left: 0; top: .42em; width: .45rem; height: .45rem; background: var(--teal); }
.sidebar ul { list-style: none; margin: 0; padding: 0; }
.sidebar li { padding: .6rem 0; border-bottom: 1px dashed var(--line); font-size: .94rem; line-height: 1.45; }
.sidebar li:last-child { border-bottom: 0; }
.sidebar a { color: var(--navy); }
.sidebar a:hover { color: #00917E; }
.sidebar .post-date { display: block; font-size: .8rem; color: var(--mute); margin-top: .2rem; }
.sidebar p, .sidebar .textwidget { color: var(--ink); }

/* ---------- Главная: общие секции ---------- */
.fs { padding: 3.5rem 0; }

/* Hero */
.fs-hero {
    background-color: var(--navy);
    background-image:
        radial-gradient(circle at 0 0, rgba(0,194,168,.28), transparent 45%),
        var(--grid-light);
    background-size: auto, 24px 24px, 24px 24px;
    color: #fff;
}
.fs-hero-inner { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.2rem; align-items: center; }
.fs-hero-text { min-width: 0; }
.fs-hero-title {
    color: #fff;
    font-size: 1.9rem;
    font-weight: 700;
    letter-spacing: .03em;
    line-height: 1.2;
    margin: 0 0 1.1rem;
}
.fs-hero-sub { color: var(--soft); font-size: 1.05rem; max-width: 36em; margin-bottom: 1.8rem; }
.fs-hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.fs-hero-art { min-width: 0; }
.fs-hero-art img { display: block; width: 100%; height: auto; aspect-ratio: 14 / 11; }

/* Шаги */
.fs-steps { background: var(--bg-alt); }
.steps { list-style: none; margin: 0; padding: 0; position: relative; }
.step {
    position: relative;
    display: flex;
    gap: 1.4rem;
    align-items: flex-start;
    padding: 1.4rem 0;
    border-bottom: 1px dashed var(--soft);
}
.step:last-child { border-bottom: 0; }
.step::before {
    content: "";
    position: absolute;
    left: 1.35rem;
    top: 4.6rem;
    bottom: -1.4rem;
    width: 2px;
    background: repeating-linear-gradient(180deg, var(--teal) 0 6px, transparent 6px 11px);
    opacity: .55;
}
.step:last-child::before { display: none; }
.step-num {
    flex: 0 0 2.8rem;
    font-family: var(--f-head);
    font-size: 3rem;
    font-weight: 700;
    line-height: 1;
    color: var(--teal);
    opacity: .6;
    text-align: center;
}
.step-body { min-width: 0; }
.step-title { margin: .2rem 0 .4rem; font-size: 1.1rem; color: var(--navy); }
.step-text { margin: 0; color: var(--mute); }

/* Разделитель */
.dash-divider { width: min(92%, 1240px); margin: 0 auto; padding: 1.2rem 0; }
.dash-divider span {
    display: block;
    width: 50%;
    margin: 0 auto;
    height: 8px;
    position: relative;
    background: linear-gradient(90deg, var(--teal) 50%, transparent 50%) repeat-x center / 12px 2px;
}
.dash-divider span::before,
.dash-divider span::after {
    content: "";
    position: absolute;
    top: 0;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--teal);
}
.dash-divider span::before { left: -4px; }
.dash-divider span::after { right: -4px; }

/* Последние записи */
.fs-latest { background: transparent; padding-top: 1.5rem; }
.fs-latest-more { margin-top: 2rem; text-align: center; }

/* Статистика */
.fs-stats { background: transparent; }
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.8rem 0; }
.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 1rem;
    min-width: 0;
}
.stat:nth-child(odd) { border-right: 1px solid var(--line); }
.stat-num {
    font-family: var(--f-head);
    font-size: 2.4rem;
    font-weight: 700;
    line-height: 1.1;
    color: var(--navy);
    letter-spacing: .02em;
}
.stat-label { margin-top: .5rem; font-size: .92rem; color: var(--mute); line-height: 1.45; }

/* CTA */
.fs-cta { padding: 3.5rem 0 4rem; }
.cta-plate {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
    padding: 2.2rem 1.6rem;
    border-radius: 6px;
    color: #fff;
    background-color: var(--navy);
    background-image:
        radial-gradient(circle at 0 0, rgba(0,194,168,.3), transparent 50%),
        var(--grid-light);
    background-size: auto, 24px 24px, 24px 24px;
    overflow: hidden;
}
.cta-marks { position: relative; width: 84px; height: 84px; flex: 0 0 auto; }
.cta-marks span { position: absolute; width: 22px; height: 22px; }
.cta-marks span:nth-child(1) { left: 0; top: 0; background: var(--teal); }
.cta-marks span:nth-child(2) { left: 31px; top: 31px; background: var(--coral); }
.cta-marks span:nth-child(3) { left: 62px; top: 62px; background: var(--soft); }
.cta-content { min-width: 0; }
.cta-title {
    font-family: var(--f-head);
    font-size: 1.3rem;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: .02em;
    color: #fff;
    margin: 0 0 1.5rem;
}

/* ---------- Поиск ---------- */
.seek { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1.2rem 0; }
.seek-label { width: 100%; font-size: .9rem; color: var(--mute); }
.seek-field {
    flex: 1 1 220px;
    min-width: 0;
    padding: .8em 1em;
    font: inherit;
    color: var(--ink);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 4px;
}
.seek-field:focus { outline: 2px solid var(--teal); outline-offset: 1px; }
.sidebar .seek-label { display: none; }

/* ---------- 404 ---------- */
.nf { text-align: left; padding-top: 1rem; }
.nf-code { font-family: var(--f-head); font-size: 5rem; font-weight: 700; color: var(--teal); line-height: 1; margin: 0; opacity: .7; }
.nf-text { color: var(--mute); }
.nf-home { margin-top: 1.5rem; }

/* ---------- Комментарии ---------- */
.talk { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.talk-title { font-size: 1.25rem; margin-top: 0; }
.talk-list, .talk-list .children { list-style: none; margin: 0; padding: 0; }
.talk-list .children { padding-left: 1.5rem; }
.talk-box { background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 1rem 1.2rem; margin-bottom: 1rem; }
.talk-head { display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; margin-bottom: .5rem; }
.talk-head img { border-radius: 4px; display: block; }
.talk-author { font-weight: 600; color: var(--navy); }
.talk-date { font-size: .82rem; color: var(--mute); }
.talk-wait { font-size: .88rem; color: var(--coral); }
.talk-reply a { font-size: .88rem; font-weight: 600; }
.comment-respond { margin-top: 1.5rem; }
.comment-reply-title { font-size: 1.15rem; }
.comment-form label { display: block; font-size: .9rem; margin-bottom: .3rem; color: var(--ink); }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: .7em .9em;
    font: inherit;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: #fff;
    color: var(--ink);
}
.comment-form p { margin-bottom: 1rem; }

/* ---------- Подвал ---------- */
.basement {
    background-color: var(--navy);
    background-image: var(--grid-light);
    background-size: 24px 24px;
    color: #C9D6E3;
    padding: 3rem 0 1.5rem;
    border-top: 4px solid var(--teal);
}
.basement-cols { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; }
.basement-col { min-width: 0; }
.basement .wgt-title {
    font-size: .92rem;
    color: #fff;
    margin: 0 0 1rem;
    padding-left: 1rem;
    position: relative;
}
.basement .wgt-title::before { content: ""; position: absolute; left: 0; top: .42em; width: .45rem; height: .45rem; background: var(--teal); }
.basement p, .basement .textwidget { color: #C9D6E3; font-size: .94rem; }
.basement ul { list-style: none; margin: 0; padding: 0; }
.basement li { padding: .3rem 0; font-size: .94rem; }
.basement a { color: #E3ECF5; }
.basement a:hover { color: var(--teal); }
.basement .post-date { color: var(--soft); font-size: .8rem; display: block; }
.basement-copy {
    margin-top: 2.5rem;
    padding-top: 1.3rem;
    border-top: 1px solid rgba(255,255,255,.1);
    font-size: .85rem;
    color: var(--soft);
}

/* ---------- Cookie ---------- */
.cookie-banner[hidden] { display: none !important; }
.cookie-banner {
    position: fixed;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: .9rem;
    padding: 1.1rem 1.3rem;
    background: var(--navy);
    color: #E3ECF5;
    border: 1px solid rgba(0,194,168,.5);
    border-left: 4px solid var(--teal);
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(11,30,51,.3);
}
.cookie-text { margin: 0; font-size: .9rem; line-height: 1.5; color: #E3ECF5; }
.cookie-accept { align-self: flex-start; }

/* ---------- Адаптив ---------- */
@media (min-width: 600px) {
    .cards-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .basement-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .fs { padding: 4.5rem 0; }
    .fs-hero-title { font-size: 2.4rem; }
    .cta-plate { flex-direction: row; align-items: center; padding: 3rem 2.6rem; gap: 2.6rem; }
    .cta-title { font-size: 1.55rem; }
    .cookie-banner { flex-direction: row; align-items: center; left: 50%; right: auto; transform: translateX(-50%); width: min(92%, 760px); }
    .cookie-accept { align-self: center; flex: 0 0 auto; }
}

@media (max-width: 599px) {
    body::after { width: 160px; height: 130px; }
    .fs { padding: 2.8rem 0; }
    .cta-plate { padding: 1.8rem 1.4rem; }
    .step-num { font-size: 2.4rem; flex-basis: 2.2rem; }
    .step::before { left: 1.1rem; top: 3.9rem; }
    .stat-num { font-size: 2rem; }
    h1, .page-heading, .entry-title { font-size: 1.6rem; }
}

@media (min-width: 960px) {
    h1, .page-heading, .entry-title { font-size: 3.2rem; overflow-wrap: break-word; }
    .nav-toggle { display: none; }
    .site-nav { display: block; width: auto; }
    .site-nav-list { flex-direction: row; gap: .3rem; padding: 0; }
    .site-nav-list a { border-top: 0; padding: .45rem .85rem; border-radius: 4px; }
    .site-nav-list a:hover { background: rgba(0,194,168,.12); }
    .brand-name { font-size: .88rem; }

    .layout-single .content-area { width: 85%; }
    .layout-with-sidebar { grid-template-columns: minmax(0, 67fr) minmax(0, 27fr); column-gap: 6%; }

    .home .fs > .shell,
    .home .dash-divider { width: min(85%, 1240px); }

    .fs-hero-inner { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 3rem; }
    .fs-hero-title { font-size: 3.2rem; }
    .fs-hero { padding: 5.5rem 0; }

    .cards-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .layout-with-sidebar .cards-grid-list,
    .layout-single .cards-grid-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }

    .step { gap: 2rem; padding: 1.8rem 0; }
    .step::before { top: 5rem; bottom: -1.8rem; }

    .sec-title { margin-left: -60px; }
    .sec-title::before {
        content: "";
        flex: 0 0 48px;
        height: 1px;
        background: var(--mute);
        margin-right: 12px;
    }

    .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .stat:nth-child(odd) { border-right: 0; }
    .stat + .stat { border-left: 1px solid var(--line); }
    .stat-num { font-size: 3.5rem; }

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