/**
 * Theme Name: wp-pro

 */



/* --- PLAYFAIR DISPLAY --- */

/* Regular */
@font-face {
    font-family: 'Playfair Display';
    font-style: normal;
    font-weight: 400;
    src: url('fonts/playfair-display-v40-latin-regular.woff2') format('woff2'); 
}

/* Regular Italic */
@font-face {
    font-family: 'Playfair Display';
    font-style: italic; /* Важно: указываем курсив */
    font-weight: 400;
    src: url('fonts/playfair-display-v40-latin-italic.woff2') format('woff2'); 
}

/* Bold (700) */
@font-face {
    font-family: 'Playfair Display';
    font-style: normal;
    font-weight: 700;
    src: url('fonts/playfair-display-v40-latin-700.woff2') format('woff2'); 
}

/* Bold Italic (700) */
@font-face {
    font-family: 'Playfair Display';
    font-style: italic;
    font-weight: 700;
    src: url('fonts/playfair-display-v40-latin-700italic.woff2') format('woff2'); 
}




 
        /* =========================================================
           CSS CUSTOM PROPERTIES
           ========================================================= */
        :root {
            /* Court Blue palette — inspired by handball court surfaces */
            --ink: #0d1117;
            --ink-soft: #1c2333;
            --ink-muted: #384050;
            --surface: #f6f4f0;
            --surface-warm: #ece8e1;
            --surface-dim: #ddd8cf;
            --text: #1a1a1a;
            --text-secondary: #4a4a4a;
            --text-tertiary: #7a7a7a;

            /* Accent — resin gold & court line blue */
            --accent: #c8841d;
            --accent-warm: #e09422;
            --accent-glow: rgba(200, 132, 29, 0.12);
            --accent-glow-strong: rgba(200, 132, 29, 0.25);
            --court: #1b3a5c;
            --court-deep: #112840;
            --court-light: #2a5a8c;

            /* Layout */
            --content-width: 120ch;
            --gutter: clamp(1.25rem, 4vw, 3rem);
            --section-gap: clamp(2.5rem, 6vw, 5rem);

            /* Typography scale */
            --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
            --font-body: 'Source Serif 4', Georgia, serif;
            --font-mono: 'JetBrains Mono', 'Courier New', monospace;
            --text-xs: clamp(0.75rem, 0.7rem + 0.2vw, 0.8rem);
            --text-sm: clamp(0.85rem, 0.8rem + 0.25vw, 0.9rem);
            --text-base: clamp(1rem, 0.95rem + 0.3vw, 1.125rem);
            --text-lg: clamp(1.15rem, 1.05rem + 0.5vw, 1.35rem);
            --text-xl: clamp(1.35rem, 1.15rem + 0.9vw, 1.75rem);
            --text-2xl: clamp(1.6rem, 1.3rem + 1.5vw, 2.25rem);
            --text-3xl: clamp(2rem, 1.5rem + 2.5vw, 3.25rem);
            --text-4xl: clamp(2.5rem, 1.8rem + 3.5vw, 4.5rem);
            --leading-tight: 1.15;
            --leading-snug: 1.35;
            --leading-relaxed: 1.7;

            /* Transitions */
            --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
            --duration: 0.35s;

            /* Shadows */
            --shadow-sm: 0 1px 2px rgba(0,0,0,0.06);
            --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
            --shadow-lg: 0 12px 40px rgba(0,0,0,0.1);
            --shadow-accent: 0 4px 20px rgba(200, 132, 29, 0.15);

            /* Borders */
            --radius-sm: 3px;
            --radius-md: 6px;
            --radius-lg: 12px;
        }

        /* =========================================================
           DARK THEME
           ========================================================= */
        @media (prefers-color-scheme: dark) {
            :root {
                --ink: #f0eee8;
                --ink-soft: #d8d4cc;
                --ink-muted: #a09888;
                --surface: #0f1218;
                --surface-warm: #161b24;
                --surface-dim: #1e2530;
                --text: #e8e4dc;
                --text-secondary: #b0a898;
                --text-tertiary: #706860;
                --accent: #daa040;
                --accent-warm: #eab050;
                --accent-glow: rgba(218, 160, 64, 0.1);
                --accent-glow-strong: rgba(218, 160, 64, 0.2);
                --court: #3a7abd;
                --court-deep: #1b3a5c;
                --court-light: #5a9ad5;
                --shadow-sm: 0 1px 2px rgba(0,0,0,0.3);
                --shadow-md: 0 4px 12px rgba(0,0,0,0.4);
                --shadow-lg: 0 12px 40px rgba(0,0,0,0.5);
                --shadow-accent: 0 4px 20px rgba(218, 160, 64, 0.12);
            }
        }

        /* =========================================================
           RESET & BASE
           ========================================================= */
        *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

        html {
            scroll-behavior: smooth;
            -webkit-text-size-adjust: 100%;
            hanging-punctuation: first last;
        }

        body {
            font-family: var(--font-body);
            font-size: var(--text-base);
            line-height: var(--leading-relaxed);
            color: var(--text);
            background-color: var(--surface);
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
            text-rendering: optimizeLegibility;
            overflow-x: hidden;
        }

        /* =========================================================
           FOCUS & ACCESSIBILITY
           ========================================================= */
        :focus-visible {
            outline: 2px solid var(--accent);
            outline-offset: 3px;
            border-radius: var(--radius-sm);
        }

        ::selection {
            background-color: var(--accent-glow-strong);
            color: var(--text);
        }

        .sr-only {
            position: absolute;
            width: 1px;
            height: 1px;
            padding: 0;
            margin: -1px;
            overflow: hidden;
            clip: rect(0,0,0,0);
            white-space: nowrap;
            border: 0;
        }

        /* =========================================================
           SKIP LINK
           ========================================================= */
        .skip-link {
            position: absolute;
            top: -100%;
            left: 1rem;
            z-index: 1000;
            padding: 0.75rem 1.5rem;
            background: var(--court);
            color: #fff;
            font-family: var(--font-body);
            font-size: var(--text-sm);
            text-decoration: none;
            border-radius: 0 0 var(--radius-md) var(--radius-md);
            transition: top var(--duration) var(--ease-out-expo);
        }

        .skip-link:focus {
            top: 0;
        }

        /* =========================================================
           HEADER
           ========================================================= */
        header {
           
        }

        /* =========================================================
           ARTICLE LAYOUT — MAIN
           ========================================================= */
      
        .container {
            max-width: var(--content-width);
            margin: 0 auto;
            padding: 0 1rem;
        }

        /* =========================================================
           ARTICLE HERO — H1
           ========================================================= */
        h1 {
            font-family: var(--font-display);
            font-size: var(--text-4xl);
            font-weight: 900;
            line-height: var(--leading-tight);
            color: var(--ink);
            letter-spacing: -0.02em;
            margin-bottom: 0.3em;
            text-wrap: balance;
            position: relative;
      
            text-align: center;
            margin: 2rem auto 1.5rem;
        }

         h1::after {
            content: '';
            display: block;
            width: 3.5rem;
            height: 4px;
            margin-top: 0.6em;
            background: linear-gradient(135deg, var(--accent), var(--accent-warm));
            border-radius: 2px;
                margin: 1.2rem auto;
        }

        /* =========================================================
           SECTION HEADINGS — H2
           ========================================================= */
        h2 {
            font-family: var(--font-display);
            font-size: var(--text-2xl);
            font-weight: 700;
            line-height: var(--leading-snug);
            color: var(--ink);
            letter-spacing: -0.015em;
         
            margin-bottom: 0.6em;
            padding-top: 1rem;
            border-top: 1px solid var(--surface-dim);
            text-wrap: balance;
    position: relative;
    scroll-margin-top: 1.5rem;
        }

         h2:first-of-type {
            border-top: none;
            padding-top: 0;
        }

        /* =========================================================
           SUB-HEADINGS — H3
           ========================================================= */
         h3 {
            font-family: var(--font-display);
            font-size: var(--text-xl);
            font-weight: 700;
            line-height: var(--leading-snug);
            color: var(--ink-soft);
            margin-top: 2em;
            margin-bottom: 0.5em;
            position: relative;
            padding-left: 1rem;
        }

         h3::before {
            content: '';
            position: absolute;
            left: 0;
            top: 0.15em;
            bottom: 0.15em;
            width: 3px;
            background: var(--accent);
            border-radius: 2px;
        }

        /* =========================================================
           BODY TEXT — P
           ========================================================= */
         p {
            font-size: var(--text-base);
            line-height: var(--leading-relaxed);
            color: var(--text);
            margin-bottom: 1.25em;
         
        }

        img{
            width: 100%;
            object-fit: cover;
        }
             
             .container-header p{
                 max-width: 800px;
                 text-align: center;
                 font-size: 1.2rem;
                 margin: 0 auto;
             }
        /* =========================================================
           INLINE ELEMENTS — STRONG, EM
           ========================================================= */
        main strong {
            font-weight: 600;
            color: var(--ink);
        }

        main em {
            font-style: italic;
            color: var(--text-secondary);
        }

        /* =========================================================
           LINKS
           ========================================================= */
         a {
            color: var(--court);
          text-decoration: none;
        }

         a:hover {
            color: var(--accent);
            text-decoration-color: var(--accent);
        }

        /* =========================================================
           LISTS — UL, OL, LI
           ========================================================= */
        main ul,
        main ol {
            margin-bottom: 1.25em;
            padding-left: 1.25em;
        }

        main ul {
            list-style: none;
            padding-left: 0;
        }

        main ul li {
            position: relative;
            padding-left: 1.4em;
            margin-bottom: 0.5em;
            line-height: var(--leading-relaxed);
        }

        main ul li::before {
            content: '';
            position: absolute;
            left: 0;
            top: 0.65em;
            width: 6px;
            height: 6px;
            border-radius: 50%;
            background: var(--accent);
        }

        main ol {
            list-style: none;
            counter-reset: ol-counter;
            padding-left: 0;
        }

        main ol li {
            counter-increment: ol-counter;
            position: relative;
            padding-left: 2em;
            margin-bottom: 0.6em;
            line-height: var(--leading-relaxed);
        }

        main ol li::before {
            content: counter(ol-counter);
            position: absolute;
            left: 0;
            top: 0;
            font-family: var(--font-display);
            font-weight: 700;
            font-size: var(--text-sm);
            color: var(--accent);
            width: 1.5em;
            text-align: center;
        }

        /* =========================================================
           BLOCKQUOTE
           ========================================================= */
        main blockquote {
            margin: 2em 0;
            padding: 1.5em 1.5em 1.5em 2em;
            border-left: 3px solid var(--accent);
            background:
                linear-gradient(135deg, var(--accent-glow), transparent 60%),
                var(--surface-warm);
            border-radius: 0 var(--radius-md) var(--radius-md) 0;
            position: relative;
        }

        main blockquote::before {
            content: '\201C';
            position: absolute;
            top: -0.1em;
            left: 0.3em;
            font-family: var(--font-display);
            font-size: 3.5rem;
            color: var(--accent);
            opacity: 0.25;
            line-height: 1;
        }

        main blockquote p {
            font-style: italic;
            font-size: var(--text-lg);
            color: var(--ink-soft);
            margin-bottom: 0;
        }

        main blockquote p:last-child {
            margin-bottom: 0;
        }

        /* =========================================================
           IMAGES — FIGURE, FIGCAPTION
           ========================================================= */
        main figure {
            margin: 2.5em 0;
        }

        main figure img,
        main .hero-image img,
        main .article-image img {
            display: block;
            width: 100%;
            height: auto;
            border-radius: var(--radius-md);
            box-shadow: var(--shadow-md);
            transition: box-shadow var(--duration) var(--ease-out-expo);
        }

        main figure:hover img,
        main .hero-image:hover img,
        main .article-image:hover img {
            box-shadow: var(--shadow-lg);
        }

        main figcaption {
            margin-top: 0.75em;
            font-size: var(--text-sm);
            color: var(--text-tertiary);
            font-style: italic;
            padding-left: 0.5em;
            border-left: 2px solid var(--surface-dim);
        }

        /* Hero image — centered, contained */
        main .hero-image {
            margin: 2em 0 2.5em;
            overflow: hidden;
            border-radius: var(--radius-lg);
        }

        main .hero-image img {
            border-radius: var(--radius-lg);
            aspect-ratio: 21 / 9;
            object-fit: cover;
        }

        /* Article image — inline */
        main .article-image {
            margin: 2em 0;
            overflow: hidden;
            border-radius: var(--radius-lg);
        }

        main .article-image img {
            border-radius: var(--radius-lg);
            aspect-ratio: 16 / 9;
            object-fit: cover;
        }

        /* =========================================================
           HORIZONTAL RULES
           ========================================================= */
        main hr {
            border: none;
            height: 1px;
            background: var(--surface-dim);
            margin: var(--section-gap) 0;
            position: relative;
        }

        main hr::after {
            content: '';
            position: absolute;
            left: 50%;
            top: 50%;
            transform: translate(-50%, -50%);
            width: 6px;
            height: 6px;
            background: var(--accent);
            border-radius: 50%;
        }

        /* =========================================================
           TABLE OF CONTENTS NAV
           ========================================================= */
        main nav[aria-label] {
            margin: 2em 0 var(--section-gap);
            padding: 1.5em 2em;
            background: var(--surface-warm);
            border-radius: var(--radius-lg);
            border: 1px solid var(--surface-dim);
        }

        main nav[aria-label] ul {
            margin: 0;
        }

        main nav[aria-label] li {
            padding-left: 1.4em;
            margin-bottom: 0.4em;
        }

        main nav[aria-label] li::before {
            width: 5px;
            height: 5px;
            background: var(--court);
            opacity: 0.5;
        }

        main nav[aria-label] a {
            color: var(--text-secondary);
            text-decoration: none;
            font-size: var(--text-sm);
            transition:
                color var(--duration) var(--ease-out-expo),
                transform var(--duration) var(--ease-out-expo);
            display: inline-block;
        }

        main nav[aria-label] a:hover {
            color: var(--accent);
            transform: translateX(3px);
        }
        .toc-wrap{
               margin: 2em 0 var(--section-gap);
            padding: 1.5em 2em;
            background: var(--surface-warm);
            border-radius: var(--radius-lg);
            border: 1px solid var(--surface-dim);
        }
        .toc-wrap__title{
            margin-bottom: 1rem;
        }

        /* =========================================================
           CODE / PREFORMATTED
           ========================================================= */
        main code {
            font-family: var(--font-mono);
            font-size: 0.88em;
            padding: 0.15em 0.4em;
            background: var(--surface-warm);
            border: 1px solid var(--surface-dim);
            border-radius: var(--radius-sm);
            color: var(--court);
        }

        main pre {
            margin: 1.5em 0;
            padding: 1.25em 1.5em;
            background: var(--ink);
            color: var(--surface);
            border-radius: var(--radius-md);
            overflow-x: auto;
            font-family: var(--font-mono);
            font-size: var(--text-sm);
            line-height: 1.6;
            box-shadow: var(--shadow-md);
        }

        @media (prefers-color-scheme: dark) {
            main pre {
                background: #000;
                border: 1px solid var(--surface-dim);
            }
            main code {
                color: var(--court-light);
            }
        }

        main pre code {
            padding: 0;
            background: none;
            border: none;
            color: inherit;
            font-size: inherit;
        }

        /* =========================================================
           FAQ / DETAILS ACCORDION PATTERN
           (for dt/dd or summary/details if used in content)
           ========================================================= */
        main details {
            margin-bottom: 0.75em;
            border: 1px solid var(--surface-dim);
            border-radius: var(--radius-md);
            overflow: hidden;
            transition: box-shadow var(--duration) var(--ease-out-expo);
        }

        main details:hover {
            box-shadow: var(--shadow-sm);
        }

        main details[open] {
            box-shadow: var(--shadow-md);
        }

        main summary {
            padding: 1em 1.25em;
            font-weight: 600;
            cursor: pointer;
            background: var(--surface-warm);
            transition: background var(--duration) var(--ease-out-expo);
            list-style: none;
        }

        main summary::-webkit-details-marker { display: none; }
        main summary::marker { display: none; content: ''; }

        main summary::before {
            content: '+';
            display: inline-block;
            width: 1.5em;
            font-family: var(--font-mono);
            color: var(--accent);
            font-weight: 500;
            transition: transform var(--duration) var(--ease-out-expo);
        }

        main details[open] summary::before {
            content: '\2212';
        }

        main summary:hover {
            background: var(--surface-dim);
        }

        main details > :not(summary) {
            padding: 0.25em 1.25em 1em;
        }

        /* =========================================================
           TABLE (if content includes data tables)
           ========================================================= */
        main table {
            width: 100%;
            border-collapse: collapse;
            margin: 1.5em 0;
            font-size: var(--text-sm);
        }

        main th {
            text-align: left;
            font-weight: 600;
            color: var(--ink);
            padding: 0.75em 1em;
            border-bottom: 2px solid var(--accent);
            font-family: var(--font-display);
        }

        main td {
            padding: 0.65em 1em;
            border-bottom: 1px solid var(--surface-dim);
            color: var(--text-secondary);
        }

        main tr:hover td {
            background: var(--accent-glow);
        }


   

        /* =========================================================
           DECORATION — COURT LINE MOTIF
           (subtle background texture evoking handball court markings)
           ========================================================= */
        body::before {
            content: '';
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            pointer-events: none;
            z-index: -1;
            background:
                radial-gradient(ellipse 80% 60% at 15% 10%, var(--accent-glow), transparent),
                radial-gradient(ellipse 50% 40% at 85% 90%, rgba(27, 58, 92, 0.04), transparent);
        }

        @media (prefers-color-scheme: dark) {
            body::before {
                background:
                    radial-gradient(ellipse 80% 60% at 15% 10%, rgba(218, 160, 64, 0.03), transparent),
                    radial-gradient(ellipse 50% 40% at 85% 90%, rgba(42, 90, 140, 0.05), transparent);
            }
        }

        /* =========================================================
           READING PROGRESS BAR
           ========================================================= */
        .progress-track {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 3px;
            z-index: 100;
            background: transparent;
        }

        .progress-bar {
            height: 100%;
            width: 0%;
            background: linear-gradient(90deg, var(--court), var(--accent));
            transition: width 0.1s linear;
            will-change: width;
        }

        /* =========================================================
           BACK TO TOP
           ========================================================= */
        .back-to-top {
            position: fixed;
            bottom: 2rem;
            right: 2rem;
            z-index: 90;
            width: 2.75rem;
            height: 2.75rem;
            display: flex;
            align-items: center;
            justify-content: center;
            background: var(--court);
            color: #fff;
            border: none;
            border-radius: 50%;
            cursor: pointer;
            box-shadow: var(--shadow-md);
            opacity: 0;
            transform: translateY(1rem);
            transition:
                opacity var(--duration) var(--ease-out-expo),
                transform var(--duration) var(--ease-out-expo),
                background var(--duration) var(--ease-out-expo);
            pointer-events: none;
        }

        .back-to-top.visible {
            opacity: 1;
            transform: translateY(0);
            pointer-events: auto;
        }

        .back-to-top:hover {
            background: var(--accent);
            transform: translateY(-2px);
            box-shadow: var(--shadow-accent);
        }

        .back-to-top svg {
            width: 1.2rem;
            height: 1.2rem;
        }

        /* =========================================================
           FOOTER
           ========================================================= */
        footer {
       
            margin: 0 auto;
       
            border-top: 1px solid var(--surface-dim);
        }

        footer p {
            font-family: var(--font-body);
            font-size: var(--text-sm);
            line-height: 1.65;
            color: var(--text-tertiary);
          
            margin: 0 auto;
            
        }

        /* =========================================================
           RESPONSIVE REFINEMENTS
           ========================================================= */
        @media (max-width: 48em) {
            main h1::after {
                width: 2.5rem;
                height: 3px;
            }

            main h3 {
                padding-left: 0.75em;
            }

            main blockquote {
                padding: 1.25em 1em 1.25em 1.5em;
                margin: 1.5em 0;
            }

            main blockquote::before {
                font-size: 2.5rem;
                left: 0.2em;
            }

            .back-to-top {
                bottom: 1.25rem;
                right: 1.25rem;
                width: 2.5rem;
                height: 2.5rem;
            }
        }

        @media (max-width: 30em) {
            main h2 {
                margin-top: calc(var(--section-gap) * 0.75);
            }

            main nav[aria-label] {
                padding: 1em 1.25em;
            }
        }

        /* =========================================================
           PRINT STYLES
           ========================================================= */
        @media print {
            body::before,
            .progress-track,
            .back-to-top,
            .skip-link { display: none; }

            main {
                max-width: 100%;
                padding: 0;
            }

            main h1 { font-size: 2rem; }
            main h2 { break-before: page; font-size: 1.5rem; }
            main a { color: var(--text); text-decoration: underline; }
            main a::after { content: ' (' attr(href) ')'; font-size: 0.8em; color: #666; }
        }
    

    
        .um-header *,
        .um-header *::before,
        .um-header *::after {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
            font: inherit;
            color: inherit;
            background: var(--accent);
            /* border: none; */
            text-decoration: none;
            list-style: none;
               
        }

        .um-header {
            --um-primary-color: #333;
            --um-bg-color: #fff;
            --um-hover-color: inherit;
            --um-border-color: #ddd;
            --um-transition: 0.3s ease;
            --um-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);

            all: initial;
            font-family: inherit;
            display: flex;
            align-items: center;
            justify-content: space-between;
            position: relative;
            background: var(--accent);
            color: var(--um-primary-color);
                padding: 3px 1rem;
        }
