/*
Theme Name: dds_dormantdragons.com
Author: Артём Драго
Description: Тема для аналитического портала о виртуальной и токенизированной недвижимости. Холодная цифровая топография.
Version: 1.1
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: dds
*/

:root {
    --bg: #F4F7FA;
    --bg-alt: #E8EEF4;
    --dark: #0B1E2D;
    --dark-2: #1A3A4A;
    --side: #EDF2F7;
    --text: #0F1A24;
    --acc: #2D9CDB;
    --acc-2: #56CCF2;
    --acc-dark: #1F7BB5;
    --muted: #6B7F8E;
    --shell: min(92%, 1180px);
    --radius: 8px;
    --sans: "Inter", "Manrope", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    font-family: var(--sans);
    font-size: 17px;
    line-height: 1.75;
    color: var(--text);
    background-color: var(--bg);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='40' viewBox='0 0 120 40'%3E%3Cpath d='M0 20 Q 15 7 30 20 T 60 20 T 90 20 T 120 20' fill='none' stroke='%230B1E2D' stroke-opacity='0.03' stroke-width='1.2'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-position: top left;
}

body::after {
    content: "";
    position: fixed;
    right: -20px;
    bottom: -10px;
    width: 420px;
    height: 320px;
    z-index: -1;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='420' height='320' viewBox='0 0 420 320'%3E%3Cpath d='M30 250 C 90 240 120 200 150 170 C 175 145 200 120 240 115 C 270 111 290 130 300 150 C 315 140 330 120 325 95 C 350 110 360 145 345 175 C 380 185 400 215 395 250 C 370 230 345 225 320 232 C 300 260 265 280 225 275 C 180 270 150 250 120 262 C 90 274 55 270 30 250 Z' fill='none' stroke='%232D9CDB' stroke-opacity='0.5' stroke-width='2'/%3E%3Cpath d='M240 115 C 250 95 245 70 230 55' fill='none' stroke='%232D9CDB' stroke-opacity='0.5' stroke-width='2'/%3E%3Ccircle cx='318' cy='112' r='4' fill='%232D9CDB' fill-opacity='0.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
    opacity: 0.16;
}

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

.shell {
    width: var(--shell);
    margin-inline: auto;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--sans);
    font-weight: 700;
    line-height: 1.22;
    letter-spacing: -0.01em;
    color: var(--text);
    margin: 0 0 0.7em;
}

h1 { font-size: 3.2rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.15rem; }

.entry-content h2,
.section-title,
.block-title {
    position: relative;
    padding-left: 15px;
    margin-top: 2.2em;
}

.entry-content h2::before,
.section-title::before,
.block-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.12em;
    bottom: 0.12em;
    width: 3px;
    background: var(--acc);
}

p { margin: 0 0 1.1em; }

a {
    color: var(--acc);
    text-decoration: none;
    background-image: linear-gradient(currentColor, currentColor);
    background-repeat: no-repeat;
    background-position: 0 100%;
    background-size: 0 1px;
    transition: background-size 0.3s ease, color 0.2s ease;
}

a:hover { background-size: 100% 1px; }

