/*
Theme Name: dds_aariciavaranda.com
Author: Aaricia Varanda
Description: Тема для медиа-проекта о загородных домах с верандой: фотоистории, видеотуры и обзоры загородной архитектуры.
Version: 1.1
Text Domain: varanda
Requires at least: 6.0
Requires PHP: 8.0
*/

:root {
    --bg: #F4F7F2;
    --bg-alt: #E8EFE4;
    --bg-deep: #D5E3D0;
    --head-bg: #1B3A2D;
    --foot-bg: #14291F;
    --ink: #1B3A2D;
    --accent: #2E7D5E;
    --accent-dark: #22604A;
    --mint: #A8D5BA;
    --muted: #6B8A7A;
    --line: #C8DCC4;
    --light: #F4F7F2;
    --shadow: 0 8px 22px rgba(27, 58, 45, 0.08);
    --shadow-up: 0 14px 30px rgba(27, 58, 45, 0.14);
    --font-head: Georgia, "Iowan Old Style", "Palatino Linotype", "Book Antiqua", serif;
    --font-body: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
    --radius: 6px;
}

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

html { scroll-behavior: smooth; }

body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.7;
    color: var(--ink);
    background-color: var(--bg);
    background-image:
        radial-gradient(var(--bg-deep) 1.4px, transparent 1.5px),
        radial-gradient(var(--bg-deep) 1.4px, transparent 1.5px);
    background-size: 26px 26px;
    background-position: 0 0, 13px 13px;
}

body::after {
    content: "";
    position: fixed;
    right: -40px;
    bottom: -30px;
    width: 340px;
    height: 340px;
    z-index: -1;
    pointer-events: none;
    opacity: 0.15;
    background-repeat: no-repeat;
    background-size: contain;
    background-position: right bottom;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cg stroke='%23C8DCC4' stroke-width='3' fill='none' stroke-linecap='round'%3E%3Cpath d='M20 180 L175 25'/%3E%3Cpath d='M48 152 L26 130 M48 152 L70 174'/%3E%3Cpath d='M70 130 L48 108 M70 130 L92 152'/%3E%3Cpath d='M92 108 L70 86 M92 108 L114 130'/%3E%3Cpath d='M114 86 L92 64 M114 86 L136 108'/%3E%3Cpath d='M136 64 L114 42 M136 64 L158 86'/%3E%3Cpath d='M158 42 L136 20 M158 42 L178 62'/%3E%3C/g%3E%3C/svg%3E");
}

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

a {
    color: var(--ink);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    text-decoration-color: currentColor;
    transition: color .2s ease, text-decoration-color .2s ease, text-decoration-thickness .2s ease;
}

a:hover, a:focus {
    color: var(--accent);
    text-decoration-color: var(--accent);
    text-decoration-thickness: 2px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-head);
    font-weight: 600;
    line-height: 1.22;
    color: var(--ink);
    margin: 0 0 .7em;
}

h1 { font-size: 3.2rem; letter-spacing: -.01em; }
h2 { font-size: 2rem; }
h3 { font-size: 1.45rem; }
h4 { font-size: 1.2rem; }

p { margin: 0 0 1.1em; }

ul, ol { margin: 0 0 1.2em; padding-left: 1.3em; }
li { margin-bottom: .45em; }

blockquote {
    margin: 1.8rem 0;
    padding: 1.4rem 1.6rem;
    background: var(--bg-alt);
    border-left: 4px solid var(--accent);
    border-radius: var(--radius);
    font-family: var(--font-head);
    font-size: 1.15rem;
}

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

.grad-phrase {
    background: linear-gradient(90deg, #1B3A2D 0%, #2E7D5E 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 600;
}

code, pre {
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
    background: var(--bg-alt);
    font-size: .92em;
}

pre { padding: 1rem 1.2rem; overflow-x: auto; border-radius: var(--radius); }

table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 0 1.5rem;
    border: 1px solid var(--line);
    background: #fff;
}

table th, table td {
    border: 1px solid var(--line);
    padding: .65rem .85rem;
    text-align: left;
}

table th { background: var(--bg-alt); font-family: var(--font-head); }

/* ---------- контейнер ---------- */

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

.wide-inner {
    width: 85%;
    max-width: 1240px;
    margin-left: auto;
    margin-right: auto;
}

/* ---------- кнопки ---------- */

.btn, .btn-ghost {
    display: inline-block;
    padding: .72rem 1.5rem;
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: .97rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background .2s ease, color .2s ease, transform .2s ease, border-color .2s ease;
}

.btn {
    background: var(--accent);
    color: #F4F7F2;
    border: 2px solid var(--accent);
}

