/**
 * Страница «Наши акции» (/akcii) - премиальные карточки равной высоты.
 */

:root {
  --ln-promo-page-max: 1080px;
  --ln-promo-page-gap: clamp(20px, 2.8vw, 28px);
  --ln-promo-card-radius: 24px;
  --ln-promo-card-pad: 10px;
  --ln-promo-media-ratio: 16 / 11;
  --ln-promo-panel-bg: #fffcf4;
  --ln-promo-ink: #121212;
  --ln-promo-muted: rgba(18, 18, 18, 0.58);
  --ln-promo-code: #8f7200;
  --ln-promo-yellow: #ffe566;
  --ln-promo-yellow-deep: #ffd84a;
}

.licknose-promotions-page {
  background:
    radial-gradient(ellipse 70% 42% at 50% 0%, rgba(255, 229, 102, 0.22), transparent 60%),
    linear-gradient(180deg, #fffbeb 0%, #ffffff 180px);
  padding: clamp(28px, 4.5vw, 56px) clamp(14px, 2.2vw, 28px) clamp(48px, 6vw, 84px);
}

.licknose-promotions-page__inner {
  max-width: var(--ln-promo-page-max);
  margin: 0 auto;
}

.licknose-promotions-page__header {
  text-align: center;
  margin: 0 auto clamp(28px, 4vw, 44px);
  max-width: 540px;
}

.licknose-promotions-page__title {
  margin: 0 0 12px;
  font-size: clamp(1.85rem, 3.5vw, 2.45rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  color: var(--ln-promo-ink);
  line-height: 1.05;
}

.licknose-promotions-page__intro {
  margin: 0;
  font-size: clamp(0.95rem, 1.4vw, 1.05rem);
  line-height: 1.55;
  color: var(--ln-promo-muted);
  font-weight: 500;
}

.licknose-promotions-page__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--ln-promo-page-gap);
  align-items: stretch;
}

.licknose-promotions-page__slot {
  min-width: 0;
  display: flex;
  height: 100%;
}

.licknose-promotions-page__slot .ln-familyday-banner,
.licknose-promotions-page__slot .ln-promo-banner {
  flex: 1 1 auto;
  width: 100%;
  height: 100%;
  display: flex;
}

/* Премиальная карточка: фото сверху в рамке, текст снизу, одинаковая высота */
.licknose-promotions-page__slot .ln-familyday-banner__card,
.licknose-promotions-page__slot .ln-promo-banner__card {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  width: 100%;
  height: 100%;
  min-height: 0;
  padding: var(--ln-promo-card-pad);
  border-radius: var(--ln-promo-card-radius);
  overflow: hidden;
  border: 1px solid rgba(17, 17, 17, 0.07);
  background: #fff;
  box-shadow:
    0 1px 2px rgba(17, 17, 17, 0.03),
    0 12px 32px rgba(17, 17, 17, 0.08);
  transition:
    transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.3s ease;
}

@media (hover: hover) and (pointer: fine) {
  .licknose-promotions-page__slot .ln-familyday-banner__card:hover,
  .licknose-promotions-page__slot .ln-promo-banner__card:hover {
    transform: translateY(-4px);
    box-shadow:
      0 2px 6px rgba(17, 17, 17, 0.04),
      0 20px 44px rgba(17, 17, 17, 0.12);
  }

  .licknose-promotions-page__slot .ln-familyday-banner__card:hover .ln-familyday-banner__bg,
  .licknose-promotions-page__slot .ln-promo-banner__card:hover .ln-promo-banner__bg {
    transform: scale(1.035);
  }
}

/* Медиа: фиксированный кадр, одинаковый у обеих */
.licknose-promotions-page__slot .ln-familyday-banner__bg,
.licknose-promotions-page__slot .ln-promo-banner__bg {
  position: relative !important;
  inset: auto !important;
  flex: 0 0 auto !important;
  order: 1 !important;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  aspect-ratio: var(--ln-promo-media-ratio);
  border: 0 !important;
  border-radius: 16px;
  overflow: hidden;
  transform: scale(1);
  transform-origin: center center;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  background-color: #fff1c2 !important;
  background-repeat: no-repeat !important;
  background-size: cover !important;
  padding: 0 !important;
  box-sizing: border-box !important;
}

