:root {
  color-scheme: light;
  --ink: #040b18;
  --navy: #081425;
  --paper: #f4f5ee;
  --white: #fff;
  --lime: #bedf00;
  --lime-hover: #d1ed31;
  --line: #d8ded4;
  --muted: #4b594f;
  --on-dark: #d0d8e5;
  --edge: clamp(22px, 5.2vw, 80px);
  --wrap: 1280px;
  --font: Arial, "Helvetica Neue", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 16px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.55 var(--font); }
::selection { background: var(--lime); color: var(--ink); }
:focus-visible { outline: 2px solid #456500; outline-offset: 4px; }
.header :focus-visible, .hero :focus-visible, .events :focus-visible, .footer :focus-visible, .film-dialog :focus-visible { outline-color: var(--lime-hover); }
[hidden] { display: none !important; }
a { color: inherit; text-underline-offset: .2em; }
button, input { font: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.02; letter-spacing: -.038em; }
h2 { font-size: clamp(42px, 5.1vw, 74px); }
h3 { font-size: clamp(26px, 3vw, 38px); }
.wrap { width: min(var(--wrap), 100% - var(--edge) * 2); margin-inline: auto; }
.icon { flex: none; display: block; width: 20px; height: 20px; }
.svg-symbols { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip { position: fixed; inset: 12px auto auto 12px; z-index: 5; transform: translateY(-160%); padding: 10px 14px; background: var(--white); }
.skip:focus { transform: none; }

.header { position: relative; z-index: 2; background: var(--ink); color: var(--white); border-bottom: 1px solid #fff3; }
.header-inner { display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: clamp(16px, 2vw, 32px); min-height: 78px; }
.brand { display: inline-flex; align-items: center; min-height: 44px; flex: none; }
.brand img { width: 152px; height: auto; }
.mobile-nav { display: none; }
.header-inner > nav { display: flex; justify-content: center; gap: clamp(13px, 2.1vw, 32px); }
.header nav a, .header-phone { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; white-space: nowrap; text-decoration: none; }
.header nav a:hover, .header-phone:hover { text-decoration: underline; }
.header-book { padding: 9px 15px; border: 1px solid #a0acc5; display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; font-weight: 700; white-space: nowrap; text-decoration: none; }
.header-book:hover { color: var(--lime-hover); border-color: var(--lime-hover); }

.hero { position: relative; isolation: isolate; display: grid; align-items: end; min-height: clamp(570px, 73svh, 740px); background: var(--navy); color: var(--white); overflow: hidden; }
.hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; object-fit: cover; object-position: 58% 54%; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, #040b18f5 0%, #040b18d9 26%, #040b1875 55%, #040b1812 87%), linear-gradient(0deg, #040b18c0, transparent 58%); }
.hero-content { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; padding-block: 52px 61px; }
.hero h1 { font-size: clamp(58px, 7.1vw, 96px); line-height: .94; letter-spacing: -.04em; text-wrap: balance; }
.hero h1 span { color: var(--lime); }
.hero p { color: #f1f5fb; font-size: clamp(16px, 1.4vw, 19px); line-height: 1.48; margin: 23px 0 26px; }
.button { min-height: 48px; display: inline-flex; justify-content: center; align-items: center; gap: 14px; padding: 11px 17px; border: 1px solid transparent; text-decoration: none; font-size: 15px; font-weight: 700; line-height: 1.25; }
.button-accent { background: var(--lime); color: var(--ink); }
.button-accent:hover { background: var(--lime-hover); }
.button-dark { background: var(--ink); color: var(--white); }
.button-dark:hover { background: #203249; }
.film-trigger { display: inline-flex; align-items: center; gap: 14px; padding: 10px 13px; text-align: left; flex: none; background: #040b18d9; color: var(--white); border: 1px solid #cdd7e681; }
.film-trigger:hover { border-color: var(--lime); }
.film-trigger strong, .film-trigger small { display: block; }
.film-trigger small { color: var(--on-dark); font-size: 12px; margin-top: 2px; }
.play-mark { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid #cdd7e681; border-radius: 50%; color: var(--lime-hover); }
.play-mark .icon { width: 22px; height: 22px; }

.club-strip { background: var(--lime); color: var(--ink); }
.strip-inner { display: flex; flex-wrap: wrap; align-items: center; min-height: 61px; gap: 10px 26px; padding-block: 12px; }
.strip-inner span { font-weight: 700; font-size: 14px; line-height: 1.3; }
.strip-inner span + span { border-inline-start: 1px solid #040b1860; padding-inline-start: 26px; }

.section { padding-block: clamp(64px, 8vw, 120px); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px 48px; padding-bottom: 36px; }
.section-head p, .club-copy > p, .event-copy > p { max-width: 34ch; font-size: 18px; }
.booking-shell { display: grid; grid-template-columns: .88fr 1.4fr; border-block: 1px solid var(--line); }
.formats { border-inline-end: 1px solid var(--line); }
.format { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 15px; min-height: 92px; padding: 16px 22px; background: transparent; text-align: left; color: var(--ink); border: 0; border-bottom: 1px solid var(--line); }
.format:hover { background: #e5eadb; }
.format[aria-pressed="true"] { background: var(--lime); }
.format:focus-visible { outline-offset: -4px; }
.format strong, .format small { display: block; }
.format strong { font-size: clamp(18px, 2vw, 25px); letter-spacing: -.022em; line-height: 1.15; }
.format small { color: #35413b; font-size: 13px; margin-top: 5px; }
.format-contact { padding: 19px 22px; font-size: 14px; color: var(--muted); }
.format-contact a { color: var(--ink); font-weight: 700; white-space: nowrap; }
.booking-panel { min-width: 0; padding: clamp(23px, 4vw, 49px); background: #fbfcf7; }
.booking-panel h3 + p { margin: 11px 0 21px; color: var(--muted); }
.choices { display: flex; flex-wrap: wrap; gap: 8px; margin-block: 0 14px; }
.choice { min-height: 44px; padding: 7px 12px; background: transparent; color: var(--ink); border: 1px solid #aab6a6; font-weight: 700; font-size: 14px; font-variant-numeric: tabular-nums; }
.choice:hover { background: #eef1e2; }
.choice[aria-pressed="true"] { background: var(--ink); color: var(--white); border-color: var(--ink); }
.times .choice { min-width: 70px; }
.booking-hint { font-size: 14px; color: var(--muted); }
.selection { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 13px 0 0; border-top: 1px solid var(--line); }
.selection strong, .selection span { display: block; }
.selection span { font-size: 13px; color: var(--muted); margin-top: 3px; }
.panel-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 16px; margin-top: 16px; }
.empty { border-top: 1px solid var(--line); padding-top: 16px; }
.empty p { margin-top: 5px; color: var(--muted); }
.text-button { display: inline-flex; align-items: center; justify-content: flex-start; gap: 8px; min-height: 44px; padding: 4px 0; border: 0; background: transparent; color: inherit; font-weight: 700; text-align: left; text-underline-offset: .2em; }
.text-button:hover { text-decoration: underline; }
.demo-options { margin-top: 19px; color: var(--muted); font-size: 13px; }
.demo-options summary { cursor: pointer; width: fit-content; padding: 6px 0; }

.club { padding-top: 0; }
.club-grid { display: grid; grid-template-columns: 1.2fr .88fr; align-items: center; gap: clamp(34px, 7vw, 110px); }
.club-photo { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; }
.club-copy > p, .event-copy > p { margin-top: 22px; }
.plain-list { list-style: none; padding: 0; margin: 20px 0 11px; }
.plain-list li { border-bottom: 1px solid var(--line); padding: 11px 0; }
.events { background: var(--navy); color: var(--white); }
.event-grid { display: grid; grid-template-columns: 1fr 1.2fr; align-items: center; gap: clamp(24px, 5vw, 75px); }
.event-copy { padding-block: 60px; }
.event-copy > p { color: var(--on-dark); margin-bottom: 24px; }
.event-grid img { width: 100%; height: 100%; min-height: 410px; object-fit: cover; object-position: 59% center; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 35px 70px; }
.contacts p { margin-top: 16px; font-size: 18px; }
.contacts .muted { color: var(--muted); font-size: 15px; }
.contact-links { align-self: center; }
.contact-links > * { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 56px; border-bottom: 1px solid var(--line); text-decoration: none; font-size: clamp(17px, 2.2vw, 24px); font-weight: 700; }
.contact-links > *:hover { text-decoration: underline; }
.footer { background: var(--ink); color: var(--white); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 30px; padding-block: 20px; }
.footer p { max-width: 58ch; color: var(--on-dark); font-size: 13px; }
.footer a:last-child { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-size: 14px; }

dialog { max-height: calc(100dvh - 24px); overflow: auto; margin: auto; border: 0; padding: clamp(17px, 3vw, 28px); }
dialog::backdrop { background: #040b18cc; }
.dialog-head { display: flex; gap: 16px; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.dialog-head h2 { font-size: clamp(23px, 4vw, 37px); }
.close-button { display: grid; place-items: center; min-width: 44px; min-height: 44px; padding: 5px; border: 1px solid currentColor; background: transparent; color: inherit; }
.film-dialog { width: min(940px, calc(100% - 24px)); background: var(--ink); color: var(--white); }
.film-dialog video { display: block; width: 100%; aspect-ratio: 16 / 9; background: #000; }
.film-dialog p { color: var(--on-dark); font-size: 13px; margin-top: 12px; }
.request-dialog { width: min(480px, calc(100% - 24px)); background: var(--paper); color: var(--ink); }
.request-dialog p { color: var(--muted); margin-bottom: 12px; }
.request-dialog .request-topic { color: var(--ink); font-weight: 700; }
#demo-request { display: grid; gap: 13px; }
#demo-request label { display: grid; gap: 4px; font-weight: 700; }
#demo-request input { min-height: 44px; min-width: 0; border: 1px solid #899989; padding: 7px 10px; background: var(--white); color: var(--ink); caret-color: #456500; }
.request-dialog .request-result { background: #e8efd4; color: var(--ink); padding: 12px; margin-bottom: 0; }

@media (max-width: 1060px) {
  .header-inner { grid-template-columns: auto 1fr auto; }
  .header-phone { display: none; }
}
@media (max-width: 740px) {
  .header-inner { min-height: 64px; grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px; }
  .header-inner > nav { display: none; }
  .mobile-nav { display: block; }
  .mobile-nav summary { display: grid; place-items: center; width: 44px; min-height: 44px; border: 1px solid #a0acc5; list-style: none; cursor: pointer; }
  .mobile-nav summary::-webkit-details-marker { display: none; }
  .mobile-nav nav { position: absolute; inset: 100% 0 auto; display: grid; background: var(--ink); border-top: 1px solid #fff3; padding: 5px var(--edge) 12px; }
  .mobile-nav nav a { border-bottom: 1px solid #fff3; }
  .brand img { width: 123px; }
  .header-book { font-size: 13px; padding-inline: 10px; }
  .hero { min-height: clamp(530px, 74svh, 640px); }
  .hero-photo { object-position: 62% center; }
  .hero::after { background: linear-gradient(0deg, #040b18fa 0%, #040b18e3 31%, #040b1866 66%, #040b1824 100%); }
  .hero-content { flex-direction: column; align-items: flex-start; gap: 15px; padding-block: 45px 28px; }
  .hero h1 { font-size: clamp(47px, 10.4vw, 68px); }
  .hero p { margin: 15px 0 17px; }
  .desktop-break { display: none; }
  .film-trigger { padding: 7px 10px; gap: 10px; }
  .play-mark { width: 34px; height: 34px; }
  .strip-inner { gap: 8px 13px; }
  .strip-inner span { font-size: 12px; }
  .strip-inner span + span { padding-inline-start: 13px; }
  .strip-inner span:last-child { display: none; }
  .section-head { display: block; padding-bottom: 24px; }
  .section-head p { margin-top: 10px; font-size: 16px; }
  .booking-shell, .club-grid, .event-grid, .contact-grid { grid-template-columns: 1fr; }
  .formats { border-inline-end: 0; }
  .format { min-height: 74px; padding: 12px 13px; }
  .format-contact { padding: 12px 13px; }
  .booking-panel { border-top: 1px solid var(--line); padding: 20px 14px; }
  .club-grid { gap: 22px; }
  .club-photo { aspect-ratio: 4 / 3; }
  .event-grid { gap: 0; }
  .event-copy { padding-block: 54px 27px; }
  .event-grid img { height: auto; aspect-ratio: 4 / 3; min-height: 0; margin-bottom: 26px; }
}
@media (max-width: 360px) {
  .brand img { width: 103px; }
  .header-book { font-size: 12px; }
  .hero h1 { font-size: 42px; }
  .strip-inner span + span { border: 0; padding: 0; }
  .selection { align-items: flex-start; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* Афиша, переход во внешний сервис и локальная панель клуба */
button:disabled { cursor: wait; opacity: .66; }
.button-outline { border-color: #78877b; color: var(--ink); background: transparent; }
.button-outline:hover { background: #e7ebdf; }
.form-error { color: #831f2a !important; background: #f9e8e8; padding: 10px 12px; }
#demo-request .check-line { display: flex; gap: 9px; min-height: 44px; align-items: center; font-size: 14px; }
#demo-request .check-line input { width: 19px; height: 19px; min-height: 0; margin: 0; accent-color: #344a02; }
.event-program { padding-block: 46px 64px; }
.event-program h3 { margin-bottom: 10px; }
.event-demo-label, .event-meta { color: var(--on-dark); }
.event-demo-label { font-size: 14px; margin-bottom: 18px; }
.public-event-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid #fff4; }
.public-event { display: grid; grid-template-columns: minmax(115px, .45fr) 1.6fr auto; gap: 18px 28px; align-items: start; padding-block: 22px; border-bottom: 1px solid #fff4; }
.public-event h4 { margin: 0 0 6px; line-height: 1.12; font-size: 23px; letter-spacing: -.02em; }
.public-event .event-meta { margin-top: 5px; font-size: 14px; }
.event-date { font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; }
.event-entry { display: grid; justify-items: start; gap: 8px; font-size: 13px; }
.utility-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 72px; }
.utility-head > a:last-child { min-height: 44px; display: inline-flex; align-items: center; font-size: 14px; }
.handoff-page { min-height: 100dvh; }
.handoff-main { max-width: 780px; padding-block: clamp(46px, 8vw, 96px); }
.handoff-card { background: #fff; border: 1px solid var(--line); padding: clamp(22px, 5vw, 56px); }
.handoff-card h1, .desk-title h1 { font-size: clamp(37px, 5.5vw, 65px); }
.handoff-card > p { margin: 14px 0 0; }
.network-note { margin-block: 23px; padding: 16px 18px; background: #eaf0d8; border: 1px solid #c1cba9; }
.network-note strong { display: block; margin-bottom: 4px; }
.handoff-actions { display: flex; flex-wrap: wrap; gap: 9px; }
.outbound-note { font-size: 12px; font-weight: 400; }
.handoff-card .handoff-fallback { margin-top: 19px; font-weight: 700; }
.region-demo { margin: 17px 0 0; color: var(--muted); font-size: 14px; }
.region-demo summary { display: list-item; width: fit-content; padding: 9px 0; cursor: pointer; }
.region-demo nav { display: flex; flex-wrap: wrap; gap: 8px 17px; }
.region-demo nav a { display: inline-flex; min-height: 44px; align-items: center; }
.desk-main { max-width: 1160px; padding-block: clamp(36px, 6vw, 76px) 70px; }
.desk-title, .desk-section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 18px 24px; }
.desk-title p, .desk-section p { margin-top: 8px; }
.desk-flag, .desk-status { border: 1px solid var(--line); padding: 5px 10px; white-space: nowrap; font-weight: 700; font-size: 13px; }
.desk-flag { background: #e8efd4; }
.desk-nav { display: flex; flex-wrap: wrap; gap: 8px 18px; border-bottom: 1px solid var(--line); margin: 18px 0 22px; }
.desk-nav a { min-height: 44px; display: inline-flex; align-items: center; }
.desk-overview { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; border-block: 1px solid var(--line); }
.desk-overview div { padding: 13px 16px; }
.desk-overview div + div { border-inline-start: 1px solid var(--line); }
.desk-overview dt { color: var(--muted); font-size: 14px; }
.desk-overview dd { font-size: 33px; line-height: 1.15; margin: 3px 0 0; font-weight: 700; font-variant-numeric: tabular-nums; }
.desk-feedback { color: var(--muted); }
.desk-feedback:not(:empty) { padding-block: 13px 3px; }
.desk-section { margin-top: 46px; scroll-margin-top: 15px; }
.desk-section h2 { font-size: clamp(30px, 4.2vw, 45px); }
.desk-filters { margin: 18px 0 12px; display: flex; flex-wrap: wrap; gap: 8px 14px; }
.desk-filters label, .desk-row-actions label, #event-form label { display: grid; align-content: start; gap: 4px; font-weight: 700; font-size: 14px; }
.desk-page select, #event-form input, #event-form textarea { width: 100%; min-height: 44px; border: 1px solid #899989; padding: 7px 10px; background: white; color: var(--ink); font: inherit; }
#event-form textarea { resize: vertical; }
.desk-row { background: #fbfcf7; border-top: 1px solid var(--line); }
.desk-row:last-child { border-bottom: 1px solid var(--line); }
.request-row summary { list-style: none; display: grid; grid-template-columns: 90px 1fr auto; align-items: center; gap: 11px; min-height: 65px; padding: 12px 16px; cursor: pointer; }
.request-row summary:hover { background: #edf0e3; }
.request-row summary::-webkit-details-marker { display: none; }
.desk-id { color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.desk-row-copy { min-width: 0; display: grid; gap: 2px; overflow-wrap: anywhere; }
.desk-row-copy small, .desk-capacity { color: var(--muted); font-size: 13px; }
.desk-status { width: fit-content; line-height: 1.25; background: #ecefe6; }
.status-new, .status-open, .status-confirmed { background: #e3eed0; border-color: #bfcda9; }
.status-working, .status-waitlist { background: #f4eacc; border-color: #d7c89e; }
.desk-row-body { padding: 4px 16px 16px; overflow-wrap: anywhere; }
.desk-row-actions { display: flex; align-items: flex-end; gap: 12px; margin-top: 12px; }
.desk-row-actions .button { min-height: 44px; }
.desk-empty { border-block: 1px solid var(--line); padding: 15px 16px; color: var(--muted); }
.desk-event-list { list-style: none; padding: 0; margin: 18px 0 0; }
.desk-event { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 12px; align-items: start; padding: 14px 16px; }
.desk-event-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.group-games { list-style: none; padding: 0; margin: 0; }
.group-games li + li { border-top: 1px solid var(--line); margin-top: 13px; padding-top: 13px; }
.group-games .button { margin-top: 9px; }
.desk-event .button { min-height: 44px; padding: 9px 12px; }
.integration-section { border-top: 1px solid var(--line); padding-top: 25px; }
.integration-status { color: var(--muted); }
.integration-path { margin-top: 14px; padding-left: 24px; }
.integration-path li { padding: 5px 0 10px; }
.integration-path span { display: block; color: var(--muted); font-size: 14px; }
.desk-dialog { width: min(580px, calc(100% - 24px)); }
#event-form { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
#event-form .wide { grid-column: 1 / -1; }
@media (max-width: 740px) {
  .event-program { padding-block: 32px 44px; }
  .public-event { grid-template-columns: 1fr; gap: 9px; padding-block: 16px; }
  .event-entry { grid-template-columns: 1fr auto; align-items: center; }
  .desk-title, .desk-section-head { align-items: flex-start; flex-direction: column; gap: 12px; }
  .desk-overview div { padding: 9px 7px; }
  .desk-overview dt { font-size: 12px; line-height: 1.25; }
  .desk-overview dd { font-size: 26px; }
  .request-row summary { grid-template-columns: 61px minmax(0, 1fr); gap: 5px 9px; padding-inline: 12px; }
  .request-row .desk-status { grid-column: 2; }
  .desk-event { grid-template-columns: 1fr; gap: 8px; }
  .desk-row-actions { flex-wrap: wrap; }
}
@media (max-width: 390px) {
  #event-form { grid-template-columns: 1fr; }
  .handoff-actions > a { width: 100%; }
}

.event-filters { display: flex; flex-wrap: wrap; gap: 10px 16px; padding-bottom: 18px; }
.event-filters label, #resource-form > label { display: grid; gap: 4px; font-size: 14px; font-weight: 700; }
.event-filters select { min-height: 44px; padding: 7px 10px; font: inherit; background: #fff; color: var(--ink); border: 1px solid var(--line); }
.resource-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 18px; }
.resource-list { padding: 14px 16px; border-block: 1px solid var(--line); background: #fbfcf7; }
.resource-list h3 { font-size: 23px; }
.resource-list ul { list-style: none; margin: 12px 0 0; padding: 0; }
.resource-list li { border-top: 1px solid var(--line); padding: 9px 0; }
.resource-list li span { display: block; color: var(--muted); font-size: 14px; }
#resource-form { display: grid; gap: 12px; }
#resource-form input[name=name] { min-height: 44px; padding: 7px 10px; border: 1px solid #899989; }
#resource-form fieldset { border: 1px solid var(--line); margin: 0; }
.resource-check { display: flex; min-height: 44px; align-items: center; gap: 8px; }
.resource-check input { width: 18px; height: 18px; }
.desk-event-actions { max-width: 280px; }
@media (max-width: 740px) {
  .resource-grid { grid-template-columns: 1fr; }
  .desk-event-actions { max-width: none; }
}
