/* ── Шрифты ─────────────────────────────────────────────────────────── */
@font-face {
    font-family: 'Lilita One';
    src: url("../fonts/lilita-one.0155b8c97a5a.woff2") format('woff2');
    font-weight: 400;
    font-display: swap;
}
@font-face {
    font-family: 'Onest';
    src: url("../fonts/onest-400.e447ddb98900.woff2") format('woff2');
    font-weight: 400;
    font-display: swap;
}
@font-face {
    font-family: 'Onest';
    src: url("../fonts/onest-600.e841f8d6f296.woff2") format('woff2');
    font-weight: 600;
    font-display: swap;
}
@font-face {
    font-family: 'Onest';
    src: url("../fonts/onest-700.40861fecc080.woff2") format('woff2');
    font-weight: 700;
    font-display: swap;
}

/* ── Цвета и основа ─────────────────────────────────────────────────── */
:root {
    --space-900: #1a0a4f;
    --space-800: #2a1370;
    --violet-700: #3b1c94;
    --violet-600: #4e24ab; /* цвет планеты в ассете planet-edge.svg */
    --violet-500: #6437d6;
    --violet-400: #7d55e8;
    --lilac-200: #dcd3fd;
    --lilac-100: #f5f1ff;
    --yellow: #ffd83d;
    --yellow-dark: #d6a600;
    --pink: #ff7ab0;
    --sky: #7fd3f7;
    --ink: #1f0d5c;
    --muted: #55468f;

    /* В Lilita One нет знака ₽: он берётся из Onest той же жирности, поэтому синтез жирного отключён. */
    --font-display: 'Lilita One', 'Onest', 'Arial Black', Arial, sans-serif;
    --font-body: 'Onest', Arial, sans-serif;

    --shadow-hard: 10px 12px 0 var(--space-900);
    --shadow-hard-small: 6px 8px 0 var(--space-900);
    --header-height: 76px;
    /* Высота края планеты: пропорция ассета 1921×278, на телефоне он не становится совсем тонким. */
    --edge-height: clamp(96px, 14.47vw, 420px);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-height) + 16px);
    /* Страница не сдвигается вбок, когда всплывающее окно убирает полосу прокрутки. */
    scrollbar-gutter: stable;
    -webkit-text-size-adjust: 100%;
}
html:has(dialog[open]) { overflow: hidden; }

body {
    margin: 0;
    overflow-x: clip;
    background: var(--space-900);
    color: #fff;
    font: 400 17px/1.55 var(--font-body);
    font-synthesis: none;
}

img { display: block; max-width: 100%; height: auto; }

ul, ol { margin: 0; padding: 0; }

h1, h2, h3, p { margin: 0; }

h1, h2 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.1;
    text-wrap: balance;
}
h1 { font-size: clamp(38px, 5.2vw, 76px); }
h2 { font-size: clamp(31px, 3.8vw, 52px); }
h3 { font-size: 20px; font-weight: 700; line-height: 1.3; }

.h3-like { font-size: clamp(27px, 2.8vw, 38px); }

a { color: inherit; }

:focus-visible {
    outline: 3px solid var(--sky);
    outline-offset: 3px;
    border-radius: 6px;
}

/* Максимум как у самого широкого контейнера Bootstrap. */
.container { width: min(1320px, 100% - clamp(32px, 4vw, 64px)); margin-inline: auto; }

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    border: 0;
    white-space: nowrap;
}

.skip-link {
    position: absolute;
    top: -60px;
    left: 16px;
    z-index: 100;
    padding: 10px 16px;
    border-radius: 12px;
    background: var(--yellow);
    color: var(--ink);
    font-weight: 700;
}
.skip-link:focus { top: 12px; }

.location-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 18px;
    padding: 7px 15px 7px 10px;
    border-radius: 20px;
    background: rgba(255, 255, 255, .1);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    text-wrap: balance;
}
.location-pill svg { flex: none; color: var(--yellow); }

.lead { font-size: clamp(16px, 1.2vw + 2px, 18px); line-height: 1.5; color: var(--lilac-200); }

