/**
 * Theme Name: sportnieuws
 * Version: 1.0
 */

/* playfair-display-600 - latin */
@font-face {
    font-display: swap;
    /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Playfair Display';
    font-style: normal;
    font-weight: 600;
    src: url('fonts/playfair-display-v40-latin-600.woff2') format('woff2');
    /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* playfair-display-700 - latin */
@font-face {
    font-display: swap;
    /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Playfair Display';
    font-style: normal;
    font-weight: 700;
    src: url('fonts/playfair-display-v40-latin-700.woff2') format('woff2');
    /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* playfair-display-900 - latin */
@font-face {
    font-display: swap;
    /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Playfair Display';
    font-style: normal;
    font-weight: 900;
    src: url('fonts/playfair-display-v40-latin-900.woff2') format('woff2');
    /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

:root {
    --color-bg: #0d0d0d;
    --color-bg-elevated: #1a1a1a;
    --color-bg-card: #242424;
    --color-text: #f5f5f5;
    --color-text-muted: #a3a3a3;
    --color-accent: #f59e0b;
    --color-accent-hover: #fbbf24;
    --color-accent-soft: rgba(245, 158, 11, 0.15);
    --color-border: #333;
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Source Sans 3', system-ui, sans-serif;
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2.5rem;
    --space-xl: 4rem;
    --radius: 8px;
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (prefers-color-scheme: light) {
    :root {
        --color-bg: #fafafa;
        --color-bg-elevated: #fff;
        --color-bg-card: #f5f5f5;
        --color-text: #171717;
        --color-text-muted: #525252;
        --color-accent: #d97706;
        --color-accent-hover: #b45309;
        --color-accent-soft: rgba(217, 119, 6, 0.1);
        --color-border: #e5e5e5;
        --shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    }
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
    line-height: 1.7;
    color: var(--color-text);
    background: var(--color-bg);
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--color-accent);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover,
a:focus {
    color: var(--color-accent-hover);
}

a:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}


@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

h1 {
    font-family: var(--font-display);
    font-size: clamp(2.25rem, 1.8rem + 2.25vw, 3.5rem);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin: 0 auto var(--space-md);
    background: linear-gradient(135deg, var(--color-text) 0%, var(--color-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    overflow-wrap: break-word;
    text-align: center;
    max-width: 1100px;
}

header p {
    font-size: clamp(1.1rem, 1rem + 0.5vw, 1.35rem);
    color: var(--color-text-muted);
    max-width: 40ch;
}

nav[aria-label="Contenido"] {
    background: var(--color-bg-elevated);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: var(--space-md);
    margin-bottom: var(--space-lg);
    animation: fadeUp 0.8s ease-out 0.1s backwards;
}

nav[aria-label="Contenido"] strong {
    display: block;
    font-weight: 600;
    margin-bottom: var(--space-sm);
    color: var(--color-accent);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
}

nav[aria-label="Contenido"] ol {
    list-style: none;
    counter-reset: toc;
    display: grid;
    gap: var(--space-xs);
}

nav[aria-label="Contenido"] li {
    counter-increment: toc;
    display: flex;
    align-items: baseline;
    gap: var(--space-sm);
}

nav[aria-label="Contenido"] li::before {
    content: counter(toc, decimal-leading-zero);
    font-family: var(--font-display);
    font-size: 0.9rem;
    color: var(--color-accent);
    font-weight: 600;
}

nav[aria-label="Contenido"] a {
    color: var(--color-text);
    padding: var(--space-xs) 0;
    display: inline-block;
}

nav[aria-label="Contenido"] a:hover {
    color: var(--color-accent);
}

h2 {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 1.3rem + 1vw, 2rem);
    font-weight: 700;
    line-height: 1.2;
    margin: 2rem 0 var(--space-md);
    position: relative;
    padding-left: var(--space-md);
    overflow-wrap: break-word;
}

h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.2em;
    bottom: 0.2em;
    width: 4px;
    background: var(--color-accent);
    border-radius: 2px;
}

h3 {
    font-family: var(--font-display);
    font-size: clamp(1.2rem, 1.1rem + 0.5vw, 1.4rem);
    font-weight: 600;
    margin: var(--space-lg) 0 var(--space-sm);
    color: var(--color-accent);
    overflow-wrap: break-word;
}

section {
    animation: fadeUp 0.6s ease-out backwards;
}

section:nth-of-type(1) {
    animation-delay: 0.15s;
}

section:nth-of-type(2) {
    animation-delay: 0.2s;
}

section:nth-of-type(3) {
    animation-delay: 0.25s;
}

p {
    margin-bottom: var(--space-md);
}

p:last-child {
    margin-bottom: 0;
}

article {
    background: var(--color-bg-card);
    border-radius: var(--radius);
    padding: var(--space-md);
    margin: var(--space-md) 0;
    border-left: 3px solid var(--color-accent);
    transition: transform var(--transition), box-shadow var(--transition);
}

article:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow);
}

article h3 {
    margin-top: 0;
}

blockquote {
    border-left: 3px solid var(--color-accent);
    padding-left: var(--space-md);
    margin: var(--space-md) 0;
    font-style: italic;
    color: var(--color-text-muted);
}

figure {
    margin: var(--space-lg) 0;
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
    background: var(--color-bg-elevated);
    border-radius: var(--radius);
    overflow: hidden;
}

thead {
    background: var(--color-accent);
    color: #000;
}

th,
td {
    padding: var(--space-sm);
    text-align: left;
    border-bottom: 1px solid var(--color-border);
}

th {
    font-weight: 600;
}

tbody tr {
    transition: background var(--transition);
}

tbody tr:hover {
    background: var(--color-accent-soft);
}

tbody tr:last-child td {
    border-bottom: none;
}

figcaption {
    margin-top: var(--space-sm);
    font-size: 0.9rem;
    color: var(--color-text-muted);
    text-align: center;
}

aside {
    background: var(--color-accent-soft);
    border: 1px solid var(--color-accent);
    border-radius: var(--radius);
    padding: var(--space-md);
    margin: var(--space-lg) 0;
}

aside strong {
    display: block;
    color: var(--color-accent);
    margin-bottom: var(--space-xs);
}

details {
    background: var(--color-bg-elevated);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    margin: var(--space-sm) 0;
    transition: background var(--transition);
}

details:hover {
    background: var(--color-bg-card);
}

details[open] summary {
    border-bottom: 1px solid var(--color-border);
}

summary {
    padding: var(--space-md);
    cursor: pointer;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    list-style: none;
}

summary::-webkit-details-marker {
    display: none;
}

summary::after {
    content: '+';
    font-size: 1.25rem;
    color: var(--color-accent);
    transition: transform var(--transition);
}

details[open] summary::after {
    content: '-';
}

details>div {
    padding: var(--space-md);
}

mark {
    background: var(--color-accent-soft);
    color: var(--color-accent);
    padding: 0.1em 0.3em;
    border-radius: 3px;
}

@media (max-width: 640px) {

    h2 {
        margin-top: var(--space-lg);
    }

    table {
        font-size: 0.85rem;
    }

    th,
    td {
        padding: var(--space-xs);
    }
}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

.hero {
    margin-top: 6rem;
}

.description {
    text-align: center;
}

.entry-content {
    margin-top: 2.2rem;
}

/*  */

img {
    width: 100%;
    object-fit: cover;
    max-height: 600px;
    height: auto;
}

.wp-block-image img {

    margin-bottom: 2rem;
}



.main-nav>li {
    position: relative;
    list-style: none;
}



.main-nav>li>a:hover {
    color: var(--accent);
}



/* ВЫПАДАЮЩИЙ СПИСОК (ПК) - ПРИНУДИТЕЛЬНО СКРЫТ ПО УМОЛЧАНИЮ */
.main-nav ul ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 240px;
    background-color: #1a1a1a;
    flex-direction: column;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
    border-top: 3px solid var(--accent);
    border-radius: 0 0 4px 4px;
    z-index: 100;
    padding: 0;
    margin: 0;
    max-height: none;
    overflow: visible;
}

