/* Франшиза Инь-Янь. Мир ночной вывески: тёплый почти-чёрный, кремовый свет букв,
   красная точка логотипа как единственный акцент, один сплошной красный пласт под деньгами.
   Скругления: кнопки и переключатель таблеткой, фото и лист сметы 20px. */
:root {
  --night: #120F0D;
  --night-2: #1B1714;
  --sky: #16222B;
  --cream: #F3ECE1;
  --muted: #ABA195;
  --line: rgba(243, 236, 225, .14);
  --red: #C81810;
  --red-press: #A9140D;
  --on-red: #FBEAE6;
  --paper: #F6F0E6;
  --paper-ink: #1E1A17;
  --paper-muted: #6E655C;
  --display: 'Onest', 'Golos Text', system-ui, sans-serif;
  --text: 'Golos Text', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --gut: clamp(20px, 4.2vw, 80px);
  --r: 20px;
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --ease-io: cubic-bezier(.77, 0, .175, 1);
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; background: var(--night); }
body { margin: 0; background: var(--night); color: var(--cream); font: 400 17px/1.55 var(--text); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
::selection { background: var(--red); color: #fff; }
:focus-visible { outline: 2px solid var(--cream); outline-offset: 3px; border-radius: 6px; }
html { scrollbar-color: #3a322c var(--night); }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--night); }
::-webkit-scrollbar-thumb { background: #3a322c; border-radius: 99px; border: 2px solid var(--night); }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--cream); color: var(--night); padding: 10px 16px; border-radius: 99px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }
.ic { width: 20px; height: 20px; fill: currentColor; flex: none; }
.wrap { width: 100%; padding: 0 var(--gut); }
.muted { color: var(--muted); }

/* ---------- type ---------- */
.h1, .h2, .when, .sum-big, .facts dd { font-family: var(--display); font-weight: 800; }
.h1 { font-size: clamp(44px, 6.4vw, 108px); line-height: 1; letter-spacing: -.02em; text-wrap: balance; }
.h2 { font-size: clamp(32px, 3.6vw, 60px); line-height: 1.06; letter-spacing: -.02em; text-wrap: balance; }
.lead { font-size: clamp(18px, 1.45vw, 21px); line-height: 1.5; color: #DCD3C7; max-width: 40ch; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 0 26px; border-radius: 999px;
  font: 600 17px/1 var(--text); text-decoration: none; white-space: nowrap;
  transition: transform 160ms var(--ease-out), background-color 200ms ease, box-shadow 200ms ease; }
.btn:active { transform: scale(.97); }
.btn-red { background: var(--red); color: #fff; box-shadow: 0 10px 28px -12px rgba(200, 24, 16, .75), inset 0 1px 0 rgba(255,255,255,.14); }
.btn-cream { background: var(--paper); color: var(--paper-ink); box-shadow: 0 12px 30px -14px rgba(40, 6, 3, .7); }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: 15px; gap: 8px; }
.btn-sm .ic { width: 18px; height: 18px; }
@media (hover: hover) and (pointer: fine) {
  .btn-red:hover { background: var(--red-press); }
  .btn-cream:hover { background: #fff; }
}
.link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 600; text-decoration: underline; text-decoration-color: rgba(243,236,225,.35); text-underline-offset: 6px; text-decoration-thickness: 1.5px; transition: text-decoration-color 200ms ease; }
.link .ic { width: 18px; height: 18px; transition: transform 200ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .link:hover { text-decoration-color: var(--red); }
  .link:hover .ic { transform: translate(2px, 2px); }
  .link-out:hover .ic { transform: translate(2px, -2px); }
}

/* ---------- nav ---------- */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 30; padding-top: env(safe-area-inset-top);
  transition: background-color 260ms ease, box-shadow 260ms ease, -webkit-backdrop-filter 260ms ease, backdrop-filter 260ms ease; }
.nav.solid { background: rgba(18, 15, 13, .82); -webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%); box-shadow: 0 1px 0 var(--line); }
.nav-in { display: flex; align-items: center; gap: 24px; height: 72px; padding: 0 var(--gut); }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; margin-right: auto; }
.brand img { width: auto; height: 28px; }
.brand-t { padding-left: 14px; border-left: 1px solid rgba(243,236,225,.25); font: 600 14px/1 var(--text); color: #DCD3C7; letter-spacing: .01em; }
.nav-links { display: flex; gap: 6px; }
.nav-links a { padding: 10px 14px; border-radius: 99px; font-size: 15px; font-weight: 500; text-decoration: none; color: #DCD3C7; transition: background-color 200ms ease, color 200ms ease; }
@media (hover: hover) and (pointer: fine) { .nav-links a:hover { background: rgba(243,236,225,.08); color: var(--cream); } }

/* ---------- hero: фото на всё окно, затемнение и переход в фон страницы ---------- */
.hero { position: relative; isolation: isolate; display: flex; align-items: flex-end; min-height: 100vh; min-height: 100svh; overflow: hidden; background: var(--night); }
.hero-bg img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 58% 40%; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(18,15,13,.9) 0%, rgba(18,15,13,.72) 30%, rgba(18,15,13,.25) 58%, rgba(18,15,13,.05) 80%),
    linear-gradient(0deg, var(--night) 0%, rgba(18,15,13,.7) 14%, rgba(18,15,13,0) 42%),
    linear-gradient(180deg, rgba(18,15,13,.7) 0%, rgba(18,15,13,0) 18%); }
.hero-copy { display: flex; flex-direction: column; gap: 28px; width: 100%; max-width: 60rem; padding: 140px var(--gut) clamp(72px, 12vh, 140px); }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; margin-top: 8px; }
.lead { max-width: 38ch; color: #E4DCD0; }

/* ---------- семья за столом ---------- */
.table-sec { padding: clamp(96px, 11vw, 160px) 0; background: #F5EFE5; color: #1E1B18; }
/* светлый блок в цветах QR-меню: крем #F5EFE5, чернила #1E1B18, второстепенный #6F6961 */
.table-sec .table-copy p { color: #3B3632; }
.table-sec .table-copy p.muted { color: #6F6961; }
.table-sec .link { text-decoration-color: rgba(30,27,24,.3); }
.table-sec ::selection { background: var(--red); color: #fff; }
.table-sec :focus-visible { outline-color: #1E1B18; }
.table-sec .mosaic img { background: #EBE2D4; box-shadow: 0 24px 50px -30px rgba(60, 40, 20, .45); }
@media (hover: hover) and (pointer: fine) { .table-sec .link:hover { text-decoration-color: var(--red); } }
.table-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.table-copy { display: flex; flex-direction: column; gap: 20px; max-width: 34rem; }
.table-copy .h2 { margin-bottom: 4px; }
.table-copy .link { align-self: flex-start; margin-top: 8px; }
.mosaic { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto 1fr; gap: 12px; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--r); background: var(--night-2); }
.m-kids { grid-row: 1 / 3; aspect-ratio: 2 / 3; }
.m-bar { aspect-ratio: 3 / 2; }
.m-neon { min-height: 0; object-position: 50% 40%; }

/* ---------- зал во всю ширину ---------- */
.hall-sec { padding: clamp(88px, 10vw, 140px) 0; }
.hall-head { display: flex; flex-direction: column; gap: 16px; margin-bottom: clamp(32px, 4vw, 56px); }
.hall-head p { color: #DCD3C7; max-width: 40rem; }
.hall-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.hall-grid img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; background: var(--night-2); }

/* ---------- путь до открытия ---------- */
.open-sec { padding: clamp(88px, 10vw, 140px) 0; background: var(--night-2); }
.open-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.open-head { position: sticky; top: 108px; display: flex; flex-direction: column; gap: 20px; }
.open-head > p { color: #DCD3C7; max-width: 30rem; }
.open-photo { width: 100%; max-width: 440px; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r); margin-top: 20px; }

.rail { position: relative; display: flex; flex-direction: column; gap: clamp(48px, 7vw, 84px); padding: 8px 0 8px 44px; }
.rail::before, .rail::after { content: ""; position: absolute; left: 11px; top: 14px; bottom: 14px; width: 2px; border-radius: 2px; }
.rail::before { background: var(--line); }
.rail::after { background: var(--red); transform-origin: top; transform: scaleY(var(--fill, 1)); }
.stage { position: relative; display: grid; grid-template-columns: minmax(150px, .75fr) minmax(0, 2.6fr); gap: 8px clamp(24px, 3vw, 56px); align-items: baseline; }
.stage::before { content: ""; position: absolute; left: -44px; top: 6px; width: 24px; height: 24px; border-radius: 50%;
  background: var(--night-2); box-shadow: inset 0 0 0 2px #4a413a; transition: background-color 300ms ease, box-shadow 300ms ease; z-index: 1; }
.stage.on::before { background: var(--red); box-shadow: inset 0 0 0 2px var(--red), 0 0 0 6px rgba(200, 24, 16, .18); }
.when { font-size: clamp(24px, 2.4vw, 34px); line-height: 1.1; color: #7C716A; transition: color 300ms ease; }
.stage.on .when { color: var(--cream); }
.stage-body { display: flex; flex-direction: column; gap: 12px; }
.stage-body > p { max-width: 62ch; }
.stage-body h3 { font: 600 21px/1.3 var(--text); }
.stage-body > p { color: #CFC6BA; }
.gets { display: flex; flex-wrap: wrap; gap: 10px 40px; margin-top: 6px; }
.gets li { display: flex; gap: 12px; align-items: flex-start; font-weight: 500; }
.gets .ic { width: 20px; height: 20px; margin-top: 2px; color: var(--red); }

/* ---------- деньги ---------- */
.money { background: var(--red); color: #fff; padding: clamp(80px, 9vw, 128px) 0; }
.money-left { display: flex; flex-direction: column; align-items: flex-start; gap: 32px; }
.money-left .summary { align-self: stretch; margin-top: 8px; }
.money .h2 { max-width: 14ch; }
.seg { position: relative; display: inline-grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 5px; border-radius: 999px; background: rgba(60, 4, 1, .32); box-shadow: inset 0 1px 2px rgba(40, 3, 0, .35); }
.seg button { position: relative; z-index: 1; min-height: 48px; padding: 0 22px; border-radius: 999px; font-weight: 600; font-size: 16px; color: var(--on-red); transition: color 220ms ease; }
.seg button[aria-checked="true"] { color: var(--paper-ink); }
.seg-thumb { position: absolute; z-index: 0; top: 5px; bottom: 5px; left: 5px; width: calc((100% - 10px) / 3); border-radius: 999px; background: var(--paper);
  box-shadow: 0 6px 16px -8px rgba(40, 3, 0, .8); transform: translateX(calc(var(--i, 1) * 100%)); transition: transform 320ms var(--ease-out); }

.money-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.summary { display: flex; flex-direction: column; gap: 10px; }
.sum-label { font-size: 17px; color: var(--on-red); }
.sum-big { font-size: clamp(40px, 4.2vw, 76px); line-height: 1.02; letter-spacing: -.015em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 24px; margin: 26px 0 32px; padding-top: 26px; border-top: 1px solid rgba(255, 234, 230, .3); }
.facts dt { font-size: 15px; color: var(--on-red); margin-bottom: 6px; }
.facts dd { font-size: clamp(19px, 2vw, 28px); line-height: 1.1; font-variant-numeric: tabular-nums; white-space: nowrap; }
.facts .wide-f { grid-column: 1 / -1; }
.summary .btn { align-self: flex-start; }
[data-f] { display: inline-block; transition: filter 180ms ease, opacity 180ms ease, transform 180ms var(--ease-out); }
.swap [data-f] { filter: blur(4px); opacity: 0; transform: translateY(4px); }

.sheet { background: var(--paper); color: var(--paper-ink); border-radius: var(--r); padding: clamp(20px, 2.6vw, 34px) clamp(16px, 2.6vw, 36px) clamp(16px, 2vw, 28px);
  box-shadow: 0 30px 60px -30px rgba(50, 4, 0, .75), 0 2px 0 rgba(255,255,255,.4) inset; }
.sheet table { width: 100%; border-collapse: collapse; font-size: 15px; font-variant-numeric: tabular-nums; }
.sheet caption { text-align: left; font: 800 24px/1.2 var(--display); letter-spacing: -.015em; padding: 0 0 18px; }
.sheet th, .sheet td { padding: 7px 10px; text-align: right; vertical-align: baseline; }
.sheet tbody th, .sheet tfoot th { text-align: left; font-weight: 400; padding-left: 0; }
.sheet thead th { padding-bottom: 10px; }
.sheet thead button { min-height: 40px; padding: 0 12px; border-radius: 99px; font-weight: 600; font-size: 15px; color: var(--paper-muted); transition: background-color 200ms ease, color 200ms ease; }
.sheet td { color: var(--paper-muted); white-space: nowrap; transition: color 200ms ease, background-color 200ms ease; }
.sheet td.nil { font-size: 13px; }
.sheet .grp th { text-align: left; padding: 22px 0 6px; font-weight: 600; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--paper-muted); }
.sheet tbody tr:first-child th { padding-top: 4px; }
.sheet tfoot th, .sheet tfoot td { padding-top: 16px; padding-bottom: 6px; border-top: 1.5px solid var(--paper-ink); font-weight: 600; font-size: 16px; }
.sheet tfoot th { font: 800 19px/1.2 var(--display); }
.sheet[data-active="mini"] .c-mini, .sheet[data-active="std"] .c-std, .sheet[data-active="maxi"] .c-maxi { color: var(--paper-ink); background: rgba(200, 24, 16, .07); }
.sheet[data-active="mini"] td.c-mini, .sheet[data-active="std"] td.c-std, .sheet[data-active="maxi"] td.c-maxi { font-weight: 600; }
.sheet[data-active="mini"] thead .c-mini, .sheet[data-active="std"] thead .c-std, .sheet[data-active="maxi"] thead .c-maxi { background: none; }
.sheet[data-active="mini"] thead .c-mini button, .sheet[data-active="std"] thead .c-std button, .sheet[data-active="maxi"] thead .c-maxi button { background: var(--red); color: #fff; }
.sheet[data-active="mini"] tfoot .c-mini, .sheet[data-active="std"] tfoot .c-std, .sheet[data-active="maxi"] tfoot .c-maxi { color: var(--red); }
@media (hover: hover) and (pointer: fine) { .sheet thead button:hover { color: var(--paper-ink); } }

/* ---------- финал ---------- */
.close { padding: clamp(96px, 11vw, 160px) 0 0; background: radial-gradient(120% 70% at 20% 0%, #1d1815 0%, var(--night) 60%); }
.close-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.close-photo { width: 100%; max-width: 560px; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%; border-radius: var(--r); }
.close-copy { display: flex; flex-direction: column; gap: 22px; align-items: flex-start; }
.close-copy > p { color: #DCD3C7; max-width: 30rem; }
.contacts { display: flex; flex-direction: column; gap: 4px; margin-top: 18px; width: 100%; }
.contacts li { display: flex; align-items: center; gap: 14px; min-height: 44px; font-size: 18px; }
.contacts .ic { color: var(--muted); }
.contacts a { text-decoration: none; background-image: linear-gradient(currentColor, currentColor); background-size: 0 1.5px; background-repeat: no-repeat; background-position: 0 100%; transition: background-size 260ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .contacts a:hover { background-size: 100% 1.5px; } }
.foot { width: calc(100% - 2 * var(--gut)); margin-left: auto; margin-right: auto; padding-left: 0; padding-right: 0; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; margin-top: clamp(80px, 9vw, 128px); padding-top: 28px; padding-bottom: calc(28px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.foot a { text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgba(171,161,149,.4); }

/* ---------- движение ---------- */
@media (prefers-reduced-motion: no-preference) {
  .rise { animation: rise 900ms var(--ease-out) both; animation-delay: calc(180ms + var(--d) * 90ms); }
  .hero-bg img { animation: settle 1600ms var(--ease-out) both; }
  @keyframes rise { from { opacity: 0; transform: translateY(18px); filter: blur(6px); } }
  @keyframes settle { from { opacity: 0; transform: scale(1.06); } }
  /* красная нить заливается по мере прокрутки; без поддержки линия просто полная */
  @supports (animation-timeline: view()) {
    .rail::after { animation: fill linear both; animation-timeline: view(); animation-range: cover 18% cover 72%; }
    @keyframes fill { from { transform: scaleY(0); } to { transform: scaleY(1); } }
  }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .seg-thumb, [data-f] { transition: none; }
  .swap [data-f] { filter: none; transform: none; }
}

/* ---------- адаптив ---------- */
@media (max-width: 1080px) {
  .nav-links { display: none; }
  .money-grid { grid-template-columns: minmax(0, 1fr); }
  .summary { max-width: 40rem; }
}
@media (max-width: 899px) {
  body { font-size: 16px; }
  .nav-in { height: 60px; gap: 12px; }
  .brand img { height: 22px; }
  .brand { gap: 10px; }
  .brand-t { padding-left: 10px; font-size: 13px; }
  .wide { display: none; }
  .hero { min-height: 100svh; }
  .hero-bg img { object-position: 50% 30%; }
  .hero::before { background:
    linear-gradient(0deg, var(--night) 0%, rgba(18,15,13,.88) 30%, rgba(18,15,13,.35) 58%, rgba(18,15,13,.1) 72%),
    linear-gradient(180deg, rgba(18,15,13,.75) 0%, rgba(18,15,13,0) 16%); }
  .hero-copy { padding: 120px var(--gut) 40px; gap: 18px; }
  .cta-row .btn { width: 100%; }
  .hall-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; }
  .table-grid, .open-grid, .close-grid { grid-template-columns: minmax(0, 1fr); }
  .table-copy { max-width: none; }
  .mosaic { gap: 10px; }
  .open-head { position: static; }
  .open-photo { display: none; }
  .rail { padding-left: 38px; }
  .stage { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .gets { flex-direction: column; }
  .stage::before { left: -38px; }
  .money .h2 { max-width: none; }
  .seg { width: 100%; }
  .seg button { padding: 0 8px; }
  .summary .btn { align-self: stretch; }
  .sheet { padding: 20px 16px 14px; margin: 0 calc(var(--gut) * -.4); }
  .sheet th, .sheet td { padding: 7px 4px; }
  /* на телефоне видна одна колонка: выбранный пакет */
  .sheet[data-active="mini"] .c-std, .sheet[data-active="mini"] .c-maxi,
  .sheet[data-active="std"] .c-mini, .sheet[data-active="std"] .c-maxi,
  .sheet[data-active="maxi"] .c-mini, .sheet[data-active="maxi"] .c-std { display: none; }
  .sheet thead { display: none; }
  .sheet caption::after { content: attr(data-pkg); display: block; margin-top: 4px; font: 600 14px/1.3 var(--text); color: var(--red); }
  .close-photo { max-width: none; aspect-ratio: 4 / 3; }
  .close-copy .btn { width: 100%; }
  .contacts li { font-size: 17px; }
}
@media (max-width: 380px) {
  .h1 { font-size: 36px; }
  .sum-big { font-size: 36px; }
}
