@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&display=swap');
@import 'services.css';

@font-face {
    font-family: 'Exotic350BT-Bold';
    src: url('../../fonts/exotic350/exotic350bt-bold.eot'); /* IE 9 Compatibility Mode */
    src: url('../../fonts/exotic350/exotic350bt-bold.eot?#iefix') format('embedded-opentype'), /* IE < 9 */ url('../fonts/exotic350/exotic350bt-bold.woff2') format('woff2'), /* Super Modern Browsers */ url('../fonts/exotic350/exotic350bt-bold.woff') format('woff'), /* Firefox >= 3.6, any other modern browser */ url('../fonts/exotic350/exotic350bt-bold.ttf') format('truetype'), /* Safari, Android, iOS */ url('../fonts/exotic350/exotic350bt-bold.svg#exotic350bt-bold') format('svg'); /* Chrome < 4, Legacy iOS */
}

@font-face {
    font-family: 'Roboto';
    src: url('../fonts/roboto/Roboto-MediumItalic.eot');
    src: local('Roboto Medium Italic'), local('Roboto-MediumItalic'),
    url('../fonts/roboto/Roboto-MediumItalic.eot?#iefix') format('embedded-opentype'),
    url('../fonts/roboto/Roboto-MediumItalic.woff') format('woff'),
    url('../fonts/roboto/Roboto-MediumItalic.ttf') format('truetype');
    font-weight: 500;
    font-style: italic;
}

@font-face {
    font-family: 'Roboto';
    src: url('../fonts/roboto/Roboto-Italic.eot');
    src: local('Roboto Italic'), local('Roboto-Italic'),
    url('../fonts/roboto/Roboto-Italic.eot?#iefix') format('embedded-opentype'),
    url('../fonts/roboto/Roboto-Italic.woff') format('woff'),
    url('../fonts/roboto/Roboto-Italic.ttf') format('truetype');
    font-weight: normal;
    font-style: italic;
}