/* ── Кнопки ─────────────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 54px;
    padding: 14px 30px;
    border: 0;
    border-radius: 999px;
    font: 700 16px/1.2 var(--font-body);
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: transform .12s ease, box-shadow .12s ease, background-color .12s ease;
}
.btn:focus-visible { border-radius: 999px; }
.btn--small { min-height: 46px; padding: 10px 22px; font-size: 15px; }

.btn--yellow { background: var(--yellow); color: var(--ink); box-shadow: 0 6px 0 var(--yellow-dark); }
.btn--yellow:hover { transform: translateY(2px); box-shadow: 0 4px 0 var(--yellow-dark); }
.btn--yellow:active { transform: translateY(6px); box-shadow: 0 0 0 var(--yellow-dark); }

.btn--ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .6); }
.btn--ghost:hover { background: rgba(255, 255, 255, .12); }

.btn--ink { background: var(--ink); color: #fff; box-shadow: 0 6px 0 #0d0433; font-size: 19px; }
.btn--ink:hover { transform: translateY(2px); box-shadow: 0 4px 0 #0d0433; }

.tag {
    display: inline-block;
    padding: 5px 13px;
    border-radius: 999px;
    background: var(--violet-400);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    white-space: nowrap;
}
.tag--yellow { background: var(--yellow); color: var(--ink); }
.tag--white { background: #fff; color: var(--ink); }

/* ── Шапка ──────────────────────────────────────────────────────────── */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(26, 10, 79, .62);
    -webkit-backdrop-filter: blur(14px) saturate(150%);
    backdrop-filter: blur(14px) saturate(150%);
}
.site-header__row {
    display: flex;
    align-items: center;
    gap: 28px;
    min-height: var(--header-height);
}
.site-header__logo img { width: auto; height: 48px; }

.site-nav { display: flex; gap: 22px; margin-right: auto; }
.site-nav a {
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}
.site-nav a:hover, .site-header__phone:hover { color: var(--yellow); }

.site-header__phone { font-size: 15px; font-weight: 700; text-decoration: none; white-space: nowrap; }

.site-menu { display: none; position: relative; margin-left: auto; }
.site-menu summary {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--yellow);
    cursor: pointer;
    list-style: none;
}
.site-menu summary::-webkit-details-marker { display: none; }
.site-menu__icon, .site-menu__icon::before, .site-menu__icon::after {
    display: block;
    width: 20px;
    height: 3px;
    border-radius: 2px;
    background: var(--ink);
}
.site-menu__icon { position: relative; }
.site-menu__icon::before, .site-menu__icon::after { content: ''; position: absolute; left: 0; }
.site-menu__icon::before { top: -6px; }
.site-menu__icon::after { top: 6px; }
.site-menu__panel {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: min(290px, calc(100vw - 32px));
    padding: 10px;
    border-radius: 22px;
    background: var(--violet-700);
    box-shadow: var(--shadow-hard-small);
}
.site-menu__panel nav { display: flex; flex-direction: column; }
.site-menu__panel nav a {
    padding: 12px 14px;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
}
.site-menu__panel nav a:hover { background: var(--violet-500); }
.site-menu__phone { color: var(--yellow); font-weight: 700 !important; }
.site-menu__panel .social { padding: 10px 14px 8px; border-top: 1px solid rgba(255, 255, 255, .16); margin-top: 6px; }

.social { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.social__link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 34px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
}
.social__link:hover { color: var(--yellow); }

/* ── Секции ─────────────────────────────────────────────────────────── */
.section { position: relative; padding-block: clamp(56px, 7vw, 96px); }
.section--tight-top { padding-top: 0; }
.section--space { background-color: var(--space-800); }

.section__head { max-width: 780px; margin-bottom: clamp(28px, 4vw, 48px); }
.section__head h2 + .lead { margin-top: 14px; }
.section__head--inner { margin-top: clamp(48px, 6vw, 80px); }
.section__actions { display: flex; justify-content: center; margin-top: clamp(32px, 4vw, 52px); }

