

/* Start:/local/components/hozzakaz/newyear.tree/templates/.default/style.css?179638867828218*/
/* hozzakaz:newyear.tree — ёлка с товарами (04.12.2026). Ёлка — tree.js (код пользователя, WebGL / canvas). */
.nyt {
  --nyt-toy: 72px;
  position: relative;
  margin: 8px 0 32px;
  padding: 0 0 20px;
  border-radius: 24px;
  overflow: hidden;
  overflow: clip;               /* clip, а не hidden: иначе не работает «липкая» панель справа */
  color: #fff;
  background:
    radial-gradient(ellipse 60% 40% at 50% 92%, rgba(255, 170, 80, .16), transparent 70%),
    radial-gradient(ellipse 80% 55% at 50% 40%, #1d5a3c 0%, rgba(18, 64, 42, 0) 72%),
    linear-gradient(180deg, #154a31 0%, #0f3b27 55%, #0a2b1c 100%);
}

/* Заголовок по центру над ёлкой — рукописный, как на образце «Время приятных подарков».
   Шрифт Marck Script (лицензия SIL OFL), лежит рядом в fonts/. */
@font-face {
  font-family: 'Marck Script';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/local/components/hozzakaz/newyear.tree/templates/.default/fonts/marck-script-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Marck Script';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/local/components/hozzakaz/newyear.tree/templates/.default/fonts/marck-script-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+2000-206F;
}

.nyt__title {
  position: relative;
  z-index: 3;
  max-width: 14em;
  margin: 0 auto;
  padding: 40px 16px 36px;
  font-family: 'Marck Script', 'Segoe Script', cursive;
  font-size: clamp(27.5px, 16px + 4.2vw, 55px);   /* px: у сайта корневой шрифт 10px */
  font-weight: 400;
  line-height: 1.05;
  word-spacing: -.12em;
  text-align: center;
  text-wrap: balance;
  color: #fffaf0;
  text-shadow: 0 2px 18px rgba(0, 0, 0, .35);
}

/* дальние размытые огоньки */
.nyt::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 8% 18%, rgba(255, 196, 120, .22) 0 10px, transparent 26px),
    radial-gradient(circle at 92% 12%, rgba(255, 220, 160, .18) 0 14px, transparent 34px),
    radial-gradient(circle at 85% 46%, rgba(255, 170, 90, .14) 0 9px, transparent 24px),
    radial-gradient(circle at 12% 62%, rgba(160, 200, 255, .12) 0 12px, transparent 30px),
    radial-gradient(circle at 94% 78%, rgba(255, 196, 120, .14) 0 8px, transparent 22px),
    radial-gradient(circle at 5% 88%, rgba(255, 210, 150, .12) 0 14px, transparent 32px);
  filter: blur(2px);
}

.nyt__stage {
  position: relative;
  /* пропорции ёлки 3.05 × 4.29 — высокая, во всю ширину блока */
  margin-inline: auto;          /* при ограничении высоты блок сужается — держим ёлку по центру */
  aspect-ratio: 3.05 / 4.29;
  min-height: 600px;
  max-height: 1400px;
  touch-action: pan-y;          /* по вертикали — прокрутка страницы, по горизонтали — поворот ёлки */
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  outline: none;
}

.nyt__stage.is-dragging {
  cursor: grabbing;
}

.nyt__stage:focus-visible {
  box-shadow: inset 0 0 0 3px rgba(255, 214, 120, .7);
  border-radius: 24px;
}

/* тень и отсвет под ёлкой */
.nyt__stage::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 2%;
  width: min(80%, 760px);
  height: 7%;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, .55), rgba(0, 0, 0, 0) 70%);
  pointer-events: none;
}

.nyt__canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
}
.nyt__toys {
  position: absolute;
  inset: 0;
  z-index: 2;
  margin: 0;
  padding: 0;
  list-style: none;
  pointer-events: none;
}

.nyt__toy {
  position: absolute;
  left: 0;
  top: 0;
  width: var(--nyt-toy);
  margin: 0;
  padding: 0;
  opacity: 0;
  transform-origin: 50% 0;      /* висит на нитке — точка подвеса сверху */
  will-change: transform, opacity;
}
/* коробка — фото с прозрачным фоном (art/gift-*.webp), подвешена за золотую петельку */
.nyt__gift {
  position: relative;
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  pointer-events: auto;
  -webkit-tap-highlight-color: transparent;
}

