* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    overflow-x: hidden; /* Скрывает горизонтальную прокрутку */

    font-family: Arial, sans-serif;
}
.background-image {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh; /* Высота изображения теперь равна высоте окна браузера */
    overflow: hidden;
    z-index: 10; /* Убедимся, что фон ниже второй секции */
}

.background-image img {
    width: 100vw;
    height: auto;
    object-fit: cover;
}
@media only screen and (max-width: 1024px) {
    .background-image {
        height: 100vh; /* Для планшетов */
    }
}

@media only screen and (max-width: 600px) {
    .background-image {
        height: 120vh; /* Для смартфонов */
    }
}
.logo{
    display: flex;
    justify-content: center;
}
.logo img{       clip-path: circle(50% at 50% 50%, 50%);
    height: 40vh; /* Установи нужный размер изображения */
    object-fit: cover; /* Чтобы изображение заполняло всю область */

}
.overlay-orange {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(227, 170, 73, 0.8); /* Фиолетовый с прозрачностью 40% */
    z-index: 11;
}

.overlay-black {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0); /* Начальная непрозрачность черного слоя */
    z-index: 12;
    transition: background-color 0.3s ease; /* Плавная анимация изменения цвета */
}

.content {margin-top: 90px;
    margin-bottom: 90px;
    font-size: 20px;
    position: relative;
    color: white;
    text-align: center;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.8); /* Добавлен эффект тени текста */
    z-index: 13;
    max-width: 60vw;/*Ограничим ширину контента для удобства чтения */
    padding: 20px;
}
 p {
    line-height: 1.8;
}
.heading h1,
.heading p {
    margin-bottom: 15px;
}

.title{line-height: 72px;font-size: 36px;
}

.title2{line-height: 72px;font-size: 48px;
}

.title1{line-height: 72px;font-size: 80px;
}
.center {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%; /* Заполняет всю высоту родительского элемента */
}
.first-section {
    position: relative;
    width: 100vw;
    max-height: 200vh; /* Высота первой секции */
    background-color: #f9f9fa;
    display: flex;
    justify-content: center;
    align-items: center;
}


 /* Медиа-запросы для маленьких экранов */
 @media screen and (max-width: 1024px) {

    .background-image img {height: 100%;
        width: auto;
        
        object-fit: cover;
    }
    .centered-content,.second-section_text {
        font-size: 19px;
        max-width: 90vw;
        padding: 10px;
    }
    .title1 {
        font-size: 54px;
        line-height: 64px;
    }
    .title {
        font-size: 30px;
        line-height: 34px;
    }
    .title2 {
        font-size: 40px;
        line-height: 34px;
    }
    .centered-content .logo img {
        max-width: 250px;
    }
    .background-image {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;}
}
@media screen and (max-width: 768px) {
    
    .background-image img {height: 100%;
    width: auto;
    object-fit: cover;
}
    .centered-content, .center .second-section_text {
        font-size: 18px;
        max-width: 90vw;
        padding: 5px;
    }
    .title1 {
        font-size: 48px;
        line-height: 52px;
    }
    .title {
        font-size: 24px;
        line-height: 26px;
    }
    .title2 {
        font-size: 30px;
        line-height: 34px;
    }
    .centered-content .logo img, .second-section_text {
        max-width: 200px;
    }
    .background-image {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;}
}
@media screen and (max-width: 480px) {
    
    
    
    .background-image {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;}
    
    
    .background-image img {height: 100%; 
    width: auto;
    
    object-fit: cover;
}
    .centered-content, .second-section_text {
        font-size: 16px;
        max-width: 90vw;
        padding: 5px;
    }
    .title1 {
        font-size: 34px;
        line-height: 38px;
    }
    .title {
        font-size: 20px;
        line-height: 22px;
    }
    .title2 {
        font-size: 25px;
        line-height: 34px;
    }
    .centered-content .logo img {
        max-width: 160px;
    }
}






