/*
Theme Name: dds_teamhogeboom.com
Theme URI: https://teamhogeboom.com/
Author: Ольга Седова
Description: Индивидуальная тема информационно-сервисного портала о сделках с долевой собственностью: комнаты и доли в квартирах.
Version: 1.1
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: dolyagid
*/

/* ==================================================================
   1. Переменные и база
   ================================================================== */

:root {
    --bg:         #F4F1F9;
    --bg-alt:     #EAE4F3;
    --bg-alt-2:   #DDD3ED;
    --head-bg:    #2D2640;
    --foot-bg:    #1A1528;
    --ink:        #1E1A2E;
    --accent:     #7C5CBF;
    --accent-dk:  #5E3F9E;
    --accent-2:   #B8A0D9;
    --muted:      #9A8EB0;
    --line:       #D6CCE8;
    --white:      #FFFFFF;
    --font-head:  "Montserrat", "Century Gothic", "Futura", "Trebuchet MS", system-ui, sans-serif;
    --font-body:  "Inter", "Manrope", -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --radius:     10px;
    --shadow:     0 6px 12px rgba(124, 92, 191, 0.12);
    --shadow-up:  0 12px 26px rgba(124, 92, 191, 0.22);
}

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

html { scroll-behavior: smooth; }

body {
    margin: 0;
    overflow-x: hidden;
    background-color: var(--bg);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='620' height='620' viewBox='0 0 620 620'%3E%3Cdefs%3E%3CradialGradient id='b' cx='50%25' cy='50%25' r='50%25'%3E%3Cstop offset='0%25' stop-color='%23C4B0E0' stop-opacity='.9'/%3E%3Cstop offset='60%25' stop-color='%23C4B0E0' stop-opacity='.35'/%3E%3Cstop offset='100%25' stop-color='%23C4B0E0' stop-opacity='0'/%3E%3C/radialGradient%3E%3C/defs%3E%3Cpath d='M330 40c110-30 240 40 250 160 10 120-70 210-180 240S150 470 120 360 220 70 330 40z' fill='url(%23b)' opacity='.15'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right -120px top -80px;
    background-attachment: fixed;
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

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

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

p { margin: 0 0 1.1em; }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-head);
    font-weight: 700;
    letter-spacing: 0.01em;
    line-height: 1.24;
    color: var(--ink);
    margin: 1.6em 0 0.6em;
}

h1 { font-size: 3.2rem; margin-top: 0; letter-spacing: -0.01em; }
h2 { font-size: 1.85rem; }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.12rem; }

h2::before {
    content: "♦";
    color: var(--accent);
    font-size: 0.62em;
    line-height: 1;
    vertical-align: 0.18em;
    margin-right: 0.5em;
}

.shell { width: min(92%, 1180px); margin-inline: auto; }

/* ==================================================================
   2. Ссылки и кнопки
   ================================================================== */

.entry-content a,
.crumbs a,
.card-title a,
.widget a,
.comment-text a {
    text-decoration: none;
    background-image: linear-gradient(currentColor, currentColor);
    background-repeat: no-repeat;
    background-position: 0 100%;
    background-size: 0 1px;
    transition: background-size 0.28s ease, color 0.2s ease;
}

.entry-content a:hover,
.crumbs a:hover,
.card-title a:hover,
.widget a:hover,
.comment-text a:hover { background-size: 100% 1px; }

.btn {
    display: inline-block;
    padding: 0.85rem 1.9rem;
    border: 0;
    border-radius: 6px;
    background: var(--accent);
    color: var(--white);
    font-family: var(--font-head);
    font-size: 0.98rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease;
}

.btn:hover,
.btn:focus {
    background: var(--accent-dk);
    transform: scale(1.02);
    box-shadow: 0 0 0 3px rgba(124, 92, 191, 0.22), 0 0 18px rgba(124, 92, 191, 0.45);
}

.btn-light {
    background: var(--white);
    color: var(--accent-dk);
}

