/* === ОБЩИЕ БАЗОВЫЕ СТИЛИ === */
* { box-sizing: border-box; }
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  font-family: 'Bellota Text', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial;
  background: #000;
  color: #fff;
}
a { color: inherit; text-decoration: none; }


.main-background {
  position: relative;
  background: linear-gradient(180deg, #08040a 0%, #2b1735 27%, #110914 100%);
  background-size: cover;
  overflow: hidden;
}

/* Текстурный фон (используем псевдоэлемент для текстуры) */
.main-background::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("assets/textures/rock_surface.png?v=2") repeat;
  opacity: 1; /* Регулируем прозрачность */
  mix-blend-mode: overlay;
  pointer-events: none;
  z-index: 0;
}

/* Правая текстура брызг (создаем отдельный элемент) */
.main-background .splash-right {
  content: "";
  position: absolute;
  top: 240px;
  right: 0;
  width: 800px;
  height: 1754px;
  background: url("assets/textures/%D0%91%D1%80%D1%8B%D0%B7%D0%B3%D1%80%D0%B8_%D0%A1%D0%BF%D1%80%D0%B0%D0%B2%D0%B0_%D0%92%D0%95%D0%A0%D0%A5.webp?v=2") no-repeat top right;
  background-size: contain;
  opacity: 0.55;
  mix-blend-mode: screen;
  pointer-events: none;
  z-index: 1;
}

/* Медиазапрос для экранов до 1150px */
@media (max-width: 1150px) {
  .main-background .splash-right {
    /* Поднимаем текстуру выше (уменьшаем top) */
    top: 120px; /* или любое другое значение, например 100px, 150px */
    
    /* Уменьшаем размер пропорционально */
    width: 600px; /* уменьшаем на 25% от 800px */
    height: 1315.5px; /* уменьшаем пропорционально: 1754px * 0.75 */
    
    /* Если нужно изменить выравнивание */
    /* right: -50px;  сдвигаем от края если нужно */
  }
}

/* Левая текстура брызг (создаем отдельный элемент) */
.main-background .splash-left {
  content: "";
  position: absolute;
  top: 240px;
  left: 0;
  width: 800px;
  height: 2225px;
  background: url("assets/textures/%D0%91%D1%80%D1%8B%D0%B7%D0%B3%D0%B8_%D1%81%D0%BB%D0%B5%D0%B2%D0%B0_%D0%92%D0%95%D0%A0%D0%A5.webp?v=2") no-repeat top left;
  background-size: contain;
  opacity: 0.55;
  mix-blend-mode: screen;
  pointer-events: none;
  z-index: 1;
}

/* Правые брызги 2 */
.main-background .splash-right-2 {
  content: "";
  position: absolute;
  top: 1700px;
  right: 0;
  width: 700px;
  height: 1383px;
  background: url("assets/textures/%D0%91%D1%80%D1%8B%D0%B7%D0%B3%D1%80%D0%B8_%D0%A1%D0%BF%D1%80%D0%B0%D0%B2%D0%B0_2.webp?v=2") no-repeat top right;
  background-size: contain;
  opacity: 0.55;
  mix-blend-mode: screen;
  pointer-events: none;
  z-index: 1;
}

/* Брызгри слева 2 */
.main-background .splash-left-2 {
  content: "";
  position: absolute;
  top: 2100px;
  left: 0;
  width: 900px;
  height: 1383px;
  background: url("assets/textures/%D0%91%D1%80%D1%8B%D0%B7%D0%B3%D0%B8_%D1%81%D0%BB%D0%B5%D0%B2%D0%B0_2.webp?v=2") no-repeat top left;
  background-size: contain;
  opacity: 0.55;
  mix-blend-mode: screen;
  pointer-events: none;
  z-index: 1;
}

/* Брызги справа 3 */
.main-background .splash-right-3 {
  content: "";
  position: absolute;
  bottom: 1850px;
  right: 0;
  width: 950px;
  height: 2110px;
  background: url("assets/textures/%D0%91%D1%80%D1%8B%D0%B7%D0%B3%D1%80%D0%B8_%D0%A1%D0%BF%D1%80%D0%B0%D0%B2%D0%B0_3.webp?v=2") no-repeat top right;
  background-size: contain;
  opacity: 0.55;
  mix-blend-mode: screen;
  pointer-events: none;
  z-index: 1;
}

/* Брызги слева 3 */
.main-background .splash-left-3 {
  content: "";
  position: absolute;
  bottom: 2000px;
  left: 0;
  width: 694px;
  height: 1197px;
  background: url("assets/textures/%D0%91%D1%80%D1%8B%D0%B7%D0%B3%D0%B8_%D1%81%D0%BB%D0%B5%D0%B2%D0%B0_3.webp?v=2") no-repeat top left;
  background-size: contain;
  opacity: 0.55;
  mix-blend-mode: screen;
  pointer-events: none;
  z-index: 1;
}

.site-head-wrapper {
  position: relative; /* чтобы z-index работал */
  z-index: 5;         /* выше, чем псевдоэлемент ::before */
  background-color: #1D1322; /* плотный темный фон */
}


/* === ДОБАВЛЯЕМ В НАЧАЛО ФАЙЛА === */

/* === ЧЕТКИЕ ПОЛЯ МЕЖДУ БЛОКАМИ С !important === */
.block-1 {
  padding: 10px 20px !important;
  margin: 0 auto !important;
}

.block-2 {
  padding: 10px 20px !important;
  margin: 0 auto !important;
}

.block-3 {
  padding: s20px !important;
  margin: 0 auto !important;
}

.price-block {
  padding: 10px 20px !important;
  margin: 0 auto !important;
}

.about-section {
  padding: 10px 20px !important;
  margin: 0 auto !important;
}

.reviews-section {
  padding: 10px 20px !important;
  margin: 0 auto !important;
}

/* УМЕНЬШАЕМ ЗАГОЛОВКИ В МЕДИАЗАПРОСАХ */
@media (max-width: 1024px) {
  .block-1 .welcome-title-main,
  .block-2 .title,
  .block-3 .gallery-title,
  .price-block .block-title,
  .about-section .about-title,
  .reviews-section .reviews-title,
  #consultation-form .title {
    font-size: 36px !important;
  }
}

@media (max-width: 768px) {
  .block-1 .welcome-title-main,
  .block-2 .title,
  .block-3 .gallery-title,
  .price-block .block-title,
  .about-section .about-title,
  .reviews-section .reviews-title,
  #consultation-form .title {
    font-size: 28px !important;
  }
}

@media (max-width: 480px) {
  .block-1 .welcome-title-main,
  .block-2 .title,
  .block-3 .gallery-title,
  .price-block .block-title,
  .about-section .about-title,
  .reviews-section .reviews-title,
  #consultation-form .title {
    font-size: 24px !important;
  }
}

/* === АДАПТИВНОСТЬ ДЛЯ БЛОКА 1 (WELCOME) С !important === */
@media (max-width: 1024px) {
  .block-1 {
    padding: 60px 20px !important;
  }
  
  .block-1 .welcome-glass-container {
    padding: 30px !important;
  }
  
  .block-1 .welcome-content {
    flex-direction: column !important;
    gap: 30px !important;
  }
  
  .block-1 .welcome-image {
    flex: 0 0 auto !important;
    width: 100% !important;
    max-width: 400px !important;
  }
  
  .block-1 .welcome-image img {
    height: 350px !important;
  }
}

@media (max-width: 768px) {
  .block-1 {
    padding: 40px 15px !important;
  }
  
  .block-1 .welcome-glass-container {
    padding: 25px !important;
    backdrop-filter: blur(5px) !important;
  }
  
  .block-1 .welcome-description {
    font-size: 16px !important;
    margin-bottom: 30px !important;
  }
  
  .block-1 .welcome-buttons {
    flex-direction: column !important;
    align-items: center !important;
  }
  
  .block-1 .btn {
    width: 100% !important;
    max-width: 300px !important;
    min-width: auto !important;
  }
}

@media (max-width: 480px) {
  .block-1 {
    padding: 30px 10px !important;
  }
  
  .block-1 .welcome-glass-container {
    padding: 20px !important;
    border-radius: 15px !important;
  }
  
  .block-1 .welcome-image img {
    height: 280px !important;
  }
  
  .block-1 .welcome-description {
    font-size: 15px !important;
    line-height: 1.6 !important;
  }
  
  .block-1 .btn {
    padding: 12px 20px !important;
    font-size: 14px !important;
  }
}

/* === АДАПТИВНОСТЬ ДЛЯ БЛОКА 7 (ФОРМА КОНСУЛЬТАЦИИ) С !important === */
@media (max-width: 1024px) {
  #consultation-form-wrapper {
    min-height: 400px !important;
  }
  
  #consultation-form {
    padding: 60px 20px 20px 100px !important;
    min-height: 400px !important;
  }
  
  .contact-form {
    left: 65% !important;
    width: 280px !important;
  }
}

@media (max-width: 768px) {
  #consultation-form-wrapper {
    min-height: auto !important;
    background-position: center center !important;
  }
  
  #consultation-form {
    padding: 40px 20px !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    min-height: auto !important;
  }
  
  #consultation-form .title {
    max-width: 100% !important;
    text-align: center !important;
    margin-bottom: 20px !important;
  }
  
  .contact-form {
    position: relative !important;
    left: auto !important;
    top: auto !important;
    transform: none !important;
    width: 100% !important;
    max-width: 400px !important;
    margin: 0 auto !important;
  }
  
  .btn-cta {
    width: 100% !important;
    max-width: 400px !important;
  }
}

@media (max-width: 480px) {
  #consultation-form {
    padding: 30px 15px !important;
  }
  
  #consultation-form .title {
    font-size: 22px !important;
    line-height: 1.3 !important;
  }
  
  .contact-form {
    gap: 12px !important;
  }
  
  .contact-form input,
  .dropdown-btn {
    height: 48px !important;
    font-size: 16px !important;
    padding: 8px 14px !important;
  }
  
  .btn-cta {
    height: 48px !important;
    font-size: 16px !important;
    margin-top: 10px !important;
  }
}


/* === ОБЩАЯ АДАПТИВНОСТЬ ДЛЯ ВСЕХ БЛОКОВ С !important === */
@media (max-width: 768px) {
  .reviews-section {
    padding: 40px 15px !important;
  }
}

@media (max-width: 480px) {
  .reviews-section {
    padding: 30px 10px !important;
  }
}


/* --- Обёртка хэдэра*/

.site-head-wrapper {
  width: 100%;
  background-color: #1D1322; /* плотный темный фон */
  background-image: none;    /* без текстуры или с полностью непрозрачной картинкой */
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  opacity: 1;                 /* гарантируем полную непрозрачность */
}

/* Контейнер контента остаётся прозрачным, чтобы не перекрывал фон */
.site-head {
  width: 1280px;
  height: 161px;
  margin: 0 auto;
  position: relative;
  font-family: Arial, sans-serif;
  background: transparent;
}



/* --- Звезда --- */
.star {
  position: absolute;
  left: 109px;
  top: 35px;
}
.star img {
  width: 84px;
  height: 80px;
  object-fit: contain;
  display: block;
}

/* --- Телефон --- */
.phone {
  position: absolute;
  left: 205px;
  top: 70px;
  font-weight: 700;
  font-size: 20px;
  color: #ffffff;
  text-decoration: none;
}
.phone:hover {
  text-decoration: underline;
}

/* --- Центральный логотип --- */
.head-center {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}
.head-center img {
  width: 412px;
  height: 119px;
  object-fit: contain;
  display: block;
}

/* --- Соцсети справа --- */
.head-right {
  position: absolute;
  right: 109px; /* выравниваем симметрично */
  top: 56px;
  display: flex;
  gap: 15px;
}

/* --- Общие стили иконок --- */
.sicon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: #cccccc;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 28px 28px;
  transition: background-color 0.22s ease, transform 0.12s ease;
}
.sicon:hover {
  transform: translateY(-3px);
}

/* Telegram */
.sicon.telegram {
  background-image: url('https://img.icons8.com/ios-filled/50/000000/telegram-app.png');
}
.sicon.telegram:hover {
  background-color: #0088cc;
  background-image: url('https://img.icons8.com/ios-filled/50/ffffff/telegram-app.png');
}

/* VK */
.sicon.vk {
  background-image: url('https://img.icons8.com/ios-filled/50/000000/vk-circled.png');
}
.sicon.vk:hover {
  background-color: #1877f2;
  background-image: url('https://img.icons8.com/ios-filled/50/ffffff/vk-circled.png');
}

/* YouTube */
.sicon.youtube {
  background-image: url('https://img.icons8.com/ios-filled/50/000000/youtube-play.png');
}
.sicon.youtube:hover {
  background-color: #ff0000;
  background-image: url('https://img.icons8.com/ios-filled/50/ffffff/youtube-play.png');
}

/* === АККУРАТНОЕ СЖАТИЕ (1280px - 1025px) === */
@media (min-width: 1025px) and (max-width: 1280px) {
  .site-head {
    width: 100% !important;
    padding: 0 60px !important;
  }
}

/* === СКРЫТИЕ ЛОГОТИПА (1024px - 769px) === */
@media (min-width: 769px) and (max-width: 1024px) {
  .site-head {
    width: 100% !important;
    padding: 0 60px !important;
  }
  
  .head-center {
    display: none !important;
  }
}

/* === МОБИЛЬНАЯ ВЕРСИЯ (768px и меньше) === */
@media (max-width: 768px) {
  .site-head-wrapper {
    height: auto !important;
    padding: 20px 0 !important;
  }
  
  .site-head {
    width: 100% !important;
    height: auto !important;
    padding: 0 20px !important;
    position: static !important;
    display: flex !important;
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }
  
  .head-center {
    display: none !important;
  }
  
  .star {
    position: static !important;
    order: 1;
  }
  
  .star img {
    width: 60px !important;
    height: 55px !important;
    display: inline-block !important;
    vertical-align: middle !important;
  }
  
  .phone {
    position: static !important;
    order: 2;
    font-size: 18px !important;
    padding: 10px 18px !important;
    background: rgba(163, 0, 255, 0.15) !important;
    border-radius: 25px !important;
    display: inline-block !important;
    vertical-align: middle !important;
    margin-left: 15px !important;
  }
  
  .head-right {
    position: static !important;
    order: 3;
    display: flex !important;
    justify-content: center;
    gap: 15px;
    width: 100%;
  }
  
  .sicon {
    width: 48px !important;
    height: 48px !important;
    background-size: 26px 26px !important;
  }
}

/* === ГОРИЗОНТАЛЬНЫЙ ТЕЛЕФОН === */
@media (max-width: 768px) and (orientation: landscape) {
  .site-head {
    flex-direction: row !important;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px !important;
    gap: 10px !important;
  }
  
  .star {
    order: 1 !important;
  }
  
  .phone {
    order: 2 !important;
    margin-left: 10px !important;
  }
  
  .head-right {
    order: 3 !important;
    width: auto !important;
    justify-content: flex-end;
  }
}

/* === ОЧЕНЬ МАЛЕНЬКИЕ ТЕЛЕФОНЫ === */
@media (max-width: 380px) {
  .site-head {
    gap: 15px;
    padding: 0 15px !important;
  }
  
  .star img {
    width: 50px !important;
    height: 45px !important;
  }
  
  .phone {
    font-size: 16px !important;
    padding: 8px 14px !important;
    margin-left: 10px !important;
  }
  
  .sicon {
    width: 44px !important;
    height: 44px !important;
  }
}

/* ======================
   ОСНОВНОЕ МЕНЮ
   ====================== */
.main-menu {
  position: sticky;
  top: 0;
  z-index: 1006; /* УВЕЛИЧИЛ ДЛЯ ПРИОРИТЕТА НАД ШАПКОЙ */
  width: 100%;
  background-color: #1D1322;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 81px;
  transition: top 0.3s ease;
}

.menu-inner {
  width: 1280px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.desktop-menu {
  display: flex;
  gap: 45px;
  margin: 0;
  padding: 0;
  list-style: none;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 100%;
}

.main-menu a {
  font-weight: bold;
  font-size: 20px;
  color: #fff;
  text-decoration: none;
  transition: color 0.3s ease;
  white-space: nowrap;
}

.main-menu a:hover {
  color: #a300ff;
}

/* ======================
   БУРГЕР (АБСОЛЮТНЫЙ - ВСЕГДА СВЕРХУ)
   ====================== */
.burger-checkbox {
  position: absolute;
  visibility: hidden;
}

.burger {
  position: fixed; /* Меняем absolute на fixed */
  z-index: 1007;
  cursor: pointer;
  display: none;
  border: none;
  background: transparent;
  width: 40px;
  height: 26px;
  left: 30px;
  top: 30px; /* Фиксированная позиция от верха */
  transform: none; /* Убираем transform */
}

.burger::before,
.burger::after {
  content: '';
  position: absolute;
  left: 0;
  width: 100%;
  height: 4px;
  border-radius: 10px;
  background: #fff;
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  transform-origin: center;
}

.burger::before {
  top: 0;
  transform: translateY(0) rotate(0);
}

.burger::after {
  bottom: 0;
  transform: translateY(0) rotate(0);
}

.burger-checkbox:checked + .burger::before {
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
}

.burger-checkbox:checked + .burger::after {
  bottom: 50%;
  transform: translateY(50%) rotate(-45deg);
}

/* ======================
   МОБИЛЬНОЕ МЕНЮ (ПОД БУРГЕРОМ)
   ====================== */
.menu-list {
  position: fixed;
  top: 0 !important; /* Теперь меню начинается с самого верха */
  left: 0;
  width: 300px;
  height: 100vh; /* Занимает всю высоту */
  margin: 0;
  padding: 80px 0 0 0; /* Отступ сверху для бургера */
  list-style: none;
  transform: translateX(-100%);
  transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  z-index: 1005;
  overflow-y: auto;
  
  background: linear-gradient(
    to bottom,
    #1D1322 0%,
    #1D1322 20%,
    rgba(29, 19, 34, 0.95) 40%,
    rgba(29, 19, 34, 0.85) 60%,
    rgba(29, 19, 34, 0.7) 80%,
    rgba(29, 19, 34, 0.4) 100%
  );
  backdrop-filter: blur(10px);
}

.menu-item {
  display: block;
  padding: 15px 30px;
  color: #fff;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  transition: all 0.3s ease;
}

.menu-item:hover {
  background: rgba(163, 0, 255, 0.2);
  color: #a300ff;
  padding-left: 40px;
}

.burger-checkbox:checked ~ .menu-list {
  transform: translateX(0);
  box-shadow: 2px 0 10px rgba(0,0,0,0.3);
}

/* ======================
   МЕДИА ЗАПРОСЫ - ТЕПЕРЬ С 1150px!
   ====================== */
@media (max-width: 1150px) {
  .burger {
    display: block;
  }
  
  .desktop-menu {
    display: none;
  }
  
  .main-menu {
    display: none !important;
  }
  
  .menu-list {
    overflow-y: auto;
  }
  
  .menu-list::-webkit-scrollbar {
    width: 6px;
  }
  
  .menu-list::-webkit-scrollbar-thumb {
    background: #a300ff;
    border-radius: 3px;
  }
}

/* ДОБАВЛЯЕМ ОТСТУП ДЛЯ КОНТЕНТА */
body {
  padding-top: 0;
}

.main-menu.sticky + * {
  margin-top: 81px;
}

/* ======================
   КНОПКА "НАВЕРХ"
   ====================== */
.scroll-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: #a300ff;
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(163, 0, 255, 0.3);
}

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

