/*
Theme Name: hockeychooser
Theme URI: https://sergeiermilov.com/
Author: Sergei Ermilov
Author URI: https://sergeiermilov.com/about/
Description: Grid CSS Theme.
Tags: blog, one-column
Version: 1.0.1
Requires at least: 5.0
Tested up to: 5.4
Requires PHP: 7.4
Text Domain: hockeychooser
*/

html {
    scroll-behavior: smooth;
}

/* ==========================================================================
   1. Базовый сброс и общие настройки
   ========================================================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, system-ui, Helvetica, Arial, sans-serif;
    line-height: 1.5;
    color: #1a1a1a;
    background-color: #ffffff;
    -webkit-font-smoothing: antialiased;
}

img,
svg {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
}

/* ==========================================================================
   2. Общий контейнер сетки
   ========================================================================== */
.container {
    width: 100%;
    max-width: 1200px;
    margin-inline: auto;
    padding-inline: 16px;
}

/* ==========================================================================
   3. Логотип бренда (переиспользуемый блок)
   ========================================================================== */
.brand-logo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.brand-logo__text {
    font-weight: 700;
    font-size: 1.25rem;
}

.logo-color {
    color: #5690DC;
}

.main-color {
    color: #305CDE; /* Поменяете на ваш фирменный акцентный цвет #0d6efd */
}

/* ==========================================================================
   4. Страница 404 (404.php)
   ========================================================================== */
.error-404 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    align-items: center;
    min-height: 70vh;
    padding-block: 48px;
}

.error-404__brand {
    margin-bottom: 24px;
}

.error-404__text p {
    margin-top: 0;
    margin-bottom: 16px;
}

.error-404__text a {
    color: #0d6efd;
    text-decoration: underline;
}

.error-404__image {
    justify-self: center;
}

@media (min-width: 768px) {
    .error-404 {
        /* Повторяем логику вашей старой сетки (4 колонки текст + 3 колонки картинка по центру) */
        grid-template-columns: minmax(0, 420px) auto;
        justify-content: center;
        gap: 48px;
        padding-block: 80px;
    }

    .error-404__brand {
        margin-bottom: 36px;
    }
}

/* ==========================================================================
   5. Шапка сайта и навигация (header.php)
   ========================================================================== */
.site-header {
    background-color: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    position: relative;
    z-index: 100;
}

.site-header__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    min-height: 64px;
    padding-block: 10px;
}

/* Кнопка мобильного меню (бургер) */
.nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    padding: 8px;
    background: transparent;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    cursor: pointer;
}

.nav-toggle__line {
    display: block;
    width: 100%;
    height: 2px;
    background-color: #1a1a1a;
}

/* Мобильное меню по умолчанию скрыто */
.site-nav {
    display: none;
    width: 100%;
    padding-top: 16px;
    border-top: 1px solid #f0f0f0;
    margin-top: 10px;
}

.site-nav.is-open {
    display: block;
}

.nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.nav-list a,
.nav-dropdown__toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 8px 12px;
    border: none;
    border-radius: 6px;
    background: transparent;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 500;
    color: inherit;
    cursor: pointer;
    text-align: left;
    transition: background-color 0.15s ease;
}

.nav-list a:hover,
.nav-dropdown__toggle:hover {
    background-color: #f3f4f6;
}

/* Выпадающее подменю Choice by */
.nav-dropdown {
    position: relative;
}

.nav-dropdown__toggle::after {
    content: "";
    display: inline-block;
    width: 0;
    height: 0;
    margin-left: 6px;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid currentColor;
}

.nav-dropdown__menu {
    display: none;
    list-style: none;
    margin: 4px 0 4px 16px;
    padding: 4px 0;
    border-left: 2px solid #e5e7eb;
}

.nav-dropdown.is-open > .nav-dropdown__menu {
    display: block;
}

/* Иконка поиска */
.site-nav__actions {
    padding: 8px 12px 0;
}

.search-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    fill: #1a1a1a;
}

/* Десктопная версия меню (от 768px) */
@media (min-width: 768px) {
    .nav-toggle {
        display: none;
    }

    .site-nav {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: 16px;
        width: auto;
        flex: 1;
        margin-top: 0;
        padding-top: 0;
        border-top: none;
    }

    .nav-list {
        flex-direction: row;
        align-items: center;
        gap: 4px;
    }

    .nav-list a,
    .nav-dropdown__toggle {
        width: auto;
    }

    .nav-dropdown__menu {
        position: absolute;
        top: 100%;
        left: 0;
        min-width: 170px;
        margin: 4px 0 0;
        padding: 6px;
        background-color: #ffffff;
        border: 1px solid #e5e7eb;
        border-radius: 8px;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
        z-index: 200;
    }

    .nav-dropdown:hover > .nav-dropdown__menu,
    .nav-dropdown.is-open > .nav-dropdown__menu {
        display: block;
    }

    .site-nav__actions {
        padding: 0;
    }
}

