/* ===========================================================
   AUTOBUY
   style.css
=========================================================== */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{

    font-family:'Manrope',sans-serif;

    color:#1c1c1c;

    background:#f5f7fa;

    line-height:1.6;

    overflow-x:hidden;

}

img{

    max-width:100%;

    display:block;

}

a{

    text-decoration:none;

    color:inherit;

}

ul{

    list-style:none;

}

.container{

    width:min(1320px,92%);

    margin:auto;

}

/* ===================================================== */

section{

    padding:90px 0;

}

/* ===================================================== */

h1{

    font-size:62px;

    font-weight:800;

    line-height:1.1;

    margin-bottom:25px;

}

h2{

    font-size:44px;

    font-weight:800;

    margin-bottom:20px;

}

h3{

    font-size:24px;

    font-weight:700;

}

p{

    color:#666;

}

/* ===================================================== */

.button{

display:inline-flex;

align-items:center;

justify-content:center;

padding:18px 42px;

background:#d91f26;

border-radius:12px;

color:#fff;

font-weight:700;

transition:.35s;

cursor:pointer;

border:none;

}

.button:hover{

background:#b9171e;

transform:translateY(-3px);

box-shadow:0 15px 35px rgba(217,31,38,.25);

}

.button-outline{

background:transparent;

border:2px solid #d91f26;

color:#d91f26;

}

.button-outline:hover{

background:#d91f26;

color:white;

}

/* ===================================================== */

.header{

position:fixed;

left:0;

top:0;

width:100%;

z-index:1000;

background:rgba(255,255,255,.95);

backdrop-filter:blur(15px);

box-shadow:0 5px 30px rgba(0,0,0,.05);

}

.header .container{

display:flex;

align-items:center;

justify-content:space-between;

height:90px;

}

.logo{

font-size:34px;

font-weight:900;

color:#d91f26;

letter-spacing:2px;

}

.nav ul{

display:flex;

gap:40px;

}

.nav a{

font-weight:700;

transition:.3s;

}

.nav a:hover{

color:#d91f26;

}

.header-contact{

display:flex;

align-items:center;

gap:20px;

}

.phone{

font-weight:800;

font-size:18px;

}

/* ===================================================== */