.scroll-to-top:hover {
  background: #8a00d4;
  transform: translateY(-3px);
}

.scroll-to-top.force-hide {
  opacity: 0 !important;
  visibility: hidden !important;
}
/* =================================================== HERO BLOCK 1 === */
.hero {
  position: relative;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  height: 688px;
  overflow: visible;
  padding-top: 80px;
  margin-top: -80px;
  margin-bottom: 35px; /* ← Опускаем весь блок на 20px вниз */
}

/* Левая часть */
.hero-left {
  flex: 1 1 60%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  color: #fff;
  position: relative;
}

/* Логотип - МИНИМАЛЬНЫЙ ФИКС */
.hero-left .logo {
  position: absolute;
  width: 546px;
  height: 268px;
  left: 238px;
  top: 123px;
  object-fit: contain;
  z-index: 1;
  /* ТОЛЬКО ЭТО ДОБАВЛЯЕМ */
  transform: translateZ(0);
}

/* Подпись */
.hero-left .subtitle {
  position: absolute;
  width: 572px;
  height: 80px;
  left: 263px;
  top: 400px;
  color: #e1dbe8;
  font-size: 32px;
  font-weight: 300;
  line-height: 1.3;
  z-index: 1;
}

/* Правая часть */
.hero-right {
  flex: 0 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  position: relative;
  min-width: 300px;
}

.hero-right .hand {
  position: absolute;
  width: 456px;
  height: 558px;
  left: 671px;
  top: 2px;
  object-fit: contain;
  z-index: 2;
  filter: drop-shadow(50px 11px 17px rgba(0,0,0,0.37));
  /* ТОЛЬКО ЭТО ДОБАВЛЯЕМ */
  transform: translateZ(0);
}

/* === ОБНОВЛЕННАЯ КНОПКА CTA === */
.hero .btn-cta {
  position: absolute;
  left: 263px;
  bottom: -10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 35px;
  min-height: 56px;
  font-size: clamp(15px, 1.8vw, 17px);
  font-weight: 500;
  color: #fff;
  cursor: pointer;
  border-radius: 10px;
  overflow: hidden;
  z-index: 3;
  white-space: nowrap;
  width: auto;
  min-width: 220px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-family: inherit;
  transition: all 0.3s ease;
  transform: translateY(0);
  
  
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.15) 0%,
    rgba(255, 255, 255, 0.05) 50%,
    rgba(255, 255, 255, 0.1) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  box-shadow: 
    0 4px 20px rgba(0, 0, 0, 0.3),
    inset 0 1px 1px rgba(255, 255, 255, 0.1),
    inset 0 -1px 1px rgba(0, 0, 0, 0.1);
}

.hero .btn-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 10px;
  padding: 1px;
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.2) 0%, 
    rgba(255, 255, 255, 0.1) 50%, 
    rgba(255, 255, 255, 0.2) 100%);
  -webkit-mask: 
    linear-gradient(#fff 0 0) content-box, 
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.hero .btn-cta span {
  position: relative;
  z-index: 1;
}

.hero .btn-cta:hover {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.2) 0%,
    rgba(255, 255, 255, 0.1) 50%,
    rgba(255, 255, 255, 0.2) 100%
  );
  border-color: rgba(255, 255, 255, 0.35);
  transform: translateY(-3px);
  box-shadow: 
    0 10px 25px rgba(255, 255, 255, 0.2),
    inset 0 1px 1px rgba(255, 255, 255, 0.15),
    inset 0 -1px 1px rgba(0, 0, 0, 0.05);
  color: #fff;
}

.hero .btn-cta:active {
  transform: translateY(-1px);
  box-shadow: 
    0 5px 15px rgba(255, 255, 255, 0.15),
    inset 0 1px 1px rgba(255, 255, 255, 0.1),
    inset 0 -1px 1px rgba(0, 0, 0, 0.05);
}

/* Уменьшение кнопки при разрешении 610x523 и ниже */
@media (max-width: 610px) {
  .hero .btn-cta {
    width: 80% !important;
    max-width: 300px !important;
    min-width: 180px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    font-size: clamp(12px, 3vw, 15px) !important;
    padding: 10px 20px !important;
    white-space: normal !important;
    text-align: center !important;
    line-height: 1.3 !important;
  }
  
  .hero .btn-cta:hover {
    transform: translateX(-50%) translateY(-3px) !important;
  }
  
  .hero .btn-cta:active {
    transform: translateX(-50%) translateY(-1px) !important;
  }
}

/* Единый плавный переход для всех размеров от 1280px до 320px */
@media (max-width: 1280px) and (min-width: 320px) {
  .hero {
    height: calc(350px + (688 - 350) * (100vw - 320px) / (1280 - 320));
    max-width: calc(320px + (1280 - 320) * (100vw - 320px) / (1280 - 320));
    margin-bottom: calc(10px + (20 - 10) * (100vw - 320px) / (1280 - 320));
  }
  
  .hero-left .logo {
    width: calc(180px + (546 - 180) * (100vw - 320px) / (1280 - 320));
    height: calc(91px + (268 - 91) * (100vw - 320px) / (1280 - 320));
    left: calc(30px + (238 - 30) * (100vw - 320px) / (1280 - 320));
    top: calc(50px + (123 - 50) * (100vw - 320px) / (1280 - 320));
    /* ТОЛЬКО ЭТО ДОБАВЛЯЕМ */
    transform: translateZ(0);
  }
  
  .hero-left .subtitle {
    width: calc(200px + (572 - 200) * (100vw - 320px) / (1280 - 320));
    height: calc(30px + (80 - 30) * (100vw - 320px) / (1280 - 320));
    left: calc(40px + (263 - 40) * (100vw - 320px) / (1280 - 320));
    top: calc(170px + (400 - 170) * (100vw - 320px) / (1280 - 320));
    font-size: calc(12px + (32 - 12) * (100vw - 320px) / (1280 - 320));
    line-height: 1.3;
  }
  
  .hero-right .hand {
    width: calc(160px + (456 - 160) * (100vw - 320px) / (1280 - 320));
    height: calc(196px + (558 - 196) * (100vw - 320px) / (1280 - 320));
    left: calc(53% + (671 - 678) * (100vw - 320px) / (1280 - 320));
    top: calc(15px + (2 - 15) * (100vw - 320px) / (1280 - 320));
    filter: drop-shadow(0 0 calc(8px + (12 - 8) * (100vw - 320px) / (1280 - 320)) rgba(0, 0, 0, 0.3));
    /* ТОЛЬКО ЭТО ДОБАВЛЯЕМ */
    transform: translateZ(0);
  }
  
  .hero .btn-cta {
    left: calc(40px + (263 - 40) * (100vw - 320px) / (1280 - 320));
    bottom: calc(-8px + (-10 - (-8)) * (100vw - 320px) / (1280 - 320));
    padding: calc(8px + (14 - 8) * (100vw - 320px) / (1280 - 320)) calc(30px + (60 - 30) * (100vw - 320px) / (1280 - 320));
    min-height: calc(40px + (56 - 40) * (100vw - 320px) / (1280 - 320));
    font-size: calc(12px + (15 - 12) * (100vw - 320px) / (1280 - 320));
    min-width: calc(150px + (220 - 150) * (100vw - 320px) / (1280 - 320));
    transform: translateY(0);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    white-space: normal;
    text-align: center;
    line-height: 1.2;
    word-break: break-word;
    height: auto;
  }
  
  .hero .btn-cta span {
    display: block;
    width: 100%;
  }
  
  .hero .btn-cta::before {
    padding: 0.5px;
  }
  
  .hero .btn-cta:hover {
    transform: translateY(-3px);
  }
  
  .hero .btn-cta:active {
    transform: translateY(-1px);
  }
}

/* Дополнительное уменьшение для планшетов */
@media (max-width: 768px) {
  .hero .btn-cta {
    left: calc(40px + (263 - 40) * (768 - 320) / (1280 - 320));
    bottom: -15px;
    padding: 8px 20px;
    min-height: 44px;
    font-size: calc(13px + (15 - 13) * (100vw - 320px) / (768 - 320));
    transform: translateY(0);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    white-space: normal;
    text-align: center;
    line-height: 1.3;
    word-break: break-word;
    height: auto;
  }
  
  .hero .btn-cta span {
    display: block;
    width: 100%;
  }
  
  .hero-right .hand {
    filter: drop-shadow(0 0 8px rgba(0, 0, 0, 0.25));
  }
}

/* Для очень маленьких экранов */
@media (max-width: 319px) {
  .hero {
    height: 320px;
    max-width: 320px;
    margin-bottom: 10px;
  }
  
  .hero-left .logo {
    width: 150px;
    height: 74px;
    left: 20px;
    top: 40px;
  }
  
  .hero-left .subtitle {
    width: 180px;
    height: 25px;
    left: 30px;
    top: 150px;
    font-size: 11px;
  }
  
  .hero-right .hand {
    width: 140px;
    height: 171px;
    left: 52%;
    top: 20px;
    filter: drop-shadow(0 0 6px rgba(0, 0, 0, 0.2));
  }
  
  .hero .btn-cta {
    left: 30px;
    bottom: -18px;
    padding: 6px 15px;
    min-height: 40px;
    font-size: 12px;
    min-width: 140px;
    transform: translateY(0);
    white-space: normal;
    text-align: center;
    line-height: 1.3;
    word-break: break-word;
    height: auto;
  }
  
  .hero .btn-cta span {
    display: block;
    width: 100%;
  }
  
  .hero .btn-cta:hover {
    transform: translateY(-3px);
  }
  
  .hero .btn-cta:active {
    transform: translateY(-1px);
  }
}

/* ================== 1 БЛОК: ДОБРО ПОЖАЛОВАТЬ ================== */
.welcome-section {
  color: #fff;
  padding: 20px 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
}

.block-1 {
  width: 100%;
  position: relative;
}

/* ===== ЗАГОЛОВОК НАД ВСЕМ БЛОКОМ ===== */
.block-1 .welcome-title-main {
  font-weight: 700;
  font-size: 48px; /* Унифицированный размер */
  font-family: inherit; /* Наследуем шрифт */
  text-transform: uppercase;
  text-align: center;
  letter-spacing: 1px;
  color: #fff;
  margin-bottom: 80px; /* Унифицированный отступ */
  position: relative;
  z-index: 2;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* ===== КОНТЕЙНЕР С ЭФФЕКТОМ СТЕКЛА ===== */
.block-1 .welcome-glass-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px;
  background: rgba(23, 19, 33, 0.299); /* Темно-фиолетовый с прозрачностью */
  backdrop-filter: blur(8px); /* Эффект размытия */
  -webkit-backdrop-filter: blur(15px); /* Для Safari */
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.2); /* Тонкая светлая обводка */
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  position: relative;
  z-index: 1;
}

/* Эффект свечения по краям */
.block-1 .welcome-glass-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 20px;
  padding: 1px;
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.1) 0%, 
    rgba(255, 255, 255, 0.05) 50%, 
    rgba(255, 255, 255, 0.1) 100%);
  -webkit-mask: 
    linear-gradient(#fff 0 0) content-box, 
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* ===== СОДЕРЖИМОЕ ВНУТРИ КОНТЕЙНЕРА ===== */
.block-1 .welcome-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 50px;
}

/* ===== ИЗОБРАЖЕНИЕ ===== */
.block-1 .welcome-image {
  flex: 0 0 350px;
}

.block-1 .welcome-image img {
  width: 100%;
  height: 450px;
  object-fit: cover;
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ===== ТЕКСТОВАЯ ЧАСТЬ ===== */
.block-1 .welcome-text-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  max-width: 600px;
}

.block-1 .welcome-description {
  font-weight: 300;
  font-size: clamp(16px, 1.8vw, 18px);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 40px;
  text-align: center;
}

.block-1 .welcome-description p {
  margin-bottom: 25px;
}

.block-1 .welcome-description strong {
  color: #fff;
  font-weight: 600;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* ===== КНОПКИ ===== */
.block-1 .welcome-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  width: 100%;
  flex-wrap: wrap;
}

/* Базовая стилизация для всех кнопок */
.block-1 .btn {
  padding: 14px 35px;
  border: none;
  color: #fff;
  font-size: clamp(15px, 1.8vw, 17px);
  font-weight: 500;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
  min-width: 220px;
  font-family: inherit; /* Используем шрифт как везде */
}

/* Первая кнопка - полупрозрачная фиолетовая */
.block-1 .btn-more {
  background: rgba(138, 43, 226, 0.3); /* Полупрозрачный фиолетовый */
  border: 2px solid rgba(138, 43, 226, 0.5);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.block-1 .btn-more:hover {
  background: rgba(138, 43, 226, 0.4);
  border-color: rgba(138, 43, 226, 0.7);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(138, 43, 226, 0.3);
}

/* Вторая кнопка - стеклянный градиент (ИСПРАВЛЕННЫЙ СЕЛЕКТОР) */
.block-1 .btn-consultation {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.15) 0%,
    rgba(255, 255, 255, 0.05) 50%,
    rgba(255, 255, 255, 0.1) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  box-shadow: 
    0 4px 20px rgba(0, 0, 0, 0.3),
    inset 0 1px 1px rgba(255, 255, 255, 0.1),
    inset 0 -1px 1px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
}

/* Эффект свечения для кнопки "Записаться" */
.block-1 .btn-consultation::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 10px;
  padding: 1px;
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.2) 0%, 
    rgba(255, 255, 255, 0.1) 50%, 
    rgba(255, 255, 255, 0.2) 100%);
  -webkit-mask: 
    linear-gradient(#fff 0 0) content-box, 
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.block-1 .btn-consultation:hover {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.2) 0%,
    rgba(255, 255, 255, 0.1) 50%,
    rgba(255, 255, 255, 0.2) 100%
  );
  border-color: rgba(255, 255, 255, 0.35);
  transform: translateY(-3px);
  box-shadow: 
    0 10px 25px rgba(255, 255, 255, 0.2),
    inset 0 1px 1px rgba(255, 255, 255, 0.15),
    inset 0 -1px 1px rgba(0, 0, 0, 0.05);
}

/* ===== АДАПТИВНОСТЬ ===== */
@media (max-width: 768px) {
  .block-1 .welcome-buttons {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }
  
  .block-1 .btn {
    min-width: 250px;
    width: 100%;
    max-width: 300px;
  }
}

@media (max-width: 480px) {
  .block-1 .btn {
    min-width: 220px;
    padding: 13px 25px;
  }
  .block-1 .welcome-title-main {
    margin-bottom: 60px !important
  }
}

@media (max-width: 360px) {
  .block-1 .btn {
    min-width: 200px;
    padding: 12px 20px;
    font-size: 14px;
  }
}

/* ================== 2 БЛОК: CARDS ================== */
.block-2 .hero {
  position: relative;
  width: 100%;
  max-width: 1280px;
  height: auto;
  min-height: 615px;
  margin: 0 auto;
  overflow: visible;
  padding: 20px;
  background-repeat: repeat, no-repeat;
  background-size: auto, cover;
  background-position: center center;
  background-blend-mode: overlay;
  opacity: 100;
}

/* ===== ТЕКСТОВЫЙ КОНТЕНТ ===== */
.block-2 .content {
  position: relative;
  text-align: center;
  width: 100%;
  z-index: 1;
}

.block-2 .title {
  font-weight: 700;
  font-size: 48px; /* Унифицированный размер */
  font-family: inherit; /* Наследуем шрифт */
  text-transform: uppercase;
  margin-top: clamp(25px, 4vw, 70px);
  margin-bottom: 40px; /* ← Уменьшили отступ снизу для subtitle */
  letter-spacing: 0.5px;
  color: #fff;
}

.block-2 .subtitle {
  font-weight: 300;
  font-size: clamp(14px, 2.5vw, 20px);
  color: #ddd;
  margin-bottom: 115px; /* ← Добавили отступ снизу перед карточками */
  display: block; /* ← Убедимся, что это блочный элемент */
}

/* ===== КАРТОЧКИ ===== */
.block-2 .cards {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: clamp(15px, 3vw, 30px);
  margin-top: 0; /* Убрали отступ, так как добавили margin-bottom заголовку */
  flex-wrap: wrap;
}

/* Каждая карточка - одинакового размера в стиле стекла (УВЕЛИЧЕНА НА 50%) */
.block-2 .card {
  width: 100%;
  max-width: 343px;
  height: 420px; /* УВЕЛИЧЕНО С 280px до 420px (на 50%) */
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: clamp(25px, 2.5vw, 35px); /* Увеличил padding для большей карточки */
  transition: all 0.3s ease;
  flex: 1 1 420px; /* Обновлен flex-basis */
  
  /* Эффект стекла как в welcome-block */
  background: rgba(28, 19, 33, 0.299);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-radius: clamp(20px, 3vw, 32px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  position: relative;
  z-index: 1;
  overflow: hidden;
}

/* Эффект свечения по краям как в welcome-block */
.block-2 .card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: clamp(20px, 3vw, 32px);
  padding: 1px;
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.1) 0%, 
    rgba(255, 255, 255, 0.05) 50%, 
    rgba(255, 255, 255, 0.1) 100%);
  -webkit-mask: 
    linear-gradient(#fff 0 0) content-box, 
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 0;
}