.nyt__toy.is-back .nyt__gift {
  pointer-events: none;
}

.nyt__gift-img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 8px 8px rgba(0, 0, 0, .45));
  transform-origin: 50% 0;
  transition: transform .25s ease, filter .25s ease;
  pointer-events: none;
}

.nyt__gift:hover .nyt__gift-img,
.nyt__gift:focus-visible .nyt__gift-img {
  transform: scale(1.1);
}

/* открытая коробка: подпрыгивает и светится */
.nyt__toy.is-open .nyt__gift-img {
  transform: scale(1.15);
  filter: drop-shadow(0 0 10px rgba(255, 220, 120, .95)) drop-shadow(0 0 24px rgba(255, 190, 70, .6));
  animation: nyt-hop .5s cubic-bezier(.3, 1.6, .5, 1);
}

@keyframes nyt-hop {
  0% { transform: scale(1); }
  40% { transform: translateY(-14%) scale(1.2) rotate(-6deg); }
  100% { transform: scale(1.15); }
}

.nyt__gift:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
  border-radius: 8px;
}

.nyt__toy:hover,
.nyt__toy:focus-within {
  z-index: 2000 !important;
}

/* обычная карточка товара — только без JS */
.nyt--js:not(.nyt--flat) .nyt__toy-link {
  display: none;
}

.nyt__toy-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #1b222b;
  text-decoration: none;
}

.nyt__toy-image {
  display: block;
  max-width: 100%;
  max-height: 130px;
  object-fit: contain;
  filter: drop-shadow(0 8px 10px rgba(0, 0, 0, .5));
}

.nyt__toy-title {
  display: block;
  margin-top: 6px;
  padding: 4px 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, .94);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
}

.nyt__toy-title > span {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* ---------- раскладка: ёлка слева, подарок справа ---------- */
.nyt__layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  align-items: start;
  gap: 24px;
  padding: 0 24px;
}

.nyt__panel {
  position: sticky;
  top: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: min(80vh, 720px);
  margin-top: 4%;
  color: #fff;
  text-align: center;
}

.nyt__panel-close {
  display: none;
}

.nyt__panel-empty {
  max-width: 320px;
}

.nyt__panel-empty[hidden],
.nyt__prize[hidden] {
  display: none;
}

.nyt__panel-empty p {
  margin: 22px 0 0;
  font-family: 'Marck Script', 'Segoe Script', cursive;
  font-size: clamp(25.6px, 17.6px + 1.2vw, 36.8px);
  line-height: 1.15;
  color: #fffaf0;
}

/* большая коробка-заглушка с покачиванием */
.nyt__panel-gift {
  display: block;
  width: 150px;
  height: auto;
  margin: 0 auto;
  filter: drop-shadow(0 14px 18px rgba(0, 0, 0, .45));
  transform-origin: 50% 90%;
  animation: nyt-wiggle 3s ease-in-out infinite;
}

@keyframes nyt-wiggle {
  0%, 70%, 100% { transform: rotate(0); }
  76% { transform: rotate(-6deg); }
  82% { transform: rotate(5deg); }
  88% { transform: rotate(-3deg); }
  94% { transform: rotate(2deg); }
}

.nyt__prize {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 460px;
  color: #fff;
  text-decoration: none;
}

.nyt__prize.is-shown {
  animation: nyt-pop .55s cubic-bezier(.2, 1.4, .4, 1) both;
}

@keyframes nyt-pop {
  from { opacity: 0; transform: translateY(40px) scale(.6); }
  to { opacity: 1; transform: none; }
}

/* ---------- анимация открытия подарка (tree.js, playUnbox) ---------- */
/* без z-index: слои анимации встают в порядок панели — сияние за фото товара,
   коробка и пыльца перед ним */
