/*
Theme Name: dds_camus-cognac.ru
Author: Дмитрий Белов
Description: Тема для образовательного онлайн-журнала об индустрии гостеприимства: управление рестораном, кулинарные техники и пищевые технологии.
Version: 1.1
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: ddscamus
*/

/* -----------------------------------------------------------------------
   Переменные
-------------------------------------------------------------------------*/
:root {
    --bg:        #F8F7FC;
    --bg-alt:    #EEF0F8;
    --bg-head:   #FFFFFF;
    --bg-foot:   #2A2533;
    --bg-side:   #F4F2FA;
    --ink:       #2D2A3E;
    --accent:    #9B7FD4;
    --accent-dp: #7D5DAE;
    --accent-2:  #C9B0F0;
    --muted:     #9A94A8;
    --line:      #E3DEF0;
    --shadow:    0 4px 20px rgba(155, 127, 212, 0.08);
    --shadow-up: 0 12px 34px rgba(155, 127, 212, 0.18);
    --radius:    12px;
}

/* -----------------------------------------------------------------------
   Базовое
-------------------------------------------------------------------------*/
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    overflow-x: hidden;
    color: var(--ink);
    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='g' cx='50%25' cy='50%25' r='50%25'%3E%3Cstop offset='0%25' stop-color='%239B7FD4' stop-opacity='0.30'/%3E%3Cstop offset='60%25' stop-color='%23C9B0F0' stop-opacity='0.14'/%3E%3Cstop offset='100%25' stop-color='%23C9B0F0' stop-opacity='0'/%3E%3C/radialGradient%3E%3C/defs%3E%3Cpath d='M330 40c110 0 210 70 236 168 26 98-22 196-104 250-82 54-198 64-274 12C112 418 74 306 96 214 118 122 220 40 330 40z' fill='url(%23g)'/%3E%3C/svg%3E"),
        linear-gradient(180deg, #F8F7FC 0%, #F5F3FB 45%, #EEF0F8 100%);
    background-repeat: no-repeat, no-repeat;
    background-position: right -140px top -110px, center top;
    background-attachment: fixed, fixed;
    background-size: 640px 640px, cover;
    font-family: "Inter", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    font-size: 17px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

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

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

h1, h2, h3, h4, h5, h6 {
    font-family: "Inter Tight", "Manrope", "Segoe UI", Arial, sans-serif;
    color: var(--ink);
    line-height: 1.22;
    letter-spacing: -0.015em;
    margin: 0 0 0.8rem;
}

h1 { font-size: 3.2rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.15rem; }

p { margin: 0 0 1.05rem; }

ul, ol { margin: 0 0 1.1rem; padding-left: 1.2rem; }

blockquote {
    margin: 1.6rem 0;
    padding: 1.4rem 1.6rem;
    background: linear-gradient(135deg, rgba(155, 127, 212, 0.14), rgba(201, 176, 240, 0.10));
    border-left: 3px solid var(--accent);
    border-radius: var(--radius);
}

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

code, pre {
    font-family: "JetBrains Mono", "Consolas", monospace;
    background: #EDE9F7;
    border-radius: 6px;
}

code { padding: 0.1em 0.35em; font-size: 0.92em; }

pre { padding: 1rem 1.1rem; overflow-x: auto; }

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

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

th { background: var(--bg-alt); font-weight: 600; }

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

.home .shell { width: min(85%, 1180px); }

.site-main { display: block; padding-bottom: 3rem; }

.page-wrap { padding: 1.6rem 0 1rem; }

/* -----------------------------------------------------------------------
   Кнопки и ссылки
-------------------------------------------------------------------------*/
.btn {
    display: inline-block;
    padding: 0.78rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.98rem;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    border: 2px solid transparent;
    transition: background-color .22s ease, color .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.btn-solid {
    background: var(--accent);
    color: #FFFFFF;
    box-shadow: 0 6px 18px rgba(155, 127, 212, 0.28);
}

.btn-solid:hover,
.btn-solid:focus {
    background: var(--accent-dp);
    box-shadow: 0 10px 24px rgba(125, 93, 174, 0.34);
}

.btn-outline {
    background: transparent;
    color: var(--accent-dp);
    border-color: var(--accent-2);
}

.btn-outline:hover,
.btn-outline:focus {
    border-color: var(--accent-dp);
    color: var(--accent-dp);
    box-shadow: 0 8px 20px rgba(155, 127, 212, 0.18);
}

.btn-small { padding: 0.52rem 1.05rem; font-size: 0.9rem; }

.entry-content a,
.card-excerpt a,
.widget a,
.crumbs 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 .25s ease, color .2s ease;
}

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

.grad-text {
    background: linear-gradient(100deg, #FFFFFF 0%, #D8C4F7 45%, #9B7FD4 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* -----------------------------------------------------------------------
   Шапка
-------------------------------------------------------------------------*/
.top-bar {
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid var(--line);
}

.top-bar-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    padding: 1.1rem 0;
}

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

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

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

.brand-mark { display: block; }

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

.brand-name {
    display: block;
    font-family: "Inter Tight", "Manrope", Arial, sans-serif;
    font-weight: 700;
    font-size: 1.05rem;
    line-height: 1.35;
    color: var(--ink);
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.brand-tagline {
    margin: 0.25rem 0 0;
    font-size: 0.82rem;
    line-height: 1.5;
    color: var(--muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.nav-toggle {
    display: none;
    align-items: center;
    gap: 0.35rem;
    background: transparent;
    border: 2px solid var(--accent-2);
    border-radius: 8px;
    padding: 0.5rem 0.8rem;
    color: var(--accent-dp);
    font-weight: 600;
    cursor: pointer;
}

.nav-toggle-bar {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--accent-dp);
    margin: 3px 0;
}

.nav-toggle-label { margin-left: 0.3rem; }

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

.primary-menu {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 1.4rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.primary-menu a {
    display: inline-block;
    padding: 0.35rem 0;
    color: var(--ink);
    font-weight: 600;
    font-size: 0.97rem;
    text-decoration: none;
    background-image: linear-gradient(var(--accent), var(--accent));
    background-repeat: no-repeat;
    background-position: 0 100%;
    background-size: 0% 2px;
    transition: background-size .25s ease, color .2s ease;
}

.primary-menu a:hover,
.primary-menu .current-menu-item > a {
    color: var(--accent-dp);
    background-size: 100% 2px;
}

.primary-menu .sub-menu {
    list-style: none;
    margin: 0.3rem 0 0;
    padding: 0 0 0 0.8rem;
}

/* -----------------------------------------------------------------------
   Раскладки
-------------------------------------------------------------------------*/
.layout-with-sidebar {
    display: grid;
    grid-template-columns: minmax(0, 67%) minmax(0, 27%);
    justify-content: space-between;
    gap: 2.4rem;
    align-items: start;
}

.layout-single { display: block; }

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

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

.page-title { font-size: 2.4rem; margin-bottom: 0.7rem; }

.entry-meta,
.archive-note {
    color: var(--muted);
    font-size: 0.92rem;
    margin-bottom: 1.4rem;
}

.entry-meta .entry-cats a {
    color: var(--accent-dp);
    text-decoration: none;
    margin-left: 0.6rem;
}

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

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

.entry-content h2,
.entry-content h3 { margin-top: 2rem; }

.entry-content h2::before,
.entry-content h3::before {
    content: "";
    display: inline-block;
    width: 10px;
    height: 10px;
    background: var(--accent);
    margin-right: 0.65rem;
    vertical-align: middle;
}

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

.entry-tags {
    margin-top: 1.6rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.entry-tags a {
    display: inline-block;
    padding: 0.3rem 0.7rem;
    background: #EDE9F7;
    border-radius: 8px;
    font-size: 0.86rem;
    color: var(--accent-dp);
    text-decoration: none;
}

.entry-tags a:hover { background: var(--accent-2); }

.post-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem;
    margin: 2.2rem 0;
    padding: 1.2rem 1.4rem;
    background: #FFFFFF;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.post-nav a { color: var(--accent-dp); text-decoration: none; font-weight: 600; }

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

.post-nav-prev, .post-nav-next { min-width: 0; }

.empty-note {
    padding: 1.3rem 1.5rem;
    background: #FFFFFF;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

/* -----------------------------------------------------------------------
   Хлебные крошки
-------------------------------------------------------------------------*/
.crumbs {
    font-size: 0.88rem;
    color: var(--muted);
    margin-bottom: 1.2rem;
}

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

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

/* -----------------------------------------------------------------------
   Карточки записей
-------------------------------------------------------------------------*/
.card-stack {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

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

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

.card-thumb-wrap {
    position: static;
    width: 100%;
    overflow: hidden;
    background: linear-gradient(135deg, #F1EBFB, #E4DAF6);
}

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

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

.card-thumb-stub {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 16 / 9;
}

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

.card-title { font-size: 1.35rem; margin-bottom: 0.45rem; }

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

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

.card-meta { color: var(--muted); font-size: 0.86rem; margin-bottom: 0.7rem; }

.card-excerpt { color: #4A465C; font-size: 0.98rem; }

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

.card-more { margin: auto 0 0; padding-top: 0.9rem; }

/* -----------------------------------------------------------------------
   Пагинация
-------------------------------------------------------------------------*/
.pager {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 2rem 0 1rem;
}

.pager .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    padding: 0.5rem 0.85rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #FFFFFF;
    color: var(--ink);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}

.pager a.page-numbers:hover {
    border-color: var(--accent);
    color: var(--accent-dp);
}

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

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

/* -----------------------------------------------------------------------
   Главная — hero
-------------------------------------------------------------------------*/
.hero {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    min-height: 460px;
    margin-bottom: 3rem;
}

.hero-photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    z-index: 0;
}

.hero-veil {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(105deg, rgba(29, 24, 43, 0.88) 0%, rgba(42, 37, 51, 0.72) 48%, rgba(155, 127, 212, 0.42) 100%);
}

.hero-inner {
    position: relative;
    z-index: 2;
    padding: 3.6rem 0;
    max-width: 780px;
}

.hero-eyebrow {
    display: inline-block;
    padding: 0.35rem 0.9rem;
    margin-bottom: 1rem;
    border: 1px solid rgba(201, 176, 240, 0.7);
    border-radius: 8px;
    color: #E6DBFA;
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-title { font-size: 3.2rem; margin-bottom: 1rem; }

.hero-lead {
    color: #E3DEEE;
    font-size: 1.12rem;
    max-width: 640px;
    margin-bottom: 1.7rem;
}

.hero-btn { margin-top: 0.2rem; }

/* -----------------------------------------------------------------------
   Главная — секции
-------------------------------------------------------------------------*/
.front-section { padding: 3rem 0; }

.front-section.section-alt { background: var(--bg-alt); }

.front-section.section-glass {
    background: linear-gradient(135deg, rgba(155, 127, 212, 0.13), rgba(201, 176, 240, 0.10));
}

.section-title { font-size: 2rem; margin-bottom: 0.6rem; }

.section-title::before {
    content: "";
    display: inline-block;
    width: 12px;
    height: 12px;
    background: var(--accent);
    margin-right: 0.7rem;
    vertical-align: middle;
}

.section-lead {
    color: #5A5570;
    max-width: 720px;
    margin-bottom: 2rem;
}

.section-more { margin: 0.4rem 0 0; }

/* Чек-лист */
.check-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.check-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    min-width: 0;
    padding: 1.15rem 1.4rem;
    background: #FFFFFF;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: transform .25s ease, box-shadow .25s ease;
}

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

.check-icon { flex: 0 0 auto; margin-top: 0.25rem; }

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

.check-title { font-size: 1.12rem; margin-bottom: 0.2rem; }

.check-body p { margin: 0; color: #5A5570; font-size: 0.97rem; }

/* Статистика */
.stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
    gap: 1.1rem;
}

.stat-cell {
    min-width: 0;
    padding: 1.6rem 1.4rem;
    background: #FFFFFF;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
}

.stat-num {
    display: block;
    font-family: "Inter Tight", "Manrope", Arial, sans-serif;
    font-size: 2.6rem;
    font-weight: 700;
    line-height: 1.1;
    color: var(--accent);
    letter-spacing: -0.02em;
}

.stat-label {
    display: block;
    margin-top: 0.4rem;
    color: #5A5570;
    font-size: 0.94rem;
}

/* Карта тем */
.topic-map {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
    gap: 1.1rem;
}

.topic-tile {
    display: block;
    min-width: 0;
    padding: 1.7rem 1.5rem;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    text-decoration: none;
    color: var(--ink);
    transition: transform .25s ease, box-shadow .25s ease, background-color .25s ease;
}

.topic-tile:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.82);
    box-shadow: var(--shadow-up);
}

.topic-icon { display: block; margin-bottom: 0.9rem; }

.topic-name {
    display: block;
    font-family: "Inter Tight", "Manrope", Arial, sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 0.35rem;
}

.topic-desc { display: block; color: #5A5570; font-size: 0.95rem; line-height: 1.6; }

/* -----------------------------------------------------------------------
   Сайдбар и виджеты
-------------------------------------------------------------------------*/
.sidebar { min-width: 0; }

.sidebar .widget {
    background: var(--bg-side);
    color: var(--ink);
    border-radius: var(--radius);
    padding: 1.3rem 1.4rem;
    margin-bottom: 1.4rem;
    box-shadow: var(--shadow);
}

.sidebar .widget-title {
    font-size: 1.12rem;
    color: var(--ink);
    margin-bottom: 0.8rem;
}

.sidebar .widget-title::before {
    content: "";
    display: inline-block;
    width: 9px;
    height: 9px;
    background: var(--accent);
    margin-right: 0.55rem;
    vertical-align: middle;
}

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

.sidebar .widget li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #E5DFF2;
    color: var(--ink);
}

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

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

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

.sidebar .widget .post-date,
.sidebar .widget .rss-date {
    display: block;
    color: #6C6680;
    font-size: 0.84rem;
}

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

.search-label { display: block; }

.search-label-text {
    display: block;
    font-size: 0.88rem;
    color: var(--muted);
    margin-bottom: 0.35rem;
}

.search-field {
    width: 100%;
    padding: 0.65rem 0.85rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #FFFFFF;
    color: var(--ink);
    font: inherit;
    font-size: 0.96rem;
}

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

.search-submit { margin-top: 0.6rem; }

/* -----------------------------------------------------------------------
   Комментарии
-------------------------------------------------------------------------*/
.comments { margin-top: 2.4rem; }

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

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

.comment-list .children { list-style: none; margin: 0.9rem 0 0; padding-left: 1.2rem; }

.comment-inner {
    padding: 1.1rem 1.3rem;
    background: #FFFFFF;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 0.9rem;
}

.comment-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    align-items: baseline;
    margin-bottom: 0.4rem;
}

.comment-author { font-weight: 700; }

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

.comment-actions a { color: var(--accent-dp); text-decoration: none; font-size: 0.9rem; font-weight: 600; }

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

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

.comment-respond label { display: block; font-size: 0.9rem; margin-bottom: 0.3rem; color: #5A5570; }

.comment-respond input[type="text"],
.comment-respond input[type="email"],
.comment-respond input[type="url"],
.comment-respond textarea {
    width: 100%;
    padding: 0.65rem 0.85rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    font: inherit;
    font-size: 0.96rem;
    background: #FDFCFF;
    color: var(--ink);
}

.comment-respond textarea { min-height: 140px; resize: vertical; }

.comment-respond .submit {
    background: var(--accent);
    color: #FFFFFF;
    border: 2px solid transparent;
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    cursor: pointer;
}

.comment-respond .submit:hover { background: var(--accent-dp); }

.comments-pagination { margin: 1.2rem 0; }

.comments-pagination .page-numbers {
    display: inline-block;
    padding: 0.35rem 0.7rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #FFFFFF;
    text-decoration: none;
    color: var(--ink);
    margin-right: 0.35rem;
}

/* -----------------------------------------------------------------------
   404
-------------------------------------------------------------------------*/
.error-box {
    padding: 2.4rem 2rem;
    background: #FFFFFF;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
}

.error-code {
    display: block;
    font-family: "Inter Tight", "Manrope", Arial, sans-serif;
    font-size: 4.4rem;
    font-weight: 800;
    line-height: 1;
    color: var(--accent-2);
}

.error-box .search-form { max-width: 420px; margin: 1.4rem auto 0; text-align: left; }

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

/* -----------------------------------------------------------------------
   Подвал
-------------------------------------------------------------------------*/
.site-footer {
    background: var(--bg-foot);
    color: #DCD6E8;
    padding: 2.8rem 0 1.4rem;
    margin-top: 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
    gap: 1.8rem;
}

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

.site-footer .widget {
    color: #DCD6E8;
    margin-bottom: 1.2rem;
}

.site-footer .widget p { color: #DCD6E8; }

.site-footer .widget-title {
    color: #FFFFFF;
    font-size: 1.08rem;
    margin-bottom: 0.7rem;
}

.site-footer .widget-title::before {
    content: "";
    display: inline-block;
    width: 9px;
    height: 9px;
    background: var(--accent-2);
    margin-right: 0.55rem;
    vertical-align: middle;
}

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

.site-footer .widget li { padding: 0.35rem 0; color: #DCD6E8; }

.site-footer .widget a { color: #D5CBEC; text-decoration: none; }

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

.site-footer .widget .post-date { display: block; color: #A9A1BE; font-size: 0.84rem; }

.footer-bottom {
    border-top: 1px solid rgba(220, 214, 232, 0.18);
    margin-top: 1.2rem;
    padding-top: 1.1rem;
}

.copyright { margin: 0; color: #A9A1BE; font-size: 0.9rem; }

/* -----------------------------------------------------------------------
   Cookie-баннер
-------------------------------------------------------------------------*/
.cookie-banner[hidden] { display: none !important; }

.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    background: rgba(42, 37, 51, 0.97);
    color: #E7E2F2;
    box-shadow: 0 -6px 26px rgba(42, 37, 51, 0.28);
}

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

.cookie-text { margin: 0; font-size: 0.92rem; flex: 1 1 320px; min-width: 0; }

.cookie-accept { flex: 0 0 auto; }

/* -----------------------------------------------------------------------
   Адаптив
-------------------------------------------------------------------------*/
@media (min-width: 600px) {
    .card { flex-direction: row; }

    .card-thumb-wrap {
        flex: 0 0 280px;
        width: auto;
        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;
    }

    .card-thumb-stub { height: 100%; aspect-ratio: auto; }
}

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

    h1 { font-size: 2.4rem; }
    .hero-title { font-size: 2.4rem; }
    .page-title { font-size: 2rem; }

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

    .layout-with-sidebar .content-area { margin-bottom: 2rem; }

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

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

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

    .primary-menu {
        flex-direction: column;
        gap: 0.2rem;
        padding: 0.6rem 0 0;
    }

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

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

@media (max-width: 600px) {
    h1 { font-size: 2rem; }
    .hero-title { font-size: 2rem; }
    h2, .section-title { font-size: 1.6rem; }

    .hero { min-height: 380px; }
    .hero-inner { padding: 2.6rem 0; }

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

    .front-section.section-glass { padding: 2.2rem 1.2rem; border-radius: var(--radius); }

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

    .card-body { padding: 1.15rem 1.15rem 1.25rem; }

    .check-item { padding: 1rem 1.1rem; }

    .stat-cell { padding: 1.2rem 1rem; }

    .stat-num { font-size: 2.1rem; }

    .topic-tile { padding: 1.3rem 1.2rem; }

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

    .error-box { padding: 1.8rem 1.3rem; }

    .comment-respond { padding: 1.1rem 1.15rem; }

    blockquote { padding: 1.1rem 1.2rem; }

    .post-nav { padding: 1rem 1.1rem; }

    .cookie-inner { padding: 0.9rem 0; }
}