/* 
        .um-container {
            display: flex;
            flex-wrap: wrap;
            justify-content: space-between;
            align-items: center;
            max-width: 100%;
            padding: 0.3rem;
            gap: 1rem;
        } */

        .um-logo {
            display: flex;
            align-items: center;
            gap: 0.75rem;
            text-decoration: none;
            color: inherit;
            font-weight: bold;
        }

        .um-logo__image {
            display: block;
            border-radius: 50%;
            max-width: 60px;
            height: auto;
        }

        .um-logo__text {
            font-size: 1.25rem;
            color: #fff;
        }

        .um-logo-text {
            text-decoration: none;
            color: inherit;
            font-weight: bold;
            font-size: 1.25rem;
        }

        .um-burger {
            --um-burger-width: 30px;
            --um-burger-height: 24px;

            display: none;
            flex-direction: column;
            justify-content: space-between;
            width: var(--um-burger-width);
            height: var(--um-burger-height);
            padding: 0;
            background: none;
            border: none;
            cursor: pointer;
            z-index: 1001;
            position: relative;
        }

        .um-burger__line {
            width: 100%;
            height: 3px;
            background-color: #fff;
            border-radius: 1px;
            transition: transform var(--um-transition), opacity var(--um-transition);
        }

        .um-burger[aria-expanded="true"] .um-burger__line:nth-child(1) {
            transform: translateY(12px) rotate(45deg);
        }

        .um-burger[aria-expanded="true"] .um-burger__line:nth-child(2) {
            opacity: 0;
        }

        .um-burger[aria-expanded="true"] .um-burger__line:nth-child(3) {
            transform: translateY(-9px) rotate(-45deg);
        }

        .um-navigation {
            position: relative;
            z-index: 1000;
        }

        .um-menu {
            display: flex;
            flex-wrap: wrap;
            flex-direction: column;
            gap: 0;
            margin: 0;
            padding: 0;
        }

        .um-menu-item {
            position: relative;
        }

        .um-menu-item__inner {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 0.5rem;
        }

        .um-menu-link {
            display: block;
            padding: 0.75rem 1rem;
            color: #fff;
            text-decoration: none !important;
            flex: 1;
            transition: color var(--um-transition);
            border-radius: 4px;
        }

        a.um-menu-link:hover {
            color: var(--um-hover-color);
            background-color: rgba(0, 0, 0, 0.03);
        }

        .um-menu-item--current>.um-menu-item__inner>.um-menu-link {
            color: #fff;
            font-weight: 600;
        }

        .um-menu-toggle {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 36px;
            height: 36px;
            padding: 0;
            background: none;
            border: none;
            cursor: pointer;
            color: inherit;
            border-radius: 4px;
            flex-shrink: 0;
            transition: background-color var(--um-transition);
        }

        .um-menu-toggle:hover {
            background-color: rgba(0, 0, 0, 0.05);
        }

        .um-menu-toggle__icon {
            transition: transform var(--um-transition);
        }

        .um-menu-toggle[aria-expanded="true"] .um-menu-toggle__icon {
            transform: rotate(180deg);
        }

        .um-sub-menu {
            display: none;
            min-width: 200px;
            padding: 0.5rem 0;
            background-color: var(--um-bg-color);
            box-shadow: var(--um-shadow);
            border: 1px solid var(--um-border-color);
            border-radius: 6px;
        }

        .um-sub-menu--depth-0 {
            position: static;
        }

        .um-sub-menu--depth-1 {
            position: absolute;
            top: 100%;
            left: 0;
            z-index: 100;
        }

        .um-sub-menu--depth-2 {
            position: absolute;
            top: 0;
            left: 100%;
            margin-left: 0.5rem;
        }

        .um-sub-menu.active {
            display: block;
        }

        .um-sub-menu .um-menu-link {
            padding: 0.625rem 1rem;
            font-size: 0.9375rem;
        }

        @media (max-width: 1023px) {
            .um-burger {
                display: flex;
            }

            .um-navigation {
                position: fixed;
                top: 0;
                left: -100%;
                width: 100%;
                max-width: 320px;
                height: 100vh;
           
                transition: left var(--um-transition);
                overflow-y: auto;
             
                box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
            }

            .um-navigation.active {
                left: 0;
            }

            .um-overlay {
                display: none;
                position: fixed;
                top: 0;
                left: 0;
                width: 100%;
                height: 100%;
                background-color: rgba(0, 0, 0, 0.5);
                z-index: 999;
            }

            .um-overlay.active {
                display: block;
            }

            .um-sub-menu--depth-1,
            .um-sub-menu--depth-2 {
                position: static;
                margin-left: 1rem;
                margin-top: 0.5rem;
                box-shadow: none;
                border: none;
                border-left: 1px solid var(--um-border-color);
            }
        }

        @media (min-width: 1024px) {
            .um-container {
                flex-wrap: nowrap;
            }

            .um-menu {
                flex-direction: row;
                flex-wrap: wrap;
                gap: 0.25rem;
            }

            .um-menu-toggle {
                display: none;
            }

            .um-menu-item--has-children:hover>.um-sub-menu {
                display: block;
            }

            .um-menu-item:last-child .um-sub-menu--depth-1,
            .um-menu-item:nth-last-child(2) .um-sub-menu--depth-1 {
                left: auto;
                right: 0;
            }
        }

        .um-menu-toggle:focus-visible,
        .um-menu-link:focus-visible,
        .um-burger:focus-visible {
            outline: 2px solid var(--um-hover-color);
            outline-offset: 2px;
        }

        @media (prefers-reduced-motion: reduce) {
            .um-header * {
                transition: none !important;
                animation: none !important;
            }
        }

        .um-header.um-theme-dark {
            --um-primary-color: inherit;
            --um-bg-color: inherit;
            --um-hover-color: inherit;
            --um-border-color: inherit;
        }

        .um-header.um-theme-minimal {
            --um-bg-color: transparent;
            --um-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
        }

        .um-hide {
            display: none !important;
        }

        .um-show {
            display: block !important;
        }

        .um-sr-only {
            position: absolute;
            width: 1px;
            height: 1px;
            padding: 0;
            margin: -1px;
            overflow: hidden;
            clip: rect(0, 0, 0, 0);
            white-space: nowrap;
            border: 0;
        }
  
        .header-meta time {
            margin: auto;
            font-size: 1rem;
        }

        .header-meta {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            justify-content: center;
            gap: 1rem;
            font-family: inherit;
        }

        .header-meta span {
            display: flex;
            align-items: center;
            gap: 1rem;
        }

        .header-meta svg {
            width: 30px;
        }
        .breadcrumbs{
            margin: 2rem auto;
            display: flex;
            justify-content: center;
            gap: 5px;
        }
 
        .articles-main {
            padding: 20px 0;
        }

        .articles-breadcrumbs {
            margin-bottom: 20px;
        }

        .articles-header {
            text-align: center;
            margin-bottom: 40px;
        }

        .articles-page-title {
            font-size: 2.5rem;
            margin: 0;
            color: #333;
        }

        .articles-container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 20px;
        }

        .articles-grid {
            display: flex;
            flex-wrap: wrap;
            gap: 30px;
            margin-bottom: 50px;
        }

        .article-item {
            flex: 1 1 calc(50% - 30px);
            min-width: 300px;
            box-sizing: border-box;
        }

        .article-card {
            border-radius: 12px;
            overflow: hidden;
            transition: all 0.3s ease;
            height: 100%;
            display: flex;
            flex-direction: column;
        }


        .article-card__image-link {
            display: block;
            text-decoration: none;
        }

        .article-card__image {
            height: 220px;
            overflow: hidden;
            position: relative;
        }

        .article-card__img {
            width: 100%;
            height: 100%;
            border-radius: 1rem;
            object-fit: cover;
            transition: transform 0.5s ease;
        }

        .article-card:hover .article-card__img {
            transform: scale(1.05);
        }

        .article-card__image--placeholder {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .placeholder-icon {
            font-size: 60px;
            opacity: 0.7;
        }

        .article-card__content {
            padding: 25px;
            flex: 1;
            display: flex;
            flex-direction: column;
        }

        .article-card__header {
            margin-bottom: 15px;
        }

        .article-card__title {
            margin: 0 0 10px 0;
            font-size: 1.4rem;
            line-height: 1.3;
        }

        .article-card__title a {
            color: inherit;
            text-decoration: none;
            transition: color 0.3s ease;
        }

        .article-card__title a:hover {
            color: inherit;
        }

        .article-meta {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            gap: 8px;
            font-size: 0.85rem;
            color: #666;
        }

        .article-meta__separator {
            color: #999;
            font-size: 0.9em;
        }

        .article-meta__date,
        .article-meta__author,
        .article-meta__category,
        .article-meta__time {
            display: inline-flex;
            align-items: center;
        }

        .article-card__excerpt {
            flex: 1;
            margin-bottom: 20px;
            line-height: 1.6;
            color: #555;
        }

        .article-card__footer {
            margin-top: auto;
            padding-top: 15px;
            border-top: 1px solid #eee;
        }

        .article-card__read-more {
            display: inline-flex;
            align-items: center;
            gap: 5px;
            color: inherit;
            text-decoration: none;
            font-weight: 600;
            transition: gap 0.3s ease;
        }

        .article-card__read-more:hover {
            gap: 10px;
        }

        .read-more-arrow {
            transition: transform 0.3s ease;
        }

        .article-card__read-more:hover .read-more-arrow {
            transform: translateX(3px);
        }

        .articles-pagination {
            margin-top: 40px;
        }

        .articles-pagination ul {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            list-style: none;
            padding: 0;
            margin: 0;
            gap: 5px;
        }

        .articles-pagination li {
            margin: 0;
        }

        .articles-pagination .page-numbers {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-width: 40px;
            height: 40px;
            padding: 0 15px;
            border-radius: 6px;
            text-decoration: none;
            color: inherit;
            font-weight: 500;
            transition: all 0.3s ease;
        }

        .articles-pagination .current {
            background: inherit;
            color: inherit;
            border-color: inherit;
        }

        .articles-pagination a.page-numbers:hover {
            background: inherit;
            border-color: inherit;
            color: inherit;
        }

        .articles-empty {
            display: flex;
            justify-content: center;
            align-items: center;
            min-height: 300px;
            text-align: center;
        }

        .articles-empty__content {
            max-width: 500px;
        }

        .articles-empty__title {
            font-size: 2rem;
            color: #333;
            margin-bottom: 15px;
        }

        .articles-empty__text {
            color: #666;
            margin-bottom: 25px;
            font-size: 1.1rem;
        }

        .articles-empty__link {
            display: inline-block;
            padding: 12px 30px;
            background: #0073aa;
            color: white;
            text-decoration: none;
            border-radius: 6px;
            font-weight: 600;
            transition: background 0.3s ease;
        }

        .articles-empty__link:hover {
            background: #005a87;
        }

        @media (max-width: 992px) {
            .article-item {
                flex: 1 1 calc(50% - 30px);
            }

            .articles-page-title {
                font-size: 2rem;
            }
        }

        @media (max-width: 768px) {
            .articles-grid {
                gap: 20px;
            }

            .article-item {
                flex: 1 1 100%;
            }

            .article-card__content {
                padding: 20px;
            }

            .article-card__image {
                height: 180px;
            }

            .articles-page-title {
                font-size: 1.8rem;
            }

            .article-meta {
                font-size: 0.8rem;
            }
        }

        @media (max-width: 480px) {
            .articles-container {
                padding: 0 15px;
            }

            .article-card__image {
                height: 160px;
            }

            .article-card__title {
                font-size: 1.2rem;
            }

            .articles-pagination .page-numbers {
                min-width: 35px;
                height: 35px;
                padding: 0 10px;
                font-size: 0.9rem;
            }
        }
   


   /* ====================================================================
   IMAGES STYLES — Paris Sportif Handball
   ================================================================= */

/* Hero image — full-width banner after H1 */
.hero-image {

    max-width: none;
    aspect-ratio: 21 / 9;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-elevated);
    margin-block: var(--sp-md) var(--sp-xl);
    display: block;
}

