/* Новогодний раздел /2027/ — макет «Ёлка и гирлянда» (Claude Design, Ng2027TreeV2, 30.11.2026).
   Страница самостоятельная: классы ng2-*, стили хаба /podarok/ здесь не используются.
   Палитра макета: тёмная зелень, красный, кремовый, золото. Шрифты — те же, что на сайте. */

.ng2 { --g: #13291f; --g2: #1e3b2e; --r: #9e2f2a; --r2: #b53a33; --cream: #f6f1e6; --ink: #1d1a16; --gold: #c9a46a; --mute: #5e574c; --mute-d: #cfd8cf; --line: #d8cfbf; --sand: #ece3d1; --card: #f3efe6;
	--pad: clamp(20px, 5vw, 72px); --sec: clamp(80px, 9vw, 130px);
	background: var(--cream); color: var(--ink); font-family: var(--cm-sans, "Open Sans", sans-serif); -webkit-font-smoothing: antialiased; font-variant-numeric: lining-nums; overflow: clip; }
.ng2 :is(h1, h2, h3) { margin: 0; font-family: var(--cm-serif, "Cormorant Garamond", serif); font-weight: 600; color: inherit; }
.ng2 p { margin: 0; }
.ng2 a { color: var(--r); }
.ng2 a:hover { color: var(--g2); }
.ng2 img { display: block; }
.ng2 :focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.ng2-wrap { max-width: 1200px; margin: 0 auto; }
.ng2-sec { padding: var(--sec) var(--pad); }

