/*
Theme Name: dds_terrycom.ru
Theme URI: https://terrycom.ru/
Author: Семён Корнилов
Description: Информационная тема для сайта об автополиве, подготовке участка и благоустройстве. Холодная индиго-стальная палитра, бирюзовый акцент, разборы и практические материалы.
Version: 1.1
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: aquaplan
*/

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

:root {
    --bg: #F2F5F9;
    --bg-alt: #FFFFFF;
    --dark: #0F1B2A;
    --dark-2: #1F3A5F;
    --sidebar-bg: #E8EDF4;
    --text: #1B263B;
    --text-soft: #3A4A61;
    --accent: #00B4D8;
    --accent-2: #90E0EF;
    --accent-dark: #0B5E85;
    --muted: #6C7A8D;
    --line: #DEE2E6;
    --steel: #46617F;
    --dot: #D1D9E6;
    --radius: 12px;
    --radius-btn: 6px;
    --shadow: 0 10px 28px rgba(15, 27, 42, .08);
    --shadow-hi: 0 18px 42px rgba(15, 27, 42, .18);
    --font-head: 'Manrope', 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    --font-body: 'Roboto', 'Open Sans', 'Helvetica Neue', Arial, sans-serif;
}

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

[hidden] {
    display: none !important;
}

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

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

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.72;
    letter-spacing: .012em;
    color: var(--text);
    background-color: var(--bg);
    background-image: radial-gradient(var(--dot) 1px, transparent 1px);
    background-size: 22px 22px;
    background-attachment: fixed;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-head);
    color: var(--text);
    line-height: 1.18;
    letter-spacing: -.01em;
    margin: 0 0 .8rem;
}

h1 {
    font-size: 3.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.45rem;
}

h4 {
    font-size: 1.2rem;
}

p {
    margin: 0 0 1.15rem;
}

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

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

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

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

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

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

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

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

.brand {
    display: flex;
    align-items: center;
    gap: .95rem;
    min-width: 0;
    text-decoration: none;
    max-width: 560px;
}

.brand-logo {
    display: block;
    width: 54px;
    height: 54px;
    flex: 0 0 54px;
}

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

.brand-name {
    display: block;
    font-family: var(--font-head);
    font-weight: 800;
    font-size: .98rem;
    line-height: 1.32;
    color: #fff;
}

.brand-desc {
    display: block;
    margin-top: .3rem;
    font-size: .78rem;
    line-height: 1.45;
    color: #93A9C0;
}

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

.main-nav .nav-list a {
    position: relative;
    display: inline-block;
    padding-bottom: 5px;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: .95rem;
    color: #E4EDF6;
    text-decoration: none;
}

.main-nav .nav-list a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width .28s ease;
}

.main-nav .nav-list a:hover::after,
.main-nav .nav-list .current-menu-item > a::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    align-items: center;
    gap: .55rem;
    background: transparent;
    border: 1px solid rgba(144, 224, 239, .45);
    border-radius: var(--radius-btn);
    color: #E4EDF6;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: .88rem;
    padding: .55rem 1rem;
    cursor: pointer;
}

.nav-toggle:hover {
    border-color: var(--accent);
    color: #fff;
}

.nav-toggle .bars {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--accent);
    position: relative;
}

.nav-toggle .bars::before,
.nav-toggle .bars::after {
    content: '';
    position: absolute;
    left: 0;
    width: 18px;
    height: 2px;
    background: var(--accent);
}

.nav-toggle .bars::before {
    top: -6px;
}

.nav-toggle .bars::after {
    top: 6px;
}

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

.btn {
    display: inline-block;
    border: 1px solid transparent;
    border-radius: var(--radius-btn);
    padding: .82rem 1.6rem;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: .95rem;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition: background .25s ease, color .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.btn-accent {
    background: var(--accent);
    color: #06202B;
}

.btn-accent:hover {
    background: var(--accent-dark);
    color: #fff;
    box-shadow: 0 14px 26px rgba(11, 94, 133, .32);
}

.btn-outline {
    background: transparent;
    border-color: var(--steel);
    color: var(--text);
}

.btn-outline:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #06202B;
    box-shadow: 0 12px 24px rgba(0, 180, 216, .26);
}

