/* style.css — финальная, без дублей, с поддержкой обтекания на главной и flex на страницах товаров */

/* ===== RESET ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  overflow-x: hidden;
}

body {
  font-family: 'Montserrat', sans-serif;
  background: linear-gradient(135deg, rgba(248,245,255,0.95) 0%, rgba(235,230,255,0.9) 50%, rgba(248,245,255,0.95) 100%);
  color: #2d2a3e;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 20% 30%, rgba(124,111,222,0.03) 0%, transparent 50%);
  pointer-events: none;
  z-index: -1;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ===== ОТСТУП ПОД ФИКСИРОВАННЫЙ ХЕДЕР ===== */
main {
  padding-top: 80px;
}

/* ===== БЛОКИ ===== */
.bg-light {
  background-color: #f8f7ff;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

section {
  padding: 80px 0;
}

/* ===== ТИПОГРАФИЯ ===== */
h2 {
  font-size: 36px;
  margin-bottom: 20px;
  font-weight: 700;
  color: #2d2a3e;
}
h3 {
  font-size: 28px;
  margin-bottom: 15px;
  font-weight: 700;
}
.text-center {
  text-align: center;
}

/* ===== КНОПКИ ===== */
.btn {
  display: inline-block;
  background: #7c6fde;
  color: #fff;
  padding: 12px 28px;
  border-radius: 40px;
  text-decoration: none;
  font-weight: 600;
  transition: 0.25s;
  border: none;
  cursor: pointer;
}
.btn:hover {
  background: #5e51c2;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(124,111,222,0.3);
}
.btn-sm {
  background: #7c6fde;
  color: white;
  padding: 8px 22px;
  border-radius: 40px;
  text-decoration: none;
  font-weight: 500;
  display: inline-block;
}
.btn-sm:hover { background: #5e51c2; }

/* ===== HEADER & NAVIGATION (ДЕСКТОП) ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.04);
  z-index: 2000;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.logo img {
  height: 42px;
  width: auto;
}

.main-nav {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}
.main-nav ul {
  display: flex;
  gap: 18px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.main-nav a {
  display: block;
  padding: 10px 16px;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 600;
  color: #2d2a3e;
  font-size: 15px;
  white-space: nowrap;
  transition: background 0.25s, color 0.25s;
}
.main-nav a:hover {
  background: #f3f1fe;
  color: #7c6fde;
}

.mobile-menu-btn {
  display: none;
  font-size: 26px;
  cursor: pointer;
  background: none;
  border: none;
  color: #2d2a3e;
  width: 48px;
  height: 48px;
}

/* ===== БОКОВАЯ ПАНЕЛЬ СОЦСЕТЕЙ ===== */
.social-sidebar {
  position: fixed;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 15px;
  z-index: 1000;
}
.social-sidebar a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: #7c6fde;
  border-radius: 50%;
  color: white;
  font-size: 24px;
  transition: 0.3s;
  box-shadow: 0 5px 15px rgba(124,111,222,0.3);
  text-decoration: none;
}
.social-sidebar a:hover {
  transform: scale(1.1);
  background: #5e51c2;
}

/* ===== ОВЕРЛЕЙ (ДЛЯ МОБИЛЬНОГО МЕНЮ) ===== */
.menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  opacity: 0;
  visibility: hidden;
  transition: 0.3s ease;
  z-index: 1900;
  cursor: pointer;
}
.menu-overlay.active {
  opacity: 1;
  visibility: visible;
}
body.menu-open {
  overflow: hidden;
}

/* ===== HERO ===== */
.hero {
  text-align: center;
  padding: 80px 0;
}
.hero h1 {
  font-size: 44px;
  font-weight: 800;
  margin-bottom: 20px;
}
.hero p {
  font-size: 18px;
  max-width: 700px;
  margin: 0 auto 30px;
  color: #4a4670;
}

/* ===== FEATURES ===== */
.features-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
  margin: 30px 0;
}
.feature-card {
  flex: 1;
  min-width: 250px;
  background: #fff;
  padding: 30px 20px;
  border-radius: 28px;
  box-shadow: 0 12px 28px rgba(0,0,0,0.04);
  text-align: center;
}
.feature-card i {
  font-size: 48px;
  color: #7c6fde;
  margin-bottom: 20px;
}
.feature-card h4 {
  font-size: 20px;
  font-weight: 600;
}