.nyt__unbox {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.nyt__fly {
  position: fixed;
  z-index: 5000;
  pointer-events: none;
  object-fit: contain;
  will-change: transform;
}

.nyt__unbox-gift {
  position: absolute;
  left: 50%;
  z-index: 3;
  transform: translate(-50%, -50%);
}

.nyt__unbox-gift img {
  display: block;
  width: 100%;
  height: auto;
}

/* мягкая тень под коробкой (drop-shadow на анимируемых картинках давал квадрат) */
.nyt__unbox-shadow {
  position: absolute;
  left: 12%;
  right: 12%;
  bottom: -2%;
  height: 14%;
  z-index: 0;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, .5) 0, rgba(0, 0, 0, .25) 45%, rgba(0, 0, 0, 0) 72%);
}

/* одно фото коробки, разрезанное на крышку с бантом и корпус */
.nyt__unbox-body {
  clip-path: inset(48% 0 0 0);
}

.nyt__unbox-lid {
  position: absolute;
  inset: 0;
  clip-path: inset(0 0 52% 0);
  transform-origin: 30% 50%;
}

/* порядок внутри коробки: тень, корпус, свет изнутри, полоска света, крышка */
.nyt__unbox-body { position: relative; z-index: 1; }
.nyt__unbox-lid { z-index: 4; }

/* свет изнутри коробки — поднимается из горловины */
.nyt__unbox-inner {
  position: absolute;
  left: 50%;
  bottom: 52%;
  z-index: 2;
  width: 110%;
  height: 120%;
  transform-origin: 50% 100%;
  background: radial-gradient(ellipse 50% 100% at 50% 100%, rgba(255, 244, 205, .95) 0, rgba(255, 214, 120, .55) 30%, rgba(255, 200, 90, .18) 55%, rgba(255, 200, 90, 0) 75%);
  mix-blend-mode: screen;
  opacity: 0;
}

/* полоска света под крышкой перед открытием */
.nyt__unbox-seam {
  position: absolute;
  left: 4%;
  right: 4%;
  top: 48%;
  z-index: 3;
  height: 14px;
  margin-top: -7px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(255, 248, 220, 1) 0, rgba(255, 214, 120, .7) 35%, rgba(255, 200, 90, 0) 70%);
  mix-blend-mode: screen;
  opacity: 0;
}

/* тёплое сияние за товаром (z-index ниже фото) */
.nyt__unbox-halo {
  position: absolute;
  left: 50%;
  z-index: 1;
  width: 440px;
  height: 440px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 228, 160, .5) 0, rgba(255, 205, 110, .22) 35%, rgba(255, 200, 90, 0) 68%);
  opacity: 0;
}

/* золотая пыльца */
.nyt__dust {
  position: absolute;
  left: 50%;
  z-index: 4;
  border-radius: 50%;
  background: #fff4cf;
  box-shadow: 0 0 6px 2px rgba(255, 210, 110, .75);
  opacity: 0;
}

/* световая волна по всему экрану (размер и прозрачность задаёт tree.js) */
.nyt__wave {
  position: fixed;
  z-index: 4000;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(255, 232, 160, 0) 56%, rgba(255, 232, 160, .08) 62%, rgba(255, 244, 210, .3) 67%, rgba(255, 222, 140, .1) 70%, rgba(255, 222, 140, 0) 74%);
  mix-blend-mode: screen;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0);
  will-change: transform, opacity;
}

/* блик по товару: полоса света, обрезанная по форме фото */
.nyt__shine {
  position: absolute;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(105deg, rgba(255, 255, 255, 0) 45%, rgba(255, 255, 255, .42) 50%, rgba(255, 255, 255, 0) 55%) no-repeat;
  background-size: 250% 100%;
  background-position: 130% 0;
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  mix-blend-mode: screen;
}

.nyt__prize-image {
  display: block;
  width: 100%;
  max-width: 420px;
  aspect-ratio: 1;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 18px 24px rgba(0, 0, 0, .45));
  transition: transform .25s ease;
}

.nyt__prize:hover .nyt__prize-image {
  transform: scale(1.04);
}

.nyt__prize-title {
  margin-top: 14px;
  font-family: 'Marck Script', 'Segoe Script', cursive;   /* тот же рукописный, что в заголовке */
  font-size: clamp(26px, 17px + 1.3vw, 38px);
  font-weight: 400;
  line-height: 1.2;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .35);
}

