/*
Theme Name: dds_kazan-citytour.ru
Author: Ренат Ибрагимов
Description: Тема для образовательно-карьерного портала экскурсоводов и организаторов авторских туров. Сливово-лавандовая палитра, таймлайн, карта тем, раздел «Практикум».
Version: 1.1
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: kcguild
*/

/* ============================================================
   1. Переменные
   ============================================================ */

:root {
    --bg: #F8F6FC;
    --bg-alt: #EFEBF5;
    --ink: #201A2B;
    --muted: #958DA6;
    --accent: #A865C7;
    --amber: #F2B84B;
    --dark: #1E1828;
    --dark-2: #3A2A4A;
    --card-shadow: #D4C4E0;
    --font-h: "Unbounded", "Montserrat Alternates", "Trebuchet MS", "Segoe UI", sans-serif;
    --font-b: "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ============================================================
   2. Скрытие через атрибут hidden (до основных стилей)
   ============================================================ */

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

/* ============================================================
   3. База
   ============================================================ */

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    overflow-x: hidden;
    background-color: var(--bg);
    background-image: repeating-linear-gradient(to bottom, rgba(32, 26, 43, 0.05) 0 1px, transparent 1px 44px);
    color: var(--ink);
    font-family: var(--font-b);
    font-size: 17px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-h);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.15;
    color: var(--ink);
    margin: 0 0 0.7em;
}

h1 { font-size: 2.1rem; }
h2 { font-size: 1.7rem; }
h3 { font-size: 1.28rem; }
h4 { font-size: 1.1rem; }

p {
    margin: 0 0 1.1em;
}

ul, ol {
    margin: 0 0 1.2em;
    padding-left: 1.3em;
}

blockquote {
    margin: 1.6em 0;
    padding: 1.4rem 1.6rem;
    background: var(--bg-alt);
    border-left: 4px solid var(--amber);
    border-radius: 4px;
}

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

code, pre {
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
    font-size: 0.92em;
}

pre {
    overflow-x: auto;
    padding: 1.1rem 1.2rem;
    background: #fff;
    border-radius: 8px;
    border-left: 4px solid var(--accent);
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 0 1.4em;
    border: 1px solid var(--card-shadow);
    background: #fff;
}

th, td {
    border: 1px solid var(--card-shadow);
    padding: 0.6rem 0.8rem;
    text-align: left;
}

th {
    background: var(--bg-alt);
    font-family: var(--font-h);
    font-size: 0.95rem;
}

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

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

/* ============================================================
   4. Кнопки и ссылки
   ============================================================ */

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

.btn {
    display: inline-block;
    padding: 0.72rem 1.5rem;
    border: 2px solid transparent;
    border-radius: 4px;
    font-family: var(--font-h);
    font-weight: 700;
    font-size: 0.92rem;
    letter-spacing: 0.01em;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, color 0.18s ease;
}

.btn-fill {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 4px 0 rgba(120, 62, 148, 0.35);
}

.btn-fill:hover,
.btn-fill:focus {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(120, 62, 148, 0.4);
    color: #fff;
}

.btn-out {
    background: transparent;
    color: var(--ink);
    border-color: var(--amber);
}

.btn-out:hover,
.btn-out:focus {
    background: var(--amber);
    color: #fff;
}

.entry-content a,
.card-excerpt a,
.widget .textwidget a {
    position: relative;
    color: var(--ink);
    text-decoration: underline;
    text-decoration-style: dotted;
    text-decoration-color: var(--accent);
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    transition: left 0.15s ease;
    left: 0;
}

.entry-content a:hover,
.card-excerpt a:hover,
.widget .textwidget a:hover {
    text-decoration-style: solid;
    left: 2px;
}

/* ============================================================
   5. Шапка
   ============================================================ */

.site-header {
    position: static;
    background: rgba(255, 255, 255, 0.75);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(168, 101, 199, 0.2);
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 1rem 1.4rem;
    flex-wrap: wrap;
    padding: 1rem 0;
}

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