/* Метка «ждём ответа»: видна только на закрытом просмотре, пока данных нет */
.ng-todo { display: inline; padding: 2px 8px; border-radius: 4px; background: #fff3c4; border: 1px dashed #c9a227; color: #5c4a10; font-family: var(--cm-sans, sans-serif); font-size: 14px; font-style: normal; font-weight: 400; letter-spacing: 0; line-height: 1.7; text-transform: none; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.ng-todo__who { font-size: 11px; font-weight: 700; letter-spacing: .1em; }
.ng-todo--inline { padding: 0 .12em; border-radius: 6px; font: inherit; color: #5c4a10; }

/* Общие мелочи */
.ng2-kicker { font-size: 12px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--r); }
.ng2-kicker--gold { color: var(--gold); }
.ng2-h2 { font-size: clamp(40px, 4.4vw, 60px); line-height: 1.02; text-wrap: balance; }
.ng2-headcol { display: flex; flex-direction: column; gap: 18px; }
.ng2-headcol--center { gap: 16px; align-items: center; }
.ng2-text { font-size: 16px; line-height: 1.7; color: var(--mute); text-wrap: pretty; }
.ng2-btn { display: inline-flex; align-items: center; justify-content: center; appearance: none; border: 0; cursor: pointer; padding: 19px 34px; border-radius: 8px; background: var(--r); color: #fff; font: 700 13px/1 var(--cm-sans, "Open Sans", sans-serif); letter-spacing: .14em; text-transform: uppercase; text-decoration: none; white-space: nowrap; transition: background .2s, border-color .2s, color .2s; }
.ng2 a.ng2-btn { color: #fff; }
.ng2 a.ng2-btn:hover { background: var(--r2); color: #fff; }
.ng2 a.ng2-btn--ghost { padding: 18px 30px; background: none; border: 1px solid rgba(246, 241, 230, .35); color: var(--cream); font-weight: 600; }
.ng2 a.ng2-btn--ghost:hover { background: none; border-color: var(--gold); color: var(--gold); }
.ng2-btn--big { padding: 20px 40px; }
.ng2-btn.is-disabled { opacity: .5; cursor: not-allowed; }
.ng2-link { appearance: none; cursor: pointer; background: none; border: 0; border-bottom: 1px solid var(--r); padding: 6px 0; color: var(--r); font: 600 12px/1 var(--cm-sans, "Open Sans", sans-serif); letter-spacing: .16em; text-transform: uppercase; }
.ng2-link[hidden] { display: none; }
.ng2-note { font-size: 14px; }
.ng2-slot { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; padding: 20px; border: 1px dashed #c9b98f; background: repeating-linear-gradient(135deg, #f6f1e6 0 14px, #f1ebdd 14px 28px); text-align: center; }
.ng2-draft { position: absolute; left: 8px; right: 8px; bottom: 8px; text-align: center; }

/* Снег и гирлянда */
.ng2-snow { position: absolute; left: 0; top: 0; width: 100%; height: 100%; pointer-events: none; }
.ng2-garland { position: absolute; left: 0; right: 0; top: 0; height: 90px; pointer-events: none; z-index: 2; }
.ng2-garland svg { position: absolute; left: 0; top: 0; width: 100%; height: 100%; }
.ng2-garland i { position: absolute; width: 10px; height: 14px; margin-left: -5px; border-radius: 50% 50% 46% 46%; background: var(--c); box-shadow: 0 0 16px 4px var(--gl); }
@keyframes ng2-twinkle { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }
@media (prefers-reduced-motion: no-preference) { .ng2-garland i { animation: ng2-twinkle 3s ease-in-out var(--d, 0s) infinite; } }

/* Первый экран */
.ng2-hero { position: relative; background: var(--g); color: var(--cream); padding: clamp(120px, 12vw, 150px) var(--pad) clamp(80px, 9vw, 120px); }
.ng2-hero__grid { position: relative; z-index: 3; max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: clamp(40px, 6vw, 88px); align-items: center; }
.ng2-hero__text { display: flex; flex-direction: column; gap: 28px; }
.ng2-eyebrow { display: flex; align-items: center; gap: 12px; font-size: 12px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); }
.ng2-eyebrow::before { content: ""; width: 8px; height: 8px; background: var(--r); transform: rotate(45deg); }
.ng2-h1 { font-size: clamp(52px, 6.4vw, 92px); line-height: .98; letter-spacing: -.01em; text-wrap: balance; }
.ng2-hero__lead { max-width: 520px; font-size: 17px; line-height: 1.7; color: var(--mute-d); text-wrap: pretty; }
.ng2-acts { display: flex; gap: 14px; flex-wrap: wrap; }
.ng2-hero__fig { margin: 0; position: relative; justify-self: center; width: 100%; max-width: 520px; }
.ng2-hero__img { aspect-ratio: 4 / 5; border-radius: 16px; overflow: hidden; box-shadow: 0 40px 90px rgba(0, 0, 0, .45); }
.ng2-hero__img img { width: 100%; height: 100%; object-fit: cover; object-position: 55% center; }
.ng2-ptag { position: absolute; left: -6px; bottom: 22px; transform: rotate(-7deg) scale(.82); transform-origin: left bottom; filter: drop-shadow(0 14px 22px rgba(0, 0, 0, .35)); }
.ng2-ptag--solo { position: relative; left: 0; bottom: 0; display: inline-block; margin-top: 18px; }
.ng2-ptag__in { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 20px 28px 20px 58px; background: var(--cream); color: var(--ink); clip-path: polygon(34px 0, 100% 0, 100% 100%, 34px 100%, 0 50%); }
.ng2-ptag__in::before { content: ""; position: absolute; left: 22px; top: 50%; width: 10px; height: 10px; margin-top: -5px; border-radius: 50%; background: var(--g); }
.ng2-ptag__label { font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--r); }
.ng2-ptag__price { font-family: var(--cm-serif, serif); font-weight: 600; font-size: 44px; line-height: 1; white-space: nowrap; }
@media (min-width: 1000px) { .ng2-ptag { left: -34px; bottom: 56px; transform: rotate(-7deg) scale(1); } .ng2-ptag--solo { left: 0; bottom: 0; } }

/* Полоса сохранённого промокода */
.ng2-code { background: var(--g2); color: var(--cream); padding: 18px var(--pad); border-top: 1px solid rgba(246, 241, 230, .12); }
.ng2-code[hidden] { display: none; }
.ng2-code__in { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; font-size: 15px; text-align: center; }
.ng2-code__in::before { content: ""; flex: none; width: 8px; height: 8px; background: #f2c14e; transform: rotate(45deg); }
.ng2-code strong { letter-spacing: .06em; }

/* «Знакомо?»: реплики и три дня */
.ng2-know { padding-bottom: 0; }
.ng2-know__in { display: flex; flex-direction: column; gap: clamp(48px, 6vw, 72px); }
.ng2-know__head { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr)); gap: 40px; align-items: end; }
.ng2-says { display: flex; flex-direction: column; gap: 14px; }
.ng2-say { padding: 18px 24px; font-family: var(--cm-serif, serif); font-style: italic; font-size: 26px; line-height: 1.2; }
.ng2-say--a { align-self: flex-start; border-radius: 18px 18px 18px 4px; background: #fff; box-shadow: 0 10px 24px rgba(29, 26, 22, .06); }
.ng2-say--b { align-self: flex-end; border-radius: 18px 18px 4px 18px; background: var(--sand); }
.ng2-say__who { font-family: var(--cm-sans, sans-serif); font-style: normal; font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--r); }
.ng2-days { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: clamp(20px, 3vw, 36px); }
.ng2-day { display: flex; flex-direction: column; gap: 16px; }
.ng2-when { display: flex; align-items: center; gap: 12px; font-family: var(--cm-serif, serif); font-style: italic; font-size: 28px; line-height: 1.2; color: var(--r); }
.ng2-when::before { content: ""; width: 7px; height: 7px; background: var(--r); transform: rotate(45deg); }
.ng2-frame { position: relative; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; background: var(--card); }
.ng2-frame img, .ng2-in__fig img { width: 100%; height: 100%; object-fit: cover; }
.ng2-frame--scene img { object-position: 100% center; }
/* Кадры коробки без фона: коробка стоит на светлой карточке целиком, с тенью (разбор арт-директора 30.11) */
.ng2-frame--box { background: linear-gradient(180deg, #ead6b8 0%, #dcc19c 100%); }
.ng2-frame--box img { object-fit: contain; object-position: center; transform: scale(1.1); transform-origin: center 52%; }
.ng2-day strong { font-family: var(--cm-serif, serif); font-weight: 600; font-size: 26px; line-height: 1.15; }
.ng2-day p { font-size: 15px; line-height: 1.65; color: var(--mute); }

/* Бирка «Подпишите, кому подарок» */
.ng2-tagsec__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: clamp(48px, 6vw, 96px); align-items: center; }
.ng2-tagsec__form { display: flex; flex-direction: column; gap: 30px; }
.ng2-field { display: flex; flex-direction: column; gap: 12px; }
.ng2-label { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); }
.ng2-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.ng2-chip { appearance: none; cursor: pointer; padding: 11px 18px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink); font: 600 13px/1 var(--cm-sans, "Open Sans", sans-serif); transition: background .2s, color .2s, border-color .2s; }
.ng2-chip.is-on { background: var(--g2); border-color: var(--g2); color: var(--cream); }
.ng2-input { padding: 16px 18px; border: 1px solid var(--line); border-radius: 8px; background: #fff; font: 400 16px var(--cm-sans, "Open Sans", sans-serif); color: var(--ink); outline: none; }
.ng2-input:focus { border-color: var(--g2); }
.ng2-tagwrap { display: flex; justify-content: center; padding: 30px 0; }
.ng2-tag { position: relative; width: 100%; max-width: 470px; transform: rotate(3deg); filter: drop-shadow(0 24px 36px rgba(29, 26, 22, .18)); }
.ng2-tag::before { content: ""; position: absolute; left: -60px; top: 50%; width: 90px; height: 1px; background: var(--r); }
.ng2-tag__in { position: relative; display: flex; flex-direction: column; gap: 20px; padding: 44px 44px 44px 92px; background: var(--g2); clip-path: polygon(52px 0, 100% 0, 100% 100%, 52px 100%, 0 50%); }
.ng2-tag__in::before { content: ""; position: absolute; left: 30px; top: 50%; width: 16px; height: 16px; margin-top: -8px; border-radius: 50%; background: var(--cream); box-shadow: inset 0 0 0 3px var(--gold); }
/* Бирка — тёмно-зелёная, как следующий блок, текст светлый (Егор, 30.11: бежевая на бежевом терялась) */
.ng2-tag__to, .ng2-tag__from { font-family: var(--cm-serif, serif); font-size: 20px; color: var(--mute-d); }
.ng2-tag__to span { font-style: italic; font-size: 30px; color: var(--cream); }
/* Эмодзи после «Кому: …» — прямым шрифтом (Егор, 30.11) */
.ng2-tag__to span.ng2-tag__emo { margin-left: 10px; font-family: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", sans-serif; font-style: normal; font-size: 24px; }
.ng2-tag__from span { font-style: italic; font-size: 26px; color: var(--cream); overflow-wrap: anywhere; }
.ng2-tag__wish { font-family: var(--cm-serif, serif); font-style: italic; font-weight: 500; font-size: 26px; line-height: 1.3; color: var(--cream); text-wrap: pretty; }
.ng2-tag__foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; border-top: 1px solid rgba(246, 241, 230, .2); padding-top: 16px; }
.ng2-tag__year { font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); }
.ng2-copyrow { max-width: 1200px; margin: 24px auto 0; display: flex; justify-content: flex-end; min-height: 25px; }

/* Что внутри */
.ng2-in { background: var(--g2); color: var(--cream); }
.ng2-in__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: clamp(40px, 6vw, 88px); align-items: center; }
.ng2-in__text { display: flex; flex-direction: column; gap: 28px; }
.ng2-lead, .ng2-about p { font-size: 17px; line-height: 1.7; color: var(--mute-d); text-wrap: pretty; }
.ng2-about { display: flex; flex-direction: column; gap: 12px; }
.ng2-about:empty { display: none; }
.ng2-in a { color: var(--gold); }
.ng2-in a:hover { color: var(--cream); }
.ng2-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px; background: rgba(246, 241, 230, .14); border: 1px solid rgba(246, 241, 230, .14); }
.ng2-facts > div { background: var(--g2); padding: 22px 20px; display: flex; flex-direction: column; gap: 8px; }
.ng2-facts__k { font-family: var(--cm-serif, serif); font-size: 30px; line-height: 1; }
.ng2-facts > div:only-child { grid-column: 1 / -1; }
/* Колонки заданы по ширине окна, а не auto-fit: иначе слово «Пожелание» не помещалось в узкую ячейку.
   От 1000 px блок стоит в две колонки с кадром — заголовки ячеек уменьшаются вместе с окном; до 699 px ячейки
   идут по две, третья — на всю ширину; до 380 px — по одной. */
