/* ==== Слайдер отзывов ==== */

.workshop-reviews__container {
  position: relative;
  padding: 0;
}

/* --- ЗАГОЛОВОК --- */
.workshop-reviews__title {
  margin: 0 0 40px 0;
  color: #87b2a3;
  font-size: 56px;
  font-weight: 700;
  text-align: center;
  text-transform: uppercase;
}

/* --- ОБЕРТКА СЛАЙДЕРА И СТРЕЛОК --- */
.workshop-reviews__slider-wrapper {
  position: relative;
  margin: 0 auto;
  padding: 0 50px;
}

.workshop-reviews__slider {
  padding: 0;
  padding-bottom: 50px;
  overflow: hidden;
}

/* --- СЛАЙДЫ (КАРТИНКИ) --- */
.workshop-reviews__slide {
  display: flex;
  justify-content: center;
  align-items: stretch;
  height: auto;
}

.workshop-reviews__link {
  display: flex;
  flex-direction: column;
  width: 100%;
  border-radius: 12px;
  background-color: #ffffff;
  overflow: hidden;
  transition: box-shadow 0.3s ease;
}

.swiper-slide-active .workshop-reviews__link {
  box-shadow: 0 4px 20px 0 rgba(107, 105, 97, 0.15);
}

.workshop-reviews__link img {
  display: block;
  width: 100%;
  object-fit: contain;
  object-position: top center;
}

/* --- НАВИГАЦИЯ (КАСТОМИЗАЦИЯ СТРЕЛОК SWIPER) --- */
.workshop-reviews__prev,
.workshop-reviews__next {
  width: 24px;
  height: 24px;
  margin-top: -40px;
  color: var(--color-accent) !important;
}

.workshop-reviews__prev::after,
.workshop-reviews__next::after {
  font-size: 28px !important; /* Размер стрелок-галочек */
  font-weight: bold;
}

.workshop-reviews__prev {
  left: 10px;
}

.workshop-reviews__next {
  right: 10px;
}

/* --- ПАГИНАЦИЯ (ТОЧКИ) --- */
.workshop-reviews__pagination.swiper-pagination-bullets {
  bottom: 10px;
}

.workshop-reviews__pagination .swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  margin: 0 5px !important;
  background: #c4c4c4;
  opacity: 1;
  transition: all 0.3s ease;
}

.workshop-reviews__pagination .swiper-pagination-bullet-active {
  background: var(--color-accent);
  transform: scale(1.2);
}

@media (max-width: 768px) {
  .workshop-reviews {
    padding: 70px 0 90px;
  }

  .workshop-reviews__title {
    margin-bottom: 40px;
    font-size: 32px;
  }

  .swiper-slide-active .workshop-reviews__link {
    box-shadow: none;
  }

  .workshop-reviews__pagination .swiper-pagination-bullet {
    width: 6px;
    height: 6px;
  }
}

/* Слайдер отзывов О ПРОВОДНИКЕ */

.about-reviews__container {
  padding-bottom: 0px;
}

/* --- ЗАГОЛОВОК --- */
.about-reviews__title {
  margin: 0 0 60px 0;
  color: var(--text-main);
  font-size: 56px;
  font-weight: 700;
  text-align: center;
  text-transform: uppercase;
}

.about-reviews__title span {
  color: var(--color-accent);
}

/* --- ОБЕРТКА СЛАЙДЕРА --- */
.about-reviews__slider-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 60px; /* Сделали более сбалансированный зазор, чтобы карточка была шире */
  max-width: 1280px;
  margin: 0 auto;
}

/* --- СТРЕЛКИ --- */
.about-reviews__arrow {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px;
  border: none;
  background: none;
  transition:
    transform 0.2s ease,
    opacity 0.2s ease;
  cursor: pointer;
  flex-shrink: 0;
}

.about-reviews__arrow:hover {
  transform: scale(1.1);
}

.about-reviews__arrow:active {
  opacity: 0.6;
}

/* --- КОНТЕЙНЕР ДЛЯ СЛАЙДОВ --- */
.about-reviews__slider {
  width: 100%;
  max-width: 978px;
}

.about-reviews__slide {
  display: flex;
  align-items: stretch;
  height: auto;
}

