/*
Theme Name: dds_norwinboniao.com
Author: Артём Захаров
Description: Тёмная тема для информационно-аналитического портала о безопасных сделках с недвижимостью.
Version: 1.1
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: nwsafe
*/

:root {
    --bg: #0F172A;
    --bg-alt: #1E293B;
    --bg-head: #0B1120;
    --bg-foot: #080D1A;
    --bg-side: #141E33;
    --text: #E2E8F0;
    --accent: #38BDF8;
    --accent-2: #A78BFA;
    --muted: #94A3B8;
    --line: #2D3B55;
    --link: #7DD3FC;
    --glass: rgba(30, 41, 59, 0.55);
    --shadow: 0 10px 30px rgba(56, 189, 248, 0.08);
    --font-head: "Inter Tight", "Space Grotesk", "Segoe UI Semibold", "Arial Narrow", system-ui, sans-serif;
    --font-body: "Inter", "IBM Plex Sans", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding-top: 3px;
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--text);
    background-color: var(--bg);
    background-image:
        linear-gradient(rgba(226, 232, 240, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(226, 232, 240, 0.03) 1px, transparent 1px);
    background-size: 24px 24px;
    overflow-x: hidden;
}

body::after {
    content: "";
    position: fixed;
    right: -40px;
    bottom: -40px;
    width: 420px;
    height: 420px;
    pointer-events: none;
    z-index: 0;
    opacity: 0.03;
    background-repeat: no-repeat;
    background-size: contain;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 120'%3E%3Cpath d='M50 2 6 20v42c0 30 20 48 44 56 24-8 44-26 44-56V20z' fill='%2338BDF8'/%3E%3C/svg%3E");
}

.top-ribbon {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    z-index: 120;
    background: linear-gradient(90deg, #38BDF8, #A78BFA);
}

.shell {
    width: min(92%, 1180px);
    margin-inline: auto;
    position: relative;
    z-index: 1;
}

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

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

.entry-content a,
.widget a,
.trail a,
.site-footer a {
    position: relative;
}

.entry-content a::after,
.widget a::after,
.site-footer a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width 0.25s ease;
}

.entry-content a:hover::after,
.widget a:hover::after,
.site-footer a:hover::after {
    width: 100%;
}

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

h1 {
    font-size: 3.2rem;
}

h2 {
    font-size: 2rem;
    position: relative;
    padding-left: 1.1rem;
}

h2::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.62em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 10px 2px rgba(56, 189, 248, 0.6);
}

h3 {
    font-size: 1.4rem;
}

p {
    margin: 0 0 1.1em;
}

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

blockquote {
    margin: 1.6rem 0;
    padding: 1.4rem 1.6rem;
    background: var(--glass);
    border-left: 3px solid var(--accent);
    border-radius: 10px;
    color: #CBD5E1;
}

code, pre {
    font-family: "JetBrains Mono", "Consolas", monospace;
    background: #0B1120;
    color: #BAE6FD;
    border-radius: 6px;
}

code {
    padding: 0.1em 0.35em;
}

pre {
    padding: 1rem;
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.4rem 0;
    border: 1px solid var(--line);
}

th, td {
    border: 1px solid var(--line);
    padding: 0.7rem 0.9rem;
    text-align: left;
}

th {
    background: #16233B;
    font-family: var(--font-head);
}

/* --- Секционный заголовок с светящейся линией ----------------------------- */

.section-title {
    position: relative;
    padding-left: 1.4rem;
    margin-bottom: 1.6rem;
}

.section-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.18em;
    bottom: 0.18em;
    width: 2px;
    height: auto;
    background: var(--accent);
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.7);
    border-radius: 2px;
}

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

.btn {
    display: inline-block;
    padding: 0.8rem 1.6rem;
    border-radius: 10px;
    font-family: var(--font-head);
    font-size: 1rem;
    border: 1px solid transparent;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.btn-fill {
    background: var(--accent);
    color: #06121F;
}

.btn-fill:hover {
    background: #7DD3FC;
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(56, 189, 248, 0.35);
}

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

.btn-ghost:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(56, 189, 248, 0.25);
    background: rgba(56, 189, 248, 0.08);
    color: #BAE6FD;
}

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

