@import url("https://fonts.googleapis.com/css2?family=Anton&family=Poppins:wght@400;500;600;700&display=swap");

:root {
  color-scheme: dark;
  --night: #090e22;
  --panel: #121a39;
  --panel-raised: #172044;
  --line: #29355e;
  --ink: #f3f4ff;
  --muted: #a6afd2;
  --pink: #ff438f;
  --cyan: #42d9ed;
  --gold: #ffd15c;
  --danger: #ff8b9c;
  --head: "Anton", Impact, sans-serif;
  --body: "Poppins", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--night); }
body {
  min-height: 100dvh;
  margin: 0;
  color: var(--ink);
  font: 400 15px/1.65 var(--body);
  background:
    radial-gradient(ellipse at 8% 0%, rgba(255, 67, 143, .15), transparent 34rem),
    radial-gradient(ellipse at 92% 15%, rgba(66, 217, 237, .13), transparent 32rem),
    repeating-linear-gradient(0deg, transparent 0 47px, rgba(66, 217, 237, .035) 48px 49px),
    repeating-linear-gradient(90deg, transparent 0 47px, rgba(66, 217, 237, .035) 48px 49px),
    var(--night);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
button, input, select { font: inherit; }
button { cursor: pointer; }
a { color: var(--cyan); }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; }

