/* general */

* {
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

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

ul,
li {
    list-style: none;
}

img {
    width: 100%;
}

h2 {
    font-size: 45px;
    margin-bottom: 20px;
    color: #E47D16;
    text-align: center;
}

a {
    text-decoration: none;
}

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

section {
    margin: 100px 60px 0;
}

.section{
    margin-top: 0;
    padding-top: 200px;
}

/* header */

header {
    background-color: rgba(228, 125, 22, 68%);
    position: absolute;
    width: 100%;
}

header .logo {
    width: 7%;
}

header .lang-switch {
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    cursor: pointer;
    margin-right: 40px;
    font-weight: 600;
    font-size: 22px;
}

header .lang-switch option {
    background: #fff;
    color: #E47D16;
}

header li {
    margin-right: 20px;
}

header a {
    color: #fff;
    font-size: 22px;
    font-weight: 600;
}

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;
    margin-right: 60px;
}

.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 {
    background: #E47D16;
}

.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: #fff;
    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: #E47D16;
    font-size: 24px;
    text-decoration: none;
}

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

/* main */

main {
    background-image: url('./images/bg(1).jpg');
    background-size: cover;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

main .title {
    width: 65%;
    margin-left: 30px;
    color: #fff;
}

h1 {
    font-size: 75px;
}

main .title p {
    font-size: 25px;
    color: #DFDFDF;
}

/* chat */

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

/* us */

#us .row {
    margin: 0 200px;
}

#us .row p {
    font-size: 25px;
    font-weight: 600;
    width: 60%;
    text-align: center;
}

.whyus {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* car */

.car-card {
    border-radius: 25px;
    background: #E47D16;
    width: 30%;
}

.car-card img {
    height: 300px;
    border-radius: 25px;
}

.car-card .car-desc,
.tour-card .tour-desc {
    color: #fff;
    font-size: 20px;
    margin: 20px;
}

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

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #E47D16;
    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: #E47D16;
    padding: 50px;
    border-radius: 25px;
    color: #fff;
}

.car-details h2 {
    color: #fff;
}

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

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

/* tours */

.tours-list {
    flex-wrap: wrap;
    gap: 5px;
}

.tour-card {
    width: 17%;
}

.tour-card img {
    height: 200px;
}

.image-preview-overlay {
    position: fixed;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.85);
    z-index: 9999;
}

.image-preview {
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-preview img,
.image-preview video {
    max-width: 90vw;
    max-height: 90vh;
    border-radius: 10px;
}

.video-preview {
    position: relative;
}

.video-preview::after {
    content: '▶';
    position: absolute;
    color: white;
    font-size: 48px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.video-thumb {
    position: relative;
    cursor: pointer;
}

.video-thumb-video {
    width: 100%;
    height: 200px;
    display: block;
    border-radius: 8px;
}

.video-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    font-size: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

/* catalog */

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

.btn a {
    color: #fff;
    background-color: #E47D16;
    border: none;
    padding: 10px 15px;
    margin: 50px 0 0 0;
    border-radius: 10px;
    cursor: pointer;
}

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

/* faq */

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

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

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

.faq-icon {
    color: #fff;
    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: #fff;
    font-size: 18px;
}

/* footer */

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

footer .contacts {
    display: flex;
}

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

@media (max-width: 1580px) {
    .car-card img {
        height: 250px;
    }
}

@media (max-width: 1380px) {
    #us .row {
        margin: 0 100px;
    }

    .carousel {
        max-width: 470px;
    }

    .tour-card {
        width: 23%;
    }
}

@media (max-width: 1280px) {
    header .logo {
        width: 10%;
    }

    h1 {
        font-size: 70px;
    }

    .car-card img {
        height: 200px;
    }

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

@media (max-width: 1080px) {
    main .title {
        width: 80%;
    }

    #us .row {
        margin: 0;
    }

    .whyus svg {
        width: 150px;
    }

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

    .car-card img {
        height: 250px;
    }

    .car-card {
        width: 45%;
    }

    .carousel {
        max-width: 100%;
    }

    .car-detail-info {
        width: 100%;
        margin-top: 20px;
    }
}

@media (max-width: 980px) {
    header .logo {
        width: 15%;
    }

    main {
        height: 70vh;
    }

    main .title {
        width: 90%;
    }

    h1 {
        font-size: 60px;
    }

    h2 {
        font-size: 35px;
    }

    .car-card img {
        height: 200px;
    }

    #us .row p {
        font-size: 20px;
    }

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

    footer a {
        width: 7%;
    }

    .chat {
        width: 8%;
    }

    .tour-card {
        width: 32%;
    }
}

@media (max-width: 780px) {
    h1 {
        font-size: 55px;
    }

    .whyus svg {
        width: 140px;
    }

    .car-card img {
        height: 180px;
    }

    .car-card .car-desc {
        font-size: 18px;
    }

    #us .row p {
        font-size: 18px;
    }
}

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

    h1 {
        font-size: 50px;
    }

    h2 {
        font-size: 30px;
    }

    nav {
        display: none;
    }

    .mobile {
        display: block;
    }

    .whyus svg {
        width: 100px;
    }

    #us .row p {
        font-size: 14px;
    }

    section {
        margin: 50px 30px 0;
    }

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

    footer a,
    .chat {
        width: 10%;
    }

    .tour-card {
        width: 49%;
    }
}

@media (max-width: 580px) {
    .car-card {
        width: 80%;
    }

    .car-card img {
        height: 255px;
    }

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

@media (max-width: 520px) {
    #us .row {
        flex-direction: column;
    }

    .whyus svg {
        height: 120px;
    }

    #us .row p {
        font-size: 18px;
        width: 100%;
    }

    .tour-card img {
        height: 150px;
    }
}

@media (max-width: 440px) {
    h1 {
        font-size: 40px;
    }

    .car-card {
        width: 100%;
    }

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

    footer a,
    .chat {
        width: 15%;
    }
        .tour-card img {
        height: 120px;
    }
}