.band-dark .btn-outline,
.band-accent .btn-outline {
    border-color: rgba(144, 224, 239, .6);
    color: #EAF4FA;
}

.entry-content a,
.breadcrumbs a,
.widget-title a,
.comment-text a {
    color: var(--accent);
    text-decoration: none;
    background-image: linear-gradient(var(--accent), var(--accent));
    background-size: 0 2px;
    background-repeat: no-repeat;
    background-position: 0 100%;
    transition: background-size .3s ease;
}

.entry-content a:hover,
.breadcrumbs a:hover,
.widget-title a:hover,
.comment-text a:hover {
    background-size: 100% 2px;
}

/* ============================================================
   6. Секции и заголовки
   ============================================================ */

.band {
    position: relative;
    padding: 4.2rem 0;
}

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

.band-white::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        repeating-linear-gradient(0deg, rgba(27, 38, 59, .055) 0 1px, transparent 1px 44px),
        repeating-linear-gradient(90deg, rgba(27, 38, 59, .055) 0 1px, transparent 1px 44px);
    -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, #000 22%, #000 78%, rgba(0, 0, 0, 0) 100%);
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, #000 22%, #000 78%, rgba(0, 0, 0, 0) 100%);
}

.band > .shell {
    position: relative;
    z-index: 1;
}

.eyebrow {
    display: block;
    margin: 0 0 .7rem;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: .82rem;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--accent);
}

.section-title {
    font-size: 2rem;
    margin: 0 0 .5rem;
}

.section-title::after {
    content: '';
    display: block;
    width: 190px;
    max-width: 60%;
    height: 2px;
    margin-top: .85rem;
    background: linear-gradient(90deg, rgba(0, 180, 216, 0) 0%, var(--accent) 55%, var(--accent) 100%);
}

.section-actions {
    margin: 2rem 0 0;
}

.section-lead {
    max-width: 720px;
    margin: 1.1rem 0 0;
    color: var(--text-soft);
}

.band-dark .section-title,
.band-accent .section-title,
.band-dark .section-lead,
.band-accent .section-actions {
    margin: 2rem 0 0;
}

.section-lead {
    color: #fff;
}

/* ============================================================
   7. Hero
   ============================================================ */

.hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: var(--dark);
    padding: 5.5rem 0 6rem;
    border-bottom: 4px solid var(--accent);
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transform: scale(1.05);
    filter: blur(2px) saturate(.85);
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(115deg, rgba(15, 27, 42, .95) 0%, rgba(15, 27, 42, .84) 48%, rgba(31, 58, 95, .62) 100%);
}

.hero-blob {
    position: absolute;
    right: -70px;
    bottom: -90px;
    z-index: -1;
    width: 360px;
    height: 360px;
    opacity: .5;
    filter: blur(14px);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cpath fill='%2300B4D8' d='M100 12c31 33 62 58 62 98a62 62 0 1 1-124 0c0-40 31-65 62-98z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
    pointer-events: none;
}

.hero-inner {
    position: relative;
    z-index: 1;
    max-width: 900px;
}

.hero-title {
    font-size: clamp(2rem, 4.6vw, 3.5rem);
    color: #fff;
    margin: 0 0 1.2rem;
}

.hero-text {
    color: #C6D8E8;
    font-size: 1.06rem;
    max-width: 640px;
    margin-bottom: 2rem;
}

/* ============================================================
   8. Карточки рубрик (сетка с иконками)
   ============================================================ */

.topic-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.7rem;
    margin-top: 2.6rem;
}

.topic-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: .9rem;
    min-width: 0;
    padding: 2rem 1.7rem;
    background: var(--bg-alt);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-decoration: none;
    transition: transform .25s ease, box-shadow .25s ease;
}

.topic-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hi);
}

