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

/* ==========================================================================
   Базовые сбросы и переменные
   ========================================================================== */
:root {
    --olympic-night: #0A1C3A;
    --olympic-night-2: #102a55;
    --pure-white: #FFFFFF;
    --ice-blue: #C5E0F4;
    --ice-blue-light: #E8F2FB;
    --gold: #D4AF37;
    --gold-soft: #E6C661;
    --silver: #B8C2CC;
    --bronze: #B08D57;
    --text-dark: #1a2030;
    --text-muted: #4a5568;
    --border-soft: rgba(10, 28, 58, 0.12);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: 'Helvetica Neue', 'Segoe UI', Tahoma, sans-serif;
    font-size: 16px;
    line-height: 1.65;
    color: var(--text-dark);
    background: var(--pure-white);
    background-image:
        repeating-linear-gradient(135deg, transparent 0 28px, rgba(10, 28, 58, 0.025) 28px 29px),
        repeating-linear-gradient(45deg, transparent 0 28px, rgba(10, 28, 58, 0.018) 28px 29px);
}

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

a {
    color: var(--olympic-night);
    text-decoration: underline;
    text-decoration-color: rgba(212, 175, 55, 0.5);
    text-underline-offset: 3px;
    transition: color 0.2s ease, text-decoration-color 0.2s ease;
}
a:hover { color: var(--gold); text-decoration-color: var(--gold); }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

h1, h2, h3, h4, h5, h6 {
    font-family: 'Helvetica Neue', 'Georgia', serif;
    color: var(--olympic-night);
    line-height: 1.2;
    margin: 0 0 0.7em;
    letter-spacing: 0.01em;
}
h1 { font-size: 2.2em; font-weight: 700; }
h2 { font-size: 1.7em; font-weight: 700; }
h3 { font-size: 1.3em; font-weight: 600; }

table {
    width: 100%;
    border-collapse: collapse;
    margin: 1em 0;
    border: 1px solid var(--border-soft);
}
th, td {
    padding: 10px 14px;
    border: 1px solid var(--border-soft);
    text-align: left;
}
th { background: var(--ice-blue-light); color: var(--olympic-night); font-weight: 600; }

blockquote {
    margin: 1.5em 0;
    padding: 1em 1.5em;
    border-left: 4px solid var(--gold);
    background: var(--ice-blue-light);
    font-style: italic;
}

code, pre {
    font-family: 'Menlo', 'Consolas', monospace;
    background: var(--ice-blue-light);
    padding: 0.15em 0.4em;
    border-radius: 3px;
    font-size: 0.92em;
}
pre { padding: 1em; overflow-x: auto; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.screen-reader-text {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* ==========================================================================
   Кнопки
   ========================================================================== */
.btn,
button.btn,
input[type="submit"].btn,
.wp-block-button__link {
    display: inline-block;
    padding: 11px 24px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.25s ease;
    border: 2px solid var(--gold);
    background: var(--olympic-night);
    color: var(--pure-white);
    line-height: 1.2;
}
.btn:hover {
    background: var(--gold);
    color: var(--olympic-night);
    text-decoration: none;
}

.btn-secondary {
    background: var(--ice-blue);
    color: var(--olympic-night);
    border: 2px solid var(--olympic-night);
}
.btn-secondary:hover {
    background: var(--olympic-night);
    color: var(--ice-blue);
}

input[type="submit"], button[type="submit"] {
    padding: 10px 22px;
    border-radius: 4px;
    border: 2px solid var(--gold);
    background: var(--olympic-night);
    color: var(--pure-white);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    letter-spacing: 0.04em;
}
input[type="submit"]:hover, button[type="submit"]:hover {
    background: var(--gold);
    color: var(--olympic-night);
}

input[type="text"], input[type="search"], input[type="email"], input[type="url"], textarea {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid var(--border-soft);
    border-radius: 4px;
    background: var(--pure-white);
    font-family: inherit;
    font-size: inherit;
    color: var(--text-dark);
}
input:focus, textarea:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
}

/* ==========================================================================
   Шапка
   ========================================================================== */
.site-header {
    background:
        radial-gradient(ellipse at center top, rgba(255,255,255,0.08) 0%, transparent 60%),
        linear-gradient(180deg, var(--olympic-night-2) 0%, var(--olympic-night) 100%);
    color: var(--pure-white);
    border-bottom: 3px solid var(--gold);
    position: relative;
    overflow: hidden;
}
.site-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        repeating-linear-gradient(60deg, transparent 0 50px, rgba(197, 224, 244, 0.04) 50px 51px);
    pointer-events: none;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 24px;
    gap: 20px;
    flex-wrap: wrap;
    position: relative;
}

