/*
Theme Name: dds_donghosunrise.com
Theme URI: https://donghosunrise.com/
Author: Александр Ветров
Description: Тема для аналитического портала об элитной недвижимости и luxury-инвестициях. Тёмная корпоративно-премиальная палитра с элементами glassmorphism.
Version: 1.1
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: dsunrise
*/

/* =========================================================
   1. Переменные и база
   ========================================================= */

:root {
    --bg:        #0B1120;
    --bg-alt:    #111A2E;
    --bg-foot:   #070C16;
    --bg-aside:  #0F1626;
    --ink:       #E8EDF5;
    --gold:      #C9A96E;
    --gold-soft: #DFC391;
    --teal:      #4A7C8C;
    --muted:     #7A8BA3;
    --line:      #1E2A3D;
    --shell:     1180px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--bg);
    background-image: repeating-linear-gradient(
        45deg,
        rgba(255, 255, 255, 0.02) 0,
        rgba(255, 255, 255, 0.02) 1px,
        transparent 1px,
        transparent 32px
    );
    color: var(--ink);
    font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
    font-size: 17px;
    line-height: 1.7;
    overflow-x: hidden;
}

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

a {
    color: var(--teal);
    text-decoration: none;
}

p a,
.entry-content a,
.widget a,
.zz-text a {
    position: relative;
}

p a::after,
.entry-content a:not(.btn)::after,
.zz-text a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 1px;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.28s ease;
}

p a:hover::after,
.entry-content a:not(.btn):hover::after,
.zz-text a:hover::after {
    transform: scaleX(1);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
    color: var(--ink);
    line-height: 1.22;
    margin: 0 0 0.7em;
    font-weight: 600;
}

h1 { font-size: 3.2rem; }
h2 { font-size: 2.1rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
    margin: 0 0 1.15em;
}

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

li {
    margin-bottom: 0.4em;
}

blockquote {
    margin: 1.8rem 0;
    padding: 1.4rem 1.8rem;
    background: linear-gradient(140deg, var(--bg-alt), var(--bg-aside));
    border-left: 3px solid var(--gold);
    border-radius: 0 8px 8px 0;
    color: var(--ink);
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.2rem;
    font-style: italic;
}

code, pre {
    font-family: 'SFMono-Regular', Consolas, monospace;
    background: var(--bg-alt);
    color: var(--gold-soft);
    border-radius: 4px;
}

code { padding: 0.1em 0.4em; }

pre {
    padding: 1.1rem 1.3rem;
    overflow-x: auto;
    border: 1px solid var(--line);
}

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

th, td {
    border: 1px solid var(--line);
    padding: 0.7rem 0.9rem;
    text-align: left;
}

