:root {
  color-scheme: light;
  --blue: #3994f7;
  --action: #176cca;
  --deep: #0c2850;
  --text: #1b293d;
  --muted: #536984;
  --line: #dce7f3;
  --page: #f3f7fd;
  font-family: "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background: var(--page);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-width: 300px; }
button, input, select { font: inherit; }
button, select { cursor: pointer; }
button:disabled { opacity: .57; cursor: default; }
button:focus-visible, input:focus-visible, select:focus-visible, a:focus-visible { outline: 3px solid #146bd1; outline-offset: 3px; }
a { color: #155aa6; text-underline-offset: .18em; }
.wrap { width: min(1220px, calc(100% - 80px)); margin-inline: auto; }
.top { background: #fff; border-bottom: 1px solid #e4ecf6; }
.top-inner { display: flex; align-items: center; min-height: 72px; gap: 42px; }
.brand { display: inline-flex; align-items: start; gap: 5px; color: #146dca; text-decoration: none; font-weight: 800; font-size: 32px; letter-spacing: -.09em; line-height: 1; }
.brand span { width: 6px; height: 6px; background: var(--blue); border-radius: 50%; margin-top: 3px; }
.top nav, .top-side { display: flex; align-items: center; gap: 12px; }
.top-side { margin-left: auto; color: var(--muted); font-size: 14px; }
.nav-btn, .quiet, .close { background: transparent; border: 0; color: var(--deep); padding: 9px 13px; border-radius: 9px; }
.nav-btn[aria-current="page"], .nav-btn:hover, .quiet:hover, .close:hover { background: #edf5ff; color: #155aa6; }
.quiet { border: 1px solid var(--line); }
a.quiet { text-decoration: none; }
main { min-height: 65vh; }
.hero { display: grid; grid-template-columns: 1fr .86fr; margin-top: 32px; min-height: 274px; overflow: hidden; border-radius: 25px; background: #e2efff; border: 1px solid #dceaff; }
.hero-copy { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: 40px 15px 42px 48px; }
.eyebrow { display: inline-block; color: #175a9b; font-weight: 650; font-size: 14px; padding: 6px 11px; background: #fff; border-radius: 8px; }
h1, h2, p { margin: 0; }
h1, h2 { color: var(--deep); font-weight: 700; letter-spacing: -.045em; }
h1 { font-size: clamp(38px, 5.4vw, 72px); line-height: 1.04; }
h2 { font-size: clamp(25px, 3vw, 34px); line-height: 1.13; }
.hero h1, .login-panel h1 { margin-top: 16px; }
.hero p { margin-top: 14px; color: #345b84; font-size: clamp(16px, 2.5vw, 20px); }
.hero-picture, .login-picture {
  background-color: #9acbfd;
  background-image: linear-gradient(90deg, #e2efff 0%, #e2efff33 25%, transparent 54%),
    url("https://upload.wikimedia.org/wikipedia/commons/thumb/9/9c/Moscow_-_2026_-_Facade_of_the_Bolshoi_Theatre.jpg/1280px-Moscow_-_2026_-_Facade_of_the_Bolshoi_Theatre.jpg"),
    repeating-linear-gradient(107deg, #98c5f6 0 26px, #b6d8fc 26px 43px, #8eb9e9 43px 60px);
  background-position: center, center 48%, center;
  background-size: cover;
}
.section { margin-top: 38px; }
.section-top { display: flex; align-items: end; justify-content: space-between; gap: 18px; }
.section-top p { margin-top: 9px; }
.muted, .table-note { color: var(--muted); line-height: 1.5; }
.pill { flex: none; padding: 7px 11px; border-radius: 8px; background: #e7f1fe; color: #165d9f; font-size: 14px; font-weight: 650; }
.sync-panel { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 25px; margin-top: 18px; padding: 13px 16px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.sync-times { display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 0; }
.sync-times dt { font-size: 14px; color: var(--muted); }
.sync-times dd { margin: 3px 0 0; color: var(--deep); font-weight: 650; font-size: 15px; }
.sync-notice { flex-basis: 100%; color: var(--muted); font-size: 14px; line-height: 1.45; }
.sync-failed { color: #7b4314; }
.toolbar { display: flex; gap: 12px; margin: 22px 0 14px; }
.availability-filter { display: inline-flex; align-items: center; gap: 9px; min-height: 45px; padding: 0 2px; color: var(--deep); font-size: 15px; font-weight: 600; cursor: pointer; }
.availability-filter .visually-hidden { min-height: 1px; }
.switch-track { position: relative; display: block; width: 37px; height: 22px; border-radius: 20px; background: #657d98; }
.switch-track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; }
.availability-filter input:checked + .switch-track { background: var(--action); }
.availability-filter input:checked + .switch-track::after { transform: translateX(15px); }
.availability-filter input:focus-visible + .switch-track { outline: 3px solid #146bd1; outline-offset: 3px; }
.search { position: relative; width: min(100%, 370px); }
.search::before { content: ""; position: absolute; width: 11px; height: 11px; border: 1.8px solid #516e8d; border-radius: 50%; left: 16px; top: 15px; pointer-events: none; }
.search::after { content: ""; position: absolute; width: 7px; height: 2px; background: #516e8d; transform: rotate(45deg); top: 27px; left: 26px; pointer-events: none; }
input, select { padding: 10px 13px; min-height: 45px; max-width: 100%; border-radius: 10px; border: 1px solid #cddbeb; background-color: #fff; color: var(--text); }
input::placeholder { color: #5d7390; }
.search input { width: 100%; padding-left: 41px; }
select { appearance: none; min-width: 155px; padding-right: 32px; background-image: linear-gradient(45deg, transparent 50%, #456787 50%), linear-gradient(135deg, #456787 50%, transparent 50%); background-position: calc(100% - 17px) 19px, calc(100% - 12px) 19px; background-size: 5px 5px; background-repeat: no-repeat; }
.table-wrap { background: #fff; border: 1px solid var(--line); border-radius: 17px; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th, td { padding: 12px 14px; }
th { color: #455f7d; background: #edf4fc; font-weight: 650; font-size: 14px; }
td { height: 79px; border-top: 1px solid #e5edf6; vertical-align: middle; }
.shows td:nth-child(1), .shows td:nth-child(5), .shows td:nth-child(6) { white-space: nowrap; }
.shows td:nth-child(2) { color: var(--muted); }
tr:hover td { background: #f8fbff; }
.shows tr:has(.booked-status) td { background: #f1f8f3; }
.title { font-size: 17px; font-weight: 650; color: #133252; }
a.title { text-decoration: none; }
a.title:hover { text-decoration: underline; }
.picture { width: 48px; height: 53px; border-radius: 7px; overflow: hidden; display: grid; place-items: center; background: #e8f2fe; color: #3575af; }
.picture img { width: 100%; height: 100%; object-fit: cover; display: block; }
.picture span { font-size: 25px; line-height: 1; }
.primary, .secondary { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 9px 14px; border-radius: 9px; font-weight: 650; text-decoration: none; line-height: 1.25; }
.primary { border: 1px solid var(--action); background: var(--action); color: #fff; }
.primary:hover:not(:disabled) { background: #115ba9; border-color: #115ba9; }
.secondary { border: 1px solid #c6dcf5; color: #185b9c; background: #fff; }
.secondary:hover { background: #eaf4ff; }
.booked-status { display: inline-block; padding: 7px 10px; border-radius: 8px; background: #e6f4ec; color: #24583c; font-size: 14px; font-weight: 650; }
.reservation-status { display: inline-block; padding: 7px 10px; border-radius: 8px; background: #fff0d1; color: #704719; font-size: 14px; font-weight: 650; }
.booking-notice { margin: 0 0 14px; padding: 12px 15px; border: 1px solid #cfe8d8; border-radius: 10px; background: #e6f4ec; color: #24583c; }
.booking-audit { margin: 18px 0 0; padding: 14px 17px; border: 1px solid var(--line); border-radius: 11px; background: #fff; }
.booking-audit summary { cursor: pointer; font-weight: 650; }
.booking-audit ol { margin-bottom: 0; padding-left: 24px; }
.booking-audit li + li { margin-top: 7px; }
.table-note { margin-top: 12px; font-size: 14px; }
.empty { padding: 27px; text-align: center; border: 1px solid var(--line); border-radius: 14px; background: #fff; color: var(--muted); }
.registry { min-height: 56vh; margin-top: 42px; }
.registry h1 { font-size: clamp(35px, 5vw, 55px); }
.counters { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.counter { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 11px; background: #fff; color: var(--muted); }
.counter strong { color: var(--deep); }
.registry table select { min-width: 138px; min-height: 37px; font-size: 14px; background-position: calc(100% - 17px) 16px, calc(100% - 12px) 16px; padding-block: 7px; }
.booking-new {
  --booking-row: #f2f7ff;
  --booking-badge: #e4efff;
  --booking-border: #a8c9f5;
  --booking-text: #194b86;
}
.booking-confirmed {
  --booking-row: #f0f8f3;
  --booking-badge: #e0f2e7;
  --booking-border: #a0cdb0;
  --booking-text: #24583c;
}
.booking-cancelled {
  --booking-row: #fff3f2;
  --booking-badge: #ffe7e5;
  --booking-border: #ecb3ad;
  --booking-text: #8a3730;
}
.results tbody td { background-color: var(--booking-row, #fff); }
.results tbody tr:hover td { background-color: var(--booking-badge, #f8fbff); }
.results tbody td:first-child { box-shadow: inset 3px 0 0 var(--booking-border, transparent); }
.registry .booking-status {
  background-color: var(--booking-badge, #fff);
  border-color: var(--booking-border, var(--line));
  color: var(--booking-text, var(--text));
  font-weight: 650;
}
.entry-date { white-space: nowrap; font-variant-numeric: tabular-nums; }
.entry-detail { display: block; margin-top: 5px; font-size: 14px; color: var(--muted); }
.source-change { color: #84430c; }
.login-layout { display: grid; grid-template-columns: 1fr 1fr; margin: 48px auto 28px; max-width: 1050px; background: #fff; border: 1px solid var(--line); border-radius: 25px; overflow: hidden; }
.login-panel { padding: 42px 46px; }
.login-panel h1 { font-size: clamp(36px, 5vw, 56px); }
.login-panel p { margin-top: 12px; color: var(--muted); line-height: 1.45; }
.login-panel .eyebrow { background: #eaf3ff; }
.login-picture { background-image: linear-gradient(165deg, #15375a14, #10335340), url("https://upload.wikimedia.org/wikipedia/commons/thumb/9/9c/Moscow_-_2026_-_Facade_of_the_Bolshoi_Theatre.jpg/1280px-Moscow_-_2026_-_Facade_of_the_Bolshoi_Theatre.jpg"), repeating-linear-gradient(107deg, #98c5f6 0 28px, #b6d8fc 28px 47px, #8eb9e9 47px 64px); }
.form { display: grid; gap: 8px; margin-top: 24px; }
.form label { color: var(--deep); font-weight: 650; font-size: 15px; }
.form :is(input, select) + label { margin-top: 7px; }
.form .primary { margin-top: 9px; }
.form .error, .error { padding: 9px 11px; background: #fef0ed; border-radius: 7px; margin: 8px 0; color: #9d302b; }
.login-actions { border-top: 1px solid var(--line); margin-top: 24px; padding-top: 20px; }
.login-actions p, .form-note { font-size: 14px; }
.login-form { display: grid; gap: 9px; }
.login-form label { color: var(--deep); font-size: 15px; font-weight: 650; }
.login-form > p { margin-top: 4px; }
.login-form > .primary { justify-self: start; margin-top: 4px; }
.login-tools { display: flex; flex-wrap: wrap; gap: 8px; }
.login-tools button { font-size: 14px; }
.login-actions .error { color: #9d302b; }
.form .form-note + label { margin-top: 7px; }
.section-list { margin-top: 24px; }
.status-badge { display: inline-block; padding: 6px 9px; border-radius: 8px; background: var(--booking-badge); color: var(--booking-text); font-weight: 650; }
.count { display: inline-block; min-width: 28px; text-align: center; font-variant-numeric: tabular-nums; }
.account-results td:first-child { overflow-wrap: anywhere; }
.footer { display: flex; justify-content: space-between; gap: 18px; border-top: 1px solid var(--line); padding: 22px 0 30px; margin-top: 35px; color: var(--muted); font-size: 14px; }
.footer > div { display: flex; flex-wrap: wrap; gap: 9px 18px; align-items: baseline; }
.footer small { font-size: 13px; }
dialog { background: #fff; color: var(--text); border: 1px solid var(--line); border-radius: 20px; padding: 23px; width: min(480px, calc(100% - 24px)); box-shadow: 0 25px 75px #0c285047; }
dialog::backdrop { background: #12233f89; }
.dialog-top { display: flex; align-items: start; justify-content: space-between; gap: 9px; }
.dialog-top h2 { font-size: 28px; }
.close { font-size: 24px; padding: 0 9px 3px; line-height: 1.1; }
.selected-show { padding: 14px; margin-top: 17px; display: grid; border-radius: 10px; gap: 5px; background: #eaf4ff; color: #204c7d; }
.selected-show span, .privacy { font-size: 14px; }
#bookingSuccess { margin-top: 17px; line-height: 1.45; }
#bookingSuccess button { margin-top: 12px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

@media (max-width: 920px) {
  .wrap { width: calc(100% - 44px); }
  .hero-copy { padding-left: 31px; }
  th, td { padding-inline: 10px; }
  .results table { min-width: 710px; }
}
@media (max-width: 690px) {
  .top-inner:has(nav:not([hidden])) { flex-wrap: wrap; padding-top: 10px; }
  .top nav { order: 1; flex-basis: 100%; flex-wrap: wrap; padding-bottom: 8px; }
  .wrap { width: calc(100% - 28px); }
  .top-inner { gap: 10px; min-height: 60px; }
  .top nav, .top-side { gap: 3px; }
  .nav-btn, .quiet { padding: 7px 8px; font-size: 14px; }
  .brand { font-size: 27px; }
  #roleBadge { display: none; }
  .hero { min-height: 204px; margin-top: 18px; grid-template-columns: 1fr .49fr; border-radius: 17px; }
  .hero-copy { padding: 22px 0 24px 16px; }
  .hero p { font-size: 15px; }
  .section { margin-top: 29px; }
  .section-top { align-items: start; flex-wrap: wrap; }
  .toolbar { gap: 8px; flex-wrap: wrap; }
  .toolbar .search { width: 100%; }
  .shows.table-wrap { background: transparent; border: none; overflow: visible; }
  .shows table, .shows tbody { display: block; }
  .shows thead { position: absolute; clip-path: inset(50%); }
  .shows tr { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; grid-template-rows: auto auto auto; gap: 6px 10px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff; margin-bottom: 8px; }
  .shows td { border: 0; padding: 0; height: auto; }
  .shows tr:hover td { background: transparent; }
  .shows tr:has(.booked-status) { background: #f1f8f3; border-color: #cfe8d8; }
  .shows tr:has(.booked-status) td { background: transparent; }
  .shows td:nth-child(1) { grid-area: 2 / 2; align-self: end; font-weight: 650; }
  .shows td:nth-child(2) { grid-area: 3 / 2; font-size: 14px; }
  .shows td:nth-child(3) { grid-area: 1 / 1 / span 3; }
  .shows td:nth-child(4) { grid-area: 1 / 2 / 2 / 4; }
  .shows td:nth-child(5) { grid-area: 2 / 3; color: var(--muted); font-size: 14px; justify-self: end; }
  .shows td:nth-child(6) { grid-area: 4 / 2; align-self: center; }
  .shows td:nth-child(7) { grid-area: 3 / 3 / 5 / 4; justify-self: end; align-self: center; }
  .shows .secondary { font-size: 14px; padding: 7px 9px; min-height: 35px; }
  .login-layout { grid-template-columns: 1fr; margin-top: 23px; }
  .login-panel { padding: 27px 19px; }
  .login-picture { min-height: 145px; }
  .footer > div { flex-direction: column; }
}
