:root {
  --bg: #050806;
  --panel: rgba(9, 18, 12, 0.78);
  --panel-strong: rgba(12, 25, 16, 0.92);
  --line: rgba(197, 255, 119, 0.18);
  --text: #f5f8f0;
  --muted: #b7c1ad;
  --green: #49ff55;
  --green-dark: #0bbf38;
  --gold: #ffd66b;
  --gold-dark: #b88924;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: "Inter", Arial, sans-serif;
  background:
    radial-gradient(circle at 20% 0%, rgba(73, 255, 85, 0.2), transparent 30%),
    radial-gradient(circle at 85% 20%, rgba(255, 214, 107, 0.16), transparent 28%),
    var(--bg);
}

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

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

.page {
  overflow: hidden;
}

.hero {
  position: relative;
  min-height: 720px;
  display: flex;
  align-items: center;
  isolation: isolate;
  background-image: url("референс для фона.png");
  background-position: center;
  background-size: cover;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 180px;
  background: linear-gradient(180deg, transparent, var(--bg));
  z-index: -1;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 8, 6, 0.92) 0%, rgba(5, 8, 6, 0.66) 46%, rgba(5, 8, 6, 0.18) 100%),
    linear-gradient(180deg, rgba(5, 8, 6, 0.16), rgba(5, 8, 6, 0.86));
  z-index: -1;
}

.hero__content {
  padding: 80px 0 120px;
  max-width: 1120px;
}

.brand-badge {
  width: 116px;
  height: 116px;
  padding: 4px;
  margin-bottom: 28px;
  border: 1px solid rgba(255, 214, 107, 0.68);
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255, 214, 107, 0.85), rgba(73, 255, 85, 0.55));
  box-shadow: 0 0 46px rgba(73, 255, 85, 0.32);
}

.brand-badge img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

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

h1 {
  max-width: 760px;
  margin-bottom: 18px;
  font-size: clamp(48px, 8vw, 104px);
  line-height: 0.92;
  font-weight: 800;
}

.hero__subtitle {
  max-width: 760px;
  margin-bottom: 18px;
  color: #eef8e7;
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1.2;
  font-weight: 700;
}

.hero__text {
  max-width: 620px;
  margin-bottom: 34px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}

.button {
  position: relative;
  display: inline-flex;
  min-height: 56px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 22px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.15;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.button:hover,
.exchange-link:hover {
  transform: translateY(-3px);
}

.button.is-pressed,
.exchange-link.is-pressed {
  transform: translateY(0) scale(0.98);
}

.button--primary {
  min-height: 66px;
  padding-inline: 30px;
  color: #041007;
  background: linear-gradient(135deg, var(--green), var(--gold));
  box-shadow: 0 18px 46px rgba(73, 255, 85, 0.28), 0 0 0 1px rgba(255, 214, 107, 0.28) inset;
}

.button--primary:hover {
  box-shadow: 0 24px 62px rgba(73, 255, 85, 0.38), 0 0 0 1px rgba(255, 214, 107, 0.5) inset;
}

.button--ghost {
  width: 100%;
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.09);
}

.button--ghost:hover {
  border-color: rgba(73, 255, 85, 0.5);
  background: rgba(73, 255, 85, 0.08);
  box-shadow: 0 12px 34px rgba(73, 255, 85, 0.12);
}

.button--secondary {
  width: 100%;
  color: #0e0a02;
  background: linear-gradient(135deg, var(--gold), #fff0a8);
  box-shadow: 0 16px 40px rgba(255, 214, 107, 0.18);
}

.links-section {
  position: relative;
  padding: 0 0 72px;
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.05), transparent 44%),
    var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.card--featured {
  grid-row: span 2;
  background:
    linear-gradient(145deg, rgba(73, 255, 85, 0.12), transparent 42%),
    var(--panel-strong);
}

.card--education {
  border-color: rgba(255, 214, 107, 0.22);
}

.card__header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.card__mark {
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 214, 107, 0.38);
  border-radius: 8px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 800;
  background: rgba(255, 214, 107, 0.08);
}

h2 {
  margin-bottom: 0;
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1.1;
}

.card p {
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}

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

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

.exchange-link {
  display: flex;
  min-height: 68px;
  align-items: center;
  justify-content: space-between;
  padding: 18px;
  border: 1px solid rgba(73, 255, 85, 0.2);
  border-radius: 8px;
  color: #f7fff4;
  font-size: 18px;
  font-weight: 800;
  background: rgba(73, 255, 85, 0.06);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.exchange-link::after {
  content: "→";
  color: var(--green);
}

.exchange-link:hover {
  border-color: rgba(255, 214, 107, 0.48);
  background: rgba(255, 214, 107, 0.09);
  box-shadow: 0 16px 42px rgba(73, 255, 85, 0.14);
}

.footer {
  padding: 28px 0 38px;
  color: var(--muted);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: #030504;
}

.footer p {
  margin-bottom: 8px;
  color: var(--text);
  font-weight: 700;
}

.footer small {
  display: block;
  max-width: 720px;
  font-size: 12px;
  line-height: 1.6;
}

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

  .hero {
    min-height: auto;
    background-position: 72% center;
  }

  .hero__overlay {
    background:
      linear-gradient(180deg, rgba(5, 8, 6, 0.7), rgba(5, 8, 6, 0.96)),
      linear-gradient(90deg, rgba(5, 8, 6, 0.92), rgba(5, 8, 6, 0.5));
  }

  .hero__content {
    padding: 54px 0 74px;
  }

  .brand-badge {
    width: 94px;
    height: 94px;
    margin-bottom: 24px;
  }

  h1 {
    font-size: clamp(46px, 14vw, 70px);
  }

  .hero__subtitle {
    font-size: 22px;
  }

  .hero__text {
    font-size: 16px;
  }

  .button {
    width: 100%;
    min-height: 58px;
    padding: 16px 18px;
  }

  .content-grid,
  .button-grid,
  .exchange-grid {
    grid-template-columns: 1fr;
  }

  .card {
    padding: 22px;
  }

  .card--featured {
    grid-row: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .button,
  .exchange-link {
    transition: none;
  }
}