/* Показываем при наведении */
.main-nav li:hover>ul {
    display: flex;
}

.main-nav ul ul li {
    border-bottom: 1px solid #333;
}

.main-nav ul ul li:last-child {
    border-bottom: none;
}

.main-nav ul ul a {
    display: block;
    padding: 14px 20px;
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    text-transform: none;
    transition: all 0.2s ease;
    background-color: transparent;
}

.main-nav ul ul a:hover {
    background-color: var(--accent);
    color: #fff;
    padding-left: 25px;
}


/* ==========================================
   МОБИЛЬНОЕ МЕНЮ (< 992px)
   ========================================== */
@media (max-width: 991px) {
    .header-top {
        flex-wrap: wrap;
    }




    /* Анимация бургера в крестик */
    body.burger-active .js-burger .burger-line:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    body.burger-active .js-burger .burger-line:nth-child(2) {
        opacity: 0;
    }

    body.burger-active .js-burger .burger-line:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    /* Панель меню на мобилке */


    /* Показываем меню при клике */
    body.burger-active .main-nav-container {
        display: flex;
    }

    /* Ссылки мобилки */

    .main-nav>li>a {
        padding: 18px 20px;
        width: 100%;
        text-align: center;
        border-bottom: 1px solid #222;
    }


    /* Подменю на мобилке (СТРОГО СКРЫТО по умолчанию) */
    .main-nav .sub-menu,
    .main-nav ul ul {
        display: none !important;
        /* Прячем */
        max-height: 0;
        overflow: hidden;
        position: static !important;
        width: 100%;
        background-color: #111;
        transition: max-height 0.3s ease;
    }

    /* КЛЮЧЕВОЕ ИСПРАВЛЕНИЕ: Показываем, когда у РОДИТЕЛЯ (li) есть класс .is-open */
    .main-nav li.is-open>.sub-menu,
    .main-nav li.is-open>ul {
        display: block !important;
        max-height: 2000px;
        list-style: none;
        /* Даем запас высоты для раскрытия */
    }

    .main-nav li.is-open>a {
        color: var(--accent);
    }

    /* Иконка стрелочки при открытии (опционально) */

    .main-nav ul ul a:hover {
        padding-left: 20px;
    }
}