.brand-logo {
    display: block;
    flex: none;
    width: 52px;
    height: 52px;
}

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

.brand-name {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-family: var(--font-h);
    font-weight: 800;
    font-size: 0.95rem;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.brand-desc {
    display: none;
}

.nav-toggle {
    flex: none;
    padding: 0.55rem 1rem;
    border: 2px solid var(--accent);
    border-radius: 4px;
    background: transparent;
    color: var(--accent);
    font-family: var(--font-h);
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
}

.site-nav {
    flex: 1 1 100%;
    min-width: 0;
}

.nav-list {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    margin: 0.6rem 0 0.2rem;
    padding: 0;
    list-style: none;
}

.nav-list a {
    display: block;
    padding: 0.5rem 0.2rem;
    font-family: var(--font-h);
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--ink);
    text-decoration: none;
    border-bottom: 1px solid rgba(168, 101, 199, 0.15);
}

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

.nav-list .sub-menu {
    list-style: none;
    margin: 0;
    padding-left: 1rem;
}

/* ============================================================
   6. Раскладки
   ============================================================ */

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

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

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

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

.sidebar {
    min-width: 0;
    padding: 1.4rem 1.5rem;
    background: #fff;
    border-radius: 12px;
    box-shadow: 8px 8px 0 rgba(212, 196, 224, 0.55);
}

/* ============================================================
   7. Хлебные крошки
   ============================================================ */

.breadcrumbs {
    margin: 0 0 1.6rem;
    font-size: 0.86rem;
    color: var(--muted);
    word-wrap: break-word;
}

.breadcrumbs a {
    color: var(--muted);
    text-decoration: none;
    border-bottom: 1px dotted var(--accent);
}

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

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

/* ============================================================
   8. Заголовки секций (номер-водяной знак + «указатель»)
   ============================================================ */

.sec-head {
    position: relative;
    max-width: 44rem;
    margin: 0 0 1.8rem;
    padding-left: 0.4rem;
}

.sec-head::before {
    content: attr(data-num);
    position: absolute;
    left: -0.8rem;
    top: -3.2rem;
    z-index: 0;
    font-family: var(--font-h);
    font-weight: 800;
    font-size: 6.5rem;
    line-height: 1;
    color: rgba(168, 101, 199, 0.1);
    pointer-events: none;
}

.sec-head h2 {
    position: relative;
    z-index: 1;
    margin: 0 0 0.5rem;
}

.sec-head h2::after {
    content: "";
    display: block;
    width: 118px;
    height: 2px;
    margin-top: 0.9rem;
    background: var(--accent);
    transform: rotate(-15deg);
    transform-origin: left center;
}

.sec-sub {
    position: relative;
    z-index: 1;
    margin: 1.1rem 0 0;
    color: var(--muted);
    max-width: 38rem;
}

.page-title {
    margin: 0 0 1.6rem;
}

/* ============================================================
   9. Секции главной
   ============================================================ */

.front-section {
    position: relative;
    padding: 2.8rem 1.4rem;
    margin: 0 0 0.6rem;
    border-radius: 14px;
}

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

.rhombus-divider {
    height: 34px;
    margin: 0.6rem 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='34' height='34' viewBox='0 0 34 34'%3E%3Crect x='13' y='13' width='8' height='8' transform='rotate(45 17 17)' fill='%23A865C7' fill-opacity='0.35'/%3E%3C/svg%3E");
    background-repeat: repeat-x;
    background-position: left center;
}

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

.hero {
    position: relative;
    overflow: hidden;
    border-radius: 14px;
    padding: 2.6rem 1.5rem 3.4rem;
    color: #fff;
    isolation: isolate;
}

.hero-media {
    position: absolute;
    inset: 0;
    z-index: -2;
}

.hero-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(120deg, rgba(30, 24, 40, 0.9) 0%, rgba(58, 42, 74, 0.82) 45%, rgba(168, 101, 199, 0.6) 100%);
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
    align-items: center;
}

