/* General Styles */
body {
    font-family: 'Ubuntu', sans-serif; /* Changed to Ubuntu font */
    margin: 0;
    padding: 0;
    color: #333;
    background: #f4f4f4;
}


/* Header Styles */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background-color: #1e1e1e;
    color: white;
}

header #header-title {
    font-size: 1.5rem; /* Заголовок */
}

nav {
    margin-left: 100px;
    margin-right: 100px;
}

nav a {
    color: #fff;
    margin-right: 1rem;
    text-decoration: none;
}

nav a.mr-3,
nav a.mx-3 {
    margin-right: 0 !important;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 80px 20px;
    position: relative;
    /*background: url('https://locksmithserviceashmore.com/wp-content/uploads/2024/02/iStock-840774146-scaled.jpg') no-repeat center center / cover;*/
    z-index: 0;

    background-size: cover; /* Добавляем масштабирование изображения */

}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.75);
    z-index: -1;
}

.hero h1 {
    font-size: clamp(2rem, 4vw, 4rem); /* Минимальный размер 2rem, предпочтительный 5vw, максимальный 3rem */
    margin-bottom: 1.5rem;
    color: white;
}

.hero p {
    color: white;
    font-size: clamp(1rem, 2vw, 1.2rem);
}

.cta-button {
    margin-top: 40px !important;
    margin: 20px;
}

.scroll-down {
    position: absolute; /* Делаем scroll-down абсолютно позиционированным */
    bottom: 0; /* Прижимаем к низу */
    transform: translateX(-50%); /* Центрируем по горизонтали */
    margin-bottom: 20px; /* Добавляем отступ от низа */
    animation: bounce 1.5s infinite ease-in-out;
}


@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

p.mt-3 {
    color: lightgrey; /* Restore color for phone number */
}

.text-link {
    color: grey;
    text-decoration: none;
    transition: color 0.3s ease;
}

.text-link:hover {
    color: #ffffff;
}

/* Language Switcher */
.language-switcher {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.language-switcher button {
    background: transparent;
    border: 2px solid #00796b; /* Border color */
    border-radius: 5px;
    cursor: pointer;
    margin-left: 10px;
    padding: 10px 15px;
    transition: background-color 0.3s ease, transform 0.3s ease;
    font-size: 1.2em;
}

.language-switcher button:hover {
    background-color: #00796b;
    color: white;
    transform: scale(1.05);
}

.language-switcher .lang-button {
    white-space: nowrap;
    padding: 5px 10px;
    font-size: 0.9rem;
    border-radius: 4px;
    margin: 0 5px;
}

/* Section Styles */
.services,
.about,
.guarantees,
.contact,
.testimonials,
.spoiler-section {
    padding: 30px 15px;
}

/* Services Section */

.service-item img {
    max-height: 200px;
    object-fit: cover;
}

.service-item h3,
.service-item p,
.service-item button {
    margin-bottom: 10px;
}

/* Trust List */
.trust-list {
    max-width: 700px;
    margin: 0 auto;
    text-align: left;
}



.trust-list li {
    display: flex;
    align-items: center;
    font-size: 1rem;
    line-height: 1.5;
    opacity: 0;
    transform: translateY(50px);
    transition: transform 1s cubic-bezier(0.25, 1, 0.5, 1), opacity 1s cubic-bezier(0.25, 1, 0.5, 1);
}

.trust-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    line-height: 1;
    margin-right: 0.5rem;
}

.spoiler-section .container {
    max-width: 730px;
}