.nyt__prize:hover .nyt__prize-title,
.nyt__prize:focus-visible .nyt__prize-title {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.nyt__prize:focus-visible {
  outline: 3px solid #e9c46a;
  outline-offset: 6px;
  border-radius: 12px;
}

/* огоньки гирлянды и звезда — точки на ёлке, их двигает tree.js */
.nyt__lights,
.nyt__star {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 1;
  pointer-events: none;
}

.nyt__lights {
  inset: 0;
  z-index: 2;
}

.nyt__light {
  position: absolute;
  left: -14px;
  top: -14px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  opacity: 0;
  /* ядро огонька и мягкое свечение вокруг — одним слоем (мерцание задаёт tree.js) */
  background:
    radial-gradient(circle, #fffbe8 0 6.5%, #ffd27a 11.5%, rgba(255, 170, 60, .55) 18.5%, rgba(255, 150, 40, 0) 26%),
    radial-gradient(circle, rgba(255, 196, 100, .4) 0, rgba(255, 180, 80, 0) 70%);
  will-change: transform, opacity;
}

@keyframes nyt-twinkle {
  0%, 100% { opacity: .35; transform: scale(.8); }
  50% { opacity: 1; transform: scale(1.15); }
}

.nyt__star {
  z-index: 3;
  will-change: transform;
}

.nyt__star svg {
  position: absolute;
  left: -36px;
  top: -40px;
  width: 72px;
  height: 72px;
  overflow: visible;
  filter: drop-shadow(0 0 10px rgba(255, 214, 110, .85)) drop-shadow(0 0 26px rgba(255, 190, 70, .45));
}

/* пока грузятся текстуры хвои */
.nyt__loader {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.nyt__loader span {
  width: 42px;
  height: 42px;
  border: 3px solid rgba(255, 255, 255, .2);
  border-top-color: #e9c46a;
  border-radius: 50%;
  animation: nyt-spin 1s linear infinite;
}

@keyframes nyt-spin {
  to { transform: rotate(360deg); }
}

.nyt__controls {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 0 16px;
}

.nyt__hint {
  max-width: 416px;
  margin: 0;
  font-size: 14px;
  line-height: 1.35;
  text-align: center;
  color: rgba(255, 255, 255, .78);
}

.nyt__turn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 50%;
  background: rgba(255, 255, 255, .1);
  color: #fff;
  cursor: pointer;
  transition: background .2s ease;
}

.nyt__turn:hover {
  background: rgba(255, 255, 255, .2);
}

.nyt__turn:focus-visible {
  outline: 3px solid #e9c46a;
  outline-offset: 2px;
}

.nyt__turn svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nyt__note {
  margin: 12px 16px 0;
  font-size: 13px;
  text-align: center;
  color: rgba(255, 255, 255, .6);
}

/* Без JS или при ошибке скрипта — товары обычной сеткой */
.nyt:not(.nyt--js) .nyt__stage,
.nyt--flat .nyt__stage {
  aspect-ratio: auto;
  min-height: 0;
  max-height: none;
  cursor: auto;
  -webkit-mask-image: none;
  mask-image: none;
}

.nyt:not(.nyt--js) .nyt__canvas,
.nyt--flat .nyt__canvas,
.nyt:not(.nyt--js) .nyt__lights,
.nyt--flat .nyt__lights,
.nyt:not(.nyt--js) .nyt__star,
.nyt--flat .nyt__star,
.nyt:not(.nyt--js) .nyt__gift,
.nyt--flat .nyt__gift,
.nyt:not(.nyt--js) .nyt__panel,
.nyt--flat .nyt__panel {
  display: none;
}

.nyt:not(.nyt--js) .nyt__layout,
.nyt--flat .nyt__layout {
  display: block;
}

.nyt:not(.nyt--js) .nyt__toys,
.nyt--flat .nyt__toys {
  position: static;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 24px 16px;
  padding: 24px 16px;
  pointer-events: auto;
}

.nyt:not(.nyt--js) .nyt__toy,
.nyt--flat .nyt__toy {
  position: static;
  width: auto;
  opacity: 1 !important;
  transform: none !important;
}

.nyt:not(.nyt--js) .nyt__toy-image,
.nyt--flat .nyt__toy-image {
  max-height: 130px;
}

.nyt.is-ready .nyt__loader,
.nyt:not(.nyt--js) .nyt__loader,
.nyt:not(.nyt--js) .nyt__controls,
.nyt--flat .nyt__loader,
.nyt--flat .nyt__controls .nyt__turn,
.nyt--flat .nyt__hint {
  display: none;
}

/* Зелёный фон на всю страницу (под шапкой и до подвала), а не только у блока с ёлкой.
   Без поддержки :has() (старые браузеры) остаётся зелёный блок на обычном фоне. */
@supports selector(:has(*)) {
  /* один фон на всю страницу — и за шапкой, и под ёлкой, без стыков */
  body:has(.nyt) {
    /* сплошной цвет: градиент на body повторяется каждую высоту окна и даёт полосы */
    background: #134530 !important;   /* у сайта фон body задан с !important */
  }
  main.main:has(.nyt) {
    background:
      radial-gradient(ellipse 60% 30% at 50% 88%, rgba(255, 170, 80, .14), transparent 70%),
      radial-gradient(ellipse 70% 45% at 50% 35%, rgba(29, 90, 60, .8) 0%, rgba(18, 64, 42, 0) 72%);
    padding-bottom: 32px;
  }
  main.main:has(.nyt) .breadcrumb,
  main.main:has(.nyt) .breadcrumb a,
  main.main:has(.nyt) .breadcrumb li,
  main.main:has(.nyt) .breadcrumb span {
    color: rgba(255, 255, 255, .72);
  }
  main.main:has(.nyt) .breadcrumb a:hover {
    color: #fff;
  }
  main.main:has(.nyt) .nyt {
    margin-bottom: 0;
    border-radius: 0;
    background: none;   /* фон даёт вся страница */
  }
}

/* Планшет и телефон: ёлка на всю ширину, подарок — карточкой снизу экрана */
/* ---------- мешок «Подарки на любую сумму» (tree.js, setupSack) ---------- */
.nys {
  position: relative;
  max-width: 1180px;
  margin: 56px auto 0;
  padding: 0 16px 40px;
  color: #fff;
  text-align: center;
}

.nyt:not(.nyt--js) .nys {
  display: none;
}

.nys__title {
  margin: 0;
  font-family: 'Marck Script', 'Segoe Script', cursive;
  font-size: clamp(30px, 18px + 3vw, 50px);
  font-weight: 400;
  line-height: 1.15;
  color: #fff;
  text-shadow: 0 2px 18px rgba(0, 0, 0, .35);
}

.nys__lead {
  max-width: 560px;
  margin: 10px auto 0;
  font-size: 16px;
  line-height: 1.5;
  color: rgba(255, 255, 255, .78);
}

.nys__stage {
  position: relative;
  margin-top: 18px;
}

.nys__sack {
  position: relative;
  width: min(460px, 88vw);
  margin: 0 auto;
  aspect-ratio: 474 / 481;
  transform-origin: 50% 96%;
}

/* тень под мешком */
.nys__sack::before {
  content: '';
  position: absolute;
  left: 4%;
  right: 4%;
  bottom: -3%;
  height: 10%;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, .5) 0, rgba(0, 0, 0, .22) 45%, rgba(0, 0, 0, 0) 72%);
}