/* Оранжевый градиент от границ к центру */
.block-2 .card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: inherit;
  background: radial-gradient(
    circle at center,
    transparent 30%,
    rgba(25, 16, 26, 0.767) 100%
  );
  pointer-events: none;
  z-index: 0;
}

/* Иконки над текстом (УВЕЛИЧЕНЫ В 5 РАЗ) */
.block-2 .card-icon {
  width: 120px; /* УВЕЛИЧЕНО с 24px до 120px (в 5 раз) */
  height: 120px; /* УВЕЛИЧЕНО с 24px до 120px (в 5 раз) */
  margin-bottom: 25px; /* Увеличен отступ для больших иконок */
  z-index: 1;
  position: relative;
}

/* Замените пути на ваши иконки */
.block-2 .card:nth-child(1) .card-icon {
  background: url("assets/images/Kick%20Star.webp") no-repeat center;
  background-size: contain;
}

.block-2 .card:nth-child(2) .card-icon {
  background: url("assets/images/Kick%20Star.webp") no-repeat center;
  background-size: contain;
}

.block-2 .card:nth-child(3) .card-icon {
  background: url("assets/images/Kick%20Star.webp") no-repeat center;
  background-size: contain;
}

/* Заголовок карточки */
.block-2 .card h2 {
  font-size: clamp(18px, 2.2vw, 24px); /* Немного увеличил шрифт */
  font-weight: 700;
  margin-bottom: clamp(12px, 1.8vw, 18px);
  color: #fff;
  z-index: 1;
  position: relative;
}

/* Текст карточки */
.block-2 .card p {
  font-size: clamp(14px, 1.9vw, 17px); /* Немного увеличил шрифт */
  font-weight: 300;
  line-height: 1.7; /* Увеличил межстрочный интервал */
  color: rgba(255, 255, 255, 0.9);
  word-wrap: break-word;
  z-index: 1;
  position: relative;
  margin-top: 5px;
}

/* Убран ховер эффект */

/* ===== АДАПТИВНОСТЬ ===== */
@media (max-width: 1024px) {
  .block-2 .card {
    flex: 1 1 380px;
    max-width: 300px;
    height: 380px; /* Сохраняем пропорции */
  }
  
  .block-2 .card-icon {
    width: 100px;
    height: 100px;
    margin-bottom: 20px;
  }
}

@media (max-width: 768px) {
  .block-2 .cards {
    flex-direction: column;
    align-items: center;
    gap: 25px;
  }
  
  .block-2 .card {
    flex: 0 0 auto;
    width: 100%;
    max-width: 350px;
    height: 360px;
  }
  
  .block-2 .hero {
    padding: 15px;
    min-height: 550px;
  }
  
  .block-2 .card-icon {
    width: 90px;
    height: 90px;
    margin-bottom: 18px;
  }
}

@media (max-width: 480px) {
  .block-2 .hero {
    padding: 10px;
    min-height: 500px;
  }
  
  .block-2 .cards {
    gap: 20px;
  }
  
  .block-2 .card {
    max-width: 280px;
    height: 340px;
    border-radius: 16px;
    padding: 25px;
  }
  
  .block-2 .card-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 15px;
  }
  
  .block-2 .title {
    margin-top: 20px;
    margin-bottom: 20px;
  }
  
  .block-2 .subtitle {
    margin-top: 12px;
  }
}

@media (max-width: 360px) {
  .block-2 .card {
    max-width: 250px;
    height: 320px;
    padding: 22px;
  }
  
  .block-2 .cards {
    gap: 18px;
  }
  
  .block-2 .card-icon {
    width: 70px;
    height: 70px;
    margin-bottom: 12px;
  }
}

/* ================== 3 БЛОК: GALERЕЯ ================== */
.block-3 .gallery-section {
  position: relative;
  width: 100%;
  /* УБИРАЕМ фиксированную высоту */
  /* height: 700px; */
  min-height: auto; /* Или установите минимальную высоту если нужно */
  margin: 0 auto;
  background-repeat: no-repeat;
  text-align: center;
  overflow: hidden;
  padding: 0;
  /* Добавляем отступ снизу для кнопок */
  padding-bottom: 30px; /* Отступ от кнопок до конца блока */
}

/* Заголовок */
.block-3 .gallery-title {
  font-weight: 700;
  font-size: 48px; /* Унифицированный размер */
  font-family: inherit; /* Наследуем шрифт */
  color: #fff;
  margin-top: 70px;
  margin-bottom: 80px; /* Унифицированный отступ */
  text-align: center;
}

/* Контейнер для карусели - УВЕЛИЧИВАЕМ ВЫСОТУ */
.infinite-gallery-container {
  position: relative;
  width: 100%;
  height: 360px; /* Увеличено с 316px */
  margin: 0 auto;
  overflow: visible; /* Меняем hidden на visible */
  z-index: 2;
}

/* Карусель */
.carousel {
  display: flex;
  width: 100%;
  height: 100%;
  position: absolute;
  left: 0;
  top: 0;
}

/* Группа картинок */
.group {
  display: flex;
  gap: 20px;
  padding-right: 20px;
  will-change: transform;
  animation: scrolling 50s linear infinite;
  height: 100%;
  align-items: center;
}

/* Пауза при наведении на всю карусель */
.carousel:hover .group {
  animation-play-state: paused;
}

/* Анимация прокрутки */
@keyframes scrolling {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-100%);
  }
}

/* Элемент галереи - УВЕЛИЧИВАЕМ ВЫСОТУ */
.gallery-item {
  display: block;
  position: relative;
  width: 237px;
  height: 316px; /* Сохраняем как было */
  flex-shrink: 0;
  cursor: pointer;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  margin-top: 22px; /* Добавляем отступ сверху для анимации */
  margin-bottom: 22px; /* Добавляем отступ снизу для анимации */
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  z-index: 2;
}

/* Эффект при наведении - ДОБАВЛЯЕМ transform-origin */
.gallery-item:hover {
  transform: scale(1.08);
  box-shadow: 0 25px 50px rgba(163, 0, 255, 0.4); /* Усиливаем тень */
  z-index: 10; /* Увеличиваем z-index */
  margin-top: 0; /* Убираем верхний отступ при ховере */
  margin-bottom: 44px; /* Увеличиваем нижний отступ для тени */
  transform-origin: center center; /* Трансформация из центра */
}

/* ====== МОДАЛКА ====== */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal[aria-hidden="false"] {
  display: flex;
  opacity: 1;
}

.modal-img {
  max-width: 90%;
  max-height: 90%;
  display: block;
  border-radius: 8px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
  animation: modalAppear 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal .close {
  position: absolute;
  top: 30px;
  right: 30px;
  font-size: 36px;
  color: #fff;
  background: rgba(0, 0, 0, 0.3);
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 10000;
}

.modal .close:hover {
  background: rgba(163, 0, 255, 0.3);
  color: #c431f0;
  transform: rotate(90deg);
}

@keyframes modalAppear {
  from {
    transform: scale(0.8) translateY(20px);
    opacity: 0;
  }
  to {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

/* ===== КНОПКИ В БЛОКЕ С ГАЛЕРЕЕЙ ===== */
.block-3 .gallery-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    width: 100%;
    flex-wrap: wrap;
    margin-top: 40px;
    z-index: 3;
    position: relative;
}

/* Базовая стилизация для всех кнопок в галерее */
.block-3 .btn-gallery {
    padding: 14px 35px;
    border: none;
    color: #fff;
    font-size: clamp(15px, 1.8vw, 17px);
    font-weight: 500;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    min-width: 220px;
    font-family: inherit;
}

/* Первая кнопка - полупрозрачная фиолетовая */
.block-3 .btn-gallery.btn-more {
    background: rgba(138, 43, 226, 0.3);
    border: 2px solid rgba(138, 43, 226, 0.5);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.block-3 .btn-gallery.btn-more:hover {
    background: rgba(138, 43, 226, 0.4);
    border-color: rgba(138, 43, 226, 0.7);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(138, 43, 226, 0.3);
}

/* Вторая кнопка - стеклянный градиент */
.block-3 .btn-gallery.btn-consultation {
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.15) 0%,
        rgba(255, 255, 255, 0.05) 50%,
        rgba(255, 255, 255, 0.1) 100%
    );
    border: 1px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.3),
        inset 0 1px 1px rgba(255, 255, 255, 0.1),
        inset 0 -1px 1px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

/* Эффект свечения для кнопки */
.block-3 .btn-gallery.btn-consultation::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 10px;
    padding: 1px;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.2) 0%, 
        rgba(255, 255, 255, 0.1) 50%, 
        rgba(255, 255, 255, 0.2) 100%);
    -webkit-mask: 
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.block-3 .btn-gallery.btn-consultation:hover {
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.2) 0%,
        rgba(255, 255, 255, 0.1) 50%,
        rgba(255, 255, 255, 0.2) 100%
    );
    border-color: rgba(255, 255, 255, 0.35);
    transform: translateY(-3px);
    box-shadow: 
        0 10px 25px rgba(255, 255, 255, 0.2),
        inset 0 1px 1px rgba(255, 255, 255, 0.15),
        inset 0 -1px 1px rgba(0, 0, 0, 0.05);
}

/* Удаляем старые стили кнопки */
.block-3 .btn-cta {
    display: none;
}

/* ===== АДАПТИВНОСТЬ ДЛЯ КНОПОК В ГАЛЕРЕЕ ===== */
@media (max-width: 768px) {
    .block-3 .gallery-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
        margin-top: 30px;
    }
    
    .block-3 .btn-gallery {
        min-width: 250px;
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .block-3 .btn-gallery {
        min-width: 220px;
        padding: 13px 25px;
    }
}

@media (max-width: 360px) {
    .block-3 .btn-gallery {
        min-width: 200px;
        padding: 12px 20px;
        font-size: 14px;
    }
}
/* ================== АДАПТИВНОСТЬ ================== */
/* Адаптивность - тоже увеличиваем высоту */
@media (max-width: 1024px) {
  .gallery-item {
    width: 200px;
    height: 266px;
    margin-top: 18px;
    margin-bottom: 18px;
  }
  .infinite-gallery-container {
    height: 302px; /* 266px + 18px*2 */
  }
  
  .gallery-item:hover {
    margin-bottom: 36px;
  }
}

@media (max-width: 823px) {
  .gallery-item {
    width: 180px;
    height: 240px;
    margin-top: 16px;
    margin-bottom: 16px;
  }
  .infinite-gallery-container {
    height: 272px; /* 240px + 16px*2 */
  }
  
  .gallery-item:hover {
    margin-bottom: 32px;
  }
}

@media (max-width: 480px) {
  .gallery-item {
    width: 150px;
    height: 200px;
    margin-top: 14px;
    margin-bottom: 14px;
  }
  .infinite-gallery-container {
    height: 228px; /* 200px + 14px*2 */
  }
  
  .gallery-item:hover {
    margin-bottom: 28px;
  }
}

/* Группа картинок - центрируем по вертикали */
.group {
  display: flex;
  gap: 20px;
  padding-right: 20px;
  will-change: transform;
  animation: scrolling 50s linear infinite;
  height: 100%;
  align-items: center; /* Уже есть, оставляем */
}

/* ================== 4 БЛОК: PRICE ================== */
.price-block { 
  position: relative;
  padding: 30px 20px;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

/* Основной размытый фон */
.price-block::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at center,
    rgba(196, 49, 240, 0.4) 0%,
    rgba(125, 12, 255, 0.2) 15%,
    transparent 40%
  );
  filter: blur(70px);
  z-index: 0;
  pointer-events: none;
  animation: fadeInBackground 1.5s ease-out;
}

/* Дополнительный слой для глубины */
.price-block::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  height: 80%;
  background: radial-gradient(
    circle at center,
    rgba(196, 49, 240, 0.3) 0%,
    rgba(125, 12, 255, 0.15) 20%,
    transparent 45%
  );
  filter: blur(50px);
  z-index: 0;
  opacity: 0.6;
  pointer-events: none;
  animation: fadeInBackground 2s ease-out 0.3s both;
}

/* Контейнер без стеклянного фона */
.price-block .container {
  max-width: 1280px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  width: 100%;
}

/* ===== ЗАГОЛОВОК ===== */
.block-title {
  text-align: center;
  font-weight: 700;
  font-size: 48px; /* Унифицированный размер */
  font-family: inherit; /* Наследуем шрифт */
  line-height: 1.1;
  color: #ffffff;
  margin-bottom: 80px; /* Унифицированный отступ */
  position: relative;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  padding-bottom: 10px;
}

/* ===== ГАЛЕРЕЯ ===== */
.price-gallery {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  position: relative;
  z-index: 2;
  margin-bottom: 80px;
}

.service-card {
  position: relative;
  width: 340px;
  height: 460px;
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.05);
}

.service-card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 
    0 30px 60px rgba(163, 0, 255, 0.25),
    0 0 0 1px rgba(196, 49, 240, 0.2);
}

.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 40%,
    rgba(20, 0, 34, 0.8) 80%
  );
  z-index: 1;
  pointer-events: none;
}

.service-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

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

/* ===== ПОДПИСИ ===== */
.card-caption {
  position: absolute;
  left: 0;
  width: 100%;
  bottom: 0;
  padding: 30px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 2;
  background: linear-gradient(
    to top,
    rgba(20, 0, 34, 0.95) 0%,
    transparent 100%
  );
}

.card-caption .label {
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
  text-align: center;
}

.card-caption .price {
  font-size: 26px;
  font-weight: 300;
  color: #c5c5c5;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
  font-family: 'Bellota Text', system-ui, sans-serif;
}



/* ===== ОБЩИЙ СТЕКЛЯННЫЙ ФОН ДЛЯ ТЕКСТА И КНОПКИ ===== */
.price-content-wrapper {
  max-width: 1100px;
  margin: 0 auto 60px;
  padding: 40px 50px;
  background: rgba(23, 19, 33, 0.299);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(15px);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  position: relative;
  z-index: 1;
}

/* Эффект свечения по краям */
.price-content-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 20px;
  padding: 1px;
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.1) 0%, 
    rgba(255, 255, 255, 0.05) 50%, 
    rgba(255, 255, 255, 0.1) 100%);
  -webkit-mask: 
    linear-gradient(#fff 0 0) content-box, 
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* ===== ТЕКСТ ВНУТРИ СТЕКЛЯННОГО ФОНА ===== */
.price-description-wrapper {
  position: relative;
  z-index: 2;
  margin-bottom: 40px;
}

.price-description {
  margin: 0 auto;
  font-size: 22px;
  font-weight: 300;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.9);
  text-align: center;
}

.price-description p {
  margin-bottom: 25px;
}

.price-description strong {
  color: #fff;
  font-weight: 600;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* ===== КНОПКА В СТИЛЕ БЛОКА 3 ===== */
.price-content-wrapper .button-wrapper {
  position: relative;
  z-index: 2;
  text-align: center;
  margin-top: 20px;
}

/* Кнопка в стиле блока 3 - стеклянный градиент */
.price-content-wrapper .button-wrapper .btn-cta {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 16px 40px !important;
  border: none !important;
  color: #fff !important;
  font-size: 17px !important;
  font-weight: 500 !important;
  border-radius: 10px !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  text-transform: uppercase !important;
  letter-spacing: 1px !important;
  min-width: 320px !important;
  font-family: inherit !important;
  white-space: nowrap !important;
  text-align: center !important;
  width: 400px;
  
  /* Стиль как у btn-consultation в блоке 3 */
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.15) 0%,
    rgba(255, 255, 255, 0.05) 50%,
    rgba(255, 255, 255, 0.1) 100%
  ) !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  backdrop-filter: blur(15px) !important;
  -webkit-backdrop-filter: blur(15px) !important;
  box-shadow: 
    0 4px 20px rgba(0, 0, 0, 0.3),
    inset 0 1px 1px rgba(255, 255, 255, 0.1),
    inset 0 -1px 1px rgba(0, 0, 0, 0.1) !important;
  position: relative !important;
  overflow: hidden !important;
  text-decoration: none !important;
  outline: none !important;
  line-height: normal !important;
}

/* Эффект свечения для кнопки */
.price-content-wrapper .button-wrapper .btn-cta::before {
  content: '' !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  border-radius: 10px !important;
  padding: 1px !important;
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.2) 0%, 
    rgba(255, 255, 255, 0.1) 50%, 
    rgba(255, 255, 255, 0.2) 100%) !important;
  -webkit-mask: 
    linear-gradient(#fff 0 0) content-box, 
    linear-gradient(#fff 0 0) !important;
  -webkit-mask-composite: xor !important;
  mask-composite: exclude !important;
  pointer-events: none !important;
}

.price-content-wrapper .button-wrapper .btn-cta:hover {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.2) 0%,
    rgba(255, 255, 255, 0.1) 50%,
    rgba(255, 255, 255, 0.2) 100%
  ) !important;
  border-color: rgba(255, 255, 255, 0.35) !important;
  transform: translateY(-3px) !important;
  box-shadow: 
    0 10px 25px rgba(255, 255, 255, 0.2),
    inset 0 1px 1px rgba(255, 255, 255, 0.15),
    inset 0 -1px 1px rgba(0, 0, 0, 0.05) !important;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
  .price-content-wrapper .button-wrapper .btn-cta {
    font-size: 16px !important;
    padding: 14px 35px !important;
    min-width: 280px !important;
  }
}

@media (max-width: 480px) {
  .price-content-wrapper .button-wrapper .btn-cta {
    font-size: 15px !important;
    padding: 12px 30px !important;
    min-width: 260px !important;
  }
}