@font-face {
    font-family: 'Roboto';
    src: url('../fonts/roboto/Roboto-Bold.eot');
    src: local('Roboto Bold'), local('Roboto-Bold'),
    url('../fonts/roboto/Roboto-Bold.eot?#iefix') format('embedded-opentype'),
    url('../fonts/roboto/Roboto-Bold.woff') format('woff'),
    url('../fonts/roboto/Roboto-Bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: 'Roboto';
    src: url('../fonts/roboto/Roboto-Regular.eot');
    src: local('Roboto'), local('Roboto-Regular'),
    url('../fonts/roboto/Roboto-Regular.eot?#iefix') format('embedded-opentype'),
    url('../fonts/roboto/Roboto-Regular.woff') format('woff'),
    url('../fonts/roboto/Roboto-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Roboto';
    src: url('../fonts/roboto/Roboto-Medium.eot');
    src: local('Roboto Medium'), local('Roboto-Medium'),
    url('../fonts/roboto/Roboto-Medium.eot?#iefix') format('embedded-opentype'),
    url('../fonts/roboto/Roboto-Medium.woff') format('woff'),
    url('../fonts/roboto/Roboto-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'Roboto';
    src: url('../fonts/roboto/Roboto-BoldItalic.eot');
    src: local('Roboto Bold Italic'), local('Roboto-BoldItalic'),
    url('../fonts/roboto/Roboto-BoldItalic.eot?#iefix') format('embedded-opentype'),
    url('../fonts/roboto/Roboto-BoldItalic.woff') format('woff'),
    url('../fonts/roboto/Roboto-BoldItalic.ttf') format('truetype');
    font-weight: bold;
    font-style: italic;
}

@font-face {
    font-family: 'Roboto';
    src: url('../fonts/roboto/Roboto-ThinItalic.eot');
    src: local('Roboto Thin Italic'), local('Roboto-ThinItalic'),
    url('../fonts/roboto/Roboto-ThinItalic.eot?#iefix') format('embedded-opentype'),
    url('../fonts/roboto/Roboto-ThinItalic.woff') format('woff'),
    url('../fonts/roboto/Roboto-ThinItalic.ttf') format('truetype');
    font-weight: 100;
    font-style: italic;
}

@font-face {
    font-family: 'Roboto';
    src: url('../fonts/roboto/Roboto-Black.eot');
    src: local('Roboto Black'), local('Roboto-Black'),
    url('../fonts/roboto/Roboto-Black.eot?#iefix') format('embedded-opentype'),
    url('../fonts/roboto/Roboto-Black.woff') format('woff'),
    url('../fonts/roboto/Roboto-Black.ttf') format('truetype');
    font-weight: 900;
    font-style: normal;
}

@font-face {
    font-family: 'Roboto';
    src: url('../fonts/roboto/Roboto-Light.eot');
    src: local('Roboto Light'), local('Roboto-Light'),
    url('../fonts/roboto/Roboto-Light.eot?#iefix') format('embedded-opentype'),
    url('../fonts/roboto/Roboto-Light.woff') format('woff'),
    url('../fonts/roboto/Roboto-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: 'Roboto';
    src: url('../fonts/roboto/Roboto-LightItalic.eot');
    src: local('Roboto Light Italic'), local('Roboto-LightItalic'),
    url('../fonts/roboto/Roboto-LightItalic.eot?#iefix') format('embedded-opentype'),
    url('../fonts/roboto/Roboto-LightItalic.woff') format('woff'),
    url('../fonts/roboto/Roboto-LightItalic.ttf') format('truetype');
    font-weight: 300;
    font-style: italic;
}

@font-face {
    font-family: 'Roboto';
    src: url('../fonts/roboto/Roboto-BlackItalic.eot');
    src: local('Roboto Black Italic'), local('Roboto-BlackItalic'),
    url('../fonts/roboto/Roboto-BlackItalic.eot?#iefix') format('embedded-opentype'),
    url('../fonts/roboto/Roboto-BlackItalic.woff') format('woff'),
    url('../fonts/roboto/Roboto-BlackItalic.ttf') format('truetype');
    font-weight: 900;
    font-style: italic;
}

@font-face {
    font-family: 'Roboto';
    src: url('../fonts/roboto/Roboto-Thin.eot');
    src: local('Roboto Thin'), local('Roboto-Thin'),
    url('../fonts/roboto/Roboto-Thin.eot?#iefix') format('embedded-opentype'),
    url('../fonts/roboto/Roboto-Thin.woff') format('woff'),
    url('../fonts/roboto/Roboto-Thin.ttf') format('truetype');
    font-weight: 100;
    font-style: normal;
}

@font-face {
    font-family: 'Exotic 350 Demi Bold BT';
    src: url('../fonts/exoticdb/Exotic 350 Demi Bold BT.woff2') format('woff2'),
    url('../fonts/exoticdb/Exotic 350 Demi Bold BT.ttf') format('truetype');

}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
    user-select: none;
    -webkit-user-select: none; /* Для поддержки в браузерах на основе WebKit */
    -moz-user-select: none; /* Для поддержки в Firefox */
    -ms-user-select: none; /* Для поддержки в старых версиях IE */

}

/* Стили для прокрутки внутри всего документа */
::-webkit-scrollbar {
    width: 14px; /* ширина прокрутки */
    height: 20px; /* высота для горизонтальной полосы прокрутки */
}

::-webkit-scrollbar-track {
    background: #f5f5f5; /* цвет фона */
    border-radius: 10px; /* скругление углов */
}

::-webkit-scrollbar-thumb {
    background: #d16161; /* цвет бегунка */
    border-radius: 10px; /* скругленные края бегунка */
}

::-webkit-scrollbar-thumb:hover {
    background: #680A09; /* цвет бегунка при наведении мышью */
}

body {
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

/* Шапка */
header {
    background-color: #680A09;
    color: white;
    padding: 1rem 2rem;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.iti {
    width: 100%;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    font-family: "Exotic 350 Demi Bold BT", sans-serif;
    text-transform: uppercase;
    justify-content: center;
    align-items: center;
    display: flex;
}

.logo__img {
    width: 60px;
    height: 60px;
    margin-right: 10px;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 2rem;
}

nav ul li a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
    text-transform: uppercase;
    place-items: center;
    -webkit-font-smoothing: antialiased;
}

nav ul li a:hover {
    color: #ffcccc;
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    margin-left: auto;
    margin-right: 1rem;
}

.hero {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 100vh;
    color: white;
    padding-top: 80px;
}


/* Видео занимает всю секцию и располагается ниже градиента */
.hero video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

/* Градиентный оверлей */
.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(139, 0, 0, 0.3), rgba(139, 0, 0, 0.3));
    z-index: 1;
}

/* Содержимое секции поверх видео и градиента */
.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

/* Кнопка с эффектом волны */
.cta-btn {
    position: relative; /* Для псевдоэлементов */
    display: inline-block;
    background-color: white;
    color: #680A09;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    overflow: visible; /* Скрываем выступающие части анимации */
    z-index: 10; /* Гарантируем, что кнопка поверх */
    transition: transform 0.3s;
}

.cta-btn:hover {
    transform: scale(1.05);

}

.cta-btn::before,
.cta-btn::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.75); /* Цвет волны */
    border-radius: inherit;
    transform: translate(-50%, -50%) scale(1);
    z-index: -1;
}

