/*
Theme Name: dds_ecopoliedr.ru
Author: Антон Миронов
Description: Тема для информационного сайта о криптовалютных платформах.
Version: 1.1
Text Domain: ecplr
*/

:root {
    --bg: #f2edf8;
    --bg-alt: #ffffff;
    --line: #d1c4e0;
    --line-soft: #e6dbf5;
    --ink: #221c2e;
    --accent: #b77cf2;
    --accent-dark: #9a5fd4;
    --accent-2: #f2b0e6;
    --muted: #89809c;
    --deep: #1c1428;
    --deep-2: #3a2852;
    --side-bg: #f8f4ff;
}

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

html { scroll-behavior: smooth; }

body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    background-color: var(--bg);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='96' viewBox='0 0 56 96'%3E%3Cg fill='none' stroke='%23d1c4e0' stroke-opacity='0.15' stroke-width='1'%3E%3Cpath d='M28 0 L56 16 L56 48 L28 64 L0 48 L0 16 Z'/%3E%3Cpath d='M28 48 L56 64 L56 96 L28 112 L0 96 L0 64 Z'/%3E%3C/g%3E%3C/svg%3E");
    color: var(--ink);
    font-family: "Inter", "Roboto", "Helvetica Neue", Arial, sans-serif;
    font-size: 17px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

body::after {
    content: "";
    position: fixed;
    right: -60px;
    bottom: -80px;
    width: 460px;
    height: 460px;
    z-index: 0;
    pointer-events: none;
    opacity: 0.05;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 400'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='1' y2='1'%3E%3Cstop offset='0' stop-color='%23b77cf2'/%3E%3Cstop offset='1' stop-color='%23f2b0e6'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath fill='url(%23g)' d='M212 24c58 8 96 44 118 96 22 52 14 108-22 148-36 40-96 60-152 44C100 296 60 254 44 200 28 146 44 90 88 56c40-30 70-40 124-32z'/%3E%3Ccircle cx='200' cy='196' r='70' fill='none' stroke='%23b77cf2' stroke-width='26'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
}

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

a { color: var(--accent-dark); text-decoration: none; }
a:hover { text-decoration: overline; }

h1, h2, h3, h4, h5, h6 {
    font-family: "Montserrat", "Geometria", "Inter", Arial, sans-serif;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.01em;
    color: var(--ink);
    margin: 0 0 0.6em;
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.15rem; }

p { margin: 0 0 1.1em; }

.shell {
    width: min(92%, 1180px);
    margin-inline: auto;
    position: relative;
    z-index: 1;
}

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

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

.btn {
    display: inline-block;
    padding: 0.75em 2em;
    border-radius: 50px;
    border: 2px solid var(--accent);
    background: var(--accent);
    color: #fff;
    font-family: "Montserrat", "Inter", Arial, sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.3;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
    box-shadow: 0 2px 0 rgba(28, 20, 40, .12);
}
.btn:hover {
    transform: translateY(2px);
    background: var(--accent-dark);
    border-color: var(--accent-dark);
    color: #fff;
    text-decoration: none;
    box-shadow: 0 6px 16px rgba(154, 95, 212, .35);
}
.btn-ghost {
    background: transparent;
    color: var(--accent-dark);
}
.btn-ghost:hover {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
    color: #fff;
}

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

.main-nav[hidden] { display: none !important; }

.site-head {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
    position: relative;
    z-index: 5;
}

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

.brand {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    min-width: 0;
}
.brand-mark { flex: 0 0 auto; display: block; }
.brand-logo { display: block; max-height: 56px; width: auto; }
.brand-text { min-width: 0; }
.brand-name {
    display: block;
    font-family: "Montserrat", "Inter", Arial, sans-serif;
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--ink);
    line-height: 1.25;
}
.brand-name:hover { text-decoration: none; color: var(--accent-dark); }
.brand-tagline {
    display: block;
    font-size: 0.8rem;
    color: var(--muted);
    line-height: 1.4;
    margin-top: 0.2rem;
    max-width: 420px;
}

