/*
Theme Name: dds_sazhaemistroim.ru
Author: Пастухов Дмитрий
Description: Практика строительства деревянных домов и благоустройства. Пошаговые инструкции и реальные кейсы.
Version: 1.1
Text Domain: dds
*/

/* === ПЕРЕМЕННЫЕ === */
:root {
    --bg: #F9F7F3;
    --text: #2C2A28;
    --accent: #7B4B2A;
    --accent-2: #8C9A6E;
    --border: #E2DCD3;
    --muted: #6F6A63;
    --shadow: 0 4px 0 0 #E2DCD3;
    --shadow-soft: 0 2px 0 0 #E2DCD3;
    --container: 1180px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: "PT Serif", Georgia, "Times New Roman", serif;
    font-size: 17px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; }
img.alignleft { float: left; margin: 0.4em 1.2em 0.8em 0; }
img.alignright { float: right; margin: 0.4em 0 0.8em 1.2em; }
img.aligncenter { display: block; margin: 0.6em auto; }

a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
    transition: color 0.15s ease;
}
a:hover { color: var(--accent-2); }

h1, h2, h3, h4, h5, h6 {
    font-family: "Roboto Slab", "PT Serif", Georgia, serif;
    color: var(--text);
    line-height: 1.25;
    margin: 1.6em 0 0.6em;
    font-weight: 600;
    letter-spacing: -0.01em;
}
h1 { font-size: 2.1rem; margin-top: 0; }
h2 { font-size: 1.65rem; }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.1rem; }

p { margin: 0 0 1em; }

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

blockquote {
    margin: 1.4em 0;
    padding: 1em 1.2em;
    border-top: 2px solid var(--accent);
    border-bottom: 2px solid var(--accent);
    background: rgba(255, 255, 255, 0.5);
    font-style: italic;
    color: #3a3733;
    position: relative;
}
blockquote::before {
    content: "Чертёж";
    position: absolute;
    top: -10px; left: 16px;
    background: var(--bg);
    padding: 0 8px;
    font-family: "Roboto Slab", serif;
    font-size: 0.7rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent);
    font-style: normal;
}
blockquote p:last-child { margin-bottom: 0; }

code, pre {
    font-family: "JetBrains Mono", Menlo, Consolas, monospace;
    font-size: 0.9em;
}
code {
    background: #efeae0;
    padding: 0.1em 0.4em;
    border-radius: 3px;
}
pre {
    background: #2C2A28;
    color: #f4ede0;
    padding: 1em 1.2em;
    border-radius: 6px;
    overflow-x: auto;
    line-height: 1.5;
}
pre code { background: none; padding: 0; color: inherit; }

table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.4em 0;
    border: 1px solid var(--border);
}
th, td {
    border: 1px solid var(--border);
    padding: 0.6em 0.9em;
    text-align: left;
}
th {
    background: #efeae0;
    font-weight: 700;
    font-family: "Roboto Slab", serif;
}

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

/* === КНОПКИ === */
.btn,
button.btn,
input[type="submit"].btn,
.cookie-banner button,
.search-submit,
.wp-block-button__link,
.subscribe-form button {
    display: inline-flex;
    align-items: center;
    gap: 0.5em;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 0.7em 1.3em;
    font-family: "Roboto Slab", serif;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 3px 0 0 #5a3618;
    transition: background-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease, color 0.18s ease;
    line-height: 1.2;
}
.btn:hover,
.cookie-banner button:hover,
.search-submit:hover,
.subscribe-form button:hover {
    background: var(--accent-2);
    color: var(--bg);
    transform: translateY(-2px);
    box-shadow: 0 5px 0 0 #6e7a55;
}
.btn:active { transform: translateY(0); box-shadow: 0 1px 0 0 #5a3618; }

.btn-outline {
    background: transparent;
    color: var(--accent);
    border: 1px solid var(--accent);
    box-shadow: none;
}
.btn-outline:hover { background: var(--accent-2); color: var(--bg); border-color: var(--accent-2); }

/* === LAYOUT === */
.site-wrap {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

.site-main { padding: 32px 0 64px; }

.layout-with-sidebar {
    display: grid;
    grid-template-columns: 67% 27%;
    gap: 6%;
}
.layout-no-sidebar {
    width: 85%;
    margin: 0 auto;
}

@media (max-width: 960px) {
    .layout-with-sidebar { grid-template-columns: 1fr; gap: 40px; }
    .layout-no-sidebar { width: 100%; }
}

/* === ШАПКА === */
.site-header {
    border-bottom: 1px solid var(--border);
    background: var(--bg);
    padding: 16px 0;
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}
.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    color: var(--text);
    flex: 0 1 auto;
}
.brand-logo {
    width: 52px;
    height: 52px;
    display: block;
    flex-shrink: 0;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-name {
    font-family: "Roboto Slab", serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: 0.01em;
}
.brand-tagline {
    font-size: 0.78rem;
    color: var(--muted);
    margin-top: 2px;
}

.menu-toggle {
    display: none;
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text);
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.9rem;
    cursor: pointer;
    box-shadow: none;
    font-family: inherit;
}

.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}
.main-nav li { margin: 0; }
.main-nav a {
    display: block;
    color: var(--text);
    text-decoration: none;
    padding: 8px 14px;
    font-family: "Roboto Slab", serif;
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: 4px;
    transition: background-color 0.15s ease, color 0.15s ease;
}
.main-nav a:hover,
.main-nav .current-menu-item > a,
.main-nav .current_page_item > a {
    background: var(--accent-2);
    color: var(--bg);
}