.second-section {
    padding: 50px;
    background: radial-gradient(circle at center, rgb(241, 174, 49) 0%, rgb(240, 187, 90) 15%, rgb(239, 226, 172) 50%, rgb(233, 177, 57) 76%, rgb(227, 137, 19) 100%);
    z-index: 999;
    position: relative;
    width: 100vw;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}










.images-container {
    display: flex;
    justify-content: center;
    gap: 20px; /* Расстояние между изображениями */
}

.image {
    flex-shrink: 0; /* Изображения не сжимаются */
}

.image img {
    border-radius: 15px;
    width: 350px; /* Размер изображений */
    height: auto;
    object-fit: cover;
}

@media screen and (max-width: 1024px) {
    .second-section_text {
        width: 85%; /* Увеличенная ширина для средних экранов */
    }

    .image img {
        max-width: 30vw; /* Уменьшенный размер изображений */
    }
    
}

@media screen and (max-width: 768px) {
    .second-section_text {
        width: 90%; /* Ещё большая ширина для небольших экранов */
        font-size: 18px; /* Уменьшаем размер шрифта */
    }

    .images-container {
        flex-direction: column; /* Переносим изображения в колонку */
        gap: 10px; /* Уменьшенное расстояние между изображениями */
    }

    .image img {
        max-width: 100%; /* Изображения занимают всю доступную ширину */
    }
}

@media screen and (max-width: 480px) {
    .second-section_text {
        width: 95%; /* Максимальная ширина для самых маленьких экранов */
        font-size: 16px; /* Ещё меньший размер шрифта */
    }

    .image img {
        width: 100%; /* Изображения продолжают занимать всю доступную ширину */
    }
}






.buttons-container {
    align-items: center;
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 50px;
}

.diagnosis-button {
    padding: 17px 35px 12px;
    background-color: #a71300; /* Основной цвет кнопки */
    color: white;
    text-decoration: none;
    border: 2px solid #7a0f01; /* Белая рамка вокруг кнопки */
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.diagnosis-button:hover {
    background-color: #a71300; /* Темнее оттенок основного цвета при наведении курсора */
}

.about-us-button {
    padding: 17px 35px 12px;
    background-color: transparent; /* Прозрачный фон */
    color: black;
    text-decoration: none;
    border: 2px solid #a71300; /* Черная рамка вокруг кнопки */
    border-radius: 5px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.about-us-button:hover {
    background-color: rgba(0, 0, 0, 0.05); /* Легкая черная заливка при наведении курсора */
}

@media (max-width: 600px) {
    .buttons-container {
        flex-direction: column; /* Изменяем направление кнопок на вертикальное */
        align-items: center; /* Выравниваем кнопки по центру */
        gap: 15px; /* Уменьшаем отступ между кнопками */
        margin-top: 30px; /* Уменьшаем верхний отступ */
    }
    
    .diagnosis-button,
    .about-us-button {
        width: 100%; /* Кнопки занимают всю ширину контейнера */
        font-size: 14px; /* Уменьшаем размер шрифта */
    }
    
    .diagnosis-button {
        padding: 8px 10px; /* Уменьшаем внутренние отступы */
    }
    
    .about-us-button {
        padding: 13px 25px 9px; /* Уменьшаем внутренние отступы */
    }
}



.subtitle {color: #a71300;
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 10px;
}
.subtitle1 {color: #a71300;
    font-size: 25px;
    font-weight: bold;
    margin-bottom: 10px;
}

li {
    font-size: 16px;
    font-style: italic;
    line-height: 1.8;
}



/* Other smaller screens or devices */
@media screen and (max-width: 800px) {
    .about {
        font-size: 18px; /* Уменьшаем размер текста */
    }
    
    .subtitle {
        font-size: 18px; /* Уменьшаем размер текста */
    }
    
    li {
        font-size: 12px; /* Уменьшаем размер текста */
    }
}

@media screen and (max-width: 500px) {
   
    .about {
        font-size: 13px; /* Уменьшаем размер текста */
    }
    .subtitle {
        font-size: 13px; /* Уменьшаем размер текста */
    }
    
    li {
        font-size: 10px; /* Уменьшаем размер текста */
    }
}



.carousel-container {z-index: 100;  display: flex;
    justify-content: center;
    align-items: center;
    background: transparent;
    position: relative;
    overflow: hidden;
    width: 100vw;;
    padding: 40px;
}
.articles-carousel {
    display: flex;
    gap: 10px;
    transition: transform 0.5s ease-in-out;
}

.article {font-weight: bold;
    
    width: 31vw;
    height: 70vh;
    border: 1px solid  rgb(199, 77, 20);
    text-align: center;
    line-height: 100px;
    background-color: rgb(253, 206, 168);
    border-radius: 15px;
    padding: 10px;
    font-size: 20px;
    display: flex;
    justify-content: center;
    align-items: center;padding-top: 20px;
}
.article img {max-width: 24vw;}

#prev, #next {font-size: 28px; 
    margin: 15px;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    padding: 20px;
    cursor: pointer;
    font-weight: bold; /* Жирный шрифт */
    background-color: transparent; /* Прозрачный фон */
    border: none; /* Отсутствие рамки */
    color: black; /* Цвет текста (можно изменить под ваш дизайн) */
}

#prev {
    left: 10px;
}