th {
    background: var(--bg-alt);
    color: var(--gold-soft);
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

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

.cookie-banner[hidden] { display: none !important; }
.faq-answer[hidden]    { display: none !important; }
.site-nav[hidden]      { display: none !important; }

.sr-only {
    position: absolute !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
    white-space: nowrap;
}

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

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

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

.layout-single {
    display: block;
    width: 85%;
    margin-left: auto;
    margin-right: auto;
    padding: 3rem 0 4.5rem;
}

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

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

.gold-rule {
    position: relative;
    z-index: 30;
    height: 3px;
    background: var(--gold);
}

.site-head {
    position: relative;
    background: rgba(11, 17, 32, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
}

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

.brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 0;
}

.brand-mark {
    display: block;
    flex: 0 0 auto;
}

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

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

.brand-name {
    display: block;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.22rem;
    line-height: 1.25;
    color: var(--ink);
    letter-spacing: 0.01em;
}

.brand-name:hover {
    color: var(--gold);
}

.brand-desc {
    display: block;
    margin-top: 0.3rem;
    font-size: 0.8rem;
    line-height: 1.45;
    color: var(--muted);
    max-width: 52ch;
}

.nav-toggle {
    display: none;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    background: transparent;
    border: 1px solid var(--gold);
    border-radius: 6px;
    color: var(--gold);
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
}

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

.site-nav li {
    margin: 0;
}

.site-nav a {
    position: relative;
    display: inline-block;
    padding: 0.2rem 0;
    color: var(--ink);
    font-size: 0.92rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.site-nav a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 100%;
    height: 1px;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.28s ease;
}

.site-nav a:hover::after,
.site-nav .current-menu-item > a::after {
    transform: scaleX(1);
}

.site-nav .current-menu-item > a {
    color: var(--gold);
}

/* =========================================================
   5. Кнопки, метки, крошки
   ========================================================= */

.btn {
    display: inline-block;
    padding: 0.78rem 1.6rem;
    border-radius: 6px;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    transition: background 0.25s ease, box-shadow 0.25s ease, color 0.25s ease;
}

.btn-fill {
    background: var(--gold);
    color: #0B1120;
    border: 1px solid var(--gold);
}

.btn-fill:hover {
    background: var(--gold-soft);
    box-shadow: 0 0 18px rgba(201, 169, 110, 0.2);
}

.btn-line {
    background: transparent;
    color: var(--gold);
    border: 1px solid var(--gold);
}

.btn-line:hover {
    background: rgba(201, 169, 110, 0.12);
    box-shadow: 0 0 18px rgba(201, 169, 110, 0.2);
}

.chip {
    display: inline-block;
    margin: 0 0.35rem 0.35rem 0;
    padding: 0.2rem 0.55rem;
    border-radius: 3px;
    font-size: 0.72rem;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.chip-t1 { color: #C9A96E; background: rgba(201, 169, 110, 0.15); }
.chip-t2 { color: #4A7C8C; background: rgba(74, 124, 140, 0.15); }
.chip-t3 { color: #A47FA8; background: rgba(164, 127, 168, 0.15); }
.chip-t4 { color: #5CA98A; background: rgba(92, 169, 138, 0.15); }

.trail {
    padding: 1.3rem 0 0;
    font-size: 0.83rem;
    color: var(--muted);
}

.trail a {
    color: var(--muted);
}

.trail a:hover {
    color: var(--gold);
}

.trail-sep {
    margin: 0 0.4rem;
    color: var(--line);
}

/* =========================================================
   6. Заголовки секций и разделители
   ========================================================= */

.sec-title {
    position: relative;
    margin: 0 0 1.8rem;
    padding-left: 16px;
    font-size: 1.55rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.sec-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.15em;
    bottom: 0.15em;
    width: 4px;
    background: var(--gold);
}

.soft-divider {
    position: relative;
    height: 1px;
    margin: 0;
    border: 0;
    border-top: 1px dashed var(--line);
}

.soft-divider::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 7px;
    height: 7px;
    margin: -3.5px 0 0 -3.5px;
    border-radius: 50%;
    background: var(--gold);
}

/* =========================================================
   7. Главная страница
   ========================================================= */

.front {
    width: 85%;
    margin-left: auto;
    margin-right: auto;
    position: relative;
}

.front::after {
    content: '';
    position: absolute;
    right: -2%;
    bottom: 0;
    width: 320px;
    height: 420px;
    pointer-events: none;
    opacity: 0.08;
    background-repeat: no-repeat;
    background-size: contain;
    background-position: bottom right;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 320 420' fill='none' stroke='%23C9A96E' stroke-width='2'%3E%3Cpath d='M60 420V150l60-40 60 40v270'/%3E%3Cpath d='M180 420V90l70-46 40 26v350'/%3E%3Cpath d='M60 190h120M60 230h120M60 270h120M60 310h120M60 350h120'/%3E%3Cpath d='M180 130h110M180 175h110M180 220h110M180 265h110M180 310h110M180 355h110'/%3E%3Cpath d='M120 110V70M250 44V8'/%3E%3C/svg%3E");
}

.front-section {
    position: relative;
    padding: 80px 0;
}

.front-section.is-alt {
    padding: 80px 2.4rem;
    border-radius: 10px;
    background-image: linear-gradient(150deg, #111A2E, #0F1626),
        radial-gradient(circle at 1px 1px, rgba(201, 169, 110, 0.04) 1px, transparent 1px);
    background-size: auto, 24px 24px;
}

/* Hero */

.hero {
    position: relative;
    margin-top: 2.6rem;
    padding: 5.4rem 3rem;
    border: 1px solid var(--line);
    border-radius: 10px;
    overflow: hidden;
    isolation: isolate;
}

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

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

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(105deg, rgba(11, 17, 32, 0.94) 10%, rgba(11, 17, 32, 0.78) 55%, rgba(17, 26, 46, 0.6) 100%);
}

.hero-kicker {
    display: inline-block;
    margin-bottom: 1.2rem;
    padding: 0.25rem 0.7rem;
    border: 1px solid rgba(201, 169, 110, 0.4);
    border-radius: 3px;
    color: var(--gold);
    font-size: 0.74rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.hero h1 {
    max-width: 18ch;
    margin-bottom: 1.1rem;
    color: var(--gold);
}

.hero-sub {
    max-width: 58ch;
    margin-bottom: 2.2rem;
    color: var(--ink);
    font-size: 1.05rem;
}

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

/* Статистика */

.stat-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
}

.stat-cell {
    min-width: 0;
    padding: 0 1.4rem;
    border-left: 1px solid var(--line);
    text-align: center;
}

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

.stat-num {
    display: block;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 3rem;
    line-height: 1.1;
    color: var(--gold);
}

.stat-cap {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.86rem;
    line-height: 1.5;
    color: var(--muted);
}

/* Zigzag */

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

.zz-row + .zz-row {
    margin-top: 4.2rem;
}

.zz-media {
    min-width: 0;
    padding: 6px;
    border: 1px solid rgba(201, 169, 110, 0.55);
    border-radius: 8px;
}

.zz-media img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 6px;
}

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

.zz-text h3 {
    font-size: 1.75rem;
}

.zz-text p {
    color: #CBD6E6;
}

.zz-more {
    display: inline-block;
    margin-top: 0.4rem;
    font-size: 0.92rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.zz-row.is-flip .zz-media {
    order: 2;
}

/* FAQ */

.faq-list {
    border-top: 1px solid var(--line);
}

.faq-item {
    border-bottom: 1px solid var(--line);
}

.faq-q {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.2rem;
    width: 100%;
    padding: 1.25rem 0.2rem;
    background: transparent;
    border: 0;
    color: var(--ink);
    font-family: 'Inter', sans-serif;
    font-size: 1.02rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
}

.faq-q:hover {
    color: var(--gold-soft);
}

.faq-sign {
    flex: 0 0 auto;
    width: 22px;
    color: var(--gold);
    font-size: 1.4rem;
    line-height: 1;
    text-align: center;
}

.faq-answer {
    padding: 0 0.2rem 1.4rem;
    color: var(--muted);
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

/* Последние записи на главной */

.front-latest {
    padding: 80px 0;
}

.front-latest-foot {
    margin-top: 2.6rem;
    text-align: center;
}

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

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: 1.9rem;
}

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

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

.card:hover {
    transform: translateY(-4px);
    border-color: rgba(201, 169, 110, 0.4);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.45);
}

.card-thumb {
    display: block;
}

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

.card-thumb-fallback {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background-image: linear-gradient(140deg, #111A2E, #0F1626),
        repeating-linear-gradient(45deg, rgba(201, 169, 110, 0.07) 0, rgba(201, 169, 110, 0.07) 1px, transparent 1px, transparent 14px);
}

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

.card-meta {
    margin-bottom: 0.6rem;
    font-size: 0.78rem;
    color: var(--muted);
    letter-spacing: 0.04em;
}

.card-title {
    margin: 0 0 0.7rem;
    font-size: 1.25rem;
    line-height: 1.3;
}

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

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

.card-excerpt {
    color: var(--muted);
    font-size: 0.95rem;
}

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

.card-foot {
    margin-top: auto;
    padding-top: 1.1rem;
}

.card-more {
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--gold);
}

.card-more:hover {
    color: var(--gold-soft);
}

/* =========================================================
   9. Запись и страница
   ========================================================= */

.page-head {
    padding: 1.6rem 0 0.4rem;
}

.page-head h1 {
    font-size: 2.6rem;
}

.entry-meta {
    margin-bottom: 1.6rem;
    font-size: 0.84rem;
    color: var(--muted);
}

.entry-cover {
    margin: 0 0 2rem;
}

.entry-cover img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.entry-content {
    font-size: 1.03rem;
}

.entry-content h2,
.entry-content h3 {
    margin-top: 2rem;
}

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

.single .entry-content > p:first-of-type::first-letter {
    float: left;
    margin: 0.06em 0.12em 0 0;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 3.6em;
    line-height: 0.82;
    color: var(--gold);
}

.entry-tags {
    margin-top: 2.2rem;
    padding-top: 1.4rem;
    border-top: 1px solid var(--line);
    font-size: 0.85rem;
    color: var(--muted);
}

.entry-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1.2rem;
    margin-top: 2rem;
    padding-top: 1.6rem;
    border-top: 1px solid var(--line);
    font-size: 0.9rem;
}

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

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

.sidebar .widget + .widget {
    margin-top: 2rem;
}

.sidebar .widget-title {
    margin-bottom: 1rem;
    padding-left: 12px;
    position: relative;
    font-size: 1.05rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink);
}

.sidebar .widget-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.2em;
    bottom: 0.2em;
    width: 3px;
    background: var(--gold);
}

.sidebar .widget,
.sidebar .widget p,
.sidebar .widget li {
    color: #C4D0E0;
    font-size: 0.93rem;
}

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

.sidebar .widget li {
    padding: 0.5rem 0 0.5rem 14px;
    position: relative;
    border-bottom: 1px solid var(--line);
}

.sidebar .widget li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 1.05em;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--gold);
}

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