.site-header {
    position: relative;
    background: rgba(11, 17, 32, 0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
    padding: 1.4rem 0;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.4rem;
    flex-wrap: wrap;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    min-width: 0;
    max-width: 640px;
}

.brand-logo,
.brand-mark {
    flex: 0 0 auto;
    display: block;
    width: 52px;
    height: 52px;
}

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

.brand-name {
    display: block;
    font-family: var(--font-head);
    font-size: 1.05rem;
    font-weight: 600;
    color: #F1F5F9;
    line-height: 1.35;
    max-height: 2.7em;
    overflow: hidden;
}

.brand-desc {
    display: block;
    font-size: 0.8rem;
    color: var(--muted);
    line-height: 1.45;
    max-height: 2.9em;
    overflow: hidden;
}

.nav-toggle {
    display: none;
    background: transparent;
    border: 1px solid var(--line);
    border-radius: 10px;
    color: var(--text);
    padding: 0.55rem 0.9rem;
    font-family: var(--font-head);
    cursor: pointer;
}

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

.main-nav a {
    color: var(--text);
    font-family: var(--font-head);
    font-size: 1rem;
    position: relative;
    padding-bottom: 3px;
}

.main-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.25s ease;
}

.main-nav a:hover::after,
.main-nav .current-menu-item > a::after {
    width: 100%;
}

/* --- Основная раскладка --------------------------------------------------- */

.site-main {
    padding: 2.6rem 0 3.4rem;
    position: relative;
    z-index: 1;
}

.layout-with-sidebar {
    display: grid;
    grid-template-columns: 67% 27%;
    justify-content: space-between;
    gap: 2rem;
    align-items: start;
}

.layout-with-sidebar > * {
    min-width: 0;
}

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

.trail {
    font-size: 0.85rem;
    color: var(--muted);
    margin-bottom: 1.4rem;
}

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

.trail a:hover {
    color: var(--accent);
}

.trail-sep {
    color: var(--line);
    margin: 0 0.25rem;
}

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

.page-head h1 {
    font-size: 2.5rem;
    margin-bottom: 0.4rem;
}

.page-head .page-sub {
    color: var(--muted);
    margin: 0;
}

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

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
    gap: 1.6rem;
}

.card {
    display: flex;
    flex-direction: column;
    background: var(--glass);
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
    box-shadow: 0 16px 36px rgba(56, 189, 248, 0.18);
}

.card-thumb {
    display: block;
    overflow: hidden;
    border-radius: 14px 14px 0 0;
}

.card-thumb img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.card:hover .card-thumb img {
    transform: scale(1.04);
}

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

.card-title {
    font-size: 1.22rem;
    margin: 0;
}

.card-title a {
    color: #F1F5F9;
}

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

.card-meta {
    font-size: 0.8rem;
    color: var(--muted);
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.card-excerpt {
    color: #CBD5E1;
    font-size: 0.95rem;
}

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

.card-more {
    margin-top: auto;
    align-self: flex-start;
    font-family: var(--font-head);
    color: var(--accent);
}

.tag-chip {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    font-size: 0.75rem;
    background: var(--bg-alt);
    color: var(--accent-2);
    border: 1px solid var(--accent-2);
    border-radius: 6px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.tag-chip:hover {
    background: var(--accent-2);
    color: #14101F;
}

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

.pager {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 2.4rem;
}

.pager .page-numbers {
    display: inline-block;
    padding: 0.5rem 0.9rem;
    border: 1px solid var(--line);
    border-radius: 10px;
    color: var(--text);
    font-family: var(--font-head);
    background: rgba(30, 41, 59, 0.45);
    transition: border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.pager a.page-numbers:hover {
    border-color: var(--accent);
    color: var(--accent);
    box-shadow: 0 6px 16px rgba(56, 189, 248, 0.2);
}

.pager .page-numbers.current {
    background: var(--accent);
    border-color: var(--accent);
    color: #06121F;
}

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

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

.sidebar {
    background: rgba(20, 30, 51, 0.85);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 1.4rem 1.5rem;
}

.sidebar .widget + .widget {
    margin-top: 1.8rem;
}

.sidebar .widget-title {
    font-size: 1.1rem;
    color: #F1F5F9;
    padding-left: 0.9rem;
    position: relative;
    margin-bottom: 0.9rem;
}

.sidebar .widget-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.5em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 10px 2px rgba(56, 189, 248, 0.6);
}

.sidebar .widget,
.sidebar .widget p,
.sidebar .widget li {
    color: #CBD5E1;
}

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

.sidebar .widget li {
    padding: 0.45rem 0;
    border-bottom: 1px dashed rgba(45, 59, 85, 0.9);
}

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

.sidebar .widget a {
    color: var(--link);
}

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

.sidebar .post-date,
.sidebar .widget .rss-date {
    color: var(--muted);
    font-size: 0.8rem;
}

.search-form {
    display: flex;
    gap: 0.5rem;
}

.search-form input[type="search"] {
    flex: 1;
    min-width: 0;
    padding: 0.65rem 0.8rem;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: #0B1120;
    color: var(--text);
}

.search-form input[type="search"]:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.2);
}

