/* css/style.css */

:root {
  --bg-dark: #121212;
  --bg-light: #f5f5f5;
  --text-primary: #e0e0e0;
  --text-secondary: #b0b0b0;
  --card-bg: rgba(255, 255, 255, 0.05);
  --card-border: 1px solid rgba(255, 255, 255, 0.1);
  --button-bg: rgba(255, 255, 255, 0.1);
  --button-radius: 16px;
  --font-family: 'Inter', 'Montserrat', sans-serif;
}

[data-theme="light"] {
  --bg-dark: var(--bg-light);
  --text-primary: #222222;
  --text-secondary: #555555;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  width: 100%;
  /* ВАЖНО: Заставляем body занять всю ширину экрана */
  font-family: var(--font-family);
  background: var(--bg-dark);
  color: var(--text-primary);
  overflow-x: hidden;
  /* Убрали display: flex, который стягивал сайт в узкую полосу */
}

/* ---------- Landing page – Dynamic Blocks ---------- */
.container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  width: 95%;
  max-width: 1200px;
  margin: 0 auto;
  /* ВАЖНО: Добавлен динамический отступ сверху. Боковые обнулены (0), так как ширину держит width: 95% */
  padding: var(--container-pt-mobi, 5rem) 0 2rem 0;
  background: transparent;
  border: none;
  box-shadow: none;
  overflow: visible;
  box-sizing: border-box;
}

/* Мобильный сброс: сужаем только на маленьких экранах */
@media (max-width: 767px) {
  .container {
    max-width: 400px;
  }

  /* Фикс мобильной версии Banner PRO */
  .banner-pro-block {
    margin: 0 0 1.5rem 0 !important;
    /* Убрали отрицательные отступы по бокам */
    width: 100% !important;
    /* Баннер теперь вписан в ширину контейнера */
    min-height: auto !important;
    background-color: #000 !important;
    border-radius: 24px !important;
    /* Вернули красивые скругления */
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    justify-content: center;
  }

  .banner-pro-block .bg-image-wrapper {
    height: auto !important;
  }

  .banner-pro-block .bg-image-wrapper img {
    height: auto !important;
    object-fit: contain !important;
  }

  .banner-pro-content {
    padding-top: var(--mobi-pt, 110vw) !important;
  }
}

/* ---------- Hero Text PRO Block ---------- */
.hero-text-pro-wrapper {
  position: relative;
  width: 100%;
  border-radius: 24px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 1.5rem;
  box-sizing: border-box;
  margin-bottom: 2rem;
  background-color: #0f0f0f;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.ht-bg-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  opacity: 1;
  /* Затемнение фона для читаемости текста */
}

.ht-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  width: 100%;
  max-width: 800px;
}

.ht-title {
  margin: 0;
  font-weight: 900;
  text-transform: uppercase;
  line-height: 1.1;
  font-size: var(--ht-title-fs, 28px) !important;
}

.ht-desc {
  margin: 0;
  font-weight: 500;
  line-height: 1.5;
  font-size: var(--ht-desc-fs, 15px) !important;
}

@media (min-width: 768px) {
  .hero-text-pro-wrapper {
    /* Задаем минимальную высоту относительно ширины экрана (почти как пропорция картинки) */
    min-height: 45vw !important;
    padding: 4rem 3rem !important;
    border-radius: 0 !important;

    /* Растягиваем на 100% ширины */
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
  }

  .ht-title {
    font-size: calc(var(--ht-title-fs, 28px) * 1.4) !important;
  }

  .ht-desc {
    font-size: calc(var(--ht-desc-fs, 15px) * 1.2) !important;
  }
}

.banner-pro-content h2 {
  font-size: var(--title-fs, 24px) !important;
}

#landing-content>div:first-child:not(.banner-block) {
  margin-top: 2rem;
}

/* Avatar block: теперь это flex-контейнер для img + cta-text */
.avatar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  width: 100%;
}

.avatar img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  object-fit: cover;
}

.avatar-initials {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--button-bg);
  color: var(--text-primary);
  font-size: 2.5rem;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.avatar-name {
  font-weight: 700;
  margin-top: 12px;
  font-size: 1.25rem;
  text-align: center;
  color: var(--text-color, var(--text-primary));
}

.banner-block {
  /* Строго 0 сверху, чтобы ничего не тянуло блок за пределы экрана */
  margin: 0 -2rem 1.5rem -2rem !important;
  padding: 0 !important;
  display: block;
  line-height: 0;
  /* Убирает невидимые отступы от текста под картинкой */
}

.banner-block img {
  width: 100% !important;
  height: auto !important;
  /* Разрешаем картинке занять свою естественную высоту */
  max-height: none !important;
  display: block;
  object-fit: unset !important;
  /* Полностью отключаем встроенную обрезку браузера */
  border-radius: 0 !important;
}

.cta-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--button-bg);
  border: var(--card-border);
  border-radius: var(--button-radius);
  color: var(--text-primary);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
  box-sizing: border-box;
}

.cta-button i {
  color: var(--text-primary);
  font-size: 1.2em;
  flex-shrink: 0;
}

.cta-button:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

/* Text block */
.text-block {
  text-align: center;
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
  width: 100%;
}

/* Divider block */
.divider-block {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  width: 100%;
  margin: 0;
}



/* ---------- Admin panel (glassmorphism) ---------- */
.admin-container {
  display: flex;
  height: 100vh;
  background: var(--bg-dark);
  color: var(--text-primary);
  font-family: var(--font-family);
}

