/**
 * HUNT ME v2 — Global Header Styles
 * Loaded on ALL pages (not just front page)
 * Modern sticky header + full-screen mobile overlay
 */

/* ═══ Design Tokens ═══ */
:root {
    --hm-primary: #E31E24;
    --hm-primary-hover: #c91018;
    --hm-primary-light: rgba(227, 30, 36, 0.08);
    --hm-text: #222222;
    --hm-text-secondary: rgba(34, 34, 34, 0.6);
    --hm-text-tertiary: rgba(34, 34, 34, 0.45);
    --hm-text-muted: rgba(34, 34, 34, 0.3);
    --hm-bg: #ffffff;
    --hm-bg-gray: #f5f5f5;
    --hm-bg-dark: #1a1a1a;
    --hm-border: rgba(0, 0, 0, 0.09);
    --hm-border-light: rgba(0, 0, 0, 0.05);
    --hm-border-strong: rgba(0, 0, 0, 0.15);
    --hm-radius-card: 16px;
    --hm-transition: 0.2s ease-in-out;
    --hm-header-bg: rgba(255, 255, 255, 0.8);
    --hm-header-bg-solid: rgba(255, 255, 255, 0.95);
}

body.dark {
    --hm-primary: #E31E24;
    --hm-primary-hover: #ff4a50;
    --hm-primary-light: rgba(227, 30, 36, 0.15);
    --hm-text: #e0e0e0;
    --hm-text-secondary: rgba(224, 224, 224, 0.6);
    --hm-text-tertiary: rgba(224, 224, 224, 0.4);
    --hm-text-muted: rgba(224, 224, 224, 0.25);
    --hm-bg: #1a1a1a;
    --hm-bg-gray: #212121;
    --hm-bg-dark: #111111;
    --hm-border: rgba(255, 255, 255, 0.08);
    --hm-border-light: rgba(255, 255, 255, 0.05);
    --hm-border-strong: rgba(255, 255, 255, 0.15);
    --hm-header-bg: rgba(26, 26, 26, 0.8);
    --hm-header-bg-solid: rgba(26, 26, 26, 0.95);
}

/* ═══ Sticky Header with Glassmorphism ═══ */
.header {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 16px 0 !important;
    background: transparent;
    transition: background 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
    -webkit-backdrop-filter: blur(0px);
    backdrop-filter: blur(0px);
}

.header.header--scrolled {
    background: var(--hm-header-bg-solid);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    box-shadow: 0 1px 0 var(--hm-border);
    padding: 10px 0 !important;
}

/* Push page content below fixed header */
body {
    padding-top: 80px;
}

/* ═══ Header Layout ═══ */
.header .header_flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.header .header_left {
    display: flex;
    align-items: center;
    gap: 32px;
    z-index: 11;
}

.header .header_right {
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 11;
    padding: 0 !important;
}

/* ═══ Logo ═══ */
.header_logo a {
    display: flex;
    align-items: center;
    transition: transform 0.2s ease, filter 0.2s ease;
}

.header_logo a:hover {
    transform: scale(1.03);
    filter: drop-shadow(0 0 10px rgba(227, 30, 36, 0.3));
}

.header_logo img,
.header_logo svg {
    height: 48px;
    width: auto;
    min-width: auto !important;
    object-fit: contain;
    transition: height 0.3s ease;
}

.header--scrolled .header_logo img,
.header--scrolled .header_logo svg {
    height: 40px;
}

/* LK sidebar logo */
.aside-bar__logo svg {
    height: 36px;
    width: auto;
}

/* Footer logo */
.footer_logo img,
.footer_logo svg {
    height: 40px;
    width: auto;
    min-width: auto !important;
    object-fit: contain;
}

.footer_logo a {
    display: flex;
    align-items: center;
}

.footer_logo a:hover {
    filter: drop-shadow(0 0 8px rgba(227, 30, 36, 0.3));
}

/* ═══ Desktop Navigation Links ═══ */
.header .header_nav_ul {
    display: flex;
    align-items: center;
    padding: 0;
    gap: 0;
}

.header .header_nav_li {
    padding: 0;
}

