/* ===== Design tokens ===== */
:root {
  --bg: #f4eff5;
  --bg-2: #ffffff;
  --card: #ffffff;
  --ink: #1c1b1f;
  --muted: #625b71;
  --line: #e6deec;
  --accent: #fcd400;
  --violet: #34116b;
  --violet-2: #4b2c82;
  --danger: #ba1a1a;
  --radius: 18px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-label: var(--font);
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(800px 420px at 90% -10%, rgba(108,77,164,.22), transparent 60%),
    radial-gradient(700px 320px at -10% 0%, rgba(252,212,0,.22), transparent 50%),
    var(--bg);
  line-height: 1.55;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }

/* ===== Layout ===== */
.wrap { width: min(1120px, 92%); margin: 0 auto; }

/* ===== Typography ===== */
.label-ui {
  font-family: var(--font-label);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 11px;
  font-weight: 700;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font);
  font-weight: 800;
  line-height: 1.1;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 12px; border: 1px solid transparent;
  padding: 12px 20px; font-weight: 700; font-size: 15px; font-family: var(--font);
  cursor: pointer;
  transition: transform .2s, opacity .2s, border-color .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #131700; }
.btn-secondary { background: #fff; border-color: #d4cae4; color: #2b2530; }
.btn-dark { background: #111; color: #fff; }

/* ===== Badge ===== */
.badge {
  display: inline-block; padding: 6px 12px; border-radius: 999px;
  border: 1px solid rgba(252,212,0,.25); background: rgba(252,212,0,.16);
  font-size: 12px; color: var(--accent); font-weight: 700; letter-spacing: .04em;
}

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(52,17,107,.94);
  border-bottom: 1px solid rgba(255,255,255,.08);
  backdrop-filter: blur(10px);
}
.nav { height: 70px; display: flex; align-items: center; justify-content: space-between; }
.logo { font-weight: 800; font-size: 24px; color: var(--accent); }
.nav-links { display: flex; gap: 8px; align-items: center; }
.nav-links a { padding: 8px 12px; border-radius: 10px; color: rgba(255,255,255,.78); font-size: 14px; }
.nav-links a:hover { background: rgba(255,255,255,.12); color: #fff; }
.lang-switch { padding: 6px 10px; border-radius: 8px; background: rgba(255,255,255,.15); color: #fff; font-size: 13px; font-weight: 700; letter-spacing: .5px; }
.lang-switch:hover { background: rgba(255,255,255,.25); }

/* Mobile menu toggle */
.menu-btn {
  display: none; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 10px;
  border: 1px solid rgba(255,255,255,.25);
  color: #fff; background: rgba(255,255,255,.08);
  font-size: 20px; line-height: 1; cursor: pointer;
}
.mobile-menu {
  position: fixed; inset: 70px 0 auto 0; z-index: 19;
  background: var(--violet);
  border-bottom: 1px solid rgba(255,255,255,.1);
  padding: 14px; display: none;
}
.mobile-menu.open { display: block; }
.mobile-menu a {
  display: block; color: #fff; padding: 12px 14px; border-radius: 10px;
  border: 1px solid rgba(255,255,255,.16); margin-bottom: 8px;
}
.mobile-menu a:last-child { margin-bottom: 0; }

/* ===== Hero ===== */
.hero { padding: 56px 0 24px; background: var(--violet); color: #fff; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 28px; align-items: start; }
.hero h1 {
  margin: 16px 0 16px;
  font-size: clamp(32px, 6vw, 62px);
  line-height: 1.02; letter-spacing: -.02em;
}
.hero h1 em { font-style: normal; color: var(--accent); }
.lead { color: rgba(255,255,255,.72); max-width: 580px; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; margin: 24px 0; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.stat {
  background: rgba(255,255,255,.09);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 12px; padding: 12px;
}
.stat b { display: block; font-size: 20px; }
.stat span { color: rgba(255,255,255,.74); font-size: 12px; }

/* ===== Card (calculator) ===== */
.card {
  background: linear-gradient(180deg, #fff, #f8f5fc);
  border: 1px solid var(--line); border-radius: 24px; padding: 22px;
  box-shadow: 0 20px 45px rgba(68,31,110,.12);
  color: var(--ink);
}
.card h3 {
  margin: 0 0 18px; font-size: 12px;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); font-family: var(--font-label);
}
.range-row { margin-bottom: 20px; }
.range-top { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.range-top strong { font-size: 38px; line-height: 1; font-weight: 800; color: var(--violet); }
.range-top span { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
input[type=range] { width: 100%; accent-color: var(--accent); }
.minmax { display: flex; justify-content: space-between; color: var(--muted); font-size: 10px; text-transform: uppercase; }

.result {
  margin-top: 14px; padding: 14px; border-radius: 14px;
  background: rgba(108,77,164,.08); border: 1px solid rgba(108,77,164,.22);
  display: flex; justify-content: space-between; gap: 10px; align-items: end;
}
.result .total { font-size: 38px; color: var(--violet); line-height: .95; font-weight: 800; }
.result .small, .small { font-size: 12px; color: var(--muted); }

/* ===== Sections ===== */
section { padding: 52px 0; }
.title {
  font-size: clamp(24px, 4vw, 40px);
  margin: 0 0 10px; font-weight: 800; color: var(--violet);
}
.subtitle { color: var(--muted); margin: 0 0 22px; }

/* Grids */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }

/* Tiles */
.tile {
  background: var(--bg-2); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 16px;
  box-shadow: 0 8px 20px rgba(44,14,76,.05);
}
.tile h4 { margin: 0 0 8px; }
.tile p { margin: 0; color: var(--muted); font-size: 14px; }
.step-num { color: #6c4da4; font-size: 34px; line-height: 1; font-weight: 800; }

/* Section CTA */
.section-cta { margin-top: 18px; display: flex; justify-content: center; }

/* ===== CTA banner ===== */
.cta {
  background: linear-gradient(120deg, var(--accent), var(--accent));
  color: #151800; padding: 44px 0;
  border-top: 1px solid rgba(0,0,0,.12);
  border-bottom: 1px solid rgba(0,0,0,.12);
}
.cta-inner { text-align: center; }
.cta h2 { margin: 0 0 10px; font-size: clamp(26px, 4vw, 44px); font-weight: 800; }
.cta p { margin: 0 0 18px; opacity: .8; }

/* ===== FAQ ===== */
.faq details {
  border: 1px solid var(--line); border-radius: 12px;
  padding: 12px 14px; background: #fff;
}
.faq details + details { margin-top: 10px; }
.faq summary { cursor: pointer; font-weight: 700; }
.faq p { margin: 10px 0 0; color: var(--muted); }

/* ===== Showcase (iframe wrapper) ===== */
.showcase { margin: 32px 0; }
.showcase h2 { margin: 0 0 16px; }
.showcase iframe {
  width: 100%; border: none; border-radius: var(--radius);
  background: var(--bg-2);
}

/* ===== Disclaimer ===== */
.disclaimer {
  margin: 32px 0 0; padding: 16px 18px; border-radius: 12px;
  background: rgba(186,26,26,.06); border: 1px solid rgba(186,26,26,.18);
  font-size: 13px; color: var(--muted); line-height: 1.5;
}
.disclaimer strong { color: var(--ink); }

/* ===== Footer ===== */
.site-footer {
  padding: 30px 0 45px; color: var(--muted); font-size: 13px;
  border-top: 1px solid var(--line); background: #fff;
}
.foot-top { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.foot-links { display: flex; gap: 16px; flex-wrap: wrap; }
.foot-links a { text-decoration: underline; }

/* ===== Responsive ===== */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .menu-btn { display: flex; }
}
@media (max-width: 620px) {
  .grid-3, .steps, .stats { grid-template-columns: 1fr; }
}
