*,
*::before,
*::after{
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
    -webkit-text-size-adjust:100%;
}

body{
    min-width:320px;
    overflow-x:hidden;
}

img{
    max-width:100%;
    height:auto;
    display:block;
}

header{
    width:100%;
}

.logo{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:16px;
}

.nav-check{
    position:absolute;
    opacity:0;
    pointer-events:none;
}

.nav-toggle{
    display:none;
    width:44px;
    height:44px;
    border:1px solid rgba(255,0,0,0.35);
    border-radius:10px;
    background:#0b0b0b;
    color:#fff;
    font-size:24px;
    line-height:1;
    cursor:pointer;
    user-select:none;
}

.nav-toggle:focus-visible,
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible{
    outline:2px solid #ff2b2b;
    outline-offset:3px;
}

.hero h1,
.hero-content h1,
.import-cta h2,
.import-cta h3,
.cars-section h2,
.services-section h2{
    overflow-wrap:anywhere;
}

@media(max-width:900px){
    header{
        position:sticky;
        top:0;
        display:block;
        padding:14px 18px;
    }

    .logo img{
        height:44px;
    }

    .nav-toggle{
        display:inline-flex;
        align-items:center;
        justify-content:center;
        flex:0 0 44px;
    }

    nav{
        display:grid;
        grid-template-rows:0fr;
        transition:grid-template-rows .28s ease;
    }

    nav.is-open,
    .nav-check:checked ~ nav{
        grid-template-rows:1fr;
    }

    nav ul{
        min-height:0;
        overflow:hidden;
        flex-direction:column;
        align-items:stretch;
        gap:0;
        width:100%;
    }

    nav ul li a{
        display:block;
        padding:15px 4px;
        text-align:left;
        font-size:13px;
        line-height:1.35;
        letter-spacing:.5px;
    }

    nav ul li + li{
        border-top:1px solid rgba(255,255,255,0.08);
    }

    .hero,
    .hero-services{
        min-height:calc(100svh - 73px);
        height:auto;
        padding:96px 18px 72px;
        background-attachment:scroll !important;
        overflow:hidden;
    }

    .hero::after{
        width:min(320px, calc(100vw - 36px)) !important;
        left:50% !important;
    }

    .hero h1,
    .hero-content h1{
        font-size:clamp(34px, 10vw, 46px) !important;
        line-height:1.08;
        letter-spacing:1px;
    }

    .hero p,
    .hero-content p{
        font-size:16px;
        line-height:1.65;
    }

    .hero-texts{
        display:grid;
        grid-template-columns:1fr;
        gap:12px;
    }

    .hero-texts p{
        width:100%;
        padding:13px 16px;
        border-radius:8px;
    }

    .cars-section,
    .infos,
    .services-section,
    .timeline-section,
    .section,
    .contact-section{
        padding-left:18px !important;
        padding-right:18px !important;
    }

    .cars-section,
    .infos,
    .services-section,
    .section,
    .contact-section{
        padding-top:72px !important;
        padding-bottom:72px !important;
    }

    .cars{
        grid-template-columns:1fr !important;
    }

    .car-card{
        height:auto !important;
        min-height:260px;
        aspect-ratio:4 / 3;
        border-radius:16px !important;
    }

    .car-card h3{
        left:20px !important;
        right:20px;
        bottom:20px !important;
        font-size:20px !important;
    }

    .info-box,
    .service-card,
    form,
    .project-form,
    .legal-block{
        width:100% !important;
        max-width:100%;
        padding:26px 20px !important;
        border-radius:14px !important;
    }

    .info-box h3,
    .step-content h2,
    .services-section h2,
    .cars-section h2,
    .import-cta h2,
    .import-cta h3{
        font-size:clamp(27px, 8vw, 36px) !important;
        letter-spacing:1px;
    }

    .step-content h2{
        font-size:24px !important;
        line-height:1.2;
    }

    .import-cta{
        padding:72px 18px !important;
    }

    .import-btn,
    button[type="submit"]{
        width:100%;
        max-width:360px;
        min-height:50px;
        padding:14px 18px !important;
        white-space:normal;
    }

    footer{
        display:grid !important;
        grid-template-columns:1fr;
        gap:28px !important;
        padding:44px 18px !important;
    }
}

@media(max-width:520px){
    .hero h1,
    .hero-content h1{
        font-size:clamp(30px, 11vw, 38px) !important;
    }

    .grid,
    .form-grid,
    .contact-grid{
        grid-template-columns:1fr !important;
    }

    input,
    textarea,
    select{
        font-size:16px;
    }
}
