/*
Theme Name: dds_cucinamonamour.com
Theme URI: https://cucinamonamour.com/
Author: Вероника Фёдорова
Description: Индивидуальная тема информационного сайта о домашних рецептах и готовке. Яркая поп-ретро стилистика 60–70-х.
Version: 1.1
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: cmamour
*/

/* ---------- Переменные ---------- */

:root {
    --bg: #FFFBF0;
    --bg-alt: #F3F0E9;
    --dark: #1E2B3C;
    --side: #FDF7E8;
    --accent: #F43B6A;
    --accent2: #FFBD39;
    --turq: #2EC4C4;
    --muted: #8A8D91;
    --line: rgba(255, 189, 57, 0.5);
    --font-head: "Futura", "Century Gothic", "Avant Garde", "Trebuchet MS", "Segoe UI", sans-serif;
    --font-body: "Segoe UI", "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

/* ---------- База ---------- */

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

html { scroll-behavior: smooth; }

body {
    margin: 0;
    overflow-x: hidden;
    background-color: var(--bg);
    background-image:
        radial-gradient(rgba(255, 189, 57, 0.2) 1.6px, transparent 1.7px),
        radial-gradient(rgba(255, 189, 57, 0.2) 1.2px, transparent 1.3px);
    background-size: 74px 74px, 96px 96px;
    background-position: 0 0, 37px 48px;
    color: var(--dark);
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.7;
}

body::before,
body::after {
    content: "";
    position: fixed;
    z-index: -1;
    pointer-events: none;
    border-radius: 50%;
    filter: blur(70px);
}

body::before {
    top: -140px;
    left: -160px;
    width: 420px;
    height: 420px;
    background: rgba(244, 59, 106, 0.16);
}

body::after {
    right: -180px;
    bottom: -180px;
    width: 460px;
    height: 460px;
    background: rgba(46, 196, 196, 0.16);
}

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

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

.entry a,
.card-excerpt a,
.widget a {
    color: var(--accent);
    text-decoration: underline;
    text-decoration-style: dotted;
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
    text-decoration-color: var(--accent);
}

.entry a:hover,
.card-excerpt a:hover,
.widget a:hover {
    color: var(--accent2);
    text-decoration-style: solid;
    text-decoration-color: var(--accent2);
}

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

p { margin: 0 0 1.1em; }

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

.site-main { display: block; }

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

.btn {
    display: inline-block;
    font-family: var(--font-head);
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-size: 0.86rem;
    padding: 0.85em 1.9em;
    border-radius: 100px;
    border: 2px solid var(--dark);
    background: var(--accent);
    color: var(--dark);
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

.btn:hover,
.btn:focus {
    transform: translateY(2px);
    background: var(--accent2);
    color: var(--dark);
}

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

.btn-ghost:hover,
.btn-ghost:focus {
    background: var(--accent);
    color: var(--dark);
}

.btn-sm {
    font-size: 0.76rem;
    padding: 0.62em 1.5em;
}

/* ---------- Шапка ---------- */

.site-top {
    background: var(--dark);
    color: #FFFBF0;
}

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

.brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 0;
    flex: 1 1 300px;
}

.brand-link { display: block; line-height: 0; }

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

.brand-mark { display: block; }

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

.brand-name {
    display: block;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1.12rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #FFFBF0;
    text-decoration: none;
    line-height: 1.25;
}

.brand-name:hover { color: var(--accent2); }

.brand-tagline {
    margin: 0.35rem 0 0;
    font-size: 0.82rem;
    line-height: 1.45;
    color: #C6CEDA;
}

.nav-toggle {
    display: none;
    align-items: center;
    gap: 0.6rem;
    background: transparent;
    border: 2px solid var(--accent2);
    border-radius: 100px;
    color: #FFFBF0;
    font-family: var(--font-head);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.8rem;
    padding: 0.55em 1.3em;
    cursor: pointer;
}

.nav-toggle-bar {
    width: 18px;
    height: 2px;
    background: var(--accent2);
    box-shadow: 0 5px 0 var(--accent2), 0 -5px 0 var(--accent2);
    display: block;
}

.primary-nav { flex: 0 1 auto; }

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

.nav-list a {
    display: inline-block;
    font-family: var(--font-head);
    font-size: 0.88rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #FFFBF0;
    text-decoration: none;
    padding: 0.3em 0;
    border-bottom: 2px solid transparent;
}

.nav-list a:hover,
.nav-list .current-menu-item > a {
    color: var(--accent2);
    border-bottom-color: var(--accent);
}

.nav-list .sub-menu {
    list-style: none;
    margin: 0.4rem 0 0;
    padding: 0 0 0 0.8rem;
    display: block;
}

.sauce-bar {
    display: flex;
    height: 4px;
    width: 100%;
}

.sauce-seg { flex: 1 1 33.333%; }
.sauce-seg.s1 { background: var(--accent); }
.sauce-seg.s2 { background: var(--accent2); }
.sauce-seg.s3 { background: var(--turq); }

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

.sec-title {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 2.1rem;
    text-transform: uppercase;
    margin: 0 0 1.8rem;
}

.sec-title::before {
    content: "";
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--accent);
}