/* ==========================================================================
   6. Подвал сайта (footer.php)
   ========================================================================== */
.site-footer {
    background-color: #f8f9fa;
    border-top: 1px solid #e5e7eb;
    padding-block: 24px;
    margin-top: 48px;
}

.site-footer__inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    align-items: center;
    text-align: center;
}

.site-footer__links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
}

.site-footer__links a:hover {
    text-decoration: underline;
}

.site-footer__logo a {
    display: inline-flex;
}

@media (min-width: 768px) {
    .site-footer__inner {
        grid-template-columns: 1fr auto 1fr;
        text-align: left;
    }

    .site-footer__links {
        justify-content: flex-start;
    }

    .site-footer__logo {
        justify-self: center;
    }

    .site-footer__copy {
        justify-self: end;
    }
}
/* ==========================================================================
   7. Архивы и сетка карточек постов (archive.php)
   ========================================================================== */
.archive-header {
    padding-block: 40px;
    text-align: center;
}

.archive-header__title {
    margin: 0 0 12px;
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 800;
    line-height: 1.2;
}

.archive-header__desc {
    max-width: 720px;
    margin-inline: auto;
    color: #4b5563;
}

.archive-header__paged {
    margin: 0;
    color: #6b7280;
}

/* Адаптивная сетка карточек (1 колонка -> 3 на планшетах -> 4 на десктопе) */
.posts-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: 48px;
}

@media (min-width: 768px) {
    .posts-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 32px 24px;
    }
}

@media (min-width: 992px) {
    .posts-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

/* Карточка поста */
.post-card {
    display: flex;
    flex-direction: column;
}

.post-card__thumb {
    margin-bottom: 12px;
    overflow: hidden;
    border-radius: 12px;
}

.post-card__img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 12px;
    transition: transform 0.2s ease;
}

.post-card__thumb a:hover .post-card__img {
    transform: scale(1.03);
}

.post-card__date {
    font-size: 0.85rem;
    color: #6b7280;
    margin-bottom: 6px;
}

.post-card__title {
    margin: 0 0 8px;
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.35;
}

.post-card__title a:hover {
    color: #0d6efd;
}

.post-card__meta {
    font-size: 0.85rem;
    margin-bottom: 8px;
}

.hc-color {
    color: #0d6efd;
}

.post-card__read-time {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: #4b5563;
}

/* Пагинация (нативная WordPress the_posts_pagination) */
.navigation.pagination {
    display: flex;
    justify-content: center;
    margin-block: 36px;
}

.navigation.pagination .nav-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding-inline: 12px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-weight: 500;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

a.page-numbers:hover {
    background-color: #f3f4f6;
}

.page-numbers.current {
    background-color: #0d6efd;
    border-color: #0d6efd;
    color: #ffffff;
}

.page-numbers.dots {
    border-color: transparent;
    min-width: auto;
    padding-inline: 4px;
}

/* ==========================================================================
   8. Страница всех команд (teams)
   ========================================================================== */
.teams-header {
    padding-block: 40px 28px;
    text-align: center;
}

.teams-header__title {
    margin: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 800;
}

.teams-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(105px, 1fr));
    gap: 20px;
    padding-bottom: 48px;
}

@media (min-width: 768px) {
    .teams-grid {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
        gap: 28px;
    }
}

.team-card {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1 / 1;
    padding: 14px;
    border: 1px solid #f0f0f0;
    border-radius: 14px;
    background-color: #ffffff;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.team-card:hover {
    transform: translateY(-3px);
    border-color: #e5e7eb;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

.team-card__logo {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
/* ==========================================================================
   9. Страница подбора команд по цвету и общие узкие страницы
   ========================================================================== */
.narrow-container {
    max-width: 820px;
}

.page-header {
    padding-block: 32px 16px;
}

.page-header__title {
    margin: 0;
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 800;
}

.color-summary {
    margin-bottom: 32px;
    font-size: 1.05rem;
}

.color-summary p {
    margin: 0;
}

.color-swatch {
    display: inline-block;
    width: 14px;
    height: 14px;
    border-radius: 4px;
    border: 1px solid rgba(0, 0, 0, 0.2);
    vertical-align: -2px;
    margin-inline: 4px 2px;
}

.color-teams-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 16px;
    margin-bottom: 36px;
}

@media (min-width: 768px) {
    .color-teams-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 28px 20px;
    }
}

