:root {
  color-scheme: dark;
  --bg: #050100;
  --panel: rgba(58, 9, 8, .88);
  --panel2: rgba(92, 16, 14, .86);
  --line: rgba(255, 196, 62, .42);
  --gold: #f5c343;
  --gold2: #ffe074;
  --red: #4e0908;
  --text: #fff;
  --muted: #ded6cf;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html, body { min-width: 320px; margin: 0; background: #000; color: var(--text); }
body { overflow-x: hidden; }
button, a, summary { -webkit-tap-highlight-color: transparent; }
button { border: 0; color: inherit; cursor: pointer; font: inherit; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

.phone {
  width: min(100%, 430px);
  min-height: 100vh;
  margin-inline: auto;
  overflow: hidden;
  background:
    radial-gradient(circle at 80% 13%, rgba(210, 23, 20, .46), transparent 11rem),
    radial-gradient(circle at 25% 55%, rgba(121, 18, 12, .42), transparent 17rem),
    linear-gradient(180deg, #080201 0%, #140302 48%, #050100 100%);
  box-shadow: 0 0 90px rgba(0,0,0,.8);
}

.topbar {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: 116px 1fr 40px;
  align-items: center;
  height: 44px;
  padding: 0 16px;
  border-bottom: 1px solid rgba(255,198,64,.42);
  background: rgba(4, 2, 1, .96);
}
.logo {
  color: var(--gold);
  font-size: 1.24rem;
  font-weight: 1000;
  letter-spacing: .01em;
}
.topbar strong {
  justify-self: center;
  font-size: .8rem;
  font-weight: 760;
}
.menu-button {
  display: grid;
  place-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: transparent;
}
.menu-button i {
  display: block;
  width: 22px;
  height: 3px;
  border-radius: 999px;
  background: var(--gold);
}
.menu-popover {
  position: absolute;
  top: 40px;
  right: 13px;
  z-index: 30;
  display: grid;
  width: 150px;
  overflow: hidden;
  border: 1px solid rgba(245,195,67,.65);
  border-radius: 12px;
  background: rgba(28, 5, 4, .98);
  box-shadow: 0 18px 40px rgba(0,0,0,.55);
}
.menu-popover[hidden] { display: none; }
.menu-popover button {
  padding: 11px 13px;
  border-bottom: 1px solid rgba(255,255,255,.12);
  background: transparent;
  text-align: left;
}

.hero {
  position: relative;
  min-height: 176px;
  overflow: hidden;
  padding: 19px 18px 14px;
  background:
    linear-gradient(90deg, rgba(32, 4, 4, .94) 0 42%, rgba(72, 8, 8, .76) 66%, rgba(120, 8, 8, .38)),
    radial-gradient(circle at 72% 43%, rgba(241, 33, 29, .6), transparent 10rem);
}
.hero::after {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 68% 34%, rgba(255,210,92,.15), transparent 7rem);
  content: "";
}
.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 265px;
}
.hero h1 {
  margin: 0;
  font-size: 1.96rem;
  font-weight: 1000;
  line-height: 1.08;
  letter-spacing: -0.01em;
  text-shadow: 0 4px 16px rgba(0,0,0,.58);
}
.hero h1 span { color: var(--gold); }
.hero p {
  margin: 10px 0 0;
  color: #ded8d4;
  font-size: .73rem;
  line-height: 1.38;
  font-weight: 620;
}
.hero-art {
  position: absolute;
  z-index: 1;
  right: -6px;
  top: 12px;
  width: 184px;
  height: 142px;
  object-fit: contain;
  object-position: right center;
  filter: drop-shadow(-14px 14px 22px rgba(0,0,0,.52));
}

.cta-pair {
  display: grid;
  grid-template-columns: 1fr .94fr;
  gap: 10px;
  padding: 11px 18px 14px;
}
.cta-pair button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  height: 39px;
  border-radius: 8px;
  font-size: .74rem;
  font-weight: 950;
  white-space: nowrap;
}
.cta-pair .primary {
  color: #1c1204;
  background: linear-gradient(180deg, #ffe177, #eab134);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.42), 0 0 18px rgba(245,195,67,.25);
}
.cta-pair .secondary {
  border: 1px solid rgba(245, 68, 70, .9);
  background: linear-gradient(180deg, rgba(87,13,13,.72), rgba(52,5,6,.9));
  color: #fff3db;
}
.cta-pair i,
.guide-action i,
.faq-panel header i {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-right: 3px solid currentColor;
  border-bottom: 3px solid currentColor;
  transform: rotate(-45deg);
}

.guide-list {
  display: grid;
  gap: 4px;
  padding: 0 17px 9px;
}
.guide-item {
  display: grid;
  grid-template-columns: 1fr 92px;
  min-height: 67px;
}
.guide-main {
  display: grid;
  grid-template-columns: 66px 1fr;
  align-items: center;
  gap: 12px;
  padding: 7px 11px 7px 14px;
  border: 1px solid rgba(198, 47, 38, .62);
  border-right: 0;
  border-radius: 8px 0 0 8px;
  background:
    radial-gradient(circle at 55% 30%, rgba(124, 20, 16, .5), transparent 8rem),
    linear-gradient(180deg, rgba(74, 10, 10, .94), rgba(47, 5, 6, .95));
}
.guide-main img {
  width: 57px;
  height: 57px;
  border-radius: 50%;
  object-fit: cover;
}
.guide-main h2 {
  margin: 0;
  font-size: .8rem;
  line-height: 1.1;
  font-weight: 1000;
}
.guide-main p {
  margin: 5px 0 0;
  color: #e6d9d5;
  font-size: .63rem;
  line-height: 1.28;
  font-weight: 560;
}
.guide-action {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border-radius: 0 8px 8px 0;
  background: linear-gradient(180deg, #ffe174, #e7ab2d);
  color: #0d0905;
  font-size: .76rem;
  line-height: 1.1;
  font-weight: 1000;
}
.guide-action::before {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 1px;
  border-left: 2px dotted #1c1208;
  content: "";
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 9px;
  padding: 0 17px 9px;
}
.quick {
  display: grid;
  place-items: center;
  gap: 6px;
  min-height: 79px;
  padding: 8px 4px 7px;
  border: 1px solid rgba(245,195,67,.26);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(28,18,11,.82), rgba(12,8,6,.9));
}
.quick img {
  width: 35px;
  height: 35px;
  object-fit: contain;
}
.quick span {
  display: block;
  min-height: 24px;
  font-size: .58rem;
  line-height: 1.12;
  font-weight: 780;
}

.faq-panel,
.notice {
  margin: 0 17px 8px;
  border: 1px solid rgba(245,195,67,.28);
  border-radius: 9px;
  background: linear-gradient(180deg, rgba(25, 14, 9, .92), rgba(12, 8, 6, .96));
}
.faq-panel { padding: 11px 8px 8px; }
.faq-panel header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 7px 8px;
}
.faq-panel h2 {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  font-size: .82rem;
  font-weight: 1000;
}
.question-icon {
  display: grid;
  place-items: center;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: #e8ded4;
  color: #2a1a11;
  font-size: .64rem;
}
.faq-panel header button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0;
  background: transparent;
  color: var(--gold);
  font-size: .62rem;
  font-weight: 850;
  white-space: nowrap;
}
.faq-panel details {
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 7px;
  background: rgba(255,255,255,.06);
}
.faq-panel details + details { margin-top: 4px; }
.faq-panel summary {
  display: flex;
  align-items: center;
  min-height: 32px;
  padding: 0 11px;
  list-style: none;
  font-size: .66rem;
  font-weight: 800;
}
.faq-panel summary::-webkit-details-marker { display: none; }
.faq-panel summary i {
  position: relative;
  width: 15px;
  height: 15px;
  margin-left: auto;
}
.faq-panel summary i::before,
.faq-panel summary i::after {
  position: absolute;
  background: currentColor;
  content: "";
}
.faq-panel summary i::before { left: 0; top: 6px; width: 15px; height: 2px; }
.faq-panel summary i::after { left: 6px; top: 0; width: 2px; height: 15px; }
.faq-panel details[open] summary i::after { display: none; }
.faq-panel p {
  margin: 0;
  padding: 0 12px 10px;
  color: var(--muted);
  font-size: .56rem;
  line-height: 1.35;
}

