@import url('https://fonts.googleapis.com/css2?family=Afacad+Flux:wght@100..1000&family=Bebas+Neue&display=swap');

body {
    background-color: black;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    animation: fadeInBody 0.4s ease-out forwards;
    will-change: opacity;
}

@keyframes fadeInBody {
    from { opacity: 0; }
    to { opacity: 1; }
}

.container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    /*max-width: 1600px;*/
    width: 100%;
    margin: 0 auto;
    padding: 20px 4%;
    box-sizing: border-box;
}

.nav__menu,
.logo,
.empty {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Выравниваем меню слева */
.nav__menu {
    justify-content: flex-start;
}

/* Центрируем логотип */
.logo {
    justify-content: center;
}

/* Пустой блок справа */
.empty {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    width: 50px;
    position: relative;
}

/* Стили для логотипа */
.logo img {
    max-height: 250px; /* Вернул нормальный размер */
    max-width: 100%;
    animation: fadeIn 1s ease-out forwards;
}

/* Стили для навигации */
ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    text-align: center;
    gap: 30px;
}

.nav__item {
    display: flex;
    gap: 30px;
}

.nav__link {
    color: rgba(255, 255, 255);
    font-family: "Bebas Neue", sans-serif;
    font-weight: 800;
    font-style: normal;
    font-size: 20px;
    letter-spacing: 4px;
    /*transition: color 0.5s;*/
}

.nav__link:hover {
    color: grey;
}

h1,h2,h3,h4,h5 {
    color: white;
    font-family: "Bebas Neue", sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 34px;
}

p {
    font-family: "Bebas Neue", sans-serif;
    text-decoration: none;
}

a {
    font-family: "Bebas Neue", sans-serif;
    text-decoration: none;
}

.header {
    position: relative;
    background-color: black; /* Убедитесь, что фон header не прозрачен */
}

footer {
    position: relative;
    background-color: black; /* Убедитесь, что фон header не прозрачен */
}
.welcome__content {
    text-align: center;
}

footer h1 {
    margin: 0 auto;
}

.burger-menu {
    display: none;
    position: absolute;
    /*top: 50%;*/
    width: 30px;
    height: 30px;
    /*right: 60px; !* сдвиг от правого края *!*/
    background: url('img/menuIcon.png') center/cover no-repeat;
    border: none;
    cursor: pointer;
    transform: translateY(-50%);
    animation: fadeIn 1s ease-out forwards;
}

/* Полноэкранное меню */
.fullscreen-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh; /* Полная высота экрана */
    background-color: rgba(0, 0, 0, 0.95);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

.fullscreen-menu.open {
    opacity: 1;
    visibility: visible;
}

.fullscreen-menu a {
    color: white;
    font-size: 24px;
    text-decoration: none;
    transition: color 0.3s;
}

.fullscreen-menu a:hover {
    color: rgba(255, 255, 255, 0.7);
}

.close-menu {
    position: absolute;
    top: 50px;
    right: 50px;
    background: none;
    border: none;
    /*!*font-size: 60px;*! NEWNEW*/
    color: white;
    cursor: pointer;
}

.close-menu img {
    /*!*width: 100%;*! NEWNEW*/
    height: 30px;
}

/* Отключение скролла при открытом меню */
body.no-scroll {
    overflow: hidden;
}

/* Анимация появления */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}


/* Медиа-запрос для адаптива */
/*@media (max-width: 932px) {*/
/*    .nav__menu {*/
/*        display: none;*/
/*    }*/

/*    .burger-menu {*/
/*        display: block;*/
/*    }*/
/*}*/
@media (max-width: 932px) {
    .nav__item {
        display: none;
    }

    .burger-menu {
        display: block;
    }
}

.main__content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    /*max-width: 1200px;*/
    width: 100%;
    padding: 10px 0;
    margin: 0 auto;
}

.Preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: filter 0.3s ease-in-out;
}

.Preview:hover img {
    filter: brightness(30%);
    cursor: pointer;
}

