/*
Theme Name: dds_polsvoimirukami.ru
Author: Харитонов Мирослав
Description: Тема для информационного сайта о напольных покрытиях, ремонте и укладке.
Version: 1.1
Text Domain: polsvr
*/

/* ============================================================
   БАЗА
   ============================================================ */

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

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: 'Inter', 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    font-size: 17px;
    line-height: 1.65;
    color: #2E2C2A;
    background-color: #F7F5F0;
    background-image:
        repeating-linear-gradient(
            90deg,
            rgba(184, 92, 56, 0.02) 0px,
            rgba(184, 92, 56, 0.02) 1px,
            transparent 1px,
            transparent 7px
        ),
        repeating-linear-gradient(
            90deg,
            rgba(46, 44, 42, 0.015) 0px,
            rgba(46, 44, 42, 0.015) 1px,
            transparent 1px,
            transparent 19px
        );
}

img { max-width: 100%; height: auto; }
a { color: #B85C38; text-decoration: none; transition: color .2s ease; }
a:hover { color: #9E452A; text-decoration: underline; }

h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter', 'Roboto', sans-serif;
    color: #2E2C2A;
    line-height: 1.25;
    margin: 1.4em 0 0.6em;
    font-weight: 700;
}
h1 { font-size: 2.1rem; }
h2 { font-size: 1.65rem; }
h3 { font-size: 1.32rem; }
h4 { font-size: 1.12rem; }

p { margin: 0 0 1em; line-height: 1.7; }

blockquote {
    font-family: Georgia, 'Times New Roman', serif;
    font-style: italic;
    font-size: 1.05em;
    margin: 1.2em 0;
    padding: 18px 22px;
    background: #FCF9F2;
    border-left: 4px solid #A23B2B;
    color: #3a3633;
}
blockquote p { margin: 0 0 .5em; }
blockquote p:last-child { margin: 0; }

code, pre {
    font-family: 'Consolas', 'Menlo', monospace;
    background: #ECE7DC;
    color: #2E2C2A;
    border-radius: 2px;
}
code { padding: 1px 6px; font-size: 0.92em; }
pre { padding: 14px 18px; overflow-x: auto; line-height: 1.5; }
pre code { background: transparent; padding: 0; }

table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.2em 0;
    background: #FFFDF8;
    border: 1px solid #C9C0AE;
}
th, td {
    padding: 10px 14px;
    border: 1px solid #C9C0AE;
    text-align: left;
}
th {
    background: #ECE3D2;
    font-weight: 700;
}

ul, ol { margin: 0 0 1em; padding-left: 1.5em; }
li { margin-bottom: 0.35em; }

hr {
    border: 0;
    height: 1px;
    background: #D7CFBE;
    margin: 2em 0;
}

/* ============================================================
   КНОПКИ — фирменный «срезанный» прямоугольник
   ============================================================ */

.btn,
button.btn,
input[type="submit"],
input[type="button"],
.wp-block-button__link {
    display: inline-block;
    height: 52px;
    line-height: 52px;
    padding: 0 20px;
    font-family: 'Inter', 'Roboto', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #FFFDF8;
    background-color: #B85C38;
    border: 0;
    border-radius: 4px 0 4px 0;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: background-color .2s ease, box-shadow .2s ease, transform .15s ease;
    box-shadow: 0 1px 0 rgba(0,0,0,0.05);
}
.btn:hover,
button.btn:hover,
input[type="submit"]:hover,
input[type="button"]:hover,
.wp-block-button__link:hover {
    background-color: #9E452A;
    color: #FFFDF8;
    text-decoration: none;
    box-shadow: 0 6px 14px rgba(158, 69, 42, 0.28), 0 2px 4px rgba(0,0,0,0.08);
    transform: translateY(-1px);
}
.btn-ghost {
    background: transparent;
    color: #B85C38;
    border: 2px solid #B85C38;
    line-height: 48px;
}
.btn-ghost:hover {
    background: #B85C38;
    color: #FFFDF8;
}

/* ============================================================
   ПОЛЯ ВВОДА — «блокнот мастера» (рваный нижний край)
   ============================================================ */

input[type="text"],
input[type="email"],
input[type="url"],
input[type="search"],
input[type="password"],
input[type="tel"],
input[type="number"],
textarea,
select {
    display: block;
    width: 100%;
    max-width: 100%;
    padding: 12px 14px;
    font-family: inherit;
    font-size: 16px;
    color: #2E2C2A;
    background: #FFFDF8;
    border: 1px solid #C9C0AE;
    border-radius: 0;
    outline: none;
    transition: border-color .2s ease, background .2s ease;
}

