:root {
  --bg: #eef3f9;
  --ink: #10245c;
  --muted: #51658c;
  --navy: #0e2f86;
  --navy-2: #163a9e;
  --pink: #ff2f86;
  --line: #e3ebf5;
  --card: #ffffff;
  --sans: "Outfit", sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); }
body { min-height: 100vh; font-family: var(--sans); overflow-x: hidden; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.util { background: #f7f9fc; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.util-in, .top-in, .shell { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.util-in { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; min-height: 40px; }
.util a { text-decoration: none; }
.util a:hover { color: var(--pink); }
.util-links { margin-left: auto; display: flex; gap: 6px; }
.util-links a {
  width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center;
  color: var(--navy); background: #fff; border: 1px solid var(--line);
}
.util-links a:hover { color: var(--pink); border-color: #f3b4d0; }
.util-links svg { width: 15px; height: 15px; fill: currentColor; }

.top {
  position: sticky; top: 0; z-index: 8;
  width: 100%; max-width: none;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(16, 36, 92, 0.04);
}
.top-in { display: flex; align-items: center; gap: 18px; min-height: 74px; }
.brand img { height: 46px; width: auto; display: block; }
.nav { display: flex; flex-wrap: nowrap; gap: 2px; flex: 1; min-width: 0; }
.nav a {
  color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 500;
  padding: 8px 8px 10px; border-radius: 0; white-space: nowrap;
}
.nav a.on { color: var(--pink); box-shadow: inset 0 -2px 0 var(--pink); }
.nav a:hover { color: var(--pink); }
.top-actions { display: flex; align-items: center; gap: 10px; }
.lang select, .field input, .field textarea, .field select, .int-tools input {
  background: #fff; border: 1px solid #d5e0ee; border-radius: 12px; padding: 11px 12px; color: var(--ink);
}
.auth-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 14px; background: #f3f6fb; }
.auth-switch button { border: 0; border-radius: 10px; padding: 8px 12px; background: transparent; color: var(--muted); cursor: pointer; }
.auth-switch button.on { background: #fff; color: var(--ink); box-shadow: 0 4px 12px rgba(16, 36, 92, 0.08); }
.phone { display: flex; gap: 8px; }
.dial { width: 4.6rem; display: grid; place-items: center; border: 1px solid #d5e0ee; border-radius: 12px; background: #f7f9fc; }
.phone input { min-width: 0; flex: 1; }
.check { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px; padding: 11px 18px; text-decoration: none; border: 0;
  background: var(--pink); color: white; font-weight: 600; cursor: pointer;
  box-shadow: 0 8px 18px rgba(255, 47, 134, 0.28);
}
.btn.ghost { background: transparent; color: var(--navy); border: 1px solid #c9d6ea; box-shadow: none; }
.btn:disabled { opacity: 0.55; cursor: wait; }

.shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 400px;
  gap: 28px;
  padding: 36px 0 24px;
}
.hero-wash { display: none; }
.shell > * { position: relative; z-index: 1; }
body[data-page="home"] .shell {
  grid-template-columns: minmax(0, 1fr) 420px;
  column-gap: 36px;
  row-gap: 0;
  padding: 0;
}
body[data-page="home"] main,
body[data-page="home"] main > section { display: contents; }
body[data-page="home"] .hero { grid-column: 1; grid-row: 1; align-self: center; z-index: 1; padding: 36px 8px 40px; }
body[data-page="home"] .stage { grid-column: 2; grid-row: 1; position: relative; top: auto; align-self: center; z-index: 1; padding: 36px 0 40px; }
body[data-page="home"] .home-rest {
  grid-column: 1 / -1; grid-row: 2; z-index: 1;
  padding: 64px 0 28px; background: var(--bg);
}
body[data-page="home"] .home-rest > h2:first-child { margin-top: 8px; }
body[data-page="home"] .hero-wash {
  display: block;
  grid-column: 1 / -1;
  grid-row: 1;
  z-index: 0;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  pointer-events: none;
  box-shadow: inset 0 -3px 0 var(--pink);
  background-color: #0c2b84;
  background-image:
    radial-gradient(520px 240px at 74% 18%, rgba(255, 47, 134, 0.42), transparent 68%),
    linear-gradient(90deg, rgba(8, 22, 70, 0.35) 0%, rgba(8, 22, 70, 0.78) 16%, rgba(8, 22, 70, 0.7) 48%, rgba(8, 22, 70, 0.42) 100%),
    url("brand/footer-geo.svg"),
    linear-gradient(165deg, #081a4d 0%, #0e2f86 55%, #163a9e 100%);
  background-repeat: no-repeat;
  background-position: center, center, center, center;
  background-size: auto, auto, cover, auto;
}

.stage { position: sticky; top: 108px; align-self: start; }
.stage-frame {
  position: relative;
  height: 460px; border-radius: 28px; overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: #050810;
  box-shadow: 0 24px 50px rgba(14, 47, 134, 0.22);
}
body[data-page="home"] .stage-frame {
  height: 520px;
  box-shadow: 0 28px 60px rgba(4, 12, 40, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.08);
}
#face { width: 100%; height: 100%; border: 0; background: #050810; }
.stage-copy {
  position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 2;
  margin: 0; padding: 12px 14px; border-radius: 16px;
  background: rgba(5, 8, 16, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(8px);
}
.stage-kicker, .stage-line { margin: 0; }
.stage-line { margin-top: 6px; }
.stage-frame .stage-kicker,
.stage-frame .stage-line { color: #f4f7ff; }
.stage-frame .stage-line { min-height: 0; }
.voice {
  position: absolute; right: 14px; top: 14px; z-index: 3;
  border: 0; background: var(--pink); color: white;
  border-radius: 999px; padding: 8px 14px; cursor: pointer; font-size: 13px; font-weight: 600;
}
.voice.off { background: rgba(255, 255, 255, 0.16); color: white; }

.hero { padding: 18px 8px 36px; color: white; }
.hero .kicker { color: #ff7eb6; margin-top: 0; }
.hero h1, .hero .lede { color: white; }
.hero .btn.ghost { color: white; border-color: rgba(255, 255, 255, 0.45); }
.hero-points { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 14px; max-width: 34rem; }
.hero-points li { display: grid; grid-template-columns: 10px 1fr; column-gap: 12px; row-gap: 3px; }
.hero-points strong { grid-column: 2; color: white; font-size: 16px; font-weight: 650; }
.hero-points span { grid-column: 2; color: #d7e3fb; font-size: 14.5px; line-height: 1.45; }
.hero-points li::before {
  content: ""; grid-column: 1; grid-row: 1; width: 8px; height: 8px; margin-top: 6px;
  border-radius: 2px; background: var(--pink);
}

.kicker { color: var(--pink); letter-spacing: 0.14em; text-transform: uppercase; font-size: 12px; font-weight: 700; margin: 28px 0 0; }
h1, h2, h3 { font-weight: 650; letter-spacing: -0.03em; color: var(--ink); }
h1 { font-size: clamp(36px, 4.6vw, 58px); line-height: 1.02; margin: 10px 0 14px; }
h2 { font-size: clamp(28px, 3vw, 40px); line-height: 1.1; margin: 36px 0 12px; }
.lede { color: var(--muted); font-size: 18px; line-height: 1.6; max-width: 44rem; }
.row { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 8px; }

.chapters { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 14px; margin-top: 16px; }
.chapter {
  background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 18px;
  box-shadow: 0 12px 32px rgba(16, 36, 92, 0.06);
}
.chapter .num { font-size: 12px; letter-spacing: 0.14em; color: var(--pink); font-weight: 700; }
.chapter h3 { margin: 8px 0; font-size: 20px; }
.chapter p { margin: 0; color: var(--muted); line-height: 1.55; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 14px; margin-top: 16px; }
.card, .ledger, .form, .doc-body {
  background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 18px;
  box-shadow: 0 12px 32px rgba(16, 36, 92, 0.06);
}
.grid .card:first-child { background: var(--navy); border-color: transparent; }
.grid .card:first-child h3, .grid .card:first-child p { color: white; }
.grid .card:first-child p { color: #d7e4ff; }
.card h3 { margin: 0 0 8px; font-size: 20px; }
.card p, .plan li, .doc p, .ledger p { color: var(--muted); line-height: 1.55; }

.plan {
  display: flex; flex-direction: column; gap: 0;
  background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 0 0 18px;
  overflow: hidden; box-shadow: 0 16px 40px rgba(16, 36, 92, 0.08);
}
.plan .kicker, .plan h3, .plan .price { background: var(--navy); color: white; margin: 0; padding: 0 18px; }
.plan .kicker { padding-top: 18px; color: #ff8ab8; }
.plan h3 { font-size: 26px; padding-top: 6px; }
.plan .price { font-size: 28px; font-weight: 700; padding-bottom: 18px; }
.plan > p, .plan ul { margin: 14px 18px; }
.plan ul { padding-left: 18px; }
.plan .btn { margin: 8px 18px 0; }
.plan.featured { background: var(--navy); border-color: transparent; }
.plan.featured > p, .plan.featured li { color: #d7e4ff; }
.plan.featured .btn { background: var(--pink); }

.int-tools { display: grid; gap: 12px; margin-top: 18px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filters button { border: 1px solid #d5e0ee; background: #fff; color: var(--ink); border-radius: 999px; padding: 7px 12px; cursor: pointer; }
.filters button.on { color: white; border-color: transparent; background: var(--pink); }
.int-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); gap: 12px; margin-top: 14px; }
.int-card {
  display: grid; grid-template-columns: 56px 1fr; gap: 12px; align-items: start;
  background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 14px;
  box-shadow: 0 10px 28px rgba(16, 36, 92, 0.05);
}
.int-card img, .int-card .mark { width: 52px; height: 52px; object-fit: contain; background: #f4f7fb; border: 1px solid var(--line); border-radius: 14px; padding: 7px; }
.int-card .mark { display: grid; place-items: center; font-weight: 700; padding: 0; }
.int-card h3 { margin: 2px 0 6px; font-size: 18px; }
.int-card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.45; }
.int-card .tag { color: var(--pink); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 4px; }

.doc-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 22px; margin-top: 22px; }
.doc-nav { max-height: 72vh; overflow: auto; padding-right: 8px; }
.doc-nav h3 { margin: 16px 0 6px; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--pink); }
.doc-nav a { display: block; color: var(--muted); text-decoration: none; padding: 4px 0; font-size: 14px; line-height: 1.35; }
.doc-nav a.on { color: var(--navy); font-weight: 650; }
.doc-body h2, .doc-body h3, .doc-body h4 { margin: 1.1em 0 0.4em; }
.doc-body p, .doc-body li { color: var(--muted); line-height: 1.65; }
.doc-body a { color: var(--navy-2); }
.doc-body table { display: block; overflow-x: auto; }
.form { display: grid; gap: 10px; margin-top: 16px; max-width: 640px; }
.field { display: grid; gap: 4px; font-size: 13px; color: var(--muted); }
.note { color: #1d8a56; }
.err { color: #d1254b; min-height: 1.2em; }
code { font-family: ui-monospace, Consolas, monospace; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); }
.stage-kicker { color: var(--pink); letter-spacing: 0.16em; text-transform: uppercase; font-size: 11px; font-weight: 700; }
.stage-line { font-size: 16px; line-height: 1.45; min-height: 3.2em; color: var(--ink); }

.prefoot {
  height: 150px;
  margin-top: 28px;
  background: #eef3f9 url("brand/wash-lines.svg") center bottom / 100% 150px no-repeat;
}
.foot {
  position: relative;
  color: #d5def2;
  margin-top: 0;
  padding: 28px 0 48px;
  background-color: #071433;
  background-image:
    linear-gradient(90deg, rgba(7, 20, 51, 0.9) 0%, rgba(7, 20, 51, 0.62) 24%, rgba(7, 20, 51, 0.5) 76%, rgba(7, 20, 51, 0.88) 100%),
    url("brand/footer-geo.svg");
  background-repeat: no-repeat, no-repeat;
  background-position: center, center;
  background-size: auto, cover;
}
.foot-grid {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.45fr 1fr 1fr 1fr;
  gap: 36px 28px;
  align-items: start;
}
.foot img { height: 48px; width: auto; background: white; border-radius: 12px; padding: 6px 8px; }
.foot-name { margin-top: 14px !important; color: white !important; font-weight: 650; }
.foot h2 {
  display: flex; align-items: center; gap: 8px;
  color: white; font-size: 15px; margin: 8px 0 14px; letter-spacing: 0;
}
.foot h2::before {
  content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--pink); flex: none;
}
.foot p, .foot a { margin: 0 0 8px; color: #c9d5ee; line-height: 1.5; font-size: 14px; text-decoration: none; }
.foot a:hover { color: white; }
.socials { display: flex; gap: 10px; margin-top: 14px; }
.socials a { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; }
.socials svg { width: 18px; height: 18px; fill: white; }

@media (max-width: 1100px) {
  .top { position: static; }
  .util-in, .top-in, .shell, .foot-grid { width: min(1180px, calc(100% - 28px)); }
  .util-in { gap: 6px 12px; min-height: 36px; font-size: 12px; }
  .top-in {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas: "brand actions" "nav nav";
    align-items: center;
    gap: 6px 12px;
    min-height: 0;
    padding: 10px 0 0;
  }
  .brand { grid-area: brand; }
  .brand img { height: 40px; }
  .top-actions { grid-area: actions; justify-self: end; }
  .lang select { padding: 8px 10px; }
  .top-actions .btn { padding: 9px 14px; }
  .nav {
    grid-area: nav;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    width: 100%;
    border-top: 1px solid var(--line);
    margin-top: 4px;
    padding: 4px 0 8px;
  }
  .nav a { padding: 11px 8px; font-size: 15px; white-space: normal; }
  .nav a.on { box-shadow: inset 3px 0 0 var(--pink); }
  .doc-layout, .foot-grid, .shell { grid-template-columns: 1fr; }
  .stage { position: relative; top: 0; }
  .stage-frame, body[data-page="home"] .stage-frame { height: 420px; }
  body[data-page="home"] .shell { grid-template-columns: 1fr; }
  body[data-page="home"] .hero { grid-column: 1; grid-row: 1; align-self: start; padding: 28px 0 8px; }
  body[data-page="home"] .stage { grid-column: 1; grid-row: 2; padding: 12px 0 28px; }
  body[data-page="home"] .hero-wash { grid-column: 1; grid-row: 1 / span 2; }
  body[data-page="home"] .home-rest { grid-column: 1; grid-row: 3; padding: 36px 0 12px; }
  h1 { font-size: 34px; }
  .hero .row .btn { flex: 1 1 160px; }
  .doc-layout { grid-template-columns: 1fr; }
  .doc-nav { max-height: none; }
}
