/*
Theme Name: dds_oppsforce.com
Author: Денисова Ясмина
Description: Тема для информационного сайта об аренде квартир. Экспертные советы, проверка жилья, безопасное заключение договоров.
Version: 1.1
Text Domain: dds_oppsforce
*/

/* ============================================================
   Базовые переменные
   ============================================================ */
:root {
    --bg: #F9F8F6;
    --accent: #C05A3B;
    --accent-dark: #9A3E25;
    --secondary: #6B9080;
    --text: #2B2E2D;
    --text-soft: #5A5E5D;
    --border: #E8DCD0;
    --pill: #EBE6DE;
    --white: #FFFFFF;
    --shadow-card: 0 8px 20px rgba(0, 0, 0, 0.03);
    --shadow-card-hover: 0 14px 28px rgba(0, 0, 0, 0.06);
    --font-heading: 'Manrope', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Lora', 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
    --font-mono: 'JetBrains Mono', 'Courier New', monospace;
    --radius: 4px;
    --radius-pill: 30px;
}

/* ============================================================
   Базовый сброс и сетка
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background-color: var(--bg);
    background-image:
        radial-gradient(circle at 20% 30%, rgba(192, 90, 59, 0.018) 0, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(107, 144, 128, 0.015) 0, transparent 40%);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 19px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

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

a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.2s ease;
}
a:hover { color: var(--accent-dark); text-decoration: underline; }

p { margin: 0 0 1em; }

/* Глобальный p без фона — фон задаётся точечно */
body p { background: none; }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text);
    line-height: 1.25;
    margin: 1.6em 0 0.6em;
    font-weight: 700;
    letter-spacing: -0.01em;
}
h1 { font-size: 2.4rem; margin-top: 0.4em; }
h2 { font-size: 1.85rem; }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.15rem; }

blockquote {
    margin: 1.5em 0;
    padding: 1em 1.4em;
    border-left: 3px solid var(--secondary);
    background: rgba(107, 144, 128, 0.06);
    font-family: var(--font-mono);
    font-size: 0.92rem;
    color: var(--text-soft);
}

code, pre {
    font-family: var(--font-mono);
    font-size: 0.9em;
    background: rgba(43, 46, 45, 0.04);
    padding: 0.15em 0.35em;
    border-radius: 3px;
}
pre { padding: 1em 1.2em; overflow-x: auto; }

table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5em 0;
    border: 1px solid var(--border);
    background: var(--white);
}
th, td {
    border: 1px solid var(--border);
    padding: 0.7em 1em;
    text-align: left;
}
th {
    background: rgba(107, 144, 128, 0.08);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
}

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

hr {
    border: 0;
    border-top: 1px solid var(--border);
    margin: 2em 0;
}

::selection { background: var(--accent); color: var(--white); }

/* ============================================================
   Контейнер
   ============================================================ */
.wrap {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================================================
   Шапка
   ============================================================ */
.site-head {
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 22px 0;
}
.site-head-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap;
}
.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    color: inherit;
}
.brand:hover { text-decoration: none; }
.brand-logo {
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    object-fit: contain;
}
.brand-text { display: flex; flex-direction: column; }
.brand-name {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--text);
    letter-spacing: -0.01em;
    line-height: 1.2;
}
.brand-tagline {
    font-family: var(--font-body);
    font-size: 0.82rem;
    color: var(--text-soft);
    margin-top: 4px;
    line-height: 1.35;
    max-width: 380px;
}

.primary-nav { display: flex; align-items: center; }
.primary-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}
.primary-nav li { margin: 0; }
.primary-nav a {
    display: inline-block;
    padding: 9px 16px;
    color: var(--text);
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 0.97rem;
    border-radius: var(--radius);
    transition: background 0.18s ease, color 0.18s ease;
}
.primary-nav a:hover {
    background: rgba(192, 90, 59, 0.08);
    color: var(--accent);
    text-decoration: none;
}
.primary-nav .current-menu-item > a,
.primary-nav .current_page_item > a {
    color: var(--accent);
    background: rgba(192, 90, 59, 0.06);
}