.Preview {
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #222;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.Preview.show {
    opacity: 1;
    transform: translateY(0);
}

.Preview .Preview__text {
    position: absolute;
    width: 200px;
    text-align: center;
    color: white;
    font-size: 24px;
    font-family: "Bebas Neue", sans-serif;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.Preview:hover .Preview__text {
    opacity: 1;
    cursor: pointer;
}

@media (max-width: 932px) {
    .grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 932px) {
    .main__content {
        grid-template-columns: 1fr;
    }
}

/* СТИЛИ ДЛЯ СТРАНИЦЫ CONTACT */
/* Основные стили формы */
.form-container {
    margin-top: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.email__container {
    width: 100%;
    max-width: 600px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 10px;
}

.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

label {
    margin-bottom: 5px;
    text-transform: uppercase;
    color: white;
    font-family: "Bebas Neue", sans-serif;
    font-size: 18px;
    letter-spacing: 1px;
}

input, textarea {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 5px;
    background: #333;
    color: #fff;
    font-family: "Bebas Neue", sans-serif;
    font-size: 16px;
    letter-spacing: 2px;
    outline: none;
}

textarea {
    resize: none;
    height: 150px;
}

input::placeholder,
textarea::placeholder {
    letter-spacing: 5px;
    font-size: 14px;
}

.submit-btn {
    padding: 12px 24px;
    border: 2px solid black;
    border-radius: 6px;
    background: white;
    color: black;
    font-size: 18px;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    font-weight: 500;
    text-transform: uppercase;
    /*width: 100%;*/
}

.submit-btn:hover {
    background: black;
    color: white;
}

.submit-btn:active {
    transform: scale(0.96);
}

/* Адаптивные стили */
@media (max-width: 768px) {
    .email__container {
        width: 90%;
        padding: 15px;
    }

    label {
        font-size: 16px;
    }

    input, textarea {
        font-size: 14px;
        letter-spacing: 1px;
    }

    input::placeholder, textarea::placeholder {
        letter-spacing: 3px;
    }
}

@media (max-width: 480px) {
    .form-container {
        margin-top: 30px;
        padding: 10px;
    }

    .email__container {
        width: 95%;
        padding: 10px;
    }

    label {
        font-size: 14px;
    }

    input, textarea {
        font-size: 12px;
        padding: 10px;
    }

    .submit-btn {
        font-size: 16px;
        padding: 10px;
    }
}




/* СТИЛИ VIDEO */

.video-js {
    width: 100%;
    max-width: 1600px;
    height: auto;
}
.video-js .vjs-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/*TODO ВИДЕО С ПОРШЕМ!!!! */
.container-story {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 600px;
    width: 100%;
    margin: 0 auto;
    padding: 20px 4%;
    box-sizing: border-box;
}

/* ФОТО СЕКЦИЯ МАШИН!*/
/* Основные стили галереи */
.photo__section {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
}

.gallery-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 1200px;
    padding: 20px 4%;
    box-sizing: border-box;
    position: relative;
}

.main-image {
    width: 100%;
    max-width: 1600px;
    height: 700px;
    object-fit: contain; /* Убедимся, что вся картинка видна */
    object-position: center; /* Центрируем картинку */
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    cursor: pointer;
}

.arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 30px;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 50%;
    user-select: none;
}

.arrow:hover {
    background: rgba(0, 0, 0, 0.8);
}

.prev { left: 10px; }
.next { right: 10px; }

/* Миниатюры */
.thumbnails {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.thumbnail {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 5px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s, transform 0.2s;
}

.thumbnail:hover {
    opacity: 1;
    transform: scale(1.1);
}

.thumbnail.active {
    border: 3px solid #007bff;
    opacity: 1;
}

/* Lightbox (увеличенное фото) */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
}