.logo-text {
    color: #fff;
    font-weight: 700;
    font-size: 25px;
}

.burger-logo {
    max-width: 63px;
    z-index: 1001;
}

.logo-wrapper {
    display: flex;
    gap: 10px;
}

/* Responsive */

#site-navigation.header-nav {
    position: static;
    left: auto;
    top: auto;
    width: 100%;
    height: auto;
    overflow: visible;
    background: transparent;
}

.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    padding: 6px 15px;
    width: 1900px;
    max-width: 100%;
    margin: auto;

}

.site-header {
    background: var(--color-accent);
    border-bottom: 1px solid var(--color-border);
    z-index: 4;
    position: fixed;
    width: 100%;
    animation: fadeUp 0.8s ease-out;
}

.header-top .js-burger {
    display: none;
}


.main-nav {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    flex-direction: row;
    gap: 0;
    width: auto;
}

.main-nav>li {
    position: relative;
    width: 100%;
}

.main-nav>li>a {
    display: flex;
    align-items: center;
    padding: 5px 11px;
    text-decoration: none;
    font-size: 18px;
    font-weight: 500;
    transition: color 0.3s ease;
    letter-spacing: 1px;
    font-family: var(--font-heading);
    color: var(--text-secondary);
    white-space: nowrap;
}

.main-nav>li>a:hover {
    color: var(--accent);
}


.main-nav ul ul,
.main-nav .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 240px;
    background-color: var(--color-header-bg);
    flex-direction: column;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
    border-top: 3px solid var(--accent);
    border-radius: 0 0 4px 4px;
    z-index: 100;
    padding: 0;
    margin: 0;
    max-height: none;
    overflow: visible;
}