.nav-toggle {
    display: none;
    border: 2px solid var(--accent);
    background: transparent;
    color: var(--accent-dark);
    border-radius: 50px;
    padding: 0.5em 1.2em;
    font: 600 0.9rem "Montserrat", Arial, sans-serif;
    cursor: pointer;
}

.main-nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 1.4rem;
    margin: 0;
    padding: 0;
}
.main-nav a {
    display: inline-block;
    padding: 0.35em 0;
    color: var(--ink);
    font-weight: 600;
    font-size: 0.95rem;
}
.main-nav a:hover { color: var(--accent-dark); }
.main-nav .current-menu-item > a,
.main-nav .current_page_item > a {
    color: var(--accent-dark);
    text-decoration: overline;
}

/* ---------- Разметка страницы ---------- */

.site-main { padding: 2.6rem 0 3.4rem; position: relative; z-index: 1; }

.layout-with-sidebar {
    display: grid;
    grid-template-columns: minmax(0, 67fr) minmax(0, 27fr);
    gap: 6%;
    align-items: start;
}
.layout-single {
    display: block;
    width: 85%;
    margin-left: auto;
    margin-right: auto;
}
.content-area { min-width: 0; }

.crumbs {
    font-size: 0.85rem;
    color: var(--muted);
    margin-bottom: 1.6rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px dashed var(--line);
}
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--accent-dark); }
.crumbs-sep { color: var(--accent); padding: 0 0.25em; }

.page-heading { margin-bottom: 2rem; }
.page-heading h1 { font-size: 2.6rem; margin-bottom: 0.3rem; }
.page-lead { color: var(--muted); font-size: 1.02rem; }

/* Заголовок секции: вертикальная линия + ромб */
.sec-title {
    position: relative;
    padding-left: 1.1rem;
    margin-bottom: 1.6rem;
    font-size: 1.9rem;
}
.sec-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.15em;
    bottom: 0.15em;
    width: 4px;
    background: var(--accent);
}
.sec-title::after {
    content: "◇";
    color: var(--accent);
    font-size: 0.65em;
    margin-left: 0.5em;
    vertical-align: middle;
}

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

.card-list { display: flex; flex-direction: column; gap: 1.6rem; }

.card {
    display: flex;
    flex-direction: column;
    background: var(--bg-alt);
    border: 1px solid var(--line);
    border-radius: 4px;
    box-shadow: 4px 4px 0 var(--line);
    overflow: hidden;
    transition: box-shadow .18s ease;
}
.card:hover { box-shadow: 8px 8px 0 var(--accent); }

.card-inner { display: flex; flex-direction: row; min-width: 0; }

