/* FANAT.KG: раскладка сайта (шапка, hero, секции, подвал, формы). Требует paper-tokens, paper-motion, club-tokens, components, boards. */

.skip-link { position: absolute; z-index: 100; left: 12px; top: -48px; padding: 10px 14px; border-radius: var(--r-sheet); background: var(--surface); color: var(--hub-ink); box-shadow: var(--shadow-thumb); text-decoration: none; }
.skip-link:focus { top: 12px; }

/* ───────── шапка: липкая, над hero и фото ───────── */
.site-header { position: sticky; top: 0; z-index: 50; margin-bottom: calc(var(--header-h) * -1); pointer-events: none; }
.site-header > * { pointer-events: auto; }
.site-header__row {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  min-height: var(--header-h); padding-top: 16px; pointer-events: none;
}
.site-header__row > * { pointer-events: auto; }
.site-header__logo { justify-self: start; display: block; width: 36px; }
.site-header__logo img { width: 36px; height: 45px; }
.site-header__controls { justify-self: end; display: flex; align-items: center; gap: 8px; }

@media (width <= 820px) {
  .site-header { position: absolute; inset: 0 0 auto 0; margin-bottom: 0; }
  .site-header__row { grid-template-columns: auto 1fr; grid-template-areas: "logo controls" "nav nav"; row-gap: 12px; padding-top: calc(12px + env(safe-area-inset-top)); }
  .site-header__logo { grid-area: logo; }
  .site-header__controls { grid-area: controls; gap: 6px; }
  .site-header .nav-pill { grid-area: nav; justify-self: stretch; }
}

/* ───────── hero главной ───────── */
.hero {
  position: relative; isolation: isolate; overflow: clip;
  display: grid; align-items: end; min-height: max(700px, 100dvh);
  background: #000;
}
/* слои заданы явно: видео 0, затемнение 1, содержимое 2. Без отрицательных z-index, чтобы видео не перекрывало текст ни в одном браузере */
/* медиа-слой выходит за края на 36px: размытие не даёт светлой каймы на границе видео */
.hero__media { position: absolute; inset: -36px; z-index: 0; background: #000 url("media/hero-poster.jpg") 50% 50% / cover no-repeat; filter: blur(14px); transition: filter .5s var(--ease-out); }
.media-sharp .hero__media, .media-sharp .page-hero__media, .media-sharp .auth__media-bg { filter: none; }
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: fade 1.2s; }
.hero__shade { position: absolute; inset: 0; z-index: 1; background: var(--scrim); }
.hero__inner { position: relative; z-index: 2; display: grid; gap: 48px; padding-block: 140px 28px; }

.hero__main { display: grid; justify-items: center; gap: 36px; text-align: center; }
/* строка "С 2014 года" привязана к левому верхнему углу текста заголовка */
.hero__title-block { position: relative; padding-top: 36px; max-width: 100%; }
.hero__eyebrow { position: absolute; left: 0; top: 0; margin: 0; font-size: 15px; font-weight: 500; letter-spacing: .01em; color: var(--hub-muted); }
.hero__title {
  margin: 0; font-family: var(--display); font-variation-settings: var(--display-features); font-weight: 800;
  font-size: clamp(36px, 4.8vw, 68px); line-height: 1.04; letter-spacing: -.02em; text-wrap: balance;
}
.hero__prices { display: grid; justify-items: center; gap: 16px; }
.hero__prices dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: min(100%, 780px); margin: 0; }
.hero__prices dl div { display: grid; justify-items: center; gap: 8px; padding: 2px 12px; box-shadow: inset -.5px 0 0 rgb(255 255 255 / .24); }
.hero__prices dl div:last-child { box-shadow: none; }
.hero__prices dt { font-size: 16px; color: var(--hub-muted); }
.hero__prices dd { display: flex; align-items: baseline; gap: 6px; margin: 0; }
.hero__prices dd b { font-family: var(--display); font-variation-settings: var(--display-features); font-weight: 800; font-size: clamp(36px, 4vw, 56px); line-height: 1; letter-spacing: -.01em; font-variant-numeric: lining-nums tabular-nums; }
.hero__prices dd small { font-size: 15px; font-weight: 400; color: var(--hub-muted); }
.hero__actions { display: flex; justify-content: center; }