/* Звёздное небо */
.stars {
    /* Жёлтые звёзды и белые точки — два слоя с разным шагом, чтобы не было заметной сетки. */
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1130' height='730' viewBox='0 0 1130 730'%3E%3Cg fill='%23ffd83d'%3E%3Cpath d='M322 62l2.2 7.8 7.8 2.2-7.8 2.2-2.2 7.8-2.2-7.8-7.8-2.2 7.8-2.2z'/%3E%3Cpath d='M912 214l1.8 6.2 6.2 1.8-6.2 1.8-1.8 6.2-1.8-6.2-6.2-1.8 6.2-1.8z' opacity='.85'/%3E%3Cpath d='M118 508l1.6 5.4 5.4 1.6-5.4 1.6-1.6 5.4-1.6-5.4-5.4-1.6 5.4-1.6z' opacity='.7'/%3E%3C/g%3E%3C/svg%3E"),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='420' height='420' viewBox='0 0 420 420'%3E%3Cg fill='%23fff'%3E%3Ccircle cx='24' cy='40' r='1.4' opacity='.8'/%3E%3Ccircle cx='96' cy='152' r='1' opacity='.6'/%3E%3Ccircle cx='150' cy='60' r='1.8' opacity='.7'/%3E%3Ccircle cx='210' cy='210' r='1.2' opacity='.7'/%3E%3Ccircle cx='60' cy='300' r='1.6' opacity='.55'/%3E%3Ccircle cx='284' cy='120' r='1' opacity='.8'/%3E%3Ccircle cx='352' cy='36' r='1.4' opacity='.6'/%3E%3Ccircle cx='392' cy='196' r='1.8' opacity='.6'/%3E%3Ccircle cx='330' cy='300' r='1.1' opacity='.8'/%3E%3Ccircle cx='180' cy='372' r='1.5' opacity='.6'/%3E%3Ccircle cx='250' cy='340' r='.9' opacity='.8'/%3E%3Ccircle cx='404' cy='388' r='1.2' opacity='.5'/%3E%3C/g%3E%3C/svg%3E");
    background-size: 1130px 730px, 420px 420px;
}

/* ── Планета: вход, тело и выход ────────────────────────────────────── */
.planet-edge {
    position: absolute;
    left: 0;
    display: block;
    width: 100%;
    max-width: none;
    height: var(--edge-height);
    object-fit: cover;
    object-position: center bottom;
    pointer-events: none;
}
.planet-edge--top { bottom: -1px; }
.planet-edge--bottom { top: -1px; transform: scaleY(-1); }

.planet {
    position: relative;
    margin-top: -2px; /* закрывает стык с краем планеты: при дробной высоте экрана там видна тонкая линия */
    background-color: var(--violet-600);
    /* Редкие кратеры на теле планеты, как на самом ассете. */
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 60'%3E%3Cellipse cx='100' cy='30' rx='100' ry='30' fill='%233a1b8e'/%3E%3Cpath d='M18 47a100 30 0 0 0 164 0 90 20 0 0 0-164 0z' fill='%23281360'/%3E%3C/svg%3E"),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 60'%3E%3Cellipse cx='100' cy='30' rx='100' ry='30' fill='%233a1b8e'/%3E%3Cpath d='M18 47a100 30 0 0 0 164 0 90 20 0 0 0-164 0z' fill='%23281360'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: 150px auto, 210px auto;
    /* Справа от первого заголовка и под левой колонкой цен: там нет текста. */
    background-position: right 7% top 30px, left 5% bottom 44px;
}
/* Сразу под краем планеты отступ меньше: сверху уже есть её поверхность. */
.planet > .section:first-child { padding-top: clamp(16px, 2.4vw, 36px); }
#posters + #attractions { padding-top: 0; }