.hero-lead h1 {
    color: #fff;
    margin-bottom: 0.6rem;
}

.hero-lead h1 em {
    font-style: normal;
    color: var(--amber);
}

.hero-slogan {
    max-width: 34rem;
    margin: 0 0 1.6rem;
    color: rgba(255, 255, 255, 0.86);
    font-size: 1rem;
}

.hero-quote {
    min-width: 0;
    padding: 1.6rem 1.5rem;
    background: rgba(255, 255, 255, 0.12);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.32);
    border-top: 3px solid var(--amber);
    border-radius: 4px;
}

.hero-quote p {
    margin: 0 0 1rem;
    font-family: var(--font-h);
    font-weight: 600;
    font-size: 1.12rem;
    line-height: 1.45;
    color: #fff;
}

.hero-quote cite {
    display: block;
    font-style: normal;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--amber);
}

.hero-down {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    margin-top: 1.8rem;
    color: #fff;
    font-family: var(--font-h);
    font-size: 0.85rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
}

.hero-down svg {
    display: block;
    width: 26px;
    height: 26px;
}

.hero-down:hover {
    color: var(--amber);
}

/* --- Блок 2: таймлайн --- */

.tl {
    position: relative;
    margin: 2.2rem 0 0;
    padding: 0 0 0 0;
    list-style: none;
}

.tl::before {
    content: "";
    position: absolute;
    top: 8px;
    bottom: 8px;
    left: 9px;
    width: 4px;
    border-radius: 2px;
    background: linear-gradient(to bottom, var(--accent), rgba(168, 101, 199, 0.25));
}

.tl-item {
    position: relative;
    min-width: 0;
    padding: 0 0 1.8rem 2.6rem;
}

.tl-item:last-child {
    padding-bottom: 0;
}

.tl-dot {
    position: absolute;
    left: 0;
    top: 6px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #fff;
    border: 4px solid var(--accent);
}

.tl-item.is-active .tl-dot {
    border-color: var(--amber);
    box-shadow: 0 0 0 6px rgba(242, 184, 75, 0.22);
}

.tl-aside {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.5rem;
}

.tl-ico {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    flex: none;
    border-radius: 4px;
    background: #fff;
    border: 1px solid rgba(168, 101, 199, 0.3);
    color: var(--accent);
}

.tl-ico svg {
    display: block;
    width: 18px;
    height: 18px;
}

.tl-when {
    font-family: var(--font-h);
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}

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

.tl-body h3 {
    margin: 0 0 0.35rem;
}

.tl-body p {
    margin: 0;
    color: #453B57;
}

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

.quote-section {
    position: relative;
    overflow: hidden;
    padding: 3rem 1.6rem;
    border-radius: 14px;
    color: #fff;
    background-color: var(--dark);
    background-image:
        repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 26px),
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 26px),
        linear-gradient(135deg, #1E1828 0%, #3A2A4A 100%);
}

.quote-section blockquote {
    margin: 0;
    padding: 0;
    background: none;
    border: none;
    max-width: 48rem;
}

.quote-section blockquote p {
    font-family: var(--font-h);
    font-weight: 700;
    font-size: 1.5rem;
    line-height: 1.35;
    color: #fff;
}

.quote-section em {
    font-style: normal;
    color: var(--amber);
}

.quote-section cite {
    display: block;
    margin-top: 1.2rem;
    font-style: normal;
    font-size: 0.85rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
}

.quote-compass {
    position: absolute;
    right: -40px;
    bottom: -50px;
    width: 240px;
    height: 240px;
    opacity: 0.22;
    pointer-events: none;
}

.quote-compass svg {
    display: block;
    width: 100%;
    height: 100%;
}

/* --- Блок 4: карта тем --- */

.topics-section {
    background-color: var(--bg-alt);
    background-image:
        repeating-linear-gradient(45deg, rgba(168, 101, 199, 0.08) 0 1px, transparent 1px 22px),
        repeating-linear-gradient(-45deg, rgba(168, 101, 199, 0.08) 0 1px, transparent 1px 22px);
}

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

