:root {
  --orange: #ff5000;
  --orange-2: #ff7a38;
  --bg: #0b0b0f;
  --surface: #15151c;
  --surface-2: #1d1d26;
  --line: rgba(255, 255, 255, 0.09);
  --text: #f5f5f7;
  --muted: #9a9aa6;
  --error: #ff6b6b;
  --wa: #25d366;
  --radius: 22px;
  --font: 'Montserrat', 'Segoe UI', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Фондағы шахмат торы мен жарқыл */
.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(60% 45% at 85% -5%, rgba(255, 80, 0, 0.35), transparent 70%),
    radial-gradient(50% 35% at -10% 40%, rgba(255, 80, 0, 0.12), transparent 70%),
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 44px 44px,
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 44px 44px;
  mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, 0.35) 55%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, 0.35) 55%, transparent 100%);
}

.page {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  padding: max(20px, env(safe-area-inset-top)) 20px max(28px, env(safe-area-inset-bottom));
}

/* ---------- Бренд ---------- */
.brand {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  padding: 8px 0 4px;
}
.brand__logo { width: 136px; height: auto; aspect-ratio: 512 / 100; fill: var(--orange); }
.brand__taxi {
  color: var(--orange);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.55em;
  line-height: 1;
  padding-bottom: 1px;
}

/* ---------- Hero ---------- */
.hero { padding: 36px 0 8px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  padding: 7px 14px;
  border: 1px solid rgba(255, 80, 0, 0.45);
  border-radius: 999px;
  background: rgba(255, 80, 0, 0.1);
  color: var(--orange-2);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--orange);
  box-shadow: 0 0 12px var(--orange);
}

.title { margin: 0; line-height: 0.95; text-transform: uppercase; }
.title__top {
  display: block;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.3em;
  color: var(--muted);
  margin-bottom: 10px;
}
.title__main {
  display: block;
  font-size: clamp(56px, 18vw, 84px);
  font-weight: 900;
  letter-spacing: -0.02em;
}
/* Әр сөз — бөлек жол. Қазақ әріптерінің (Ң, Қ, Ұ, Ғ) құйрығы шамамен 0.2em төмен түседі,
   сондықтан жол биіктігі 1.14 және жолдар арасында қосымша аралық бар: келесі жолға ешқашан тимейді. */
.title__line {
  display: block;
  line-height: 1.14;
  color: #fff;
}
.title__line + .title__line { margin-top: 0.04em; }
.title__line--accent { color: var(--orange); }

.lead {
  margin: 20px 0 24px;
  color: #c9c9d1;
  font-size: 16px;
}

.facts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.fact {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
}
.fact--wide { grid-column: 1 / -1; }
.fact small,
.speaker small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.fact b { font-size: 15px; font-weight: 700; }
.icon {
  flex: none;
  width: 22px;
  height: 22px;
  color: var(--orange);
}

/* ---------- Спикерлер ---------- */
.section-title {
  margin: 34px 0 14px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.speakers__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.speaker {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 16px;
  background: linear-gradient(90deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line);
}
.speaker b { font-size: 17px; font-weight: 700; }
.speaker__icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: var(--orange);
  color: #fff;
}
.speaker__icon svg { width: 22px; height: 22px; }
.speaker__icon--mark { background: #fff; fill: var(--orange); }
.speaker__icon--mark svg { width: 24px; height: 24px; }

/* ---------- Форма ---------- */
.form-card {
  position: relative;
  margin-top: 34px;
  padding: 26px 20px 22px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid rgba(255, 80, 0, 0.35);
  box-shadow: 0 30px 80px -30px rgba(255, 80, 0, 0.45);
  scroll-margin-top: 16px;
}
.form-card::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 24px;
  right: 24px;
  height: 3px;
  border-radius: 0 0 3px 3px;
  background: var(--orange);
}
.form-card__title { margin: 0 0 6px; font-size: 24px; font-weight: 900; text-transform: uppercase; }
.form-card__hint { margin: 0 0 20px; color: var(--muted); font-size: 14px; }
.form-card__privacy { margin: 14px 0 0; color: var(--muted); font-size: 12px; text-align: center; }