#next {
    right: 10px;
}

.btn-primary.gap:hover {
    cursor: pointer;
}







.article2 {font-weight: bold;
    max-height: 100vh;
     background:  transparent;
     border-radius: 15px;
     padding: 10px;   
 }
 
 .article2 img{
      max-height: 60vh;
      max-width: 90vw;
 }


#prev1, #next1 {font-size: 28px; 
    margin: 15px;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    padding: 20px;
    cursor: pointer;
    font-weight: bold; /* Жирный шрифт */
    background-color: transparent; /* Прозрачный фон */
    border: none; /* Отсутствие рамки */
    color: black; /* Цвет текста (можно изменить под ваш дизайн) */
}

#prev1 {
    left: 10px;
}

#next1 {
    right: 10px;
}




.article3 {font-weight: bold;
    max-height: 100vh;
     background:  transparent;
     border-radius: 15px;
     padding: 10px;   
 }
 
 .article3 img{
      max-height: 60vh;
      max-width: 90vw;
 }


#prev2, #next2 {font-size: 28px; 
    margin: 15px;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    padding: 20px;
    cursor: pointer;
    font-weight: bold; /* Жирный шрифт */
    background-color: transparent; /* Прозрачный фон */
    border: none; /* Отсутствие рамки */
    color: black; /* Цвет текста (можно изменить под ваш дизайн) */
}

#prev2 {
    left: 10px;
}

#next2 {
    right: 10px;
}

.about{
    font-size: 27px ;
}






