/*
Theme Name: dds_sbotopem.com
Theme URI: https://sbotopem.com/
Author: Дмитрий Волков
Author URI: https://sbotopem.com/
Description: Тема для информационного портала о недвижимости: каталог материалов, аналитика рынка, советы по выбору и обустройству жилья.
Version: 1.1
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: sbotop
*/

/* ---------- Базовые переменные ---------- */
:root {
    --bg: #F4F7F4;
    --bg-alt: #E8F0E8;
    --bg-alt-2: #D4E4D4;
    --head-bg: #1B3B2F;
    --foot-bg: #0F241C;
    --side-bg: #FFFFFF;
    --text: #1A2E24;
    --accent: #2E7D5B;
    --accent-dark: #1F5C42;
    --moss: #8FBC6D;
    --muted: #6B7F72;
    --line: #E0EAE0;
    --card-shadow: 0 4px 12px rgba(27, 59, 47, 0.08);
    --card-shadow-hover: 0 10px 22px rgba(27, 59, 47, 0.14);
    --font-head: "Montserrat", "Manrope", "Segoe UI", Arial, sans-serif;
    --font-body: "Inter", "Source Sans Pro", "Segoe UI", Arial, sans-serif;
}

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

html {
    background-color: var(--bg);
    background-image: repeating-linear-gradient(45deg, rgba(224, 234, 224, 0.3) 0 1px, transparent 1px 24px);
    scroll-behavior: smooth;
}

body {
    margin: 0;
    overflow-x: hidden;
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.7;
    color: var(--text);
}

/* декоративный силуэт кроны дерева в правом нижнем углу */
body::after {
    content: "";
    position: fixed;
    right: -40px;
    bottom: -30px;
    width: 420px;
    height: 420px;
    z-index: -1;
    pointer-events: none;
    opacity: 0.05;
    background-repeat: no-repeat;
    background-size: contain;
    background-position: right bottom;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cpath fill='%231B3B2F' d='M100 8c-22 0-40 16-43 37-17 4-30 19-30 37 0 8 3 16 7 22-10 7-16 18-16 31 0 21 17 38 38 38h29v19h10v-19h29c21 0 38-17 38-38 0-13-6-24-16-31 4-6 7-14 7-22 0-18-13-33-30-37-3-21-21-37-43-37z'/%3E%3C/svg%3E");
}

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

a { color: var(--accent); }

p { margin: 0 0 1.1em; }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-head);
    color: var(--text);
    line-height: 1.25;
    margin: 0 0 0.7em;
    font-weight: 700;
}

h1 { font-size: 2.8rem; }
h2 { font-size: 1.85rem; }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.15rem; }

/* точка-«бутон» слева от H2/H3 */
h2::before,
h3::before {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--moss);
    margin-right: 0.55em;
    vertical-align: middle;
    transition: width 0.2s ease, height 0.2s ease;
}
h2:hover::before,
h3:hover::before { width: 8px; height: 8px; }

/* ---------- Контейнер ---------- */
.shell { width: min(92%, 1180px); margin-inline: auto; }

/* ---------- Кнопки ---------- */
.btn {
    display: inline-block;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 0.97rem;
    padding: 0.78em 1.7em;
    border-radius: 8px;
    background: var(--accent);
    color: #fff;
    text-decoration: none;
    border: 1px solid var(--accent);
    cursor: pointer;
    transition: background 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease, color 0.22s ease;
}
.btn:hover,
.btn:focus {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(27, 59, 47, 0.22);
}
.btn-ghost {
    background: transparent;
    color: #fff;
    border: 1px solid #fff;
}
.btn-ghost:hover,
.btn-ghost:focus {
    background: #fff;
    border-color: #fff;
    color: var(--head-bg);
}

/* ---------- Ссылки с анимированным подчёркиванием ---------- */
.entry-content a,
.card-excerpt a,
.widget-area a,
.breadcrumbs a,
.card-title a {
    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;
}
.entry-content a:hover,
.card-excerpt a:hover,
.widget-area a:hover,
.breadcrumbs a:hover,
.card-title a:hover { background-size: 100% 1px; }

/* ---------- Верхняя полоса и шапка ---------- */
.topline {
    height: 4px;
    background: linear-gradient(90deg, var(--accent), var(--moss));
}