/* ── Первый экран ───────────────────────────────────────────────────── */
.hero {
    position: relative;
    background-color: var(--space-900);
    overflow: clip;
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(60% 70% at 78% 42%, rgba(125, 85, 232, .55), transparent 70%);
    pointer-events: none;
}
.hero__grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    align-items: center;
    gap: 32px;
    padding-top: clamp(36px, 5vw, 64px);
    /* Запас больше высоты края планеты: луна начинается ниже и не подступает к контенту первого экрана.
       На широких экранах запас растёт быстрее, иначе луна поднимается вместе с шириной ассета. */
    padding-bottom: max(23.5vw - 60px, var(--edge-height) * 1.3);
}
.hero h1 + .lead { margin-top: 20px; max-width: 34em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 32px; }
.hero__art { justify-self: center; width: min(100%, 580px); }
.hero__art img { width: 100%; animation: float 7s ease-in-out infinite; }

@keyframes float {
    50% { transform: translateY(-14px) rotate(-1.2deg); }
}

.deco-star { position: absolute; width: 22px; height: 22px; background: var(--yellow); clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%); }
.deco-star--a { top: 12%; left: 46%; }
.deco-star--b { top: 8%; left: 4%; width: 14px; height: 14px; background: var(--pink); }

/* ── Аттракционы ────────────────────────────────────────────────────── */
.attractions {
    display: grid;
    grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
    align-items: stretch;
    gap: 32px;
}
.attractions__card {
    padding: clamp(24px, 3vw, 36px);
    border-radius: 30px;
    background: var(--violet-700);
    box-shadow: var(--shadow-hard);
}
.attractions__list { gap: 12px; font-weight: 600; }
.attractions__more {
    margin-top: 18px;
    color: var(--yellow);
    font-family: var(--font-display);
    font-size: 21px;
    font-weight: 700;
}
/* Пока фото нет, карточка на всю ширину, а список в несколько колонок. */
.attractions--no-photos { grid-template-columns: minmax(0, 1fr); }
.attractions--no-photos .attractions__list { grid-template-columns: repeat(auto-fill, minmax(min(290px, 100%), 1fr)); }

/* ── Карусель ───────────────────────────────────────────────────────── */
.slider {
    width: 100%;
    min-width: 0;
    margin: 0;
    border-radius: 30px;
    background: var(--violet-700);
    box-shadow: var(--shadow-hard);
}
.slider__slide { position: relative; margin: 0; }
.slider__slide img {
    width: 100%;
    height: 100%;
    min-height: 280px;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    user-select: none;
    -webkit-user-drag: none;
}
.slider__slide figcaption {
    position: absolute;
    bottom: 16px;
    left: 16px;
    max-width: calc(100% - 32px);
    padding: 7px 14px;
    border-radius: 999px;
    background: rgba(26, 10, 79, .82);
    font-size: 15px;
    font-weight: 600;
}
.slider__arrow {
    position: absolute;
    top: 50%;
    z-index: 2;
    width: 46px;
    height: 46px;
    margin-top: -23px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 4px 0 var(--space-900);
    cursor: pointer;
    transition: transform .12s ease, box-shadow .12s ease;
}
.slider__arrow:hover { transform: translateY(2px); box-shadow: 0 2px 0 var(--space-900); }
.slider__arrow:focus-visible { border-radius: 50%; }
.slider__arrow::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 11px;
    height: 11px;
    border-top: 3px solid var(--ink);
    border-right: 3px solid var(--ink);
}
.slider__arrow--prev { left: 14px; }
.slider__arrow--prev::before { transform: translate(-35%, -50%) rotate(-135deg); }
.slider__arrow--next { right: 14px; }
.slider__arrow--next::before { transform: translate(-65%, -50%) rotate(45deg); }

