/* Главная: атмосфера, заголовки секций, микродетали */

body.home-festive .home-festive__main,
body.home-festive .festive-page {
  position: relative;
  isolation: isolate;
}

body.home-festive .home-festive__main::before,
body.home-festive .festive-page::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 70% 45% at 8% 4%, var(--ny-pine-soft), transparent 55%),
    radial-gradient(ellipse 55% 38% at 92% 12%, rgba(212, 168, 92, 0.1), transparent 50%),
    radial-gradient(ellipse 80% 50% at 50% 100%, rgba(96, 20, 20, 0.06), transparent 55%),
    linear-gradient(180deg, #fcfbf8 0%, #f8f3ec 45%, #fcfbf8 100%);
}

body.home-festive .home-festive__main > *,
body.home-festive .festive-page > * {
  position: relative;
  z-index: 1;
}

/* Модалки поверх баннера (иначе > * { z-index:1 } утаскивает их вниз) */
body.home-festive .home-festive__main > .catalog-modal-overlay,
body.home-festive .festive-page > .catalog-modal-overlay {
  position: fixed;
  z-index: 10000;
}

/* --- Заголовки секций --- */
body.home-festive .section-head--festive {
  text-align: center;
  max-width: 720px;
  margin-inline: auto;
  padding-bottom: 6px;
}

body.home-festive .section-head--festive h3 {
  display: block;
  padding-right: 0;
  margin: 0;
  color: var(--ny-night);
  font-family: var(--font-ny-heading), Georgia, serif;
  font-size: clamp(28px, 3.2vw, 42px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: 0.01em;
}

body.home-festive .section-head--festive h3::after {
  display: none;
}

body.home-festive .section-head--festive h3::before {
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  margin: 14px auto 0;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--ny-gold), transparent);
  opacity: 0.85;
}

body.home-festive .section-head__subtitle {
  margin: 14px 0 0;
  font-family: var(--font-ny-ui), sans-serif;
  font-size: clamp(14px, 1.5vw, 16px);
  font-weight: 500;
  line-height: 1.55;
  color: rgba(74, 49, 45, 0.72);
  max-width: 52ch;
  margin-inline: auto;
}

body.home-festive .section-footnote {
  margin-top: 18px;
  text-align: center;
}

body.home-festive .section-footnote a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 800;
  color: #7e2625;
  text-decoration: none;
  transition: gap 0.22s ease, color 0.22s ease;
}

body.home-festive .section-footnote a:hover {
  color: #5c1817;
  gap: 11px;
}

body.home-festive .section-footnote a i {
  font-size: 0.85em;
}

body.home-festive .section-faq-home .home-faq__title {
  display: none;
}

body.home-festive .section-faq-home .home-faq-wrap {
  margin-top: 8px;
}

/* Секция с мягким декором */
body.home-festive .section--ambient {
  position: relative;
  overflow: visible;
}

body.home-festive .section--ambient > .decor-layer {
  z-index: 0;
  opacity: 0.55;
}

body.home-festive .section--ambient > :not(.decor-layer) {
  position: relative;
  z-index: 1;
}

/* Герой: мягкое свечение по краям */
body.home-festive .hero {
  position: relative;
}

body.home-festive .hero .decor-layer--hero-premium {
  border-radius: inherit;
  opacity: 0.7;
}

body.home-festive .hero-slider {
  position: relative;
  z-index: 1;
}

/* Промо-полоска — блик */
body.home-festive .home-promo-strip__inner {
  position: relative;
  overflow: hidden;
}

body.home-festive .home-promo-strip__inner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 0%,
    rgba(255, 255, 255, 0.12) 48%,
    transparent 56%
  );
  transform: translateX(-120%);
  animation: promo-shine 5s var(--ease-in-out-ios) infinite;
  pointer-events: none;
}

@keyframes promo-shine {
  0%,
  72% {
    transform: translateX(-120%);
  }
  88%,
  100% {
    transform: translateX(120%);
  }
}

/* Фабрики — лёгкая подложка */
body.home-festive .section-factories::before {
  background: linear-gradient(
    145deg,
    rgba(245, 230, 200, 0.45) 0%,
    rgba(252, 251, 248, 0.2) 50%,
    rgba(226, 240, 232, 0.35) 100%
  ) !important;
  border-block: 1px solid rgba(212, 168, 92, 0.2);
}

body.home-festive .section-factories .brands-carousel .brand-item {
  background: rgba(255, 252, 248, 0.94);
  border: 1px solid rgba(212, 168, 92, 0.22);
}