.brand-row {
    display: flex;
    align-items: center;
    gap: 16px;
    text-decoration: none;
    color: var(--pure-white);
}
.brand-row:hover { color: var(--gold); text-decoration: none; }

.brand-logo {
    width: 56px;
    height: 56px;
    flex: 0 0 56px;
    display: block;
}

.brand-text { line-height: 1.2; }

.site-title {
    font-size: 1.25em;
    font-weight: 700;
    margin: 0;
    color: inherit;
    letter-spacing: 0.02em;
}
.site-description {
    font-size: 0.85em;
    margin: 4px 0 0;
    color: var(--ice-blue);
    opacity: 0.9;
    max-width: 480px;
}

/* Навигация */
.primary-nav { display: block; }
.primary-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 32px;
}
.primary-nav a {
    color: var(--pure-white);
    text-decoration: none;
    font-size: 0.95em;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 8px 2px;
    position: relative;
    transition: color 0.2s ease;
}
.primary-nav a::after {
    content: '';
    position: absolute;
    left: 0;
    right: 100%;
    bottom: 2px;
    height: 2px;
    background: var(--gold);
    transition: right 0.3s ease;
}
.primary-nav a:hover, .primary-nav .current-menu-item > a {
    color: var(--gold);
}
.primary-nav a:hover::after, .primary-nav .current-menu-item > a::after {
    right: 0;
}

/* Гамбургер */
.menu-toggle {
    display: none;
    background: transparent;
    border: 2px solid var(--gold);
    color: var(--pure-white);
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 4px;
    cursor: pointer;
    position: relative;
}
.menu-toggle .toggle-line {
    position: absolute;
    left: 9px;
    right: 9px;
    height: 2px;
    background: var(--pure-white);
    transition: transform 0.35s ease, top 0.35s ease, opacity 0.2s ease;
}
.menu-toggle .toggle-line:nth-child(1) { top: 13px; }
.menu-toggle .toggle-line:nth-child(2) { top: 21px; }
.menu-toggle .toggle-line:nth-child(3) { top: 29px; }

.menu-toggle.is-open .toggle-line:nth-child(1) {
    top: 21px;
    transform: rotate(45deg);
}
.menu-toggle.is-open .toggle-line:nth-child(2) {
    opacity: 0;
}
.menu-toggle.is-open .toggle-line:nth-child(3) {
    top: 21px;
    transform: rotate(-45deg);
}

/* ==========================================================================
   Хлебные крошки
   ========================================================================== */
.breadcrumbs {
    background: var(--ice-blue-light);
    border-bottom: 1px solid var(--border-soft);
    font-size: 0.88em;
    padding: 12px 0;
}
.breadcrumbs .container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}
.breadcrumbs a {
    color: var(--olympic-night);
    text-decoration: none;
}
.breadcrumbs a:hover { color: var(--gold); }
.breadcrumbs .bc-sep {
    color: var(--gold);
    opacity: 0.7;
}
.breadcrumbs span:last-child {
    color: var(--text-muted);
}

/* ==========================================================================
   Главный контент: layout
   ========================================================================== */
.site-main {
    padding: 40px 0 60px;
}