.cta-btn::before {
    animation: wave 3s ease-out infinite;
}

.cta-btn::after {
    animation: wave 3s ease-out infinite;
    animation-delay: 1s; /* Задержка для второго эффекта */
}

@keyframes wave {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    70% {
        transform: translate(-50%, -50%) scale(1.35);
        opacity: 0;
        border-radius: 20px;

    }
    100% {
        transform: translate(-50%, -50%) scale(1.25);
        opacity: 0;
    }
}


.services__slider {
    overflow: hidden;
}

.slide-box {
    min-width: 25.31rem;
    height: 33.75rem;
    max-height: 33.75rem;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    background: #ffffff;
    border-radius: 1.25rem;
    position: relative;
    cursor: grab;
}

.slide-box__topimage {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    border-top-left-radius: 1.27rem;
    border-top-right-radius: 1.27rem;
    cursor: inherit;
}

.slide-box__image {
    max-height: 10.43rem;
    margin-top: 1rem;
    z-index: 3;
    -webkit-box-flex: 1;
    -ms-flex: 1 1 auto;
    flex: 1 1 auto;
    cursor: inherit;

}

.slide-box__image img {
    height: 100%;
}


.slide-box__label {
    height: 4.4rem;
    font-weight: bold;
    font-size: 2.25rem;
    line-height: 2.75rem;
    text-transform: uppercase;
    margin-bottom: 1rem;
    color: #d16161;
    text-align: center;
    -webkit-box-flex: 1;
    -ms-flex: 1 1 auto;
    flex: 1 1 auto;
    cursor: inherit;

}

.slide-box__text {
    font-family: "Roboto", sans-serif;
    font-size: 1rem;
    line-height: 1.45rem;
    text-align: justify;
    color: #000000;
    margin: 0 auto 1rem;
    max-width: 21.81rem;
    -webkit-box-flex: 1;
    -ms-flex: 1 1 auto;
    flex: 1 1 auto;
    height: 100%;
}

/* Блок о центре */
.about {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.about h2 {
    text-align: center;
    color: #680A09;
    margin-bottom: 3rem;
    font-size: 2.5rem;
}

.about-content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.about-text, .about-image {
    padding: 2rem;
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Секция услуг */
.services {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.services h2, .pricing h2, .doctors h2, .map h2, .video h2 {
    text-align: center;
    color: #680A09;
    margin-bottom: 3rem;
    font-size: 2.5rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.service-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s;
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-card h3 {
    color: #680A09;
    margin-bottom: 1rem;
}

/* Прайс-лист */
.pricing {
    padding: 4rem 2rem;
    background-color: #fff;
    max-width: 1200px;
    margin: 0 auto;

}

.price-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 2rem;
    margin-bottom: 2rem;
    border-radius: 10px; /* Скругление углов */
    overflow: hidden; /* Чтобы скругление было видно */
    /*border: 1px solid #ccc;    !* Граница таблицы *!*/

}

.price-table th, .price-table td {
    padding: 1rem;
    border-bottom: 1px solid #ddd;
    text-align: left;
}

.price-table th {
    background-color: #680A09;
    color: white;
}

/*.price-table thead th:first-child,*/
/*.price-table tbody td:first-child {*/

/*    width: 85%; !* Первая колонка - 85% *!*/
/*}*/

/*.price-table thead th:last-child,*/
/*.price-table tbody td:last-child {*/
/*    width: 15%; !* Вторая колонка - 15% *!*/
/*}*/


/* Врачи */
.doctors {
    padding: 4rem 2rem;
    overflow: hidden;
}

/* Новый контейнер для центрирования и ограничения ширины */
.doctors__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem; /* Небольшие боковые отступы внутри контейнера */
    position: relative; /* Для абсолютного позиционирования кнопок */
}

/* Заголовок внутри контейнера */
.doctors__container h2 {
    text-align: center;
    color: #680A09;
    margin-bottom: 3rem;
    font-size: 2.5rem;
}

/* Контейнер Swiper */
.doctors-slider {
    width: 100%;
    padding: 2rem 0; /* Отступы сверху и снизу */
    position: relative;
    overflow: hidden; /* !!! Добавляем overflow: hidden !!! */
    padding-top: 0;
}

/* Стили для отдельного слайда */
.doctor-slide {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    height: 480px;
    background-color: #333; /* Темный фон на случай ошибки загрузки */
    /* box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15); */
    cursor: grab;
    /* Применяем фон непосредственно к слайду */
    background-size: cover;
    background-position: center;
    color: white; /* Основной цвет текста */
}

/* Контент слайда - теперь это оверлей */
.doctor-slide__content {
    position: absolute; /* Позиционируем поверх фона слайда */
    inset: 0; /* Растягиваем на весь слайд */
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* Контент внизу */
    align-items: center;
    text-align: center;
    padding: 2rem 2rem 3rem 2rem;
    /* Полупрозрачный темный градиент для читаемости */
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.2) 20%, transparent 50%);
}

