/*
Theme Name: dds_videoconvertermac.com
Author: Муравьева Алиса
Description: Информационная тема для обзора программ для macOS. Минималистичный технологичный стиль с тёплым акцентом.
Version: 1.1
Text Domain: dds_videoconvertermac
*/

/* === БАЗА === */
*, *::before, *::after { box-sizing: border-box; }

:root {
    --hue-deep: #1A2A3A;
    --hue-paper: #FFFFFF;
    --hue-accent: #2DD4BF;
    --hue-card: #F5F7FA;
    --hue-text: #2C3E50;
    --hue-muted: #A0C4E2;
    --hue-line: #E2E8F0;
    --hue-soft: #F8FAFC;
    --shadow-low: 0 1px 2px rgba(26, 42, 58, 0.06), 0 2px 8px rgba(26, 42, 58, 0.04);
    --shadow-mid: 0 4px 12px rgba(26, 42, 58, 0.08), 0 8px 24px rgba(26, 42, 58, 0.06);
    --radius-pill: 30px;
    --radius-block: 14px;
}

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: -apple-system, "SF Pro Text", "SF Pro", BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.65;
    color: var(--hue-text);
    background: var(--hue-paper);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: "Inter", -apple-system, "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
    font-weight: 700;
    color: var(--hue-deep);
    letter-spacing: 0.005em;
    line-height: 1.25;
    margin: 1.4em 0 0.6em;
}

h1 { font-size: 2.1rem; letter-spacing: -0.01em; }
h2 { font-size: 1.65rem; }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.1rem; }

p { margin: 0 0 1em; }

a {
    color: var(--hue-deep);
    text-decoration: none;
    border-bottom: 1px solid var(--hue-accent);
    transition: color .2s ease, border-color .2s ease, background-color .2s ease;
}
a:hover { color: var(--hue-accent); }

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

table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5em 0;
    border: 1px solid var(--hue-line);
    background: var(--hue-paper);
}
th, td {
    padding: 12px 16px;
    border: 1px solid var(--hue-line);
    text-align: left;
}
th {
    background: var(--hue-card);
    font-weight: 700;
    color: var(--hue-deep);
}

blockquote {
    margin: 1.5em 0;
    padding: 1em 1.5em;
    border-left: 4px solid var(--hue-accent);
    background: var(--hue-soft);
    color: var(--hue-text);
    font-style: italic;
}

code, pre {
    font-family: "SF Mono", Menlo, Monaco, Consolas, monospace;
    background: var(--hue-card);
    border-radius: 6px;
}
code { padding: 2px 6px; font-size: 0.92em; }
pre {
    padding: 1em;
    overflow-x: auto;
    border: 1px solid var(--hue-line);
}

/* === КНОПКИ === */
.tap-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 26px;
    border-radius: var(--radius-pill);
    border: 1.5px solid var(--hue-accent);
    background: rgba(45, 212, 191, 0.08);
    color: var(--hue-deep);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all .25s ease;
    text-decoration: none;
}
.tap-pill:hover {
    background: var(--hue-accent);
    color: var(--hue-deep);
    border-color: var(--hue-accent);
    transform: translateY(-1px);
}
.tap-pill.is-flat {
    border: none;
    background: transparent;
    border-bottom: 1px solid transparent;
    border-radius: 0;
    padding: 6px 4px;
}
.tap-pill.is-flat:hover {
    background: transparent;
    color: var(--hue-accent);
    border-bottom-color: var(--hue-accent);
}