@media (max-width: 800px) {
    .header-inner { gap: 12px; }
    .menu-toggle { display: inline-block; }
    .main-nav {
        flex-basis: 100%;
        display: none;
    }
    .main-nav.is-open { display: block; }
    .main-nav ul { flex-direction: column; gap: 0; }
    .main-nav a { padding: 10px 0; border-bottom: 1px dashed var(--border); border-radius: 0; }
}

/* === ХЛЕБНЫЕ КРОШКИ === */
.crumbs {
    font-size: 0.85rem;
    color: var(--muted);
    padding: 14px 0 4px;
    line-height: 1.5;
}
.crumbs a {
    color: var(--muted);
    text-decoration: none;
    border-bottom: 1px dotted var(--border);
}
.crumbs a:hover { color: var(--accent); border-color: var(--accent); }
.crumbs .sep { margin: 0 8px; color: var(--border); }
.crumbs .current { color: var(--text); }

/* === КАРТОЧКИ ЗАПИСЕЙ === */
.post-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}
@media (max-width: 720px) {
    .post-grid { grid-template-columns: 1fr; gap: 22px; }
}

.card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 6px 0 0 var(--border); }

.card-thumb {
    position: relative;
    overflow: hidden;
    background: #efeae0;
}
.card-thumb a { display: block; }
.card-thumb img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}
.card-thumb:hover img { transform: scale(1.04); }

.card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 18px 20px 20px;
}

.card-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    color: var(--muted);
    margin-bottom: 8px;
}
.card-meta svg { width: 14px; height: 14px; flex-shrink: 0; }

.card-title {
    font-family: "Roboto Slab", serif;
    font-size: 1.2rem;
    line-height: 1.3;
    margin: 0 0 10px;
    font-weight: 600;
}
.card-title a {
    color: var(--text);
    text-decoration: none;
    background-image: linear-gradient(to right, var(--accent), var(--accent));
    background-size: 0 1px;
    background-position: left bottom;
    background-repeat: no-repeat;
    transition: background-size 0.3s ease, color 0.2s ease;
}
.card-title a:hover { background-size: 100% 1px; color: var(--accent); }

.card-excerpt {
    font-size: 0.95rem;
    color: #423d36;
    margin-bottom: 14px;
}
.card-excerpt p { margin: 0 0 0.5em; background: none; }

.card-actions { margin-top: auto; }

/* первая карточка — крупная (асимметричная сетка) */
.post-grid .card-feature {
    grid-column: 1 / -1;
    flex-direction: row;
}
.post-grid .card-feature .card-thumb-wrap {
    flex: 0 0 48%;
    position: relative;
    overflow: hidden;
}
.post-grid .card-feature .card-thumb-wrap a {
    display: block;
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
}
.post-grid .card-feature .card-thumb-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.post-grid .card-feature .card-body {
    padding: 28px 32px;
}
.post-grid .card-feature .card-title { font-size: 1.55rem; }

