/* @font-face {
    font-family: "Piazzolla";
    src: url("../fonts/Piazzolla.ttf") format("truetype");
}

@font-face {
    font-family: "Playfair";
    src: url("../fonts/PlayfairDisplay.ttf") format("truetype");
} */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:"Piazzolla", serif;
}
input::placeholder{
    color: #BE7F71;
}
html,
body {
    overflow-x: hidden;
    /* height:100%; */
}

.header-line{
    width:100%;
    height:8px;
    background:#780000;
}

body{
    background:#FDF0D5;
    color:#780000;
    font-family:"Piazzolla", serif;

    min-height:100vh;
    display:flex;
    flex-direction:column;

    background:#FDF0D5;
    color:#780000;
}

main{
    flex:1;
}

img{
    max-width:100%;
    display:block;
}

a{
    text-decoration:none;
    color:inherit;
}

.container{
    width:min(1200px,90%);
    margin:auto;
}

/* HEADER */

.header{
    padding:25px 0;
}

.header-content{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:40px;
}

.logo-block img{
    max-width:420px;
}

.menu{
    display:flex;
    gap:35px;
}

.menu-item{
    display:flex;
    flex-direction:column;
    align-items:center;
}

.menu-item img{
    width:100px;
}

.menu-item span{
    background:#780000;
    color:white;
    padding:8px 20px;
    margin-top:-25px;
    font-size:1.2rem;
}

/* HERO */

.hero{
    min-height:600px;
    background:url("../images/jeep.webp") center/cover;
    border-top:8px solid #780000;
    border-bottom:8px solid #780000;
}

.hero-overlay{
    width:min(1200px,90%);
    margin:auto;
    padding:80px 0;
}

.hero-card{
    max-width:500px;
    background:#FDF0D5;
    padding:35px;
    line-height:1.8;
    font-size:1.2rem;
}

/* SEARCH */

.search-section{
    padding:70px 0;
    font-family: "Playfair Display", serif;
}

.search-content{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:50px;
    
}

.car-image{
    flex:1;
}

.search-form{
    flex:0 0 420px;
    
}

.search-form h2{
    font-family: "Playfair Display", serif;
    font-size: 33px;
    margin-bottom:30px;
}

.type-buttons{
    display:flex;
    
    gap:10px;
    margin-bottom:20px;
}

.type-buttons button{
    font-size: 25px;
    flex:1;
    padding:1px;
    border-radius:30px;
    border:2px solid #780000;
    background:white;
    color:#780000;
    cursor:pointer;
    background-color: #FDF0D5;;
}

.type-buttons .active{
    background:#780000;
    color:#FDF0D5;
}

.search-form input{
    width:100%;
    padding:14px 20px;
    margin-bottom:15px;
    border-radius:30px;
    border:1px solid #780000;
    background:transparent;
    font-size: 20px;
}

.search-btn{
    width:100%;
    padding:15px;
    border:none;
    border-radius:30px;
    background:#780000;
    color:white;
    font-size:1.1rem;
    cursor:pointer;
    font-size: 25px;
}

.help-link{
    display:block;
    text-align:center;
    margin-top:20px;
    font-size:1.2rem;
}

/* NEWS */

.news-title{
    background:#780000;
    color:white;
    text-align:center;
    padding:5px;
    font-size: 33px;
    font-family: "Playfair Display", serif;
    margin-bottom: 25px;
}

.news{
    padding-bottom:80px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    justify-content: center;
}

.card {
    border: 2px solid #780000;
    padding: 15px;

    display: flex;
    flex-direction: column;
}

.card img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.card p {
    margin: 15px 0;
    line-height: 1.5;

    flex-grow: 1; /* растягивает текстовый блок */
}

.card button {
    width: 100%;
    border: none;
    border-radius: 30px;
    padding: 1px;
    margin-top: auto; /* прижимает кнопку вниз */
    font-size: 25px;
    color: white;
    background: linear-gradient(
        90deg,
        #ff4e50,
        #7f00ff
    );
}

.more-news{
    text-align:center;
    margin-top:60px;
    font-size:30px;
    font-family: "Playfair Display", serif;
}

/* FOOTER */

.footer{
    background:#780000;
    color:white;
    padding:30px 0;
}

.footer-content{
    display:flex;
    justify-content:space-between;
    gap:30px;
}

.footer-content div{
    display:flex;
    flex-direction:column;
    gap:10px;
}


/* BOOKING PAGE */

.booking-page{
    padding-bottom:60px;
}

.booking-title{
    text-align:center;
    font-size:50px;
    font-family:"Playfair Display", serif;
    margin-bottom:40px;
}

