/* Популярные */
.popular__list {
    position: relative;
    padding-bottom: 140px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px 20px;
    z-index: 1;
}

.popular-card {
    height: 640px;
    background: #fff;
    box-shadow: 0px 0px 18px 0px rgba(42, 51, 55, 0.3);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    z-index: 1;
    padding: 25px;
}

.popular-card__image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 305px;
    z-index: -1;
}

.popular-card__image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.popular-card__image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(var(--secondary) 0%, transparent 100%);
}

.popular-card__image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(transparent 0%, #fff 100%);
}

.popular-card__content {
    display: flex;
    flex-direction: column;
    gap: 26px;
}

.popular-card__prices .old-price {
    grid-area: old-price;
    text-align: right;
}

.popular-card__prices .new-price {
    grid-area: new-price;
    font-size: 32px;
    font-weight: 600;
    text-align: right;
}

.popular-card__prices .special {
    grid-area: special;
    width: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 500;
    background-color: var(--primary);
    color: #fff;
}

.popular-card__specifications {
    display: flex;
    flex-direction: column;
    gap: 6px;
    color: var(--secondary);
    font-weight: 500;
    padding-left: 25px;
    list-style-type: disc;
}

.popular-card__buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.popular-card__buttons .btn {
    width: 100%;
}

/* Контакты */
.contacts {
    background-color: var(--dark);
}

.map {
    height: 522px;
    background-image: url(../img/map.webp);
    background-size: cover;
    background-position: center;
}

.contacts__inner {
    padding: 40px 0;
    color: #fff;
}

.contacts__title {
    font-size: 42px;
    font-weight: 700;
}

.contacts__main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 20px;
}

.contacts__list {
    display: flex;
    align-items: center;
    gap: 50px;
}

.contacts__list li {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 16px;
}

.contacts .btn {
    width: 362px;
    height: 65px;
}

/* Футер */
.footer {
    background-color: #fff;
    padding: 60px 0;
    padding-bottom: 80px;
    font-size: 12px;
    line-height: 1.2;
}

.footer__main {
    display: flex;
    align-items: center;
    gap: 240px;
}

.footer__links {
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-decoration: underline;
}

.disclaimer {
    margin-top: 54px;
}

/* Попап */
.modal {
    padding: 0;
    width: 600px;
    height: 545px;
    border-radius: 3px;
    overflow: hidden;
    background-color: #fff;
    display: none;
    position: relative;
}

.popup_car_img {
    position: absolute;
    top: 70px;
    right: -86px;
    width: 373px;
    height: 190px;
    object-fit: contain;
}

.modal__inner {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 25px 35px 35px;
}

.modal__title {
    color: var(--secondary);
    font-size: 32px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 21px;
}

.modal__benefit {
    padding: 8px 0;
    font-weight: 700;
    color: #fff;
    position: relative;
    z-index: 1;
    margin-bottom: 16px;
}

.modal__benefit::before {
    content: '';
    position: absolute;
    left: -35px;
    top: 0;
    width: 300px;
    height: 100%;
    background-color: #00CABF;
    z-index: -1;
}

.modal__list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    color: #000;
    margin-bottom: 15px;
}

.modal__form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: auto;
}

.modal__form .agreement p {
    color: #5b5b5b;
}

.modal__form .input {
    font-size: 16px;
    height: 56px;
    width: 100%;
}

.modal__form .btn {
    margin-top: 10px;
    height: 56px;
    font-size: 24px;
    font-weight: 200;
}

/* Формы и чекбоксы */
.agreement {
    display: flex;
    flex-direction: column;
    gap: 10px;
    grid-column: 2;
}

.agreement__item {
    display: flex;
    gap: 10px;
    align-items: center;
}

.agreement input {
    position: absolute;
    opacity: 0;
}

.agreement input+span {
    background: #b6b6b6;
    width: 14px;
    min-width: 14px;
    height: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media screen and (max-width: 768px) {
    .agreement input+span {
        width: 18px;
        min-width: 18px;
        height: 18px;
    }
}

.agreement-black input+span {
    background-color: #00000030;
}

.agreement input:checked+span::after {
    content: '';
    width: 8px;
    height: 8px;
    background-color: #000;
}

.agreement-black input:checked+span::after {
    background-color: #000;
}

.agreement p {
    font-size: 11px;
    color: #808080;
    line-height: 1.1;
    font-weight: 400;
}

.agreement-black p {
    color: #000;
}

.agreement p a {
    text-decoration: underline;
}