/* general */

* {
    margin: 0;
    padding: 0;
}

body {
    background-color: #121212;
    font-family: "Montserrat", sans-serif;
    color: #fff;
}

ul,
li {
    list-style: none;
}

img {
    width: 100%;
}

h2 {
    font-size: 45px;
    margin-bottom: 20px;
}

a {
    text-decoration: none;
}

.row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* header */

header {
    padding: 10px 50px;
    margin: 50px;
    position: relative;
    background: #010101;
    border-radius: 25px;
}

header .lang-switch {
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    cursor: pointer;
    position: absolute;
    right: 50px;
    top: 10%;
}

header .lang-switch option {
    background: #121212;
}

header a {
    color: #fff;
    font-size: 22px;
    position: relative;
}

header a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 2px;
    background-color: #CE994A;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

header a:hover::after {
    transform: scaleX(1);
}

header .title {
    margin: 100px 0;
    width: 75%;
}

header .title h1 {
    font-size: 45px;
}

header .title p {
    font-size: 30px;
    color: #9D9D9D;
}

.mobile {
    display: none;
    position: relative;
    z-index: 1000;
}

.mobile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1001;
}

.burger {
    width: 30px;
    height: 22px;
    position: relative;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1002;
}

.burger span {
    position: absolute;
    left: 0;
    width: 100%;
    height: 3px;
    background: #fff;
    transition: 0.3s;
}

.burger span:nth-child(1) {
    top: 0;
}

.burger span:nth-child(2) {
    top: 9px;
}

.burger span:nth-child(3) {
    bottom: 0;
}

.burger.active span:nth-child(1) {
    transform: rotate(45deg);
    top: 9px;
}

.burger.active span:nth-child(2) {
    opacity: 0;
}

.burger.active span:nth-child(3) {
    transform: rotate(-45deg);
    bottom: 9px;
}

.mobile-menu {
    position: fixed;
    inset: 0;
    background: #010101;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.mobile-menu.open {
    transform: translateX(0);
}

.mobile-menu ul {
    list-style: none;
    padding: 0;
    text-align: center;
    line-height: 2.5;
}

.mobile-menu li {
    margin: 16px 0;
}

.mobile-menu a {
    color: #fff;
    font-size: 24px;
    text-decoration: none;
}

.mobile-menu .lang-switch {
    position: static;
    font-size: 20px;
}

/* sections */

section {
    margin: 50px;
}

/* services */

.services-list {
    border-radius: 25px;
    font-weight: 600;
    padding: 100px 50px;
    display: flex;
    justify-content: space-between;
    align-items: start;
    font-size: 40px;
    text-align: center;
    flex-wrap: wrap;
}

.services-list div {
    width: 25%;
    padding: 50px;
    background-color: rgba(206, 153, 74, 40%);
    height: 250px;
    border-radius: 25px;
}

.services-desc {
    font-size: 20px;
    font-weight: 300;
    color: #d5d5d5;
}

/* catalog */

.cars-list {
    flex-wrap: wrap;
    gap: 20px;
}

.cars-list .car-card {
    font-size: 25px;
    text-align: center;
    cursor: pointer;
    width: 480px;
    height: 420px;
}

.cars-list .car-card a {
    color: #CE994A;
}

.cars-list .car-card:hover {
    border-radius: 10px;
    background: #060606;
}

#catalog .btn {
    display: flex;
    justify-content: flex-end;
}

#catalog .btn a {
    color: #fff;
    background-color: rgba(206, 153, 74, 40%);
    border: none;
    padding: 10px 15px;
    margin: 50px 0 0 0;
    border-radius: 10px;
    cursor: pointer;
}

/* faq */

#faq {
    border-radius: 25px;
    background: #010101;
    padding: 20px 50px;
}

.faq-item {
    border-bottom: 1px solid #333;
}

.faq-question {
    font-family: "Montserrat", sans-serif;
    font-weight: 500;
    width: 100%;
    background: transparent;
    border: none;
    color: #fff;
    padding: 20px 0;
    font-size: 30px;
    cursor: pointer;
    text-align: start;
}

.faq-icon {
    color: #CE994A;
    font-size: 45px;
    transition: transform 0.3s ease;
}

.faq-item.open .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.open .faq-answer {
    max-height: 300px;
}

.faq-answer p {
    margin: 0 0 16px;
    color: #ccc;
}

/* footer */

footer {
    margin: 0 50px;
    padding: 20px 0;
    border-top: 1px solid #333;
}

footer .contacts {
    display: flex;
}