.main-nav li:hover>ul,
.main-nav li:hover>.sub-menu {
    display: flex;
}

.main-nav ul ul li,
.main-nav .sub-menu li {
    border-bottom: 1px solid #333;
    list-style: none;
}

.main-nav ul ul li:last-child,
.main-nav .sub-menu li:last-child {
    border-bottom: none;
}

.main-nav ul ul a,
.main-nav .sub-menu a {
    display: block;
    padding: 14px 20px;
    text-decoration: none;
    font-size: 18px;
    letter-spacing: 1px;
    text-transform: none;
    transition: all 0.2s ease;
    font-family: 'Outfit', sans-serif;
    color: var(--text-secondary);
}

.main-nav ul ul a:hover,
.main-nav .sub-menu a:hover {
    background-color: var(--accent);
    color: #fff;
    padding-left: 25px;
}

/* ==========================================
   МОБИЛЬНОЕ МЕНЮ (< 992px)
   ========================================== */
@media (max-width: 991px) {
    .header-top {
        flex-wrap: wrap;
    }

    .header-top .js-burger {
        display: block;
        background: none;
        border: none;
        cursor: pointer;
        padding: 5px;
        z-index: 1001;
    }

    .header-top .js-burger .burger-line {
        display: block;
        width: 24px;
        height: 2px;
        background-color: #fff;
        margin: 6px 0;
        transition: all 0.3s ease;
    }

    body.burger-active .js-burger .burger-line:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    body.burger-active .js-burger .burger-line:nth-child(2) {
        opacity: 0;
    }

    body.burger-active .js-burger .burger-line:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .main-nav-container {
        display: none;
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: var(--color-accent);
        flex-direction: column;
        justify-content: flex-start;
        margin-top: 50px;
        overflow-y: auto;
        z-index: 1000;
    }

    body.burger-active .main-nav-container {
        display: flex;
    }

    .main-nav {
        flex-direction: column;
        width: 100%;
        align-items: flex-start;
        gap: 0;
        background-color: var(--color-header-bg);
        height: 100vh;
    }

    .main-nav>li>a {
        padding: 20px 20px;
        width: 100%;
        text-align: left;
        border-bottom: 1px solid #222;
        font-size: 20px;
    }

    .main-nav ul ul,
    .main-nav .sub-menu {
        position: static;
        width: 100%;
        padding: 0 15px;
        border-radius: 0;
        display: block;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .main-nav ul ul.is-open,
    .main-nav .sub-menu.is-open {
        display: flex;
        max-height: 1000px;
    }

    .main-nav ul ul a:hover,
    .main-nav .sub-menu a:hover {
        padding-left: 20px;
    }

    .main-nav .menu-item-has-children {
        position: relative;
        display: flex;
        flex-wrap: wrap;
        align-items: center;
    }


    .main-nav .menu-item-has-children>a {
        flex: 1;
        padding-right: 10px !important;
    }


    .sub-menu-toggle {
        width: 50px;
        height: 70px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #fff;
        background: var(--accent);
        cursor: pointer;
        border-left: 1px solid #222;
        transition: transform 0.3s ease;
        border-bottom: 1px solid;
    }


    /* .menu-item-has-children.is-open>.sub-menu-toggle {
        transform: rotate(180deg);
       
    }

  
    .main-nav li.menu-item-has-children>a::after {
        display: none !important;
    } */
}

body.menu-open {
    overflow: hidden;
}

body.burger-active {
    overflow: hidden;
    touch-action: none;
}

.main-post-image img {
    margin-bottom: 0;
}

/* end menu */


.container-casa p {
    text-align: center;

    max-width: 900px;
    margin: 1rem auto 1.5rem;
}

.sitemap-content {
    margin: 30px 0;
}

.sitemap-section {
    margin-bottom: 40px;
    padding: 20px;
    border-radius: 8px;
}

.sitemap-section h2 {
    color: inherit;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.sitemap-section h3 {
    color: #555;
    margin: 15px 0 10px 0;
}

.sitemap-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.breadcrumbs {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin: 6rem auto 2rem;
    gap: 0.5rem;
    width: fit-content;
    color: var(--text-secondary);
    font-family: var(--font-heading);
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.18em;


    padding: 0.4em 0.9em;
    border: 1px solid var(--accent);
    border-radius: 999px;
    background: rgba(9, 112, 130, 0.04);
    text-align: center;
}

.breadcrumbs-content {
    display: contents;
}

@media (max-width: 1024px) {
    .sitemap-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }
}

@media (max-width: 768px) {
    .sitemap-list {
        grid-template-columns: 1fr;
        gap: 1rem;
    }


}



.sitemap-list a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s;
}