.nav-toggle {
    display: none;
    background: transparent;
    border: 1.5px solid var(--accent);
    color: var(--accent);
    width: 42px;
    height: 42px;
    border-radius: var(--radius);
    cursor: pointer;
    align-items: center;
    justify-content: center;
}
.nav-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--accent);
    position: relative;
}
.nav-toggle span::before,
.nav-toggle span::after {
    content: '';
    position: absolute;
    left: 0;
    width: 18px;
    height: 2px;
    background: var(--accent);
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

/* ============================================================
   Основной макет
   ============================================================ */
.site-main { padding: 40px 0 60px; }

.layout {
    display: grid;
    gap: 40px;
}
.layout.has-sidebar {
    grid-template-columns: 67% 27%;
    gap: 6%;
}
.layout.no-sidebar {
    grid-template-columns: 85%;
    justify-content: center;
}

/* ============================================================
   Хлебные крошки
   ============================================================ */
.crumbs {
    font-size: 0.9rem;
    color: var(--text-soft);
    margin-bottom: 24px;
    font-family: var(--font-heading);
}
.crumbs a {
    color: var(--text-soft);
    text-decoration: none;
    border-bottom: 1px dashed var(--border);
}
.crumbs a:hover { color: var(--accent); border-bottom-color: var(--accent); }
.crumbs .sep {
    margin: 0 8px;
    color: var(--border);
}
.crumbs .current { color: var(--text); }

/* ============================================================
   Карточки записей
   ============================================================ */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 28px;
}

.card {
    display: flex;
    flex-direction: column;
    background: var(--white);
    border-radius: 6px;
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: box-shadow 0.25s ease, transform 0.25s ease;
    position: relative;
}
.card::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 3px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}
.card:hover {
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-2px);
}
.card:hover::after { transform: scaleX(1); }

.card-thumb {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--pill);
}
.card-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.card:hover .card-thumb img { transform: scale(1.04); }

.card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 22px 24px 24px;
}
.card-meta {
    font-family: var(--font-heading);
    font-size: 0.82rem;
    color: var(--text-soft);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.card-meta a { color: var(--secondary); }
.card-title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    line-height: 1.3;
    margin: 0 0 10px;
    font-weight: 700;
}
.card-title a { color: var(--text); }
.card-title a:hover { color: var(--accent); text-decoration: none; }
.card-excerpt {
    color: var(--text-soft);
    font-size: 0.97rem;
    line-height: 1.55;
    flex: 1;
}
.card-excerpt p {
    margin: 0 0 0.5em;
    background: none;
}
.card-more {
    margin-top: 16px;
    align-self: flex-start;
}

/* ============================================================
   Кнопки
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: var(--radius);
    border: 1.5px solid var(--accent);
    background: var(--accent);
    color: var(--white);
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
}
.btn:hover {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
    color: var(--white);
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(192, 90, 59, 0.18);
}
.btn-ghost {
    background: transparent;
    color: var(--accent);
}
.btn-ghost:hover {
    background: rgba(192, 90, 59, 0.08);
    color: var(--accent);
    border-color: var(--accent);
    box-shadow: none;
}
.btn-arrow {
    display: inline-block;
    transition: transform 0.2s ease;
}
.btn:hover .btn-arrow { transform: translateX(3px); }

/* ============================================================
   Сайдбар
   ============================================================ */
.sidebar { font-size: 0.95rem; }
.widget {
    background: var(--white);
    border-radius: 6px;
    padding: 22px 24px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-card);
    position: relative;
}
.widget::before {
    content: '';
    position: absolute;
    top: 14px; right: 14px;
    width: 16px;
    height: 16px;
    border-top: 2px solid var(--secondary);
    border-right: 2px solid var(--secondary);
    border-top-right-radius: 6px;
    opacity: 0.6;
}
.widget-title {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0 0 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--accent);
    display: inline-block;
    color: var(--text);
}
.widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.widget ul li {
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
    font-family: var(--font-heading);
    font-size: 0.93rem;
}
.widget ul li:last-child { border-bottom: none; }
.widget ul li a { color: var(--text); }
.widget ul li a:hover { color: var(--accent); }

/* ============================================================
   Заголовок страницы / архива
   ============================================================ */
