/* ==========================================================================
   newyear.css — новогодний лендинг (/novyj-god/). Добавка к base.css.
   Спокойная «натуральная» палитра: тёплый светлый фон, хвойный зелёный как
   акцент, золото только для кнопок записи. Никаких гирлянд и анимаций —
   праздник передают фото, мягкие оттенки и пара сдержанных деталей.

   Кнопки записи — везде одна «главная» кнопка .btn.gold (золото + тёмно-синий
   текст): один цвет для одного действия. Красный не используем — он читается
   как ошибка/опасное действие.
   ========================================================================== */

:root {
  --ny-pine: #1f5c46;
  --ny-pine-soft: #e8f1ec;
  --ny-berry: #b5473f;
  --ny-warm: #fbf6ec;
  --ny-gold-soft: #fbf1d6;
}

/* тёплый спокойный фон страницы вместо голубых точек base.css */
body:before {
  display: none;
}
body:after {
  background: linear-gradient(180deg, #fbf8f2 0%, #fffdf9 50%, #faf6ee 100%);
}

/* еловые ветки выходят за края карточек — не даём им создать горизонтальный скролл */
main {
  overflow-x: clip;
}

/* якоря меню не должны уезжать под липкую шапку */
main section[id] {
  scroll-margin-top: 40px;
}

/* еловая веточка с ягодами над заголовками секций */
main .head h2:before {
  content: "";
  display: block;
  width: 72px;
  height: 40px;
  margin-bottom: 8px;
  background: url("/assets/img/ny-sprig.svg") left center / contain no-repeat;
}

/* ---------- hero ---------- */
.ny-hero {
  position: relative;
  padding: 28px 0 40px;
}
.ny-hero:before {
  /* тёплое свечение и редкий снег — праздник без яркого фона */
  content: "";
  position: absolute;
  inset: -110px 0 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 78% 30%, rgba(247, 201, 92, 0.22), transparent 38%),
    radial-gradient(circle at 12% 80%, rgba(31, 92, 70, 0.08), transparent 35%),
    radial-gradient(2px 2px at 30px 40px, rgba(120, 150, 190, 0.35) 60%, transparent 61%),
    radial-gradient(3px 3px at 140px 110px, rgba(120, 150, 190, 0.25) 60%, transparent 61%),
    radial-gradient(2px 2px at 220px 60px, rgba(120, 150, 190, 0.3) 60%, transparent 61%);
  background-size: auto, auto, 260px 180px, 260px 180px, 260px 180px;
}
.ny-hero-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 48px;
  align-items: center;
}
.ny-hero .crumbs {
  margin: 0 0 18px;
}
.ny-hero h1 {
  font-family: "Playfair Display", serif;
  font-size: clamp(36px, 4.4vw, 58px);
  line-height: 1.04;
  letter-spacing: -0.03em;
  color: var(--navy);
  margin: 18px 0 16px;
}
.ny-hero h1 span {
  color: var(--ny-pine);
  white-space: nowrap;
}
.ny-hero .lead {
  margin: 0 0 24px;
}
.ny-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 520px;
  margin-bottom: 26px;
}
.ny-fact {
  padding: 14px 16px;
  border-radius: 20px;
  background: #fff;
  border: 1px solid var(--line);
}
.ny-fact b {
  display: block;
  font-size: 22px;
  font-weight: 900;
  color: var(--navy);
}
.ny-fact span {
  font-size: 13px;
  font-weight: 800;
  color: var(--muted);
}
.ny-countdown {
  margin: 18px 0 0;
  font-weight: 800;
  color: var(--ny-pine);
}

