/* ═══════════════════════════════════════════════════
   БЛОК «СИСТЕМА ПРИВИЛЕГИЙ»
   Файл: assets/css/privilege-block.css
   ═══════════════════════════════════════════════════ */

/* ──────────────────────────────────────────
   SECTION
   ────────────────────────────────────────── */
.privilege-section {
  background: rgba(226, 226, 226, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 190px;
  padding: 60px 80px;
  min-height: 260px;
  box-sizing: border-box;
  width: 100%;
  margin-bottom: -7.75rem;
}

/* Без фонового цвета (включается в ACF) */
.privilege-section--no-bg {
  background: transparent;
}

.privilege-text {
  flex: 0 0 auto;
  max-width: 360px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.privilege-title {
  font-size: 52px;
  font-weight: 400;
  letter-spacing: -0.52px;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 1);
  line-height: 1.05;
  margin-bottom: 20px;
}

.privilege-desc {
  font-size: 20px;
  font-weight: 500;
  line-height: 28px;
  color: rgba(0, 0, 0, 1);
  margin-bottom: 28px;
}

.privilege-btn {
  display: inline-block;
  padding: 10px 108px;
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  color: rgba(0, 0, 0, 1);
  background: rgba(226, 226, 226, 1);
  border: 1px solid rgba(0, 0, 0, 1);
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: background 0.2s, color 0.2s;
  font-family: inherit;
  text-decoration: none;
}

.privilege-btn:hover {
  background: rgba(0, 0, 0, 1);
  color: #fff;
}

/* На десктопе мобильная кнопка скрыта */
.privilege-btn--mobile {
  display: none;
}

/* ──────────────────────────────────────────
   LOYALTY CARD  (576 × 335)
   ────────────────────────────────────────── */
.privilege-card {
  flex: 0 0 auto;
  width: 576px;
  height: 335px;
  background: #1a1a1a;
  border-radius: 12px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, .18);
}

/* Фото на всю карточку */
.privilege-card__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Градиент поверх фото */
.privilege-card .card-overlay-grad {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(26, 26, 26, 0.85) 0%, rgba(26, 26, 26, 0.3) 50%, transparent 100%);
  z-index: 1;
  pointer-events: none;
}

.privilege-card--has-photo .card-overlay-grad {
  display: none;
}

/* Правый тёмный блок (без фото) */
.privilege-card .card-overlay-dark {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 55%;
  background: linear-gradient(135deg, #2a2a2a 0%, #111 100%);
  overflow: hidden;
  z-index: 0;
}

.privilege-card--has-photo .card-overlay-dark {
  display: none;
}

.privilege-card .card-overlay-dark::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 60% 40%, rgba(180, 160, 140, .25) 0%, transparent 70%);
}

/* ──────────────────────────────────────────
.privilege-popup-btns-row {
  display: flex;
  gap: 12px;
  flex: 1;
}

.privilege-popup-btn {
  flex: 1;
  padding: 16px;
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  color: rgba(0, 0, 0, 1);
  background: rgba(226, 226, 226, 1);
  border: 1px solid rgba(0, 0, 0, 1);
  cursor: pointer;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: .5px;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s;
  font-family: inherit;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.privilege-popup-btn:hover {
  background: rgba(0, 0, 0, 1);
  color: #fff;
}

/* Mobile actions — скрыты по умолчанию */
.privilege-popup-actions-mobile {
  display: none;
}

/* ──────────────────────────────────────────
   MOB-BR — перенос только на мобиле
   ────────────────────────────────────────── */
br.mob-br {
  display: none;
}

br.desc-br {
  display: block;
}

/* ──────────────────────────────────────────
   MOBILE (≤ 768px) — БЛОК ПРИВИЛЕГИЙ
   ────────────────────────────────────────── */