.sec-title::after {
    content: "";
    flex: 1 1 auto;
    height: 2px;
    background: var(--line);
}

.page-title {
    font-size: 2.5rem;
    text-transform: uppercase;
    margin: 0 0 1rem;
}

/* ---------- Разделитель-россыпь ---------- */

.dot-divider {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    padding: 1.2rem 0;
}

.dot-divider span {
    display: block;
    border-radius: 50%;
    background: var(--accent2);
}

.dot-divider span:nth-child(odd) { width: 6px; height: 6px; }
.dot-divider span:nth-child(even) { width: 4px; height: 4px; background: var(--accent); opacity: 0.7; }
.dot-divider span:nth-child(4) { width: 10px; height: 10px; background: var(--turq); }

/* ---------- Главная: hero ---------- */

.fs-hero {
    position: relative;
    overflow: hidden;
    background: var(--dark);
}

.fs-hero-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 0.92;
}

.fs-hero-inner {
    position: relative;
    padding: 5rem 0;
}

.fs-hero-box {
    background: rgba(255, 251, 240, 0.86);
    border: 2px solid var(--dark);
    padding: 2.6rem 2.4rem;
    max-width: 660px;
    min-width: 0;
    box-shadow: 12px 12px 0 rgba(30, 43, 60, 0.15);
}

.pop-dot {
    display: block;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--accent);
    margin-bottom: 1.2rem;
}

.fs-hero-title {
    font-size: 4.2rem;
    line-height: 1.02;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    margin: 0 0 1rem;
    color: var(--dark);
    -webkit-text-stroke: 2px #FFFBF0;
    paint-order: stroke fill;
}

.fs-hero-sub {
    font-size: 1.06rem;
    margin-bottom: 1.6rem;
}

/* ---------- Главная: чек-лист ---------- */

.fs-check {
    background: var(--bg-alt);
    padding: 4rem 0;
}

.check-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 1.6rem;
}

.check-item {
    display: flex;
    gap: 1.2rem;
    align-items: flex-start;
    min-width: 0;
}

.check-mark {
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--accent);
    border: 2px solid var(--dark);
    position: relative;
}

.check-mark::after {
    content: "";
    position: absolute;
    left: 13px;
    top: 10px;
    width: 10px;
    height: 18px;
    border: solid #FFFBF0;
    border-width: 0 3px 3px 0;
    transform: rotate(42deg);
}

.check-body { min-width: 0; }

.check-body h3 {
    font-size: 1.22rem;
    text-transform: uppercase;
    margin: 0.25rem 0 0.45rem;
}

.check-body p { margin: 0; }

/* ---------- Главная: последние записи ---------- */

