:root {
  --primary: #EC4899;
  --primary-dark: #DB2777;
  --primary-light: #FCE7F3;

  --ink: #0A0A0A;

  --bg: #FFFFFF;
  --border: #E5E5E5;

  --text: #0F172A;
  --text-secondary: #64748B;
  --text-muted: #94A3B8;

  --radius-md: 12px;
  --radius-full: 9999px;

  --shadow-primary: 0 10px 28px rgba(236,72,153,0.32);

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  --header-h: 72px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

h1, h2 {
  margin: 0;
  font-weight: 800;
  letter-spacing: -0.01em;
}

p {
  margin: 0;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 12px 18px;
  border-radius: 0 0 var(--radius-md) 0;
  z-index: 300;
}

.skip-link:focus {
  left: 0;
}

:focus-visible {
  outline: 3px solid var(--primary-dark);
  outline-offset: 2px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 22px;
  border-radius: var(--radius-full);
  font-family: var(--font);
  font-size: 15px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: transform .15s var(--ease-out), box-shadow .15s var(--ease-out);
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary-dark);
  color: #fff;
  box-shadow: var(--shadow-primary);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 32px rgba(219,39,119,0.38);
}

.btn-ghost {
  background: var(--bg);
  color: var(--ink);
  border: 1.5px solid var(--border);
  height: 44px;
  font-size: 13.5px;
  padding: 0 18px;
}

.btn-ghost:hover {
  border-color: var(--ink);
}

.btn-lg {
  height: 54px;
  padding: 0 32px;
  font-size: 16px;
  width: 100%;
  max-width: 320px;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  z-index: 50;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(10px);
}

.site-header-inner {
  height: 100%;
  max-width: 480px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  height: 24px;
  width: auto;
}

.hero {
  min-height: 100svh;
  min-height: 100vh;
  padding: calc(var(--header-h) + 12px) 20px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-center {
  flex: 1;
  width: 100%;
  max-width: 380px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 20px;
}

.coin-wrap {
  perspective: 900px;
  margin-bottom: 4px;
}

.coin {
  width: clamp(140px, 38vw, 220px);
  height: auto;
  animation: spin-coin 3.6s linear infinite;
  transform-style: preserve-3d;
  filter: drop-shadow(0 18px 24px rgba(236,72,153,0.28));
}

@keyframes spin-coin {
  from { transform: rotateY(0deg); }
  to { transform: rotateY(360deg); }
}

.hero h1 {
  font-size: clamp(26px, 7vw, 34px);
  line-height: 1.12;
  color: var(--ink);
}

.hero-lead {
  font-size: 15.5px;
  color: var(--text-secondary);
  max-width: 320px;
}

.btn-join {
  margin-top: 4px;
}

.page-foot {
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  padding: 8px 20px 36px;
}

.countries {
  max-width: 480px;
  margin: 0 auto;
  padding: 8px 20px 24px;
}

.countries-title {
  font-size: 18px;
  text-align: center;
  margin-bottom: 20px;
}

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

.country-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 4px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg);
}

.country-flag {
  width: 26px;
  height: 18px;
  object-fit: cover;
  border-radius: 3px;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.06);
}

.country-name {
  font-size: 11px;
  font-weight: 700;
  color: var(--text);
  text-align: center;
  line-height: 1.2;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (min-width: 420px) {
  .countries-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

.sheet-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 250ms ease;
}

.sheet-overlay.visible {
  opacity: 1;
  pointer-events: auto;
}

.sheet {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) translateY(100%);
  width: 100%;
  max-width: 430px;
  background: var(--bg);
  border-radius: 24px 24px 0 0;
  z-index: 201;
  padding: 0 24px max(24px, env(safe-area-inset-bottom));
  transition: transform 300ms var(--ease-out);
  max-height: 86vh;
  overflow-y: auto;
}

.sheet.open {
  transform: translateX(-50%) translateY(0);
}

.sheet-handle {
  width: 36px;
  height: 4px;
  background: var(--border);
  border-radius: var(--radius-full);
  margin: 14px auto 8px;
}

.sheet-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: var(--bg);
  border: 1.5px solid var(--border);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.sheet-close svg {
  width: 16px;
  height: 16px;
}

.sheet-title {
  font-size: 19px;
  margin: 6px 0 20px;
}

.advantages-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 28px;
}

.advantages-list li {
  display: flex;
  align-items: center;
  gap: 14px;
}

.advantage-icon {
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: var(--primary-light);
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
}

.advantage-icon svg {
  width: 18px;
  height: 18px;
}

.advantages-list li span:last-child {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text);
}

.sheet .btn-join {
  margin: 0 auto 4px;
  display: flex;
}

@media (prefers-reduced-motion: reduce) {
  .coin {
    animation: none;
  }
  .sheet,
  .sheet-overlay,
  .btn {
    transition: none !important;
  }
}

@media (min-width: 768px) {
  .coin {
    width: clamp(180px, 22vw, 260px);
  }
  .hero h1 {
    font-size: 38px;
  }
}