@media (min-width: 1000px) { .ng2-facts__k { font-size: clamp(21px, 2.05vw, 30px); } }
@media (max-width: 699px) {
	.ng2-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ng2-facts > div:nth-child(3):last-child { grid-column: 1 / -1; }
	.ng2-facts__k { font-size: clamp(24px, 7vw, 30px); }
}
@media (max-width: 380px) { .ng2-facts { grid-template-columns: 1fr; } .ng2-facts > div:nth-child(3):last-child { grid-column: auto; } }
.ng2-facts__v { font-size: 13px; color: var(--mute-d); }
.ng2-quote { padding-left: 22px; border-left: 1px solid var(--gold); font-family: var(--cm-serif, serif); font-style: italic; font-size: 30px; line-height: 1.25; color: #e7d3a8; }
.ng2-quote span { display: block; margin-top: 6px; font-family: var(--cm-sans, sans-serif); font-style: normal; font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: #9fb0a4; }
.ng2-in__fig { position: relative; margin: 0; aspect-ratio: 5 / 4; border-radius: 16px; overflow: hidden; background: var(--card); }

/* Сколько подарков */
.ng2-qty__in { max-width: 1000px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 40px; text-align: center; }
/* Ряд коробок (Егор, 30.11): без карточек, со своей тенью, всегда в один ряд — на узком экране коробки ужимаются,
   а не переносятся. Высота ряда постоянная, чтобы счётчик не прыгал при смене количества. */
.ng2-boxes { box-sizing: border-box; display: flex; justify-content: center; align-items: center; flex-wrap: nowrap; width: 100%; min-height: 206px; padding: 26px 0 14px; }
.ng2-box { flex: 0 1 132px; min-width: 0; margin: 0 -6px; aspect-ratio: 4 / 5; transform: rotate(var(--rot, 0deg)); }
.ng2-box img { width: 100%; height: 100%; object-fit: contain; transform: scale(1.3); transform-origin: 50% 60%; }
/* Новая коробка в ряду появляется, а не выскакивает; при «уменьшить движение» — сразу (правило в конце файла) */
@keyframes ng2-pop { from { opacity: 0; transform: translateY(10px) rotate(var(--rot, 0deg)) scale(.94); } }
.ng2-box.is-new { animation: ng2-pop .22s ease-out; }
.ng2-qty__row { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; justify-content: center; }
.ng2-step { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; background: #fff; }
.ng2-step button { appearance: none; border: 0; background: none; cursor: pointer; width: 52px; height: 52px; font-size: 22px; line-height: 1; color: var(--ink); border-radius: 50%; }
.ng2-step button:disabled { opacity: .3; cursor: default; }
.ng2-step span { min-width: 40px; font-family: var(--cm-serif, serif); font-size: 30px; font-weight: 600; line-height: 1; }
.ng2-total { font-family: var(--cm-serif, serif); font-weight: 600; font-size: 44px; line-height: 1; white-space: nowrap; }
.ng2-qty__note { font-size: 14px; color: var(--mute); }

/* Вопросы. Блок идёт сразу за выбором количества на том же фоне: верхний отступ не удваиваем */
.ng2-faqsec { padding-top: 0; }
.ng2-faq { max-width: 860px; margin: 0 auto; border-top: 1px solid var(--line); }
.ng2-q { border-bottom: 1px solid var(--line); }
.ng2-q summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 26px 0; font-family: var(--cm-serif, serif); font-weight: 600; font-size: 26px; line-height: 1.2; color: var(--ink); }
.ng2-q summary::-webkit-details-marker { display: none; }
.ng2-q summary::after { content: "+"; flex: none; font-family: var(--cm-sans, sans-serif); font-weight: 400; font-size: 22px; color: var(--r); }
.ng2-q[open] summary::after { content: "−"; }
.ng2-q p { padding: 0 0 26px; max-width: 680px; font-size: 16px; line-height: 1.7; color: var(--mute); }

/* Финал */
.ng2-fin { position: relative; background: var(--g); color: var(--cream); padding: clamp(130px, 12vw, 170px) var(--pad) clamp(90px, 9vw, 120px); text-align: center; }
.ng2-fin__in { position: relative; max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 26px; }
.ng2-fin__h { font-size: clamp(48px, 5.4vw, 80px); line-height: 1; }
.ng2-fin__p { font-size: 18px; line-height: 1.6; color: var(--mute-d); }
.ng2-fine { position: relative; max-width: 1200px; margin: 90px auto 0; padding-top: 28px; border-top: 1px solid rgba(246, 241, 230, .14); font-size: 13px; line-height: 1.7; color: #9fb0a4; text-align: left; }
.ng2 .ng2-fine a { color: var(--gold); }
.ng2 .ng2-fine a:hover { color: var(--cream); }

/* Кнопка покупки, которая идёт за читателем: прилипает к низу окна внутри раздела */
.ng2-barwrap { position: sticky; bottom: 0; z-index: 20; height: 0; }
.ng2-bar { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: center; padding: 0 12px 14px; pointer-events: none; transform: translateY(140%); opacity: 0; visibility: hidden; transition: transform .4s cubic-bezier(.2, .8, .2, 1), opacity .3s, visibility 0s linear .4s; }
.ng2-bar.is-on { transform: translateY(0); opacity: 1; visibility: visible; transition-delay: 0s; }
.ng2-bar__in { pointer-events: auto; display: flex; align-items: center; gap: clamp(12px, 3vw, 28px); padding: 10px 10px 10px 24px; border-radius: 14px; background: var(--g); color: var(--cream); box-shadow: 0 18px 40px rgba(0, 0, 0, .3); }
.ng2-bar__txt { display: flex; flex-direction: column; gap: 2px; font-size: 12px; color: var(--mute-d); }
.ng2-bar__txt strong { font-family: var(--cm-serif, serif); font-size: 24px; font-weight: 600; color: var(--cream); line-height: 1; white-space: nowrap; }
.ng2-btn--bar { padding: 16px 24px; border-radius: 9px; font-size: 12px; }

/* «Уменьшить движение»: без переходов и анимаций (снег при этом стоит на месте — см. скрипт) */
@media (prefers-reduced-motion: reduce) {
	.ng2 *, .ng2 *::before, .ng2 *::after { transition: none !important; animation: none !important; }
}

@media (max-width: 520px) {
	/* Гирлянда на телефоне: тридцать лампочек на 390 px слипались парами — оставлена каждая вторая, мельче и тише */
	.ng2-garland i:nth-of-type(even) { display: none; }
	.ng2-garland i { width: 8px; height: 11px; margin-left: -4px; box-shadow: 0 0 11px 3px var(--gl); }
	.ng2-tag__in { padding: 36px 26px 36px 76px; }
	.ng2-tag__wish { font-size: 23px; }
	.ng2-acts .ng2-btn { flex: 1 1 auto; }
}