@media (min-width: 992px) {
    .color-teams-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.color-team-item__link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
    padding: 12px;
    border-radius: 12px;
    transition: background-color 0.15s ease, transform 0.15s ease;
}

.color-team-item__link:hover {
    background-color: #f8f9fa;
    transform: translateY(-2px);
}

.color-team-item__link img {
    width: 110px;
    height: 110px;
    object-fit: contain;
}

.color-team-item__name {
    font-weight: 600;
    font-size: 0.95rem;
}

.page-actions {
    padding-bottom: 48px;
}

.btn-dark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #ffffff;
    background-color: #1a1a1a;
    border-radius: 8px;
    transition: background-color 0.15s ease;
}

.btn-dark:hover {
    background-color: #374151;
}

/* ==========================================================================
   10. Комментарии и форма отправки (comments.php)
   ========================================================================== */
.comments-area {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid #e5e7eb;
}

.comments-title,
.comment-reply-title {
    margin: 0 0 20px;
    font-size: 1.35rem;
    font-weight: 700;
}

.comment-list {
    list-style: none;
    margin: 0 0 32px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.comment-list .children {
    list-style: none;
    margin-top: 16px;
    padding-left: 24px;
    border-left: 2px solid #e5e7eb;
}

.comment-navigation {
    display: flex;
    justify-content: space-between;
    margin-block: 16px;
    font-size: 0.9rem;
}

.comment-notes {
    margin: 0 0 20px;
    font-size: 0.9rem;
    color: #6b7280;
}

.comment-form {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

@media (min-width: 768px) {
    .comment-form {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .comment-notes,
    .form-field--full,
    .comment-form-cookies-consent,
    .form-submit {
        grid-column: 1 / -1;
    }
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-field__label {
    font-size: 0.9rem;
    font-weight: 600;
}

.form-field__label .required {
    color: #dc2626;
}

.form-field__input {
    width: 100%;
    padding: 10px 12px;
    font-family: inherit;
    font-size: 1rem;
    color: #1a1a1a;
    background-color: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-field__input:focus {
    outline: none;
    border-color: #0d6efd;
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.15);
}

.comment-form-cookies-consent {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 0;
    font-size: 0.9rem;
    color: #4b5563;
}

.comment-form-cookies-consent input[type="checkbox"] {
    margin-top: 4px;
}

.form-submit {
    margin: 4px 0 0;
}

.comment-form__submit {
    border: none;
    cursor: pointer;
    padding: 10px 20px;
    font-size: 0.95rem;
}

/* ==========================================================================
   11. Обычные страницы (page.php) и базовый контент статьи (.entry-content)
   ========================================================================== */
.page-banner {
    background-color: #f8f9fa;
    border-bottom: 1px solid #e5e7eb;
    padding-block: 32px;
    margin-bottom: 36px;
}

@media (min-width: 768px) {
    .page-banner {
        padding-block: 48px;
        margin-bottom: 48px;
    }
}

.page-banner__title {
    margin: 0;
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 800;
    line-height: 1.2;
}

.entry-content {
    font-size: 1.05rem;
    line-height: 1.7;
    padding-bottom: 48px;
}

.entry-content > *:first-child {
    margin-top: 0;
}

.entry-content p {
    margin-top: 0;
    margin-bottom: 1.25em;
}

.entry-content h2 {
    margin-top: 2em;
    margin-bottom: 0.75em;
    font-size: 1.6rem;
    font-weight: 800;
    line-height: 1.3;
}

.entry-content h3 {
    margin-top: 1.6em;
    margin-bottom: 0.6em;
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1.35;
}

.entry-content ul,
.entry-content ol {
    margin-top: 0;
    margin-bottom: 1.25em;
    padding-left: 1.5em;
}

.entry-content li {
    margin-bottom: 0.45em;
}

.entry-content a {
    color: #0d6efd;
    text-decoration: underline;
}

.entry-content img {
    border-radius: 12px;
    margin-block: 20px;
}

/* Таблицы внутри контента */
.entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin-block: 24px;
    font-size: 0.95rem;
}

.entry-content th,
.entry-content td {
    padding: 12px 14px;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

.entry-content th {
    font-weight: 700;
    background-color: #f8f9fa;
}
/* ==========================================================================
   12. Хлебные крошки и страница сочетаний цветов (page-colors.php)
   ========================================================================== */
.breadcrumbs {
    margin-bottom: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #6b7280;
}

.breadcrumbs a:hover {
    color: #0d6efd;
    text-decoration: underline;
}

.colors-header {
    padding-block: 32px 24px;
}

.colors-header__title {
    margin: 0 0 8px;
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 800;
}

.colors-header__subtitle {
    margin: 0;
    color: #4b5563;
}

.color-combos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 16px;
    padding-bottom: 48px;
}

@media (min-width: 768px) {
    .color-combos-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 20px;
    }
}

.color-combo-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    height: 84px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.color-combo-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.color-combo-card__half {
    display: block;
    width: 100%;
    height: 100%;
}
/* ==========================================================================
   13. Страница дивизионов и конференций (page-division.php)
   ========================================================================== */
.conferences-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 36px;
    padding-bottom: 48px;
}

@media (min-width: 992px) {
    .conferences-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 32px;
    }
}

