/* ===================== HEADER STYLE ===================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: var(--transition);
    backdrop-filter: blur(10px);
    height: 70px;
    border-bottom: 1px solid rgba(8, 47, 97, 0.1);
}

.header.scrolled {
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    height: 100%;
    position: relative;
}

/* Logo - POWIĘKSZONE */
.header-logo {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 1001;
    padding: 5px;
}

.header-logo img {
    height: 60px;
    width: auto;
    transition: var(--transition);
}

.header-logo img:hover {
    transform: scale(1.08);
}

.header-logo a:focus-visible {
    outline: 3px solid var(--primary-light);
    outline-offset: 4px;
    border-radius: 4px;
}

/* Mobile menu button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary-blue);
    cursor: pointer;
    transition: var(--transition);
    z-index: 1002;
    padding: 10px;
    border-radius: 4px;
    min-width: 48px;
    min-height: 48px;
    position: relative;
}

.mobile-menu-btn:focus-visible {
    outline: 3px solid var(--primary-light);
    outline-offset: 2px;
    background-color: rgba(8, 47, 97, 0.05);
}

/* WCAG: aria-label dla przycisku menu (niewidoczne wizualnie) */
.mobile-menu-btn::after {
    content: 'Menu nawigacji';
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Główne menu - MOBILE FIRST APPROACH */
.header-nav {
    display: none;
    width: 100%;
}

.header-nav.active {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--white);
    z-index: 999;
    padding: 80px 20px 20px;
    overflow-y: auto;
}

.nav-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    width: 100%;
    margin: 0;
    border-bottom: 1px solid var(--light-gray);
}

.nav-menu > li > a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    font-family: 'Michroma', sans-serif;
    font-weight: 400;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--primary-dark);
    transition: var(--transition);
    width: 100%;
    min-height: 48px;
    text-decoration: none;
    position: relative;
}

.nav-menu > li > a:hover {
    color: var(--primary-light);
}

.nav-menu > li > a:focus-visible {
    outline: 3px solid var(--primary-light);
    outline-offset: -3px;
    background-color: rgba(8, 47, 97, 0.05);
}

.nav-menu > li > a:active {
    background-color: transparent;
    outline: none;
    color: var(--primary-light);
}

/* Dropdown menu - MOBILE */
.dropdown-menu {
    display: none;
    padding-left: 15px;
    background-color: transparent;
    width: 100%;
    margin: 0;
}

.dropdown.active .dropdown-menu {
    display: block;
}

.dropdown-menu li {
    border-bottom: none;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.dropdown-menu a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    font-weight: 500;
    color: var(--gray);
    text-transform: none;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    transition: var(--transition);
    width: 100%;
    min-height: 44px;
    text-decoration: none;
}

.dropdown-menu a:hover {
    color: var(--primary);
    padding-left: 10px;
}

.dropdown-menu a:focus-visible {
    outline: 3px solid var(--primary-light);
    outline-offset: -3px;
    background-color: rgba(8, 47, 97, 0.05);
}

/* Sub-dropdown - MOBILE */
.sub-dropdown-menu {
    display: none;
    padding-left: 15px;
    background-color: transparent;
    width: 100%;
    margin: 0;
}

.sub-dropdown.active .sub-dropdown-menu {
    display: block;
}

.sub-dropdown-menu a {
    padding: 12px 0;
    font-size: 0.85rem;
    min-height: 44px;
}

.dropdown-icon, .dropdown-arrow {
    font-size: 0.8rem;
    transition: var(--transition);
}

.dropdown.active .dropdown-icon {
    transform: rotate(180deg);
}

.sub-dropdown.active .dropdown-arrow {
    transform: rotate(90deg);
}