.branches-block { display: grid; gap: 10px; }
.branches-block__bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.branches-block__caption { margin: 0; font-size: 12px; font-weight: 400; color: var(--hub-muted); }
.branches { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.branch .sheet { gap: 6px; padding: 14px; }
.branch .link-arrow { margin-top: 8px; }

@media (width <= 820px) {
  .hero { min-height: 100dvh; }
  .hero__inner { gap: 32px; padding-block: 150px calc(20px + env(safe-area-inset-bottom)); }
  .hero__main { gap: 28px; }
  .hero__title { font-size: clamp(31px, 8.4vw, 56px); }
  .hero__title-block { padding-top: 32px; }
  .hero__prices dt { font-size: 14px; }
  .hero__prices dd b { font-size: 31px; }
  .hero__prices dd { display: grid; justify-items: center; gap: 0; }
  .hero__prices dd small { font-size: 12px; line-height: 1.5; }
  .hero__actions { width: 100%; }
  .hero__actions .btn { flex: 1 1 auto; }
  .branches { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .branch .sheet { padding: 12px; }
}

/* ───────── шапка внутренней страницы ───────── */
.page-hero {
  position: relative; isolation: isolate; overflow: clip; display: grid; align-items: end;
  min-height: clamp(380px, 54vh, 500px); padding-block: 140px 56px;
  background: #000;
}
/* фон шапки страницы вынесен в слой: размытие не затрагивает текст; слой шире экрана на 36px, чтобы размытие не давало каймы на краю */
.page-hero__media { position: absolute; inset: -36px; z-index: 0; background: #000 50% 50% / cover no-repeat; filter: blur(14px); transition: filter .5s var(--ease-out); }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: 1; background: var(--scrim); }
.page-hero__tools { position: absolute; z-index: 3; left: 0; right: 0; bottom: 16px; margin-inline: auto; display: flex; justify-content: flex-end; pointer-events: none; }
.page-hero__tools > * { pointer-events: auto; }
.page-hero__inner { position: relative; z-index: 2; display: grid; justify-items: start; gap: 18px; }
.page-hero h1 { margin: 0; max-width: 18ch; font-family: var(--display); font-variation-settings: var(--display-features); font-weight: 800; font-size: clamp(36px, 5vw, 64px); line-height: 1.04; letter-spacing: -.02em; text-wrap: balance; }
.page-hero--center .page-hero__inner { justify-items: center; text-align: center; }
.page-hero--center h1 { max-width: 22ch; }
.page-hero p { margin: 0; max-width: 560px; font-size: 17px; line-height: 1.5; color: var(--hub-muted); }

/* ───────── секции ───────── */
.section { padding-block: 56px; scroll-margin-top: 24px; }
.section__head { display: grid; gap: 10px; max-width: 680px; margin-bottom: 24px; }
.section__head h2, .h2 { margin: 0; font-family: var(--display); font-variation-settings: var(--display-features); font-weight: 700; font-size: clamp(28px, 3.4vw, 40px); line-height: 1.08; letter-spacing: -.02em; }
.section__head p { margin: 0; font-size: 16px; line-height: 1.5; color: var(--hub-muted); }
.section__head--center { margin-inline: auto; justify-items: center; text-align: center; }
.section__head--row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px; max-width: none; }
.section__head--row > div { display: grid; gap: 10px; max-width: 680px; }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px; align-items: start; }
.split > .section__head { position: sticky; top: 96px; margin-bottom: 0; }
.about-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; text-align: center; }
.about-grid .section__head { margin-inline: auto; justify-items: center; }
.about-grid .prose { margin-inline: auto; }
.service p strong { font-weight: 500; color: var(--hub-ink); }
.prose { display: grid; gap: 16px; max-width: 680px; }
.prose p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--paper-body); }
.prose strong { font-weight: 500; color: var(--hub-ink); }

