* {
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat Alternates', sans-serif;
    background-color: #F9F9F9;
    position: relative;
}

.head {
    background-color: #F9F9F9;
    display: flex;
    justify-content: space-between;
}

.head2 {
    display: flex;
    gap: 505px;
}

.header-list {
    display: flex;
    justify-content: space-between;
    gap: 95px;
    align-items: center;
}

.list-item {
    font-size: 32px;
    list-style: none;
    text-decoration: none;
    color: black;
    z-index: 4;
}

.logo-img {
    width: 150px;
    height: 150px;
}

.account-img {
    width: 50px;
    height: 50px;
    margin-top: 45px;
    margin-right: 50px;
}


main, .mainer {
    background-color: #F9F9F9;
}

.after-header {
    position: relative;
}

.after-header-text {
    position: absolute;
    font-size: 40px;
    top: 450px;
    left: 100px;
}


.to-catalog {
    position: absolute;
    top: 600px;
    left: 100px;
    width: 200px;
    height: 70px;
    background-color: black;
    border: none;
    color: white;
    font-size: 32px;
    font-family: 'Montserrat Alternates', sans-serif;
    border-radius: 25px;
    cursor: pointer;
}
.to-catalog:hover {
    filter: drop-shadow(0px 0px 20px rgba(0, 0, 0, 0.25));
}

.plashka {
    background-color: #A8A8A8;
    display: flex;
    justify-content: center;
    gap: 141px;
    filter: drop-shadow(0px 5px 35px rgba(15, 15, 15, 0.5));
}

.plashka-img {
    width: 125px;
    height: 125px;
}

.cards-header {
    text-align: center;
    font-weight: 600;
    margin-top: 75px;
}

.catalog {
    position: relative;
    display: grid;
    max-width: 1512px;
    margin: 0 auto;
    grid-template-columns: 1fr 1fr 1fr;
    justify-content: center;
    gap: 60px;
    margin-top: 214px;
}

.card {
    width: 464px;
    height: 518px;
    background-color: #F9F9F9;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: center;
    box-shadow: 0px 4px 10px 0px rgba(0, 0, 0, 0.25);
    padding: 20px;
    z-index: 2;
}

.card-name {
    font-size: 24px;
}

.card-info {
    display: flex;
    flex-direction: column;
    background-color: #F9F9F9;
    flex-wrap: nowrap;
    align-items: center;
    width: 100%;
    height: 248px;
    border-radius: 0px 0px 10px 10px;
}

.card-description {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    border-top: 1px solid black;
    padding-top: 20px;
    margin-bottom: 20px;
}

.cards-buttons {
    margin-top: 30px;
}

.button1 {
    font-family: 'Montserrat Alternates', sans-serif;
    background-color: #000000;
    color: white;
    padding: 14px 51px;
    font-size: 16px;
    border-radius: 15px 0px 0px 15px;
    border: none;
    cursor: pointer;
}

.button2 {
    font-family: 'Montserrat Alternates', sans-serif;
    background-color: #000000;
    color: white;
    padding: 14px 51px;
    font-size: 16px;
    border-radius: 0px 15px 15px 0px;
    border: none;
    cursor: pointer;
}

.flower {
    position: absolute;
    bottom: -1200px;
    left: 750px;
    top: 825px;
    z-index: 1;
}

.usermail {
    max-width: 350px;
    white-space: nowrap;     
    overflow: hidden;        
    text-overflow: ellipsis;
}

.about-section {
    margin-bottom: 435px;
}

.about-text-head {
    padding: 65px 0px 0px 80px;
    font-size: 32px;
    font-weight: 500;
    margin: 0px;
}
.about-text {
    padding: 0px 0px 0px 80px;
    font-size: 32px;
    margin: 0px;
}