.topic-tile {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    min-width: 0;
    padding: 1.5rem 1.4rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.55);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow: 8px 8px 0 rgba(212, 196, 224, 0.6);
    color: var(--ink);
    text-decoration: none;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, color 0.18s ease;
}

.topic-tile svg {
    display: block;
    width: 38px;
    height: 38px;
    color: var(--accent);
    transition: color 0.18s ease;
}

.topic-tile strong {
    font-family: var(--font-h);
    font-size: 1.15rem;
    font-weight: 800;
}

.topic-tile span {
    font-size: 0.92rem;
    color: #4A4058;
    transition: color 0.18s ease;
}

.topic-tile:hover {
    background: var(--accent);
    color: #fff;
    transform: translateY(-6px);
    box-shadow: 14px 14px 0 var(--amber);
}

.topic-tile:hover svg {
    color: var(--amber);
}

.topic-tile:hover span {
    color: rgba(255, 255, 255, 0.88);
}

/* --- «Указатель» — акцентный блок --- */

.pointer-note {
    position: relative;
    margin: 2rem 0 0;
    padding: 1.3rem 1.5rem;
    background: #fff;
    border-top: 3px solid var(--amber);
    clip-path: polygon(0 0, calc(100% - 26px) 0, 100% 50%, calc(100% - 26px) 100%, 0 100%);
    padding-right: 3rem;
}

.pointer-note p {
    margin: 0;
}

.pointer-note strong {
    font-family: var(--font-h);
}

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

.cards {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem 2.4rem;
    margin: 0 0 1rem;
}

.card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    background: #fff;
    border-radius: 12px;
    border-left: 5px solid var(--accent);
    box-shadow: 8px 8px 0 var(--card-shadow);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 14px 14px 0 var(--amber);
}

.card-thumb {
    display: block;
    position: relative;
    overflow: hidden;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 calc(100% - 20px));
}

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

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

.card-meta {
    margin-bottom: 0.45rem;
    font-family: var(--font-h);
    font-size: 0.76rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}

.card-title {
    margin: 0 0 0.6rem;
    font-size: 1.18rem;
}

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

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

.card-excerpt {
    min-width: 0;
    color: #4A4058;
    font-size: 0.96rem;
}

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

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

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

/* ============================================================
   11. Записи и страницы
   ============================================================ */

.entry-header {
    margin-bottom: 1.6rem;
}

.entry-meta {
    font-family: var(--font-h);
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}

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

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

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

.entry-content img {
    height: auto;
    border-radius: 8px;
}

.entry-content h2,
.entry-content h3 {
    margin-top: 1.8em;
}

.entry-tags {
    margin: 2rem 0 0;
    font-size: 0.88rem;
    color: var(--muted);
}

.entry-tags a {
    color: var(--accent);
    text-decoration: none;
    border-bottom: 1px dotted var(--accent);
}

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

.post-nav a {
    display: block;
    min-width: 0;
    padding: 1rem 1.2rem;
    background: #fff;
    border-radius: 12px;
    border-left: 4px solid var(--accent);
    color: var(--ink);
    text-decoration: none;
    box-shadow: 8px 8px 0 rgba(212, 196, 224, 0.5);
}

.post-nav a:hover {
    box-shadow: 12px 12px 0 var(--amber);
}

.post-nav span {
    display: block;
    font-family: var(--font-h);
    font-size: 0.74rem;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 0.25rem;
}

.no-posts {
    padding: 1.6rem 1.6rem;
    background: #fff;
    border-radius: 12px;
    border-left: 5px solid var(--amber);
}

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

.pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 2.4rem 0 0;
}

.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 0.85rem;
    background: #fff;
    border: 1px solid var(--card-shadow);
    border-radius: 4px;
    color: var(--ink);
    font-family: var(--font-h);
    font-size: 0.9rem;
    text-decoration: none;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.pagination .page-numbers:hover {
    border-color: var(--accent);
    color: var(--accent);
}

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

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

