:root {
  --bg: #07090f;
  --panel: #111620;
  --panel-strong: #171d2a;
  --text: #ffffff;
  --muted: #aeb6c8;
  --line: rgba(255, 255, 255, 0.12);
  --red: #d32219;
  --red-dark: #9e150f;
  --green: #53d769;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background:
    radial-gradient(circle at 20% 0%, rgba(211, 34, 25, 0.24), transparent 32rem),
    radial-gradient(circle at 85% 18%, rgba(83, 215, 105, 0.14), transparent 26rem),
    var(--bg);
  color: var(--text);
  font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.5;
  margin: 0;
}

a {
  color: inherit;
}

.affiliate-header,
main > section,
footer[data-site-footer="affiliate-simple"] {
  margin: 0 auto;
  max-width: 1180px;
  width: min(100% - 32px, 1180px);
}

.affiliate-header {
  align-items: center;
  display: flex;
  justify-content: space-between;
  padding: 24px 0;
}

.affiliate-logo {
  display: inline-flex;
}

.affiliate-logo img {
  height: auto;
  max-width: 208px;
}

.affiliate-nav {
  display: flex;
  gap: 24px;
}

.affiliate-nav a {
  color: var(--muted);
  font-weight: 700;
  text-decoration: none;
}

.affiliate-nav a:hover {
  color: var(--text);
}

.affiliate-hero {
  align-items: center;
  display: grid;
  gap: 42px;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  min-height: 640px;
  padding: 54px 0 74px;
}

.affiliate-hero__visual {
  align-items: center;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
    var(--panel);
  border: 1px solid var(--line);
  border-radius: 30px;
  box-shadow: var(--shadow);
  display: flex;
  min-height: 420px;
  overflow: hidden;
  padding: 28px;
  position: relative;
}

.affiliate-hero__visual::before {
  background: radial-gradient(circle, rgba(211, 34, 25, 0.34), transparent 65%);
  content: "";
  height: 300px;
  left: -120px;
  position: absolute;
  top: -120px;
  width: 300px;
}

.affiliate-hero__visual img {
  display: block;
  height: auto;
  position: relative;
  width: 100%;
}

.affiliate-hero h1,
.steps-section h2,
.benefits-section h2,
.apply-section h2 {
  letter-spacing: -0.04em;
  line-height: 1;
  margin: 0;
}

.affiliate-hero h1 {
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.15;
}

.affiliate-hero p,
.apply-copy p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.6;
  margin: 24px 0 0;
}

.eyebrow {
  color: var(--green);
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  margin-bottom: 16px;
  text-transform: uppercase;
}

.affiliate-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.button {
  align-items: center;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  font-size: 1rem;
  font-weight: 800;
  justify-content: center;
  min-height: 52px;
  padding: 14px 24px;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button--primary {
  background: linear-gradient(180deg, #ef3a2e, var(--red));
  box-shadow: 0 14px 30px rgba(211, 34, 25, 0.34);
  color: #fff;
}

.button--primary:hover {
  background: linear-gradient(180deg, #ff4639, var(--red-dark));
}

.button--ghost {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line);
  color: #fff;
}

.hero-points {
  color: var(--muted);
  display: grid;
  gap: 10px;
  list-style: none;
  margin: 30px 0 0;
  padding: 0;
}

.hero-points li {
  align-items: center;
  display: flex;
  gap: 10px;
}

.hero-points li::before {
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 18px rgba(83, 215, 105, 0.6);
  content: "";
  height: 8px;
  width: 8px;
}

.steps-section,
.benefits-section,
.apply-section {
  padding: 56px 0;
}

.steps-section h2,
.benefits-section h2,
.apply-section h2 {
  font-size: clamp(2.2rem, 4vw, 4rem);
}

.steps-grid,
.benefits-grid {
  display: grid;
  gap: 20px;
  margin-top: 34px;
}

.steps-grid {
  grid-template-columns: repeat(3, 1fr);
}

.step-card,
.benefit-card,
.lead-form {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.025)),
    var(--panel);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.24);
}

.step-card {
  padding: 34px;
  text-align: center;
}

.step-card img {
  height: 96px;
  object-fit: contain;
  width: 96px;
}

.step-card h3,
.benefit-card strong {
  color: var(--text);
  display: block;
  font-size: 1.25rem;
  font-weight: 700;
  margin: 18px 0 10px;
}

.step-card p,
.benefit-card span {
  color: var(--muted);
  margin: 0;
}

.benefits-section {
  align-items: start;
  display: grid;
  gap: 34px;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
}

.benefits-grid {
  margin-top: 0;
}

.benefit-card {
  padding: 26px;
}

.apply-section {
  align-items: start;
  display: grid;
  gap: 34px;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
}

.lead-form {
  display: grid;
  gap: 18px;
  padding: 28px;
}

.form-row {
  display: grid;
  gap: 8px;
}

.form-row label {
  color: #f5f7fb;
  font-size: 0.95rem;
  font-weight: 800;
}

.form-row label span {
  color: var(--red);
}

.form-row input,
.form-row textarea {
  background: #080b12;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  color: var(--text);
  font: inherit;
  padding: 14px 16px;
  width: 100%;
}

.form-row input:focus,
.form-row textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(83, 215, 105, 0.16);
  outline: none;
}

.form-status {
  color: var(--muted);
  font-weight: 700;
  margin: 0;
  min-height: 24px;
}

.form-status.is-success {
  color: var(--green);
}

.form-status.is-error {
  color: #ff8078;
}

.affiliate-page__footer[data-site-footer="affiliate-simple"] {
  color: var(--muted);
  margin-top: 20px;
  padding-bottom: 40px;
  width: 100%;
}

.affiliate-footer {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 22px;
  justify-items: center;
  padding: 30px 0 0;
  text-align: center;
}

.affiliate-footer__message,
.affiliate-footer__copyright {
  margin: 0;
}

.affiliate-footer__message {
  color: var(--muted);
  line-height: 1.7;
  margin-inline: auto;
  max-width: 100%;
  white-space: nowrap;
}

.affiliate-footer__seal {
  display: flex;
  justify-content: center;
  width: 100%;
}

.affiliate-footer__seal .footer-license-seal {
  margin: 0 auto;
  max-width: 108px;
  width: 108px;
}

.affiliate-footer__copyright {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

@media (max-width: 900px) {
  .affiliate-hero,
  .benefits-section,
  .apply-section {
    grid-template-columns: 1fr;
  }

  .affiliate-hero {
    min-height: 0;
    padding-top: 32px;
  }

  .steps-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .affiliate-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }

  .affiliate-nav {
    gap: 16px;
  }

  .affiliate-hero__visual {
    border-radius: 22px;
    min-height: 260px;
    padding: 18px;
  }

  .steps-section,
  .benefits-section,
  .apply-section {
    padding: 58px 0;
  }

  .affiliate-page__footer[data-site-footer="affiliate-simple"] {
    padding-bottom: 32px;
  }

  .affiliate-footer {
    gap: 18px;
    padding-top: 24px;
  }

  .affiliate-footer__message {
    font-size: 0.95rem;
    max-width: 100%;
    white-space: normal;
  }

  .affiliate-footer__seal .footer-license-seal {
    max-width: 88px;
    width: 88px;
  }
}