.search-form button {
    padding: 0.65rem 1.1rem;
    border-radius: 10px;
    border: none;
    background: var(--accent);
    color: #06121F;
    font-family: var(--font-head);
    cursor: pointer;
}

.search-form button:hover {
    background: #7DD3FC;
}

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

.entry {
    background: var(--glass);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 2rem 2.2rem 2.4rem;
    box-shadow: var(--shadow);
}

.entry-header {
    margin-bottom: 1.4rem;
}

.entry-header h1 {
    font-size: 2.6rem;
    margin-bottom: 0.5rem;
}

.entry-meta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    font-size: 0.85rem;
    color: var(--muted);
}

.entry-thumb {
    margin: 0 0 1.6rem;
}

.entry-thumb img {
    display: block;
    width: 100%;
    border-radius: 12px;
}

.entry-content h2 {
    margin-top: 2rem;
}

.entry-content img {
    border-radius: 12px;
    display: block;
}

.entry-tags {
    margin-top: 2rem;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

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

.comments-area {
    margin-top: 2.4rem;
    background: var(--glass);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 1.8rem 2rem 2rem;
}

.comments-title,
.comment-reply-title {
    font-size: 1.5rem;
}

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

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

.comment-inner {
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 1rem 1.2rem;
    margin-bottom: 1rem;
    background: rgba(11, 17, 32, 0.5);
}

.comment-head {
    display: flex;
    gap: 0.8rem;
    align-items: baseline;
    margin-bottom: 0.4rem;
}

.comment-author {
    font-family: var(--font-head);
    color: #F1F5F9;
}

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

.comment-actions a {
    font-size: 0.85rem;
}

.comment-form label {
    display: block;
    font-size: 0.85rem;
    color: var(--muted);
    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.65rem 0.8rem;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: #0B1120;
    color: var(--text);
    font-family: var(--font-body);
    margin-bottom: 1rem;
}

.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: var(--accent);
}

.comment-form .submit {
    padding: 0.75rem 1.6rem;
    border: none;
    border-radius: 10px;
    background: var(--accent);
    color: #06121F;
    font-family: var(--font-head);
    cursor: pointer;
}

.comment-form .submit:hover {
    background: #7DD3FC;
}

.no-results {
    color: var(--muted);
}

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

.front-col {
    width: 85%;
    margin-left: auto;
    margin-right: auto;
}

.fs {
    margin-bottom: 4rem;
    padding: 2.6rem 2.2rem;
    border-radius: 16px;
}

.fs-plain {
    padding: 0;
    background: none;
}

.fs-alt {
    background-color: var(--bg-alt);
    background-image: repeating-linear-gradient(45deg, rgba(226, 232, 240, 0.04) 0 1px, transparent 1px 14px);
    border: 1px solid var(--line);
}

.divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    margin: -2rem 0 2.4rem;
}

.divider::before,
.divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background-image: linear-gradient(90deg, rgba(56, 189, 248, 0.3) 0 4px, transparent 4px 10px);
    background-size: 10px 1px;
}

.divider span {
    width: 8px;
    height: 8px;
    background: rgba(56, 189, 248, 0.5);
    transform: rotate(45deg);
}

/* --- Блок 1: hero ------------------------------------------------------------ */

.fs-hero {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--line);
    padding: 4.4rem 2.6rem;
    background-color: #0B1120;
}

.fs-hero .hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.55;
    z-index: 0;
}

.fs-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, rgba(11, 17, 32, 0.95) 25%, rgba(11, 17, 32, 0.55) 100%);
    z-index: 1;
}

.hero-inner {
    position: relative;
    z-index: 2;
    max-width: 60%;
    text-align: left;
}

.hero-inner h1 {
    margin-bottom: 0.8rem;
}

.hero-sub {
    color: #CBD5E1;
    font-size: 1.1rem;
    margin-bottom: 1.8rem;
}

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

.hero-shield {
    position: absolute;
    right: 1.6rem;
    bottom: 1.2rem;
    width: 170px;
    height: 200px;
    z-index: 2;
    opacity: 0.5;
    filter: drop-shadow(0 0 16px rgba(56, 189, 248, 0.55));
}

/* --- Блок 2: статистика -------------------------------------------------------- */

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

.stat-cell {
    padding: 1.6rem 1.4rem;
    background: rgba(30, 41, 59, 0.5);
    backdrop-filter: blur(8px);
    border: 1px solid var(--line);
    border-right: none;
    min-width: 0;
}