/* ===== ОБТЕКАНИЕ НА ГЛАВНОЙ СТРАНИЦЕ (НЕ ВЛИЯЕТ НА СТРАНИЦЫ ТОВАРОВ) ===== */
.about-wrap {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 60px;
  align-items: start;
}
.about-img {
  width: 420px;
  max-width: 100%;
}

.about-img img {
  width: 100%;
  height: auto;
  border-radius: 32px;
  box-shadow: 0 18px 40px rgba(0,0,0,0.10);
  display: block;
}
.about-text h3 {
  font-size: 34px;
  font-weight: 800;
  margin-bottom: 10px;
  color: #2d2a3e;
}

.about-text p {
  font-size: 17px;
  line-height: 1.7;
  color: #4a4670;
  margin-bottom: 20px;
}
.about-img img {
  width: 100%;
  border-radius: 32px;
  box-shadow: 0 18px 40px rgba(0,0,0,0.08);
  object-fit: cover;
}
.about-text {
  display: block;
  overflow: hidden;
}
.stats-row {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 30px;
  text-align: center;
  clear: both;
}
.stat { flex: 1; }
.stat-number {
  font-size: 48px;
  font-weight: 800;
  color: #7c6fde;
}

/* ===== КАРУСЕЛЬ УСЛУГ ===== */
.price-slider {
  background: #fff;
  border-radius: 32px;
  padding: 20px 10px;
  margin-top: 30px;
}
.service-item {
  background: #faf9ff;
  border-radius: 28px;
  padding: 25px;
  text-align: center;
  margin: 12px;
  box-shadow: 0 6px 14px rgba(0,0,0,0.02);
}
.service-item h4 { font-size: 22px; margin-bottom: 10px; }
.price {
  font-size: 28px;
  font-weight: 700;
  color: #7c6fde;
  margin: 15px 0;
}
.service-desc { color: #5a5775; margin-bottom: 20px; }
.owl-carousel .owl-nav { display: none !important; }
.owl-dots { margin-top: 20px; }
.owl-dot span { background: #d1cbf5 !important; }
.owl-dot.active span { background: #7c6fde !important; }

/* ===== СПИСОК ПРОБЛЕМ ===== */
.problems-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 40px;
}
.problem-item {
  background: #ffffff;
  padding: 18px 20px;
  border-radius: 60px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 12px;
}
.problem-item i {
  color: #7c6fde;
  font-size: 20px;
  width: 28px;
}

/* ===== МЕДИТАЦИИ (КАТЕГОРИИ) ===== */
.meditation-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 35px;
  margin-top: 50px;
}
.meditation-card {
  background: #fff;
  border-radius: 30px;
  text-align: center;
  padding: 25px 15px 20px;
  box-shadow: 0 12px 24px rgba(0,0,0,0.04);
}
.meditation-card img {
  width: 140px;
  height: 140px;
  object-fit: cover;
  border-radius: 50%;
  background: #f0edff;
  margin-bottom: 20px;
  transition: transform 0.2s;
}
.meditation-card:hover img { transform: scale(1.02); }
.meditation-card a {
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
  color: #2d2a3e;
  display: block;
}
.meditation-card a:hover { color: #7c6fde; }

/* ===== ТАБЫ ===== */
.tabs-container { margin: 40px 0; }
.tab-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 35px;
}
.tab-btn {
  background: #efecfe;
  border: none;
  padding: 12px 32px;
  border-radius: 60px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}
.tab-btn.active {
  background: #7c6fde;
  color: white;
}
.tab-content {
  display: none;
  background: #fff;
  padding: 40px 35px;
  border-radius: 32px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.03);
}
.tab-content.active {
  display: flex;
  flex-wrap: wrap;
  gap: 50px;
  align-items: center;
}
.tab-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.tab-text h3 {
  font-size: 28px;
  font-weight: 700;
  margin: 0;
}
.tab-text p {
  font-size: 16px;
  line-height: 1.5;
  margin: 0;
  color: #4a4670;
}
.tab-text .btn-sm { align-self: flex-start; }
.tab-img {
  flex: 1;
  text-align: center;
}
.tab-img img {
  max-width: 100%;
  border-radius: 28px;
  box-shadow: 0 8px 18px rgba(0,0,0,0.05);
}