.booking-slider{
    display:flex;
    justify-content:center;
    align-items:center;
    gap:40px;
    margin-bottom:30px;
    
}

.main-car{
    max-width:500px;
}

.side-car{
    max-width:300px;
    height: auto;
    opacity:0.35;
}

.booking-controls{
    display:flex;
    justify-content:center;
    align-items:center;
    gap:20px;
    margin-bottom:40px;
}

.slider-btn{
    width:160px;
    height:45px;
    border-radius:30px;
    border:1px solid #780000;
    background:#FDF0D5;
    color:#780000;
    font-size:25px;
}

.slider-dots{
    display:flex;
    gap:10px;
}



.slider-dots span{
    width:12px;
    height:12px;
    background:#780000;
    border-radius:50%;
}

#dot-ok{
    background: #FDF0D5;
}

.booking-filter{
    text-align:center;
}

.booking-filter h2{
    font-size:35px;
    margin-bottom:20px;
    font-family:"Playfair Display", serif;
}

.date-row{
    display:flex;
    justify-content:center;
    gap:30px;
    margin-bottom:20px;
}

.date-row input{
    width:320px;
}

.booking-filter input,
.customer-data input{
    height:45px;
    border-radius:30px;
    border:1px solid #780000;
    background:#FDF0D5;
    padding:0 20px;
    font-size:22px;
}

.show-model-btn{
    width:430px;
    height:50px;
    border:none;
    border-radius:30px;
    background:#780000;
    color:#fff;
    font-size:25px;
    margin-bottom:40px;
}

.cars-list{
    display:flex;
    flex-direction:column;
    gap:20px;
    margin-bottom:60px;
}

.car-card{
    border:2px solid #780000;
    border-radius:15px;
    padding:20px;
    position:relative;

    display:flex;
    justify-content:space-between;
}

.car-info-left,
.car-info-right{
    display:flex;
    flex-direction:column;
    gap:8px;
    font-size:26px;
}

.car-info-right{
    text-align:right;
    margin-right: 35px;
}

.car-select{
    width:20px;
    height:20px;
    border-radius:8px;
    border:2px solid #780000;
    position:absolute;
    top:15px;
    right:15px;
}

.active-select{
    background:#780000;
}

.customer-data{
    max-width:700px;
    margin:auto;
}

.customer-data h2{
    text-align:center;
    font-size:50px;
    margin-bottom:40px;
    font-family:"Playfair Display", serif;
}

.customer-data input{
    width:100%;
    margin-bottom:15px;
}

.passport-row{
    display:flex;
    gap:20px;
}

.cards-block{
    text-align:center;
    margin-top:50px;
}

.cards-block h2{
    font-size:35px;
    margin-bottom:20px;
}

.cards-row{
    display:flex;
    justify-content:center;
    gap:25px;
    flex-wrap:wrap;
}

.bank-card{
    width:171px;
    height:98px;
    border-radius:10px;

    position:relative;
    overflow:hidden;

    cursor:pointer;

    box-shadow:0 4px 8px rgba(0,0,0,.15);
}

.card-pink{
    background:linear-gradient(
        135deg,
        #ff4d6d,
        #8a00d4
    );
}

.card-green{
    background:linear-gradient(
        135deg,
        #57ff89,
        #00c7a3
    );
}

.card-gray{
    background:linear-gradient(
        135deg,
        #f5f5f5,
        #555555
    );
}

.card-pattern{
    position:absolute;

    width:100%;
    height:100%;

    left:0;
    top:0;

    object-fit:cover;

}

.card-number-svg{
    position:absolute;
    top:8px;
    right:8px;
    width:95px;
    height:40px;
}

.card-number-svg text{
    font-family:"Piazzolla", serif;
    font-size:40px;
    font-weight:700;
}

.card-add{
    position:absolute;
    top:8px;
    right:8px;
    width:100%;
    height: 100%;
}

.card-add text{
    font-family:"Piazzolla", serif;
    font-size:15px;
    font-weight:700;
}


.booking-result{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-top:40px;
    font-size:30px;
}

.finish-btn{
    width:220px;
    height:50px;
    border:none;
    border-radius:30px;
    color:#fff;
    font-size:25px;
    background:linear-gradient(
        90deg,
        #780000,
        #7f00ff
    );
}

/* HISTORY PAGE */

.history-page{
    padding:40px 0 80px;
}

.history-container{
    max-width:850px;
}

.history-title{
    text-align:center;
    font-size:50px;
    font-family:"Playfair Display", serif;
    margin-bottom:40px;
}

.history-list{
    display:flex;
    flex-direction:column;
    gap:25px;
}