.header .header_nav_li a {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: var(--hm-text);
    border-radius: 8px;
    transition: color 0.2s ease, background 0.2s ease;
    text-decoration: none;
}

.header .header_nav_li a:hover {
    color: var(--hm-primary);
    background: var(--hm-primary-light);
}

.header .header_nav_li a:focus:active {
    box-shadow: none;
    background: var(--hm-primary-light);
}

body.dark .header .header_nav_li a {
    color: var(--hm-text);
}

body.dark .header .header_nav_li a:hover {
    color: var(--hm-primary);
    background: var(--hm-primary-light);
}

/* ═══ Theme Toggle ═══ */
.header .header_subject button {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid var(--hm-border);
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.header .header_subject button:hover {
    border-color: var(--hm-primary);
    background: var(--hm-primary-light);
}

/* ═══ Language Selector ═══ */
.header .header_language button {
    display: flex;
    align-items: center;
    background: transparent;
    border: none;
    cursor: pointer;
}

/* ═══ Header Buttons ═══ */
.header .header_buttons {
    display: flex;
    align-items: center;
    gap: 8px;
    width: auto;
    padding: 0;
}

.header .header_buttons button,
.header .header_buttons a {
    border-radius: 50px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 13px;
    line-height: 1.2;
    padding: 10px 24px;
    transition: all 0.2s ease-in-out;
    border: 2px solid transparent;
    white-space: nowrap;
    width: auto;
    cursor: pointer;
}

/* Login — outline */
.header .header__log-in,
.header .header__logout {
    background: transparent;
    border-color: var(--hm-border);
    color: var(--hm-text);
}

.header .header__log-in:hover,
.header .header__logout:hover {
    border-color: var(--hm-primary);
    color: var(--hm-primary);
    background: var(--hm-primary-light);
}

.header .header__log-in:focus:active,
.header .header__logout:focus:active {
    box-shadow: none;
}

/* Registration — filled primary */
.header .header__registration,
.header .header__personal-account {
    background: var(--hm-primary);
    color: #fff;
    border-color: var(--hm-primary);
}

.header .header__registration:hover,
.header .header__personal-account:hover {
    background: #c91018;
    border-color: #c91018;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(227, 30, 36, 0.3);
}

.header .header__registration:focus:active,
.header .header__personal-account:focus:active {
    box-shadow: none;
    background: #b70f14;
    transform: translateY(0);
}

/* Logout icon button */
.header .header__logout {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

.header .header__logout .logout-icon {
    color: var(--hm-text);
    transition: color 0.2s ease-in-out;
}

.header .header__logout:hover .logout-icon {
    color: var(--hm-primary);
}

/* ═══ Burger Button ═══ */
.burger {
    position: relative !important;
    top: auto !important;
    right: auto !important;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    border: 1px solid var(--hm-border);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: transparent;
    transition: border-color 0.2s ease, background 0.2s ease;
    z-index: 1;
}

.burger:hover {
    border-color: var(--hm-primary);
    background: var(--hm-primary-light);
}

.burger i {
    display: flex;
    align-items: center;
    justify-content: center;
}

.burger i svg {
    width: 24px;
    height: 24px;
}

.burger i:nth-of-type(1) svg,
.burger i:nth-of-type(2) svg {
    width: 24px !important;
    height: 24px !important;
}

.burger i:nth-of-type(1) svg rect,
.burger i:nth-of-type(2) svg rect { display: none; }

.burger i:nth-of-type(1) svg path { stroke: var(--hm-text); }
.burger i:nth-of-type(2) svg path { stroke: var(--hm-primary); }

/* Burger → X toggle: show hamburger by default, X when menu open */
.burger i:nth-of-type(2) { display: none !important; }

body.body-open .burger i:nth-of-type(1) { display: none !important; }
body.body-open .burger i:nth-of-type(2) { display: flex !important; }

/* ═══ Mobile Menu — Full-Screen Overlay (FXIFY-inspired) ═══ */
/* Hidden by default. Menu sits UNDER the header (z-index 95 < header 100).
   Header stays visible on top with logo + burger(X) + registration. */
.mt-mobile {
    position: fixed !important;
    top: 0 !important;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100% !important;
    height: 100vh !important;
    max-width: 100% !important;
    z-index: 95 !important;
    background: var(--hm-bg);
    clip-path: none !important;
    display: none !important;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.mt-mobile.hm-menu-open {
    display: flex !important;
    flex-direction: column;
    clip-path: none !important;
    opacity: 1;
    visibility: visible;
}

/* Keep old nav-open hidden */
.mt-mobile.nav-open {
    display: none !important;
    clip-path: none !important;
    opacity: 0;
    visibility: hidden;
}

.mt-mobile.nav-open.hm-menu-open {
    display: flex !important;
    opacity: 1;
    visibility: visible;
}

body.dark .mt-mobile {
    background: var(--hm-bg);
}

/* ── Menu inner layout ── */
.mt-mobile .mt-munu-mb {
    padding: 80px 24px 40px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.mt-mobile .header-navigation-wr {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.mt-mobile .header-navigation {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* ── Navigation links — centered, bold, no borders (FXIFY style) ── */
.mt-mobile .header_nav_ul {
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
    list-style: none;
}

.mt-mobile .header_nav_li,
.mt-mobile li.footer_li {
    padding: 0;
    border-bottom: none;
    border: none;
    list-style: none;
}

.mt-mobile .header_nav_li a,
.mt-mobile li.footer_li a {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px 0;
    font-family: 'Montserrat', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--hm-text);
    text-decoration: none;
    transition: color 0.2s ease;
    border-radius: 0;
    background: transparent;
}

.mt-mobile .header_nav_li a:hover,
.mt-mobile li.footer_li a:hover {
    color: var(--hm-primary);
    background: transparent;
}

body.dark .mt-mobile .header_nav_li a,
body.dark .mt-mobile li.footer_li a {
    color: #fff;
}

body.dark .mt-mobile .header_nav_li a:hover,
body.dark .mt-mobile li.footer_li a:hover {
    color: var(--hm-primary);
}

/* ── Buttons — full width, rounded rectangles ── */
.burger_button {
    margin-top: 32px;
    padding-top: 32px;
    border-top: 1px solid var(--hm-border);
}

.burger_button .header_buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.burger_button .header_buttons button,
.burger_button .header_buttons a {
    border-radius: 14px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 16px;
    line-height: 1.2;
    padding: 16px 0;
    text-align: center;
    transition: all 0.2s ease-in-out;
    border: 1.5px solid transparent;
    width: 100%;
    cursor: pointer;
}

/* Login — outline */
.burger_button .header__log-in {
    background: var(--hm-bg-gray);
    border-color: var(--hm-border);
    color: var(--hm-text);
}

.burger_button .header__log-in:hover {
    border-color: var(--hm-primary);
    color: var(--hm-primary);
}

body.dark .burger_button .header__log-in {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--hm-border);
    color: var(--hm-text);
}

/* Registration — filled red */
.burger_button .header__registration {
    background: var(--hm-primary);
    color: #fff;
    border-color: var(--hm-primary);
}

.burger_button .header__registration:hover {
    background: #c91018;
    border-color: #c91018;
}

/* ── Contact info ── */
.burger_info {
    padding: 24px 0 0;
    border-top: 1px solid var(--hm-border);
    margin-top: 24px;
    text-align: center;
}

body.dark .burger_info {
    border-color: var(--hm-border);
}

.burger_info .footer_info_title {
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--hm-text-secondary);
    margin-bottom: 4px;
}

.burger_info .footer_info_link {
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    color: var(--hm-text);
    font-weight: 500;
    text-decoration: none;
}

body.dark .burger_info .footer_info_link {
    color: #fff;
}

/* ── Bottom row: social + language/theme ── */
.burger_wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--hm-border);
}

body.dark .burger_wrap {
    border-color: var(--hm-border);
}

.burger_social .footer_social_ul {
    display: flex;
    gap: 10px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.burger_social .footer_social_li {
    padding: 0 !important;
    margin: 0 !important;
}

.burger_social .footer_social_li a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid var(--hm-border);
    background: transparent;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.burger_social .footer_social_li a:hover {
    border-color: var(--hm-primary);
    background: var(--hm-primary-light);
}

body.dark .burger_social .footer_social_li a {
    border-color: var(--hm-border);
}

/* Language & theme toggle buttons */
.burger_mobile {
    display: flex;
    align-items: center;
    gap: 8px;
}

.burger_mobile .header_language button,
.burger_mobile .header_subject button {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid var(--hm-border);
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.burger_mobile .header_language button:hover,
.burger_mobile .header_subject button:hover {
    border-color: var(--hm-primary);
    background: var(--hm-primary-light);
}

body.dark .burger_mobile .header_language button,
body.dark .burger_mobile .header_subject button {
    border-color: var(--hm-border);
}

/* ═══ Prevent body scroll when menu is open ═══ */
.body-open {
    overflow: hidden !important;
    position: fixed !important;
    width: 100%;
}

.body-open::before {
    display: none !important;
}

/* When menu is open, give header a solid bg so it doesn't look transparent over menu content */
.body-open .header {
    background: var(--hm-header-bg-solid) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    backdrop-filter: blur(16px) !important;
}

/* ═══ Desktop only — hide burger, show nav ═══ */
@media screen and (min-width: 769px) {
    .burger {
        display: none !important;
    }

    .mt-mobile {
        display: none !important;
    }

    .header .header_nav {
        display: block !important;
    }

    .header .header_right {
        padding: 0 !important;
    }
}

/* ═══ Mobile — show burger, rearrange header ═══ */
@media screen and (max-width: 768px) {
    body {
        padding-top: 70px;
    }

    .header {
        padding: 12px 0 !important;
    }

    .header--scrolled {
        padding: 8px 0 !important;
    }

    .header .header_nav {
        display: none !important;
    }

    .header .header_right {
        padding: 0 !important;
        gap: 8px;
    }

    /* Hide theme/lang selectors in header on mobile — they're in the burger menu */
    .header_right > .header_subject,
    .header_right > .header_language {
        display: none !important;
    }

    /* Show only Registration button + burger on mobile */
    .header .header_buttons .header__log-in {
        display: none;
    }

    .header .header_buttons .header__registration {
        padding: 8px 18px;
        font-size: 12px;
    }

    .burger {
        display: flex !important;
        order: 10;
    }

    .header_logo img,
    .header_logo svg {
        height: 36px;
    }

    .header--scrolled .header_logo img,
    .header--scrolled .header_logo svg {
        height: 32px;
    }
}

@media screen and (max-width: 480px) {
    .mt-mobile .mt-munu-mb {
        padding: 80px 16px 32px;
    }

    .mt-mobile .header_nav_li a {
        font-size: 16px;
        padding: 16px 0;
    }
}

/* ═══════════════════════════════════════════════ */
/* ═══ FOOTER — Modern Redesign ═══ */
/* ═══════════════════════════════════════════════ */

.footer {
    background: #1a1a1a !important;
    padding: 60px 0 0 !important;
    margin: 0 !important;
    border: none !important;
}

body.dark .footer {
    background: #0d0d0d !important;
}

/* Hide legacy decorative dividers */
.footer_restagle,
.footer_restagle2 {
    display: none !important;
}

/* ═══ Footer Main Row ═══ */
.footer .footer_wrap {
    display: grid !important;
    grid-template-columns: auto 1fr auto auto;
    align-items: start;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* ═══ Footer Logo ═══ */
.footer .footer_logo {
    flex-shrink: 0;
}

.footer .footer_logo a {
    display: flex;
    align-items: center;
}

.footer .footer_logo img,
.footer .footer_logo svg {
    height: 40px;
    width: auto;
    min-width: auto !important;
    object-fit: contain;
    transition: filter 0.2s ease;
}

.footer .footer_logo a:hover img {
    filter: drop-shadow(0 0 10px rgba(227, 30, 36, 0.4));
}

/* ═══ Footer Navigation ═══ */
.footer .footer_nav {
    display: flex;
    align-items: center;
    padding: 0 !important;
    margin: 0 !important;
}

.footer .footer_ul {
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    gap: 0;
    padding: 0;
    margin: 0;
    list-style: none;
}

.footer .footer_li {
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
}

.footer .footer_li a {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7) !important;
    text-decoration: none !important;
    border-radius: 8px;
    transition: color 0.2s ease, background 0.2s ease;
}

.footer .footer_li a:hover {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.08);
}

/* ═══ Footer Contact Info ═══ */
.footer .footer_info {
    display: flex;
    align-items: center;
}

.footer .footer_info_block {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.footer .footer_info_title {
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.4) !important;
    margin: 0;
    padding: 0;
}

.footer .footer_info_link {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #fff !important;
    text-decoration: none !important;
    transition: color 0.2s ease;
}

.footer .footer_info_link:hover {
    color: var(--hm-primary) !important;
}

/* ═══ Footer Social Icons ═══ */
.footer .footer_social {
    display: flex;
    align-items: center;
}

.footer .footer_social_ul {
    display: flex !important;
    align-items: center;
    gap: 8px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.footer .footer_social_li {
    padding: 0 !important;
    margin: 0 !important;
}

.footer .footer_social_li a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: transparent;
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.footer .footer_social_li a:hover {
    border-color: var(--hm-primary);
    background: rgba(227, 30, 36, 0.12);
    transform: translateY(-2px);
}

.footer .footer_social_li svg {
    width: 18px;
    height: 18px;
}

.footer .footer_social_li svg path {
    fill: rgba(255, 255, 255, 0.6) !important;
    transition: fill 0.2s ease;
}

.footer .footer_social_li a:hover svg path {
    fill: #fff !important;
}

/* ═══ Footer Bottom Bar ═══ */
.footer_border {
    background: rgba(0, 0, 0, 0.3) !important;
    padding: 24px 0 !important;
    margin: 0 !important;
    border: none !important;
}

.footer_border .footer_flex {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.footer_border .footer_block {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.footer_border .footer_title {
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8) !important;
    margin: 0;
    padding: 0;
}

.footer_border .footer_suptitle {
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.4) !important;
    margin: 0;
    padding: 0;
    line-height: 1.5;
    max-width: 600px;
}

/* Legal links */
.footer_border .footer_dok {
    display: flex !important;
    flex-wrap: wrap;
    gap: 6px 20px;
    padding: 4px 0 0;
    margin: 0;
    list-style: none;
}

.footer_border .footer_dok_li {
    padding: 0 !important;
    margin: 0 !important;
}

.footer_border .footer_dok_li a {
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.45) !important;
    text-decoration: none !important;
    transition: color 0.2s ease;
    border-bottom: 1px solid transparent;
}

.footer_border .footer_dok_li a:hover {
    color: rgba(255, 255, 255, 0.8) !important;
    border-bottom-color: rgba(255, 255, 255, 0.3);
}

/* Registration button in footer */
.footer_border .footer_button {
    flex-shrink: 0;
}

.footer_border .footer_button button,
.footer_border .footer_button .registration__event {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 14px;
    padding: 14px 36px;
    border-radius: 50px;
    border: none;
    background: var(--hm-primary);
    color: #fff !important;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    white-space: nowrap;
}

.footer_border .footer_button button:hover,
.footer_border .footer_button .registration__event:hover {
    background: #c91018;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(227, 30, 36, 0.35);
}

.footer_border .footer_button button:active,
.footer_border .footer_button .registration__event:active {
    transform: translateY(0);
    box-shadow: none;
}

/* ═══ Footer Responsive ═══ */
@media screen and (max-width: 1024px) {
    .footer .footer_wrap {
        grid-template-columns: auto 1fr auto;
        gap: 24px;
    }

    .footer .footer_social {
        grid-column: 1 / -1;
        justify-content: flex-start;
    }
}

@media screen and (max-width: 768px) {
    .footer {
        padding: 40px 0 0 !important;
    }

    .footer .footer_wrap {
        grid-template-columns: 1fr;
        gap: 28px;
        text-align: center;
        padding-bottom: 32px;
    }

    .footer .footer_logo {
        justify-self: center;
    }

    .footer .footer_logo a {
        justify-content: center;
    }

    .footer .footer_nav {
        justify-content: center;
    }

    .footer .footer_ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 4px;
    }

    .footer .footer_info {
        justify-content: center;
    }

    .footer .footer_info_block {
        align-items: center;
    }

    .footer .footer_social {
        justify-content: center;
    }

    .footer .footer_social_ul {
        justify-content: center;
    }

    .footer_border .footer_flex {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .footer_border .footer_block {
        align-items: center;
    }

    .footer_border .footer_dok {
        justify-content: center;
    }

    .footer_border .footer_suptitle {
        max-width: 100%;
    }

    .footer_border .footer_button {
        width: 100%;
    }

    .footer_border .footer_button button,
    .footer_border .footer_button .registration__event {
        width: 100%;
        padding: 16px 36px;
    }
}

@media screen and (max-width: 480px) {
    .footer .footer_li a {
        padding: 6px 10px;
        font-size: 13px;
    }
}


/* ═══════════════════════════════════════════════════════ */
/* WPML Language Switcher                                  */
/* ═══════════════════════════════════════════════════════ */

/* --- Base --- */
.hm-lang-switcher {
    position: relative;
}

.hm-lang-switcher__trigger {
    display: flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    font-family: "Montserrat", sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: var(--hm-text);
    transition: color 0.2s ease;
}

.hm-lang-switcher__trigger:hover {
    color: var(--hm-primary);
}

.hm-lang-switcher__flag {
    width: 20px;
    height: 14px;
    border-radius: 2px;
    object-fit: cover;
    flex-shrink: 0;
}

.hm-lang-switcher__arrow {
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.hm-lang-switcher.is-open .hm-lang-switcher__arrow {
    transform: rotate(180deg);
}

/* --- Dropdown --- */
.hm-lang-switcher__dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 160px;
    background: var(--hm-bg, #fff);
    border: 1px solid var(--hm-border);
    border-radius: 12px;
    padding: 6px 0;
    margin: 0;
    list-style: none;
    z-index: 1000;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.hm-lang-switcher.is-open .hm-lang-switcher__dropdown {
    display: block;
}

.hm-lang-switcher__link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    text-decoration: none;
    color: var(--hm-text);
    font-family: "Montserrat", sans-serif;
    font-size: 13px;
    font-weight: 500;
    transition: background 0.15s ease;
}

.hm-lang-switcher__link:hover {
    background: var(--hm-primary-light, rgba(0, 184, 100, 0.08));
}

.hm-lang-switcher__name {
    flex: 1;
}

.hm-lang-switcher__link .hm-lang-switcher__code {
    color: var(--hm-text-secondary);
    font-size: 11px;
    font-weight: 600;
}

/* --- Dark mode dropdown --- */
body.dark .hm-lang-switcher__dropdown {
    background: #1e1e24;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

/* --- Desktop trigger: flag + code + arrow, no border --- */
.hm-lang-switcher--desktop {
    margin-right: 8px;
}

.hm-lang-switcher--desktop .hm-lang-switcher__trigger {
    border: none;
    padding: 0;
}

/* --- Mobile trigger: 44x44 box with border, flag only --- */
.hm-lang-switcher--mobile .hm-lang-switcher__trigger {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid var(--hm-border);
    justify-content: center;
    padding: 0;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.hm-lang-switcher--mobile .hm-lang-switcher__trigger:hover {
    border-color: var(--hm-primary);
    background: var(--hm-primary-light);
}

body.dark .hm-lang-switcher--mobile .hm-lang-switcher__trigger {
    border-color: var(--hm-border);
}

.hm-lang-switcher--mobile .hm-lang-switcher__code,
.hm-lang-switcher--mobile .hm-lang-switcher__arrow {
    display: none;
}

/* Mobile dropdown opens upward */
.hm-lang-switcher--mobile .hm-lang-switcher__dropdown {
    top: auto;
    bottom: calc(100% + 8px);
}

/* --- Hide WPML default footer switcher --- */
.wpml-ls-statics-footer {
    display: none !important;
}

/* ═══ MOBILE SWITCHER FIX ═══ */
.burger_mobile {
    align-items: center;
}

.burger_mobile .header_language,
.burger_mobile .header_language .hm-lang-switcher {
    display: flex;
    align-items: center;
    height: 44px;
}