textarea { min-height: 130px; resize: vertical; line-height: 1.55; }

input:focus, textarea:focus, select:focus {
    border-color: #B85C38;
    background: #FFFFFF;
}

label { display: block; font-weight: 600; margin: 0.7em 0 0.3em; }

/* «Рваный край» — псевдоэлемент над полем имитирует оторванный лист блокнота */
.field {
    position: relative;
    margin-bottom: 18px;
}
.field-input { position: relative; }
.field-input input,
.field-input textarea {
    border-bottom: 0;
}
.field-input::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: -1px;
    height: 8px;
    background-color: #FFFDF8;
    border-left: 1px solid #C9C0AE;
    border-right: 1px solid #C9C0AE;
    -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 8' preserveAspectRatio='none'><path d='M0,0 L200,0 L200,4 L196,7 L188,3 L180,7 L172,2 L164,6 L156,3 L148,7 L140,2 L132,6 L124,3 L116,7 L108,2 L100,6 L92,3 L84,7 L76,2 L68,6 L60,3 L52,7 L44,2 L36,6 L28,3 L20,7 L12,2 L4,5 L0,3 Z' fill='black'/></svg>");
    mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 8' preserveAspectRatio='none'><path d='M0,0 L200,0 L200,4 L196,7 L188,3 L180,7 L172,2 L164,6 L156,3 L148,7 L140,2 L132,6 L124,3 L116,7 L108,2 L100,6 L92,3 L84,7 L76,2 L68,6 L60,3 L52,7 L44,2 L36,6 L28,3 L20,7 L12,2 L4,5 L0,3 Z' fill='black'/></svg>");
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    pointer-events: none;
}

/* ============================================================
   КАРКАС: ШАПКА, ПОДВАЛ, ОБОЛОЧКА
   ============================================================ */

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

.site-header {
    background: #FFFDF8;
    border-bottom: 1px solid #D7CFBE;
    padding: 18px 0;
}
.header-inner {
    display: flex;
    align-items: center;
    gap: 28px;
    flex-wrap: wrap;
}
.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    color: inherit;
    flex: 0 0 auto;
}
.brand:hover { text-decoration: none; color: inherit; }
.brand-logo {
    width: 56px;
    height: 56px;
    display: block;
    flex: 0 0 56px;
}
.brand-text { line-height: 1.2; }
.brand-name {
    font-size: 1.18rem;
    font-weight: 700;
    color: #2E2C2A;
    margin: 0;
}
.brand-tagline {
    font-size: 0.85rem;
    color: #6b6660;
    margin-top: 2px;
}

.primary-nav { margin-left: auto; }
.primary-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}
.primary-nav li { margin: 0; }
.primary-nav a {
    display: block;
    padding: 10px 14px;
    color: #2E2C2A;
    font-weight: 600;
    font-size: 15px;
    border-radius: 3px;
    transition: background .15s ease, color .15s ease;
}
.primary-nav a:hover,
.primary-nav .current-menu-item > a {
    background: #ECE3D2;
    color: #B85C38;
    text-decoration: none;
}

.menu-toggle {
    display: none;
    height: 40px;
    padding: 0 14px;
    background: transparent;
    color: #2E2C2A;
    border: 1px solid #C9C0AE;
    font-weight: 600;
    cursor: pointer;
    border-radius: 3px;
}

