:root {
  --bg: #08090b;
  --ink: #f8fafc;
  --muted: #a6adbb;
  --line: rgba(255, 255, 255, 0.14);
  --panel: rgba(13, 18, 24, 0.86);
  --panel-soft: #111820;
  --gold: #f5c451;
  --green: #27d19b;
  --red: #ff5c5c;
  --blue: #56a6ff;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", Arial, sans-serif;
  line-height: 1.5;
}

body.menu-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
}

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

button,
input,
select {
  font: inherit;
}

input[type="email"],
input[type="password"],
input[type="text"] {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 14px;
  background: #0a0d12;
  color: var(--ink);
}

input::placeholder {
  color: #737c8b;
}

.password-field {
  position: relative;
}

.password-field input {
  padding-right: 56px;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 8px;
  display: grid;
  width: 40px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  cursor: pointer;
  transform: translateY(-50%);
}

.eye-shape {
  position: relative;
  display: block;
  width: 18px;
  height: 12px;
  border: 2px solid var(--muted);
  border-radius: 999px;
}

.eye-shape::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--muted);
  content: "";
  transform: translate(-50%, -50%);
}

.eye-shape::before {
  position: absolute;
  top: 50%;
  left: 50%;
  display: none;
  width: 24px;
  height: 2px;
  border-radius: 999px;
  background: var(--gold);
  content: "";
  transform: translate(-50%, -50%) rotate(-42deg);
  transform-origin: center;
}

.password-toggle.is-visible .eye-shape {
  border-color: var(--gold);
}

.password-toggle.is-visible .eye-shape::after {
  background: var(--gold);
}

.password-toggle.is-visible .eye-shape::before {
  display: block;
}

.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(8, 9, 11, 0.84);
  backdrop-filter: blur(18px);
}

.nav-wrap {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  min-height: 76px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
}

.logo img {
  width: 38px;
  height: 38px;
  border-radius: 8px;
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: 26px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
}

.nav-links a:hover {
  color: var(--ink);
}

.nav-cta,
.btn {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0 18px;
  cursor: pointer;
  font-weight: 800;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.auth-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.nav-login {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 16px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink);
  font-weight: 800;
}

.account-link[hidden],
.auth-actions[hidden] {
  display: none;
}

.nav-cta,
.btn-primary {
  background: var(--gold);
  color: #151008;
}

.btn-secondary {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink);
}

.btn:hover,
.nav-cta:hover {
  transform: translateY(-1px);
}

.full {
  width: 100%;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: var(--ink);
}

.hero {
  position: relative;
  min-height: calc(100vh - 76px);
  overflow: hidden;
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(8, 9, 11, 0.94) 0%, rgba(8, 9, 11, 0.7) 45%, rgba(8, 9, 11, 0.26) 100%),
    linear-gradient(0deg, #08090b 0%, rgba(8, 9, 11, 0) 34%);
}

.hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 48px;
  align-items: end;
  min-height: calc(100vh - 76px);
  padding: 70px 0 82px;
}

.hero-copy {
  max-width: 720px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  max-width: 760px;
  margin-bottom: 18px;
  font-size: clamp(2.7rem, 6vw, 5.9rem);
  line-height: 0.95;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.02;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.25rem;
  line-height: 1.15;
}

.hero-copy p:not(.eyebrow),
.section-heading p:not(.eyebrow),
.checkout-layout > div > p,
.winners-layout > div > p {
  max-width: 640px;
  color: var(--muted);
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.draw-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.draw-panel__top,
.card-meta,
.ticket-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.draw-panel__top {
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 0.9rem;
}

.draw-panel h2 {
  font-size: 1.85rem;
}

.draw-panel p,
.competition-card p,
.steps-grid p,
.faq-list p,
.site-footer p,
.site-footer span {
  color: var(--muted);
}

.countdown {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 22px 0;
}

.countdown div {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 8px;
  text-align: center;
  background: rgba(255, 255, 255, 0.06);
}

.countdown strong {
  display: block;
  font-size: 1.55rem;
}

.countdown span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.trust-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #0c1015;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.trust-grid div {
  min-height: 118px;
  padding: 24px;
  border-left: 1px solid var(--line);
}

.trust-grid div:last-child {
  border-right: 1px solid var(--line);
}

.trust-grid strong {
  display: block;
  font-size: 1.75rem;
}

.trust-grid span {
  color: var(--muted);
}

.section {
  padding: 86px 0;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 30px;
}

.competitions {
  background: #08090b;
}

.competition-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr;
  gap: 18px;
}

.competition-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.competition-card img {
  width: 100%;
  height: 238px;
  object-fit: cover;
}

.competition-card.featured img {
  height: 330px;
}

.competition-body {
  padding: 20px;
}

.pill {
  display: inline-flex;
  margin-bottom: 14px;
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(245, 196, 81, 0.14);
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.card-meta {
  margin: 18px 0;
  color: #dbe3ef;
  font-size: 0.92rem;
  font-weight: 800;
}

.checkout-section,
.winners,
.account-section {
  background: #0c1015;
}

.checkout-layout,
.winners-layout,
.faq-layout,
.account-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 46px;
  align-items: start;
}

.checkout-box,
.account-box {
  display: grid;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  background: #101720;
}

label {
  color: #d7deea;
  font-weight: 800;
}

select,
input[type="range"] {
  width: 100%;
}

select {
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 14px;
  background: #0a0d12;
  color: var(--ink);
}