.page-head {
    margin-bottom: 32px;
    padding-bottom: 22px;
    border-bottom: 1px solid var(--border);
    position: relative;
}
.page-head::after {
    content: '';
    position: absolute;
    bottom: -1px; left: 0;
    width: 56px;
    height: 3px;
    background: var(--accent);
}
.page-head h1 { margin: 0 0 6px; font-size: 2.1rem; }
.page-head .subtitle {
    color: var(--text-soft);
    font-size: 1rem;
    font-family: var(--font-heading);
}

/* ============================================================
   Запись (single)
   ============================================================ */
.entry-meta {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    color: var(--text-soft);
    margin-bottom: 18px;
}
.entry-meta a { color: var(--secondary); }
.entry-thumb {
    margin: 22px 0;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: var(--shadow-card);
}
.entry-content {
    font-size: 1.05rem;
    line-height: 1.7;
}
.entry-content p { margin-bottom: 1.1em; }
.entry-content img {
    border-radius: 6px;
    margin: 1em 0;
}
.entry-tags {
    margin-top: 32px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    font-family: var(--font-heading);
    font-size: 0.9rem;
}
.entry-tags a {
    display: inline-block;
    background: var(--pill);
    color: var(--text);
    padding: 4px 14px;
    border-radius: var(--radius-pill);
    margin: 4px 6px 4px 0;
    font-size: 0.85rem;
}
.entry-tags a:hover {
    background: var(--secondary);
    color: var(--white);
    text-decoration: none;
}

/* ============================================================
   Главная — тематические блоки
   ============================================================ */
.hero {
    background: linear-gradient(135deg, rgba(192, 90, 59, 0.04) 0%, rgba(107, 144, 128, 0.04) 100%);
    border-radius: 10px;
    padding: 50px 44px;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: 18px; right: 18px;
    width: 24px; height: 24px;
    border-top: 2px solid var(--accent);
    border-right: 2px solid var(--accent);
    border-top-right-radius: 8px;
}
.hero h1 {
    margin: 0 0 14px;
    font-size: 2.4rem;
    max-width: 780px;
}
.hero p {
    font-size: 1.1rem;
    color: var(--text-soft);
    max-width: 720px;
    margin-bottom: 0;
}

.section {
    background: var(--white);
    border-radius: 10px;
    padding: 40px 44px;
    margin-bottom: 36px;
    box-shadow: var(--shadow-card);
    position: relative;
}
.section-checklist {
    border-left: 3px double var(--secondary);
    padding-left: 38px;
}
.section-checklist::before {
    content: '';
    position: absolute;
    top: 14px; right: 14px;
    width: 18px; height: 18px;
    border-top: 2px solid var(--secondary);
    border-right: 2px solid var(--secondary);
    border-top-right-radius: 8px;
}
.section h2 {
    font-size: 1.7rem;
    margin: 0 0 20px;
}
.section h2 .accent { color: var(--accent); }

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 28px;
    margin-top: 18px;
}
.feature {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.feature-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(192, 90, 59, 0.08);
    border-radius: 10px;
    color: var(--accent);
}
.feature-icon svg {
    width: 28px; height: 28px;
    stroke: var(--accent);
    fill: none;
}
.feature-icon.alt { background: rgba(107, 144, 128, 0.1); color: var(--secondary); }
.feature-icon.alt svg { stroke: var(--secondary); }
.feature h3 {
    font-size: 1.1rem;
    margin: 0;
}
.feature p {
    margin: 0;
    color: var(--text-soft);
    font-size: 0.97rem;
}

.checklist {
    list-style: none;
    padding: 0;
    margin: 18px 0 0;
    display: grid;
    gap: 10px;
}
.checklist li {
    padding: 10px 14px 10px 42px;
    background: rgba(107, 144, 128, 0.05);
    border-radius: 4px;
    position: relative;
    font-family: var(--font-mono);
    font-size: 0.92rem;
    color: var(--text);
    line-height: 1.5;
}
.checklist li::before {
    content: '';
    position: absolute;
    left: 14px; top: 50%;
    transform: translateY(-50%) rotate(45deg);
    width: 7px; height: 12px;
    border-right: 2px solid var(--secondary);
    border-bottom: 2px solid var(--secondary);
}