/* Плавающая кнопка — стекло */
body.home-festive .floating-btn {
  background: rgba(126, 38, 37, 0.92);
  border: 1px solid rgba(255, 232, 184, 0.35);
}

@media (prefers-reduced-motion: reduce) {
  body.home-festive .home-promo-strip__inner::after {
    animation: none;
    display: none;
  }
}

/* --- About / Delivery / Catalog --- */
body.home-festive .about-main {
  padding: calc(var(--site-header-height, 128px) + 16px) 24px 40px;
}

/* Баннеры каталога уже имеют .catalog-below-header — не дублируем отступ шапки в main */
body.home-festive .catalog-festive-shell main {
  padding-top: 0;
}

body.home-festive .product-festive-shell main {
  padding-top: 0;
}

body.home-festive .contacts-main {
  padding: calc(var(--site-header-height, 128px) + 16px) 24px 40px;
}

body.home-festive .contacts-info,
body.home-festive .contacts-form-wrap,
body.home-festive .contacts-map {
  background: rgba(255, 252, 248, 0.96);
  border-color: rgba(212, 168, 92, 0.28);
  box-shadow: var(--ny-shadow-warm);
}

body.home-festive .contacts-info .section-head--festive {
  text-align: left;
  margin-inline: 0;
}

body.home-festive .contacts-info .section-head--festive h3::before {
  margin-left: 0;
  margin-right: auto;
}

body.home-festive .contacts-map .section-head--festive {
  padding: 24px 24px 0;
}

body.home-festive .contacts-map .map-frame {
  margin: 16px 24px 24px;
}

body.home-festive .product-card {
  background: linear-gradient(165deg, #fffefb 0%, #faf4ea 100%);
  border-color: rgba(212, 168, 92, 0.32);
  box-shadow: 0 4px 16px rgba(43, 20, 12, 0.06);
}

body.home-festive .product-card:hover {
  border-color: rgba(201, 146, 58, 0.45);
  box-shadow:
    0 16px 32px rgba(126, 38, 37, 0.14),
    0 0 20px rgba(255, 215, 146, 0.28);
}

body.home-festive .fav-btn {
  transition: transform var(--motion-fast) var(--ease-spring), background var(--motion-fast) ease;
}

body.home-festive .fav-btn:active {
  transform: scale(0.9);
}

body.home-festive .about-hero-v2 {
  position: relative;
  overflow: hidden;
}

body.home-festive .delivery-section {
  position: relative;
  overflow: hidden;
  background: rgba(255, 252, 248, 0.94);
}

body.home-festive .delivery-hero--compact {
  box-shadow: var(--ny-shadow-warm);
}

body.home-festive .delivery-order-tab {
  transition:
    transform var(--motion-fast) var(--ease-spring),
    border-color var(--motion-medium) var(--ease-out-ios),
    box-shadow var(--motion-medium) var(--ease-spring-soft),
    background var(--motion-medium) var(--ease-out-ios);
}

body.home-festive .delivery-order-tab:hover {
  transform: translateX(4px) translateY(-1px);
}

body.home-festive .delivery-order-tab:active {
  transform: scale(0.98) translateX(2px);
}

body.home-festive .about-blog-card,
body.home-festive .delivery-extra-card {
  transition:
    transform var(--motion-medium) var(--ease-spring-soft),
    box-shadow var(--motion-medium) var(--ease-spring-soft);
}

body.home-festive .about-blog-card:hover,
body.home-festive .delivery-extra-card:hover {
  transform: translateY(-4px);
}

body.home-festive .product-page-notice__card {
  border: 1px solid rgba(212, 168, 92, 0.28);
  background: linear-gradient(145deg, #fffefb, var(--ny-champagne, #f3e4d7));
  box-shadow: var(--ny-shadow-warm);
}

/* --- Подвал на главной --- */
body.home-festive .site-footer {
  position: relative;
  z-index: 2;
  margin-top: 0;
  font-family: var(--font-ny-ui), sans-serif;
}

body.home-festive .home-festive__main > .site-footer {
  margin-top: 12px;
}

body.home-festive .site-footer__logo-text strong {
  font-family: var(--font-ny-heading), serif;
  font-weight: 600;
}

body.home-festive .site-footer__nav a:hover,
body.home-festive .site-footer__bottom-links a:hover {
  color: var(--ny-gold-light, #f5e6c8);
}