/* Токены только для главной страницы */
body.home-festive {
  --ny-bordeaux: #601414;
  --ny-champagne: #f3e4d7;
  --ny-pine: #0c4d2e;
  --ny-gold: #c9923a;
  --ny-gold-light: #f5e6c8;
  --ny-ruby: #8f2b29;
  --ny-night: #1a1210;
  --ny-frost: rgba(255, 252, 248, 0.78);
  --ny-shadow-warm: 0 12px 30px rgba(43, 20, 12, 0.12);
  --ny-cursor: url("/cursor.PNG?v=20260613-3") 10 30, auto;
  --site-header-height: 128px;

  font-family: var(--font-ny-ui), sans-serif;
  background: var(--bg);
  cursor: var(--ny-cursor);
}

body.home-festive .hero-image::after {
  background: transparent;
}

body.home-festive .hero-image {
  background-image: none !important;
  animation: heroFadeIn 0.55s ease;
}

@keyframes heroFadeIn {
  from {
    opacity: 0.88;
    transform: scale(1.02);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

body.home-festive .hero-image.hero-image--enter {
  animation: heroFadeIn 0.55s ease;
}

body.home-festive .hero-image__media {
  position: relative;
  inset: auto;
  display: block;
  width: 100%;
  height: auto;
  max-width: none;
  object-fit: unset;
  object-position: unset;
  border-radius: inherit;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
  opacity: 1 !important;
  mix-blend-mode: normal !important;
  filter: none !important;
}

/* На герое никакого декора/снега/бликов */
body.home-festive .hero .decor-layer,
body.home-festive .hero .decor-layer--hero,
body.home-festive .hero .decor-layer--hero-premium,
body.home-festive .hero .decor-snow,
body.home-festive .hero .decor-flake,
body.home-festive .hero .decor-twinkle {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  animation: none !important;
  pointer-events: none !important;
}

body.home-festive .hero-image,
body.home-festive .hero-image::before,
body.home-festive .hero-image::after,
body.home-festive .hero-slider::before,
body.home-festive .hero-slider::after,
body.home-festive .hero::before,
body.home-festive .hero::after {
  animation: none !important;
}

body.home-festive .hero-image::before,
body.home-festive .hero-image::after {
  content: none !important;
  display: none !important;
  background: none !important;
}

/* Текст и кнопки баннера — только % / clamp, без жёстких px-сдвигов */
body.home-festive .hero-image {
  --hero-pad-x: clamp(3%, 5vw, 8%);
  --hero-text-w: min(42%, 34rem);
  /* ниже на ~25px; на узких экранах ещё ниже (см. media) */
  --hero-btn-bottom: calc(12% + 15%);
  /* сдвиг влево ~50px от прежней позиции (было +11%) */
  --hero-btn-left: calc(var(--hero-pad-x) + 8%);
  --hero-text-top: 8%;
  --hero-text-bottom: calc(var(--hero-btn-bottom) + clamp(3.2rem, 9%, 5.5rem));
}

body.home-festive .hero-slide-text {
  position: absolute;
  z-index: 6;
  left: calc(var(--hero-pad-x) + 11%);
  top: var(--hero-text-top);
  bottom: var(--hero-text-bottom);
  width: var(--hero-text-w);
  max-width: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
  pointer-events: none;
  transform: none;
}

body.home-festive .hero-slide-text__title {
  margin: 0;
  color: #fff;
  font-family: var(--font-ny-ui), sans-serif;
  font-size: clamp(1.1rem, 2.2vw + 0.6rem, 3.75rem);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -0.03em;
  text-shadow: none;
  overflow-wrap: anywhere;
  hyphens: auto;
}

body.home-festive .hero-slide-text__lead {
  margin: clamp(0.4rem, 1.2%, 0.85rem) 0 0;
  color: #fff;
  font-family: var(--font-ny-ui), sans-serif;
  font-size: clamp(0.85rem, 0.7vw + 0.55rem, 1.75rem);
  font-weight: 700;
  line-height: 1.3;
  text-shadow: none;
  overflow-wrap: anywhere;
}

body.home-festive .hero-slide-text--light {
  left: calc(var(--hero-pad-x) + 7%);
}

body.home-festive .hero-slide-text--light .hero-slide-text__title {
  color: #3f1717 !important;
}

body.home-festive .hero-slide-text--light .hero-slide-text__lead {
  color: #5f2c29 !important;
}

/* 3-й баннер: тот же размер текста, справа на старом месте, края через left/right */
body.home-festive .hero-slide-text--belgo {
  left: 50%;
  right: clamp(4%, 8vw, 14.9%);
  width: auto;
  max-width: none;
  top: 6%;
  /* старое место (+120px) ≈ +22% высоты баннера */
  bottom: calc(var(--hero-text-bottom) + 22%);
  text-align: left;
  justify-content: flex-end;
  min-width: 0;
  overflow: visible;
}

body.home-festive .hero-slide-text__actions {
  display: none;
}

/* Кнопки — одно место на всех баннерах */
body.home-festive .hero-slide-actions {
  position: absolute;
  z-index: 7;
  left: var(--hero-btn-left);
  right: auto;
  top: auto;
  bottom: var(--hero-btn-bottom);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(0.4rem, 1.2vw, 0.75rem);
  max-width: min(92%, 36rem);
  pointer-events: auto;
}

body.home-festive .hero-slide-btn {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 1 auto;
  min-height: clamp(2.4rem, 4.5vw, 3rem);
  padding: clamp(0.45rem, 1.1vw, 0.7rem) clamp(0.85rem, 2vw, 1.6rem);
  border: 3px solid #e8c06a;
  border-radius: 999px;
  background: linear-gradient(180deg, #f04646 0%, #d42222 48%, #9b1515 100%);
  color: #fff;
  font-family: var(--font-ny-ui), sans-serif;
  font-size: clamp(0.7rem, 0.55vw + 0.55rem, 1rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.15;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  box-shadow:
    0 8px 18px rgba(28, 8, 8, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
  transition:
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.35s ease,
    border-color 0.35s ease,
    background 0.35s ease;
}

body.home-festive .hero-slide-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    105deg,
    transparent 35%,
    rgba(255, 255, 255, 0.08) 45%,
    rgba(255, 248, 210, 0.55) 50%,
    rgba(255, 255, 255, 0.08) 55%,
    transparent 65%
  );
  background-size: 220% 100%;
  background-position: 140% 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

body.home-festive .hero-slide-btn:hover,
body.home-festive .hero-slide-btn:focus-visible {
  transform: translateY(-2px) scale(1.03);
  border-color: #f3d48a;
  background: linear-gradient(180deg, #ff5555 0%, #e02828 48%, #a81818 100%);
  box-shadow:
    0 0 16px rgba(232, 192, 106, 0.4),
    0 12px 22px rgba(28, 8, 8, 0.36),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

body.home-festive .hero-slide-btn:hover::after,
body.home-festive .hero-slide-btn:focus-visible::after {
  opacity: 1;
  animation: heroSlideBtnShine 0.85s ease-out;
}

body.home-festive .hero-slide-btn:active {
  transform: translateY(0) scale(0.99);
}

@keyframes heroSlideBtnShine {
  from {
    background-position: 140% 0;
  }
  to {
    background-position: -40% 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.home-festive .hero-slide-btn,
  body.home-festive .hero-slide-btn:hover {
    transition: none;
    transform: none;
  }

  body.home-festive .hero-slide-btn:hover::after {
    animation: none;
    opacity: 0.35;
  }
}

/* Ноутбуки / средние экраны */
@media (max-width: 1280px) {
  body.home-festive .hero-image {
    --hero-pad-x: clamp(2.5%, 4vw, 6%);
    --hero-text-w: min(46%, 30rem);
    --hero-btn-bottom: calc(11% + 12%);
  }

  body.home-festive .hero-slide-text {
    left: calc(var(--hero-pad-x) + 8%);
  }

  body.home-festive .hero-slide-text--light {
    left: calc(var(--hero-pad-x) + 5%);
  }

  body.home-festive .hero-slide-text--belgo {
    left: 48%;
    right: clamp(3%, 6vw, 12%);
    top: 5%;
    bottom: calc(var(--hero-text-bottom) + 20%);
  }

  body.home-festive .hero-slide-actions {
    left: calc(var(--hero-pad-x) + 5%);
  }
}

/* Планшеты */
@media (max-width: 900px) {
  body.home-festive .hero-image {
    --hero-pad-x: 4%;
    --hero-text-w: min(54%, 26rem);
    --hero-btn-bottom: calc(10% + 8%);
    --hero-text-top: 6%;
  }

  body.home-festive .hero-slide-text,
  body.home-festive .hero-slide-text--light {
    left: var(--hero-pad-x);
  }

  body.home-festive .hero-slide-text--belgo {
    left: 46%;
    right: 4%;
    top: 5%;
    bottom: calc(var(--hero-text-bottom) + 18%);
  }

  body.home-festive .hero-slide-actions {
    left: max(2%, calc(var(--hero-pad-x) - 2%));
    max-width: min(92%, 28rem);
  }

  body.home-festive .hero-slide-btn {
    border-width: 2px;
  }
}

/* Телефоны */
@media (max-width: 720px) {
  body.home-festive .hero-image {
    --hero-pad-x: 3%;
    --hero-btn-bottom: calc(8% + 5%);
    --hero-text-top: 6%;
    --hero-text-bottom: calc(var(--hero-btn-bottom) + 3.6rem);
  }

  body.home-festive .hero-slide-text,
  body.home-festive .hero-slide-text--light {
    left: var(--hero-pad-x);
    right: var(--hero-pad-x);
    width: auto;
    max-width: none;
    justify-content: flex-end;
  }

  /* 3-й: справа, тот же размер шрифта, место сохраняется */
  body.home-festive .hero-slide-text--belgo {
    left: 42%;
    right: 3%;
    top: 6%;
    bottom: calc(var(--hero-text-bottom) + 16%);
    width: auto;
    max-width: none;
    justify-content: flex-end;
  }

  body.home-festive .hero-slide-actions {
    left: var(--hero-pad-x);
    right: var(--hero-pad-x);
    max-width: none;
  }

  body.home-festive .hero-slide-btn {
    white-space: normal;
    text-align: center;
    flex: 1 1 auto;
  }
}

@media (max-width: 420px) {
  body.home-festive .hero-image {
    --hero-btn-bottom: calc(6% + 3%);
    --hero-text-bottom: calc(var(--hero-btn-bottom) + 5.5rem);
  }

  body.home-festive .hero-slide-actions {
    flex-direction: column;
    align-items: stretch;
  }

  body.home-festive .hero-slide-btn {
    width: 100%;
  }
}

/* Единый дефолтный фон: без точек и цветных полос у секций */
body.home-festive::before {
  display: none;
}

body.home-festive .home-festive__main {
  background: var(--bg);
  padding-top: var(--site-header-height);
  box-sizing: border-box;
}

/* Первый экран: баннер на всю ширину (высота от картинки) + плашка снизу */
body.home-festive {
  --home-first-screen-gap: clamp(8px, 1.1vw, 12px);
}

body.home-festive .home-first-screen {
  display: flex;
  flex-direction: column;
  height: auto;
  min-height: 0;
  box-sizing: border-box;
}

body.home-festive .home-first-screen .hero {
  position: relative;
  flex: 0 0 auto;
  min-height: 0 !important;
  height: auto;
  overflow: hidden;
}

body.home-festive .hero .decor-layer {
  inset: var(--hero-gutter, 12px);
  border-radius: 12px;
  pointer-events: none;
}

body.home-festive .home-first-screen .hero-slider {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  min-height: 0 !important;
  height: auto;
}

body.home-festive .home-first-screen .hero-image {
  flex: 0 0 auto;
  position: relative;
  width: 100%;
  height: auto;
  min-height: 0;
  line-height: 0;
}

body.home-festive .home-first-screen .home-promo-strip {
  flex: 0 0 auto;
  margin: var(--home-first-screen-gap) auto 0;
}

body.home-festive .site-header {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: none;
}

@media (max-width: 1080px) {
  body.home-festive {
    --site-header-height: 112px;
  }
}

/* Плашка 830×85 — доставка и статические блоки */
body.home-festive .festive-image-strip {
  display: flex;
  justify-content: center;
  margin: 16px auto 0;
  padding: 0 clamp(12px, 1.6vw, 24px);
}

/* Плашка под баннером на главной — ~845×85 (чуть шире базы 830) */
body.home-festive .home-promo-strip {
  display: flex;
  justify-content: center;
  margin: 16px auto 0;
  padding: 0 clamp(12px, 1.6vw, 24px);
  width: 100%;
  box-sizing: border-box;
  --promo-strip-w: 845px;
  --promo-strip-h: 85px;
  --promo-strip-ratio: 845 / 85;
}

body.home-festive .delivery-main > .festive-image-strip {
  margin: 0 auto 20px;
  width: 100%;
  max-width: none;
  padding: 0;
}

body.home-festive .festive-image-strip__frame {
  display: block;
  width: 830px;
  max-width: 100%;
  height: 85px;
  margin-inline: auto;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(212, 165, 116, 0.35);
  box-shadow: var(--ny-shadow-warm, 0 10px 24px rgba(43, 20, 12, 0.12));
}

body.home-festive .home-promo-strip__inner {
  display: block;
  position: relative;
  width: min(var(--promo-strip-w), 100%);
  max-width: 100%;
  aspect-ratio: var(--promo-strip-ratio);
  height: auto;
  margin-inline: auto;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(212, 165, 116, 0.35);
  box-shadow: var(--ny-shadow-warm, 0 10px 24px rgba(43, 20, 12, 0.12));
}

body.home-festive a.home-promo-strip__inner {
  text-decoration: none;
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease;
}

body.home-festive a.home-promo-strip__inner:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(43, 20, 12, 0.16);
}

body.home-festive .festive-image-strip__figure {
  position: relative;
  display: block;
  width: 100%;
  height: 85px;
  margin: 0;
}

body.home-festive .home-promo-strip__figure {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
}

body.home-festive .festive-image-strip__img,
body.home-festive .home-promo-strip__img {
  object-fit: cover;
  object-position: center;
}

@media (max-width: 860px) {
  body.home-festive .festive-image-strip__frame {
    height: auto;
    aspect-ratio: 830 / 85;
  }

  body.home-festive .festive-image-strip__figure {
    height: 100%;
    aspect-ratio: 830 / 85;
  }
}

@media (max-width: 640px) {
  body.home-festive .home-promo-strip,
  body.home-festive .festive-image-strip {
    margin-top: 12px;
  }
}

body.home-festive .section-hits::before {
  background: transparent;
}

body.home-festive .section-benefits {
  background: transparent;
  border-radius: 0;
}

/* Заголовки */
.home-festive h1,
.home-festive h2,
.home-festive h3,
.home-festive .section-head h3 {
  font-family: var(--font-ny-heading), serif;
  letter-spacing: 0.02em;
}

/* Блок "Индивидуальный подарок" */
.home-festive .custom-wrap {
  background: var(--ny-champagne);
  border-radius: 8px;
  border: 1px solid rgba(212, 165, 116, 0.3);
  box-shadow: var(--ny-shadow-warm);
}
.home-festive .custom-left h3 {
  font-family: var(--font-ny-heading), serif;
  color: var(--ny-bordeaux);
}
.home-festive .catalog-left h3 {
  font-family: var(--font-ny-heading), serif;
  color: #fff;
}