/* === ОБЁРТКИ === */
.shell {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

/* === ШАПКА === */
.site-top {
    background: var(--hue-deep);
    color: var(--hue-paper);
    border-bottom: 1px solid rgba(45, 212, 191, 0.18);
}
.site-top a { color: var(--hue-paper); border-bottom-color: rgba(45, 212, 191, 0.4); }
.site-top a:hover { color: var(--hue-accent); border-bottom-color: var(--hue-accent); }

.top-row {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 32px;
    align-items: center;
    padding: 22px 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    border: none;
    color: var(--hue-paper);
}
.brand:hover { color: var(--hue-accent); }
.brand-logo {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    object-fit: contain;
    background: rgba(45, 212, 191, 0.08);
    padding: 4px;
}
.brand-mark {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
}
.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}
.brand-name {
    font-family: "Inter", sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--hue-paper);
    letter-spacing: 0.01em;
}
.brand-tag {
    font-size: 0.78rem;
    color: var(--hue-muted);
    margin-top: 2px;
}

.top-nav {
    display: flex;
    justify-content: center;
}
.top-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}
.top-nav a {
    display: block;
    padding: 9px 18px;
    border-radius: var(--radius-pill);
    border: none;
    font-size: 0.94rem;
    font-weight: 500;
    color: var(--hue-paper);
    transition: background-color .2s ease, color .2s ease;
}
.top-nav a:hover,
.top-nav .current-menu-item > a {
    background: rgba(45, 212, 191, 0.15);
    color: var(--hue-accent);
}

.top-search {
    display: flex;
    align-items: center;
}
.search-snippet {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(45, 212, 191, 0.25);
    border-radius: var(--radius-pill);
    padding: 4px 4px 4px 16px;
    transition: border-color .2s ease;
}
.search-snippet:focus-within { border-color: var(--hue-accent); }
.search-snippet input[type="search"] {
    border: none;
    background: transparent;
    color: var(--hue-paper);
    font-size: 0.9rem;
    width: 160px;
    outline: none;
    padding: 6px 0;
}
.search-snippet input::placeholder { color: var(--hue-muted); }
.search-snippet button {
    border: none;
    background: var(--hue-accent);
    color: var(--hue-deep);
    width: 34px;
    height: 34px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform .2s ease;
}
.search-snippet button:hover { transform: scale(1.06); }

/* Бургер */
.burger-toggle {
    display: none;
    background: transparent;
    border: 1px solid rgba(45, 212, 191, 0.3);
    color: var(--hue-paper);
    border-radius: 10px;
    padding: 8px 10px;
    cursor: pointer;
}

/* === ХЛЕБНЫЕ КРОШКИ === */
.path-trail {
    background: var(--hue-soft);
    border-bottom: 1px solid var(--hue-line);
    padding: 12px 0;
    font-size: 0.88rem;
}
.path-trail ol {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}
.path-trail li {
    display: flex;
    align-items: center;
    color: var(--hue-text);
}
.path-trail li + li::before {
    content: "›";
    margin: 0 8px;
    color: var(--hue-muted);
    font-weight: 600;
}
.path-trail a {
    color: var(--hue-deep);
    border: none;
    border-bottom: 1px dashed transparent;
}
.path-trail a:hover {
    color: var(--hue-accent);
    border-bottom-color: var(--hue-accent);
}

/* === ОСНОВНОЙ КОНТЕЙНЕР === */
.main-area {
    padding: 36px 0 60px;
}
.layout-grid {
    display: grid;
    gap: 36px;
    grid-template-columns: minmax(0, 1fr);
}
.layout-grid.has-aside {
    grid-template-columns: minmax(0, 1fr) 280px;
}
.content-pane { min-width: 0; }
.aside-pane { min-width: 0; }

.full-page .content-pane { max-width: 100%; }

/* === КАРТОЧКИ ЗАПИСЕЙ === */
.card-stack {
    display: grid;
    gap: 26px;
}

.card {
    display: flex;
    flex-direction: column;
    background: var(--hue-paper);
    border: 1px solid var(--hue-line);
    border-radius: var(--radius-block);
    overflow: hidden;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-mid);
    border-color: rgba(45, 212, 191, 0.4);
}

.card.is-row { flex-direction: row; }