@media (max-width: 360px) {
  .price-content-wrapper .button-wrapper .btn-cta {
    min-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
}
/* Анимация для плавного появления */
@keyframes fadeInBackground {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Адаптивность для мобильных устройств */
@media (max-width: 1200px) {
  .price-gallery {
    gap: 30px;
  }
  
  .price-content-wrapper {
    max-width: 90%;
    padding: 35px 40px;
  }
}

@media (max-width: 992px) {
  .price-content-wrapper {
    max-width: 92%;
    padding: 30px 35px;
  }
  
  .price-description {
    font-size: 20px;
  }
}

@media (max-width: 768px) {
  .price-gallery {
    gap: 20px;
  }
  
  .service-card {
    width: 300px;
    height: 420px;
  }
  
  .block-title {
    font-size: 36px;
    margin-bottom: 60px;
  }
  
  .block-title span {
    font-size: 32px;
  }
  
  .price-content-wrapper {
    max-width: 95%;
    padding: 30px 25px;
  }
  
  .price-description {
    font-size: 18px;
  }
  
  .price-content-wrapper .button-wrapper .btn-cta {
    font-size: 16px;
    padding: 14px 35px;
    min-width: 280px;
  }
}

@media (max-width: 480px) {
  .price-gallery {
    gap: 15px;
  }
  
  .service-card {
    width: 280px;
    height: 380px;
  }
  
  .block-title {
    font-size: 28px;
    margin-bottom: 40px;
  }
  
  .block-title span {
    font-size: 24px;
  }
  
  .price-content-wrapper {
    max-width: 100%;
    padding: 25px 20px;
  }
  
  .price-description {
    font-size: 16px;
  }
  
  .price-content-wrapper .button-wrapper .btn-cta {
    font-size: 15px;
    padding: 12px 30px;
    min-width: 260px;
  }
}

@media (max-width: 360px) {
  .price-content-wrapper .button-wrapper .btn-cta {
    min-width: 100%;
    width: 100%;
    box-sizing: border-box;
  }
}
/* ================== 5 БЛОК: ABOUT ================== */
.about-section {
  position: relative;
  width: 100%;
  padding: 0px 20px;
  text-align: center;
  overflow: visible;
}

/* Размытый фон для "О нас" */
.about-section::before {
  content: "";
  position: absolute;
  inset: 0;
  filter: blur(60px);
  z-index: 0;
  pointer-events: none;
  animation: fadeInBackground 1.5s ease-out;
}

/* Градиентный центральный фон за стеклянным фоном картинок - ВАША ПРАВКА */
.about-section::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 80%;
  background: radial-gradient(
    circle at center,
    rgba(196, 49, 240, 0.4) 0%,
    rgba(125, 12, 255, 0.2) 15%,
    transparent 40%
  );
  z-index: 0;
  pointer-events: none;
  animation: fadeInBackground 2s ease-out 0.5s both;
}

.about-section .container {
  max-width: 1280px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

/* Заголовок - БЕЛЫЙ */
.about-title {
  font-weight: 700;
  font-size: 48px; /* Унифицированный размер */
  font-family: inherit; /* Наследуем шрифт */
  margin: 0 0 80px; /* Унифицированный отступ */
  position: relative;
  z-index: 2;
  color: #ffffff;
  text-align: center;
}

/* Стеклянный фон для картинок */
.about-gallery-wrapper {
  position: relative;
  z-index: 2;
  max-width: 1100px;
  margin: 0 auto 40px;
  padding: 30px 40px 10px;
  background: rgba(23, 19, 33, 0.299);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(15px);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Стеклянный фон для текста */
.about-text-wrapper {
  position: relative;
  z-index: 2;
  max-width: 1100px;
  margin: 0 auto;
  padding: 30px 40px;
  background: rgba(23, 19, 33, 0.299);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(15px);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.about-text {
  max-width: none;
  margin: 0 auto;
  font-size: 22px;
  font-weight: 300;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.95);
  padding: 0;
  text-align: left;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-radius: 0;
  border: none;
  box-shadow: none;
}

/* Галерея */
.about-gallery {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  position: relative;
  z-index: 2;
  margin-top: 0;
}

.row {
  display: flex;
  justify-content: center;
  gap: 25px;
  position: relative;
  z-index: 2;
  width: 100%;
}

.gallery-item {
  display: block;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 
    0 15px 35px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
}

.gallery-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    45deg,
    transparent 40%,
    rgba(196, 49, 240, 0.1) 50%,
    transparent 60%
  );
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}

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

.gallery-item:hover {
  transform: translateY(-10px) scale(1.03);
  box-shadow: 
    0 25px 50px rgba(163, 0, 255, 0.25),
    0 0 0 1px rgba(196, 49, 240, 0.2);
  border-color: rgba(196, 49, 240, 0.3);
}

/* Размеры картинок - одинаковые для верхнего и нижнего ряда */
.row:first-child img:nth-child(1),
.row:last-child img:nth-child(1) { 
  width: 280px;
  height: 280px;
}

.row:first-child img:nth-child(2),
.row:last-child img:nth-child(2) { 
  width: 310px;
  height: 406px;
}

.row:first-child img:nth-child(3),
.row:last-child img:nth-child(3) { 
  width: 280px;
  height: 280px;
}

/* ПОДЪЕМ ВСЕГО ВТОРОГО РЯДА - ВАША ПРАВКА */
.row:last-child {
  position: relative;
  top: -60px; /* Регулируйте это значение (-60px) для подъема всего второго ряда */
}

/* ИНДИВИДУАЛЬНЫЙ ПОДЪЕМ для КАЖДОЙ КАРТИНКИ ОТДЕЛЬНО */
/* Картинка 4 (первая во втором ряду) - ВАША ПРАВКА */
.row:last-child img:nth-child(1) { 
  position: relative;
  top: -120px; /* Регулируйте это значение (-40px) для картинки 4 */
}

/* Картинка 6 (третья во втором ряду) - ВАША ПРАВКА */
.row:last-child img:nth-child(3) { 
  position: relative;
  top: -120px; /* Регулируйте это значение (-40px) для картинки 6 */
}

/* УДАЛИТЬ или ЗАКОММЕНТИРОВАТЬ этот блок, если используете индивидуальные настройки выше */
/*
.lift { 
  position: relative; 
  top: -30px;
}
*/

/* Стили для модалки (если еще не добавлены) */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal[aria-hidden="false"] {
  display: flex;
  opacity: 1;
}

.modal-img {
  max-width: 90%;
  max-height: 90%;
  display: block;
  border-radius: 8px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
  animation: modalAppear 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal .close {
  position: absolute;
  top: 30px;
  right: 30px;
  font-size: 36px;
  color: #fff;
  background: rgba(0, 0, 0, 0.3);
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 10000;
}

.modal .close:hover {
  background: rgba(163, 0, 255, 0.3);
  color: #c431f0;
  transform: rotate(90deg);
}

@keyframes modalAppear {
  from {
    transform: scale(0.8) translateY(20px);
    opacity: 0;
  }
  to {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

/* ===== АДАПТИВНОСТЬ ===== */
@media (max-width: 1200px) {
  .about-gallery-wrapper,
  .about-text-wrapper {
    padding: 25px 35px 50px;
  }
  
  /* Регулировка подъема для планшетов - ВАША ПРАВКА */
  .row:last-child {
    top: -50px; /* Меньше на больших планшетах */
  }
  
  /* Индивидуальная регулировка для планшетов */
  .row:last-child img:nth-child(1),
  .row:last-child img:nth-child(3) {
    top: -30px; /* Меньше на больших планшетах */
  }
}

@media (max-width: 1024px) {
  .about-gallery-wrapper,
  .about-text-wrapper {
    padding: 25px 30px 45px;
  }
  
  .price-block,
  .about-section {
    padding: 80px 20px;
  }
  
  .block-title,
  .about-title {
    font-size: 42px;
    margin-bottom: 60px;
  }
  
  .block-title span {
    font-size: 36px;
  }
  
  /* Убираем подъем на планшетах - ВАША ПРАВКА */
  .row:last-child {
    top: 0;
  }
  
  /* Убираем индивидуальный подъем на планшетах */
  .row:last-child img:nth-child(1),
  .row:last-child img:nth-child(3) {
    top: 0;
  }
  
  /* Уменьшенные размеры для планшетов - все квадратные */
  .row:first-child img:nth-child(1),
  .row:first-child img:nth-child(3),
  .row:last-child img:nth-child(1),
  .row:last-child img:nth-child(3) { 
    width: 220px; 
    height: 220px;
  }
  
  .row:first-child img:nth-child(2),
  .row:last-child img:nth-child(2) { 
    width: 240px; 
    height: 240px;
  }
}

@media (max-width: 768px) {
  .about-gallery-wrapper,
  .about-text-wrapper {
    padding: 20px 25px 35px;
  }
  
  .price-block,
  .about-section {
    padding: 60px 15px;
  }
  
  .block-title {
    font-size: 36px;
    margin-bottom: 60px;
  }
  
  
  .about-title {
    font-size: 36px;
    margin-bottom: 80px;
  }

  .block-title span {
    font-size: 30px;
    margin-top: 8px;
  }
  
  .price-description,
  .about-text {
    font-size: 18px;
    line-height: 1.6;
    text-align: center;
  }
  
  .card-caption .label {
    font-size: 24px;
  }
  
  .card-caption .price {
    font-size: 22px;
  }
  
  .btn-cta {
    font-size: 18px;
    height: 56px;
    padding: 0 40px;
  }
  
  /* НОВАЯ ПРАВКА: 2 РЯДА ПО ВЕРТИКАЛИ (колонки) вместо горизонтали */
  .about-gallery {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
  }
  
  .row {
    flex-direction: column;
    gap: 15px;
    width: auto;
  }
  
  /* Убираем специфичные размеры для мобилок */
  .row:first-child img,
  .row:last-child img {
    width: 200px !important;
    height: 200px !important;
  }
  
  /* Убираем подъем на мобилках */
  .row:last-child {
    top: 0;
  }
  
  /* Убираем индивидуальный подъем на мобилках */
  .row:last-child img:nth-child(1),
  .row:last-child img:nth-child(3) {
    top: 0;
  }
}

@media (max-width: 650px) {
  /* При экране меньше 650px - увеличиваем картинки */
  .row:first-child img,
  .row:last-child img {
    width: 180px !important;
    height: 180px !important;
  }
  
  .about-gallery {
    gap: 15px;
  }
  
  .row {
    gap: 12px;
  }
}

@media (max-width: 550px) {
  /* На маленьких экранах - уменьшаем картинки */
  .row:first-child img,
  .row:last-child img {
    width: 160px !important;
    height: 160px !important;
  }
  
  .row {
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .about-gallery-wrapper,
  .about-text-wrapper {
    padding: 15px 20px 25px;
  }
  
  .about-title {
    font-size: 32px;
    margin-bottom: 80px;
  }
  
  .block-title span {
    font-size: 26px;
  }
  
  .price-description,
  .about-text {
    font-size: 16px;
  }
  
  .service-card {
    height: 400px;
  }
  
  .btn-cta {
    width: 100%;
    max-width: 280px;
  }
  
  /* На самых маленьких экранах - уменьшаем картинки */
  .row:first-child img,
  .row:last-child img {
    width: 140px !important;
    height: 140px !important;
  }
  
  .row {
    gap: 8px;
  }
}

@media (max-width: 400px) {
  /* На очень маленьких экранах - минимальный размер */
  .row:first-child img,
  .row:last-child img {
    width: 120px !important;
    height: 120px !important;
  }
  
  .about-gallery {
    gap: 10px;
  }
}

/* Анимации */
@keyframes fadeInBackground {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0) translateX(0);
  }
  50% {
    transform: translateY(-20px) translateX(10px);
  }
}

/* Модальное окно */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal[aria-hidden="false"] {
  display: flex;
  opacity: 1;
}

.modal-img {
  max-width: 90%;
  max-height: 90%;
  display: block;
  border-radius: 8px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
  animation: modalAppear 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.close {
  position: absolute;
  top: 30px;
  right: 30px;
  font-size: 36px;
  color: #fff;
  background: rgba(0, 0, 0, 0.3);
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.close:hover {
  background: rgba(163, 0, 255, 0.3);
  color: #c431f0;
  transform: rotate(90deg);
}

@keyframes modalAppear {
  from {
    transform: scale(0.8) translateY(20px);
    opacity: 0;
  }
  to {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}
/* ================== 6 БЛОК: ОТЗЫВЫ ================== */
.reviews-section {
  position: relative;
  width: 100%;
  background: transparent;
  padding: 60px 0;
  text-align: center;
  z-index: 10;
}

.reviews-section .wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
  box-sizing: border-box;
}

.reviews-title {
  font-weight: 700;
  font-size: 48px; /* Унифицированный размер */
  font-family: inherit; /* Наследуем шрифт */
  color: #fff;
  margin-bottom: 60px; /* Унифицированный отступ */
  text-align: center;
}

/* контейнер */
.reviews-container {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: nowrap;
}

/* СЛАЙДЕР */
.gallery-wrap { width: 55%; position: relative; }

.gallery-slider-6 { width: 100%; }
.gallery-slider-6 .slick-slide {
  display: flex !important;
  justify-content: center;
  align-items: center;
  padding: 0 4px;
  z-index: 3;
}

.gallery-slider-6 img {
  width: 100%;
  max-width: 480px;
  height: auto;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.25s ease;
  box-shadow: 0 8px 28px rgba(0,0,0,0.45);
  z-index: 10;
}

.gallery-slider-6 img:hover { transform: scale(1.02); }

/* Стрелки */
.gallery-slider-6 .slick-prev,
.gallery-slider-6 .slick-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.9);
  background: transparent;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 4;
  cursor: pointer;
  transition: all 0.22s ease;
  font-size: 18px;
}

.gallery-slider-6 .slick-prev:hover,
.gallery-slider-6 .slick-next:hover {
  border-color: #a300ff;
  color: #a300ff;
  transform: translateY(-50%) scale(1.07);
}

.gallery-slider-6 .slick-prev { left: -20px; }
.gallery-slider-6 .slick-next { right: -20px; }

/* Точки над слайдером */
.gallery-slider-6 .slick-dots {
  display: flex !important;
  justify-content: center;
  gap: 10px;
  padding: 0;
  margin-bottom: 18px; /* над слайдером */
  list-style: none;
}

.gallery-slider-6 .slick-dots li button {
  width: 12px; height: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  border: none;
  cursor: pointer;
  font-size: 0;
}

.gallery-slider-6 .slick-dots li.slick-active button {
  background: #a300ff;
  box-shadow: 0 4px 12px rgba(163,0,255,0.25);
}

/* Правая часть */
.reviews-links {
  width: 40%;
  text-align: left;
  color: #ddd;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.reviews-text { font-size: 22px; line-height: 1.5; max-width: 420px; }

/* Кнопки */
.reviews-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.review-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  background: rgba(255,255,255,0.05);
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.08);
  transition: transform 0.18s ease, background 0.18s ease, border 0.18s ease;
}

.review-btn img {
  height: 32px; /* одинаковая высота для всех иконок */
  width: auto;
  display: block;
}

.review-btn:hover {
  transform: translateY(-3px);
  background: rgba(163,0,255,0.12);
  border-color: rgba(163,0,255,0.25);
}

/* Модалка */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.85);
  justify-content: center;
  align-items: center;
}

.modal-content {
  max-width: 86%; max-height: 86%;
  border-radius: 10px;
  object-fit: contain;
}

.close {
  position: absolute;
  top: 28px; right: 38px;
  color: #fff; font-size: 40px;
  cursor: pointer;
  transition: color 0.18s ease;
}

.close:hover { color: #a300ff; }

/* ============ АДАПТАЦИЯ ============ */
@media (max-width:1024px){
  .reviews-container{flex-wrap:wrap; gap:26px;}
  .gallery-wrap{width:100%; order:1;}
  .reviews-links{width:100%; order:2; text-align:center; align-items:center;}
  .reviews-buttons{justify-content:center;}
  .gallery-slider-6 img{max-width:620px;}
}

@media (max-width:700px){
  .reviews-title{font-size:28px;}
  .reviews-text{font-size:15px; max-width:100%;}
  .review-btn img{height:28px;}
  .review-btn{padding:6px 10px;}
  .gallery-slider-6 img{max-width:100%;}
}

/* ================== 7 БЛОК: CONSULTATION FORM ================== */
/* --- ОБЁРТКА ФОРМЫ: бесконечный фон --- */
#consultation-form-wrapper {
  width: 100%;
  min-height: 560px;
  background-image: url('assets/images/form%20background.webp');
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;
  overflow: hidden;
  z-index: 3;
}

/* --- Градиент поверх фона --- */
#consultation-form-wrapper .form-gradient {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right,
    rgba(0,0,0,0.96) 0%,
    rgba(0,0,0,0.78) 18%,
    rgba(0,0,0,0.55) 42%,
    rgba(0,0,0,0.25) 68%,
    rgba(0,0,0,0) 100%);
  pointer-events: none;
  z-index: 5;
}

/* Контейнер с контентом - центрирование */
#consultation-form {
  position: relative;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  min-height: 560px;
  z-index: 5;
  display: flex;
  align-items: flex-start;
  justify-content: center; /* Центрируем содержимое */
  padding: 60px 20px 20px;
  background: transparent;
  flex-direction: row;
  gap: 40px; /* Равное расстояние между заголовком и формой */
}

/* Заголовок - левая часть */
#consultation-form .title {
  font-weight: 700;
  font-size: 42px;
  font-family: inherit;
  max-width: 549px;
  line-height: 1.15;
  color: #ffffff;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: flex-start;
  height: 100%;
  margin-top: 20px;
  flex: 1;
}

/* Форма - правая часть */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px; /* Одинаковое расстояние между всеми элементами */
  width: 380px;
  z-index: 7;
  transition: transform .25s ease;
  margin-top: 20px;
  flex-shrink: 0;
}

/* Поля — мягкие границы, эффекты (обновленный стиль) */
.contact-form input {
  height: 56px;
  padding: 10px 16px;
  border-radius: 12px; /* Менее закругленные углы */
  border: 2px solid rgba(157, 78, 221, 0.7); /* Ярче фиолетовый */
  background: rgba(0, 0, 0, 0.7); /* Более темный фон */
  color: #ffffff;
  font-size: 18px;
  font-family: 'Bellota Text', sans-serif;
  outline: none;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  transition: border-color .20s ease, box-shadow .18s ease, transform .12s ease;
  width: 100%; /* Всегда 100% ширины контейнера формы */
}