.topic-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 66px;
    height: 66px;
    border: 1.5px solid var(--accent);
    border-radius: 50%;
}

.topic-icon svg {
    display: block;
    width: 30px;
    height: 30px;
}

.topic-name {
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--text);
}

.topic-text {
    margin: 0;
    color: var(--text-soft);
    font-size: .95rem;
}

/* ============================================================
   9. Таймлайн
   ============================================================ */

.timeline {
    position: relative;
    list-style: none;
    margin: 2.8rem 0 0;
    padding: 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 33px;
    top: 14px;
    bottom: 40px;
    width: 2px;
    background: var(--steel);
    opacity: .35;
}

.tl-item {
    position: relative;
    display: flex;
    gap: 1.6rem;
    padding-bottom: 2.2rem;
    min-width: 0;
}

.tl-num {
    position: relative;
    z-index: 1;
    flex: 0 0 68px;
    width: 68px;
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--accent-2);
    border-radius: 50%;
    background: var(--bg-alt);
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 1.7rem;
    color: var(--accent);
}

.tl-body {
    min-width: 0;
    padding-top: .35rem;
}

.tl-body h3 {
    margin: 0 0 .45rem;
    font-size: 1.24rem;
}

.tl-body p {
    margin: 0;
    color: var(--text-soft);
}

/* ============================================================
   10. Акцентная плашка (цитата)
   ============================================================ */

.band-accent {
    position: relative;
    overflow: hidden;
    padding: 4rem 2.4rem;
    margin: 0;
    border-radius: var(--radius);
    background: linear-gradient(135deg, #0F1B2A 0%, #1F3A5F 58%, #2B4E7A 100%);
    color: #fff;
}

.band-accent::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image: radial-gradient(rgba(255, 255, 255, .12) 1px, transparent 1px);
    background-size: 20px 20px;
}

.band-accent .eyebrow {
    color: var(--accent-2);
}

.quote-box {
    position: relative;
    z-index: 1;
    max-width: 900px;
}

.quote-text {
    font-family: var(--font-head);
    font-style: italic;
    font-weight: 600;
    font-size: clamp(1.35rem, 2.7vw, 2.2rem);
    line-height: 1.36;
    margin: 0 0 1.4rem;
    color: #fff;
}

.quote-author {
    display: block;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: .82rem;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--accent-2);
}

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

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 1.7rem;
    margin-top: 2.4rem;
}

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

.card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: var(--bg-alt);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: transform .25s ease, box-shadow .25s ease;
}

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

.card-thumb {
    display: block;
}

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

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

.card-title {
    font-size: 1.16rem;
    line-height: 1.32;
    margin: 0 0 .5rem;
}

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

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

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

.card-excerpt {
    color: var(--text-soft);
    font-size: .96rem;
    line-height: 1.68;
}

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

.card-more {
    align-self: flex-start;
    margin-top: auto;
    padding: .6rem 1.15rem;
    font-size: .88rem;
}

/* ============================================================
   12. Раскладка страниц
   ============================================================ */

.layout {
    padding-top: 2rem;
}

.layout-single {
    display: block;
}

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

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

.layout-with-sidebar .content-area {
    min-width: 0;
}

.page-head {
    margin-bottom: 1.8rem;
}

.entry-title {
    font-size: clamp(2rem, 4vw, 3.5rem);
    margin: 0 0 .6rem;
}

.entry-meta {
    color: var(--muted);
    font-size: .87rem;
}

.entry-thumb {
    margin: 1.6rem 0;
}

.entry-thumb img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 12px 12px 0 0;
    border: 1px solid var(--line);
}

.entry-content {
    background: var(--bg-alt);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 2.2rem 2.2rem 2.4rem;
}

.entry-content > *:first-child {
    margin-top: 0;
}

.entry-content > *:last-child {
    margin-bottom: 0;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
    margin: 2rem 0 .9rem;
}

.entry-content img {
    display: block;
    height: auto;
    border-radius: 12px 12px 0 0;
}