.footer {
    border-top: 4px solid #CACACA;
    box-shadow: 0px 4px 25px 0px rgba(0, 0, 0, 0.33);
    display: flex;
    justify-content: center;
    position: relative;
    gap: 150px;
    background-color: #F9F9F9;
    padding: 40px 0;
    width: 100%;
    z-index: 1000;
}

.footer-info {
    font-size: 20px;
    margin: 0;
    line-height: 1.5;
}

.footer-links {
    font-size: 20px;
}

.contacts {
    display: flex;
    flex-direction: column;
}


.social-icon {
    width: 35px;
    height: 35px;
}

.useful-links {
    display: flex;
    flex-direction: column;
    line-height: 1.5;
}

.useful-links hr {
    width: 100%;
}

.useful-links a {
    text-decoration: none;
    color: black;
}

.main-account {
    margin-top: 35px;
    margin-bottom: 150px;
}

.flower2 {
    width: 900px;
    height: 900px;
    position: absolute;
    top: 0;
    right: 0;
    z-index: 3;
    pointer-events: none;
}

.avatar-info {
    display: flex;
    margin-left: 160px;
    gap: 15px;
}

.account-text {
    display: flex;
    flex-direction: column;
    gap: 15px;
    font-size: 32px;
    margin-top: 10px;
}

.account-buttons {
    display: flex;
    flex-direction: column;
    gap: 35px;
}

.everything-about {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.avatar {
    width: 300px;
    height: 300px;
    border: 2px dashed black;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
}

.to-cart {
    font-family: 'Montserrat Alternates', sans-serif;
    background-color: black;
    border: none;
    color: white;
    padding: 12px 59px;
    border-radius: 10px;
    font-size: 24px;
    cursor: pointer;
}

.cart-buttonishe {
    text-decoration: none;
    color: white;
}

.to-reservation {
    font-family: 'Montserrat Alternates', sans-serif;
    background-color: black;
    border: none;
    color: white;
    padding: 12px 59px;
    border-radius: 10px;
    font-size: 24px;
    cursor: pointer;
}

.account-remove {
    justify-self: center;
    font-family: 'Montserrat Alternates', sans-serif;
    background-color: black;
    border: none;
    color: white;
    padding: 12px 35px;
    border-radius: 10px;
    font-size: 20px;
    cursor: pointer;
    margin-top: 40px;
    margin-left: 165px;
}


.last-news {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-size: 32px;
    gap: 45px;
    margin-top: 95px;
    margin-bottom: 0;
}

.main-text {
    margin-top: 35px;
    text-align: center;
    font-size: 32px;
    margin-bottom: 75px;
}

.cart-card {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 464px;
    height: 471px;
    background-color: #D9D9D9;
}

.cart-line {
    border: 2px solid #CACACA;
    width: 1198px;
    margin-left: 160px;
}

.cart-car {
    width: 421px;
    height: 301px;
}

.cart-cardinfo {
    padding: 34px 25px;
}

.card-cart-info {
    display: flex;
    margin-left: 160px;
}

.all-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.cart-maintext {
    font-size: 32px;
}

.cart-maintext2 {
    font-size: 28px;
}

.card-cost {
    font-size: 24px;
}

.cart-description {
    font-size: 24px;
    margin-top: 12px;
}

.cost-name {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 282px;
}

.cost-name2 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 85px;
}


.cart-everything {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-buybtn {
    font-family: 'Montserrat Alternates', sans-serif;
    background-color: black;
    border: none;
    color: white;
    padding: 12px 59px;
    border-radius: 10px;
    font-size: 35px;
    cursor: pointer;
    height: fit-content;
}

.buybuy {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-right: 70px;
}

.total-cost {
    font-size: 20px;
}

.main-cart {
    margin-bottom: 150px;
}

.reserv-tocart {
    text-decoration: none;
    color: white;
}

.jump-tocatalog {
    text-decoration: none;
    color: white;
}

.plashka-img {
    cursor: pointer;
    transition: transform 0.2s ease, filter 0.2s ease;
}

.plashka-img:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 0 6px rgba(0,0,0,0.3));
}