.fs-latest { padding: 4rem 0; }

.fs-latest-more { margin: 2.2rem 0 0; }

.empty-note {
    background: var(--side);
    border: 1px solid var(--line);
    padding: 1.4rem 1.6rem;
}

/* ---------- Главная: статистика ---------- */

.fs-stats {
    padding: 4rem 0;
    background-color: #FDF7E8;
    background-image:
        linear-gradient(140deg, #FDF7E8 0%, #F8F3E7 100%),
        radial-gradient(rgba(244, 59, 106, 0.05) 2px, transparent 2.5px);
    background-size: auto, 26px 26px;
}

.stats-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.4rem;
}

.stat-cell {
    min-width: 0;
    padding: 0.6rem 1.2rem;
    border-left: 1px solid var(--muted);
    text-align: center;
}

.stat-cell:first-child { border-left: none; }

.stat-num {
    display: block;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 3.6rem;
    line-height: 1;
    letter-spacing: 0.01em;
    background: linear-gradient(120deg, var(--accent) 0%, var(--accent2) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.stat-cap {
    display: block;
    margin-top: 0.7rem;
    font-size: 0.94rem;
    line-height: 1.45;
    color: var(--dark);
}

/* ---------- Главная: карта тем ---------- */

.fs-map { padding: 4rem 0 4.5rem; }

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

.map-tile {
    min-width: 0;
    display: block;
    text-decoration: none;
    background: var(--bg);
    color: var(--dark);
    border: 1px solid var(--line);
    outline: 1px solid var(--line);
    outline-offset: 2px;
    box-shadow: 8px 8px 0 rgba(30, 43, 60, 0.15);
    padding: 1.8rem 1.5rem;
    transition: background-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.map-tile:hover {
    background: var(--accent2);
    transform: translateY(-3px);
    box-shadow: 10px 10px 0 rgba(244, 59, 106, 0.55);
}

.map-icon {
    display: block;
    color: var(--accent);
    margin-bottom: 1rem;
}

.map-tile:hover .map-icon { color: var(--dark); }

.map-name {
    display: block;
    font-family: var(--font-head);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    font-size: 1.02rem;
    margin-bottom: 0.5rem;
}

.map-note {
    display: block;
    font-size: 0.92rem;
    line-height: 1.5;
    color: var(--muted);
}

.map-tile:hover .map-note { color: var(--dark); }

/* ---------- Раскладки внутренних страниц ---------- */

.page-wrap { padding: 2.2rem 0 4rem; }

.layout-with-sidebar {
    display: grid;
    grid-template-columns: minmax(0, 67fr) minmax(0, 27fr);
    gap: 6%;
    align-items: start;
}

.layout-single { display: block; }

.layout-single .content-area {
    width: 85%;
    margin-left: auto;
    margin-right: auto;
}

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

/* Ширина контента главной — 85% */
.fs-hero .shell,
.fs-check .shell,
.fs-latest .shell,
.fs-stats .shell,
.fs-map .shell {
    width: min(85%, 1180px);
}

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

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

.crumbs a {
    color: var(--dark);
    text-decoration: none;
    border-bottom: 2px dotted var(--accent);
}

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

.crumbs .sep { color: var(--accent2); padding: 0 0.3rem; }

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

.card-stack {
    display: grid;
    gap: 2rem;
}

.card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--bg);
    border: 1px solid var(--line);
    outline: 1px solid var(--line);
    outline-offset: 2px;
    border-radius: 0;
    box-shadow: 8px 8px 0 rgba(30, 43, 60, 0.15);
    overflow: hidden;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.card:hover {
    transform: scale(1.02);
    box-shadow: 10px 10px 0 rgba(244, 59, 106, 0.55);
}

.card-thumb-wrap {
    position: relative;
    overflow: hidden;
    background: var(--side);
}

.card-thumb-wrap a { display: block; }

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

.card-thumb-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 180px;
}

.card-thumb-empty a {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.card-body {
    flex: 1;
    min-width: 0;
    padding: 1.6rem 1.7rem;
}

.card-flag {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--turq);
    color: var(--dark);
    font-family: var(--font-head);
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.4em 0.9em;
    opacity: 0;
    transform: translateY(-100%);
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.card:hover .card-flag {
    opacity: 1;
    transform: translateY(0);
}

.card-title {
    font-size: 1.45rem;
    margin: 0 0 0.5rem;
}

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

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

.card-meta {
    font-size: 0.82rem;
    color: var(--muted);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 0.9rem;
}

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

.card-more { margin: 1.1rem 0 0; }

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

.single-post,
.single-page {
    background: var(--bg);
    border: 1px solid var(--line);
    padding: 2.2rem 2.4rem;
    box-shadow: 8px 8px 0 rgba(30, 43, 60, 0.12);
}

.post-meta {
    font-size: 0.84rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
    margin-bottom: 1.6rem;
}

.post-meta .pm-cat {
    background: var(--accent2);
    color: var(--dark);
    padding: 0.25em 0.7em;
    margin-left: 0.5rem;
}

.single-thumb { margin: 0 0 1.8rem; }

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

.entry h2 {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    font-size: 1.75rem;
    margin-top: 2rem;
}

.entry h2::before {
    content: "";
    flex: 0 0 auto;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--accent);
}

.entry h2::after {
    content: "";
    flex: 1 1 auto;
    height: 2px;
    background: var(--line);
}

.entry h3 { font-size: 1.35rem; margin-top: 1.7rem; }

.entry ul,
.entry ol {
    padding-left: 0;
    margin: 0 0 1.3em;
    list-style: none;
}

.entry ul li,
.entry ol li {
    position: relative;
    padding-left: 1.9rem;
    margin-bottom: 0.6em;
}

.entry ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 12px;
    height: 12px;
    border-radius: 3px;
    background: var(--accent);
}