/* Sidebar layout */
.sidebar {
  width: 250px;
  /* fixed width as requested */
  min-width: 250px;
  background: rgba(255, 255, 255, 0.02);
  /* slightly lighter than main bg */
  border-right: var(--card-border);
  padding: 24px;
  /* generous padding */
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sidebar a {
  display: block;
  padding: 12px 16px;
  border-radius: 8px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.sidebar a:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
}

.sidebar a.active {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
}

/* Main content area */
.content {
  flex: 1;
  padding: 24px;
  overflow-y: auto;
  box-sizing: border-box;
}

/* Form layout */
.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  color: #aaa;
  /* light gray */
  font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: var(--text-primary);
  padding: 14px 16px;
  font-family: var(--font-family);
  font-size: 0.95rem;
  box-sizing: border-box;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.3);
}

/* Textarea specific tweaks */
.form-group textarea {
  min-height: 100px;
  resize: vertical;
  /* hide default scrollbar styling for consistency */
  scrollbar-width: thin;
}

.form-group textarea::-webkit-scrollbar {
  width: 8px;
}

.form-group textarea::-webkit-scrollbar-track {
  background: transparent;
}

.form-group textarea::-webkit-scrollbar-thumb {
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
}

/* Save button – mirrors landing button */
.save-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0.75rem 1.5rem;
  background: var(--button-bg);
  border: var(--card-border);
  border-radius: var(--button-radius);
  color: var(--text-primary);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.save-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

/* Toast notifications – already styled, kept for consistency */
.toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--button-bg);
  color: var(--text-primary);
  padding: 0.75rem 1rem;
  border-radius: var(--button-radius);
  opacity: 0;
  transition: opacity 0.3s;
}

.toast.show {
  opacity: 1;
}

/* Banner PRO (Мобильная версия) */
.banner-pro-block {
  position: relative;
  overflow: hidden;
  margin: 0 0 1.5rem 0 !important;
  /* Убрали отрицательные отступы по бокам */
  width: 100% !important;
  /* Занимает ровно ширину контейнера */
  min-height: auto !important;
  background-color: var(--bp-mobi-bg, #000) !important;
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  justify-content: center;
  border-radius: 24px !important;
  /* Возвращаем красивые скругления на телефоне */
}

.banner-pro-block .bg-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.banner-pro-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  /* Центрируем элементы колонки */
  text-align: center;
  /* Текст по центру */
  gap: 16px;
  padding: 20px 20px 40px 20px;
  /* Даем безопасный отступ снизу */
  width: 100%;
  max-width: 600px;
  box-sizing: border-box;
}

/* Фикс слипающегося текста */
.banner-pro-content h2,
.banner-pro-content p,
.banner-pro-content div {
  margin: 0;
  line-height: 1.3;
}

.banner-pro-content h2 {
  line-height: 1.1;
  /* Заголовкам нужен более плотный интервал */
}

/* Базовые стили кнопки (Мобайл) */
.banner-pro-btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 34px !important;
  border-radius: 12px !important;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s, opacity 0.2s;
  /* Значение шрифта приходит из админки */
  font-size: var(--btn-fs, 16px) !important;
  cursor: pointer !important;
}

.banner-pro-btn:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