.ny-photo {
  position: relative;
  justify-self: center;
  width: min(440px, 100%);
}
.ny-polaroid {
  margin: 0;
  border-radius: 32px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 24px 50px rgba(7, 29, 73, 0.12);
}
.ny-polaroid img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 4.4;
  object-fit: cover;
  object-position: 50% 30%;
}
.ny-polaroid figcaption {
  padding: 14px 18px 16px;
  text-align: center;
  font-weight: 800;
  color: var(--muted);
}
/* еловая ветка над фото и две игрушки на ней */
.ny-photo-deco {
  position: absolute;
  z-index: 2;
  left: -12%;
  right: -14%;
  top: -64px;
  height: 150px;
  pointer-events: none;
  background: url("/assets/img/ny-branch.svg") center top / contain no-repeat;
}
.ny-bauble {
  position: absolute;
  top: 56px;
  width: 2px;
  background: rgba(107, 83, 56, 0.6);
  transform-origin: top center;
  animation: nySway 6s ease-in-out infinite alternate;
}
.ny-bauble:after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -30px;
  width: 34px;
  height: 34px;
  margin-left: -17px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 30%, rgba(255, 255, 255, 0.8), transparent 30%), var(--c);
  box-shadow: 0 8px 16px rgba(7, 29, 73, 0.18);
}
.ny-bauble:before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -5px;
  width: 9px;
  height: 7px;
  margin-left: -4.5px;
  border-radius: 2px;
  background: #c9a24a;
  z-index: 1;
}
.ny-bauble--gold {
  left: 30%;
  height: 46px;
  --c: #d9a93c;
}
.ny-bauble--berry {
  left: 66%;
  height: 30px;
  --c: var(--ny-berry);
  animation-delay: -3s;
}
@keyframes nySway {
  from {
    transform: rotate(-4deg);
  }
  to {
    transform: rotate(4deg);
  }
}
.ny-badge {
  position: absolute;
  left: -18px;
  bottom: 74px;
  padding: 12px 16px;
  border-radius: 16px;
  background: #fff;
  color: var(--navy);
  font-weight: 900;
  font-size: 15px;
  box-shadow: 0 12px 28px rgba(7, 29, 73, 0.14);
}