.btn-light:hover { background: #F1EBFA; color: var(--accent-dk); }

/* ==================================================================
   3. Верхняя полоса, шапка
   ================================================================== */

.topbar {
    height: 4px;
    width: 100%;
    background: var(--accent);
}

.site-head {
    background: var(--head-bg);
    color: #EFE9F8;
    position: static;
}

.head-inner {
    display: flex;
    align-items: center;
    gap: 1.6rem;
    padding: 1.5rem 0;
    flex-wrap: wrap;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    min-width: 0;
    flex: 1 1 420px;
    text-decoration: none;
    color: inherit;
}

.brand-logo { display: block; max-height: 62px; width: auto; }

.brand-mark { flex: 0 0 auto; display: block; }

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

.brand-name {
    display: block;
    font-family: var(--font-head);
    font-size: 1.02rem;
    font-weight: 700;
    line-height: 1.35;
    color: #FFFFFF;
    letter-spacing: 0.01em;
}

.brand-desc {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.82rem;
    line-height: 1.5;
    color: #B8A0D9;
}

.nav-toggle {
    display: none;
    margin-left: auto;
    padding: 0.6rem 1rem;
    border: 1px solid rgba(184, 160, 217, 0.5);
    border-radius: 6px;
    background: transparent;
    color: #EFE9F8;
    font-family: var(--font-head);
    font-size: 0.92rem;
    cursor: pointer;
}

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

.main-nav a {
    display: inline-block;
    padding: 0.35rem 0;
    color: #EFE9F8;
    font-family: var(--font-head);
    font-size: 0.97rem;
    font-weight: 500;
    text-decoration: none;
    background-image: linear-gradient(var(--accent-2), var(--accent-2));
    background-repeat: no-repeat;
    background-position: 0 100%;
    background-size: 0 2px;
    transition: background-size 0.28s ease, color 0.2s ease;
}

.main-nav a:hover,
.main-nav .current-menu-item > a { background-size: 100% 2px; color: #FFFFFF; }

/* ==================================================================
   4. Каркас страницы
   ================================================================== */

.site-main { padding: 2.6rem 0 4rem; }

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

.layout-with-sidebar {
    display: grid;
    grid-template-columns: minmax(0, 67%) minmax(0, 27%);
    justify-content: space-between;
    gap: 2.4rem;
    align-items: start;
}

.content-area { min-width: 0; }

.crumbs {
    margin: 0 0 1.6rem;
    font-size: 0.86rem;
    color: var(--muted);
}

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

.crumbs-sep { color: var(--accent-2); margin: 0 0.25rem; }

.page-title {
    font-size: 2.35rem;
    margin: 0 0 0.9rem;
}

.page-title::before { content: none; }

.entry-content { font-size: 1.02rem; }

.entry-content > *:first-child { margin-top: 0; }

.entry-content ul,
.entry-content ol { margin: 0 0 1.2em; padding-left: 1.4em; }

.entry-content li { margin-bottom: 0.45em; }

.entry-content blockquote {
    margin: 1.6em 0;
    padding: 1.4rem 1.6rem;
    background: var(--bg-alt);
    border-left: 4px solid var(--accent);
    border-radius: 0 var(--radius) var(--radius) 0;
    font-size: 1.06rem;
}

.entry-content blockquote p:last-child { margin-bottom: 0; }

.entry-content img { border-radius: var(--radius); display: block; }

.entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.6em 0;
    font-size: 0.95rem;
    background: var(--white);
}

.entry-content table,
.entry-content th,
.entry-content td { border: 1px solid var(--line); }

.entry-content th,
.entry-content td { padding: 0.7rem 0.9rem; text-align: left; }

.entry-content th { background: var(--bg-alt); font-family: var(--font-head); }

.post-meta {
    font-size: 0.85rem;
    color: var(--muted);
    margin-bottom: 1.2rem;
}

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

.post-meta-sep { margin: 0 0.35rem; }

.entry-thumb {
    margin: 0 0 1.6rem;
    border-radius: var(--radius);
    overflow: hidden;
}

.entry-thumb img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 8;
    object-fit: cover;
}

/* ==================================================================
   5. Карточки записей
   ================================================================== */

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

.card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: var(--white);
    border: 0;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-up);
}

.card-thumb { display: block; }

.card-thumb img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: var(--radius) var(--radius) 0 0;
}

.card-thumb-empty {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, var(--bg-alt) 0%, var(--bg-alt-2) 100%);
    border-radius: var(--radius) var(--radius) 0 0;
}

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

.card-title {
    font-size: 1.16rem;
    margin: 0 0 0.5rem;
    line-height: 1.35;
}

.card-title::before { content: none; }

.card-title a { color: var(--ink); text-decoration: none; }

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

.card-excerpt {
    color: #4A4358;
    font-size: 0.94rem;
    margin-bottom: 1.1rem;
}

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

.card-excerpt p:last-child { margin-bottom: 0; }

.card-more {
    margin-top: auto;
    align-self: flex-start;
    font-family: var(--font-head);
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--accent);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.card-more:hover { border-color: var(--accent); color: var(--accent-dk); }