.btn:hover, .btn:focus {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
    color: #F4F7F2;
    transform: translateY(-2px);
    text-decoration: none;
}

.btn-ghost {
    background: transparent;
    color: var(--accent);
    border: 2px solid var(--accent);
}

.btn-ghost:hover, .btn-ghost:focus {
    background: transparent;
    color: var(--accent-dark);
    border-color: var(--accent-dark);
    transform: translateY(-2px);
    text-decoration: none;
}

/* ---------- заголовки секций ---------- */

.section-title {
    position: relative;
    padding-left: 4.4rem;
    margin-bottom: 1.6rem;
}

.section-title::before {
    content: "";
    position: absolute;
    left: 1.5rem;
    top: .72em;
    width: 2.4rem;
    height: 2px;
    background: var(--accent);
}

.section-title::after {
    content: "";
    position: absolute;
    left: 0;
    top: .58em;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--mint);
}

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

/* ---------- волнистый разделитель ---------- */

.leaf-divider {
    height: 16px;
    background-repeat: repeat-x;
    background-position: center;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='16' viewBox='0 0 120 16'%3E%3Cpath d='M0 8 C15 0 25 16 40 8 C55 0 65 16 80 8 C95 0 105 16 120 8' fill='none' stroke='%23A8D5BA' stroke-width='2'/%3E%3C/svg%3E");
}

/* ---------- шапка ---------- */

.site-top {
    background: var(--head-bg);
    color: #E4EFE6;
    border-bottom: 4px solid var(--accent);
}

.top-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.3rem 0;
    flex-wrap: wrap;
}

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

.brand:hover { color: inherit; text-decoration: none; }

.brand-logo, .brand-mark {
    width: 58px;
    height: 58px;
    flex: 0 0 58px;
    display: block;
}

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

.brand-name {
    display: block;
    font-family: var(--font-head);
    font-size: 1.04rem;
    line-height: 1.35;
    color: #F1F7F0;
}

.brand-tagline {
    display: block;
    margin-top: .25rem;
    font-size: .8rem;
    line-height: 1.5;
    color: #9EBBA6;
    max-width: 58ch;
}

.nav-toggle {
    display: none;
    background: transparent;
    border: 2px solid #4C6F5D;
    color: #E4EFE6;
    border-radius: 4px;
    padding: .5rem .85rem;
    font-size: .92rem;
    font-family: var(--font-body);
}

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

.main-nav li { margin: 0; }

.main-nav a {
    color: #DCEADF;
    text-decoration: none;
    font-size: .98rem;
    padding-bottom: 3px;
    border-bottom: 2px solid transparent;
}

.main-nav a:hover, .main-nav a:focus {
    color: #FFFFFF;
    border-bottom-color: var(--mint);
}

.main-nav .current-menu-item > a { border-bottom-color: var(--accent); color: #FFFFFF; }

/* ---------- основной блок ---------- */

.site-main { padding: 0 0 3.5rem; }

.page-body { padding-top: 2.4rem; }

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

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

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

/* ---------- хлебные крошки ---------- */

.crumbs {
    font-size: .88rem;
    color: var(--muted);
    margin-bottom: 1.4rem;
    padding: .55rem 0;
}

.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--accent); text-decoration: underline; }
.crumbs-sep { color: var(--mint); margin: 0 .2rem; }

/* ---------- карточки записей ---------- */

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
    gap: 1.8rem;
    margin-bottom: 2.4rem;
}

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

.card::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform .25s ease;
}

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

.card-thumb-wrap { display: block; overflow: hidden; }

.card-thumb-wrap img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

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

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

.card-title {
    font-size: 1.22rem;
    margin: 0 0 .55rem;
}

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

.card-excerpt { color: #33503F; font-size: .96rem; margin-bottom: 1rem; }
.card-excerpt p { margin: 0 0 0.5em; background: none; }
.card-excerpt p:last-child { margin-bottom: 0; }

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

.post-meta {
    font-size: .83rem;
    color: var(--muted);
    margin-bottom: .6rem;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .45rem;
}

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

.meta-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--mint);
    display: inline-block;
}

.card-more {
    display: inline-block;
    font-size: .92rem;
    font-weight: 600;
    color: var(--accent);
    text-decoration: none;
    border-bottom: 1px solid var(--mint);
    padding-bottom: 2px;
}

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

/* ---------- главная ---------- */

.front-section { padding: 4.2rem 0; }
.front-section.alt { background: var(--bg-alt); }

.front-hero {
    position: relative;
    padding: 0;
    color: #F2F7F0;
    overflow: hidden;
}