.contact-form input::placeholder { 
  color: rgba(255, 255, 255, 0.45); 
}

.contact-form input:focus {
  border-color: rgba(177, 98, 234, 0.9); /* Ярче фиолетовый при фокусе */
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(157, 78, 221, 0.25);
}

/* Dropdown button styled like input */
.dropdown { 
  position: relative; 
  width: 100%; 
}

.dropdown-btn {
  height: 56px;
  width: 100%;
  padding: 10px 16px;
  border-radius: 12px; /* Менее закругленные углы */
  border: 2px solid rgba(157, 78, 221, 0.7); /* Ярче фиолетовый */
  background: rgba(0, 0, 0, 0.7); /* Более темный фон */
  color: #ffffff;
  font-size: 18px;
  font-family: 'Bellota Text', sans-serif;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  outline: none;
  transition: all .20s ease;
}

.dropdown-btn:hover {
  border-color: rgba(177, 98, 234, 0.9); /* Ярче при ховере */
}

/* Список выпадающий */
.dropdown-content {
  display: none;
  position: absolute;
  top: 66px;
  left: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.8); /* Более темный фон */
  border-radius: 12px; /* Менее закругленные углы */
  border: 2px solid rgba(157, 78, 221, 0.7); /* Ярче фиолетовый */
  z-index: 60;
  box-shadow: 0 12px 40px rgba(0,0,0,0.18);
  list-style: none;
  padding: 6px 0;
  margin: 0;
}

.dropdown-content li {
  padding: 12px 16px;
  cursor: pointer;
  color: #ffffff;
  font-family: 'Bellota Text', sans-serif;
  transition: background .12s ease;
}

.dropdown-content li:hover {
  background: rgba(157, 78, 221, 0.25); /* Ярче фиолетовый фон */
}

/* helper class */
.dropdown-content.show { 
  display: block; 
}

/* Кнопка — в потоке (обновленный стиль) */
.btn-cta {
  background: rgba(157, 78, 221, 0.4); /* Ярче полупрозрачный фиолетовый */
  border: 2px solid rgba(157, 78, 221, 0.7); /* Ярче фиолетовый */
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  color: #fff;
  font-size: 20px;
  font-family: 'Bellota Text', sans-serif;
  font-weight: 700;
  width: 100%;
  height: 56px;
  border-radius: 12px; /* Менее закругленные углы */
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(0,0,0,0.18);
  transition: transform .22s ease, box-shadow .22s ease, background .22s ease, border-color .22s ease;
}

.btn-cta:hover { 
  background: rgba(177, 98, 234, 0.5); /* Ярче при ховере */
  border-color: rgba(177, 98, 234, 0.9); /* Ярче при ховере */
  transform: translateY(-4px); 
  box-shadow: 0 18px 46px rgba(157, 78, 221, 0.35); /* Ярче тень */
}

/* Контейнер согласия */
.consent-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0;
  padding: 15px;
  background: rgba(0, 0, 0, 0.5); /* Более темный фон */
  border-radius: 12px; /* Менее закругленные углы */
  border: 1px solid rgba(157, 78, 221, 0.5); /* Ярче фиолетовый */
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

/* Чекбокс */
.consent-checkbox input[type="checkbox"] {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  cursor: pointer;
  accent-color: rgba(177, 98, 234, 0.9); /* Ярче фиолетовый */
  border: 2px solid rgba(157, 78, 221, 0.7); /* Ярче фиолетовый */
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.5);
  transition: all 0.2s ease;
}

.consent-checkbox input[type="checkbox"]:hover {
  border-color: rgba(177, 98, 234, 0.9); /* Ярче при ховере */
  box-shadow: 0 0 10px rgba(157, 78, 221, 0.6); /* Ярче тень */
}

.consent-checkbox input[type="checkbox"]:checked {
  background-color: rgba(177, 98, 234, 0.9); /* Ярче фиолетовый */
  border-color: rgba(177, 98, 234, 0.9); /* Ярче фиолетовый */
}

/* Текст согласия */
.consent-checkbox label {
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.85);
  cursor: pointer;
  font-weight: 300;
  font-family: 'Bellota Text', system-ui, sans-serif;
}

/* Ссылки в согласии */
.consent-checkbox .consent-link {
  color: rgba(177, 98, 234, 0.95); /* Ярче фиолетовый */
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: all 0.2s ease;
  font-weight: 400;
}

.consent-checkbox .consent-link:hover {
  color: rgba(197, 128, 255, 1); /* Еще ярче при ховере */
  border-bottom-color: rgba(177, 98, 234, 0.9); /* Ярче фиолетовый */
}

/* Сообщение об ошибке */
.form-submitted .consent-checkbox:has(input:not(:checked)) {
  border-color: rgba(255, 75, 75, 0.7);
  background: rgba(255, 75, 75, 0.1);
}

.form-submitted .consent-checkbox:has(input:not(:checked)) label {
  color: rgba(255, 180, 180, 0.95);
}

/* ================== КАЧЕСТВЕННЫЙ МЕДИАЗАПРОС: 1024px - 768px ================== */
@media (min-width: 768px) and (max-width: 1024px) {
  #consultation-form-wrapper {
    min-height: 520px;
  }
  
  #consultation-form {
    min-height: 520px;
    padding: 50px 40px 40px !important;
    align-items: flex-start;
    justify-content: center;
    gap: 30px;
  }
  
  #consultation-form .title {
    font-size: 36px !important;
    max-width: 450px;
    margin-top: 15px;
  }
  
  .contact-form {
    width: 340px !important;
    margin-top: 15px;
    gap: 18px;
  }
  
  .contact-form input,
  .dropdown-btn {
    height: 52px;
    font-size: 17px;
    border-radius: 12px; /* Сохраняем менее закругленные углы */
    background: rgba(0, 0, 0, 0.7); /* Более темный фон */
    border-color: rgba(157, 78, 221, 0.7); /* Ярче фиолетовый */
  }
  
  .consent-checkbox {
    padding: 12px;
    align-items: flex-start !important;
    gap: 12px !important;
    border-radius: 12px; /* Сохраняем менее закругленные углы */
    background: rgba(0, 0, 0, 0.5); /* Более темный фон */
    border-color: rgba(157, 78, 221, 0.5); /* Ярче фиолетовый */
  }
  
  .consent-checkbox input[type="checkbox"] {
    margin-top: 2px !important;
    flex-shrink: 0 !important;
    width: 20px !important;
    height: 20px !important;
    border-color: rgba(157, 78, 221, 0.7); /* Ярче фиолетовый */
    accent-color: rgba(177, 98, 234, 0.9); /* Ярче фиолетовый */
  }
  
  .consent-checkbox label {
    font-size: 13.5px;
    line-height: 1.5 !important;
  }
  
  .btn-cta {
    height: 54px;
    font-size: 19px;
    border-radius: 12px; /* Сохраняем менее закругленные углы */
    background: rgba(157, 78, 221, 0.4); /* Ярче полупрозрачный фиолетовый */
    border-color: rgba(157, 78, 221, 0.7); /* Ярче фиолетовый */
  }
  
  .btn-cta:hover {
    background: rgba(177, 98, 234, 0.5); /* Ярче при ховере */
    border-color: rgba(177, 98, 234, 0.9); /* Ярче при ховере */
  }
}

/* ================== АДАПТИВНОСТЬ ДЛЯ МОБИЛЬНЫХ УСТРОЙСТВ ================== */

/* Планшеты (до 768px) */
@media (max-width: 768px) {
  #consultation-form-wrapper {
    min-height: auto;
  }
  
  #consultation-form {
    min-height: auto;
    padding: 40px 30px !important;
    flex-direction: column;
    align-items: center !important;
    text-align: center !important;
    gap: 30px;
  }
  
  #consultation-form .title {
    max-width: 100% !important;
    text-align: center !important;
    font-size: 30px !important;
    margin-top: 0;
    position: static;
  }
  
  .contact-form {
    position: relative !important;
    width: 100% !important;
    max-width: 380px !important; /* Такая же ширина как на больших экранах */
    margin: 0 auto !important;
    margin-top: 0;
    gap: 18px; /* Одинаковое расстояние как на десктопе */
  }
  
  .contact-form input,
  .dropdown-btn,
  .btn-cta {
    width: 100% !important; /* Все элементы на всю ширину формы */
    border-radius: 12px; /* Сохраняем менее закругленные углы */
  }
  
  .contact-form input,
  .dropdown-btn {
    background: rgba(0, 0, 0, 0.7) !important; /* Более темный фон */
    border-color: rgba(157, 78, 221, 0.7) !important; /* Ярче фиолетовый */
  }
  
  .consent-checkbox {
    margin: 0;
    width: 100%;
    align-items: flex-start !important;
    gap: 12px !important;
    padding: 15px !important;
    border-radius: 12px; /* Сохраняем менее закругленные углы */
    background: rgba(0, 0, 0, 0.5) !important; /* Более темный фон */
    border-color: rgba(157, 78, 221, 0.5) !important; /* Ярче фиолетовый */
  }
  
  .consent-checkbox input[type="checkbox"] {
    margin-top: 2px !important;
    flex-shrink: 0 !important;
    width: 20px !important;
    height: 20px !important;
    border-color: rgba(157, 78, 221, 0.7) !important; /* Ярче фиолетовый */
    accent-color: rgba(177, 98, 234, 0.9) !important; /* Ярче фиолетовый */
  }
  
  .consent-checkbox label {
    font-size: 14px !important;
    line-height: 1.5 !important;
    text-align: left !important;
  }
  
  .btn-cta {
    width: 100% !important;
    border-radius: 12px; /* Сохраняем менее закругленные углы */
    background: rgba(157, 78, 221, 0.4) !important; /* Ярче полупрозрачный фиолетовый */
    border-color: rgba(157, 78, 221, 0.7) !important; /* Ярче фиолетовый */
  }
  
  .btn-cta:hover {
    background: rgba(177, 98, 234, 0.5) !important; /* Ярче при ховере */
    border-color: rgba(177, 98, 234, 0.9) !important; /* Ярче при ховере */
  }
}

/* Мобильные (до 480px) */
@media (max-width: 480px) {
  #consultation-form {
    padding: 35px 20px !important;
    gap: 25px;
  }
  
  #consultation-form .title {
    font-size: 24px !important;
    line-height: 1.3 !important;
  }
  
  .contact-form {
    gap: 18px !important; /* Сохраняем одинаковые расстояния */
    max-width: 380px !important; /* Сохраняем фиксированную ширину */
  }
  
  .contact-form input,
  .dropdown-btn {
    height: 56px !important; /* Сохраняем высоту как на десктопе */
    font-size: 18px !important; /* Сохраняем размер шрифта */
    padding: 10px 16px !important;
    border-radius: 12px !important; /* Сохраняем менее закругленные углы */
    background: rgba(0, 0, 0, 0.7) !important; /* Более темный фон */
    border-color: rgba(157, 78, 221, 0.7) !important; /* Ярче фиолетовый */
  }
  
  .consent-checkbox {
    flex-direction: row !important;
    align-items: flex-start !important;
    padding: 15px !important; /* Сохраняем отступы как на десктопе */
    width: 100%;
    gap: 12px !important;
    border-radius: 12px !important; /* Сохраняем менее закругленные углы */
    background: rgba(0, 0, 0, 0.5) !important; /* Более темный фон */
    border-color: rgba(157, 78, 221, 0.5) !important; /* Ярче фиолетовый */
  }
  
  .consent-checkbox input[type="checkbox"] {
    margin-top: 2px !important;
    width: 20px !important;
    height: 20px !important;
    flex-shrink: 0 !important;
    border-color: rgba(157, 78, 221, 0.7) !important; /* Ярче фиолетовый */
    accent-color: rgba(177, 98, 234, 0.9) !important; /* Ярче фиолетовый */
  }
  
  .consent-checkbox label {
    font-size: 14px !important; /* Сохраняем размер шрифта */
    line-height: 1.5 !important;
    text-align: left !important;
  }
  
  .btn-cta {
    height: 56px !important; /* Сохраняем высоту как на десктопе */
    font-size: 20px !important; /* Сохраняем размер шрифта */
    border-radius: 12px !important; /* Сохраняем менее закругленные углы */
    background: rgba(157, 78, 221, 0.4) !important; /* Ярче полупрозрачный фиолетовый */
    border-color: rgba(157, 78, 221, 0.7) !important; /* Ярче фиолетовый */
  }
  
  .btn-cta:hover {
    background: rgba(177, 98, 234, 0.5) !important; /* Ярче при ховере */
    border-color: rgba(177, 98, 234, 0.9) !important; /* Ярче при ховере */
  }
}

/* Очень маленькие экраны (до 360px) */
@media (max-width: 360px) {
  #consultation-form .title {
    font-size: 22px !important;
  }
  
  .contact-form {
    max-width: 100% !important; /* На очень маленьких экранах 100% */
    gap: 16px !important;
  }
  
  .contact-form input,
  .dropdown-btn {
    height: 52px !important;
    font-size: 16px !important;
    border-radius: 12px !important; /* Сохраняем менее закругленные углы */
    background: rgba(0, 0, 0, 0.7) !important; /* Более темный фон */
    border-color: rgba(157, 78, 221, 0.7) !important; /* Ярче фиолетовый */
  }
  
  .consent-checkbox {
    flex-direction: row !important;
    align-items: flex-start !important;
    gap: 12px !important;
    padding: 12px !important;
    border-radius: 12px !important; /* Сохраняем менее закругленные углы */
    background: rgba(0, 0, 0, 0.5) !important; /* Более темный фон */
    border-color: rgba(157, 78, 221, 0.5) !important; /* Ярче фиолетовый */
  }
  
  .consent-checkbox input[type="checkbox"] {
    margin-top: 2px !important;
    width: 20px !important;
    height: 20px !important;
    flex-shrink: 0 !important;
    border-color: rgba(157, 78, 221, 0.7) !important; /* Ярче фиолетовый */
    accent-color: rgba(177, 98, 234, 0.9) !important; /* Ярче фиолетовый */
  }
  
  .consent-checkbox label {
    font-size: 13px !important;
    line-height: 1.5 !important;
    text-align: left !important;
  }
  
  .btn-cta {
    height: 52px !important;
    font-size: 18px !important;
    border-radius: 12px !important; /* Сохраняем менее закругленные углы */
    background: rgba(157, 78, 221, 0.4) !important; /* Ярче полупрозрачный фиолетовый */
    border-color: rgba(157, 78, 221, 0.7) !important; /* Ярче фиолетовый */
  }
  
  .btn-cta:hover {
    background: rgba(177, 98, 234, 0.5) !important; /* Ярче при ховере */
    border-color: rgba(177, 98, 234, 0.9) !important; /* Ярче при ховере */
  }
}

/* Горизонтальная ориентация на мобильных */
@media (max-width: 768px) and (orientation: landscape) {
  #consultation-form {
    padding: 25px 20px !important;
  }
  
  .contact-form {
    max-width: 400px !important;
    gap: 16px;
  }
  
  .contact-form input,
  .dropdown-btn {
    background: rgba(0, 0, 0, 0.7) !important; /* Более темный фон */
    border-color: rgba(157, 78, 221, 0.7) !important; /* Ярче фиолетовый */
  }
  
  .consent-checkbox {
    padding: 12px !important;
    align-items: flex-start !important;
    gap: 12px !important;
    border-radius: 12px !important; /* Сохраняем менее закругленные углы */
    background: rgba(0, 0, 0, 0.5) !important; /* Более темный фон */
    border-color: rgba(157, 78, 221, 0.5) !important; /* Ярче фиолетовый */
  }
  
  .consent-checkbox input[type="checkbox"] {
    margin-top: 2px !important;
    width: 20px !important;
    height: 20px !important;
    flex-shrink: 0 !important;
    border-color: rgba(157, 78, 221, 0.7) !important; /* Ярче фиолетовый */
    accent-color: rgba(177, 98, 234, 0.9) !important; /* Ярче фиолетовый */
  }
  
  .consent-checkbox label {
    font-size: 14px !important;
    line-height: 1.5 !important;
    text-align: left !important;
  }
}

/* Старый медиазапрос для совместимости (до 900px) */
@media (max-width: 900px) {
  #consultation-form { 
    height: auto; 
    padding: 40px 20px !important;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  #consultation-form .title { 
    font-size: 28px; 
    max-width: 100%; 
    text-align: center;
    position: static;
    margin-top: 0;
  }
  
  .contact-form { 
    position: static; 
    width: 100%; 
    max-width: 380px; 
    margin: 0 auto !important;
    gap: 18px;
    margin-top: 0;
  }
  
  .contact-form input,
  .dropdown-btn {
    background: rgba(0, 0, 0, 0.7) !important; /* Более темный фон */
    border-color: rgba(157, 78, 221, 0.7) !important; /* Ярче фиолетовый */
  }
  
  .consent-checkbox {
    align-items: flex-start !important;
    gap: 12px !important;
    padding: 15px !important;
    border-radius: 12px !important; /* Сохраняем менее закругленные углы */
    background: rgba(0, 0, 0, 0.5) !important; /* Более темный фон */
    border-color: rgba(157, 78, 221, 0.5) !important; /* Ярче фиолетовый */
  }
  
  .consent-checkbox input[type="checkbox"] {
    margin-top: 2px !important;
    width: 20px !important;
    height: 20px !important;
    flex-shrink: 0 !important;
    border-color: rgba(157, 78, 221, 0.7) !important; /* Ярче фиолетовый */
    accent-color: rgba(177, 98, 234, 0.9) !important; /* Ярче фиолетовый */
  }
  
  .consent-checkbox label {
    text-align: left !important;
    line-height: 1.5 !important;
  }
  
  .btn-cta { 
    width: 100%; 
    border-radius: 12px !important; /* Сохраняем менее закругленные углы */
    background: rgba(157, 78, 221, 0.4) !important; /* Ярче полупрозрачный фиолетовый */
    border-color: rgba(157, 78, 221, 0.7) !important; /* Ярче фиолетовый */
  }
  
  .btn-cta:hover {
    background: rgba(177, 98, 234, 0.5) !important; /* Ярче при ховере */
    border-color: rgba(177, 98, 234, 0.9) !important; /* Ярче при ховере */
  }
}
/* КАРТА */
/* контейнер держит карточку в границах карты */
.map-wrapper {
  position: relative;
  width: 100%;
}