.card-thumb-wrap {
    flex: 0 0 280px;
    position: relative;
    overflow: hidden;
    background: var(--hue-card);
}
.card-thumb-wrap a {
    display: block;
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border: none;
}
.card-thumb-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .4s ease;
}
.card:hover .card-thumb-wrap img { transform: scale(1.04); }

.card-body {
    flex: 1;
    padding: 22px 26px 24px;
    display: flex;
    flex-direction: column;
}
.card-cats {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--hue-accent);
    margin-bottom: 8px;
    font-weight: 600;
}
.card-cats a {
    color: var(--hue-accent);
    border: none;
    margin-right: 8px;
}
.card-cats a:hover { text-decoration: underline; }

.card-title {
    margin: 0 0 10px;
    font-size: 1.25rem;
    line-height: 1.3;
}
.card-title a {
    color: var(--hue-deep);
    border: none;
}
.card-title a:hover { color: var(--hue-accent); }

.card-meta {
    font-size: 0.82rem;
    color: var(--hue-text);
    opacity: 0.7;
    margin-bottom: 12px;
}
.card-excerpt {
    color: var(--hue-text);
    font-size: 0.95rem;
    flex: 1;
}
.card-excerpt p {
    margin: 0 0 0.5em;
    background: none;
}
.card-foot {
    margin-top: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

/* Микро-индикатор совместимости */
.compat-chevrons {
    display: inline-flex;
    gap: 3px;
    align-items: center;
    font-size: 0.72rem;
    color: var(--hue-text);
    opacity: 0.7;
}
.compat-chevrons .chevron {
    width: 6px;
    height: 10px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(-45deg);
    margin-right: -2px;
}
.compat-chevrons.is-fresh { color: #16a34a; }
.compat-chevrons.is-mid { color: #d97706; }
.compat-chevrons.is-old { color: #94a3b8; }

/* === ОДИНОЧНАЯ ЗАПИСЬ === */
.entry {
    background: var(--hue-paper);
}
.entry-header {
    margin-bottom: 28px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--hue-line);
}
.entry-title {
    margin: 0 0 14px;
    font-size: 2.2rem;
    line-height: 1.2;
}
.entry-meta {
    font-size: 0.9rem;
    color: var(--hue-text);
    opacity: 0.7;
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}
.entry-meta a {
    color: var(--hue-text);
    border-bottom: 1px dashed var(--hue-muted);
}
.entry-meta a:hover { color: var(--hue-accent); border-bottom-color: var(--hue-accent); }

.entry-thumb {
    margin-bottom: 28px;
    border-radius: var(--radius-block);
    overflow: hidden;
}
.entry-thumb img { display: block; width: 100%; height: auto; }

.entry-body {
    font-size: 1rem;
    line-height: 1.75;
}
.entry-body img { border-radius: 10px; margin: 1em 0; }

.entry-foot {
    margin-top: 36px;
    padding-top: 24px;
    border-top: 1px solid var(--hue-line);
}
.entry-foot .tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    font-size: 0.88rem;
}
.entry-foot .tag-list a {
    padding: 5px 14px;
    border-radius: var(--radius-pill);
    border: 1px solid var(--hue-line);
    color: var(--hue-text);
    background: var(--hue-soft);
}
.entry-foot .tag-list a:hover {
    background: var(--hue-accent);
    color: var(--hue-deep);
    border-color: var(--hue-accent);
}

/* === САЙДБАР === */
.aside-pane .widget {
    background: var(--hue-soft);
    border: 1px solid var(--hue-line);
    border-radius: var(--radius-block);
    padding: 22px;
    margin-bottom: 24px;
}
.aside-pane .widget-title {
    margin: 0 0 14px;
    font-size: 1.05rem;
    color: var(--hue-deep);
    padding-bottom: 10px;
    border-bottom: 2px solid var(--hue-accent);
    display: inline-block;
}
.aside-pane ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.aside-pane li {
    padding: 6px 0;
    border-bottom: 1px dashed var(--hue-line);
}
.aside-pane li:last-child { border-bottom: none; }
.aside-pane a {
    color: var(--hue-deep);
    border: none;
    font-size: 0.94rem;
}
.aside-pane a:hover { color: var(--hue-accent); }

/* === ГЛАВНАЯ === */
.front-shell { padding: 0; }

.hero-band {
    background: linear-gradient(135deg, var(--hue-deep) 0%, #0f1d2c 100%);
    color: var(--hue-paper);
    padding: 80px 0 90px;
    position: relative;
    overflow: hidden;
}
.hero-band::before {
    content: "";
    position: absolute;
    top: -100px; right: -100px;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(45, 212, 191, 0.18) 0%, transparent 70%);
    pointer-events: none;
}
.hero-band::after {
    content: "";
    position: absolute;
    bottom: -80px; left: -80px;
    width: 300px; height: 300px;
    background: radial-gradient(circle, rgba(160, 196, 226, 0.12) 0%, transparent 70%);
    pointer-events: none;
}
.hero-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 48px;
    align-items: center;
    position: relative;
    z-index: 1;
}
.hero-eyebrow {
    display: inline-block;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--hue-accent);
    background: rgba(45, 212, 191, 0.1);
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    margin-bottom: 22px;
    font-weight: 600;
}
.hero-title {
    font-size: 2.8rem;
    line-height: 1.15;
    color: var(--hue-paper);
    margin: 0 0 18px;
    letter-spacing: -0.015em;
}
.hero-title em {
    font-style: normal;
    color: var(--hue-accent);
}
.hero-lede {
    font-size: 1.08rem;
    color: var(--hue-muted);
    margin-bottom: 28px;
    max-width: 520px;
}
.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}
.hero-actions .tap-pill {
    color: var(--hue-paper);
    border-color: var(--hue-accent);
}
.hero-actions .tap-pill:hover {
    color: var(--hue-deep);
}

