:root {
  --green-950: #0d1f18;
  --green-dark: #142e24;
  --green-mid: #1f4a3a;
  --gold: #c4a35a;
  --gold-light: #e0c989;
  --cream: #f7f3eb;
  --cream-dark: #ebe4d6;
  --text: #1c2b24;
  --text-muted: #5c6b62;
  --white: #ffffff;
  --radius-md: 16px;
  --radius-lg: 20px;
  --shadow-soft: 0 8px 28px rgba(13, 31, 24, 0.1);
  --shadow-card: 0 12px 36px rgba(13, 31, 24, 0.12);
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --font-body: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-display: "Libre Baskerville", Georgia, "Times New Roman", serif;
  --z-bg: 0;
  --z-content: 1;
  --z-header: 100;
  --z-dropdown: 200;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  min-height: 100%;
  min-height: 100dvh;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--cream);
}

html.tg-webapp,
html.tg-webapp body {
  min-height: 100dvh;
  background: var(--cream);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: calc(10px + var(--safe-top)) 16px 10px;
  background: rgba(13, 31, 24, 0.92);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.topbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--white);
  font-weight: 600;
  font-size: 14px;
}

.topbar-brand img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid rgba(196, 163, 90, 0.45);
}

.topbar #lang-switch {
  position: relative;
  z-index: var(--z-dropdown);
}

.page {
  position: relative;
  z-index: var(--z-content);
  max-width: 880px;
  margin: 0 auto;
}

.hero {
  text-align: center;
  padding: 32px 20px 48px;
  color: var(--white);
  background: linear-gradient(180deg, var(--green-dark) 0%, #1a3d30 100%);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  margin-bottom: 24px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-light);
  background: rgba(196, 163, 90, 0.14);
  border: 1px solid rgba(196, 163, 90, 0.3);
}

.hero-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
}

.hero-logo-wrap {
  width: 104px;
  height: 104px;
  margin: 0 auto 24px;
}

.hero-logo-ring {
  display: none;
}

.hero-logo {
  width: 100%;
  height: 100%;
  border-radius: 24px;
  object-fit: cover;
  border: 3px solid rgba(196, 163, 90, 0.5);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(28px, 6vw, 44px);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 12px;
}

.hero-subtitle {
  max-width: 440px;
  margin: 0 auto 28px;
  font-size: clamp(15px, 3.5vw, 17px);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.72);
}

.hero-actions {
  width: min(100%, 400px);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hero-actions-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  border-radius: var(--radius-md);
  padding: 14px 16px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn-icon {
  display: flex;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.btn-icon svg {
  width: 100%;
  height: 100%;
}

.btn-primary {
  background: linear-gradient(165deg, var(--gold) 0%, #a88642 100%);
  color: var(--green-950);
  box-shadow: 0 8px 24px rgba(196, 163, 90, 0.3);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.section-head {
  margin-bottom: 20px;
}

.section-kicker {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 6px;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(22px, 4.5vw, 28px);
  font-weight: 700;
  line-height: 1.25;
  color: var(--green-dark);
}

.features {
  padding: 40px 20px 32px;
  background: var(--cream);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.feature-card {
  padding: 18px 16px;
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid rgba(20, 46, 36, 0.08);
  box-shadow: var(--shadow-soft);
}

.feature-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  margin-bottom: 12px;
  color: var(--green-dark);
  background: rgba(31, 74, 58, 0.08);
}

.feature-icon svg {
  width: 20px;
  height: 20px;
}

.feature-card h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--green-dark);
  margin-bottom: 6px;
}

.feature-card p {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-muted);
}

.channels {
  padding: 0 20px 40px;
  background: var(--cream);
}

.channel-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.channel-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: inherit;
  background: var(--white);
  border: 1px solid rgba(20, 46, 36, 0.08);
  box-shadow: var(--shadow-soft);
}

.channel-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  font-size: 20px;
  flex-shrink: 0;
  background: rgba(31, 74, 58, 0.08);
}

.channel-body {
  flex: 1;
  min-width: 0;
}

.channel-body h3 {
  font-size: 14px;
  font-weight: 700;
  color: var(--green-dark);
  margin-bottom: 2px;
}

.channel-body p {
  font-size: 12px;
  line-height: 1.45;
  color: var(--text-muted);
}

.channel-arrow {
  font-size: 16px;
  color: var(--gold);
  flex-shrink: 0;
}

.footer {
  position: relative;
  z-index: var(--z-content);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 20px 16px calc(16px + var(--safe-bottom));
  text-align: center;
  background: var(--cream-dark);
  border-top: 1px solid rgba(20, 46, 36, 0.08);
}

.footer-logo {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  opacity: 0.85;
}

.footer p {
  font-size: 12px;
  color: var(--text-muted);
}

.hidden {
  display: none !important;
}

@media (max-width: 560px) {
  .hero-actions-row,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .btn {
    width: 100%;
  }
}

@media (min-width: 720px) {
  .feature-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .channel-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
}

@media (min-width: 900px) {
  .channel-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
