/*
Theme Name: dds_supanapa.ru
Author: Анна Ветрова
Description: Информационная тема для сайта о сапсёрфинге. Стеклянная океанская эстетика с японской асимметрией.
Version: 1.1
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: supwave
*/

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

:root {
    --sea-bg: #F0F7FA;
    --sea-bg-alt: #E3EEF5;
    --sea-deep: #0B1A2E;
    --sea-ink: #1A2F3B;
    --sea-accent: #00B4D8;
    --sea-accent-soft: #48CAE4;
    --sea-accent-deep: #0077B6;
    --sea-night: #03045E;
    --sea-muted: #6F8A9B;
    --sea-glass: rgba(255, 255, 255, 0.5);
    --sea-glass-strong: rgba(255, 255, 255, 0.72);
    --sea-edge: rgba(255, 255, 255, 0.4);
    --sea-shadow: 0 18px 40px -18px rgba(11, 60, 95, 0.35);
    --sea-shadow-hi: 0 26px 54px -18px rgba(11, 60, 95, 0.45);
    --sea-sans: "Manrope", "Inter", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    --sea-serif: "Lora", "Merriweather", Georgia, "Times New Roman", serif;
}

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

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

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

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    background-color: var(--sea-bg);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='80' viewBox='0 0 240 80'%3E%3Cpath d='M0 40c20-26 40-26 60 0s40 26 60 0 40-26 60 0 40 26 60 0' fill='none' stroke='%230B1A2E' stroke-width='2' opacity='0.03'/%3E%3Cpath d='M0 70c20-26 40-26 60 0s40 26 60 0 40-26 60 0 40 26 60 0' fill='none' stroke='%2300B4D8' stroke-width='2' opacity='0.03'/%3E%3C/svg%3E");
    background-repeat: repeat;
    color: var(--sea-ink);
    font-family: var(--sea-serif);
    font-size: 17px;
    line-height: 1.75;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--sea-sans);
    font-weight: 600;
    letter-spacing: 0.04em;
    line-height: 1.2;
    color: var(--sea-ink);
    margin: 0 0 0.7em;
}

h1 { font-size: 3.8rem; }
h2 { font-size: 2.1rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.22rem; }
h5, h6 { font-size: 1.05rem; }

p {
    margin: 0 0 1.15em;
}

a {
    color: var(--sea-accent);
    text-decoration: none;
    transition: color 0.25s ease;
}

a:hover {
    color: var(--sea-accent-deep);
    text-decoration: underline;
    text-underline-offset: 6px;
    text-decoration-thickness: 1px;
}

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

figure {
    margin: 1.6rem 0;
}

blockquote {
    margin: 1.8rem 0;
    padding: 1.4rem 1.6rem;
    background: var(--sea-glass);
    border: 1px solid var(--sea-edge);
    border-left: 3px solid var(--sea-accent);
    border-radius: 12px;
    font-style: italic;
}

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

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

pre {
    padding: 1.1rem 1.3rem;
    background: #0B1A2E;
    color: #DCEEF6;
    border-radius: 12px;
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.6rem 0;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(11, 26, 46, 0.18);
}

th, td {
    border: 1px solid rgba(11, 26, 46, 0.18);
    padding: 0.7rem 0.9rem;
    text-align: left;
}

th {
    background: var(--sea-bg-alt);
    font-family: var(--sea-sans);
    letter-spacing: 0.03em;
}

hr {
    border: 0;
    height: 1px;
    background: rgba(11, 26, 46, 0.12);
    margin: 2.4rem 0;
}

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

/* ===========================================================================
   4. Контейнеры и раскладка
   ======================================================================== */

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

.shell-wide {
    width: min(85%, 1280px);
    margin-inline: auto;
}

.page-body {
    padding: 2.6rem 0 4rem;
}

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

.layout-single {
    display: block;
}

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

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

/* ===========================================================================
   5. Верхняя полоса и шапка
   ======================================================================== */

.topline {
    height: 4px;
    background: linear-gradient(90deg, var(--sea-accent) 0%, var(--sea-accent-deep) 55%, var(--sea-night) 100%);
}

.masthead {
    position: static;
    background: rgba(255, 255, 255, 0.42);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--sea-edge);
}

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

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

.brand:hover { text-decoration: none; }

.brand-mark {
    flex: 0 0 auto;
    display: block;
    width: 52px;
    height: 52px;
}

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

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