.entry ol { counter-reset: cmam-count; }

.entry ol li { counter-increment: cmam-count; }

.entry ol li::before {
    content: counter(cmam-count);
    position: absolute;
    left: 0;
    top: 0.25em;
    width: 22px;
    height: 22px;
    border-radius: 4px;
    background: var(--accent2);
    color: var(--dark);
    font-family: var(--font-head);
    font-size: 0.8rem;
    line-height: 22px;
    text-align: center;
}

.entry blockquote {
    margin: 1.8rem 0;
    padding: 1.6rem 1.8rem;
    background: var(--side);
    border-left: 6px solid var(--accent);
    border-radius: 0;
    font-size: 1.1rem;
}

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

.entry img { display: block; height: auto; }

.entry table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.6rem 0;
    border: 1px solid var(--dark);
}

.entry th,
.entry td {
    border: 1px solid var(--dark);
    padding: 0.7rem 0.9rem;
    text-align: left;
}

.entry th {
    background: var(--accent2);
    font-family: var(--font-head);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 2rem;
}

.tag-chip {
    display: inline-block;
    border: 2px solid var(--accent);
    border-radius: 100px;
    padding: 0.35em 1em;
    font-size: 0.8rem;
    text-decoration: none;
    color: var(--accent);
}

.tag-chip:hover {
    background: var(--accent);
    color: var(--dark);
}

.post-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.2rem;
    margin-top: 2.4rem;
}

.post-nav-link {
    min-width: 0;
    display: block;
    border: 1px solid var(--line);
    padding: 1rem 1.2rem;
    text-decoration: none;
    color: var(--dark);
    font-family: var(--font-head);
    font-size: 0.98rem;
}

.post-nav-link span {
    display: block;
    font-family: var(--font-body);
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--muted);
    margin-bottom: 0.4rem;
}

.post-nav-link:hover { border-color: var(--accent); color: var(--accent); }

.post-nav-next { text-align: right; }

.archive-note { margin-bottom: 1.6rem; }