.stat-cell:first-child {
    border-radius: 14px 0 0 14px;
}

.stat-cell:last-child {
    border-right: 1px solid var(--line);
    border-radius: 0 14px 14px 0;
}

.stat-num {
    display: block;
    font-family: var(--font-head);
    font-size: 2.4rem;
    line-height: 1.1;
    color: var(--accent);
}

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

/* --- Блок 3: шаги ---------------------------------------------------------------- */

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

.step-item {
    display: flex;
    gap: 1.6rem;
    align-items: flex-start;
    padding: 1.6rem 0;
    border-bottom: 1px dashed rgba(56, 189, 248, 0.3);
    min-width: 0;
}

.step-item:last-child {
    border-bottom: none;
}

.step-num {
    flex: 0 0 auto;
    font-family: "JetBrains Mono", "Consolas", monospace;
    font-size: 3rem;
    line-height: 1;
    color: var(--accent);
    opacity: 0.2;
}

.step-body {
    min-width: 0;
}

.step-body h3 {
    margin-bottom: 0.4rem;
}

.step-body p {
    margin: 0;
    color: #CBD5E1;
}

/* --- Блок 4: FAQ -------------------------------------------------------------------- */

.faq-item {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(8px);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 1.1rem 1.4rem;
    margin-bottom: 0.9rem;
}

.faq-item[open] {
    border-left: 3px solid var(--accent);
}

.faq-item summary {
    list-style: none;
    cursor: pointer;
    font-family: var(--font-head);
    font-size: 1.1rem;
    color: #F1F5F9;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: "+";
    color: var(--accent);
    font-size: 1.5rem;
    line-height: 1;
    flex: 0 0 auto;
}

.faq-item[open] summary::after {
    content: "–";
}

.faq-answer {
    margin: 0.8rem 0 0;
    color: var(--muted);
}

/* --- Последние записи на главной -------------------------------------------------- */

.latest-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

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

.site-footer {
    background: var(--bg-foot);
    border-top: 1px solid var(--line);
    padding: 3rem 0 1.6rem;
    position: relative;
    z-index: 1;
}

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

.site-footer .widget-title {
    font-size: 1.05rem;
    color: #F1F5F9;
    margin-bottom: 0.9rem;
}

.site-footer .widget,
.site-footer .widget p,
.site-footer .widget li {
    color: #B6C2D4;
    font-size: 0.95rem;
}

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

.site-footer .widget li {
    padding: 0.3rem 0;
}

.site-footer .widget a {
    color: var(--link);
}

.site-footer .widget a:hover {
    color: var(--accent);
}

.footer-bottom {
    margin-top: 2.4rem;
    padding-top: 1.2rem;
    border-top: 1px solid rgba(45, 59, 85, 0.7);
    color: var(--muted);
    font-size: 0.85rem;
    line-height: 1.5;
}

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

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

.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 130;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.2rem;
    flex-wrap: wrap;
    padding: 1rem 1.6rem;
    background: rgba(11, 17, 32, 0.96);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--accent);
    color: #CBD5E1;
    font-size: 0.9rem;
}

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

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

.error-box {
    text-align: center;
    padding: 3rem 2rem;
    background: var(--glass);
    border: 1px solid var(--line);
    border-radius: 14px;
}

.error-box .search-form {
    max-width: 440px;
    margin: 1.6rem auto;
}

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

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

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

    .layout-single,
    .front-col {
        width: 100%;
    }

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

    .stat-cell {
        border-right: 1px solid var(--line);
        border-radius: 12px;
        margin-bottom: 0.8rem;
    }

    .stat-cell:first-child,
    .stat-cell:last-child {
        border-radius: 12px;
    }

    .hero-inner {
        max-width: 100%;
    }

    .hero-shield {
        display: none;
    }

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

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

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.6rem;
    }

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

    .main-nav {
        width: 100%;
        display: none;
    }

    .main-nav.nav-open {
        display: block;
    }

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

    .fs {
        padding: 1.8rem 1.4rem;
        margin-bottom: 3rem;
    }

    .fs-plain {
        padding: 0;
    }

    .fs-hero {
        padding: 2.6rem 1.4rem;
    }

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

    .step-item {
        gap: 1rem;
    }

    .step-num {
        font-size: 2.2rem;
    }

    .entry,
    .comments-area {
        padding: 1.4rem 1.2rem 1.6rem;
    }

    .entry-header h1 {
        font-size: 1.9rem;
    }

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

    .sidebar {
        padding: 1.2rem 1.2rem;
    }
}