.site-top {
    background: var(--head-bg);
    color: #EAF2EA;
    padding: 1.1rem 0;
}
.site-top-in {
    display: flex;
    align-items: center;
    gap: 1.4rem;
    flex-wrap: wrap;
}
.brand {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    min-width: 0;
    flex: 1 1 320px;
    text-decoration: none;
    color: inherit;
}
.brand-logo { display: block; width: 52px; height: 52px; flex: 0 0 52px; }
.brand img.brand-logo { width: auto; max-width: 180px; height: auto; flex: 0 0 auto; }
.brand-text { min-width: 0; }
.brand-name {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 0.98rem;
    line-height: 1.35;
    color: #FFFFFF;
}
.brand-desc {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 0.8rem;
    line-height: 1.45;
    color: #A9C4B2;
    margin-top: 0.2rem;
}

.nav-toggle {
    display: none;
    background: transparent;
    border: 1px solid #4A6B5C;
    border-radius: 8px;
    color: #EAF2EA;
    font-family: var(--font-head);
    font-size: 0.9rem;
    padding: 0.5em 0.9em;
    cursor: pointer;
}

.main-nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 1.4rem;
    margin: 0;
    padding: 0;
}
.main-nav a {
    color: #EAF2EA;
    text-decoration: none;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 0.95rem;
    padding-bottom: 3px;
    border-bottom: 1px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
}
.main-nav a:hover,
.main-nav .current-menu-item > a { color: var(--moss); border-bottom-color: var(--moss); }

/* ---------- Раскладки ---------- */
.site-main { display: block; }
.page-wrap { padding: 2.4rem 0 3rem; }

.layout-with-sidebar {
    display: grid;
    grid-template-columns: minmax(0, 67fr) minmax(0, 27fr);
    column-gap: 6%;
    align-items: start;
}
.layout-single {
    width: 85%;
    margin-left: auto;
    margin-right: auto;
}
.content-area { min-width: 0; }

.sidebar {
    min-width: 0;
    background: var(--side-bg);
    border-radius: 12px;
    padding: 1.4rem 1.3rem;
    box-shadow: var(--card-shadow);
}

/* ---------- Хлебные крошки ---------- */
.breadcrumbs {
    font-size: 0.86rem;
    color: var(--muted);
    margin-bottom: 1.4rem;
    line-height: 1.6;
}
.breadcrumbs a { color: var(--accent); text-decoration: none; }
.breadcrumbs .sep { color: var(--moss); margin: 0 0.35em; }

/* ---------- Заголовок секции с чертой ---------- */
.section-head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 1.7rem;
}
.section-head .rule {
    flex: 0 0 40px;
    width: 40px;
    height: 2px;
    background: var(--moss);
}
.section-head h2 { margin: 0; }
.section-head .section-sub {
    flex: 1 1 100%;
    color: var(--muted);
    font-size: 0.95rem;
}

/* ---------- Разделитель между секциями ---------- */
.sep-mark {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    padding: 0;
    margin: 0 auto;
}
.sep-mark::before {
    content: "";
    width: 1px;
    height: 38px;
    background: repeating-linear-gradient(180deg, var(--moss) 0 4px, transparent 4px 10px);
}
.sep-mark::after {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--moss);
}

/* ---------- Карточки записей ---------- */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.6rem;
}
.cards-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.card {
    display: flex;
    flex-direction: column;
    background: #FFFFFF;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid transparent;
    box-shadow: var(--card-shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    min-width: 0;
}
.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--card-shadow-hover);
    border-color: var(--moss);
}
.card-thumb { display: block; }
.card-thumb img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}
.card-thumb-ph {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, var(--bg-alt), var(--bg-alt-2));
}
.card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 1.15rem 1.25rem 1.35rem;
    min-width: 0;
}
.card-meta {
    font-size: 0.79rem;
    color: var(--muted);
    margin-bottom: 0.5rem;
    letter-spacing: 0.02em;
}
.card-title {
    font-family: var(--font-head);
    font-size: 1.12rem;
    line-height: 1.35;
    margin: 0 0 0.6rem;
    font-weight: 700;
}
.card-title a { color: var(--text); text-decoration: none; }
.card-title a:hover { color: var(--accent); }
.card-excerpt { font-size: 0.93rem; color: #33463C; margin-bottom: 1rem; }
.card-excerpt p { margin: 0 0 0.5em; background: none; }
.card-more { margin-top: auto; }
.card-more a {
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--accent);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease;
}
.card-more a:hover { border-bottom-color: var(--accent); }