.card-thumb-wrap {
    flex: 0 0 280px;
    position: relative;
    overflow: hidden;
    background: var(--line-soft);
}
.card-thumb-wrap a {
    display: block;
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
}
.card-thumb-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.card-body {
    flex: 1;
    min-width: 0;
    padding: 1.4rem 1.6rem;
    display: flex;
    flex-direction: column;
}
.card-title { font-size: 1.3rem; margin-bottom: 0.5rem; }
.card-title a { color: var(--ink); }
.card-title a:hover { color: var(--accent-dark); }
.card-excerpt { color: #4a4359; font-size: 0.97rem; }
.card-excerpt p { margin: 0 0 0.5em; background: none; }
.card-foot { margin-top: auto; padding-top: 1rem; }

.post-meta {
    font-size: 0.82rem;
    color: var(--muted);
    margin-bottom: 0.7rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    align-items: center;
}
.meta-chip a {
    display: inline-block;
    padding: 0.15em 0.9em;
    border: 1px solid var(--line);
    border-radius: 50px;
    color: var(--accent-dark);
    font-size: 0.78rem;
    background: var(--side-bg);
    transition: box-shadow .18s ease, border-color .18s ease;
}
.meta-chip a:hover {
    text-decoration: none;
    border-color: var(--accent);
    box-shadow: 0 0 12px rgba(183, 124, 242, .55);
}

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

.pager {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 2.4rem;
}
.pager .page-numbers {
    display: inline-block;
    padding: 0.5em 1.1em;
    border: 1px solid var(--line);
    border-radius: 50px;
    background: var(--bg-alt);
    color: var(--ink);
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.3;
}
.pager a.page-numbers:hover {
    text-decoration: none;
    border-color: var(--accent);
    color: var(--accent-dark);
    box-shadow: 0 0 12px rgba(183, 124, 242, .4);
}
.pager .page-numbers.current {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    box-shadow: 0 0 14px rgba(183, 124, 242, .55);
}
.pager .page-numbers.dots {
    border: none;
    background: none;
    box-shadow: none;
    padding-inline: 0.3em;
}

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

.entry {
    background: var(--bg-alt);
    border: 1px solid var(--line);
    border-radius: 4px;
    box-shadow: 4px 4px 0 var(--line);
    padding: 2.2rem 2.4rem;
}
.entry-title { font-size: 2.4rem; margin-bottom: 0.6rem; }
.entry-thumb { margin: 1.4rem 0 1.8rem; }
.entry-thumb img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 4px;
}
.entry-content h2 { font-size: 1.7rem; margin-top: 1.8rem; }
.entry-content h3 { font-size: 1.3rem; margin-top: 1.5rem; }
.entry-content ul, .entry-content ol { padding-left: 1.3rem; }
.entry-content li { margin-bottom: 0.5rem; }
.entry-content img { border-radius: 4px; display: block; }

.entry-content blockquote {
    margin: 1.8rem 0 1.8rem 2rem;
    padding: 0.4rem 1.4rem;
    border-left: 5px solid var(--accent);
    font-style: italic;
    color: #3b3350;
}
.entry-content blockquote p:last-child { margin-bottom: 0; }

.entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.6rem 0;
    border: 1px solid var(--line);
    font-size: 0.95rem;
}
.entry-content th, .entry-content td {
    border: 1px solid var(--line);
    padding: 0.65rem 0.9rem;
    text-align: left;
}
.entry-content th { background: var(--side-bg); font-weight: 700; }

