/* Сброс и базовые стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

.section__title {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 50px;
    color: #1a1a1a;
}

.btn {
    display: inline-block;
    padding: 15px 30px;
    background-color: #0d1b2a;
    color: white;
    border: none;
    border-radius: 5px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn:hover {
    background-color: #1b3a4b;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.btn-primary {
    background-color: #e63946;
}

.btn-primary:hover {
    background-color: #d62828;
}

.btn-large {
    padding: 18px 40px;
    font-size: 1.1rem;
}

.btn-block {
    width: 100%;
}

/* Шапка */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 15px 0;
}

.header__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    flex-direction: column;
}

.logo__text {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: #0d1b2a;
    margin: 0;
}

.logo__accent {
    color: #e63946;
}

.logo__subtitle {
    font-size: 0.8rem;
    color: #666;
    margin-top: -5px;
}

.nav__list {
    display: flex;
    list-style: none;
}

.nav__item {
    margin-left: 30px;
}

.nav__link {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
    position: relative;
}

.nav__link:hover {
    color: #e63946;
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #e63946;
    transition: width 0.3s ease;
}

.nav__link:hover::after {
    width: 100%;
}

.header__contacts {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
}

.phone-link {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    color: #0d1b2a;
    text-decoration: none;
    transition: color 0.3s ease;
    white-space: nowrap;
    font-size: 0.95rem;
}

.phone-link:hover {
    color: #e63946;
}

.phone-divider {
    display: none;
}

.burger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}

.burger span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: #0d1b2a;
    transition: all 0.3s ease;
}

/* ГЛАВНЫЙ ЭКРАН С ВИДЕО */
.hero {
    position: relative;
    background: linear-gradient(135deg, #0a1622 0%, #1a2a3a 100%);
    color: white;
    margin-top: 70px;
    padding: 60px 0;
}

.hero__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: stretch;
}

.hero__content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hero__title {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.8rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero__subtitle {
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.advantages {
    display: flex;
    gap: 25px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.advantage {
    display: flex;
    align-items: center;
}

.advantage__icon {
    width: 45px;
    height: 45px;
    background-color: rgba(230, 57, 70, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
}

.advantage__icon i {
    font-size: 1.1rem;
    color: #e63946;
}

.advantage__text {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 0.95rem;
}

.hero__btn-wrapper {
    margin-top: auto;
}

/* ВИДЕО БЛОК - НА СТРАНИЦЕ (без черных полос) */
.hero__video {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 45px rgba(0, 0, 0, 0.3);
    background: #000;
    width: 100%;
    max-width: 500px;
    margin: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-self: stretch;
    cursor: pointer;
}

.hero__video video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    aspect-ratio: 16 / 9;
}

/* Кнопка Play по центру */
.video__play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    background: rgba(230, 57, 70, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2;
    pointer-events: auto;
}

.video__play-btn i {
    font-size: 28px;
    color: white;
    margin-left: 5px;
}

.video__play-btn:hover {
    background: #e63946;
    transform: translate(-50%, -50%) scale(1.1);
}

.hero__video.hide-play .video__play-btn {
    display: none;
}

/* Элементы управления видео (кнопки звука и полноэкранного режима) */
.video-controls {
    position: absolute;
    bottom: 15px;
    right: 15px;
    display: flex;
    gap: 10px;
    z-index: 3;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.hero__video:hover .video-controls {
    opacity: 1;
}

.control-btn {
    width: 36px;
    height: 36px;
    background: rgba(0, 0, 0, 0.7);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    font-size: 16px;
    pointer-events: auto;
}

.control-btn:hover {
    background: rgba(230, 57, 70, 0.9);
    transform: scale(1.05);
}

/* ПОЛНОЭКРАННЫЙ РЕЖИМ - ВИДЕО ЦЕЛИКОМ (с черными полосами по бокам если нужно) */
video:fullscreen {
    width: 100vw;
    height: 100vh;
    object-fit: contain;
    background: #000;
}

video:-webkit-full-screen {
    width: 100vw;
    height: 100vh;
    object-fit: contain;
    background: #000;
}

video:-moz-full-screen {
    width: 100vw;
    height: 100vh;
    object-fit: contain;
    background: #000;
}

/* Карточки "Почему Европа" */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.card {
    background-color: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.card__icon {
    width: 70px;
    height: 70px;
    background-color: #f0f4f8;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.card__icon i {
    font-size: 1.8rem;
    color: #0d1b2a;
}

.card__title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #0d1b2a;
}

.card__text {
    color: #666;
    line-height: 1.6;
}

/* Процесс работы */
.process {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    max-width: 1000px;
    margin: 0 auto;
}

.process__step {
    flex: 1;
    min-width: 180px;
    text-align: center;
    padding: 0 15px;
    margin-bottom: 30px;
    position: relative;
}

.process__step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 40px;
    right: -10px;
    width: 20px;
    height: 2px;
    background-color: #e63946;
}

.process__number {
    width: 80px;
    height: 80px;
    background-color: #e63946;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Montserrat', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    margin: 0 auto 20px;
}

.process__title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #0d1b2a;
}

.process__text {
    color: #666;
    font-size: 0.95rem;
}

/* Популярные авто */
.cars {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 30px;
}

.car-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.car-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.car-card__image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
    background-color: #f0f0f0;
}

.car-card__content {
    padding: 20px;
}

.car-card__title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #0d1b2a;
}