.entry-content ul {
    list-style: none;
    margin: 0 0 1.3rem;
    padding-left: 0;
}

.entry-content ul li,
.widget ul li {
    position: relative;
    padding-left: 1.75rem;
    margin: 0 0 .55rem;
}

.entry-content ul li::before,
.widget ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: .42em;
    width: 13px;
    height: 15px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 28'%3E%3Cpath fill='%2300B4D8' d='M12 1c6 7 10 12 10 17a10 10 0 1 1-20 0C2 13 6 8 12 1z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
}

.entry-content ol {
    padding-left: 1.3rem;
    margin: 0 0 1.3rem;
}

.entry-content ol li {
    margin: 0 0 .55rem;
}

.entry-content blockquote {
    margin: 1.8rem 0;
    padding: 1.5rem 1.7rem;
    background: var(--sidebar-bg);
    border-left: 4px solid var(--accent);
    border-radius: 0 var(--radius) var(--radius) 0;
    font-style: italic;
    color: var(--text);
}

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

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

.entry-content th,
.entry-content td {
    border: 1px solid var(--line);
    padding: .72rem .9rem;
    text-align: left;
    vertical-align: top;
}

.entry-content th {
    background: var(--sidebar-bg);
    font-family: var(--font-head);
    font-weight: 700;
}

.entry-content code,
.entry-content pre {
    background: var(--sidebar-bg);
    border-radius: 6px;
}

.entry-content pre {
    padding: 1rem 1.2rem;
    overflow-x: auto;
}

.entry-footer {
    margin-top: 1.6rem;
    color: var(--muted);
    font-size: .88rem;
}

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

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

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .45rem;
    padding: 1.4rem 0 0;
    font-size: .85rem;
    color: var(--muted);
}

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

.breadcrumbs .sep {
    color: var(--steel);
}

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

.pagination {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-top: 2.6rem;
}

.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 46px;
    height: 46px;
    padding: 0 .95rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-btn);
    background: var(--bg-alt);
    color: var(--text);
    font-family: var(--font-head);
    font-weight: 600;
    font-size: .93rem;
    text-decoration: none;
    transition: background .22s ease, color .22s ease, border-color .22s ease, box-shadow .22s ease;
}

.pagination a.page-numbers:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #06202B;
    box-shadow: 0 10px 20px rgba(0, 180, 216, .24);
}

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

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

/* ============================================================
   15. Сайдбар и виджеты
   ============================================================ */

.sidebar {
    min-width: 0;
    padding: 1.6rem 1.5rem;
    background: var(--sidebar-bg);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.sidebar .widget {
    margin-bottom: 2rem;
}

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

.widget-title {
    font-size: 1.12rem;
    margin: 0 0 1rem;
    padding-bottom: .6rem;
    border-bottom: 2px solid var(--accent);
}

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

.sidebar .widget,
.sidebar .widget p,
.sidebar .widget li {
    color: var(--text);
}

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

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

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

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

.widget ul li {
    margin-bottom: .75rem;
    line-height: 1.5;
}

/* ============================================================
   16. Подвал
   ============================================================ */

.site-foot {
    background: var(--dark);
    color: #C4D5E6;
    border-top: 4px solid var(--accent);
}

.foot-cols {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.4rem;
    padding: 3.2rem 0 2.2rem;
}

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

.site-foot .widget-title {
    color: #fff;
    border-bottom-color: rgba(0, 180, 216, .55);
}

.site-foot .widget,
.site-foot .widget p,
.site-foot .widget li {
    color: #C4D5E6;
    font-size: .94rem;
}

.site-foot .widget a {
    color: var(--accent-2);
    text-decoration: none;
}

.site-foot .widget a:hover {
    color: #fff;
}

.site-foot .widget .post-date {
    display: block;
    color: #8FA6BE;
    font-size: .8rem;
}

.site-foot .widget ul li::before {
    top: .5em;
}

.foot-bottom {
    border-top: 1px solid rgba(255, 255, 255, .12);
    padding: 1.2rem 0;
    font-size: .85rem;
    color: #8FA6BE;
}

/* ============================================================
   17. Поиск, комментарии, 404
   ============================================================ */

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

.search-form .search-field {
    flex: 1 1 200px;
    min-width: 0;
    padding: .72rem .9rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-btn);
    background: var(--bg-alt);
    color: var(--text);
    font-family: var(--font-body);
    font-size: .95rem;
}

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