.brand-name {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    max-width: 34ch;
    font-family: var(--sea-sans);
    font-size: 1.02rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--sea-ink);
    line-height: 1.35;
}

.brand-desc {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-top: 0.25rem;
    max-width: 46ch;
    font-size: 0.8rem;
    line-height: 1.45;
    color: var(--sea-muted);
}

.nav-toggle {
    display: none;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 0.95rem;
    font-family: var(--sea-sans);
    font-size: 0.9rem;
    letter-spacing: 0.06em;
    color: var(--sea-ink);
    background: var(--sea-glass);
    border: 1px solid var(--sea-edge);
    border-radius: 6px;
    cursor: pointer;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 1.7rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-list li { position: relative; }

.nav-list a {
    font-family: var(--sea-sans);
    font-size: 0.92rem;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--sea-ink);
    text-decoration: none;
}

.nav-list a::before {
    content: "";
    position: absolute;
    left: 0;
    right: 100%;
    top: -0.55rem;
    height: 2px;
    background: var(--sea-accent);
    transition: right 0.3s ease;
}

.nav-list a:hover {
    color: var(--sea-accent-deep);
    text-decoration: none;
}

.nav-list a:hover::before {
    right: 0;
}

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

/* ===========================================================================
   6. Кнопки
   ======================================================================== */

.btn,
.btn-glass {
    display: inline-block;
    padding: 0.78rem 1.6rem;
    font-family: var(--sea-sans);
    font-size: 0.92rem;
    font-weight: 600;
    letter-spacing: 0.07em;
    border-radius: 6px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
    text-decoration: none;
}

.btn {
    background: var(--sea-accent);
    color: #FFFFFF;
    box-shadow: 0 12px 26px -14px rgba(0, 119, 182, 0.85);
}

.btn:hover {
    background: var(--sea-accent-soft);
    color: #FFFFFF;
    transform: translateY(-2px);
    text-decoration: none;
}

.btn-glass {
    background: rgba(255, 255, 255, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #FFFFFF;
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.4);
    color: #FFFFFF;
    transform: translateY(-2px);
    text-decoration: none;
}

.btn-glass.on-light {
    color: var(--sea-ink);
    border-color: rgba(0, 180, 216, 0.55);
    background: rgba(255, 255, 255, 0.55);
}

.btn-glass.on-light:hover {
    color: var(--sea-ink);
    background: rgba(255, 255, 255, 0.85);
}

/* ===========================================================================
   7. Заголовки секций
   ======================================================================== */

.stitle {
    position: relative;
    margin: 0 0 1.9rem;
    padding-bottom: 0.85rem;
    text-align: left;
}

.stitle::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 30%;
    max-width: 190px;
    height: 2px;
    background: var(--sea-accent);
}