.entry-tags { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.entry-tags a {
    display: inline-block;
    padding: 0.2em 0.95em;
    border: 1px solid var(--line);
    border-radius: 50px;
    font-size: 0.82rem;
    background: var(--side-bg);
    transition: box-shadow .18s ease;
}
.entry-tags a:hover { text-decoration: none; box-shadow: 0 0 12px rgba(183, 124, 242, .55); }

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

.sidebar { min-width: 0; }
.sidebar .widget {
    background: var(--side-bg);
    border: 1px solid var(--line);
    border-radius: 4px;
    box-shadow: 4px 4px 0 var(--line);
    padding: 1.4rem 1.5rem;
    margin-bottom: 1.6rem;
    color: var(--ink);
}
.sidebar .widget-title {
    font-size: 1.05rem;
    margin-bottom: 1rem;
    padding-left: 0.8rem;
    position: relative;
    color: var(--ink);
}
.sidebar .widget-title::before {
    content: "";
    position: absolute;
    left: 0; top: 0.2em; bottom: 0.2em;
    width: 4px;
    background: var(--accent);
}
.sidebar .widget ul { list-style: none; margin: 0; padding: 0; }
.sidebar .widget li {
    padding: 0.5rem 0 0.5rem 1.1rem;
    border-bottom: 1px dashed var(--line);
    position: relative;
    font-size: 0.94rem;
}
.sidebar .widget li:last-child { border-bottom: none; }
.sidebar .widget li::before {
    content: "◇";
    position: absolute;
    left: 0;
    color: var(--accent);
    font-size: 0.7rem;
}
.sidebar .widget a { color: var(--ink); }
.sidebar .widget a:hover { color: var(--accent-dark); }
.sidebar .widget p { color: #4a4359; font-size: 0.94rem; }
.sidebar .post-date { display: block; color: var(--muted); font-size: 0.8rem; }

/* ---------- Форма поиска ---------- */

.search-form { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.search-form input[type="search"] {
    flex: 1;
    min-width: 0;
    padding: 0.7em 1.1em;
    border: 1px solid var(--line);
    border-radius: 50px;
    background: #fff;
    color: var(--ink);
    font: inherit;
    font-size: 0.95rem;
}
.search-form input[type="search"]:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 12px rgba(183, 124, 242, .4);
}

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

.front-section { padding: 3.4rem 0; position: relative; }
.front-section + .front-section { border-top: 1px dashed var(--line); }
.front-section.alt { background: var(--bg-alt); }

.zigzag-deco {
    display: block;
    margin: 0 auto 1.8rem;
    width: 140px;
    height: 14px;
}

/* Hero */
.hero {
    position: relative;
    overflow: hidden;
    border-radius: 6px;
    margin: 2.2rem 0 0;
    min-height: 420px;
    display: flex;
    align-items: flex-end;
}
.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(28, 20, 40, .92) 8%, rgba(28, 20, 40, .55) 55%, rgba(28, 20, 40, .25) 100%);
}
.hero-inner {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 3rem 2.2rem 2.8rem;
    text-align: center;
    color: #fff;
}
.hero-inner h1 { color: #fff; margin-bottom: 0.7rem; }
.hero-inner h1::before {
    content: "◇";
    color: var(--accent-2);
    font-size: 0.5em;
    vertical-align: middle;
    margin-right: 0.5rem;
}
.hero-sub {
    color: #e4d9f2;
    max-width: 720px;
    margin: 0 auto 1.8rem;
    font-size: 1.08rem;
}

/* Таймлайн */
.tl { position: relative; padding: 0.5rem 0; }
.tl::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 0;
    border-left: 2px dashed var(--accent);
    transform: translateX(-1px);
}
.tl-item {
    position: relative;
    width: 50%;
    padding: 0 2.6rem 2.2rem 0;
    min-width: 0;
}
.tl-item:nth-child(even) {
    margin-left: 50%;
    padding: 0 0 2.2rem 2.6rem;
}
.tl-dot {
    position: absolute;
    top: 0.35rem;
    right: -13px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    font-size: 0.72rem;
    line-height: 26px;
    text-align: center;
    box-shadow: 0 0 14px rgba(183, 124, 242, .6);
}
.tl-item:nth-child(even) .tl-dot { right: auto; left: -13px; }
.tl-stage {
    display: block;
    font-size: 0.8rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--accent-dark);
    font-weight: 700;
    margin-bottom: 0.3rem;
}
.tl-item h3 { font-size: 1.2rem; margin-bottom: 0.35rem; }
.tl-item p { color: #4a4359; font-size: 0.95rem; margin: 0; }

/* Zigzag */
.zz-row {
    display: flex;
    align-items: center;
    gap: 2.6rem;
    padding: 2.2rem 0;
}
.zz-row + .zz-row { border-top: 1px solid var(--line); }
.zz-row:nth-child(even) { flex-direction: row-reverse; }
.zz-media {
    flex: 0 0 40%;
    min-width: 0;
}
.zz-media img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: contain;
    background: var(--side-bg);
    border: 1px solid var(--line);
    border-radius: 4px;
    padding: 1rem;
}
.zz-text { flex: 1; min-width: 0; }
.zz-text h3 { font-size: 1.55rem; margin-bottom: 0.5rem; }
.zz-text p { color: #4a4359; font-size: 0.97rem; margin-bottom: 0.6rem; }
.zz-note { color: var(--muted); font-size: 0.88rem; }

/* Статистика */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.6rem;
    padding: 0.8rem 0 0.4rem;
}
.stat-card {
    background: linear-gradient(135deg, var(--deep), var(--deep-2));
    color: #fff;
    border-radius: 6px;
    padding: 2rem 1.6rem;
    text-align: center;
    min-width: 0;
}
.stat-card:nth-child(odd) { transform: skewY(-2deg); }
.stat-card:nth-child(even) { transform: skewY(2deg); }
.stat-card > * { display: block; }
.stat-card:nth-child(odd) .stat-inner { transform: skewY(2deg); }
.stat-card:nth-child(even) .stat-inner { transform: skewY(-2deg); }
.stat-num {
    font-family: "Montserrat", Arial, sans-serif;
    font-size: 3rem;
    font-weight: 700;
    line-height: 1;
    color: #fff;
}
.stat-label {
    color: var(--accent-2);
    font-size: 0.9rem;
    margin-top: 0.6rem;
    letter-spacing: .02em;
}

