/*
Theme Name: dds_rainiecosmetics.com
Theme URI: https://rainiecosmetics.com/
Author: Алина Воронцова
Author URI: https://rainiecosmetics.com/
Description: Тема для контентного сайта о гейминге, видеокартах, ПК-сборках и периферии с акцентом на эстетичные игровые и рабочие сетапы. Концепция «мягкий техно-уют».
Version: 1.1
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: rainie
*/

/* ---------- Токены темы ---------- */
:root {
    --bg-base: #FAF0F0;
    --bg-cream: #F9F6F0;
    --ink-deep: #1E2A32;
    --ink-soft: #4A5560;
    --accent-lavender: #B8A9FF;
    --accent-mint: #8BD3C7;
    --accent-peach: #FFD1B5;
    --line-soft: rgba(30, 42, 50, 0.08);
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-blur: blur(8px);
    --shadow-sm: 0 2px 10px rgba(30, 42, 50, 0.05);
    --shadow-md: 0 8px 30px rgba(30, 42, 50, 0.08);
    --shadow-glow: 0 0 12px rgba(184, 169, 255, 0.5);
    --grad-main: linear-gradient(135deg, #B8A9FF 0%, #FFD1B5 100%);
    --grad-mint: linear-gradient(135deg, #8BD3C7 0%, #B8A9FF 100%);
    --radius-sm: 14px;
    --radius-md: 22px;
    --radius-lg: 28px;
    --radius-pill: 40px;
    --font-body: 'Inter', 'Satoshi', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-head: 'Playfair Display', 'Neue Montreal', Georgia, serif;
    --font-mono: 'JetBrains Mono', 'SF Mono', Consolas, monospace;
}

/* ---------- Базовые сбросы и типографика ---------- */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.65;
    color: var(--ink-deep);
    background-color: var(--bg-base);
    background-image: radial-gradient(ellipse at top left, rgba(184, 169, 255, 0.08) 0%, transparent 50%),
                      radial-gradient(ellipse at bottom right, rgba(139, 211, 199, 0.07) 0%, transparent 55%);
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

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

h1 { font-size: 2.4rem; }
h2 { font-size: 1.9rem; }
h3 { font-size: 1.45rem; }
h4 { font-size: 1.2rem; }

p {
    margin: 0 0 1.1em;
    color: var(--ink-deep);
}

a {
    color: var(--ink-deep);
    text-decoration: none;
    background-image: linear-gradient(var(--accent-lavender), var(--accent-lavender));
    background-size: 0 2px;
    background-repeat: no-repeat;
    background-position: left bottom;
    transition: background-size 0.3s ease, color 0.2s ease;
}

a:hover, a:focus {
    background-size: 100% 2px;
    color: var(--ink-deep);
}

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

code, pre {
    font-family: var(--font-mono);
    font-size: 0.92em;
    background: rgba(184, 169, 255, 0.12);
    color: var(--ink-deep);
    padding: 0.15em 0.4em;
    border-radius: 6px;
}

pre {
    padding: 1em 1.2em;
    overflow-x: auto;
    border-radius: var(--radius-sm);
    border: 1px solid var(--line-soft);
}

blockquote {
    margin: 1.5em 0;
    padding: 1em 1.3em;
    border-left: 3px solid var(--accent-lavender);
    background: rgba(184, 169, 255, 0.08);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-style: italic;
}

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

/* ---------- Таблицы ---------- */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.2em 0;
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

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

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

/* ---------- Контейнер ---------- */
.wrap {
    width: 92%;
    max-width: 1240px;
    margin: 0 auto;
}

/* ---------- Header ---------- */
.site-header {
    padding: 22px 0;
    border-bottom: 1px solid var(--line-soft);
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
}

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

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    background: none;
    flex: 1 1 auto;
    min-width: 0;
}

.brand:hover { background: none; }

.brand-logo {
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    border-radius: 14px;
    object-fit: cover;
    display: block;
}

.brand-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.brand-name {
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 1.15rem;
    color: var(--ink-deep);
    line-height: 1.25;
    overflow: hidden;
    text-overflow: ellipsis;
}

.brand-tagline {
    font-size: 0.82rem;
    color: var(--ink-soft);
    line-height: 1.35;
    margin-top: 2px;
    max-width: 640px;
}

/* ---------- Основное меню ---------- */
.primary-nav {
    flex: 0 1 auto;
}

.menu-toggle {
    display: none;
    background: var(--grad-main);
    color: var(--ink-deep);
    border: none;
    padding: 9px 20px;
    border-radius: var(--radius-pill);
    font-family: var(--font-body);
    font-size: 0.95rem;
    cursor: pointer;
    font-weight: 500;
    box-shadow: var(--shadow-sm);
}

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

.primary-nav li a {
    display: inline-block;
    padding: 8px 16px;
    border-radius: var(--radius-pill);
    font-size: 0.95rem;
    color: var(--ink-deep);
    background: transparent;
    border: 1px solid transparent;
    transition: all 0.25s ease;
}

.primary-nav li a:hover,
.primary-nav li.current-menu-item a,
.primary-nav li.current_page_item a {
    background: rgba(184, 169, 255, 0.18);
    border-color: rgba(184, 169, 255, 0.4);
    background-size: 0;
}

/* ---------- Основной контейнер ---------- */
.site-main {
    flex: 1 0 auto;
    padding: 42px 0 60px;
}

.layout {
    display: grid;
    gap: 40px;
    grid-template-columns: minmax(0, 67%) minmax(0, 27%);
    justify-content: space-between;
}

.layout.no-sidebar {
    grid-template-columns: minmax(0, 85%);
    justify-content: center;
}

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

/* ---------- Хлебные крошки ---------- */
.crumbs {
    font-size: 0.88rem;
    color: var(--ink-soft);
    margin: 0 0 26px;
    padding: 10px 18px;
    background: var(--glass-bg);
    border-radius: var(--radius-pill);
    display: inline-block;
    border: 1px solid var(--line-soft);
}

.crumbs a {
    color: var(--ink-soft);
    background: none;
}

.crumbs a:hover {
    color: var(--ink-deep);
    background: none;
}

.crumbs .sep {
    margin: 0 8px;
    color: var(--accent-lavender);
}

/* ---------- Карточки записей ---------- */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 26px;
    margin: 0 0 36px;
}

