:root {
  --black: #181613;
  --black-soft: #25211d;
  --paper: #eee8de;
  --paper-dim: #c9c0b4;
  --red: #e4442f;
  --line: rgba(238, 232, 222, 0.22);
  --shadow: 0 35px 90px rgba(0, 0, 0, 0.48);
}

* { box-sizing: border-box; }

html {
  min-width: 320px;
  color-scheme: dark;
  background: var(--black);
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--paper);
  background:
    radial-gradient(circle at 18% 35%, rgba(238, 232, 222, 0.055), transparent 34%),
    var(--black);
  font-family: Arial, Helvetica, sans-serif;
}

button, a { -webkit-tap-highlight-color: transparent; }

.photo-panel {
  position: fixed;
  z-index: 0;
  top: 0;
  right: 0;
  width: 48vw;
  height: 100vh;
  overflow: hidden;
  background: #31251f;
}

.photo-panel picture,
.photo-panel img {
  display: block;
  width: 100%;
  height: 100%;
}

.photo-panel img {
  object-fit: cover;
  object-position: 48% 34%;
  filter: saturate(0.98) contrast(1.02) brightness(1.06);
}

.photo-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, var(--black) 0%, rgba(24, 22, 19, 0.5) 10%, transparent 42%),
    linear-gradient(0deg, rgba(24, 22, 19, 0.64) 0%, transparent 30%, rgba(24, 22, 19, 0.08) 100%);
}

.photo-panel::after {
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  content: "";
  background: var(--red);
}