.content-wrap {
    display: flex;
    gap: 36px;
    align-items: flex-start;
}
.content-wrap .content-area { flex: 1 1 67%; min-width: 0; }
.content-wrap .sidebar { flex: 0 0 27%; }

.content-wide {
    width: 85%;
    margin: 0 auto;
    max-width: 1100px;
}

@media (max-width: 960px) {
    .content-wrap { flex-direction: column; }
    .content-wrap .content-area, .content-wrap .sidebar { flex: 1 1 auto; width: 100%; }
    .content-wide { width: 100%; }
}

/* ==========================================================================
   Категории и заголовки разделов
   ========================================================================== */
.section-title {
    margin: 0 0 28px;
    padding-bottom: 14px;
    position: relative;
    display: inline-block;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 3px;
    background: var(--gold);
}
.section-title.cat-history::after { background: var(--gold); }
.section-title.cat-results::after { background: var(--silver); }
.section-title.cat-facts::after { background: var(--bronze); }

/* ==========================================================================
   Карточки записей (правило A8 + A10)
   ========================================================================== */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin: 0 0 32px;
}
@media (max-width: 960px) {
    .posts-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .posts-grid { grid-template-columns: 1fr; }
}

.card {
    display: flex;
    flex-direction: column;
    background: var(--pure-white);
    border: 1px solid var(--border-soft);
    border-radius: 4px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(212, 175, 55, 0.28);
    border-color: var(--gold-soft);
}

.card-thumb {
    display: block;
    overflow: hidden;
    background: var(--ice-blue-light);
}
.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.05); }

.card-thumb-placeholder {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    background:
        linear-gradient(135deg, var(--olympic-night) 0%, var(--olympic-night-2) 100%);
    position: relative;
}
.card-thumb-placeholder::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: repeating-linear-gradient(45deg, transparent 0 20px, rgba(212,175,55,0.08) 20px 21px);
}

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

.card-meta {
    font-size: 0.82em;
    color: var(--text-muted);
    margin: 0 0 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}
.card-meta .sport-icon {
    display: inline-block;
    margin-right: 4px;
}
.card-meta a {
    color: var(--olympic-night);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s;
}
.card-meta a:hover { border-color: var(--gold); }

.card-title {
    font-size: 1.15em;
    margin: 0 0 12px;
    line-height: 1.3;
}
.card-title a {
    color: var(--olympic-night);
    text-decoration: none;
}
.card-title a:hover { color: var(--gold); }

.card-excerpt {
    color: var(--text-muted);
    font-size: 0.95em;
    margin-bottom: 18px;
    flex: 1;
}
.card-excerpt p {
    margin: 0 0 0.5em;
    background: none;
}
.card-excerpt p:last-child { margin-bottom: 0; }

.card-footer {
    margin-top: auto;
    padding-top: 8px;
}
.card .read-more {
    display: inline-block;
    color: var(--olympic-night);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.92em;
    letter-spacing: 0.04em;
    border-bottom: 2px solid var(--gold);
    padding-bottom: 2px;
    transition: color 0.2s ease, border-color 0.2s ease;
}
.card .read-more:hover { color: var(--gold); border-color: var(--olympic-night); }

/* Hero-карточка (первый пост на главной/блоге) */
.card-hero {
    grid-column: 1 / -1;
    flex-direction: row;
    min-height: 320px;
}
.card-hero .card-thumb-wrap {
    flex: 0 0 55%;
    position: relative;
    overflow: hidden;
    background: var(--olympic-night);
}
.card-hero .card-thumb-wrap a {
    display: block;
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
}
.card-hero .card-thumb-wrap img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.card-hero .card-thumb-wrap .card-thumb-placeholder {
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
}
.card-hero .card-body {
    padding: 36px 40px;
    justify-content: center;
}
.card-hero .card-title { font-size: 1.7em; }
.card-hero .card-excerpt { font-size: 1.05em; }