/* ---------- афиша ---------- */
.posters {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}
.poster {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 30px;
  border-radius: 32px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--soft);
  text-align: center;
}
.poster:before {
  /* веточка на углу афиши */
  content: "";
  position: absolute;
  top: -34px;
  right: -26px;
  width: 210px;
  height: 92px;
  pointer-events: none;
  background: url("/assets/img/ny-branch.svg") center / contain no-repeat;
  transform: rotate(14deg);
}
.poster--older:before {
  right: auto;
  left: -26px;
  transform: scaleX(-1) rotate(14deg);
}
.poster--baby {
  background: linear-gradient(180deg, #fbe9e6, #fff 42%);
}
.poster--kids {
  background: linear-gradient(180deg, var(--ny-pine-soft), #fff 42%);
}
.poster--older {
  background: linear-gradient(180deg, var(--ny-gold-soft), #fff 42%);
}
.poster-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.poster-kicker {
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.poster-age {
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--ny-pine);
  color: #fff;
  font-weight: 900;
  font-size: 16px;
}
/* герой программы — иллюстрация на прозрачном фоне */
.poster-art {
  display: block;
  width: auto;
  height: 160px;
  margin: -8px auto -4px;
  filter: drop-shadow(0 12px 18px rgba(7, 29, 73, 0.12));
}
.poster-title {
  margin: 0;
  font-family: "Playfair Display", serif;
  font-size: clamp(26px, 2.4vw, 31px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--navy);
}
.poster-lead {
  margin: -6px auto 0;
  max-width: 420px;
  font-weight: 900;
  line-height: 1.4;
  color: var(--ny-pine);
}
.poster-sub {
  margin: 0 auto;
  max-width: 420px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--muted);
}
/* полный сюжет — по клику, чтобы афиши оставались короткими */
.poster-story {
  text-align: left;
  border-radius: 16px;
  background: var(--ny-warm);
}
.poster-story summary {
  cursor: pointer;
  list-style: none;
  padding: 12px 16px;
  font-weight: 900;
  color: var(--ny-pine);
  text-align: center;
}
.poster-story summary::-webkit-details-marker {
  display: none;
}
.poster-story summary:after {
  content: " ↓";
}
.poster-story[open] summary:after {
  content: " ↑";
}
.poster-story p {
  margin: 0;
  padding: 0 16px 12px;
  font-weight: 700;
  font-size: 15px;
  line-height: 1.55;
  color: var(--text);
}
.poster-time {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.poster-time-item {
  display: grid;
  justify-items: center;
  gap: 4px;
}
.poster-time b {
  font-family: "Playfair Display", serif;
  font-size: 34px;
  line-height: 1;
  white-space: nowrap;
  color: var(--navy);
}
.poster-time span {
  font-weight: 800;
  font-size: 13.5px;
  line-height: 1.35;
  color: var(--muted);
}
.poster-program {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
  text-align: left;
}
.poster-program li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 16px;
  background: var(--ny-warm);
}
.poster-program i {
  font-style: normal;
  font-size: 22px;
  flex: none;
}
.poster-program b {
  display: block;
  font-size: 16px;
  color: var(--navy);
}
.poster-program span {
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
}
/* фото и видео — отдельно подсвечиваем, что они уже в цене */
.poster-program-photo {
  background: var(--ny-gold-soft) !important;
}
.poster-dates-label {
  display: block;
  margin-bottom: 10px;
  font-weight: 900;
  font-size: 14px;
  color: var(--navy);
}
/* у программ разное число дат (2 или 4) — кнопки делят строку поровну */
.poster-dates-grid {
  display: flex;
  gap: 10px;
}
.poster-dates-grid .ny-slot {
  flex: 1 1 0;
  min-width: 0;
}
.ny-slot {
  display: grid;
  gap: 2px;
  justify-items: center;
  padding: 12px 6px;
  border: 1.5px solid var(--line);
  border-radius: 16px;
  background: #fff;
  color: var(--navy);
  font: inherit;
  cursor: pointer;
  transition: 0.2s;
}
.ny-slot b {
  font-family: "Playfair Display", serif;
  font-size: 28px;
  line-height: 1;
}
.ny-slot-sub {
  font-size: 12.5px;
  font-weight: 800;
  color: var(--muted);
}
.ny-slot-time {
  font-size: 13px;
  font-weight: 900;
}
.ny-slot.is-past .ny-slot-time {
  display: none;
}
.ny-slot:hover,
.ny-slot:focus-visible {
  border-color: var(--ny-pine);
  outline: none;
}
.ny-slot[aria-pressed="true"] {
  background: var(--ny-pine);
  border-color: var(--ny-pine);
  color: #fff;
}
.ny-slot[aria-pressed="true"] .ny-slot-sub {
  color: rgba(255, 255, 255, 0.85);
}
.ny-slot.is-past {
  cursor: default;
  opacity: 0.45;
  text-decoration: line-through;
}
.poster-foot {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding-top: 4px;
  text-align: left;
}
.poster-price {
  font-weight: 800;
  font-size: 13px;
  color: var(--muted);
}
.poster-price b {
  display: block;
  font-size: 26px;
  font-weight: 900;
  color: var(--navy);
}
.ny-schedule-note {
  margin: 24px 0 0;
  text-align: center;
  font-weight: 800;
  color: var(--muted);
}

/* ---------- фото ---------- */
.ny-gallery {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}
.ny-g {
  padding: 0;
  border: 0;
  border-radius: 22px;
  overflow: hidden;
  cursor: zoom-in;
  background: #f1ece2;
  box-shadow: var(--soft);
}
.ny-g img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 0.4s;
}
.ny-g:hover img {
  transform: scale(1.04);
}

/* ---------- почему мы ---------- */
.ny-why {
  position: relative;
  border-radius: 40px;
  padding: 44px;
  color: #fff;
  background: url("/assets/img/ny-snowflakes.svg") 0 0 / 240px 240px, var(--ny-pine);
  box-shadow: var(--shadow);
}
.ny-why .eyebrow {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.22);
  color: #fff;
  box-shadow: none;
}
.ny-why h2 {
  font-family: "Playfair Display", serif;
  font-size: clamp(30px, 4vw, 48px);
  margin: 18px 0 28px;
  line-height: 1.05;
}
.ny-why-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.ny-why-item {
  display: flex;
  gap: 16px;
  padding: 20px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.08);
}
.ny-ico {
  width: 54px;
  height: 54px;
  flex: none;
  display: grid;
  place-items: center;
  font-size: 26px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
}
.ny-why-item h3 {
  margin: 4px 0 6px;
  font-size: 18px;
}
.ny-why-item p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 700;
  line-height: 1.5;
}
.ny-why .doc-link {
  color: var(--gold) !important;
}
/* белочка сидит на верхнем краю зелёного блока */
.ny-why-art {
  position: absolute;
  right: 40px;
  top: -78px;
  width: 170px;
  height: auto;
  pointer-events: none;
  filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.18));
}