/* ── Цены ───────────────────────────────────────────────────────────── */
.prices {
    display: grid;
    grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
    grid-template-areas:
        'intro accordion'
        'tip   accordion';
    grid-template-rows: auto 1fr;
    gap: 28px 32px;
    align-items: start;
}
.prices__intro { grid-area: intro; }
.prices__intro .lead { margin-top: 14px; }
.prices__note { margin-top: 14px; color: var(--lilac-200); }
.prices__note a { color: #fff; font-weight: 700; }

.visit-tip {
    grid-area: tip;
    padding: 22px 24px;
    border-radius: 24px;
    background: var(--violet-700);
    box-shadow: var(--shadow-hard-small);
    font-size: 16px;
}
.visit-tip h3 { margin-bottom: 8px; color: var(--yellow); font-size: 17px; }
.visit-tip a { display: inline-block; margin-top: 10px; font-weight: 700; }
.visit-tip a:hover { color: var(--yellow); }

/* Гармошка */
.accordion {
    grid-area: accordion;
    border-radius: 30px;
    background: var(--lilac-100);
    color: var(--ink);
    box-shadow: var(--shadow-hard);
}
.accordion__item + .accordion__item { border-top: 1px solid #dcd3f5; }
.accordion__heading { font-size: inherit; }
.accordion__trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    padding: 22px clamp(20px, 2.6vw, 32px);
    border: 0;
    border-radius: 30px;
    background: none;
    color: inherit;
    font: 700 clamp(18px, 1.6vw, 21px)/1.3 var(--font-body);
    text-align: left;
    cursor: pointer;
}
.accordion__trigger:focus-visible { outline-offset: -3px; border-radius: 30px; }
.accordion__icon {
    position: relative;
    flex: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--yellow);
    transition: transform .35s cubic-bezier(.4, 0, .2, 1), background-color .35s ease;
}
.accordion__icon::before, .accordion__icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 14px;
    height: 2.5px;
    border-radius: 2px;
    background: var(--ink);
    transform: translate(-50%, -50%);
}
.accordion__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.accordion__trigger:hover .accordion__icon { background: #ffcb00; }
.is-open .accordion__icon { transform: rotate(135deg); }

/* Высота плавно меняется от 0 до содержимого через сетку: так работает в любом браузере. */
.accordion__panel {
    display: grid;
    grid-template-rows: 1fr;
    transition: grid-template-rows .35s cubic-bezier(.4, 0, .2, 1);
}
.accordion__inner {
    min-height: 0;
    overflow: hidden;
    transition: visibility .35s;
}
.accordion__inner .price-table { margin-bottom: 14px; }
.js .accordion__item:not(.is-open) .accordion__panel { grid-template-rows: 0fr; }
.js .accordion__item:not(.is-open) .accordion__inner { visibility: hidden; }

.price-table {
    width: calc(100% - 2 * clamp(20px, 2.6vw, 32px));
    margin-inline: clamp(20px, 2.6vw, 32px);
    border-collapse: collapse;
    font-size: 16px;
    line-height: 1.35;
}
.price-table thead th {
    padding: 0 0 8px 12px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 600;
    text-align: right;
    white-space: nowrap;
}
.price-table tbody th { padding: 11px 0; font-weight: 400; text-align: left; }
.price-table td {
    padding: 11px 0 11px 12px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    text-align: right;
    white-space: nowrap;
    vertical-align: top;
}
.price-table tbody tr { border-top: 1px solid #dcd3f5; }

/* ── Афиша, горизонтальные ленты ────────────────────────────────────── */
.scroller {
    display: flex;
    gap: 22px;
    padding: 4px 14px 22px 4px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    list-style: none;
}
.scroller > li { flex: 0 0 auto; scroll-snap-align: start; }

.posters {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(20px, 2.6vw, 34px);
    list-style: none;
}
.poster__zoom { display: block; border-radius: 28px; cursor: zoom-in; transition: transform .18s ease; }
.poster__zoom:hover { transform: translateY(-5px); }
.poster__zoom:focus-visible { border-radius: 28px; }
.poster img { width: 100%; border-radius: 28px; box-shadow: var(--shadow-hard); }
.poster p { margin-top: 14px; font-size: 15px; color: var(--lilac-200); }

.poster-dialog {
    width: fit-content;
    max-width: none;
    max-height: none;
    padding: 0;
    border: 0;
    background: transparent;
    overflow: visible;
    cursor: zoom-out;
}
.poster-dialog[open] { animation: dialog-in .25s cubic-bezier(.2, .8, .2, 1); }
.poster-dialog::backdrop { background: rgba(26, 10, 79, .84); animation: backdrop-in .25s ease; }
.poster-dialog img {
    max-width: min(92vw, 1200px);
    max-height: 90vh;
    border-radius: 24px;
    box-shadow: var(--shadow-hard);
}
.poster-dialog .dialog-close { position: absolute; top: 12px; right: 12px; z-index: 1; }

/* ── Праздники ──────────────────────────────────────────────────────── */
#party { padding-top: calc(var(--edge-height) + clamp(20px, 3vw, 44px)); }

.rooms, .extras, .programs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }

.room {
    border-radius: 30px;
    background: var(--pink);
    color: var(--ink);
    box-shadow: var(--shadow-hard);
}
.room:nth-child(even) { background: var(--sky); }
.room .slider { border-radius: 30px 30px 0 0; box-shadow: none; }
.room__body { padding: clamp(22px, 2.6vw, 32px); }
.room__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.room__head h3 { font-family: var(--font-display); font-size: clamp(27px, 2.6vw, 36px); line-height: 1.1; }
.room__prices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: end; gap: 12px; margin: 22px 0 0; }
.room__prices dt { font-size: 14px; font-weight: 600; }
.room__prices dd { margin: 2px 0 0; font-family: var(--font-display); font-size: clamp(25px, 2.3vw, 31px); font-weight: 700; line-height: 1.15; }