@media (max-width: 800px) {
    .card-hero { flex-direction: column; }
    .card-hero .card-thumb-wrap {
        flex: none;
        width: 100%;
        position: static;
    }
    .card-hero .card-thumb-wrap a {
        position: static;
    }
    .card-hero .card-thumb-wrap img {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
    }
    .card-hero .card-thumb-wrap .card-thumb-placeholder {
        height: auto;
        aspect-ratio: 16 / 9;
    }
    .card-hero .card-body { padding: 24px; }
    .card-hero .card-title { font-size: 1.4em; }
}

/* ==========================================================================
   Single post / Page
   ========================================================================== */
.post-single, .page-single {
    background: var(--pure-white);
    border: 1px solid var(--border-soft);
    border-radius: 4px;
    padding: 32px 36px;
    margin-bottom: 32px;
}
.post-single .post-thumbnail, .page-single .post-thumbnail {
    margin: -32px -36px 24px;
}
.post-single .post-thumbnail img, .page-single .post-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
}
.post-single .post-title, .page-single .page-title {
    margin: 0 0 14px;
}
.post-meta {
    color: var(--text-muted);
    font-size: 0.92em;
    margin-bottom: 22px;
    padding-bottom: 18px;
    border-bottom: 2px solid var(--gold);
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}
.post-content { font-size: 1.02em; }
.post-content p { margin: 0 0 1.1em; }
.post-content h2, .post-content h3 { margin-top: 1.5em; }

.post-tags {
    margin-top: 28px;
    padding-top: 18px;
    border-top: 1px dashed var(--border-soft);
    font-size: 0.92em;
}
.post-tags a {
    display: inline-block;
    padding: 3px 10px;
    border: 1px solid var(--olympic-night);
    border-radius: 3px;
    margin: 2px 4px 2px 0;
    text-decoration: none;
    color: var(--olympic-night);
    font-size: 0.88em;
}
.post-tags a:hover { background: var(--gold); border-color: var(--gold); color: var(--olympic-night); }

@media (max-width: 600px) {
    .post-single, .page-single { padding: 22px 20px; }
    .post-single .post-thumbnail, .page-single .post-thumbnail { margin: -22px -20px 18px; }
}

/* ==========================================================================
   Сайдбар и виджеты
   ========================================================================== */
.sidebar .widget {
    background: var(--pure-white);
    border: 1px solid var(--border-soft);
    border-radius: 4px;
    padding: 20px 22px;
    margin-bottom: 24px;
}
.widget-title {
    margin: 0 0 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--gold);
    font-size: 1.05em;
}
.sidebar .widget ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.sidebar .widget li {
    padding: 7px 0;
    border-bottom: 1px solid var(--border-soft);
}
.sidebar .widget li:last-child { border-bottom: none; }
.sidebar .widget a {
    text-decoration: none;
    color: var(--olympic-night);
}
.sidebar .widget a:hover { color: var(--gold); }

/* ==========================================================================
   Тематические блоки на главной
   ========================================================================== */
.theme-block {
    background: var(--pure-white);
    border: 1px solid var(--border-soft);
    border-left: 4px solid var(--gold);
    border-radius: 4px;
    padding: 36px 40px;
    margin-bottom: 36px;
}
.theme-block.tone-silver { border-left-color: var(--silver); }
.theme-block.tone-bronze { border-left-color: var(--bronze); }

.theme-block h2 { margin-top: 0; }

.feature-cols {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    margin-top: 22px;
}
@media (max-width: 800px) { .feature-cols { grid-template-columns: 1fr; } }

.feature-cols .feature {
    padding: 18px;
    background: var(--ice-blue-light);
    border-radius: 4px;
    transition: transform 0.25s ease;
}
.feature-cols .feature:hover { transform: translateY(-3px); }
.feature h3 { margin: 0 0 8px; font-size: 1.05em; }
.feature p { margin: 0; color: var(--text-muted); font-size: 0.95em; }
.feature .feature-icon {
    font-size: 1.6em;
    display: inline-block;
    margin-bottom: 6px;
}