.photo-caption {
  position: absolute;
  right: 28px;
  bottom: 24px;
  color: rgba(238, 232, 222, 0.65);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.site-header,
.page-shell,
footer {
  position: relative;
  z-index: 2;
  width: min(1440px, calc(100% - 72px));
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 86px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: var(--black);
  background: var(--paper);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 12px;
  font-weight: 700;
}

.brand-name,
.dates {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.page-shell {
  display: grid;
  grid-template-columns: minmax(460px, 0.88fr) minmax(420px, 1.12fr);
  gap: clamp(48px, 7vw, 120px);
  align-items: center;
  min-height: calc(100vh - 160px);
  padding: 50px 0 64px;
}

.intro {
  max-width: 670px;
  padding-right: 20px;
}

.campaign-line {
  display: flex;
  gap: 24px;
  align-items: center;
  margin-bottom: 22px;
  color: var(--paper-dim);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.campaign-line span:first-child { color: var(--red); }

.campaign-line span + span::before {
  display: inline-block;
  width: 36px;
  height: 1px;
  margin: 0 15px 3px 0;
  content: "";
  background: var(--paper-dim);
}

h1 {
  display: flex;
  flex-direction: column;
  margin: 0;
  text-transform: uppercase;
}

h1 span {
  font-family: "Arial Black", Impact, Arial, sans-serif;
  font-size: clamp(78px, 9vw, 148px);
  font-weight: 900;
  line-height: 0.72;
  letter-spacing: -0.09em;
}

h1 em {
  position: relative;
  z-index: 1;
  align-self: flex-end;
  margin: -2px 1.1rem 0 0;
  color: var(--red);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(74px, 8.5vw, 138px);
  font-weight: 400;
  line-height: 0.8;
  letter-spacing: -0.08em;
  text-transform: lowercase;
  transform: rotate(-4deg);
}

h1 em::after {
  content: none;
}

.lead {
  max-width: 535px;
  margin: 34px 0 0;
  color: var(--paper-dim);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(18px, 1.6vw, 23px);
  line-height: 1.45;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: 560px;
  gap: 0;
  margin: 38px 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.steps li {
  min-height: 82px;
  padding: 15px 16px 10px 0;
  border-right: 1px solid var(--line);
}

.steps li + li { padding-left: 16px; }
.steps span { color: var(--red); font-size: 10px; font-weight: 700; letter-spacing: 0.14em; }
.steps p { max-width: 130px; margin: 11px 0 0; font-size: 12px; line-height: 1.3; }

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.primary-button,
.secondary-button {
  min-height: 58px;
  border: 1px solid transparent;
  border-radius: 0;
  padding: 0 23px;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease;
}

.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
  color: var(--paper);
  background: var(--red);
  box-shadow: 10px 10px 0 rgba(238, 232, 222, 0.12);
}

.primary-button svg { width: 21px; fill: none; stroke: currentColor; stroke-linecap: square; stroke-width: 1.8; }
.primary-button:hover, .secondary-button:hover { transform: translate(-2px, -2px); }
.primary-button:disabled { cursor: wait; opacity: 0.65; transform: none; }
.secondary-button { color: var(--paper); border-color: var(--line); background: transparent; }

.status { min-height: 20px; margin: 18px 0 0; color: #ff765f; font-size: 13px; }
.status[data-error="true"] { color: #ff8d78; }

.privacy-note {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  max-width: 470px;
  margin: 7px 0 0;
  color: rgba(238, 232, 222, 0.55);
  font-size: 11px;
  line-height: 1.5;
}

.privacy-note::before { content: "×"; color: var(--red); font-weight: 900; }

.ticket-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-self: end;
  width: min(100%, 650px);
  padding-top: 28px;
}

.ticket-stage-label {
  display: none;
}

.ticket {
  position: relative;
  width: 100%;
  aspect-ratio: 1.904 / 1;
  overflow: hidden;
  color: var(--black);
  border: 1px solid rgba(228, 68, 47, 0.72);
  padding: 0;
  background: var(--paper) url("downloads/dasha-darit-email.png") center / cover no-repeat;
  box-shadow: var(--shadow);
  isolation: isolate;
  transform: rotate(1.3deg);
  transition: transform 420ms cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 420ms ease;
}

.ticket[data-ready="true"] { transform: rotate(-0.5deg) scale(1.018); box-shadow: 0 45px 110px rgba(0, 0, 0, 0.6); }

.ticket-image {
  display: none;
}

.ticket-overlay {
  display: none;
}

.ticket::before {
  content: none;
}

.ticket::after {
  position: absolute;
  z-index: 2;
  inset: 8px;
  content: "";
  border: 1px solid rgba(17, 16, 15, 0.28);
  pointer-events: none;
}

.ticket-topline, .ticket-title, .ticket-number-wrap, .ticket-footer { position: relative; z-index: 3; }

.ticket-topline,
.ticket-title,
.ticket-footer {
  display: none;
}

.ticket-topline {
  display: flex;
  justify-content: space-between;
  color: rgba(17, 16, 15, 0.72);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.ticket-title { margin-top: 12%; }
.ticket-title p { margin: 0 0 7px; color: var(--red); font-size: 8px; font-weight: 800; letter-spacing: 0.2em; text-transform: uppercase; }

.ticket h2 {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin: 0;
  font-family: "Arial Black", Impact, Arial, sans-serif;
  font-size: clamp(38px, 5.4vw, 76px);
  line-height: 0.82;
  letter-spacing: -0.07em;
  text-transform: uppercase;
  color: var(--black);
}

.ticket h2 i {
  position: relative;
  display: block;
  width: max-content;
  margin: 7px 0 0;
  color: var(--red);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  text-transform: lowercase;
}

.ticket-number-wrap {
  position: absolute;
  right: auto;
  bottom: 7.5%;
  left: 14.2%;
  width: 23%;
  min-width: 0;
  padding: 0;
  color: var(--black);
  background: transparent;
  border: 0;
  text-align: center;
}

.ticket[data-ready="false"] .ticket-number-wrap {
  display: none;
}

.ticket-number-wrap span {
  display: none;
}

.ticket-number-wrap strong {
  display: block;
  font-family: "Arial Black", Impact, Arial, sans-serif;
  font-size: clamp(27px, 3.9vw, 54px);
  line-height: 1;
  letter-spacing: 0.08em;
  text-shadow: none;
}

.ticket-footer {
  position: absolute;
  right: clamp(24px, 3.5vw, 42px);
  bottom: clamp(24px, 3.5vw, 42px);
  left: clamp(24px, 3.5vw, 42px);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding-top: 12px;
  border-top: 1px solid rgba(17, 16, 15, 0.32);
}

.ticket-footer strong { color: var(--paper); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; }
.ticket-footer p { max-width: 210px; margin: 0; padding: 5px 7px; color: var(--paper); background: rgba(17, 16, 15, 0.72); font-size: 8px; line-height: 1.35; text-align: right; }

.ticket .ticket-topline,
.ticket .ticket-title,
.ticket .ticket-footer {
  display: none;
}

.ticket-hint { margin: 18px 0 0; color: rgba(238, 232, 222, 0.62); font-size: 10px; letter-spacing: 0.05em; text-align: center; }

footer {
  display: flex;
  justify-content: space-between;
  padding: 18px 0 24px;
  color: rgba(238, 232, 222, 0.48);
  border-top: 1px solid var(--line);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.confetti { position: fixed; z-index: 20; inset: 0; overflow: hidden; pointer-events: none; }
.confetti-piece { position: absolute; top: -20px; width: 7px; height: 20px; animation: confetti-fall 1900ms cubic-bezier(0.18, 0.68, 0.42, 1) forwards; }

@keyframes confetti-fall {
  to { transform: translate3d(var(--drift), calc(100vh + 50px), 0) rotate(740deg); opacity: 0; }
}

@media (max-width: 1050px) {
  .photo-panel { width: 44vw; }
  .page-shell { grid-template-columns: minmax(390px, 0.9fr) minmax(350px, 1.1fr); gap: 42px; }
  .ticket-title { margin-top: 9%; }
}

@media (max-width: 760px) {
  .photo-panel { position: absolute; width: 100%; height: min(84vh, 720px); }
  .photo-panel picture { transform: scale(0.94); transform-origin: top right; }
  .photo-panel img { object-position: 20% 23%; }
  .photo-shade { background: linear-gradient(0deg, var(--black) 0%, rgba(24, 22, 19, 0.72) 22%, rgba(24, 22, 19, 0.08) 60%), linear-gradient(90deg, rgba(24, 22, 19, 0.48), rgba(24, 22, 19, 0.12) 58%, transparent 82%); }
  .photo-panel::after { top: auto; bottom: 0; width: 100%; height: 3px; }
  .photo-caption { display: none; }
  .site-header, .page-shell, footer { width: min(100% - 30px, 680px); }
  .site-header { min-height: 68px; }
  .brand-name { display: none; }
  .dates { font-size: 9px; }
  .page-shell { grid-template-columns: 1fr; gap: 50px; min-height: auto; padding: 48px 0 58px; }
  .intro { display: flex; min-height: calc(min(84vh, 720px) - 116px); flex-direction: column; justify-content: flex-end; padding: 0; }
  .campaign-line { margin-bottom: 16px; }
  .campaign-line span:last-child { display: none; }
  h1 { max-width: 78%; transform: translateY(-18px); }
  h1 span { font-size: clamp(66px, 21vw, 106px); }
  h1 em { align-self: flex-start; margin: 4px 0 0 4vw; font-size: clamp(60px, 19vw, 96px); }
  .lead { max-width: 430px; margin-top: 37px; color: var(--paper); font-size: 17px; }
  .steps { margin-top: 27px; }
  .steps li { min-height: 69px; padding: 12px 9px 7px 0; }
  .steps li + li { padding-left: 9px; }
  .steps p { font-size: 10px; }
  .actions { display: grid; margin-top: 22px; }
  .primary-button, .secondary-button { width: 100%; }
  .privacy-note { font-size: 10px; }
  .ticket-stage { justify-self: center; padding-top: 0; }
  .ticket { aspect-ratio: 0.8 / 1; background-image: url("downloads/dasha-darit-telegram.png"); }
  .ticket-number-wrap { bottom: 37.8%; left: 8.8%; width: 31%; }
  .ticket-number-wrap strong { font-size: clamp(36px, 11vw, 62px); }
  footer { gap: 14px; font-size: 8px; }
}

@media (max-width: 380px) {
  .campaign-line, .ticket-topline { letter-spacing: 0.12em; }
  .ticket-footer strong { font-size: 9px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