/* сама карта */
#map {
  width: 100%;
  min-height: 510px;
  border-radius: 14px;
  overflow: hidden;
}

/* карточка контактов */
.contacts-card {
  position: absolute;
  top: 50%;
  right: 5%;
  transform: translateY(-50%);
  width: 280px;
  background: rgba(0,0,0,0.75);
  padding: 18px;
  border-radius: 14px;
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 5;
  backdrop-filter: blur(6px);
}

/* адаптив для планшетов и мобилок */
@media (max-width: 768px) {
  /* Увеличиваем высоту карты */
  #map {
    min-height: 600px; /* или можно использовать height: 600px; */
  }
  
  /* Карточка: центрируем и делаем компактной */
  .contacts-card {
    position: absolute;
    top: auto;
    bottom: 20px; /* Размещаем внизу карты */
    right: auto;
    left: 50%;
    transform: translateX(-50%); /* Центрируем по горизонтали */
    width: 280px; /* Сохраняем ширину как в десктопе */
    max-width: 90%; /* Но не более 90% ширины экрана */
    margin-top: 0;
    background: rgba(0,0,0,0.85); /* Чуть темнее для лучшей читаемости */
  }
  
  /* Дополнительно для очень маленьких экранов */
  @media (max-width: 480px) {
    #map {
      min-height: 650px; /* Еще больше высота на маленьких экранах */
    }
    
    .contacts-card {
      width: 260px; /* Чуть уже на очень маленьких экранах */
      padding: 15px;
    }
  }
  
  /* Для ландшафтной ориентации на мобильных */
  @media (max-width: 768px) and (orientation: landscape) {
    #map {
      min-height: 450px; /* Меньшая высота в ландшафте */
    }
    
    .contacts-card {
      bottom: 15px;
      width: 250px;
    }
  }
}

/* Опционально: можно добавить эффект при наведении на десктопе */
@media (min-width: 769px) {
  .contacts-card:hover {
    background: rgba(0,0,0,0.85);
    transform: translateY(-50%) scale(1.02);
    transition: all 0.3s ease;
  }
}

/* === 8 БЛОК: Конечный блок / Footer === */
.footer {
  width: 100%;
  min-width: 1100px;
  height: 232px;
  background-color: #111020;
  position: relative;
  z-index: 0;
}

.footer-container {
  position: relative;
  width: 1280px;
  max-width: 100%;
  height: 100%;
  margin: 0 auto;
}

/* Логотип */
.footer-logo {
  position: absolute;
  left: 112px;
  top: 47px;
  width: 189px;
  height: 96px;
  object-fit: contain;
}

/* Копирайт */
.footer-copy {
  position: absolute;
  left: 112px;
  bottom: 48px;
  color: #ffffff;
  font-weight: bold;
  font-size: 20px;
  margin: 0;
}

/* Мини-меню */
.footer-menu {
  position: absolute;
  left: 452px;
  top: 55px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-menu a {
  color: #aaaaaa;
  font-weight: bold;
  font-size: 20px;
  text-decoration: none;
  transition: color 0.25s ease;
}

.footer-menu a:hover {
  color: #a300ff;
}

/* Контакты */
.footer-contacts {
  position: absolute;
  left: 607px;
  top: 62px;
  color: #ffffff;
  font-weight: bold;
  font-size: 20px;
  line-height: 1.6;
}

.footer-contacts a {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.25s ease;
}

.footer-contacts a:hover {
  color: #a300ff;
}

/* Соцсети */
.footer-social {
  position: absolute;
  left: 938px;
  top: 92px;
  display: flex;
  gap: 12px;
}

/* === Кнопки соцсетей === */
.sicon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: #cccccc;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 28px 28px;
  transition: background-color 0.22s ease, transform 0.12s ease;
}
.sicon:hover { transform: translateY(-3px); }

/* Telegram */
.sicon.telegram {
  background-image: url('https://img.icons8.com/ios-filled/50/000000/telegram-app.png');
}
.sicon.telegram:hover {
  background-color: #0088cc;
  background-image: url('https://img.icons8.com/ios-filled/50/ffffff/telegram-app.png');
}


/* VK */
.sicon.vk {
  background-image: url('https://img.icons8.com/ios-filled/50/000000/vk-circled.png');
}
.sicon.vk:hover {
  background-color: #1877f2;
  background-image: url('https://img.icons8.com/ios-filled/50/ffffff/vk-circled.png');
}

/* YouTube */
.sicon.youtube {
  background-image: url('https://img.icons8.com/ios-filled/50/000000/youtube-play.png');
}
.sicon.youtube:hover {
  background-color: #ff0000;
  background-image: url('https://img.icons8.com/ios-filled/50/ffffff/youtube-play.png');
}

/* ========== АДАПТИВ ДЛЯ МОБИЛЬНЫХ ========== */
@media (max-width: 768px) {
  .footer {
    min-width: unset;
    height: auto;
    padding: 40px 20px 30px;
  }
  
  .footer-container {
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
  }
  
  /* 1. Меню */
  .footer-menu {
    position: static;
    order: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }
  
  .footer-menu a {
    font-size: 18px;
    text-align: center;
  }
  
  /* 2. Контакты - телефон сверху, email снизу */
  .footer-contacts {
    position: static;
    order: 2;
    text-align: center;
    font-size: 16px;
    line-height: 1.5;
    display: flex;
    flex-direction: column;
    gap: 8px; /* Отступ между телефоном и email */
  }
  
  /* Убираем br и меняем порядок через flex */
  .footer-contacts br {
    display: none;
  }
  
  /* Создаем контейнеры для телефона и email */
  .footer-contacts::before {
    content: none; /* Убираем все псевдоэлементы */
  }
  
  /* Если нужно переставить местами существующие элементы в HTML */
  /* Предполагаем структуру HTML: <div class="footer-contacts">тел<br>email</div> */
  /* Для мобильных мы меняем порядок через flex-direction: column */
  
  /* 3. Соцсети */
  .footer-social {
    position: static;
    order: 3;
    justify-content: center;
    margin-top: 10px;
  }
  
  /* 4. Логотип и копирайт */
  .footer-logo {
    position: static;
    order: 4;
    width: 140px;
    height: 71px;
    margin-top: 20px;
  }
  
  .footer-copy {
    position: static;
    order: 5;
    text-align: center;
    font-size: 14px;
    margin-top: 15px;
    color: #aaaaaa;
  }
}

/* ========== АДАПТИВ ДЛЯ ОЧЕНЬ МАЛЕНЬКИХ ЭКРАНОВ ========== */
@media (max-width: 480px) {
  .footer {
    padding: 30px 15px 25px;
  }
  
  .footer-container {
    gap: 25px;
  }
  
  .footer-menu {
    gap: 10px;
  }
  
  .footer-menu a {
    font-size: 16px;
  }
  
  .footer-contacts {
    font-size: 14px;
    gap: 6px;
  }
  
  .footer-social {
    gap: 8px;
  }
  
  .sicon {
    width: 45px;
    height: 45px;
    background-size: 24px 24px;
  }
  
  .footer-logo {
    width: 120px;
    height: 61px;
  }
  
  .footer-copy {
    font-size: 12px;
    margin-top: 10px;
  }
}

/* ========== ЛАНДШАФТНАЯ ОРИЕНТАЦИЯ ========== */
@media (max-width: 768px) and (orientation: landscape) {
  .footer {
    padding: 30px 20px;
  }
  
  .footer-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    align-items: start;
    column-gap: 30px;
    row-gap: 20px;
  }
  
  .footer-menu {
    grid-column: 1;
    grid-row: 1;
    align-items: flex-start;
  }
  
  .footer-contacts {
    grid-column: 2;
    grid-row: 1;
    text-align: left;
    align-items: flex-start;
  }
  
  .footer-social {
    grid-column: 1;
    grid-row: 2;
    justify-content: flex-start;
  }
  
  .footer-logo {
    grid-column: 2;
    grid-row: 2;
    margin-top: 0;
    align-self: center;
    justify-self: end;
  }
  
  .footer-copy {
    grid-column: 1 / span 2;
    grid-row: 3;
    text-align: center;
    margin-top: 20px;
  }
}

/* ========== BURGER BUTTON ========== */
.burger-btn {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1100;
}

.burger-line {
  width: 30px;
  height: 3px;
  background: white;
  border-radius: 2px;
  transition: 0.3s ease;
}

/* Крестик при открытии */
.burger-btn.open .burger-line:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}
.burger-btn.open .burger-line:nth-child(2) {
  opacity: 0;
}
.burger-btn.open .burger-line:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* ========== MOBILE MENU ========== */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: black;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transition: 0.3s ease;
  z-index: 1000;
}

.mobile-menu.active {
  opacity: 1;
  visibility: visible;
}

.mobile-menu ul {
  list-style: none;
  text-align: center;
  padding: 0;
}

.mobile-menu ul li {
  margin: 20px 0;
}

.mobile-menu ul li a {
  font-size: 24px;
  color: white;
  text-decoration: none;
  font-weight: 500;
}

/* Базовый масштаб для всех разрешений - 80% */
html {
  zoom: 0.8;
}

/* При 90% масштабе браузера возвращаем к 80% виду */
@media screen and (max-width: 1280px) and (max-height: 720px) {
  html {
    zoom: 0.9; /* 0.8 / 0.9 = 0.8889 */
  }
}

/* Для больших экранов (1920x1080) оставляем 80% */
@media screen and (min-width: 1920px) and (min-height: 1080px) {
  html {
    zoom: 1;
  }
}

/* ИСПРАВЛЕНИЕ КНОПКИ В HERO БЛОКЕ */
@media (max-width: 1280px) and (min-width: 320px) {
  .hero .btn-cta {
    background: linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.15) 0%,
      rgba(255, 255, 255, 0.05) 50%,
      rgba(255, 255, 255, 0.1) 100%
    ) !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    backdrop-filter: blur(15px) !important;
    -webkit-backdrop-filter: blur(15px) !important;
  }
}

@media (max-width: 768px) {
  .hero .btn-cta {
    background: linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.15) 0%,
      rgba(255, 255, 255, 0.05) 50%,
      rgba(255, 255, 255, 0.1) 100%
    ) !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
  }
}

@media (max-width: 480px) {
  .hero .btn-cta {
    background: linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.15) 0%,
      rgba(255, 255, 255, 0.05) 50%,
      rgba(255, 255, 255, 0.1) 100%
    ) !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    font-size: clamp(12px, 3vw, 15px) !important;
  }
}

/* === ОБЩИЕ БАЗОВЫЕ СТИЛИ === */
* { box-sizing: border-box; }
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  font-family: 'Bellota Text', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial;
  background: #000;
  color: #fff;
}
a { color: inherit; text-decoration: none; }


.main-background {
  position: relative;
  background: linear-gradient(180deg, #08040a 0%, #2b1735 27%, #110914 100%);
  background-size: cover;
  overflow: hidden;
}

/* Текстурный фон (используем псевдоэлемент для текстуры) */
.main-background::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("assets/textures/rock_surface.webp") repeat;
  opacity: 1; /* Регулируем прозрачность */
  mix-blend-mode: overlay;
  pointer-events: none;
  z-index: 0;
}

/* Правая текстура брызг (оптимизировано для LCP) */
.main-background .splash-right {
  position: absolute;
  top: 240px;
  right: 0;
  width: 800px;
  height: 1754px;
  object-fit: contain;
  object-position: top right;
  opacity: 0.55;
  /* УДАЛИТЕ: mix-blend-mode: screen; */
  pointer-events: none;
  z-index: 1;
  /* Ускоряем отрисовку на GPU */
  will-change: opacity;
  transform: translateZ(0);
}

@media (max-width: 1150px) {
  .main-background .splash-right {
    top: 120px;
    width: 600px;
    height: 1315.5px;
  }
}

/* Левая текстура брызг (создаем отдельный элемент) */
.main-background .splash-left {
  content: "";
  position: absolute;
  top: 240px;
  left: 0;
  width: 800px;
  height: 2225px;
  background: url("assets/textures/Брызги_слева_ВЕРХ.webp") no-repeat top left;
  background-size: contain;
  opacity: 0.55;
  mix-blend-mode: screen;
  pointer-events: none;
  z-index: 1;
}

/* Правые брызги 2 */
.main-background .splash-right-2 {
  content: "";
  position: absolute;
  top: 1700px;
  right: 0;
  width: 700px;
  height: 1383px;
  background: url("assets/textures/Брызгри_Справа_2.webp") no-repeat top right;
  background-size: contain;
  opacity: 0.55;
  mix-blend-mode: screen;
  pointer-events: none;
  z-index: 1;
}

/* Брызгри слева 2 */
.main-background .splash-left-2 {
  content: "";
  position: absolute;
  top: 2100px;
  left: 0;
  width: 900px;
  height: 1383px;
  background: url("assets/textures/Брызги_слева_2.webp") no-repeat top left;
  background-size: contain;
  opacity: 0.55;
  mix-blend-mode: screen;
  pointer-events: none;
  z-index: 1;
}

/* Брызги справа 3 */
.main-background .splash-right-3 {
  content: "";
  position: absolute;
  bottom: 1850px;
  right: 0;
  width: 950px;
  height: 2110px;
  background: url("assets/textures/Брызгри_Справа_3.webp") no-repeat top right;
  background-size: contain;
  opacity: 0.55;
  mix-blend-mode: screen;
  pointer-events: none;
  z-index: 1;
}

/* Брызги слева 3 */
.main-background .splash-left-3 {
  content: "";
  position: absolute;
  bottom: 2000px;
  left: 0;
  width: 694px;
  height: 1197px;
  background: url("assets/textures/Брызги_слева_3.webp") no-repeat top left;
  background-size: contain;
  opacity: 0.55;
  mix-blend-mode: screen;
  pointer-events: none;
  z-index: 1;
}

.site-head-wrapper {
  position: relative; /* чтобы z-index работал */
  z-index: 5;         /* выше, чем псевдоэлемент ::before */
  background-color: #1D1322; /* плотный темный фон */
}


/* --- Обёртка хэдэра*/

.site-head-wrapper {
  width: 100%;
  background-color: #1D1322; /* плотный темный фон */
  background-image: none;    /* без текстуры или с полностью непрозрачной картинкой */
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  opacity: 1;                 /* гарантируем полную непрозрачность */
}

/* Контейнер контента остаётся прозрачным, чтобы не перекрывал фон */
.site-head {
  width: 1280px;
  height: 161px;
  margin: 0 auto;
  position: relative;
  font-family: Arial, sans-serif;
  background: transparent;
}



/* --- Звезда --- */
.star {
  position: absolute;
  left: 109px;
  top: 35px;
}
.star img {
  width: 84px;
  height: 80px;
  object-fit: contain;
  display: block;
}

/* --- Телефон --- */
.phone {
  position: absolute;
  left: 205px;
  top: 70px;
  font-weight: 700;
  font-size: 20px;
  color: #ffffff;
  text-decoration: none;
}
.phone:hover {
  text-decoration: underline;
}

/* --- Центральный логотип --- */
.head-center {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}
.head-center img {
  width: 412px;
  height: 119px;
  object-fit: contain;
  display: block;
}

/* --- Соцсети справа --- */
.head-right {
  position: absolute;
  right: 109px; /* выравниваем симметрично */
  top: 56px;
  display: flex;
  gap: 15px;
}

/* --- Общие стили иконок --- */
.sicon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: #cccccc;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 28px 28px;
  transition: background-color 0.22s ease, transform 0.12s ease;
}
.sicon:hover {
  transform: translateY(-3px);
}

/* Telegram */
.sicon.telegram {
  background-image: url('https://img.icons8.com/ios-filled/50/000000/telegram-app.png');
}
.sicon.telegram:hover {
  background-color: #0088cc;
  background-image: url('https://img.icons8.com/ios-filled/50/ffffff/telegram-app.png');
}