/* Информация о враче */
.doctor-slide__info {
    padding-top: 0; /* Убираем старый отступ */
    width: 100%;
    max-width: 90%; /* Ограничиваем ширину текста */
}

.doctor-slide__info h3 {
    font-size: 1.8rem; /* Немного увеличим */
    margin-bottom: 0.7rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.8);
}

.doctor-slide__info p {
    font-size: 1.1rem; /* Немного увеличим */
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
    line-height: 1.5;
}

/* Стили пагинации */
.doctors-pagination {
    position: absolute; /* Позиционируем относительно слайдера */
    bottom: 7px !important; /* Смещаем ниже */
    left: 50% !important;
    transform: translateX(-50%);
    z-index: 5; /* Поверх контента */
    padding-top: 0;
}

/* Адаптивность */
@media (max-width: 767px) {
    .about {
        padding: 4rem 1rem!important;
    }

    h2{
        font-size: 2rem!important;
    }

    .doctor-slide {
        height: 420px;
        border-radius: 15px;
    }

    .doctor-slide__info {
        padding: 1.5rem 1.5rem 2.5rem 1.5rem;
        max-width: 95%;
    }

    .doctor-slide__info h3 {
        font-size: 1.6rem;
    }

    .doctor-slide__info p {
        font-size: 1rem;
    }

    .doctors-pagination {
        bottom: 10px !important;
    }

    .doctor-slide__content{
        padding: 0!important;
    }
}

