@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Manrope:wght@200..800&display=swap');

:root{
    --container: 1340px;

    --font-head: "Manrope", sans-serif;
    --font-text: "Inter", sans-serif;

    --font-title-lg: 40px;
    --font-title: 34px;
    --font-subtitle-lg: 22px;
    --font-subtitle: 20px;
    --font-body: 16px;

    --bg: #252525;
    --black: #252525;
    --white: #F0EEEA;
    --accent: #0ABAB5;

    --radius-xs: 10px;
    --radius: 20px;
    --radius-lg: 30px;

    --section-space: 50px;

    --td-slide-w: calc(var(--container) / 2 - 75px); 
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-text);
    background: var(--bg);
    color: var(--white);
    font-size: var(--font-body);
}
a {
    color: var(--white);
}

.container {
    width: var(--container);
    margin: 0 auto;
}
.section {
    padding: var(--section-space) 0;
}
.section-title-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
.title-line {
    width: 90px;
    height: 1px;
    background: #F0EEEA;
}
.section-title {
    font-size: var(--font-title);
    font-weight: 700;
    text-align: center;
}
.section-subtitle {
    font-size: var(--font-subtitle);
    font-weight: 500;
    margin-top: 10px;
    text-align: center;
}
.btn {
    border-radius: var(--radius-lg);
    padding: 10px 0;
    transition: all 0.3s;
}
.btn:hover {
    transition: all 0.3s;
    backdrop-filter: blur(10px);
}
.fill-btn {
    background: var(--accent);
    border: 1px solid var(--accent);
    transition: all 0.3s;
}
.fill-btn:hover {
    transition: all 0.3s ease-in-out;
}
.transparent-btn {
    background: transparent;
    border: 1px solid var(--accent);
    color: var(--accent);
}
.transparent-btn:hover {
    background-color: rgba(10, 186, 181, 0.2);
}
.remove-scroll {
    overflow-y: hidden;
}
.main__header-mobile, .menu-overlay {
    display: none;
}
.news__section-items-mobile {
    display: none !important;
}
.news__nav {
    display: none;
}
.swiper-button-lock {
    opacity: 0.5 !important;
    cursor: not-allowed;
}

/* notify */

.notification {
    position: fixed;
    top: 30px;
    right: 30px;
    max-width: 400px;
    padding: 20px 50px 20px 20px;
    border-radius: 12px;
    background: var(--white);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    transform: translateX(150%);
    transition: transform 0.4s ease;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 15px;
}
.notification.show {
    transform: translateX(0);
}
.notification.success {
    border-left: 4px solid #4CAF50;
}
.notification.error {
    border-left: 4px solid #f44336;
}
.notification__content {
    display: flex;
    align-items: center;
    gap: 15px;
}
.notification__icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.notification.success .notification__icon {
    background: #E8F5E9;
}
.notification.success .notification__icon::before {
    content: '✓';
    color: #4CAF50;
    font-size: 20px;
    font-weight: bold;
}
.notification.error .notification__icon {
    background: #FFEBEE;
}
.notification.error .notification__icon::before {
    content: '!';
    color: #f44336;
    font-size: 20px;
    font-weight: bold;
}
.notification__message {
    font-size: 15px;
    color: #333;
    line-height: 1.4;
}
.notification__close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    transition: color 0.3s;
}

.notification__close:hover {
  color: #333;
}
@media (max-width: 576px) {
    .notification {
        top: 15px;
        right: 15px;
        left: 15px;
        max-width: none;
    }
}

/* Modal */

.modal {
    position: fixed;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    visibility: hidden;
    z-index: 1000;
    transition: visibility 0s linear 0.4s;
}

.modal.active {
    visibility: visible;
    transition: visibility 0s linear 0s;
}

/* Затемнение фона */

.modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.active .modal__overlay {
    opacity: 1;
}

/* Контент модального окна */

.modal__content {
    position: relative;
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    transform: translateY(-50px) scale(0.9);
    opacity: 0;
    transition: transform 0.4s ease, opacity 0.4s ease;
}
.modal.active .modal__content {
    transform: translateY(0) scale(1);
    opacity: 1;
}
.testdrive__modal {
    max-width: 800px;
    height: max-content;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0;
    border-radius: 40px;
}
.modal__left {
    flex: 3;
}
.testdrive-modal-vid {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius) 0 0 var(--radius);
}
.modal__right {
    flex: 2;
    padding: 20px;
    background: var(--black);
    border-radius: 0 var(--radius) var(--radius) 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}
