@media (max-width: 1020px) {
    .site-header {
        grid-template-columns: auto auto;
    }

    .menu-toggle {
        display: block;
        justify-self: end;
    }

    .header-contact {
        display: none;
    }

    .main-nav {
        position: fixed;
        top: calc(100% + 10px);
        left: 0;
        right: 0;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        overflow: hidden;
        border: 1px solid var(--line);
        border-radius: 8px;
        background: rgba(5, 5, 5, 0.96);
        box-shadow: 0 20px 70px var(--shadow);
    }

    .main-nav.active {
        display: flex;
    }

    .main-nav a {
        padding: 18px;
        border-bottom: 1px solid var(--line);
        color: var(--text);
    }

    .main-nav a:last-child {
        border-bottom: 0;
    }

    .hero,
    .about-grid,
    .estimator,
    .contact {
        grid-template-columns: 1fr;
    }

    .hero {
        align-items: start;
        gap: 42px;
    }

    .hero-stats {
        position: static;
        width: 100%;
        grid-template-columns: repeat(3, 1fr);
    }

    .service-grid,
    .timeline {
        grid-template-columns: repeat(2, 1fr);
    }

    .timeline-step:nth-child(2) {
        border-right: 1px solid var(--line);
    }
}

@media (max-width: 720px) {
    body::before {
        background-size: 44px 44px;
    }

    .site-header {
        top: 10px;
        width: min(100% - 20px, 680px);
    }

    .brand {
        font-size: 0.78rem;
    }

    .section-panel {
        width: min(100% - 24px, 680px);
        padding: 74px 0;
    }

    .hero {
        min-height: 150svh;
        padding-top: 0;
        padding-bottom: 0;
    }

    .hero-copy {
        height: 100svh;
        justify-content: center;
    }

    .hero-title,
    .section-heading h2 {
        font-size: clamp(2.75rem, 17vw, 5rem);
    }

    .hero-title {
        font-size: clamp(2.8rem, 15vw, 5rem);
    }

    .hero-actions,
    .site-footer,
    .price-result {
        align-items: stretch;
        flex-direction: column;
    }

    .hero-reveal {
        position: static;
        max-width: none;
        margin-top: 28px;
        padding: 20px;
    }

    .hero .hero-text {
        margin-top: 0;
        font-size: 1rem;
    }

    .hero .hero-actions {
        margin-top: 20px;
    }

    .button {
        width: 100%;
    }

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

    .work-item {
        grid-template-columns: 1fr;
    }

    .work-visual {
        min-height: 210px;
    }

    .service-grid,
    .timeline {
        grid-template-columns: 1fr;
    }

    .timeline-step,
    .timeline-step:nth-child(2),
    .timeline-step:last-child {
        border-right: 1px solid var(--line);
    }

    .price-result {
        display: grid;
        gap: 14px;
    }

    .contact-card h2 {
        font-size: clamp(2.3rem, 14vw, 4rem);
    }

    .site-footer {
        display: grid;
        gap: 12px;
        width: min(100% - 24px, 680px);
    }
}

@media (max-width: 430px) {
    .brand span:last-child {
        display: none;
    }

    .hero-title,
    .section-heading h2 {
        font-size: clamp(2.45rem, 19vw, 3.8rem);
    }

    .hero-title {
        font-size: clamp(2.45rem, 17vw, 3.65rem);
    }

    .hero-text,
    .estimator-copy p,
    .contact-card p {
        font-size: 1rem;
    }

    .work-content,
    .service-card,
    .timeline-step,
    .about-copy,
    .local-seo-card,
    .contact-card,
    .contact-form {
        padding: 20px;
    }

    .price-tool {
        padding: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
