/* Сброс стилей для стандартных элементов */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

 /* Основной шрифт */
body {
    font-family: 'Inter', sans-serif;
    color: #333;
    background-color: white;
    width: 96%; 
    align-items: center;
    margin-left: 2%;
    text-align: center;
  
}



h1, h2, h3, h4, h5, h6 {
    font-family: 'Comfortaa', sans-serif;
}

/* Скрываем меню на больших экранах */
@media (min-width: 768px) {
    .mobile-menu, .menu-toggle {
        display: none;
    }
}

/* Отключаем анимацию заголовка в хедере для экранов меньше 1180px */
@media screen and (max-width: 1180px) {

    .header-section h1 {
        font-size: clamp(24px, 4vw, 40px); /* Минимальный 24px, адаптация до 40px */
        text-align: center;
        line-height: 1.2; /* Сужаем межстрочный интервал */
        word-break: break-word; /* Принудительный перенос длинных слов */
        overflow-wrap: break-word; /* Разрешаем перенос слов */
        white-space: normal; /* Отключаем запрет переноса строк */
    }
    .header-section h1,
    .header-section h2 {
        animation: none !important;
        font-size: 4vw; /* Размер шрифта адаптируется к ширине экрана */
        word-wrap: break-word; /* Перенос длинных слов */
        text-align: center; /* Выравниваем по центру */
    }

    .header-section h2 {
        font-size: 3.2vw; /* Пропорционально уменьшаем */
    }

    /* Уменьшаем расстояние между буквами, если заголовок слишком длинный */
    .header-section h1, 
    .header-section h2 {
        letter-spacing: -0.5px;
    }
}

#scrollToTop img {
    width: 30px;
    height: auto;
    filter: invert(1);
}

#scrollToTop {
    position: fixed;
    bottom: 20px;
    right: 20px; /* Теперь справа */
    width: 50px;
    height: 50px;
    background-color: rgba(255, 165, 0, 0.9);
    color: white;
    font-size: 20px;
    border: none;
    display: none; /* По умолчанию скрыта */
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    border-radius: 10px; /* Скругленные углы */
}

#scrollToTop.visible {
    display: flex; /* Показываем кнопку при скролле */
}

#scrollToTop img {
    width: 30px; /* Размер иконки */
    height: auto;
}

#scrollToTop:hover {
    background-color: rgba(255, 140, 0, 1); /* Чуть темнее при наведении */
}



/* Кнопка меню (гамбургер) */
.menu-toggle {
    position: fixed;
    top: 10px;
    left: 10px;
    background-color: rgba(255, 128, 0, 0.5); /* Черный с 50% прозрачности */
    color: white;
    border: none;
    padding: 10px 15px;
    font-size: 24px;
    border-radius: 5px;
    cursor: pointer;
    z-index: 100;
}

/* Стили для мобильного меню */

.mobile-menu {
    position: fixed;
    top: 0;
    left: -100%; /* Прячем за левый край */
    width: 70%;
    height: 100vh;
    color: white;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.3);
    transition: left 0.3s ease-in-out;
    z-index: 99;
    padding-top: 50px;
    background-color: rgba(0, 0, 0, 0.5); /* Черный с 50% прозрачности */
    backdrop-filter: blur(5px); /* Размытие фона для эффекта стекла */
  
    
}

/* Стили списка */
.mobile-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-menu ul li {
    padding: 15px;
    text-align: center;
}

.mobile-menu ul li a {
    color: white;
    text-decoration: none;
    font-size: 18px;
    display: block;
}

/* Показываем меню при открытии */
.mobile-menu.open {
    left: 0;
}

  /* Десктоп-меню */
  .desktop-menu {
    position: absolute;
    top: 10px;
    left: 20px;
    z-index: 101;
    margin-left: 30px;
    margin-top: 15px;
    margin-bottom: 10px;
}

.desktop-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 20px;
}

.desktop-menu ul li {
    display: inline;
}

.desktop-menu ul li a {
    text-decoration: none;
    color: white;
    font-size: 18px;
    padding: 12px 20px;
    background-color: rgba(255, 255, 255, 0.2); /* Полупрозрачный фон */
    border-radius: 8px; /* Закруглённые углы */
    transition: background-color 0.3s ease, color 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Лёгкая тень */
}

