/* Header Styles - Geldavo */
:root {
    --yellow-primary: #F2C94C;
    --yellow-secondary: #f7a86b;
    --header-bg: #fff;
    --ink: #1a1a1a;
    --muted: #6b6b6b;
    --radius: 14px;
    --container: 1200px;
}

/* Skip link для accessibility */
.skip-link {
    position: absolute;
    left: -9999px;
    top: auto;
}

.skip-link:focus {
    position: static;
    left: auto;
}

/* Header */
.site-header {
    background: linear-gradient(135deg, var(--yellow-primary) 0%, var(--yellow-secondary) 100%);
    border-bottom: 3px solid rgba(255, 255, 255, 0.3);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(247, 168, 107, 0.3);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 80px;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 20px;
}

/* Logo */
.brand {
    flex-shrink: 0;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #ffffff;
    font-weight: 800;
    font-size: 1.8rem;
    transition: all 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

.logo-text {
    color: #ffffff;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

/* Navigation Toggle */
.nav-toggle {
    display: none;
}

/* Burger Menu */
.burger {
    display: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.burger:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

.burger span {
    display: block;
    width: 26px;
    height: 3px;
    background: #ffffff;
    margin: 5px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Burger Animation */
.nav-toggle:checked ~ .burger span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.nav-toggle:checked ~ .burger span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.nav-toggle:checked ~ .burger span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

/* Main Navigation */
.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 24px;
    align-items: center;
}

.main-nav li {
    margin: 0;
}

.main-nav a {
    text-decoration: none;
    color: #ffffff;
    font-weight: 600;
    font-size: 1.05rem;
    padding: 10px 14px;
    border-radius: 10px;
    transition: all 0.3s ease;
    display: block;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.main-nav a:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.main-nav .muted a {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.95rem;
}

.main-nav .muted a:hover {
    color: #ffffff;
}

/* Main Content Layout */
.site-main {
    flex: 1;
}

/* Responsive - Tablets */
@media (max-width: 980px) {
    .header-inner {
        min-height: 75px;
    }
    
    .logo {
        font-size: 1.6rem;
    }
    
    
    .main-nav ul {
        gap: 18px;
    }
    
    .main-nav a {
        font-size: 1rem;
        padding: 8px 12px;
    }
}

/* Responsive - Mobile */
@media (max-width: 768px) {
    .header-inner {
        min-height: 70px;
    }
    
    .logo {
        font-size: 1.5rem;
    }
    
    
    /* Show burger menu */
    .burger {
        display: block;
        order: 3;
        z-index: 1001;
    }
    
    /* Mobile Navigation */
    .main-nav {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: linear-gradient(135deg, var(--yellow-primary) 0%, var(--yellow-secondary) 100%);
        border-bottom: 3px solid rgba(255, 255, 255, 0.3);
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: max-height 0.3s ease, opacity 0.3s ease;
    }
    
    .nav-toggle:checked ~ .burger + .main-nav {
        max-height: 500px;
        opacity: 1;
    }
    
    .main-nav ul {
        flex-direction: column;
        padding: 20px 16px;
        gap: 0;
    }
    
    .main-nav li {
        width: 100%;
        text-align: center;
        margin: 8px 0;
    }
    
    .main-nav a {
        font-size: 1.3rem;
        padding: 14px 20px;
        background: rgba(255, 255, 255, 0.15);
        border-radius: 12px;
        backdrop-filter: blur(10px);
        border: 2px solid rgba(255, 255, 255, 0.25);
        display: block;
    }
    
    .main-nav a:hover {
        background: rgba(255, 255, 255, 0.25);
    }
    
    .main-nav .muted a {
        color: rgba(255, 255, 255, 0.8);
        font-size: 1.1rem;
    }
    
    /* Prevent scroll when menu open */
    body:has(.nav-toggle:checked) {
        overflow: hidden;
    }
}

/* Responsive - Small Mobile */
@media (max-width: 480px) {
    .header-inner {
        min-height: 65px;
        padding: 0 16px;
    }
    
    .logo {
        font-size: 1.3rem;
    }
    
    
    .burger span {
        width: 24px;
        height: 2.5px;
    }
    
    .main-nav {
        top: 65px;
    }
    
    .main-nav ul {
        padding: 16px 12px;
    }
    
    .main-nav a {
        font-size: 1.2rem;
        padding: 12px 16px;
    }
    
    .main-nav .muted a {
        font-size: 1rem;
    }
}

/* Responsive - Extra Small */
@media (max-width: 360px) {
    .header-inner {
        padding: 0 12px;
    }
    
    .logo {
        font-size: 1.2rem;
    }
    
    
    .burger span {
        width: 22px;
    }
    
    .main-nav a {
        font-size: 1.1rem;
        padding: 11px 14px;
    }
}

/* Prevent animation on resize */
@media (max-width: 768px) {
    .main-nav {
        transition: none;
    }
    
    .nav-toggle:checked ~ .burger + .main-nav {
        transition: max-height 0.3s ease, opacity 0.3s ease;
    }
}

/* Focus States для accessibility */
*:focus {
    outline: 2px solid rgba(255, 255, 255, 0.5);
    outline-offset: 2px;
}

.main-nav a:focus {
    outline-color: #ffffff;
}