@media (max-width: 768px) {

  br.mob-br {
    display: block;
  }

  br.desc-br {
    display: none;
  }

  .privilege-section {
    flex-direction: column;
    gap: 0;
    padding: 32px 40px;
    align-items: stretch;
    /* НЕ overflow:hidden — иначе фон обрезается */
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 0rem;
  }

  body.home .privilege-section {
    padding: 32px 40px;
  }

  .privilege-text {
    order: 0;
    margin-bottom: 20px;
    max-width: 100%;
  }

  .privilege-title {
    font-size: 28px;
    line-height: 28px;
    letter-spacing: -0.28px;
    margin-bottom: 12px;
  }

  .privilege-desc {
    font-size: 16px;
    font-weight: 500;
    line-height: 24px;
    margin-bottom: 0;
  }

  /* Скрываем десктопную кнопку */
  .privilege-btn--desktop {
    display: none !important;
  }

  /* Карточка — полная ширина */
  .privilege-card {
    order: 1;
    width: 100%;
    max-width: 100%;
    height: 190px;
    border-radius: 10px;
    margin-bottom: 16px;
    box-sizing: border-box;
  }

  /* Мобильная кнопка под карточкой */
  .privilege-btn--mobile {
    display: block;
    order: 2;
    font-size: 16px;
    font-weight: 500;
    line-height: 24px;
    width: 100%;
    text-align: center;
    padding: 13px 20px;
    box-sizing: border-box;
  }

  /* Старый попап: мобильный layout */
  .privilege-popup-wrapper {
    max-width: 334px;
    width: 100%;
    margin: 0 auto;
    align-items: stretch;
    padding: 0;
  }

  .privilege-popup-close {
    position: absolute;
    top: -42px;
    right: 0;
    margin-bottom: 0;
  }

  .privilege-popup-box {
    padding: 32px 27px;
    min-height: 605px;
    max-height: 90vh;
    overflow-y: auto;
    box-sizing: border-box;
    justify-content: flex-start;
    gap: 0;
  }

  .privilege-popup-title {
    font-size: 16px;
    line-height: 120%;
    letter-spacing: 0;
    margin-bottom: 16px;
    text-align: center;
  }

  .privilege-popup-list li {
    font-size: 14px;
    line-height: 130%;
    margin-bottom: 15px;
  }

  .privilege-popup-actions-desktop {
    display: none;
  }

  .privilege-popup-actions-mobile {
    display: block;
  }

  .privilege-mob-phone-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
  }

  .privilege-mob-phone-link {
    font-size: 20px;
    line-height: 28px;
    color: rgba(0, 0, 0, 1);
    text-decoration: underline;
    text-decoration-color: rgba(126, 126, 126, 1);
    text-decoration-style: solid;
    font-family: inherit;
  }

  .privilege-mob-icons {
    display: flex;
    gap: 25px;
    align-items: center;
  }

  .privilege-mob-btns {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .privilege-mob-btn {
    width: 100%;
    padding: 14px 16px;
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    color: rgba(0, 0, 0, 1);
    background: rgba(226, 226, 226, 1);
    border: 1px solid rgba(0, 0, 0, 1);
    cursor: pointer;
    text-align: center;
    text-transform: uppercase;
    transition: background 0.2s, color 0.2s;
    font-family: inherit;
    text-decoration: none;
    display: block;
    box-sizing: border-box;
  }

  .privilege-mob-btn:hover {
    background: rgba(0, 0, 0, 1);
    color: #fff;
  }
}


/* ══════════════════════════════════════════════════════
   НОВЫЙ POPUP «КАРТА ЛОЯЛЬНОСТИ» (priv-*)
   ══════════════════════════════════════════════════════ */

/* Overlay */
.priv-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .45);
  align-items: flex-start;
  justify-content: center;
  z-index: 10000;
  padding: 20px 60px 20px 20px;
  overflow-y: auto;
  box-sizing: border-box;
}

.priv-overlay.active {
  display: flex;
}