/* ---------- билет-цена ---------- */
.ny-ticket,
.ny-form-card,
.ny-about {
  position: relative;
}
.ny-ticket:before,
.ny-form-card:before {
  content: "";
  position: absolute;
  z-index: 2;
  top: -40px;
  width: 230px;
  height: 100px;
  pointer-events: none;
  background: url("/assets/img/ny-branch.svg") center / contain no-repeat;
}
.ny-ticket:before {
  left: -28px;
  transform: scaleX(-1) rotate(-10deg);
}
.ny-form-card:before {
  right: -24px;
  transform: rotate(10deg);
}
.ny-ticket {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  border-radius: 36px;
  box-shadow: var(--soft);
  background: #fff;
  border: 1px solid var(--line);
}
.ny-ticket-main {
  padding: 40px;
  border-radius: 36px 0 0 36px;
}
.ny-ticket-label {
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 13px;
  color: var(--ny-pine);
}
.ny-ticket-cost {
  font-family: "Playfair Display", serif;
  font-size: clamp(44px, 6vw, 68px);
  font-weight: 800;
  color: var(--navy);
  margin: 8px 0 18px;
  line-height: 1;
}
.ny-ticket-cost small {
  font-family: Nunito, system-ui, sans-serif;
  font-size: 18px;
  color: var(--muted);
}
.ny-ticket ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}
.ny-ticket li {
  position: relative;
  padding-left: 30px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.45;
}
.ny-ticket li:before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--ny-pine-soft);
  color: var(--ny-pine);
  display: grid;
  place-items: center;
  font-size: 13px;
}
.ny-ticket-side {
  padding: 40px 32px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 8px;
  text-align: center;
  background: var(--ny-warm);
  border-left: 2px dashed var(--line);
  border-radius: 0 36px 36px 0;
}
.ny-ticket-dates-label {
  font-size: 12.5px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ny-pine);
}
.ny-ticket-dates {
  display: flex;
  gap: 8px;
}
.ny-ticket-dates span {
  min-width: 62px;
  padding: 8px 6px;
  display: grid;
  justify-items: center;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--line);
  font-size: 12px;
  font-weight: 800;
  color: var(--muted);
}
.ny-ticket-dates b {
  font-size: 24px;
  line-height: 1.1;
  color: var(--navy);
}
.ny-ticket-times {
  margin: 8px 0 14px;
  display: grid;
  grid-template-columns: auto auto;
  gap: 4px 12px;
  text-align: left;
  font-weight: 800;
  line-height: 1.45;
}
.ny-ticket-times dt {
  color: var(--navy);
}
.ny-ticket-times dd {
  margin: 0;
  color: var(--muted);
}

