/*
Theme Name: dds_glow-apparel.com
Theme URI: https://glow-apparel.com/
Author: Осипов Мирон
Author URI: https://glow-apparel.com/
Description: Тема для информационного сайта о моде и стиле одежды. Мягкое свечение, тактильная атмосфера премиальной ткани и современная минималистичная типографика.
Version: 1.1
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: dds_glow_apparel
*/

/* ===== ОСНОВЫ ===== */

:root {
    --bg-base: #fbf6ee;
    --bg-soft: #f4ece0;
    --surface: #ffffff;
    --surface-veil: rgba(255, 255, 255, 0.72);
    --ink: #2c2a35;
    --ink-soft: #5a5867;
    --ink-mute: #8a8896;
    --line: #ece2d2;
    --accent-peach: #ffb59a;
    --accent-lavender: #c8b2ff;
    --accent-rose: #f78fb1;
    --gradient-warm: linear-gradient(135deg, #ffb59a 0%, #f4a3c5 50%, #c8b2ff 100%);
    --gradient-soft: linear-gradient(135deg, #ffe5da 0%, #f0e1ff 100%);
    --shadow-sticker: 0 18px 40px -22px rgba(200, 178, 255, 0.45), 0 6px 14px -6px rgba(255, 181, 154, 0.25);
    --shadow-glow: 0 0 0 3px rgba(247, 143, 177, 0.18), 0 14px 32px -10px rgba(200, 178, 255, 0.55);
    --radius-button: 24px;
    --radius-card: 22px;
    --radius-pill: 999px;
    --font-body: "Inter", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    --font-display: "Manrope", "Inter", "Segoe UI", Arial, sans-serif;
    --font-mono: "JetBrains Mono", "SFMono-Regular", "Consolas", monospace;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg-base);
    background-image:
        radial-gradient(ellipse at 12% 0%, rgba(255, 181, 154, 0.20), transparent 55%),
        radial-gradient(ellipse at 92% 18%, rgba(200, 178, 255, 0.22), transparent 60%),
        radial-gradient(ellipse at 50% 100%, rgba(247, 143, 177, 0.10), transparent 70%);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

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

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

a:hover {
    color: #e96e96;
    text-shadow: 0 0 12px rgba(247, 143, 177, 0.45);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    color: var(--ink);
    line-height: 1.25;
    margin: 1.4em 0 0.6em;
    font-weight: 700;
    letter-spacing: -0.01em;
}

h1 { font-size: 2.2rem; }
h2 { font-size: 1.7rem; }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.15rem; }

p {
    margin: 0 0 1em;
}

ul, ol {
    margin: 0 0 1em;
    padding-left: 1.4em;
}

blockquote {
    margin: 1.6em 0;
    padding: 1.1em 1.4em;
    background: rgba(255, 255, 255, 0.55);
    border-left: 3px solid var(--accent-rose);
    border-radius: 6px;
    font-family: var(--font-mono);
    font-size: 0.95em;
    color: var(--ink-soft);
    backdrop-filter: blur(4px);
}

code {
    font-family: var(--font-mono);
    background: rgba(200, 178, 255, 0.15);
    padding: 0.12em 0.4em;
    border-radius: 6px;
    font-size: 0.9em;
}

pre {
    background: rgba(255, 255, 255, 0.6);
    padding: 1em;
    border-radius: 12px;
    overflow-x: auto;
    border: 1px solid var(--line);
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.2em 0;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 10px;
    overflow: hidden;
}

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

th {
    background: rgba(255, 181, 154, 0.12);
    font-weight: 600;
}

hr {
    border: none;
    height: 1px;
    background: var(--line);
    margin: 2em 0;
}

/* ===== АНИМАЦИЯ "ПРОЯВЛЕНИЯ ЧЕРЕЗ ВУАЛЬ" ===== */

@keyframes veil-reveal {
    0% { opacity: 0; transform: translateY(8px); filter: blur(6px); }
    60% { opacity: 0.7; filter: blur(2px); }
    100% { opacity: 1; transform: translateY(0); filter: blur(0); }
}

.site-main > *,
.site-footer .footer-grid {
    animation: veil-reveal 0.7s ease-out both;
}

/* ===== КОНТЕЙНЕРЫ ===== */

.wrap {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

.layout {
    display: grid;
    gap: 40px;
    margin: 40px 0 64px;
}

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

.layout.no-aside {
    grid-template-columns: minmax(0, 85fr) auto;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

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

/* ===== ШАПКА ===== */

.site-header {
    position: relative;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.55) 0%, rgba(255, 255, 255, 0.0) 100%);
    border-bottom: 1px solid rgba(236, 226, 210, 0.6);
    backdrop-filter: blur(8px);
}

.site-header-inner {
    display: flex;
    align-items: center;
    gap: 28px;
    padding: 22px 0;
    flex-wrap: wrap;
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    color: var(--ink);
}

.brand-logo {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    object-fit: cover;
    background: var(--gradient-soft);
    box-shadow: var(--shadow-sticker);
}

.brand svg.brand-logo {
    padding: 6px;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    max-width: 460px;
}

.brand-name {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.05rem;
    letter-spacing: -0.01em;
    color: var(--ink);
}

.brand-tagline {
    font-size: 0.82rem;
    color: var(--ink-mute);
    margin-top: 3px;
}

.primary-nav {
    margin-left: auto;
}

.primary-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 6px;
    align-items: center;
}