.extras { margin-top: 24px; }
.extra {
    padding: clamp(22px, 2.6vw, 30px);
    border-radius: 30px;
    background: var(--violet-700);
    box-shadow: var(--shadow-hard);
}
.extra h3 { margin-bottom: 14px; }

.check-list { display: grid; gap: 10px; list-style: none; }
.check-list li { position: relative; padding-left: 26px; }
.check-list li::before {
    content: '';
    position: absolute;
    top: .4em;
    left: 0;
    width: 13px;
    height: 13px;
    background: var(--yellow);
    clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
}
.check-list small { display: block; color: var(--lilac-200); font-size: 14px; }

.program {
    padding: clamp(22px, 2.6vw, 32px);
    border-radius: 30px;
    background: var(--lilac-100);
    color: var(--ink);
    box-shadow: var(--shadow-hard);
}
.program__photo { width: 100%; aspect-ratio: 16 / 10; margin-bottom: 18px; object-fit: cover; border-radius: 20px; }
.program__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.program p { font-size: 16px; }
.program__price { margin-top: 12px; font-weight: 700; }

.animators { margin-top: 32px; }
.animator { width: 200px; text-align: center; }
.animator img { width: 100%; height: 240px; object-fit: contain; }
.animator h3 { margin-top: 10px; font-size: 16px; font-weight: 600; }

/* ── Пакеты ─────────────────────────────────────────────────────────── */
.day-switch {
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-width: 520px;
    margin: 0 auto clamp(32px, 4vw, 48px);
    padding: 6px;
    border-radius: 999px;
    background: var(--violet-700);
}
.day-switch label {
    padding: 13px 16px;
    border-radius: 999px;
    color: #fff;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
}
#day-weekday:checked ~ .day-switch label[for='day-weekday'],
#day-weekend:checked ~ .day-switch label[for='day-weekend'] {
    background: var(--yellow);
    color: var(--ink);
}
#day-weekday:focus-visible ~ .day-switch label[for='day-weekday'],
#day-weekend:focus-visible ~ .day-switch label[for='day-weekend'] {
    outline: 3px solid var(--sky);
    outline-offset: 3px;
}

.packages { display: flex; flex-wrap: wrap; justify-content: center; gap: 44px 34px; }
.package {
    position: relative;
    flex: 1 1 340px;
    max-width: 420px;
    padding: 38px 34px 92px;
    border-radius: 72px 110px 84px 124px / 96px 76px 112px 80px;
    color: var(--ink);
    box-shadow: var(--shadow-hard);
}
.package--yellow { background: var(--yellow); }
.package--sky { background: var(--sky); }
.package--pink { background: var(--pink); }