.hero-media { position: relative; }

.hero-media img {
    display: block;
    width: 100%;
    height: clamp(380px, 56vh, 620px);
    object-fit: cover;
}

.hero-veil {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(20, 41, 31, .72) 0%, rgba(27, 58, 45, .58) 45%, rgba(20, 41, 31, .86) 100%);
}

.hero-inner {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
}

.hero-copy { padding: 2.5rem 0; }

.hero-eyebrow {
    display: inline-block;
    font-size: .82rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--mint);
    margin-bottom: 1rem;
}

.front-hero h1 {
    color: #F4F7F2;
    max-width: 18ch;
    margin-bottom: 1rem;
}

.hero-text {
    max-width: 52ch;
    color: #D8E7DA;
    font-size: 1.06rem;
    margin-bottom: 1.8rem;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; }

.hero-actions .btn-ghost { color: var(--mint); border-color: var(--mint); }
.hero-actions .btn-ghost:hover { color: #FFFFFF; border-color: #FFFFFF; }

.hero-wave {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 16px;
    background-repeat: repeat-x;
    background-position: center;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='16' viewBox='0 0 120 16'%3E%3Cpath d='M0 8 C15 0 25 16 40 8 C55 0 65 16 80 8 C95 0 105 16 120 8' fill='none' stroke='%23A8D5BA' stroke-width='2'/%3E%3C/svg%3E");
}

/* рубрики — сетка карточек */

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

.rubric-card {
    background: var(--bg-alt);
    border-radius: var(--radius);
    padding: 1.9rem 1.7rem;
    min-width: 0;
    box-shadow: var(--shadow);
    transition: transform .22s ease, box-shadow .22s ease;
}

.front-section.alt .rubric-card { background: #FFFFFF; }

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

.rubric-icon {
    width: 46px;
    height: 46px;
    display: block;
    margin-bottom: 1.1rem;
    color: var(--accent);
}

.rubric-card h3 { margin-bottom: .5rem; font-size: 1.28rem; }
.rubric-card p { margin-bottom: 0; color: #33503F; font-size: .97rem; }

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

.latest-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}

/* цитата */

.front-quote {
    background: var(--head-bg);
    padding: 4.2rem 0;
}

.quote-plate {
    border-left: 3px solid var(--mint);
    padding: .4rem 2rem .4rem 2.2rem;
}

.quote-plate p {
    font-family: var(--font-head);
    font-size: clamp(1.5rem, 3.1vw, 2.35rem);
    line-height: 1.4;
    color: #F4F7F2;
    margin-bottom: 1.2rem;
}

.quote-plate .quote-key { color: var(--mint); }

.quote-sign {
    font-size: .88rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #8FAE9C;
}

/* карта тем */

.front-map {
    padding: 4.2rem 0;
    background:
        repeating-linear-gradient(45deg, rgba(184, 208, 176, .35) 0 1px, transparent 1px 11px),
        linear-gradient(135deg, var(--bg-alt) 0%, var(--bg-deep) 100%);
}

.map-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: 1.6rem;
    max-width: 920px;
}

.map-tile {
    display: flex;
    gap: 1.1rem;
    align-items: flex-start;
    min-width: 0;
    padding: 1.7rem 1.6rem;
    border-radius: var(--radius);
    text-decoration: none;
    color: inherit;
    box-shadow: var(--shadow);
    transition: transform .22s ease, box-shadow .22s ease;
}

.map-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-up); text-decoration: none; color: inherit; }

.map-tile .leaf {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    display: block;
}

.map-tile h3 { font-size: 1.18rem; margin-bottom: .35rem; }
.map-tile p { margin: 0; font-size: .93rem; }