/* MAX */
.sicon.max {
  background-image: url('assets/icons/max_black.webp?v');
}
/* MAX */
.sicon.max:hover {
  background: 
    url('assets/icons/max_white.webp') no-repeat center / 58%,
    linear-gradient(135deg, #00c4ff, #2a6bff, #8c4eff);
}

/* VK */
.sicon.vk {
  background-image: url('https://img.icons8.com/ios-filled/50/000000/vk-circled.png');
}
.sicon.vk:hover {
  background-color: #1877f2;
  background-image: url('https://img.icons8.com/ios-filled/50/ffffff/vk-circled.png');
}

/* YouTube */
.sicon.youtube {
  background-image: url('https://img.icons8.com/ios-filled/50/000000/youtube-play.png');
}
.sicon.youtube:hover {
  background-color: #ff0000;
  background-image: url('https://img.icons8.com/ios-filled/50/ffffff/youtube-play.png');
}

/* === АККУРАТНОЕ СЖАТИЕ (1280px - 1025px) === */
@media (min-width: 1025px) and (max-width: 1280px) {
  .site-head {
    width: 100% !important;
    padding: 0 60px !important;
  }
}

/* === СКРЫТИЕ ЛОГОТИПА (1024px - 769px) === */
@media (min-width: 769px) and (max-width: 1024px) {
  .site-head {
    width: 100% !important;
    padding: 0 60px !important;
  }
  
  .head-center {
    display: none !important;
  }
}

/* === МОБИЛЬНАЯ ВЕРСИЯ (768px и меньше) === */
@media (max-width: 768px) {
  .site-head-wrapper {
    height: auto !important;
    padding: 20px 0 !important;
  }
  
  .site-head {
    width: 100% !important;
    height: auto !important;
    padding: 0 20px !important;
    position: static !important;
    display: flex !important;
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }
  
  .head-center {
    display: none !important;
  }
  
  .star {
    position: static !important;
    order: 1;
  }
  
  .star img {
    width: 60px !important;
    height: 55px !important;
    display: inline-block !important;
    vertical-align: middle !important;
  }
  
  .phone {
    position: static !important;
    order: 2;
    font-size: 18px !important;
    padding: 10px 18px !important;
    background: rgba(163, 0, 255, 0.15) !important;
    border-radius: 25px !important;
    display: inline-block !important;
    vertical-align: middle !important;
    margin-left: 15px !important;
  }
  
  .head-right {
    position: static !important;
    order: 3;
    display: flex !important;
    justify-content: center;
    gap: 15px;
    width: 100%;
  }
  
  .sicon {
    width: 48px !important;
    height: 48px !important;
    background-size: 26px 26px !important;
  }
}

/* === ГОРИЗОНТАЛЬНЫЙ ТЕЛЕФОН === */
@media (max-width: 768px) and (orientation: landscape) {
  .site-head {
    flex-direction: row !important;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px !important;
    gap: 10px !important;
  }
  
  .star {
    order: 1 !important;
  }
  
  .phone {
    order: 2 !important;
    margin-left: 10px !important;
  }
  
  .head-right {
    order: 3 !important;
    width: auto !important;
    justify-content: flex-end;
  }
}

/* === ОЧЕНЬ МАЛЕНЬКИЕ ТЕЛЕФОНЫ === */
@media (max-width: 380px) {
  .site-head {
    gap: 15px;
    padding: 0 15px !important;
  }
  
  .star img {
    width: 50px !important;
    height: 45px !important;
  }
  
  .phone {
    font-size: 16px !important;
    padding: 8px 14px !important;
    margin-left: 10px !important;
  }
  
  .sicon {
    width: 44px !important;
    height: 44px !important;
  }
}

/* ======================
   ОСНОВНОЕ МЕНЮ
   ====================== */
.main-menu {
  position: sticky;
  top: 0;
  z-index: 1006; /* УВЕЛИЧИЛ ДЛЯ ПРИОРИТЕТА НАД ШАПКОЙ */
  width: 100%;
  background-color: #1D1322;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 81px;
  transition: top 0.3s ease;
}

.menu-inner {
  width: 1280px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.desktop-menu {
  display: flex;
  gap: 45px;
  margin: 0;
  padding: 0;
  list-style: none;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 100%;
}

.main-menu a {
  font-weight: bold;
  font-size: 20px;
  color: #fff;
  text-decoration: none;
  transition: color 0.3s ease;
  white-space: nowrap;
}

.main-menu a:hover {
  color: #a300ff;
}

/* ======================
   БУРГЕР (АБСОЛЮТНЫЙ - ВСЕГДА СВЕРХУ)
   ====================== */
.burger-checkbox {
  position: absolute;
  visibility: hidden;
}

.burger {
  position: fixed; /* Меняем absolute на fixed */
  z-index: 1007;
  cursor: pointer;
  display: none;
  border: none;
  background: transparent;
  width: 40px;
  height: 26px;
  left: 30px;
  top: 30px; /* Фиксированная позиция от верха */
  transform: none; /* Убираем transform */
}

.burger::before,
.burger::after {
  content: '';
  position: absolute;
  left: 0;
  width: 100%;
  height: 4px;
  border-radius: 10px;
  background: #fff;
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  transform-origin: center;
}

.burger::before {
  top: 0;
  transform: translateY(0) rotate(0);
}

.burger::after {
  bottom: 0;
  transform: translateY(0) rotate(0);
}

.burger-checkbox:checked + .burger::before {
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
}

.burger-checkbox:checked + .burger::after {
  bottom: 50%;
  transform: translateY(50%) rotate(-45deg);
}

/* ======================
   МОБИЛЬНОЕ МЕНЮ (ПОД БУРГЕРОМ)
   ====================== */
.menu-list {
  position: fixed;
  top: 0 !important; /* Теперь меню начинается с самого верха */
  left: 0;
  width: 300px;
  height: 100vh; /* Занимает всю высоту */
  margin: 0;
  padding: 80px 0 0 0; /* Отступ сверху для бургера */
  list-style: none;
  transform: translateX(-100%);
  transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  z-index: 1005;
  overflow-y: auto;
  
  background: linear-gradient(
    to bottom,
    #1D1322 0%,
    #1D1322 20%,
    rgba(29, 19, 34, 0.95) 40%,
    rgba(29, 19, 34, 0.85) 60%,
    rgba(29, 19, 34, 0.7) 80%,
    rgba(29, 19, 34, 0.4) 100%
  );
  backdrop-filter: blur(10px);
}

.menu-item {
  display: block;
  padding: 15px 30px;
  color: #fff;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  transition: all 0.3s ease;
}

.menu-item:hover {
  background: rgba(163, 0, 255, 0.2);
  color: #a300ff;
  padding-left: 40px;
}

.burger-checkbox:checked ~ .menu-list {
  transform: translateX(0);
  box-shadow: 2px 0 10px rgba(0,0,0,0.3);
}

/* ======================
   МЕДИА ЗАПРОСЫ - ТЕПЕРЬ С 1150px!
   ====================== */
@media (max-width: 1150px) {
  .burger {
    display: block;
  }
  
  .desktop-menu {
    display: none;
  }
  
  .main-menu {
    display: none !important;
  }
  
  .menu-list {
    overflow-y: auto;
  }
  
  .menu-list::-webkit-scrollbar {
    width: 6px;
  }
  
  .menu-list::-webkit-scrollbar-thumb {
    background: #a300ff;
    border-radius: 3px;
  }
}

/* ДОБАВЛЯЕМ ОТСТУП ДЛЯ КОНТЕНТА */
body {
  padding-top: 0;
}

.main-menu.sticky + * {
  margin-top: 81px;
}

/* ======================
   КНОПКА "НАВЕРХ"
   ====================== */
.scroll-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: #a300ff;
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(163, 0, 255, 0.3);
}

.scroll-to-top.show {
  opacity: 1;
  visibility: visible;
}

.scroll-to-top:hover {
  background: #8a00d4;
  transform: translateY(-3px);
}

.scroll-to-top.force-hide {
  opacity: 0 !important;
  visibility: hidden !important;
}


/* ================== 7 БЛОК: CONSULTATION FORM ================== */
/* --- ОБЁРТКА ФОРМЫ: бесконечный фон --- */
#consultation-form-wrapper {
  width: 100%;
  min-height: 560px;
  background-image: url('assets/images/form background.webp');
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;
  overflow: hidden;
  z-index: 3;
}

/* --- Градиент поверх фона --- */
#consultation-form-wrapper .form-gradient {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right,
    rgba(0,0,0,0.96) 0%,
    rgba(0,0,0,0.78) 18%,
    rgba(0,0,0,0.55) 42%,
    rgba(0,0,0,0.25) 68%,
    rgba(0,0,0,0) 100%);
  pointer-events: none;
  z-index: 5;
}

/* Контейнер с контентом - центрирование */
#consultation-form {
  position: relative;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  min-height: 560px;
  z-index: 5;
  display: flex;
  align-items: flex-start;
  justify-content: center; /* Центрируем содержимое */
  padding: 60px 20px 20px;
  background: transparent;
  flex-direction: row;
  gap: 40px; /* Равное расстояние между заголовком и формой */
}

/* Заголовок - левая часть */
#consultation-form .title {
  font-weight: 700;
  font-size: 42px;
  font-family: inherit;
  max-width: 549px;
  line-height: 1.15;
  color: #ffffff;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: flex-start;
  height: 100%;
  margin-top: 20px;
  flex: 1;
}

/* Форма - правая часть */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px; /* Одинаковое расстояние между всеми элементами */
  width: 380px;
  z-index: 7;
  transition: transform .25s ease;
  margin-top: 20px;
  flex-shrink: 0;
}

/* Поля — мягкие границы, эффекты (обновленный стиль) */
.contact-form input {
  height: 56px;
  padding: 10px 16px;
  border-radius: 12px; /* Менее закругленные углы */
  border: 2px solid rgba(157, 78, 221, 0.7); /* Ярче фиолетовый */
  background: rgba(0, 0, 0, 0.7); /* Более темный фон */
  color: #ffffff;
  font-size: 18px;
  font-family: 'Bellota Text', sans-serif;
  outline: none;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  transition: border-color .20s ease, box-shadow .18s ease, transform .12s ease;
  width: 100%; /* Всегда 100% ширины контейнера формы */
}

.contact-form input::placeholder { 
  color: rgba(255, 255, 255, 0.45); 
}

.contact-form input:focus {
  border-color: rgba(177, 98, 234, 0.9); /* Ярче фиолетовый при фокусе */
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(157, 78, 221, 0.25);
}

/* Dropdown button styled like input */
.dropdown { 
  position: relative; 
  width: 100%; 
}

.dropdown-btn {
  height: 56px;
  width: 100%;
  padding: 10px 16px;
  border-radius: 12px; /* Менее закругленные углы */
  border: 2px solid rgba(157, 78, 221, 0.7); /* Ярче фиолетовый */
  background: rgba(0, 0, 0, 0.7); /* Более темный фон */
  color: #ffffff;
  font-size: 18px;
  font-family: 'Bellota Text', sans-serif;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  outline: none;
  transition: all .20s ease;
}

.dropdown-btn:hover {
  border-color: rgba(177, 98, 234, 0.9); /* Ярче при ховере */
}

/* Список выпадающий */
.dropdown-content {
  display: none;
  position: absolute;
  top: 66px;
  left: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.8); /* Более темный фон */
  border-radius: 12px; /* Менее закругленные углы */
  border: 2px solid rgba(157, 78, 221, 0.7); /* Ярче фиолетовый */
  z-index: 60;
  box-shadow: 0 12px 40px rgba(0,0,0,0.18);
  list-style: none;
  padding: 6px 0;
  margin: 0;
}

.dropdown-content li {
  padding: 12px 16px;
  cursor: pointer;
  color: #ffffff;
  font-family: 'Bellota Text', sans-serif;
  transition: background .12s ease;
}

.dropdown-content li:hover {
  background: rgba(157, 78, 221, 0.25); /* Ярче фиолетовый фон */
}

/* helper class */
.dropdown-content.show { 
  display: block; 
}

/* Кнопка — в потоке (обновленный стиль) */
.btn-cta {
  background: rgba(157, 78, 221, 0.4); /* Ярче полупрозрачный фиолетовый */
  border: 2px solid rgba(157, 78, 221, 0.7); /* Ярче фиолетовый */
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  color: #fff;
  font-size: 20px;
  font-family: 'Bellota Text', sans-serif;
  font-weight: 700;
  width: 100%;
  height: 56px;
  border-radius: 12px; /* Менее закругленные углы */
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(0,0,0,0.18);
  transition: transform .22s ease, box-shadow .22s ease, background .22s ease, border-color .22s ease;
}

.btn-cta:hover { 
  background: rgba(177, 98, 234, 0.5); /* Ярче при ховере */
  border-color: rgba(177, 98, 234, 0.9); /* Ярче при ховере */
  transform: translateY(-4px); 
  box-shadow: 0 18px 46px rgba(157, 78, 221, 0.35); /* Ярче тень */
}

/* Контейнер согласия */
.consent-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0;
  padding: 15px;
  background: rgba(0, 0, 0, 0.5); /* Более темный фон */
  border-radius: 12px; /* Менее закругленные углы */
  border: 1px solid rgba(157, 78, 221, 0.5); /* Ярче фиолетовый */
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

/* Чекбокс */
.consent-checkbox input[type="checkbox"] {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  cursor: pointer;
  accent-color: rgba(177, 98, 234, 0.9); /* Ярче фиолетовый */
  border: 2px solid rgba(157, 78, 221, 0.7); /* Ярче фиолетовый */
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.5);
  transition: all 0.2s ease;
}

.consent-checkbox input[type="checkbox"]:hover {
  border-color: rgba(177, 98, 234, 0.9); /* Ярче при ховере */
  box-shadow: 0 0 10px rgba(157, 78, 221, 0.6); /* Ярче тень */
}

.consent-checkbox input[type="checkbox"]:checked {
  background-color: rgba(177, 98, 234, 0.9); /* Ярче фиолетовый */
  border-color: rgba(177, 98, 234, 0.9); /* Ярче фиолетовый */
}

/* Текст согласия */
.consent-checkbox label {
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.85);
  cursor: pointer;
  font-weight: 300;
  font-family: 'Bellota Text', system-ui, sans-serif;
}

/* Ссылки в согласии */
.consent-checkbox .consent-link {
  color: rgba(177, 98, 234, 0.95); /* Ярче фиолетовый */
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: all 0.2s ease;
  font-weight: 400;
}

.consent-checkbox .consent-link:hover {
  color: rgba(197, 128, 255, 1); /* Еще ярче при ховере */
  border-bottom-color: rgba(177, 98, 234, 0.9); /* Ярче фиолетовый */
}

/* Сообщение об ошибке */
.form-submitted .consent-checkbox:has(input:not(:checked)) {
  border-color: rgba(255, 75, 75, 0.7);
  background: rgba(255, 75, 75, 0.1);
}

.form-submitted .consent-checkbox:has(input:not(:checked)) label {
  color: rgba(255, 180, 180, 0.95);
}

/* ================== КАЧЕСТВЕННЫЙ МЕДИАЗАПРОС: 1024px - 768px ================== */
@media (min-width: 768px) and (max-width: 1024px) {
  #consultation-form-wrapper {
    min-height: 520px;
  }
  
  #consultation-form {
    min-height: 520px;
    padding: 50px 40px 40px !important;
    align-items: flex-start;
    justify-content: center;
    gap: 30px;
  }
  
  #consultation-form .title {
    font-size: 36px !important;
    max-width: 450px;
    margin-top: 15px;
  }
  
  .contact-form {
    width: 340px !important;
    margin-top: 15px;
    gap: 18px;
  }
  
  .contact-form input,
  .dropdown-btn {
    height: 52px;
    font-size: 17px;
    border-radius: 12px; /* Сохраняем менее закругленные углы */
    background: rgba(0, 0, 0, 0.7); /* Более темный фон */
    border-color: rgba(157, 78, 221, 0.7); /* Ярче фиолетовый */
  }
  
  .consent-checkbox {
    padding: 12px;
    align-items: flex-start !important;
    gap: 12px !important;
    border-radius: 12px; /* Сохраняем менее закругленные углы */
    background: rgba(0, 0, 0, 0.5); /* Более темный фон */
    border-color: rgba(157, 78, 221, 0.5); /* Ярче фиолетовый */
  }
  
  .consent-checkbox input[type="checkbox"] {
    margin-top: 2px !important;
    flex-shrink: 0 !important;
    width: 20px !important;
    height: 20px !important;
    border-color: rgba(157, 78, 221, 0.7); /* Ярче фиолетовый */
    accent-color: rgba(177, 98, 234, 0.9); /* Ярче фиолетовый */
  }
  
  .consent-checkbox label {
    font-size: 13.5px;
    line-height: 1.5 !important;
  }
  
  .btn-cta {
    height: 54px;
    font-size: 19px;
    border-radius: 12px; /* Сохраняем менее закругленные углы */
    background: rgba(157, 78, 221, 0.4); /* Ярче полупрозрачный фиолетовый */
    border-color: rgba(157, 78, 221, 0.7); /* Ярче фиолетовый */
  }
  
  .btn-cta:hover {
    background: rgba(177, 98, 234, 0.5); /* Ярче при ховере */
    border-color: rgba(177, 98, 234, 0.9); /* Ярче при ховере */
  }
}

/* ================== АДАПТИВНОСТЬ ДЛЯ МОБИЛЬНЫХ УСТРОЙСТВ ================== */

/* Планшеты (до 768px) */
@media (max-width: 768px) {
  #consultation-form-wrapper {
    min-height: auto;
  }
  
  #consultation-form {
    min-height: auto;
    padding: 40px 30px !important;
    flex-direction: column;
    align-items: center !important;
    text-align: center !important;
    gap: 30px;
  }
  
  #consultation-form .title {
    max-width: 100% !important;
    text-align: center !important;
    font-size: 30px !important;
    margin-top: 0;
    position: static;
  }
  
  .contact-form {
    position: relative !important;
    width: 100% !important;
    max-width: 380px !important; /* Такая же ширина как на больших экранах */
    margin: 0 auto !important;
    margin-top: 0;
    gap: 18px; /* Одинаковое расстояние как на десктопе */
  }
  
  .contact-form input,
  .dropdown-btn,
  .btn-cta {
    width: 100% !important; /* Все элементы на всю ширину формы */
    border-radius: 12px; /* Сохраняем менее закругленные углы */
  }
  
  .contact-form input,
  .dropdown-btn {
    background: rgba(0, 0, 0, 0.7) !important; /* Более темный фон */
    border-color: rgba(157, 78, 221, 0.7) !important; /* Ярче фиолетовый */
  }
  
  .consent-checkbox {
    margin: 0;
    width: 100%;
    align-items: flex-start !important;
    gap: 12px !important;
    padding: 15px !important;
    border-radius: 12px; /* Сохраняем менее закругленные углы */
    background: rgba(0, 0, 0, 0.5) !important; /* Более темный фон */
    border-color: rgba(157, 78, 221, 0.5) !important; /* Ярче фиолетовый */
  }
  
  .consent-checkbox input[type="checkbox"] {
    margin-top: 2px !important;
    flex-shrink: 0 !important;
    width: 20px !important;
    height: 20px !important;
    border-color: rgba(157, 78, 221, 0.7) !important; /* Ярче фиолетовый */
    accent-color: rgba(177, 98, 234, 0.9) !important; /* Ярче фиолетовый */
  }
  
  .consent-checkbox label {
    font-size: 14px !important;
    line-height: 1.5 !important;
    text-align: left !important;
  }
  
  .btn-cta {
    width: 100% !important;
    border-radius: 12px; /* Сохраняем менее закругленные углы */
    background: rgba(157, 78, 221, 0.4) !important; /* Ярче полупрозрачный фиолетовый */
    border-color: rgba(157, 78, 221, 0.7) !important; /* Ярче фиолетовый */
  }
  
  .btn-cta:hover {
    background: rgba(177, 98, 234, 0.5) !important; /* Ярче при ховере */
    border-color: rgba(177, 98, 234, 0.9) !important; /* Ярче при ховере */
  }
}