.stitle.on-dark { color: #F2FAFD; }
.stitle.on-dark::after { background: var(--sea-accent-soft); }

.slead {
    max-width: 62ch;
    margin: -0.9rem 0 2.2rem;
    color: var(--sea-muted);
}

/* ===========================================================================
   8. Главная: секции
   ======================================================================== */

.fs {
    padding: 4.2rem 0;
}

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

.wave-split {
    display: block;
    width: 100%;
    height: 60px;
    color: var(--sea-accent);
}

/* Блок 1 — hero */

.fs-hero {
    position: relative;
    overflow: hidden;
    padding: 0;
    background: linear-gradient(135deg, #DCEFF7 0%, #6EC1DC 40%, #0B2A4A 100%);
}

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

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

.hero-blob {
    position: absolute;
    z-index: 1;
    top: -14%;
    left: -8%;
    width: 640px;
    height: 640px;
    border-radius: 50%;
    background: radial-gradient(circle at 40% 40%, rgba(72, 202, 228, 0.55), rgba(3, 4, 94, 0) 68%);
    filter: blur(14px);
    pointer-events: none;
}

.hero-inner {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: flex-end;
    padding: 6.5rem 0 6rem;
}

.hero-plate {
    width: 62%;
    min-width: 0;
}

.hero-kicker {
    display: inline-block;
    margin-bottom: 1.1rem;
    padding: 0.35rem 0.85rem;
    font-family: var(--sea-sans);
    font-size: 0.76rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #EAF8FD;
    background: rgba(11, 26, 46, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 6px;
}

.hero-title {
    margin: 0 0 1.1rem;
    color: #FFFFFF;
    text-shadow: 0 10px 30px rgba(3, 4, 94, 0.35);
}

.hero-text {
    max-width: 56ch;
    margin-bottom: 1.9rem;
    color: #EAF6FB;
    font-size: 1.08rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
}

/* Блок 2 — чек-лист */

.fs-check .check-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 3rem;
    align-items: center;
}

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

.check-list li {
    position: relative;
    padding: 0 0 1.5rem 3.4rem;
}

.check-list li:last-child { padding-bottom: 0; }

.check-mark {
    position: absolute;
    left: 0;
    top: 0.15rem;
    width: 34px;
    height: 34px;
    display: block;
    color: var(--sea-accent);
}

.check-title {
    display: block;
    margin-bottom: 0.3rem;
    font-family: var(--sea-sans);
    font-size: 1.12rem;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.check-note {
    margin: 0;
    color: var(--sea-muted);
    font-size: 0.98rem;
}

.check-art {
    min-width: 0;
    padding: 1.2rem;
    background: var(--sea-glass);
    border: 1px solid var(--sea-edge);
    border-radius: 16px;
    box-shadow: var(--sea-shadow);
}

.check-art img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 10px;
}

/* Лента последних записей */

.fs-latest .latest-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.fs-latest .latest-head .stitle { margin-bottom: 1.4rem; }

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

/* Блок 3 — статистика */

.fs-stats {
    position: relative;
    padding: 4.4rem 2.2rem;
    background: linear-gradient(120deg, #0B1A2E 0%, #10365A 55%, #0077B6 100%);
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='80' viewBox='0 0 240 80'%3E%3Cpath d='M0 50c20-26 40-26 60 0s40 26 60 0 40-26 60 0 40 26 60 0' fill='none' stroke='%2348CAE4' stroke-width='2' opacity='0.16'/%3E%3C/svg%3E"),
        linear-gradient(120deg, #0B1A2E 0%, #10365A 55%, #0077B6 100%);
    border-radius: 20px;
    color: #EAF6FB;
    overflow: hidden;
}

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

.stat-cell {
    min-width: 0;
    padding: 0 1.4rem;
    border-left: 1px solid rgba(234, 246, 251, 0.22);
}

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

.stat-num {
    display: block;
    font-family: var(--sea-sans);
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    line-height: 1.05;
    background: linear-gradient(90deg, var(--sea-accent) 0%, var(--sea-accent-deep) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.stat-label {
    display: block;
    margin-top: 0.55rem;
    font-family: var(--sea-serif);
    font-size: 0.95rem;
    color: rgba(234, 246, 251, 0.82);
}

/* Блок 4 — сетка стеклянных карточек */

.gear-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.8rem;
    align-items: start;
}

.gear-card {
    position: relative;
    min-width: 0;
    padding: 2rem 1.8rem;
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid var(--sea-edge);
    border-radius: 16px;
    box-shadow: var(--sea-shadow);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.gear-card:nth-child(2) { margin-top: 2.4rem; }
.gear-card:nth-child(3) { margin-top: 1.1rem; }

.gear-card:hover {
    transform: translateY(-4px) scale(1.01);
    background: rgba(255, 255, 255, 0.75);
    box-shadow: var(--sea-shadow-hi), 14px 18px 0 -6px rgba(0, 180, 216, 0.18);
}

.gear-icon {
    display: block;
    width: 46px;
    height: 46px;
    margin-bottom: 1.1rem;
    color: var(--sea-accent);
}

.gear-card h3 {
    margin-bottom: 0.6rem;
    font-size: 1.24rem;
}

.gear-card p {
    margin: 0;
    color: var(--sea-muted);
    font-size: 0.98rem;
}

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

.card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid var(--sea-edge);
    border-radius: 16px;
    box-shadow: var(--sea-shadow);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.card:hover {
    transform: scale(1.01);
    background: rgba(255, 255, 255, 0.78);
    box-shadow: var(--sea-shadow-hi);
}

.card-thumb {
    display: block;
    overflow: hidden;
}

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

.card-thumb-empty {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, #CDE7F1 0%, #8FD3E6 60%, #0077B6 100%);
}

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

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

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

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

.card-meta {
    margin-bottom: 0.75rem;
    font-family: var(--sea-sans);
    font-size: 0.78rem;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--sea-muted);
}

.card-meta span + span::before {
    content: "·";
    margin: 0 0.5rem;
}

.card-excerpt {
    margin-bottom: 1.2rem;
    font-size: 0.99rem;
}

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

.card-more {
    margin-top: auto;
    align-self: flex-start;
    font-family: var(--sea-sans);
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--sea-accent-deep);
}

.card-more:hover {
    text-decoration: none;
    border-bottom: 1px solid var(--sea-accent);
}

.card-list {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.8rem;
}

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

/* ===========================================================================
   10. Хлебные крошки, пагинация
   ======================================================================== */

.trail {
    padding: 1.1rem 0 0;
    font-family: var(--sea-sans);
    font-size: 0.83rem;
    letter-spacing: 0.05em;
    color: var(--sea-muted);
}

.trail a { color: var(--sea-accent-deep); }

.trail-sep {
    margin: 0 0.35rem;
    color: var(--sea-accent-soft);
}

.pager {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 2.8rem;
}

.pager .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    padding: 0.55rem 0.85rem;
    font-family: var(--sea-sans);
    font-size: 0.9rem;
    color: var(--sea-ink);
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid var(--sea-edge);
    border-radius: 6px;
    text-decoration: none;
    transition: transform 0.2s ease, background 0.2s ease;
}

.pager a.page-numbers:hover {
    background: rgba(255, 255, 255, 0.9);
    color: var(--sea-accent-deep);
    transform: translateY(-2px);
    text-decoration: none;
}

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

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

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

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

.entry-title {
    font-size: 2.6rem;
    margin-bottom: 0.6rem;
}

.entry-meta {
    font-family: var(--sea-sans);
    font-size: 0.8rem;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--sea-muted);
}

.entry-meta span + span::before {
    content: "·";
    margin: 0 0.5rem;
}

.entry-cover {
    margin-bottom: 1.9rem;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--sea-edge);
    box-shadow: var(--sea-shadow);
}

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

.entry-content ul,
.entry-content ol {
    padding-left: 1.4rem;
}

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

.entry-content ul li {
    position: relative;
    padding-left: 1.75rem;
    margin-bottom: 0.5rem;
}

.entry-content ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.62em;
    width: 11px;
    height: 11px;
    border: 2px solid var(--sea-accent-soft);
    border-radius: 50%;
    transition: transform 0.3s ease, border-style 0.3s ease;
}

