@media (max-width: 1180px) {
    .header-inner {
        gap: 16px;
    }

    .site-nav a {
        padding-inline: 8px;
        font-size: 13px;
    }

    .header-phone span:last-child {
        display: none;
    }

    .hero h1 {
        font-size: 56px;
    }

    .grid-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 980px) {
    .header-inner {
        min-height: 72px;
    }

    .nav-toggle {
        display: block;
        margin-left: auto;
    }

    .site-nav {
        position: absolute;
        left: 20px;
        right: 20px;
        top: 78px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 12px;
        border: 1px solid var(--color-line);
        border-radius: var(--radius);
        background: #fff;
        box-shadow: var(--shadow-tight);
    }

    .site-nav.is-open {
        display: flex;
    }

    .site-nav a {
        padding: 13px 12px;
        font-size: 15px;
    }

    .site-nav a::after {
        left: 12px;
        right: 12px;
    }

    .header-actions {
        display: none;
    }

    .hero {
        min-height: 620px;
        background-position: center right;
    }

    .hero h1,
    .page-hero h1 {
        font-size: 46px;
    }

    .hero-subtitle,
    .page-hero p {
        font-size: 18px;
    }

    .grid-3,
    .grid-2,
    .media-split,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .media-frame img {
        min-height: 340px;
    }

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

    .footer-grid > div:first-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 760px) {
    .container {
        width: min(100% - 28px, var(--container));
    }

    .brand-text span {
        display: none;
    }

    .hero {
        min-height: auto;
        background-image: linear-gradient(90deg, rgba(17, 18, 22, 0.94), rgba(17, 18, 22, 0.76)), var(--hero-image);
    }

    .hero-content,
    .page-hero-inner {
        padding: 20px 0;
    }

    .hero h1,
    .page-hero h1 {
        font-size: 38px;
        line-height: 1.1;
    }

    .hero-actions,
    .button-row {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-proof {
        grid-template-columns: 1fr;
    }

    .section,
    .section-compact {
        padding: 58px 0;
    }

    .section-title {
        font-size: 32px;
    }

    .document-grid,
    .form-grid,
    .stats-strip,
    .grid-4 {
        grid-template-columns: 1fr;
    }

    .cta-band {
        padding: 34px 22px;
    }

    .cta-band h2 {
        font-size: 30px;
    }

    .footer-grid,
    .footer-bottom-inner {
        grid-template-columns: 1fr;
        display: grid;
    }

    body.has-money-bar {
        padding-bottom: calc(86px + env(safe-area-inset-bottom));
    }

    .money-bar {
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        max-width: none;
        border-right: 0;
        border-bottom: 0;
        border-left: 0;
        border-radius: 18px 18px 0 0;
        padding-bottom: env(safe-area-inset-bottom);
        box-shadow: 0 -18px 46px rgba(0, 0, 0, 0.28);
        transform: translateY(0);
    }

    .money-bar.is-hidden {
        transform: translateY(18px);
    }

    .money-bar a {
        flex-direction: column;
        gap: 6px;
        min-height: 76px;
        padding: 10px 8px;
        font-size: 12px;
    }

    .money-icon {
        width: 34px;
        height: 34px;
    }

    .money-icon .bi {
        font-size: 16px;
    }
}

@media (max-width: 560px) {
    .brand-mark {
        width: 40px;
        min-width: 44px;
        height: 40px;
        padding: 0 6px;
        font-size: 11px;
    }

    .brand-text strong {
        font-size: 16px;
    }

    .hero h1,
    .page-hero h1 {
        font-size: 34px;
    }

    .btn {
        width: 100%;
    }

    .info-card,
    .step-card,
    .document-card,
    .contact-card,
    .contact-form {
        padding: 22px;
    }

    .document-card {
        padding-left: 62px;
    }

    .document-icon {
        left: 18px;
        top: 24px;
    }

    .faq-question {
        padding: 18px;
    }

    .faq-answer {
        padding: 0 18px 18px;
    }
}
@media (max-width: 768px) {
    .seo-directory-toolbar {
        display: block;
    }

    .seo-search-box {
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 12px;
        position: relative;
        margin-top: 24px;
    }

    .seo-search-box i {
        position: absolute;
        left: 22px;
        top: 29px;
        transform: translateY(-50%);
        z-index: 2;
        font-size: 1rem;
        color: #d11224;
        pointer-events: none;
    }

    .seo-search-box input {
        width: 100%;
        min-height: 58px;
        padding: 0 20px 0 52px;
        border-radius: 999px;
        font-size: 0.95rem;
        line-height: 1.2;
    }

    .seo-search-box button {
        width: 100%;
        min-height: 58px;
        border-radius: 999px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}