footer a {
    width: 3%;
    margin-right: 30px;
}

/* catalog html */

.cars-catalog {
    padding: 50px;
    border-radius: 25px;
}

/* car html */

.carousel {
    position: relative;
    max-width: 580px;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    border: none;
    font-size: 28px;
    cursor: pointer;
    padding: 5px 12px;
    font-weight: 600;
}

.carousel-btn.prev {
    left: 10px;
}

.carousel-btn.next {
    right: 10px;
}

.car-details {
    background-color: #010101;
    padding: 50px;
    border-radius: 25px;
}

.car-detail-info {
    width: 50%;
    font-size: 25px;
    line-height: 1.5;
}

#car-detail .row {
    flex-wrap: wrap;
}

/* chat */

.chat {
    position: fixed;
    width: 5%;
    right: 50px;
    bottom: 50px;
}

@media (max-width: 1580px) {
    .cars-list .car-card {
        width: 420px;
    }
}

@media (max-width: 1440px) {
    h2 {
        font-size: 40px;
    }

    .services-list {
        font-size: 30px;
    }

    .services-list div {
        padding: 20px;
        width: 28%;
    }
}

@media (max-width: 1410px) {
    .cars-list .car-card {
        width: 360px;
    }

    .car-detail-info {
        font-size: 20px;
    }

    .carousel {
        max-width: 450px;
    }
}

@media (max-width: 1220px) {
    h2 {
        font-size: 35px;
    }

    .cars-list .car-card {
        font-size: 20px;
    }

    .faq-question {
        font-size: 25px;
    }

    .cars-list .car-card {
        width: 300px;
        height: 300px;
    }

    .carousel {
        max-width: 100%;
    }

    .car-detail-info {
        width: 100%;
        font-size: 25px;
    }

    .services-list {
        padding: 50px;
    }

    .services-desc {
        font-size: 18px;
    }
}

@media (max-width: 1040px) {
    .cars-list .car-card {
        width: 250px;
        height: 250px;
    }
}

@media (max-width: 1010px) {
    h2 {
        font-size: 30px;
    }

    header a {
        font-size: 20px;
    }

    .logo {
        width: 25%;
    }

    header .title {
        width: 75%;
    }

    header .title h1 {
        font-size: 35px;
    }

    header .title p {
        font-size: 20px;
    }

    .cars-list .car-card {
        font-size: 15px;
    }

    .faq-question {
        font-size: 20px;
    }

    .chat {
        width: 7%;
    }

    footer a {
        width: 4%;
    }

    .services-list {
        display: block;
        padding: 0 50px;
    }

    .services-list div {
        width: 100%;
        height: 100px;
        margin-top: 50px;
        padding: 20px 0;
    }
}

@media (max-width: 810px) {
    h2 {
        font-size: 25px;
    }

    header .title {
        width: 90%;
    }

    header .title h1 {
        font-size: 30px;
    }

    header .title p {
        font-size: 15px;
    }

    .services-list {
        font-size: 20px;
        padding: 70px 50px;
    }

    .car-detail-info {
        font-size: 18px;
    }

}

@media (max-width: 710px) {
    .cars-list {
        justify-content: center;
    }
}

@media (max-width: 680px) {
    .logo {
        width: 50%;
    }

    header a {
        font-size: 15px;
    }

    header .title p {
        font-size: 15px;
    }

    header .title h1 {
        font-size: 30px;
    }

    .chat {
        width: 9%;
    }

    footer a {
        width: 6%;
    }

    .services-list {
        padding: 0 50px;
    }

    .services-list div {
        height: 150px;
    }

    nav {
        display: none;
    }

    .mobile {
        display: block;
    }

}

@media (max-width: 590px) {

    header,
    section {
        margin: 30px;
    }

    .cars-list {
        justify-content: center;
    }
}

@media (max-width: 500px) {
    footer a {
        width: 9%;
    }

    .chat {
        width: 12%;
    }
}

@media (max-width: 450px) {
    header {
        padding: 10px 20px;
    }

    header,
    section {
        margin: 20px;
    }

    .services-list {
        padding: 0;
    }

    .chat {
        width: 17%;
    }

    .faq-question {
        font-size: 18px;
    }

    footer a {
        width: 15%;
    }

    .car-details {
        padding: 20px;
    }

    .car-detail-info {
        font-size: 14px;
        margin-top: 20px;
    }
}

/* animation */

.fade-in {
    transform: translateY(-150px);
    transition: transform 1.5s ease;
}

.fade-in.is-visible {
    transform: none;
}