.primary-nav a {
    display: inline-block;
    padding: 9px 18px;
    border-radius: var(--radius-pill);
    color: var(--ink-soft);
    font-weight: 500;
    font-size: 0.95rem;
    transition: background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.primary-nav a:hover,
.primary-nav .current-menu-item > a,
.primary-nav .current_page_item > a {
    background: var(--gradient-soft);
    color: var(--ink);
    text-shadow: none;
    box-shadow: 0 4px 14px -6px rgba(247, 143, 177, 0.45);
}

/* Бургер */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    margin-left: auto;
}

.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
    display: block;
    width: 26px;
    height: 2px;
    background: var(--ink);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
    position: relative;
}

.menu-toggle span::before,
.menu-toggle span::after {
    content: "";
    position: absolute;
    left: 0;
}

.menu-toggle span::before { top: -8px; }
.menu-toggle span::after  { top: 8px; }

.menu-toggle.is-open span { background: transparent; }
.menu-toggle.is-open span::before { transform: translateY(8px) rotate(45deg); }
.menu-toggle.is-open span::after  { transform: translateY(-8px) rotate(-45deg); }

/* ===== HERO НА ГЛАВНОЙ ===== */

.hero {
    position: relative;
    padding: 64px 0 48px;
    text-align: left;
}

.hero-inner {
    max-width: 760px;
}

.hero-eyebrow {
    display: inline-block;
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    background: var(--gradient-soft);
    color: var(--ink);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 18px;
}

.hero h1 {
    font-size: 2.6rem;
    margin: 0 0 18px;
    line-height: 1.15;
}

.hero p.hero-lead {
    font-size: 1.12rem;
    color: var(--ink-soft);
    max-width: 620px;
}

/* ===== КНОПКИ ===== */

.btn,
.btn-primary,
.btn-ghost,
.wp-block-button__link {
    display: inline-block;
    padding: 12px 28px;
    border-radius: var(--radius-button);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.2;
    border: none;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.btn-primary,
.wp-block-button__link {
    background: var(--gradient-warm);
    color: #fff !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 8px 22px -10px rgba(247, 143, 177, 0.55);
}

.btn-primary:hover,
.wp-block-button__link:hover {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), 0 0 22px rgba(255, 181, 154, 0.6), 0 0 8px rgba(200, 178, 255, 0.55);
    transform: translateY(-1px);
    text-shadow: none;
    color: #fff;
}

.btn-ghost {
    background: transparent;
    border: 1.5px solid var(--ink-soft);
    color: var(--ink);
}

.btn-ghost:hover {
    border-image: var(--gradient-warm) 1;
    color: var(--ink);
    text-shadow: none;
    box-shadow: 0 6px 18px -10px rgba(247, 143, 177, 0.5);
}

/* ===== СЕКЦИИ ===== */

.section {
    margin: 56px 0;
}