/* ---------- текст «о празднике» ---------- */
.ny-about {
  padding: 40px 44px;
  border-radius: 36px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--soft);
}
.ny-about h2 {
  font-family: "Playfair Display", serif;
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.08;
  color: var(--navy);
  margin: 0 0 20px;
  max-width: 720px;
}
.ny-about-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}
.ny-about p {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
  line-height: 1.6;
}

/* ---------- форма ---------- */
.ny-form-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
  padding: 44px;
  border-radius: 40px;
  background: linear-gradient(135deg, #fff, var(--ny-warm));
  border: 1px solid var(--line);
  box-shadow: var(--soft);
}
.ny-form-intro h2 {
  font-family: "Playfair Display", serif;
  font-size: clamp(30px, 3.6vw, 44px);
  line-height: 1.05;
  color: var(--navy);
  margin: 18px 0 14px;
}
.ny-form-intro > p {
  color: var(--muted);
  font-weight: 700;
  line-height: 1.55;
}
.ny-form-points {
  list-style: none;
  padding: 0;
  margin: 20px 0;
  display: grid;
  gap: 10px;
  font-weight: 900;
  color: var(--navy);
}
.ny-form-card .form-alt {
  justify-content: flex-start;
}
.ny-form-art {
  display: block;
  width: 100%;
  max-width: 460px;
  height: auto;
  margin: 28px auto 0;
}
.ny-form-card .form {
  scroll-margin-top: 110px;
  margin-top: 0;
}
.ny-privacy {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--muted) !important;
  font-weight: 700 !important;
  font-size: 14px;
}
.ny-privacy input {
  width: auto !important;
  margin-top: 3px;
}
.ny-submit {
  font-size: 17px;
}

/* ---------- липкая кнопка (мобильные) ---------- */
.ny-sticky {
  display: none;
}
@media (max-width: 760px) {
  .ny-sticky {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 60;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 10px 10px 18px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid var(--line);
    backdrop-filter: blur(10px);
    box-shadow: 0 14px 34px rgba(7, 29, 73, 0.16);
    transform: translateY(140%);
    transition: transform 0.3s ease;
  }
  .ny-sticky.is-visible {
    transform: none;
  }
  .ny-sticky-info {
    display: grid;
  }
  .ny-sticky-info b {
    font-size: 19px;
    color: var(--navy);
  }
  .ny-sticky-info span {
    font-size: 12.5px;
    font-weight: 800;
    color: var(--muted);
  }
  .ny-sticky .btn {
    padding: 13px 20px;
  }
  /* кнопка «версия для слабовидящих» не должна перекрывать липкую панель */
  body.ny-sticky-on .a11y-toggle {
    bottom: 86px;
  }
}