/* Карта */
.map {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.map iframe {
    width: 100%;
    height: 400px;
    border: none;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Секция видео */
.video {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Подвал */
footer {
    background-color: #680A09;
    color: white;
    padding: 2rem;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.social-links {
    margin-top: 1rem;
}

.social-links a {
    color: white;
    text-decoration: none;
    margin: 0 1rem;
    font-size: 1.5rem;
    transition: color 0.3s;
}

.social-links a:hover {
    color: #ffcccc;
}

/* Модальное окно и форма */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1001;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: white;
    padding: 2rem;
    border-radius: 10px;
    width: 50%;
    max-width: 90%;
    position: relative;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #000;
}

.form-group input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.form-group button {
    background-color: #680A09;
    color: white;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    width: 100%;
    transition: background-color 0.3s;
    outline: none;
    box-shadow: none;
    font-size: 18px;
}

.form-group button:hover {
    background-color: #a30000;
}

/* Стили для intl-tel-input согласно справке */
.intl-tel-input {
    width: 100%;
    position: relative;
}

.intl-tel-input .iti__flag-container {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 44px;
    z-index: 2;
}

.intl-tel-input input {
    width: 100%;
    padding-left: 60px; /* Отступ для размещения флага */
    box-sizing: border-box;
}


.contact__map {
    width: 100%;
    height: 100%;
    border-radius: 1.25rem;
}

.contact__map .gmnoprint {
    display: none;
}

.contact-map-res {
    margin: 2rem 0;
}

.contact__right {
    position: relative;
}

.map-info-container {
    width: 35rem;
    height: 30rem;
}

/* .map-container {
    z-index: 9;
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    background: #ffffff;
    width: 20.8rem;
    height: 8.8rem;
    background: #ffffff;
    border-radius: 1.25rem;
  } */

.contact__right {
    height: 100%;
}

.placecard__container {
    padding: 1rem 1.25rem;
    background: #ffffff;
}

.placecard__business-name {
    font-weight: bold;
    font-size: 1.125rem;
    line-height: 1.375rem;
    color: #333333;
}

.placecard__info {
    font-weight: 600;
    font-size: 1.125rem;
    line-height: 1.375rem;
    color: #333333;
}

.placecard__right {
    background: #680A09;
    border-radius: 0px 0px 1.25rem 1.25rem;
    font-weight: 600;
    font-size: 1.125rem;
    line-height: 1.4rem;
    height: 2.75rem;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
}

.placecard__direction-link {
    color: #ffffff;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}


:root {
    --shiny-cta-bg: #680A09;
    --shiny-cta-bg-subtle: #680A09;
    --shiny-cta-fg: #ffffff;
    --shiny-cta-highlight: #680A09;
    --shiny-cta-highlight-subtle: #d35a5a;
}

input:focus,
textarea:focus,
select:focus {
    outline: none; /* Убирает стандартную обводку */
    box-shadow: none; /* Убирает тень, которую добавляют некоторые браузеры */
    border-color: #680A09; /* Можно задать свой цвет рамки, либо вовсе не использовать */
    padding: 0.75rem;
}

@property --gradient-angle {
    syntax: "<angle>";
    initial-value: 0deg;
    inherits: false;
}

@property --gradient-angle-offset {
    syntax: "<angle>";
    initial-value: 0deg;
    inherits: false;
}

@property --gradient-percent {
    syntax: "<percentage>";
    initial-value: 5%;
    inherits: false;
}

@property --gradient-shine {
    syntax: "<color>";
    initial-value: white;
    inherits: false;
}

.shiny-cta {
    --animation: gradient-angle linear infinite;
    --duration: 3s;
    --shadow-size: 2px;
    isolation: isolate;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    outline-offset: 4px;
    padding: 1.25rem 2.5rem;
    font-family: inherit;
    font-size: 1.125rem;
    line-height: 1.2;
    border: 1px solid transparent;
    border-radius: 360px;
    color: var(--shiny-cta-fg);
    background: linear-gradient(var(--shiny-cta-bg), var(--shiny-cta-bg)) padding-box,
    conic-gradient(
            from calc(var(--gradient-angle) - var(--gradient-angle-offset)),
            transparent,
            var(--shiny-cta-highlight) var(--gradient-percent),
            var(--gradient-shine) calc(var(--gradient-percent) * 2),
            var(--shiny-cta-highlight) calc(var(--gradient-percent) * 3),
            transparent calc(var(--gradient-percent) * 4)
    ) border-box;
    box-shadow: inset 0 0 0 1px var(--shiny-cta-bg-subtle);

    &::before,
    &::after,
    span::before {
        content: "";
        pointer-events: none;
        position: absolute;
        inset-inline-start: 50%;
        inset-block-start: 50%;
        z-index: -1;
    }

    &:active {
        translate: 0 1px;
    }
}

/* Dots pattern */
.shiny-cta::before {
    --size: calc(100% - var(--shadow-size) * 3);
    --position: 2px;
    --space: calc(var(--position) * 2);
    width: var(--size);
    height: var(--size);
    background: radial-gradient(
            circle at var(--position) var(--position),
            white calc(var(--position) / 4),
            transparent 0
    ) padding-box;
    background-size: var(--space) var(--space);
    background-repeat: space;
    mask-image: conic-gradient(
            from calc(var(--gradient-angle) + 45deg),
            black,
            transparent 10% 90%,
            black
    );
    border-radius: inherit;
    opacity: 0.4;
    z-index: -1;
}

/* Inner shimmer */
.shiny-cta::after {
    --animation: shimmer linear infinite;
    width: 100%;
    aspect-ratio: 1;
    background: linear-gradient(
            -50deg,
            transparent,
            var(--shiny-cta-highlight),
            transparent
    );
    mask-image: radial-gradient(circle at bottom, transparent 40%, black);
    opacity: 0.6;
}

.shiny-cta span {
    z-index: 1;

    &::before {
        --size: calc(100% + 1rem);
        width: var(--size);
        height: var(--size);
        box-shadow: inset 0 -1ex 2rem 4px var(--shiny-cta-highlight);
        opacity: 0;
    }
}

/* Animate */
.shiny-cta {
    --transition: 800ms cubic-bezier(0.25, 1, 0.5, 1);
    transition: var(--transition);
    transition-property: --gradient-angle-offset, --gradient-percent,
    --gradient-shine;

    &,
    &::before,
    &::after {
        animation: var(--animation) var(--duration),
        var(--animation) calc(var(--duration) / 0.4) reverse paused;
        animation-composition: add;
    }

    span::before {
        transition: opacity var(--transition);
        animation: calc(var(--duration) * 1.5) breathe linear infinite;
    }
}

.shiny-cta:is(:hover, :focus-visible) {
    --gradient-percent: 20%;
    --gradient-angle-offset: 95deg;
    --gradient-shine: var(--shiny-cta-highlight-subtle);

    &,
    &::before,
    &::after {
        animation-play-state: running;
    }

    span::before {
        opacity: 1;
    }
}

@keyframes gradient-angle {
    to {
        --gradient-angle: 360deg;
    }
}

@keyframes shimmer {
    to {
        rotate: 360deg;
    }
}

@keyframes breathe {
    from,
    to {
        scale: 1;
    }
    50% {
        scale: 1.2;
    }
}

/* Анимация появления */
.fade-in-init {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-active {
    opacity: 1;
    transform: translateY(0);
}

.language-switcher {
    position: relative;
    margin-left: 1.5rem; /* Сохраняем отступ слева */
    margin-top: -0.3rem; /* Убираем отступ сверху */
}

.language-switcher__button {
    background: rgba(255, 255, 255, 0.1); /* Полупрозрачный фон */
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2); /* Полупрозрачная граница */
    padding: 0.5rem 1rem;
    border-radius: 20px; /* Скругленные углы */
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: background-color 0.3s, border-color 0.3s;
}

.language-switcher__button:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
}

.language-switcher__icon {
    width: 1.2em;
    height: 1.2em;
    margin-right: 0.5em;
    fill: currentColor; /* Цвет иконки совпадает с текстом */
}

.language-switcher__current {
    font-weight: 500;
}

.language-switcher__dropdown {
    display: none; /* Скрыто по умолчанию */
    position: absolute;
    top: calc(100% + 5px);
    right: 0;
    /* Эффект стекла */
    background: rgba(255, 255, 255, 0.1); /* Очень прозрачный фон */
    backdrop-filter: blur(12px); /* Размытие фона */
    -webkit-backdrop-filter: blur(12px); /* Для Safari */
    border: 1px solid rgba(255, 255, 255, 0.2); /* Чуть более заметная рамка */
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.25);
    z-index: 10;
    min-width: 150px;
    overflow: hidden;
    padding: 0.5rem 0;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.2s ease, transform 0.2s ease; /* Анимация появления */
    pointer-events: none; /* Неактивно, когда скрыто */
    background: brown;
}

.language-switcher__dropdown.show {
    display: block;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto; /* Активно, когда показано */
}

.language-switcher__option {
    display: block;
    padding: 0.75rem 1.5rem;
    color: rgba(255, 255, 255, 0.85); /* Цвет текста */
    text-decoration: none;
    transition: background-color 0.2s, color 0.2s;
    white-space: nowrap;
}

.language-switcher__option:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.language-switcher__option.active {
    font-weight: bold;
    color: #fff;
    background-color: rgba(255, 255, 255, 0.15);
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2rem;
    }

    .map-info-container {
        width: 100% !important;
        height: 30rem;
    }
    .menu-toggle {
        display: block;
    }

    nav ul {
        display: none;
        flex-direction: column;
        position: fixed;
        top: 90px;
        left: 0;
        width: 100%;
        height: calc(100vh - 90px);
        background-color: #680A09;
        padding: 2rem;
        opacity: 0;
        transform: translateY(-20px);
        animation: slideDown 0.3s ease forwards;
    }

    nav ul.active {
        display: flex;
    }

    nav ul li {
        margin: 1rem 0;
        text-align: center;
    }

    .price-table th, .price-table td {
        font-size: 0.9rem;
    }

    .map iframe {
        height: 300px;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .language-switcher {
        margin: 0.75rem 0;
        width: 100%;
    }

    .language-switcher__button {
        width: 100%;
        justify-content: center;
        padding: 0.75rem 1rem;
    }

    .language-switcher__dropdown {
        position: static;
        width: 100%;
        margin-top: 0.5rem;
        box-shadow: none;
        border: none;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        background: transparent;
        border-radius: 0;
        opacity: 1; /* Всегда видимо в мобильном меню */
        transform: none;
        transition: none;
        display: none; /* Управляется классом .show через JS */
        padding: 0; /* Убираем паддинг, т.к. опции имеют свой */
    }

    .language-switcher__dropdown.show {
        display: block; /* Показываем при клике */
        opacity: 1;
        transform: none;
    }

    .language-switcher__option {
        color: rgba(255, 255, 255, 0.7);
        text-align: center;
        padding: 1rem 1.5rem;
    }

    .language-switcher__option:hover {
        color: #fff;
        background: rgba(255, 255, 255, 0.08);
    }

    .language-switcher__option.active {
        color: #fff;
        background: rgba(255, 255, 255, 0.12);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Круглая кнопка с иконкой телефона, появляющаяся при прокрутке */
#scroll-phone-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background-color: #680A09;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    z-index: 1000;
}

/* Override Swiper pagination active bullet color */
.swiper-pagination-bullet-active {
    background-color: #680a09; /* Main red color */
    opacity: 1; /* Ensure full opacity */
}

/* Наши работы */
.our-work {
    padding: 4rem 2rem;
    background-color: #fff; /* Или другой фон, если нужно */
}

.our-work__container {
    max-width: 1200px;
    margin: 0 auto;
}

.our-work__container h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: #333;
    font-size: 2rem;
    font-weight: bold;
}

.work-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.work-card {
    background-color: #f9f9f9;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.work-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* Стили для img-comparison-slider */
img-comparison-slider {
    width: 100%;
    aspect-ratio: 4 / 3; /* Поддерживаем соотношение сторон */
    --divider-width: 2px;
    --divider-color: #680A09;
    --default-handle-opacity: 0.8;
    --default-handle-color: #680A09;
}

img-comparison-slider img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.work-card__title {
    font-size: 1.2rem;
    font-weight: bold;
    margin: 1rem 1rem 0.5rem 1rem;
    color: #333;
}

.work-card__preview {
    font-size: 0.9rem;
    color: #666;
    margin: 0 1rem 1rem 1rem;
    flex-grow: 1; /* Чтобы текст занимал доступное место */
}

/* Стили для модального окна работы */
#work-modal .modal-content {
    max-width: 700px; /* Увеличим немного ширину для фото */
    padding: 2rem;
}

#work-modal-title {
    margin-bottom: 1.5rem; /* Увеличим отступ снизу */
    color: #680A09;
    text-align: center;
    font-size: 1.8rem; /* Немного увеличим шрифт заголовка */
}

/* Контейнер для изображений До/После */
.work-modal-images {
    display: flex;
    justify-content: space-around; /* Размещаем с отступами */
    gap: 1.5rem; /* Промежуток между блоками фото */
    margin-bottom: 1.5rem;
    align-items: flex-start; /* Выравниваем по верху, если высота разная */
}

.work-modal-image-container {
    flex: 1; /* Равномерно делим пространство */
    text-align: center;
}

.work-modal-image-label {
    display: block;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: #555;
    font-size: 1rem;
}

.work-modal-images img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    border: 1px solid #eee; /* Тонкая рамка */
    background-color: #f0f0f0; /* Фон для незагруженных */
}