.tile-1 { background: #DCEEE1; }
.tile-1 .leaf, .tile-1 h3 { color: var(--accent); }
.tile-2 { background: #C3E2CE; }
.tile-2 .leaf, .tile-2 h3 { color: var(--accent-dark); }
.tile-3 { background: #9CC9AE; }
.tile-3 .leaf, .tile-3 h3 { color: #163A2C; }
.tile-4 { background: #1B3A2D; color: #E2EEE4; }
.tile-4 h3 { color: #F2F8F1; }
.tile-4 .leaf { color: var(--mint); }
.tile-4 p { color: #B9D2C0; }

/* ---------- запись и страница ---------- */

.entry-head { margin-bottom: 1.8rem; }
.entry-title { font-size: 2.5rem; margin-bottom: .6rem; }

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

.entry-thumb img { display: block; width: 100%; height: auto; }

.entry-content { font-size: 1.04rem; }
.entry-content h2 { margin-top: 2rem; }
.entry-content h3 { margin-top: 1.6rem; }
.entry-content img { border-radius: var(--radius); }

.entry-tags {
    margin-top: 2rem;
    padding-top: 1.2rem;
    border-top: 1px solid var(--line);
    font-size: .9rem;
    color: var(--muted);
}

.entry-tags a { color: var(--accent); text-decoration: none; }
.entry-tags a:hover { text-decoration: underline; }

.post-nav {
    display: flex;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-top: 2rem;
    font-size: .95rem;
}

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

/* ---------- сайдбар ---------- */

.sidebar {
    min-width: 0;
    background: var(--bg-alt);
    border-radius: var(--radius);
    padding: 1.6rem 1.5rem;
    color: var(--ink);
    box-shadow: var(--shadow);
}

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

.sidebar .widget-title {
    font-size: 1.15rem;
    color: var(--ink);
    margin-bottom: .9rem;
    padding-bottom: .5rem;
    border-bottom: 2px solid var(--mint);
}

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

.sidebar li {
    margin-bottom: .75rem;
    padding-bottom: .75rem;
    border-bottom: 1px solid rgba(27, 58, 45, .1);
    font-size: .96rem;
    color: var(--ink);
}

.sidebar li:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }

.sidebar a { color: var(--ink); text-decoration: none; }
.sidebar a:hover { color: var(--accent); text-decoration: underline; }
.sidebar .post-date { display: block; font-size: .8rem; color: var(--muted); margin-top: .2rem; }
.sidebar p { color: var(--ink); font-size: .95rem; }

/* ---------- формы ---------- */

.search-form { display: flex; gap: .6rem; flex-wrap: wrap; }

.search-form label { flex: 1 1 200px; min-width: 0; }

.search-field {
    width: 100%;
    padding: .65rem .85rem;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: #FFFFFF;
    color: var(--ink);
    font-family: var(--font-body);
    font-size: .95rem;
}

.search-field:focus { outline: 2px solid var(--accent); outline-offset: 1px; }

.search-submit {
    padding: .65rem 1.2rem;
    border: 2px solid var(--accent);
    border-radius: 4px;
    background: var(--accent);
    color: #F4F7F2;
    font-family: var(--font-body);
    font-weight: 600;
    cursor: pointer;
    transition: background .2s ease, transform .2s ease;
}

.search-submit:hover { background: var(--accent-dark); border-color: var(--accent-dark); transform: translateY(-2px); }

/* ---------- комментарии ---------- */

.comments-area {
    margin-top: 2.8rem;
    padding-top: 1.8rem;
    border-top: 1px solid var(--line);
}

.comments-title { font-size: 1.6rem; }

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

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

.comment-body {
    background: #FFFFFF;
    border-radius: var(--radius);
    padding: 1.2rem 1.4rem;
    box-shadow: var(--shadow);
}

.comment-head {
    display: flex;
    gap: .8rem;
    align-items: baseline;
    flex-wrap: wrap;
    margin-bottom: .6rem;
}

.comment-author { font-family: var(--font-head); font-size: 1.08rem; }
.comment-head time { font-size: .82rem; color: var(--muted); }
.comment-actions { font-size: .88rem; }
.comment-actions a { color: var(--accent); text-decoration: none; }
.comment-actions a:hover { text-decoration: underline; }

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

.comment-form label { display: block; font-size: .9rem; margin-bottom: .3rem; }

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: .65rem .85rem;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: #FFFFFF;
    font-family: var(--font-body);
    font-size: .95rem;
    color: var(--ink);
}

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

.comment-form .submit {
    padding: .72rem 1.5rem;
    background: var(--accent);
    border: 2px solid var(--accent);
    border-radius: 4px;
    color: #F4F7F2;
    font-weight: 600;
    font-family: var(--font-body);
    cursor: pointer;
    transition: background .2s ease, transform .2s ease;
}

.comment-form .submit:hover { background: var(--accent-dark); border-color: var(--accent-dark); transform: translateY(-2px); }

/* ---------- пагинация ---------- */

.pager {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin: 2.2rem 0 .5rem;
}

.pager .page-numbers {
    display: inline-block;
    min-width: 42px;
    text-align: center;
    padding: .55rem .9rem;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: #FFFFFF;
    color: var(--ink);
    text-decoration: none;
    font-size: .95rem;
    transition: background .2s ease, color .2s ease, transform .2s ease, border-color .2s ease;
}

.pager a.page-numbers:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #F4F7F2;
    transform: translateY(-2px);
}

.pager .page-numbers.current {
    background: var(--accent);
    border-color: var(--accent);
    color: #F4F7F2;
    font-weight: 600;
}

.pager .page-numbers.dots { border-color: transparent; background: transparent; }

/* ---------- 404 и поиск ---------- */

.state-block {
    background: var(--bg-alt);
    border-radius: var(--radius);
    padding: 2.4rem 2.2rem;
    margin-bottom: 2rem;
}

.state-block h1 { font-size: 2.6rem; }
.state-block .search-form { margin: 1.4rem 0; max-width: 520px; }

/* ---------- подвал ---------- */

.site-foot {
    background: var(--foot-bg);
    color: #CBDFCF;
    padding: 3.2rem 0 1.6rem;
    margin-top: 3rem;
}

.foot-cols {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
    gap: 2.2rem;
    margin-bottom: 2.4rem;
}

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

.site-foot .widget-title {
    font-size: 1.1rem;
    color: #F0F6EF;
    margin-bottom: .9rem;
    padding-bottom: .5rem;
    border-bottom: 2px solid var(--accent);
}

.site-foot p, .site-foot li { color: #CBDFCF; font-size: .94rem; }
.site-foot ul { list-style: none; padding: 0; margin: 0; }
.site-foot li { margin-bottom: .55rem; }
.site-foot a { color: var(--mint); text-decoration: none; }
.site-foot a:hover { color: #FFFFFF; text-decoration: underline; }
.site-foot .post-date { display: block; font-size: .8rem; color: #8FAE9C; }

.foot-bottom {
    border-top: 1px solid rgba(168, 213, 186, .22);
    padding-top: 1.3rem;
    font-size: .88rem;
    color: #9EBBA6;
}

/* ---------- cookie-баннер ---------- */

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

.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.2rem;
    flex-wrap: wrap;
    padding: 1rem 1.6rem;
    background: var(--head-bg);
    border-top: 3px solid var(--accent);
    color: #DDEBE0;
    font-size: .92rem;
}

.cookie-banner p { margin: 0; max-width: 78ch; color: #DDEBE0; }
.cookie-banner a { color: var(--mint); }

.cookie-accept {
    flex: 0 0 auto;
    padding: .6rem 1.4rem;
    border: 2px solid var(--accent);
    border-radius: 4px;
    background: var(--accent);
    color: #F4F7F2;
    font-family: var(--font-body);
    font-weight: 600;
    cursor: pointer;
    transition: background .2s ease, transform .2s ease;
}

.cookie-accept:hover { background: var(--accent-dark); border-color: var(--accent-dark); transform: translateY(-2px); }

/* ---------- адаптив ---------- */

@media (max-width: 960px) {
    h1 { font-size: 2.4rem; }
    .entry-title { font-size: 2rem; }
    .layout-with-sidebar { grid-template-columns: minmax(0, 1fr); }
    .layout-single, .wide-inner { width: auto; }
    .sidebar { margin-top: 2rem; }
    .front-section, .front-quote, .front-map { padding: 3.2rem 0; }
}

@media (max-width: 760px) {
    .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: .4rem;
        padding-top: .8rem;
    }
    .main-nav a { display: block; padding: .5rem 0; }
}

@media (max-width: 600px) {
    body { font-size: 16px; }
    h1 { font-size: 2rem; }
    h2 { font-size: 1.6rem; }
    .entry-title { font-size: 1.75rem; }
    .section-title { padding-left: 3.4rem; }
    .section-title::before { left: 1.1rem; width: 1.8rem; }
    .front-section, .front-quote, .front-map { padding: 2.6rem 0; }
    .hero-media img { height: 460px; }
    .hero-copy { padding: 1.8rem 0; }
    .hero-inner { align-items: flex-end; }
    .quote-plate { padding: .3rem 1.2rem .3rem 1.3rem; }
    .rubric-card { padding: 1.5rem 1.3rem; }
    .map-tile { padding: 1.4rem 1.3rem; }
    .state-block { padding: 1.8rem 1.4rem; }
    .sidebar { padding: 1.3rem 1.2rem; }
    .comment-respond { padding: 1.3rem 1.2rem; }
    .cookie-banner { padding: 1rem 1.2rem; }
    .brand-tagline { display: none; }
    .card-body { padding: 1.1rem 1.2rem 1.3rem; }
}

.map-tile .tile-body { min-width: 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;
}

.comment-note { font-size: .88rem; color: var(--muted); }
.comment-form p { margin-bottom: 1rem; }
.comment-form-cookies-consent { display: flex; gap: .5rem; align-items: flex-start; font-size: .9rem; }
.comment-form-cookies-consent label { margin: 0; }
