/* Figma 5760:993. The same six semantic tables reflow from the source
   comparison rows into stacked periods; every value has one data source. */
.winter-pricing {
  --pricing-outline: linear-gradient(180deg, rgb(58 97 217 / 20%), rgb(30.737328 51.40553 115 / 1%));
  position: relative;
  color: #3a2b43;
  font-family: var(--font-body);
  padding: 2.5rem clamp(16px, 2.3vw, 32px) 3.5rem;
}
.winter-pricing__intro { position: relative; z-index: 3; text-align: center; }
.winter-pricing__label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 7.4375rem;
  min-height: 1.875rem;
  padding: .4rem 1rem;
  border-radius: 1.25rem;
  background: rgb(40 83 213 / 10%);
  color: #364a99;
  font-size: clamp(.75rem, .69rem + .25vw, .875rem);
  font-weight: 500;
  line-height: 1.11;
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
}
.winter-pricing__label > span { opacity: .8; }
.winter-pricing__title {
  max-width: 55rem;
  margin: .9375rem auto 0;
  font-size: clamp(1.5rem, 1.3rem + 1vw, 1.875rem);
  font-weight: 600;
  line-height: 1.11;
  letter-spacing: 0;
  text-wrap: balance;
  overflow-wrap: anywhere;
}
.winter-pricing__title > span { color: #2853d5; }
.winter-pricing__description {
  max-width: 33.375rem;
  margin: .8rem auto 0;
  opacity: .8;
  font-size: clamp(.8125rem, .75rem + .25vw, .875rem);
  font-weight: 500;
  line-height: 1.25;
}
.winter-pricing__description > strong { color: #2853d5; font-weight: 700; }
.winter-pricing__packages { display: grid; gap: 1.25rem; max-width: 70rem; margin: 2rem auto 0; }
.winter-pricing__package {
  position: relative;
  min-width: 0;
  border-radius: 2rem;
  background: #2853d5;
}
.winter-pricing__package--one-actor { z-index: 3; }
.winter-pricing__package--two-actors { z-index: 1; }
.winter-pricing__profile {
  position: relative;
  min-height: 9.5rem;
  padding: 2.25rem clamp(20px, 3vw, 32px);
  overflow: clip;
  color: #fff;
}
.winter-pricing__count {
  position: relative;
  z-index: 1;
  margin: 0 96px 0 0;
  opacity: .4;
  font-size: .875rem;
  font-weight: 500;
  line-height: 1.25;
}
.winter-pricing__name {
  position: relative;
  z-index: 1;
  margin: .415625rem 96px 0 0;
  font-size: .9375rem;
  font-weight: 600;
  line-height: 1.11;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}
.winter-pricing__portrait {
  position: absolute;
  width: 156px;
  height: 275px;
  right: 8px;
  bottom: -38px;
  pointer-events: none;
}
.winter-pricing__periods { position: relative; border-radius: 2rem; background: #f9f9fb; }
.winter-pricing__period { position: relative; min-width: 0; padding: 1.5rem 1.25rem; }
.winter-pricing__period--new-year-eve { border: 1px solid transparent; border-radius: 2rem; background: #fff; }
.winter-pricing__package::before,
.winter-pricing__periods::before,
.winter-pricing__period--new-year-eve::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  padding: 1px;
  border-radius: inherit;
  background: var(--pricing-outline);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  pointer-events: none;
}
.winter-pricing__period--new-year-eve::before { inset: -1px; }
.winter-pricing__period-title {
  display: flex;
  align-items: center;
  gap: .4375rem;
  min-height: 1.4375rem;
  margin: 0 0 1rem;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.11;
  letter-spacing: 0;
  color: #2853d5;
}
.winter-pricing__period-title > span { opacity: .82; }
.winter-pricing__calendar { display: block; flex: 0 0 auto; width: 20px; height: 20px; }
.winter-pricing__calendar--star { width: 23px; height: 23px; }
.winter-pricing__table { border-collapse: collapse; table-layout: fixed; width: 100%; font-size: .875rem; }
.winter-pricing__table th, .winter-pricing__table td { padding: .4rem .25rem; text-align: left; vertical-align: top; }
.winter-pricing__table th:first-child { width: 40%; padding-left: 0; }
.winter-pricing__table th:last-child, .winter-pricing__table td:last-child { padding-right: 0; }
.winter-pricing__table thead th { padding-top: 0; padding-bottom: .6rem; color: #4b6fdc; font-weight: 600; line-height: 1.25; }
.winter-pricing__table thead th { color: rgb(75 111 220 / 70%); }
.winter-pricing__table tbody th { font-weight: 500; color: rgb(58 43 67 / 60%); line-height: 1.4; }
.winter-pricing__table td { font-weight: 500; color: rgb(58 43 67 / 60%); line-height: 1.4; }
.winter-pricing__table td.winter-pricing__price--long { font-weight: 600; color: rgb(58 43 67 / 80%); }
.winter-pricing__table tbody tr:not(:last-child) { border-bottom: 1px solid rgb(0 0 0 / 10%); }
.winter-pricing__table--single th:first-child { width: 70%; }
.winter-pricing__date-ending { white-space: normal; }
.winter-pricing__time-icon { display: inline-block; width: 16px; height: 16px; vertical-align: -.125em; margin-left: .15em; }
.winter-pricing__time-icon--moon { width: 14px; height: 14px; }
/* Phone/tablet, after kvestkids.ru/ded-moroz-v-ofis (.ny-pricing): every
   package is one card read top to bottom — December, the 31 December band
   across the whole card, January — with the actor badge sitting on the card's
   top edge and prices in right-aligned columns. Colours come from the desktop
   Figma: the blue actor column becomes the badge, 31 December stays the white
   raised panel. Heading sizes are the reference's converted to Golos Text. */
@container winter-offers (width < 75rem) {
  .winter-pricing {
    --pricing-pad: clamp(1.25rem, calc(.75rem + 2.5cqw), 2.75rem);
    --pricing-edge: 2.0625rem;
    padding: 2.25rem var(--compact-page-gutter) 3rem;
  }
  .winter-pricing__title { font-size: calc(1.75rem * var(--winter-fit-heading)); line-height: 1.1; }
  .winter-pricing__description { margin-top: 1.25rem; font-size: calc(1rem * var(--winter-fit-text)); line-height: 1.2; }
  .winter-pricing__packages { gap: 2.5rem; max-width: none; margin-top: 2.25rem; }
  .winter-pricing__package { padding-top: var(--pricing-edge); border-radius: 0; background: none; }
  .winter-pricing__package::before { display: none; }
  .winter-pricing__profile {
    position: absolute;
    z-index: 3;
    top: var(--pricing-edge);
    left: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: fit-content;
    max-width: 100%;
    min-height: 4.125rem;
    padding: .625rem 1.5rem .625rem 5.25rem;
    border-radius: 999px;
    overflow: visible;
    background: #2853d5;
    box-shadow: 0 .875rem 1.875rem -1rem rgb(40 83 213 / 70%);
    translate: 0 -50%;
  }
  .winter-pricing__count, .winter-pricing__name { margin-right: 0; }
  .winter-pricing__name { order: -1; margin-top: 0; font-size: 1rem; }
  .winter-pricing__count { margin-top: .3rem; }
  /* The desktop cut-out, anchored to the badge's top edge so the heads rise
     the same ~14px above it whatever the name's line count; the export's
     glow below the feet is clipped. */
  .winter-pricing__portrait {
    top: -5.5625rem;
    left: -.5rem;
    right: auto;
    bottom: auto;
    width: 6.875rem;
    height: auto;
    aspect-ratio: 312 / 550;
    clip-path: inset(0 0 20% 0);
  }
  .winter-pricing__package--two-actors .winter-pricing__profile { padding-left: 5.75rem; }
  .winter-pricing__package--two-actors .winter-pricing__portrait { top: -5.75rem; left: -.375rem; clip-path: inset(0 0 8% 0); }
  .winter-pricing__periods {
    display: grid;
    gap: clamp(1.25rem, calc(.9rem + 1.6cqw), 2rem);
    padding: 4rem var(--pricing-pad) clamp(1.25rem, calc(.6rem + 3cqw), 2.5rem);
    border-radius: 1.75rem;
  }
  .winter-pricing__period { padding: 0; }
  .winter-pricing__period--new-year-eve {
    margin-inline: calc(-1 * var(--pricing-pad));
    padding: clamp(1.25rem, calc(.9rem + 1.6cqw), 2rem) var(--pricing-pad);
    border-radius: 1.5rem;
  }
  .winter-pricing__period-title { margin-bottom: 1rem; }
  .winter-pricing__table { font-size: clamp(.875rem, calc(.82rem + .25cqw), .9375rem); }
  .winter-pricing__table th, .winter-pricing__table td { padding-block: clamp(.375rem, calc(.25rem + .6cqw), .625rem); vertical-align: middle; }
  .winter-pricing__table th:first-child { width: 44%; }
  .winter-pricing__table--single th:first-child { width: 60%; }
  .winter-pricing__table thead th { padding-top: 0; padding-bottom: .75rem; }
  .winter-pricing__table td,
  .winter-pricing__table thead th + th { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
}
/* Wide phones and tablets: «Старый Новый год, утро» fits on one line. */
@container winter-offers (30rem <= width < 75rem) {
  .winter-pricing__old-year .winter-pricing__date > br { display: none; }
}
@container winter-offers (width < 18rem) {
  /* At enlarged text sizes, dates occupy their own line above the prices. */
  .winter-pricing__table,
  .winter-pricing__table thead,
  .winter-pricing__table tbody { display: block; }
  .winter-pricing__table tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 8px; }
  .winter-pricing__table th:first-child { width: auto; grid-column: 1 / -1; }
  .winter-pricing__table thead th { padding-bottom: .4rem; }
  .winter-pricing__table tbody th { padding-bottom: 0; }
  .winter-pricing__table td { padding-top: .2rem; }
  .winter-pricing__table--single tr { grid-template-columns: minmax(0, 1fr); }
  .winter-pricing__table th, .winter-pricing__table td, .winter-pricing__table thead th + th { overflow-wrap: anywhere; white-space: normal; text-align: left; }
  /* Enlarged text: the reading width goes to the prices, not to gutters. */
  .winter-pricing { --pricing-pad: .625rem; padding-inline: .5rem; }
  .winter-pricing__table tbody th, .winter-pricing__table td { overflow-wrap: normal; }
  /* The badge joins the flow: an enlarged name needs the whole width. */
  .winter-pricing__package { padding-top: 0; }
  .winter-pricing__profile { position: relative; top: auto; width: auto; margin-bottom: -1.5rem; padding: .875rem 1.25rem; border-radius: 1.5rem; translate: none; }
  .winter-pricing__portrait { display: none; }
  .winter-pricing__package--two-actors .winter-pricing__profile { padding-left: 1.25rem; }
  .winter-pricing__periods { padding-top: 2.75rem; }
  .winter-pricing__name, .winter-pricing__count { overflow-wrap: anywhere; }
}
@container winter-offers (width >= 75rem) {
  .winter-pricing { width: calc(87.5 * var(--winter-unit)); min-height: calc(49.0625 * var(--winter-unit)); margin-inline: auto; padding: calc(2.375 * var(--winter-unit)) 0 calc(2.5 * var(--winter-unit)); }
  .winter-pricing__intro { transform: translateX(calc(.6875 * var(--winter-unit))); }
  .winter-pricing__label { width: calc(7.4375 * var(--winter-unit)); min-width: 0; height: calc(1.875 * var(--winter-unit)); min-height: 0; padding: 0; border-radius: calc(1.25 * var(--winter-unit)); font-size: calc(.875 * var(--winter-unit)); transform: translateX(calc(.03125 * var(--winter-unit))); }
  .winter-pricing__label > span { transform: translate(calc(.0625 * var(--winter-unit)), calc(.020625 * var(--winter-unit))); }
  .winter-pricing__title { width: calc(55 * var(--winter-unit)); max-width: none; margin-top: calc(.9375 * var(--winter-unit)); font-size: calc(1.875 * var(--winter-unit)); }
  .winter-pricing__description { width: calc(33.375 * var(--winter-unit)); max-width: none; height: calc(2.0625 * var(--winter-unit)); margin-top: calc(.79375 * var(--winter-unit)); font-size: calc(.875 * var(--winter-unit)); }
  .winter-pricing__packages { width: calc(72.0625 * var(--winter-unit)); max-width: none; margin: calc(.875 * var(--winter-unit)) 0 0 calc(7.75 * var(--winter-unit)); gap: calc(1.1875 * var(--winter-unit)); }
  .winter-pricing__package { display: grid; grid-template-columns: calc(9.75 * var(--winter-unit)) minmax(0, 1fr); min-height: calc(17.1875 * var(--winter-unit)); border-radius: calc(2.5 * var(--winter-unit)); }
  .winter-pricing__profile { min-height: 0; padding: calc(2.25 * var(--winter-unit)) 0 0 calc(2.9375 * var(--winter-unit)); overflow: visible; }
  .winter-pricing__count { margin: 0; font-size: calc(.875 * var(--winter-unit)); }
  .winter-pricing__name { margin: calc(.415625 * var(--winter-unit)) 0 0; font-size: calc(.9375 * var(--winter-unit)); }
  .winter-pricing__portrait { inset: 0; width: calc(9.75 * var(--winter-unit)); height: calc(17.1875 * var(--winter-unit)); }
  .winter-pricing__package--two-actors .winter-pricing__profile { padding-left: calc(2.6875 * var(--winter-unit)); }
  .winter-pricing__periods { position: relative; display: grid; grid-template-columns: calc(19.9375 * var(--winter-unit)) calc(20.6875 * var(--winter-unit)) minmax(0, 1fr); border-radius: calc(2.5 * var(--winter-unit));  }
  .winter-pricing__package--two-actors .winter-pricing__periods { grid-template-columns: calc(19.875 * var(--winter-unit)) calc(20.6875 * var(--winter-unit)) minmax(0, 1fr); }
  /* Preserve the source's bottom space as additional tariff rows grow. */
  .winter-pricing__period { padding: calc(1.5625 * var(--winter-unit)) 0 calc(1.3125 * var(--winter-unit)); }
  .winter-pricing__period--new-year-eve { border: 0; border-radius: calc(2.5 * var(--winter-unit));  }
  .winter-pricing__period--new-year-eve::before { inset: 0; }
  .winter-pricing__period-title { position: relative; height: calc(1.4375 * var(--winter-unit)); min-height: 0; margin: 0 0 0 calc(2.4375 * var(--winter-unit)); gap: calc(.4375 * var(--winter-unit)); font-size: calc(1 * var(--winter-unit)); align-items: flex-start; }
  .winter-pricing__period-title > span { padding-top: calc(.0625 * var(--winter-unit)); }
  .winter-pricing__calendar { width: calc(1.25 * var(--winter-unit)); height: calc(1.25 * var(--winter-unit)); margin-top: calc(.0625 * var(--winter-unit)); }
  .winter-pricing__calendar--star { width: calc(1.4375 * var(--winter-unit)); height: calc(1.4375 * var(--winter-unit)); margin-top: 0; }
  .winter-pricing__period--new-year-eve .winter-pricing__period-title { margin-left: calc(1.75 * var(--winter-unit)); gap: calc(.3125 * var(--winter-unit)); }
  .winter-pricing__package--two-actors .winter-pricing__period--new-year-eve .winter-pricing__period-title { margin-left: calc(1.8125 * var(--winter-unit)); }
  .winter-pricing__period--january .winter-pricing__period-title { margin-left: calc(1.375 * var(--winter-unit)); }
  .winter-pricing__package--two-actors .winter-pricing__period--january .winter-pricing__period-title { margin-left: calc(1.4375 * var(--winter-unit)); }
  .winter-pricing__table { display: block; width: calc(17.75 * var(--winter-unit)); margin: calc(.75 * var(--winter-unit)) 0 0 calc(1.1875 * var(--winter-unit)); font-size: calc(.875 * var(--winter-unit)); border-collapse: separate; border-spacing: 0; }
  .winter-pricing__table thead, .winter-pricing__table tbody { display: block; }
  .winter-pricing__table tr { position: relative; display: grid; grid-template-columns: calc(7.3125 * var(--winter-unit)) calc(5.6875 * var(--winter-unit)) calc(4.75 * var(--winter-unit)); }
  .winter-pricing__table--single tr { grid-template-columns: calc(13 * var(--winter-unit)) calc(4.75 * var(--winter-unit)); }
  .winter-pricing__table th, .winter-pricing__table td { width: auto; padding: 0; border: 0; }
  .winter-pricing__table th:first-child { width: auto; }
  .winter-pricing__table thead th { height: calc(1.625 * var(--winter-unit)); padding: 0; line-height: 1.25; white-space: nowrap; }
  .winter-pricing__table tbody th, .winter-pricing__table td { min-height: calc(1.75 * var(--winter-unit)); padding: 0; line-height: 2; }
  .winter-pricing__table tbody tr:not(:last-child) { border: 0; }
  .winter-pricing__table tbody tr:not(:last-child)::after { content: ""; position: absolute; top: calc(100% + .0625 * var(--winter-unit)); left: calc(1.25 * var(--winter-unit)); right: calc(.875 * var(--winter-unit)); height: 1px; background: rgb(0 0 0 / 10%); pointer-events: none; }
  .winter-pricing__period--december .winter-pricing__table thead th:first-child { padding-left: calc(1.25 * var(--winter-unit)); }
  .winter-pricing__period--december .winter-pricing__date { display: block; width: calc(6.375 * var(--winter-unit)); text-align: center; }
  .winter-pricing__period--new-year-eve .winter-pricing__table { margin-left: calc(1.75 * var(--winter-unit)); }
  .winter-pricing__package--two-actors .winter-pricing__period--new-year-eve .winter-pricing__table { margin-left: calc(1.8125 * var(--winter-unit)); }
  .winter-pricing__period--new-year-eve .winter-pricing__table tbody tr:not(:last-child)::after { left: calc(.9375 * var(--winter-unit)); right: calc(.0625 * var(--winter-unit)); }
  .winter-pricing__period--january .winter-pricing__table { margin-left: calc(1.625 * var(--winter-unit)); width: calc(18.4375 * var(--winter-unit)); }
  .winter-pricing__package--two-actors .winter-pricing__period--january .winter-pricing__table { margin-left: calc(1.6875 * var(--winter-unit)); }
  .winter-pricing__period--january .winter-pricing__table tr { grid-template-columns: calc(8 * var(--winter-unit)) calc(5.6875 * var(--winter-unit)) calc(4.75 * var(--winter-unit)); }
  .winter-pricing__period--january .winter-pricing__table--single tr { grid-template-columns: calc(13.6875 * var(--winter-unit)) calc(4.75 * var(--winter-unit)); }
  .winter-pricing__period--january .winter-pricing__table tbody tr:not(:last-child)::after { left: 0; right: calc(.5 * var(--winter-unit)); }
  .winter-pricing__period--january .winter-pricing__old-year { height: calc(3 * var(--winter-unit)); }
  .winter-pricing__period--january .winter-pricing__old-year:not(:last-child)::after { top: calc(100% - .0625 * var(--winter-unit)); }
  .winter-pricing__period--january .winter-pricing__old-year th { height: auto; }
  .winter-pricing__old-year .winter-pricing__date { display: block; width: calc(6.375 * var(--winter-unit)); }
  .winter-pricing__date-ending { display: block; line-height: 1.4; white-space: nowrap; transform: translateY(calc(-.25 * var(--winter-unit))); }
  .winter-pricing__old-year .winter-pricing__date > br { display: none; }
  .winter-pricing__period--january .winter-pricing__old-year td { height: auto; padding-top: calc(.1875 * var(--winter-unit)); line-height: 2.95; }
  .winter-pricing__package--one-actor .winter-pricing__old-year:last-child td { padding-top: calc(.5625 * var(--winter-unit)); line-height: 2; }
  .winter-pricing__package--one-actor .winter-pricing__old-year:last-child .winter-pricing__price--long { padding-top: 0; line-height: 2.95; }
  .winter-pricing__package--two-actors .winter-pricing__old-year:last-child td { padding-top: calc(.125 * var(--winter-unit)); }
  .winter-pricing__time-icon { width: calc(1 * var(--winter-unit)); height: calc(1 * var(--winter-unit)); margin-left: calc(.25 * var(--winter-unit)); vertical-align: calc(-.125 * var(--winter-unit)); }
  .winter-pricing__time-icon--moon { width: calc(.875 * var(--winter-unit)); height: calc(.875 * var(--winter-unit)); }
  .winter-pricing__time-icon--sun { position: relative; top: calc(.0625 * var(--winter-unit)); }
}