.booking-code-row{
    display:flex;
    justify-content:space-between;
    margin-bottom:8px;
    font-size:24px;
}

.history-card{
    position:relative;

    border:2px solid #780000;
    border-radius:20px;

    padding:15px;

    overflow:hidden;
}

.history-card::before{
    content:"";

    position:absolute;

    inset:0;

    background-size:contain;
    background-position:center;
    background-repeat:no-repeat;

    opacity:0.08;
}

.history-car-1::before{
    background-image:url("../images/history1.png");
}

.history-car-2::before{
    background-image:url("../images/history2.png");
}

.history-car-3::before{
    background-image:url("../images/history3.png");
}

.history-order{
    display:flex;
    justify-content:space-between;

    font-size:24px;

    margin-bottom:15px;
    margin-right: 35px;

    position:relative;
    z-index:2;
}

.history-content{
    display:flex;
    justify-content:space-between;

    position:relative;
    z-index:2;
}

.history-left,
.history-right{
    display:flex;
    flex-direction:column;
    gap:8px;

    font-size:22px;
}

.history-right{
    text-align:right;
    margin-right: 35px;
}

.history-gap{
    height:25px;
}

.history-bottom{
    display:flex;
    justify-content:space-between;

    margin-top:25px;
    margin-right: 35px;

    font-size:22px;

    position:relative;
    z-index:2;
}

.history-select{
    width:30px;
    height:30px;

    border:2px solid #780000;
    border-radius:10px;

    position:absolute;
    top:12px;
    right:12px;

    background:#FDF0D5;
}

.history-select-active{
    background:#780000;
}

.history-actions{
    margin-top:70px;

    display:flex;
    justify-content:space-between;
    align-items:center;
}

.selected-count{
    font-size:28px;
}

.repeat-btn{
    width:270px;
    height:50px;

    border:none;
    border-radius:30px;

    color:white;
    font-size:25px;

    background:linear-gradient(
        90deg,
        #780000,
        #7f00ff
    );
}

.history-right p,
.history-left p{
    white-space: nowrap;
}

/* PROFILE PAGE */

.profile-page{
    padding:40px 0 80px;
}

.profile-container{
    max-width:1000px;
}

.profile-title{
    text-align:center;
    font-size:50px;
    font-family:"Playfair Display", serif;
    margin-bottom:60px;
}

.profile-info{
    display:flex;
    justify-content:space-between;
    align-items:flex-start;

    font-size:22px;
}

.profile-left{
    line-height:1.4;
}

.profile-phone{
    white-space:nowrap;
}

.profile-divider{
    height:2px;
    background:#BE7F71;
    margin:10px 0 15px;
}

.profile-docs{
    font-size:22px;
    line-height:1.6;
}

.profile-docs span{
    margin-left:15px;
}

.profile-cards{
    margin-top:20px;
    text-align:center;
}

.profile-cards h2{
    font-size:50px;
    margin-bottom:20px;
    font-family:"Playfair Display", serif;
}

.profile-actions{
    margin-top:120px;

    display:flex;
    flex-direction:column;
    gap:50px;
}

.profile-action{
    display:flex;
    align-items:center;
    justify-content:space-between;
}

.profile-action.reverse{
    flex-direction:row-reverse;
}

.profile-box{
    width:  auto;
    height:290px;

    border:15px solid #780000;

    display:flex;
    align-items:center;

    padding-left:40px;
    padding-right: 40px;

    font-size:60px;
    line-height:1.15;
}

.profile-action img{
    width:420px;
    height:auto;
}

.logout-block{
    display:flex;
    justify-content:center;
    margin-top:80px;
}

.logout-box{
    width:760px;
    background:#780000;

    text-align:center;

    padding-top:10px;
}

.logout-title{
    color:white;
    font-size:60px;
    margin-bottom:15px;
}

.logout-box img{
    width:100%;
    max-width:650px;
    margin:auto;
}

/* AUTH PAGE */

.auth-page{
    padding:40px 0 120px;
}

.auth-container{
    width:100%;
    max-width:900px;
    margin:auto;
}

.auth-title{
    text-align:center;
    font-size:50px;
    font-family:"Playfair Display", serif;
    margin-bottom:40px;
}

.auth-form{
    display:flex;
    flex-direction:column;
}

.auth-form input{
    width:100%;
    height:60px;

    border:1px solid #BE7F71;
    border-radius:35px;

    background:#FDF0D5;

    padding:0 25px;

    font-size:22px;
    color:#780000;

    margin-bottom:12px;
}

.auth-gap{
    height:60px;
}