.desktop-menu ul li a:hover {
    background-color: orange;
    color: white;
}

/* Скрываем десктоп-меню на мобильных устройствах */
@media (max-width: 767px) {
    .desktop-menu {
        display: none;
    }
}

/* .desktop-menu {
    position:absolute;
    top: 10px;
    left: 20px;
    z-index: 101;
    margin-left: 30px;
    margin-top: 15px;
    margin-bottom: 10px;
} */

 /* .desktop-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 20px;
}

.desktop-menu ul li {
    display: inline;
}

.desktop-menu ul li a {
    text-decoration: none;
    color: white;
    font-size: 18px;
    padding: 10px 15px;
    transition: color 0.3s ease;
}

.desktop-menu ul li a:hover {
    color: orange;
} */





/* Верхний блок */
header {
    
    background-size: cover;
    background-position: center;
    width: 100%;
  
}

.instagram-link {
    position: absolute;
    right: 20px; /* Отступ справа */
    top: 20px; /* Отступ сверху */
}



.instagram-link img {
    width: 30px;
    height: 30px;
    transition: transform 0.3s ease;
}

.instagram-link:hover img {
    transform: scale(1.2);
}

.lema {
    margin-top: 10px;
    font-family: 'Inter', sans-serif;
}


.header-section {
    background: -webkit-linear-gradient(140deg, #ff0000, #ff8c00, #ffd000); /* Для старых браузеров */
    background: linear-gradient(140deg, #ff0000, #ff8c00, #ffd000); /* Стандартный для современных браузеров */
    text-align: center;
    padding: 50px 0;
    position: relative;
    z-index: 0; /* Размещаем ниже содержимого */
    color: white;
}
    
    .header-section img.logo {
    display: block;
    margin: 0 auto;
    max-width: 300px;
    object-fit: contain;
    opacity: 0; /* Логотип невидим */
  transform: scale(0); /* Логотип уменьшен до нуля */
  animation: appear 1.5s forwards; /* Анимация */
}
@keyframes appear {
    0% {
      opacity: 0;
      transform: scale(0);
    }
    100% {
      opacity: 1;
      transform: scale(1);
    }
  }

.header-section h1, h2 
{
    color: #000000;
}

.header-section h2 {
    font-size: small;
} 

.header-section h1 {
    font-weight: bold;
} 
#materials h2 {
    color: #333;
}

/* Стили для заголовка h1 */

@media screen and (min-width: 1174px){
.header-section h1 {
    display: inline-block;
    position: relative;
    font-size: 2.5rem; /* Основной размер шрифта */
    white-space: nowrap;
    overflow: hidden;
    animation: slideIn 2s ease-out forwards;
    max-width: 100%;
  }
}
  
  /* Анимация для скольжения текста */
  @keyframes slideIn {
    0% {
      width: 0;
    }
    100% {
      width: 100%;
    }
  }
  

  
  /* Для маленьких экранов (мобильные телефоны) */
  @media screen and (max-width: 767px) {
    .header-section h1 {
      font-size: 1.5rem; /* Уменьшаем шрифт для маленьких экранов */
      animation: none; /* Отключаем анимацию */
      white-space: normal; /* Убираем nowrap, чтобы текст не обрезался */
    }
  }
  

/* Кнопка */
.cta-button {
    font-size: 1.2em;
    background-color: #ff6600;
    color: white;
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    margin-top: 20px;
    display: inline-block;
    border: 2px solid white; /* Белая кайма */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Тень */
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer; /* Курсор пальца */
    position: relative; /* Необходимо для работы с z-index */
    z-index: 10; /* Устанавливаем на передний план */
    
}

/* Анимация увеличения и уменьшения */
@keyframes shake {
    0% { transform: translateX(0); }
    20% { transform: translateX(-5px); }
    40% { transform: translateX(5px); }
    60% { transform: translateX(-5px); }
    80% { transform: translateX(5px); }
    100% { transform: translateX(0); }
}

/* Класс для анимации */
.shake-animation {
    animation: shake 1s ease-in-out;
}

/* Класс для анимации */
.scale-animation {
    animation: scaleButton 3s ease-in-out infinite; /* Повторение анимации */
}

/* Эффект наведения */
.cta-button:hover {
    background-color: #e65c00;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3); /* Увеличиваем тень при наведении */
}

/* Главный контент */

#cookie-notice {
    display: none;
}

 strong {
    font-weight: bold;}