/* Компас выбора */
.compass-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(45, 212, 191, 0.25);
    border-radius: 20px;
    padding: 28px;
    backdrop-filter: blur(10px);
}
.compass-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}
.compass-title {
    font-family: "Inter", sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--hue-paper);
    margin: 0;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}
.compass-toggle {
    display: flex;
    background: rgba(0, 0, 0, 0.25);
    border-radius: var(--radius-pill);
    padding: 3px;
    gap: 2px;
}
.compass-toggle button {
    background: transparent;
    border: none;
    color: var(--hue-muted);
    padding: 5px 12px;
    border-radius: var(--radius-pill);
    font-size: 0.78rem;
    cursor: pointer;
    transition: background .2s ease, color .2s ease;
}
.compass-toggle button.is-active {
    background: var(--hue-accent);
    color: var(--hue-deep);
    font-weight: 600;
}

.compass-radar {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    background: radial-gradient(circle at center, rgba(45, 212, 191, 0.06) 0%, transparent 70%);
    border-radius: 14px;
    cursor: crosshair;
    overflow: hidden;
}
.compass-svg-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}
.compass-marker {
    position: absolute;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--hue-accent);
    border: 3px solid var(--hue-paper);
    box-shadow: 0 0 0 4px rgba(45, 212, 191, 0.25), 0 4px 12px rgba(0, 0, 0, 0.3);
    transform: translate(-50%, -50%);
    pointer-events: none;
    transition: top .15s ease, left .15s ease;
}
.compass-axis-x, .compass-axis-y {
    position: absolute;
    color: var(--hue-muted);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    pointer-events: none;
}
.compass-axis-x.is-left { left: 6px; top: 50%; transform: translateY(-50%); }
.compass-axis-x.is-right { right: 6px; top: 50%; transform: translateY(-50%); }
.compass-axis-y.is-top { top: 6px; left: 50%; transform: translateX(-50%); }
.compass-axis-y.is-bottom { bottom: 6px; left: 50%; transform: translateX(-50%); }

