/* Standalone accessibility and responsive layout details. */
.skip-link {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 10000;
    padding: 10px 14px;
    transform: translateY(-160%);
    border-radius: 6px;
    background: #ffffff;
    color: var(--blue-dark);
    box-shadow: var(--shadow);
}

.skip-link:focus {
    transform: translateY(0);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
}

.site-header nav {
    position: relative;
    top: auto;
    z-index: auto;
    width: 100%;
    flex-wrap: nowrap;
}

.site-header .nav-links {
    flex: 0 0 auto;
    flex-wrap: nowrap;
    white-space: nowrap;
}

.site-header .nav-links a {
    white-space: nowrap;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-actions .btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--bg-white);
    color: var(--blue-dark);
    cursor: pointer;
}

.flow-box {
    min-width: 0;
}

.flow-box > svg {
    max-width: 100%;
}

.working-solution-visual img {
    display: block;
    width: 100%;
    height: auto;
}

.project-slider {
    scroll-behavior: smooth;
}

.project-checks {
    padding-left: 0;
    list-style: none;
}

.project-arrow {
    cursor: pointer;
}

.faq-item {
    width: 100%;
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    background: transparent;
    text-align: left;
    font: inherit;
}

.faq-item:focus-visible,
.recent-project-filter:focus-visible,
.project-arrow:focus-visible,
a:focus-visible,
button:focus-visible {
    outline: 3px solid #2979d4;
    outline-offset: 3px;
}

.contact-migration-note {
    margin-top: 18px;
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.6;
}

.contact-migration-note .btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
    text-decoration: none;
}

.hero-btns .btn-primary,
.hero-btns .btn-outline {
    line-height: normal;
}

.not-found {
    min-height: 48vh;
    display: flex;
    align-items: center;
}

.not-found h1 {
    margin-bottom: 12px;
    color: var(--blue-dark);
}

.not-found p {
    margin-bottom: 24px;
    color: var(--text-secondary);
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 76px;
}

html.no-js .faq-answer[hidden] {
    display: block !important;
}

.cookie-banner[hidden] {
    display: none !important;
}

@media (max-width: 900px) {
    .site-header nav {
        padding-right: 20px;
        padding-left: 20px;
    }
    .site-header .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 4px;
        padding: 12px 20px;
        background: var(--bg-white);
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow);
    }
    .js .menu-toggle,
    .site-header .nav-links.is-open {
        display: flex;
    }
    .site-header .nav-links a {
        display: flex;
        align-items: center;
        min-height: 44px;
    }
    .nav-actions .btn-primary {
        min-height: 44px;
    }
    .no-js .site-header nav {
        height: auto;
        min-height: 68px;
        flex-wrap: wrap;
    }
    .no-js .site-header .nav-links {
        display: flex;
        position: static;
        order: 3;
        flex-basis: 100%;
        box-shadow: none;
    }
}

@media (max-width: 1024px) {
    .bottom-split .form-input,
    .bottom-split .form-select,
    .bottom-split .form-textarea {
        min-height: 44px;
        font-size: 16px;
    }
    .bottom-split .form-textarea {
        min-height: 120px;
    }
    .task2-main > .projects-page,
    main.legal-page.projects-page {
        padding-top: 40px;
    }
    .task2-main > .projects-page > .case-page,
    .legal-page.projects-page > .case-page {
        padding-top: 0;
    }
    .cookie-banner {
        left: 12px;
        right: 12px;
        bottom: 12px;
        padding: 14px;
        gap: 12px;
    }
    .cookie-banner p {
        font-size: 13px;
        line-height: 1.45;
    }
    .cookie-banner .cookie-btns {
        width: 100%;
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 8px;
    }
    .cookie-banner .cookie-btns button {
        flex: 1;
        min-width: 0;
        min-height: 44px;
        padding: 8px;
        font-size: 12px;
        line-height: 1.4;
    }
}

@media (max-width: 560px) {
    .bottom-split .form-row {
        grid-template-columns: 1fr;
    }
    .nav-actions {
        gap: 8px;
    }

    .nav-actions .btn-primary {
        padding: 10px 12px;
        font-size: 12px;
    }

    .footer-logo .logo-text {
        display: flex;
    }
}

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

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
    }
}
.footer-legal {
    flex-wrap: wrap;
}

@media (max-width: 360px) {
    .hero-btns {
        flex-wrap: wrap;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}