/* ---------- Главная ---------- */
.front-section { padding: 80px 0; }
.front-section.tight { padding-top: 0; }
.front-alt {
    background-color: var(--bg-alt);
    background-image:
        repeating-linear-gradient(45deg, rgba(196, 216, 196, 0.5) 0 1px, transparent 1px 24px),
        linear-gradient(180deg, var(--bg-alt), var(--bg-alt-2));
}

/* Блок 1 — hero */
.fs-hero {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    margin-top: 1.6rem;
    isolation: isolate;
}
.fs-hero img.hero-img {
    display: block;
    width: 100%;
    height: 100%;
    position: absolute;
    inset: 0;
    object-fit: cover;
    z-index: -2;
}
.fs-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(27, 59, 47, 0.6);
    z-index: -1;
}
.hero-inner {
    padding: 5.2rem 3rem;
    max-width: 720px;
    min-width: 0;
}
.hero-inner h1 { color: #FFFFFF; margin-bottom: 0.6rem; }
.hero-inner h1::before { background: var(--moss); }
.hero-sub {
    color: #CFE6D2;
    font-size: 1.1rem;
    margin-bottom: 1.8rem;
}

.more-row { margin-top: 1.8rem; }

/* Блок 2 — чек-лист */
.fs-check ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.9rem; }
.fs-check li {
    display: flex;
    align-items: flex-start;
    gap: 0.95rem;
    background: #FFFFFF;
    border-radius: 8px;
    box-shadow: var(--card-shadow);
    padding: 1.05rem 1.3rem;
    min-width: 0;
}
.fs-check .tick {
    flex: 0 0 26px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    margin-top: 2px;
}
.fs-check .tick svg { width: 13px; height: 13px; display: block; }
.fs-check strong {
    display: block;
    font-family: var(--font-head);
    font-size: 1.03rem;
    margin-bottom: 0.15rem;
}
.fs-check p { margin: 0; font-size: 0.93rem; color: #3A4E44; }

/* Блок 3 — статистика */
.fs-stats .stats-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
}
.fs-stats .stat {
    padding: 0.6rem 1.2rem;
    text-align: center;
    min-width: 0;
    border-right: 1px dashed var(--moss);
}
.fs-stats .stat:last-child { border-right: 0; }
.fs-stats .stat-num {
    font-family: var(--font-head);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--head-bg);
    line-height: 1.1;
}
.fs-stats .stat-label {
    color: var(--muted);
    font-size: 0.9rem;
    margin-top: 0.4rem;
}

/* Блок 4 — CTA */
.fs-cta {
    background-color: var(--head-bg);
    background-image: repeating-linear-gradient(45deg, rgba(46, 125, 91, 0.15) 0 10px, transparent 10px 22px);
    border-radius: 12px;
    padding: 3.2rem 2.6rem;
    color: #FFFFFF;
    text-align: center;
}
.fs-cta h2 { color: #FFFFFF; }
.fs-cta h2::before { background: var(--moss); }
.fs-cta p {
    color: #CFE6D2;
    max-width: 620px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1.7rem;
}

/* ---------- Запись и страницы ---------- */
.entry-header { margin-bottom: 1.4rem; }
.entry-title { margin-bottom: 0.5rem; }
.entry-meta { color: var(--muted); font-size: 0.87rem; }
.entry-thumb { margin: 0 0 1.6rem; }
.entry-thumb img { display: block; width: 100%; border-radius: 12px; }
.entry-content { min-width: 0; }
.entry-content img { border-radius: 10px; }
.entry-content ul, .entry-content ol { padding-left: 1.3rem; }
.entry-content li { margin-bottom: 0.45em; }
.entry-content blockquote {
    margin: 1.6rem 0;
    padding: 1.3rem 1.5rem;
    background: var(--bg-alt);
    border-left: 4px solid var(--moss);
    border-radius: 8px;
}
.entry-content blockquote p:last-child { margin-bottom: 0; }

.entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    border: 1px solid #C6D6C6;
}
.entry-content th,
.entry-content td {
    border: 1px solid #C6D6C6;
    padding: 0.6rem 0.8rem;
    text-align: left;
}
.entry-content th { background: var(--bg-alt); font-family: var(--font-head); }