.licknose-promotions-page__slot .ln-familyday-banner__bg {
  background-image: var(--ln-fd-bg-desktop) !important;
  background-position: 32% 22% !important;
}

.licknose-promotions-page__slot .ln-promo-banner__bg {
  background-image: var(--ln-promo-bg) !important;
  background-position: 48% 35% !important;
}

/* Мягкая виньетка поверх фото */
.licknose-promotions-page__slot .ln-familyday-banner__bg::after,
.licknose-promotions-page__slot .ln-promo-banner__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(18, 18, 18, 0.04) 0%, transparent 28%, transparent 55%, rgba(18, 18, 18, 0.18) 100%),
    linear-gradient(90deg, rgba(255, 229, 102, 0.12) 0%, transparent 35%);
  border-radius: inherit;
}

.licknose-promotions-page__slot .ln-familyday-banner__content,
.licknose-promotions-page__slot .ln-promo-banner__content {
  position: relative !important;
  inset: auto !important;
  top: auto !important;
  right: auto !important;
  bottom: auto !important;
  left: auto !important;
  transform: none !important;
  order: 2 !important;
  flex: 1 1 auto !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
  align-items: stretch !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  min-height: 0 !important;
  height: auto !important;
  max-height: none !important;
  margin: 0;
  padding: 18px 14px 12px !important;
  gap: 0 !important;
  overflow: visible !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  backdrop-filter: none !important;
}

.licknose-promotions-page__slot .ln-familyday-banner__title,
.licknose-promotions-page__slot .ln-promo-banner__title,
.licknose-promotions-page__slot .ln-familyday-banner__promo-line,
.licknose-promotions-page__slot .ln-promo-banner__promo-line,
.licknose-promotions-page__slot .ln-familyday-banner__note,
.licknose-promotions-page__slot .ln-promo-banner__note,
.licknose-promotions-page__slot .ln-promo-banner__hint {
  text-shadow: none;
}

.licknose-promotions-page__slot .ln-familyday-banner__eyebrow,
.licknose-promotions-page__slot .ln-promo-banner__eyebrow {
  margin: 0 0 10px;
  min-height: 24px;
}

.licknose-promotions-page__slot .ln-familyday-banner__eyebrow span,
.licknose-promotions-page__slot .ln-promo-banner__eyebrow span {
  display: inline-block;
  padding: 5px 12px;
  font-size: 10px;
  letter-spacing: 0.14em;
  border-radius: 999px;
  background: var(--ln-promo-yellow);
  color: #111;
  font-weight: 800;
  text-transform: uppercase;
  box-shadow: none;
  line-height: 1.2;
}

.licknose-promotions-page__slot .ln-familyday-banner__title,
.licknose-promotions-page__slot .ln-promo-banner__title {
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 4px !important;
  margin: 0 0 8px;
}

.licknose-promotions-page__slot .ln-familyday-banner__discount,
.licknose-promotions-page__slot .ln-promo-banner__discount {
  font-size: clamp(34px, 4vw, 44px);
  line-height: 0.95;
  letter-spacing: -0.05em;
  color: var(--ln-promo-ink);
  font-weight: 900;
}

.licknose-promotions-page__slot .ln-familyday-banner__title-sub,
.licknose-promotions-page__slot .ln-promo-banner__title-sub {
  font-size: clamp(15px, 1.6vw, 18px);
  font-weight: 700;
  line-height: 1.25;
  color: var(--ln-promo-ink);
  letter-spacing: -0.015em;
}