.compass-result {
    margin-top: 14px;
    padding: 12px 14px;
    background: rgba(45, 212, 191, 0.08);
    border-left: 3px solid var(--hue-accent);
    border-radius: 8px;
    font-size: 0.88rem;
    color: var(--hue-paper);
    min-height: 44px;
}
.compass-result strong { color: var(--hue-accent); }

/* Тематический блок главной */
.front-block {
    padding: 70px 0;
}
.front-block.is-paper { background: var(--hue-paper); }
.front-block.is-soft { background: var(--hue-soft); }
.front-block.is-deep {
    background: var(--hue-deep);
    color: var(--hue-paper);
}
.front-block.is-deep h2,
.front-block.is-deep h3 { color: var(--hue-paper); }
.front-block.is-deep p { color: var(--hue-muted); }

.block-head {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 44px;
}
.block-eyebrow {
    display: inline-block;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--hue-accent);
    margin-bottom: 12px;
    font-weight: 600;
}
.block-title {
    font-size: 2rem;
    margin: 0 0 14px;
}
.block-lede {
    color: var(--hue-text);
    font-size: 1.05rem;
    margin: 0;
}
.front-block.is-deep .block-lede { color: var(--hue-muted); }

/* Карточки категорий */
.cat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 22px;
}
.cat-card {
    background: var(--hue-paper);
    border: 1px solid var(--hue-line);
    border-radius: var(--radius-block);
    padding: 28px 24px;
    text-decoration: none;
    border-bottom: 3px solid var(--hue-line);
    transition: all .25s ease;
    display: block;
}
.cat-card:hover {
    border-bottom-color: var(--hue-accent);
    transform: translateY(-3px);
    box-shadow: var(--shadow-mid);
    color: var(--hue-deep);
}
.front-block.is-deep .cat-card {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.1);
}
.front-block.is-deep .cat-card:hover { border-bottom-color: var(--hue-accent); }

.cat-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: rgba(45, 212, 191, 0.1);
    color: var(--hue-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}
.cat-card h3 {
    margin: 0 0 8px;
    font-size: 1.15rem;
}
.cat-card p {
    margin: 0;
    font-size: 0.92rem;
    opacity: 0.85;
}

/* Шаги выбора */
.steps-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 22px;
    counter-reset: step;
}
.step-cell {
    position: relative;
    padding: 30px 24px 24px;
    background: var(--hue-paper);
    border-radius: var(--radius-block);
    border: 1px solid var(--hue-line);
}
.step-cell::before {
    counter-increment: step;
    content: counter(step, decimal-leading-zero);
    position: absolute;
    top: -14px;
    left: 24px;
    background: var(--hue-accent);
    color: var(--hue-deep);
    font-family: "Inter", sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: var(--radius-pill);
    letter-spacing: 0.05em;
}
.step-cell h3 {
    margin: 0 0 10px;
    font-size: 1.1rem;
}
.step-cell p {
    margin: 0;
    font-size: 0.93rem;
    color: var(--hue-text);
}

/* Лента последних записей на главной */
.front-feed {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
}
.front-feed .card { height: 100%; }
.front-feed .card-thumb-wrap {
    flex: none;
    height: 200px;
    position: relative;
}

/* === ПАГИНАЦИЯ === */
.page-nav {
    margin-top: 40px;
    display: flex;
    justify-content: center;
}
.page-nav .nav-links {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    align-items: center;
}
.page-nav a, .page-nav span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 14px;
    border-radius: var(--radius-pill);
    border: 1px solid var(--hue-line);
    background: var(--hue-paper);
    color: var(--hue-deep);
    font-weight: 600;
    text-decoration: none;
    font-size: 0.92rem;
    transition: all .2s ease;
}
.page-nav a:hover {
    border-color: var(--hue-accent);
    background: rgba(45, 212, 191, 0.08);
    color: var(--hue-deep);
}
.page-nav .current {
    background: var(--hue-accent);
    border-color: var(--hue-accent);
    color: var(--hue-deep);
}
.page-nav .dots {
    border: none;
    background: transparent;
}