.entry-content ul li:hover::before {
    transform: scale(1.35);
    border-style: dashed;
}

.entry-content ol li { margin-bottom: 0.5rem; }

.entry-tags {
    margin-top: 2.2rem;
    font-family: var(--sea-sans);
    font-size: 0.85rem;
    letter-spacing: 0.05em;
}

.entry-tags a {
    display: inline-block;
    margin: 0 0.35rem 0.45rem 0;
    padding: 0.3rem 0.7rem;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid var(--sea-edge);
    border-radius: 6px;
    color: var(--sea-accent-deep);
}

.entry-tags a:hover { text-decoration: none; background: #FFFFFF; }

.page-panel {
    padding: 2.2rem 2.2rem 2.4rem;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid var(--sea-edge);
    border-radius: 16px;
    box-shadow: var(--sea-shadow);
}

.post-nav {
    display: flex;
    justify-content: space-between;
    gap: 1.4rem;
    flex-wrap: wrap;
    margin-top: 2.4rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(11, 26, 46, 0.12);
    font-family: var(--sea-sans);
    font-size: 0.88rem;
}

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

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

.sidebar {
    min-width: 0;
}

.sidebar .widget {
    margin-bottom: 1.7rem;
    padding: 1.5rem 1.5rem 1.7rem;
    background: var(--sea-glass);
    border: 1px solid rgba(255, 255, 255, 0.65);
    border-radius: 16px;
    box-shadow: var(--sea-shadow);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--sea-ink);
}

.sidebar .widget-title {
    margin-bottom: 1rem;
    padding-bottom: 0.6rem;
    font-size: 1.05rem;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--sea-ink);
    border-bottom: 1px solid rgba(0, 180, 216, 0.35);
}

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

.sidebar .widget li {
    position: relative;
    padding: 0.45rem 0 0.45rem 1.4rem;
    border-bottom: 1px dashed rgba(11, 26, 46, 0.12);
    font-size: 0.97rem;
    color: var(--sea-ink);
}

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