/* ───────── услуги ───────── */
.services { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.service .sheet { gap: 16px; padding: 14px 14px 22px; }
.service__cover { position: relative; display: block; width: 100%; padding: 0; border: 0; aspect-ratio: 2 / 1; overflow: hidden; border-radius: var(--r-sheet); background: rgb(var(--tint) / .05); text-align: left; }
.service__cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease-out); }
.service__cover:hover img { transform: scale(1.03); }
.service__cover::after { content: ""; position: absolute; right: 10px; bottom: 10px; width: 32px; height: 32px; border-radius: 50%; background: rgb(20 20 20 / .7) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 4h6v6M10 20H4v-6M20 4l-7 7M4 20l7-7'/%3E%3C/svg%3E") 50% / 16px no-repeat; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); opacity: 0; transition: opacity .2s; }
.service__cover:hover::after, .service__cover:focus-visible::after { opacity: 1; }
.service__cover img[src$="service-3.webp"] { object-position: 50% 30%; }
.service__cover .chip { position: absolute; left: 10px; top: 10px; background: rgb(20 20 20 / .72); color: #f2f2f2; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.service h3 { margin: 4px 0 0; padding: 0 6px; font-family: var(--display); font-variation-settings: var(--display-features); font-weight: 700; font-size: 26px; line-height: 1.12; letter-spacing: -.01em; }
.service p { margin: 0; padding: 0 6px; font-size: 15px; line-height: 1.55; color: var(--hub-muted); }

/* ───────── галерея: карусель с глубиной (порт DepthCarousel из React Bits) ───────── */
.depth-gallery { position: relative; height: 520px; } /* точную высоту ставит depth-carousel.js по размеру карточки */
.depth-carousel { position: relative; width: 100%; overflow: hidden; display: flex; align-items: center; justify-content: center; perspective: var(--dc-perspective, 1400px); perspective-origin: 50% 50%; touch-action: pan-y; overscroll-behavior-x: contain; outline: none; user-select: none; -webkit-user-select: none; }
.depth-carousel:focus-visible { outline: 2px solid rgb(255 255 255 / .5); outline-offset: 4px; border-radius: 12px; }
.depth-carousel__stage { position: absolute; inset: 0; transform-style: preserve-3d; }
.depth-carousel__card { position: absolute; top: 50%; left: 50%; transform-origin: center center; overflow: hidden; background: #0b0d12; box-shadow: 0 30px 60px -20px rgb(0 0 0 / .65), 0 8px 20px -10px rgb(0 0 0 / .5); will-change: transform, opacity, filter; transform: translate(-50%, -50%); }
.depth-carousel__card[data-lightbox] { cursor: zoom-in; }
.depth-carousel__img { display: block; width: 100%; height: 100%; object-fit: cover; pointer-events: none; -webkit-user-drag: none; }
.depth-carousel__tint { position: absolute; inset: 0; opacity: 0; pointer-events: none; mix-blend-mode: multiply; }
.depth-carousel__arrow { position: absolute; top: 50%; z-index: 3000; display: grid; place-items: center; width: 56px; height: 56px; padding: 0; border: 0; border-radius: 999px; background: rgb(18 20 26 / .62); color: #fff; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); transform: translateY(-50%); transition: background-color .2s, transform .2s var(--ease-spring); }
.depth-carousel__arrow:hover { background: rgb(40 43 52 / .85); }
.depth-carousel__arrow:active { transform: translateY(-50%) scale(.94); }
.depth-carousel__arrow--prev { left: 12px; }
.depth-carousel__arrow--next { right: 12px; }
.depth-carousel__arrow svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.depth-carousel__dots { position: absolute; bottom: 4px; left: 50%; z-index: 3000; display: flex; gap: 10px; padding: 10px 16px; border-radius: 999px; background: rgb(14 16 22 / .5); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); transform: translateX(-50%); }
.depth-carousel__dot { width: 10px; height: 10px; padding: 0; border: 0; border-radius: 999px; background: rgb(255 255 255 / .32); transition: width .25s, background-color .25s; }
.depth-carousel__dot.is-active { width: 28px; background: #fff; }
@media (prefers-reduced-motion: reduce) { .depth-carousel__card { will-change: auto; } }

/* ───────── факты и отзывы ───────── */
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.fact .sheet { gap: 6px; padding: 20px; }
.fact__value { font-family: var(--display); font-variation-settings: var(--display-features); font-weight: 800; font-size: clamp(28px, 2.9vw, 42px); line-height: 1; letter-spacing: -.02em; white-space: nowrap; font-variant-numeric: lining-nums tabular-nums; }
.fact__label { font-size: 14px; color: var(--hub-muted); }
.reviews { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.review .sheet { gap: 16px; padding: 20px; height: 100%; align-content: space-between; }
.review blockquote { margin: 0; font-size: 16px; line-height: 1.55; }
.review figcaption { font-size: 13px; color: var(--hub-muted); }

/* ───────── боковые баннеры партнёров: вплотную к краям экрана, контент между ними ───────── */
.rails { --rail-w: clamp(170px, 19vw, 380px); display: grid; grid-template-columns: var(--rail-w) minmax(0, 1fr) var(--rail-w); grid-template-areas: "left content right" "left footer right"; align-items: start; }
.rails__content { min-width: 0; padding-inline: clamp(24px, 3.4vw, 56px); }
.rails__content > .section { max-width: 1140px; margin-inline: auto; }
.rails__footer { grid-area: footer; min-width: 0; padding-inline: clamp(24px, 3.4vw, 56px); }
.rails__footer .container { width: 100%; }
.rails > .rails__content { grid-area: content; }
.rails > .rail--left { grid-area: left; }
.rails > .rail--right { grid-area: right; }
.rail { position: sticky; top: 88px; }
.banner { display: block; overflow: hidden; border-radius: var(--r-media); box-shadow: var(--hair); transition: transform .35s var(--ease-out); }
.banner:hover { transform: translateY(-2px); }
.banner img { display: block; width: 100%; height: auto; }
.rail--left .banner { border-radius: 0 var(--r-media) var(--r-media) 0; }
.rail--right .banner { border-radius: var(--r-media) 0 0 var(--r-media); }

/* ───────── партнёры: страница ───────── */
.partner-features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.partner-feature .sheet { grid-template-columns: 180px minmax(0, 1fr); align-items: start; gap: 28px; padding: 20px; }
.partner-feature__text { display: grid; align-content: start; gap: 14px; padding-top: 6px; }
.partner-feature__logo { width: 88px; height: 88px; border-radius: var(--r-media); object-fit: cover; }
.partner-feature h3 { margin: 0; font-family: var(--display); font-variation-settings: var(--display-features); font-weight: 800; font-size: 32px; line-height: 1.05; letter-spacing: -.015em; }
.partner-feature p { margin: 0; font-size: 16px; line-height: 1.5; color: var(--hub-muted); }
.partner-feature .caption { font-size: 13px; }

/* ───────── подарки лояльности ───────── */
.gift-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.gift .sheet { justify-items: center; align-content: center; gap: 14px; min-height: 148px; padding: 20px 12px 18px; text-align: center; }
.gift svg { width: 52px; height: 52px; fill: none; stroke: var(--hub-ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; opacity: .9; }
.gift span { font-size: 14px; line-height: 1.3; }
.gift--wide { grid-column: span 2; }
.gift--wide .sheet { grid-template-columns: auto minmax(0, 1fr); justify-items: start; text-align: left; gap: 18px; padding: 20px 24px 20px 20px; }
.gift__codes { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.gift__codes .chip { color: var(--hub-ink); }

/* ───────── контакты ───────── */
.contacts { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.contact .sheet { gap: 8px; padding: 16px; height: 100%; align-content: start; }
.contact__phone { color: var(--hub-ink); font-size: 15px; font-variant-numeric: tabular-nums; text-decoration: none; }
.contact__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 10px; }
.socials { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 28px; }

/* ───────── финальный призыв ───────── */
.cta-band { display: flex; flex-direction: column; align-items: center; gap: 20px; padding: 36px 32px; border-radius: var(--r-hero); background: rgb(var(--tint) / .05); text-align: center; }
.cta-band h2 { margin: 0; max-width: 560px; font-family: var(--display); font-variation-settings: var(--display-features); font-weight: 700; font-size: clamp(24px, 3vw, 32px); line-height: 1.12; letter-spacing: -.015em; }

/* ───────── подвал ───────── */
.site-footer { margin-top: 0; padding: 40px 0 32px; box-shadow: 0 -.5px 0 rgb(var(--tint) / .1); }
.footer__grid { display: grid; grid-template-columns: 1.3fr repeat(3, minmax(0, 1fr)); gap: 32px; }
.footer__brand { display: grid; align-content: start; gap: 14px; max-width: 280px; color: var(--hub-muted); line-height: 1.5; }
.footer__brand img { width: 40px; height: 50px; }
.footer__col h3 { margin: 0 0 14px; font-size: 12px; font-weight: 400; color: var(--hub-faint); }
.footer__col ul { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.footer__col a { color: var(--hub-muted); text-decoration: none; font-size: 14px; transition: color .15s; font-variant-numeric: tabular-nums; }
.footer__col a:hover { color: var(--hub-ink); }
.footer__bottom { margin-top: 48px; font-size: 12px; color: var(--hub-muted); }

/* ───────── формы ───────── */
.auth { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 100dvh; }
.auth__side { display: grid; align-content: center; justify-items: center; padding: 120px var(--gutter) 64px; }
.auth__card { display: grid; gap: 28px; width: min(100%, 440px); }
.auth__card h1 { margin: 0; font-family: var(--display); font-variation-settings: var(--display-features); font-weight: 800; font-size: clamp(30px, 3.6vw, 40px); line-height: 1.06; letter-spacing: -.02em; }
.auth__media { position: relative; isolation: isolate; overflow: hidden; background: #000; }
.auth__media-bg { position: absolute; inset: -36px; background: #000 50% 50% / cover no-repeat; filter: blur(14px); transition: filter .5s var(--ease-out); }
.auth__media::before { content: ""; position: absolute; inset: 0; z-index: 1; background: var(--scrim); }
.auth__media-tools { position: absolute; z-index: 2; right: 20px; bottom: 20px; }
.form { display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.field { display: grid; gap: 7px; }
.field > label { font-size: 13px; font-weight: 500; }
.field > label i { font-style: normal; color: var(--hub-muted); }
.field .hint { margin: 0; font-size: 12.5px; line-height: 1.45; color: var(--hub-muted); }
.input {
  width: 100%; height: 46px; padding: 0 14px; border: 0; border-radius: var(--r-sheet);
  background: rgb(var(--tint) / .06); box-shadow: var(--hair); color: var(--hub-ink); font: inherit; font-size: 15px;
  transition: background-color .15s, box-shadow .15s;
}
.input::placeholder { color: var(--hub-faint); }
.input:focus { outline: none; background: var(--surface); box-shadow: var(--shadow-focus), 0 0 0 2px rgb(var(--tint) / .22); }
.check { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.check input { appearance: none; -webkit-appearance: none; width: 20px; height: 20px; margin: 0; border-radius: 5px; background: rgb(var(--tint) / .1); box-shadow: var(--hair); transition: background-color .15s, transform .2s var(--ease-spring); }
.check input:active { transform: scale(.92); }
.check input:checked { background: var(--action) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%230b1020' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5.5 10.5 3 3 6-7'/%3E%3C/svg%3E") 50% / 14px no-repeat; }
.auth__links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: 14px; color: var(--hub-muted); }
.text-link { color: var(--hub-ink); text-decoration: underline; text-decoration-color: rgb(var(--tint) / .25); text-underline-offset: 3px; transition: text-decoration-color .15s; }
.text-link:hover { text-decoration-color: currentColor; }
.rules { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; font-size: 12.5px; color: var(--hub-muted); }

/* ───────── рейтинг игроков ───────── */
.toolbar { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-bottom: 24px; }
.ranking-wrap { overflow-x: auto; border-radius: var(--r-sheet); scrollbar-width: thin; }
.ranking { width: 100%; min-width: 760px; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.ranking th { padding: 12px 14px; text-align: left; font-size: 12px; font-weight: 400; color: var(--hub-muted); white-space: nowrap; box-shadow: 0 .5px 0 rgb(var(--tint) / .14); }
.ranking td { padding: 0 14px; height: 52px; box-shadow: 0 .5px 0 rgb(var(--tint) / .06); }
.ranking .ghost { display: block; height: 10px; border-radius: 5px; background: rgb(var(--tint) / .05); }
.empty-note { margin: 56px 0 0; text-align: center; font-size: 14px; color: var(--hub-muted); }

/* ───────── бронирование ───────── */
.booking { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; align-items: start; }
.steps { display: grid; gap: 48px; }
.step { display: grid; gap: 18px; }
.step__title { display: flex; align-items: center; gap: 12px; margin: 0; font-family: var(--display); font-variation-settings: var(--display-features); font-weight: 700; font-size: 24px; letter-spacing: -.01em; }
.step__title span { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: rgb(var(--tint) / .08); font-family: var(--hub-sans); font-size: 13px; font-weight: 500; }
.choices { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.choice { padding: 0; border: 0; background: none; text-align: left; font: inherit; color: inherit; }
.choice .sheet { height: 100%; align-content: start; gap: 6px; padding: 16px; transition: background-color .2s; }
.choice[aria-checked="true"] .sheet { background: var(--surface-3); }
.choice__mark { display: flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 12.5px; color: var(--hub-muted); }
.choice__mark::before { content: ""; width: 14px; height: 14px; border-radius: 50%; background: rgb(var(--tint) / .1); box-shadow: var(--hair); transition: background-color .2s, box-shadow .2s; }
.choice[aria-checked="true"] .choice__mark::before { background: var(--action); box-shadow: 0 0 0 3px rgb(var(--tint) / .12); }
.choice[aria-disabled="true"] { opacity: .45; }
.choice[aria-disabled="true"] .paper { filter: none; }
.choice__price { font-family: var(--display); font-variation-settings: var(--display-features); font-weight: 700; font-size: 20px; font-variant-numeric: lining-nums tabular-nums; }
.when-row { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.summary { position: sticky; top: 96px; }
.summary .sheet { gap: 14px; padding: 20px; }
.summary dl { display: grid; gap: 0; margin: 0; }
.summary .btn { width: 100%; }
.summary dl div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; box-shadow: 0 .5px 0 rgb(var(--tint) / .08); font-size: 14px; }
.summary dt { color: var(--hub-muted); }
.summary dd { margin: 0; text-align: right; font-weight: 500; font-variant-numeric: tabular-nums; }
.summary__total { display: flex; justify-content: space-between; align-items: baseline; }
.summary__total strong { font-family: var(--display); font-variation-settings: var(--display-features); font-weight: 800; font-size: 34px; line-height: 1; font-variant-numeric: lining-nums tabular-nums; }

/* ───────── мобильная версия ───────── */
@media (width <= 1240px) {
  .rails { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-areas: "content content" "left right" "footer footer"; gap: 12px; padding-inline: var(--gutter); }
  .rails > .rails__content { padding-inline: 0; }
  .rails__footer { padding-inline: 0; }
  .rail--left .banner, .rail--right .banner { border-radius: var(--r-media); }
  .rail { position: static; }
}
@media (width <= 1020px) {
  .split, .about-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .split > .section__head { position: static; }
  .facts, .contacts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .reviews { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .booking { grid-template-columns: minmax(0, 1fr); }
  .summary { position: static; }
}
@media (width <= 820px) {
  .section { padding-block: 40px; }
  .page-hero { min-height: 340px; padding-block: 160px 56px; }
  .page-hero p { font-size: 16px; }
  .services, .choices, .when-row, .partner-features { grid-template-columns: minmax(0, 1fr); }
  .gift-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .partner-feature .sheet { grid-template-columns: 120px minmax(0, 1fr); gap: 18px; padding: 16px; }
  .partner-feature__logo { width: 64px; height: 64px; }
  .partner-feature h3 { font-size: 26px; }
  .depth-carousel__arrow { width: 44px; height: 44px; }
  .depth-carousel__arrow--prev { left: 4px; }
  .depth-carousel__arrow--next { right: 4px; }
  .reviews { grid-template-columns: minmax(0, 1fr); }
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__brand { grid-column: 1 / -1; max-width: none; }
  .auth { grid-template-columns: minmax(0, 1fr); }
  .auth__media { display: none; }
  .auth__side { padding-top: 150px; }
  .cta-band { padding: 24px; }
  .form-row { grid-template-columns: minmax(0, 1fr); }
  .input { font-size: 16px; height: 48px; }
}
@media (width <= 520px) {
  .facts, .contacts { grid-template-columns: minmax(0, 1fr); }
}

/* ───────── фото на весь экран: плашка ───────── */
.lightbox { --lb-pad: clamp(10px, 2vw, 28px); position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: var(--lb-pad); background: rgb(0 0 0 / .82); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); animation: fade .25s; }
.lightbox[hidden] { display: none; }
.lightbox__plaque { position: relative; display: grid; gap: 8px; padding: 10px 10px 6px; border-radius: var(--r-modal); background: var(--surface); box-shadow: var(--shadow-modal); animation: pop .3s var(--ease-rise); }
.lightbox__img { display: block; max-width: 100%; border-radius: var(--r-media); background: rgb(var(--tint) / .05); }
.lightbox__caption { margin: 0; padding: 0 6px 4px; min-height: 22px; font-size: 13px; color: var(--hub-muted); }
.lightbox__close { position: absolute; top: 18px; right: 18px; display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: rgb(20 20 20 / .66); color: #fff; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); transition: transform .2s var(--ease-spring), background-color .15s; }
.lightbox__close:hover { background: rgb(40 40 42 / .8); }
.lightbox__close:active { transform: scale(.92); }
.lightbox__close svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
html.has-lightbox { overflow: hidden; }