/* === ФУТЕР === */
.site-bottom {
    background: var(--hue-deep);
    color: var(--hue-muted);
    padding: 60px 0 0;
    margin-top: 40px;
}
.site-bottom a { color: var(--hue-muted); border: none; border-bottom: 1px solid transparent; }
.site-bottom a:hover { color: var(--hue-accent); border-bottom-color: var(--hue-accent); }

.bottom-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 42px;
}
.bottom-grid .widget-title {
    color: var(--hue-paper);
    font-family: "Inter", sans-serif;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 0 0 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(45, 212, 191, 0.25);
}
.bottom-grid ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.bottom-grid li {
    padding: 5px 0;
    font-size: 0.92rem;
}

.bottom-strip {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 20px 0;
    text-align: center;
    font-size: 0.85rem;
    color: var(--hue-muted);
}

/* === COOKIE-БАННЕР === */
.cookie-banner[hidden] { display: none !important; }

.cookie-banner {
    position: fixed;
    bottom: 16px;
    left: 16px;
    right: 16px;
    z-index: 1000;
    background: var(--hue-deep);
    color: var(--hue-paper);
    padding: 18px 22px;
    border-radius: var(--radius-block);
    border: 1px solid rgba(45, 212, 191, 0.3);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
    max-width: 720px;
    margin: 0 auto;
}
.cookie-banner p {
    margin: 0;
    flex: 1;
    min-width: 240px;
    font-size: 0.9rem;
    color: var(--hue-muted);
}
.cookie-banner button {
    background: var(--hue-accent);
    color: var(--hue-deep);
    border: none;
    padding: 10px 26px;
    border-radius: var(--radius-pill);
    font-weight: 600;
    cursor: pointer;
    font-size: 0.9rem;
    transition: transform .2s ease;
}
.cookie-banner button:hover { transform: translateY(-1px); }

/* === КОММЕНТАРИИ === */
.comment-area {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid var(--hue-line);
}
.comment-area h2, .comment-area h3 {
    font-size: 1.4rem;
    margin: 0 0 24px;
}
.comment-list {
    list-style: none;
    margin: 0 0 36px;
    padding: 0;
}
.comment-list ol { list-style: none; padding-left: 30px; }
.comment-list .comment {
    background: var(--hue-soft);
    border: 1px solid var(--hue-line);
    border-radius: var(--radius-block);
    padding: 18px 22px;
    margin-bottom: 16px;
}
.comment-list .comment-author {
    font-weight: 700;
    color: var(--hue-deep);
    margin-bottom: 4px;
}
.comment-list .comment-meta {
    font-size: 0.82rem;
    color: var(--hue-text);
    opacity: 0.7;
    margin-bottom: 10px;
}

.comment-form label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 0.92rem;
}
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid var(--hue-line);
    border-radius: 10px;
    background: var(--hue-paper);
    font-family: inherit;
    font-size: 0.95rem;
    margin-bottom: 16px;
    color: var(--hue-text);
    transition: border-color .2s ease;
}
.comment-form input:focus, .comment-form textarea:focus {
    outline: none;
    border-color: var(--hue-accent);
}
.comment-form .form-submit input[type="submit"] {
    background: var(--hue-accent);
    color: var(--hue-deep);
    border: none;
    padding: 12px 32px;
    border-radius: var(--radius-pill);
    font-weight: 600;
    cursor: pointer;
    font-size: 0.95rem;
    transition: transform .2s ease;
}
.comment-form .form-submit input[type="submit"]:hover { transform: translateY(-1px); }