/* ---------- Сайдбар и виджеты ---------- */

.sidebar { min-width: 0; }

.sidebar .widget {
    background: var(--side);
    border: 1px solid var(--line);
    padding: 1.5rem 1.6rem;
    margin-bottom: 1.8rem;
    color: var(--dark);
}

.sidebar .widget-title {
    font-size: 1.1rem;
    text-transform: uppercase;
    color: var(--dark);
    margin: 0 0 1rem;
    padding-bottom: 0.6rem;
    border-bottom: 2px solid var(--accent);
}

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

.sidebar .widget li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.7rem;
    line-height: 1.5;
}

.sidebar .widget li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 10px;
    height: 10px;
    border-radius: 3px;
    background: var(--accent2);
}

.sidebar .widget a {
    color: var(--dark);
    text-decoration-color: var(--accent);
}

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

.sidebar .post-date,
.sidebar .widget .rss-date {
    display: block;
    font-size: 0.78rem;
    color: var(--muted);
}

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

.site-bottom {
    background: var(--dark);
    color: #EDF1F6;
    padding: 3.2rem 0 2rem;
    margin-top: 3rem;
}

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

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

.site-bottom .widget { margin-bottom: 1.6rem; color: #EDF1F6; }

.site-bottom .widget p { color: #D5DCE5; }

.site-bottom .widget-title {
    font-size: 1.02rem;
    text-transform: uppercase;
    color: var(--accent2);
    margin: 0 0 1rem;
}

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

.site-bottom .widget li {
    position: relative;
    padding-left: 1.4rem;
    margin-bottom: 0.6rem;
}

.site-bottom .widget li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.6em;
    width: 9px;
    height: 9px;
    border-radius: 3px;
    background: var(--turq);
}

.site-bottom .widget a {
    color: #EDF1F6;
    text-decoration: underline;
    text-decoration-style: dotted;
    text-decoration-color: var(--accent2);
    text-underline-offset: 4px;
}

.site-bottom .widget a:hover {
    color: var(--accent2);
    text-decoration-style: solid;
}

.foot-line {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-top: 1.6rem;
    padding-top: 1.4rem;
    border-top: 1px solid rgba(255, 251, 240, 0.18);
}

.foot-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent);
    flex: 0 0 auto;
}

.copyright {
    margin: 0;
    font-size: 0.86rem;
    color: #C6CEDA;
}

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

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

.pager .page-numbers {
    display: inline-block;
    min-width: 46px;
    text-align: center;
    padding: 0.55em 1em;
    border: 2px solid var(--dark);
    border-radius: 100px;
    background: var(--bg);
    color: var(--dark);
    font-family: var(--font-head);
    text-decoration: none;
    letter-spacing: 0.05em;
}

.pager .page-numbers:hover {
    background: var(--accent2);
}

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

.pager .page-numbers.dots {
    border: none;
    background: transparent;
    min-width: auto;
    padding: 0.55em 0.3em;
}

/* ---------- Формы ---------- */

.search-form { margin: 1.4rem 0; }