.section-head {
    margin-bottom: 28px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.section-head h2 {
    margin: 0;
    position: relative;
    padding-left: 22px;
}

.section-head h2::before {
    content: "";
    position: absolute;
    left: 0; top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 22px;
    border-radius: 6px;
    background: var(--gradient-warm);
    box-shadow: 0 4px 10px -2px rgba(247, 143, 177, 0.55);
}

.section-head p {
    color: var(--ink-soft);
    margin: 0;
    max-width: 520px;
}

/* ===== ТЕМАТИЧЕСКИЕ БЛОКИ ГЛАВНОЙ ===== */

.feature-block {
    position: relative;
    background: var(--surface);
    border-radius: 28px;
    padding: 44px 48px;
    box-shadow: var(--shadow-sticker);
    overflow: hidden;
}

.feature-block::before {
    content: "";
    position: absolute;
    top: -60px; right: -60px;
    width: 220px; height: 220px;
    border-radius: 50%;
    background: var(--gradient-soft);
    opacity: 0.6;
    filter: blur(24px);
    pointer-events: none;
}

.feature-block h2 {
    margin-top: 0;
    position: relative;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 22px;
    margin-top: 26px;
    position: relative;
}

.feature-item {
    background: var(--bg-soft);
    padding: 22px;
    border-radius: 18px;
    border: 1px solid var(--line);
}

.feature-item h3 {
    margin: 0 0 8px;
    font-size: 1.1rem;
}

.feature-item p {
    margin: 0;
    color: var(--ink-soft);
    font-size: 0.95rem;
}

.steps {
    counter-reset: step;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 22px;
    margin-top: 26px;
    position: relative;
}

.step-item {
    counter-increment: step;
    position: relative;
    padding: 26px 22px 22px;
    background: var(--bg-soft);
    border-radius: 18px;
}

.step-item::before {
    content: counter(step, decimal-leading-zero);
    position: absolute;
    top: -16px; left: 22px;
    background: var(--gradient-warm);
    color: #fff;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.82rem;
    padding: 6px 12px;
    border-radius: var(--radius-pill);
    box-shadow: 0 6px 14px -4px rgba(247, 143, 177, 0.45);
}

.step-item h3 {
    margin: 4px 0 6px;
    font-size: 1.05rem;
}

.step-item p {
    margin: 0;
    color: var(--ink-soft);
    font-size: 0.93rem;
}

/* ===== КАРТОЧКИ ЗАПИСЕЙ ===== */

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 26px;
    margin: 28px 0;
}

.card {
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border-radius: var(--radius-card);
    overflow: hidden;
    box-shadow: var(--shadow-sticker);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 22px 46px -22px rgba(200, 178, 255, 0.55), 0 8px 18px -8px rgba(247, 143, 177, 0.30);
}

.card-thumb {
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: var(--gradient-soft);
}

.card-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.card:hover .card-thumb img {
    transform: scale(1.04);
}

.card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 22px 24px 24px;
}

.card-cats {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}

.card-cat {
    display: inline-block;
    padding: 4px 12px;
    border-radius: var(--radius-pill);
    background: var(--gradient-soft);
    color: var(--ink);
    font-size: 0.78rem;
    font-weight: 600;
}

.card-cat:hover {
    color: var(--ink);
    text-shadow: none;
    box-shadow: 0 0 12px rgba(247, 143, 177, 0.35);
}

.card-title {
    font-family: var(--font-display);
    font-size: 1.18rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 10px;
}

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

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

.card-excerpt {
    color: var(--ink-soft);
    font-size: 0.95rem;
    margin: 0 0 14px;
    flex: 1;
}

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

.card-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 0.82rem;
    color: var(--ink-mute);
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px dashed var(--line);
}

.card-more {
    align-self: flex-start;
    margin-top: 14px;
    padding: 8px 18px;
    border-radius: var(--radius-button);
    border: 1.5px solid var(--ink-soft);
    color: var(--ink);
    font-size: 0.88rem;
    font-weight: 600;
}

.card-more:hover {
    border-color: transparent;
    color: #fff;
    background: var(--gradient-warm);
    text-shadow: none;
    box-shadow: 0 8px 20px -10px rgba(247, 143, 177, 0.5);
}

/* ===== ОДИНОЧНАЯ ЗАПИСЬ ===== */

.single-content,
.page-content {
    background: var(--surface);
    padding: 36px 40px 44px;
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-sticker);
}

.entry-header {
    margin-bottom: 28px;
}

.entry-header h1 {
    margin: 0 0 14px;
    font-size: 2.2rem;
    line-height: 1.18;
}

.entry-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--ink-mute);
    font-size: 0.9rem;
    flex-wrap: wrap;
}

.entry-meta a {
    color: var(--ink-soft);
}

.entry-thumb {
    margin: 0 0 28px;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: var(--shadow-sticker);
}

.entry-thumb img {
    display: block;
    width: 100%;
    height: auto;
}

.entry-content p {
    margin: 0 0 1em;
}

.entry-content img {
    border-radius: 14px;
    margin: 1em 0;
}

