/* Основной стиль (дизайн для компьютера) */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    line-height: 1.6;
    color: #2a264b;
    overflow-x: hidden;
}

/* Header */
header {
    background-color: #2a264b;
    color: #fff;
    padding: 1rem;
    position: relative;
    z-index: 100;
}

header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

header .logo {
    flex: 0 0 auto;
    margin-bottom: 10px;
}

header .logo img {
    width: 160px;
    height: auto;
}

nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    flex: 1;
}

nav a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s;
    font-size: 18px;
    padding: 5px 10px;
}

nav a:hover {
    color: #06f;
}

/* Hero Section */
.hero {
    position: relative;
    color: #2a264b;
    text-align: center;
    padding: 100px 20px 50px;
    overflow: hidden;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
}

.hero p {
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
}

.hero .btn {
    display: inline-block;
    margin-top: 1.5rem;
    padding: 12px 30px;
    background: linear-gradient(45deg, #007bff, #00c6ff);
    color: #fff;
    text-decoration: none;
    border-radius: 15px;
    transition: background 0.3s;
    position: relative;
    z-index: 2;
}

.hero .btn:hover {
    background: linear-gradient(45deg, #0056b3, #0096ff);
}

.hero_img {
    position: relative;
    width: 100%;
    /*max-width: 1200px;*/
    height: auto;
    margin: 30px auto 0;
    display: block;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    z-index: 1;
}

/* Counter Section */
.counter-section {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    padding: 2rem 1rem;
    background-color: #e6f0ff;
}

.counter-box {
    background-color: #fff;
    padding: 25px;
    border-radius: 10px;
    min-width: 150px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    flex: 1 1 150px;
}

.counter-box h1 {
    font-size: 2.5em;
    color: #007bff;
    margin-bottom: 10px;
}

.counter-box p {
    font-size: 0.9em;
    color: #666;
}

/* Обновленный CSS для секции "О нас" (About Section) */

.centered-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    max-width: 1500px;
    margin: 0 auto;
    padding: 50px 20px;
}

.about-content {
    flex: 1 1 600px;
    max-width: 800px;  /* Добавляем максимальную ширину для текста */
    max-width: 100%;
    padding: 0 15px;
    order: 1; /* По умолчанию текст идет первым */
    line-height: 1.6;  /* Улучшаем читаемость */
    font-size: 20px;
}

.about-images {
    flex: 1 1 500px;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    gap: 30px;
    order: 2; /* По умолчанию изображения идут вторыми */
}

/* На больших экранах меняем порядок и расположение */
@media (min-width: 992px) {
    .about-content {
        order: 1; /* Текст остается слева */
    }
    
    .about-images {
        order: 2; /* Изображения справа */
        margin-top: 0; /* Убираем отступ сверху */
    }
}

/* На мобильных устройствах изображения под текстом */
@media (max-width: 991px) {
    .about-content {
        order: 1; /* Текст сверху */
        max-width: 100%;  /* На мобильных - полная ширина */
    }
    
    .about-images {
        order: 2; /* Изображения снизу */
        margin-top: 30px; /* Добавляем отступ между текстом и изображениями */
    }
    
    .about-images img {
        max-width: 100%; /* Полная ширина на мобильных */
    }
}

/* Services Section */
.services-section {
    padding: 60px 20px;
    background-color: #f8f9fa;
}

.services-section h1 {
    font-size: 2.5rem;
    color: #2a264b;
    margin-bottom: 40px;
    text-align: center;
}

.catalog {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 0px;
    max-width: 1200px;
    margin: 0 auto;
}

.item {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.item h1 {
    font-size: 1.8rem;
    color: #2a264b;
    margin-bottom: 15px;
}

.item h4 {
    font-size: 1rem;
    color: #555;
    margin-bottom: 20px;
    line-height: 1.5;
}

.service_img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

/* Why Us Section */
.why-us-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 60px;
}

.why-us-item {
    flex: 1 1 300px;
    max-width: 350px;
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.img_why {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    display: block;
}

.why-us-item h3 {
    font-size: 25px;
    color: #2a264b;
    margin-bottom: 15px;
}

.why-us-item p {
    color: #666;
    line-height: 1.6;
    font-size: 22px;
}
    /* Добавляем стили для анимации */
    .why-us-item {
        transition: all 0.3s ease;
        cursor: pointer; /* Курсор-указатель */
    }
    
    .why-us-item:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    }

/* Testimonials Section */
.testimonials-section {
    padding: 60px 20px;
    background-color: #e6f0ff;
}

.testimonials-title {
    font-size: 2.5rem;
    margin-bottom: 40px;
    text-align: center;
}

.testimonials-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.testimonial-card {
    flex: 1 1 300px;
    max-width: 400px;
    background-color: #fff;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.profile-pic {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    float: left;
    margin-right: 15px;
    object-fit: cover;
}

.name {
    color: #007bff;
    font-size: 1.3rem;
    margin-bottom: 15px;
    padding-top: 10px;
}

.feedback {
    font-size: 1rem;
    color: #555;
    line-height: 1.6;
    clear: both;
}

/* Contact Section */
.contact-section {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-info {
    flex: 1 1 300px;
    max-width: 450px;
    background-color: #d1e9ff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.contact-info p {
    margin-bottom: 25px;
    font-size: 1.1rem;
}

.contact-info strong {
    display: block;
    margin-bottom: 5px;
    color: #2a264b;
    font-size: 1.2rem;
}

.contact-form {
    flex: 1 1 300px;
    max-width: 500px;
    background-color: #d1e9ff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.contact-form h2 {
    font-size: 2rem;
    color: #2a264b;
    margin-bottom: 25px;
    text-align: center;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #007bff;
    outline: none;
}

.contact-form textarea {
    min-height: 150px;
    resize: vertical;
}

.contact-form button {
    width: 100%;
    padding: 14px;
    background: linear-gradient(45deg, #007bff, #00c6ff);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
}

.contact-form button:hover {
    background: linear-gradient(45deg, #0056b3, #0096ff);
    transform: translateY(-2px);
}

/* Footer */
.footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding: 30px 20px;
    background-color: #2a264b;
    color: white;
}

.footer-logo a {
    color: #fff;
    font-size: 1.8rem;
    text-decoration: none;
    font-weight: bold;
    margin-bottom: 15px;
    display: inline-block;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-nav a {
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s;
}

.footer-nav a:hover {
    color: #007bff;
}

/* Медиа-запросы для адаптивности */
@media (max-width: 1024px) {
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .about-content, .about-images {
        flex: 1 1 100%;
    }
    
    .about-images {
        margin-top: 30px;
    }
}

@media (max-width: 768px) {
    header .container {
        flex-direction: column;
    }
    
    nav {
        margin-top: 15px;
    }
    
    .hero {
        padding: 80px 20px 40px;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .counter-box {
        flex: 1 1 120px;
        padding: 20px 10px;
    }
    
    .counter-box h1 {
        font-size: 2em;
    }
    
    .services-section h1,
    .testimonials-title,
    .contact-form h2 {
        font-size: 2rem;
    }
    
    .item h1 {
        font-size: 1.6rem;
    }
    
    .service_img {
        height: 200px;
    }
    
    .why-us-item {
        flex: 1 1 100%;
        max-width: 400px;
    }
    
    .contact-info, .contact-form {
        flex: 1 1 100%;
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 60px 15px 30px;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .hero .btn {
        padding: 10px 25px;
        font-size: 0.9rem;
    }
    
    .counter-box {
        flex: 1 1 100px;
        padding: 15px 5px;
    }
    
    .counter-box h1 {
        font-size: 1.8em;
    }
    
    .counter-box p {
        font-size: 0.8em;
    }
    
    .services-section h1,
    .testimonials-title,
    .contact-form h2 {
        font-size: 1.8rem;
    }
    
    .catalog {
        grid-template-columns: 1fr;
    }
    
    .item {
        padding: 20px;
    }
    
    .service_img {
        height: 180px;
    }
    
    .footer {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .footer-nav {
        justify-content: center;
    }
    
    nav a {
        font-size: 13px;
        padding: 5px 8px;
    }

    /* Контейнер: выравниваем иконки в линию */
.social-icons {
  display: flex;
  gap: 20px;            /* расстояние между иконками */
  justify-content: center;
  margin: 20px 0;
}

/* Кнопка-иконка */
.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background-color: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #000000;
  text-decoration: none;
}

/* SVG: увеличенный размер */
.social-icon svg {
  width: 8px;
  height: 8px;
}

/* Эффект при наведении */
.social-icon:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

    .image-scroll {
    display: flex; /* Располагаем картинки в строку */
    overflow-x: auto; /* Включаем горизонтальную прокрутку */
    gap: 10px; /* Расстояние между картинками */
    padding: 10px;
    border: 2px solid #ccc; /* Просто рамка для наглядности */
    max-width: 100%; /* Чтобы не выходило за пределы экрана */
    scroll-behavior: smooth; /* Плавная прокрутка */
    }

    .image-scroll img {
    height: 150px; /* Высота всех картинок одинакова */
    flex-shrink: 0; /* Картинки не сжимаются */
    border-radius: 8px; /* Скруглённые углы */
    }

    
}
/* Page components, kept after the base styles. */

        header {
            position: relative;
            height: 260px;
            overflow: hidden; /* Обрезаем всё что выходит за границы */
        }

        header nav {
            margin-top: 70px; /* сдвигаем вниз на 50px, подстрой по вкусу */
        }

        .header-bg {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            
            z-index: 0;
        }



        header .container {
            position: relative;
            z-index: 2; /* Контент поверх всего */
            display: flex;
            justify-content: space-between;
            align-items: center;
            height: 100%;
            padding: 0 20px;
        }
/* Стили для десктопа */
header nav a {
    font-size: 24px; /* увеличиваем размер шрифта на компьютере */
    margin-left: 20px; /* расстояние между ссылками */
    line-height: 1.5;  /* высота строки */
}

/* Стили для мобильных устройств */
@media (max-width: 768px) {
    header nav a {
        font-size: 16px;   /* уменьшаем шрифт на телефоне */
        margin-left: 10px; /* уменьшаем расстояние между ссылками */
        line-height: 0.8;
    }
} 

        /* Стили для модального окна */
        .modal {
            display: none;
            position: fixed;
            z-index: 1000;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0,0,0,0.9);
            overflow: auto;
        }
        
        .modal-content {
            margin: auto;
            display: block;
            width: 30%;
            max-width: 1200px;
            max-height: 80vh;
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
        }
        
        .close {
            position: absolute;
            top: 15px;
            right: 35px;
            color: #f1f1f1;
            font-size: 40px;
            font-weight: bold;
            cursor: pointer;
        }
        
        /* Анимация для модального окна */
        .modal-content, .close {
            animation: zoom 0.6s;
        }
        
        
        /* Делаем все изображения кликабельными */
        .clickable-image {
            cursor: pointer;
            transition: transform 0.3s;
        }
        
        .clickable-image:hover {
            transform: scale(1.02);
        }
        body.modal-open .fab-container {
          display: none !important;
        }

        #about {
          display: flex;
          align-items: stretch; /* обе колонки одинаковой высоты */
          gap: 40px;
          flex-wrap: wrap; /* ✅ важно для адаптивности */
          padding: 40px 20px;
        }

        /* Левая колонка (текст) */
        .about-content {
          font-size: 28px;
          width: 50%;
          display: flex;
          flex-direction: column;
          justify-content: flex-start;
          align-items: flex-start;
          text-align: left;
        }

        .about-content h2 {
          color: #2a264b;
          margin-bottom: 15px;
        }

        /* ✅ Центрируем все p и em */
        .about-content p,
        .about-content em {
          text-align: left;
          margin: 10px 0;
          font-style: italic;
        }

        /* Списки */
        .about-content ul {
          list-style: none; /* убираем точки */
          margin: 0;
          padding: 0;
        }

        .about-content ul li {
          margin: 5px 0;
          text-align: left;
          line-height: 1.6;
        }

        .about-content ol li {
          font-size: 36px; 
          margin-bottom: 18px; /* базовый отступ */
        }

        .about-content ol li:nth-child(1) {
            margin-left: 0px;
        }

        .about-content ol li:nth-child(2) {
            margin-left: 15px;
        }

        .about-content ol li:nth-child(3) {
            margin-left: 30px;
        }

        .about-content ol li:nth-child(4) {
            margin-left: 10px;
        }

        .about-content ol li:nth-child(5) {
            margin-left: 25px;
        }

        .about-content ol li:nth-child(6) {
            margin-left: 40px;
        }

        .about-content ol li:nth-child(7) {
            margin-left: 20px;
        }



        /* Правая колонка (изображения) */
        .about-images {
          width: 50%;
          display: flex;
          flex-direction: column;
          justify-content: space-between;
        }

        .about-images img {
          width: 100%;
          flex: 1;
          object-fit: cover;
          border-radius: 10px;
        }

        .about-images img + img {
          margin-top: 20px;
        }

                /* 📱 Адаптив: на экранах < 900px — колонки одна под другой */
        @media (max-width: 900px) {
          #about {
            flex-direction: column;
            align-items: center;
          }

          .about-content,
          .about-images {
            width: 100%;
          }

          .about-content {
            font-size: 22px; /* чуть меньше, чем 28px на десктопе */
          }

          .about-images img + img {
            margin-top: 15px;
          }
        }

/* Убираем стандартные точки */
.about-content ol {
    list-style: none;
    padding-left: 0;
}

/* Настраиваем отступы у пунктов списка */
.about-content ol li {
    position: relative;
    padding-left: 40px;
    margin-bottom: 18px;
}

/* --- НЕОНОВАЯ ГАЛОЧКА --- */
.about-content ol li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 10px;
    width: 30px;
    height: 30px;
    background-size: contain;
    background-repeat: no-repeat;

    /* Твоя зелёная толстая галочка (двойная обводка) */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath d='M20 6L9 17L4 12' fill='none' stroke='%2300ff00' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M20 6L9 17L4 12' fill='none' stroke='%23008800' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");

    /* 🔥 Бесконечная неоновая анимация */
    animation: neonGlow 2.2s ease-in-out infinite;
}

/* --- АНИМАЦИЯ НЕОНОВОГО СВЕЧЕНИЯ --- */
@keyframes neonGlow {
    0% {
        filter: drop-shadow(0 0 0px #00ff00);
        transform: scale(1);
    }
    50% {
        filter: drop-shadow(0 0 12px #00ff00)
                drop-shadow(0 0 18px #00ff00)
                drop-shadow(0 0 25px #00ff00);
        transform: scale(1.12);
    }
    100% {
        filter: drop-shadow(0 0 0px #00ff00);
        transform: scale(1);
    }
}

/* 📱 На мобильных — чуть меньше галочка */
@media (max-width: 600px) {
    .about-content ol li {
        padding-left: 32px;
        margin-bottom: 14px;
    }

    .about-content ol li::before {
        width: 18px;
        height: 18px;
        top: 4px;
    }
}


        /* 📱 Мелкие экраны: уменьшаем отступы и текст */
        @media (max-width: 600px) {
          .about-content {
            font-size: 18px; /* общий размер текста поменьше */
          }

          .about-content h2 {
            font-size: 22px;
          }

          .about-content p,
          .about-content ul li {
            font-size: 16px;
          }

          /* ВАЖНО: адаптация списка под мобильные */
          .about-content ol li {
            font-size: 1.5em;          
            margin-left: 0 !important;/* убираем лесенку слева на мобилке */
            margin-bottom: 12px;
          }
        }
      .btn {
          display: inline-block;
          padding: 12px 30px;
          background: linear-gradient(45deg, #007bff, #00c6ff);
          color: #fff;
          text-decoration: none;
          border-radius: 15px;
          transition: background 0.3s;
          position: relative;
          z-index: 2;
      }

      .btn:hover {
          background: linear-gradient(45deg, #0056b3, #0096ff);
      }
      .about-center-button {
          width: 100%;
          display: flex;
          justify-content: center;  /* по центру — базовая точка */
          margin-top: 20px;
      }


      /* ОБЩЕЕ — без сдвигов */
      .about-btn {
          margin-top: 0;       /* кнопка уже в отдельном блоке */
          margin-top: 20px;
      }

      /* ДЕСКТОП: сдвигаем правее из центра */
      @media (min-width: 901px) {
        .about-btn {
          transform: translateX(300px);  /* подбери нужное значение: 150–300px */
        }
      }

      /* МОБИЛКА: центр, без сдвига */
      @media (max-width: 900px) {
        .about-btn {
          transform: none;
          align-self: center;
        }
      }

    

    .services-section {
        padding: 40px;
        max-width: 1000px;
        margin: auto;
    }

    .services-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .service-item {
        background-color: #f8f8f8;
        border-radius: 10px;
        padding: 15px;
        text-align: center;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        transition: all 0.3s ease;
        /*cursor: pointer;*/
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-left: 20px; /* добавил отступ слева для каждой карточки */
        margin-right: 20px; /* добавил отступ справа для каждой карточки */
    }

    .service-item h2 {
        font-size: 25px;
        margin-bottom: 8px;
    }

    .service-item p {
        margin: 0;
        font-size: 22px;
    }

    .image-column {
        display: flex;
        flex-direction: column;
        gap: 10px;
        align-items: center;
        margin-top: 15px;
        width: 100%;
    }

    .image-column img {
        width: 80%; /* или можно использовать max-width */
        max-height: 580px; /* максимальный размер по высоте */
        height: auto;
        border-radius: 10px;
        object-fit: contain; /* сохраняет пропорции без обрезки */
    }


    @media (max-width: 768px) {
        .services-grid {
            grid-template-columns: 1fr;
            gap: 12px;
        }
    }


    .specialists-section {
        padding: 40px;
        max-width: 1000px;
        margin: 0 auto; /* Центрируем секцию по горизонтали */
        display: flex;
        flex-direction: column;
        align-items: center; /* Центрируем содержимое по горизонтали */
    }

    .specialists-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        width: 100%; /* Занимает всю доступную ширину */
        justify-items: center; /* Центрируем карточки внутри grid */
    }

    .specialists-item {
        background-color: #f8f8f8;
        border-radius: 10px;
        padding: 15px;
        max-width: 1000px;/* Ограничиваем максимальную ширину */
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        transition: all 0.3s ease;
        display: flex; /* Используем flexbox вместо таблицы */
        align-items: center; /* Выравниваем элементы по центру вертикально */
    }

    .specialist-photo {
        width: 400px; /* Увеличили с 150px */
        height: 500px; /* Увеличили с 150px */
        border-radius: 8px;
        object-fit: cover;
        margin-right: 20px;
    }

    .specialist-info {
        flex: 1; /* Занимает оставшееся пространство */
        padding-left: 5px;
        padding-right: 5px;
        text-align: left; /* Выравниваем текст по левому краю */
    }

    .specialists-item h2 {
        font-size: 26px;
        margin-bottom: 8px;
        color: #2a264b;
    }

    .specialists-item p {
        margin: 0;
        font-size: 24px;
        color: #555;
    }
    .specialist-info p {
      margin: 0;
      font-size: 24px;
      color: #555;
      text-align: justify; /* Выравнивание по ширине */
      text-justify: inter-word; /* Равномерное распределение пробелов */
      hyphens: auto; /* Перенос слов при необходимости */
    }


    @media (max-width: 768px) {
        .specialists-grid {
            grid-template-columns: 1fr;
            max-width: 100%;
        }
        
        .specialists-item {
            flex-direction: column;
            align-items: center;
            padding: 15px;
            text-align: center;
        }
        
        .specialist-photo {
            width: 200px;
            height: 200px;
            margin: 0 auto 15px;
        }
        
        .specialist-info {
            padding: 0;
            text-align: center;
            width: 100%;
        }
        
        .specialists-item h2 {
            font-size: 20px;
            margin: 10px 0 5px;
        }
        
        .specialists-item p {
            font-size: 16px;
            margin: 0;
        }
    }
    


     .gallery-container {
  position: relative;
  max-width: 100%;
  overflow: hidden;
  padding: 10px;
}

.image-scroll {
  display: flex;
  overflow-x: auto;
  gap: 10px;
  scroll-behavior: smooth;
  padding: 10px 40px; /* отступ для кнопок */
}

.image-scroll img {
  height: 500px;
  flex-shrink: 0;
  border-radius: 8px;
  background: white;
  box-shadow: 0 0 5px rgba(0,0,0,0.1);
}

/* Кнопки прокрутки */
.scroll-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  padding: 10px;
  font-size: 24px;
  cursor: pointer;
  z-index: 1;
  border-radius: 50%;
  transition: background 0.3s;
}

.scroll-btn:hover {
  background: rgba(0, 0, 0, 0.8);
}

.scroll-btn.left {
  left: 5px;
}

.scroll-btn.right {
  right: 5px;
}
.modal-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 36px;
  color: white;
  background: rgba(0,0,0,0.4);
  border: none;
  padding: 10px 20px;
  cursor: pointer;
  z-index: 1001;
  border-radius: 50%;
}

.modal-nav.left {
  left: 30px;
}

.modal-nav.right {
  right: 30px;
}

.modal-nav:hover {
  background: rgba(0,0,0,0.7);
}


@media (max-width: 600px) {
  .image-scroll img {
    height: 200px;
    max-width: 90vw;
  }
  
  .scroll-btn {
    font-size: 20px;
    padding: 12px;
  }
  
  .modal-content {
    width: 95%;
    max-height: 80vh;
  }
  
  .modal-nav {
    font-size: 24px;
    padding: 8px 16px;
  }
  
  .modal-nav.left {
    left: 10px;
  }
  
  .modal-nav.right {
    right: 10px;
  }
}

    

    .copy-button {
      padding: 10px 20px;
      background-color: #d1e9ff;
      color: white;
      border: none;
      border-radius: 8px;
      cursor: pointer;
      font-size: 16px;
    }

    .copy-button:hover {
      background-color: #d1e9ff;
    }

    .copied-msg {
      color: green;
      margin-left: 10px;
      display: none;
    }

/* Контейнер */
.fab-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 10000;
}

/* Основная кнопка 📞 */
.fab-main {
  border: none;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  cursor: pointer;
  transition: transform 0.3s;
}

.fab-main:hover {
  transform: scale(1.05);
}

.fab-main img {
  width: 32px;
  height: 32px;
}

/* Дополнительные кнопки */
.fab-option {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(0);
  transition: all 0.3s;
  pointer-events: none;
}

.fab-option img {
  width: 45px;
  height: 45px;
}




/* Когда контейнер активен — показываем опции */
.fab-container.active .fab-option:nth-child(2) {
  transform: translateY(-70px);
  opacity: 1;
  pointer-events: auto;
}

.fab-container.active .fab-option:nth-child(3) {
  transform: translateY(-140px);
  opacity: 1;
  pointer-events: auto;
}

.fab-container.active .fab-option:nth-child(4) {
  transform: translateY(-210px);
  opacity: 1;
  pointer-events: auto;
}

/* По умолчанию — скрываем обе */
.fab-main img.mobile,
.fab-main img.desktop {
  display: none;
}

/* 📱 Только на мобильных */
@media (max-width: 768px) {
    .fab-main img.mobile {
    display: block; /* ✅ добавляем это! */
  }
  .fab-main {
    width: 55px;       /* ✅ размер кнопки */
    height: 55px;
  }

  .fab-main img {
    width: 55px;       /* ✅ размер картинки внутри */
    height: 55px;
    object-fit: cover; /* 📌 заставим картинку заполнять кнопку */
    border-radius: 50%;
  }

  .fab-option {
    width: 50px;       /* ✅ размер дополнительных кнопок */
    height: 50px;
  }

  .fab-option img {
    width: 50px;       /* ✅ размер их иконок */
    height: 50px;
    object-fit: cover;
    border-radius: 50%;
  }
}


/* 💻 Только на компьютере */
@media (min-width: 769px) {
  .fab-main img.desktop {
    display: block;
  }
  .fab-main {
    width: 65px;
    height: 65px;
  }

  .fab-main img {
    width: 65px;
    height: 65px;
  }

  /* Дополнительные кнопки, если хочешь их тоже увеличить */
  .fab-option {
    width: 65px;
    height: 65px;
  }

  .fab-option img {
    width: 65px;
    height: 65px;
  }

}



  

/* Responsive layout: these rules follow all component styles. */
.hero-intro { padding-bottom: 35px; }
.services-title { text-align: center; font-size: 2rem; margin-bottom: 40px; }
.services-title span { display: block; }

@media (max-width: 1024px) {
    .specialists-grid { grid-template-columns: minmax(0, 1fr); }
    .specialists-item { width: 100%; min-width: 0; }
    .specialist-photo { width: 40%; height: auto; }
}

@media (max-width: 900px) {
    /* Reset the desktop flex-basis when the about section becomes a column. */
    #about > .about-content, #about > .about-images { flex: none; }
}

@media (max-width: 768px) {
    header { height: auto; padding: 0; }
    header .header-bg { height: 100%; object-fit: fill; }
    /* The lettering occupies the upper half of the background image. */
    header .container { padding: 112px 12px 16px; }
    header .logo { display: none; }
    header nav {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
        margin: 0;
        gap: 4px 8px;
    }
    header nav a {
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 44px;
        margin: 0;
        padding: 8px 4px;
        font-size: 14px;
        line-height: 1.3;
        text-align: center;
        color: #fff;
        background: transparent;
        text-shadow: 0 1px 4px #000;
    }
    .hero-intro { padding: 28px 16px 24px; }
    .hero-intro h1 {
        font-size: clamp(24px, 6.4vw, 32px);
        line-height: 1.2;
        margin: 0 auto 14px;
        max-width: 600px;
        overflow-wrap: break-word;
    }
    .hero-intro h2 {
        font-size: clamp(18px, 4.6vw, 22px);
        line-height: 1.4;
        font-weight: 500;
        max-width: 480px;
        margin: 0 auto;
    }
    .hero .btn, .btn {
        max-width: 100%;
        min-height: 44px;
        font-size: 16px;
        line-height: 1.4;
        text-align: center;
    }
    /* Existing CTA elements use inline desktop padding. */
    .hero .btn { padding: 12px 20px !important; margin-top: 20px; }
    .hero_img { margin-top: 24px; }
    #about { padding: 24px 16px; gap: 24px; }
    #about .about-content { padding: 0; }
    #about .about-content ol li { font-size: 19px; line-height: 1.45; margin-left: 0; padding-left: 30px; }
    #about .about-content ol li::before { width: 20px; height: 20px; top: 4px; }
    #about .about-images { margin-top: 0; gap: 16px; }
    #about .about-images img { flex: none; height: auto; }
    #about .about-images img + img { margin-top: 0; }
    .section-title { font-size: 26px; line-height: 1.25; text-align: center; padding: 0 16px; margin: 28px 0 20px; }
    .section-title > br { display: none; }
    .services-title span { font-size: 19px; margin-top: 8px; }
    .services-grid, .specialists-grid { grid-template-columns: minmax(0, 1fr); padding: 0 16px; gap: 16px; }
    .service-item { min-width: 0; margin: 0; padding: 16px; }
    .service-item h2 { font-size: 22px; line-height: 1.3; }
    .service-item p, .why-us-item p { font-size: 16px; line-height: 1.5; }
    .service-item p br { display: none; }
    .image-column img { width: 100%; height: auto; }
    .service-item .hero, .specialist-info .hero { width: 100%; padding-left: 0; padding-right: 0; }
    .why-us-container { padding: 0 16px 24px; gap: 16px; }
    .why-us-item { min-width: 0; max-width: 100%; padding: 20px; }
    .why-us-item h3 { font-size: 22px; line-height: 1.3; overflow-wrap: break-word; }
    .why-us-item .img_why { margin-left: auto !important; margin-right: auto; }
    .specialist-photo { width: min(100%, 280px); height: auto; max-height: 350px; object-fit: cover; }
    .specialist-info p { text-align: left; }
    .gallery-container { padding: 0 16px; }
    .image-scroll { padding: 8px 0; border: 0; }
    .image-scroll img { height: 200px; max-width: 85vw; object-fit: contain; }
    .modal-content { width: 94%; height: auto; max-height: 80vh; object-fit: contain; }
    .contact-section { padding: 32px 16px; gap: 20px; }
    .contact-info, .contact-form { min-width: 0; padding: 20px 16px; }
    .contact-info h1, .contact-form h2 { font-size: 24px; line-height: 1.3; margin-bottom: 16px; overflow-wrap: break-word; }
    .contact-info h2 { font-size: 20px; }
    .g-recaptcha { max-width: 100%; overflow-x: auto; margin-bottom: 16px; }
    .footer { padding-bottom: 88px; }
    .fab-container { right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); }
    .fab-main, .fab-main img { width: 48px; height: 48px; }
}