/* Desktop menu - tylko na większych ekranach */
@media (min-width: 951px) {
    .header-nav {
        display: flex;
        position: static;
        height: auto;
        padding: 0;
        background: transparent;
        overflow: visible;
    }

    .nav-menu {
        flex-direction: row;
        gap: 25px;
        width: 100%;
        justify-content: space-around;
        align-items: center;
    }

    .nav-menu li {
        width: auto;
        border-bottom: none;
        position: relative;
    }

    .nav-menu > li > a {
        padding: 8px 0;
        font-size: 0.75rem;
        white-space: nowrap;
        position: relative;
        min-height: auto;
    }

    .nav-menu > li > a::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 0;
        height: 2px;
        background-color: var(--primary-light);
        transition: var(--transition);
    }

    .nav-menu > li > a:hover::after {
        width: 100%;
    }

    .nav-menu > li > a:active {
        background-color: transparent;
        outline: none;
        color: var(--primary-light);
    }

    /* Rozmieszczenie elementów - 3 po lewej, 3 po prawej stronie logo */
    .nav-menu > li:nth-child(-n+3) {
        margin-right: auto;
    }

    .nav-menu > li:nth-last-child(-n+3) {
        margin-left: auto;
    }    /* Dropdown menu - DESKTOP */
    .dropdown-menu {
        position: absolute;
        top: 100%;
        left: 0;
        background-color: var(--white);
        min-width: 250px;
        box-shadow: var(--shadow);
        border-radius: var(--border-radius);
        opacity: 0;
        visibility: hidden;
        transform: translateY(10px);
        transition: var(--transition);
        z-index: 100;
        padding: 10px 0;
        border: 1px solid var(--light-gray);
        display: block !important;
    }

    .dropdown:hover .dropdown-menu,
    .dropdown:focus-within .dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .dropdown-menu li {
        margin: 0;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }

    .dropdown-menu li:last-child {
        border-bottom: none;
    }

    .dropdown-menu a {
        padding: 10px 20px;
        font-size: 0.85rem;
        color: var(--dark);
        min-height: auto;
    }

    .dropdown-menu a:hover {
        color: var(--primary);
        background-color: rgba(8, 47, 97, 0.05);
        padding-left: 25px;
    }

    .dropdown-menu a:focus-visible {
        outline: 3px solid var(--primary-light);
        outline-offset: -3px;
        background-color: rgba(8, 47, 97, 0.05);
    }

    /* Sub-dropdown - DESKTOP */
    .sub-dropdown-menu {
        position: absolute;
        top: 0;
        left: 100%;
        background-color: var(--white);
        min-width: 250px;
        box-shadow: var(--shadow);
        border-radius: var(--border-radius);
        opacity: 0;
        visibility: hidden;
        transform: translateX(10px);
        transition: var(--transition);
        z-index: 101;
        padding: 10px 0;
        border: 1px solid var(--light-gray);
        display: block !important;
    }

    .sub-dropdown:hover .sub-dropdown-menu,
    .sub-dropdown:focus-within .sub-dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateX(0);
    }

    .sub-dropdown-menu a {
        padding: 8px 20px;
        font-size: 0.8rem;
    }

    .mobile-menu-btn {
        display: none;
    }
}

/* Responsywność dla mniejszych desktopów */
@media (max-width: 1100px) and (min-width: 951px) {
    .nav-menu {
        gap: 20px;
    }
    
    .nav-menu > li > a {
        font-size: 0.7rem;
    }
    
    .header-logo img {
        height: 55px;
    }
}

@media (max-width: 992px) and (min-width: 951px) {
    .nav-menu {
        gap: 15px;
    }
    
    .nav-menu > li > a {
        font-size: 0.65rem;
    }
    
    .header-logo img {
        height: 50px;
    }
}

/* Mobile adjustments */
@media (max-width: 950px) {
    .mobile-menu-btn {
        display: block;
        position: absolute;
        left: 20px;
        top: 50%;
        transform: translateY(-50%);
    }
    
    .header-logo {
        position: static;
        transform: none;
        margin: 0 auto;
    }
    
    .header-container {
        justify-content: space-between;
    }
    
    .header-logo img {
        height: 55px;
    }
}

@media (max-width: 768px) {
    .header-container {
        padding: 0 15px;
    }
    
    .mobile-menu-btn {
        left: 15px;
    }
    
    .header-logo img {
        height: 48px;
    }
    
    .header-nav.active {
        padding: 70px 15px 15px;
    }
}

@media (max-width: 480px) {
    .header-container {
        padding: 0 10px;
    }
    
    .mobile-menu-btn {
        left: 10px;
        font-size: 1.3rem;
        min-width: 44px;
        min-height: 44px;
    }
    
    .header-logo img {
        height: 42px;
    }
    
    .header-nav.active {
        padding: 70px 10px 10px;
    }
    
    .nav-menu > li > a {
        min-height: 44px;
        padding: 14px 0;
    }
}