/* Модальное окно */
.modal { 
    display: none; /* Скрыто по умолчанию */
    position: fixed;
    z-index: 1000; /* Гарантируем высокое положение над другими элементами */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* Сдвигаем окно относительно его центра */
    overflow-x: hidden;
    background-color: rgb(252, 242, 225);
    border-radius: 20px;
     font-size: 20px;
}


    .modal .modal-content {
        text-align: justify;
        background-color: transparent;
       
        border: none;
        box-shadow: 0 4px 8px 0 rgba(248, 247, 247, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
        animation-name: zoom;
        animation-duration: 0.6s;
        overflow-y: auto; /* Добавляем вертикальную прокрутку */
        max-height: 96vh; /* Ограничиваем максимальную высоту содержимого */
    
}

.modal-content{
   padding: 30px;
}
.modal-content1{  text-align: justify;
    background-color: transparent;
    
    border: none;
    box-shadow: 0 4px 8px 0 rgba(248, 247, 247, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    animation-name: zoom;
    animation-duration: 0.6s;
    overflow-y: auto; /* Добавляем вертикальную прокрутку */
    max-height: 96vh; /* Ограничиваем максимальную высоту содержимого */

    padding: 35px;
    width: 90vw;
 }
@keyframes zoom {
    from { transform: scale(0) }
    to   { transform: scale(1) }
}

a{cursor: pointer;
    text-decoration: none;
    color: inherit; 

}
/* Кнопка закрытия */

.close {
    position: fixed; /* Фиксируем позицию кнопки */
    top: 40px;       /* Переместим чуть ниже верхней границы экрана */
    right: 13px;     /* Отступ от правого края */
    z-index: 1000;   /* Самый высокий приоритет среди элементов */
    color: #070707;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;

}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

@media screen and (max-width: 768px) {
    .footer-container{font-size: 10px;}
    .article img {
        max-width: 90%; /* На маленьких экранах изображение занимает всю доступную ширину */
    }
    .article2 img{
        max-width: 90vw; /* На маленьких экранах изображение занимает всю доступную ширину */
    }
    .article3 img{
        max-width: 90vw; /* На маленьких экранах изображение занимает всю доступную ширину */
    }
    .article, .article2, .article3 {display: flex;
        justify-content: center;
        width: 90vw; /* Уменьшаем ширину статьи до 90% ширины экрана */
        font-size: 14px; /* Уменьшаем размер шрифта */
        max-height: 60vh; /* Ограничиваем максимальную высоту */
        line-height: 75px; /* Подстраиваем межстрочный интервал */
    }

    .carousel-container {
        padding: 20px; /* Уменьшаем отступы */
    }

    #prev, #next,  #prev1, #next1, #prev2, #next2{
        font-size: 24px; /* Уменьшаем размер кнопок */
        padding: 10px; /* Уменьшаем отступы внутри кнопок */
    }

    .modal-content img{
       
       max-width: 80vw; /* Делаем шире для маленьких экранов */
    }
}

.section4 {
    background-image: url('стулья.jpg'); /* Указываем путь к изображению */
    background-size: cover; /* Растягиваем изображение на весь блок */
    background-position: center; /* Центрируем изображение */
    z-index: 998;
    width: 100%;
    text-align: center;
    position: relative; /* Позволяет позиционировать дочерние элементы относительно этого блока */
    min-height: 300px; /* Минимальная высота секции, можно изменить по необходимости */
    background-color: #333; /* Фоновый цвет секции */
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .section4::before {z-index: -1;
    content: '';
    position: absolute;
    top: 0px;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 0, 255, 0.4); /* Полупрозрачный фиолетовый цвет */
    background-blend-mode: multiply; /* Применяем режим смешивания цветов */
  }
  
  .section4 content {
    position: relative;
    z-index: 999; /* Обеспечивает отображение содержимого поверх фона */
    width: 70%;
    margin: 0 auto;
    padding: 20px;
    background-color: white;
    text-align: center;
  }


.overlay1 {z-index: 1000; 
    
    font-size: 20px;
    width: 50vw;
    background-color: white;
    padding: 90px;
    box-sizing: border-box;
    text-align: center;}

    .image1{position: absolute;
        z-index: -1;
        max-width: 100%;
        max-height: 100%;
        overflow: hidden; /* Обрезаем содержимое, выходящее за пределы контейнера */
}
.top{
    padding-top: 90px;
}




.zev {
    gap:20px;
    width: 90%;
    display: flex;
    justify-content: space-around;
    align-items: center;
    text-align:center;
    font-size: 18px;
}
.zev img{
    max-height: 70vh;
    width: auto;
    max-width: 48vw;
}
.text{max-width: 50vw;
    font-size: 20px;
    text-align: justify;
}



.cours {
    font-style: italic;
}

.bold {
    font-weight: bold;
}

/* Медиазапросы для адаптивности */
@media only screen and (max-width: 768px) {
    .overlay2,
    .modal-container {
        width: 95%; /* Увеличиваем ширину на небольших экранах */
    }

    .nav-buttons {
        flex-direction: column; /* Меняем направление кнопок на вертикальное */
        align-items: center;
    }

    .nav-buttons button {
        margin-bottom: 10px; /* Добавляем отступ между кнопками */
    }

    .terapiya {
        flex-direction: column; /* Меняем направление контента на вертикальное */
    }

    .image2 img {
        max-width: 100%;
    }
}
@media only screen and (max-width: 768px) {
    .modal {max-width: 90vw;
        font-size: 8px; /* Уменьшаем основной размер шрифта */
    }
    .overlay1{width: 90vw;
    font-size: 12px;}
    .zev{flex-wrap: wrap;
        font-size: 10px;
    
    }
    .text{ font-size: 14px;
        max-width: 90vw;
    }
    
}

.media{gap:20px;
    display: flex;
    justify-content: center;
}
.media img{border-radius: 50%; 
    
    max-width: 9vw;
    max-height: 10vh;
}
.media1 img{border-radius: 50%; 
    
    max-width: 9vw;
    max-height: 10vh;
}

.dropdown-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 999; /* Чтобы кнопка была всегда сверху */
}