.package__label { font-size: 14px; font-weight: 600; }
.package h3 { font-family: var(--font-display); font-size: clamp(29px, 2.6vw, 36px); line-height: 1.1; }
.package__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.package__items { display: grid; gap: 7px; margin-top: 18px; font-size: 15.5px; font-weight: 600; line-height: 1.35; list-style: none; }
.package__items li { position: relative; padding-left: 16px; }
.package__items li::before {
    content: '';
    position: absolute;
    top: .5em;
    left: 0;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--ink);
}
.package__price {
    position: absolute;
    right: 8px;
    bottom: -14px;
    padding: 18px 26px;
    border-radius: 56% 44% 52% 48% / 48% 58% 42% 52%;
    font-family: var(--font-display);
    font-size: clamp(26px, 2.3vw, 31px);
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}
.package--yellow .package__price { background: var(--violet-500); color: #fff; }
.package--sky .package__price { background: var(--yellow); color: var(--ink); }
.package--pink .package__price { background: var(--yellow); color: var(--ink); }

.package__price--weekend { display: none; }
#day-weekend:checked ~ .packages .package__price--weekend { display: block; }
#day-weekend:checked ~ .packages .package__price--weekday { display: none; }
#day-weekend:checked ~ .packages .package--weekday-only { display: none; }
/* В выходные пакетов четыре: два ряда по две карточки вместо трёх и одной. */
#day-weekend:checked ~ .packages { max-width: 910px; margin-inline: auto; }

/* ── Галерея ────────────────────────────────────────────────────────── */
#gallery h2 { margin-bottom: 24px; }
#gallery h2:not(:first-child) { margin-top: 40px; }
.gallery img { width: auto; height: clamp(220px, 28vw, 340px); border-radius: 24px; box-shadow: var(--shadow-hard-small); }

/* ── Бронирование ───────────────────────────────────────────────────── */
.booking-panel {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    align-items: center;
    gap: clamp(28px, 5vw, 64px);
    padding: clamp(28px, 5vw, 60px);
    border-radius: 40px;
    background: var(--yellow);
    color: var(--ink);
    box-shadow: var(--shadow-hard);
}
.booking-panel__lead { margin: 16px 0 26px; font-size: clamp(16px, 1.2vw + 2px, 18px); }
.booking-panel__contacts { display: grid; gap: 18px; margin: 0; }
.booking-panel__contacts dt { font-size: 14px; font-weight: 600; }
.booking-panel__contacts dd { margin: 2px 0 0; font-size: 18px; font-weight: 700; line-height: 1.35; }

/* ── Подвал ─────────────────────────────────────────────────────────── */
.site-footer { padding-block: 52px 32px; background: var(--space-900); font-size: 15px; }
.site-footer__grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr;
    gap: 32px;
}
.site-footer__logo { width: auto; height: 56px; margin-bottom: 14px; }
.site-footer .social { margin-top: 12px; }
.site-footer__nav, .site-footer__contacts { display: grid; align-content: start; gap: 10px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--yellow); }
.site-footer__contacts a { font-weight: 600; overflow-wrap: anywhere; }
.site-footer__legal {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px 24px;
    margin-top: 36px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, .16);
    color: #b9addf;
    font-size: 13px;
}

/* ── Правила ────────────────────────────────────────────────────────── */
.rules { display: grid; justify-items: start; gap: 32px; max-width: 900px; }
.rules__card {
    padding: clamp(22px, 4vw, 44px);
    border-radius: 30px;
    background: var(--lilac-100);
    color: var(--ink);
    box-shadow: var(--shadow-hard);
}
.rules-list { display: grid; gap: 14px; padding-left: 24px; font-size: 16px; }
.rules-list ul { display: grid; gap: 4px; margin-top: 6px; padding-left: 20px; }