/* Buttons */
.btn-success {
    background-color: #00796b;
    border: none;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.btn-success:hover {
    background-color: #005f52;
    transform: scale(1.05);
}

/* Down Arrow Animation */
.scroll-down {
    position: relative;
    margin-top: 20px;
    animation: bounce 1.5s infinite ease-in-out;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Footer */
footer {
    background-color: #00796b;
}

.footer-top {
    background-color: #343a40;
}

.footer-bottom {
    background-color: #1e1e1e;
    font-size: 0.9rem;
}

.social-icon {
    font-size: 1.5rem;
    color: lightgrey;
    transition: transform 0.3s ease, color 0.3s ease;
}

.social-icon:hover {
    color: #00796b;
    transform: scale(1.2);
}

/* Reveal Animations */
.reveal,
#more-faqs {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.5s ease;
}

#more-faqs.open {
    opacity: 1;
    max-height: 1000px;
}

.animated-arrow {
    transition: transform 0.3s ease;
}

#show-more-faqs.showing .animated-arrow {
    transform: rotate(180deg);
}

/* Media Queries */
@media (max-width: 768px) {
  /*  .hero, .pb-5, .py-5 {
        padding-top: 2rem !important;
        padding-bottom: 1rem !important;
    }*/

    header {
        flex-wrap: wrap;
        text-align: center;
    }

    .container {
        flex-wrap: wrap;
        text-align: center;
    }

    #header-title {
        /*flex-basis: 100%;*/
        margin-bottom: 1rem;
        font-size: 1.25rem;
    }

    nav {
        flex-basis: 100%;
        margin-bottom: 1.5rem;
        margin-top: 1.5rem;
        text-align: center;
    }

    nav a {
        display: block;
        margin-bottom: 0.5rem;
    }

    .service-item {
        margin: 10px 0;
    }

    .cta-button {
        margin-top: 15px;
    }

/*    section.services div.container {
        max-width: 320px;
    }*/

    section.services div.col {
        text-align: center;
        margin-bottom: 20px;
    }
}

@media (min-width: 768px) {

    /*.hero {
        height: 92vh;
    }*/
/*section.hero div.align-items-stretch {
    padding-top: 10vh;
}*/
   /* .hero h1 {
       font-size: clamp(1.7rem, 6vw, 2.5rem);
    }
*/

    .service-item {
        margin: 20px;
    }

    .contact .form-control {
        margin: 10px 5px;
    }

    .logo {
        max-height: 60px;
        height: clamp(1.7rem, 6vw, 2.5rem);
    }
}


@media (max-width: 480px) {
/*    .hero {
        height: 100%;
    }*/
    .logo {
        max-height: 30px;
        height: clamp(1.7rem, 6vw, 2.5rem);
    }
}


/* Spoiler Section */
.spoiler-section {
    padding: 30px 15px;
}

.spoiler {
    margin-bottom: 15px;
}

section.services .col {
    display: flex;
    flex-direction: column;
}




.service-item {
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Растягиваем service-item для заполнения доступного пространства */
    min-height: 250px;
    padding: 30px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    text-align: center;
    overflow: hidden;
    transition: transform 0.4s ease-in-out, box-shadow 0.4s ease-in-out;
}

/* Эффект при наведении */
.service-item:hover {
    transform: translateY(-3px) scale(1.01); /* Подпрыгивание и увеличение */
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.2); /* Усиление тени */
}

/* Анимация светового пятна */
.service-item::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0) 60%);
    transform: translate(-50%, -50%) scale(0); /* Начальное состояние - скрыто */
    transition: transform 0.3s ease-out;
    pointer-events: none; /* Не блокирует клики */
    z-index: 0;
}

/* Появление светового пятна при наведении */
.service-item:hover::before {
    transform: translate(-50%, -50%) scale(1); /* Увеличение светового пятна */
}

/* Внутренние элементы */
.service-item i,
.service-item h5,
.service-item p {
    position: relative;
    z-index: 1; /* Слой выше светового пятна */
}

/* Иконка */
.service-item i {
    /*color: #007bff;*/
    margin-bottom: 20px;
    transition: transform 0.4s ease-in-out;
}


/* Текст */
.service-item p {
    font-size: 1rem;
    color: #6c757d;
    transition: color 0.3s ease-in-out;
}