/* ==================================================================
   6. Главная страница
   ================================================================== */

.front-section { padding: 3.4rem 0; }

.front-section + .front-section { border-top: 1px solid rgba(214, 204, 232, 0.75); }

.front-section-alt {
    background-image: radial-gradient(rgba(124, 92, 191, 0.09) 1px, transparent 1px),
                      linear-gradient(160deg, var(--bg-alt) 0%, var(--bg-alt-2) 100%);
    background-size: 14px 14px, auto;
}

.sec-title {
    font-size: 2.05rem;
    margin: 0 0 1.8rem;
    padding-bottom: 0.7rem;
    position: relative;
}

.sec-title::after {
    content: "• • •";
    position: absolute;
    left: 0;
    bottom: -0.35rem;
    font-size: 0.75rem;
    letter-spacing: 0.28em;
    color: var(--accent);
}

.sec-lead {
    max-width: 720px;
    margin: -0.9rem 0 2rem;
    color: #4A4358;
}

.wave-sep {
    height: 26px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='26' viewBox='0 0 240 26'%3E%3Cpath d='M0 22C30 22 30 4 60 4s30 18 60 18 30-18 60-18 30 18 60 18' fill='none' stroke='%237C5CBF' stroke-opacity='.16' stroke-width='1.4'/%3E%3C/svg%3E");
    background-repeat: repeat-x;
    background-position: center;
}

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

.hero {
    position: relative;
    padding: 5.2rem 0 5.6rem;
    background-color: var(--head-bg);
    background-image: linear-gradient(105deg, rgba(26, 21, 40, 0.88) 0%, rgba(45, 38, 64, 0.62) 55%, rgba(124, 92, 191, 0.32) 100%);
    background-size: cover;
    background-position: center;
    color: #F4F1F9;
    overflow: hidden;
}

.hero-inner { max-width: 780px; }

.hero h1 {
    color: #FFFFFF;
    font-size: 3.2rem;
    margin-bottom: 1.1rem;
}

.hero-sub {
    font-family: var(--font-body);
    font-size: 1.1rem;
    line-height: 1.65;
    color: #DCD2EC;
    margin-bottom: 2rem;
    max-width: 640px;
}

.hero-line {
    position: absolute;
    left: 4%;
    bottom: 2.1rem;
    width: 190px;
    height: 2px;
    background: linear-gradient(90deg, var(--accent) 0%, rgba(184, 160, 217, 0) 100%);
}

.hero-line::after {
    content: "";
    position: absolute;
    left: 0;
    top: -5px;
    width: 12px;
    height: 12px;
    background: var(--accent-2);
    transform: rotate(45deg);
}

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

.steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.6rem;
    position: relative;
}

.steps::before {
    content: "";
    position: absolute;
    left: 6%;
    right: 6%;
    top: 26px;
    height: 2px;
    background: linear-gradient(90deg, rgba(124, 92, 191, 0.15), var(--accent), rgba(124, 92, 191, 0.15));
}

.step { position: relative; min-width: 0; padding-top: 0; }

.step-num {
    display: inline-block;
    position: relative;
    z-index: 1;
    font-family: var(--font-head);
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
    color: var(--accent);
    background: var(--bg-alt);
    padding: 0 0.5rem 0 0;
    margin-bottom: 0.7rem;
}

.step h3 { margin: 0 0 0.45rem; font-size: 1.08rem; }

