/*
Theme Name: dds_socialsecuritydisability-benefits.com
Theme URI: https://socialsecuritydisability-benefits.com/
Author: Анна Соколова
Description: Информационная тема для портала о жилищных льготах, субсидиях и социальных выплатах для инвалидов и пенсионеров. Швейцарская модульная сетка с яркими поп-акцентами.
Version: 1.1
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: zhilsub
*/

/* ============ Переменные ============ */
:root {
    --bg: #FFFFFF;
    --alt: #F4F6FB;
    --navy: #0B1B3A;
    --ink: #111827;
    --accent: #E63946;
    --teal: #2A9D8F;
    --muted: #6B7280;
    --line: #E5E7EB;
    --grid-line: #D1D5DB;
    --shell: min(92%, 1180px);
}

/* ============ Служебные правила скрытия ============ */
.cookie-banner[hidden] { display: none !important; }
[hidden] { display: none !important; }

/* ============ База ============ */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    overflow-x: hidden;
    color: var(--ink);
    background-color: var(--bg);
    background-image: repeating-linear-gradient(45deg, var(--line) 0, var(--line) 1px, transparent 1px, transparent 24px);
    font-family: Inter, "Source Sans 3", "Helvetica Neue", Arial, sans-serif;
    font-size: 17px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

body::before {
    content: "";
    position: fixed;
    top: -120px;
    right: -140px;
    width: 460px;
    height: 460px;
    border-radius: 50%;
    background: var(--teal);
    opacity: 0.08;
    pointer-events: none;
    z-index: 0;
}

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

h1, h2, h3, h4 {
    font-family: Manrope, Inter, "Helvetica Neue", Arial, sans-serif;
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: -0.015em;
    margin: 0 0 0.6em;
}

p { margin: 0 0 1.1em; }

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

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

/* ============ Контейнеры ============ */
.shell { width: var(--shell); margin-inline: auto; position: relative; z-index: 1; }

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

.layout-single {
    display: block;
    width: min(85%, 1080px);
    margin-inline: auto;
    position: relative;
    z-index: 1;
}

.layout-with-sidebar {
    display: grid;
    grid-template-columns: minmax(0, 67%) minmax(0, 27%);
    justify-content: space-between;
    align-items: start;
    position: relative;
    z-index: 1;
}

.content-area { min-width: 0; padding-bottom: 3.5rem; }

.site-main { display: block; }

/* ============ Полоса-флаг и шапка ============ */
.flagbar { display: flex; height: 6px; position: relative; z-index: 3; }
.flagbar span { flex: 1; }
.flagbar-red { background: var(--accent); }
.flagbar-teal { background: var(--teal); }
.flagbar-navy { background: var(--navy); }

.site-top {
    background-color: var(--navy);
    background-image: radial-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px);
    background-size: 20px 20px;
    color: #fff;
    padding: 1.6rem 0;
    position: relative;
    z-index: 2;
}

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

.brand { display: flex; align-items: center; gap: 1rem; min-width: 0; flex: 1 1 340px; }
.brand-logo-link { display: block; flex: 0 0 auto; line-height: 0; }
.brand-logo { display: block; max-height: 62px; width: auto; }
.brand-mark { display: block; }
.brand-text { min-width: 0; }