.sidebar .widget li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 1.05em;
    width: 9px;
    height: 9px;
    border: 2px solid var(--sea-accent-soft);
    border-radius: 50%;
}

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

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

.sidebar .widget .post-date {
    display: block;
    font-family: var(--sea-sans);
    font-size: 0.76rem;
    letter-spacing: 0.06em;
    color: var(--sea-muted);
}

.sidebar .widget p {
    color: var(--sea-ink);
    font-size: 0.97rem;
}

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

.colophon {
    margin-top: 4rem;
    background: var(--sea-deep);
    color: #C9DEEA;
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='80' viewBox='0 0 240 80'%3E%3Cpath d='M0 60c20-26 40-26 60 0s40 26 60 0 40-26 60 0 40 26 60 0' fill='none' stroke='%2348CAE4' stroke-width='2' opacity='0.09'/%3E%3C/svg%3E");
}

.colophon-cols {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2.6rem;
    padding: 3.4rem 0 2.6rem;
}

.colophon .widget {
    min-width: 0;
    color: #C9DEEA;
}

.colophon .widget-title {
    margin-bottom: 1rem;
    padding-bottom: 0.55rem;
    font-size: 1rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #FFFFFF;
    border-bottom: 1px solid rgba(72, 202, 228, 0.4);
}

.colophon .widget p,
.colophon .widget li,
.colophon .widget div {
    color: #C9DEEA;
    font-size: 0.95rem;
}

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

.colophon .widget li {
    position: relative;
    padding: 0.4rem 0 0.4rem 1.4rem;
}

.colophon .widget li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 1em;
    width: 9px;
    height: 9px;
    border: 2px solid var(--sea-accent-soft);
    border-radius: 50%;
    transition: transform 0.3s ease, border-style 0.3s ease;
}

.colophon .widget li:hover::before {
    transform: scale(1.3);
    border-style: dashed;
}

.colophon .widget a {
    color: #DCEEF6;
}

.colophon .widget a:hover {
    color: var(--sea-accent-soft);
    text-decoration: none;
}

.colophon .widget .post-date {
    display: block;
    font-family: var(--sea-sans);
    font-size: 0.76rem;
    color: #8FAFC2;
}

.colophon-contacts {
    padding-bottom: 1.8rem;
    font-size: 0.93rem;
    color: #9FBDCE;
}

.colophon-contacts a { color: #DCEEF6; }

.colophon-bottom {
    padding: 1.2rem 0 1.8rem;
    border-top: 1px solid rgba(201, 222, 234, 0.16);
    font-family: var(--sea-sans);
    font-size: 0.82rem;
    letter-spacing: 0.05em;
    color: #9FBDCE;
}

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

.searchform {
    display: flex;
    gap: 0.6rem;
}

.searchform input[type="search"] {
    flex: 1;
    min-width: 0;
    padding: 0.7rem 0.9rem;
    font-family: var(--sea-serif);
    font-size: 0.97rem;
    color: var(--sea-ink);
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid var(--sea-edge);
    border-radius: 6px;
}

.searchform input[type="search"]:focus {
    outline: 2px solid var(--sea-accent-soft);
    outline-offset: 1px;
}

.searchform button {
    padding: 0.7rem 1.2rem;
    font-family: var(--sea-sans);
    font-size: 0.86rem;
    letter-spacing: 0.06em;
    color: #FFFFFF;
    background: var(--sea-accent);
    border: 0;
    border-radius: 6px;
    cursor: pointer;
    transition: transform 0.25s ease, background 0.25s ease;
}

.searchform button:hover {
    background: var(--sea-accent-soft);
    transform: translateY(-2px);
}

.talk {
    margin-top: 3rem;
    padding: 2rem 2rem 2.2rem;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid var(--sea-edge);
    border-radius: 16px;
}

.talk-title {
    font-size: 1.4rem;
    margin-bottom: 1.4rem;
}

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

.talk-list .children {
    margin: 1rem 0 0 1.6rem;
    padding: 0;
    list-style: none;
}

.talk-item { margin-bottom: 1.2rem; }

.talk-body {
    padding: 1.1rem 1.3rem;
    background: rgba(255, 255, 255, 0.62);
    border: 1px solid var(--sea-edge);
    border-radius: 12px;
}

.talk-head {
    display: flex;
    align-items: baseline;
    gap: 0.8rem;
    margin-bottom: 0.5rem;
    font-family: var(--sea-sans);
    font-size: 0.85rem;
}

.talk-author { font-weight: 700; letter-spacing: 0.05em; }
.talk-date { color: var(--sea-muted); font-size: 0.78rem; }
.talk-hold { color: var(--sea-muted); font-style: italic; }
.talk-text p:last-child { margin-bottom: 0; }

.talk-actions {
    margin-top: 0.6rem;
    font-family: var(--sea-sans);
    font-size: 0.82rem;
}

.comment-form label {
    display: block;
    margin-bottom: 0.35rem;
    font-family: var(--sea-sans);
    font-size: 0.85rem;
    letter-spacing: 0.05em;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 0.7rem 0.9rem;
    font-family: var(--sea-serif);
    font-size: 0.97rem;
    color: var(--sea-ink);
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid var(--sea-edge);
    border-radius: 6px;
}

.comment-form .form-submit input {
    padding: 0.75rem 1.5rem;
    font-family: var(--sea-sans);
    font-size: 0.9rem;
    letter-spacing: 0.06em;
    color: #FFFFFF;
    background: var(--sea-accent);
    border: 0;
    border-radius: 6px;
    cursor: pointer;
}

.comment-form .form-submit input:hover {
    background: var(--sea-accent-soft);
}

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

.cookie-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.2rem;
    flex-wrap: wrap;
    padding: 1rem 1.6rem;
    background: rgba(11, 26, 46, 0.94);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid rgba(72, 202, 228, 0.4);
    color: #DCEEF6;
    font-size: 0.9rem;
}

