:root {
  --bg: #fff;
  --surface: rgba(255, 255, 255, 0.92);
  --surface-solid: #fff;
  --text: #111;
  --muted: #5d6470;
  --line: #e4e7eb;
  --soft-line: #f0f2f5;
  --accent: #e82127;
  --accent-dark: #c9161d;
  --shadow: 0 18px 50px rgba(12, 18, 28, 0.1);
  --shadow-soft: 0 10px 30px rgba(12, 18, 28, 0.06);
  --max: 1240px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.45;
  overflow-x: hidden;
}

a {
  color: inherit;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid rgba(232, 33, 39, 0.35);
  outline-offset: 3px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  padding: 0 clamp(20px, 4vw, 56px);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
}

.brand {
  min-width: 0;
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  font-weight: 800;
  text-decoration: none;
  letter-spacing: 0;
}

.language-toggle {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: 10px;
  color: #77808d;
  font-weight: 800;
}

.lang-button {
  appearance: none;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  min-height: 40px;
  padding: 6px 1px;
}

.lang-button.is-active {
  border-color: var(--accent);
  color: var(--text);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(340px, 0.9fr) minmax(480px, 1.35fr);
  align-items: stretch;
  min-height: 390px;
  overflow: hidden;
  border-bottom: 1px solid var(--soft-line);
}

.hero-copy {
  position: relative;
  z-index: 2;
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  padding: clamp(42px, 6vw, 78px) 0 clamp(66px, 8vw, 102px) clamp(24px, 4vw, 58px);
}

.hero-copy::after {
  content: "";
  position: absolute;
  inset: 0 -42% 0 0;
  z-index: -1;
  background: linear-gradient(90deg, #fff 0%, rgba(255, 255, 255, 0.96) 52%, rgba(255, 255, 255, 0) 100%);
  pointer-events: none;
}

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

h1 {
  max-width: 590px;
  margin-bottom: 18px;
  font-size: clamp(2.6rem, 5.2vw, 4.9rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero-text {
  max-width: 540px;
  margin-bottom: 0;
  color: #1f242b;
  font-size: clamp(1rem, 1.3vw, 1.22rem);
}

.hero-media {
  position: relative;
  margin: 0;
  min-width: 0;
  min-height: 390px;
}

.hero-media img {
  width: 100%;
  height: 100%;
  min-height: 390px;
  object-fit: cover;
  object-position: center right;
}

.referral-shell {
  position: relative;
  z-index: 3;
  max-width: var(--max);
  margin: clamp(-54px, -4vw, -34px) auto 0;
  padding: 0 clamp(18px, 4vw, 34px);
}

.referral-card {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: clamp(22px, 3vw, 30px);
  border: 2px solid var(--accent);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow);
  text-align: center;
}

.link-icon {
  width: 28px;
  height: 28px;
  color: var(--accent);
}

.link-icon svg,
.icon {
  fill: currentColor;
}

.referral-card h2 {
  margin-bottom: 0;
  font-size: clamp(1.05rem, 1.7vw, 1.25rem);
}

.referral-url {
  color: var(--accent);
  font-size: clamp(2rem, 5.4vw, 4.1rem);
  font-weight: 900;
  line-height: 1;
  overflow-wrap: anywhere;
  text-decoration: none;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: min(100%, 260px);
  min-height: 48px;
  padding: 12px 26px;
  border-radius: 7px;
  background: var(--accent);
  color: #fff;
  font-weight: 850;
  text-decoration: none;
  box-shadow: 0 14px 26px rgba(232, 33, 39, 0.23);
  transition: transform 160ms ease, background 160ms ease;
}

.cta-button::before {
  content: "↗";
  margin-right: 10px;
  font-size: 1.05em;
}

.cta-button:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
}

.referral-card p {
  margin-bottom: 0;
  color: #2e333b;
  font-size: 0.95rem;
}

.section {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 28px clamp(18px, 4vw, 34px) 0;
}

.section-heading {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
  margin-bottom: 12px;
}

.section-heading span {
  height: 1px;
  background: var(--line);
}

.section-heading h2,
.faq-section h2,
.seo-note h2 {
  margin-bottom: 0;
  text-align: center;
  font-size: clamp(1.85rem, 3vw, 2.5rem);
  line-height: 1.08;
}

.reason-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-solid);
  box-shadow: var(--shadow-soft);
}