.brand-name {
    display: block;
    color: #fff;
    font-family: Manrope, Inter, Arial, sans-serif;
    font-weight: 900;
    font-size: 1.05rem;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.brand-desc {
    margin: 0.35rem 0 0;
    color: #AEB9CC;
    font-size: 0.83rem;
    line-height: 1.45;
}

.nav-toggle {
    display: none;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: 2px solid #fff;
    border-radius: 4px;
    color: #fff;
    padding: 0.55rem 0.9rem;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}
.nav-toggle-bar { display: block; width: 18px; height: 2px; background: #fff; }
.nav-toggle-label { margin-left: 4px; font-size: 0.9rem; }

.primary-nav { flex: 0 1 auto; }

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

.nav-list a {
    color: #fff;
    font-weight: 800;
    font-size: 0.95rem;
    position: relative;
    display: inline-block;
    padding-bottom: 3px;
}

.nav-list a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.25s ease;
}
.nav-list a:hover::after,
.nav-list .current-menu-item > a::after { transform: scaleX(1); }
.nav-list .current-menu-item > a { color: #fff; }
.nav-list .sub-menu { display: none; }

/* ============ Кнопки и ссылки ============ */
.btn {
    display: inline-block;
    padding: 0.8rem 1.6rem;
    border: 2px solid transparent;
    border-radius: 4px;
    font-family: Manrope, Inter, Arial, sans-serif;
    font-weight: 800;
    font-size: 0.95rem;
    line-height: 1.2;
    cursor: pointer;
    transition: transform 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease, color 0.16s ease;
}
.btn-primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-light { background: transparent; color: #fff; border-color: #fff; }
.btn:hover { transform: translateY(-2px); box-shadow: 4px 4px 0 var(--ink); }
.btn-light:hover { box-shadow: 4px 4px 0 var(--teal); }

.content-area a:not(.btn):not(.card-link):not(.tag-chip):not(.page-numbers),
.faq-a a,
.widget a {
    position: relative;
}
.content-area a:not(.btn):not(.card-link):not(.tag-chip):not(.page-numbers)::after,
.faq-a a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 2px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.25s ease;
}
.content-area a:not(.btn):not(.card-link):not(.tag-chip):not(.page-numbers):hover::after,
.faq-a a:hover::after { transform: scaleX(1); }

/* ============ Заголовки секций ============ */
.section-title {
    position: relative;
    padding-left: 1.15rem;
    font-size: 2.1rem;
    margin-bottom: 0.7rem;
}
.section-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.12em;
    width: 6px;
    height: 1.2em;
    background: var(--accent);
    transition: background-color 0.25s ease;
}
.fs:hover .section-title::before { background: var(--teal); }

.section-lead {
    color: var(--muted);
    max-width: 62ch;
    margin-bottom: 2rem;
}

/* ============ Секции главной ============ */
.fs { padding: 4.2rem 1.4rem; }
.fs-steps { background: var(--alt); }
.fs-latest { background: transparent; }
.fs-stats { background: var(--bg); }
.fs-faq { background: var(--alt); }

/* Блок 1 — Hero */
.fs-hero {
    background-color: var(--navy);
    background-image: radial-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px);
    background-size: 20px 20px;
    color: #fff;
    padding: 4.6rem 1.4rem;
}
.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
    gap: 3rem;
    align-items: center;
}
.hero-title { font-size: 3.5rem; color: #fff; margin-bottom: 1rem; }
.hero-lead { color: #AEB9CC; font-size: 1.08rem; max-width: 54ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.8rem; }
.hero-art { min-width: 0; }
.hero-art svg { display: block; width: 100%; height: auto; }

/* Блок 2 — Шаги */
.steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.6rem;
}
.step { position: relative; min-width: 0; padding-right: 0.6rem; }
.step::after {
    content: "";
    position: absolute;
    top: 26px;
    right: -1rem;
    width: 1.4rem;
    border-top: 2px dashed var(--teal);
}
.step:last-child::after { display: none; }
.step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    background: var(--accent);
    color: #fff;
    border-radius: 4px;
    font-family: Manrope, Inter, Arial, sans-serif;
    font-weight: 900;
    font-size: 1.6rem;
    margin-bottom: 1rem;
}
.step-title { font-size: 1.1rem; margin-bottom: 0.4rem; }
.step-desc { color: var(--muted); font-size: 0.95rem; margin: 0; }

/* Блок 3 — Статистика */
.stats-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}
.stat { min-width: 0; border-top: 3px solid var(--navy); padding-top: 1.1rem; }
.stat-num {
    display: block;
    font-family: Manrope, Inter, Arial, sans-serif;
    font-weight: 900;
    font-size: 3.4rem;
    line-height: 1;
    color: var(--accent);
    letter-spacing: -0.03em;
}
.stat-label { color: var(--muted); margin: 0.7rem 0 0; font-size: 0.97rem; }

/* Блок 4 — FAQ */
.faq-list { margin-top: 1.8rem; border-top: 1px dashed var(--grid-line); }
.faq-item { border-bottom: 1px dashed var(--grid-line); }
.faq-q {
    position: relative;
    display: block;
    list-style: none;
    cursor: pointer;
    padding: 1.15rem 3rem 1.15rem 0.2rem;
    font-family: Manrope, Inter, Arial, sans-serif;
    font-weight: 800;
    font-size: 1.05rem;
    color: var(--ink);
}
.faq-q::-webkit-details-marker { display: none; }
.faq-q::after {
    content: "+";
    position: absolute;
    right: 0.4rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--accent);
    font-size: 1.7rem;
    font-weight: 900;
    line-height: 1;
}
.faq-item[open] .faq-q::after { content: "−"; }
.faq-a {
    border-left: 2px solid var(--teal);
    padding: 0.2rem 1rem 1.3rem 1.1rem;
    color: var(--muted);
}
.faq-a p { margin: 0; }