section h1, h2 
{
    color: #ffffff;
}


.main-content {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap; /* Для мобильных устройств */
}

/* Блок "Обо мне" */
.about-me {
    background-color: #ffffff; /* Светлый фон */
    padding: 60px 20px; /* Отступы сверху и снизу */
    text-align: center; /* Центрируем текст */
    
}

.about-me-content {
    display: flex; /* Размещаем фото и текст в строку */
    align-items: center; /* Выравниваем элементы по центру по вертикали */
    justify-content: center; /* Центрируем контент по горизонтали */
    gap: 30px; /* Отступ между фото и текстом */
}

.about-me-photo {
    width: 200px; /* Ширина фото */
    height: 200px; /* Высота фото */
    border-radius: 50%; /* Округляем фото */
    object-fit: cover; /* Обрезаем фото, чтобы оно не искажалось */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Легкая тень для фото */
}

.about-me-text {
    max-width: 900px; /* Ограничиваем максимальную ширину текста */
    text-align: left; /* Выравнивание текста по левому краю */
}

.about-me h2 {
    font-size: 2.0em;
    color: #333; /* Темный цвет текста */
    margin-bottom: 20px;
}

.about-me p {
    font-size: 1.2em;
    color: #666; /* Слегка серый для текста */
    line-height: 1.6;
}

/* Добавим стили для мобильных экранов */
@media screen and (max-width: 768px) {
    .about-me-content {
        flex-direction: column; /* На маленьких экранах делаем контент вертикальным */
        align-items: center; /* Центрируем по горизонтали */
    }

    .about-me-photo {
        width: 150px; /* Уменьшаем размер фото на мобильных устройствах */
        height: 150px;
    }

    .about-me h2 {
        font-size: 2em;
    }

    .about-me p {
        font-size: 1.1em;
        padding: 0 20px;
    }

    .header-section img.logo{
        max-width: 200px;
    }
}




/* Блоки о курсе, цены, отзывы */
.section {
    padding: 20px;
    border-radius: 10px;
    box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
    flex: 1;
    color: white;
    width: 30%; /* Ширина блоков в 3 колонки */
    align-items: center;
}

.box {
    position: relative;
    background-color: white; /* Белая подложка */ 
    color: #333;
    padding: 20px 40px;
    border-radius: 12px;
    text-align: center;
    font-size: 1.2rem;
    font-weight: bold;
    overflow: hidden;
   
 }



