/* Header, navigation, cookie consent — extracted from layout shell */

.header {
    position: sticky;
    top: 0;
    z-index: 3000;
    background: rgba(11, 13, 23, 0.92);
    backdrop-filter: blur(16px) saturate(180%);
    border-bottom: 1px solid var(--glass-border);
    transition: background 0.3s ease;
}

.header::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(80, 113, 120, 0.35) 50%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.header:hover::after {
    opacity: 1;
}

.header-inner {
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.burger {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.04);
    color: var(--color-text);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    line-height: 1;
    transition: all 0.2s ease;
}

.burger:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(80, 113, 120, 0.45);
    transform: translateY(-1px);
}

.nav-desktop {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: nowrap;
}

.nav-desktop a {
    color: var(--color-text);
    font-weight: 500;
    font-size: 0.875rem;
    padding: 6px 10px;
    border-radius: 8px;
    opacity: 0.85;
    transition: all 0.2s ease;
    white-space: nowrap;
    position: relative;
    text-decoration: none;
}

.nav-desktop a:hover {
    opacity: 1;
    color: var(--color-primary);
    background: rgba(255, 255, 255, 0.04);
}

.nav-item {
    position: relative;
    display: flex;
    align-items: center;
}

.nav-button {
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    color: var(--color-text);
    font-weight: 500;
    font-size: 0.875rem;
    opacity: 0.85;
    padding: 6px 10px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s ease;
    white-space: nowrap;
    border-radius: 8px;
}

.nav-button:hover,
.nav-button[aria-expanded="true"] {
    opacity: 1;
    color: var(--color-primary);
    background: rgba(255, 255, 255, 0.04);
}

.mega-panel {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    width: max-content;
    min-width: 320px;
    background: rgba(11, 13, 23, 0.98);
    backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
    z-index: 3100;
}

.mega-panel a {
    display: block;
    padding: 10px 12px;
    border-radius: 10px;
    color: var(--color-text);
    text-decoration: none;
    transition: background 0.15s ease, transform 0.15s ease;
}

.mega-panel a:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(4px);
}

.mega-panel a strong {
    display: block;
    font-size: 0.98rem;
    font-weight: 600;
    margin-bottom: 2px;
}

.mega-panel a span {
    display: block;
    font-size: 0.85rem;
    color: var(--color-text-muted);
    line-height: 1.35;
}

.nav-mobile {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    background: rgba(11, 13, 23, 0.98);
    backdrop-filter: blur(16px) saturate(180%);
    border-bottom: 1px solid var(--glass-border);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 2500;
    max-height: calc(100vh - var(--header-height));
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.nav-mobile a {
    text-align: center;
    font-size: 1.05rem;
    opacity: 0.9;
    color: var(--color-text);
    text-decoration: none;
    padding: 8px 0;
}

.nav-mobile a:hover {
    opacity: 1;
    color: var(--color-primary);
}

.nav-mobile .cta.mobile {
    width: 100%;
    justify-content: center;
}

.nav-mobile-group {
    border-top: 1px solid var(--glass-border);
    padding-top: 12px;
    margin-top: 4px;
}

.nav-mobile-group-title {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-text-muted);
    text-align: center;
    margin-bottom: 8px;
}

@media (max-width: 1024px) {
    .nav-desktop {
        display: none;
    }

    .burger {
        display: inline-flex;
    }
}

@media (min-width: 1025px) {
    .burger {
        display: none;
    }

    .nav-mobile {
        display: none !important;
    }
}

.footer-company-info {
    font-size: var(--text-sm);
    opacity: 0.8;
    margin-top: var(--space-2);
    line-height: 1.6;
}

.footer-description {
    margin-top: var(--space-3);
    color: var(--color-text-muted);
}

.footer-copyright {
    margin-top: var(--space-10);
    padding-top: var(--space-5);
    border-top: 1px solid var(--glass-border);
    text-align: center;
    font-size: var(--text-sm);
    opacity: 0.7;
}

.copyright-main {
    margin-bottom: var(--space-2);
}

.copyright-note {
    margin: 0;
    font-size: var(--text-xs);
    line-height: 1.6;
}

/* Cookie consent */
.cookie-consent {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    max-width: 420px;
    background: rgba(11, 13, 23, 0.98);
    backdrop-filter: blur(24px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    color: #fff;
}

.cookie-consent h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 12px;
}

.cookie-consent p {
    font-size: 0.85rem;
    line-height: 1.5;
    color: #ccc;
    margin: 0 0 20px;
}

.cookie-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

@media (min-width: 480px) {
    .cookie-actions {
        flex-direction: row;
        flex-wrap: wrap;
    }
}

.cookie-actions button {
    flex: 1;
    padding: 12px 16px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid transparent;
    font-family: inherit;
}

.btn-accept {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}

.btn-accept:hover {
    filter: brightness(1.08);
    transform: translateY(-1px);
}

.btn-reject {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-reject:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.btn-customize {
    background: transparent;
    color: #aaa;
    font-weight: 500;
}

.btn-customize:hover {
    color: #fff;
    text-decoration: underline;
}

.cookie-categories {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.cookie-category {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 12px;
}

.cookie-label {
    display: flex;
    gap: 12px;
    cursor: pointer;
    align-items: flex-start;
}

.cookie-label input[type="checkbox"] {
    margin-top: 4px;
    width: 16px;
    height: 16px;
    accent-color: var(--color-primary);
}

.cookie-label strong {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 4px;
}

.cookie-label p {
    font-size: 0.8rem;
    color: #aaa;
    margin: 0;
    line-height: 1.3;
}

.cookie-footer {
    font-size: 0.75rem;
    color: #888;
    text-align: center;
    margin-top: 15px;
}

.cookie-footer a {
    color: #aaa;
    text-decoration: underline;
}

.cookie-floating-btn {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(11, 13, 23, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 1.25rem;
    cursor: pointer;
    z-index: 990;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.cookie-floating-btn:hover {
    transform: scale(1.08);
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
}

@media (max-width: 640px) {
    .cookie-consent {
        bottom: 0;
        right: 0;
        left: 0;
        max-width: 100%;
        border-radius: 12px 12px 0 0;
        padding: 20px;
    }
}