.sitemap-list a:hover {
    color: #007cba;
}

.category-group {
    margin-bottom: 20px;
}

.tags-cloud {
    line-height: 2;
}

.tag {
    display: inline-block;
    background: #e9e9e9;
    padding: 5px 10px;
    margin: 3px;
    border-radius: 3px;
    text-decoration: none;
    color: #333;
    font-size: 14px;
    transition: all 0.3s;
}

.tag:hover {
    background: #007cba;
    color: white;
}

.toc {
    background: rgba(230, 57, 70, 0.1);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
}

@media (max-width: 768px) {
    .sitemap-section {
        padding: 15px;
    }

    .tag {
        font-size: 12px;
        padding: 3px 8px;
    }
}



@media (max-width: 1100px) {


    .wide-image-container {
        margin-left: calc(-2 * var(--space-xl));
        margin-right: calc(-2 * var(--space-xl));
        border-radius: var(--img-radius);
    }


    .site-branding nav {

        background: none;
        border-radius: var(--radius);

        margin-bottom: calc(var(--gap) * 1.5);
        box-shadow: none;
        border: none;
    }



}


header p {
    font-size: var(--font-md);

}

.toc-wrap {
    padding: 1rem;

}



/* articulos */
.articulos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 32px;
    padding-top: 30px;

    max-width: var(--max-width);
    margin: 0 auto;
}

.articulos-card {
    background: #ffffff;
    border-radius: 18px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid rgba(0, 0, 0, 0.03);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    padding: 0;
}

.articulos-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.12);
}


.articulos-card__image-link img {
    width: 100%;
    height: 170px;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.articulos-card:hover .articulos-card__image-link img {
    transform: scale(1.08);
}

/* Контент */


.articulos-card__content {
    padding: 0 17px 16px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;

}

.articulos-card__title {
    margin-top: 10px;
    font-size: 1rem;
    line-height: 1.3;
    font-weight: 700;

    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 1.6rem;
}

.articulos-card__title a {
    text-decoration: none;

}

.articulos-card__excerpt {
    margin-top: auto;

    margin-bottom: 0;
    color: #6e6e73;
    font-size: 0.95rem;
    line-height: 1.5;


    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}


.articulos-card__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #1d1d1f;
    font-weight: 600;
    font-size: 0.9rem;
    transition: gap 0.3s;
}

.articulos-card__link svg {
    transition: transform 0.3s;
}

.articulos-card__link:hover {
    color: #0073aa;
    gap: 12px;
}


.articulos-card__image-link {
    display: block;
    overflow: hidden;
    border-radius: 6px 6px 0 0;
    height: 170px;
}


.articulos-card__image-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.6s ease;
}


.articulos-card:hover .articulos-card__image-link img {
    transform: scale(1.08);
}


.articulos-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.load-more-wrapper {
    text-align: center;
    margin: 40px 0;
}

.btn-load-more {
    background-color: #0073aa;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s;
}

.btn-load-more:hover {
    background-color: #005177;
}


@media (max-width: 559px) {
    .articulos-grid {
        gap: 17px;

    }

    .articulos-card__image-link {

        height: 17rem;
    }
}

@media (max-width: 768px) {
    .sitemap-list {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 5px;
        list-style: none;
        padding: 0;
    }
}

#site-navigation a,
.menu-item a {
    outline: none;
    -webkit-tap-highlight-color: transparent;
}