.step p { margin: 0; font-size: 0.94rem; color: #4A4358; }

/* --- Блок 3: цитата --- */

.quote-block {
    display: flex;
    align-items: center;
    gap: 1.8rem;
    padding: 3rem 2.6rem;
    border-radius: var(--radius);
    background: linear-gradient(120deg, var(--accent) 0%, #A88BD9 100%);
    color: var(--white);
    box-shadow: 0 14px 30px rgba(124, 92, 191, 0.28);
}

.quote-bars {
    flex: 0 0 auto;
    display: flex;
    gap: 6px;
    align-self: stretch;
}

.quote-bars span {
    display: block;
    width: 3px;
    background: rgba(255, 255, 255, 0.75);
}

.quote-bars span:nth-child(2) { background: rgba(255, 255, 255, 0.5); }
.quote-bars span:nth-child(3) { background: rgba(255, 255, 255, 0.3); }

.quote-text {
    min-width: 0;
    font-family: var(--font-head);
    font-size: 1.75rem;
    font-weight: 600;
    line-height: 1.35;
    margin: 0;
}

.quote-note {
    margin: 0.9rem 0 0;
    font-family: var(--font-body);
    font-size: 0.96rem;
    color: rgba(255, 255, 255, 0.82);
}

/* --- Блок 4: рубрикатор --- */

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

.rubric {
    display: block;
    min-width: 0;
    padding: 2rem 1.7rem;
    border: 1px solid rgba(124, 92, 191, 0.35);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(9px);
    -webkit-backdrop-filter: blur(9px);
    color: var(--ink);
    text-decoration: none;
    transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.rubric:hover {
    background: var(--accent);
    color: var(--white);
    transform: translateY(-4px);
    box-shadow: var(--shadow-up);
}

.rubric svg { display: block; margin-bottom: 1rem; }

.rubric-icon { stroke: var(--accent); }

.rubric:hover .rubric-icon { stroke: #FFFFFF; }

.rubric h3 { margin: 0 0 0.5rem; font-size: 1.15rem; color: inherit; }

.rubric p { margin: 0; font-size: 0.93rem; color: inherit; opacity: 0.88; }

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

.front-latest-more { margin-top: 2.2rem; }

/* ==================================================================
   7. Сайдбар и виджеты
   ================================================================== */

.sidebar {
    min-width: 0;
    padding: 1.5rem 1.4rem;
    border: 1px solid rgba(184, 160, 217, 0.45);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
}

.sidebar .widget { margin-bottom: 1.8rem; }

.sidebar .widget:last-child { margin-bottom: 0; }

.sidebar .widget-title {
    font-size: 1.08rem;
    margin: 0 0 0.9rem;
    color: var(--ink);
}

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

.sidebar .widget li {
    padding: 0.5rem 0 0.5rem 1.1rem;
    border-bottom: 1px solid rgba(214, 204, 232, 0.8);
    font-size: 0.95rem;
    position: relative;
    color: var(--ink);
}

.sidebar .widget li::before {
    content: "♦";
    position: absolute;
    left: 0;
    top: 0.5rem;
    font-size: 0.6rem;
    color: var(--accent);
}

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

.sidebar .widget a { color: var(--ink); text-decoration: none; }

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

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

.sidebar .widget p { color: #4A4358; font-size: 0.94rem; }

/* ==================================================================
   8. Подвал
   ================================================================== */

.site-foot {
    background: var(--foot-bg);
    color: #CFC6E0;
    padding: 3.2rem 0 1.8rem;
    margin-top: 2rem;
}

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

.foot-col { min-width: 0; }

.site-foot .widget-title {
    font-size: 1.02rem;
    color: #FFFFFF;
    margin: 0 0 0.9rem;
}

.site-foot .widget-title::before { color: var(--accent-2); }

.site-foot .widget p { color: #C2B7D6; font-size: 0.93rem; }

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

.site-foot .widget li {
    padding: 0.4rem 0 0.4rem 1.1rem;
    position: relative;
    font-size: 0.93rem;
    color: #C2B7D6;
}

.site-foot .widget li::before {
    content: "♦";
    position: absolute;
    left: 0;
    top: 0.42rem;
    font-size: 0.58rem;
    color: var(--accent-2);
}

.site-foot .widget a { color: #DCD2EC; text-decoration: none; }

.site-foot .widget a:hover { color: #FFFFFF; }

.site-foot .widget .post-date { color: #9A8EB0; font-size: 0.82rem; }

.foot-bottom {
    margin-top: 2.6rem;
    padding-top: 1.4rem;
    border-top: 1px solid rgba(184, 160, 217, 0.22);
    font-size: 0.86rem;
    color: #9A8EB0;
}

/* ==================================================================
   9. Пагинация
   ================================================================== */

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

.pager .page-numbers {
    display: inline-block;
    min-width: 42px;
    padding: 0.5rem 0.85rem;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--white);
    color: var(--ink);
    font-family: var(--font-head);
    font-size: 0.92rem;
    text-align: center;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.pager a.page-numbers:hover {
    background: var(--bg-alt);
    border-color: var(--accent-2);
    color: var(--accent-dk);
}

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

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

/* ==================================================================
   10. Форма поиска, комментарии, 404
   ================================================================== */

.search-form {
    display: flex;
    gap: 0.6rem;
    max-width: 480px;
}

.search-form input[type="search"] {
    flex: 1 1 auto;
    min-width: 0;
    padding: 0.72rem 0.95rem;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--white);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 0.95rem;
}

.search-form input[type="search"]:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(124, 92, 191, 0.16);
}

.comments-area { margin-top: 3rem; }

.comments-title { font-size: 1.5rem; margin-bottom: 1.4rem; }

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

.comment-list .children { margin: 1rem 0 0 1.6rem; padding: 0; list-style: none; }

.comment-item { margin-bottom: 1rem; }

.comment-inner {
    padding: 1.2rem 1.4rem;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

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

.comment-author { font-family: var(--font-head); font-weight: 600; }

.comment-author a { color: var(--ink); text-decoration: none; }

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

.comment-text p:last-child { margin-bottom: 0; }

.comment-actions { margin-top: 0.6rem; font-size: 0.88rem; }

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

.comment-wait { color: var(--muted); font-size: 0.9rem; }

.comment-respond {
    padding: 1.6rem 1.7rem;
    background: var(--bg-alt);
    border-radius: var(--radius);
}

.comment-reply-title { margin-top: 0; font-size: 1.25rem; }

.comment-form label {
    display: block;
    margin-bottom: 0.3rem;
    font-size: 0.9rem;
    font-family: var(--font-head);
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form textarea {
    width: 100%;
    padding: 0.7rem 0.9rem;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--white);
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--ink);
}

.comment-form textarea { min-height: 150px; resize: vertical; }

.comment-form p { margin-bottom: 1rem; }

.comment-form .submit {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border: 0;
    border-radius: 6px;
    background: var(--accent);
    color: var(--white);
    font-family: var(--font-head);
    font-weight: 600;
    cursor: pointer;
    transition: background 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease;
}

.comment-form .submit:hover {
    background: var(--accent-dk);
    transform: scale(1.02);
    box-shadow: 0 0 18px rgba(124, 92, 191, 0.45);
}

.error-404 { text-align: left; }

.error-404 .btn { margin-top: 0.6rem; }

.error-404-search { margin: 1.8rem 0; }

/* ==================================================================
   11. Cookie-баннер
   ================================================================== */

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

.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 90;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem 1.6rem;
    padding: 1.1rem 1.6rem;
    background: rgba(26, 21, 40, 0.96);
    color: #E6DEF5;
    border-top: 3px solid var(--accent);
    font-size: 0.9rem;
}

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

.cookie-banner a { color: var(--accent-2); }

.cookie-banner .btn { padding: 0.6rem 1.4rem; font-size: 0.9rem; }


/* ==================================================================
   11b. Служебные классы
   ================================================================== */

.home .site-main { padding-top: 0; padding-bottom: 0; }

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.page-links { margin: 1.4rem 0; font-family: var(--font-head); font-size: 0.92rem; }

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

.archive-desc { margin-bottom: 1.6rem; color: #4A4358; }

.comments-pagination { margin-top: 1.6rem; }

.entry-content .wp-caption { max-width: 100%; }

.entry-content figcaption,
.wp-caption-text { font-size: 0.86rem; color: var(--muted); }

/* ==================================================================
   12. Адаптив
   ================================================================== */

@media (max-width: 960px) {
    h1 { font-size: 2.4rem; }
    .hero h1 { font-size: 2.4rem; }
    .page-title { font-size: 1.95rem; }
    .sec-title { font-size: 1.7rem; }

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

    .layout-single { width: 100%; }

    .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .steps::before { display: none; }

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

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

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

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

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

    .main-nav ul { flex-direction: column; gap: 0; }

    .main-nav li { border-top: 1px solid rgba(184, 160, 217, 0.22); }

    .main-nav a { display: block; padding: 0.7rem 0; }
}

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

    h1 { font-size: 1.95rem; }
    .hero h1 { font-size: 1.95rem; }
    h2 { font-size: 1.45rem; }
    .page-title { font-size: 1.65rem; }
    .sec-title { font-size: 1.45rem; }

    .site-main { padding: 2rem 0 3rem; }

    .front-section { padding: 2.4rem 0; }

    .hero { padding: 3.4rem 0 4rem; }

    .hero-sub { font-size: 1rem; }

    .hero-line { width: 120px; bottom: 1.5rem; }

    .steps { grid-template-columns: minmax(0, 1fr); gap: 1.4rem; }

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

    .rubric { padding: 1.5rem 1.3rem; }

    .quote-block { padding: 1.9rem 1.4rem; gap: 1.1rem; }

    .quote-text { font-size: 1.25rem; }

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

    .card-body { padding: 1.1rem 1.2rem 1.3rem; }

    .comment-list .children { margin-left: 0.8rem; }

    .cookie-banner { padding: 1rem 1.1rem; }

    .entry-content blockquote { padding: 1.1rem 1.2rem; }

    .comment-respond { padding: 1.2rem 1.2rem; }

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