/* ===== ОТЗЫВЫ (GRID ВЕРСИЯ) ===== */
.testimonials {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}
.testimonial {
  background: #fff;
  padding: 32px;
  border-radius: 32px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.03);
  transition: transform 0.2s;
  display: flex;
  flex-direction: column;
}
.testimonial:hover {
  transform: translateY(-4px);
}
.testimonial p {
  font-style: italic;
  margin-bottom: 20px;
  color: #4a4670;
  line-height: 1.5;
  flex: 1;
}
.client-name {
  font-weight: 700;
  color: #2d2a3e;
  margin-top: auto;
}

/* ===== INSTAGRAM GRID ===== */
.instagram-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 25px;
  margin-top: 40px;
}
.insta-card {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  box-shadow: 0 12px 24px rgba(0,0,0,0.08);
}
.insta-card a { display: block; width: 100%; height: 100%; }
.insta-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}
.insta-card:hover img { transform: scale(1.03); }
.insta-card i {
  position: absolute;
  bottom: 16px;
  right: 16px;
  color: white;
  background: rgba(0,0,0,0.5);
  border-radius: 50%;
  padding: 8px;
  font-size: 24px;
  backdrop-filter: blur(4px);
}

/* ===== КОНТАКТНАЯ ФОРМА ===== */
.contact-form {
  max-width: 600px;
  margin: 0 auto;
  background: #fff;
  padding: 35px;
  border-radius: 48px;
  box-shadow: 0 15px 35px rgba(0,0,0,0.04);
}
.form-group { margin-bottom: 20px; }
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 24px;
  border: 1px solid #e3e0fc;
  border-radius: 60px;
  font-family: inherit;
  font-size: 16px;
  background: #fefeff;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #7c6fde;
  box-shadow: 0 0 0 3px rgba(124,111,222,0.1);
}
.form-group textarea { border-radius: 32px; resize: vertical; }