/* О курсе */
.about-section {
    background: linear-gradient(to right, #f5c401, #ff9900);
}

/* Цены */
.prices-section {
    background: linear-gradient(to right, #ff9900, #ff7300);
    align-items: center;
}



/* Отзывы */
.reviews-section {
    background: linear-gradient(to right, #ff7300, #c51a1a);
}

/* Заголовки секций */
.section h2 {
    text-align: center;
    font-size: 1.8em;
    margin-bottom: 15px;
    
}

/* Тексты в блоках */
.section p {
    font-size: 1.1em;
}

/* Стили для страницы с материалами */
.materials-section {
    margin-top: 20px;
    border: #e65c00 solid 2px;
    width: 100vw; /* Ширина на 100% вьюпорта */
    padding: 40px 0;
    background-color: #f9f9f9;
    color: #414141;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
}

.materials-section h2 {
    font-size: 2em;
    margin-bottom: 20px;
}

.materials-section p {
   
    font-size: 1em;
    margin-bottom: 20px;
}

.materials-list {
    list-style: none;
    padding: 10px;
}

.materials-list li {
    margin-bottom: 15px;
   }

.material-link {
    display: flex;
    align-items: center;
    font-size: 1.1em;
    color: #fd9149;
    text-decoration: none;
    transition: color 0.3s ease;
}

.material-link img {
    margin-right: 10px;
    width: 30px;
    height: 30px;
}

.material-link:hover {
    color:#ff2600;
}

.material-link:active {
    color:#ff9900;
}

@media (min-width: 768px) { /* Настроено для планшетов и выше */
    .materials-list li {
        margin-left: 50px;
    }
}



/* 
.gallery {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 20px;
    max-width: 100%;
    margin: 0 auto;
}


figure {
    position: relative;
    width: 15%;
    text-align: center;
}

.gallery img {
    width: 100%;
    height: 200px;
    border-radius: 10px;
    object-fit: cover;
    transition: transform 0.3s ease, opacity 0.3s ease;
    cursor: pointer;
}

.gallery img:hover {
    transform: scale(1.05);
    opacity: 0.8;
} */


/* Галерея */
.gallery {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 20px;
    max-width: 100%;
    margin: 0 auto;
}

/* Обертка для картинок и подписей */
figure {
    position: relative;
    width: 16%; /* Ширина каждой картинки */
    text-align: center;
}

/* Устанавливаем фиксированные размеры для всех картинок */
.gallery img {
    width: 100%;
    height: 200px; /* Фиксированная высота */
    object-fit: cover; /* Это гарантирует, что изображение заполнит блок, не искажая пропорций */
    border-radius: 10px;
    opacity: 0.7; /* Устанавливаем прозрачность 70% */
    z-index: 1;
    transition: transform 0.3s ease, opacity 0.3s ease, z-index 0s ease; /* Плавное изменение размеров, прозрачности и z-index */
    cursor: pointer;
}

.gallery img:hover, .gallery img:active {
    opacity: 1; /* При наведении или нажатии картинка становится непрозрачной */
    transform: scale(1.1); /* Увеличиваем картинку на 1.5x */
    z-index: 10; /* Картинка окажется на переднем плане */
}

/* Подписи под картинками */
figcaption {
    margin-top: 8px;
    margin-top: 3px;
    font-size: 0.9rem; /* Меньший размер шрифта */
    font-style: italic; /* Курсив */
    color: gray; /* Серый цвет текста */
    text-align: left;
    line-height: 1.4;
    transition: color 0.3s ease;
}

/* Медиазапрос для маленьких экранов */
@media (max-width: 768px) {
    .gallery {
        flex-direction: column; /* Переводим галерею в вертикальный режим */
        align-items: center; /* Центрируем все элементы */
    }

    figure {
        width: 80%; /* Картинки занимают 80% ширины экрана на маленьких экранах */
        margin-bottom: 15px; /* Добавляем отступ между картинками */
    }

    /* При нажатии на картинку на мобильных устройствах */
    .gallery img:active {
        opacity: 1; /* Убираем прозрачность при нажатии */
        transform: scale(1.2); /* Увеличиваем картинку */
    }
}


/* Модальное окно */
.modal {
    display: none;
    position: fixed;
    z-index: 999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7); /* Полупрозрачный фон */
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.modal-content {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
   
}

.form-section h2 {
    font-size: x-large;
    
}



.p_black {
    font-size: 0.5em;
    color: #333;
}

/* Модальное окно Курс */

/* Стили для модального окна */
.modalcourse {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modalcourse-content {
    background-color: white;
    margin: 50px auto;
    padding: 20px 30px 20px 20px;
    border-radius: 5px;
    width: 50%;
    position: relative;
    text-align: left;
}

.modalcourse-content h2 {
    color: #e65c00;
}

.close-btn_course {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 24px;
    cursor: pointer;
    color: orange;
} 

/* Блок с Видео */

.video-intro {
    margin-top: 30px;
    background-color: #f1f1f1;
    padding: 50px 0;
    text-align: center;
}

.video-intro-content h2 {
    font-size: 1.5rem;
    color: #333;
    font-weight: bold;
    margin-bottom: 20px;
}

.video-intro-content p {
    font-size: 1.2rem;
    color: #555;
    max-width: 800px;
    margin: 0 auto;
}

 .instagram-link_2 {
    font-weight: bold;
    color: #fd9149;
    text-decoration: none;
}

.instagram-link_2:hover {
    color: #ff2600;
}


.thank-you-message {
    display: none;
    color: #e53935;
    padding: 20px;
    border-radius: 5px;
    text-align: center;
}

#closeMessage {
    margin-top: 10px;
    padding: 5px 10px;
    background-color: #f44336;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

#closeMessage:hover {
    background-color: #e53935;
}


/* Медиа-запросы для мобильных устройств */
@media (max-width: 768px) { 
    #contact {
        margin-bottom: 100px;
    }



    .modalcourse-content {
        width: 90%; /* Уменьшаем ширину окна на мобильных */
        padding: 15px; /* Меньше отступов на маленьких экранах */
        font-size: smaller;
         }

         .modalcourse-content h2 {
        font-size: 1.5em;
        color: #e65c00;
       
         }

    .modalcourse-content h3 {
        font-size: 1.2em;
        font-family: 'Inter', sans-serif;
        
    }

    .close-btn_course {
        font-size: 2em;
    }
}

@media (max-width: 480px) {
    .modalcourse-content {
        width: 95%; /* Еще больше уменьшаем на самых маленьких экранах */
    }
}

/* Стили для затемненного фона */
#modal_dele {
    display: none; /* Скрыто по умолчанию */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Внутренний контейнер модального окна */
.modal-content_dele {
    background: #fff;
    padding: 25px;
    border-radius: 10px;
    width: 80%;
    max-width: 500px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    position: relative;
}

#open-modal-btn_dele {
    color: #ff0101;
    cursor: pointer;
    text-decoration: underline;
}


/* Форма записи */
.form-section {
    width: 100%;
    background-color: #414141;
    padding: 50px 0;
}

.form-section form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

.form-section input, .form-section textarea {
    padding: 10px;
    font-size: 1.1em;
    border: 1px solid #ddd;
    border-radius: 5px;
    width: 100%;
}

.form-section button {
    padding: 7px;
    font-size: 1.2em;
    background-color: #ff6600;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.form-section button:hover {
    background-color: #e65c00;
}

/* Стиль для кнопки "Отправить" */
.submit-button {
    font-size: 1.2em;
    background-color: #ff6600; /* Оранжевый цвет фона */
    color: white; /* Белый цвет текста */
    padding: 15px 30px; /* Отступы внутри кнопки */
    border: 2px solid white; /* Белая кайма */
    border-radius: 5px; /* Сглаженные углы */
    cursor: pointer; /* Указатель на кнопку */
    transition: all 0.3s ease; /* Плавное изменение всех свойств */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Тень кнопки */
    position: relative; /* Для эффекта "покачивания" */
    z-index: 1; /* Чтобы кнопка была на переднем плане */
}

/* Эффект при наведении */
.submit-button:hover {
    background-color: #e65c00; /* Тёмный оранжевый при наведении */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3); /* Увеличиваем тень */
    transform: translateY(-4px); /* Поднимаем кнопку */
}

/* Эффект "покачивания" при клике */
.submit-button:active {
    transform: translateY(2px); /* Кнопка немного опускается при клике */
}

/* Анимация "тряски" при фокусе */
.submit-button:focus {
    animation: shake 0.3s ease-in-out;
}

/* Анимация тряски */
@keyframes shake {
    0% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    50% { transform: translateX(5px); }
    75% { transform: translateX(-5px); }
    100% { transform: translateX(0); }
}


/* Стиль футера */
.footer-section {
    background: -webkit-linear-gradient(140deg, #ff0000, #ff8c00, #ffd000); /* Для старых браузеров */
    background: linear-gradient(140deg, #ff0000, #ff8c00, #ffd000); /* Стандартный для современных браузеров */
    color: white;
    padding: 20px 0;
    text-align: center;
}

.footer-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-section p {
    margin: 10px 0;
    font-size: 0.9em;
}

.footer-section p#cookie-notice {
    font-style: italic;
    color: #f39c12;
}

/* Социальные сети */
.social-links {
    margin-top: 15px;
}

.social-link {
    margin: 0 10px;
    display: inline-block;
}

.social-icon {
    width: 40px;
    height: 40px;
    object-fit: cover;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .footer-section {
        padding: 20px 10px;
    }

    .footer-section .container {
        padding: 0;
    }

    .footer-section p {
        font-size: 0.8em;
    }
}



/* Стили для маленьких экранов (например, мобильных устройств) */
@media screen and (max-width: 768px) {
    /* Верхний блок */
    .header-section {
        height: 300px; /* Уменьшаем высоту блока для маленьких экранов */
        padding: 30px 0;
    }

    .header-section h1 {
        font-size: 2em;
    }

    .cta-button {
        font-size: 1em;
        padding: 10px 20px;
        margin-top: 15px;
    }

    /* Главный контент */
    .main-content {
        flex-direction: column; /* Меняем направление колонок на вертикальное */
        align-items: center; /* Центрируем блоки по горизонтали */
        gap: 30px;
    }

    .section {
        width: 100%; /* Блоки занимают всю ширину экрана */
        max-width: 500px; /* Ограничиваем максимальную ширину */
    }

    /* Форма записи */
    .form-section form {
        max-width: 100%;
    }

    .form-section input, .form-section textarea {
        font-size: 1em;
    }

    .form-section button {
        font-size: 1em;
        padding: 20px;
    }
}

/* Стили для маленьких экранов (например, мобильных устройств) */
@media screen and (max-width: 768px) {
    /* Верхний блок */
    .header-section {
        height: 300px; /* Уменьшаем высоту блока для маленьких экранов */
        padding: 30px 0;
        text-align: center; /* Центрируем текст */
    }

    .header-section h1 {
        font-size: 2em;
    }

    /* Чтобы кнопка не уезжала на мобильных устройствах */
    .cta-button {
        font-size: 1.1em;
        padding: 12px 20px;
        margin-top: 15px;
        display: inline-block; /* Обеспечиваем, чтобы кнопка была inline */
    }

    /* Главный контент */
    .main-content {
        flex-direction: column; /* Меняем направление колонок на вертикальное */
        align-items: center; /* Центрируем блоки по горизонтали */
        gap: 30px;
    }

    .section {
        width: 100%; /* Блоки занимают всю ширину экрана */
        max-width: 500px; /* Ограничиваем максимальную ширину */
    }

    /* Форма записи */
    .form-section form {
        max-width: 100%;
    }

    .form-section input, .form-section textarea {
        font-size: 1em;
    }

    .form-section button {
        font-size: 1.1em;
        padding: 12px;
    }
}

.form-section {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 400px;
    background: rgba(255, 255, 255, 0.95); /* Полупрозрачный фон */
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    display: none; /* Скрываем форму по умолчанию */
}

/* Затемняющий фон */
.form-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    display: none;
}

.form-section h2 {
    color: #333;
    text-align: left;
}

/* Кнопка закрытия */
.close-form {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 20px;
    cursor: pointer;
    background: none;
    border: none;
}

 /* Стили для еще меньших экранов (например, для мобильных телефонов) */
@media screen and (max-width: 480px) {
    /* Верхний блок */
    .header-section {
        height: max-content; /* Еще меньше для очень маленьких экранов */
    }

    .header-section h1 {
        padding: 15px;
        font-size: 1.8em;
    }

    .cta-button {
        font-size: 1em;
        padding: 10px 20px;
        margin-top: 15px;
    }

    /* Главный контент */
    .main-content {
        gap: 20px; /* Уменьшаем расстояние между блоками */
    }

    .section {
        width: 100%; /* Блоки занимают всю ширину */
        padding: 15px;
    }

    /* Форма записи */
    .form-section input, .form-section textarea {
        font-size: 1em;
    }

    .form-section button {
        font-size: 1em;
        padding: 12px;
    }
}

@keyframes wobble {
    0% { transform: rotate(0deg); }
    25% { transform: rotate(-10deg); }
    50% { transform: rotate(10deg); }
    75% { transform: rotate(-5deg); }
    100% { transform: rotate(0deg); }
}

@keyframes rotate-border {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}