.search-row {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.search-field {
    flex: 1 1 200px;
    min-width: 0;
    border: 2px solid var(--dark);
    border-radius: 100px;
    padding: 0.7em 1.2em;
    font-family: var(--font-body);
    font-size: 0.95rem;
    background: #FFFFFF;
    color: var(--dark);
}

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

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

.comments-area {
    margin-top: 2.6rem;
    background: var(--bg);
    border: 1px solid var(--line);
    padding: 2rem 2.2rem;
}

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

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

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

.comment-inner {
    background: var(--side);
    border-left: 4px solid var(--accent);
    padding: 1.2rem 1.4rem;
    margin-bottom: 1.2rem;
}

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

.comment-author {
    font-family: var(--font-head);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

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

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

.comment-reply a,
.comment-hold {
    font-size: 0.84rem;
    color: var(--accent);
}

.comment-form label {
    display: block;
    font-size: 0.84rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.4rem;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form textarea {
    width: 85%;
    max-width: 640px;
    border: 2px solid var(--dark);
    border-radius: 8px;
    padding: 0.7em 1em;
    font-family: var(--font-body);
    font-size: 0.95rem;
    background: #FFFFFF;
    color: var(--dark);
}

.comment-form textarea { border-radius: 12px; }

.comment-form .form-submit input,
.comment-form .submit {
    display: inline-block;
    font-family: var(--font-head);
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-size: 0.86rem;
    padding: 0.85em 1.9em;
    border-radius: 100px;
    border: 2px solid var(--dark);
    background: var(--accent);
    color: var(--dark);
    cursor: pointer;
}

.comment-form .form-submit input:hover,
.comment-form .submit:hover { background: var(--accent2); }

/* ---------- 404 ---------- */

.err-block {
    background: var(--bg);
    border: 1px solid var(--line);
    padding: 2.6rem 2.4rem;
    box-shadow: 8px 8px 0 rgba(30, 43, 60, 0.12);
}

.err-code {
    display: block;
    font-family: var(--font-head);
    font-size: 5rem;
    line-height: 1;
    background: linear-gradient(120deg, var(--accent) 0%, var(--accent2) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 1rem;
}

.err-actions { margin-top: 1.4rem; }

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

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

.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.2rem;
    background: var(--dark);
    color: #FFFBF0;
    border-top: 4px solid var(--accent);
    padding: 1.1rem 1.6rem;
}

.cookie-text {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
    max-width: 820px;
    min-width: 0;
}

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

@media (min-width: 601px) {
    .card { flex-direction: row; }

    .card-thumb-wrap {
        flex: 0 0 280px;
        position: relative;
    }

    .card-thumb-wrap a {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
    }

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

    .card-thumb-empty a {
        position: absolute;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

@media (max-width: 960px) {
    .nav-toggle { display: inline-flex; }

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

    .primary-nav.nav-open { display: block; }

    .nav-list {
        flex-direction: column;
        gap: 0.2rem;
        border-top: 1px solid rgba(255, 251, 240, 0.2);
        padding-top: 0.8rem;
    }

    .layout-with-sidebar {
        display: block;
    }

    .sidebar { margin-top: 2.6rem; }

    .layout-single .content-area { width: 100%; }

    .fs-hero .shell,
    .fs-check .shell,
    .fs-latest .shell,
    .fs-stats .shell,
    .fs-map .shell {
        width: min(92%, 1180px);
    }

    .fs-hero-title { font-size: 3rem; }

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

    .stat-cell:nth-child(3) { border-left: none; }

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

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

    .fs-hero-inner { padding: 3rem 0; }

    .fs-hero-box { padding: 1.8rem 1.4rem; box-shadow: 8px 8px 0 rgba(30, 43, 60, 0.15); }

    .fs-hero-title { font-size: 2.3rem; -webkit-text-stroke: 1px #FFFBF0; }

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

    .page-title { font-size: 1.9rem; }

    .fs-check,
    .fs-latest,
    .fs-stats,
    .fs-map { padding: 2.6rem 0; }

    .card-thumb-wrap {
        flex: none;
        width: 100%;
        position: static;
    }

    .card-thumb-wrap a { position: static; }

    .card-thumb-wrap img {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
    }

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

    .card,
    .map-tile { box-shadow: 5px 5px 0 rgba(30, 43, 60, 0.15); }

    .single-post,
    .single-page,
    .comments-area,
    .err-block { padding: 1.6rem 1.3rem; }

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

    .stat-cell {
        border-left: none;
        border-top: 1px solid var(--muted);
        padding: 1rem 0.8rem;
    }

    .stat-cell:first-child { border-top: none; }

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

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

    .post-nav-next { text-align: left; }

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

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

    .comment-form input[type="text"],
    .comment-form input[type="email"],
    .comment-form textarea { width: 100%; }
}