.auth-btn{
    width:420px;
    height:60px;

    margin:60px auto 30px;

    border:none;
    border-radius:35px;

    background:#780000;

    color:#fff;

    font-size:28px;

    cursor:pointer;
}

.auth-link{
    display:block;

    text-align:center;

    color:#BE7F71;

    font-size:24px;

    text-decoration:underline;
}

.auth-form .passport-row{
    margin-bottom:12px;
}

/* BRANCHES PAGE */

.branches-page{
    padding:40px 0 60px;
}

.branches-title{
    text-align:center;
    font-size:50px;
    font-family:"Playfair Display", serif;
    margin-bottom:40px;
}

.branch-map h2{
    font-size:32px;
    margin-bottom:10px;
    font-weight:normal;
}

.branch-map img{
    width:100%;
    border:3px solid #780000;
}

.branch-gallery{
    margin-top:60px;

    display:flex;
    justify-content:center;
    align-items:center;
    gap:40px;
}

.gallery-images{
    display:flex;
    align-items:center;
    justify-content:center;
}

.gallery-img{
    transition:.3s;
}

.gallery-img-1,
.gallery-img-5{
    width:140px;
    opacity:.35;
    margin:0 -20px;
    z-index:1;
}

.gallery-img-2,
.gallery-img-4{
    width:200px;
    opacity:.7;
    margin:0 -30px;
    z-index:2;
}
.gallery-img-3{
    width:280px;
    z-index:3;
}

.gallery-arrow{
    border:none;
    background:none;

    font-size:60px;
    color:#780000;
    z-index: 10;

    cursor:pointer;
}

.gallery-main{
    width:280px;
    z-index:2;
}

.gallery-side{
    width:220px;
    opacity:.5;
}

.branch-dots{
    display:flex;
    justify-content:center;
    gap:10px;

    margin-top:30px;
}

.branch-dots span{
    width:12px;
    height:12px;

    background:#780000;

    border-radius:50%;
}

.branch-address{
    text-align:center;

    font-size:40px;

    margin-top:20px;

    line-height:1.3;

    font-family:"Playfair Display", serif;
}

.branch-cars{
    max-width:700px;
    margin:40px auto 0;

    display:flex;
    flex-direction:column;
    gap:25px;
}

.branch-car-card{
    border:2px solid #BE7F71;
    border-radius:20px;

    padding:20px;

    display:flex;
    justify-content:space-between;
    align-items:center;
}

.branch-car-info{
    display:flex;
    flex-direction:column;
    gap:10px;

    font-size:24px;
}

.branch-car-info button{
    margin-top:25px;

    width:220px;
    height:50px;

    border:none;
    border-radius:30px;

    background:#780000;

    color:white;

    font-size:20px;

    cursor:pointer;
}

.branch-car-card img{
    width:280px;
    height:auto;
}

/* PAYMENTS PAGE */

.payments-page{
    padding:40px 0 80px;
}

.payments-title{
    text-align:center;
    font-size:50px;
    font-family:"Playfair Display", serif;
    margin-bottom:50px;
}

.payments-grid{
    display:flex;
    flex-wrap:wrap;
    justify-content:center;
    gap:60px;
}

.payment-card-wrapper{
    text-align:center;
}

.card-big{
    width:360px;
    height:210px;
}

.delete-card-btn{
    width:100%;
    height:50px;
    margin-top: 15px;

    background:none;
    border:2px solid #780000;

    color:#780000;
    font-size:24px;
}

.card-orange{
    background:linear-gradient(
        135deg,
        #ff8d24,
        #ff9f38
    );
}

.add-card-text{
    position:absolute;
    inset:0;

    display:flex;
    justify-content:center;
    align-items:center;

    color:#780000;
    font-size:48px;
}

/* MODAL */

.modal-overlay{
    position:fixed;
    inset:0;

    display:flex;
    justify-content:center;
    align-items:center;

    padding:30px;

    background:rgba(0,0,0,.15);

    opacity:0;
    visibility:hidden;

    transition:.3s;

    z-index:999;
}

.modal-overlay:target{
    opacity:1;
    visibility:visible;
}

.modal-overlay.active{
    opacity:1;
    visibility:visible;
}

.card-modal{
    width:min(1400px,95vw);

    max-height:90vh;

    overflow-y:auto;

    background:#FDF0D5;

    border:3px solid #780000;
    border-radius:35px;

    padding:50px;

    position:relative;

    transform:scale(.95);

    transition:.3s;
}

.modal-overlay.active .card-modal{
    transform:scale(1);
}

.modal-overlay:target .card-modal{
    transform:scale(1);
}

.card-modal h2{
    text-align:center;

    font-size:30px;
    font-family:"Playfair Display", serif;

    margin-bottom:80px;
}