/* ===== FOOTER ===== */
.footer {
  background: #121022;
  color: #b5b1dc;
  padding: 60px 0 30px;
  margin-top: 60px;
}
.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px;
}
.footer-info { max-width: 600px; }
.footer-info p { margin-bottom: 12px; }
.social-links a {
  color: #cbc6ff;
  font-size: 26px;
  margin-right: 24px;
  transition: 0.2s;
}
.social-links a:hover { color: #7c6fde; }
.copyright {
  text-align: center;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid #28253e;
  font-size: 14px;
}

/* ===== СТИЛИ ДЛЯ СТРАНИЦЫ "ИНДИВИДУАЛЬНЫЕ КОНСУЛЬТАЦИИ" ===== */
.about-img .small-images {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin-top: 25px;
}
.about-img .small-images img {
  width: 100%;
  max-width: 320px;
  border-radius: 28px;
  object-fit: cover;
}
.consultation-list ul {
  list-style: none;
  padding-left: 0;
}
.consultation-list ul li {
  margin-bottom: 16px;
  padding-left: 14px;
  position: relative;
  line-height: 1.6;
}

.consultation-list ul li::before {
  content: "•";
  color: #7c6fde;
  position: absolute;
  left: 0;
  font-weight: bold;
}
.consultation-list ul li strong {
  display: inline-block;
  min-width: 240px;
  font-weight: 700;
  color: #5e51c2;
}
.price-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 50px;
}
.price-card {
  background: #ffffff;
  border-radius: 32px;
  padding: 30px 20px;
  text-align: center;
  box-shadow: 0 15px 30px rgba(0,0,0,0.05);
}
.price-card.highlight {
  background: #f8f7ff;
  border: 1px solid #e0daff;
}
.price-icon img { width: 80px; margin-bottom: 20px; }
.price-card h4 { font-size: 22px; font-weight: 700; margin: 15px 0 10px; }
.price-value {
  font-size: 30px;
  font-weight: 800;
  color: #7c6fde;
  margin: 15px 0;
}
.price-desc { font-size: 14px; color: #5a5775; margin-bottom: 25px; }
.social-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}
.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #f0edff;
  padding: 12px 24px;
  border-radius: 60px;
  text-decoration: none;
  color: #2d2a3e;
  font-weight: 600;
}
.contact-link i { font-size: 20px; color: #7c6fde; }
.contact-link:hover {
  background: #e2dcfe;
  transform: translateY(-2px);
}
.btn-large { padding: 12px 36px; font-size: 18px; }

/* ===== ЗАЩИТА СТРАНИЦ ТОВАРОВ (ГИПНОМЕДИТАЦИИ) ОТ ГЛОБАЛЬНЫХ СТИЛЕЙ ОБТЕКАНИЯ ===== */
.product-layout {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 50px !important;
  align-items: flex-start !important;
}
.product-gallery {
  flex: 1 !important;
  background: #faf9ff;
  border-radius: 32px;
  padding: 40px;
  text-align: center;
}
.product-details {
  flex: 1.2 !important;
}
@media (max-width: 768px) {
  .product-layout {
    flex-direction: column !important;
    gap: 30px !important;
  }
  .product-gallery,
  .product-details {
    width: 100% !important;
    flex: auto !important;
  }
}

/* ===== МОБИЛЬНАЯ ВЕРСИЯ (до 768px) ===== */
@media (max-width: 768px) {
  main { padding-top: 70px; }
  .site-header {
    height: 70px;
    padding: 0 18px;
  }
  .mobile-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  /* Мобильное меню: выезжает справа, без лишнего пространства сверху */
  .main-nav {
    position: fixed;
    top: 70px;
    right: -100%;
    width: 82%;
    max-width: 320px;
    height: calc(100vh - 70px);
    background: #ffffff;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    padding: 20px 25px 40px;
    transition: right 0.35s ease;
    z-index: 2050;
    box-shadow: -10px 0 30px rgba(0,0,0,0.08);
    overflow-y: auto;
  }
  .main-nav.open {
    right: 0;
  }
  .main-nav ul {
    flex-direction: column;
    gap: 5px;
  }
  .main-nav a {
    width: 100%;
    padding: 12px 0;
    font-size: 16px;
    font-weight: 500;
    border-bottom: 1px solid #f1efff;
    border-radius: 0;
    white-space: normal;
    word-break: break-word;
  }
  /* Боковые соцсети уменьшаем */
  .social-sidebar {
    left: 10px;
    gap: 10px;
  }
  .social-sidebar a {
    width: 42px;
    height: 42px;
    font-size: 20px;
  }
  /* Обтекание на главной — отключаем float, центрируем фото */
  .about-img {
    float: none;
    width: 100%;
    max-width: 280px;
    margin: 0 auto 20px;
  }
  .about-text {
    max-width: 720px;
    overflow: visible;
  }
  /* Остальные адаптации */
  h2 { font-size: 28px; }
  .hero h1 { font-size: 32px; }
  section { padding: 55px 0; }
  .hero { padding: 40px 0 60px; }
  .tab-content.active {
    flex-direction: column;
    text-align: center;
  }
  .tab-text .btn-sm { align-self: center; }
  .instagram-grid { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
  .meditation-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 20px;
  }
  .meditation-card img {
    width: 100px;
    height: 100px;
  }
  /* Карточки цен */
  .price-cards {
    grid-template-columns: 1fr;
  }
  .consultation-list ul li strong {
    display: block;
    margin-bottom: 5px;
    min-width: auto;
  }
}

/* ===== ДЕСКТОПНЫЕ ПОПРАВКИ ===== */
@media (min-width: 769px) {
  .main-nav {
    position: static !important;
    width: auto !important;
    height: auto !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
    overflow: visible !important;
  }
  .main-nav ul {
    flex-direction: row !important;
  }
  .menu-overlay {
    display: none !important;
  }
}

/* ===== ПЛАНШЕТЫ ===== */
@media (max-width: 1024px) and (min-width: 769px) {
  .price-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}
/* Центрирование картинок в карточках "Форматы индивидуальных консультаций" */
.price-icon {
  text-align: center;
}
.price-icon img {
  display: inline-block;
  margin: 0 auto;
}

/* Центрирование картинок в блоке "Выбрать медитацию" на главной */
.meditation-card {
  text-align: center;
}
.meditation-card img {
  display: block;
  margin: 0 auto 20px auto;
}
/* ===== ОТСТУПЫ ДЛЯ СТРАНИЦ ТОВАРОВ (ГИПНОМЕДИТАЦИИ) ===== */
.product-hero {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px 30px;
  width: 100%;
}

@media (max-width: 768px) {
  .product-hero {
    padding: 40px 16px 30px;
  }
}
/* Принудительное скругление для всех картинок в карточках */
.product-card .product-image {
  overflow: hidden !important;
  border-radius: 32px 32px 28px 28px !important;
}
.product-card .product-image img {
  border-radius: 28px !important;
  transition: transform 0.3s ease;
}
/* Дополнительно — чтобы картинка заполняла контейнер и при этом скруглялась */
.product-card .product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* меняем contain на cover, чтобы картинка заполняла квадрат и углы обрезались */
}
@media (max-width: 768px) {
  .container {
    padding: 0 16px !important;
  }

  .product-hero {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  .product-layout {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .product-details {
    padding: 0 4px;
  }

  .product-gallery {
    padding: 20px !important;
  }
}
.product-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;

  padding: 6px 14px;
  border-radius: 999px;

  background: rgba(124, 111, 222, 0.12); /* мягкий фиолетовый фон */
  border: 1.5px solid rgba(124, 111, 222, 0.55); /* обводка */

  color: #5e51c2;
  font-size: 14px;
  font-weight: 600;

  white-space: nowrap;
}
.product-layout {
  display: flex;
  flex-wrap: wrap;
  gap: 50px;
  align-items: flex-start;
}

/* ГАЛЕРЕЯ */
.product-gallery {
  flex: 1;
  background: #faf9ff;
  border-radius: 32px;
  padding: 40px;
  text-align: center;

  /* плавность */
  transition: all 0.4s ease;
}

/* КАРТИНКА */
.product-gallery img {
  width: 100%;
  max-width: 420px;
  border-radius: 24px;
  box-shadow: 0 15px 30px rgba(0,0,0,0.05);

  /* плавный эффект при смене размера */
  transition: transform 0.5s ease, filter 0.5s ease;
}
@media (max-width: 768px) {
  .product-layout {
    flex-direction: column;
    gap: 24px;
  }

  .product-gallery {
    padding: 20px;
    border-radius: 24px;
  }

  .product-gallery img {
    max-width: 100%;
    transform: scale(1);
  }
}
@media (min-width: 769px) {
  .product-gallery {
    position: sticky;
    top: 100px; /* красиво фиксируется при скролле */
  }

  .product-gallery img:hover {
    transform: scale(1.03);
    filter: brightness(1.03);
  }
}
@media (max-width: 768px) {
  .about-wrap {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .about-text h3 {
    font-size: 26px;
    text-align: center;
  }

  .about-text p {
    font-size: 17px;
    line-height: 1.7;
  }
}
/* Модальное окно */
.modal {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.5);
  align-items: center;
  justify-content: center;
}
.modal-content {
  background-color: #fff;
  margin: auto;
  padding: 30px;
  border-radius: 32px;
  width: 90%;
  max-width: 500px;
  position: relative;
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}
.modal-close {
  position: absolute;
  right: 20px;
  top: 15px;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  color: #aaa;
}
.modal-close:hover {
  color: #000;
}
.modal-content h3 {
  margin-top: 0;
}
#consultForm .form-group {
  margin-bottom: 20px;
}
#consultForm input, #consultForm textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 50px;
  font-family: inherit;
}
#consultForm textarea {
  border-radius: 20px;
  resize: vertical;
}
#consultForm label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
}
/* Стили для модального окна */
.modal {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.6);
  align-items: center;
  justify-content: center;
}
.modal-content {
  background: #fff;
  margin: auto;
  padding: 30px 25px;
  border-radius: 32px;
  width: 90%;
  max-width: 550px;
  position: relative;
  box-shadow: 0 25px 50px rgba(0,0,0,0.2);
  max-height: 90vh;
  overflow-y: auto;
}
.modal-close {
  position: absolute;
  right: 20px;
  top: 15px;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  color: #aaa;
  transition: 0.2s;
}
.modal-close:hover {
  color: #000;
}
.modal-content h3 {
  margin-top: 0;
  font-size: 26px;
  color: #2d2a3e;
}
#consultForm .form-group {
  margin-bottom: 20px;
}
#consultForm input, #consultForm textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 60px;
  font-family: inherit;
  font-size: 16px;
  transition: 0.2s;
}
#consultForm input:focus, #consultForm textarea:focus {
  border-color: #7c6fde;
  outline: none;
  box-shadow: 0 0 0 3px rgba(124,111,222,0.2);
}
#consultForm textarea {
  border-radius: 24px;
  resize: vertical;
}
#consultForm label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #2d2a3e;
}
/* Карточки выбора типа консультации */
.consult-type-group {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 10px;
}
.consult-type-card {
  flex: 1;
  min-width: 140px;
  background: #f8f7ff;
  border: 2px solid #e9e7fc;
  border-radius: 24px;
  padding: 12px 8px;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.consult-type-card i {
  font-size: 28px;
  color: #7c6fde;
}
.consult-type-card span {
  font-size: 14px;
  font-weight: 500;
  color: #2d2a3e;
}
.consult-type-card small {
  font-size: 12px;
  color: #7c6fde;
  font-weight: 600;
}
.consult-type-card.selected {
  background: #7c6fde;
  border-color: #7c6fde;
}
.consult-type-card.selected i,
.consult-type-card.selected span,
.consult-type-card.selected small {
  color: white;
}
/* Скрываем стандартные радиокнопки */
input[type="radio"].consult-radio {
  display: none;
}

/* ===== MOBILE ADAPTATION ===== */
@media (max-width: 991px) {
  main {
    padding-top: 72px;
  }

  section {
    padding: 60px 0;
  }

  .container {
    padding: 0 16px;
  }

  h2 {
    font-size: 30px;
  }

  h3 {
    font-size: 24px;
  }

  .site-header {
    height: 72px;
    padding: 0 16px;
  }

  .mobile-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    max-width: 85%;
    height: 100vh;
    background: #fff;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 90px 24px 30px;
    transition: right 0.3s ease;
    z-index: 2100;
    overflow-y: auto;
    box-shadow: -10px 0 30px rgba(0,0,0,0.08);
  }

  .main-nav.active {
    right: 0;
  }

  .main-nav ul {
    width: 100%;
    flex-direction: column;
    gap: 10px;
  }

  .main-nav li {
    width: 100%;
  }

  .main-nav a {
    width: 100%;
    padding: 14px 16px;
    font-size: 16px;
    border-radius: 16px;
    background: #f8f7ff;
  }

  .hero {
    padding: 60px 0;
  }

  .hero h1 {
    font-size: 38px;
    line-height: 1.2;
  }

  .hero p {
    font-size: 17px;
  }

  .social-sidebar {
    left: 10px;
    bottom: 16px;
    top: auto;
    transform: none;
    flex-direction: row;
    gap: 10px;
  }

  .social-sidebar a {
    width: 44px;
    height: 44px;
    font-size: 20px;
  }

  .cards,
  .grid,
  .services-grid,
  .catalog-grid,
  .reviews-grid,
  .advantages-grid,
  .steps-grid,
  .faq-grid,
  .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }

  table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  iframe {
    width: 100%;
  }

  .modal-content {
    width: calc(100% - 24px);
    padding: 24px 18px;
    border-radius: 24px;
  }
}