.latest-more { margin-top: 2.2rem; }
.empty-note { color: var(--muted); }

/* ============ Карточки записей ============ */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 1.8rem;
}
.layout-with-sidebar .cards-grid,
.layout-single .cards-grid { margin-top: 0; }

.card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: #fff;
    border: 2px solid var(--ink);
    border-radius: 4px;
    box-shadow: 6px 6px 0 rgba(17, 24, 39, 0.12);
    overflow: hidden;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.card:hover { transform: translate(-3px, -3px); box-shadow: 9px 9px 0 rgba(17, 24, 39, 0.18); }
.card-thumb { display: block; line-height: 0; border-bottom: 2px solid var(--ink); }
.card-thumb a { display: block; }
.card-thumb img,
.card-thumb svg {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}
.card-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    padding: 1.25rem 1.3rem 1.4rem;
}
.card-title { font-size: 1.22rem; margin-bottom: 0.5rem; }
.card-title a { color: var(--ink); }
.card-title a:hover { color: var(--accent); }
.card-excerpt { color: var(--muted); font-size: 0.96rem; }
.card-excerpt p { margin: 0 0 0.5em; background: none; }
.card-more { margin: auto 0 0; padding-top: 0.9rem; }
.card-link {
    font-family: Manrope, Inter, Arial, sans-serif;
    font-weight: 800;
    font-size: 0.92rem;
    border-bottom: 2px solid transparent;
    transition: border-color 0.2s ease;
}
.card-link:hover { border-bottom-color: var(--accent); }

.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    align-items: center;
    color: var(--muted);
    font-size: 0.82rem;
    margin-bottom: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 700;
}
.post-rubric a { color: var(--teal); }

/* ============ Шапка страницы и крошки ============ */
.page-head { padding: 2.6rem 0 1.6rem; position: relative; z-index: 1; }
.crumbs { font-size: 0.85rem; color: var(--muted); margin-bottom: 1rem; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--accent); }
.crumbs-sep { color: var(--teal); margin: 0 0.25rem; }

.page-title { font-size: 2.6rem; margin-bottom: 0.4rem; }
.page-sub { color: var(--muted); margin: 0; }

/* ============ Запись и страница ============ */
.entry { padding-bottom: 1rem; }
.entry-title { font-size: 2.5rem; }
.entry-thumb { margin: 1.4rem 0 1.8rem; }
.entry-thumb img { display: block; width: 100%; border: 2px solid var(--ink); border-radius: 4px; }

.entry-content h2,
.entry-content h3 { position: relative; padding-left: 1.05rem; margin-top: 2rem; }
.entry-content h2 { font-size: 1.8rem; }
.entry-content h3 { font-size: 1.35rem; }
.entry-content h2::before,
.entry-content h3::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.14em;
    width: 6px;
    height: 1.2em;
    background: var(--accent);
    transition: background-color 0.25s ease;
}
.entry-content:hover h2::before { background: var(--teal); }
.entry-content ul li,
.entry-content ol li { margin-bottom: 0.5rem; }
.entry-content blockquote {
    margin: 1.8rem 0;
    padding: 1.5rem 1.6rem;
    background: var(--alt);
    border-left: 6px solid var(--teal);
    border-radius: 4px;
    font-size: 1.08rem;
}
.entry-content blockquote p:last-child { margin-bottom: 0; }
.entry-content img { border-radius: 4px; }
.entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.6rem 0;
    font-size: 0.95rem;
}
.entry-content table th,
.entry-content table td {
    border: 1px solid var(--ink);
    padding: 0.7rem 0.8rem;
    text-align: left;
}
.entry-content table th { background: var(--alt); font-weight: 800; }
.entry-content table,
.entry-content table th,
.entry-content table td { border: 1px solid var(--ink); }

