/* Cookie notice + 404 helpers (shared) */

.cookie-notice {
    position: fixed;
    left: max(20px, env(safe-area-inset-left));
    right: max(20px, env(safe-area-inset-right));
    bottom: max(20px, env(safe-area-inset-bottom));
    z-index: 4000;
    max-width: 760px;
    margin: 0 auto;
    padding: 20px 22px;
    background: rgba(11, 11, 11, 0.96);
    border: 1px solid #222222;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.55);
    display: none;
    gap: 18px;
    align-items: flex-end;
    justify-content: space-between;
}

.cookie-notice.is-visible {
    display: flex;
}

.cookie-notice-copy {
    flex: 1;
    min-width: 0;
}

.cookie-notice-copy p {
    margin: 0;
    font-size: 0.86rem;
    line-height: 1.55;
    color: rgba(224, 224, 224, 0.82);
}

.cookie-notice-copy a {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.cookie-notice-copy a:hover {
    color: #FE910E;
}

.cookie-notice-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    flex-shrink: 0;
}

.cookie-notice-btn {
    font-family: 'Syne', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 12px 16px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.cookie-notice-btn-primary {
    background: #FE910E;
    color: #050505;
    border-color: #FE910E;
}

.cookie-notice-btn-primary:hover {
    background: #FFA83A;
    border-color: #FFA83A;
}

.cookie-notice-btn-secondary {
    background: transparent;
    color: #E0E0E0;
    border-color: #333333;
}

.cookie-notice-btn-secondary:hover {
    border-color: #FE910E;
    color: #fff;
}

@media (max-width: 720px) {
    .cookie-notice {
        left: max(12px, env(safe-area-inset-left));
        right: max(12px, env(safe-area-inset-right));
        bottom: max(12px, env(safe-area-inset-bottom));
        flex-direction: column;
        align-items: stretch;
        padding: 18px 16px;
    }

    .cookie-notice-actions {
        width: 100%;
    }

    .cookie-notice-btn {
        flex: 1;
        text-align: center;
    }

    .error-page {
        padding: 56px 0 72px;
    }

    .error-page h1 {
        font-size: clamp(1.8rem, 9vw, 2.6rem);
    }

    .error-actions {
        flex-direction: column;
    }

    .error-btn {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 360px) {
    .cookie-notice-copy p {
        font-size: 0.8rem;
    }

    .cookie-notice-btn {
        font-size: 0.66rem;
        padding: 11px 12px;
    }

    .error-links {
        gap: 12px 16px;
    }
}

/* 404 */
.error-page {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 80px 0 100px;
}

.error-container {
    max-width: 720px;
}

.error-page h1 {
    font-family: 'Syne', sans-serif;
    font-size: clamp(2.2rem, 6vw, 3.6rem);
    text-transform: uppercase;
    line-height: 0.95;
    margin-bottom: 20px;
    color: #fff;
}

.error-lead {
    font-size: 1.02rem;
    line-height: 1.6;
    color: rgba(224, 224, 224, 0.72);
    max-width: 34em;
    margin-bottom: 32px;
}

.error-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 40px;
}

.error-btn {
    font-family: 'Syne', sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 14px 20px;
    border: 1px solid transparent;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    text-decoration: none;
}

.error-btn-primary {
    background: #FE910E;
    color: #050505;
}

.error-btn-primary:hover {
    background: #FFA83A;
    color: #050505;
}

.error-btn-secondary {
    background: transparent;
    color: #E0E0E0;
    border-color: #333333;
}

.error-btn-secondary:hover {
    border-color: #FE910E;
    color: #fff;
}

.error-links {
    display: flex;
    flex-wrap: wrap;
    gap: 18px 24px;
    padding-top: 28px;
    border-top: 1px solid #222222;
}

.error-links a {
    font-family: 'Syne', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(224, 224, 224, 0.55);
    text-decoration: none;
}

.error-links a:hover {
    color: #FE910E;
}