.car-card__details {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

.car-card__detail {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    color: #666;
}

.car-card__detail i {
    margin-right: 5px;
    color: #e63946;
}

.car-card__price {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: #e63946;
}

/* Гарантии */
.guarantees {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.guarantee {
    text-align: center;
    padding: 30px 20px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.guarantee__icon {
    width: 80px;
    height: 80px;
    background-color: #f0f4f8;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.guarantee__icon i {
    font-size: 2rem;
    color: #0d1b2a;
}

.guarantee__title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #0d1b2a;
}

.guarantee__text {
    color: #666;
    line-height: 1.6;
}

/* Форма заявки */
.form-section {
    background-color: #f0f4f8;
}

.form-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    background-color: white;
    border-radius: 15px;
    padding: 50px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.form-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #0d1b2a;
}

.form-subtitle {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 30px;
}

.form-features p {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.form-features i {
    color: #e63946;
    margin-right: 10px;
    font-size: 1.2rem;
}

.form {
    display: flex;
    flex-direction: column;
}

.form-group {
    margin-bottom: 20px;
}

.form-input {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: #e63946;
}

.error-message {
    color: #e63946;
    font-size: 0.9rem;
    margin-top: 5px;
    display: none;
}

/* Контакты */
.contacts {
    display: flex;
    justify-content: center;
}

.contact-info {
    text-align: center;
    max-width: 500px;
}

.contact-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #0d1b2a;
}

.contact-subtitle {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 30px;
}

.contact-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.contact-item i {
    font-size: 1.2rem;
    color: #e63946;
    margin-right: 10px;
}

.contact-link, .contact-text {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    color: #0d1b2a;
    text-decoration: none;
}

.contact-link:hover {
    color: #e63946;
}

/* Подвал */
.footer {
    background-color: #0d1b2a;
    color: white;
    padding: 50px 0 30px;
}

.footer__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.footer__logo .logo__text {
    color: white;
}

.footer__subtitle {
    color: #aaa;
    margin-top: 5px;
    font-size: 0.9rem;
}

.footer__copyright {
    color: #aaa;
    font-size: 0.9rem;
}

/* Модальное окно */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal__content {
    background-color: white;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    padding: 30px;
    position: relative;
    animation: modalFade 0.3s ease;
}

@keyframes modalFade {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.modal__title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #0d1b2a;
}

.modal__close {
    background: none;
    border: none;
    font-size: 2rem;
    color: #666;
    cursor: pointer;
    line-height: 1;
}

.modal__close:hover {
    color: #e63946;
}

.modal__body {
    text-align: center;
}

.modal__icon {
    font-size: 4rem;
    color: #4CAF50;
    margin-top: 20px;
}

/* АДАПТИВНОСТЬ */
@media (max-width: 992px) {
    .hero__grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .hero__title {
        font-size: 2.3rem;
        text-align: center;
    }
    
    .hero__subtitle {
        text-align: center;
    }
    
    .advantages {
        justify-content: center;
    }
    
    .hero__content {
        align-items: center;
        text-align: center;
    }
    
    .hero__video {
        max-width: 450px;
        margin: 0 auto;
        align-self: center;
    }
    
    .section__title {
        font-size: 2rem;
    }
    
    .form-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .contact-details {
        grid-template-columns: 1fr;
    }
    
    .process__step:not(:last-child)::after {
        display: none;
    }
}

@media (max-width: 768px) {
    .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: white;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        padding: 20px;
        z-index: 999;
    }
    
    .nav.active {
        display: block;
    }
    
    .nav__list {
        flex-direction: column;
    }
    
    .nav__item {
        margin: 10px 0;
    }
    
    .burger {
        display: flex;
    }
    
    .burger.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }
    
    .burger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .burger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }
    
    .header__contacts {
        order: 3;
        width: 100%;
        flex-direction: column;
        align-items: center;
        gap: 8px;
        margin-top: 12px;
        padding-top: 12px;
        border-top: 1px solid #eee;
    }
    
    .header__inner {
        flex-wrap: wrap;
    }
    
    .logo {
        order: 1;
    }
    
    .burger {
        order: 2;
    }
    
    .advantages {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .advantage {
        justify-content: center;
    }
    
    .hero {
        margin-top: 85px;
        padding: 40px 0;
    }
    
    .hero__title {
        font-size: 1.8rem;
    }
    
    .hero__subtitle {
        font-size: 1rem;
    }
    
    .hero__video {
        max-width: 350px;
        margin: 0 auto;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .process {
        flex-direction: column;
        align-items: center;
    }
    
    .process__step {
        width: 100%;
        max-width: 300px;
    }
    
    .cars {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .footer__inner {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
}

@media (max-width: 576px) {
    .hero__title {
        font-size: 1.6rem;
    }
    
    .hero__video {
        max-width: 100%;
        margin: 0 auto;
    }
    
    .btn-large {
        padding: 12px 24px;
        font-size: 0.9rem;
    }
    
    .form-container {
        padding: 30px 20px;
    }
    
    .cars {
        grid-template-columns: 1fr;
    }
}

/* Анимации для появления элементов при скролле */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}