.card {
    display: flex;
    flex-direction: column;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--line-soft);
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

.card-thumb img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

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

.card-meta {
    font-size: 0.78rem;
    color: var(--ink-soft);
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin: 0;
}

.card-meta a {
    color: var(--accent-lavender);
    background: none;
    font-weight: 500;
}

.card-meta a:hover {
    color: var(--ink-deep);
    background: none;
}

.card-title {
    margin: 0;
    font-size: 1.2rem;
    font-family: var(--font-head);
    font-weight: 600;
    line-height: 1.35;
}

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

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

.card-excerpt {
    color: var(--ink-soft);
    font-size: 0.94rem;
    line-height: 1.55;
    margin: 0;
    flex: 1;
}

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

.card-excerpt p:last-child {
    margin-bottom: 0;
}

.card-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    padding: 8px 0 0;
    font-size: 0.92rem;
    color: var(--ink-deep);
    font-weight: 500;
    background: none;
    align-self: flex-start;
}

.card-more:hover {
    background: none;
    color: var(--accent-lavender);
}

.card-more .arrow {
    display: inline-block;
    width: 16px;
    height: 1.5px;
    background: currentColor;
    position: relative;
    transition: width 0.25s ease;
}

.card-more .arrow::after {
    content: '';
    position: absolute;
    right: -1px;
    top: -3px;
    width: 7px;
    height: 7px;
    border-top: 1.5px solid currentColor;
    border-right: 1.5px solid currentColor;
    transform: rotate(45deg);
}

.card-more:hover .arrow {
    width: 28px;
}

/* ---------- Горизонтальная карточка (для списка) ---------- */
.card-row {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    min-height: 180px;
}

.card-row .card-thumb-wrap {
    flex: 0 0 280px;
    position: relative;
    overflow: hidden;
}

.card-row .card-thumb-wrap a {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: none;
}

.card-row .card-thumb-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.card-row .card-body {
    flex: 1;
}

/* ---------- Сайдбар ---------- */
.sidebar {
    min-width: 0;
}

.widget {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-radius: var(--radius-md);
    border: 1px solid var(--line-soft);
    padding: 22px 24px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
}

.widget-title {
    margin: 0 0 14px;
    font-size: 1.05rem;
    font-family: var(--font-head);
    font-weight: 600;
    color: var(--ink-deep);
    padding-bottom: 10px;
    border-bottom: 1px solid var(--line-soft);
    position: relative;
}

.widget-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 38px;
    height: 2px;
    background: var(--grad-main);
    border-radius: 2px;
}

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

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

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