.sidebar .widget a {
    color: #DCE5F0;
}

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

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

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

.site-foot {
    margin-top: 2rem;
    background: var(--bg-foot);
    border-top: 1px solid var(--line);
}

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

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

.site-foot .widget-title {
    margin-bottom: 1rem;
    font-size: 1.02rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gold);
}

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

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

.site-foot .widget li {
    padding: 0.38rem 0 0.38rem 14px;
    position: relative;
}

.site-foot .widget li::before {
    content: '›';
    position: absolute;
    left: 0;
    top: 0.3rem;
    color: var(--gold);
}

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

.site-foot .widget a:hover {
    color: var(--gold);
}

.foot-bar {
    padding: 1.3rem 0;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.84rem;
    text-align: center;
}

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

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

.pager .page-numbers {
    display: inline-block;
    min-width: 42px;
    padding: 0.5rem 0.8rem;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--bg-alt);
    color: var(--ink);
    font-size: 0.9rem;
    text-align: center;
    transition: border-color 0.25s ease, color 0.25s ease, background 0.25s ease;
}

.pager a.page-numbers:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.pager .page-numbers.current {
    background: var(--gold);
    border-color: var(--gold);
    color: #0B1120;
    font-weight: 600;
}

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

/* =========================================================
   13. Комментарии
   ========================================================= */