/* Article images — inline within sections */
.article-image {
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    margin-block: var(--sp-md) var(--sp-lg);
    display: block;
    transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}

.article-image:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.5), 0 0 0 1px var(--clr-border);
}

/* ====================================================================
   RESPONSIVE
   ================================================================= */

/* Small screens — hero image edge-to-edge */
@media (max-width: 600px) {
    .hero-image {
      
        border-radius: var(--radius-md);
        aspect-ratio: 16 / 9;
    }

    .article-image {
        border-radius: var(--radius-md);
    }
}

/* Wide screens — let article images breathe */
@media (min-width: 900px) {
 
}

/* ====================================================================
   FOOTER (disclaimer)
   ================================================================= */
footer {
   
    margin-inline: auto;
    padding: var(--sp-xl) var(--sp-md) var(--sp-lg);
    border-top: 1px solid var(--clr-border);
}

footer p {
    font-size: var(--fs-small);
    color: var(--clr-text-muted);
    line-height: 1.6;
    
}

/* ====================================================================
   PRINT
   ================================================================= */
@media print {
    .hero-image,
    .article-image {
        box-shadow: none;
        border: 1px solid #ccc;
    }

    footer {
        border-top: 1px solid #ccc;
    }
}


.table-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 1.5em 0;
  
    display: block; 
}