.widget a {
    color: var(--ink-deep);
    background: none;
}

.widget a:hover {
    color: var(--accent-lavender);
    background: none;
}

/* ---------- Пагинация ---------- */
.pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
    margin: 42px 0 8px;
}

.pagination a,
.pagination 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(--line-soft);
    font-size: 0.92rem;
    color: var(--ink-deep);
    background: var(--glass-bg);
    transition: all 0.25s ease;
}

.pagination a:hover {
    background: rgba(184, 169, 255, 0.2);
    border-color: var(--accent-lavender);
    background-size: 0;
}

.pagination .current {
    background: var(--grad-main);
    border-color: transparent;
    font-weight: 600;
    box-shadow: var(--shadow-sm);
}

/* ---------- Одиночная запись / страница ---------- */
.entry-header {
    margin-bottom: 30px;
}

.entry-title {
    margin: 0 0 12px;
    font-size: 2.2rem;
    line-height: 1.2;
}

.entry-meta {
    font-size: 0.88rem;
    color: var(--ink-soft);
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
}

.entry-meta a {
    color: var(--accent-lavender);
    background: none;
}

.entry-thumb {
    margin: 0 0 30px;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--line-soft);
}

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

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

.entry-content h2,
.entry-content h3 {
    margin-top: 1.6em;
}

.entry-content img {
    border-radius: var(--radius-sm);
    margin: 1em 0;
}

.entry-footer {
    margin-top: 36px;
    padding-top: 22px;
    border-top: 1px solid var(--line-soft);
    font-size: 0.9rem;
    color: var(--ink-soft);
}

.entry-footer a {
    color: var(--accent-lavender);
    background: none;
}

/* ---------- Комментарии ---------- */
.comments-section {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--line-soft);
}

.comments-title {
    margin: 0 0 22px;
    font-size: 1.4rem;
}

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

.comment-list li {
    margin-bottom: 18px;
}

.comment-list .children {
    list-style: none;
    padding-left: 30px;
    margin-top: 18px;
}

.comment-body {
    background: var(--glass-bg);
    border-radius: var(--radius-md);
    padding: 18px 22px;
    border: 1px solid var(--line-soft);
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 14px;
    align-items: start;
}

.comment-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    background: #1E2A32;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.comment-head {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: baseline;
    margin-bottom: 6px;
    font-size: 0.88rem;
}

.comment-author {
    font-weight: 600;
    color: var(--ink-deep);
}

.comment-date {
    color: var(--ink-soft);
    font-size: 0.82rem;
}

.comment-text p {
    margin: 0 0 0.4em;
}

.comment-text p:last-child {
    margin-bottom: 0;
}

.comment-reply {
    margin-top: 8px;
}

.comment-reply a {
    font-size: 0.82rem;
    color: var(--accent-lavender);
    background: none;
}

.comment-form {
    background: var(--glass-bg);
    border-radius: var(--radius-md);
    padding: 24px 26px;
    border: 1px solid var(--line-soft);
}

.comment-form p {
    margin: 0 0 14px;
}

.comment-form label {
    display: block;
    font-size: 0.88rem;
    margin-bottom: 6px;
    color: var(--ink-deep);
    font-weight: 500;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--ink-deep);
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: var(--accent-lavender);
    box-shadow: 0 0 0 3px rgba(184, 169, 255, 0.15);
}

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

/* ---------- Кнопки ---------- */
.btn,
.comment-form input[type="submit"],
.wp-block-search__button,
input[type="submit"],
button.search-submit {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 26px;
    border-radius: var(--radius-pill);
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--ink-deep);
    background: var(--glass-bg);
    border: 1px solid var(--accent-lavender);
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.25s ease, background 0.25s ease;
    text-decoration: none;
    background-image: none;
}

.btn:hover,
.comment-form input[type="submit"]:hover,
input[type="submit"]:hover,
button.search-submit:hover {
    background: var(--grad-main);
    box-shadow: var(--shadow-glow);
    background-size: auto;
}

.btn:active,
.comment-form input[type="submit"]:active,
input[type="submit"]:active {
    transform: scale(0.98);
}

.btn-ghost {
    background: transparent;
    border-color: var(--line-soft);
}

/* ---------- Форма поиска ---------- */
.search-form {
    display: flex;
    gap: 8px;
    align-items: center;
}