.safety-icons {
    display: flex;
    gap: 15px;
    font-family: 'JetBrains Mono', monospace;
    font-weight: bold;
}

/* Адаптивность */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}




.sitemap-grid {
    margin: 2rem auto;
}


/* Контейнер для скролла */
.table-container {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 20px 0;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
}

section,
h2[id],
h3[id],
[data-content] {
    scroll-margin-top: 70px;
}


/* Добавляет маленькую стрелочку после внешних ссылок */
a[target="_blank"]::after {
    content: " ↗";
    font-size: 0.75em;
    vertical-align: super;
}


/* Контейнер слайдера */
.sport-slider-wrapper {
    position: relative;
    margin-bottom: 40px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e1e4e8;
}

/* Шапка с кнопками */
.slider-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #eee;
}

.slider-controls {
    display: flex;
    gap: 10px;
}

.slider-btn {
    background: #1a2d44;
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    cursor: pointer;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.slider-btn:hover {
    background: #004a99;
}

/* Трек слайдера */
.slider-track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    /* Скрываем скроллбар в Firefox */
}

.slider-track::-webkit-scrollbar {
    display: none;
    /* Скрываем скроллбар в Chrome/Safari */
}

.slider-page {
    flex: 0 0 100%;
    /* Каждый слайд занимает 100% ширины */
    scroll-snap-align: start;
    box-sizing: border-box;
}

/* Убираем лишние рамки внутри слайдера, так как они есть у внешнего контейнера */
.slider-page .sport-column-standalone {
    border: none;
    margin-bottom: 0;
}

.slider-page .column-footer {
    display: none;
    /* Прячем внутренние футеры, оставляем один общий */
}

/* Исправляем заголовок в шапке слайдера */
.slider-header h2 {
    color: #1a2d44 !important;
    /* Делаем заголовок темным */
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
}

/* Контент внутри слайда */
.slider-page .column-content {
    padding: 15px;
    display: flex;
    flex-direction: column;

}

/* Главный пост (большое фото) */
.main-post-image img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    object-fit: cover;

    /* Чтобы фото не было бесконечным */
}

.main-post-info h3 {
    margin-top: 15px;
    color: #1a2d44;
    font-size: 1.5rem;
}

.main-post-info p {
    margin-top: 15px;
    color: #1a2d44;
    font-size: 1rem;
}

/* Список маленьких постов под главным */
.other-posts {
    display: grid;
    grid-template-columns: 1fr;
    /* На мобилках в одну колонку */
    gap: 15px;
    padding: 0;
    margin: 0;
}

/* Если экран широкий, делаем маленькие посты в две колонки */
@media (min-width: 768px) {
    .other-posts {
        grid-template-columns: repeat(2, 1fr);
    }
}

.small-post a {
    display: flex;
    gap: 15px;
    align-items: center;
    text-decoration: none;
    color: inherit;
}

.small-post-image img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}

.small-post-info h4 {
    margin: 0 0 5px 0;
    font-size: 1.1rem;
    color: #1a2d44;
}

.small-post-info p {
    margin: 0 0 5px 0;
    font-size: 1rem;
    color: #1a2d44;
}

@media (min-width: 991px) {
    .sub-menu-toggle {
        display: none;
    }
}



/* Активные пункты меню */
.main-nav .current-menu-item>a,
.main-nav .current-page-item>a {

    color: #032601;
    border-bottom: 1px solid;
    font-weight: bold;
}

/* Эффект при наведении (hover) для всех ссылок в меню */
.main-nav a:hover {
    background: var(--accent);
    color: #fff !important;
    font-weight: bold;
}


.main-nav .current-menu-ancestor>a,
.main-nav .current-menu-parent>a {
    color: var(--accent);
}


/* .main-nav .current-menu-item > a::after,
.main-nav .current-menu-ancestor > a::after {
    content: '';
    display: block;
    width: 100%;
    height: 2px;
    background: var(--color-accent);
    margin-top: 4px;
} */
figcaption {
    text-align: center;
}

