:root {
  --primary: #3e54d3;
  --primary-dark: #2f43be;
  --accent: #1fa857;
  --text: #1f2937;
  --muted: #6b7280;
  --bg: #ffffff;
  --surface: #f7f9fc;
  --border: #e5e7eb;
  --danger: #c0392b;
  --warning-bg: #fff8e6;
  --warning-border: #f4c02e;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(17, 24, 39, 0.08);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: min(1120px, 92vw);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.nav-wrap {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 800;
  color: var(--text);
}

.brand-logo {
  width: 46px;
  height: 46px;
  object-fit: cover;
  display: block;
  border-radius: 14px;
  clip-path: inset(0 round 14px);
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(17, 24, 39, 0.18);
}

.nav-menu {
  list-style: none;
  display: flex;
  gap: 1.1rem;
  align-items: center;
}

.nav-link {
  font-weight: 600;
  color: var(--text);
  padding: 0.4rem 0.5rem;
  border-radius: 8px;
}

.nav-link:hover {
  background: var(--surface);
  text-decoration: none;
}

.mobile-toggle {
  display: none;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 8px;
  padding: 0.4rem 0.55rem;
  cursor: pointer;
}

.mobile-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  margin: 4px 0;
}

.hero {
  padding: 72px 0 42px;
  background: radial-gradient(circle at top right, rgba(62, 84, 211, 0.14), transparent 45%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
}

.badge {
  display: inline-block;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  background: #eef2ff;
  color: var(--primary-dark);
  margin-bottom: 1rem;
}

h1 {
  font-size: clamp(2rem, 4.4vw, 3rem);
  line-height: 1.15;
  margin-bottom: 0.9rem;
}

h2 {
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  margin-bottom: 0.8rem;
}

h3 {
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
}

p.lead {
  font-size: 1.1rem;
  color: #374151;
  margin-bottom: 1.2rem;
}

.hero-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.1rem;
}

.button-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.btn {
  border: 0;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.72rem 1rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
}

.btn:disabled {
  cursor: wait;
  opacity: 0.85;
}

.btn-spinner {
  width: 0.95rem;
  height: 0.95rem;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: currentColor;
  border-radius: 999px;
  display: none;
  flex-shrink: 0;
  animation: button-spin 0.8s linear infinite;
}

.btn.is-loading .btn-spinner {
  display: inline-block;
}

@keyframes button-spin {
  to {
    transform: rotate(360deg);
  }
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--primary-dark);
  text-decoration: none;
}

.btn-secondary {
  background: #fff;
  color: var(--primary-dark);
  border: 1px solid #c7d2fe;
}

.btn-secondary:hover {
  background: #eff3ff;
  text-decoration: none;
}

.section {
  padding: 56px 0;
}

.section-muted {
  background: var(--surface);
}

.grid {
  display: grid;
  gap: 1rem;
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  padding: 1rem;
}

.promo-card {
  border: 2px solid #c7d2fe;
  background: linear-gradient(160deg, #eef2ff, #ffffff 45%);
}

.callout {
  background: var(--warning-bg);
  border-left: 4px solid var(--warning-border);
  border-radius: 10px;
  padding: 0.85rem;
  margin-top: 0.8rem;
}

.info {
  color: var(--muted);
  font-size: 0.95rem;
}

.form-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  padding: 1.2rem;
  box-shadow: var(--shadow);
}

.form-group {
  margin-bottom: 1rem;
}

label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

input,
select,
textarea {
  width: 100%;
  padding: 0.7rem 0.8rem;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  font-size: 1rem;
}

textarea {
  min-height: 110px;
  resize: vertical;
}

small {
  color: var(--muted);
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.55rem;
}

.checkbox-row input {
  width: auto;
}

.alert {
  display: none;
  border-radius: 10px;
  padding: 0.9rem;
  margin-top: 0.8rem;
}

.alert-success {
  background: #ecfdf3;
  border: 1px solid #a7f3d0;
  color: #065f46;
}

.alert-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 22px 0 30px;
  margin-top: 20px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 0.4rem;
}

.page-title {
  padding: 34px 0 8px;
}

.legal-card {
  padding: clamp(1.2rem, 2vw, 2rem);
  box-shadow: var(--shadow);
}

.legal-meta {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.legal-card h2 {
  margin-top: 2rem;
  color: var(--primary-dark);
}

.legal-card h3 {
  margin-top: 1.25rem;
}

.legal-card p {
  margin-bottom: 1rem;
  color: #374151;
}

.legal-card ul {
  margin: 0 0 1rem 1.25rem;
}

.legal-card li {
  margin-bottom: 0.45rem;
  color: #374151;
}

.legal-card a {
  word-break: break-word;
}

.legal-card .important,
.legal-contact {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  margin-top: 1.5rem;
}

.legal-card .important {
  background: var(--warning-bg);
  border-left: 4px solid var(--warning-border);
}

.legal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.list {
  margin-left: 1.2rem;
}

.list li {
  margin-bottom: 0.35rem;
}

.rules-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 700;
  margin-top: 0.6rem;
}

.modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(17, 24, 39, 0.48);
  z-index: 200;
  padding: 1rem;
}

.modal-backdrop.open {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-card {
  width: min(760px, 96vw);
  max-height: 88vh;
  overflow-y: auto;
  border-radius: 14px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  background: #fff;
  padding: 1rem 1rem 1.1rem;
}

.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 0.6rem;
}

.modal-close {
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 10px;
  padding: 0.42rem 0.62rem;
  font-weight: 700;
  cursor: pointer;
}

.modal-subtle {
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 0.75rem;
}

@media (max-width: 900px) {
  .hero-grid,
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .mobile-toggle {
    display: block;
  }

  .nav-menu {
    display: none;
    position: absolute;
    top: 72px;
    right: 4vw;
    width: min(300px, 88vw);
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0.65rem;
    box-shadow: var(--shadow);
  }

  .nav-menu.open {
    display: flex;
  }
}