.notice {
  display: grid;
  grid-template-columns: 40px 1fr;
  align-items: center;
  min-height: 41px;
  padding: 7px 14px;
}
.notice p {
  margin: 0;
  color: #ded6cf;
  font-size: .6rem;
  line-height: 1.32;
}

.trust-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  padding: 3px 17px 10px;
}
.trust-row span {
  display: grid;
  grid-template-columns: 18px 1fr;
  align-items: start;
  gap: 5px;
  min-height: 44px;
  padding: 4px 7px 0;
  border-right: 1px solid rgba(245,195,67,.25);
  color: #dfd7d0;
  font-size: .47rem;
  line-height: 1.22;
}
.trust-row span:last-child { border-right: 0; }
.trust-row b {
  display: grid;
  place-items: center;
  width: 16px;
  height: 16px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  color: var(--gold);
  font-size: .55rem;
}

.bottom-nav {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  height: 66px;
  border-top: 1px solid rgba(245,195,67,.3);
  background: linear-gradient(180deg, rgba(31,12,9,.98), rgba(7,4,3,.98));
}
.nav-item {
  display: grid;
  place-items: center;
  place-content: center;
  gap: 5px;
  border-right: 1px solid rgba(245,195,67,.18);
  background: transparent;
  color: #d8d0c8;
  font-size: .64rem;
  font-weight: 900;
}
.nav-item:last-child { border-right: 0; }
.nav-item.active {
  color: #1a0f05;
  background: linear-gradient(180deg, #ffe278, #d8991f);
  box-shadow: 0 -7px 18px rgba(245,195,67,.18);
}
.nav-item > span {
  position: relative;
  display: block;
  width: 24px;
  height: 24px;
  color: currentColor;
}
.nav-item small { font-size: .6rem; font-weight: 1000; }

.ticket-icon,
.user-icon,
.shield,
.doc,
.safe,
.age,
.nav-home,
.nav-gift,
.nav-phone,
.nav-faq { position: relative; display: inline-block; color: currentColor; }
.ticket-icon { width: 19px; height: 13px; border: 3px solid currentColor; transform: rotate(-17deg); }
.ticket-icon::before { position: absolute; left: 5px; top: 2px; width: 4px; height: 4px; border-radius: 50%; background: currentColor; content: ""; }
.user-icon { width: 20px; height: 20px; }
.user-icon::before { position: absolute; left: 6px; top: 1px; width: 8px; height: 8px; border-radius: 50%; background: currentColor; content: ""; }
.user-icon::after { position: absolute; left: 2px; bottom: 0; width: 16px; height: 10px; border-radius: 11px 11px 2px 2px; background: currentColor; content: ""; }
.shield { width: 29px; height: 31px; border: 2px solid #aaa; border-radius: 12px 12px 14px 14px; }
.shield::after, .safe::after { position: absolute; left: 8px; top: 8px; width: 9px; height: 5px; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); content: ""; }
.doc { border-radius: 3px !important; }
.safe { border-color: #d35b45 !important; color: #d35b45 !important; }
.age { border-color: #f07d65 !important; color: #f07d65 !important; font-size: .44rem !important; }
.nav-home::before { position: absolute; left: 4px; top: 10px; width: 16px; height: 11px; border-radius: 2px; background: currentColor; content: ""; }
.nav-home::after { position: absolute; left: 2px; top: 3px; border-left: 10px solid transparent; border-right: 10px solid transparent; border-bottom: 10px solid currentColor; content: ""; }
.nav-gift { border: 3px solid currentColor; border-radius: 4px; }
.nav-gift::before { position: absolute; left: 9px; top: -5px; width: 3px; height: 29px; background: currentColor; content: ""; }
.nav-gift::after { position: absolute; left: -4px; top: 7px; width: 28px; height: 3px; background: currentColor; content: ""; }
.nav-phone { width: 15px !important; height: 24px !important; border: 3px solid currentColor; border-radius: 4px; }
.nav-faq { border: 3px solid currentColor; border-radius: 50%; }
.nav-faq::before { position: absolute; left: 8px; top: 3px; content: "?"; font-size: .8rem; font-weight: 1000; }

@media (max-width: 390px) {
  .topbar { grid-template-columns: 100px 1fr 36px; padding-inline: 13px; }
  .logo { font-size: 1.08rem; }
  .hero h1 { font-size: 1.72rem; }
  .hero-art { right: -18px; width: 170px; }
  .cta-pair { padding-inline: 13px; gap: 7px; }
  .guide-list { padding-inline: 13px; }
  .guide-item { grid-template-columns: 1fr 78px; }
  .guide-main { grid-template-columns: 52px 1fr; gap: 9px; padding-left: 10px; }
  .guide-main img { width: 48px; height: 48px; }
  .guide-main h2 { font-size: .7rem; }
  .guide-main p { font-size: .55rem; }
  .guide-action { font-size: .66rem; gap: 8px; }
  .quick-grid { gap: 6px; padding-inline: 13px; }
  .trust-row { padding-inline: 10px; }
}

.register-float {
  position: fixed;
  right: max(14px, calc((100vw - 430px) / 2 + 14px));
  bottom: 76px;
  z-index: 95;
  min-width: 104px;
  min-height: 38px;
  padding: 0 18px;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 999px;
  background: linear-gradient(135deg, #ffdf69, #ff9f1c 55%, #c76d0d);
  color: #120b04;
  font-size: .76rem;
  font-weight: 1000;
  letter-spacing: 0;
  box-shadow: 0 10px 24px rgba(0,0,0,.42), 0 0 22px rgba(255,190,60,.24), inset 0 1px 0 rgba(255,255,255,.45);
}
.register-float:active { transform: translateY(1px); }