.table-scroll { overflow-x: auto; }

.entry-tags { margin-top: 1.6rem; font-size: 0.87rem; }
.entry-tags a {
    display: inline-block;
    background: var(--bg-alt);
    color: #2B4A3C;
    border-radius: 8px;
    padding: 0.25em 0.7em;
    margin: 0 0.35em 0.4em 0;
    text-decoration: none;
}
.entry-tags a:hover { background: var(--moss); color: #142A20; }

.archive-head { margin-bottom: 1.8rem; }
.archive-title { font-size: 2rem; margin-bottom: 0.3rem; }
.archive-desc { color: var(--muted); }

.no-posts {
    background: #fff;
    border-radius: 12px;
    padding: 1.8rem 1.6rem;
    box-shadow: var(--card-shadow);
}

/* ---------- Пагинация ---------- */
.pager {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 2.2rem;
    align-items: center;
}
.pager .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 0.8em;
    border-radius: 8px;
    background: #FFFFFF;
    border: 1px solid #D6E3D6;
    color: var(--text);
    font-family: var(--font-head);
    font-size: 0.92rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.pager .page-numbers:hover { background: var(--bg-alt); border-color: var(--moss); }
.pager .page-numbers.current {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}
.pager .page-numbers.dots { background: transparent; border-color: transparent; }

/* ---------- Виджеты ---------- */
.widget { margin-bottom: 1.8rem; }
.widget:last-child { margin-bottom: 0; }
.widget-title {
    font-family: var(--font-head);
    font-size: 1.08rem;
    margin: 0 0 0.9rem;
    font-weight: 700;
}
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget li { margin-bottom: 0.65rem; line-height: 1.5; }
.widget li:last-child { margin-bottom: 0; }

/* сайдбар: светлый фон — тёмный текст */
.sidebar .widget-title { color: var(--text); }
.sidebar .widget { color: #2B3F35; font-size: 0.95rem; }
.sidebar .widget a { color: #24493A; text-decoration: none; }
.sidebar .widget a:hover { color: var(--accent); }
.sidebar .widget .post-date,
.sidebar .widget .rss-date { display: block; color: var(--muted); font-size: 0.8rem; }

/* ---------- Подвал ---------- */
.site-foot {
    background: var(--foot-bg);
    color: #C6DACB;
    padding: 3rem 0 1.6rem;
}
.foot-cols {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
}
.foot-col { min-width: 0; }
.site-foot .widget-title { color: #FFFFFF; }
.site-foot .widget { color: #C6DACB; font-size: 0.93rem; }
.site-foot .widget a { color: #C6DACB; text-decoration: none; }
.site-foot .widget a:hover { color: var(--moss); }
.site-foot .widget .post-date { display: block; color: #8FA79A; font-size: 0.8rem; }
.foot-bottom {
    margin-top: 2.4rem;
    padding-top: 1.2rem;
    border-top: 1px solid #1E3A2E;
    font-size: 0.85rem;
    color: #8FA79A;
    line-height: 1.6;
}

/* ---------- Формы поиска и комментариев ---------- */
.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    white-space: nowrap;
}

.search-form {
    display: flex;
    gap: 0.55rem;
    min-width: 0;
}
.search-form input[type="search"] {
    flex: 1 1 auto;
    min-width: 0;
    padding: 0.65em 0.9em;
    border: 1px solid #C6D6C6;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 0.93rem;
    background: #fff;
    color: var(--text);
}
.search-form input[type="search"]:focus { outline: 2px solid var(--moss); outline-offset: 1px; }
.search-form button {
    flex: 0 0 auto;
    border: 0;
    border-radius: 8px;
    background: var(--accent);
    color: #fff;
    font-family: var(--font-head);
    font-weight: 600;
    padding: 0.65em 1.1em;
    cursor: pointer;
    transition: background 0.2s ease;
}
.search-form button:hover { background: var(--accent-dark); }
.site-foot .search-form input[type="search"] { background: #16302479; color: #EAF2EA; border-color: #2A4A3B; }

.comments-area {
    margin-top: 2.6rem;
    background: #FFFFFF;
    border-radius: 12px;
    padding: 1.6rem 1.6rem 1.8rem;
    box-shadow: var(--card-shadow);
}
.comment-list { list-style: none; margin: 0 0 1.6rem; padding: 0; }
.comment-list ul.children { list-style: none; margin: 1rem 0 0 1.2rem; padding: 0; }
.comment-body {
    border-bottom: 1px dashed #D6E3D6;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}
.comment-author-name { font-family: var(--font-head); font-weight: 600; }
.comment-date { color: var(--muted); font-size: 0.83rem; }
.comment-text { margin-top: 0.5rem; }
.comment-reply-link { font-size: 0.85rem; color: var(--accent); text-decoration: none; }
.comment-form label { display: block; font-size: 0.88rem; margin-bottom: 0.3rem; }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 0.6em 0.8em;
    border: 1px solid #C6D6C6;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    background: #fff;
    color: var(--text);
}
.comment-form .form-submit input[type="submit"] {
    border: 0;
    border-radius: 8px;
    background: var(--accent);
    color: #fff;
    font-family: var(--font-head);
    font-weight: 600;
    padding: 0.75em 1.6em;
    cursor: pointer;
    transition: background 0.2s ease;
}
.comment-form .form-submit input[type="submit"]:hover { background: var(--accent-dark); }

/* ---------- 404 ---------- */
.page-404 {
    background: #FFFFFF;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    padding: 2.6rem 2.2rem;
    text-align: center;
}
.page-404 .code {
    font-family: var(--font-head);
    font-size: 4.6rem;
    font-weight: 700;
    color: var(--moss);
    line-height: 1;
}
.page-404 .screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    white-space: nowrap;
}

.search-form { max-width: 460px; margin: 1.6rem auto 1.4rem; }

/* ---------- Cookie-баннер ---------- */
.cookie-banner[hidden] { display: none !important; }
.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    background: var(--head-bg);
    color: #DCEADF;
    padding: 1rem 1.4rem;
    box-shadow: 0 -4px 18px rgba(15, 36, 28, 0.25);
}
.cookie-in {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.2rem;
    flex-wrap: wrap;
    width: min(92%, 1180px);
    margin-inline: auto;
}
.cookie-in p { margin: 0; font-size: 0.9rem; min-width: 0; }
.cookie-in a { color: var(--moss); }

/* ---------- Адаптив ---------- */
@media (max-width: 960px) {
    h1 { font-size: 2.1rem; }
    h2 { font-size: 1.55rem; }
    .layout-with-sidebar { grid-template-columns: minmax(0, 1fr); row-gap: 2rem; }
    .layout-single { width: 100%; }
    .cards-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .brand-desc { display: none; }
    .hero-inner { padding: 3.6rem 2rem; }
    .fs-stats .stats-row { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 1.6rem; }
    .fs-stats .stat:nth-child(2n) { border-right: 0; }
}

@media (max-width: 600px) {
    body { font-size: 16px; }
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.35rem; }
    .front-section { padding: 52px 0; }
    .site-top-in { position: relative; }
    .nav-toggle { display: inline-block; margin-left: auto; }
    .main-nav {
        flex: 1 1 100%;
        display: none;
        padding-top: 0.9rem;
    }
    .main-nav.is-open { display: block; }
    .main-nav ul { flex-direction: column; gap: 0.8rem; }
    .cards-grid { grid-template-columns: minmax(0, 1fr); }
    .foot-cols { grid-template-columns: minmax(0, 1fr); }
    .hero-inner { padding: 2.6rem 1.4rem; }
    .fs-cta { padding: 2rem 1.4rem; }
    .fs-stats .stats-row { grid-template-columns: minmax(0, 1fr); }
    .fs-stats .stat { border-right: 0; border-bottom: 1px dashed var(--moss); padding-bottom: 1.2rem; }
    .fs-stats .stat:last-child { border-bottom: 0; }
    .sidebar { padding: 1.2rem 1.1rem; }
    .comments-area { padding: 1.2rem 1.1rem 1.4rem; }
    .page-404 { padding: 1.8rem 1.2rem; }
}