.article-title,
.news-title {
    text-align: center;
    margin-bottom: 2rem;
}

html {
    margin: 0;
    padding: 0;
}

body {

    min-height: 100dvh;

    display: flex;
    flex-direction: column;
    margin: 0;
    overflow-x: hidden;
}

.main {

    flex-grow: 1;
}

footer {
    border-top: 1px solid var(--color-border);
    flex-shrink: 0;
}

.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 44px;
    height: 44px;
    background: var(--color-accent);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition), transform var(--transition);

}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-3px);
    background: #000;
}

.back-to-top svg {
    width: 20px;
    height: 20px;
}

.similar-posts-grid {
    display: flex;
    flex-wrap: wrap;
    /* Чтобы карточки переносились на новую строку */
    gap: 20px;
    margin: 3rem auto;
}

.similar-post-item {
    flex: 1 1 calc(33.333% - 20px);
    /* По 3 в ряд на десктопе */

}


.similar-post-date {
    color: var(--text-secondary);
    font-size: small;
}


:root {
    --nb-on-surface: #1c1b1b;
    --nb-on-surface-variant: #424752;
    --nb-primary: #00478d;
    --nb-secondary-container: #d7e4ec;
    --nb-on-secondary-variant: #3c494f;
}

@media (prefers-color-scheme: dark) {
    :root {
        --nb-on-surface: #fcf9f8;
        --nb-on-surface-variant: #c2c6d4;
        --nb-primary: #a9c7ff;
        --nb-secondary-container: #3c494f;
        --nb-on-secondary-variant: #d7e4ec;
    }
}

.news-container {
    max-width: 1236px;
    margin: 0 auto;
    padding: 2rem 15px;
    padding-top: 6rem;
    padding-bottom: 5rem;
    background-color: transparent;
    color: var(--nb-on-surface);
}

.news-header {
    margin-bottom: 5rem;
}

.news-header h1 {
    font-weight: 800;

    letter-spacing: -0.025em;

    font-family: "Roboto", sans-serif;

    text-transform: uppercase;
    letter-spacing: -0.02em;
    line-height: 1em;
    font-size: clamp(.9rem, 5vw, 3rem);
    text-wrap: balance;
    text-align: center;
    color: #60a5fa;
}

.news-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
}

@media (min-width: 768px) {
    .news-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 3rem;
    }
}

.news-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}

.news-card__image {
    aspect-ratio: 4/3;
    overflow: hidden;
    border-radius: 0.75rem;
    margin-bottom: 1.5rem;
    background-color: transparent;
}

.news-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.05);
    transition: all 0.5s ease;
}

.news-card:hover .news-card__image img {
    transform: scale(1);
}

.news-card__meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.news-badge {
    padding: 0.125rem 0.5rem;
    background-color: var(--nb-secondary-container);
    color: var(--nb-on-secondary-variant);
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    border-radius: 0.125rem;
    text-transform: uppercase;
}

.news-date {
    font-size: 0.75rem;
    color: var(--nb-on-surface-variant);
    font-weight: 500;
}

.news-card__title {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 1rem 0;
    color: var(--nb-on-surface);
    transition: color 0.3s;
}

.news-card:hover .news-card__title {
    color: var(--nb-primary);
}

.news-card__excerpt {
    color: var(--nb-on-surface-variant);
    margin-bottom: 1.5rem;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.read-more-link {
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--nb-primary);
    font-weight: 700;
    font-size: 0.875rem;
    letter-spacing: -0.025em;
    text-decoration: none;
    transition: opacity 0.3s;
}

.read-more-link:hover {
    opacity: 0.7;
}