.btn {
    display: inline-block;
    padding: 0.75em 1.7em;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.98rem;
    line-height: 1.3;
    background-image: none;
    border: 2px solid transparent;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-primary {
    background-color: var(--acc);
    color: #fff;
    box-shadow: 0 2px 8px rgba(11, 30, 45, 0.12);
}

.btn-primary:hover {
    background-color: var(--acc-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(11, 30, 45, 0.22);
    color: #fff;
}

.btn-ghost {
    background-color: transparent;
    border-color: var(--acc);
    color: var(--acc);
}

.btn-ghost:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(11, 30, 45, 0.14);
    background-color: var(--acc);
    color: #fff;
}

/* ---------- Шапка ---------- */

.site-head {
    background: var(--dark);
    color: #fff;
    padding: 1.6rem 0 1.4rem;
}

.head-inner {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    flex-wrap: wrap;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    min-width: 0;
    flex: 1 1 auto;
    background-image: none;
}

.brand:hover { background-size: 0 1px; }

.brand-logo { display: block; max-height: 60px; width: auto; }

.brand-mark { flex: 0 0 auto; display: block; }

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

.brand-name {
    display: block;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.35;
    color: #fff;
    max-width: 640px;
}

.brand-desc {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.82rem;
    line-height: 1.5;
    color: #9FB6C6;
    max-width: 640px;
}

.nav-toggle {
    display: none;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: #fff;
    border-radius: 6px;
    padding: 0.5em 0.9em;
    font: inherit;
    font-size: 0.9rem;
    cursor: pointer;
}

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

.main-nav a {
    color: #E4EDF4;
    font-size: 0.97rem;
    font-weight: 500;
}

.main-nav a:hover { color: var(--acc-2); }

.main-nav .current-menu-item > a { color: var(--acc-2); }

.head-rule {
    height: 4px;
    background: linear-gradient(90deg, var(--acc), var(--acc-2));
}

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

.breadcrumbs {
    font-size: 0.87rem;
    color: var(--muted);
    padding: 1.4rem 0 0.4rem;
}

.breadcrumbs a { color: var(--muted); }

.breadcrumbs a:hover { color: var(--acc); }

.breadcrumbs .sep { padding: 0 0.35rem; color: #A9BBC8; }

/* ---------- Раскладки ---------- */

.site-main { padding-bottom: 4rem; }

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

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

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

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

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

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

.card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: #fff;
    border: 1px solid transparent;
    border-radius: var(--radius);
    box-shadow: 0 4px 12px rgba(11, 30, 45, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(11, 30, 45, 0.1);
    border-color: var(--acc);
}

.card-thumb-wrap {
    overflow: hidden;
    border-radius: 0;
}

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

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

.card-thumb-empty {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, var(--dark), var(--dark-2));
}

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

.card-marks {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0.7rem;
}

.mark {
    display: inline-block;
    padding: 0.18em 0.7em;
    border-radius: 4px;
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: #fff;
    opacity: 0.9;
    background-image: none;
}

.mark:hover { opacity: 1; color: #fff; }

.mark-0 { background: var(--acc); }
.mark-1 { background: #3FA9C9; }
.mark-2 { background: #5C7C99; }
.mark-3 { background: #4C6FBF; }

.card-title {
    font-size: 1.2rem;
    margin: 0 0 0.6rem;
    line-height: 1.32;
}

.card-title a { color: var(--text); }

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

.card-excerpt {
    color: #3C4C59;
    font-size: 0.94rem;
    line-height: 1.65;
}

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

.card-foot {
    margin-top: auto;
    padding-top: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.card-date { font-size: 0.82rem; color: var(--muted); }

.card-more { font-size: 0.9rem; font-weight: 600; }

/* ---------- Главная ---------- */

.front-section { padding: 80px 0; }

.front-section.is-alt { background: var(--bg-alt); }

.dot-divider {
    height: 1px;
    background-image: radial-gradient(circle, rgba(45, 156, 219, 0.2) 1.2px, transparent 1.3px);
    background-size: 12px 2px;
    background-repeat: repeat-x;
    background-position: center;
    margin: 0;
}

.fs-hero {
    position: relative;
    overflow: hidden;
    padding: 96px 0;
    color: #fff;
    background-color: var(--dark);
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='40' viewBox='0 0 120 40'%3E%3Cpath d='M0 20 Q 15 7 30 20 T 60 20 T 90 20 T 120 20' fill='none' stroke='%2356CCF2' stroke-opacity='0.05' stroke-width='1.2'/%3E%3C/svg%3E"),
        linear-gradient(135deg, #0B1E2D 0%, #1A3A4A 100%);
    background-repeat: repeat, no-repeat;
}

.fs-hero::after {
    content: "";
    position: absolute;
    right: 2%;
    bottom: 0;
    width: 480px;
    height: 360px;
    pointer-events: none;
    opacity: 0.28;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='420' height='320' viewBox='0 0 420 320'%3E%3Cpath d='M30 250 C 90 240 120 200 150 170 C 175 145 200 120 240 115 C 270 111 290 130 300 150 C 315 140 330 120 325 95 C 350 110 360 145 345 175 C 380 185 400 215 395 250 C 370 230 345 225 320 232 C 300 260 265 280 225 275 C 180 270 150 250 120 262 C 90 274 55 270 30 250 Z' fill='none' stroke='%232D9CDB' stroke-width='2'/%3E%3Cpath d='M240 115 C 250 95 245 70 230 55' fill='none' stroke='%2356CCF2' stroke-width='2'/%3E%3Ccircle cx='318' cy='112' r='4' fill='%2356CCF2'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
}

.hero-body { position: relative; z-index: 1; max-width: 720px; }

.hero-kicker {
    display: inline-block;
    font-size: 0.78rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--acc-2);
    margin-bottom: 1.2rem;
}

.fs-hero h1 { color: #fff; margin-bottom: 0.5em; }

.hero-sub {
    font-size: 1.12rem;
    line-height: 1.7;
    color: var(--acc-2);
    margin-bottom: 2rem;
}

.hero-actions { display: flex; gap: 0.9rem; flex-wrap: wrap; }

.fs-stats .stats-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.stat-cell {
    min-width: 0;
    padding: 0 1.4rem;
    text-align: center;
    border-left: 1px solid rgba(11, 30, 45, 0.12);
}

.stat-cell:first-child { border-left: 0; }

.stat-num {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.1;
    color: var(--acc);
}

.stat-label {
    display: block;
    margin-top: 0.6rem;
    font-size: 0.9rem;
    color: var(--muted);
}

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

.icon-card {
    min-width: 0;
    background: #fff;
    border: 1px solid var(--bg-alt);
    border-radius: var(--radius);
    padding: 1.9rem 1.7rem;
    transition: border-color 0.25s ease, transform 0.25s ease;
}

.icon-card:hover { border-color: var(--acc); transform: translateY(-3px); }

.icon-card svg { display: block; margin-bottom: 1.1rem; }

.icon-card h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }

.icon-card p { font-size: 0.95rem; color: #3C4C59; margin: 0; }

.fs-quote {
    color: #fff;
    background-color: var(--dark);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='40' viewBox='0 0 120 40'%3E%3Cpath d='M0 20 Q 15 7 30 20 T 60 20 T 90 20 T 120 20' fill='none' stroke='%2356CCF2' stroke-opacity='0.05' stroke-width='1.2'/%3E%3C/svg%3E");
    background-repeat: repeat;
}

.quote-plate {
    border-left: 4px solid var(--acc-2);
    padding: 2.2rem 2.4rem;
    margin: 0;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 0 var(--radius) var(--radius) 0;
}

.quote-plate p {
    font-size: 1.55rem;
    line-height: 1.5;
    font-weight: 600;
    color: #fff;
    margin: 0 0 1.1rem;
}

.quote-author { font-size: 0.92rem; color: var(--muted); }

.front-lead {
    color: #3C4C59;
    font-size: 1.02rem;
    max-width: 780px;
    margin-bottom: 2.4rem;
}

.front-lead.is-flush { margin-bottom: 0; }

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

.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.2rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.section-head .section-title { margin: 0 0 0.3rem; }

/* ---------- Сайдбар и виджеты ---------- */

.sidebar {
    min-width: 0;
    background: var(--side);
    border-radius: var(--radius);
    padding: 1.6rem 1.5rem;
}

.sidebar .widget { margin-bottom: 1.8rem; }

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

.sidebar .widget-title {
    position: relative;
    padding-left: 13px;
    font-size: 1.08rem;
    margin: 0 0 1rem;
    color: var(--text);
}

.sidebar .widget-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.15em;
    bottom: 0.15em;
    width: 3px;
    background: var(--acc);
}

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

.sidebar li { padding: 0.5rem 0; border-bottom: 1px dashed rgba(11, 30, 45, 0.12); }

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

.sidebar a { color: var(--text); font-size: 0.95rem; }

.sidebar a:hover { color: var(--acc); }

.sidebar .post-date { display: block; font-size: 0.8rem; color: var(--muted); }

.sidebar p { color: #2C3A46; font-size: 0.94rem; }

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

.site-foot {
    background: var(--dark);
    color: #C6D6E2;
    padding: 3.4rem 0 1.8rem;
    margin-top: 3rem;
}

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

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

.site-foot .widget-title {
    position: relative;
    padding-left: 13px;
    font-size: 1.05rem;
    color: #fff;
    margin: 0 0 1rem;
}

.site-foot .widget-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.15em;
    bottom: 0.15em;
    width: 3px;
    background: var(--acc-2);
}

.site-foot p { color: #B9CBD8; font-size: 0.92rem; }

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

.site-foot li { padding: 0.4rem 0; }

.site-foot a { color: #9FD8F2; font-size: 0.93rem; }

.site-foot a:hover { color: var(--acc-2); }

.site-foot .post-date { display: block; font-size: 0.8rem; color: #7E95A5; }

.foot-bottom {
    margin-top: 2.6rem;
    padding-top: 1.4rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.85rem;
    color: #8AA1B1;
    line-height: 1.6;
}

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

.pager {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 2.6rem 0 0;
}

.pager .page-numbers {
    display: inline-block;
    padding: 0.5em 0.95em;
    border: 1px solid #D5E0E9;
    border-radius: 6px;
    background: #fff;
    background-image: none;
    color: var(--text);
    font-size: 0.93rem;
    line-height: 1.3;
    transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}

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

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

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

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

.entry-head { margin-bottom: 1.6rem; }

.entry-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    align-items: center;
    font-size: 0.86rem;
    color: var(--muted);
    margin-bottom: 0.9rem;
}

.entry-thumb { margin-bottom: 1.8rem; }

.entry-thumb img {
    display: block;
    width: 100%;
    border-radius: var(--radius);
    aspect-ratio: 16 / 7;
    object-fit: cover;
}

.entry-content img { border-radius: var(--radius); }

.entry-content ul, .entry-content ol { padding-left: 1.3rem; }

.entry-content li { margin-bottom: 0.4rem; }

.entry-content blockquote {
    margin: 1.8rem 0;
    padding: 1.4rem 1.6rem;
    background: var(--bg-alt);
    border-left: 4px solid var(--acc);
    border-radius: 0 var(--radius) var(--radius) 0;
}

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

table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.6rem 0;
    border: 1px solid #C7D5E0;
}

th, td {
    border: 1px solid #C7D5E0;
    padding: 0.65rem 0.85rem;
    text-align: left;
}

th { background: var(--bg-alt); font-weight: 700; }

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

.tags-line { margin-top: 2rem; font-size: 0.9rem; color: var(--muted); }

.tags-line a { margin-right: 0.5rem; }

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

.comments-area {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #D8E2EB;
}

.comment-list { list-style: none; margin: 0 0 2rem; padding: 0; }

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

.comment-item { margin-bottom: 1.2rem; }

.comment-inner {
    background: #fff;
    border-radius: var(--radius);
    padding: 1.2rem 1.4rem;
    box-shadow: 0 4px 12px rgba(11, 30, 45, 0.06);
}

.comment-head {
    display: flex;
    gap: 0.9rem;
    align-items: baseline;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
}

.comment-author { font-weight: 700; }

.comment-date { font-size: 0.82rem; color: var(--muted); }

.comment-hold { font-size: 0.86rem; color: var(--muted); }

.comment-actions { font-size: 0.88rem; }

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

.comment-form label { display: block; font-size: 0.9rem; margin-bottom: 0.3rem; }

/* ---------- Формы ---------- */

input[type="text"],
input[type="email"],
input[type="url"],
input[type="search"],
textarea {
    width: 100%;
    padding: 0.65em 0.9em;
    font: inherit;
    font-size: 0.95rem;
    color: var(--text);
    background: #fff;
    border: 1px solid #C7D5E0;
    border-radius: 6px;
}

input:focus, textarea:focus { outline: 2px solid var(--acc); outline-offset: 1px; }

input[type="submit"], button[type="submit"] {
    padding: 0.7em 1.6em;
    font: inherit;
    font-weight: 600;
    color: #fff;
    background: var(--acc);
    border: 0;
    border-radius: 6px;
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

input[type="submit"]:hover, button[type="submit"]:hover {
    background: var(--acc-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(11, 30, 45, 0.18);
}

.search-form {
    display: flex;
    gap: 0.6rem;
    align-items: stretch;
    flex-wrap: wrap;
}

.search-form label { flex: 1 1 220px; min-width: 0; margin: 0; }

/* ---------- 404 ---------- */

.err-block { padding: 2.4rem 0 3rem; }

.err-code {
    font-size: 4.4rem;
    font-weight: 700;
    line-height: 1;
    color: var(--acc);
    margin-bottom: 0.4rem;
}

.err-actions { margin-top: 1.6rem; }

/* ---------- Cookie-баннер ---------- */

.cookie-banner[hidden] { display: none !important; }

.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.2rem;
    flex-wrap: wrap;
    padding: 1rem 1.6rem;
    background: var(--dark);
    color: #D2E2EE;
    font-size: 0.9rem;
    box-shadow: 0 -4px 18px rgba(11, 30, 45, 0.25);
}

.cookie-banner p { margin: 0; max-width: 760px; color: #D2E2EE; }

.cookie-banner a { color: var(--acc-2); }

.cookie-banner .btn-primary { padding: 0.55em 1.4em; }

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

@media (max-width: 960px) {
    h1 { font-size: 2.3rem; }
    h2 { font-size: 1.7rem; }

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

    .layout-single { width: 100%; }

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

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

    .fs-stats .stats-row { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 2rem; }

    .stat-cell:nth-child(odd) { border-left: 0; }

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

    .fs-hero::after { opacity: 0.16; width: 320px; height: 240px; }

    body::after { display: none; }
}

@media (max-width: 600px) {
    body { font-size: 16px; }

    h1 { font-size: 1.95rem; }
    h2 { font-size: 1.45rem; }

    .front-section { padding: 52px 0; }

    .fs-hero { padding: 64px 0; }

    .nav-toggle { display: inline-block; order: 2; }

    .main-nav {
        order: 3;
        flex-basis: 100%;
        width: 100%;
    }

    .main-nav[hidden] { display: none !important; }

    .main-nav ul {
        flex-direction: column;
        gap: 0.2rem;
        padding-top: 0.8rem;
    }

    .main-nav li { border-top: 1px solid rgba(255, 255, 255, 0.08); padding: 0.55rem 0; }

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

    .fs-cards .cards-row { grid-template-columns: minmax(0, 1fr); }

    .fs-stats .stats-row { grid-template-columns: minmax(0, 1fr); row-gap: 1.6rem; }

    .stat-cell { border-left: 0; padding: 0; }

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

    .quote-plate { padding: 1.6rem 1.4rem; }

    .quote-plate p { font-size: 1.22rem; }

    .cookie-banner { padding: 1rem 1.2rem; text-align: left; }

    .brand-desc { display: none; }
}

@media (min-width: 601px) {
    .main-nav { display: block !important; }
}
