/* Новый год 2027 (/new_year). Всё внутри .ny27, чтобы не задевать стили сайта */

.ny27 {
    --ny-blue: #09a4df;
    --ny-blue-dark: #0789bb;
    --ny-navy: #0a1a36;
    --ny-navy-2: #14305c;
    --ny-gold: #e9b95e;
    --ny-gold-light: #f7dfa6;
    --ny-text: #1d2433;
    --ny-muted: #687187;
    --ny-soft: #f2f8fc;
    --ny-pale: #f5fafd;
    --ny-line: #dbe7f0;
    --ny-radius: 16px;
    color: var(--ny-text);
    text-align: left;
}

.ny27 *,
.ny27 *::before,
.ny27 *::after {
    box-sizing: border-box;
}

.ny27 img {
    max-width: 100%;
}

.ny27 h2,
.ny27 h3 {
    margin: 0;
    letter-spacing: 0;
    text-transform: none;
}

.ny27 p {
    margin: 0;
}

.ny27-narrow {
    max-width: 960px;
}

.ny27-section {
    position: relative;
    padding: 72px 0;
    background: #fff;
}

/* все секции после баннера белые — не удваиваем отступ между ними */
.ny27-section + .ny27-section {
    padding-top: 0;
}

/* плашки и Шулюм-пати идут одним списком: отступ как между плашками */
.ny27 .ny27-section--joined {
    padding-bottom: 16px;
}

/* под фиксированной шапкой сайта */
#ny27-pay,
#ny27-program {
    scroll-margin-top: 110px;
}

.ny27-icon {
    width: 24px;
    height: 24px;
    flex: none;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Кнопки */

.ny27-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 56px;
    padding: 16px 40px;
    border: 1px solid transparent;
    border-radius: 3px;
    font-weight: 600;
    font-size: 13px;
    line-height: 24px;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: .06em;
    cursor: pointer;
    transition: background-color .33s, border-color .33s, color .33s;
}

.ny27-btn:hover,
.ny27-btn:focus-visible {
    text-decoration: none;
}

/* кнопки сайта (.button), только золотые — под тёмный баннер */
.ny27-btn--gold {
    border-color: var(--ny-gold);
    background: var(--ny-gold);
    color: var(--ny-navy);
}

.ny27-btn--gold:hover,
.ny27-btn--gold:focus-visible {
    border-color: #fff;
    background: #fff;
    color: var(--ny-navy);
}

.ny27-btn--ghost {
    border-color: rgba(255, 255, 255, .45);
    color: #fff;
}

.ny27-btn--ghost:hover,
.ny27-btn--ghost:focus-visible {
    border-color: #fff;
    background: rgba(255, 255, 255, .08);
    color: #fff;
}

/* «Оплатить»: кнопка сайта .button.button-primary, только крупнее (по ТЗ) */
.ny27 .ny27-pay-btn {
    min-width: 220px;
    margin-top: 0;
    padding: 16px 40px;
    font-size: 13px;
    /* в аккордеоне сайт ставит ссылкам text-align: left */
    text-align: center;
}

.ny27 .ny27-modal__btn {
    margin-top: 0;
}

/* Первый экран */

.ny27-hero {
    position: relative;
    overflow: hidden;
    padding: 96px 0 80px;
    background:
        radial-gradient(circle at 12% 22%, rgba(233, 185, 94, .22), transparent 28%),
        radial-gradient(circle at 88% 78%, rgba(9, 164, 223, .25), transparent 32%),
        radial-gradient(circle at 70% 12%, rgba(233, 185, 94, .12), transparent 20%),
        linear-gradient(160deg, var(--ny-navy-2) 0%, var(--ny-navy) 60%);
    color: #fff;
}

/* Снег: два слоя едут через transform (видеокарта), а не через background-position
   (перерисовка всего баннера каждый кадр — тормозит на слабых Android).
   Слой выше блока на один период узора и сдвигается ровно на него — цикл без рывка */
.ny27-hero__snow {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    opacity: .7;
}

.ny27-hero__snow::before,
.ny27-hero__snow::after {
    position: absolute;
    top: -240px;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle, rgba(255, 255, 255, .85) 1.5px, transparent 2px),
        radial-gradient(circle, rgba(255, 255, 255, .5) 1px, transparent 1.5px);
    background-size: 240px 240px, 120px 120px;
    background-position: 0 0, 40px 60px;
    animation: ny27-snow 32s linear infinite;
    will-change: transform;
    content: "";
}