/* ---------- адаптив ---------- */
@media (max-width: 980px) {
  .ny-hero-grid,
  .ny-form-card {
    grid-template-columns: 1fr;
  }
  .ny-photo {
    width: min(380px, 92%);
  }
  .ny-gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .ny-ticket {
    grid-template-columns: 1fr;
  }
  .ny-ticket-main {
    border-radius: 36px 36px 0 0;
  }
  .ny-ticket-side {
    border-left: 0;
    border-top: 2px dashed var(--line);
    border-radius: 0 0 36px 36px;
  }
  .ny-about-cols {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}
@media (max-width: 680px) {
  section {
    padding: 52px 0;
  }
  .ny-hero {
    padding: 18px 0 24px;
  }
  .ny-hero h1 span {
    white-space: normal;
  }
  .ny-facts {
    gap: 8px;
  }
  .ny-fact {
    padding: 12px;
  }
  .ny-fact b {
    font-size: 18px;
  }
  .ny-fact span {
    font-size: 12px;
  }
  .ny-hero .hero-actions .btn {
    width: 100%;
  }
  .ny-photo-deco {
    top: -48px;
    height: 112px;
  }
  .ny-bauble {
    top: 42px;
  }
  .ny-bauble:after {
    width: 28px;
    height: 28px;
    margin-left: -14px;
    bottom: -25px;
  }
  .poster:before,
  .ny-ticket:before,
  .ny-form-card:before {
    width: 160px;
    height: 70px;
    top: -28px;
  }
  .ny-about {
    padding: 24px;
    border-radius: 30px;
  }
  .ny-badge {
    left: -8px;
    font-size: 13px;
    padding: 10px 12px;
  }
  .poster {
    padding: 24px 18px;
    gap: 16px;
    border-radius: 28px;
  }
  .poster-time b {
    font-size: 30px;
  }
  .poster-dates-grid {
    gap: 8px;
  }
  .ny-slot {
    padding: 10px 2px;
    border-radius: 14px;
  }
  .ny-slot b {
    font-size: 24px;
  }
  .ny-slot-sub {
    font-size: 11.5px;
  }
  .poster-foot {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
  .poster-foot .btn {
    width: 100%;
  }
  .ny-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .ny-why-grid {
    grid-template-columns: 1fr;
  }
  .ny-why,
  .ny-ticket-main,
  .ny-form-card {
    padding: 24px;
  }
  .ny-why,
  .ny-form-card {
    border-radius: 30px;
  }
  .ny-ticket-side {
    padding: 28px 20px;
  }
  .ny-ticket-side .btn {
    width: 100%;
  }
  .ny-form-card .form {
    padding: 18px;
  }
  footer {
    padding-bottom: 96px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ny-bauble {
    animation: none;
  }
}

/* ---------- декор не должен перекрывать текст ----------
   Ветки живут в отдельной «полосе» над контентом: у карточек увеличен
   верхний отступ ровно на высоту ветки, сама ветка почти не наклонена. */
.ny-photo-deco {
  left: -4%;
  right: -8%;
}
.poster {
  padding-top: 62px;
}
.poster:before {
  top: -40px;
  right: -18px;
  width: 190px;
  height: 84px;
  transform: rotate(5deg);
}
.poster--older:before {
  left: -18px;
  transform: scaleX(-1) rotate(5deg);
}
.ny-ticket-main {
  padding-top: 70px;
}
.ny-ticket:before {
  top: -44px;
  left: -18px;
  width: 200px;
  height: 88px;
  transform: scaleX(-1) rotate(-4deg);
}
.ny-form-card {
  padding-top: 78px;
}
.ny-form-card:before {
  top: -44px;
  right: -18px;
  width: 200px;
  height: 88px;
  transform: rotate(4deg);
}

/* место под ветку между заголовком секции и карточками */
#afisha .head,
#place .head {
  margin-bottom: 64px;
}

/* ---------- подарочный сертификат ---------- */
.ny-cert {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 44px;
  align-items: center;
}
.ny-cert-img {
  display: block;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
  transform: rotate(-1.5deg);
  transition: transform 0.3s;
}
.ny-cert-img:hover {
  transform: rotate(0) scale(1.01);
}
.ny-cert-img img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 24px 50px rgba(7, 29, 73, 0.16);
}
.ny-cert-text h2 {
  font-family: "Playfair Display", serif;
  font-size: clamp(30px, 3.6vw, 44px);
  line-height: 1.05;
  color: var(--navy);
  margin: 16px 0 14px;
}
.ny-cert-text > p {
  margin: 0 0 18px;
  color: var(--muted);
  font-weight: 700;
  line-height: 1.55;
}
.ny-cert-steps {
  list-style: none;
  counter-reset: cert;
  margin: 0 0 24px;
  padding: 0;
  display: grid;
  gap: 10px;
}
.ny-cert-steps li {
  counter-increment: cert;
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  color: var(--navy);
}
.ny-cert-steps li:before {
  content: counter(cert);
  flex: none;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--ny-pine-soft);
  color: var(--ny-pine);
  font-weight: 900;
}