.conference-block__title {
    margin: 0 0 16px;
    font-size: 1.35rem;
    font-weight: 700;
}

.divisions-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (min-width: 576px) {
    .divisions-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.division-card {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    background-color: #ffffff;
}

.division-card__title {
    margin: 0;
    padding: 12px 14px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #374151;
    background-color: #f3f4f6;
    border-bottom: 1px solid #e5e7eb;
}

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

.division-list li:nth-child(odd) {
    background-color: #f9fafb;
}

.division-list li + li {
    border-top: 1px solid #f0f0f0;
}

.division-list a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    font-weight: 500;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.division-list a:hover {
    background-color: #eef2ff;
    color: #0d6efd;
}

.division-list img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    flex-shrink: 0;
}
/* ==========================================================================
   14. Страница генератора случайной команды (page-getlucky.php)
   ========================================================================== */
.lucky-page {
    text-align: center;
    padding-block: 40px 64px;
}

.lucky-header__title {
    margin: 0 0 10px;
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 800;
}

.lucky-header__subtitle {
    margin: 0 0 32px;
    color: #4b5563;
}

.lucky-stage {
    display: flex;
    justify-content: center;
    margin-bottom: 32px;
}

.lucky-card {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 28px 36px;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    background-color: #ffffff;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.lucky-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.lucky-card__img {
    width: 200px;
    height: 200px;
    object-fit: contain;
}

.lucky-card__name {
    font-size: 1.25rem;
    font-weight: 700;
}

.btn-lg {
    border: none;
    cursor: pointer;
    padding: 12px 28px;
    font-size: 1.05rem;
}
/* ==========================================================================
   15. Главная страница (page-home.php)
   ========================================================================== */
.home-wide-container {
    max-width: 1000px;
}

.home-hero {
    padding-block: 32px 24px;
}

.home-hero__title {
    margin: 0 0 12px;
    font-size: clamp(1.85rem, 3.5vw, 2.65rem);
    font-weight: 800;
    line-height: 1.2;
}

.home-hero__subtitle {
    margin: 0;
    font-size: 1.1rem;
    color: #4b5563;
}

.home-map-section {
    margin-bottom: 48px;
}

.home-map {
    width: 100%;
    height: 440px;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
}

.home-section {
    margin-bottom: 52px;
}

.home-section--last {
    margin-bottom: 24px;
}

.home-section__title {
    margin: 0 0 24px;
    font-size: 1.5rem;
    font-weight: 800;
}

.home-section__title a {
    color: #0d6efd;
}

.home-section__title a:hover {
    text-decoration: underline;
}

/* Список свежих постов и обзоров */
.home-posts-list {
    display: flex;
    flex-direction: column;
}

.home-post-item {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    align-items: center;
    padding-block: 20px;
    border-bottom: 1px solid #e5e7eb;
}

.home-post-item:first-child {
    padding-top: 0;
}

.home-post-item__thumb {
    display: none;
}

@media (min-width: 768px) {
    .home-post-item {
        grid-template-columns: 88px minmax(0, 1fr);
        gap: 20px;
    }

    .home-post-item__thumb {
        display: block;
    }
}

.home-post-item__img {
    width: 88px;
    height: 88px;
    object-fit: cover;
    border-radius: 12px;
}

.home-post-item__date {
    display: block;
    margin-bottom: 4px;
    font-size: 0.85rem;
    color: #6b7280;
}

.home-post-item__title {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.35;
}

.home-post-item__title a:hover {
    color: #0d6efd;
}

/* Бренды */
.brands-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 24px 32px;
}

.brands-list__item {
    display: inline-flex;
    align-items: center;
    opacity: 0.85;
    transition: opacity 0.15s ease, transform 0.15s ease;
}

.brands-list__item:hover {
    opacity: 1;
    transform: translateY(-2px);
}

/* Теги экипировки */
.gear-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 14px;
}