.skip-link {
  position: absolute;
  z-index: 20;
  top: 10px;
  left: -999px;
  padding: 9px 15px;
  border-radius: 99px;
  background: var(--gold);
  color: #1a1830;
  font-weight: 700;
}
.skip-link:focus { left: 12px; }
.page-shell { width: min(1120px, calc(100% - 36px)); margin: 0 auto; }
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 100px;
  border-bottom: 1px solid rgba(66, 217, 237, .24);
}
.brand {
  display: inline-flex;
  align-items: center;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.brand img { display: block; width: 150px; height: auto; }
.header-note {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.header-note::before {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 14px rgba(66, 217, 237, .65);
  content: "";
}

main { padding: 50px 0 76px; }
.intro { max-width: 760px; margin: 0 auto 32px; text-align: center; }
.eyebrow {
  margin: 0 0 12px;
  color: var(--cyan);
  font-size: .73rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
}
h1, h2, h3 { margin: 0; font-weight: 400; text-transform: uppercase; }
h1, h2, h3 { font-family: var(--head); }
h1 { font-size: clamp(2.65rem, 7vw, 4.7rem); line-height: .98; letter-spacing: .015em; }
.title-accent { color: var(--pink); }
.intro-copy { max-width: 590px; margin: 14px auto 0; color: var(--muted); }

.checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(300px, .82fr);
  align-items: start;
  gap: 22px;
}
.form-card, .summary-card, .notice-card {
  border: 1px solid var(--line);
  border-radius: 19px;
  background: linear-gradient(145deg, rgba(23, 32, 68, .95), rgba(15, 22, 48, .98));
  box-shadow: inset 0 0 34px rgba(66, 217, 237, .035), 0 24px 70px rgba(0, 0, 0, .18);
}
.form-card { padding: clamp(21px, 4vw, 36px); }
.form-section + .form-section { margin-top: 31px; padding-top: 27px; border-top: 1px solid var(--line); }
.section-heading { display: flex; align-items: baseline; gap: 12px; margin-bottom: 18px; }
.section-number { color: var(--pink); font: 400 1.2rem/1 var(--head); }
h2 { font-size: 1.55rem; letter-spacing: .025em; }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px 14px; }
.field { min-width: 0; }
.field-wide { grid-column: 1 / -1; }
label {
  display: block;
  margin-bottom: 6px;
  color: #d9def6;
  font-size: .78rem;
  font-weight: 600;
}
.optional { color: #818bad; font-weight: 400; }
input, select {
  width: 100%;
  min-height: 48px;
  padding: 11px 13px;
  border: 1px solid #35416a;
  border-radius: 9px;
  background: rgba(8, 14, 34, .72);
  color: var(--ink);
  transition: border-color .18s ease, background-color .18s ease;
}
input::placeholder { color: #747fA8; }
input:hover, select:hover { border-color: #5c6a99; }
input:focus, select:focus { border-color: var(--cyan); outline: 2px solid rgba(66, 217, 237, .18); outline-offset: 1px; }
select { appearance: none; padding-right: 38px; }
.select-wrap { position: relative; }
.select-wrap::after {
  position: absolute;
  top: 18px;
  right: 15px;
  width: 8px;
  height: 8px;
  border-right: 1.5px solid var(--cyan);
  border-bottom: 1.5px solid var(--cyan);
  content: "";
  pointer-events: none;
  transform: rotate(45deg);
}
option { background: var(--panel); color: var(--ink); }

.promo-row { display: flex; align-items: stretch; gap: 9px; }
.promo-row input { flex: 1; min-width: 0; text-transform: uppercase; }
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid var(--pink);
  border-radius: 9px;
  background: var(--pink);
  color: #fff;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  transition: transform .18s ease, background-color .18s ease, border-color .18s ease;
}
.button:hover:not(:disabled) { transform: translateY(-1px); background: #ff64a3; border-color: #ff64a3; }
.button:disabled { cursor: wait; opacity: .7; }
.button-outline { border-color: rgba(66, 217, 237, .64); background: transparent; color: var(--cyan); }
.button-outline:hover:not(:disabled) { background: rgba(66, 217, 237, .09); border-color: var(--cyan); }
.form-message { min-height: 1.5em; margin: 8px 0 0; color: var(--muted); font-size: .79rem; }
.form-message[data-kind="success"] { color: var(--cyan); }
.form-message[data-kind="error"] { color: var(--danger); }

.summary-card { position: sticky; top: 20px; overflow: hidden; }
.summary-top { padding: 25px 25px 22px; border-bottom: 1px solid var(--line); }
.summary-kicker { margin: 0 0 8px; color: var(--cyan); font-size: .69rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.ticket-name { font-size: 2rem; line-height: 1; }
.ticket-type { margin: 8px 0 0; color: var(--muted); font-size: .84rem; }
.ticket-mark { display: flex; align-items: center; justify-content: center; height: 104px; margin-top: 20px; overflow: hidden; border: 1px solid rgba(255, 67, 143, .35); border-radius: 12px; background: radial-gradient(ellipse at 50% 120%, rgba(255, 67, 143, .35), transparent 60%), linear-gradient(120deg, rgba(66, 217, 237, .12), rgba(20, 27, 58, .2)); }
.ticket-mark span { color: transparent; font: 400 3.35rem/.9 var(--head); letter-spacing: .08em; -webkit-text-stroke: 1px rgba(66, 217, 237, .64); }
.summary-body { padding: 22px 25px 25px; }
.price-row { display: flex; justify-content: space-between; gap: 12px; margin: 0 0 12px; color: var(--muted); font-size: .88rem; }
.price-row strong { color: var(--ink); font-variant-numeric: tabular-nums; font-weight: 600; }
.discount-row { color: var(--cyan); }
.total-row { margin-top: 18px; padding-top: 17px; border-top: 1px solid var(--line); color: var(--ink); font-weight: 700; }
.total-row strong { color: var(--gold); font-size: 1.28rem; }
.currency-note { margin: 5px 0 18px; color: #818bad; font-size: .7rem; text-align: right; }
.payment-note {
  margin: 17px 0 0;
  padding: 13px 14px;
  border: 1px solid rgba(66, 217, 237, .25);
  border-radius: 10px;
  background: rgba(66, 217, 237, .055);
  color: #c7cee9;
  font-size: .77rem;
}
.payment-note strong { color: var(--cyan); }
.payment-note p { margin: 0; }
.payment-note p + p { margin-top: 7px; }
.security-note { display: flex; gap: 9px; margin: 17px 0 0; color: var(--muted); font-size: .72rem; line-height: 1.5; }
.security-note svg { flex: none; margin-top: 2px; color: var(--gold); }
.submit-button { width: 100%; min-height: 54px; border-radius: 999px; font-size: .79rem; }
.submit-button::after { content: "→"; font-size: 1.1rem; }
.fine-print { margin: 11px 0 0; color: #818bad; font-size: .68rem; text-align: center; }

.state-wrap { max-width: 650px; margin: 38px auto 0; }
.notice-card { padding: clamp(28px, 6vw, 52px); text-align: center; }
.state-icon {
  display: grid;
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  place-items: center;
  border: 1px solid rgba(66, 217, 237, .45);
  border-radius: 50%;
  background: rgba(66, 217, 237, .08);
  color: var(--cyan);
  font: 400 2rem/1 var(--head);
}
.state-icon.cancelled { border-color: rgba(255, 209, 92, .5); background: rgba(255, 209, 92, .08); color: var(--gold); }
.state-icon.error { border-color: rgba(255, 139, 156, .5); background: rgba(255, 139, 156, .08); color: var(--danger); }
.notice-card h2 { margin-bottom: 12px; font-size: clamp(1.8rem, 6vw, 2.6rem); }
.notice-card p { margin: 0 auto 20px; color: var(--muted); }
.state-detail { margin-top: 18px !important; color: var(--gold) !important; font-size: .84rem; }
.loading-line { display: inline-flex; align-items: center; gap: 10px; color: var(--muted); }
.loading-line::before { width: 9px; height: 9px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 14px rgba(66, 217, 237, .7); content: ""; animation: pulse 1.1s ease-in-out infinite alternate; }
@keyframes pulse { to { opacity: .28; transform: scale(.72); } }
.hidden { display: none !important; }
.site-footer { padding: 0 0 28px; color: #7782a9; font-size: .72rem; text-align: center; }
.site-footer a { text-underline-offset: 3px; }

@media (max-width: 760px) {
  .page-shell { width: min(100% - 28px, 600px); }
  .site-header { min-height: 81px; }
  .brand img { width: 126px; }
  .header-note { max-width: 145px; font-size: .62rem; line-height: 1.4; }
  main { padding: 35px 0 52px; }
  .intro { margin-bottom: 24px; }
  .checkout-layout { grid-template-columns: 1fr; gap: 16px; }
  .summary-card { position: static; grid-row: 1; }
  .summary-top { padding: 20px; }
  .summary-body { padding: 19px 20px 21px; }
  .ticket-mark { height: 82px; margin-top: 14px; }
  .ticket-mark span { font-size: 2.8rem; }
  .form-card { padding: 22px 18px; }
  .site-footer { padding-bottom: 20px; }
}
@media (max-width: 460px) {
  .header-note { max-width: 130px; text-align: right; }
  .field-grid { grid-template-columns: 1fr; gap: 13px; }
  .field-wide { grid-column: auto; }
  .promo-row { gap: 7px; }
  .promo-row .button { padding: 0 14px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