.site-footer {
    background: #1E1C1A;
    color: #D9D2C5;
    padding: 48px 0 24px;
    margin-top: 60px;
}
.site-footer a { color: #E3A857; }
.site-footer a:hover { color: #FFD893; }
.footer-cols {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 36px;
    margin-bottom: 32px;
}
.footer-col h3, .footer-col h2 {
    color: #FFFDF8;
    font-size: 1.05rem;
    margin: 0 0 14px;
    text-transform: none;
    letter-spacing: 0.02em;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 8px; }
.footer-bottom {
    border-top: 1px solid #2c2926;
    padding-top: 18px;
    text-align: center;
    font-size: 0.92rem;
    color: #968d80;
}

/* ============================================================
   МАКЕТ КОНТЕНТА
   ============================================================ */

.site-main { padding: 36px 0 48px; }

.layout {
    display: grid;
    gap: 38px;
    align-items: start;
}
.layout-with-sidebar { grid-template-columns: 67% 27%; gap: 6%; }
.layout-no-sidebar   { grid-template-columns: 85%;       justify-content: center; }
.layout-full         { grid-template-columns: 1fr; }

.content-area {
    background: #FFFDF8;
    border: 1px solid #E0D8C6;
    padding: 32px 36px;
}

.sidebar {
    background: #FFFDF8;
    border: 1px solid #E0D8C6;
    padding: 22px 24px;
}
.sidebar .widget { margin-bottom: 26px; }
.sidebar .widget:last-child { margin-bottom: 0; }
.sidebar .widget-title,
.sidebar .widgettitle,
.sidebar h2.widgettitle {
    font-size: 1.05rem;
    margin: 0 0 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid #B85C38;
}
.sidebar ul { list-style: none; padding: 0; margin: 0; }
.sidebar li { padding: 6px 0; border-bottom: 1px dashed #E0D8C6; }
.sidebar li:last-child { border-bottom: 0; }

/* ============================================================
   ХЛЕБНЫЕ КРОШКИ
   ============================================================ */

.breadcrumbs {
    font-size: 0.92rem;
    color: #6b6660;
    margin: 0 0 22px;
    padding: 10px 0;
}
.breadcrumbs a { color: #B85C38; }
.breadcrumbs .sep { margin: 0 6px; color: #b8af9f; }
.breadcrumbs .current { color: #2E2C2A; font-weight: 600; }

/* ============================================================
   КАРТОЧКИ ЗАПИСЕЙ
   Правило A8: .card — flex-direction: column, .card-body — flex: 1
   Правило A10: миниатюры через aspect-ratio (вертикальный паттерн)
   ============================================================ */

.card-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 22px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.card {
    display: flex;
    flex-direction: column;
    background: #FFFDF8;
    border: 1px solid #E0D8C6;
    overflow: hidden;
    transition: box-shadow .22s ease, transform .22s ease;
}
.card:hover {
    box-shadow: 0 8px 24px rgba(46, 44, 42, 0.10);
    transform: translateY(-2px);
}

/* Миниатюра — высота вычисляется из aspect-ratio (правило A10, вертикальный паттерн) */
.card-thumb-wrap {
    position: relative;
    overflow: hidden;
    background: #ECE3D2;
    width: 100%;
}
.card-thumb-wrap a {
    display: block;
}
.card-thumb-wrap img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}
.card-thumb-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 16 / 9;
    color: #b8af9f;
    font-size: 0.92rem;
}

.card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 22px 26px;
    min-width: 0;
}
.card-meta {
    font-size: 0.85rem;
    color: #6b6660;
    margin-bottom: 8px;
}
.card-meta a { color: #6b6660; }
.card-meta a:hover { color: #B85C38; }
.card-title {
    font-size: 1.3rem;
    margin: 0 0 10px;
    line-height: 1.3;
}
.card-title a { color: #2E2C2A; text-decoration: none; }
.card-title a:hover { color: #B85C38; text-decoration: none; }

.card-excerpt { color: #3a3633; flex: 1; }
.card-excerpt p { margin: 0 0 0.5em; background: none; }
.card-excerpt p:last-child { margin: 0; }

.card-foot { margin-top: 14px; }
.card-more {
    display: inline-block;
    color: #B85C38;
    font-weight: 600;
    border-bottom: 1px dashed #B85C38;
    padding-bottom: 1px;
}
.card-more:hover { color: #9E452A; border-bottom-style: solid; text-decoration: none; }

/* Карточка-сетка (используется на главной) — 2 колонки */
.card-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
}

/* ============================================================
   ПАГИНАЦИЯ
   ============================================================ */

.pagination {
    margin: 36px 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
}
.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 12px;
    background: #FFFDF8;
    border: 1px solid #C9C0AE;
    color: #2E2C2A;
    font-weight: 600;
    border-radius: 3px;
    text-decoration: none;
    transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.pagination .page-numbers:hover { background: #ECE3D2; color: #B85C38; text-decoration: none; }
.pagination .page-numbers.current {
    background: #B85C38;
    color: #FFFDF8;
    border-color: #B85C38;
}
.pagination .dots { background: transparent; border-color: transparent; }

/* ============================================================
   СТАТЬЯ — ОДИНОЧНАЯ ЗАПИСЬ
   ============================================================ */

.entry-header { margin-bottom: 22px; }
.entry-title { font-size: 2rem; margin: 0 0 10px; line-height: 1.2; }
.entry-meta {
    font-size: 0.92rem;
    color: #6b6660;
    margin-bottom: 18px;
}
.entry-meta a { color: #6b6660; }
.entry-meta a:hover { color: #B85C38; }
.entry-thumb { margin: 0 0 22px; }
.entry-thumb img { width: 100%; display: block; }

.entry-content > * { margin-left: 0; margin-right: 0; }
.entry-content img { display: block; margin: 1em auto; }

.entry-tags { margin-top: 24px; font-size: 0.9rem; color: #6b6660; }
.entry-tags a {
    display: inline-block;
    padding: 3px 10px;
    background: #ECE3D2;
    color: #2E2C2A;
    border-radius: 2px;
    margin: 0 3px 3px 0;
    font-size: 0.85rem;
}
.entry-tags a:hover { background: #B85C38; color: #FFFDF8; text-decoration: none; }

/* ============================================================
   ТЕМАТИЧЕСКИЕ БЛОКИ ГЛАВНОЙ
   ============================================================ */

.section {
    background: #FFFDF8;
    border: 1px solid #E0D8C6;
    padding: 36px 38px;
    margin-bottom: 32px;
    position: relative;
}
.section-head { margin-bottom: 22px; }
.section-eyebrow {
    display: inline-block;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #B85C38;
    font-weight: 700;
    margin-bottom: 6px;
}
.section-title {
    font-size: 1.7rem;
    margin: 0 0 8px;
}
.section-lead {
    color: #4a4642;
    font-size: 1.05rem;
    margin: 0;
    max-width: 80ch;
}

/* Шаги — нумерованные карточки */
.steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 18px;
}
.step {
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: 18px;
    align-items: start;
    padding: 18px 20px;
    background: #FCF9F2;
    border: 1px solid #E0D8C6;
    background-image:
        repeating-linear-gradient(
            90deg,
            rgba(184, 92, 56, 0.025) 0px,
            rgba(184, 92, 56, 0.025) 1px,
            transparent 1px,
            transparent 6px
        );
}
.step-num {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #FFFDF8;
    border: 2px dashed #B85C38;
    color: #E3A857;
    font-weight: 800;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.step-num::before {
    content: '';
    position: absolute;
    inset: 4px;
    border-radius: 50%;
    border: 1px solid rgba(184, 92, 56, 0.18);
}
.step-body h3 { margin: 0 0 6px; font-size: 1.12rem; }
.step-body p { margin: 0; }

/* Категории / пиктограммы инструментов */
.cats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.cat-tile {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: #FCF9F2;
    border: 1px solid #E0D8C6;
    color: #2E2C2A;
    font-weight: 600;
    transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.cat-tile:hover {
    background: #FFFDF8;
    border-color: #B85C38;
    color: #B85C38;
    text-decoration: none;
}
.cat-tile .ico {
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    color: #8a7a5a;
}
.cat-tile:hover .ico { color: #B85C38; }

/* Совет / Важно */
.tip, .warn {
    background: #FCF9F2;
    border-left: 4px solid #A23B2B;
    padding: 16px 20px;
    margin: 18px 0;
    font-family: Georgia, 'Times New Roman', serif;
    color: #3a3633;
}
.tip-label, .warn-label {
    display: inline-block;
    font-family: 'Inter', sans-serif;
    font-style: normal;
    font-weight: 700;
    font-size: 0.78rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #A23B2B;
    margin-bottom: 4px;
}
.warn { border-left-color: #E3A857; }
.warn .warn-label { color: #B07515; }

/* Линейка-рулетка для списка материалов */
.materials {
    display: grid;
    grid-template-columns: 28px 1fr;
    gap: 18px;
    background: #FCF9F2;
    border: 1px solid #E0D8C6;
    padding: 18px 20px 18px 12px;
    margin: 18px 0;
}
.materials-ruler {
    background:
        linear-gradient(to bottom, #E3A857, #E3A857) no-repeat right top / 2px 100%,
        repeating-linear-gradient(
            to bottom,
            transparent 0,
            transparent 18px,
            #E3A857 18px,
            #E3A857 19px
        ) right top / 10px 100% no-repeat,
        #FFFDF8;
    border: 1px solid #E0D8C6;
}
.materials ul { margin: 0; padding-left: 1.2em; }
.materials li { margin-bottom: 4px; }

/* ============================================================
   КОММЕНТАРИИ
   ============================================================ */

.comments-area { margin-top: 36px; }
.comments-title { font-size: 1.4rem; margin: 0 0 18px; }
.comment-list { list-style: none; padding: 0; margin: 0 0 24px; }
.comment-list .children { list-style: none; padding-left: 28px; margin-top: 12px; }
.comment-body {
    padding: 14px 16px;
    background: #FCF9F2;
    border: 1px solid #E0D8C6;
    margin-bottom: 10px;
}
.comment-author { font-weight: 700; }
.comment-meta { font-size: 0.85rem; color: #6b6660; margin-bottom: 8px; }
.comment-meta a { color: #6b6660; }
.comment-reply-link { font-size: 0.9rem; color: #B85C38; }

.comment-form p { margin-bottom: 14px; }
.comment-form .submit { margin-top: 4px; }

/* ============================================================
   ПОИСК
   ============================================================ */

.search-form {
    display: flex;
    gap: 8px;
    align-items: stretch;
    max-width: 520px;
}
.search-form input[type="search"] {
    flex: 1;
    height: 46px;
    padding: 0 14px;
    border: 1px solid #C9C0AE;
    background: #FFFDF8;
}
.search-form button {
    height: 46px;
    padding: 0 20px;
    background: #B85C38;
    color: #FFFDF8;
    border: 0;
    font-weight: 600;
    cursor: pointer;
    border-radius: 4px 0 4px 0;
    transition: background .2s ease;
}
.search-form button:hover { background: #9E452A; }

/* ============================================================
   404
   ============================================================ */

.error-404 { text-align: center; padding: 30px 0; }
.error-404 .code {
    font-size: 5rem;
    font-weight: 800;
    color: #B85C38;
    margin: 0;
    line-height: 1;
}
.error-404 .search-form { margin: 22px auto; }

/* ============================================================
   COOKIE-БАННЕР  (правило A11 — !important до основного блока)
   ============================================================ */

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

.cookie-banner {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 9999;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: #1E1C1A;
    color: #D9D2C5;
    border-left: 4px solid #B85C38;
    box-shadow: 0 6px 24px rgba(0,0,0,0.25);
    font-size: 0.95rem;
    max-width: 760px;
    margin: 0 auto;
}
.cookie-banner p { margin: 0; flex: 1 1 320px; }
.cookie-banner .btn {
    height: 42px;
    line-height: 42px;
    padding: 0 22px;
    font-size: 14px;
}

/* ============================================================
   ПЛАВАЮЩИЙ ЧЕК-ЛИСТ НА СТАТЬЕ
   ============================================================ */

.checklist-panel[hidden] { display: none !important; }

.checklist-panel {
    position: fixed;
    right: 18px;
    top: 120px;
    width: 240px;
    background: #FFFDF8;
    border: 1px solid #E0D8C6;
    border-left: 4px solid #E3A857;
    padding: 14px 16px;
    font-size: 0.9rem;
    z-index: 50;
    box-shadow: 0 6px 18px rgba(46,44,42,0.08);
}
.checklist-panel h4 {
    margin: 0 0 8px;
    font-size: 0.95rem;
    color: #2E2C2A;
}
.checklist-panel ul { list-style: none; margin: 0; padding: 0; }
.checklist-panel li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 6px;
    line-height: 1.35;
}
.checklist-panel input[type="checkbox"] {
    margin-top: 3px;
    accent-color: #B85C38;
}
.checklist-panel li.done label { text-decoration: line-through; color: #908a82; }

/* ============================================================
   АДАПТИВ
   ============================================================ */

@media (max-width: 1100px) {
    .checklist-panel { display: none !important; }
}

@media (max-width: 960px) {
    .layout-with-sidebar { grid-template-columns: 1fr; }
    .layout-no-sidebar { grid-template-columns: 1fr; }
    .footer-cols { grid-template-columns: 1fr 1fr; }
    .card-grid { grid-template-columns: 1fr; }
    h1, .entry-title { font-size: 1.7rem; }
    .section { padding: 28px 24px; }
}

@media (max-width: 760px) {
    .menu-toggle { display: inline-block; }
    .primary-nav {
        flex-basis: 100%;
        margin-left: 0;
        display: none;
    }
    .primary-nav.is-open { display: block; }
    .primary-nav ul { flex-direction: column; gap: 0; }
    .primary-nav li { border-bottom: 1px solid #E0D8C6; }
    .primary-nav a { padding: 12px 14px; }
    .header-inner { gap: 14px; }
}

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

    .content-area { padding: 20px 18px; }
    .section { padding: 22px 18px; }

    .footer-cols { grid-template-columns: 1fr; gap: 26px; }
    .footer-col h3 { margin-bottom: 10px; }

    .card-body { padding: 18px 20px; }

    .step { grid-template-columns: 48px 1fr; gap: 12px; padding: 14px; }
    .step-num { width: 44px; height: 44px; font-size: 1.2rem; }

    .cookie-banner {
        left: 8px; right: 8px; bottom: 8px;
        padding: 14px 16px;
        flex-direction: column;
        align-items: stretch;
    }
    .cookie-banner .btn { width: 100%; }
}