.ico-arrow {
    display: inline-block;
    width: 1.25rem;
    height: 1.25rem;
    background-color: currentColor;

    /* Webkit версия */
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://w3.org' viewBox='0 0 24 24'%3E%3Cpath d='M12.2929 4.29289C12.6834 3.90237 13.3166 3.90237 13.7071 4.29289L20.7071 11.2929C21.0976 11.6834 21.0976 12.3166 20.7071 12.7071L13.7071 19.7071C13.3166 20.0976 12.6834 20.0976 12.2929 19.7071C11.9024 19.3166 11.9024 18.6834 12.2929 18.2929L17.5858 13H4C3.44772 13 3 12.5523 3 12C3 11.4477 3.44772 11 4 11H17.5858L12.2929 5.70711C11.9024 5.31658 11.9024 4.68342 12.2929 4.29289Z'/%3E%3C/svg%3E");
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
    -webkit-mask-size: contain;

    /* Стандартная версия */
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://w3.org' viewBox='0 0 24 24'%3E%3Cpath d='M12.2929 4.29289C12.6834 3.90237 13.3166 3.90237 13.7071 4.29289L20.7071 11.2929C21.0976 11.6834 21.0976 12.3166 20.7071 12.7071L13.7071 19.7071C13.3166 20.0976 12.6834 20.0976 12.2929 19.7071C11.9024 19.3166 11.9024 18.6834 12.2929 18.2929L17.5858 13H4C3.44772 13 3 12.5523 3 12C3 11.4477 3.44772 11 4 11H17.5858L12.2929 5.70711C11.9024 5.31658 11.9024 4.68342 12.2929 4.29289Z'/%3E%3C/svg%3E");
    mask-repeat: no-repeat;
    mask-position: center;
    mask-size: contain;
}


.news-pagination-container {
    margin-top: 6rem;
    padding-top: 3rem;
    border-top: 1px solid rgba(194, 198, 212, 0.2);
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
}

@media (min-width: 768px) {
    .news-pagination-container {
        flex-direction: row;
        justify-content: space-between;
    }

}

.pagination-info {
    font-size: 0.875rem;
    color: var(--nb-on-surface-variant);
    font-weight: 500;
}

.pagination-info b {
    color: var(--nb-on-surface);
}

.news-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    color: var(--nb-on-surface);
    margin: 0 0.125rem;
    transition: background-color 0.2s;
    padding: 0 0.5rem;
}

.news-pagination .page-numbers.current {
    background-color: var(--nb-primary);
    color: #fff;
}

.news-pagination .prev,
.news-pagination .next {
    color: var(--nb-on-surface-variant);
}

.news-pagination .material-symbols-outlined {
    font-size: 1.25rem;
    line-height: 1;
}

.error-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4rem 1.5rem;
    max-width: 600px;
    margin: 0 auto;
}

.error-code {
    font-family: var(--font-heading);
    font-size: clamp(4rem, 10vw, 7rem);
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 1rem;
    opacity: 0.3;
}

.error-content h1 {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    margin-bottom: 1rem;
}

.error-content p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.error-link {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--bg);
    background: var(--accent);
    padding: 0.7em 1.8em;
    border-radius: 4px;
    text-decoration: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.error-link:hover {
    transform: translateY(-1px);
    opacity: 0.9;
}


/* =========================================
   9. FOOTER
   ========================================= */
.site-footer {
    background-color: var(--color-footer-bg);
    padding: 3rem 1.5rem 1.5rem;
    margin-top: var(--section-gap);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto 2rem;
}

.footer-col div {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-accent);
    margin-bottom: 0.75rem;
}

.footer-col p,
.footer-col a,
.footer-col li {
    font-size: 0.78rem;
    color: #888;
    line-height: 1.6;
    text-align: left;
}

.footer-col a {
    color: #888;
    transition: color 0.2s ease;
}

.footer-col a:hover {
    color: var(--color-accent);
}

.footer-col ul {
    list-style: none;
    padding-left: 0;
}

.footer-col li {
    margin-bottom: 0.35rem;
}

.footer-bottom {
    border-top: 1px solid var(--color-border);
    padding-top: 1rem;
    text-align: center;
    font-size: 0.7rem;
    color: #666;
    max-width: 960px;
    margin: 0 auto;
}

@media (max-width: 768px) {

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .similar-post-item {
        display: contents;

    }
}