/* Сброс стилей и базовые настройки */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #26a69a;
  --primary-dark: #00897b;
  --primary-light:rgb(84, 224, 192);
  --secondary: #ff5722;
  --dark: #263238;
  --light: #eceff1;
  --gray: #78909c;
  --white: #ffffff;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
  --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

body {
  font-family: "Roboto", sans-serif;
  color: var(--dark);
  background-color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  line-height: 1.2;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.btn {
  display: inline-block;
  padding: 14px 32px;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 50px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  box-shadow: var(--shadow);
}

.btn:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(38, 166, 154, 0.4);
}

.btn-secondary {
  background: var(--secondary);
}

.btn-secondary:hover {
  background: #e64a19;
  box-shadow: 0 8px 25px rgba(255, 87, 34, 0.4);
}

.section {
  padding: 100px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 60px;
  position: relative;
}

.section-title h2 {
  font-size: 2.5rem;
  color: var(--dark);
  margin-bottom: 20px;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--primary);
  border-radius: 2px;
}

/* Шапка сайта */
.top-bar {
  background: var(--dark);
  color: var(--light);
  padding: 12px 0;
  font-size: 0.9rem;
}

.top-bar-content {
  display: flex;        
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap; /* Принудительно отображать в одну линию */
}

.contact-info-top {
  color: var(--light);
  display: flex;
  flex-direction: row;
  gap: 30px;
  min-width: 0; /* Разрешить элементу сжиматься */
}

.contact-info {
  display: flex;
  gap: 30px;
  min-width: 0; /* Разрешить элементу сжиматься */
}

.contact-info a {
  color: var(--light);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
  white-space: nowrap; /* Предотвратить перенос текста внутри ссылок */
  overflow: hidden; /* Скрываем текст, который выходит за границы */
  text-overflow: ellipsis; /* Добавляем многоточие для обрезанного текста */
}

.contact-info a:hover {
  color: var(--primary-light);
}

.contact-info-top a {
  color: var(--light);
}
.contact-info-top a:hover {
  color: var(--primary-light);
}

.social-icons {
  display: flex;
  gap: 15px;
  min-width: 0; /* Разрешить элементу сжиматься */
}

.social-icons a {
  color: var(--light);
  font-size: 1.1rem;
  transition: var(--transition);
}

.social-icons a:hover {
  color: var(--primary-light);
  transform: translateY(-3px);
}

/* Основная навигация */
.header {
  background: var(--white);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  position: relative; /* Добавляем для правильного позиционирования дочерних элементов */
  z-index: 1001; /* Гарантируем, что кнопка-бургер будет видна */
}

.logo {
  font-family: "Montserrat", sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo span {
  color: var(--secondary);
}

.nav-menu {
  display: flex; /* Делаем flex-контейнером для кнопки и меню */
  align-items: center; /* Выравниваем по центру */
}

.nav-menu-content ul {
  display: flex; /* Отображаем элементы меню горизонтально */
  list-style: none;
  gap: 30px;
}

.nav-menu a {
  text-decoration: none;
  color: var(--dark);
  font-weight: 500;
  font-size: 1.05rem;
  position: relative;
  transition: var(--transition);
}

.nav-menu a:hover {
  color: var(--primary);
}

.nav-menu a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: var(--transition);
}

.nav-menu a:hover::after {
  width: 100%;
}

.search-box {
  display: flex;
  align-items: center;
  background: var(--light);
  border-radius: 30px;
  padding: 8px 20px;
}

.search-box input {
  border: none;
  background: transparent;
  outline: none;
  width: 180px;
  font-size: 1rem;
}

.search-box button {
  background: none;
  border: none;
  color: var(--gray);
  cursor: pointer;
  font-size: 1.1rem;
}