.banner-pro-btn .bp-btn-icon {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

/* ---------- Lists PRO Block ---------- */
.lists-pro-wrapper {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  width: 100%;
  box-sizing: border-box;
}

.lp-card {
  background: var(--lp-card-bg, #0f0f0f);
  /* Делаем фон карточки темнее для контраста */
  border: 1px solid var(--lp-card-border, rgba(255, 255, 255, 0.15));
  /* Делаем внешнюю рамку более заметной */
  border-radius: 24px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  /* Чуть увеличили отступ между шапкой и списком */
}

.lp-header {
  display: flex;
  align-items: center;
  gap: 16px;
}

.lp-header-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: var(--lp-h-border, 2px solid var(--lp-accent, #E60000));
  box-shadow: var(--lp-h-shadow, 0 0 15px rgba(var(--lp-accent-rgb, 230, 0, 0), 0.4), inset 0 0 8px rgba(var(--lp-accent-rgb, 230, 0, 0), 0.2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--lp-h-icon-color, #ffffff);
  flex-shrink: 0;
  background: var(--lp-h-bg, rgba(var(--lp-accent-rgb, 230, 0, 0), 0.1));
  overflow: hidden;
}

.lp-header-icon-wrap img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  border-radius: 50%;
}

.lp-header-text {
  display: block; /* Убрали flex-column, чтобы текст естественно переносился вместе с номером */
}

.lp-number {
  color: var(--lp-accent, #E60000);
  /* Полностью синхронизируем размер и шрифт с настройками заголовка */
  font-weight: var(--lp-title-fw, 800);
  font-size: var(--lp-title-fs, 16px);
  font-family: var(--lp-title-font, inherit);
  letter-spacing: 1px;
  margin-right: 6px; /* Аккуратный отступ перед текстом заголовка */
}

.lp-title {
  color: var(--lp-title-color, #ffffff);
  font-weight: var(--lp-title-fw, 800);
  font-size: var(--lp-title-fs, 16px);
  font-family: var(--lp-title-font, inherit);
  text-transform: uppercase;
  line-height: 1.3;
}

.lp-items-box {
  background: var(--lp-items-bg, #191919);
  /* Тот самый цвет фона списка из оригинала */
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, 0.08);
  /* Легкая рамка вокруг самого списка */
}

.lp-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  position: relative; /* Добавлено для привязки разделителя */
}

/* Создаем независимую линию-разделитель на 80% ширины по центру */
.lp-item:not(:last-child)::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 5%; /* Отступы 10% по бокам дают ровно 80% ширины */
  width: 90%;
  border-bottom: 1px solid var(--lp-sep-color, rgba(255, 255, 255, 0.06));
}

.lp-item-icon {
  background: transparent;
  /* Убрали сплошную заливку */
  border: 1px solid var(--lp-icon-border, rgba(255, 255, 255, 0.2));
  /* Добавили элегантную рамку, как в оригинале */
  border-radius: 10px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--lp-icon-color, #ffffff);
  font-size: 20px;
  flex-shrink: 0;
}

.lp-item-text {
  color: var(--lp-text-color, #e0e0e0);
  font-weight: var(--lp-item-fw, 500);
  font-size: var(--lp-item-fs, 15px);
  font-family: var(--lp-item-font, inherit);
  line-height: 1.4;
}

/* ---------- Split PRO Block (Mobile First) ---------- */
.split-pro-wrapper {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  width: 100%;
  box-sizing: border-box;
  padding: 1rem 0;
}

.sp-content-col {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  text-align: center;
}

.sp-title {
  margin: 0;
  font-weight: 900;
  text-transform: uppercase;
  line-height: 1.1;
  /* Smart scaling for mobile */
  font-size: var(--sp-title-fs, 24px) !important;
}

.sp-desc {
  margin: 0;
  font-weight: 500;
  line-height: 1.5;
  font-size: var(--sp-desc-fs, 16px) !important;
}

.sp-image-col {
  width: 100%;
  border-radius: 24px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sp-image-col img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

/* ---------- Desktop Responsive Layout ---------- */
@media (min-width: 768px) {
  .container {
    max-width: 1200px !important;
    width: 95% !important;
    padding: var(--container-pt-pc, 6rem) 0 4rem 0 !important;
    /* На ПК делаем отступ от потолка еще больше для журнального вида */
    overflow: visible !important;
  }

  .banner-block {
    margin: 0 0 2rem 0 !important;
    /* Чистим старые баннеры от вылетов */
  }

  .banner-pro-block {
    width: 100% !important;
    max-width: none !important;
    margin: 0 0 3rem 0 !important;
    border-radius: 32px !important;
    overflow: hidden !important;
    /* МЕНЯЕМ ЛОГИКУ: Блок подстраивается под картинку */
    position: relative !important;
    display: block !important;
    min-height: auto !important;
    /* Убираем жесткую высоту */
  }

  .banner-pro-block .bg-image-wrapper {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    height: auto !important;
  }

  .banner-pro-block .bg-image-wrapper img {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    /* Картинка диктует высоту */
    object-fit: contain !important;
    /* Отображаем 100% пикселей */
    object-position: center !important;
  }

  .banner-pro-content {
    /* Текст парит поверх картинки */
    position: absolute !important;
    top: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100% !important;
    max-width: 480px !important;
    margin-left: 4rem !important;
    /* Двигает блок вверх-вниз */
    margin-top: var(--pc-pt, 0px) !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: center !important;
    /* Идеальное центрирование текста по вертикали */
    text-align: left !important;
    z-index: 2 !important;
  }

  .banner-pro-content h2 {
    font-size: calc(var(--title-fs, 24px) * 1.4) !important;
    /* Увеличиваем на 40% для ПК */
  }

  /* Увеличенная версия кнопки для ПК */
  .banner-pro-btn {
    padding: 24px 48px !important;
    /* Делаем кнопку массивнее */
    font-size: calc(var(--btn-fs, 16px) * 1.35) !important;
    /* Автоматически увеличиваем шрифт на 35% */
    border-radius: 16px !important;
    /* Чуть больше скругление для крупной кнопки */
    gap: 14px !important;
    /* Чуть больше отступ до иконки */
  }

  .banner-pro-btn .bp-btn-icon {
    width: 32px !important;
    /* Увеличиваем иконку пропорционально */
    height: 32px !important;
  }

  #landing-content>div:first-child:not(.banner-block):not(.banner-pro-block) {
    margin-top: 4rem !important;
  }

  .lists-pro-wrapper {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
  }

  /* ---------- Split PRO Block (Desktop) ---------- */
  .split-pro-wrapper {
    flex-direction: row;
    /* Default layout: text left, image right */
    align-items: center;
    gap: 4rem;
    /* Wide gap for premium look */
  }

  .split-pro-wrapper.sp-layout-left {
    flex-direction: row-reverse;
    /* Image left, text right */
  }

  .sp-content-col {
    /* Take 50% width */
    flex: 1;
    /* Возвращаем выравнивание по левому краю для ПК */
    text-align: left;
  }

  .sp-image-col {
    flex: 1;
    /* Take 50% width */
  }

  /* Smart scaling for desktop typography */
  .sp-title {
    font-size: calc(var(--sp-title-fs, 24px) * 1.4) !important;
  }

  .sp-desc {
    font-size: calc(var(--sp-desc-fs, 16px) * 1.15) !important;
  }

  /* ---------- Tablet Layout (iPad) ---------- */
  @media (min-width: 768px) and (max-width: 1024px) {

    /* 1. Искусственно увеличиваем высоту фрейма, чтобы тексту было чем "дышать" */
    .banner-pro-block {
      min-height: 480px !important;
    }

    /* 2. Заставляем картинку заполнить новую высоту, но смещаем фокус вправо, чтобы не обрезать лицо */
    .banner-pro-block .bg-image-wrapper img {
      height: 100% !important;
      object-fit: cover !important;
      object-position: 90% center !important;
    }

    /* 3. Магия: пропорционально сжимаем ВЕСЬ текстовый блок на 15% (шрифты, отступы, кнопку) */
    .banner-pro-content {
      max-width: 55% !important;
      margin-left: 2.5rem !important;
      margin-top: 0 !important;
      /* Сбрасываем ручной ПК-отступ, чтобы он не мешал центрированию */
      transform: scale(0.85) !important;
      transform-origin: left center !important;
    }
  }

  .offer-pro-wrapper {
    gap: 3rem;
    padding: 4rem 3rem !important;
  }

}

/* ---------- Offer PRO Block ---------- */
.offer-pro-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  width: 100%;
  box-sizing: border-box;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  border-radius: 32px !important;
  background-color: var(--op-block-bg, transparent) !important;
  background-image: var(--op-bg-pc, none), var(--op-bg-gradient, radial-gradient(circle at top left, rgba(255, 255, 255, 0.08) 0%, rgba(0, 0, 0, 0) 70%)) !important;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  padding: 3rem 0.5rem !important;
  margin-bottom: 2rem !important;
}

.op-main-title {
  text-align: center !important;
  width: 100%;
  font-weight: 900;
  text-transform: uppercase;
  margin: 0;
  line-height: 1.15;
  font-size: var(--op-title-fs, 28px) !important;
}

.op-split-container {
  display: flex;
  flex-direction: column;
  gap: 0 !important;
  width: 100%;
  align-items: center;
}

.op-image-col {
  width: 100%;
  display: flex;
  justify-content: flex-start !important;
  padding-left: 20px !important;
  padding-right: 0 !important;
  margin-bottom: 15px !important;
  position: relative;
  z-index: 1;
}

.op-image-col img {
  width: 100%;
  max-width: 220px !important;
  height: auto;
  object-fit: contain;
  background-color: transparent !important;
  mix-blend-mode: multiply;
}

.op-card-col {
  border: var(--op-card-border, 1px solid rgba(255, 255, 255, 0.15));
  background-color: var(--op-card-bg, #0f0f0f);
  border-radius: 24px;
  padding: 24px 16px;
  position: relative;
  width: 100%;
  box-sizing: border-box;
  z-index: 2;
  margin-top: -60px !important;
}

.op-card-header {
  font-size: var(--op-card-h-size, 16px);
  font-weight: var(--op-card-h-weight, 900);
  font-family: var(--op-card-h-font, inherit);
  text-transform: uppercase;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 16px;
  padding-right: 60px;
}

.op-card-badge {
  position: absolute;
  top: -130px !important;
  right: 45px !important;
  width: 85px !important;
  height: 85px !important;
  border-radius: 12px;
  z-index: 3;
  transform: rotate(12deg);
  border: var(--op-badge-border, none);
  box-shadow: var(--op-badge-shadow, none);
  background: var(--op-badge-bg, transparent);
  object-fit: contain;
}

.op-card-items {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.op-item-icon-col {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  flex-shrink: 0;
  background: var(--op-bullet-bg, transparent);
  border: var(--op-bullet-border, none);
  box-shadow: var(--op-bullet-shadow, none);
}

.op-card-item {
  display: flex;
  align-items: center;
  gap: 16px;
  border-bottom: var(--op-item-sep, 1px solid rgba(255, 255, 255, 0.1));
  padding-bottom: 16px;
}

.op-card-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.op-card-item-text {
  font-size: var(--op-item-fs, 14px);
  font-family: var(--op-item-font, inherit);
  font-weight: var(--op-item-fw, 500);
  line-height: 1.4;
  opacity: 0.9;
}

.op-cta-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 100%;
  margin-top: 1rem;
}

.op-cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  padding: 22px 32px !important;
  border-radius: 16px !important;
  box-sizing: border-box !important;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s;
  font-size: var(--op-btn-fs, 16px);
}

.op-cta-btn:hover {
  transform: translateY(-2px);
}

.op-footer {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  text-align: center;
  font-weight: 500;
  opacity: 0.7;
  margin-top: 1rem !important;
}

.op-sep {
  margin: 0 8px;
  /* Небольшой отступ на телефонах */
  color: rgba(255, 255, 255, 0.4);
  /* Бонус: можно сделать палочку чуть тусклее, как в премиум-дизайне */
}

@media (min-width: 768px) {
  .offer-pro-wrapper {
    gap: 3rem;
    padding: 4rem 3rem !important;
  }

  .op-main-title {
    text-align: left !important;
    font-size: calc(var(--op-title-fs, 28px) * 1.3) !important;
    max-width: 900px;
    transform: translateX(-60px) !important;
    /* Наш фикс для премиального сдвига */
  }

  .op-split-container {
    flex-direction: row;
    align-items: center;
    gap: 3rem !important;
    margin-top: 1rem;
  }

  .op-split-container.op-layout-right {
    flex-direction: row-reverse;
  }

  .op-image-col {
    flex: 0.8 !important;
    /* УМЕНЬШАЕМ долю картинки (было 1) */
    justify-content: flex-end !important;
    margin-top: 0;
    margin-bottom: 0 !important;
    padding: 0 !important;
  }

  .op-image-col img {
    max-width: 450px !important;
    mix-blend-mode: multiply;
    background-color: transparent !important;
  }

  .op-card-col {
    flex: 1.6;
    padding: 32px;
    margin-top: 0 !important;
  }

  .op-card-badge {
    top: -60px !important;
    right: 60px !important;
    width: var(--op-badge-size-pc, 100px) !important;
    height: var(--op-badge-size-pc, 100px) !important;
  }

  .op-cta-btn {
    padding: 24px 48px !important;
    font-size: calc(var(--op-btn-fs, 16px) * 1.35) !important;
    max-width: none !important;
    width: fit-content !important;

    /* Твой параметр для контроля ширины кнопки на ПК */
    min-width: 450px !important;
    justify-content: center !important;
    /* Удерживает текст и иконку строго по центру */

    gap: 14px !important;
  }

  .op-cta-btn img,
  .op-cta-btn i {
    width: 32px !important;
    height: 32px !important;
    font-size: 32px !important;
  }

  .op-cta-section {
    margin-top: 1rem !important;
  }

  .op-footer {
    margin-top: 1rem !important;
    /* Оставляем только отступ сверху */
  }

  .op-sep {
    margin: 0 5px !important;
    /* Широкий, журнальный отступ только для ПК */
  }
}

.op-item-icon-col img {
  width: 20px;
  height: 20px;
}

/* Окрашивание SVG буллитов */
.op-item-icon-col.recolor-svg {
  background-color: var(--op-bullet-bg, transparent) !important;
  -webkit-mask-image: none !important;
  mask-image: none !important;
}

.op-item-icon-col.recolor-svg img {
  display: none !important;
}

.op-item-icon-col.recolor-svg::before {
  content: '';
  display: block;
  width: 20px;
  height: 20px;
  background-color: var(--op-bullet-color, #E60000);
  -webkit-mask-image: var(--op-icon-url);
  mask-image: var(--op-icon-url);
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
}

/* Divider PRO */
.divider-pro-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  box-sizing: border-box;
  padding: var(--div-pady) 0;
}
.divider-pro-wrapper.div-stretch {
  margin-left: -20px;
  margin-right: -20px;
  width: calc(100% + 40px);
}
.divider-pro-wrapper.div-blur {
  -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
  mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}
.div-line-solid, .div-line-side {
  background-color: var(--div-color-line);
  height: var(--div-thick);
  flex: 1;
}
.div-center-content {
  color: var(--div-color-accent);
  font-size: var(--div-size);
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.div-pattern.wave, .div-pattern.zigzag {
  height: calc(var(--div-thick) * 10);
  width: 100%;
  background-color: var(--div-color-line);
  -webkit-mask-repeat: repeat-x;
  mask-repeat: repeat-x;
  -webkit-mask-size: auto 100%;
  mask-size: auto 100%;
}
.div-pattern.wave {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 10'%3E%3Cpath d='M0 5 Q 5 0, 10 5 T 20 5' fill='none' stroke='black' stroke-width='2'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 10'%3E%3Cpath d='M0 5 Q 5 0, 10 5 T 20 5' fill='none' stroke='black' stroke-width='2'/%3E%3C/svg%3E");
}
.div-pattern.zigzag {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 10'%3E%3Cpolyline points='0,5 5,0 15,10 20,5' fill='none' stroke='black' stroke-width='2'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 10'%3E%3Cpolyline points='0,5 5,0 15,10 20,5' fill='none' stroke='black' stroke-width='2'/%3E%3C/svg%3E");
}

/* ---------- Socials Block ---------- */
.socials-block-wrapper {
  width: 100%;
  box-sizing: border-box;
  margin: 0.5rem 0;
}

/* Layouts */
.socials-block-wrapper.socials-layout-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.socials-block-wrapper.socials-layout-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.socials-block-wrapper.socials-layout-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.socials-block-wrapper.socials-layout-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

/* Common Item Link */
.social-link-item {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: var(--button-radius, 14px);
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.2s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, filter 0.2s ease;
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
  user-select: none;
  cursor: pointer;
}

/* Grid item sizing */
.socials-layout-grid-4 .social-link-item,
.socials-layout-grid-3 .social-link-item,
.socials-layout-grid-2 .social-link-item {
  padding: 14px 10px;
  min-height: 52px;
}

/* List item sizing */
.socials-layout-list .social-link-item {
  padding: 14px 20px;
  min-height: 52px;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

/* Icon container */
.social-link-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.social-link-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.social-link-title {
  font-size: 15px;
  font-weight: 600;
  font-family: var(--font-family);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Style: Filled */
.socials-style-filled .social-link-item {
  background: var(--social-brand-color, #4f46e5);
  color: #ffffff;
  border: 1px solid transparent;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.socials-style-filled .social-link-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25), 0 0 16px var(--social-brand-color, #4f46e5);
  filter: brightness(1.1);
}

.socials-style-filled .social-link-item:hover .social-link-icon {
  transform: scale(1.1);
}

/* Special contrast handling for bright yellow / white in filled mode */
.socials-style-filled .social-link-item[data-network="snapchat"],
.socials-style-filled .social-link-item[data-network="youdo"],
.socials-style-filled .social-link-item[data-network="yandexmusic"],
.socials-style-filled .social-link-item[data-network="yandexmarket"],
.socials-style-filled .social-link-item[data-network="imdb"] {
  color: #000000;
}

/* Style: Outline */
.socials-style-outline .social-link-item {
  background-color: rgba(255, 255, 255, 0.04);
  color: var(--social-brand-color, #4f46e5);
  border: 1.5px solid var(--social-brand-color, #4f46e5);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .socials-style-outline .social-link-item {
  background-color: rgba(0, 0, 0, 0.02);
}

.socials-style-outline .social-link-item[data-network="youdo"] {
  color: #111827;
  border-color: rgba(255, 255, 255, 0.4);
}

[data-theme="light"] .socials-style-outline .social-link-item[data-network="youdo"] {
  color: #111827;
  border-color: #d1d5db;
}

.socials-style-outline .social-link-item:hover {
  background: var(--social-brand-color, #4f46e5);
  color: #ffffff;
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2), 0 0 16px var(--social-brand-color, #4f46e5);
}

.socials-style-outline .social-link-item:hover .social-link-icon {
  transform: scale(1.1);
}

.socials-style-outline .social-link-item[data-network="snapchat"]:hover,
.socials-style-outline .social-link-item[data-network="youdo"]:hover,
.socials-style-outline .social-link-item[data-network="yandexmusic"]:hover,
.socials-style-outline .social-link-item[data-network="yandexmarket"]:hover,
.socials-style-outline .social-link-item[data-network="imdb"]:hover {
  color: #000000;
}

/* Responsive */
@media (max-width: 480px) {
  .socials-block-wrapper.socials-layout-grid-4 {
    gap: 8px;
  }

  .socials-layout-grid-4 .social-link-item {
    padding: 12px 6px;
    min-height: 48px;
  }

  .socials-layout-grid-4 .social-link-icon {
    width: 22px;
    height: 22px;
  }
}

/* ============================================================
   Icon & Text Block (icon_text)
   ============================================================ */
.icon-text-wrapper {
  display: grid;
  width: 100%;
  box-sizing: border-box;
  gap: var(--it-gap, 16px);
  margin: 0.5rem 0;
}

/* Mobile grid columns (default) */
.icon-text-wrapper.it-cols-mobi-1 {
  grid-template-columns: 1fr;
}

.icon-text-wrapper.it-cols-mobi-2 {
  grid-template-columns: repeat(2, 1fr);
}

/* Desktop grid columns */
@media (min-width: 768px) {
  .icon-text-wrapper.it-cols-pc-1 {
    grid-template-columns: 1fr;
  }
  .icon-text-wrapper.it-cols-pc-2 {
    grid-template-columns: repeat(2, 1fr);
  }
  .icon-text-wrapper.it-cols-pc-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Card base */
.icon-text-card {
  background: var(--it-card-bg, rgba(255, 255, 255, 0.05));
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--button-radius, 16px);
  padding: 20px;
  display: flex;
  box-sizing: border-box;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  gap: 16px;
}

[data-theme="light"] .icon-text-card {
  border-color: rgba(0, 0, 0, 0.08);
}

.icon-text-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
  border-color: rgba(255, 255, 255, 0.2);
}

/* Inside-card layout (Flexbox) */
.icon-text-wrapper.it-layout-left .icon-text-card {
  flex-direction: row;
  align-items: flex-start;
  text-align: left;
}

.icon-text-wrapper.it-layout-right .icon-text-card {
  flex-direction: row-reverse;
  align-items: flex-start;
  text-align: right;
}

.icon-text-wrapper.it-layout-top .icon-text-card {
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

/* Center text modifier */
.icon-text-wrapper.it-center-text .icon-text-card {
  text-align: center;
}

.icon-text-wrapper.it-center-text.it-layout-top .icon-text-card {
  align-items: center;
}

.icon-text-wrapper.it-center-text .icon-text-body {
  align-items: center;
  text-align: center;
}

/* Icon wrapper */
.icon-text-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: calc(var(--it-icon-size, 28px) + 20px);
  height: calc(var(--it-icon-size, 28px) + 20px);
  min-width: calc(var(--it-icon-size, 28px) + 20px);
  min-height: calc(var(--it-icon-size, 28px) + 20px);
  font-size: var(--it-icon-size, 28px);
  flex-shrink: 0;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.icon-text-icon-wrap i {
  font-size: var(--it-icon-size, 28px);
  line-height: 1;
}

.icon-text-icon-wrap img,
.icon-text-icon-wrap svg {
  width: var(--it-icon-size, 28px);
  height: var(--it-icon-size, 28px);
  object-fit: contain;
}

/* Icon Shapes */
.icon-text-wrapper.it-shape-square .icon-text-icon-wrap {
  border-radius: 4px;
}

.icon-text-wrapper.it-shape-rounded .icon-text-icon-wrap {
  border-radius: 12px;
}

.icon-text-wrapper.it-shape-circle .icon-text-icon-wrap {
  border-radius: 50%;
}

/* Icon Styles */
/* 1) Filled: Solid color background with white/contrasting icon */
.icon-text-wrapper.it-style-filled .icon-text-icon-wrap {
  background-color: var(--it-icon-color, #4f46e5);
  color: #ffffff;
  border: 1px solid transparent;
  box-shadow: 0 4px 14px rgba(var(--it-icon-color-rgb, 79, 70, 229), 0.3);
}

/* 2) Outline: Border with transparent background */
.icon-text-wrapper.it-style-outline .icon-text-icon-wrap {
  background-color: transparent;
  color: var(--it-icon-color, #4f46e5);
  border: 2px solid var(--it-icon-color, #4f46e5);
}

/* 3) Circle (В круге): Translucent bg + border */
.icon-text-wrapper.it-style-circle .icon-text-icon-wrap {
  background-color: rgba(var(--it-icon-color-rgb, 79, 70, 229), 0.15);
  color: var(--it-icon-color, #4f46e5);
  border: 1.5px solid rgba(var(--it-icon-color-rgb, 79, 70, 229), 0.35);
}

/* Text Body */
.icon-text-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  min-width: 0;
}

.icon-text-title {
  margin: 0;
  font-family: var(--it-title-font, inherit);
  font-size: var(--it-title-fs, 18px);
  font-weight: var(--it-title-fw, 700);
  color: var(--it-title-color, #ffffff);
  line-height: 1.3;
}

.icon-text-desc {
  margin: 0;
  font-family: var(--it-text-font, inherit);
  font-size: var(--it-text-fs, 15px);
  color: var(--it-text-color, #cccccc);
  line-height: 1.5;
  word-break: break-word;
}

@media (max-width: 480px) {
  .icon-text-wrapper.it-cols-mobi-2 .icon-text-card {
    padding: 14px 10px;
    gap: 10px;
  }
  .icon-text-wrapper.it-cols-mobi-2 .icon-text-icon-wrap {
    width: calc(var(--it-icon-size, 24px) + 12px);
    height: calc(var(--it-icon-size, 24px) + 12px);
    min-width: calc(var(--it-icon-size, 24px) + 12px);
    min-height: calc(var(--it-icon-size, 24px) + 12px);
  }
}

/* ==========================================================================
   Q&A (Questions & Answers / Accordion) Block
   ========================================================================== */

.qa-block-wrapper {
  width: 100%;
  box-sizing: border-box;
  background-color: var(--qa-bg, transparent);
  padding-top: var(--qa-pad-top, 20px);
  padding-bottom: var(--qa-pad-bottom, 20px);
}

.qa-item {
  width: 100%;
  box-sizing: border-box;
  background-color: transparent;
  border-bottom: 1px solid var(--qa-divider-color, #e5e7eb);
  transition: background-color 0.2s ease;
}

.qa-item.active {
  background-color: var(--qa-active-bg, #f9fafb);
}

/* Dividers configuration */
.qa-block-wrapper.qa-no-dividers .qa-item {
  border-bottom: none;
}

.qa-block-wrapper.qa-hide-outer .qa-item:first-child {
  border-top: none;
}

.qa-block-wrapper.qa-hide-outer .qa-item:last-child {
  border-bottom: none;
}

/* Header Trigger */
.qa-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: none;
  border: none;
  padding: 16px 12px;
  cursor: pointer;
  box-sizing: border-box;
  text-align: inherit;
  outline: none;
  gap: 16px;
  transition: color 0.2s ease;
}

/* Question text */
.qa-question {
  flex: 1;
  font-family: var(--qa-q-font, 'Inter', sans-serif);
  font-weight: var(--qa-q-weight, 600);
  font-size: var(--qa-q-size, 16px);
  color: var(--qa-q-color, #111827);
  line-height: 1.4;
  word-break: break-word;
}

/* Alignment modifiers */
.qa-block-wrapper.qa-align-left .qa-question,
.qa-block-wrapper.qa-align-left .qa-content-inner {
  text-align: left;
}

.qa-block-wrapper.qa-align-center .qa-question,
.qa-block-wrapper.qa-align-center .qa-content-inner {
  text-align: center;
}

.qa-block-wrapper.qa-align-right .qa-question,
.qa-block-wrapper.qa-align-right .qa-content-inner {
  text-align: right;
}

/* Indicator Base */
.qa-indicator {
  position: relative;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--qa-q-color, #111827);
}

/* 1) Indicator: Plus / Minus */
.qa-block-wrapper.qa-indicator-plus .qa-indicator::before,
.qa-block-wrapper.qa-indicator-plus .qa-indicator::after {
  content: '';
  position: absolute;
  background-color: var(--qa-q-color, currentColor);
  border-radius: 1px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.qa-block-wrapper.qa-indicator-plus .qa-indicator::before {
  width: 14px;
  height: 2px;
}

.qa-block-wrapper.qa-indicator-plus .qa-indicator::after {
  width: 2px;
  height: 14px;
}

.qa-block-wrapper.qa-indicator-plus .qa-item.active .qa-indicator::after {
  transform: rotate(90deg);
  opacity: 0;
}

/* 2) Indicator: Arrow / Chevron */
.qa-block-wrapper.qa-indicator-arrow .qa-indicator::after {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--qa-q-color, currentColor);
  border-bottom: 2px solid var(--qa-q-color, currentColor);
  transform: rotate(45deg);
  transition: transform 0.25s ease;
  margin-top: -3px;
  box-sizing: border-box;
}

.qa-block-wrapper.qa-indicator-arrow .qa-item.active .qa-indicator::after {
  transform: rotate(-135deg);
  margin-top: 3px;
}

/* Accordion Content Container */
.qa-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-sizing: border-box;
}

/* Inner answer content */
.qa-content-inner {
  padding: 0 12px 16px 12px;
  font-family: var(--qa-a-font, 'Inter', sans-serif);
  font-weight: var(--qa-a-weight, 400);
  font-size: var(--qa-a-size, 14px);
  color: var(--qa-a-color, #4b5563);
  line-height: 1.6;
  word-break: break-word;
}

/* ---------- Video Block ---------- */
.video-block-wrapper {
  width: 100%;
  box-sizing: border-box;
  padding-top: var(--video-pad-top, 20px);
  padding-bottom: var(--video-pad-bottom, 20px);
}

.video-container {
  width: 100%;
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background: #000;
  aspect-ratio: 16 / 9;
}

.video-container.video-vertical {
  aspect-ratio: 9 / 16;
}

.video-container iframe,
.video-container video {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
  object-fit: cover;
}

.video-placeholder {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: rgba(255, 255, 255, 0.05);
  border: 1px dashed rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #888888;
  font-size: 14px;
  box-sizing: border-box;
}

.video-placeholder.video-vertical {
  aspect-ratio: 9 / 16;
}
.pro-block-placeholder {
  margin: 15px 0;
  padding: 20px;
  background: rgba(255,255,255,0.05);
  border: 1px dashed rgba(255,255,255,0.2);
  border-radius: var(--button-radius, 12px);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}
.pro-placeholder-content {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #888;
  font-family: var(--font-main, sans-serif);
  font-size: 14px;
}


/* ---------- Map Block ---------- */
.map-block-wrapper {
  position: relative;
  width: 100%;
  border-radius: 24px;
  overflow: hidden;
  margin-bottom: 1.5rem;
  background: var(--card-bg, #1a1a1a);
  border: var(--card-border, 1px solid rgba(255, 255, 255, 0.1));
}

.map-container {
  width: 100%;
  min-height: 250px;
  height: 300px;
  background: #111;
  z-index: 1;
}

.map-overlay-btn-container {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 400;
}

.map-overlay-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: var(--button-radius, 16px);
  text-decoration: none;
  font-size: var(--btn-fs-mobi, 14px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s, opacity 0.2s;
  white-space: nowrap;
}

.map-overlay-btn:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

@media (min-width: 768px) {
  .map-container {
    min-height: 300px;
    height: 350px;
  }
  .map-overlay-btn {
    font-size: var(--btn-fs-pc, 16px);
    padding: 14px 32px;
  }
}

/* ==========================================================================
   Carousel PRO Block (Swiper.js)
   ========================================================================== */
.carousel-block-wrapper {
  position: relative;
  width: 100%;
  box-sizing: border-box;
}

.carousel-swiper {
  position: relative;
  width: 100%;
  border-radius: var(--button-radius, 16px);
  overflow: hidden;
  background: var(--carousel-bg, transparent);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.carousel-block-wrapper.no-border .carousel-swiper,
.carousel-block-wrapper.no-border .carousel-slide-inner,
.carousel-block-wrapper.no-border .carousel-slide-link {
  border-radius: 0 !important;
  box-shadow: none !important;
}

.carousel-slide {
  position: relative;
  display: flex;
  box-sizing: border-box;
  height: auto;
}

.carousel-slide-inner,
.carousel-slide-link {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: var(--carousel-aspect-ratio, 1 / 1);
  overflow: hidden;
  border-radius: inherit;
  text-decoration: none;
  color: inherit;
  background: #18181b;
}

.carousel-slide-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
  transition: transform 0.4s ease;
}

.carousel-slide-link:hover .carousel-slide-img {
  transform: scale(1.02);
}

.carousel-slide-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #1f2937;
  color: #9ca3af;
  font-size: 36px;
  gap: 8px;
}

.carousel-slide-placeholder span {
  font-size: 13px;
  font-weight: 500;
  color: #9ca3af;
}

/* Slide Overlay (Title & Description) */
.carousel-slide-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px 20px;
  background: var(--carousel-overlay-bg, linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.4) 70%, transparent 100%));
  z-index: 2;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  pointer-events: none;
}

.carousel-slide-overlay-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.carousel-slide-title {
  color: var(--carousel-title-color, #ffffff);
  font-family: var(--carousel-title-font, inherit);
  font-weight: var(--carousel-title-weight, 700);
  font-size: var(--carousel-title-size, var(--carousel-title-size-mobi, 18px));
  line-height: 1.3;
  margin: 0;
  word-break: break-word;
}

.carousel-slide-desc {
  color: var(--carousel-desc-color, #cccccc);
  font-family: var(--carousel-desc-font, inherit);
  font-weight: var(--carousel-desc-weight, 400);
  font-size: var(--carousel-desc-size, var(--carousel-desc-size-mobi, 13px));
  line-height: 1.4;
  margin-top: 6px;
  word-break: break-word;
}

.carousel-slide-link-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  color: var(--carousel-link-color, #4f46e5);
  transition: transform 0.2s ease, background 0.2s ease;
}

.carousel-slide-link:hover .carousel-slide-link-icon {
  transform: translate(2px, -2px);
  background: rgba(255, 255, 255, 0.25);
}

.carousel-slide-link-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: var(--carousel-link-color, #4f46e5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  z-index: 3;
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: transform 0.2s ease;
}

.carousel-slide-link:hover .carousel-slide-link-badge {
  transform: scale(1.1);
}

/* Swiper Navigation Arrows */
.carousel-block-wrapper .carousel-arrow {
  width: 40px;
  height: 40px;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  color: var(--carousel-nav-color, #ffffff);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  transition: all 0.2s ease;
  z-index: 10;
  cursor: pointer;
}

.carousel-block-wrapper .carousel-arrow:hover {
  background: rgba(0, 0, 0, 0.7);
  transform: scale(1.08);
}

.carousel-block-wrapper .carousel-arrow.swiper-button-disabled {
  opacity: 0.2 !important;
  cursor: not-allowed;
  pointer-events: none;
}

.carousel-block-wrapper .carousel-arrow::after {
  display: none !important;
}

/* Swiper Pagination */
.carousel-block-wrapper .carousel-pagination-inside {
  position: absolute;
  bottom: 12px;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  justify-content: center;
  align-items: center;
}

.carousel-block-wrapper .carousel-pagination-outside {
  position: static;
  margin-top: 14px;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 5;
}

/* Dots style */
.carousel-block-wrapper .carousel-nav-dots .swiper-pagination-bullet {
  background: var(--carousel-nav-color, #ffffff);
  opacity: 0.4;
  width: 8px;
  height: 8px;
  margin: 0 4px !important;
  transition: all 0.25s ease;
  border-radius: 50%;
}

.carousel-block-wrapper .carousel-nav-dots .swiper-pagination-bullet-active {
  opacity: 1;
  transform: scale(1.25);
  background: var(--carousel-nav-color, #ffffff);
}

/* Dashes style */
.carousel-block-wrapper .carousel-nav-dashes .swiper-pagination-bullet {
  background: var(--carousel-nav-color, #ffffff);
  opacity: 0.35;
  width: 22px;
  height: 4px;
  border-radius: 2px;
  margin: 0 3px !important;
  transition: all 0.25s ease;
}

.carousel-block-wrapper .carousel-nav-dashes .swiper-pagination-bullet-active {
  opacity: 1;
  width: 32px;
  background: var(--carousel-nav-color, #ffffff);
}

/* Desktop Typography & Layout Scaling */
@media (min-width: 768px) {
  .carousel-slide-title {
    font-size: var(--carousel-title-size-pc, 20px);
  }
  .carousel-slide-desc {
    font-size: var(--carousel-desc-size-pc, 14px);
  }
  .carousel-slide-overlay {
    padding: 20px 24px;
  }
}