.nys__sack-body,
.nys__sack-top,
.nys__sack-mouth {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  user-select: none;
  pointer-events: none;
}

.nys__sack-mouth {
  overflow: visible;
}

.nys__sack-open {
  opacity: 0;
  transform-box: fill-box;
  transform-origin: 50% 50%;
}

.nys__sack-top {
  transform-origin: 50% 30%;
}

.nys.is-open .nys__sack-open { opacity: 1; }
.nys.is-open .nys__sack-top { opacity: 0; }

/* свет из открытого мешка */
.nys__beam {
  position: absolute;
  left: 50.2%;
  bottom: 70.5%;
  width: 70%;
  height: 90%;
  transform: translateX(-50%);
  transform-origin: 50% 100%;
  /* луч уже горловины и гаснет внутри блока — без видимых краёв */
  background: radial-gradient(ellipse 26% 80% at 50% 100%, rgba(255, 240, 190, .75) 0, rgba(255, 214, 120, .35) 35%, rgba(255, 200, 90, .1) 65%, rgba(255, 200, 90, 0) 100%);
  pointer-events: none;
  opacity: 0;
}

.nys__dust {
  position: absolute;
  left: 50.2%;
  top: 29%;
  z-index: 3;
  border-radius: 50%;
  background: #fff4cf;
  box-shadow: 0 0 6px 2px rgba(255, 210, 110, .75);
  pointer-events: none;
  opacity: 0;
}