/* Мобильные (до 480px) */
@media (max-width: 480px) {
  #consultation-form {
    padding: 35px 20px !important;
    gap: 25px;
  }
  
  #consultation-form .title {
    font-size: 24px !important;
    line-height: 1.3 !important;
  }
  
  .contact-form {
    gap: 18px !important; /* Сохраняем одинаковые расстояния */
    max-width: 380px !important; /* Сохраняем фиксированную ширину */
  }
  
  .contact-form input,
  .dropdown-btn {
    height: 56px !important; /* Сохраняем высоту как на десктопе */
    font-size: 18px !important; /* Сохраняем размер шрифта */
    padding: 10px 16px !important;
    border-radius: 12px !important; /* Сохраняем менее закругленные углы */
    background: rgba(0, 0, 0, 0.7) !important; /* Более темный фон */
    border-color: rgba(157, 78, 221, 0.7) !important; /* Ярче фиолетовый */
  }
  
  .consent-checkbox {
    flex-direction: row !important;
    align-items: flex-start !important;
    padding: 15px !important; /* Сохраняем отступы как на десктопе */
    width: 100%;
    gap: 12px !important;
    border-radius: 12px !important; /* Сохраняем менее закругленные углы */
    background: rgba(0, 0, 0, 0.5) !important; /* Более темный фон */
    border-color: rgba(157, 78, 221, 0.5) !important; /* Ярче фиолетовый */
  }
  
  .consent-checkbox input[type="checkbox"] {
    margin-top: 2px !important;
    width: 20px !important;
    height: 20px !important;
    flex-shrink: 0 !important;
    border-color: rgba(157, 78, 221, 0.7) !important; /* Ярче фиолетовый */
    accent-color: rgba(177, 98, 234, 0.9) !important; /* Ярче фиолетовый */
  }
  
  .consent-checkbox label {
    font-size: 14px !important; /* Сохраняем размер шрифта */
    line-height: 1.5 !important;
    text-align: left !important;
  }
  
  .btn-cta {
    height: 56px !important; /* Сохраняем высоту как на десктопе */
    font-size: 20px !important; /* Сохраняем размер шрифта */
    border-radius: 12px !important; /* Сохраняем менее закругленные углы */
    background: rgba(157, 78, 221, 0.4) !important; /* Ярче полупрозрачный фиолетовый */
    border-color: rgba(157, 78, 221, 0.7) !important; /* Ярче фиолетовый */
  }
  
  .btn-cta:hover {
    background: rgba(177, 98, 234, 0.5) !important; /* Ярче при ховере */
    border-color: rgba(177, 98, 234, 0.9) !important; /* Ярче при ховере */
  }
}

/* Очень маленькие экраны (до 360px) */
@media (max-width: 360px) {
  #consultation-form .title {
    font-size: 22px !important;
  }
  
  .contact-form {
    max-width: 100% !important; /* На очень маленьких экранах 100% */
    gap: 16px !important;
  }
  
  .contact-form input,
  .dropdown-btn {
    height: 52px !important;
    font-size: 16px !important;
    border-radius: 12px !important; /* Сохраняем менее закругленные углы */
    background: rgba(0, 0, 0, 0.7) !important; /* Более темный фон */
    border-color: rgba(157, 78, 221, 0.7) !important; /* Ярче фиолетовый */
  }
  
  .consent-checkbox {
    flex-direction: row !important;
    align-items: flex-start !important;
    gap: 12px !important;
    padding: 12px !important;
    border-radius: 12px !important; /* Сохраняем менее закругленные углы */
    background: rgba(0, 0, 0, 0.5) !important; /* Более темный фон */
    border-color: rgba(157, 78, 221, 0.5) !important; /* Ярче фиолетовый */
  }
  
  .consent-checkbox input[type="checkbox"] {
    margin-top: 2px !important;
    width: 20px !important;
    height: 20px !important;
    flex-shrink: 0 !important;
    border-color: rgba(157, 78, 221, 0.7) !important; /* Ярче фиолетовый */
    accent-color: rgba(177, 98, 234, 0.9) !important; /* Ярче фиолетовый */
  }
  
  .consent-checkbox label {
    font-size: 13px !important;
    line-height: 1.5 !important;
    text-align: left !important;
  }
  
  .btn-cta {
    height: 52px !important;
    font-size: 18px !important;
    border-radius: 12px !important; /* Сохраняем менее закругленные углы */
    background: rgba(157, 78, 221, 0.4) !important; /* Ярче полупрозрачный фиолетовый */
    border-color: rgba(157, 78, 221, 0.7) !important; /* Ярче фиолетовый */
  }
  
  .btn-cta:hover {
    background: rgba(177, 98, 234, 0.5) !important; /* Ярче при ховере */
    border-color: rgba(177, 98, 234, 0.9) !important; /* Ярче при ховере */
  }
}

/* Горизонтальная ориентация на мобильных */
@media (max-width: 768px) and (orientation: landscape) {
  #consultation-form {
    padding: 25px 20px !important;
  }
  
  .contact-form {
    max-width: 400px !important;
    gap: 16px;
  }
  
  .contact-form input,
  .dropdown-btn {
    background: rgba(0, 0, 0, 0.7) !important; /* Более темный фон */
    border-color: rgba(157, 78, 221, 0.7) !important; /* Ярче фиолетовый */
  }
  
  .consent-checkbox {
    padding: 12px !important;
    align-items: flex-start !important;
    gap: 12px !important;
    border-radius: 12px !important; /* Сохраняем менее закругленные углы */
    background: rgba(0, 0, 0, 0.5) !important; /* Более темный фон */
    border-color: rgba(157, 78, 221, 0.5) !important; /* Ярче фиолетовый */
  }
  
  .consent-checkbox input[type="checkbox"] {
    margin-top: 2px !important;
    width: 20px !important;
    height: 20px !important;
    flex-shrink: 0 !important;
    border-color: rgba(157, 78, 221, 0.7) !important; /* Ярче фиолетовый */
    accent-color: rgba(177, 98, 234, 0.9) !important; /* Ярче фиолетовый */
  }
  
  .consent-checkbox label {
    font-size: 14px !important;
    line-height: 1.5 !important;
    text-align: left !important;
  }
}

/* Старый медиазапрос для совместимости (до 900px) */
@media (max-width: 900px) {
  #consultation-form { 
    height: auto; 
    padding: 40px 20px !important;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  #consultation-form .title { 
    font-size: 28px; 
    max-width: 100%; 
    text-align: center;
    position: static;
    margin-top: 0;
  }
  
  .contact-form { 
    position: static; 
    width: 100%; 
    max-width: 380px; 
    margin: 0 auto !important;
    gap: 18px;
    margin-top: 0;
  }
  
  .contact-form input,
  .dropdown-btn {
    background: rgba(0, 0, 0, 0.7) !important; /* Более темный фон */
    border-color: rgba(157, 78, 221, 0.7) !important; /* Ярче фиолетовый */
  }
  
  .consent-checkbox {
    align-items: flex-start !important;
    gap: 12px !important;
    padding: 15px !important;
    border-radius: 12px !important; /* Сохраняем менее закругленные углы */
    background: rgba(0, 0, 0, 0.5) !important; /* Более темный фон */
    border-color: rgba(157, 78, 221, 0.5) !important; /* Ярче фиолетовый */
  }
  
  .consent-checkbox input[type="checkbox"] {
    margin-top: 2px !important;
    width: 20px !important;
    height: 20px !important;
    flex-shrink: 0 !important;
    border-color: rgba(157, 78, 221, 0.7) !important; /* Ярче фиолетовый */
    accent-color: rgba(177, 98, 234, 0.9) !important; /* Ярче фиолетовый */
  }
  
  .consent-checkbox label {
    text-align: left !important;
    line-height: 1.5 !important;
  }
  
  .btn-cta { 
    width: 100%; 
    border-radius: 12px !important; /* Сохраняем менее закругленные углы */
    background: rgba(157, 78, 221, 0.4) !important; /* Ярче полупрозрачный фиолетовый */
    border-color: rgba(157, 78, 221, 0.7) !important; /* Ярче фиолетовый */
  }
  
  .btn-cta:hover {
    background: rgba(177, 98, 234, 0.5) !important; /* Ярче при ховере */
    border-color: rgba(177, 98, 234, 0.9) !important; /* Ярче при ховере */
  }
}
/* КАРТА */
/* контейнер держит карточку в границах карты */
.map-wrapper {
  position: relative;
  width: 100%;
}

/* сама карта */
#map {
  width: 100%;
  min-height: 510px;
  border-radius: 14px;
  overflow: hidden;
}

/* карточка контактов */
.contacts-card {
  position: absolute;
  top: 50%;
  right: 5%;
  transform: translateY(-50%);
  width: 280px;
  background: rgba(0,0,0,0.75);
  padding: 18px;
  border-radius: 14px;
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 5;
  backdrop-filter: blur(6px);
}

/* адаптив для планшетов и мобилок */
@media (max-width: 768px) {
  /* Увеличиваем высоту карты */
  #map {
    min-height: 600px; /* или можно использовать height: 600px; */
  }
  
  /* Карточка: центрируем и делаем компактной */
  .contacts-card {
    position: absolute;
    top: auto;
    bottom: 20px; /* Размещаем внизу карты */
    right: auto;
    left: 50%;
    transform: translateX(-50%); /* Центрируем по горизонтали */
    width: 280px; /* Сохраняем ширину как в десктопе */
    max-width: 90%; /* Но не более 90% ширины экрана */
    margin-top: 0;
    background: rgba(0,0,0,0.85); /* Чуть темнее для лучшей читаемости */
  }
  
  /* Дополнительно для очень маленьких экранов */
  @media (max-width: 480px) {
    #map {
      min-height: 650px; /* Еще больше высота на маленьких экранах */
    }
    
    .contacts-card {
      width: 260px; /* Чуть уже на очень маленьких экранах */
      padding: 15px;
    }
  }
  
  /* Для ландшафтной ориентации на мобильных */
  @media (max-width: 768px) and (orientation: landscape) {
    #map {
      min-height: 450px; /* Меньшая высота в ландшафте */
    }
    
    .contacts-card {
      bottom: 15px;
      width: 250px;
    }
  }
}

/* Опционально: можно добавить эффект при наведении на десктопе */
@media (min-width: 769px) {
  .contacts-card:hover {
    background: rgba(0,0,0,0.85);
    transform: translateY(-50%) scale(1.02);
    transition: all 0.3s ease;
  }
}

/* === 8 БЛОК: Конечный блок / Footer === */
.footer {
  width: 100%;
  min-width: 1100px;
  height: 232px;
  background-color: #111020;
  position: relative;
  z-index: 0;
}

.footer-container {
  position: relative;
  width: 1280px;
  max-width: 100%;
  height: 100%;
  margin: 0 auto;
}

/* Логотип */
.footer-logo {
  position: absolute;
  left: 112px;
  top: 47px;
  width: 189px;
  height: 96px;
  object-fit: contain;
}

/* Копирайт */
.footer-copy {
  position: absolute;
  left: 112px;
  bottom: 48px;
  color: #ffffff;
  font-weight: bold;
  font-size: 20px;
  margin: 0;
}

/* Мини-меню */
.footer-menu {
  position: absolute;
  left: 452px;
  top: 55px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-menu a {
  color: #aaaaaa;
  font-weight: bold;
  font-size: 20px;
  text-decoration: none;
  transition: color 0.25s ease;
}

.footer-menu a:hover {
  color: #a300ff;
}

/* Контакты */
.footer-contacts {
  position: absolute;
  left: 607px;
  top: 62px;
  color: #ffffff;
  font-weight: bold;
  font-size: 20px;
  line-height: 1.6;
}

.footer-contacts a {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.25s ease;
}

.footer-contacts a:hover {
  color: #a300ff;
}

/* Соцсети */
.footer-social {
  position: absolute;
  left: 938px;
  top: 92px;
  display: flex;
  gap: 12px;
}

/* === Кнопки соцсетей === */
.sicon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: #cccccc;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 28px 28px;
  transition: background-color 0.22s ease, transform 0.12s ease;
}
.sicon:hover { transform: translateY(-3px); }

/* Telegram */
.sicon.telegram {
  background-image: url('https://img.icons8.com/ios-filled/50/000000/telegram-app.png');
}
.sicon.telegram:hover {
  background-color: #0088cc;
  background-image: url('https://img.icons8.com/ios-filled/50/ffffff/telegram-app.png');
}

/* MAX */
.sicon.max {
  background-image: url('assets/icons/max_black.webp');
}
/* MAX */
.sicon.max:hover {
  background: 
    url('assets/icons/max_white.webp') no-repeat center / 58%,
    linear-gradient(135deg, #00c4ff, #2a6bff, #8c4eff);
}

/* VK */
.sicon.vk {
  background-image: url('https://img.icons8.com/ios-filled/50/000000/vk-circled.png');
}
.sicon.vk:hover {
  background-color: #1877f2;
  background-image: url('https://img.icons8.com/ios-filled/50/ffffff/vk-circled.png');
}

/* YouTube */
.sicon.youtube {
  background-image: url('https://img.icons8.com/ios-filled/50/000000/youtube-play.png');
}
.sicon.youtube:hover {
  background-color: #ff0000;
  background-image: url('https://img.icons8.com/ios-filled/50/ffffff/youtube-play.png');
}

/* ========== АДАПТИВ ДЛЯ МОБИЛЬНЫХ ========== */
@media (max-width: 768px) {
  .footer {
    min-width: unset;
    height: auto;
    padding: 40px 20px 30px;
  }
  
  .footer-container {
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
  }
  
  /* 1. Меню */
  .footer-menu {
    position: static;
    order: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }
  
  .footer-menu a {
    font-size: 18px;
    text-align: center;
  }
  
  /* 2. Контакты - телефон сверху, email снизу */
  .footer-contacts {
    position: static;
    order: 2;
    text-align: center;
    font-size: 16px;
    line-height: 1.5;
    display: flex;
    flex-direction: column;
    gap: 8px; /* Отступ между телефоном и email */
  }
  
  /* Убираем br и меняем порядок через flex */
  .footer-contacts br {
    display: none;
  }
  
  /* Создаем контейнеры для телефона и email */
  .footer-contacts::before {
    content: none; /* Убираем все псевдоэлементы */
  }
  
  /* Если нужно переставить местами существующие элементы в HTML */
  /* Предполагаем структуру HTML: <div class="footer-contacts">тел<br>email</div> */
  /* Для мобильных мы меняем порядок через flex-direction: column */
  
  /* 3. Соцсети */
  .footer-social {
    position: static;
    order: 3;
    justify-content: center;
    margin-top: 10px;
  }
  
  /* 4. Логотип и копирайт */
  .footer-logo {
    position: static;
    order: 4;
    width: 140px;
    height: 71px;
    margin-top: 20px;
  }
  
  .footer-copy {
    position: static;
    order: 5;
    text-align: center;
    font-size: 14px;
    margin-top: 15px;
    color: #aaaaaa;
  }
}

/* ========== АДАПТИВ ДЛЯ ОЧЕНЬ МАЛЕНЬКИХ ЭКРАНОВ ========== */
@media (max-width: 480px) {
  .footer {
    padding: 30px 15px 25px;
  }
  
  .footer-container {
    gap: 25px;
  }
  
  .footer-menu {
    gap: 10px;
  }
  
  .footer-menu a {
    font-size: 16px;
  }
  
  .footer-contacts {
    font-size: 14px;
    gap: 6px;
  }
  
  .footer-social {
    gap: 8px;
  }
  
  .sicon {
    width: 45px;
    height: 45px;
    background-size: 24px 24px;
  }
  
  .footer-logo {
    width: 120px;
    height: 61px;
  }
  
  .footer-copy {
    font-size: 12px;
    margin-top: 10px;
  }
}

/* ========== ЛАНДШАФТНАЯ ОРИЕНТАЦИЯ ========== */
@media (max-width: 768px) and (orientation: landscape) {
  .footer {
    padding: 30px 20px;
  }
  
  .footer-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    align-items: start;
    column-gap: 30px;
    row-gap: 20px;
  }
  
  .footer-menu {
    grid-column: 1;
    grid-row: 1;
    align-items: flex-start;
  }
  
  .footer-contacts {
    grid-column: 2;
    grid-row: 1;
    text-align: left;
    align-items: flex-start;
  }
  
  .footer-social {
    grid-column: 1;
    grid-row: 2;
    justify-content: flex-start;
  }
  
  .footer-logo {
    grid-column: 2;
    grid-row: 2;
    margin-top: 0;
    align-self: center;
    justify-self: end;
  }
  
  .footer-copy {
    grid-column: 1 / span 2;
    grid-row: 3;
    text-align: center;
    margin-top: 20px;
  }
}

/* ========== BURGER BUTTON ========== */
.burger-btn {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1100;
}

.burger-line {
  width: 30px;
  height: 3px;
  background: white;
  border-radius: 2px;
  transition: 0.3s ease;
}

/* Крестик при открытии */
.burger-btn.open .burger-line:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}
.burger-btn.open .burger-line:nth-child(2) {
  opacity: 0;
}
.burger-btn.open .burger-line:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* ========== MOBILE MENU ========== */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: black;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transition: 0.3s ease;
  z-index: 1000;
}

.mobile-menu.active {
  opacity: 1;
  visibility: visible;
}

.mobile-menu ul {
  list-style: none;
  text-align: center;
  padding: 0;
}

.mobile-menu ul li {
  margin: 20px 0;
}

.mobile-menu ul li a {
  font-size: 24px;
  color: white;
  text-decoration: none;
  font-weight: 500;
}

/* Базовый масштаб для всех разрешений - 80% */
html {
  zoom: 0.9;
}

/* При 90% масштабе браузера возвращаем к 80% виду */
@media screen and (max-width: 1280px) and (max-height: 720px) {
  html {
    zoom: 0.8; /* 0.8 / 0.9 = 0.8889 */
  } 
}

/* Для больших экранов (1920x1080) оставляем 80% */
@media screen and (min-width: 1920px) and (min-height: 1080px) {
  html {
    zoom: 1;
  }
}