.recent-block {
    margin-bottom: 36px;
}
.recent-block .block-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 22px;
    gap: 16px;
    flex-wrap: wrap;
}
.recent-block h2 {
    margin: 0;
    font-size: 1.7rem;
}

/* ============================================================
   Пагинация
   ============================================================ */
.pagination {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
}
.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    color: var(--text);
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 0.95rem;
    background: var(--white);
    transition: all 0.18s ease;
}
.pagination a:hover {
    background: rgba(192, 90, 59, 0.08);
    border-color: var(--accent);
    color: var(--accent);
    text-decoration: none;
}
.pagination .current {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--white);
}
.pagination .dots {
    border: none;
    background: transparent;
    color: var(--text-soft);
}

/* ============================================================
   Поиск
   ============================================================ */
.search-form {
    display: flex;
    gap: 8px;
    max-width: 540px;
}
.search-form input[type="search"] {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--white);
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text);
}
.search-form input[type="search"]:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(192, 90, 59, 0.12);
}
.search-form button {
    padding: 10px 22px;
    background: var(--accent);
    color: var(--white);
    border: none;
    border-radius: var(--radius);
    font-family: var(--font-heading);
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}
.search-form button:hover { background: var(--accent-dark); }

/* ============================================================
   Комментарии
   ============================================================ */
.comments-area {
    margin-top: 50px;
    padding-top: 36px;
    border-top: 1px solid var(--border);
}
.comments-title {
    font-size: 1.4rem;
    margin: 0 0 22px;
}
.comment-list {
    list-style: none;
    padding: 0;
    margin: 0 0 36px;
}
.comment-list li.comment {
    background: var(--white);
    border-radius: 6px;
    padding: 20px 24px;
    margin-bottom: 16px;
    box-shadow: var(--shadow-card);
}
.comment-list ol.children {
    list-style: none;
    margin: 16px 0 0;
    padding: 0 0 0 30px;
    border-left: 2px solid var(--border);
}
.comment-meta {
    font-family: var(--font-heading);
    font-size: 0.88rem;
    color: var(--text-soft);
    margin-bottom: 10px;
}
.comment-author { font-weight: 600; color: var(--text); }
.comment-content p { margin: 0 0 0.5em; }
.comment-reply-link {
    font-family: var(--font-heading);
    font-size: 0.88rem;
    color: var(--accent);
}

.comment-respond {
    background: var(--white);
    border-radius: 6px;
    padding: 24px 28px;
    box-shadow: var(--shadow-card);
}
.comment-respond .comment-reply-title {
    margin: 0 0 16px;
    font-size: 1.2rem;
}
.comment-form-comment label,
.comment-form-author label,
.comment-form-email label,
.comment-form-url label {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    margin-bottom: 6px;
    color: var(--text-soft);
}
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg);
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text);
    margin-bottom: 14px;
}
.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(192, 90, 59, 0.1);
}
.comment-form textarea { resize: vertical; min-height: 110px; }
.form-submit input[type="submit"] {
    padding: 10px 26px;
    background: var(--accent);
    color: var(--white);
    border: none;
    border-radius: var(--radius);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background 0.2s ease;
}
.form-submit input[type="submit"]:hover { background: var(--accent-dark); }

/* ============================================================
   404
   ============================================================ */
.error-404 {
    text-align: center;
    padding: 50px 20px;
}
.error-404 .big-num {
    font-family: var(--font-heading);
    font-size: 7rem;
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
    margin: 0 0 14px;
    letter-spacing: -0.04em;
}
.error-404 h1 { margin: 0 0 12px; }
.error-404 p { color: var(--text-soft); max-width: 540px; margin: 0 auto 24px; }
.error-404 .search-form { margin: 0 auto 22px; }

/* ============================================================
   Подвал
   ============================================================ */