.card-form label{

    font-size:clamp(18px,2vw,36px);

}

.card-form input{
    width:100%;
    height:clamp(45px,5vw,65px);

    border:1px solid #BE7F71;
    border-radius:35px;

    background:#FDF0D5;

    padding:0 25px;

    font-size:clamp(16px,1.6vw,28px);

    margin-bottom:35px;
}

.card-row{
    display:flex;
    gap:60px;
}

.card-row > div{
    flex:1;
}

.modal-submit-btn{
    display:block;
    font-size:clamp(28px,1.6vw,40px);

    width:auto;
    padding: 15px;
    height:70px;

    margin:40px auto 0;

    border:none;
    border-radius:35px;

    background:#780000;

    color:white;

    /* font-size:32px; */
}

.close-modal{

    /* top:20px;
    right:30px; */
    /* margin-right: -135px; */

    border:none;
    background:none;

    color:#780000;

    font-size:50px;

    cursor:pointer;
}

/* TABLET */

@media (max-width:992px){

    .header-content{
        flex-direction:column;
    }

    .search-content{
        flex-direction:column;
    }

    .news-grid {
        grid-template-columns: repeat(2, 300px);
        justify-content: center;
    }

    .search-form{
        width:100%;
        flex:none;
    }

    .auth-container{
        width:100%;
        max-width:90%;
        margin:auto;
    }
}

/* MOBILE */

@media (max-width:768px){
    .logo-block img{
        max-width:300px;
    }
    .menu{
        flex-wrap:wrap;
        justify-content:center;
    }

    .hero-card{
        max-width:100%;
    }

    .news-grid {
        grid-template-columns: 300px;
        justify-content: center;
    }

    .footer-content{
        flex-direction:column;
        text-align:center;
    }

    .news-title,
    .more-news{
        font-size:2rem;
    }

    .booking-slider{
        flex-direction:column;
    }

    .side-car{
        display:none;
    }

    .date-row,
    .passport-row,
    .booking-result{
        flex-direction:column;
    }

    .date-row input,
    .show-model-btn{
        width:100%;
    }

    .car-card{
        /* flex-direction:column; */
        gap:15px;
        
    }

    .car-info-right{
        text-align:left;
        font-size: 16px;
    }

    .car-info-left{
        font-size: 16px;
    }

    .history-order{
        text-align:left;
        font-size: 16px;
    }

    .history-left{
        font-size: 16px;
    }
    .history-right{
        font-size: 16px;
    }
    .history-bottom{
        font-size: 16px;
    }
    .history-actions{
        flex-direction:column;
        gap:20px;
    }

    .booking-code-row,
    .history-order,
    .history-bottom{
        font-size:18px;
    }

    .history-left,
    .history-right{
        font-size:16px;
    }

    .history-title{
        font-size:36px;
    }

    .profile-title{
        font-size:36px;
    }

    .profile-info{
        flex-direction:column;
        gap:20px;
    }

    .profile-docs{
        font-size:18px;
    }

    .profile-box{
        width:auto;
        height:220px;

        font-size:40px;

        border-width:10px;
    }

    .profile-action,
    .profile-action.reverse{
        flex-direction:column;
        gap:20px;
    }

    .profile-action img{
        width:100%;
        max-width:350px;
    }

    .logout-title{
        font-size:40px;
    }

    .logout-box{
        width:100%;
    }

    .auth-title{
        font-size:36px;
    }

    .auth-form input{
        font-size:18px;
        width: 80%;
        height:50px;
        margin: 5px auto;
    }

    .auth-btn{
        width:80%;
        font-size:22px;
    }

    .auth-link{
        font-size:18px;
    }

    .auth-gap{
        height:30px;
    }

    .branches-title{
        font-size:36px;
    }

    .branch-map h2{
        font-size:24px;
    }

    .branch-gallery{
        gap:15px;
    }

    .gallery-main{
        width:180px;
    }

    .gallery-side{
        width:120px;
    }

    .gallery-arrow{
        font-size:35px;
    }

    .branch-address{
        font-size:28px;
    }

    .branch-car-card{
        flex-direction:column;
        text-align:center;
    }

    .branch-car-card img{
        width:220px;
        margin-top:20px;
    }

    .branch-car-info button{
        width:100%;
    }

    .branch-car-info{
        width:100%;
    }
/* awda */
    .gallery-img-1,
    .gallery-img-5{
        display:none;
    }

    .gallery-img-2,
    .gallery-img-4{
        width:120px;
    }

    .gallery-img-3{
        width:180px;
    }
    /* awds */


}