/* ---------- как нас найти ---------- */
.ny-place {
  position: relative;
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 0;
  border-radius: 36px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--soft);
}
.ny-place:before {
  content: "";
  position: absolute;
  z-index: 2;
  top: -44px;
  left: -18px;
  width: 200px;
  height: 88px;
  pointer-events: none;
  background: url("/assets/img/ny-branch.svg") center / contain no-repeat;
  transform: scaleX(-1) rotate(-4deg);
}
.ny-place-info {
  padding: 64px 36px 36px;
  display: grid;
  align-content: start;
  gap: 22px;
  border-radius: 36px 0 0 36px;
  background: #fff;
  border-right: 1px solid var(--line);
}
.ny-place-info h3 {
  margin: 0;
  font-family: "Playfair Display", serif;
  font-size: 28px;
  line-height: 1.15;
  color: var(--navy);
}
.ny-place-list {
  margin: 0;
  display: grid;
  gap: 6px;
}
.ny-place-list dt {
  margin-top: 10px;
  font-size: 12.5px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ny-pine);
}
.ny-place-list dt:first-child {
  margin-top: 0;
}
.ny-place-list dd {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.45;
  color: var(--navy);
}
.ny-place-list a {
  color: var(--navy);
}
.ny-place-route {
  justify-self: start;
}
.ny-place-map {
  min-height: 420px;
  border-radius: 0 36px 36px 0;
  overflow: hidden;
}
.ny-place-map iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 420px;
  border: 0;
}

/* ---------- снегопад (canvas из newyear.js) ---------- */
.ny-snowfall {
  position: fixed;
  inset: 0;
  z-index: 40;
  pointer-events: none;
}

@media (max-width: 980px) {
  .ny-cert,
  .ny-place {
    grid-template-columns: 1fr;
  }
  .ny-cert {
    gap: 28px;
  }
  .ny-place-info {
    border-radius: 36px 36px 0 0;
  }
  .ny-place-map {
    border-radius: 0 0 36px 36px;
  }
}
@media (max-width: 680px) {
  .ny-photo {
    margin-top: 64px;
  }
  .poster {
    padding-top: 50px;
  }
  .poster:before,
  .ny-ticket:before,
  .ny-form-card:before,
  .ny-place:before {
    top: -30px;
    width: 140px;
    height: 62px;
  }
  .ny-ticket-main {
    padding-top: 52px;
  }
  .ny-form-card {
    padding-top: 56px;
  }
  .ny-place-info {
    padding: 48px 22px 24px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .ny-place-map,
  .ny-place-map iframe {
    min-height: 340px;
  }
  .ny-cert-text .btn {
    width: 100%;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ny-snowfall {
    display: none;
  }
}

.ny-polaroid img {
  object-position: 50% 45%;
}

/* ---------- три афиши: ветки по краям ряда, средняя без ветки ---------- */
.poster--baby:before {
  right: auto;
  left: -18px;
  transform: scaleX(-1) rotate(5deg);
}
.poster--kids:before {
  display: none;
}
.poster--older:before {
  left: auto;
  right: -18px;
  transform: rotate(5deg);
}
/* в три колонки афиши помещаются только на широком экране */
@media (max-width: 1120px) {
  .posters {
    grid-template-columns: 1fr;
    max-width: 560px;
    margin: 0 auto;
    gap: 64px;
  }
  .poster--kids:before {
    display: block;
    left: auto;
    right: -18px;
    transform: rotate(5deg);
  }
}
@media (max-width: 980px) {
  .ny-form-art {
    max-width: 380px;
  }
}
@media (max-width: 680px) {
  .ny-why {
    padding-top: 64px;
  }
  .ny-why-art {
    right: 14px;
    top: -58px;
    width: 112px;
  }
  .poster-art {
    height: 136px;
  }
  .poster-time b {
    font-size: 30px;
  }
  .ny-form-art {
    max-width: 300px;
    margin-top: 20px;
  }
}
