/* =====================================================================
   ImportBonus — Реферальная программа
   Standalone design system. Bold orange + charcoal, geometric sans.
   Intentionally shares NO visual identity with any other site.
   ===================================================================== */

:root {
  /* --- Bright, vibrant palette: orange + sunny yellow, no black --- */
  --accent:        #FF5A1F;   /* vibrant orange (primary) */
  --accent-dark:   #E23F0A;   /* hover / pressed */
  --accent-deep:   #C4380A;   /* deep terracotta accent */
  --accent-light:  #FFE7D6;   /* soft peach tint */
  --amber:         #FFC531;   /* bright sunny yellow (secondary) */
  --amber-dark:    #C98A00;   /* readable amber for text */
  --highlight:     #FFD24A;   /* bright highlight on colored bg */

  --ink:           #1E1712;   /* near-black warm brown (headings / strong text) */
  --ink-soft:      #FFC531;   /* bright section fill (was dark) */
  --text:          #1E1712;   /* body text — darkened for easy reading */
  --text-mid:      #423228;   /* muted body text — darkened for easy reading */
  --text-light:    #7C6A5C;   /* hints / optional labels */

  --white:         #FFFFFF;
  --gray:          #FFF8F1;   /* bright warm cream section bg */
  --gray-mid:      #F1DECF;   /* warm light borders */
  --success:       #C98A00;   /* "ok" state = amber */
  --error:         #C0392B;

  /* --- Backward-compatible aliases -------------------------------------
     index.html's inline CSS (carried over from the original page) still
     references --blue / --green / --blue-light etc. Remapping them here to
     the orange/charcoal system keeps that markup working while the look is
     completely different. Prefer --accent / --ink in new code. */
  --blue:          var(--accent);
  --blue-dark:     var(--accent-dark);
  --blue-light:    var(--accent-light);
  --green:         var(--amber);
  --green-dark:    var(--amber-dark);
  --green-light:   #FCF3E6;

  --maxw: 1200px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  color: var(--ink);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.01em;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- Layout helpers ---------- */
.inner { max-width: var(--maxw); margin: 0 auto; }
section { padding: 72px 48px; }
section > .inner { width: 100%; }

.section-tag {
  display: inline-block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  padding-left: 34px;
  position: relative;
  margin-bottom: 16px;
}
.section-tag::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  width: 26px; height: 2px;
  background: var(--accent);
  transform: translateY(-50%);
}

section h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.7rem);
  margin-bottom: 28px;
}
h2 .accent { color: var(--accent); }

/* ---------- Nav ---------- */
nav {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  column-gap: 24px;
  padding: 26px 48px;
  background: var(--white);
  border-bottom: 1px solid var(--gray-mid);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-logo {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: clamp(1.6rem, 5.8vw, 3rem);
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
}
.nav-logo span { color: var(--accent); }
.nav-links {
  display: flex;
  align-items: center;
  justify-self: center;
  gap: 28px;
  list-style: none;
}
.nav-links a {
  color: var(--text-mid);
  font-size: clamp(1.2rem, 2.2vw, 1.375rem);
  font-weight: 500;
  text-decoration: none;
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--accent); }
.nav-cta { justify-self: end; white-space: nowrap; }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: var(--ink);
  cursor: pointer;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  padding: 14px 28px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.18s;
  text-decoration: none;
  border-radius: 2px;
}
.btn:hover { text-decoration: none; }
.btn-blue { background: var(--accent); color: var(--white); border-color: var(--accent); }
.btn-blue:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--white); }
.btn-green { background: var(--accent-deep); color: var(--white); border-color: var(--accent-deep); }
.btn-green:hover { background: var(--accent); border-color: var(--accent); }

/* ---------- Footer ---------- */
footer {
  background: var(--white);
  color: var(--text-mid);
  padding: 48px;
  text-align: center;
  font-size: 0.9rem;
  line-height: 1.9;
  border-top: 3px solid var(--accent);
}
.footer-logo {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--ink);
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}
.footer-logo span { color: var(--accent); }
footer a { color: var(--accent); }
footer a:hover { color: var(--accent-dark); }

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--white);
  color: var(--text-mid);
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  z-index: 200;
  font-size: 0.85rem;
  border-top: 1px solid var(--gray-mid);
  box-shadow: 0 -4px 24px rgba(0,0,0,0.08);
}
.cookie-banner a { color: var(--accent); text-decoration: underline; }
.cookie-banner button {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  background: var(--accent);
  color: var(--white);
  border: none;
  padding: 10px 24px;
  cursor: pointer;
  border-radius: 2px;
  white-space: nowrap;
}
.cookie-banner button:hover { background: var(--accent-dark); }

/* ---------- Simple content pages (privacy) ---------- */
.doc-page { max-width: 820px; margin: 0 auto; padding: 64px 24px; }
.doc-page h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 24px; }
.doc-page h2 { font-size: 1.3rem; margin: 32px 0 12px; }
.doc-page p, .doc-page li { color: var(--text-mid); font-size: 0.95rem; margin-bottom: 12px; }
.doc-page ul { padding-left: 22px; margin-bottom: 12px; }
.doc-page .back { display: inline-block; margin-top: 32px; }

@media (max-width: 900px) {
  section { padding: 56px 20px; }
  nav { padding: 16px 20px; column-gap: 14px; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--white);
    border-bottom: 1px solid var(--gray-mid);
    padding: 8px 20px 16px;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; padding: 10px 0; border-bottom: 1px solid var(--gray-mid); }
  .nav-toggle { display: block; }
  .nav-cta { font-size: 0.82rem; padding: 10px 16px; }
  footer { padding: 40px 20px; }
}