.table-wrapper table {
    width: 100%;

    min-width: 600px; 
    border-collapse: collapse;
}

main td, main th {

    white-space: nowrap; 
    padding: 10px; 
   
}


main td {
    word-break: normal; 
}


/* --- FOOTER CUSTOM STYLES --- */

.site-footer-custom {
    background-color: #1a1a1a; /* Темный фон */
    color: #d1d1d1; /* Светло-серый текст */
    
    padding-top: 30px;
    margin-top: 40px; 
}

.footer-container {
  
    margin: 0 auto;
    padding: 0 20px;
}

/* Сетка 4 колонки */
.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid #333;
}

/* Адаптивность */
@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 600px) {
    .footer-grid {
        grid-template-columns: 1fr;
   
    }
    .footer-links {
        padding-left: 0 !important;
    }
    .footer-about {
        display: flex;
        flex-direction: column;
      
    }
}

/* Стили колонок */
.footer-column h3.footer-title {
    color: #ffffff;
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-about p {
    font-size: 15px;
    line-height: 1.6;
    color: #aaaaaa;
}

.footer-logo {
    max-width: 180px; 
    height: auto;
    margin-bottom: 20px;
}

/* Ссылки */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #cccccc;
    text-decoration: none;
    font-size: 15px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #ff6b00; 
}


.footer-disclaimer {
    padding: 30px 0;
    border-bottom: 1px solid #333;
}

.footer-disclaimer p {
    margin: 0;
    font-size: 13px;
    line-height: 1.7;
    color: #888888;
    text-align: center;
}

.footer-disclaimer strong {
    color: #ffffff; 
}


.footer-bottom {
    padding: 20px 0;
  
}

.footer-bottom p {
    margin: 0;
    font-size: 14px;
    color: #555555;
    text-align: center;
}

/* Стили для динамического логотипа */
.footer-about .custom-logo-link {
    display: inline-block;
    margin-bottom: 20px;
}

.footer-about .custom-logo {
    max-width: 180px; /* Максимальная ширина логотипа */
    height: auto;
    display: block;
}

/* Если логотипа нет и выводится текст */
.footer-logo-text {
    margin: 0 0 20px 0;
    font-size: 24px;
    line-height: 1.2;
}
.footer-logo-text a {
    color: #ffffff;
    text-decoration: none;
}