/* Wrapper (кнопка закрытия снаружи) */
.priv-popup-wrapper {
  position: relative;
  margin: auto;
}

/* Кнопка закрытия — справа от попапа */
.priv-close-btn {
  position: absolute;
  top: 0;
  right: -50px;
  width: 20px;
  height: 20px;
  cursor: pointer;
  z-index: 10;
  background: none;
  border: none;
  padding: 0;
}

.priv-close-btn::before,
.priv-close-btn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 2px;
  background: rgba(255, 255, 255, 1);
  border-radius: 1px;
}

.priv-close-btn::before {
  transform: translateY(-50%) rotate(45deg);
}

.priv-close-btn::after {
  transform: translateY(-50%) rotate(-45deg);
}

/* Основной блок попапа */
.priv-popup {
  background: #fff;
  width: 525px;
  box-sizing: border-box;
}

/* Hero-изображение */
.priv-popup__hero {
  width: 525px;
  height: 239px;
  display: block;
  object-fit: cover;
}

/* Body */
.priv-popup__body {
  padding: 28px 36px 32px;
}

/* Заголовок */
.priv-popup__title {
  font-family: 'Montserrat', sans-serif;
  font-size: 30px;
  line-height: 34px;
  letter-spacing: -0.52px;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 1);
  font-weight: 400;
  margin-bottom: 20px;
  text-align: center;
}

/* Подзаголовок */
.priv-popup__subtitle {
  font-family: 'Montserrat', sans-serif;
  font-size: 24px;
  line-height: 130%;
  text-transform: uppercase;
  font-weight: 400;
  color: rgba(0, 0, 0, 1);
  margin-bottom: 16px;
}

/* Список способов */
.priv-popup__list {
  list-style: none;
  margin-bottom: 24px;
  padding: 0;
}

.priv-popup__list li {
  font-family: 'Montserrat', sans-serif;
  font-size: 20px;
  font-weight: 400;
  line-height: 28px;
  color: rgba(0, 0, 0, 1);
  padding-left: 18px;
  position: relative;
  margin-bottom: 8px;
}

.priv-popup__list li::before {
  content: '•';
  position: absolute;
  left: 0;
  top: 0;
}

/* Ссылки Telegram, WhatsApp, Phone */
.priv-link-telegram {
  font-weight: 400;
  font-size: 20px;
  line-height: 28px;
  text-decoration: underline;
  text-decoration-style: solid;
  text-decoration-skip-ink: auto;
  color: rgba(63, 192, 255, 1);
  cursor: pointer;
}

.priv-link-whatsapp {
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  font-size: 20px;
  line-height: 28px;
  text-decoration: underline;
  text-decoration-style: solid;
  text-decoration-skip-ink: auto;
  color: rgba(60, 210, 26, 1);
  cursor: pointer;
}

.priv-link-phone {
  font-weight: 400;
  font-size: 20px;
  line-height: 28px;
  text-decoration: underline;
  text-decoration-style: solid;
  text-decoration-skip-ink: auto;
  color: rgba(63, 192, 255, 1);
  cursor: pointer;
}

/* Форма */
.priv-popup__form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 12px;
}

.priv-popup__input {
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  color: rgba(0, 0, 0, 1);
  border: 1px solid rgba(126, 126, 126, 1);
  background: #fff;
  padding: 10px 14px;
  outline: none;
  transition: border-color .2s;
  width: 100%;
  box-sizing: border-box;
}

.priv-popup__input::placeholder {
  color: rgba(126, 126, 126, 1);
}

.priv-popup__input:focus {
  border-color: rgba(20, 20, 20, 1);
}

/* Кнопка отправки */
.priv-popup__btn {
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
  color: #fff;
  background: rgba(20, 20, 20, 1);
  border: none;
  padding: 13px;
  cursor: pointer;
  width: 100%;
  min-height: 50px;
  transition: opacity .2s;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-sizing: border-box;
}

.priv-popup__btn:hover {
  opacity: .85;
}