.gear-link {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    font-weight: 600;
    font-size: 0.95rem;
    background-color: #f3f4f6;
    border-radius: 999px;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.gear-link:hover {
    background-color: #0d6efd;
    color: #ffffff;
}

/* ==========================================================================
   16. Страница полноэкранной карты (page-map.php)
   ========================================================================== */
.map-intro {
    padding-bottom: 16px;
}

.full-map-wrap {
    margin-bottom: 32px;
}

.full-map {
    width: 100%;
    height: 70vh;
    min-height: 480px;
}

/* ==========================================================================
   17. Страница графика результатов (page-results.php)
   ========================================================================== */
.chart-wrapper {
    width: 100%;
    padding-inline: 16px;
    padding-bottom: 48px;
}

.chart-container {
    position: relative;
    width: 100%;
    min-height: 420px;
}

/* ==========================================================================
   18. Страница поиска и форма поиска (page-search.php / search.php)
   ========================================================================== */
.search-page {
    padding-block: 48px 72px;
}

.search-page__header {
    margin-bottom: 24px;
}

.search-page__title {
    margin: 0;
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 800;
}

.search-page__content {
    padding-bottom: 16px;
}

.search-box {
    display: flex;
    align-items: stretch;
    width: 100%;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    overflow: hidden;
    background-color: #ffffff;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.search-box:focus-within {
    border-color: #0d6efd;
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.15);
}

.search-box__input {
    flex: 1;
    min-width: 0;
    padding: 12px 16px;
    font-family: inherit;
    font-size: 1rem;
    color: #1a1a1a;
    border: none;
    background: transparent;
}

.search-box__input:focus {
    outline: none;
}

.search-box__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding-inline: 18px;
    background-color: #f3f4f6;
    border: none;
    border-left: 1px solid #e5e7eb;
    cursor: pointer;
    fill: #1a1a1a;
    transition: background-color 0.15s ease;
}

.search-box__btn:hover {
    background-color: #e5e7eb;
}

/* ==========================================================================
   19. Сортируемые таблицы и прогресс-бары Кубков Стэнли
   ========================================================================== */
.cups-table-wrap {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 48px;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #e5e7eb;
    font-size: 0.95rem;
}