.mobile-toggle {
  display: none; /* Скрываем кнопку на ПК */
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero блок */
.hero {
  background: linear-gradient(
      135deg,
      rgba(38, 166, 154, 0.5) 0%,
      rgba(25, 118, 210, 0.7) 100%
    ),
    url("../assets/images/hero-bg.jpg")
      no-repeat center/cover; 
  color: var(--white);
  padding: 140px 0 100px;
  position: relative;
  overflow: hidden;
}


.hero-content {
  max-width: 650px;
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 40px;
  opacity: 0.9;
}

.hero-btns {
  display: flex;
  gap: 20px;
}

.hero-btn {
  background: #26a69a;
}

.hero-btn:hover {
  background:rgb(44, 158, 147);
}

/* Преимущества */
.benefits {
  background: var(--light);
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.benefit-card {
  background: var(--white);
  border-radius: 16px;
  padding: 40px 30px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.benefit-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.benefit-icon {
  width: 80px;
  height: 80px;
  background: var(--primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 25px;
  font-size: 2rem;
  color: var(--primary-dark);
}

.benefit-card h3 {
  margin-bottom: 15px;
  font-size: 1.4rem;
}

/* Статистика преимуществ */
.benefits-stats {
  display: flex;
  justify-content: space-around;
  align-items: center;
  margin-top: 80px;
  text-align: center;
  flex-wrap: wrap;
  gap: 40px;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-number {
  font-family: "Montserrat", sans-serif;
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 5px;
  line-height: 1;
}

.stat-label {
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--dark);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Лайтбокс для галереи */
.lightbox-overlay {
    /* display: none; */ /* Удаляем display: none */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    display: flex; /* Всегда flex, чтобы transition работал */
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox-overlay.active {
    /* display: flex; */ /* Это теперь не нужно, так как display всегда flex */
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.lightbox-image {
    max-width: 100%;
    max-height: 100%;
    display: block;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 40px;
    cursor: pointer;
    z-index: 1001;
}

.lightbox-prev, .lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    padding: 15px 20px;
    cursor: pointer;
    font-size: 25px;
    border-radius: 5px;
    transition: background 0.3s ease;
    z-index: 1001;
}

.lightbox-prev:hover, .lightbox-next:hover {
    background: var(--primary);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

@media (max-width: 768px) {
    .lightbox-close {
        top: 10px;
        right: 15px;
        font-size: 30px;
    }

    .lightbox-prev, .lightbox-next {
        padding: 10px 15px;
        font-size: 20px;
        /*left: 10px;*/
        right: 10px;
    }

    .lightbox-prev {
       /* left: 5px;*/
        width: max-content;
    }

    .lightbox-next {
       /* right: 5px;*/
        width: max-content;
    }
}

/* Модальное окно для услуг */
.service-modal-overlay {
    display: flex; /* Всегда flex, чтобы transition работал */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.service-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.service-modal-content {
    background: var(--white);
    border-radius: 16px;
    padding: 30px;
    max-width: 700px;
    max-height: 90vh; /* Ограничиваем высоту для скролла */
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
}

.service-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background-color: var(--secondary); /* Красный фон */
    color: var(--white); /* Белый крестик */
    width: 40px; /* Ширина для круга */
    height: 40px; /* Высота для круга */
    border-radius: 50%; /* Круглая форма */
    display: flex; /* Для центрирования крестика */
    justify-content: center; /* Центрирование по горизонтали */
    align-items: center; /* Центрирование по вертикали */
    font-size: 24px; /* Уменьшаем размер крестика для круга */
    cursor: pointer;
    z-index: 1001;
    transition: background-color 0.3s ease; /* Плавный переход для фона */
}

.service-modal-close:hover {
    background-color:rgb(230, 79, 33); /* Изменение цвета при наведении */
}

.service-modal-image {
    max-width: 100%;
    height: 250px; /* Фиксированная высота для изображений */
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 20px;
}

.service-modal-title {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--dark);
}

.service-modal-text {
    font-size: 1rem;
    color: var(--gray);
    line-height: 1.7;
    overflow-y: auto; /* Добавляем скролл для текста */
    padding-right: 15px; /* Отступ для скроллбара */
}

@media (max-width: 768px) {
    .service-modal-content {
        max-width: 95%;
        padding: 20px;
    }

    .service-modal-title {
        font-size: 1.5rem;
    }

    .service-modal-close {
        font-size: 20px; /* Уменьшаем размер крестика на мобильных */
        width: 35px; /* Уменьшаем размер кнопки на мобильных */
        height: 35px; /* Уменьшаем размер кнопки на мобильных */
        top: 10px;
        right: 15px;
    }

    .service-modal-image {
        height: 180px;
    }
}

/* Модальное окно для статей блога */
.blog-modal-overlay {
    display: flex; /* Всегда flex, чтобы transition работал */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.blog-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.blog-modal-content {
    background: var(--white);
    border-radius: 16px;
    padding: 30px;
    max-width: 800px;
    max-height: 90vh; /* Ограничиваем высоту для скролла */
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
}

.blog-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background-color: var(--secondary); /* Красный фон */
    color: var(--white); /* Белый крестик */
    width: 40px; /* Ширина для круга */
    height: 40px; /* Высота для круга */
    border-radius: 50%; /* Круглая форма */
    display: flex; /* Для центрирования крестика */
    justify-content: center; /* Центрирование по горизонтали */
    align-items: center; /* Центрирование по вертикали */
    font-size: 24px; /* Уменьшаем размер крестика для круга */
    cursor: pointer;
    z-index: 1001;
    transition: background-color 0.3s ease; /* Плавный переход для фона */
}

.blog-modal-close:hover {
    background-color: rgb(230, 79, 33); /* Изменение цвета при наведении */
}

.blog-modal-image {
    max-width: 100%;
    height: 300px; /* Фиксированная высота для изображений */
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 20px;
}

.blog-modal-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    color: var(--gray);
    font-size: 0.95rem;
    flex-wrap: wrap;
}

.blog-modal-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.blog-modal-meta i {
    color: var(--primary);
}

.blog-modal-title {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--dark);
}

.blog-modal-text {
    font-size: 1rem;
    color: var(--gray);
    line-height: 1.7;
    overflow-y: auto; /* Добавляем скролл для текста */
    padding-right: 15px; /* Отступ для скроллбара */
}

@media (max-width: 768px) {
    .blog-modal-content {
        max-width: 95%;
        padding: 20px;
    }

    .blog-modal-close {
        font-size: 20px;
        width: 35px;
        height: 35px;
        top: 10px;
        right: 15px;
    }

    .blog-modal-image {
        height: 180px;
    }

    .blog-modal-title {
        font-size: 1.6rem;
    }

    .blog-modal-meta {
        gap: 10px;
        font-size: 0.85rem;
    }
}

/* Услуги */

.btn-service {
  background: #26a69a;
}

.btn-service:hover {
  background:rgb(45, 180, 167);
  color: white;
}


.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.service-card {
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.service-img {
  height: 220px;
  overflow: hidden;
}

.service-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.service-card:hover .service-img img {
  transform: scale(1.1);
}

.service-content {
  padding: 25px;
}

.service-content h3 {
  margin-bottom: 15px;
  font-size: 1.4rem;
}

.service-content p {
  margin-bottom: 20px;
  color: var(--gray);
}

/* Прайс-таблица */
.pricing {
  background: var(--light);
}

.price-table-container {
  overflow-x: auto;
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.price-table {
  width: 100%;
  min-width: 800px;
  border-collapse: collapse;
  background: var(--white);
}

.price-table th,
.price-table td {
  padding: 20px;
  text-align: left;
  border-bottom: 1px solid #e0e0e0;
}

.price-table th {
  background: var(--primary);
  color: var(--white);
  font-weight: 500;
}

.price-table tr:nth-child(even) {
  background: rgba(236, 239, 241, 0.5);
}

.price-table tr:hover {
  background: rgba(38, 166, 154, 0.05);
}

.price {
  color: var(--primary-dark);
  font-weight: 700;
  font-size: 1.2rem;
}

/* Форма записи */
.appointment {
  background: linear-gradient(
    135deg,
    var(--primary) 0%,
    var(--primary-dark) 100%
  );
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.appointment .section-title h2 {
  color: var(--white);
}

.appointment .section-title::after {
  background: var(--white);
}

.appointment-form {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 40px;
  max-width: 700px;
  margin: 0 auto;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 25px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 20px;
  border: none;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.15);
  color: var(--white);
  font-size: 1rem;
  transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.25);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

/* Галерея */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.gallery-item {
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  height: 280px;
  box-shadow: var(--shadow);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(38, 166, 154, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay i {
  color: var(--white);
  font-size: 2.5rem;
}

/* Блог */


.btn-blog {
  background: #26a69a;
}

.btn-blog:hover {
  background:rgb(45, 180, 167);
  color: white;
}

.blog {
  background: var(--light);
}

.blog-slider {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.blog-slides {
  display: flex;
  transition: transform 0.8s ease;
}

.blog-slide {
  min-width: 100%;
  display: flex;
  background: var(--white);
}

.blog-img {
  flex: 1;
  min-height: 400px;
}

.blog-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-content {
  flex: 1;
  padding: 40px;
}

.blog-content .date {
  color: var(--primary);
  font-weight: 500;
  margin-bottom: 15px;
  display: block;
}

.blog-content h3 {
  font-size: 1.8rem;
  margin-bottom: 20px;
}

.blog-content p {
  margin-bottom: 25px;
  color: var(--gray);
}

.blog-nav {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
}

.blog-dot {
  width: 12px;
  height: 12px;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid #26a69a;
  border-radius: 50%;
  cursor: pointer;
  transition: var(--transition);
}

.blog-dot.active {
  background: var(--primary);
  transform: scale(1.2);
}

/* Специалисты */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.team-card {
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.team-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.team-img {
  height: 320px;
  overflow: hidden;
}

.team-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.team-card:hover .team-img img {
  transform: scale(1.1);
}

.team-content {
  padding: 25px;
  text-align: center;
}

.team-content h3 {
  font-size: 1.4rem;
  margin-bottom: 5px;
}

.team-content .position {
  color: var(--primary);
  font-weight: 500;
  margin-bottom: 15px;
  display: block;
}

.team-social {
  display: flex;
  justify-content: center;
  gap: 15px;
}

.team-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--dark);
  transition: var(--transition);
}

.team-social a:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-3px);
}

/* Контакты */
.contact {
  background: var(--light);
}

.contact-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.contact-item {
  display: flex;
  gap: 15px;
}

.contact-icon {
  width: 60px;
  height: 60px;
  background: var(--primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--primary-dark);
  flex-shrink: 0;
}

.contact-details h3 {
  margin-bottom: 8px;
  font-size: 1.3rem;
}

.map-container {
  height: 400px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

#map {
  width: 100%;
  height: 100%;
}

/* Футер */
.footer {
  background: var(--dark);
  color: var(--light);
  padding: 80px 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 60px;
}

.footer-col h3 {
  font-size: 1.4rem;
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 15px;
}

.footer-col h3::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background: var(--primary);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: var(--light);
  text-decoration: none;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-links a:hover {
  color: var(--primary-light);
  transform: translateX(5px);
}

.footer-links i {
  font-size: 0.8rem;
}

.footer-social {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.footer-social a {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--light);
  font-size: 1.2rem;
  transition: var(--transition);
}

.footer-social a:hover {
  background: var(--primary);
  transform: translateY(-5px);
}

.copyright {
  text-align: center;
  padding-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
  opacity: 0.8;
}

/* Кнопка "Наверх" */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--primary);
  color: var(--white);
  border: 1px solid white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  box-shadow: var(--shadow);
  z-index: 999;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background:rgb(62, 199, 185);
  transform: translateY(-5px);
}

/* Анимации */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fadeInUp {
  animation: fadeInUp 0.8s ease forwards;
}

.delay-1 {
  animation-delay: 0.2s;
}

.delay-2 {
  animation-delay: 0.4s;
}

.delay-3 {
  animation-delay: 0.6s;
}

/* Медиа-запросы */
@media (max-width: 992px) {
  .contact-info {
    gap: 15px;
  }

  .social-icons {
    gap: 10px;
  }

  .hero h1 {
    font-size: 2.8rem;
  }

  .section {
    padding: 80px 0;
  }

  .blog-slide {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  /* Скрытие адреса на маленьких экранах */
  .contact-info a:nth-child(3) {
    display: none;
  }
  .social-icons {
    font-size: 0.9rem; /* Уменьшаем размер иконок соцсетей */
  }

  .nav-menu { /* Это теперь контейнер для кнопки и меню */
    display: flex;
    align-items: center;
    justify-content: flex-end; /* Прижимаем кнопку вправо */
    flex-grow: 1; /* Чтобы занимал доступное пространство */
  }

  .mobile-toggle {
    display: block; /* Показываем кнопку */
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1000; /* Убедиться, что он поверх всего */
  }

  .mobile-toggle--open { /* Этот класс применяется к .mobile-toggle */
    z-index: 1001; /* Еще выше, если нужно */
  }

  .nav-menu-content { /* Это теперь само меню */
    visibility: hidden; /* Скрываем по умолчанию */
    max-height: 0; /* Скрываем по высоте */
    opacity: 0; /* Делаем невидимым */
    transition: max-height 0.4s ease-in-out, opacity 0.4s ease-in-out, visibility 0.4s ease-in-out; /* Плавная анимация */
    position: absolute; /* Позиционируем абсолютно */
    top: 70px; /* Высота шапки */
    left: 0;
    width: 100%;
    background: var(--white);
    box-shadow: var(--shadow);
    padding: 0; /* Убираем padding, будем добавлять в open состоянии */
    text-align: center;
    overflow: hidden; /* Скрываем содержимое, выходящее за границы */
    flex-direction: column;
    z-index: 998; /* Чуть ниже, чем у кнопки */
  }

  .nav-menu-content ul {
    flex-direction: column; /* Элементы списка вертикально */
    gap: 0; /* Убираем gap для вертикального списка */
  }

  .nav-menu--open .nav-menu-content { /* Когда nav-menu имеет класс --open, применяем к nav-menu-content */
    visibility: visible;
    max-height: calc(100vh - 70px - 20px); /* Высота меню: 100% от вьюпорта минус высота шапки и небольшой отступ снизу */
    opacity: 1;
    padding: 20px 0; /* Добавляем padding при открытии */
    overflow-y: auto; /* Добавляем скролл, если контент не помещается */
  }

  /* .nav-menu--open li и .nav-menu--open a удалены или перенесены в .nav-menu-content ul li и .nav-menu-content ul a */
  .nav-menu-content ul li {
    margin-bottom: 10px;
  }
  .nav-menu-content ul a {
      padding: 10px 0;
      display: block;
      width: 100%;
  }

  .search-box {
    display: none; /* Скрываем поле поиска на мобильных */
  }

  .hero h1 {
    font-size: 2.4rem;
  }

  .hero-btns {
    flex-direction: column;
  }

  .section-title h2 {
    font-size: 2rem;
  }
}

@media (max-width: 576px) {
  .top-bar {
    font-size: 0.8rem; /* Уменьшаем шрифт для очень маленьких экранов */
  }


  .nav-container {
      flex-direction: column;
  }


  .contact-info-top {
    display:flex;
    flex-direction:column;
  }

  .contact-info {
    gap: 10px;
    display: flex;
    flex-direction: column;
  }
  .contact-info a {
    white-space: normal; /* Разрешаем перенос текста внутри ссылок */
  }
  .social-icons {
    display: inline-grid;
    gap: 5px; /* Дополнительно уменьшаем gap для социальных иконок */
  }
  .hero {
    padding: 100px 0 80px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .appointment-form {
    padding: 30px 20px;
  }
}

.no-scroll {
  overflow: hidden; /* Запрет прокрутки */
}