@media (max-width: 360px) {
    .header-logo img {
        height: 38px;
    }
}

/* Skip link dla klawiatury (WCAG) */
.skip-to-content {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-blue);
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    font-weight: 600;
    border-radius: 0 0 4px 0;
    z-index: 10000;
    transition: top 0.3s;
}

.skip-to-content:focus {
    top: 0;
    outline: 3px solid var(--primary-light);
    outline-offset: 2px;
}

/* ===================== FOOTER ===================== */
footer {
    background: linear-gradient(135deg, #082f61 0%, #0d2b5a 100%);
    color: #ffffff;
    padding: 40px 0 15px;
    position: relative;
    margin-top: auto;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #00a3e0, #1b82ff, #ffffff);
}

.footer-main {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 30px;
    margin-bottom: 25px;
}

.footer-info {
    flex: 1;
    display: flex;
    gap: 30px;
}

.footer-col {
    flex: 1;
    min-width: 0;
}

.footer-col h4 {
    font-family: 'Michroma', sans-serif;
    margin-bottom: 12px;
    font-size: 1rem;
    position: relative;
    padding-bottom: 6px;
    color: #ffffff;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 35px;
    height: 2px;
    background: #00a3e0;
}

.footer-col p {
    line-height: 1.6;
    opacity: 0.9;
    margin-bottom: 10px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.9);
}

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

.footer-links li {
    margin-bottom: 5px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
    display: block;
    font-size: 0.8rem;
    padding: 4px 0;
    border-radius: 2px;
    position: relative;
}

.footer-links a:hover {
    color: #00a3e0;
    transform: translateX(3px);
}

.footer-links a:focus-visible {
    outline: 2px solid #00a3e0;
    outline-offset: 2px;
    color: #00a3e0;
    background-color: rgba(0, 163, 224, 0.1);
}

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

.footer-contact li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 8px;
}

.footer-contact i {
    margin-right: 8px;
    color: #00a3e0;
    width: 14px;
    margin-top: 2px;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.footer-contact span {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.8rem;
    line-height: 1.5;
}

.footer-contact a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: var(--transition);
    border-radius: 2px;
    padding: 2px 4px;
    display: inline-block;
}

.footer-contact a:hover {
    color: #00a3e0;
}

.footer-contact a:focus-visible {
    outline: 2px solid #00a3e0;
    outline-offset: 2px;
    color: #00a3e0;
    background-color: rgba(0, 163, 224, 0.1);
}

.social-links {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: var(--transition);
    color: #ffffff;
    text-decoration: none;
    font-size: 0.85rem;
    min-width: 44px;
    min-height: 44px;
    border: 2px solid transparent;
}

.social-links a:hover {
    background: #32589b;
    transform: translateY(-2px);
}

.social-links a:focus-visible {
    outline: 2px solid #00a3e0;
    outline-offset: 2px;
    background: #32589b;
    border-color: #00a3e0;
}