/* бирка с полем суммы на мешке */
.nys__tag {
  position: absolute;
  left: 50%;
  top: 73%;
  z-index: 2;
  width: min(236px, 54%);
  padding: 14px 16px 16px;
  border-radius: 14px;
  background: linear-gradient(160deg, #fbf3df 0, #efdfb9 100%);
  box-shadow: 0 10px 24px rgba(40, 4, 8, .45), inset 0 0 0 1px rgba(255, 255, 255, .6);
  color: #4a2a12;
  transform: translate(-50%, -50%) rotate(-3deg);
}

.nys__tag::before {
  content: '';
  position: absolute;
  inset: 6px;
  border: 1.5px dashed rgba(150, 96, 40, .55);
  border-radius: 10px;
  pointer-events: none;
}

.nys__tag-label {
  display: block;
  font-family: 'Marck Script', 'Segoe Script', cursive;
  font-size: 24px;
  line-height: 1.1;
  color: #8a1a22;
}

.nys__tag-field {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 6px;
  margin: 6px 0 10px;
  border-bottom: 2px solid rgba(138, 26, 34, .45);
}

.nys__input {
  width: 100%;
  min-width: 0;
  padding: 2px 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #3a1d0b;
  font: 600 30px/1.2 system-ui, -apple-system, 'Segoe UI', sans-serif;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.nys__input::placeholder {
  color: rgba(74, 42, 18, .32);
}

.nys__rub {
  font: 600 24px/1 system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: #8a1a22;
}

.nys__go,
.nys__again {
  display: inline-block;
  padding: 10px 20px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, #f7d677 0, #e2a93a 55%, #c88a22 100%);
  box-shadow: 0 4px 12px rgba(90, 50, 5, .35), inset 0 1px 0 rgba(255, 255, 255, .6);
  color: #4a2506;
  font: 700 15px/1.2 system-ui, -apple-system, 'Segoe UI', sans-serif;
  cursor: pointer;
  transition: transform .2s ease, filter .2s ease;
}

.nys__go:hover,
.nys__again:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
}

.nys__go:focus-visible,
.nys__again:focus-visible,
.nys__input:focus-visible {
  outline: 2px solid #ffe08a;
  outline-offset: 3px;
}

.nys__go[disabled] {
  opacity: .6;
  cursor: default;
}

.nys__status {
  min-height: 24px;
  margin: 14px 0 0;
  font-size: 15px;
  color: rgba(255, 255, 255, .7);
}

.nys__status.is-error {
  color: #ffd27a;
}

/* полка */
.nys__shelf {
  margin-top: 28px;
}

.nys__rows {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

.nys__row {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 8px;
  padding: 0 26px;
}

/* доска полки: товары стоят на ней, подписи — под ней */
.nys__row::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: var(--nys-img, 170px);
  height: 18px;
  border-radius: 4px;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0) 0 46px, rgba(70, 35, 10, .18) 46px 48px, rgba(255, 255, 255, 0) 48px 110px),
    linear-gradient(180deg, #c9925a 0, #a46a36 40%, #7c4a22 100%);
  box-shadow: 0 14px 18px -6px rgba(0, 0, 0, .55), inset 0 2px 0 rgba(255, 230, 190, .45);
}

.nys__item {
  position: relative;
  z-index: 1;
  width: 200px;
  list-style: none;
}

.nys__item.is-waiting {
  visibility: hidden;
}

.nys__item a {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #fff;
  text-decoration: none;
}