/* Адаптивность */
@media (max-width: 768px) {
    .gallery-container {
        flex-direction: column;
        align-items: center;
    }

    .main-image {
        width: 100%;
        max-width: 600px;
    }

    .arrow {
        font-size: 24px;
        padding: 8px 12px;
    }

    .thumbnail {
        width: 60px;
        height: 45px;
    }
}

@media (max-width: 480px) {
    .gallery-container {
        padding: 10px;
    }

    .main-image {
        width: 100%;
        max-width: 400px;
    }

    .arrow {
        font-size: 20px;
        padding: 6px 10px;
    }

    .thumbnails {
        gap: 5px;
    }

    .thumbnail {
        width: 50px;
        height: 38px;
    }
}

/* ABOUT US  */

/* Стили для секции ABOUT US */

.welcome__content-aboutus {
    background: linear-gradient(180deg, rgba(0, 0, 0, 1) 20%, rgba(25, 25, 25, 1) 80%);
    padding: 80px 10%;
    text-align: center;
    border-radius: 10px;
    box-shadow: 0px 0px 20px rgba(255, 255, 255, 0.1);
    animation: fadeIn 1.2s ease-in-out;
}
.welcome__text-header {
    margin-bottom: 20px;
    margin-top: 0;
}
.welcome__text {
    margin: 0 auto;
}

/* Анимация появления */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Заголовок "ABOUT US" */
.about__text-header {
    font-size: 48px;
    color: white;
    letter-spacing: 6px;
    text-transform: uppercase;
    text-shadow: 0px 0px 10px rgba(255, 255, 255, 0.2);
    margin-bottom: 40px;
}

/* Основной текст */
.about__text {
    font-size: 22px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    max-width: 900px;
    margin: 0 auto;
    text-align: left;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    box-shadow: 0px 0px 15px rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(3px);
}

/* Разделение пунктов */
.about__text span {
    display: block;
    font-weight: bold;
    font-size: 24px;
    color: white;
    margin-top: 20px;
    letter-spacing: 2px;
    text-shadow: 0px 0px 2px rgba(255, 255, 255, 0.1);
    transition: color 0.3s ease-in-out, text-shadow 0.3s ease-in-out;
}

/* Подсветка при наведении */
.about__text span:hover {
    color: #f39c12;
    text-shadow: 0px 0px 15px rgba(255, 165, 0, 0.8);
    cursor: default;
}

/* Адаптивность */
@media (max-width: 768px) {
    .about__text-header {
        font-size: 36px;
    }

    .about__text {
        font-size: 18px;
    }

    .about__text span {
        font-size: 20px;
    }
}

/*Вилео YOUTUBE*/

.video-section {
    display: flex;
    justify-content: center;
    align-items: center;
}

#player-container {
    width: 600px;
    height: 315px;
    margin-bottom: 100px;
}

/*ALSO LIKE*/
.content-alsolike {
    display: flex;
    gap: 20px;
    margin: auto;
}
.alsolike-container {
    display: flex;
    justify-content: center;
    /*gap: 40px; !* Расстояние между картинками *!*/
    flex-wrap: wrap; /* чтобы при маленьком экране переносились */
    margin: auto;
}

.Preview-alsolike {
    width: 700px;
    height: 400px;
    margin: auto;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s;
}

.Preview-alsolike img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.Preview-alsolike:hover {
    transform: scale(1.02);
}

.Preview__text-alsolike {
    position: absolute;
    bottom: 20px;
    left: 0;
    width: 100%;
    text-align: center;
    color: white;
    font-size: 28px;
    font-family: "Bebas Neue", sans-serif;
    background: rgba(0, 0, 0, 0.5);
    /*padding: 10px 0;*/
}

@media (max-width: 1450px) {
    .Preview-alsolike {
        width: 90%;
        height: auto;
        aspect-ratio: 16 / 9;
    }
}
@media (max-width: 932px) {
    .content-alsolike {
        flex-direction: column;
        align-items: center;
    }

    .Preview-alsolike {
        width: 100%;
        max-width: 600px;
    }
}