.modal-title {
    font-size: 20px;
    font-weight: 600;
}
.testdrive__form {
    margin-top: 20px;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    row-gap: 25px;
}
.testdrive-input {
    width: 100%;
    height: 50px;
    border-bottom: 1px solid var(--white);
    padding-left: 5px;
    outline: none;
}
.error-border {
    border-color: #ff0000 !important;
}
.testdrive-input::placeholder {
    font-size: 14px;
    color: #bfbfbf;
}
.testdrive-submit {
    width: 100%;
    height: 50px;
    background-color: var(--accent) !important;
    border-radius: var(--radius);
    color: var(--white);
    font-weight: 600;
    transition: all 0.3s;
}
.testdrive-submit:hover {
    transition: all 0.3s;
    box-shadow: 4px 4px 85px 17px rgba(10, 186, 181, 0.2);
}
.modal__data {

}
.modal-data {
    font-size: 12px;
}
.modal-data > a {
    text-decoration: underline;
}
.modal__accept {
    color: var(--white);
    display: flex;
    align-items: center;
    margin-top: -15px;
}
.modal-accept-text {
    font-size: 12px;
    font-weight: 400;
    margin-left: 10px;
}
.modal__accept input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    min-width: 20px;
    border: 1px solid var(--white);
    border-radius: 4px;
    background-color: transparent;
    cursor: pointer;
    position: relative;
}
.modal__accept input[type="checkbox"]:checked {
    background-color: var(--accent);
    border-color: var(--accent);
}
.modal__accept input[type="checkbox"]:checked::after {
    content: "";
    position: absolute;
    left: 7px;
    top: 3px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Кнопка закрытия */

.modal__close {
    position: absolute;
    top: 0px;
    right: 0px;
    font-size: 28px;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--white);
    transition: color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}
body.modal-open {
    overflow: hidden;
}

/* hero */

.hero {
    padding: 30px 0 50px 0;
    position: relative;
    height: 100vh;
    overflow: hidden;
}
#bgVideo {
    position: absolute;
    right: 0;
    bottom: 0;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: -2;
    object-fit: cover;
    filter: brightness(0.5);
}
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    width: 200px;
}
.nav-link {
    margin-right: 50px;
    font-weight: 600;
    position: relative;
}
.nav-link:after {
    content: '';
    position: absolute;
    right: 0;
    bottom: -2px;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease, right 0.3s ease;
}
.nav-link:hover::after {
    width: 100%;
    right: 0;
}
.nav-link:not(:hover)::after {
    right: 100%;
    width: 0;
}
@keyframes underline {
    from { width: 0; }
    to { width: 100%; }
}
.nav-link:last-child {
    margin-right: 0;
}
.main__section-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: calc(100vh - 104px);
    position: relative;
    z-index: 1;
}
.main-title {
    font-size: 60px;
    font-weight: 700;
    max-width: 840px;
    text-align: center;
    margin: 0 auto;
    line-height: 130%;
}
.main-subtitle {
    text-align: center;
    margin-top: 10px;
    font-size: 30px;
    font-weight: 600;
}
.main__section-btns {
    display: flex;
    justify-content: center;
    margin-top: 70px;
}
.new-auto {
    padding: 15px 76px;
    font-size: 20px;
    font-weight: 600;
}
.new-auto:hover {
    box-shadow: 4px 4px 85px 17px rgba(10, 186, 181, 0.2);
}
.used-auto {
    padding: 15px 51px;
    font-size: 20px;
    font-weight: 600;
    margin-left: 20px;
}

/* brands */

.brands__wrap {
    overflow: hidden;
    transition: max-height .4s ease;
    margin-top: 30px;
}
.brands__list {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(6,1fr);
}
@media (max-width: 1200px) {.brands__list {grid-template-columns:repeat(4,1fr);} }
@media (max-width: 800px) {.brands__list {grid-template-columns:repeat(3,1fr);} }
@media (max-width: 600px) {.brands__list {grid-template-columns:repeat(2,1fr);} }
.brand {
    height: 102px; /* высота с padding */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    border: 1px solid var(--black);
    border-radius: var(--radius);
    background: transparent;
    transition: all 0.3s ease-in-out;

}
.brand:hover {
    border-color: var(--white);
    transition: all 0.3s ease-in-out;
}
.brand img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    min-width: 150px;
}
.show__all-wrapper {
    margin-top: 40px;
    width: 100%;
    display: flex;
    justify-content: center;
}
.brands__btn {
    padding: 12px 60px;
    font-size: 16px;
    font-weight: 600;
}


/* testdrive */

.testdrive__body {
    position: relative;
    overflow: hidden;
}
.testdrive__ctgs {
    margin-top: 25px;
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 10px 20px;
}
.tab {
    text-decoration: underline;
    font-weight: 600;
    padding: 12px 25px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
}
.tab:hover {
    transform: translateY(-2px);
    transition: all 0.3s ease;
}
.tab.active {
    background: var(--accent);
    border-radius: var(--radius-lg);
    text-decoration: none;
}
.testdriveSwiper {
    width: var(--container);
    max-width: var(--container);
    height: 450px !important;
    overflow: hidden;
    margin-top: 30px;
}
.testdriveSwiper .swiper-slide {
    height: auto;
}
.testdriveSwiper .swiper-wrapper {
    display: flex;
    align-items: stretch;
}
.testdrive__slide {
    height: 380px;
    width: calc(var(--container) / 2 - 75px);
    display: flex;
    justify-content: flex-end;
    position: relative;
}
.testdriveslider__nav {
    position: absolute;
    z-index: 999;
    bottom: 0;
    right: 9px;
    display: flex;
}
.testdrive-nav-btn {
    width: 50px;
    height: 50px;
    border: 1px solid var(--white);
    border-radius: 1000px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}