.entry-tags {
    margin-top: 30px;
    padding-top: 22px;
    border-top: 1px dashed var(--line);
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.entry-tags-label {
    font-size: 0.85rem;
    color: var(--ink-mute);
    margin-right: 4px;
}

.entry-tags a {
    display: inline-block;
    padding: 4px 12px;
    border-radius: var(--radius-pill);
    background: var(--bg-soft);
    color: var(--ink-soft);
    font-size: 0.85rem;
    border: 1px solid var(--line);
}

.entry-tags a:hover {
    background: var(--gradient-soft);
    color: var(--ink);
    text-shadow: none;
}

/* ===== САЙДБАР ===== */

.site-aside {
    align-self: start;
    position: sticky;
    top: 24px;
}

.widget {
    background: var(--surface);
    padding: 22px 24px;
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-sticker);
    margin-bottom: 22px;
}

.widget-title {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0 0 14px;
    padding-left: 16px;
    position: relative;
}

.widget-title::before {
    content: "";
    position: absolute;
    left: 0; top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 18px;
    border-radius: 4px;
    background: var(--gradient-warm);
}

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

.widget li {
    padding: 8px 0;
    border-bottom: 1px dashed var(--line);
    font-size: 0.95rem;
}

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

.widget li a {
    color: var(--ink-soft);
}

.widget li a:hover {
    color: var(--accent-rose);
}

/* ===== ХЛЕБНЫЕ КРОШКИ ===== */

.breadcrumbs {
    margin: 22px 0 14px;
    font-size: 0.88rem;
    color: var(--ink-mute);
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

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

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

.breadcrumbs .sep {
    color: var(--ink-mute);
    opacity: 0.6;
}

.breadcrumbs .current {
    color: var(--ink);
}

/* ===== ПАГИНАЦИЯ ===== */

.pagination {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    margin: 36px 0 12px;
}

.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 14px;
    border-radius: var(--radius-pill);
    background: var(--surface);
    color: var(--ink-soft);
    font-weight: 600;
    font-size: 0.92rem;
    box-shadow: 0 4px 12px -6px rgba(200, 178, 255, 0.4);
    transition: transform 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

.pagination .page-numbers:hover {
    color: var(--ink);
    transform: translateY(-1px);
    text-shadow: none;
}

.pagination .page-numbers.current {
    background: var(--gradient-warm);
    color: #fff;
    box-shadow: 0 8px 18px -8px rgba(247, 143, 177, 0.55);
}

.pagination .page-numbers.dots {
    background: transparent;
    box-shadow: none;
}

/* ===== ФОРМЫ ===== */

input[type="text"],
input[type="email"],
input[type="search"],
input[type="url"],
input[type="tel"],
textarea,
select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.85);
    box-shadow: inset 0 2px 6px rgba(200, 178, 255, 0.10);
    font-family: inherit;
    font-size: 1rem;
    color: var(--ink);
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--accent-rose);
    box-shadow: 0 0 0 3px rgba(247, 143, 177, 0.18), inset 0 2px 6px rgba(200, 178, 255, 0.10);
}

label {
    display: block;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--ink-soft);
    margin-bottom: 6px;
}

/* Поиск */
.search-form {
    display: flex;
    gap: 8px;
    align-items: stretch;
}

.search-form input[type="search"] {
    flex: 1;
}

.search-form button {
    padding: 0 22px;
    border-radius: var(--radius-button);
    border: none;
    background: var(--gradient-warm);
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 8px 22px -10px rgba(247, 143, 177, 0.55);
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.search-form button:hover {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), 0 0 22px rgba(255, 181, 154, 0.6);
    transform: translateY(-1px);
}

/* ===== КОММЕНТАРИИ ===== */

.comments-area {
    margin-top: 36px;
    padding: 28px 32px;
    background: var(--surface);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-sticker);
}

.comments-title {
    margin-top: 0;
}

.comment-list {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
}

.comment-list li {
    margin: 14px 0;
    padding: 16px 18px;
    background: var(--bg-soft);
    border-radius: 14px;
}

.comment-list li ul.children {
    list-style: none;
    margin: 12px 0 0;
    padding-left: 18px;
    border-left: 2px solid var(--line);
}

.comment-meta {
    font-size: 0.86rem;
    color: var(--ink-mute);
    margin-bottom: 6px;
}

.comment-author {
    font-weight: 600;
    color: var(--ink);
    margin-right: 8px;
}