/* второй слой: крупнее, медленнее и в другом месте — объём, как раньше */
.ny27-hero__snow::after {
    background-image: radial-gradient(circle, rgba(255, 255, 255, .35) 2px, transparent 2.5px);
    background-size: 240px 240px;
    background-position: 120px 30px;
    animation-duration: 48s;
}

@keyframes ny27-snow {
    to {
        transform: translateY(240px);
    }
}

/* Гирлянда: провод из дуг + лампочки */
.ny27-garland {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-around;
    height: 46px;
    padding: 0 2%;
    background: radial-gradient(ellipse 50% 24px at 50% 0, transparent 96%, rgba(255, 255, 255, .25) 97%, rgba(255, 255, 255, .25) 100%, transparent 101%) 0 -2px / 12.5% 46px repeat-x;
    pointer-events: none;
}

.ny27-garland span {
    position: relative;
    width: 10px;
    height: 16px;
    margin-top: 16px;
    border-radius: 50% 50% 45% 45%;
    background: var(--ny-gold);
    box-shadow: 0 0 12px 3px rgba(233, 185, 94, .55);
    animation: ny27-twinkle 2.4s ease-in-out infinite;
}

.ny27-garland span:nth-child(odd) {
    margin-top: 22px;
}

.ny27-garland span::before {
    position: absolute;
    top: -4px;
    left: 2px;
    width: 6px;
    height: 5px;
    border-radius: 1px;
    background: #48546b;
    content: "";
}

.ny27-garland span:nth-child(3n + 2) {
    background: #7fd6f5;
    box-shadow: 0 0 12px 3px rgba(127, 214, 245, .55);
    animation-delay: .8s;
}

.ny27-garland span:nth-child(3n) {
    background: #ff8a7a;
    box-shadow: 0 0 12px 3px rgba(255, 138, 122, .5);
    animation-delay: 1.6s;
}

/* мигаем только прозрачностью — без перерисовки свечения */
@keyframes ny27-twinkle {
    50% {
        opacity: .4;
    }
}

.ny27-hero__inner {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 56px;
    align-items: center;
}

.ny27-hero__eyebrow {
    display: inline-block;
    margin-bottom: 14px;
    color: var(--ny-gold-light);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .03em;
}

.ny27 .ny27-hero__title {
    max-width: 700px;
    color: #fff;
    font-size: 44px;
    font-weight: 700;
    line-height: 1.15;
}

.ny27-hero__lead {
    margin-top: 18px !important;
    color: rgba(255, 255, 255, .8);
    font-size: 19px;
    line-height: 1.5;
}

.ny27-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 32px;
    margin: 32px 0 36px;
    padding: 0;
    list-style: none;
}

.ny27-facts__item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255, 255, 255, .7);
    font-size: 13px;
    line-height: 1.35;
}

.ny27-facts__item .ny27-icon {
    width: 40px;
    height: 40px;
    padding: 8px;
    border-radius: 50%;
    background: rgba(233, 185, 94, .14);
    color: var(--ny-gold);
}

.ny27-facts__item b {
    display: block;
    color: #fff;
    font-size: 16px;
}

.ny27-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

/* Вертикальное видео в «рамке» */
.ny27-video {
    position: relative;
    width: 330px;
    text-align: center;
}

.ny27-video::before {
    position: absolute;
    inset: 8% -18% 12%;
    border-radius: 50%;
    background: radial-gradient(closest-side, rgba(233, 185, 94, .35), transparent);
    filter: blur(20px);
    content: "";
}

.ny27-video__frame {
    position: relative;
    aspect-ratio: 9 / 16;
    overflow: hidden;
    border-radius: 16px;
    background: #000;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .5);
}