@media (max-width: 720px) {
    .post-grid .card-feature { flex-direction: column; }
    .post-grid .card-feature .card-thumb-wrap {
        flex: none;
        width: 100%;
        position: static;
    }
    .post-grid .card-feature .card-thumb-wrap a {
        position: static;
    }
    .post-grid .card-feature .card-thumb-wrap img {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 10;
    }
    .post-grid .card-feature .card-body { padding: 18px 20px; }
}

/* === ПАГИНАЦИЯ === */
.pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    margin: 40px 0 0;
    padding: 0;
    list-style: none;
}
.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: #fff;
    color: var(--text);
    text-decoration: none;
    font-family: "Roboto Slab", serif;
    font-size: 0.95rem;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.pagination .page-numbers:hover {
    background: var(--accent-2);
    color: var(--bg);
    border-color: var(--accent-2);
}
.pagination .page-numbers.current {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}
.pagination .dots { border: none; background: transparent; }

/* === САЙДБАР === */
.sidebar { font-size: 0.95rem; }
.widget {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 18px 20px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-soft);
}
.widget-title {
    font-family: "Roboto Slab", serif;
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0 0 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--accent);
    color: var(--text);
    text-transform: none;
    letter-spacing: 0.01em;
}
.widget ul { list-style: none; padding: 0; margin: 0; }
.widget li { padding: 6px 0; border-bottom: 1px dashed var(--border); }
.widget li:last-child { border-bottom: none; }
.widget a { color: var(--text); text-decoration: none; }
.widget a:hover { color: var(--accent); }