/* Изменение цвета текста и заголовка при наведении */
/*.service-item:hover h5,*/
.service-item:hover p {
    color: #00796b;
}

.contact .text-center{
    max-width: 680px;
}


.mobile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background-color: #111;
    position: relative; /* Добавляем position: relative; */
}

.logo-container {
    position: absolute; /* Делаем лого-контейнер абсолютно позиционированным */
    left: 50%; /* Сдвигаем на 50% от левого края */
    transform: translateX(-50%); /* Сдвигаем на 50% влево от своей ширины */
    top: 50%; /* Добавляем вертикальное центрирование */
    transform: translate(-50%, -50%); /* Комбинируем горизонтальное и вертикальное центрирование */
}

.logo {
    /*max-height: 50px;*/
    width: auto;
}


.burger-menu-wrapper {
    width: 60px; /* Увеличиваем ширину обертки */
    height: 60px; /* Увеличиваем высоту обертки */
    display: flex;
    justify-content: center;
    align-items: center;
    margin-left: auto;
    touch-action: manipulation;
    pointer-events: auto;
}


.burger-menu {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    width: 50px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-left: auto; /* Добавляем margin-left: auto; */
    touch-action: manipulation;
    pointer-events: auto;
    
    cursor: pointer;

}

.burger-icon,
.burger-icon::before,
.burger-icon::after {
    width: 30px;
    height: 3px;
    background-color: #fff;
    position: relative;
    transition: transform 0.3s ease-in-out;
}

.burger-icon::before,
.burger-icon::after {
    content: '';
    position: absolute;
    left: 0;
}

.burger-icon::before {
    top: -10px;
}

.burger-icon::after {
    top: 10px;
}

.burger-menu.active .burger-icon {
    transform: rotate(45deg);
}

.burger-menu.active .burger-icon::before {
    transform: translateY(10px) rotate(-90deg);
}

.burger-menu.active .burger-icon::after {
    transform: translateY(-10px) rotate(-90deg);
}

.mobile-menu {
    transition: max-height 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55); /* Изменяем transition */
    display: none;
    flex-direction: column;
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background-color: #343a40;
    padding: 20px;
    /*transition: max-height 0.3s ease-in-out;*/
    max-height: 0;
    overflow: hidden;
    text-align: center;
    z-index: 1000;
}

.mobile-menu.active {
    display: flex;
    max-height: 500px;
}

.mobile-menu nav a {
    display: block;
    padding: 10px 0;
    text-decoration: none;
    color: #fff;
}

.language-buttons {
    display: flex;
    justify-content: center;
    /*margin-top: 20px;*/
}

.language-buttons button {
    background: none;
    border: none;
    font-size: 24px;
    margin: 0 10px;
    color: #fff;
    cursor: pointer;
}

/* Медиа-запросы для адаптивности логотипа */


.mobile-menu .language-buttons button {
    background: none;
    border: none;
    font-size: 24px;
    margin: 0 10px;
    color: #fff;
    cursor: pointer;
}

.mobile-menu .language-buttons button:nth-child(3) {
    font-size: 20px;
}

.mobile-menu .language-buttons button:not([aria-label]) { /* Выбираем кнопки без aria-label */
    font-size: inherit; /* Наследуем размер шрифта от родителя */
}

.mobile-menu nav a {
    display: block;
    padding: 12px 0;
    text-decoration: none;
    color: #fff;
    font-size: 18px;
}



/* Стили для мобильного хедера */
.mobile-header {
    display: none;
    /* ... ваши стили ... */
}

/* Стили для десктопного хедера */
.desktop-header {
    display: flex;
    /* ... ваши стили ... */
}

/* Медиа-запрос для мобильных устройств */
@media (max-width: 768px) {
    /* Скрываем десктопный хедер на мобильных */
    .desktop-header {
        display: none;
    }

    /* Показываем мобильный хедер на мобильных */
    .mobile-header {
        display: flex;
        background-color: #343a40;
    }
}