.comments-area {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--line);
}

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

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

.note {
    margin-bottom: 1.4rem;
    padding: 1.2rem 1.4rem;
    background: var(--bg-alt);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.note-head {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    align-items: baseline;
    margin-bottom: 0.6rem;
}

.note-author {
    font-weight: 600;
    color: var(--gold-soft);
}

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

.note-actions a {
    color: var(--teal);
}

.comment-respond {
    padding: 1.6rem 1.7rem;
    background: var(--bg-alt);
    border: 1px solid var(--line);
    border-radius: 8px;
}

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

/* =========================================================
   14. Формы и поиск
   ========================================================= */

input[type="text"],
input[type="email"],
input[type="url"],
input[type="search"],
input[type="password"],
textarea {
    width: 100%;
    padding: 0.65rem 0.85rem;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 6px;
    color: var(--ink);
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--gold);
}

input[type="submit"],
button[type="submit"] {
    padding: 0.7rem 1.5rem;
    background: var(--gold);
    border: 1px solid var(--gold);
    border-radius: 6px;
    color: #0B1120;
    font-family: 'Inter', sans-serif;
    font-size: 0.86rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.25s ease, box-shadow 0.25s ease;
}

input[type="submit"]:hover,
button[type="submit"]:hover {
    background: var(--gold-soft);
    box-shadow: 0 0 18px rgba(201, 169, 110, 0.2);
}

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

.search-form .search-field {
    min-width: 0;
    flex: 1;
}

/* =========================================================
   15. 404 и результаты
   ========================================================= */

.void {
    padding: 3.4rem 2.2rem;
    background: linear-gradient(150deg, var(--bg-alt), var(--bg-aside));
    border: 1px solid var(--line);
    border-radius: 10px;
    text-align: center;
}

.void h1 {
    color: var(--gold);
}

.void-search {
    max-width: 480px;
    margin: 1.8rem auto 1.6rem;
}

.archive-head {
    margin-bottom: 2rem;
}

.nothing {
    padding: 2.2rem 1.8rem;
    background: var(--bg-alt);
    border: 1px solid var(--line);
    border-radius: 8px;
}

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

.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1.2rem;
    padding: 1rem 1.6rem;
    background: rgba(7, 12, 22, 0.94);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid var(--gold);
    color: var(--ink);
    font-size: 0.88rem;
}

.cookie-banner p {
    margin: 0;
    max-width: 70ch;
}

.cookie-banner .btn {
    padding: 0.55rem 1.3rem;
    font-size: 0.8rem;
}

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

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

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

    .layout-single,
    .front {
        width: 100%;
    }

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

    .site-nav {
        flex-basis: 100%;
    }

    .site-nav ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.2rem;
        padding-top: 1rem;
    }

    .site-nav li {
        width: 100%;
        border-bottom: 1px solid var(--line);
    }

    .site-nav a {
        display: block;
        padding: 0.7rem 0;
    }

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

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

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

    .zz-row.is-flip .zz-media {
        order: 0;
    }

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

    .front::after {
        display: none;
    }
}

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

    h1 { font-size: 2rem; }
    h2 { font-size: 1.55rem; }

    .page-head h1 { font-size: 1.85rem; }

    .front-section {
        padding: 2.8rem 0;
    }

    .front-section.is-alt {
        padding: 2.4rem 1.4rem;
    }

    .front-latest {
        padding: 2.8rem 0;
    }

    .hero {
        padding: 2.6rem 1.4rem;
    }

    .hero h1 {
        font-size: 1.95rem;
    }

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

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

    .stat-num { font-size: 2.4rem; }

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

    .sidebar {
        padding: 1.4rem 1.2rem;
    }

    .void {
        padding: 2.2rem 1.3rem;
    }

    .comment-respond {
        padding: 1.2rem 1.1rem;
    }

    .cookie-banner {
        padding: 0.9rem 1.1rem;
        gap: 0.8rem;
    }

    .single .entry-content > p:first-of-type::first-letter {
        font-size: 3em;
    }
}
