:root {
  color-scheme: light;
  --ink: #171311;
  --muted: #70675f;
  --paper: #f6f1e8;
  --panel: #fffaf1;
  --charcoal: #141210;
  --line: #d8c8b2;
  --tomato: #8f3328;
  --tomato-dark: #66231c;
  --olive: #55634d;
  --gold: #b8934d;
  --gold-soft: #dcc08d;
  --blue: #334f5c;
  --plum: #291821;
  --cream: #fff7e8;
  --shadow: 0 28px 80px rgba(23, 19, 17, 0.12);
  --shadow-soft: 0 18px 44px rgba(23, 19, 17, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, #f2eadb 0, var(--paper) 520px),
    var(--paper);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

button:not(:disabled) {
  cursor: pointer;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 82px;
  padding: 14px clamp(18px, 4vw, 64px);
  background: rgba(18, 16, 14, 0.86);
  color: var(--cream);
  border-bottom: 1px solid rgba(220, 192, 141, 0.18);
  backdrop-filter: blur(22px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  letter-spacing: 0;
}

.brand-mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(220, 192, 141, 0.76);
  background:
    linear-gradient(145deg, rgba(255, 247, 232, 0.12), rgba(184, 147, 77, 0.06)),
    rgba(255, 248, 234, 0.04);
  color: var(--cream);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-weight: 850;
}

.brand small,
.top-nav a {
  color: rgba(255, 248, 234, 0.72);
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.top-nav a,
.nav-button {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: rgba(255, 248, 234, 0.72);
  font-weight: 750;
}

.top-nav a:hover,
.nav-button:hover {
  background: rgba(255, 248, 234, 0.1);
  color: white;
}

.hero {
  position: relative;
  min-height: min(850px, calc(100vh - 82px));
  display: grid;
  align-items: end;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(15, 12, 10, 0.9), rgba(15, 12, 10, 0.25) 64%),
    url("https://images.unsplash.com/photo-1511192336575-5a79af67a629?auto=format&fit=crop&w=2000&q=90")
      center / cover,
    var(--charcoal);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(220, 192, 141, 0.58), transparent);
}

.hero-video,
.hero-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-video {
  object-fit: cover;
  opacity: 0.78;
  filter: saturate(0.92) contrast(1.08) brightness(0.72);
}

.hero-media {
  background:
    linear-gradient(90deg, rgba(18, 15, 13, 0.96), rgba(41, 24, 33, 0.68) 48%, rgba(18, 15, 13, 0.18)),
    linear-gradient(0deg, rgba(18, 15, 13, 0.82), rgba(18, 15, 13, 0.03) 58%);
}

@media (prefers-reduced-motion: reduce) {
  .hero-video {
    display: none;
  }
}

.hero-copy {
  position: relative;
  z-index: 1;
  width: min(920px, calc(100% - 36px));
  margin: clamp(104px, 14vw, 176px) 0 clamp(72px, 9vw, 112px)
    clamp(18px, 7vw, 92px);
  color: var(--cream);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow.dark {
  color: var(--tomato-dark);
}

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

h1,
h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: 0;
}

.hero h1 {
  max-width: 13ch;
  margin-bottom: 26px;
  font-size: clamp(54px, 8.2vw, 112px);
  text-wrap: balance;
}

.hero-notes,
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-actions {
  margin: 32px 0 28px;
}

.hero-notes span {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 7px 11px;
  border: 1px solid rgba(220, 192, 141, 0.28);
  border-radius: 8px;
  background: rgba(255, 248, 234, 0.06);
  color: rgba(255, 248, 234, 0.8);
  font-size: 14px;
  font-weight: 760;
}

.hero p:not(.eyebrow) {
  max-width: 710px;
  color: rgba(255, 248, 234, 0.84);
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.55;
}

.button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 20px;
  border: 0;
  border-radius: 8px;
  font-weight: 800;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease,
    border-color 180ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button.primary {
  background: linear-gradient(135deg, var(--gold-soft), var(--gold));
  color: #1a120d;
  box-shadow: 0 14px 34px rgba(184, 147, 77, 0.26);
}

.button.primary:hover {
  background: #c99d5d;
}

.button.dark {
  background: linear-gradient(135deg, #201c18, var(--charcoal));
  color: white;
  box-shadow: 0 14px 34px rgba(20, 18, 16, 0.18);
}

.button.glass {
  border: 1px solid rgba(220, 192, 141, 0.36);
  background: rgba(255, 248, 234, 0.06);
  color: var(--cream);
}

.button.glass:hover {
  background: rgba(255, 248, 234, 0.14);
}

.button.ghost-dark {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
}

.button.full {
  width: 100%;
}

.section,
.contact-strip,
.page-shell,
.admin-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.section {
  padding: clamp(64px, 8vw, 112px) 0;
}

.section-head,
.admin-hero,
.panel-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
}

.section-head > div {
  max-width: 760px;
}

.experience-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: calc(clamp(64px, 8vw, 112px) * -0.5) 0 clamp(54px, 7vw, 86px);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--line);
  box-shadow: var(--shadow-soft);
}