.licknose-promotions-page__slot .ln-familyday-banner__promo-line,
.licknose-promotions-page__slot .ln-promo-banner__promo-line,
.licknose-promotions-page__slot .ln-familyday-banner__note,
.licknose-promotions-page__slot .ln-promo-banner__note,
.licknose-promotions-page__slot .ln-promo-banner__hint {
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.licknose-promotions-page__slot .ln-familyday-banner__promo-line,
.licknose-promotions-page__slot .ln-promo-banner__promo-line {
  margin: 0 0 14px;
  min-height: 2.8em;
  font-size: 13px;
  line-height: 1.45;
  color: var(--ln-promo-muted);
}

.licknose-promotions-page__slot .ln-promo-banner__promo-word {
  font-size: inherit;
  font-weight: 800;
  color: var(--ln-promo-code);
  letter-spacing: 0.04em;
}

.licknose-promotions-page__slot .ln-familyday-banner__note,
.licknose-promotions-page__slot .ln-promo-banner__note {
  margin: 0 0 12px;
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--ln-promo-muted);
}

.licknose-promotions-page__slot .ln-promo-banner__hint {
  margin: 8px 0 0;
  font-size: 12px;
  line-height: 1.35;
  color: rgba(18, 18, 18, 0.48);
  text-align: center;
  min-height: 1.35em;
}

/* Промокод */
.licknose-promotions-page__slot .ln-familyday-banner__code-box,
.licknose-promotions-page__slot .ln-promo-banner__code-box {
  display: flex;
  flex-direction: column;
  gap: 3px;
  width: 100%;
  margin: 0 0 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--ln-promo-panel-bg);
  border: 1px dashed rgba(143, 114, 0, 0.35);
  box-shadow: none;
  box-sizing: border-box;
}

.licknose-promotions-page__slot .ln-familyday-banner__code-label,
.licknose-promotions-page__slot .ln-promo-banner__code-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(18, 18, 18, 0.42);
  line-height: 1.2;
}

.licknose-promotions-page__slot .ln-familyday-banner__code-value,
.licknose-promotions-page__slot .ln-promo-banner__code-value {
  font-size: clamp(22px, 2.4vw, 26px);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: 0.1em;
  color: var(--ln-promo-code);
}

.licknose-promotions-page__slot .ln-promo-banner__status {
  margin-top: 6px;
  font-size: 12px;
  color: rgba(18, 18, 18, 0.55);
}

.licknose-promotions-page__slot .ln-promo-banner__status-dot {
  width: 6px;
  height: 6px;
}

/* Нижний блок действий - всегда у низа */
.licknose-promotions-page__slot .ln-familyday-banner__footer {
  width: 100%;
  margin-top: auto !important;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.licknose-promotions-page__slot .ln-familyday-banner__actions {
  gap: 8px;
  width: 100%;
  flex-direction: column;
  align-items: stretch;
  margin-top: 0;
}

.licknose-promotions-page__slot .ln-familyday-banner__footer .ln-familyday-banner__actions {
  flex-direction: column;
  align-items: stretch;
}

.licknose-promotions-page__slot .ln-familyday-banner__btn,
.licknose-promotions-page__slot .ln-promo-banner__btn {
  width: 100% !important;
  min-height: 46px !important;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 700;
  border-radius: 999px;
  box-sizing: border-box !important;
}

.licknose-promotions-page__slot .ln-promo-banner__actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  margin-top: auto !important;
}

.licknose-promotions-page__slot .ln-promo-banner__btn {
  margin-top: 0 !important;
  text-decoration: none;
}

.licknose-promotions-page__slot .ln-familyday-banner__btn--primary,
.licknose-promotions-page__slot .ln-promo-banner__btn:not(.ln-promo-banner__btn--ghost) {
  background: linear-gradient(180deg, var(--ln-promo-yellow) 0%, var(--ln-promo-yellow-deep) 100%);
  color: #111;
  border: 0;
  box-shadow: 0 2px 8px rgba(201, 160, 0, 0.22);
}

.licknose-promotions-page__slot .ln-familyday-banner__btn--ghost,
.licknose-promotions-page__slot .ln-promo-banner__btn--ghost {
  background: #fff;
  border: 1px solid rgba(17, 17, 17, 0.12);
  box-shadow: none;
  color: #171308;
}