.site-foot {
    background: #2B2E2D;
    color: #C8CAC9;
    margin-top: 60px;
    padding: 50px 0 24px;
}
.foot-cols {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 36px;
    margin-bottom: 36px;
}
.foot-col h2,
.foot-col .widget-title {
    color: var(--white);
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0 0 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--accent);
    display: inline-block;
}
.foot-col p { color: #C8CAC9; }
.foot-col a { color: #C8CAC9; }
.foot-col a:hover { color: var(--white); }
.foot-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.foot-col ul li {
    padding: 6px 0;
    border-bottom: 1px solid rgba(232, 220, 208, 0.1);
    font-family: var(--font-heading);
    font-size: 0.92rem;
}
.foot-col ul li:last-child { border-bottom: none; }
.foot-bottom {
    border-top: 1px solid rgba(232, 220, 208, 0.15);
    padding-top: 20px;
    text-align: center;
    font-size: 0.88rem;
    color: #9A9C9B;
    font-family: var(--font-heading);
}

/* ============================================================
   Cookie-баннер
   ============================================================ */
.cookie-banner[hidden] { display: none !important; }
.cookie-banner {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 9999;
    background: var(--white);
    border-radius: 10px;
    padding: 18px 22px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    max-width: 760px;
    margin: 0 auto;
    flex-wrap: wrap;
}
.cookie-banner p {
    margin: 0;
    font-size: 0.92rem;
    color: var(--text-soft);
    flex: 1;
    min-width: 220px;
}
.cookie-banner button {
    background: var(--accent);
    color: var(--white);
    border: none;
    padding: 10px 22px;
    border-radius: var(--radius);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.92rem;
    cursor: pointer;
    transition: background 0.2s ease;
}
.cookie-banner button:hover { background: var(--accent-dark); }

/* ============================================================
   WordPress alignments / captions
   ============================================================ */
.alignleft  { float: left;  margin: 0.5em 1.4em 0.8em 0; }
.alignright { float: right; margin: 0.5em 0 0.8em 1.4em; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.wp-caption {
    max-width: 100%;
    background: var(--white);
    padding: 6px 6px 4px;
    border-radius: 4px;
    box-shadow: var(--shadow-card);
}
.wp-caption-text {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    color: var(--text-soft);
    text-align: center;
    margin: 6px 0 4px;
}
.screen-reader-text {
    position: absolute !important;
    clip: rect(1px, 1px, 1px, 1px);
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* ============================================================
   Адаптив
   ============================================================ */
@media (max-width: 960px) {
    body { font-size: 17px; }
    h1 { font-size: 1.95rem; }
    h2 { font-size: 1.55rem; }

    .layout.has-sidebar {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .layout.no-sidebar {
        grid-template-columns: 1fr;
    }
    .foot-cols {
        grid-template-columns: 1fr 1fr;
        gap: 28px;
    }
    .hero { padding: 36px 28px; }
    .hero h1 { font-size: 1.9rem; }
    .section { padding: 30px 26px; }
}

@media (max-width: 600px) {
    .site-head-inner {
        gap: 14px;
    }
    .nav-toggle {
        display: inline-flex;
        order: 3;
    }
    .primary-nav {
        display: none;
        flex-basis: 100%;
        order: 4;
        margin-top: 6px;
    }
    .primary-nav.is-open {
        display: flex;
    }
    .primary-nav ul {
        flex-direction: column;
        width: 100%;
        gap: 4px;
    }
    .primary-nav li { width: 100%; }
    .primary-nav a {
        display: block;
        width: 100%;
        padding: 11px 14px;
        background: var(--white);
        border: 1px solid var(--border);
    }

    .brand-tagline { display: none; }
    .brand-logo { width: 42px; height: 42px; }

    .foot-cols { grid-template-columns: 1fr; gap: 24px; }
    .hero { padding: 28px 20px; }
    .hero h1 { font-size: 1.6rem; }
    .section { padding: 24px 20px; }
    .card-grid { grid-template-columns: 1fr; gap: 20px; }
    .feature-grid { grid-template-columns: 1fr; }

    .cookie-banner {
        flex-direction: column;
        text-align: center;
        left: 10px;
        right: 10px;
        bottom: 10px;
        padding: 16px 18px;
    }
    .cookie-banner button { width: 100%; }

    .error-404 .big-num { font-size: 5rem; }
}