/* Политика конфиденциальности */
.priv-popup__privacy {
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 130%;
  color: rgba(126, 126, 126, 1);
  margin-bottom: 24px;
  text-align: center;
}

.priv-popup__privacy span {
  font-weight: 400;
  font-size: 14px;
  line-height: 130%;
  text-decoration: underline;
  text-decoration-style: solid;
  text-decoration-skip-ink: auto;
  cursor: pointer;
  color: rgba(126, 126, 126, 1);
}

/* ── Аккордеон ── */
.priv-popup__accordion {
  border-top: 1px solid rgba(126, 126, 126, .3);
  padding-top: 16px;
}

.priv-accordion__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
  gap: 10px;
  background: none;
  border: none;
  width: 100%;
  padding: 0;
}

.priv-accordion__label {
  font-family: 'Lora', serif;
  font-weight: 400;
  font-size: 20px;
  line-height: 130%;
  text-transform: uppercase;
  text-decoration: underline;
  text-decoration-style: solid;
  text-decoration-skip-ink: auto;
  text-decoration-color: rgba(126, 126, 126, 1);
  color: rgba(0, 0, 0, 1);
  text-align: left;
}

.priv-accordion__arrow {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  transition: transform .3s ease;
}

.priv-accordion__arrow path {
  stroke: rgba(0, 0, 0, 1);
}

.priv-accordion--open .priv-accordion__arrow {
  transform: rotate(180deg);
}

/* Высота управляется JS */
.priv-accordion__content {
  overflow: hidden;
  height: 0;
  transition: height .35s ease;
}

.priv-accordion__inner {
  padding-top: 14px;
  padding-bottom: 4px;
}

/* Список условий аккордеона */
.priv-conditions-list {
  list-style: none;
  padding: 0;
}

.priv-conditions-list li {
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 130%;
  color: rgba(0, 0, 0, 1);
  padding-left: 16px;
  position: relative;
  margin-bottom: 18px;
}

.priv-conditions-list li:last-child {
  margin-bottom: 0;
}

.priv-conditions-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
}

/* ──────────────────────────────────────────
   MOBILE (≤ 600px) — НОВЫЙ POPUP (priv-*)
   ────────────────────────────────────────── */
@media (max-width: 600px) {

  .priv-overlay {
    padding: 10px 10px 20px 10px;
  }

  .priv-popup-wrapper {
    width: 100%;
    max-width: 360px;
  }

  /* На мобиле — крестик внутри попапа */
  .priv-close-btn {
    right: 12px;
    top: 12px;
  }

  .priv-popup {
    width: 100%;
  }

  .priv-popup__hero {
    width: 100%;
    height: 152px;
  }

  .priv-popup__body {
    padding: 18px 20px 24px;
  }

  .priv-popup__title {
    font-size: 24px;
    line-height: 120%;
    letter-spacing: 0;
    margin-bottom: 14px;
  }

  .priv-popup__subtitle {
    font-size: 15px;
    line-height: 130%;
    margin-bottom: 12px;
  }

  .priv-popup__list li {
    font-size: 14px;
    line-height: 140%;
    margin-bottom: 6px;
  }

  .priv-link-telegram,
  .priv-link-whatsapp,
  .priv-link-phone {
    font-size: 14px;
    line-height: 140%;
  }

  .priv-popup__input {
    font-size: 16px;
    line-height: 24px;
  }

  .priv-popup__btn {
    font-size: 16px;
    width: 294px;
    min-height: 50px;
    padding: 13px;
    max-width: 100%;
    margin: 0 auto;
  }

  .priv-popup__privacy,
  .priv-popup__privacy span {
    font-size: 12px;
    line-height: 130%;
  }

  .priv-accordion__label {
    font-size: 14px;
    line-height: 130%;
  }

  .priv-conditions-list li {
    font-size: 12px;
    line-height: 130%;
    margin-bottom: 14px;
  }
}