/* Медальный счётчик */
.medal-counter {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-top: 24px;
}
.medal-col {
    text-align: center;
    padding: 24px 16px;
    border-radius: 4px;
    color: var(--olympic-night);
    position: relative;
    overflow: hidden;
}
.medal-col.gold { background: linear-gradient(135deg, #f5d877, #D4AF37); }
.medal-col.silver { background: linear-gradient(135deg, #e0e6ec, #B8C2CC); }
.medal-col.bronze { background: linear-gradient(135deg, #d4a373, #B08D57); color: var(--pure-white); }

.medal-num {
    font-size: 2.6em;
    font-weight: 700;
    display: block;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}
.medal-label {
    display: block;
    margin-top: 8px;
    font-size: 0.9em;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 600;
}

/* Шаги / список */
.olympic-steps {
    counter-reset: step;
    margin-top: 22px;
}
.olympic-steps .step {
    display: flex;
    gap: 18px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border-soft);
}
.olympic-steps .step:last-child { border-bottom: none; }
.olympic-steps .step::before {
    counter-increment: step;
    content: counter(step);
    flex: 0 0 44px;
    height: 44px;
    background: var(--olympic-night);
    color: var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1em;
}
.olympic-steps .step h3 { margin: 0 0 4px; }
.olympic-steps .step p { margin: 0; color: var(--text-muted); }

/* ==========================================================================
   Пагинация
   ========================================================================== */
.pagination {
    margin: 36px 0 0;
    text-align: center;
}
.pagination ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: inline-flex;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: center;
}
.pagination a, .pagination span {
    display: inline-block;
    min-width: 40px;
    padding: 9px 12px;
    border: 1px solid var(--border-soft);
    border-radius: 4px;
    text-decoration: none;
    color: var(--olympic-night);
    background: var(--pure-white);
    font-weight: 600;
    transition: all 0.2s ease;
}
.pagination a:hover {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--olympic-night);
}
.pagination .current {
    background: var(--olympic-night);
    border-color: var(--olympic-night);
    color: var(--gold);
}

/* ==========================================================================
   Комментарии
   ========================================================================== */
.comments-area {
    margin-top: 32px;
    padding: 28px 30px;
    background: var(--pure-white);
    border: 1px solid var(--border-soft);
    border-radius: 4px;
}
.comments-title { margin-top: 0; }
.comment-list { list-style: none; padding: 0; margin: 0 0 24px; }
.comment-list ol.children { list-style: none; padding-left: 30px; }
.comment-body {
    padding: 16px 0;
    border-bottom: 1px solid var(--border-soft);
}
.comment-list li:last-child > .comment-body { border-bottom: none; }
.comment-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}
.comment-header img {
    border-radius: 50%;
}
.comment-meta { line-height: 1.3; }
.comment-author { display: block; }
.comment-date { font-size: 0.85em; color: var(--text-muted); }
.comment-content { margin-left: 60px; }
.comment-reply { margin-left: 60px; margin-top: 6px; }
.comment-reply a {
    font-size: 0.86em;
    text-decoration: none;
    color: var(--olympic-night);
    border: 1px solid var(--olympic-night);
    border-radius: 3px;
    padding: 3px 10px;
    display: inline-block;
}
.comment-reply a:hover { background: var(--gold); border-color: var(--gold); }

.comment-form label {
    display: block;
    margin: 12px 0 4px;
    font-weight: 600;
}
.comment-form .form-submit { margin-top: 16px; }

/* ==========================================================================
   Поиск
   ========================================================================== */
.search-form {
    display: flex;
    gap: 8px;
}
.search-form .search-field {
    flex: 1;
}

/* ==========================================================================
   404
   ========================================================================== */
.error-404 {
    text-align: center;
    padding: 60px 20px;
}
.error-404 .error-code {
    font-size: 6em;
    color: var(--gold);
    line-height: 1;
    margin: 0;
    font-weight: 800;
}
.error-404 h1 {
    margin-top: 16px;
}
.error-404 .search-form {
    max-width: 460px;
    margin: 24px auto;
}

/* ==========================================================================
   Подвал
   ========================================================================== */
.site-footer {
    background:
        linear-gradient(180deg, var(--olympic-night) 0%, var(--olympic-night-2) 100%);
    color: var(--ice-blue);
    padding: 48px 0 0;
    margin-top: 60px;
    border-top: 3px solid var(--gold);
}
.site-footer a { color: var(--ice-blue); text-decoration: none; }
.site-footer a:hover { color: var(--gold); }

.footer-cols {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 36px;
    padding-bottom: 36px;
}
@media (max-width: 800px) {
    .footer-cols { grid-template-columns: 1fr; gap: 28px; }
}

.footer-cols .widget {
    background: transparent;
    border: none;
    padding: 0;
    margin: 0;
}
.footer-cols .widget-title {
    color: var(--pure-white);
    font-size: 1em;
    border-bottom-color: var(--gold);
    margin-bottom: 16px;
    padding-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.footer-cols .widget ul { list-style: none; margin: 0; padding: 0; }
.footer-cols .widget li {
    padding: 5px 0;
    border-bottom: none;
}

.site-info {
    border-top: 1px solid rgba(197, 224, 244, 0.15);
    padding: 22px 0;
    text-align: center;
    font-size: 0.88em;
    color: var(--ice-blue);
    opacity: 0.85;
}
.domain-link {
    display: inline-block;
    overflow: hidden;
    white-space: nowrap;
    border-right: 2px solid transparent;
    transition: border-color 0.2s ease;
}
.domain-link:hover {
    border-right-color: var(--gold);
    animation: typing 1.6s steps(20, end);
}
@keyframes typing {
    from { max-width: 0; }
    to { max-width: 250px; }
}

/* ==========================================================================
   Cookie banner (правило A11)
   ========================================================================== */
.cookie-banner[hidden] { display: none !important; }

.cookie-banner {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 9999;
    background: var(--olympic-night);
    color: var(--pure-white);
    padding: 18px 22px;
    border: 1px solid var(--gold);
    border-radius: 4px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
    max-width: 760px;
    margin: 0 auto;
}
.cookie-banner p { margin: 0; flex: 1; min-width: 220px; font-size: 0.92em; }
.cookie-banner .cookie-accept {
    background: var(--gold);
    color: var(--olympic-night);
    border: 2px solid var(--gold);
    padding: 9px 22px;
    font-weight: 700;
    border-radius: 4px;
    cursor: pointer;
    letter-spacing: 0.05em;
    transition: background 0.2s ease, color 0.2s ease;
}
.cookie-banner .cookie-accept:hover {
    background: transparent;
    color: var(--gold);
}

/* ==========================================================================
   Адаптив
   ========================================================================== */
@media (max-width: 960px) {
    .menu-toggle { display: inline-flex; }
    .primary-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--olympic-night);
        border-top: 1px solid var(--gold);
        padding: 10px 0;
        z-index: 100;
    }
    .primary-nav.is-open { display: block; }
    .primary-nav ul {
        flex-direction: column;
        gap: 0;
    }
    .primary-nav li {
        border-bottom: 1px solid rgba(197, 224, 244, 0.1);
    }
    .primary-nav li:last-child { border-bottom: none; }
    .primary-nav a {
        display: block;
        padding: 12px 24px;
    }
    .header-inner { flex-wrap: nowrap; }
    .brand-text { flex: 1; min-width: 0; }
    .site-title { font-size: 1.05em; }
    .site-description { display: none; }
}

@media (max-width: 600px) {
    h1 { font-size: 1.7em; }
    h2 { font-size: 1.4em; }
    .container { padding: 0 16px; }
    .site-main { padding: 28px 0 40px; }
    .theme-block { padding: 24px 22px; }
    .brand-logo { width: 44px; height: 44px; flex-basis: 44px; }
    .feature-cols, .medal-counter { gap: 14px; }
}