@media (max-width: 767px) {
  body {
    font-size: 15px;
  }

  section {
    padding: 50px 0;
  }

  h2 {
    font-size: 26px;
  }

  h3 {
    font-size: 22px;
  }

  .hero {
    padding: 50px 0;
  }

  .hero h1 {
    font-size: 32px;
  }

  .hero p {
    font-size: 16px;
  }

  .btn,
  .btn-sm {
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  .cards,
  .grid,
  .services-grid,
  .catalog-grid,
  .reviews-grid,
  .advantages-grid,
  .steps-grid,
  .faq-grid,
  .products-grid {
    grid-template-columns: 1fr;
  }

  .card,
  .service-card,
  .review-card,
  .product-card,
  .advantage-card {
    padding: 20px;
  }

  .consult-type-group {
    flex-direction: column;
  }

  .consult-type-card {
    width: 100%;
  }

  .modal-content h3 {
    font-size: 22px;
  }
}

@media (max-width: 480px) {
  .site-header {
    padding: 0 12px;
  }

  .logo img {
    height: 34px;
  }

  main {
    padding-top: 68px;
  }

  .container {
    padding: 0 12px;
  }

  h2 {
    font-size: 22px;
  }

  h3 {
    font-size: 20px;
  }

  .hero h1 {
    font-size: 28px;
  }

  .hero p {
    font-size: 15px;
  }

  .btn,
  .btn-sm {
    padding: 12px 18px;
    font-size: 14px;
  }

  .main-nav {
    width: 100%;
    max-width: 100%;
    padding: 80px 18px 24px;
  }

  .social-sidebar {
    left: 8px;
    right: 8px;
    justify-content: center;
  }

  .social-sidebar a {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }

  .modal-content {
    padding: 20px 16px;
    border-radius: 20px;
  }

  #consultForm input,
  #consultForm textarea {
    font-size: 15px;
    padding: 11px 14px;
  }
}

@media (max-width: 767px) {
  .hero .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .hero .btn {
    width: 100%;
    max-width: 280px;
    margin-left: 0 !important;
    margin-right: 0;
    text-align: center;
  }
}