.testdrive-btn-prev {
    margin-right: 15px;
}
.testdrive-btn-prev img {
    rotate: 180deg;
}
.testdrive-slide-img {
    position: absolute;
    border-radius: var(--radius);
    width: 335px;
    height: 250px;
    left: 0;
    bottom: 30px;
    z-index: 2;
    object-fit: cover;
}
.testdrive-slide-body {
    width: 310px;
    height: 100%;
    border: 1px solid var(--white);
    border-radius: var(--radius-xs);
    padding: 20px;
    position: relative;
    transition: all 0.3s ease-in-out;
}
.testdrive-name {
    font-size: 24px;
    font-weight: 400;
}
.testdrive__specs {
    display: flex;
    flex-direction: column;
    row-gap: 25px;
    margin-top: 45px;
    margin-left: 50px;
}
.specs__item {
    width: 215px;
    display: flex;
    justify-content: space-between;
}
.testdrive__slide-btn {
    position: absolute;
    right: 20px;
    bottom: 30px;
}
.testdrive-slide-btn {
    width: 215px;
    display: block;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 13px 20px;
    font-weight: 600;
    cursor: pointer;
}
.testdrive-slide-btn:hover {
    transform:scale(1.03);
    box-shadow: 4px 4px 85px 17px rgba(10, 186, 181, 0.2);
}

/* promo */

.promo {
    padding: 50px 30px;
}
.promo-container {
    display: flex;
    gap: 30px;
    min-height: 620px;
}
.banner {
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    padding: 30px;
}
.banner-large {
    flex: 3; 
    background: url(../assets/img/promo-bg-1.jpg) no-repeat center;
    background-size: cover;
}
.banner-small {
    flex: 1; 
    background: url(../assets/img/promo-bg-2.jpg) no-repeat center;
    background-size: cover;
}
.promo-banner-title {
    text-align: left;
}
.promo-banner-btn {
    margin-top: 25px;
    display: flex;
    gap: 20px;
}
/* .banner-btn-column {
    flex-direction: column;
    gap: 20px;
} */
.promo-testdrive, .promo-callback {
    padding: 15px 19px;
    text-align: center;
    font-weight: 500;
    cursor: pointer;
}
.promo-testdrive:hover {
    transform: scale(1.03);
    box-shadow: 4px 4px 85px 17px rgba(10, 186, 181, 0.2);
}  
@media (max-width: 768px) {
    .promo-container {
        flex-direction: column;
    }
}

/* services */

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 80px;
    margin: 0 auto;
    margin-top: 50px;
}
.services-grid-center {
    grid-template-columns: repeat(2, 1fr);
    max-width: 800px;
}
.service-card {
    position: relative;
    padding: 30px;
    text-align: center;
    color: white;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
    border-radius: var(--radius);
}
.icon {
    margin-bottom: 25px;
}
.icon img {
    max-width: 180px;
    max-height: 180px;
}
h3 {
    font-size: 22px;
    margin-bottom: 10px;
}
.service-card p {
    color: rgb(255, 255, 255, 0.8);
    line-height: 1.6;
    font-weight: 400;
    font-size: 15px;
}
.corner {
    position: absolute;
    width: 30px;
    height: 30px;
    border: 1px solid #F0EEEA;
}
.corner-tl {
    top: -2px;
    left: -2px;
    border-right: none;
    border-bottom: none;
    border-radius: var(--radius) 0 0 0;
}
.corner-tr {
    top: -2px;
    right: -2px;
    border-left: none;
    border-bottom: none;
    border-radius: 0 var(--radius) 0 0;
}
.corner-bl {
    bottom: -2px;
    left: -2px;
    border-right: none;
    border-top: none;
    border-radius: 0 0 0 var(--radius);
}
.corner-br {
    bottom: -2px;
    right: -2px;
    border-left: none;
    border-top: none;
    border-radius: 0 0 var(--radius) 0;
}

/* about */

.about__section-title {
    justify-content: flex-start;
}
.about__section-container {
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
    gap: 80px;
}
.about__section-article > p {
    margin-bottom: 20px;
    line-height: 165%;
    max-width: 555px;
    font-weight: 300;
}
.about__section-slider {
    width: 705px;
}
.swiper {
    width: 100%;
    height: 400px;
    border-radius: var(--radius);
    overflow: hidden;
}
.about-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.swiper-pagination {
    bottom: 20px !important;
    display: flex;
    gap: 10px;
    justify-content: center;
}
.swiper-pagination-bullet {
    width: 200px;
    height: 3px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.5);
    position: relative;
    opacity: 1;
}
.swiper-pagination-bullet::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background: white;
    border-radius: 2px;
    transition: width 0.1s linear;
}
.swiper-pagination-bullet-active::before {
    animation: fillProgress 3s linear forwards;
}
@keyframes fillProgress {
    to {
        width: 100%;
    }
}
.about__section-items {
    margin-top: 30px;
    display: flex;
    justify-content: space-between;
}
.about__section-item {
    width: 325px;
    height: 150px;
    border: 1px solid var(--white);
    border-radius: var(--radius);
    padding: 20px 15px;
}
.about__item-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.about-item-title {
    font-size: 40px;
    font-weight: 700;
}
.about-item-text {
    margin-top: 15px;
    font-size: 18px;
    font-weight: 300;
}

/* news */