input[type="range"] {
  accent-color: var(--gold);
}

.ticket-row {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.05);
}

.identity-note {
  display: grid;
  gap: 4px;
  border: 1px solid rgba(245, 196, 81, 0.34);
  border-radius: 8px;
  padding: 14px;
  background: rgba(245, 196, 81, 0.08);
}

.identity-note strong {
  color: var(--gold);
}

.identity-note span,
.field-help,
.form-message {
  color: var(--muted);
  font-size: 0.9rem;
}

.checkbox-row {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  align-items: start;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
}

.how-section {
  background: #08090b;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.steps-grid article,
.winner-list article,
.faq-list details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.steps-grid article {
  padding: 24px;
}

.steps-grid span {
  display: inline-flex;
  margin-bottom: 28px;
  color: var(--green);
  font-size: 2rem;
  font-weight: 900;
}

.winner-list {
  display: grid;
  gap: 12px;
}

.winner-list article {
  display: grid;
  gap: 4px;
  padding: 18px;
}

.winner-list strong {
  font-size: 1.1rem;
}

.empty-winners {
  display: grid;
  justify-items: start;
  gap: 12px;
  border: 1px dashed rgba(245, 196, 81, 0.42);
  border-radius: 8px;
  padding: 28px;
  background: linear-gradient(135deg, rgba(245, 196, 81, 0.1), rgba(255, 255, 255, 0.04));
}

.empty-winners h3,
.empty-winners p {
  margin-bottom: 0;
}

.empty-icon {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border: 1px solid rgba(245, 196, 81, 0.5);
  border-radius: 8px;
  color: var(--gold);
  font-size: 1.5rem;
  font-weight: 900;
}

.account-section {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.account-layout > div > p {
  max-width: 640px;
  color: var(--muted);
  font-size: 1.08rem;
}

.auth-tabs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0a0d12;
}

.auth-tab {
  min-height: 42px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-weight: 900;
}

.auth-tab.active {
  background: var(--gold);
  color: #151008;
}

.auth-form {
  display: none;
  gap: 14px;
}

.auth-form.active {
  display: grid;
}

.account-box.is-verified .auth-tabs,
.account-box.is-verified .auth-form {
  display: none;
}

.account-status {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(39, 209, 155, 0.36);
  border-radius: 8px;
  padding: 18px;
  background: rgba(39, 209, 155, 0.08);
}

.account-status[hidden] {
  display: none;
}

.account-status strong {
  color: var(--green);
  font-size: 1.15rem;
}

.account-status span {
  color: var(--muted);
}

.field-help {
  margin: -6px 0 2px;
}

.form-message {
  min-height: 20px;
  margin: 0;
  text-align: center;
}

.form-message.error {
  color: var(--red);
}

.form-message.success {
  color: var(--green);
}

.auth-link {
  justify-self: center;
  color: var(--gold);
  font-size: 0.92rem;
  font-weight: 800;
}

.faq-section {
  background: #08090b;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-list details {
  padding: 18px 20px;
}

.faq-list summary {
  cursor: pointer;
  font-weight: 900;
}

.faq-list p {
  margin: 12px 0 0;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #0c1015;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 28px;
  padding: 44px 0;
}

.footer-grid > div {
  display: grid;
  align-content: start;
  gap: 10px;
}

.footer-grid strong {
  color: var(--gold);
}

.footer-bottom {
  border-top: 1px solid var(--line);
  padding: 18px 0 26px;
  color: var(--muted);
}

@media (max-width: 920px) {
  .nav-wrap {
    grid-template-columns: auto auto;
  }

  .menu-toggle {
    display: block;
    justify-self: end;
  }

  .nav-links,
  .nav-cta,
  .nav-login,
  .auth-actions {
    display: none;
  }

  .nav-links.active {
    position: fixed;
    inset: 76px 16px auto;
    display: grid;
    justify-content: stretch;
    gap: 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 8px;
    background: #101720;
    box-shadow: var(--shadow);
  }

  .nav-links.active a {
    padding: 16px;
    border-radius: 8px;
  }

  .nav-links.active a:hover {
    background: rgba(255, 255, 255, 0.07);
  }

  .hero-content,
  .checkout-layout,
  .winners-layout,
  .faq-layout,
  .account-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-content {
    align-items: end;
    min-height: auto;
    padding-top: 74px;
  }

  .draw-panel {
    max-width: 460px;
  }

  .trust-grid,
  .competition-grid,
  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 24px, 1180px);
  }

  .hero {
    min-height: auto;
  }

  .hero-overlay {
    background:
      linear-gradient(0deg, #08090b 0%, rgba(8, 9, 11, 0.72) 44%, rgba(8, 9, 11, 0.5) 100%),
      linear-gradient(90deg, rgba(8, 9, 11, 0.92), rgba(8, 9, 11, 0.62));
  }

  .hero-content {
    padding: 58px 0 56px;
  }

  h1 {
    font-size: 3rem;
  }

  .hero-actions,
  .hero-actions .btn {
    width: 100%;
  }

  .trust-grid,
  .competition-grid,
  .steps-grid {
    grid-template-columns: 1fr;
  }

  .trust-grid div,
  .trust-grid div:last-child {
    border-right: 0;
    border-left: 0;
    border-bottom: 1px solid var(--line);
  }

  .section {
    padding: 62px 0;
  }

  .competition-card.featured img,
  .competition-card img {
    height: 230px;
  }
}