.field { margin-bottom: 16px; }
.field label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 700;
}
.field input {
  width: 100%;
  height: 56px;
  padding: 0 16px;
  border-radius: 14px;
  border: 1.5px solid #2c2c37;
  background: #0f0f14;
  color: var(--text);
  font: 600 17px/1 var(--font); /* 16px+ — iOS масштабтамайды */
  transition: border-color 0.15s, box-shadow 0.15s;
}
.field input::placeholder { color: #5d5d69; font-weight: 500; }
.field input:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 4px rgba(255, 80, 0, 0.2);
}
.field--error input { border-color: var(--error); }
.field__error {
  margin: 6px 2px 0;
  min-height: 0;
  color: var(--error);
  font-size: 13px;
  font-weight: 600;
}
.field__error:empty { display: none; }

/* ---------- Батырмалар ---------- */
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 60px;
  padding: 14px 20px;
  border: 0;
  border-radius: 16px;
  font: 800 16px/1.25 var(--font);
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.12s, box-shadow 0.2s, filter 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(0.98); }
.btn:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.btn--primary {
  margin-top: 6px;
  background: var(--orange);
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  box-shadow: 0 12px 30px -10px rgba(255, 80, 0, 0.8);
}
.btn--primary:hover { filter: brightness(1.08); }
.btn__arrow { width: 22px; height: 22px; }

.btn--whatsapp {
  min-height: 72px;
  margin-top: 12px;
  background: var(--wa);
  color: #06290f;
  font-size: 16px;
  text-align: left;
  box-shadow: 0 14px 34px -12px rgba(37, 211, 102, 0.75);
  animation: pulse 2.4s ease-in-out infinite;
}
.btn__icon { flex: none; width: 30px; height: 30px; }
.btn__icon--sm { width: 22px; height: 22px; }

/* Екінші дәрежелі батырма: билетті сурет етіп сақтау */
.btn--ghost {
  min-height: 52px;
  margin-top: 16px;
  border: 1.5px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font-size: 15px;
}
.btn--ghost:hover { background: rgba(255, 255, 255, 0.1); }
.btn--ghost[disabled] { opacity: 0.6; cursor: progress; }

@keyframes pulse {
  0%, 100% { box-shadow: 0 14px 34px -12px rgba(37, 211, 102, 0.75), 0 0 0 0 rgba(37, 211, 102, 0.45); }
  50% { box-shadow: 0 14px 34px -12px rgba(37, 211, 102, 0.75), 0 0 0 10px rgba(37, 211, 102, 0); }
}