/* === 404 === */
.error-stage {
    text-align: center;
    padding: 80px 20px;
}
.error-stage .big-num {
    font-family: "Inter", sans-serif;
    font-size: 7rem;
    line-height: 1;
    color: var(--hue-accent);
    margin: 0 0 10px;
    letter-spacing: -0.03em;
}
.error-stage h1 {
    font-size: 1.8rem;
    margin: 0 0 16px;
}
.error-stage p {
    font-size: 1rem;
    color: var(--hue-text);
    max-width: 520px;
    margin: 0 auto 28px;
}
.error-stage .searchform-wrap {
    max-width: 480px;
    margin: 0 auto 24px;
}
.error-stage form {
    display: flex;
    gap: 8px;
}
.error-stage input[type="search"] {
    flex: 1;
    padding: 12px 18px;
    border: 1px solid var(--hue-line);
    border-radius: var(--radius-pill);
    font-size: 0.95rem;
}
.error-stage button {
    padding: 12px 24px;
    background: var(--hue-accent);
    color: var(--hue-deep);
    border: none;
    border-radius: var(--radius-pill);
    cursor: pointer;
    font-weight: 600;
}

/* === АДАПТИВНОСТЬ === */
@media (max-width: 960px) {
    .top-row {
        grid-template-columns: auto 1fr auto;
        gap: 16px;
    }
    .top-nav {
        position: absolute;
        top: 100%;
        left: 0; right: 0;
        background: var(--hue-deep);
        border-top: 1px solid rgba(45, 212, 191, 0.18);
        z-index: 50;
        padding: 14px 24px;
    }
    .top-nav[hidden] { display: none !important; }
    .top-nav ul {
        flex-direction: column;
        gap: 0;
    }
    .top-nav li { width: 100%; }
    .top-nav a {
        display: block;
        padding: 11px 14px;
        border-radius: 8px;
    }
    .site-top { position: relative; }
    .burger-toggle { display: inline-flex; }

    .search-snippet input[type="search"] { width: 110px; }

    .layout-grid.has-aside {
        grid-template-columns: minmax(0, 1fr);
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .hero-title { font-size: 2.2rem; }

    .bottom-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

    h1, .entry-title { font-size: 1.7rem; }
}

@media (max-width: 600px) {
    .shell { padding: 0 16px; }
    .top-row { padding: 14px 0; }
    .brand-logo, .brand-mark { width: 40px; height: 40px; }
    .brand-name { font-size: 0.95rem; }
    .brand-tag { display: none; }

    .top-search .search-snippet input[type="search"] {
        width: 0;
        padding: 0;
    }
    .top-search .search-snippet:focus-within input[type="search"] {
        width: 140px;
        padding: 6px 0;
    }

    .card.is-row { 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: 18px 20px 20px; }

    .hero-band { padding: 50px 0 60px; }
    .hero-title { font-size: 1.7rem; }
    .hero-lede { font-size: 0.98rem; }
    .compass-card { padding: 20px; }

    .front-block { padding: 50px 0; }
    .block-title { font-size: 1.5rem; }
    .block-lede { font-size: 0.98rem; }

    .bottom-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .error-stage { padding: 50px 16px; }
    .error-stage .big-num { font-size: 4.5rem; }
    .error-stage form { flex-direction: column; }

    .cookie-banner {
        bottom: 0;
        left: 0; right: 0;
        border-radius: var(--radius-block) var(--radius-block) 0 0;
        padding: 16px 18px;
    }

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

/* === АЛАЙНМЕНТ ИЗОБРАЖЕНИЙ (Gutenberg) === */
.alignleft { float: left; margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.aligncenter { display: block; margin: 1em auto; }
.alignwide { max-width: 100%; }
.alignfull { max-width: 100%; }

.wp-caption {
    max-width: 100%;
    margin: 1.5em 0;
}
.wp-caption-text {
    font-size: 0.85rem;
    color: var(--hue-text);
    opacity: 0.75;
    text-align: center;
    margin-top: 6px;
}
.gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin: 1.5em 0;
}
.gallery img { border-radius: 8px; display: block; }

/* Скрытое для скринридеров */
.screen-reader-text {
    position: absolute !important;
    clip: rect(1px,1px,1px,1px);
    width: 1px; height: 1px;
    overflow: hidden;
}