.plashka-img.active-brand {
    filter: drop-shadow(0 0 0 2px #000000) brightness(1.05);
    transform: scale(1.02);
}

.card-name {
    transition: color 0.1s;
}

.catalog {
    position: relative;
}
/* Модальное окно для бронирования */
.reservation-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.reservation-modal.show {
    opacity: 1;
    visibility: visible;
}

.reservation-modal-content {
    background-color: #F9F9F9;
    border-radius: 20px;
    padding: 30px;
    width: 400px;
    max-width: 90%;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.reservation-modal.show .reservation-modal-content {
    transform: scale(1);
}

.reservation-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: #888;
    transition: color 0.2s;
}

.reservation-close:hover {
    color: #000;
}

.reservation-modal-content h3 {
    font-size: 24px;
    margin-bottom: 5px;
    font-weight: 500;
}

.reservation-price {
    font-size: 20px;
    color: #666;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #ddd;
}

.reservation-modal-content label {
    display: block;
    margin-top: 15px;
    margin-bottom: 5px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.reservation-modal-content input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    font-family: 'Montserrat Alternates', sans-serif;
    box-sizing: border-box;
}

.reservation-modal-content input:focus {
    outline: none;
    border-color: #000;
}

.confirm-reservation {
    font-family: 'Montserrat Alternates', sans-serif;
    background-color: #000;
    color: white;
    border: none;
    border-radius: 10px;
    padding: 12px 20px;
    font-size: 16px;
    cursor: pointer;
    margin-top: 25px;
    width: 100%;
    transition: background-color 0.2s;
}

.confirm-reservation:hover {
    background-color: #333;
}

.purchase-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.purchase-modal.show {
    opacity: 1;
    visibility: visible;
}

.purchase-modal-content {
    background-color: #F9F9F9;
    border-radius: 20px;
    padding: 30px;
    width: 450px;
    max-width: 90%;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.purchase-modal.show .purchase-modal-content {
    transform: scale(1);
}

.purchase-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: #888;
    transition: color 0.2s;
}

.purchase-close:hover {
    color: #000;
}

.purchase-modal-content h3 {
    font-size: 24px;
    margin-bottom: 20px;
    font-weight: 500;
    text-align: center;
}

.purchase-car-info {
    display: flex;
    gap: 20px;
    align-items: center;
    margin-bottom: 20px;
}

.purchase-car-image {
    width: 150px;
    height: 150px;
    object-fit: contain;
    border-radius: 10px;
}

.purchase-car-details {
    flex: 1;
}

.purchase-car-name {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
}

.purchase-car-price {
    font-size: 24px;
}

.purchase-divider {
    height: 1px;
    background-color: #ddd;
    margin: 15px 0;
}

.purchase-car-description {
    font-size: 14px;
    line-height: 1.6;
    color: #666;
    margin: 15px 0;
    max-height: 100px;
    overflow-y: auto;
}

.purchase-buttons {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.cancel-purchase {
    font-family: 'Montserrat Alternates', sans-serif;
    background-color: #f5f5f5;
    color: #333;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 12px 20px;
    font-size: 16px;
    cursor: pointer;
    flex: 1;
    transition: background-color 0.2s;
}

.cancel-purchase:hover {
    background-color: #e0e0e0;
}

.confirm-purchase {
    font-family: 'Montserrat Alternates', sans-serif;
    background-color: #000;
    color: white;
    border: none;
    border-radius: 10px;
    padding: 12px 20px;
    font-size: 16px;
    cursor: pointer;
    flex: 1;
    transition: background-color 0.2s;
}

.confirm-purchase:hover {
    background-color: #333;
}

.card > img {
    width: 350px;
    height: 350px;
    object-fit: contain;
    border-radius: 10px;
}

.car-specs {
    margin-top: 0;
}