.link-btn {
  display: block;
  margin: 26px auto 0;
  padding: 8px 12px;
  border: 0;
  background: none;
  color: var(--muted);
  font: 600 14px var(--font);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.link-btn:hover { color: var(--text); }

/* ---------- Билет ---------- */
.ticket-view { padding-top: 4px; }
.ticket-view__hello {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 700;
  text-align: center;
  color: var(--orange-2);
}
.ticket-view__tip,
.ticket-view__note {
  margin: 12px 0 0;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}

.ticket {
  --notch: 14px;
  position: relative;
  border-radius: var(--radius);
  background: #fff;
  color: #14141a;
  overflow: hidden;
  box-shadow: 0 40px 80px -30px rgba(255, 80, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.06);
  animation: ticket-in 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}
@keyframes ticket-in {
  from { opacity: 0; transform: translateY(18px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

.ticket__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 20px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.12) 25%, transparent 25%) 0 0 / 24px 24px,
    var(--orange);
  color: #fff;
}
.ticket__brand { display: flex; flex-direction: column; gap: 5px; }
.ticket__logo { width: 112px; height: auto; aspect-ratio: 512 / 100; fill: #fff; }
.ticket__taxi { font-size: 10px; font-weight: 800; letter-spacing: 0.62em; line-height: 1; }
.ticket__code-box {
  padding: 7px 12px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.22);
  text-align: right;
}
.ticket__code-box small {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.85;
}
.ticket__code-box b {
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
}

.ticket__hero { padding: 16px 20px 0; }
.ticket__label {
  margin: 0 0 4px;
  color: #8a8a96;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.ticket__event {
  margin: 0 0 10px;
  font-size: 25px;
  font-weight: 900;
  line-height: 1.2; /* Ң құйрығы келесі жолға тимеуі үшін */
  text-transform: uppercase;
  color: var(--orange);
}
.ticket__guest {
  margin: 0;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.ticket__info {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 8px;
  margin: 12px 20px 0;
  padding: 10px 0 0;
  border-top: 1px solid #ececf1;
}
.ticket__info small {
  display: block;
  color: #8a8a96;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.ticket__info b { font-size: 15px; font-weight: 800; line-height: 1.25; }

/* Перфорация: екі шетінде ойық + үзік сызық */
.ticket__tear {
  position: relative;
  height: calc(var(--notch) * 2);
  margin: 6px 0 0;
}
.ticket__tear::before {
  content: '';
  position: absolute;
  left: calc(var(--notch) + 8px);
  right: calc(var(--notch) + 8px);
  top: 50%;
  border-top: 2px dashed #dcdce3;
}
.ticket__tear::after {
  content: '';
  position: absolute;
  inset: 0 calc(var(--notch) * -1);
  background:
    radial-gradient(circle at var(--notch) 50%, var(--bg) var(--notch), transparent calc(var(--notch) + 0.5px)) left / 50% 100% no-repeat,
    radial-gradient(circle at calc(100% - var(--notch)) 50%, var(--bg) var(--notch), transparent calc(var(--notch) + 0.5px)) right / 50% 100% no-repeat;
}

/* ---------- Шақыру мәтіні: билеттің астындағы бөлек блок ---------- */
.invite {
  margin-top: 26px;
  padding: 22px 20px 12px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
}
.invite__body {
  font-size: 14.5px;
  line-height: 1.55;
  color: #c9c9d1;
}
.invite__body p { margin: 0 0 12px; }
.invite__body strong { color: var(--orange-2); font-weight: 800; }
.inv__greeting { font-size: 18px; font-weight: 800; color: var(--text); }
.inv__speakers {
  list-style: none;
  margin: 0 0 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 80, 0, 0.1);
}
.inv__speakers li {
  position: relative;
  padding-left: 18px;
  font-weight: 700;
  color: var(--text);
}
.inv__speakers li + li { margin-top: 4px; }
.inv__speakers li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--orange);
}
.inv__details {
  padding: 12px 14px;
  border-radius: 14px;
  border: 1.5px solid rgba(255, 80, 0, 0.4);
  font-weight: 600;
  color: var(--text);
}
.inv__slogan {
  font-size: 17px;
  font-weight: 900;
  letter-spacing: 0.02em;
  color: var(--orange);
  text-align: center;
}
.inv__sign { font-weight: 800; letter-spacing: 0.06em; color: var(--text); }

.ticket__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px 12px 20px;
  background: #0b0b0f;
  color: #fff;
}
.ticket__foot-text { min-width: 0; }
.ticket__foot-code {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 0.08em;
}
.ticket__foot-hint {
  margin: 6px 0 0;
  color: #b9b9c4;
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.35;
}
.ticket__mark { flex: none; width: 22px; height: 22px; fill: var(--orange); }
/* QR-код: ақ фонда, экраннан сканерлеуге жеткілікті ірі */
.ticket__qr { flex: none; width: 84px; height: 84px; }

/* ---------- Футер ---------- */
.site-foot {
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}
.site-foot p { margin: 0 0 6px; }
.site-foot__slogan { color: var(--text); font-weight: 900; letter-spacing: 0.06em; font-size: 14px; }
.site-foot__copy { opacity: 0.6; margin-top: 10px !important; }
/* Билет ашық тұрғанда ұран жасырылады: ол шақыру мәтінінде бар, екі рет шықпауы керек */
.is-ticket .site-foot__slogan { display: none; }
.is-ticket .site-foot { margin-top: 28px; }

.noscript {
  position: fixed;
  inset: auto 12px 12px;
  padding: 14px;
  border-radius: 12px;
  background: var(--orange);
  color: #fff;
  font-weight: 700;
  text-align: center;
}

/* ---------- Десктоп ---------- */
@media (min-width: 720px) {
  .page { max-width: 520px; padding-top: 40px; }
  .brand__logo { width: 160px; }
}

@media (prefers-reduced-motion: reduce) {
  .btn--whatsapp, .ticket { animation: none; }
}