.nys__item-image {
  display: block;
  width: 170px;
  height: 170px;
  object-fit: contain;
  object-position: 50% 100%;
  filter: drop-shadow(0 10px 10px rgba(0, 0, 0, .4));
  transition: transform .25s ease;
}

.nys__item a:hover .nys__item-image {
  transform: translateY(-4px) scale(1.04);
}

.nys__item-title {
  display: -webkit-box;
  min-height: 2.3em;
  margin-top: 30px;
  overflow: hidden;
  font-family: 'Marck Script', 'Segoe Script', cursive;
  font-size: 21px;
  line-height: 1.15;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.nys__item-price {
  margin-top: 4px;
  font-size: 15px;
  font-weight: 700;
  color: #ffd877;
}

.nys__fly {
  position: fixed;
  z-index: 4500;
  object-fit: contain;
  pointer-events: none;
  will-change: transform, opacity;
}

.nys__total {
  margin: 26px 0 0;
  font-size: 18px;
  color: rgba(255, 255, 255, .85);
}

.nys__total b {
  color: #ffd877;
  font-size: 24px;
}

.nys__again {
  margin-top: 14px;
}

.nys__again[hidden],
.nys__shelf[hidden] {
  display: none;
}

@media (max-width: 899px) {
  .nyt__layout {
    display: block;
    padding: 0;
  }
  .nyt__panel {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: calc(12px + var(--nyt-bottom, 0px));
    top: auto;
    z-index: 3000;
    min-height: 0;
    max-height: calc(100vh - 80px - var(--nyt-bottom, 0px));
    margin: 0;
    padding: 28px 20px 22px;
    border-radius: 22px;
    background: rgba(13, 52, 35, .96);
    box-shadow: 0 -10px 40px rgba(0, 0, 0, .45);
    transform: translateY(calc(100% + 24px + var(--nyt-bottom, 0px)));
    visibility: hidden;
    transition: transform .35s ease, visibility 0s .35s;
  }
  .nyt__panel.is-open {
    transform: none;
    visibility: visible;
    transition: transform .35s cubic-bezier(.2, 1.2, .4, 1);
  }
  .nyt__panel-close {
    position: absolute;
    top: 10px;
    right: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .12);
    color: #fff;
    cursor: pointer;
  }
  .nyt__panel-close svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.4;
    stroke-linecap: round;
  }
  .nyt__panel-empty {
    display: none;
  }
  .nyt__prize-image {
    /* размер задан заранее, чтобы карточка не прыгала, пока грузится фото */
    width: min(62vw, 300px, 36vh);
    height: min(62vw, 300px, 36vh);
    max-width: none;
  }
  .nyt__prize-title {
    margin-top: 8px;
    font-size: 24px;
  }
}

@media (max-width: 639px) {
  .nyt {
    --nyt-toy: 60px;
    /* на всю ширину экрана: у контейнера сайта на телефоне поля 10px (было -16px — давало боковой скролл) */
    margin-inline: -10px;
    border-radius: 0;
  }
  .nyt__stage {
    aspect-ratio: .62;
    min-height: 540px;
  }
  .nyt__hint {
    font-size: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nyt__loader span,
  .nyt__panel-gift,
  .nyt__prize.is-shown,
  .nyt__toy.is-open .nyt__gift-img { animation: none; }
}

@media print {
  .nyt { display: none; }
}

@media (max-width: 639px) {
  .nys {
    margin-top: 36px;
    padding-inline: 8px;
  }
  .nys__lead { font-size: 14px; }
  .nys__tag { padding: 10px 12px 12px; }
  .nys__tag-label { font-size: 20px; }
  .nys__input { font-size: 24px; }
  .nys__rub { font-size: 20px; }
  .nys__go { padding: 8px 14px; font-size: 14px; }
  .nys__row { gap: 4px; padding: 0 10px; }
  .nys__item { width: calc(50vw - 30px); max-width: 180px; }
  .nys__row { --nys-img: 130px; }
  .nys__item-image { width: 100%; height: 130px; }
  .nys__item-title { font-size: 18px; margin-top: 28px; }
  .nys__item-price { font-size: 14px; }
}

/* End */
/* /local/components/hozzakaz/newyear.tree/templates/.default/style.css?179638867828218 */