.footer-map-square {
    flex: 0 0 250px;
    height: 200px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.footer-map-square iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.footer-map-full {
    display: none;
    padding: 20px 0;
    background: rgba(0, 0, 0, 0.1);
}

.footer-map-full .map-container {
    margin: 0 auto;
    padding: 0 15px;
}

.footer-map-full iframe {
    width: 100%;
    height: 250px;
    border: none;
    border-radius: 8px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.footer-bottom {
    text-align: center;
    padding: 15px 0 70px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.75rem;
    opacity: 0.8;
    color: rgba(255, 255, 255, 0.8);
}

.footer-bottom a {
    color: #00a3e0;
    text-decoration: underline;
    padding: 2px 4px;
    border-radius: 2px;
}

.footer-bottom a:hover,
.footer-bottom a:focus {
    color: #ffffff;
    text-decoration: none;
    background-color: rgba(0, 163, 224, 0.2);
}

.footer-bottom a:focus-visible {
    outline: 2px solid #00a3e0;
    outline-offset: 2px;
}

/* ===================== NIERUCHOMY PASEK KONTAKTOWY ===================== */
.contact-bar {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 50px !important;
    background: rgba(255, 255, 255, 0.98) !important; /* Białe tło */
    border-top: 2px solid #082f61 !important; /* Granica w kolorze głównym */
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1) !important;
    z-index: 999999 !important; /* Najwyższy możliwy z-index */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important; /* Wyśrodkuj tekst kontaktowy */
    padding: 0 30px !important; /* Więcej miejsca z boków */
    box-sizing: border-box !important;
    backdrop-filter: blur(5px) !important; /* Rozmycie dla lepszego efektu */
    overflow: hidden !important; /* Zapobiega wychodzeniu tła linków poza pasek */
}

.contact-bar-content {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    flex-shrink: 0;
    max-height: 50px; /* Zapewnij że zawartość nie wychodzi poza wysokość paska */
}

.appointment-button-container {
    position: absolute !important;
    right: 30px !important; /* Pozycjonowanie po prawej stronie */
    top: 50% !important;
    transform: translateY(-50%) !important; /* Wyśrodkowanie w pionie */
    z-index: 1000000 !important; /* Wyższy niż contact-bar */
}

.contact-text {
    color: #000000 !important; /* Czarny tekst na białym tle */
    font-family: 'Open Sans', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
}

.contact-bar .contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.contact-bar .contact-item i {
    color: #000000 !important; /* Czarne ikony na białym tle */
    font-size: 1rem;
    width: 16px;
    text-align: center;
}

.contact-bar .contact-link {
    color: #000000 !important; /* Czarne linki na białym tle */
    text-decoration: none;
    transition: var(--transition);
    font-weight: 400; /* Normalna waga jak na stronie głównej */
    font-family: 'Open Sans', sans-serif; /* Czcionka jak na stronie głównej */
}

.contact-bar .contact-link:hover {
    color: #082f61 !important; /* Niebieski kolor przy hover */
    text-decoration: underline !important;
}

.contact-bar .contact-link:focus-visible {
    outline: 2px solid #082f61 !important;
    outline-offset: 1px !important;
    color: #082f61 !important;
}

.contact-separator {
    color: #000000 !important; /* Czarny separator na białym tle */
    font-weight: bold;
    font-size: 1.2rem;
}

/* MyDr Button Styles */
.contact-bar-right {
    position: absolute !important;
    right: 20px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    flex-shrink: 0 !important;
}

.btn-mydr-pp {
    background: linear-gradient(135deg, #082f61, #0089c2) !important; /* Stałe kolory zamiast zmiennych */
    color: white !important;
    border: 2px solid #082f61 !important; /* Dodaj border dla lepszej widoczności */
    padding: 10px 20px !important; /* Większy padding */
    border-radius: 25px !important;
    font-size: 0.9rem !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    white-space: nowrap !important;
    box-shadow: 0 4px 15px rgba(8, 47, 97, 0.4) !important; /* Mocniejszy cień */
    min-width: 140px !important;
    text-align: center !important;
    display: inline-block !important;
    position: relative !important;
    z-index: 2147483647 !important; /* Maksymalny z-index */
    opacity: 1 !important; /* Wymuś pełną widoczność */
}

.btn-mydr-pp:hover {
    transform: translateY(-2px) scale(1.05) !important;
    box-shadow: 0 6px 20px rgba(8, 47, 97, 0.6) !important;
    background: linear-gradient(135deg, #0089c2, #082f61) !important;
    border-color: #0089c2 !important;
}

/* ===================== RESPONSYWNOŚĆ FOOTERA ===================== */
@media (max-width: 1100px) {
    .footer-main {
        gap: 25px;
    }
    
    .footer-info {
        gap: 25px;
    }
    
    .footer-map-square {
        flex: 0 0 220px;
        height: 180px;
    }
}

@media (max-width: 992px) {
    .footer-main {
        flex-direction: column;
    }
    
    .footer-map-square {
        display: none;
    }
    
    .footer-map-full {
        display: block;
    }
    
    .footer-info {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .footer-info {
        flex-direction: column;
        gap: 20px;
    }
    
    .footer-col {
        min-width: 100%;
    }
    
    footer {
        padding: 30px 0 15px;
    }
    
    .footer-map-full iframe {
        height: 200px;
    }
    
    /* Responsywność paska kontaktowego */
    .contact-bar {
        height: 45px;
        padding: 0 15px;
        justify-content: space-between !important;
    }

    .contact-bar-left {
        flex: 1;
    }

    .contact-bar-content {
        gap: 0;
        font-size: 0.8rem;
        flex-shrink: 1;
        max-height: 45px;
    }

    .contact-text {
        display: none;
    }

    .contact-separator {
        display: none;
    }

    /* Ukryj email - zostaw tylko telefon */
    .contact-bar .contact-item:last-child {
        display: none;
    }

    .contact-bar .contact-item {
        gap: 6px;
    }

    .contact-bar .contact-item i {
        font-size: 0.9rem;
        width: 14px;
    }

    .contact-bar .contact-link {
        font-size: 0.8rem;
    }

    .appointment-button-container {
        position: static !important;
        transform: none !important;
        right: auto !important;
        top: auto !important;
        flex-shrink: 0;
    }

    .btn-mydr-pp {
        padding: 6px 12px;
        font-size: 0.7rem;
        min-width: 120px;
    }

    /* Dostosuj padding body dla mobile */
    body {
        padding-bottom: 45px;
    }
}

@media (max-width: 480px) {
    .footer-map-full iframe {
        height: 180px;
    }
    
    .footer-col h4 {
        font-size: 0.9rem;
    }
    
    .footer-col p,
    .footer-links a,
    .footer-contact span {
        font-size: 0.75rem;
    }
    
    .social-links a {
        min-width: 40px;
        min-height: 40px;
        width: 36px;
        height: 36px;
    }
    
    /* Dostosuj contact-bar na bardzo małych ekranach */
    .contact-text {
        display: none;
    }
    
    .contact-separator {
        display: none;
    }
    
    /* Ukryj email - zostaw tylko telefon */
    .contact-bar .contact-item:last-child {
        display: none;
    }
    
    .contact-bar {
        padding: 0 15px;
        justify-content: space-between !important;
    }
    
    .contact-bar-content {
        justify-content: flex-start;
        gap: 0;
        flex-shrink: 1;
    }
    
    .appointment-button-container {
        position: static !important;
        transform: none !important;
        right: auto !important;
        top: auto !important;
        flex-shrink: 0;
    }
    
    .btn-mydr-pp {
        padding: 6px 12px;
        font-size: 0.7rem;
        min-width: auto !important;
    }
}

/* WCAG Improvements - bez zmian kontrastu */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .header-logo img:hover,
    .social-links a:hover,
    .footer-links a:hover,
    .footer-contact a:hover {
        transform: none !important;
    }
    
    .dropdown-menu,
    .sub-dropdown-menu {
        transition: none !important;
    }
}

@media (prefers-contrast: high) {
    .header {
        background-color: #ffffff;
        border-bottom: 2px solid #082f61;
    }
    
    .nav-menu > li > a {
        color: #082f61;
    }
    
    footer {
        background: #082f61;
        border-top: 2px solid #00a3e0;
    }
    
    .footer-col h4 {
        color: #ffffff;
    }
    
    .footer-links a,
    .footer-contact span {
        color: #ffffff;
    }
}

/* Poprawki dla focus - WCAG */
:focus-visible {
    outline-width: 3px !important;
    outline-style: solid !important;
    outline-offset: 2px !important;
}

/* Poprawki dla czytników ekranu */
.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;
}

/* Poprawki dla nawigacji klawiaturowej */
.nav-menu > li > a:focus,
.dropdown-menu a:focus,
.footer-links a:focus,
.footer-contact a:focus,
.social-links a:focus {
    z-index: 1;
}

/* Poprawki dla scrollbara w menu mobilnym */
.header-nav.active {
    scrollbar-width: thin;
    scrollbar-color: var(--primary-blue) #f0f0f0;
}

.header-nav.active::-webkit-scrollbar {
    width: 8px;
}

.header-nav.active::-webkit-scrollbar-track {
    background: #f0f0f0;
}

.header-nav.active::-webkit-scrollbar-thumb {
    background: var(--primary-blue);
    border-radius: 4px;
}

/* Poprawki dla focus states w dropdown desktop */
@media (min-width: 951px) {
    .dropdown > a:focus-visible + .dropdown-menu,
    .dropdown:focus-within > a:focus-visible + .dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
}