/* === ПОДВАЛ === */
.site-footer {
    margin-top: 64px;
    background: #2C2A28;
    color: #d8d3c9;
    padding: 48px 0 24px;
}
.site-footer a { color: #e9d8b9; }
.site-footer a:hover { color: #fff; }

.footer-cols {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-bottom: 32px;
}
@media (max-width: 800px) {
    .footer-cols { grid-template-columns: 1fr; gap: 28px; }
}

.site-footer .widget {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    margin-bottom: 0;
}
.site-footer .widget-title {
    color: #fff;
    border-bottom-color: var(--accent-2);
    font-size: 1rem;
}
.site-footer .widget li { border-color: #3d3a37; }
.site-footer .widget a { color: #d8d3c9; }
.site-footer .widget a:hover { color: var(--accent-2); }

.site-tagline-handwritten {
    font-family: "Caveat", "PT Serif", cursive;
    font-size: 1.6rem;
    color: var(--accent-2);
    line-height: 1.2;
    margin-top: 12px;
}

.copyright {
    border-top: 1px solid #3d3a37;
    padding-top: 18px;
    font-size: 0.85rem;
    color: #9a958c;
    text-align: center;
}

/* === ФРОНТ-ПЕЙДЖ — ТЕМАТИЧЕСКИЕ БЛОКИ === */
.hero {
    padding: 48px 0 32px;
    border-bottom: 1px dashed var(--border);
    margin-bottom: 32px;
}
.hero h1 {
    font-size: 2.4rem;
    margin: 0 0 12px;
    max-width: 760px;
}
.hero-lead {
    font-size: 1.15rem;
    color: #423d36;
    max-width: 720px;
    margin: 0 0 18px;
}
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }

.section-block {
    margin: 48px 0;
    padding: 32px 0;
    border-top: 1px dashed var(--border);
}
.section-title {
    font-family: "Roboto Slab", serif;
    font-size: 1.7rem;
    margin: 0 0 8px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.section-title-marker {
    display: inline-block;
    width: 28px;
    height: 4px;
    background: var(--accent);
    border-radius: 2px;
}
.section-lead { color: #423d36; margin-bottom: 24px; max-width: 720px; }

.steps-list {
    counter-reset: step;
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
@media (max-width: 800px) {
    .steps-list { grid-template-columns: 1fr; }
}
.steps-list li {
    counter-increment: step;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 22px 22px 20px;
    position: relative;
    box-shadow: var(--shadow-soft);
}
.steps-list li::before {
    content: counter(step);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--accent-2);
    color: var(--bg);
    font-family: "Roboto Slab", serif;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 12px;
}
.steps-list li h3 { margin: 0 0 6px; font-size: 1.1rem; }
.steps-list li p { margin: 0; font-size: 0.95rem; color: #423d36; }

.cat-ribbon {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 18px;
    padding: 12px 0;
    margin-bottom: 8px;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
}
.cat-ribbon .cat-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text);
    text-decoration: none;
    font-weight: 700;
    font-family: "Roboto Slab", serif;
    padding: 4px 0;
}
.cat-ribbon .cat-tag::before {
    content: "›";
    color: var(--accent-2);
    font-weight: 900;
}
.cat-ribbon .cat-tag:hover { color: var(--accent); }

.feature-cols {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}
@media (max-width: 720px) {
    .feature-cols { grid-template-columns: 1fr; }
}
.feature-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 22px 24px;
    box-shadow: var(--shadow-soft);
}
.feature-card h3 {
    margin: 0 0 8px;
    font-size: 1.15rem;
    display: flex;
    align-items: center;
    gap: 10px;
}
.feature-card .icon-square {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background: var(--accent-2);
    color: var(--bg);
    flex-shrink: 0;
}
.feature-card .icon-square svg { width: 18px; height: 18px; }
.feature-card p { margin: 0 0 0.5em; }
.feature-card p:last-child { margin-bottom: 0; }

/* === ОДИНОЧНАЯ ЗАПИСЬ === */
.entry-header { margin-bottom: 24px; }
.entry-title { margin: 0 0 12px; }
.entry-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    color: var(--muted);
    font-size: 0.88rem;
    align-items: center;
}
.entry-meta-item { display: inline-flex; align-items: center; gap: 6px; }
.entry-meta-item svg { width: 14px; height: 14px; }
.entry-thumb { margin: 0 0 24px; border-radius: 8px; overflow: hidden; }
.entry-thumb img { display: block; width: 100%; }

.entry-content { font-size: 1.02rem; }
.entry-content img { border-radius: 6px; }
.entry-content figure { margin: 1.4em 0; }
.entry-content figure figcaption {
    font-size: 0.85rem;
    color: var(--muted);
    text-align: center;
    margin-top: 6px;
    font-style: italic;
}
.entry-content iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    border: none;
    border-radius: 6px;
    display: block;
    margin: 0 auto 4px;
}
.video-caption {
    text-align: center;
    color: var(--muted);
    font-size: 0.85rem;
    margin: 0 0 1.4em;
    font-style: italic;
}

.entry-tags { margin: 32px 0 16px; font-size: 0.9rem; }
.entry-tags a {
    display: inline-block;
    background: #efeae0;
    color: var(--text);
    padding: 3px 10px;
    border-radius: 4px;
    text-decoration: none;
    margin: 0 4px 4px 0;
}
.entry-tags a:hover { background: var(--accent-2); color: var(--bg); }

.post-nav {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px dashed var(--border);
    flex-wrap: wrap;
}
.post-nav a {
    flex: 1 1 220px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 12px 16px;
    text-decoration: none;
    color: var(--text);
    font-size: 0.92rem;
    transition: border-color 0.15s ease;
}
.post-nav a:hover { border-color: var(--accent); }
.post-nav .label { display: block; font-size: 0.75rem; color: var(--muted); margin-bottom: 4px; }

/* === КОММЕНТАРИИ === */
.comments {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px dashed var(--border);
}
.comments-title { margin: 0 0 20px; }
.comment-list { list-style: none; padding: 0; margin: 0 0 32px; }
.comment-list .children { list-style: none; padding-left: 24px; margin-top: 16px; }
.comment {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 16px 18px;
    margin-bottom: 16px;
}
.comment-author { font-weight: 700; font-family: "Roboto Slab", serif; }
.comment-meta { font-size: 0.82rem; color: var(--muted); margin-bottom: 8px; }
.comment-text { font-size: 0.95rem; }
.comment-reply-link {
    display: inline-block;
    margin-top: 8px;
    font-size: 0.85rem;
    color: var(--accent);
    text-decoration: none;
}
.comment-reply-link:hover { text-decoration: underline; }

.comment-form { background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 22px 24px; }
.comment-form p { margin: 0 0 14px; }
.comment-form label { display: block; font-size: 0.85rem; margin-bottom: 4px; color: var(--muted); }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea,
.search-form input[type="search"] {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--bg);
    color: var(--text);
    font-family: inherit;
    font-size: 1rem;
}
.comment-form input:focus,
.comment-form textarea:focus,
.search-form input:focus { outline: none; border-color: var(--accent); }

/* === ФОРМА ПОИСКА === */
.search-form {
    display: flex;
    gap: 8px;
    align-items: stretch;
}
.search-form input[type="search"] { flex: 1; min-width: 0; }
.search-form .search-submit { white-space: nowrap; }