#work-modal-description {
    margin-top: 1rem; /* Отступ сверху перед описанием */
    padding: 1rem;
}

#work-modal-description p {
    line-height: 1.7; /* Немного увеличим межстрочный интервал */
    margin-bottom: 1rem;
    color: #333; /* Сделаем текст описания чуть темнее */
    text-align: justify;
}

/* Адаптивность для модального окна работы */
@media (max-width: 600px) {
    .work-modal-images {
        flex-direction: column; /* Ставим фото друг под другом */
        align-items: center; /* Центрируем фото */
        gap: 1rem;
    }

    .work-modal-image-container {
        width: 80%; /* Ограничиваем ширину фото */
        max-width: 300px;
    }

    #work-modal .modal-content {
        max-width: 100%;
        padding: 0;
        width: 100%;
        height: 100%;
        overflow: auto;
    }

    #work-modal-title {
        font-size: 1.5rem;
        margin-bottom: 1rem;
        margin-top: 4rem;
    }
}

/* Адаптивность для карточек работ */
@media (max-width: 768px) {
    .work-cards {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
    }

    .our-work {
        padding: 3rem 1rem;
    }

    .our-work__container h2 {
        font-size: 1.8rem;
    }

    .work-card__title {
        font-size: 1.1rem;
    }

    .work-card__preview {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .work-cards {
        grid-template-columns: 1fr; /* Одна колонка на мобильных */
        gap: 1rem;
    }

    .our-work {
        padding: 2rem 1rem;
    }
}

/* Секция Контакты (бывшая Карта) */
.contact-section {
    padding: 4rem 2rem;
    background-color: #f9f9f9; /* Слегка отличный фон */
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
}

.contact-container h2 {
    text-align: center;
    color: #680A09;
    margin-bottom: 3rem;
    font-size: 2.5rem;
}

.contact-content-wrapper {
    display: flex;
    gap: 3rem; /* Пространство между колонками */
    align-items: flex-start; /* Выравниваем по верху */
}

/* Левая колонка: Контактная информация */
.contact-info-container {
    flex: 1; /* Занимает доступное пространство */
    min-width: 300px; /* Минимальная ширина */
    padding-right: 2rem; /* Добавим отступ справа от текста */
}

.contact-info-container h3 {
    color: #333;
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #680A09;
    padding-bottom: 0.5rem;
    display: inline-block;
}

.contact-item {
    display: flex;
    align-items: flex-start; /* Выравнивание по верху иконки и текста */
    margin-bottom: 1.2rem;
    font-size: 1rem;
    line-height: 1.6;
}

.contact-item i {
    color: #680A09;
    font-size: 1.2rem;
    margin-right: 1rem;
    width: 20px; /* Фиксированная ширина для иконки */
    text-align: center;
    margin-top: 0.2em; /* Небольшой сдвиг иконки вниз для лучшего выравнивания */
}

.contact-item p {
    margin: 0;
    color: #555;
}

.contact-item a {
    color: #555;
    text-decoration: none;
    transition: color 0.3s;
}

.contact-item a:hover {
    color: #680A09;
    text-decoration: underline;
}

/* Правая колонка: Карта */
.map-container {
    min-width: 200px;
    width: 300px;
    position: absolute;
    display: block;
    z-index: 9;
    margin-left: .5rem;
}

/* Стилизация карты и кнопок */
.map-container iframe {
    width: 100%;
    height: 400px; /* Или другая высота */
    border: none;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem; /* Отступ под картой */
}

.map-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
    gap: 1rem;
}