.rules-dialog {
    width: min(760px, 100% - 32px);
    max-height: min(84vh, 100% - 32px);
    padding: 0;
    border: 0;
    border-radius: 30px;
    background: transparent;
    color: var(--ink);
    overflow: visible;
}
.rules-dialog[open] { animation: dialog-in .25s cubic-bezier(.2, .8, .2, 1); }
.rules-dialog::backdrop { background: rgba(26, 10, 79, .72); animation: backdrop-in .25s ease; }
.rules-dialog__box {
    max-height: min(84vh, 100vh - 32px);
    padding: clamp(22px, 4vw, 40px);
    border-radius: inherit;
    background: var(--lilac-100);
    box-shadow: var(--shadow-hard);
    overflow-y: auto;
}
.rules-dialog__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}
.rules-dialog h2 { font-size: clamp(27px, 2.8vw, 36px); }
.dialog-close {
    position: relative;
    flex: none;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--yellow);
    cursor: pointer;
}
.dialog-close:focus-visible { border-radius: 50%; }
.dialog-close::before, .dialog-close::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 18px;
    height: 3px;
    border-radius: 2px;
    background: var(--ink);
    transform: translate(-50%, -50%) rotate(45deg);
}
.dialog-close::after { transform: translate(-50%, -50%) rotate(-45deg); }

@keyframes dialog-in {
    from { opacity: 0; transform: translateY(18px) scale(.98); }
}
@keyframes backdrop-in {
    from { opacity: 0; }
}

/* ── Адаптив ────────────────────────────────────────────────────────── */
@media (max-width: 1200px) {
    .site-nav, .site-header__phone { display: none; }
    .site-menu { display: block; margin-left: 0; }
    .site-header__cta { margin-left: auto; }
}

@media (max-width: 960px) {
    .attractions, .prices { grid-template-columns: minmax(0, 1fr); }
    .prices {
        grid-template-areas: 'intro' 'accordion' 'tip';
        grid-template-rows: none;
    }
    .slider__slide img { aspect-ratio: 16 / 10; }
    .planet { background-image: none; }
}

@media (max-width: 700px) {
    /* На телефоне три в ряд будут мелкими: афиши листаются пальцем, следующая выглядывает сбоку. */
    .posters {
        display: flex;
        gap: 16px;
        margin-right: -16px;
        padding: 0 16px 14px 0;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
    }
    .posters::-webkit-scrollbar { display: none; }
    .poster { flex: 0 0 min(84%, 360px); scroll-snap-align: start; }
}

@media (max-width: 860px) {
    :root { --header-height: 66px; --shadow-hard: 6px 8px 0 var(--space-900); }
    body { font-size: 16px; }
    .site-header__logo img { height: 40px; }
    .hero__grid { grid-template-columns: 1fr; gap: 12px; }
    .hero__art { width: min(82%, 380px); }
    .rooms, .extras, .programs, .booking-panel { grid-template-columns: minmax(0, 1fr); }
    .site-footer__grid { grid-template-columns: 1fr 1fr; }
    .site-footer__grid > :first-child { grid-column: 1 / -1; }
    .deco-star { display: none; }
}

@media (max-width: 560px) {
    /* Три колонки здесь не помещаются: название строкой, под ним две цены с подписями. */
    .price-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
    .price-table tbody tr {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 6px 12px;
        padding-block: 12px;
    }
    .price-table tbody th { grid-column: 1 / -1; padding: 0; font-weight: 600; }
    .price-table td { padding: 0; text-align: left; }
    .price-table td::before {
        content: attr(data-label);
        display: block;
        color: var(--muted);
        font-size: 13px;
        font-weight: 600;
    }
    .slider__arrow { width: 40px; height: 40px; margin-top: -20px; }
}

@media (max-width: 480px) {
    .site-header__row { gap: 12px; }
    .site-header__cta { display: none; }
    .site-menu { margin-left: auto; }
    .hero__actions .btn { width: 100%; }
    .location-pill { font-size: 13px; }
    .package { padding: 32px 26px 88px; flex-basis: 100%; }
    .booking-panel { padding: 26px 20px; }
    .site-footer__grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .hero__art img { animation: none; }
    .btn, .slider__arrow, .poster__zoom, .accordion__icon, .accordion__panel, .accordion__inner { transition: none; }
    .rules-dialog[open], .rules-dialog::backdrop, .poster-dialog[open], .poster-dialog::backdrop { animation: none; }
}