.experience-strip article {
  min-height: 178px;
  padding: clamp(20px, 3vw, 30px);
  background:
    linear-gradient(180deg, rgba(255, 250, 241, 0.98), rgba(245, 236, 219, 0.98)),
    var(--panel);
}

.experience-strip span {
  display: block;
  margin-bottom: 22px;
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
}

.experience-strip strong {
  display: block;
  margin-bottom: 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 400;
  line-height: 1.05;
}

.experience-strip p {
  margin: 0;
  color: var(--muted);
}

.section-head h2,
.admin-hero h1,
.panel-head h2 {
  margin-bottom: 0;
  font-size: clamp(36px, 6vw, 68px);
  text-wrap: balance;
}

.section-head p {
  max-width: 520px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
}

.event-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-top: 42px;
}

.event-card,
.form-panel,
.summary-panel,
.manage-card,
.admin-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow-soft);
}

.event-card {
  position: relative;
  min-height: 350px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(24px, 4vw, 34px);
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(255, 250, 241, 0.98), rgba(247, 237, 219, 0.98)),
    var(--panel);
}

.event-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--gold), rgba(184, 147, 77, 0.12));
}

.event-card::after {
  content: "";
  position: absolute;
  right: -80px;
  bottom: -80px;
  width: 180px;
  height: 180px;
  border: 1px solid rgba(184, 147, 77, 0.18);
  border-radius: 50%;
}

.event-card > * {
  position: relative;
  z-index: 1;
}

.event-card h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  margin-bottom: 18px;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.05;
  text-wrap: balance;
}

.event-card p {
  max-width: 58ch;
  color: #433a32;
  font-size: 16px;
  line-height: 1.65;
}

.event-date,
.event-meta,
.form-note,
.support-note,
.empty {
  color: var(--muted);
}

.event-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-weight: 800;
}

.event-meta .price {
  color: var(--tomato-dark);
}

.event-meta .seats {
  color: var(--olive);
}

.contact-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(48px, 7vw, 92px);
  padding: clamp(28px, 5vw, 46px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, #1c1714, #2b1825),
    var(--panel);
  color: var(--cream);
  box-shadow: var(--shadow);
}

.contact-strip h2 {
  margin-bottom: 8px;
  font-size: clamp(34px, 5vw, 58px);
}

.contact-strip p:last-child {
  margin-bottom: 0;
  color: rgba(255, 248, 234, 0.72);
  font-weight: 700;
}

.contact-strip .eyebrow.dark {
  color: var(--gold-soft);
}

.contact-strip .button.dark {
  border: 1px solid rgba(220, 192, 141, 0.36);
  background: rgba(255, 248, 234, 0.06);
  color: var(--cream);
  box-shadow: none;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 36px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.page-shell {
  padding: clamp(28px, 5vw, 64px) 0;
}

.booking-layout,
.admin-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 20px;
  align-items: start;
}

.summary-panel,
.form-panel,
.manage-card,
.admin-panel {
  padding: clamp(20px, 4vw, 34px);
}

.summary-panel {
  position: sticky;
  top: 98px;
  background: var(--charcoal);
  color: #fffaf2;
}

.summary-panel p {
  color: rgba(255, 250, 242, 0.76);
}

dl {
  display: grid;
  gap: 12px;
  margin: 24px 0 0;
}

dl div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.manage-card dl div,
.summary-panel dl div {
  border-color: rgba(255, 255, 255, 0.16);
}

.manage-card dl div {
  border-color: var(--line);
}

dt {
  color: var(--muted);
  font-weight: 800;
}

.summary-panel dt {
  color: rgba(255, 250, 242, 0.64);
}

dd {
  margin: 0;
  text-align: right;
  font-weight: 900;
}