.entry-tags { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 1.8rem 0 0; }
.tag-chip {
    display: inline-block;
    padding: 0.35rem 0.8rem;
    border: 2px solid var(--teal);
    border-radius: 4px;
    color: var(--teal);
    font-size: 0.82rem;
    font-weight: 800;
}
.tag-chip:hover { background: var(--teal); color: #fff; }

.post-nav {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.2rem;
    margin: 2.6rem 0 0;
}
.post-nav-link {
    display: block;
    padding: 1.1rem 1.2rem;
    border: 2px solid var(--ink);
    border-radius: 4px;
    color: var(--ink);
    font-weight: 800;
    background: #fff;
    transition: transform 0.16s ease, box-shadow 0.16s ease;
}
.post-nav-link span {
    display: block;
    color: var(--accent);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.3rem;
}
.post-nav-link:hover { transform: translateY(-2px); box-shadow: 4px 4px 0 rgba(17, 24, 39, 0.14); }
.post-nav-next { text-align: right; }

.error-lead { color: var(--muted); max-width: 60ch; }
.error-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.6rem; }
.error-404 { padding-bottom: 2rem; }

/* ============ Пагинация ============ */
.pager {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin: 2.6rem 0 0;
}
.pager .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 46px;
    height: 46px;
    padding: 0 0.9rem;
    border: 2px solid var(--ink);
    border-radius: 4px;
    color: var(--ink);
    font-weight: 800;
    background: #fff;
    transition: transform 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease, color 0.16s ease;
}
.pager .page-numbers:hover { transform: translateY(-2px); box-shadow: 4px 4px 0 var(--ink); }
.pager .page-numbers.current {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}
.pager .page-numbers.dots {
    border: none;
    background: transparent;
    min-width: 24px;
    box-shadow: none;
    transform: none;
}

/* ============ Сайдбар и виджеты ============ */
.sidebar {
    min-width: 0;
    background: var(--alt);
    border: 2px solid var(--ink);
    border-radius: 4px;
    padding: 1.6rem 1.5rem;
    margin-bottom: 3.5rem;
    color: var(--ink);
}
.sidebar .widget + .widget { margin-top: 2rem; }
.sidebar .widget-title {
    position: relative;
    padding-left: 0.9rem;
    font-size: 1.15rem;
    margin-bottom: 0.9rem;
    color: var(--ink);
}
.sidebar .widget-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.16em;
    width: 5px;
    height: 1.15em;
    background: var(--teal);
}
.sidebar .widget ul { list-style: none; margin: 0; padding: 0; }
.sidebar .widget li { padding: 0.6rem 0; border-bottom: 1px dashed var(--grid-line); }
.sidebar .widget li:last-child { border-bottom: none; }
.sidebar .widget a { color: var(--ink); font-weight: 700; font-size: 0.97rem; }
.sidebar .widget a:hover { color: var(--accent); }
.sidebar .widget .post-date { display: block; color: var(--muted); font-size: 0.8rem; margin-top: 0.2rem; }
.sidebar .widget p { color: var(--ink); font-size: 0.95rem; }
.sidebar .searchform-label { color: var(--ink); }