/* Последние записи на главной */
.latest-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}
.latest-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.6rem;
}
.mini {
    display: flex;
    flex-direction: column;
    background: var(--bg-alt);
    border: 1px solid var(--line);
    border-radius: 4px;
    box-shadow: 4px 4px 0 var(--line);
    overflow: hidden;
    min-width: 0;
    transition: box-shadow .18s ease;
}
.mini:hover { box-shadow: 8px 8px 0 var(--accent); }
.mini-thumb { display: block; }
.mini-thumb img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}
.mini-body { flex: 1; padding: 1.2rem 1.3rem; display: flex; flex-direction: column; }
.mini-body h3 { font-size: 1.12rem; margin-bottom: 0.4rem; }
.mini-body h3 a { color: var(--ink); }
.mini-body h3 a:hover { color: var(--accent-dark); }
.mini-excerpt { font-size: 0.92rem; color: #4a4359; }
.mini-excerpt p { margin: 0 0 0.5em; background: none; }
.mini-more { margin-top: auto; padding-top: 0.8rem; font-weight: 600; font-size: 0.9rem; }

/* CTA-плашка */
.fs-cta {
    background: linear-gradient(120deg, var(--deep), var(--deep-2));
    color: #fff;
    border-radius: 10px;
    padding: 2.5rem 2.2rem;
    text-align: center;
    margin-top: 2.4rem;
}
.fs-cta h2 { color: #fff; }
.fs-cta p { color: #ddd0ec; max-width: 640px; margin: 0 auto 1.6rem; }

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

.site-foot {
    background: var(--deep);
    color: #cfc4de;
    padding: 3rem 0 1.6rem;
    position: relative;
    z-index: 1;
}
.foot-cols {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 2rem;
}
.foot-col { min-width: 0; }
.site-foot .widget { margin-bottom: 1.4rem; color: #cfc4de; }
.site-foot .widget-title {
    color: #ffffff;
    font-size: 1.02rem;
    margin-bottom: 0.9rem;
    padding-left: 0.8rem;
    position: relative;
}
.site-foot .widget-title::before {
    content: "";
    position: absolute;
    left: 0; top: 0.2em; bottom: 0.2em;
    width: 4px;
    background: var(--accent);
}
.site-foot .widget p { color: #bdb0cf; font-size: 0.92rem; }
.site-foot .widget ul { list-style: none; margin: 0; padding: 0; }
.site-foot .widget li {
    padding: 0.4rem 0 0.4rem 1.1rem;
    position: relative;
    font-size: 0.93rem;
    border-bottom: 1px dashed rgba(207, 196, 222, .18);
}
.site-foot .widget li:last-child { border-bottom: none; }
.site-foot .widget li::before {
    content: "◇";
    position: absolute;
    left: 0;
    color: var(--accent-2);
    font-size: 0.7rem;
}
.site-foot .widget a { color: #e6ddf2; }
.site-foot .widget a:hover { color: #ffffff; }
.site-foot .post-date { display: block; color: #a294b8; font-size: 0.8rem; }

.foot-bottom {
    margin-top: 2rem;
    padding-top: 1.4rem;
    border-top: 1px dashed rgba(207, 196, 222, .25);
    font-size: 0.85rem;
    color: #a294b8;
}

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

.comments-block {
    margin-top: 2.4rem;
    background: var(--bg-alt);
    border: 1px solid var(--line);
    border-radius: 4px;
    box-shadow: 4px 4px 0 var(--line);
    padding: 1.8rem 2rem;
}
.comment-list { list-style: none; margin: 0 0 1.6rem; padding: 0; }
.comment-list ul.children { list-style: none; padding-left: 1.6rem; }
.comment-inner {
    border-left: 3px solid var(--line);
    padding: 0.4rem 0 0.4rem 1.1rem;
    margin-bottom: 1.2rem;
}
.comment-head { display: flex; gap: 1rem; align-items: baseline; flex-wrap: wrap; }
.comment-author { font-weight: 700; }
.comment-date { color: var(--muted); font-size: 0.82rem; }
.comment-actions { font-size: 0.88rem; }
.comment-form label { display: block; font-size: 0.9rem; margin-bottom: 0.3rem; font-weight: 600; }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 0.7em 1em;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fff;
    font: inherit;
    font-size: 0.95rem;
    color: var(--ink);
}
.comment-form textarea { min-height: 150px; }
.comment-form .submit {
    display: inline-block;
    padding: 0.75em 2em;
    border-radius: 50px;
    border: 2px solid var(--accent);
    background: var(--accent);
    color: #fff;
    font-family: "Montserrat", Arial, sans-serif;
    font-weight: 600;
    cursor: pointer;
}
.comment-form .submit:hover { background: var(--accent-dark); border-color: var(--accent-dark); transform: translateY(2px); }

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

.notfound {
    text-align: center;
    background: var(--bg-alt);
    border: 1px solid var(--line);
    border-radius: 4px;
    box-shadow: 4px 4px 0 var(--line);
    padding: 3rem 2rem;
}
.notfound-code {
    font-family: "Montserrat", Arial, sans-serif;
    font-size: 5rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
}
.notfound .search-form { max-width: 460px; margin: 1.6rem auto; }

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

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

.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 50;
    background: var(--deep);
    color: #e6ddf2;
    border-top: 2px solid var(--accent);
    padding: 1rem 1.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.2rem;
    flex-wrap: wrap;
    font-size: 0.9rem;
}
.cookie-banner p { margin: 0; max-width: 760px; }
.cookie-banner a { color: var(--accent-2); }

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

@media (max-width: 960px) {
    h1 { font-size: 2.6rem; }
    .layout-with-sidebar { grid-template-columns: minmax(0, 1fr); gap: 2.4rem; }
    .layout-single { width: 100%; }
    .hero { min-height: 340px; }
}

@media (max-width: 780px) {
    .nav-toggle { display: inline-block; }
    .main-nav { width: 100%; }
    .main-nav ul { flex-direction: column; gap: 0; }
    .main-nav li { border-bottom: 1px dashed var(--line); }
    .main-nav[hidden] { display: none !important; }
    .brand-tagline { display: none; }
}

@media (max-width: 600px) {
    body { font-size: 16px; }
    h1 { font-size: 2.1rem; }
    h2 { font-size: 1.6rem; }
    .front-section { padding: 2.4rem 0; }
    .entry { padding: 1.4rem 1.2rem; }
    .comments-block { padding: 1.3rem 1.1rem; }
    .fs-cta { padding: 1.8rem 1.4rem; }
    .hero-inner { padding: 2rem 1.2rem 1.8rem; }
    .hero { min-height: 300px; }

    .card-inner { flex-direction: column; }
    .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.2rem 1.1rem; }

    .tl::before { left: 9px; }
    .tl-item,
    .tl-item:nth-child(even) {
        width: 100%;
        margin-left: 0;
        padding: 0 0 1.8rem 2.4rem;
    }
    .tl-dot,
    .tl-item:nth-child(even) .tl-dot { left: -4px; right: auto; }

    .zz-row, .zz-row:nth-child(even) { flex-direction: column; gap: 1.4rem; }
    .zz-media { flex: none; width: 100%; }

    .stat-card,
    .stat-card:nth-child(odd),
    .stat-card:nth-child(even) { transform: none; }
    .stat-card .stat-inner { transform: none !important; }
    .stat-num { font-size: 2.4rem; }
}