.search-form input[type="search"] {
    flex: 1;
    padding: 10px 16px;
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-pill);
    font-family: var(--font-body);
    font-size: 0.94rem;
    background: #fff;
    color: var(--ink-deep);
    min-width: 0;
}

.search-form input[type="search"]:focus {
    outline: none;
    border-color: var(--accent-lavender);
    box-shadow: 0 0 0 3px rgba(184, 169, 255, 0.15);
}

/* ---------- Главная ---------- */
.home-hero {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-lg);
    padding: 52px 44px;
    margin-bottom: 44px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.home-hero::before {
    content: '';
    position: absolute;
    top: -60px;
    right: -60px;
    width: 220px;
    height: 220px;
    background: var(--grad-main);
    filter: blur(70px);
    opacity: 0.4;
    border-radius: 50%;
    z-index: 0;
}

.home-hero::after {
    content: '';
    position: absolute;
    bottom: -80px;
    left: -40px;
    width: 200px;
    height: 200px;
    background: var(--grad-mint);
    filter: blur(70px);
    opacity: 0.3;
    border-radius: 50%;
    z-index: 0;
}

.home-hero > * {
    position: relative;
    z-index: 1;
}

.home-hero .eyebrow {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent-lavender);
    padding: 5px 14px;
    border: 1px solid var(--accent-lavender);
    border-radius: var(--radius-pill);
    margin-bottom: 18px;
}

.home-hero h1 {
    font-size: 2.8rem;
    margin: 0 0 18px;
    max-width: 720px;
}

.home-hero p.lead {
    font-size: 1.1rem;
    color: var(--ink-soft);
    max-width: 620px;
    margin: 0 0 24px;
    line-height: 1.6;
}

/* ---------- Тематические блоки главной ---------- */
.section {
    margin: 0 0 54px;
}

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

.section-head h2 {
    margin: 0;
    font-size: 1.75rem;
}

.section-head .section-sub {
    color: var(--ink-soft);
    font-size: 0.95rem;
    max-width: 480px;
    margin: 0;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 22px;
}

.feature-card {
    background: var(--glass-bg);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-md);
    padding: 26px 24px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.feature-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    background: var(--grad-main);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    color: var(--ink-deep);
}

.feature-icon svg {
    width: 28px;
    height: 28px;
}

.feature-card h3 {
    margin: 0 0 8px;
    font-size: 1.15rem;
}

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

/* ---------- Раздел «Сетап недели» — 3D-слайдер ---------- */
.setup-slider {
    background: var(--glass-bg);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-lg);
    padding: 36px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.setup-slider-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 14px;
}

.setup-slider-head h2 {
    margin: 0;
    font-size: 1.65rem;
}

.slider-track {
    perspective: 1200px;
    position: relative;
    min-height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-slide {
    position: absolute;
    width: 72%;
    max-width: 640px;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--grad-main);
    padding: 36px 32px;
    color: var(--ink-deep);
    transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.5s ease;
    opacity: 0;
    pointer-events: none;
    box-shadow: var(--shadow-md);
}

.slider-slide.is-prev {
    transform: translateX(-62%) scale(0.85) rotateY(18deg);
    opacity: 0.55;
    pointer-events: auto;
}

.slider-slide.is-active {
    transform: translateX(0) scale(1) rotateY(0);
    opacity: 1;
    pointer-events: auto;
    z-index: 2;
}

.slider-slide.is-next {
    transform: translateX(62%) scale(0.85) rotateY(-18deg);
    opacity: 0.55;
    pointer-events: auto;
}

.slider-slide h3 {
    margin: 0 0 8px;
    font-size: 1.5rem;
}

.slider-slide p {
    margin: 0;
    font-size: 0.95rem;
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}

.slider-dots button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: var(--line-soft);
    cursor: pointer;
    padding: 0;
    transition: all 0.25s ease;
}

.slider-dots button.is-active {
    background: var(--accent-lavender);
    width: 26px;
    border-radius: 10px;
}

/* ---------- Footer ---------- */
.site-footer {
    background: #111820;
    color: #E6E8EA;
    padding: 50px 0 26px;
    margin-top: 40px;
    border-top: 1px solid rgba(184, 169, 255, 0.2);
}

.site-footer a {
    color: #E6E8EA;
    background: none;
}

.site-footer a:hover {
    color: var(--accent-lavender);
    background: none;
}

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

.site-footer .widget {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 22px 22px;
    box-shadow: none;
    margin-bottom: 0;
}