/* ============================================================
   13. Формы поиска и комментарии
   ============================================================ */

.search-form {
    display: flex;
    gap: 0.5rem;
    margin: 0 0 1.2rem;
}

.search-form .search-field {
    flex: 1 1 auto;
    min-width: 0;
    padding: 0.7rem 0.9rem;
    border: 1px solid var(--card-shadow);
    border-radius: 4px;
    background: #fff;
    color: var(--ink);
    font-family: var(--font-b);
    font-size: 0.95rem;
}

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

.comments-area {
    margin: 3rem 0 0;
    padding: 1.8rem 1.6rem;
    background: #fff;
    border-radius: 12px;
    box-shadow: 8px 8px 0 rgba(212, 196, 224, 0.5);
}

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

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

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

.comment-inner {
    padding: 1.1rem 1.2rem;
    background: var(--bg);
    border-radius: 8px;
    border-left: 3px solid var(--accent);
}

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

.comment-author {
    font-family: var(--font-h);
    font-weight: 700;
    font-size: 0.98rem;
}

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

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

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

.comment-actions a {
    color: var(--accent);
    text-decoration: none;
    border-bottom: 1px dotted var(--accent);
}

.comment-form label {
    display: block;
    margin-bottom: 0.3rem;
    font-size: 0.88rem;
    color: var(--muted);
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 85%;
    max-width: 100%;
    padding: 0.7rem 0.9rem;
    border: 1px solid var(--card-shadow);
    border-radius: 4px;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font-b);
    font-size: 0.95rem;
}

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

.comment-form .submit {
    display: inline-block;
    padding: 0.72rem 1.5rem;
    border: 2px solid transparent;
    border-radius: 4px;
    background: var(--accent);
    color: #fff;
    font-family: var(--font-h);
    font-weight: 700;
    font-size: 0.92rem;
    cursor: pointer;
    box-shadow: 0 4px 0 rgba(120, 62, 148, 0.35);
}

.comment-form .submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(120, 62, 148, 0.4);
}

.comments-title,
.comment-reply-title {
    font-size: 1.2rem;
}

/* ============================================================
   14. Виджеты — сайдбар (светлый фон)
   ============================================================ */

.widget {
    margin: 0 0 1.6rem;
}

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

.sidebar .widget {
    color: var(--ink);
}

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

.sidebar .widget-title::after {
    content: "";
    display: block;
    width: 60px;
    height: 2px;
    margin-top: 0.6rem;
    background: var(--amber);
    transform: rotate(-15deg);
    transform-origin: left center;
}

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

.sidebar .widget li {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(168, 101, 199, 0.16);
}

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

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

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

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

.sidebar .widget p {
    color: #4A4058;
    font-size: 0.95rem;
}

/* ============================================================
   15. Подвал (тёмный фон)
   ============================================================ */

.site-footer {
    background-color: var(--dark);
    background-image: repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.03) 0 1px, transparent 1px 30px);
    color: #D9D2E6;
    padding: 2.8rem 0 1.6rem;
}

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

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

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

.site-footer .widget-title::after {
    content: "";
    display: block;
    width: 56px;
    height: 2px;
    margin-top: 0.6rem;
    background: var(--amber);
    transform: rotate(-15deg);
    transform-origin: left center;
}

.site-footer .widget,
.site-footer .widget p,
.site-footer .widget li,
.site-footer .textwidget {
    color: #D9D2E6;
    font-size: 0.94rem;
}

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