label {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 900;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf8;
  color: var(--ink);
  padding: 12px 13px;
}

textarea {
  resize: vertical;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.total-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin: 20px 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 20px;
}

.support-note {
  margin: 12px 0 0;
  font-weight: 800;
}

.support-note a {
  color: var(--tomato-dark);
  font-weight: 900;
}

.success-dialog {
  width: min(520px, calc(100% - 32px));
  border: 0;
  border-radius: 8px;
  padding: 28px;
  box-shadow: var(--shadow);
}

.success-dialog::backdrop {
  background: rgba(0, 0, 0, 0.42);
}

.dialog-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.admin-shell {
  padding: 34px 0 72px;
}

.admin-hero {
  margin-bottom: 24px;
}

.admin-hero h1 {
  max-width: 780px;
}

.admin-grid {
  margin-bottom: 20px;
}

.form-panel.compact {
  box-shadow: none;
}

.admin-panel.wide {
  margin-top: 20px;
}

.admin-list,
.telegram-feed {
  display: grid;
  gap: 12px;
}

.admin-event {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.admin-event strong,
.admin-event span {
  display: block;
}

.admin-event span {
  color: var(--muted);
}

.admin-event-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.copy-link,
.delete-event {
  min-width: 168px;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf8;
  font-weight: 900;
}

.delete-event {
  min-width: 112px;
  color: var(--tomato-dark);
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

th,
td {
  padding: 14px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--muted);
  font-size: 13px;
  text-transform: uppercase;
}

.status {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 9px;
  border-radius: 8px;
  font-weight: 900;
}

.status.paid {
  background: rgba(83, 105, 71, 0.16);
  color: var(--olive);
}

.status.confirmed {
  background: rgba(83, 105, 71, 0.16);
  color: var(--olive);
}

.status.cancelled {
  background: rgba(183, 68, 47, 0.14);
  color: var(--tomato-dark);
}

.status.pending {
  background: rgba(199, 155, 62, 0.18);
  color: #7a5510;
}

.status.failed {
  background: rgba(25, 27, 24, 0.12);
  color: var(--muted);
}

.telegram-message {
  padding: 14px;
  border-radius: 8px;
  background: #f2eadc;
}

.row-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.table-action {
  min-height: 34px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf8;
  color: var(--ink);
  font-weight: 900;
}

.table-action:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.telegram-message time {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.telegram-message pre {
  margin: 0;
  white-space: pre-wrap;
  font: inherit;
}

.login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    linear-gradient(90deg, rgba(20, 18, 16, 0.92), rgba(43, 24, 37, 0.62)),
    url("https://images.unsplash.com/photo-1550966871-3ed3cdb5ed0c?auto=format&fit=crop&w=1800&q=88")
      center / cover,
    var(--charcoal);
}

.login-shell {
  width: min(460px, 100%);
}

.login-panel {
  padding: clamp(24px, 5vw, 38px);
  border: 1px solid rgba(255, 248, 234, 0.18);
  border-radius: 8px;
  background: rgba(255, 250, 241, 0.95);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.28);
}

.login-brand {
  margin-bottom: 32px;
  color: var(--ink);
}

.login-brand .brand-mark {
  border-color: var(--gold);
  background: var(--charcoal);
  color: var(--cream);
}

.login-brand small {
  color: var(--muted);
}

.login-panel h1 {
  margin-bottom: 24px;
  font-size: clamp(36px, 8vw, 54px);
}

.login-error {
  margin: -4px 0 14px;
  color: var(--tomato-dark);
  font-weight: 900;
}

@media (max-width: 760px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    min-height: 0;
  }

  .hero {
    min-height: 820px;
  }

  .hero-copy {
    margin: 88px 18px 72px;
    width: calc(100% - 36px);
  }

  .hero h1 {
    font-size: clamp(48px, 15vw, 68px);
  }

  .experience-strip {
    grid-template-columns: 1fr;
    margin-top: 0;
  }

  .section-head,
  .contact-strip,
  .admin-hero,
  .panel-head,
  .admin-event {
    align-items: stretch;
    flex-direction: column;
  }

  .event-grid,
  .booking-layout,
  .admin-grid,
  .field-grid {
    grid-template-columns: 1fr;
  }

  .summary-panel {
    position: static;
  }

  .copy-link,
  .delete-event {
    min-height: 44px;
  }

  .footer {
    flex-direction: column;
  }
}