.search-form .search-submit {
    padding: .72rem 1.3rem;
    border: 1px solid var(--accent);
    border-radius: var(--radius-btn);
    background: var(--accent);
    color: #06202B;
    font-family: var(--font-head);
    font-weight: 700;
    cursor: pointer;
    transition: background .25s ease, color .25s ease;
}

.search-form .search-submit:hover {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
    color: #fff;
}

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

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

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

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

.comment-item {
    padding: 1.2rem 1.3rem;
    margin-bottom: 1.1rem;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

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

.comment-author {
    font-family: var(--font-head);
    font-weight: 700;
}

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

.comment-actions a,
.comment-list .comment-reply-link {
    color: var(--accent);
    font-size: .88rem;
    text-decoration: none;
}

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

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

.comment-form p {
    margin-bottom: 1rem;
}

.comment-form .submit {
    padding: .8rem 1.6rem;
    border: 1px solid var(--accent);
    border-radius: var(--radius-btn);
    background: var(--accent);
    color: #06202B;
    font-family: var(--font-head);
    font-weight: 700;
    cursor: pointer;
    transition: background .25s ease, color .25s ease;
}

.comment-form .submit:hover {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
    color: #fff;
}

.notfound {
    padding: 2.4rem 2.2rem;
    background: var(--bg-alt);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.notfound .search-form {
    margin: 1.6rem 0;
}

.no-posts {
    padding: 2rem 2.2rem;
    background: var(--bg-alt);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

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

.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 80;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1.2rem;
    padding: 1rem 1.6rem;
    background: rgba(15, 27, 42, .97);
    border-top: 3px solid var(--accent);
    color: #D6E4F0;
    font-size: .9rem;
}

.cookie-banner p {
    margin: 0;
    max-width: 760px;
}

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

.cookie-accept {
    padding: .6rem 1.4rem;
    border: 1px solid var(--accent);
    border-radius: var(--radius-btn);
    background: var(--accent);
    color: #06202B;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: .9rem;
    cursor: pointer;
    transition: background .25s ease, color .25s ease;
}

.cookie-accept:hover {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
    color: #fff;
}

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

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

    .band {
        padding: 3.2rem 0;
    }

    .band-accent {
        padding: 3rem 1.8rem;
    }

    .layout-with-sidebar {
        grid-template-columns: minmax(0, 1fr);
        gap: 2.6rem;
    }

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

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

    .main-nav {
        display: none;
        width: 100%;
        padding-top: .9rem;
    }

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

    .main-nav .nav-list {
        flex-direction: column;
        gap: .9rem;
    }
}

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

    h1 {
        font-size: 1.95rem;
    }

    h2,
    .section-title {
        font-size: 1.6rem;
    }

    .shell,
    .shell--narrow {
        width: 90%;
    }

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

    .band {
        padding: 2.6rem 0;
    }

    .band-accent {
        padding: 2.2rem 1.4rem;
    }

    .entry-content,
    .comments-area,
    .notfound,
    .no-posts {
        padding: 1.5rem 1.3rem;
    }

    .topic-card {
        padding: 1.6rem 1.3rem;
    }

    .tl-item {
        gap: 1.1rem;
    }

    .tl-num {
        flex: 0 0 54px;
        width: 54px;
        height: 54px;
        font-size: 1.3rem;
    }

    .timeline::before {
        left: 26px;
    }

    .cookie-banner {
        padding: .9rem 1.1rem;
        gap: .8rem;
    }

    .foot-cols {
        padding: 2.4rem 0 1.6rem;
        gap: 1.8rem;
    }
}