.ny27-video__media {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ny27-video__btn {
    position: absolute;
    bottom: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    /* без backdrop-filter: размытие видео под кнопкой каждый кадр тормозит на Android */
    background: rgba(10, 26, 54, .7);
    color: #fff;
    cursor: pointer;
    transition: background-color .25s;
}

.ny27-video__btn:hover,
.ny27-video__btn:focus-visible {
    background: rgba(10, 26, 54, .85);
}

.ny27-video__btn svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.ny27-video__btn--play {
    left: 14px;
}

.ny27-video__btn--play svg {
    fill: currentColor;
    stroke: none;
}

.ny27-video__btn--sound {
    right: 14px;
}

.ny27-video__btn--play .i-play,
.ny27-video.is-paused .ny27-video__btn--play .i-pause,
.ny27-video__btn--sound .i-on,
.ny27-video.is-sound .ny27-video__btn--sound .i-off {
    display: none;
}

.ny27-video.is-paused .ny27-video__btn--play .i-play,
.ny27-video.is-sound .ny27-video__btn--sound .i-on {
    display: inline;
}

.ny27-video__caption {
    position: relative;
    margin-top: 14px !important;
    color: rgba(255, 255, 255, .6);
    font-size: 13px;
}

/* Заголовок секции */

.ny27-heading {
    margin-bottom: 40px;
    text-align: center;
}

.ny27-heading__ornament {
    display: block;
    width: 120px;
    height: 18px;
    margin: 0 auto 14px;
    background:
        radial-gradient(circle, var(--ny-gold) 4px, transparent 4.5px) center / 18px 18px no-repeat,
        linear-gradient(90deg, transparent, var(--ny-gold) 30%, transparent 46%, transparent 54%, var(--ny-gold) 70%, transparent) center / 100% 1px no-repeat;
}

.ny27 .ny27-heading__title {
    color: var(--ny-text);
    font-size: 34px;
    font-weight: 700;
    line-height: 1.2;
}

.ny27-heading__sub {
    margin-top: 10px !important;
    color: var(--ny-muted);
    font-size: 16px;
}

/* Карточки программы */

.ny27-cards {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.ny27-card {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    padding: 0;
    border: 0;
    border-radius: var(--ny-radius);
    background: var(--ny-navy);
    color: #fff;
    font: inherit;
    text-align: left;
    box-shadow: 0 10px 30px rgba(10, 26, 54, .12);
    transition: transform .35s, box-shadow .35s;
}

button.ny27-card {
    cursor: pointer;
}

button.ny27-card:hover,
button.ny27-card:focus-visible {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(10, 26, 54, .22);
}

.ny27-card:focus-visible {
    outline: 3px solid var(--ny-blue);
    outline-offset: 3px;
}

.ny27-card__img {
    margin: 0;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s;
}

button.ny27-card:hover .ny27-card__img {
    transform: scale(1.05);
}

.ny27-card::after {
    position: absolute;
    inset: 40% 0 0;
    background: linear-gradient(to top, rgba(10, 18, 36, .9), rgba(10, 18, 36, .45) 55%, transparent);
    content: "";
}

/* подпись источника фото (kremlin.ru, CC BY 4.0) */
.ny27-card__credit {
    position: absolute;
    z-index: 2;
    top: 12px;
    left: 14px;
    color: rgba(255, 255, 255, .75);
    font-size: 11px;
    text-decoration: none;
    text-shadow: 0 1px 2px rgba(0, 0, 0, .6);
}

.ny27-card__credit:hover,
.ny27-card__credit:focus-visible {
    color: #fff;
    text-decoration: underline;
}

/* карточка-кнопка с подписью-ссылкой рядом (ссылку нельзя класть внутрь <button>) */
.ny27-card-wrap {
    position: relative;
}

.ny27-card-wrap .ny27-card__credit {
    /* подложка как у «глаза»: на светлом фото (снег, небо) иначе не читается;
       ширина — чтобы не заезжать под «глаз» справа */
    max-width: calc(100% - 82px);
    padding: 3px 7px;
    border-radius: 6px;
    background: rgba(40, 30, 25, .55);
    color: rgba(255, 255, 255, .9);
    line-height: 1.35;
    text-shadow: none;
    transition: transform .35s;
}

/* подпись поднимается вместе с карточкой */
.ny27-card-wrap:hover .ny27-card__credit,
.ny27-card-wrap:focus-within .ny27-card__credit {
    transform: translateY(-4px);
}

.ny27-card__eye {
    position: absolute;
    z-index: 2;
    top: 14px;
    right: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(40, 30, 25, .65);
    transition: background-color .25s;
}

button.ny27-card:hover .ny27-card__eye {
    background: var(--ny-blue);
}

.ny27-card__eye svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: #fff;
    stroke-width: 2;
}

.ny27-card__body {
    position: absolute;
    z-index: 2;
    left: 20px;
    right: 20px;
    bottom: 20px;
}

.ny27-card__title {
    display: block;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.2;
}

.ny27-card__sub {
    display: block;
    margin-top: 6px;
    color: rgba(255, 255, 255, .85);
    font-size: 14px;
    line-height: 1.35;
}

/* Карточки без фото: нарисованная иллюстрация */
.ny27-card--decor {
    background:
        radial-gradient(circle at 50% 38%, rgba(233, 185, 94, .3), transparent 45%),
        linear-gradient(160deg, var(--ny-navy-2), var(--ny-navy));
}

.ny27-card--snow {
    background:
        radial-gradient(circle at 50% 38%, rgba(127, 214, 245, .3), transparent 45%),
        linear-gradient(160deg, #1b4c86, var(--ny-navy));
}

.ny27-card__art {
    position: absolute;
    top: 14%;
    left: 50%;
    width: 52%;
    transform: translateX(-50%);
}

.ny27-card__art svg {
    display: block;
    width: 100%;
    fill: none;
    stroke: var(--ny-gold-light);
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.ny27-card--snow .ny27-card__art svg {
    stroke: #cdefff;
}

.ny27-card__art .fill {
    fill: currentColor;
    stroke: none;
    color: var(--ny-gold);
}

.ny27-card--snow .ny27-card__art .fill {
    color: #7fd6f5;
}

.ny27-motto {
    max-width: 720px;
    margin: 44px auto 0 !important;
    color: var(--ny-navy-2);
    font-size: 21px;
    font-weight: 700;
    font-style: italic;
    line-height: 1.4;
    text-align: center;
}

/* Аккордеоны: разметка и скрипт сайта (.accordion-list, .js-accordion-btn), здесь только ширина и отступы */

.ny27 .ny27-accordion {
    max-width: none;
    margin: 0;
}

.ny27-accordion .accordion-list__btn {
    padding: 16px 52px 16px 20px;
    font-size: 17px;
}

.ny27-accordion .accordion-list__btn::after {
    top: 20px;
    right: 22px;
}

.ny27-acc__inner {
    padding: 12px 8px 8px;
}

.ny27 .ny27-acc__title {
    margin-bottom: 16px;
    color: var(--ny-text);
    font-size: 20px;
    font-weight: 600;
    line-height: 1.3;
}

.ny27-acc__label {
    margin: 20px 0 8px !important;
    font-weight: 600;
}

.ny27-acc__label:first-child,
.ny27-acc__title + .ny27-acc__label {
    margin-top: 0 !important;
}

.ny27-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.ny27-list li {
    padding: 4px 0;
    line-height: 1.5;
}

/* тире, как в текстах на сайте */
.ny27-list li::before {
    content: "— ";
}

/* Суперпризы: бледно-голубая плашка (рамок и так хватает) */
.ny27-superprize {
    position: relative;
    margin-top: 24px;
    padding: 24px 24px 20px 96px;
    border-radius: 10px;
    background: var(--ny-pale);
}

.ny27-superprize__gift {
    position: absolute;
    top: 22px;
    left: 24px;
    width: 48px;
    height: 48px;
    fill: none;
    stroke: var(--ny-gold);
    stroke-width: 2;
    stroke-linejoin: round;
}

.ny27-superprize__label {
    margin-bottom: 6px !important;
    color: var(--ny-blue);
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.ny27-superprize__list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.ny27-superprize__list li {
    padding: 3px 0;
    line-height: 1.5;
}

.ny27-note {
    margin-top: 12px !important;
    font-size: 12px;
    font-style: italic;
    opacity: .75;
}

.ny27-soon {
    padding-left: 44px;
    background: no-repeat left center / 30px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2309a4df' stroke-width='1.6' stroke-linecap='round'%3E%3Cpath d='M4 11h16M5 11c0-4 3-6 7-6s7 2 7 6M12 3v2M4 11v1a8 8 0 0 0 16 0v-1M3 20h18'/%3E%3C/svg%3E");
    color: var(--ny-muted);
    line-height: 1.5;
}

/* Цены: строки с пунктиром, как в меню */
.ny27-prices {
    margin: 0;
}

.ny27-prices__item {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    align-items: baseline;
    gap: 8px;
    padding: 6px 0;
}

.ny27-prices__who {
    flex: 1;
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.ny27-prices__who::after {
    flex: 1;
    border-bottom: 1px dotted #b9c4cf;
    content: "";
}

.ny27-prices__sum {
    order: -1;
    color: var(--ny-navy-2);
    font-size: 20px;
    font-weight: 600;
    white-space: nowrap;
}

.ny27-when {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 32px;
    margin: 18px 0 0;
    padding: 14px 0;
    border-top: 1px solid var(--ny-line);
    border-bottom: 1px solid var(--ny-line);
}

.ny27-when dt {
    color: var(--ny-muted);
    font-size: 13px;
    font-weight: 400;
}

.ny27-when dd {
    margin: 0;
    font-weight: 600;
}

.ny27-steps {
    margin: 0 0 24px;
    padding-left: 22px;
}

.ny27-steps li {
    padding: 3px 0;
}

/* Шулюм-пати: синяя плашка цвета сайта, всё белое, пар золотой */

.ny27-party {
    display: flex;
    align-items: center;
    gap: 28px;
    margin-bottom: 16px;
    padding: 24px 28px;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    /* чуть темнее синего сайта — белый текст читается лучше */
    background: var(--ny-blue-dark);
    color: #fff;
}

/* «утро»: солнце в углу, срезано краем плашки */
.ny27-party::after {
    position: absolute;
    top: -70px;
    right: -50px;
    width: 220px;
    height: 220px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 120' fill='none' stroke='%23f7dfa6' stroke-width='2.5' stroke-linecap='round'%3E%3Ccircle cx='60' cy='60' r='24'/%3E%3Cpath d='M60 18V6M60 114v-12M18 60H6M114 60h-12M30.3 30.3l-8.5-8.5M98.2 98.2l-8.5-8.5M30.3 89.7l-8.5 8.5M98.2 21.8l-8.5 8.5'/%3E%3C/svg%3E") center / contain no-repeat;
    opacity: .35;
    pointer-events: none;
    content: "";
}

.ny27-party > * {
    position: relative;
    z-index: 1;
}

.ny27-party__bowl {
    flex: none;
    width: 110px;
    height: 92px;
    fill: none;
    stroke: #fff;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.ny27-party__bowl .pattern {
    stroke: var(--ny-gold-light);
}

.ny27-party__bowl .steam {
    stroke: var(--ny-gold-light);
    stroke-dasharray: 4 6;
    animation: ny27-steam 2.4s linear infinite;
}

@keyframes ny27-steam {
    to {
        stroke-dashoffset: -20;
    }
}

.ny27-party__kicker {
    color: var(--ny-gold-light);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.ny27 .ny27-party__title {
    margin: 2px 0 6px;
    color: #fff;
    font-size: 28px;
    font-weight: 600;
}

.ny27-party__meta {
    margin-bottom: 4px !important;
}

.ny27-party__body p {
    color: #fff;
    line-height: 1.5;
}

/* Расписание недели: даты — листки календаря */

.ny27-week {
    margin: 0;
    padding: 0;
    list-style: none;
}

.ny27-day {
    display: grid;
    grid-template-columns: 64px 88px minmax(0, 1fr) auto;
    gap: 20px;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid var(--ny-line);
}

.ny27-day:first-child {
    padding-top: 4px;
}

.ny27-day:last-child {
    border-bottom: 0;
}

.ny27-day__date {
    overflow: hidden;
    border: 1px solid var(--ny-line);
    border-radius: 6px;
    background: #fff;
    line-height: 1;
    text-align: center;
}

.ny27-day__month {
    display: block;
    padding: 4px 0;
    background: var(--ny-blue);
    color: #fff;
    font-size: 10px;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.ny27-day__date b {
    display: block;
    padding-top: 6px;
    color: var(--ny-text);
    font-size: 26px;
    font-weight: 600;
}

.ny27-day__wd {
    display: block;
    padding: 2px 0 6px;
    color: var(--ny-muted);
    font-size: 11px;
    text-transform: uppercase;
}

.ny27-day__img {
    display: block;
    /* у сайта отступ сверху у картинок после другого элемента */
    margin: 0;
    width: 88px;
    height: 88px;
    border-radius: 10px;
    object-fit: cover;
}

.ny27-day__img--decor {
    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f7dfa6' stroke-width='1.4' stroke-linecap='round'%3E%3Cpath d='M9 18V6l10-2v12'/%3E%3Ccircle cx='6.5' cy='18' r='2.5'/%3E%3Ccircle cx='16.5' cy='16' r='2.5'/%3E%3C/svg%3E") center / 40px no-repeat,
        linear-gradient(150deg, var(--ny-navy-2), var(--ny-navy));
}

.ny27 .ny27-day__title {
    margin-bottom: 4px;
    color: var(--ny-text);
    font-size: 17px;
    font-weight: 600;
    line-height: 1.3;
}

.ny27-day__body p {
    color: var(--ny-muted);
    font-size: 14px;
    line-height: 1.5;
}

.ny27-day__time {
    color: var(--ny-blue);
    font-size: 18px;
    font-weight: 600;
    white-space: nowrap;
}

.ny27-week__note {
    margin-top: 18px !important;
    font-size: 17px;
    font-weight: 600;
    font-style: italic;
    text-align: center;
}

/* Модуль оплаты */

.ny27-pay {
    padding: 8px 0 0;
}

.ny27-pay__head {
    margin-bottom: 20px;
    text-align: center;
}

.ny27 .ny27-pay__title {
    color: var(--ny-text);
    font-size: 30px;
    font-weight: 600;
}

.ny27-pay__sub {
    margin-top: 8px !important;
    color: var(--ny-muted);
}

.ny27-ticket {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 0;
    border-bottom: 1px solid var(--ny-line);
}

.ny27-ticket__name {
    display: block;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.3;
}

.ny27-ticket__name small {
    display: block;
    color: var(--ny-muted);
    font-size: 13px;
    font-weight: 400;
}

.ny27-ticket__price {
    display: block;
    margin-top: 4px;
    color: var(--ny-blue);
    font-weight: 600;
}

.ny27-stepper {
    display: flex;
    flex: none;
    align-items: center;
}

.ny27-stepper__btn {
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--ny-blue);
    border-radius: 3px;
    background: #fff;
    color: var(--ny-blue);
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    transition: background-color .33s, color .33s;
}

.ny27-stepper__btn:hover,
.ny27-stepper__btn:focus-visible {
    background: var(--ny-blue);
    color: #fff;
}

.ny27-stepper__input {
    width: 56px;
    height: 44px;
    border: 0;
    background: transparent;
    color: var(--ny-text);
    font: inherit;
    font-size: 18px;
    font-weight: 600;
    text-align: center;
    -webkit-appearance: none;
    -moz-appearance: textfield;
    appearance: textfield;
}

.ny27-pay__free {
    margin-top: 12px !important;
    color: var(--ny-muted);
    font-size: 14px;
}

.ny27-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 24px;
}

.ny27-field {
    display: block;
    margin: 0;
}

.ny27-field__label {
    display: block;
    margin-bottom: 6px;
    color: var(--ny-muted);
    font-size: 13px;
    font-weight: 400;
}

/* поле как .form-input сайта */
.ny27-field__input {
    display: block;
    width: 100%;
    min-height: 60px;
    padding: 17px 19px;
    border: 1px solid #f8f8f8;
    border-radius: 3px;
    background: #f8f8f8;
    color: var(--ny-text);
    font: inherit;
    font-size: 15px;
    transition: border-color .3s, background-color .3s;
}

.ny27-field__input:focus {
    border-color: var(--ny-blue);
    outline: 0;
    background: #fff;
}

.ny27-field__input.is-error {
    border-color: #ec3035;
}

/* Согласие на обработку данных */
.ny27-agree {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 20px 0 0;
    color: var(--ny-muted);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
    cursor: pointer;
}

.ny27-agree__input {
    position: absolute;
    width: 22px;
    height: 22px;
    margin: 0;
    opacity: 0;
}

.ny27-agree__box {
    flex: none;
    width: 22px;
    height: 22px;
    border: 1px solid #c7c7c7;
    border-radius: 3px;
    background: #fff no-repeat center / 14px;
    transition: border-color .3s, background-color .3s;
}

.ny27-agree__input:checked ~ .ny27-agree__box {
    border-color: var(--ny-blue);
    background-color: var(--ny-blue);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E");
}

.ny27-agree__input:focus-visible ~ .ny27-agree__box {
    outline: 3px solid rgba(9, 164, 223, .35);
    outline-offset: 2px;
}

.ny27-agree__input.is-error ~ .ny27-agree__box {
    border-color: #ec3035;
}

/* core.js сайта вставляет после чекбокса свой .checkbox-custom-dummy — прячем, рисуем свой квадрат */
.ny27-agree .checkbox-custom-dummy {
    display: none;
}

.ny27-agree a {
    color: var(--ny-blue);
}

.ny27-pay__foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 28px;
}

.ny27-total {
    font-size: 18px;
}

.ny27-total b {
    color: var(--ny-navy-2);
    font-size: 30px;
    font-weight: 600;
}

.ny27-pay__msg {
    margin-top: 14px !important;
    color: #ec3035;
    font-size: 14px;
}

.ny27-pay__msg:empty {
    display: none;
}

/* Окно карточки */

.ny27-modal {
    width: min(860px, calc(100% - 32px));
    max-width: none;
    max-height: calc(100% - 32px);
    padding: 0;
    border: 0;
    border-radius: 12px;
    background: #fff;
    color: var(--ny-text);
    box-shadow: 0 20px 60px rgba(0, 0, 0, .35);
}

/* стили сайта делают dialog видимым и закрытым */
.ny27-modal:not([open]) {
    display: none;
}

.ny27-modal::backdrop {
    background: rgba(10, 18, 36, .7);
    backdrop-filter: blur(3px);
}

.ny27-modal[open] {
    animation: ny27-pop .3s ease;
}

@keyframes ny27-pop {
    from {
        opacity: 0;
        transform: translateY(16px) scale(.98);
    }
}

.ny27-modal__box {
    position: relative;
    display: grid;
    grid-template-columns: 45% minmax(0, 1fr);
}

.ny27-modal__media {
    min-height: 380px;
    background: var(--ny-navy);
}

.ny27-modal__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ny27-modal__media .ny27-card__art {
    position: static;
    display: block;
    width: 60%;
    margin: 20% auto;
    transform: none;
}

.ny27-modal__media.is-snow {
    background: linear-gradient(160deg, #1b4c86, var(--ny-navy));
}

.ny27-modal__body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 48px 40px;
}

.ny27-modal__kicker {
    color: var(--ny-blue);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.ny27 .ny27-modal__title {
    margin: 8px 0 16px;
    color: var(--ny-text);
    font-size: 26px;
    font-weight: 700;
    line-height: 1.25;
}

.ny27-modal__sub {
    margin: -8px 0 16px !important;
    color: var(--ny-muted);
}

.ny27-modal__sub:empty {
    display: none;
}

.ny27-modal__text {
    margin-bottom: 28px !important;
    font-size: 16px;
    line-height: 1.6;
}

.ny27-modal__close {
    position: absolute;
    z-index: 2;
    top: 12px;
    right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--ny-soft);
    color: var(--ny-text);
    cursor: pointer;
}

.ny27-modal__close svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
}

/* Адаптив */

@media (max-width: 1199px) {
    .ny27 .ny27-hero__title {
        font-size: 38px;
    }

    .ny27-hero__inner {
        gap: 40px;
    }

    .ny27-video {
        width: 290px;
    }
}

@media (max-width: 991px) {
    .ny27-hero {
        padding: 80px 0 64px;
    }

    .ny27-hero__inner {
        grid-template-columns: minmax(0, 1fr);
        justify-items: center;
        text-align: center;
    }

    .ny27-facts,
    .ny27-hero__actions {
        justify-content: center;
    }

    .ny27-facts__item {
        text-align: left;
    }

    .ny27 .ny27-hero__title {
        margin: 0 auto;
    }

    .ny27-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ny27-garland span:nth-child(n + 13) {
        display: none;
    }

    .ny27-garland {
        background-size: 16.66% 46px;
    }
}

@media (max-width: 767px) {
    .ny27-section {
        padding: 48px 0;
    }

    /* на телефоне видео сразу под заголовком, факты и кнопки — после */
    .ny27-hero__inner {
        gap: 0;
    }

    .ny27-hero__text {
        display: contents;
    }

    .ny27-hero__lead {
        margin-bottom: 28px !important;
    }

    .ny27-facts {
        order: 1;
    }

    .ny27-hero__actions {
        order: 2;
    }

    .ny27 .ny27-hero__title {
        font-size: 28px;
    }

    .ny27-hero__lead {
        font-size: 16px;
    }

    .ny27-facts {
        flex-direction: column;
        align-items: flex-start;
        width: max-content;
        max-width: 100%;
        margin: 26px auto 28px;
    }

    .ny27-hero__actions {
        flex-direction: column;
        width: 100%;
    }

    .ny27-video {
        width: min(300px, 82vw);
    }

    .ny27 .ny27-heading__title {
        font-size: 26px;
    }

    .ny27-cards {
        gap: 12px;
    }

    .ny27-card__body {
        left: 14px;
        right: 14px;
        bottom: 14px;
    }

    .ny27-card__title {
        font-size: 16px;
    }

    .ny27-card__sub {
        font-size: 12px;
    }

    .ny27-card__eye {
        top: 10px;
        right: 10px;
        width: 36px;
        height: 36px;
    }

    /* в узкой карточке — в две строки, чтобы не закрывать лица */
    .ny27-card-wrap .ny27-card__credit {
        top: 8px;
        left: 8px;
        max-width: calc(100% - 60px);
        padding: 2px 5px;
        font-size: 9px;
        line-height: 1.3;
    }

    .ny27-motto {
        font-size: 18px;
    }

    .ny27-garland span:nth-child(n + 9) {
        display: none;
    }

    .ny27-garland {
        background-size: 25% 46px;
    }

    .ny27-accordion .accordion-list__btn {
        padding: 14px 48px 14px 16px;
        font-size: 16px;
    }

    .ny27-accordion .accordion-list__btn::after {
        top: 18px;
        right: 18px;
    }

    .ny27-acc__inner {
        padding: 8px 0 4px;
    }

    .ny27 .ny27-pay-btn {
        width: 100%;
        min-width: 0;
    }

    .ny27-superprize {
        padding: 20px 18px 16px;
    }

    .ny27-superprize__gift {
        position: static;
        display: block;
        margin-bottom: 10px;
    }

    .ny27-party {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 20px 18px;
    }

    .ny27-party__bowl {
        width: 80px;
        height: 67px;
    }

    .ny27-party::after {
        top: -50px;
        right: -50px;
        width: 160px;
        height: 160px;
    }

    /* дата и фото слева, справа от них время и название, описание — на всю ширину */
    .ny27-day {
        grid-template-columns: 56px 64px minmax(0, 1fr);
        grid-template-rows: auto 1fr auto;
        grid-template-areas:
            "date img time"
            "date img title"
            "text text text";
        gap: 2px 14px;
        align-items: start;
    }

    .ny27-day__date {
        grid-area: date;
    }

    .ny27-day__date b {
        font-size: 22px;
    }

    .ny27-day__img {
        grid-area: img;
        width: 64px;
        height: 64px;
    }

    .ny27-day__body {
        display: contents;
    }

    .ny27-day__time {
        grid-area: time;
        justify-self: start;
        font-size: 15px;
        line-height: 1.2;
    }

    .ny27 .ny27-day__title {
        grid-area: title;
        margin: 0;
        font-size: 16px;
    }

    .ny27-day__body p {
        grid-area: text;
        margin-top: 10px !important;
    }

    .ny27 .ny27-pay__title {
        font-size: 24px;
    }

    .ny27-fields {
        grid-template-columns: minmax(0, 1fr);
    }

    .ny27-pay__foot {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    .ny27-modal__box {
        grid-template-columns: minmax(0, 1fr);
    }

    .ny27-modal__media {
        min-height: 0;
        height: 46vh;
    }

    .ny27-modal__media .ny27-card__art {
        width: 40%;
        margin: 6vh auto;
    }

    .ny27-modal__body {
        padding: 24px 20px 28px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ny27 *,
    .ny27 *::before,
    .ny27 *::after {
        animation: none !important;
        transition: none !important;
    }
}

#ny27-loader {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

#ny27-loader .ny27-loader__box {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

#ny27-loader .ny27-loader__title {
    margin-top: 0;
    color: #1e5aa8;
    font-size: 20px;
}

#ny27-loader .ny27-loader__text {
    margin-bottom: 0;
    font-size: 15px;
    color: #374151;
    line-height: 1.5;
}