.news__section-items {
    display: flex;
    justify-content: space-between;
    margin-top: 50px;
}
.news__section-item {
    width: 400px;
    border-radius: var(--radius);
    padding: 30px;
    border: 1px solid var(--white);
    position: relative;
    transition: all 0.5s ease-in-out;
}
.news__section-item {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.news-item-preview {
  flex-grow: 1;
}
.news__section-item:hover {
    transition: all 0.5s ease-in-out;
    border-color: var(--accent);
    box-shadow: 0 4px 18px 0 rgba(0, 0, 0, 0.25);
}
.news__section-items > a {
    display: flex;
}
.news-item-img {
    border-radius: var(--radius-xs);
    width: 335px;
    height: 225px;
}
.news-item-cat {
    font-size: 14px;
    font-weight: 600;
    color: var(--accent);
    margin-top: 35px;
}
.news__item-title {
    margin: 10px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.news-item-title {
    font-size: 19px;
    font-weight: 600;
}
.news-item-preview {
    line-height: 1.5;
    font-weight: 300;
}
.news__btn {
    margin-top: 55px;
    text-align: right;
}
.news-btn {
    padding: 15px 65px;
}

/* career */

.career__title-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.career__section-title {
    justify-content: flex-start;
}
.career-subtitle {
    margin-top: 0;
}
.career__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px; 
    margin-top: 50px;
}
.career__card {
    border: 1px solid var(--white);
    border-radius: var(--radius);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    position: relative;
    transition: all 0.5s ease-out;
}
.career__card:hover {
    transition: all 0.5s ease-out;
    border-color: var(--accent);
    box-shadow: 0 4px 18px 0 rgba(0, 0, 0, 0.25);
}
.career-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center; 
    font-size: 18px;
    font-weight: bold;
}
.career-description {
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 60px;
}
.career-location {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 30px;
    position: absolute;
    bottom: 20px;
}
.card-with-link {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.card-with-link > .test {
    display: block;
}
.card-with-link > .career__card > .career-description {
    margin-bottom: 0;
}
.all-vacancies {
    display: flex;
    justify-content: center;
    padding: 20px 0;
    transition: all 0.3s;
}
.all-vacancies:hover {
    background-color: rgba(10, 186, 181, 0.2);
}

/* form */

.form {
    padding: 50px 90px;
}
.form__container {
    background: var(--white);
    width: 100%;
    padding: 50px 30px;
    border-radius: var(--radius-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.form-title, .form-subtitle {
    color: var(--black);
}
.form-title {
    font-size: 40px;
    font-weight: 800;
    font-family: var(--font-head);
}
.form-subtitle {
    font-size: 22px;
    font-family: var(--font-head);
    font-weight: 600;
}
.form__input {
    position: relative;
    margin-top: 35px;
    color: var(--black);
    width: 390px;   
}
.field{
    position: relative;
}
.form-input {
    width: 390px;
    height: 65px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--black);
    outline: none;
    padding: 0 140px 0 30px; 
    line-height: 65px;       
}
.form-input::placeholder {
    color: transparent;
}
.form-error{
    opacity: 0;
    max-height: 0;
    color: #E44;
    font-size: 12px;
    margin-top: 6px;
    transition: all .2s ease;
    position: absolute;
    bottom: -5px;
}
.field.error .form-error{
    opacity: 1;
    position: absolute;
    bottom: -5px;
}
.form-checkbox-error {
    opacity: 0;
    max-height: 0;
    color: #E44;
    font-size: 12px;
    margin-top: 6px;
    transition: all .2s ease;
    position: absolute;
    bottom: -5px;
}
.form__accept.error .form-checkbox-error {
    opacity: 1;
    position: absolute;
    bottom: -5px;
    left: 30px;
}
.form-label{
    position: absolute;
    left: 24px;          
    top: 50%;
    transform: translateY(-50%);
    padding: 0 8px;
    color: #CECECE;
    font-size: 16px;
    font-weight: 300;
    background: var(--white); 
    transition: .2s ease;
    pointer-events: none;
}
.form-input:focus + .form-label,
.form-input:not(:placeholder-shown) + .form-label{
    top: 0;
    transform: translateY(-50%);
    font-size: 12px;
    color: var(--black);
}
.form-submit {
    background-color: var(--accent) !important;
    height: 44px;
    color: var(--white);
    border-radius: var(--radius-lg);
    padding: 0 30px;
    position: absolute;
    right: 10px;
    top: calc(50% - 22px);
    transition: all 0.3s;
}
.form-submit:hover {
    transform: scale(1.03);
    transition: all 0.3s;
}
.form__data {
    color: var(--black);
    margin-top: 55px;
}
.form-data {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
}
.form-data > a {
    color: var(--black);
    text-decoration: underline;
}
.form__accept {
    margin-top: 10px;
    color: var(--black);
    display: flex;
    align-items: center;
    margin-top: 10px;
    position: relative;
}
.accept-text {
    font-size: 14px;
    font-weight: 400;
    margin-left: 10px;
}
.form__accept input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    min-width: 20px;
    border: 1px solid var(--black);
    border-radius: 4px;
    background-color: transparent;
    cursor: pointer;
    position: relative;
}
.form__accept input[type="checkbox"]:checked {
    background-color: var(--black);
    border-color: var(--black);
}
.form__accept input[type="checkbox"]:checked::after {
    content: "";
    position: absolute;
    left: 7px;
    top: 3px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* footer */

footer {
    padding-top: 50px;
    font-family: var(--font-head);
}
.footer-container {
    border-top: 1px solid #AFB1BA;
    padding-top: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.footer-company {
    margin-top: 15px;
    font-size: 18px;
    font-weight: 500;
}
.footer__contacts {
    margin-top: 25px;
    display: flex;
    flex-direction: column;
    row-gap: 10px;
}
.footer__social {
    margin-top: 25px;
    display: flex;
    gap: 20px;
}
.footer__social-wrapper {
    display: block;
    width: 55px;
    height: 55px;
    border-radius: 1000px;
    background: transparent;
    border: 1px solid var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}
.footer__social-wrapper:hover {
    background: var(--accent);
    border-color: var(--accent);
    transition: all 0.3s;
}
.footer-icon {
    width: 30px;
}
.footer-tg-icon {
    width: 25px;
}
.footer-wa-icon {
    width: 25px;
}
.footer__policy {
    margin-top: 25px;
    display: flex;
    flex-direction: column;
    row-gap: 10px;
}
.footer-policy {
    text-decoration: underline !important;
    font-size: 14px;
    font-weight: 300;
}
iframe {
    width: 645px;
    height: 330px;
    border-radius: var(--radius);
}
.footer-rights {
    font-size: 16px;
    text-align: center;
    margin-top: 20px;
    padding-bottom: 20px;
}

@media (max-width: 1400px) {
    
    :root{
        --container: 1200px;

        --font-title-lg: 40px;
        --font-title: 30px;
        --font-subtitle-lg: 20px;
        --font-subtitle: 20px;
    }

    /* hero */

    .main-title {
        font-size: 51px;
    }
    .main-subtitle {
        font-size: 24px;
    }
    .new-auto, .used-auto {
        font-size: 18px;
    }

    /* test drive */

    .testdrive-slide-img {
        width: 270px;
        height: auto;
    }

    /* promo */

    .promo-container {
        min-height: 500px;
    }
    .promo-banner-title {
        font-size: 26px;
    }
    .banner-btn-column {
        flex-direction: column;
        row-gap: 10px;
    }
    .promo-testdrive, .promo-callback {
        padding: 12px 30px;
        text-align: center;
        font-weight: 500;
        cursor: pointer;
    }

    /* services */

    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 100px;
    }
    .service-card {
        min-height: unset;
    }
    h3 {
        font-size: 20px;
        margin-bottom: 5px;
    }
    .service-card p {
        font-size: 14px;
    }
    .icon img {
        max-width: 120px;
        max-height: 120px;
    }

    /* about */

    .about__section-slider {
        width: 605px;
    }
    .swiper {
        width: 100%;
        height: 300px;
        border-radius: var(--radius);
        overflow: hidden;
    }
    .about__section-items {
        flex-wrap: wrap;
        row-gap: 10px;
    }
    .about__section-item {
        min-width: 285px;
        width: unset;
    }
    .about__section-article > div > div{
        font-size: 14px;
    }
    .about-item-title {
        font-size: 30px;
    }
    .about-item-img {
        width: 40px;
    }
    .about-item-text {
        font-size: var(--font-text);
    }

    /* news */

    .news__section-item {
        padding: 20px;
        width: 385px;
    }
    .news-item-img {
        width: 358px;
    }
    .news-item-title {
        font-size: 22px;
    }
    .news-item-preview {
        font-size: 15px;
    }

    /* form */

    .form {
        padding: 50px 0;
    }
    .form__container {
        width: var(--container);
        margin: 0 auto;
    }
    .form-title {
        font-size: var(--font-title);
    }
    .form-subtitle {
        font-size: var(--font-subtitle);
    }
    .form-img {
        width: 245px;
    }
    
    /* footer */

    footer {
        padding-bottom: 0;
    }
    .footer-container {
        padding: 25px 0;
    }

}

@media (max-width: 1200px) {

    :root{
        --container: 1000px;

        --font-title-lg: 36px;
        --font-title: 28px;
        --font-subtitle-lg: 20px;
        --font-subtitle: 18px;
    }

    /* hero */

    .main-title {
        font-size: 40px;
        max-width: 660px;
    }
    .new-auto, .used-auto {
        font-size: 16px;
    }

    /* brand */

    .brand > img {
        max-width: 150px;
    }

    /* testdrive */

    .testdrive__slide {
        width: var(--container);
        display: flex;
        justify-content: center;
        align-items: center;
    }
    .testdrive-slide-img {
        width: 340px;
        max-height: 240px;
        position: relative;
        margin-right: -50px;
        margin-top: 100px;
    }
    .testdrive-slide-body {
        width: 350px;
    }
    .specs__item {
        width: 100%;
    }
    .testdrive-name {
        font-size: 20px;
    }
    .testdrive-slide-btn {
        width: 258px;
    }
    
    /* promo */

    .promo-container {
        min-height: 450px;
    }
    .banner-large {
        flex: 2;
    }
    .promo-banner-title {
        font-size: 24px;
    }

    /* services */

    .services-grid-center {
        max-width: 660.58px;
    }
    .services-grid {
        gap: 30px;
    }    
    h3 {
        font-size: 18px;
    }

    /* about */

    .about__section-slider {
        width: 500px;
    }
    .about__section-item {
        min-width: 185px;
        padding: 20px 12px;
        height: unset;
    }
    .about-item-title {
        font-size: 24px;
    }
    .about-item-img {
        width: 35px;
    }

    /* news */

    .news__section-items {
        display: none;
    }
    .newsSwiper {
        height: max-content !important;
        display: block !important;
        margin-top: 40px;
    }
    .newsSwiper > .swiper-wrapper > .swiper-slide > a {
        display: flex;
        justify-content: center;
    }
    .news__btn {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        margin-top: 30px;
        gap: 20px;
        margin-right: 40px;
    }
    .news__nav {
        display: flex;
    }
    .news-nav-btn {
        width: 50px;
        height: 50px;
        border: 1px solid var(--white);
        border-radius: 1000px;
        display: flex;
        justify-content: center;
        align-items: center;
        cursor: pointer;
    }
    .news-btn-prev {
        margin-right: 10px;
    }
    .news-btn-prev img {
        rotate: 180deg;
    }
    .news__section-item {
        width: 420px;
    }
    .news-item-img {
        width: 420px;
        height: 200px;
    }
    .news-item-title {
        font-size: 20px;
    }

    /* career */

    .career-card-header {
        font-size: 18px;
    }

    /* form */

    .form__container {
        padding: 40px 30px;
    }
    .form-input {
        height: 60px;
    }

    /* footer */

    .logo {
        width: 180px;
    }
    iframe {
        width: 545px;
        height: 300px;
        border-radius: var(--radius);
    }

}

@media (max-width: 1000px) {
    
    :root{
        --container: 800px;

        --font-title-lg: 30px;
        --font-title: 24px;
        --font-subtitle-lg: 18px;
        --font-subtitle: 16px;
    }

    /* hero */

    .nav-link {
        margin-right: 30px;
    }
    .logo {
        width: 165px;
    }
    .main-title {
        font-size: 35px;
        max-width: 570px;
    }
    .main-subtitle {
        font-size: 20px;
    }

    /* promo */

    .promo-container {
        gap: 15px;
        min-height: 425px;
    }
    .banner-large {
        flex: 1;
    }
    .promo-banner-btn {
        flex-direction: column;
        row-gap: 10px;
    }

    /* services */

    .services-grid-center {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        max-width: unset;
    }

    /* about */

    .about__section-container {
        flex-direction: column;
        gap: 20px;
    }
    .about__section-slider {
        width: var(--container);
    }
    .swiper {
        height: 320px;
    }
    .about__section-article > p {
        max-width: var(--container);
    }
    .about__section-items {
        row-gap: 15px;
    }
    .about__section-item {
        width: 49%;
    }

    /* news */

    .news__section-item {
        width: 380px;
    }
    .news-item-title {
        font-size: 18px;
    }
    .news-item-preview {
        font-size: 14px;
    }
    .news__btn {
        margin-right: 10px;
    }

    /* career */

    .career-card-header {
        font-size: 16px;
    }
    .career-location {
        font-size: 14px;
    }
    .all-vacancies {
        padding: 12px 0;
    }

    /* form */

    .form-input {
        height: 55px;
    }
    .form-submit {
        height: 42px;
        top: calc(50% - 21px);
    }
    .form-label {
        font-size: 14px;
    }
    .form-data, .accept-text {
        font-size: 12px;
    }

    /* footer */

    .footer-company {
        font-size: 16px;
    }
    .footer-policy {
        font-size: 12px;
    }
    .footer__social-wrapper {
        width: 45px;
        height: 45px;
    }
    .footer-icon {
        width: 20px;
    }
    iframe {
        width: 450px;
        height: 250px;
        border-radius: var(--radius);
    }


}

@media (max-width: 800px) {
    
    :root{
        --container: 600px;

        --font-title-lg: 23px;
        --font-title: 21px;
        --font-subtitle-lg: 18px;
        --font-subtitle: 16px;

        --section-space: 35px;
    }

    .title-line {
        width: 40px;
    }

    /* modal */

    .testdrive__modal {
        max-width: var(--container);
    }
    .modal__left {
        flex: 2;
    }
    .modal-title {
        font-size: 18px;
    }
    .testdrive-submit {
        height: 45px;
    }

    /* header */

     .pc-header {
        display: none;
    }
    .main__header-mobile {
        display: flex;
        justify-content: space-between;
        align-items: center;
        position: relative;
        width: var(--container);
    }
    .logo {
        width: 150px;
    }
    .menu-button {
        width: 1.5rem;
        position: absolute;
        z-index: 999;
        right: 0;
        cursor: pointer;
        height: calc(0.25rem * 5);
    }
    .menu-button span {
        width: 1.5rem;
        height: 0.16rem;
        background-color: var(--white);
        display: block;
        position: absolute;
        transition: all 0.6s ease;
        border-radius: 6px;
    }
    .menu-button span:nth-of-type(2) {
        top: calc(0.25rem * 2);
        width: 1rem;
        right: 0;
    }
    .menu-button span:nth-of-type(3) {
        top: calc(0.25rem * 4);
    }
    .menu-button.active span {
        background-color: var(--accent);
    }
    .menu-button.active span:nth-of-type(1) {
        transform: translateY(0.5rem) rotate(-45deg);
    }
    .menu-button.active span:nth-of-type(2) {
        transform: translateX(1.5rem);
        opacity: 0;
    }
    .menu-button.active span:nth-of-type(3) {
        transform: translateY(-0.5rem) rotate(45deg);
    }
    .menu-overlay {
        width: 100vw;
        height: 100%;
        position: fixed;
        z-index: 998;
        top: 0;
        left: 0;
        background-color: var(--bg);
        display: flex;
        flex-direction: column;
        row-gap: 50px;
        color: var(--white-clr);
        transform: translateX(100%);
        transition: all 0.6s ease-in-out;
    }
    .menu-overlay.open {
        transform: translateX(0);
    }
    .menu-overlay.open .menu-overlay__image img {
        animation: fadeIn 0.8s ease-in-out 0.6s forwards;
    }
    .menu-overlay.open .nav {
        animation: fadeIn 0.8s ease-in-out 0.2s forwards;
    }
    @keyframes fadeIn {
        0% {
            opacity: 0;
       }
        100% {
            opacity: 1;
       }
    }
    .header-wrapper {
        width: 100vw;
        margin: 0 auto;
        display: flex;
        flex-direction: column;
    }
    .burger-logo {
        width: 200px;
    }
    .mobile__nav {
        width: var(--container);
        padding-top: 50px;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        row-gap: 30px;
    }
    .mobile-nav-link {
        color: var(--white);
        font-size: 18px;
        font-weight: 600;
    }
    .menu-callback {
        padding: 12px 40px;
        
        display: block;
        color: var(--accent);
    }

    /* hero */

    /* brands */

    .brands__btn {
        padding: 11px 40px;
        font-size: 15px;
    }
    .brand img {
        max-width: 85%;
    }

    /* testdrive */

    .testdrive__ctgs {
        gap: 10px;
    }
    .testdrive-slide-img {
        width: 280px;
    }
    .tab {
        padding: 8px 10px;
    }
    .testdrive-name {
        font-size: 18px;
        font-weight: 600;
    }
    .testdrive-nav-btn {
        width: 40px;
        height: 40px;
    }

    /* promo */

    .banner {
        padding: 15px;
    }
    .promo-container {
        min-height: 530px;
    }
    .promo-banner-title {
        font-size: 21px;
    }

    .promo-banner-btn {
        flex-direction: row;
        margin-top: 15px;
    }
    .promo-testdrive, .promo-callback {
        padding: 10px 20px;
        font-size: 14px;
    }

    /* servecis */

    .service-card {
        padding: 20px;
    }
    .icon img {
        max-width: 100px;
    }

    h3 {
        font-size: 16px;
    }
    .service-card p {
        font-size: 13px;
    }

    /* news */

    .news__section-item {
        width: 285px;
        padding: 15px;
    }
    .news-item-title {
        font-size: 16px;
    }
    .news-item-preview {
        font-size: 13px;
    }
    .news-btn {
        padding: 12px 30px;
    }
    .news-nav-btn {
        width: 40px;
        height: 40px;
    }

    /* career */

    .career__grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .career__card {
        padding: 15px;
    }
    .career-location-icon {
        width: 18px;
    }

    /* form */

    .form__container {
        padding: 35px 20px;
        position: relative;
    }
    .form-label {
        left: 10px;
    }
    .form__input, .form-input {
        width: 310px;
    }
    .form-input {
        height: 50px;
        font-size: 15px;
    }
    .form-submit {
        padding: 0 20px;
        height: 38px;
        top: calc(50% - 19px);
        right: 8px;
    }
    .form-img {
        position: absolute;
        right: 20px;
        top: 20px;
        width: 150px;
    }
    .form__accept.error .form-checkbox-error {
        bottom: -1px;
    }

    /* footer */

    .footer-container {
        flex-direction: column;
        row-gap: 30px;
        align-items: flex-start;
    }

}

@media (max-width: 600px) {
    
    body {
        overflow-x: hidden;
    }

    .fill-btn, .transparent-btn {
        font-size: 14px !important; 
    }
    .title-line {
        width: 60px;
    }

    :root{
        --container: 360px;

        --font-title-lg: 22px;
        --font-title: 20px;
        --font-subtitle-lg: 18px;
        --font-subtitle: 16px;
        --font-body: 15px;

        --radius-xs: 10px;
        --radius: 20px;
        --radius-lg: 30px;

        --section-space: 30px;
    }
    
    /* modal */

    .testdrive__modal {
        flex-direction: column;
    }
    .testdrive-modal-vid {
        border-radius: var(--radius) var(--radius) 0 0;
    }
    .modal__right {
        border-radius: 0 0 var(--radius) var(--radius);
    }
    .testdrive__form {
        row-gap: 20px;
    }
    .modal-title {
        font-size: 16px;
    }
    .testdrive-input {
        font-size: 14px;
    }
    .testdrive-input::placeholder {
        font-size: 14px;
    }
    .testdrive-submit {
        height: 45px;
    }
    .modal__close {
        z-index: 2;
    }

    /* hero */

    .hero {
        height: unset;
    }
    .main__section-body {
        height: unset;
        padding: 200px 0;
    }
    .main-title {
        font-size: 30px;
    }
    .main-subtitle {
        font-size: 20px;
    }
    .new-auto {
        padding: 12px 30px;
    }
    .used-auto {
        padding: 12px 30px;
    }
    .new-auto, .used-auto {
        font-size: 14px;
    }

    /* brands */

    .logos-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
        max-height: calc(2 * (80px + 20px));
        overflow: hidden;
        transition: max-height 0.5s ease;
        margin-top: 50px;
    }
    .logo-item img {
        max-height: 80px;
    }
    .show-all-btn {
        padding: 12px 35px;
    }

    /* testdrive */

    .testdrive__ctgs {
        flex-wrap: wrap;
        padding: unset;
        justify-content: center;
        gap: 10px;
    }
    .tab {
        font-size: 14px;
        font-weight: 400;
        padding: 5px 20px;
        border-radius: 5px;
        border: 1px solid var(--accent);
        text-decoration: none;

    }
    .tab.active {
        border-radius: 5px;
    }
    .tab:hover {
        transform: translateY(0);
        transition: all 0.3s ease;
    }
    .testdriveSwiper {
        height: 630px !important;
    }
    .testdrive__slide {
        width: calc(var(--container) - 20px);
        height: unset;
        margin: 0 auto;
        display: flex;
        flex-direction: column;
        row-gap: 10px;
        border: 1px solid var(--white);
        border-radius: var(--radius);
    }
    .testdrive-slide-body {
        width: 100%;
        border: none;
        padding-top: 20px;
    }
    .testdrive-name {
        font-size: 18px;
    }
    .testdrive__specs {
        margin-left: 0;
        margin-top: 15px;
    }
    .specs__item {
        width: 100%;
    }
    .testdrive-slide-img {
        width: 100%;
        position: unset;
        margin: 0;
    }
    .testdrive__slide-btn {
        position: unset;
        margin-top: 20px;
        text-align: center;
    }
    .testdrive-slide-btn {
        width: unset;
        padding: 15px 100px;
        text-align: center;
        display: block;
    }
    .testdrive-slide-btn img {
        display: none;
    }
    .testdriveslider__nav {
        bottom: 0px;
        right: 10px;
    }
    .testdrive-nav-btn {
        width: 40px;
        height: 40px;
    }

    /* promo */

    .banner {
        padding: 10px;
    }
    .promo-banner-btn {
        margin-top: 10px;
        gap: 10px;
    }
    .promo-testdrive, .promo-callback {
        padding: 7px 10px;
        font-size: 13px;
    }
    .promo-banner-title {
        font-size: 18px;
    }

    /* services */

    .services-grid {
        justify-items: center;
    }
    .services-grid-center {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr))
    }
    .service-card {
        max-width: 280px;
        max-height: max-content;
        min-height: unset;
        padding: 15px;
    }
    .icon img {
        max-width: 120px;
    }
    h3 {
        margin-bottom: 10px;
    }

    /* about */

    .about__section-container {
        flex-direction: column;
        row-gap: 20px;
    }
    .aboutSwiper {
        height: 280px;
    }
    .about__section-slider {
        width: var(--container);
    }
    .about-slide img {
        height: 100%;
        object-fit: cover;
    }
    .about__section-items {
        flex-wrap: wrap;
        row-gap: 10px;
    }
    .about__section-item {
        width: var(--container);
        height: unset;
    }
    .about-item-title {
        font-size: 25px;
    }
    .about-item-img {
        width: 30px;
    }

    /* news */

    .news__section-items {
        display: none;
    }
    .newsSwiper {
        height: unset !important;
        display: block !important;
    }
    .news__section-item {
        width: var(--container);
        padding: 20px;
    }
    .news-item-cat {
        font-size: 13px;
    }
    .news-item-title {
        font-size: 18px;
    }
    .news__btn {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-top: 30px;
        margin-right: 0;
    }
    .news__nav {
        display: flex;
    }
    .news-nav-btn {
        border: 1px solid var(--white);
        border-radius: 1000px;
        display: flex;
        justify-content: center;
        align-items: center;
        cursor: pointer;
    }
    .news-btn-prev {
        margin-right: 10px;
    }
    .news-btn-prev img {
        rotate: 180deg;
    }

    /* career */

    .career__title-wrapper {
        flex-direction: column;
        row-gap: 10px;
    }
    .career__grid {
        display: flex;
        flex-direction: column;
    }
    .career-card-header {
        font-size: 16px;
    }

    /* form */

    .form {
        padding: 25px 0;
    }
    .form__container {
        border-radius: var(--radius);
        width: var(--container);
        margin: 0 auto;
        padding: 30px 20px;
        flex-direction: column;
    }
    .form-title {
        font-size: 18px;
        font-weight: 800;
    }
    .form-subtitle {
        font-size: 14px;
    }
    .form__input {
        width: 290px;
    }
    .form-input {
        width: 290px;
        height: 45px;
        padding: 0 50px 0 15px;
        font-size: 14px;
    }
    .form-input::placeholder {
        font-size: 2px !important;
    }
    .form-label {
        font-size: 14px;
        left: 10px;
    }
    .form-submit {
        right: 5px;
        top: calc(50% - 18.5px);
        height: 37px;
        padding: 0 20px;
        font-size: 14px;
    }
    .form__data {
        margin-top: 30px;
    }
    .form-data {
        font-size: 10px;
    }
    .accept-text {
        font-size: 10px;
    }
    .form__right {
        display: none;
    }
    .form-img {
        width: 200px;
    }
    .form-error {
        font-size: 10px;
    }
    .form__accept.error .form-checkbox-error {
        font-size: 10px;
        left: 25px;
        bottom: -2px;
    }
    .form__accept input[type="checkbox"] {
        width: 15px;
        height: 15px;
        min-width: 15px;
    }
    .form__accept input[type="checkbox"]:checked::after {
        left: 4px;
        top: 2px;
        height: 8px;
    }

    /* footer */

    .footer-container {
        flex-direction: column;
        align-items: flex-start;
        padding: 25px 0;
    }
    .footer-company {
        font-size: 16px;
    }
    .footer__contacts {
        font-size: 14px;
    }
    .footer__social-wrapper {
        width: 45px;
        height: 45px;
    }
    iframe {
        width: var(--container);
        height: 200px;
    }
    .footer-rights {
        font-size: 12px;
    }

}