/* Дополнительные стили — подключаются ПОВЕРХ существующего css/styles.css на сервере.
   Не заменяют основной файл, чтобы не сломать вёрстку продакшена. */

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}

body.nav-open { overflow: hidden; }

.skip-link {
    position: absolute;
    top: -100%;
    left: 16px;
    z-index: 1000;
    background: #4A6CF7;
    color: #fff;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
}
.skip-link:focus {
    top: 16px;
    outline: 3px solid #F59E0B;
    outline-offset: 2px;
}

:focus { outline: none; }
:focus-visible {
    outline: 3px solid #4A6CF7;
    outline-offset: 2px;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 10px;
    background: none;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    cursor: pointer;
}
.nav-toggle-bar {
    display: block;
    width: 100%;
    height: 2px;
    background: #1A1A2E;
    border-radius: 2px;
}

.nav-open .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

#cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 200;
    background: #1A1A2E;
    color: rgba(255,255,255,0.9);
    padding: 16px 24px;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
}
.cookie-banner-inner {
    max-width: 1140px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.cookie-banner-inner p { margin: 0; font-size: 14px; line-height: 1.5; }
.cookie-banner-inner a { color: #93B4FF; }
#cookie-accept {
    background: #4A6CF7;
    color: #fff;
    border: none;
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}
#cookie-accept:hover { background: #3B5DE7; }

.error-page { padding: 120px 0; text-align: center; }
.error-page h1 { font-size: 120px; font-weight: 700; color: var(--primary); line-height: 1; margin-bottom: 16px; }
.error-page h2 { font-size: 28px; color: var(--dark); margin-bottom: 16px; }
.error-page p { font-size: 17px; color: var(--text-light); margin-bottom: 32px; }
.article-container { max-width: 800px; margin: 0 auto; padding: 60px 24px; }
.article-header { margin-bottom: 48px; }
.article-title { font-size: 42px; font-weight: 700; color: var(--dark); line-height: 1.2; margin-bottom: 20px; }
.article-subtitle { font-size: 20px; color: var(--text); line-height: 1.6; }
.article-content { font-size: 17px; line-height: 1.8; color: var(--text); }
.article-content a { color: var(--primary); text-decoration: underline; }

@media (max-width: 768px) {
    .nav-toggle { display: flex; }
    .nav-links {
        display: none;
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        bottom: 0;
        flex-direction: column;
        gap: 0;
        background: #fff;
        padding: 24px;
        border-top: 1px solid #E2E8F0;
        overflow-y: auto;
        z-index: 99;
    }
    .nav-links.is-open { display: flex; }
    .nav-links li { width: 100%; list-style: none; }
    .nav-links a {
        display: block;
        padding: 16px 0;
        font-size: 17px;
        border-bottom: 1px solid #E2E8F0;
    }
    .nav-links .nav-cta {
        margin-top: 16px;
        text-align: center;
        display: block;
    }
}