.cookie-bar p { margin: 0; min-width: 0; }
.cookie-bar a { color: var(--sea-accent-soft); }

/* ===========================================================================
   16. 404 и служебные экраны
   ======================================================================== */

.void {
    padding: 3rem 2.2rem;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid var(--sea-edge);
    border-radius: 16px;
    box-shadow: var(--sea-shadow);
    text-align: left;
}

.void-code {
    font-family: var(--sea-sans);
    font-size: 4.6rem;
    font-weight: 700;
    line-height: 1;
    background: linear-gradient(90deg, var(--sea-accent) 0%, var(--sea-accent-deep) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.void-search {
    max-width: 420px;
    margin: 1.6rem 0;
}

.empty-note {
    padding: 2rem 2.2rem;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid var(--sea-edge);
    border-radius: 16px;
}

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

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

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

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

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

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

    .nav-list {
        display: none;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.9rem;
        width: 100%;
        margin-top: 1rem;
        padding: 1rem 0 0;
        border-top: 1px solid var(--sea-edge);
    }

    .nav-list.is-open { display: flex; }

    .nav-list a::before { display: none; }

    .hero-inner { padding: 4.4rem 0 4rem; }
    .hero-plate { width: 100%; }

    .fs-check .check-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 2.2rem;
    }

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

    .gear-card:nth-child(2),
    .gear-card:nth-child(3) { margin-top: 0; }

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

    .stat-cell:nth-child(odd) { border-left: 0; padding-left: 0; }

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

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

    h1 { font-size: 2.05rem; }
    h2 { font-size: 1.55rem; }
    h3 { font-size: 1.25rem; }

    .entry-title { font-size: 1.85rem; }

    .fs { padding: 3rem 0; }

    .fs-stats { padding: 2.6rem 1.4rem; border-radius: 14px; }
    .stats-row { grid-template-columns: minmax(0, 1fr); }
    .stat-cell { border-left: 0; padding-left: 0; }
    .stat-num { font-size: 2.4rem; }

    .hero-inner { padding: 3.4rem 0 3.2rem; }
    .hero-blob { width: 380px; height: 380px; }

    .card-grid,
    .gear-grid,
    .card-list.cols-2 { grid-template-columns: minmax(0, 1fr); }

    .gear-card { padding: 1.5rem 1.3rem; }

    .page-panel { padding: 1.6rem 1.3rem 1.8rem; }
    .talk { padding: 1.5rem 1.3rem 1.7rem; }
    .void { padding: 2.2rem 1.4rem; }
    .empty-note { padding: 1.6rem 1.3rem; }

    .sidebar .widget { padding: 1.3rem 1.2rem 1.4rem; }

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

    .cookie-bar { padding: 0.95rem 1.1rem; font-size: 0.86rem; }

    .check-list li { padding-left: 2.9rem; }
    .check-mark { width: 28px; height: 28px; }
}