.reason-card {
  min-height: 252px;
  padding: 20px 18px;
}

.icon {
  width: 44px;
  height: 44px;
  margin-bottom: 14px;
  color: var(--accent);
}

.reason-card h3,
.trust-card h3 {
  margin-bottom: 10px;
  font-size: 1rem;
  line-height: 1.2;
}

.reason-card p,
.trust-card p,
.personal-section p,
.seo-note p,
.faq-list p,
.site-footer p {
  margin-bottom: 0;
  color: #242933;
}

.personal-section {
  display: grid;
  grid-template-columns: 1fr minmax(210px, 300px);
  align-items: center;
  gap: 24px;
  width: calc(100% - clamp(36px, 8vw, 68px));
  max-width: 1172px;
  margin-top: 14px;
  padding-top: 20px;
  padding-bottom: 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-solid);
  box-shadow: var(--shadow-soft);
}

.personal-section h2 {
  margin-bottom: 8px;
  font-size: clamp(1.35rem, 2.2vw, 1.7rem);
}

.personal-art {
  justify-self: end;
  width: min(100%, 260px);
  padding: 12px;
  border-radius: 30px;
  background: linear-gradient(135deg, rgba(232, 33, 39, 0.12), rgba(255, 255, 255, 0.5));
  color: var(--accent);
}

.personal-art svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 4;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 24px;
  padding-top: 0;
}

.trust-card {
  display: grid;
  grid-template-columns: 48px 1fr;
  align-items: start;
  gap: 16px;
  min-height: 112px;
  padding: 20px;
}

.trust-card .icon {
  margin-bottom: 0;
}

.seo-note {
  max-width: 980px;
  text-align: center;
}

.seo-note h2 {
  margin-bottom: 10px;
  font-size: clamp(1.3rem, 2.2vw, 1.8rem);
}

.seo-note p {
  color: var(--muted);
}

.faq-section {
  max-width: 920px;
  padding-bottom: 54px;
}

.faq-section h2 {
  margin-bottom: 18px;
}

.faq-list {
  display: grid;
  gap: 10px;
}

details {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

summary {
  cursor: pointer;
  padding: 18px 20px;
  color: var(--text);
  font-weight: 850;
}

details p {
  padding: 0 20px 20px;
}

.site-footer {
  padding: 26px clamp(18px, 4vw, 34px) 34px;
  border-top: 1px solid var(--line);
  text-align: center;
}

.site-footer p {
  max-width: 900px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer a {
  color: var(--text);
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

@media (max-width: 1120px) {
  .reason-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .site-header {
    min-height: 66px;
  }

  .hero {
    display: flex;
    width: 100%;
    min-height: 0;
    flex-direction: column;
  }

  .hero-copy {
    width: 100%;
    padding: 40px 22px 24px;
  }

  .hero-copy::after {
    display: none;
  }

  h1 {
    max-width: 100%;
  }

  .hero-media {
    width: 100%;
    min-height: 220px;
    overflow: hidden;
  }

  .hero-media img {
    width: 100%;
    min-height: 220px;
    aspect-ratio: 16 / 8.5;
  }

  .referral-shell {
    margin-top: -18px;
  }

  .section-heading {
    grid-template-columns: 1fr;
  }

  .section-heading span {
    display: none;
  }

  .reason-grid,
  .trust-grid,
  .personal-section {
    grid-template-columns: 1fr;
  }

  .reason-card {
    min-height: 0;
  }

  .personal-art {
    justify-self: start;
  }
}

@media (max-width: 560px) {
  .site-header {
    padding-inline: 16px;
  }

  .brand {
    max-width: calc(100vw - 124px);
    line-height: 1.15;
  }

  .hero-copy {
    padding-inline: 18px;
  }

  h1 {
    font-size: 2.55rem;
  }

  .referral-card {
    border-width: 1.5px;
    border-radius: 12px;
  }

  .referral-url {
    font-size: clamp(1.65rem, 11vw, 2.45rem);
  }

  .cta-button {
    width: 100%;
  }

  .trust-card {
    grid-template-columns: 42px 1fr;
  }
}