.licknose-promotions-page__slot .ln-familyday-banner__btn--ghost:hover,
.licknose-promotions-page__slot .ln-familyday-banner__btn--ghost:focus-visible,
.licknose-promotions-page__slot .ln-promo-banner__btn--ghost:hover,
.licknose-promotions-page__slot .ln-promo-banner__btn--ghost:focus-visible {
  background: #fffdf5;
  border-color: rgba(201, 160, 0, 0.55);
}

/* Гостевой режим: note занимает место code-box для равной высоты */
.licknose-promotions-page__slot .ln-familyday-banner[data-logged="0"] .ln-familyday-banner__note,
.licknose-promotions-page__slot .ln-promo-banner[data-logged="0"] .ln-promo-banner__note {
  margin: 0 0 12px;
  padding: 12px 14px;
  min-height: 64px;
  border-radius: 14px;
  background: var(--ln-promo-panel-bg);
  border: 1px dashed rgba(143, 114, 0, 0.22);
  box-sizing: border-box;
}

.licknose-promotions-page__slot .ln-familyday-banner[data-logged="0"] .ln-familyday-banner__actions,
.licknose-promotions-page__slot .ln-promo-banner[data-logged="0"] .ln-promo-banner__btn {
  margin-top: auto !important;
}

/* Убираем дублирующий SPPB-hero */
body.licknose-page-akcii #sp-page-builder.page-akcii,
body.page-akcii #sp-page-builder.page-19 {
  display: none !important;
}

/* Текстовый блок под карточками: как работают промокоды, FAQ */
.licknose-promotions-page__info {
  max-width: 760px;
  margin: clamp(36px, 5vw, 56px) auto 0;
  padding: clamp(22px, 3.2vw, 36px);
  background: var(--ln-promo-panel-bg);
  border: 1px solid rgba(17, 17, 17, 0.07);
  border-radius: var(--ln-promo-card-radius);
  color: var(--ln-promo-ink);
  font-size: 1rem;
  line-height: 1.6;
}

.licknose-promotions-page__info-title {
  margin: 0 0 12px;
  font-size: clamp(1.3rem, 2.4vw, 1.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--ln-promo-ink);
}

.licknose-promotions-page__info-title:not(:first-child) {
  margin-top: clamp(28px, 4vw, 40px);
}

.licknose-promotions-page__info h3 {
  margin: 22px 0 8px;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ln-promo-ink);
}

.licknose-promotions-page__info p,
.licknose-promotions-page__info ol {
  margin: 0 0 10px;
  color: rgba(18, 18, 18, 0.78);
}

.licknose-promotions-page__info ol {
  padding-left: 1.3em;
}

.licknose-promotions-page__info li + li {
  margin-top: 4px;
}

.licknose-promotions-page__info a {
  color: var(--ln-promo-ink);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--ln-promo-yellow-deep);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.licknose-promotions-page__info a:hover,
.licknose-promotions-page__info a:focus-visible {
  text-decoration-color: currentColor;
}

@media (max-width: 991.98px) {
  .licknose-promotions-page__grid {
    grid-template-columns: 1fr;
    max-width: 440px;
    margin: 0 auto;
  }
}

@media (max-width: 767.98px) {
  .licknose-promotions-page {
    padding-top: 22px;
  }

  .licknose-promotions-page__slot .ln-familyday-banner__card,
  .licknose-promotions-page__slot .ln-promo-banner__card {
    flex-direction: column !important;
    min-height: 0 !important;
  }

  .licknose-promotions-page__slot .ln-familyday-banner__bg,
  .licknose-promotions-page__slot .ln-promo-banner__bg {
    aspect-ratio: 16 / 10;
  }

  .licknose-promotions-page__slot .ln-familyday-banner__content,
  .licknose-promotions-page__slot .ln-promo-banner__content {
    padding: 16px 12px 10px !important;
  }

  .licknose-promotions-page__slot .ln-familyday-banner__discount,
  .licknose-promotions-page__slot .ln-promo-banner__discount {
    font-size: clamp(30px, 8vw, 38px);
  }
}
