:root {
  --brand: #8ebe1f;
  --brand-light: #a3d41f;
  --brand-dark: #5a7a10;
  --text: #222222;
  --muted: #555555;
  --bg: #ffffff;
  --bg-soft: #f7faf0;
  --danger: #9b1c1c;
  --danger-bg: #fdecec;
  --ok-bg: #eef6d6;
  --radius: 12px;
  --font: "Sora", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(142, 190, 31, 0.18), transparent 55%),
    radial-gradient(900px 500px at 100% 0%, rgba(163, 212, 31, 0.12), transparent 50%),
    linear-gradient(180deg, #fbfdf6 0%, #ffffff 45%, #f7faf0 100%);
  background-attachment: fixed;
  line-height: 1.5;
}

a { color: var(--brand-dark); }
a:hover { color: var(--brand); }

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.header, .footer {
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.header {
  border-bottom: 1px solid #e5ead8;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(8px);
}

.logo {
  height: 48px;
  width: auto;
}

.lang a {
  margin-left: 0.5rem;
  text-decoration: none;
  font-weight: 600;
}

.lang a.active {
  color: var(--brand-dark);
  text-decoration: underline;
}

.main {
  flex: 1;
  width: min(720px, 100%);
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
}

.main:has(.landing) {
  width: 100%;
  max-width: none;
  padding: 0;
}

.card {
  background: var(--bg-soft);
  border: 1px solid #e5ead8;
  border-radius: var(--radius);
  padding: 1.5rem;
}

.amount {
  font-size: 2rem;
  font-weight: 700;
  color: var(--brand-dark);
  margin: 0.25rem 0 1rem;
}

.products {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 0.5rem;
  font-size: 0.95rem;
}

.products th,
.products td {
  text-align: left;
  padding: 0.55rem 0.4rem;
  border-bottom: 1px solid #e5ead8;
}

.products th.num,
.products td.num {
  text-align: right;
  white-space: nowrap;
}

.products .product-fee td {
  font-weight: 600;
  color: var(--brand-dark);
}

.btn {
  display: inline-block;
  background: var(--brand);
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
}

.btn:hover { background: var(--brand-dark); color: #fff; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }
.btn-secondary {
  background: transparent;
  color: var(--brand-dark);
  border: 1px solid var(--brand-dark);
}

.btn-secondary:hover {
  background: rgba(90, 122, 16, 0.08);
  color: var(--brand-dark);
}

.alert {
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  margin: 1rem 0;
}

.alert-error { background: var(--danger-bg); color: var(--danger); }
.alert-ok { background: var(--ok-bg); color: var(--brand-dark); }

.methods label {
  display: block;
  margin: 0.5rem 0;
}

.footer {
  border-top: 1px solid #e5ead8;
  font-size: 0.9rem;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.7);
}

.footer nav { display: flex; gap: 0.85rem; flex-wrap: wrap; }

.legal :is(h1,h2,h3) { color: var(--brand-dark); }
.legal ul { padding-left: 1.25rem; }

.badge {
  display: inline-block;
  background: var(--ok-bg);
  color: var(--brand-dark);
  border-radius: 999px;
  padding: 0.15rem 0.6rem;
  font-size: 0.8rem;
  font-weight: 600;
}

.landing {
  min-height: calc(100vh - 9rem);
  display: grid;
  place-items: center;
  padding: 2.5rem 1.25rem 3rem;
  position: relative;
  overflow: hidden;
}

.landing::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto;
  height: 70%;
  background:
    radial-gradient(ellipse at 30% 40%, rgba(142, 190, 31, 0.28), transparent 55%),
    radial-gradient(ellipse at 75% 20%, rgba(90, 122, 16, 0.16), transparent 50%);
  animation: landing-glow 12s ease-in-out infinite alternate;
  pointer-events: none;
}

.landing-hero {
  position: relative;
  z-index: 1;
  width: min(720px, 100%);
  text-align: center;
  animation: landing-rise 700ms ease-out both;
}

.landing-logo {
  height: clamp(64px, 12vw, 96px);
  width: auto;
  margin-bottom: 1rem;
  animation: landing-rise 700ms ease-out both;
}

.landing-brand {
  margin: 0 0 0.35rem;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--brand-dark);
}

.landing-title {
  margin: 0 0 0.85rem;
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
  font-weight: 600;
  color: var(--text);
}

.landing-title:focus,
.landing-title:focus-visible {
  outline: none;
}

.landing-lead {
  margin: 0 auto 1.75rem;
  max-width: 38rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.landing-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.landing-cta a {
  animation: landing-rise 700ms ease-out both;
}

.landing-cta a:nth-child(1) { animation-delay: 120ms; }
.landing-cta a:nth-child(2) { animation-delay: 200ms; }
.landing-cta a:nth-child(3) { animation-delay: 280ms; }

.landing-hint {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

@keyframes landing-rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes landing-glow {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(2%, 3%, 0) scale(1.05); }
}

@media (prefers-reduced-motion: reduce) {
  .landing::before,
  .landing-hero,
  .landing-logo,
  .landing-cta a {
    animation: none;
  }
}

@media (max-width: 560px) {
  .landing-cta {
    flex-direction: column;
    align-items: stretch;
  }

  .landing-cta .btn {
    text-align: center;
  }
}