/* === COOKIE-БАННЕР === */
/* A11: правило для скрытия через атрибут hidden ставим ДО основных стилей */
.cookie-banner[hidden] { display: none !important; }

.cookie-banner {
    position: fixed;
    bottom: 16px;
    left: 16px;
    right: 16px;
    z-index: 100;
    max-width: 640px;
    margin: 0 auto;
    padding: 16px 18px;
    background: #2C2A28;
    color: #f4ede0;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 0.9rem;
    line-height: 1.4;
}
.cookie-banner p { margin: 0; flex: 1; }
.cookie-banner a { color: #e9d8b9; text-decoration: underline; }
.cookie-banner button {
    flex-shrink: 0;
    background: var(--accent-2);
    box-shadow: 0 2px 0 0 #6e7a55;
    padding: 0.5em 1em;
    font-size: 0.88rem;
}
.cookie-banner button:hover { background: var(--accent); box-shadow: 0 3px 0 0 #5a3618; }

@media (max-width: 600px) {
    .cookie-banner { flex-direction: column; align-items: stretch; text-align: center; }
}

/* === БЫСТРЫЙ СОВЕТ === */
.quick-tip[hidden] { display: none !important; }

.quick-tip {
    position: fixed;
    right: 20px;
    bottom: 90px;
    z-index: 90;
    max-width: 280px;
    padding: 14px 16px 14px 46px;
    background: #efeae0;
    border: 1px solid var(--border);
    border-left: 4px solid var(--accent-2);
    border-radius: 6px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
    font-size: 0.88rem;
    line-height: 1.4;
    color: var(--text);
}
.quick-tip strong { display: block; font-family: "Roboto Slab", serif; margin-bottom: 4px; }
.quick-tip .qt-icon {
    position: absolute;
    left: 14px;
    top: 14px;
    width: 22px;
    height: 22px;
    color: var(--accent-2);
}
.quick-tip-close {
    position: absolute;
    top: 6px;
    right: 8px;
    background: transparent;
    border: none;
    color: var(--muted);
    cursor: pointer;
    font-size: 1.1rem;
    box-shadow: none;
    padding: 4px 6px;
    line-height: 1;
}
.quick-tip-close:hover { color: var(--accent); background: transparent; transform: none; box-shadow: none; }

@media (max-width: 600px) {
    .quick-tip { right: 12px; left: 12px; max-width: none; bottom: 100px; }
}

/* === 404 === */
.error-404 {
    text-align: center;
    padding: 60px 0 40px;
}
.error-404 .big {
    font-family: "Roboto Slab", serif;
    font-size: 6rem;
    line-height: 1;
    color: var(--accent);
    margin: 0 0 12px;
    font-weight: 700;
}
.error-404 .search-form { max-width: 460px; margin: 24px auto; }

/* === ПОДПИСКА === */
.subscribe-form {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}
.subscribe-form input[type="email"] {
    flex: 1;
    min-width: 0;
    padding: 10px 12px;
    border: 1px solid #3d3a37;
    border-radius: 6px;
    background: #1f1d1b;
    color: #f4ede0;
    font-family: inherit;
}
.subscribe-form button {
    background: transparent;
    border: 1px solid #e9d8b9;
    color: #e9d8b9;
    box-shadow: none;
}
.subscribe-form button:hover { background: var(--accent-2); border-color: var(--accent-2); color: var(--bg); }

@media (max-width: 480px) {
    .subscribe-form { flex-direction: column; }
}

/* === FRONT PAGE LATEST POSTS === */
.front-recent { margin: 48px 0; }

/* === АРХИВ-ЗАГОЛОВОК === */
.archive-header { margin-bottom: 24px; padding-bottom: 12px; border-bottom: 1px dashed var(--border); }
.archive-header h1 { margin: 0 0 6px; }
.archive-header p { margin: 0; color: var(--muted); }

/* === SCREEN-READER === */
.screen-reader-text {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    border: 0;
}

/* === АДАПТИВ === */
@media (max-width: 600px) {
    body { font-size: 16px; }
    h1 { font-size: 1.6rem; }
    h2 { font-size: 1.3rem; }
    .site-main { padding: 20px 0 40px; }
    .site-wrap { padding: 0 16px; }
    .hero h1 { font-size: 1.8rem; }
    .section-title { font-size: 1.35rem; }
}