.data-table th,
.data-table td {
    padding: 12px 14px;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

.data-table thead th {
    background-color: #f3f4f6;
    font-weight: 700;
    user-select: none;
}

.data-table th.sortable {
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.data-table th.sortable:hover {
    background-color: #e5e7eb;
}

.sort-arrow {
    font-size: 0.75rem;
    margin-left: 4px;
    color: #6b7280;
}

.data-table tbody tr:nth-child(odd) {
    background-color: #f9fafb;
}

.data-table tbody tr:hover {
    background-color: #eef2ff;
}

.table-team {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}

.table-team:hover {
    color: #0d6efd;
}

.table-team img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    flex-shrink: 0;
}

/* Прогресс-бар кубков */
.cup-progress {
    width: 100%;
    height: 8px;
    background-color: #e5e7eb;
    border-radius: 999px;
    overflow: hidden;
}

.cup-progress__bar {
    display: block;
    height: 100%;
    border-radius: 999px;
    background-color: #0d6efd;
}

/* Клубные цвета прогресс-баров */
.bg-warning, .bg-bruins { background-color: #ffb81c; }
.bg-avalanche { background-color: #6f263d; }
.bg-carolina { background-color: #cc0000; }
.bg-detroit { background-color: #ce1126; }
.bg-florida { background-color: #c8102e; }
.bg-montreal { background-color: #af1e2d; }
.bg-devils { background-color: #c8102e; }
.bg-islanders { background-color: #003087; }
.bg-rangers { background-color: #0033a0; }
.bg-ottawa { background-color: #da1a32; }
.bg-flyers { background-color: #f74902; }
.bg-penguins { background-color: #fcb514; }
.bg-tampa { background-color: #00205b; }
.bg-capitals { background-color: #cf0a2c; }
.bg-toronto { background-color: #00205b; }
.bg-ducks { background-color: #b9975b; }
.bg-arizona { background-color: #862633; }
.bg-calgary { background-color: #ce0e2d; }
.bg-chicago { background-color: #ce1126; }
.bg-dallas { background-color: #006341; }
.bg-oilers { background-color: #fc4c02; }
.bg-kings { background-color: #111111; }
.bg-wild { background-color: #024930; }
.bg-predators { background-color: #ffb81c; }
.bg-sharks { background-color: #006d75; }
.bg-seattle { background-color: #355464; }
.bg-blues { background-color: #002f87; }
.bg-vancouver { background-color: #008852; }
.bg-vegas { background-color: #b4975a; }
.bg-jets { background-color: #0060a5; }

/* ==========================================================================
   20. Страница выбора команд по штатам и провинциям (page-state.php)
   ========================================================================== */
.country-section {
    margin-bottom: 48px;
}

.country-section__title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 20px;
    font-size: 1.5rem;
    font-weight: 800;
}

.country-section__title img {
    width: 28px;
    height: 20px;
    object-fit: cover;
    border-radius: 3px;
    border: 1px solid #e5e7eb;
}

.states-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

@media (min-width: 640px) {
    .states-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }
}

@media (min-width: 992px) {
    .states-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.state-card {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    background-color: #ffffff;
}

.state-card__header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    font-weight: 700;
    background-color: #f8f9fa;
    border-bottom: 1px solid #e5e7eb;
}

.state-card__header img {
    width: 22px;
    height: 16px;
    object-fit: cover;
    border-radius: 2px;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.state-card__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.state-card__list li + li {
    border-top: 1px solid #f0f0f0;
}

.state-card__list a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    font-weight: 500;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.state-card__list a:hover {
    background-color: #eef2ff;
    color: #0d6efd;
}

.state-card__list img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    flex-shrink: 0;
}

/* ==========================================================================
   21. Страница результатов поиска (search.php)
   ========================================================================== */
.search-results-page {
    padding-block: 36px 56px;
}

.search-results-page__form {
    max-width: 480px;
    margin: 0 auto 32px;
}

.search-results-page__header {
    text-align: center;
    margin-bottom: 36px;
}

.search-results-page__title {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 500;
    color: #4b5563;
}

.search-results-page__title span {
    display: block;
    margin-top: 4px;
    font-size: 1.75rem;
    font-weight: 800;
    color: #1a1a1a;
}

.search-results-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.search-card {
    padding: 24px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background-color: #ffffff;
}

.search-card__title {
    margin: 0 0 10px;
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1.3;
}

.search-card__title a:hover {
    color: #0d6efd;
}

.search-card__excerpt {
    margin-bottom: 16px;
    color: #4b5563;
}

.search-card__excerpt p {
    margin: 0;
}

.search-empty {
    text-align: center;
    padding-block: 24px;
}

.search-empty h2 {
    margin: 0 0 8px;
}

.search-empty p {
    margin: 0;
    color: #6b7280;
}
/* ==========================================================================
   22. Страница статьи и обзора (single.php)
   ========================================================================== */
.single-hero {
    background-color: #f8f9fa;
    border-bottom: 1px solid #e5e7eb;
    padding-block: 28px;
    margin-bottom: 36px;
}

@media (min-width: 992px) {
    .single-hero {
        padding-block: 48px;
        margin-bottom: 48px;
    }
}

.single-hero__inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    align-items: center;
}

@media (min-width: 992px) {
    .single-hero__inner {
        grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
        gap: 36px;
    }
}

.single-hero__title {
    margin: 0 0 12px;
    font-size: clamp(1.75rem, 3vw, 2.4rem);
    font-weight: 800;
    line-height: 1.2;
}

.single-hero__meta-top {
    margin-bottom: 14px;
    font-size: 0.95rem;
}

.single-hero__meta-top a:hover {
    text-decoration: underline;
}

.single-hero__author {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    font-size: 0.95rem;
}

.single-hero__author-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.single-hero__author-link img {
    border-radius: 50%;
}

.single-hero__read-time {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #4b5563;
}

.single-hero__img {
    width: 100%;
    border-radius: 12px;
}

.single-hero__caption {
    display: block;
    margin-top: 6px;
    font-size: 0.8rem;
    color: #6b7280;
}

/* Подвал статьи: автор, даты, соседние посты, похожие */
.single-footer {
    padding-bottom: 48px;
}

.postauthor-wrap {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    margin-bottom: 20px;
    background-color: #f8f9fa;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
}

.postauthor-wrap__avatar img {
    border-radius: 50%;
    flex-shrink: 0;
}

.postauthor-wrap__label {
    display: block;
    font-size: 0.8rem;
    color: #6b7280;
}

.postauthor-wrap__name {
    margin: 2px 0 6px;
    font-size: 1.1rem;
    font-weight: 700;
}

.postauthor-wrap__name a:hover {
    color: #0d6efd;
}

.postauthor-wrap__bio {
    margin: 0;
    font-size: 0.9rem;
    color: #4b5563;
}

.single-dates {
    margin-bottom: 28px;
    font-size: 0.85rem;
    color: #6b7280;
}

/* Кнопки предыдущей и следующей статьи */
.post-nav {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 36px;
}

@media (min-width: 768px) {
    .post-nav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }
}

.post-nav__item a {
    display: block;
    height: 100%;
    padding: 14px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    font-weight: 500;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

.post-nav__item a:hover {
    border-color: #0d6efd;
    background-color: #f8f9fa;
}

.post-nav__item--next a {
    text-align: right;
}

/* Блок похожих записей (Contextual Related Posts) */
.related-posts__title {
    margin: 0 0 16px;
    font-size: 1.35rem;
    font-weight: 700;
}

.crp_related ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 16px;
}

.crp_related li a {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-weight: 600;
    font-size: 0.95rem;
}

.crp_related li img {
    width: 100%;
    border-radius: 10px;
    object-fit: cover;
}

/* ==========================================================================
   23. Страница отдельной команды (single-team.php)
   ========================================================================== */
.team-color-bar {
    width: 100%;
    height: 10px;
}

.team-page {
    padding-bottom: 56px;
}

.team-hero {
    padding-block: 24px;
}

.team-hero__title {
    margin: 0 0 12px;
    font-size: clamp(1.75rem, 3vw, 2.4rem);
    font-weight: 400;
    line-height: 1.2;
}

.team-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 14px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #1a1a1a;
    background-color: transparent;
    border: 1px solid #1a1a1a;
    border-radius: 8px;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.btn-outline:hover {
    background-color: #1a1a1a;
    color: #ffffff;
}

/* Верхняя сетка из 3 карточек (Логотип, Цвета, Арена) */
.team-overview-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 32px;
}

@media (min-width: 768px) {
    .team-overview-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 992px) {
    .team-overview-grid {
        grid-template-columns: 3fr 4fr 5fr;
        gap: 24px;
    }
}

.info-card {
    display: flex;
    flex-direction: column;
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
}

.info-card__header {
    padding: 14px 16px;
    border-bottom: 1px solid #f0f0f0;
}

.info-card__header--col {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.info-card__header h2 {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.15rem;
    font-weight: 700;
}

.info-card__sub {
    font-size: 0.9rem;
    color: #6b7280;
}

.info-card__body {
    padding: 16px;
    flex: 1;
}

.info-card__body--center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.team-main-logo {
    max-width: 170px;
    max-height: 170px;
    object-fit: contain;
}

/* Клубные цвета */
.team-colors-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 10px;
}

.legend-color {
    display: flex;
    align-items: center;
    padding: 10px 14px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: transform 0.15s ease;
}

.legend-color:hover {
    transform: translateX(3px);
}

.team-colors-hint {
    display: block;
    font-size: 0.8rem;
    color: #6b7280;
}

/* Арена */
.team-arena-info p {
    margin: 0 0 12px;
}

.team-arena-info p:last-child {
    margin-bottom: 0;
}

.team-arena-gps {
    font-size: 0.9rem;
    color: #4b5563;
}

/* Текстовые блоки и секции */
.team-text-block {
    margin-bottom: 32px;
    font-size: 1.1rem;
    line-height: 1.65;
}

.team-text-block p {
    margin: 0;
}

.team-section {
    margin-bottom: 36px;
}

.team-section__title {
    margin: 0 0 16px;
    font-size: 1.45rem;
    font-weight: 700;
}

.team-section__subtitle {
    margin: 0 0 14px;
    font-size: 1.15rem;
    font-weight: 700;
}

.text-uppercase {
    text-transform: uppercase;
}

/* Текущий состав (Roster Grid) */
.roster-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (min-width: 768px) {
    .roster-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.roster-card {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    background-color: #ffffff;
}

.roster-card__header {
    padding: 12px 16px;
    text-align: center;
    color: #ffffff;
}

.roster-card__header h3 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
}

.roster-card__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.roster-player {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 14px;
    font-size: 0.95rem;
    border-bottom: 1px solid #f0f0f0;
}

.roster-player:last-child {
    border-bottom: none;
}

.roster-player__main {
    display: flex;
    align-items: center;
    gap: 8px;
}

.roster-player__num {
    display: inline-block;
    min-width: 32px;
    padding: 2px 6px;
    font-size: 0.8rem;
    font-weight: 700;
    text-align: center;
    color: #ffffff;
    background-color: #4b5563;
    border-radius: 6px;
}

.roster-player__pos {
    font-size: 0.8rem;
    font-weight: 600;
    color: #6b7280;
}

.roster-player--empty {
    justify-content: center;
    color: #6b7280;
}

.roster-error {
    padding: 14px;
    color: #dc2626;
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
}

/* Свитеры (Home / Away Jerseys) */
.team-jerseys-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 36px;
}

@media (min-width: 768px) {
    .team-jerseys-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 24px;
    }
}

.jersey-img {
    max-height: 320px;
    width: auto;
    object-fit: contain;
}

.jersey-action {
    margin-top: 20px;
}

/* Графики и Кубки Стэнли */
.chart-container__team {
    position: relative;
    width: 100%;
    height: 300px;
}

.year-title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
}

/* Виджет погоды (6 дней) */
.weather-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    text-align: center;
}

@media (min-width: 640px) {
    .weather-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 992px) {
    .weather-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }
}

.weather-day {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 6px;
    padding: 12px 8px;
    background-color: #f8f9fa;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
}

.weather-day__name {
    font-size: 0.85rem;
    font-weight: 700;
    color: #6b7280;
}

.weather-day__icon {
    font-size: 1.5rem;
    line-height: 1;
}

.weather-day__max {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1a1a1a;
}

.weather-day__min {
    font-size: 0.8rem;
    color: #6b7280;
}

/* Карта на странице команды */
.team-map {
    width: 100%;
    height: 380px;
}

.team-main-content {
    padding-bottom: 0;
}

/* ==========================================================================
   24. Страница лиги (taxonomy-leagues.php)
   ========================================================================== */
.league-header {
    padding-block: 32px 16px;
}

.league-header__title {
    margin: 0 0 8px;
    font-size: clamp(1.75rem, 3vw, 2.4rem);
    font-weight: 800;
}

.league-header__desc {
    color: #4b5563;
}

.league-header__desc p {
    margin: 0 0 12px;
}

.league-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
    margin-bottom: 24px;
}

.league-filters__label {
    font-weight: 600;
    color: #374151;
}

.nhl-teams-menu {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 8px;
}

.btn-outline--icon {
    gap: 6px;
}

.league-map {
    width: 100%;
    height: 460px;
}

/* ==========================================================================
   25. Оформление отдельного комментария (includes/comments.php)
   ========================================================================== */
.comment-item {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 14px;
    padding: 16px;
    background-color: #f8f9fa;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
}

.comment-item__avatar img {
    border-radius: 50%;
}

.comment-item__header {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px 12px;
    margin-bottom: 6px;
}

.comment-item__author {
    font-weight: 700;
    font-size: 0.95rem;
}

.comment-item__author a:hover {
    color: #0d6efd;
}

.comment-item__date {
    font-size: 0.8rem;
    color: #6b7280;
}

.edit-link a {
    font-size: 0.8rem;
    color: #0d6efd;
}

.comment-awaiting-moderation {
    display: inline-block;
    margin-bottom: 8px;
    padding: 4px 10px;
    font-size: 0.85rem;
    color: #92400e;
    background-color: #fef3c7;
    border-radius: 6px;
}

.comment-item__text p {
    margin: 0 0 10px;
    font-size: 0.95rem;
    line-height: 1.55;
}

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

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

.comment-reply-link {
    font-size: 0.85rem;
    font-weight: 600;
    color: #0d6efd;
}

.comment-reply-link:hover {
    text-decoration: underline;
}

/* ==========================================================================
   26. Шорткоды в статьях (includes/shortcodes.php)
   ========================================================================== */
.attention-box {
    padding: 16px 20px;
    margin-block: 20px;
    border-radius: 10px;
    border-left: 4px solid #6b7280;
    background-color: #f8f9fa;
}

.attention-border {
    border: 1px solid #d1d5db;
    background-color: #ffffff;
}

.attention-red {
    border-left-color: #dc2626;
    background-color: #fef2f2;
}

.attention-orange {
    border-left-color: #ea580c;
    background-color: #fff7ed;
}

.attention-green {
    border-left-color: #16a34a;
    background-color: #f0fdf4;
}

.attention-yellow {
    border-left-color: #ca8a04;
    background-color: #fefce8;
}

.attention-blue {
    border-left-color: #0d6efd;
    background-color: #eff6ff;
}

.back-yellow {
    padding: 2px 6px;
    background-color: #fef08a;
    border-radius: 4px;
}

.inline-team-logo {
    display: inline-block;
    vertical-align: middle;
    margin-inline: 2px;
}

/* ==========================================================================
   27. CRP
   ========================================================================== */
.crp_link {
    display: flex;
    gap: 20px;
    align-items: center;
    color: black;
    font-weight: 600;
    margin-bottom: 1em;
    text-decoration: none;
    font-size: 1.25em;
}

.crp_link:hover {
    text-decoration: none;
    color: #565656;
}

.crp_link figure {
    margin-bottom: 0;
}

.crp_link img {
    max-width: 80px;
    height: auto;
}