.map-button {
    display: inline-flex; /* Use flex to align icon and text */
    align-items: center;
    gap: 0.6em; /* Space between icon and text */
    padding: 0.8rem 1.5rem; /* Adjusted padding */
    border-radius: 8px; /* Slightly more rounded corners */
    text-decoration: none;
    font-weight: 500; /* Slightly less bold */
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.12);
    border: none; /* Remove border if any */
    cursor: pointer;
}

.map-button i {
    font-size: 1.2em; /* Icon size relative to text */
    line-height: 1; /* Prevent extra space due to icon line-height */
}

.map-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.15);
}

.yandex-map-btn {
    background-color: #ffee00; /* Updated Yandex yellow */
    color: #040003;
}

.yandex-map-btn:hover {
    background-color: #ffe433;
}

.two-gis-btn {
    background-color: #b0da5a; /* 2GIS green */
    color: #fff;
}

.two-gis-btn:hover {
    background-color: #bbff2a;
}

/* Адаптивность для секции Контакты */
@media (max-width: 768px) {
    .contact-content-wrapper {
        flex-direction: column; /* Ставим колонки друг под другом */
        gap: 2rem;
    }

    .contact-container h2 {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    .contact-section {
        padding: 3rem 1rem;
    }

    .map-container iframe {
        height: 300px; /* Уменьшаем высоту карты */
    }
}

/* Убираем старые стили для .map, если они были специфичны */
/* .map { ... } */
/* .map iframe { ... } */

/* Секция видео */
/* ... existing code ... */