/* --- КАРТОЧКА СЛАЙДА (НОВАЯ СТРУКТУРА) --- */
.about-reviews__card {
  display: flex;
  align-items: start;
  gap: 25px;
  box-sizing: border-box;
  width: 100%;
  margin: 20px;
  padding: 35px;
  border-radius: 15px;
  background: var(-white);
  box-shadow: 0 4px 20px 0 rgba(116, 116, 116, 0.15);
}

/* Блок автора (Аватар + Имя) */
.about-reviews__author {
  display: flex;
  flex: none;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
}

.about-reviews__avatar {
  display: block;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  object-fit: cover;
}

.about-reviews__name--mob {
  display: none;
}

.about-reviews__text {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.about-reviews__name {
  color: var(--text-main);
  font-size: 28px;
  font-weight: 700;
}

/* Текст отзыва */
.about-reviews__text p {
  color: var(--text-main);
  font-size: 20px;
  font-weight: 400;
  line-height: 130%;
}

/* --- ПАГИНАЦИЯ --- */
.about-reviews__dots {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-top: 0;
}

.about-reviews__dot {
  width: 10px;
  height: 10px;
  border-radius: 100%;
  background-color: rgba(135, 179, 164, 0.2);
  transition: background-color 0.3s ease;
  cursor: pointer;
}

.about-reviews__dot--active {
  background-color: var(--color-accent);
}

/* --- АДАПТИВНОСТЬ --- */
@media (max-width: 768px) {
  .about-reviews__container {
    padding-top: 10px;
    padding-bottom: 0;
  }

  .about-reviews__title {
    margin-bottom: 5px;
    font-size: 22px;
  }

  .about-reviews__slider-wrapper {
    gap: 15px;
    padding: 0;
  }

  /* На мобильных прячем стрелки, управление будет свайпом */
  .about-reviews__arrow {
    display: none;
  }

  .about-reviews__card {
    flex-direction: column;
    gap: 10px;
    padding: 10px;
    border-radius: 0;
  }

  .about-reviews__name {
    display: none;
  }

  .about-reviews__name--mob {
    display: block;
  }

  .about-reviews__author {
    gap: 12px;
    margin-bottom: 0;
  }

  .about-reviews__avatar {
    width: 42px;
    height: 42px;
  }

  .about-reviews__name {
    font-size: 14px;
  }

  .about-reviews__text p {
    font-size: 12px;
    line-height: 130%;
  }
}

/* --- Секция Материалы --- */

.materials {
  padding: 0px 0 60px;
}

/* Заголовок */
.materials__title {
  margin: 0 0 60px 0;
padding-top:100px;
  color: var(--text-main);
  font-size: 56px;
  font-weight: 700;
  line-height: 130%;
  text-align: center;
  letter-spacing: 0.02em;
}

.materials__title-accent {
  color: var(--color-accent);
}

/* Список элементов */
.materials__list {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-bottom: 40px;
}

/* Элемент списка */
.materials__item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.materials__item-title {
  margin: 0;
 margin-top: 12px;
  color: var(--color-accent);
  font-size: 28px;
  font-weight: 700;
  line-height: 100%;
  text-transform: uppercase;
  transition: opacity 0.2s ease;
  cursor: pointer;
}

.materials__item-title:hover {
  opacity: 0.8;
}

.materials__item-desc {
  margin: 0;
margin-top: 6px;
  color: var(--text-main);
  font-size: 24px;
  font-weight: 400;
  line-height: 100%;
}

/* Центрирование кнопки */
.materials__action {
  display: flex;
  justify-content: center;
}

/* Кнопка "Все материалы" */
.materials__btn {
  display: inline-block;
  padding: 16px 48px;
  border: 2px solid var(--color-accent);
  border-radius: 12px;
  background-color: transparent;
  color: var(--color-accent);
  font-size: 20px;
  font-weight: 700;
  text-align: center;
  transition:
    background-color 0.25s ease,
    color 0.25s ease,
    transform 0.1s ease;
  text-decoration: none;
}

.materials__btn:hover {
  background-color: var(--color-accent);
  color: #ffffff;
}

.materials__btn:active {
  transform: scale(0.98);
}

/* Только страница Отзывы — компьютер */
.page-id-980 .materials .materials__item-title {
  font-size: 28px;
  font-weight: 700;
  line-height: 100%;

line-height: 10%;
  margin-top: 5px;
  color: var(--color-accent);
}
.page-id-980 .materials .materials__title {
  font-size: 56px;
  font-weight: 700;
  line-height: 130%;
margin-top: 0px;
 padding-bottom: 50px;
}
.page-id-980 .materials__container {
  padding-left: 0;
  padding-right: 0;
}
.page-id-980 .container-mobile:not(:last-child) {
  margin-bottom: 50px;
}
.page-id-980 .container-mobile:last-child .page-about__reviews__text > p:last-child {
  margin-bottom: 0;
}



/* --- Адаптивность --- */

@media (max-width: 768px) {

  /* Материалы — только страница Отзывы */

  .page-id-980 .materials .materials__title {
    font-size: 22px;
    line-height: 130%;
    padding-bottom: 0;
    margin-bottom: 15px;
  }
  .page-id-980 .materials .materials__item-title {
    color: var(--color-accent);
    font-size: 13px;
    font-weight: 700;
    line-height: 110%;
    margin-top: 4px;
 margin-bottom: 0;
  }

  .page-id-980 .materials .materials__item-desc {
    font-size: 12px;
    line-height: 110%;
    margin-top: 1px;
  }

  .page-id-980 .materials__list {
    gap: 4px;
  }
}




@media (max-width: 768px) {
  .materials {
    padding: 50px 0 0px;
  }

.materials__title {
    margin-bottom: 15px;
padding-top:2px;
    font-size: 22px;
  }

  .materials__list {
    gap: 12px;
    padding-left: 0;
    /* Убираем падинги на мобилке */
  }

.materials__item-title {
    font-size: 13px;
margin-top: 16px;
  }

  .materials__item-desc {
    font-size: 12px;
margin-top:1px;
  }

  .materials__btn {
    padding: 12px 20px;
    font-size: 13px;
  }

  .materials__list {
    margin-bottom: 20px;
  }
/* Материалы — только на странице Отзывы */
  .page-id-980 .materials__list {
    gap: 1px;
  }

  .page-id-980 .materials .materials__item-title {
    margin-top: 4px;
  }
.page-id-980 .page-about__reviews .container-mobile {
    margin-bottom: 0;
  }
}

/* --- Секция "Проводник" (Эксперт) --- */

.expert {
  padding: 0 0 100px;
  background-color: #ffffff;
  font-family: 'Century Gothic', sans-serif;
}

.expert__container {
  box-sizing: border-box;
  width: 100%;
}

/* Переключатели отображения */
.expert--mobile {
  display: none;
}

.expert__desktop {
  display: flex;
  /* Центрируем фото относительно текстового блока по вертикали */
  justify-content: space-between;
  align-items: center;
  gap: 60px;
  width: 100%;
}

/* Колонки */
.expert__image-col {
  display: flex;
  flex: 1;
  justify-content: flex-start;
  max-width: 480px;
}

.expert__info-col {
  display: flex;
  flex: 1.2;
  flex-direction: column;
  align-items: flex-start;
  text-align: justify;
}

/* Обертка изображения на ПК со скруглением */
.expert__img-wrapper {
  width: 100%;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.expert__img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* Заголовок и вводный текст */
.expert__title {
  margin: 0 0 16px 0;

  color: var(--color-accent);
  font-size: 56px;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.expert__intro {
  margin: 0 0 16px 0;
  color: var(--text-main);
  font-size: 24px;
  font-weight: 400;
  line-height: 130%;
  /* max-width: 600px; */
}

.expert__intro strong {
  font-weight: 700;
}

/* Мета-блок (Имя | Опыт) */
.expert__meta {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 8px;
}

.expert__name {
  color: var(--text-main);
  font-size: 32px;
  font-weight: 700;
  line-height: 140%;
  letter-spacing: 0.01em;
}

.expert__experience {
  color: var(--color-accent);
  font-size: 24px;
  font-weight: 700;
  line-height: 140%;
  letter-spacing: 0.01em;
}

/* Вертикальный разделитель */
.expert__meta .expert__experience::before {
  display: inline-block;
  width: 2px;
  height: 46px;
  margin-right: 25px; /* Отступ от палки до текста "20 + лет..." */
  margin-left: 25px; /* Отступ от текста "Татьяна Полевая" до палки */
  background-color: var(--text-main);
  content: '';
  vertical-align: middle;
}

/* Ссылка подробнее */
.expert__more-link {
  margin-bottom: 28px;
  color: var(--text-main);
  font-size: 18px;
  font-weight: 400;
  transition: color 0.2s ease;
  font-style: italic;
  text-decoration: none;
}

/* Основной блок биографии */
.expert__bio-text {
  display: flex;
  flex-direction: column;
  gap: 12px;
  /* max-width: 620px; */
}

.expert__bio-text p {
  margin: 0;
  color: var(--text-main);
  font-size: 20px;
  font-weight: 400;
  line-height: 130%;
}

@media (max-width: 768px) {
  .expert--desktop {
    display: none;
  }

  .expert--mobile {
    display: block;
  }

  .expert__desktop {
    display: none !important;
  }

  .expert__mobile {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  .expert {
    padding: 0 0 32px 0;
    /* Убираем верхний паддинг, чтобы карточка могла стыковаться с предыдущим фоном при необходимости */
  }

  .expert__container {
    padding: 0;
    /* Контент карточки идет во всю ширину мобильного экрана */
  }

  /* Мобильная карточка-контейнер */
  .expert__mob-card {
    position: relative;
    width: 100%;
    margin-bottom: 32px;
    overflow: hidden;
  }

  .expert__mob-img {
    display: block;
    width: 100%;
    height: auto;
  }

  /* Нижняя полупрозрачная плашка на мобильном */
  .expert__mob-overlay {
    position: absolute;
    bottom: 15px;
    left: 0;
    box-sizing: border-box;
    width: 100%;
    /* Тонированный фирменный зеленый */
    padding: 20px 16px;
    background-color: rgba(135, 178, 163, 0.55);
    color: #ffffff;
    text-align: center;
  }

  .expert__mob-overlay-title {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    line-height: 160%;
    letter-spacing: 0.01em;
  }

  .expert__mob-overlay-subtitle {
    margin: 0 0 10px 0;
    font-size: 14px;
    font-weight: 400;
  }

  .expert__mob-name {
    margin-bottom: 2px;
    font-size: 26px;
    font-weight: 700;
    line-height: 160%;
    letter-spacing: 0.03em;
  }

  .expert__mob-experience {
    font-size: 15px;
    font-weight: 400;
    line-height: 130%;
  }

  /* Текстовый блок под фото на мобильном */
  .expert__mob-bio {
    display: flex;
    flex-direction: column;
    gap: 20px;
    /* Возвращаем аккуратные текстовые отступы по бокам экрана */
    box-sizing: border-box;
    width: 100%;
    padding: 0 20px;
    text-align: justify;
  }

  .expert__mob-p {
    margin: 0;
    color: var(--text-main);
    font-size: 14px;
    font-weight: 400;
    line-height: 130%;
  }

  .expert__mob-bio :first-child {
    letter-spacing: 0.03em;
  }

  /* Жирный финальный абзац на мобильном */
  .expert__mob-p-bold {
    margin: 0;
    color: var(--text-main);
    font-size: 14px;
    font-weight: 700;
    line-height: 130%;
   
    letter-spacing: 0.03em;
  }
}

/* Настройки секции фото-отзывов */
.photo-reviews {
  padding: 50px 0;
  background-color: #fdfaf4;
  overflow: hidden;
}

.photo-reviews__swiper-wrapper {
  width: 80%;
}

/* Контейнер слайдера */
.photo-reviews__container {
  position: relative;
}

/* Оболочка слайдера */
.photo-reviews__slider {
  max-width: 1280px;
  margin: 0 auto;
}

/* Карточка для фотографии */
.photo-reviews__card {
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 12px;
  background: #ffffff;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
  aspect-ratio: 3 / 4;
}

/* Изображение внутри карточки */
.photo-reviews__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* === Кастомизация Swiper элементов === */

/* Общие стили для стрелок */
.photo-reviews__arrow {
  top: 40% !important;
  width: 48px !important;
  height: 48px !important;
  margin-top: 0 !important;
  border-radius: 50%;
  background-color: #84b1a7 !important;
  transform: translateY(-50%);
  transition: background-color 0.3s ease;
}

/* Настраиваем внутренние иконки стрелок Swiper */
.photo-reviews__arrow::after {
  color: #ffffff !important;
  font-size: 18px !important;
  font-weight: bold;
}

.photo-reviews__arrow:hover {
  background-color: #729d94 !important;
}

/* Позиционирование стрелок влево/вправо */
.photo-reviews__arrow--prev {
  left: 0px !important;
}

.photo-reviews__arrow--next {
  right: 0px !important;
}

/* Контейнер точек пагинации */
.photo-reviews__dots {
  position: relative !important;
  margin-top: 30px;
}

/* Неактивная точка */
.photo-reviews__dots .swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  background: #cbdcd8 !important;
  opacity: 1 !important;
  transition: background-color 0.3s ease;
}

/* Активная точка */
.photo-reviews__dots .swiper-pagination-bullet-active {
  background: #84b1a7 !important;
}

/* Адаптивность для мобильных экранов */
@media (max-width: 768px) {
  .photo-reviews__arrow {
    width: 12px !important;
    height: 24px !important;
  }

  .photo-reviews__arrow::after {
    font-size: 14px !important;
  }
}

/* Стили для кнопки Вверх */
.scroll-to-top {
  position: fixed;
  right: -60px; /* Изначально спрятана за правым краем экрана */
  bottom: 110px;
  z-index: 99;
  width: 45px;
  height: 45px;
  border: none;
  border-radius: 100%;
  transition:
    right 0.4s ease,
    transform 0.3s ease;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

/* Класс, который будет добавляться через JS при прокрутке */
.scroll-to-top.show {
  right: 30px; /* Плавное появление */
}

/* Hover-эффект в стиле вашей темы */
.scroll-to-top:hover {
  background-color: var(--color-text, #333);
  transform: translateY(-3px);
}

/* ===================================================== */
/* Универсальные стили для стандартных текстовых страниц */
/* ===================================================== */

.default-page-section {
  padding: 100px 0;
}

.default-page-title {
  margin-bottom: 60px;
  color: var(--color-text, #333);
  font-size: 64px;
  font-weight: 700;
  text-align: center;
  text-transform: uppercase;
}

/* Оформление внутренностей редактора (Гутенберга) */
.default-page-content {
  color: var(--color-text-light, #555);
  font-size: 16px;
  line-height: 1.6;
}

.default-page-content p {
  margin-bottom: 20px;
}

.default-page-content h2 {
  margin-top: 35px;
  margin-bottom: 15px;
  color: var(--color-text, #333);
  font-size: 24px;
  font-weight: 600;
}

.default-page-content h3 {
  margin-top: 25px;
  margin-bottom: 12px;
  color: var(--color-text, #333);
  font-size: 20px;
  font-weight: 600;
}

.default-page-content ul,
.default-page-content ol {
  margin-bottom: 20px;
  padding-left: 20px;
}

.default-page-content li {
  margin-bottom: 8px;
}

/* На случай, если в договоре оферты будут таблицы */
.default-page-content table {
  width: 100%;
  margin: 25px 0;
  border-collapse: collapse;
}

.default-page-content th,
.default-page-content td {
  padding: 12px;
  border: 1px solid #e0e0e0;
  text-align: left;
}

.default-page-content th {
  background-color: #f9f9f9;
  font-weight: 600;
}

/* ==========================================================================
   Адаптив для стандартных текстовых страниц (Экран < 768px)
   ========================================================================== */
@media (max-width: 767px) {
  .default-page-section {
    padding: 50px 0; /* Уменьшаем вертикальные отступы секции */
  }

  .default-page-title {
    margin-bottom: 45px;
    font-size: 26px; /* Заголовок становится компактнее */
  }

  .default-page-content {
    font-size: 14px; /* Чуть-чуть уменьшаем базовый текст для читаемости */
    line-height: 1.5;
  }

  .default-page-content h2 {
    margin-top: 25px;
    margin-bottom: 10px;
    font-size: 20px; /* Подзаголовки h2 */
  }

  .default-page-content h3 {
    margin-top: 20px;
    margin-bottom: 8px;
    font-size: 18px; /* Подзаголовки h3 */
  }

  /* Адаптив для таблиц, чтобы они не вылезали за пределы экрана */
  .default-page-content table {
    display: block;
    width: 100%;
    margin: 15px 0;
    overflow-x: auto; /* Включает аккуратный горизонтальный скролл внутри таблицы */
    -webkit-overflow-scrolling: touch;
  }

  .default-page-content th,
  .default-page-content td {
    padding: 8px 10px; /* Уменьшаем внутренние отступы в ячейках */
    font-size: 14px;
  }
}

/* ===================================== */

/* Контейнер попапа */
.cert-popup {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

/* Попап активен */
.cert-popup.is-active {
  opacity: 1;
  pointer-events: auto;
}

/* Темный задний фон */
.cert-popup__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
}

/* Контентная область */
.cert-popup__content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  padding: 10px;
  border-radius: 4px;
  background: #fff;
  transform: scale(0.9);
  transition: transform 0.3s ease;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.cert-popup.is-active .cert-popup__content {
  transform: scale(1);
}

/* Картинка внутри попапа */
.cert-popup__content img {
  display: block;
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
}

/* Кнопка закрытия */
.cert-popup__close {
  position: absolute;
  top: -25px;
  right: -40px;
  border: none;
  background: none;
  color: #fff;
  font-size: 35px;
  line-height: 1;
  cursor: pointer;
}
.cert-popup__close:hover {
  color: #ccc;
}

/* Делаем область для видео чуть шире,
так как формат обычно 16:9 */
.video-popup__content {
  width: 100%;
  max-width: 800px;
  padding: 0;
  background: #000; /* Черный фон для видео-плеера */
}

#popup-video-player {
  display: block;
  max-height: 80vh;
}

@media (max-width: 768px) {
  /* Сдвигаем крестик внутрь попапа, чтобы он не улетал за экран */
  .cert-popup__close {
    top: 10px;
    right: 15px;
    z-index: 10; /* Чтобы быть поверх картинки/видео */
    display: flex;
    justify-content: center;
    align-items: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(
      0,
      0,
      0,
      0.5
    ); /* Добавляем темную подложку, чтобы крестик читался на любом фоне */
    color: #fff;
    font-size: 30px;
  }

  /* Делаем отступы вокруг контента чуть меньше на мобилках */
  .cert-popup__content {
    max-width: 95%;
    padding: 5px;
  }
}

/* ====== Стили формы Анкета ======= */

/* Базовое состояние попапа */
.form-popup {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

/* При активации */
.form-popup.is-active {
  opacity: 1;
  pointer-events: auto;
}

/* Задний полупрозрачный фон */
.form-popup__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(15, 23, 42, 0.6); /* Мягкое темное размытие */
  backdrop-filter: blur(4px);
}

/* Тело попапа */
.form-popup__body {
  position: relative;
  z-index: 2;
  width: 90%;
  max-width: 460px;
  padding: 40px;
  border-radius: 16px;
  background: #ffffff;
  transform: translateY(20px);
  transition: transform 0.3s ease;
  box-shadow:
    0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.form-popup.is-active .form-popup__body {
  transform: translateY(0);
}

/* Кнопка закрытия */
.form-popup__close {
  position: absolute;
  top: 16px;
  right: 16px;
  border: none;
  background: none;
  color: #64748b;
  font-size: 2rem;
  line-height: 1;
  transition: color 0.2s ease;
  cursor: pointer;
}

.form-popup__close:hover {
  color: #0f172a;
}

/* Заголовки */
.form-popup__title {
  margin-bottom: 8px;
  color: #0f172a;
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
}

.form-popup__desc {
  margin-bottom: 24px;
  color: #64748b;
  font-size: 0.9rem;
  line-height: 1.5;
}

/* Стилизация полей Contact Form 7 */
.popup-form__field {
  margin-bottom: 16px;
}

/* Стилизуем дефолтные инпуты CF7 */
.popup-form__field input[type='text'],
.popup-form__field input[type='tel'],
.popup-form__field input[type='email'] {
  box-sizing: border-box;
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #f8fafc;
  color: #0f172a;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.popup-form__field input:focus {
  background: #ffffff;
  outline: none;
  border-color: #38bdf8; /* Акцентный голубой */
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.15);
}

/* Стилизация кнопки отправки */
.popup-form__submit {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 8px;
  background: #0f172a;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 600;
  transition:
    background-color 0.2s ease,
    transform 0.1s ease;
  cursor: pointer;
}

.popup-form__submit:hover {
  background: #1e293b;
}

.popup-form__submit:active {
  transform: scale(0.98);
}

/* Лоадер CF7 (крутилка при отправке) */
.wpcf7-spinner {
  position: absolute;
  bottom: 16px;
  left: 50%;
  margin: 0 !important;
  transform: translateX(-50%);
}

/* Блок с сообщениями об ошибках/успехе от CF7 */
.wpcf7-response-output {
  margin: 16px 0 0 0 !important;
  padding: 10px 14px !important;
  border-radius: 8px !important;
  font-size: 0.85rem !important;
  text-align: center;
}

/* Адаптив для телефонов */
@media (max-width: 480px) {
  .form-popup__body {
    padding: 30px 20px;
  }
  .form-popup__title {
    font-size: 1.3rem;
  }
}

/* Обновляем размеры тела попапа под большую анкету */
.form-popup__body {
  position: relative;
  z-index: 2;

  /* Включаем внутреннюю прокрутку */
  display: flex;
  flex-direction: column;
  width: 95%;
  max-width: 650px; /* Сделали чуть шире для удобства чтения */
  max-height: 85vh; /* Ограничиваем высоту до 85% от экрана */
  padding: 40px;
  border-radius: 16px;
  background: #ffffff;
  transform: translateY(20px);
  transition: transform 0.3s ease;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

/* Обертка для контента внутри попапа, которая будет скроллиться */
.form-popup__content {
  padding-right: 10px; /* Отступ, чтобы скроллбар не налезал на текст */
  overflow-y: auto;
}

/* Красивый тонкий скроллбар для Webkit-браузеров */
.form-popup__content::-webkit-scrollbar {
  width: 6px;
}
.form-popup__content::-webkit-scrollbar-track {
  border-radius: 8px;
  background: #f1f5f9;
}
.form-popup__content::-webkit-scrollbar-thumb {
  border-radius: 8px;
  background: #cbd5e1;
}
.form-popup__content::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Стилизация заголовков и текста вопросов */
.popup-form__label {
  display: block;
  margin-bottom: 8px;
  color: #1e293b;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.4;
}

/* Стили полей ввода и текстовых областей */
.popup-form__field {
  margin-bottom: 24px;
}

.popup-form__field input[type='text'],
.popup-form__field input[type='tel'],
.popup-form__field input[type='email'],
.popup-form__field textarea {
  box-sizing: border-box;
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #f8fafc;
  color: #0f172a;
  font-family: inherit;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.popup-form__field textarea {
  resize: vertical; /* Разрешаем менять высоту только по вертикали */
}

.popup-form__field input:focus,
.popup-form__field textarea:focus {
  background: #ffffff;
  outline: none;
  border-color: var(--color-accent); /* Зеленый фокус под цвет кнопки */
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

/* Секция выбора связи */
.popup-form__section {
  margin-bottom: 24px;
  padding: 20px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #f8fafc;
}

.popup-form__section-title {
  margin-bottom: 16px;
  color: #0f172a;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.4;
}

.popup-form__section .popup-form__field {
  margin-bottom: 12px;
}
.popup-form__section .popup-form__field:last-child {
  margin-bottom: 0;
}

/* Стилизация обязательной галочки конфиденциальности */
.popup-form__privacy {
  margin: 24px 0;
  color: #475569;
  font-size: 0.85rem;
  line-height: 1.5;
  text-align: left;
}

.popup-form__privacy a {
  color: var(--color-accent);
  text-decoration: none;
}

.popup-form__privacy a:hover {
  text-decoration: underline;
}

/* Оформление чекбокса */
.popup-form__checkbox input[type='checkbox'] {
  width: 16px;
  height: 16px;
  margin-right: 8px;
  transform: translateY(1px);
  cursor: pointer;
}

/* Кнопка ОТПРАВИТЬ (зеленая, как на макете) */
.popup-form__submit {
  width: 100%;
  padding: 16px;
  border: none;
  border-radius: 8px;
  background: var(--color-accent);
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition:
    background-color 0.2s ease,
    transform 0.1s ease;
  cursor: pointer;
}

.popup-form__submit:hover {
  background: var(--color-accent);
}

.popup-form__submit:active {
  transform: scale(0.99);
}

/* Если кнопка заблокирована (пока не нажали галочку) */
.popup-form__submit[disabled] {
  background: #cbd5e1;
  cursor: not-allowed;
}

/* Адаптивность для мобильных телефонов */
@media (max-width: 480px) {
  .form-popup__body {
    width: 95%;
    max-height: 90vh;
    padding: 30px 15px;
  }
  .form-popup__title {
    font-size: 1.25rem;
  }
  .popup-form__label {
    font-size: 0.9rem;
  }
}