/* ============ Подвал ============ */
.site-bottom {
    background-color: var(--navy);
    background-image: radial-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px);
    background-size: 20px 20px;
    color: #E8ECF4;
    padding: 3.4rem 0 2rem;
    position: relative;
    z-index: 1;
}
.footer-cols {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2.4rem;
}
.footer-col { min-width: 0; }
.site-bottom .widget-title {
    position: relative;
    padding-left: 0.9rem;
    font-size: 1.08rem;
    color: #FFFFFF;
    margin-bottom: 0.9rem;
}
.site-bottom .widget-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.16em;
    width: 5px;
    height: 1.15em;
    background: var(--accent);
}
.site-bottom .widget { color: #C6CEDC; font-size: 0.95rem; }
.site-bottom .widget p { color: #C6CEDC; }
.site-bottom .widget ul { list-style: none; margin: 0; padding: 0; }
.site-bottom .widget li { padding: 0.42rem 0; }
.site-bottom .widget a { color: #FFFFFF; font-weight: 700; }
.site-bottom .widget a:hover { color: var(--accent); }
.site-bottom .widget .post-date { display: block; color: #9AA6BC; font-size: 0.8rem; }

.copyright {
    margin: 2.6rem 0 0;
    padding-top: 1.4rem;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
    color: #9AA6BC;
    font-size: 0.87rem;
}

/* ============ Форма поиска ============ */
.searchform { margin: 1.4rem 0; }
.searchform-label {
    display: block;
    font-weight: 800;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}
.searchform-row { display: flex; flex-wrap: wrap; gap: 0.7rem; }
.searchform-input {
    flex: 1 1 200px;
    min-width: 0;
    padding: 0.75rem 0.9rem;
    border: 2px solid var(--ink);
    border-radius: 4px;
    font: inherit;
    font-size: 0.95rem;
    background: #fff;
    color: var(--ink);
}
.searchform-input:focus { outline: 3px solid rgba(42, 157, 143, 0.35); outline-offset: 1px; }
.searchform-submit { flex: 0 0 auto; }

/* ============ Комментарии ============ */
.comments { margin-top: 3rem; padding-top: 2rem; border-top: 2px solid var(--ink); }
.comments-title { font-size: 1.6rem; }
.comment-list { list-style: none; margin: 0 0 2rem; padding: 0; }
.comment-list .children { list-style: none; margin: 1rem 0 0 1.4rem; padding: 0; }
.comment-item {
    background: var(--alt);
    border: 2px solid var(--ink);
    border-radius: 4px;
    padding: 1.2rem 1.3rem;
    margin-bottom: 1.2rem;
}
.comment-head { display: flex; flex-wrap: wrap; gap: 0.9rem; align-items: baseline; margin-bottom: 0.5rem; }
.comment-author { font-weight: 900; }
.comment-date { color: var(--muted); font-size: 0.83rem; }
.comment-hold { color: var(--accent); font-size: 0.88rem; }
.comment-actions a { font-weight: 800; font-size: 0.88rem; }
.comment-respond { margin-top: 1.5rem; }
.comment-reply-title { font-size: 1.4rem; }
.comment-form label { display: block; font-weight: 800; font-size: 0.9rem; margin-bottom: 0.35rem; }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 0.75rem 0.9rem;
    border: 2px solid var(--ink);
    border-radius: 4px;
    font: inherit;
    font-size: 0.95rem;
    background: #fff;
    color: var(--ink);
}
.comment-form textarea { min-height: 150px; }
.comment-notes, .comment-form .form-submit { margin-top: 1rem; }
.comment-form .submit { cursor: pointer; }
.comments-closed { color: var(--muted); }

/* ============ Cookie-баннер ============ */
.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 50;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.2rem;
    background: var(--navy);
    color: #E8ECF4;
    border-top: 6px solid var(--accent);
    padding: 1.1rem 1.6rem;
}
.cookie-text { margin: 0; font-size: 0.92rem; max-width: 70ch; }

/* ============ Адаптив ============ */
@media (max-width: 960px) {
    .nav-toggle { display: inline-flex; }
    .primary-nav { flex: 1 1 100%; display: none; }
    .primary-nav.is-open { display: block; }
    .nav-list { flex-direction: column; gap: 0.2rem; }
    .nav-list li { border-top: 1px solid rgba(255, 255, 255, 0.14); }
    .nav-list a { display: block; padding: 0.75rem 0; }

    .layout-with-sidebar { display: block; }
    .sidebar { margin-top: 2.5rem; }

    .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
    .hero-title { font-size: 2.6rem; }
    .hero-art { max-width: 380px; }

    .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .step:nth-child(2n)::after { display: none; }
    .stats-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }

    .layout-single, .front-wrap { width: min(92%, 1180px); }
}

@media (max-width: 600px) {
    body { font-size: 16px; }
    .fs { padding: 2.8rem 1.1rem; }
    .fs-hero { padding: 3rem 1.1rem; }
    .hero-title { font-size: 2.1rem; }
    .section-title { font-size: 1.6rem; }
    .page-title { font-size: 1.9rem; }
    .entry-title { font-size: 1.8rem; }
    .steps { grid-template-columns: minmax(0, 1fr); }
    .step::after { display: none; }
    .stats-row { grid-template-columns: minmax(0, 1fr); }
    .footer-cols { grid-template-columns: minmax(0, 1fr); }
    .stat-num { font-size: 2.8rem; }
    .cards-grid { grid-template-columns: minmax(0, 1fr); gap: 1.6rem; }
    .sidebar { padding: 1.3rem 1.2rem; }
    .cookie-banner { padding: 1rem 1.2rem; }
    .post-nav-next { text-align: left; }
    .entry-content blockquote { padding: 1.2rem 1.2rem; }
    .comment-item { padding: 1rem 1.1rem; }
}