.site-footer .widget li {
    padding: 0.4rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.site-footer .widget li:last-child {
    border-bottom: none;
}

.site-footer .widget a,
.site-footer .widget .textwidget a {
    color: #EDE6F5;
    text-decoration: none;
    border-bottom: 1px dotted rgba(242, 184, 75, 0.7);
}

.site-footer .widget a:hover,
.site-footer .widget .textwidget a:hover {
    color: var(--amber);
}

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

.site-copy {
    margin: 2.4rem 0 0;
    padding-top: 1.2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 0.85rem;
    color: #A79CBA;
}

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

.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: 0.9rem 1.4rem;
    padding: 1rem 1.3rem;
    background: rgba(30, 24, 40, 0.96);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border-top: 3px solid var(--amber);
    color: #EDE6F5;
    font-size: 0.9rem;
}

.cookie-banner p {
    margin: 0;
    min-width: 0;
    flex: 1 1 260px;
}

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

.cookie-accept {
    flex: none;
    padding: 0.6rem 1.4rem;
    border: none;
    border-radius: 4px;
    background: var(--accent);
    color: #fff;
    font-family: var(--font-h);
    font-weight: 700;
    font-size: 0.88rem;
    cursor: pointer;
}

.cookie-accept:hover {
    background: var(--amber);
}

/* ============================================================
   17. 404
   ============================================================ */

.error-404 {
    padding: 2.4rem 1.6rem;
    background: #fff;
    border-radius: 12px;
    border-left: 5px solid var(--amber);
    box-shadow: 8px 8px 0 var(--card-shadow);
}

.error-404 .code-404 {
    font-family: var(--font-h);
    font-size: 4rem;
    line-height: 1;
    color: rgba(168, 101, 199, 0.35);
    margin: 0 0 0.6rem;
}

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

@media (max-width: 600px) {
    .front-section {
        padding: 2rem 1.1rem;
    }

    .hero {
        padding: 2rem 1.1rem 2.6rem;
    }

    .quote-section {
        padding: 2.2rem 1.2rem;
    }

    .quote-section blockquote p {
        font-size: 1.2rem;
    }

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

    .sidebar {
        padding: 1.2rem 1.2rem;
    }

    .comments-area {
        padding: 1.4rem 1.1rem;
    }

    .error-404 {
        padding: 1.8rem 1.2rem;
    }

    .pointer-note {
        padding: 1.1rem 2.4rem 1.1rem 1.2rem;
    }

    .layout-single {
        width: 100%;
    }

    .sec-head::before {
        font-size: 4.6rem;
        top: -2.2rem;
    }
}

@media (min-width: 600px) {
    h1 { font-size: 3rem; }
    h2 { font-size: 2rem; }

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

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

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

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

    .brand-desc {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        margin-top: 0.2rem;
        font-size: 0.78rem;
        line-height: 1.35;
        color: var(--muted);
    }

    .hero-quote {
        padding: 1.8rem 1.8rem;
    }
}

@media (min-width: 960px) {
    h1 { font-size: 4.2rem; }

    .site-header .nav-toggle {
        display: none;
    }

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

    .nav-list {
        flex-direction: row;
        align-items: center;
        gap: 1.4rem;
        margin: 0;
    }

    .nav-list a {
        padding: 0.2rem 0;
        border-bottom: 2px solid transparent;
    }

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

    .nav-list .sub-menu {
        display: none;
    }

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

    .hero {
        padding: 3.6rem 2.8rem 4rem;
    }

    .hero-grid {
        grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
        gap: 3rem;
    }

    .quote-section {
        padding: 4rem 3rem;
    }

    .quote-section blockquote p {
        font-size: 2rem;
    }

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

    .tl::before {
        left: 172px;
    }

    .tl-item {
        display: grid;
        grid-template-columns: minmax(0, 160px) minmax(0, 1fr);
        gap: 0 3.2rem;
        padding: 0 0 2.2rem 0;
    }

    .tl-dot {
        left: 163px;
    }

    .tl-aside {
        justify-content: flex-end;
        margin-bottom: 0;
        text-align: right;
    }

    .sec-head::before {
        font-size: 10rem;
        top: -5.2rem;
        left: -1.6rem;
    }

    .sec-head h2 {
        font-size: 2.4rem;
    }
}