.dropdown-btn button {line-height: 0.5;
    cursor: pointer;
    padding: 12px 24px;
    background-color: transparent; /* Прозрачный фон */
    color: #333;
    border: 1px solid #ccc;
    outline: none;
    font-size: 16px;
    transition: background-color 0.3s ease; 
}

.dropdown-btn button:hover {
    background-color: rgba(255, 255, 255, 0.7); /* Полупрозрачная белая заливка при наведении */
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #fff;
    min-width: 200px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 2100;
    opacity: 0; /* Исходная непрозрачность */
    transform: scaleY(0); /* Исходный масштаб по оси Y */
    transition: all 0.3s ease-in-out; /* Плавное появление */
}

.dropdown-content a { 
    color: black;
    text-decoration: none;
    display: block;
    padding-right:  30px;
    padding-left: 10px;
    transition: background-color 0.2s ease;
}

.dropdown-content a:hover {
    background-color: #ddd;
}

.show {
    display: block;
    opacity: 1; /* Появление списка */
    transform: scaleY(1); /* Масштабирование до нормального размера */
}


.footer-container {color: white;
    z-index: 99;
    position: relative;
    background-color: #601703;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.column {color: white;
    width: 33%;
    text-align: center;
}
 

.social-icons a {color: white;
    display: inline-block;
    margin-right: 10px;
}

.social-icons img {border-radius: 50%; 
    height: 30px;
}





.scroll-top-btn {font-size: 90px;
    position: fixed;
    bottom: 30px;
    right: 40px;
    z-index: 9999; /* Увеличенное значение z-index */
}

.scroll-top-btn button {z-index: 10000;
    width: 50px;
    height: 50px;
    background-color: transparent;
    color: rgb(255, 246, 246);
    border: none;
    border-radius: 20%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.3s ease;
}

.scroll-top-btn button:hover {font-weight: bolder;
    background-color: transparent;
}

.scroll-top-btn button i {
    font-size: 22px;
}

.show-scroll-top {
    display: block;
}

.left{ text-align: left;
}
.right{ text-align: right;}







.tbl {display: flex;
   
}
.pad{ font-size: 18px;
    padding: 35px;

    gap: 10px;
    margin-left: 20vw;
    display: flex;
    justify-content: center;
    width: 70vw;
    text-align: left;
    border: 1px solid #ccc;
    background-color: #f9f9f9;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border-radius: 0 40px 0 40px; 
align-items: center;
}
/* Стилизация элементов внутри .tbl1 */
.tbl1 {font-size: 18px;
    margin-left: 5vw;
    display: flex;
    justify-content: center;
    width: 65vw;
    text-align: left;
    padding: 35px;
    border: 1px solid #ccc;
    background-color: #f9f9f9;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border-radius: 0 40px 0 40px; 
align-items: center;
}
.tbl img{padding: 10px;
    max-height: 60vh;
max-width: 24vw;}

/* Адаптация под мобильные устройства */
@media screen and (max-width: 768px) {
    .tbl1, .pad{margin-left: 0;
        width: 95vw;
        flex-wrap: wrap;
        font-size: 12px;
    }
   
    .tbl img{
        max-height: 60vh;
        max-width: 50vw;
    }
    
}

.modal img{
    max-height: 95vh;}