.hero{

padding-top:170px;

padding-bottom:100px;

background:

linear-gradient(135deg,#fafafa,#eceff3);

}

.hero-wrapper{

display:grid;

grid-template-columns:1fr 1fr;

align-items:center;

gap:70px;

}

.hero-badge{

display:inline-flex;

padding:10px 22px;

background:#ffe9ea;

border-radius:40px;

color:#d91f26;

font-weight:700;

margin-bottom:25px;

}

.hero p{

font-size:20px;

margin-bottom:35px;

max-width:650px;

}

.hero-list{

display:grid;

grid-template-columns:repeat(2,1fr);

gap:18px;

margin-bottom:40px;

}

.hero-item{

display:flex;

align-items:center;

gap:12px;

font-weight:700;

}

.hero-item svg{

color:#d91f26;

}

.hero-buttons{

display:flex;

gap:18px;

}

.hero-image{

position:relative;

}

.hero-image img{

width:100%;

animation:float 4s ease-in-out infinite;

}

/* ===================================================== */

@keyframes float{

0%{

transform:translateY(0);

}

50%{

transform:translateY(-12px);

}

100%{

transform:translateY(0);

}

}

/* ===================================================== */

.advantages{

padding-top:0;

}

.advantages .container{

display:grid;

grid-template-columns:repeat(4,1fr);

gap:30px;

}

.advantage{

background:white;

border-radius:18px;

padding:40px;

text-align:center;

box-shadow:0 10px 30px rgba(0,0,0,.05);

transition:.35s;

}

.advantage:hover{

transform:translateY(-10px);

}

.advantage h2{

font-size:52px;

color:#d91f26;

margin-bottom:10px;

}

/* ===================================================== */

.section-heading{

max-width:760px;

margin:auto;

text-align:center;

margin-bottom:60px;

}

.subtitle{

display:inline-block;

padding:10px 22px;

background:#ffe9ea;

color:#d91f26;

border-radius:30px;

font-weight:700;

margin-bottom:18px;

}

/* ===================================================== */

.cars-grid{

display:grid;

grid-template-columns:repeat(4,1fr);

gap:30px;

}

.car-card{

background:white;

border-radius:20px;

overflow:hidden;

transition:.35s;

box-shadow:0 10px 30px rgba(0,0,0,.06);

}

.car-card:hover{

transform:translateY(-8px);

}

.car-card img{

height:220px;

width:100%;

object-fit:cover;

}

.car-card h3{

padding:24px 24px 10px;

}

.car-card p{

padding:0 24px 28px;

}

/* ===================================================== */

.quiz{

background:#101114;

color:white;

}

.quiz h2{

color:white;

text-align:center;

margin-bottom:40px;

}

.quiz-form{

display:grid;

grid-template-columns:repeat(5,1fr);

gap:20px;

}

.quiz-form input{

height:64px;

padding:0 20px;

border:none;

border-radius:12px;

font-size:16px;

}

.quiz-form button{

height:64px;

background:#d91f26;

color:white;

font-size:17px;

font-weight:700;

border:none;

border-radius:12px;

cursor:pointer;

transition:.3s;

}

.quiz-form button:hover{

background:#bf1a20;

}
/* ===================================================== */
/* STEPS */
/* ===================================================== */

.steps{

background:#ffffff;

}

.steps-grid{

display:grid;

grid-template-columns:repeat(5,1fr);

gap:25px;

margin-top:50px;

}

.step-card{

background:#fff;

padding:35px;

border-radius:18px;

position:relative;

transition:.35s;

box-shadow:0 12px 35px rgba(0,0,0,.06);

overflow:hidden;

}

.step-card::before{

content:"";

position:absolute;

left:0;

top:0;

width:100%;

height:5px;

background:#d91f26;

transform:scaleX(0);

transform-origin:left;

transition:.35s;

}

.step-card:hover::before{

transform:scaleX(1);

}

.step-card:hover{

transform:translateY(-8px);

}

.step-number{

width:65px;

height:65px;

display:flex;

align-items:center;

justify-content:center;

background:#d91f26;

color:white;

font-size:22px;

font-weight:800;

border-radius:16px;

margin-bottom:22px;

}

/* ===================================================== */
/* PURCHASED CARS */
/* ===================================================== */

.purchased{

background:#f6f8fb;

}

.cars-sale-grid{

display:grid;

grid-template-columns:repeat(3,1fr);

gap:35px;

}

.sale-card{

background:white;

border-radius:22px;

overflow:hidden;

box-shadow:0 18px 45px rgba(0,0,0,.06);

transition:.35s;

}

.sale-card:hover{

transform:translateY(-10px);

}

.sale-card img{

height:260px;

width:100%;

object-fit:cover;

}

.sale-info{

padding:28px;

}

.sale-info ul{

margin:20px 0;

display:grid;

gap:8px;

}

.sale-info li{

color:#666;

}

.price{

margin-top:20px;

font-size:34px;

font-weight:800;

color:#d91f26;

}

/* ===================================================== */
/* DOCUMENTS */
/* ===================================================== */

.documents{

background:white;

}

.documents .container{

display:grid;

grid-template-columns:1fr 1fr;

align-items:center;

gap:80px;

}

.documents-left ul{

margin-top:35px;

display:grid;

gap:18px;

}

.documents-left li{

font-size:18px;

font-weight:600;

display:flex;

align-items:center;

gap:12px;

}

.documents-right img{

border-radius:24px;

box-shadow:0 25px 60px rgba(0,0,0,.08);

}

/* ===================================================== */
/* REVIEWS */
/* ===================================================== */

.reviews{

background:#f6f8fb;

}

.reviews-grid{

display:grid;

grid-template-columns:repeat(3,1fr);

gap:30px;

}

.review-card{

background:white;

padding:35px;

border-radius:20px;

box-shadow:0 12px 35px rgba(0,0,0,.06);

transition:.35s;

}

.review-card:hover{

transform:translateY(-8px);

}

.stars{

font-size:22px;

color:#ffc107;

margin-bottom:20px;

}

.review-card strong{

display:block;

margin-top:25px;

font-size:18px;

}

/* ===================================================== */
/* FAQ */
/* ===================================================== */

.faq{

background:white;

}

.faq-item{

background:#f7f8fa;

border-radius:18px;

margin-bottom:20px;

overflow:hidden;

}

.faq-item button{

width:100%;

background:none;

border:none;

padding:28px;

font-size:20px;

font-weight:700;

text-align:left;

cursor:pointer;

display:flex;

justify-content:space-between;

align-items:center;

}

.faq-item button::after{

content:"+";

font-size:32px;

color:#d91f26;

}

.faq-item div{

padding:0 28px 28px;

}

/* ===================================================== */
/* MAX */
/* ===================================================== */

.max-section{

background:

linear-gradient(135deg,#151515,#272727);

color:white;

}

.max-box{

max-width:900px;

margin:auto;

text-align:center;

padding:80px;

border-radius:30px;

background:rgba(255,255,255,.05);

backdrop-filter:blur(20px);

}

.max-box h2{

color:white;

margin-bottom:25px;

}

.max-box p{

color:#ddd;

font-size:20px;

margin-bottom:40px;

}

.max-button{

display:inline-flex;

align-items:center;

justify-content:center;

padding:20px 55px;

background:#19b54a;

color:white;

font-size:20px;

font-weight:800;

border-radius:16px;

transition:.35s;

}

.max-button:hover{

transform:translateY(-5px);

box-shadow:0 20px 45px rgba(25,181,74,.35);

}

/* ===================================================== */
/* CONTACTS */
/* ===================================================== */

.contacts{

background:white;

}

.contacts .container{

display:grid;

grid-template-columns:1fr 1fr;

gap:70px;

align-items:center;

}

.contact-left a{

display:inline-block;

margin:30px 0;

font-size:34px;

font-weight:800;

color:#d91f26;

}

.contact-form{

background:#f7f8fa;

padding:40px;

border-radius:22px;

box-shadow:0 15px 35px rgba(0,0,0,.05);

}

.contact-form form{

display:grid;

gap:18px;

}

.contact-form input,

.contact-form textarea{

width:100%;

padding:18px;

border:none;

border-radius:12px;

font-size:16px;

background:white;

}

.contact-form textarea{

height:170px;

resize:none;

}

.contact-form button{

height:60px;

border:none;

background:#d91f26;

color:white;

font-weight:700;

font-size:18px;

border-radius:12px;

cursor:pointer;

transition:.35s;

}

.contact-form button:hover{

background:#bf1b22;

}

/* ===================================================== */
/* FOOTER */
/* ===================================================== */

.footer{

background:#111;

color:white;

padding:80px 0 30px;

}

.footer .container{

display:grid;

grid-template-columns:2fr 1fr 1fr;

gap:60px;

}

.footer h3{

font-size:34px;

margin-bottom:20px;

}

.footer h4{

margin-bottom:18px;

}

.footer ul{

display:grid;

gap:14px;

}

.footer li a{

transition:.3s;

}

.footer li a:hover{

color:#d91f26;

}

.footer p{

color:#bdbdbd;

}

.copyright{

margin-top:60px;

padding-top:30px;

border-top:1px solid rgba(255,255,255,.1);

text-align:center;

color:#8a8a8a;

font-size:15px;

}

/* ===================================================== */
/* ANIMATIONS */
/* ===================================================== */

.fade-up{

opacity:0;

transform:translateY(40px);

transition:.8s;

}

.fade-up.show{

opacity:1;

transform:none;

}

.scale{

transition:.35s;

}

.scale:hover{

transform:scale(1.03);

}

.shadow-hover{

transition:.35s;

}

.shadow-hover:hover{

box-shadow:0 30px 60px rgba(0,0,0,.12);

}
/* ===================================================== */
/* LARGE LAPTOPS */
/* ===================================================== */

@media (max-width:1400px){

.container{

width:min(1200px,94%);

}

.hero-wrapper{

gap:40px;

}

.hero h1{

font-size:56px;

}

.cars-grid{

grid-template-columns:repeat(3,1fr);

}

.steps-grid{

grid-template-columns:repeat(3,1fr);

}

}

/* ===================================================== */
/* NOTEBOOK */
/* ===================================================== */

@media (max-width:1200px){

.header .container{

height:80px;

}

.nav ul{

gap:25px;

}

.hero{

padding-top:140px;

}

.hero-wrapper{

grid-template-columns:1fr;

text-align:center;

}

.hero-list{

grid-template-columns:1fr 1fr;

}

.hero-buttons{

justify-content:center;

}

.hero-image{

max-width:700px;

margin:auto;

}

.advantages .container{

grid-template-columns:repeat(2,1fr);

}

.cars-grid{

grid-template-columns:repeat(2,1fr);

}

.cars-sale-grid{

grid-template-columns:repeat(2,1fr);

}

.documents .container{

grid-template-columns:1fr;

}

.contacts .container{

grid-template-columns:1fr;

}

.footer .container{

grid-template-columns:1fr 1fr;

}

}

/* ===================================================== */
/* TABLET */
/* ===================================================== */

@media (max-width:992px){

.nav{

display:none;

}

.header-contact .button{

display:none;

}

.hero h1{

font-size:44px;

}

h2{

font-size:36px;

}

.hero-list{

grid-template-columns:1fr;

}

.quiz-form{

grid-template-columns:1fr;

}

.steps-grid{

grid-template-columns:1fr 1fr;

}

.reviews-grid{

grid-template-columns:1fr;

}

.max-box{

padding:50px 35px;

}

.footer .container{

grid-template-columns:1fr;

text-align:center;

}

}

/* ===================================================== */
/* MOBILE */
/* ===================================================== */

@media (max-width:768px){

section{

padding:70px 0;

}

.container{

width:92%;

}

.hero{

padding-top:120px;

}

.hero h1{

font-size:36px;

}

.hero p{

font-size:17px;

}

.hero-buttons{

flex-direction:column;

}

.button{

width:100%;

}

.advantages .container{

grid-template-columns:1fr;

}

.cars-grid{

grid-template-columns:1fr;

}

.steps-grid{

grid-template-columns:1fr;

}

.cars-sale-grid{

grid-template-columns:1fr;

}

.documents-left{

text-align:center;

}

.contact-left{

text-align:center;

}

.contact-left a{

font-size:28px;

}

.max-box{

padding:40px 25px;

}

.max-box h2{

font-size:30px;

}

}

/* ===================================================== */
/* SMALL MOBILE */
/* ===================================================== */

@media (max-width:480px){

.logo{

font-size:28px;

}

.phone{

display:none;

}

.hero h1{

font-size:30px;

}

h2{

font-size:28px;

}

.hero-badge{

font-size:14px;

}

.step-card{

padding:28px;

}

.review-card{

padding:25px;

}

.contact-form{

padding:25px;

}

.max-button{

width:100%;

}

}

/* ===================================================== */
/* BURGER MENU */
/* ===================================================== */

.burger{

display:none;

width:44px;

height:44px;

border-radius:10px;

background:#d91f26;

align-items:center;

justify-content:center;

cursor:pointer;

}

.burger span{

display:block;

width:22px;

height:2px;

background:#fff;

position:relative;

}

.burger span::before,

.burger span::after{

content:"";

position:absolute;

left:0;

width:22px;

height:2px;

background:white;

}

.burger span::before{

top:-7px;

}

.burger span::after{

bottom:-7px;

}

@media(max-width:992px){

.burger{

display:flex;

}

}

/* ===================================================== */
/* SCROLLBAR */
/* ===================================================== */

::-webkit-scrollbar{

width:10px;

}

::-webkit-scrollbar-track{

background:#ececec;

}

::-webkit-scrollbar-thumb{

background:#d91f26;

border-radius:10px;

}

::-webkit-scrollbar-thumb:hover{

background:#b5181e;

}

/* ===================================================== */
/* SELECTION */
/* ===================================================== */

::selection{

background:#d91f26;

color:white;

}

/* ===================================================== */
/* INPUT FOCUS */
/* ===================================================== */

input:focus,

textarea:focus{

outline:none;

box-shadow:0 0 0 3px rgba(217,31,38,.2);

}

/* ===================================================== */
/* IMAGE EFFECT */
/* ===================================================== */

.car-card img,

.sale-card img{

transition:.45s;

}

.car-card:hover img,

.sale-card:hover img{

transform:scale(1.08);

}

/* ===================================================== */
/* BUTTON EFFECT */
/* ===================================================== */

.button,

.max-button{

position:relative;

overflow:hidden;

}

.button::before,

.max-button::before{

content:"";

position:absolute;

top:0;

left:-120%;

width:100%;

height:100%;

background:linear-gradient(

90deg,

transparent,

rgba(255,255,255,.35),

transparent

);

transition:.8s;

}

.button:hover::before,

.max-button:hover::before{

left:120%;

}
.cars-slider{

background:#f6f8fb;

overflow:hidden;

}

.slider-header{

display:flex;

justify-content:space-between;

align-items:center;

margin-bottom:40px;

}

.slider-buttons{

display:flex;

gap:15px;

}

.slider-buttons button{

width:55px;

height:55px;

border:none;

border-radius:50%;

background:#d91f26;

color:white;

font-size:22px;

cursor:pointer;

transition:.3s;

}

.slider-buttons button:hover{

transform:scale(1.1);

}

.slider-track{

display:flex;

gap:30px;

transition:.45s;

}

.slide{

min-width:380px;

background:white;

border-radius:20px;

overflow:hidden;

box-shadow:0 12px 30px rgba(0,0,0,.08);

}

.slide img{

width:100%;

height:240px;

object-fit:cover;

}

.slide h3{

padding:20px;

}

.slide p{

padding:0 20px;

}

.slide strong{

display:block;

padding:20px;

font-size:28px;

color:#d91f26;

}