.comment-form-comment textarea {
    min-height: 110px;
    resize: vertical;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.form-submit input[type="submit"] {
    display: inline-block;
    padding: 12px 28px;
    border-radius: var(--radius-button);
    border: none;
    background: var(--gradient-warm);
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 8px 22px -10px rgba(247, 143, 177, 0.55);
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.form-submit input[type="submit"]:hover {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), 0 0 22px rgba(255, 181, 154, 0.6);
    transform: translateY(-1px);
}

/* ===== 404 ===== */

.error-404 {
    text-align: center;
    padding: 80px 24px;
    background: var(--surface);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-sticker);
}

.error-404 h1 {
    font-size: 5rem;
    margin: 0 0 8px;
    background: var(--gradient-warm);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.error-404 p {
    color: var(--ink-soft);
    max-width: 520px;
    margin: 0 auto 24px;
}

.error-404 .search-form {
    max-width: 460px;
    margin: 0 auto 18px;
}

/* ===== ПОДВАЛ ===== */

.site-footer {
    margin-top: auto;
    background: linear-gradient(180deg, transparent 0%, rgba(244, 236, 224, 0.8) 100%);
    padding: 56px 0 24px;
    border-top: 1px solid var(--line);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 36px;
    margin-bottom: 36px;
}

.footer-col .widget {
    background: transparent;
    box-shadow: none;
    padding: 0;
    margin-bottom: 0;
}

.footer-col .widget-title {
    color: var(--ink);
}

.footer-col p {
    color: var(--ink-soft);
    font-size: 0.95rem;
}

.footer-col li a {
    color: var(--ink-soft);
}

.footer-col li a:hover {
    color: var(--accent-rose);
}

.site-credit {
    border-top: 1px dashed var(--line);
    padding-top: 18px;
    text-align: center;
    color: var(--ink-mute);
    font-size: 0.88rem;
}

/* ===== COOKIE-БАННЕР ===== */

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

.cookie-banner {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 99;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 16px 22px;
    background: var(--surface);
    border-radius: 18px;
    box-shadow: 0 22px 46px -16px rgba(200, 178, 255, 0.55), 0 8px 18px -6px rgba(247, 143, 177, 0.25);
    border: 1px solid var(--line);
    flex-wrap: wrap;
    max-width: 980px;
    margin: 0 auto;
}

.cookie-banner p {
    margin: 0;
    color: var(--ink-soft);
    font-size: 0.92rem;
    flex: 1;
    min-width: 240px;
}

.cookie-banner button {
    padding: 10px 22px;
    border-radius: var(--radius-button);
    border: none;
    background: var(--gradient-warm);
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 8px 18px -8px rgba(247, 143, 177, 0.45);
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.cookie-banner button:hover {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), 0 0 22px rgba(255, 181, 154, 0.6);
    transform: translateY(-1px);
}

/* ===== АДАПТИВ ===== */

@media (max-width: 960px) {
    .layout.has-aside,
    .layout.no-aside {
        grid-template-columns: 1fr;
    }

    .site-aside {
        position: static;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .single-content,
    .page-content {
        padding: 28px 26px 32px;
    }

    .feature-block {
        padding: 32px 28px;
    }

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

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

    h1 { font-size: 1.8rem; }
    .hero h1 { font-size: 1.7rem; }
    .entry-header h1 { font-size: 1.7rem; }

    .menu-toggle {
        display: block;
    }

    .primary-nav {
        position: fixed;
        top: 0; right: 0;
        width: min(82vw, 320px);
        height: 100vh;
        background: linear-gradient(160deg, rgba(255, 229, 218, 0.96) 0%, rgba(240, 225, 255, 0.96) 100%);
        backdrop-filter: blur(14px);
        padding: 80px 26px 26px;
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.6, 0.05, 0.3, 1);
        box-shadow: -16px 0 40px -12px rgba(200, 178, 255, 0.45);
        z-index: 90;
        margin-left: 0;
        overflow-y: auto;
    }

    .primary-nav.is-open {
        transform: translateX(0);
    }

    .primary-nav ul {
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
    }

    .primary-nav a {
        display: block;
        padding: 12px 16px;
        font-size: 1rem;
    }

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

    .feature-block {
        padding: 26px 22px;
    }

    .single-content,
    .page-content,
    .comments-area {
        padding: 22px 20px 26px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .cookie-banner {
        flex-direction: column;
        align-items: stretch;
        text-align: left;
    }

    .cookie-banner button {
        width: 100%;
    }

    .pagination .page-numbers {
        min-width: 36px;
        height: 36px;
        font-size: 0.85rem;
    }
}