.site-footer .widget-title {
    color: #fff;
    border-bottom-color: rgba(255, 255, 255, 0.12);
}

.site-footer .widget-title::after {
    background: var(--grad-main);
}

.site-footer .widget li {
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

.site-footer .widget p {
    color: #CBD0D6;
    font-size: 0.92rem;
}

.site-copy {
    text-align: center;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.86rem;
    color: #A8ADB3;
}

/* ---------- Cookie-баннер ---------- */
.cookie-bar {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 999;
    background: var(--ink-deep);
    color: #F0F2F4;
    border-radius: var(--radius-md);
    padding: 16px 22px;
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
    flex-wrap: wrap;
    border: 1px solid rgba(184, 169, 255, 0.3);
}

.cookie-bar.is-shown {
    display: flex;
}

.cookie-bar p {
    margin: 0;
    font-size: 0.92rem;
    flex: 1;
    color: #F0F2F4;
    min-width: 220px;
}

.cookie-bar a {
    color: var(--accent-lavender);
    background: none;
}

.cookie-bar button {
    background: var(--grad-main);
    color: var(--ink-deep);
    border: none;
    padding: 10px 24px;
    border-radius: var(--radius-pill);
    font-size: 0.92rem;
    font-weight: 500;
    cursor: pointer;
    font-family: var(--font-body);
    transition: box-shadow 0.25s ease, transform 0.15s ease;
}

.cookie-bar button:hover {
    box-shadow: var(--shadow-glow);
}

.cookie-bar button:active {
    transform: scale(0.98);
}

/* ---------- 404 ---------- */
.not-found {
    text-align: center;
    padding: 40px 20px;
    max-width: 620px;
    margin: 0 auto;
}

.not-found h1 {
    font-size: 4.5rem;
    margin: 0 0 12px;
    background: var(--grad-main);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

.not-found p {
    color: var(--ink-soft);
    font-size: 1.05rem;
    margin-bottom: 26px;
}

.not-found .search-form {
    margin: 0 auto 24px;
    max-width: 440px;
}

/* ---------- WordPress служебные классы ---------- */
.alignleft { float: left; margin: 0.3em 1.2em 1em 0; }
.alignright { float: right; margin: 0.3em 0 1em 1.2em; }
.aligncenter { display: block; margin: 1em auto; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 0.88rem; color: var(--ink-soft); text-align: center; margin-top: 6px; }
.screen-reader-text {
    position: absolute !important;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    width: 1px;
    overflow: hidden;
    word-wrap: normal !important;
}
.sticky, .gallery-caption, .bypostauthor { /* required WP classes */ }
.post-password-form label { display: block; margin: 0 0 10px; }

/* ---------- Адаптив ---------- */
@media (max-width: 960px) {
    .layout,
    .layout.no-sidebar {
        grid-template-columns: minmax(0, 100%);
    }

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

    .home-hero {
        padding: 42px 30px;
    }

    .home-hero h1 {
        font-size: 2.2rem;
    }

    .slider-slide.is-prev,
    .slider-slide.is-next {
        opacity: 0;
        pointer-events: none;
    }

    .slider-slide {
        width: 90%;
    }
}

@media (max-width: 600px) {
    h1 { font-size: 1.9rem; }
    h2 { font-size: 1.55rem; }

    .site-main {
        padding: 28px 0 40px;
    }

    .header-inner {
        gap: 14px;
    }

    .brand-tagline {
        display: none;
    }

    .menu-toggle {
        display: inline-block;
    }

    .primary-nav {
        width: 100%;
        order: 10;
    }

    .primary-nav ul {
        display: none;
        flex-direction: column;
        gap: 4px;
        padding: 14px 0 2px;
        width: 100%;
    }

    .primary-nav ul li {
        width: 100%;
    }

    .primary-nav ul li a {
        display: block;
        width: 100%;
    }

    .primary-nav.is-open ul {
        display: flex;
    }

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

    .home-hero {
        padding: 32px 22px;
    }

    .home-hero h1 {
        font-size: 1.85rem;
    }

    .setup-slider {
        padding: 22px 18px;
    }

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

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

    .card-row .card-thumb-wrap {
        flex: none;
        width: 100%;
        position: static;
    }

    .card-row .card-thumb-wrap a {
        position: static;
    }

    .card-row .card-thumb-wrap img {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
    }

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

    .comment-body {
        grid-template-columns: 40px 1fr;
    }

    .comment-list .children {
        padding-left: 14px;
    }
}
