:root {
    --dropdown-top-distance: 11.9vh; /* Default top distance, 20% of viewport height */
}


/* Основные стили */
body {
    margin: 0;
    font-family: 'Rubik', sans-serif;
    color: #fff;
    background-color: #f9f9f9;
}

.header {
    position: relative;
    text-align: center;
}


.map-info-section a{
    text-decoration: none;
    color: #fff;
}


.map-info-section a:hover{
    color: #ffd700;
}


/* Адаптивность для меньших экранов */
@media (max-width: 1400px) {
    body {
        width: 100vw; /* Ensure the width stays within the viewport */
        /* Specifically prevents horizontal scrolling */
    }
 
}
* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden; /* Отключение горизонтальной прокрутки */
}

img {
    max-width: 100%;
    height: auto;
}

.container, .content, .navbar, .footer {
    max-width: 100%;
    overflow-x: hidden;
}



/* Стили для элементов навигации */




.custom-hr-gradient {
    border: none;
    height: 4px;
    background: linear-gradient(to right, #64531a, #d4af37, #d4af37);
    margin: 0px 0;
    box-shadow: 0 0 15px #816b2183;
}

.custom-hr-gradient2 {
    border: none;
    height: 2px;
    background: linear-gradient(to right, #d4af37, #ffd95a, #d4af37);
    margin: 0px 0;
    box-shadow: 0 0 15px #816b2183;
}


.hero {
    position: relative;
    height: 1000px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: right;
    background: #333;
    padding: 0 200px;
    
}

.slideshow-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 4s ease-in-out;
    background: #333;
}


.slide.active {
    opacity: 1;
}

.hero-text h1 {
    font-size: 2rem;
    font-weight: bold;
    color: #d4af37;
    text-shadow: 0.4rem 0.4rem 1rem #7e6820;
    margin-bottom: 4rem;
    letter-spacing: 0.2rem;
}

.hero-text p {
    font-size: 1.2rem;
    line-height: 1.6rem;
    color: #fff;
    max-width: 60rem;
    margin: 1rem auto;
    text-shadow: 0.1rem 0.1rem 0.5rem rgba(0, 0, 0, 0.4);
}

.hero-text h1 {
    background: none;
    -webkit-background: unset;
    -webkit-text-fill-color: #ffffff;
}

.hero-text {
    text-align: center;
    padding: 20px;
    position: relative;
    z-index: 10;
}
@media (max-width: 1024px) {
    .hero-text {
        display: none;
        width: calc(100%);
        position: flex;
    }
    .hero-text h1{
        margin-bottom: 1rem;
        font-size: 1.2rem;
        line-height: 1.3rem;
    }
    .hero-text p{
        font-size: 1rem;
        line-height: 1.3rem;
        max-width: 10rem;
    }
    .hero {
        padding: 0 90%;
    }
    
}

@media (max-width: 480px) {
    .hero-text {
        width: 100%; /* Устанавливаем ширину в 100% для корректного отображения */
        text-align: right; /* Центрируем текст */
        padding: 0 1rem; /* Добавляем отступы для небольшого пространства */
    }

    .hero-text h1 {
        margin-bottom: 1rem;
        font-size: 1.5rem; /* Увеличиваем размер заголовка для читабельности */
        line-height: 1.8rem;
    }

    .hero-text p {
        font-size: 1rem;
        line-height: 1.5rem;
        max-width: 100%; /* Убираем огромное значение ширины */
        margin: 0 auto; /* Центрируем текстовые блоки */
    }
}


.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
    filter: brightness(50%);

}

.services-section {
    padding: 50px 0;
    background-color: #f9f9f9;
    text-align: center;
}

.section-title {
    font-size: 36px;
    color: #000;
    margin-bottom: 10px;
}

.section-subtitle {
    font-size: 16px;
    color: #666;
    margin-bottom: 40px;
}

.services-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.service-item {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    width: calc(33.33% - 20px);
    max-width: 300px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-item:hover {
    transform: translateY(-10px);
}

.image-wrapper {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: opacity 0.4s ease-in-out;
    position: absolute;
    z-index: 1;
}

.service-image.default {
    opacity: 1;
}

.service-image.hover {
    opacity: 0;
    z-index: 2;
}

.service-item:hover .service-image.default {
    opacity: 0;
}

.service-item:hover .service-image.hover {
    opacity: 1;
}

.service-content {
    padding: 20px;
    position: relative;
    z-index: 3;
}

.service-title {
    font-size: 20px;
    color: #333;
    margin-bottom: 10px;
}

.service-description {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.service-button {
    display: inline-block;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: bold;
    color: #fff;
    background: linear-gradient(90deg, #d4af37, #ffd700, #b8860b);
    border-radius: 5px;
    text-decoration: none;
    background-size: 200% auto; /* Добавляем для анимации фона */
    transition: background-position 0.4s ease, box-shadow 0.4s ease; /* Анимируем background-position и box-shadow */
}

.service-button:hover {
    background-position: right center; /* Сдвигаем градиент вправо при наведении */
    color: #fff;
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.7);
}


/* Адаптация для планшетов и мобильных устройств */
@media (max-width: 1024px) {
    .service-item {
        width: calc(50% - 20px);
    }
    
}

@media (max-width: 768px) {
    .service-item {
        width: calc(100% - 20px);
    }
    
}



/* Styling for the marquee container */
.logo-marquee {
    width: 100%;
    overflow: hidden;
    background-color: #f9f9f9; /* Optional background color */
    padding: 10px 0;
}

.logo-marquee-track {
    display: flex;
    animation: scroll 30s linear infinite; /* Infinite animation */
}

.logo-marquee-track img {
    height: 80px; /* Adjust height as needed */
    margin-right: 30px;

    transition: filter 0.3s ease-in-out;
}



/* Keyframes for infinite scrolling */
@keyframes scroll {
    0% {
        transform: translateX(0); /* Start at default position */
    }
    100% {
        transform: translateX(-50%); /* Move left to create an infinite scroll */
    }
}

/* Responsive: Adjust logo size on smaller screens */
@media (max-width: 768px) {
    .logo-marquee-track img {
        height: 60px;
    }
}



/* Стили для информационного блока */
.contact-map-container {
    display: flex;
    gap: 20px;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.map-iframe {
    flex: 2;
    height: 400px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.contact-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: #000;
    border: 1px solid #d4af37;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    color: #d4af37;
    text-align: center;
}

.contact-section h2 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #d4af37;
}

.contact-section h2::after {
    content: '';
    display: block;
    width: 40px;
    height: 4px;
    background-color: #d4af37;
    margin: 5px auto 0;
}

.contact-section p {
    margin: 5px 0;
    color: #fff;
}

@media (max-width: 768px) {
    .contact-map-container {
        flex-direction: column;
        gap: 10px;
    }

    .map-iframe,
    .contact-section {
        width: 100%;
        height: 300px;
    }
}

/* Текстовые стили и разделители */
.contact-info,
.location-info,
.hours-info {
    text-align: left;
    color: #d4af37;
    padding-bottom: 10px;
}

.contact-info h2,
.location-info h2,
.hours-info h2 {
    font-size: 20px;
    margin-bottom: 10px;
}

.divider {
    width: 50px;
    height: 2px;
    background-color: #d4af37;
    margin: 10px 0;
}

/* Адаптивные стили для маленьких экранов */
@media (max-width: 768px) {
    .map-info-section {
        flex-direction: column;
    }
    .map-container,
    .info-container {
        flex: 1 1 100%;
        height: auto;
    }
}







