:root {
  --deep: #141b4d;
  --deep-2: #182a88;
  --purple: #7a4dff;
  --purple-2: #8b5cf6;
  --cyan: #29d8ff;
  --pink: #ff4bc3;
  --amber: #ffb729;
  --green: #10b981;
  --bg: #f7f8fc;
  --bg-2: #f2ecff;
  --white: #ffffff;
  --muted: #68708e;
  --line: rgba(122, 77, 255, 0.14);
  --shadow: 0 24px 70px rgba(20, 27, 77, 0.08);
  --shadow-strong: 0 28px 80px rgba(122, 77, 255, 0.22);
  --gradient: linear-gradient(100deg, #5921ff 0%, #7a4dff 18%, #ff4bc3 48%, #ffb729 74%, #29d8ff 100%);
  --gradient-soft: linear-gradient(135deg, #f7f8fc 0%, #f2ecff 44%, #eafbff 100%);
  --radius-xl: 40px;
  --radius-lg: 28px;
  --radius-md: 20px;
  --container: 1320px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Nunito", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--deep);
  background: var(--gradient-soft);
  min-height: 100vh;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 12% 8%, rgba(122, 77, 255, 0.13), transparent 26%),
    radial-gradient(circle at 92% 18%, rgba(41, 216, 255, 0.18), transparent 24%),
    radial-gradient(circle at 72% 92%, rgba(255, 75, 195, 0.12), transparent 28%);
  pointer-events: none;
  z-index: -3;
}

a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }

.site-shell { max-width: 1480px; margin: 0 auto; padding: 24px 28px 40px; position: relative; }
.section { max-width: var(--container); margin: 0 auto; }

.bg-orb { position: absolute; border-radius: 999px; filter: blur(2px); opacity: 0.8; z-index: -1; }
.bg-orb-one { width: 310px; height: 310px; background: rgba(122, 77, 255, 0.16); top: 155px; right: 150px; }
.bg-orb-two { width: 230px; height: 230px; background: rgba(41, 216, 255, 0.16); top: 520px; right: 40px; }
.bg-orb-three { width: 260px; height: 260px; background: rgba(255, 75, 195, 0.10); bottom: 280px; left: -20px; }

.topbar {
  position: sticky;
  top: 18px;
  z-index: 20;
  max-width: var(--container);
  margin: 0 auto 58px;
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 24px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: 0 24px 70px rgba(20, 27, 77, 0.08);
  backdrop-filter: blur(18px);
  border-radius: 28px;
}
.brand { display: flex; align-items: center; gap: 12px; min-width: 220px; }
.brand-logo {
  display: block;
  width: 150px;
  height: auto;
  mix-blend-mode: multiply;
  image-orientation: none;
}
.brand-copy {
  max-width: 150px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.1;
}
.nav { display: flex; align-items: center; gap: 6px; }
.nav a:not(.nav-cta), .nav-account-btn {
  padding: 12px 15px;
  color: var(--deep);
  font-weight: 800;
  font-size: 15px;
  border-radius: 999px;
  background: transparent;
  border: 0;
  cursor: pointer;
  white-space: nowrap;
}
.nav a.is-active { color: #5921ff; position: relative; }
.nav a.is-active::after {
  content: "";
  position: absolute;
  left: 18px; right: 18px; bottom: 5px; height: 3px;
  border-radius: 999px; background: var(--gradient);
}
.nav-account-btn {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid rgba(122, 77, 255, 0.28);
  padding-inline: 18px;
  color: #5921ff;
}
.nav-account-btn.is-active {
  background: rgba(122, 77, 255, 0.1);
  border-color: rgba(122, 77, 255, 0.42);
}
.nav-account-btn.is-authenticated {
  gap: 0;
  padding-inline: 18px;
}
.account-icon {
  display: block;
  width: 22px;
  height: 22px;
  object-fit: contain;
  flex-shrink: 0;
}
.nav-cta {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 16px 24px;
  border-radius: 999px;
  background: var(--gradient);
  color: #fff;
  font-weight: 900;
  box-shadow: 0 16px 36px rgba(122, 77, 255, 0.24);
  white-space: nowrap;
}
.nav-toggle { display: none; }

.hero {
  display: grid;
  grid-template-columns: 1fr 0.98fr;
  gap: 54px;
  align-items: center;
  margin-bottom: 50px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #5921ff;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.eyebrow::before { content: "✦"; color: var(--amber); }
h1, h2, h3, p { margin: 0; }
h1 {
  font-size: clamp(44px, 5vw, 76px);
  line-height: 0.98;
  letter-spacing: 0;
  font-weight: 800;
  margin: 18px 0 24px;
  max-width: 720px;
}
.lead {
  max-width: 640px;
  font-size: 22px;
  line-height: 1.55;
  color: #3d456d;
  font-weight: 400;
}
.hero-actions { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 34px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 64px;
  padding: 0 30px;
  border-radius: 999px;
  font-size: 18px;
  font-weight: 900;
  border: 0;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--gradient); color: #fff; box-shadow: var(--shadow-strong); }
.button-secondary { background: rgba(255, 255, 255, 0.76); color: #5921ff; border: 2px solid rgba(122, 77, 255, 0.42); }
.button-white { background: #fff; color: #5921ff; box-shadow: 0 20px 46px rgba(20, 27, 77, 0.14); }
.btn-icon { display: block; width: 24px; height: 24px; object-fit: contain; flex-shrink: 0; }

.hero-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 44px; max-width: 1000px; }
.hero-metrics article {
  display: grid; grid-template-columns: auto 1fr; column-gap: 16px; align-items: center;
  padding: 22px 24px;
  min-height: 112px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.78);
  box-shadow: 0 16px 46px rgba(20, 27, 77, 0.07);
  border-radius: 22px;
}
.metric-icon { grid-row: 1 / span 2; width: 58px; height: 58px; object-fit: contain; flex-shrink: 0; }
.hero-metrics strong { font-size: 16px; font-weight: 900; }
.hero-metrics small { font-size: 14px; color: var(--muted); font-weight: 700; }

.hero-stage { min-height: 610px; position: relative; display: grid; place-items: center; }
.hero-blob {
  position: absolute;
  width: 520px; height: 520px;
  background: linear-gradient(135deg, rgba(122, 77, 255, 0.22), rgba(41, 216, 255, 0.40));
  border-radius: 37% 63% 50% 50% / 45% 44% 56% 55%;
  right: 22px;
  top: 62px;
}
.star { position: absolute; font-size: 45px; filter: drop-shadow(0 8px 18px rgba(255,183,41,.25)); }
.star-one { color: #ffb729; left: 42px; top: 165px; }
.star-two { color: #8b5cf6; right: 48px; top: 64px; }
.star-three { color: #ff4bc3; right: 12px; top: 310px; }
.book-mockup {
  position: relative;
  width: min(420px, 76vw);
  filter: drop-shadow(0 35px 44px rgba(20, 27, 77, 0.26));
}
.book-mockup::after {
  content: "";
  position: absolute;
  inset: 18px -20px 16px auto;
  width: 44px;
  border-radius: 0 12px 12px 0;
  background: linear-gradient(90deg, #17205a, #4154a7);
  transform: skewY(2deg);
  z-index: -1;
}
.book-mockup img {
  display: block;
  width: 100%;
  border-radius: 10px 18px 18px 10px;
}
.floating-note {
  position: absolute;
  right: 10px; bottom: 100px;
  display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: center;
  width: 220px;
  padding: 18px;
  border-radius: 22px;
  background: rgba(255,255,255,.88);
  box-shadow: 0 20px 50px rgba(20, 27, 77, .12);
}
.floating-note img { grid-row: 1 / span 2; width: 36px; height: 36px; object-fit: contain; }
.floating-note strong { font-size: 17px; font-weight: 900; }
.floating-note small { color: var(--deep); font-weight: 800; }

.panel {
  background: rgba(255,255,255,.76);
  border: 1px solid rgba(255,255,255,.78);
  box-shadow: var(--shadow);
  border-radius: var(--radius-xl);
}
.steps {
  position: relative;
  padding: 46px 58px 44px;
  margin-bottom: 28px;
  border-radius: var(--radius-xl);
  background: url("/site/assets/steps-bg.png") center / 100% 100% no-repeat;
}
.section-heading { position: relative; }
.steps .section-heading {
  text-align: center;
  margin-inline: auto;
  max-width: none;
  width: 100%;
}
.steps .section-heading h2 { margin-top: 0; text-align: center; }
.section-heading h2 { font-size: clamp(34px, 4vw, 44px); line-height: 1.06; letter-spacing: 0; font-weight: 800; }
.section-heading p { color: var(--muted); font-weight: 400; font-size: 17px; line-height: 1.45; margin-top: 8px; }
.centered { text-align: center; }
.compact { margin-bottom: 18px; }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 24px; position: relative; }
.step-card { text-align: center; padding: 10px 22px; }
.step-icon { width: 108px; height: 108px; display: grid; place-items: center; margin: 0 auto 22px; border-radius: 28px; background: rgba(255, 255, 255, 0.72); box-shadow: 0 18px 40px rgba(122,77,255,.12); }
.step-icon img { width: 88px; height: 88px; object-fit: contain; display: block; }
.step-number { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #5921ff; color: #fff; font-weight: 900; margin-right: 6px; }
.step-number.blue { background: #10a8ff; }
.step-number.pink { background: #ff4bc3; }
.step-card h3 { display: inline; font-size: 19px; font-weight: 900; }
.step-card p { margin: 10px auto 0; color: #59617e; font-size: 15px; line-height: 1.42; font-weight: 700; max-width: 260px; }

.split-section { display: grid; grid-template-columns: 1.03fr 0.97fr; gap: 28px; margin-bottom: 28px; }
.catalog-card, .spread-preview, .benefits, .security { padding: 34px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 24px; }
.chip { padding: 10px 17px; border-radius: 999px; border: 1px solid rgba(122,77,255,.18); background: #fff; color: #4e5573; font-weight: 900; font-size: 14px; }
.chip.active { color: #fff; background: linear-gradient(135deg, #5921ff, #8b5cf6); }
.stories-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 16px; align-items: stretch; }
.story-card { display: flex; flex-direction: column; height: 100%; background: #fff; border-radius: 22px; padding: 12px; box-shadow: 0 14px 38px rgba(20, 27, 77, 0.08); border: 1px solid rgba(122,77,255,.10); }
.story-art { height: 150px; border-radius: 16px; position: relative; overflow: hidden; background: #eef4ff; }
.story-art img { display: block; width: 100%; height: 100%; object-fit: cover; }
.story-art span { position: absolute; right: 8px; top: 8px; background: rgba(255,255,255,.9); color: #5921ff; font-size: 12px; font-weight: 900; padding: 5px 9px; border-radius: 999px; }
.story-card h3 { font-size: 15px; font-weight: 900; line-height: 1.18; margin: 12px 4px 6px; min-height: 38px; }
.story-card p { color: var(--muted); font-size: 12.5px; line-height: 1.26; font-weight: 700; margin: 0 4px 10px; min-height: 32px; }
.story-card strong { display: block; font-size: 20px; font-weight: 900; margin: auto 4px 10px; }
.story-cta { display: flex; align-items: center; justify-content: center; height: 38px; border-radius: 999px; color: #fff; font-size: 13px; font-weight: 900; background: var(--gradient); }
.more-link { display: table; margin: 22px auto 0; color: #5921ff; font-weight: 900; padding: 12px 20px; border-radius: 999px; border: 1px solid rgba(122,77,255,.22); background: #fff; }

.open-book { margin-top: 22px; filter: drop-shadow(0 22px 30px rgba(20,27,77,.14)); }
.open-book img { display: block; width: 100%; border-radius: 18px; }

.spread-slider {
  position: relative;
  margin-top: 22px;
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  overflow: hidden;
  filter: drop-shadow(0 22px 30px rgba(20, 27, 77, 0.14));
  background: #eef4ff;
}
.spread-slider-track {
  position: relative;
  width: 100%;
  height: 100%;
}
.spread-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.85s ease;
  pointer-events: none;
}
.spread-slide.is-active {
  opacity: 1;
  z-index: 1;
  pointer-events: auto;
}
.spread-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.slider-dots { display: flex; justify-content: center; align-items: center; gap: 9px; margin-top: 18px; }
.slider-dots button {
  width: 11px;
  height: 11px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #d7d9e8;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease;
}
.slider-dots button:hover { transform: scale(1.15); }
.slider-dots button.active { background: #7a4dff; }
.spread-slider-nav {
  display: flex;
  justify-content: center;
}
@media (prefers-reduced-motion: reduce) {
  .spread-slide { transition: none; }
}

.lower-grid { grid-template-columns: 1.12fr .88fr; }
.benefits-grid { display:grid; grid-template-columns: repeat(4,1fr); gap: 18px; margin-top: 22px; }
.benefits-grid article { padding: 18px; border-radius: 24px; background: rgba(255,255,255,.76); border: 1px solid rgba(122,77,255,.10); }
.benefit-icon { width: 56px; height: 56px; object-fit: contain; display: block; margin-bottom: 12px; }
.benefits-grid h3 { font-size: 15px; font-weight: 900; line-height: 1.18; }
.benefits-grid p { color: var(--muted); font-size: 13px; line-height: 1.35; font-weight: 700; margin-top: 6px; }
.security { display:grid; grid-template-columns: 1fr auto; gap: 22px; align-items: center; background: linear-gradient(135deg, rgba(255,255,255,.85), rgba(242,236,255,.76)); }
.security h2 { margin-top: 6px; font-size: 30px; line-height: 1.08; font-weight: 900; letter-spacing: -0.035em; }
.security ul { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 12px; color: #4b5370; font-weight: 800; }
.security li { display: flex; align-items: center; gap: 12px; line-height: 1.35; }
.security li img { width: 28px; height: 28px; object-fit: contain; flex-shrink: 0; }
.shield { width: 142px; height: auto; object-fit: contain; filter: drop-shadow(0 22px 50px rgba(89,33,255,.28)); }

.final-cta { display:flex; justify-content:space-between; align-items:center; gap: 20px; padding: 34px 42px; border-radius: 32px; background: var(--gradient); color: #fff; box-shadow: var(--shadow-strong); margin-bottom: 30px; overflow: hidden; position: relative; }
.final-cta::after { content:"☁ ✦"; position:absolute; right: 310px; bottom: -10px; color: rgba(255,255,255,.36); font-size: 64px; }
.final-cta h2 { font-size: 34px; font-weight: 900; letter-spacing: -0.03em; }
.final-cta p { font-size: 17px; font-weight: 700; opacity: .88; margin-top: 4px; }
.final-cta .button-white { color: #141b4d; }
.footer { max-width: var(--container); margin: 0 auto; display:flex; justify-content:space-between; align-items:center; gap: 20px; padding: 22px 8px 0; color: #4b5370; }
.footer strong { color: var(--deep); font-size: 24px; font-weight: 900; }
.footer p { margin-top: 4px; font-weight: 700; }
.footer-links { display:flex; gap: 20px; font-weight: 900; }

[data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity .55s ease, transform .55s ease; }
[data-reveal].is-visible,
[data-reveal].revealed { opacity: 1; transform: translateY(0); }

@media (max-width: 1120px) {
  .topbar { align-items: flex-start; }
  .nav-toggle { display: grid; width: 48px; height: 48px; place-items: center; border:0; background: rgba(122,77,255,.10); border-radius: 16px; }
  .nav-toggle span { display:block; width: 22px; height: 3px; background: var(--deep); border-radius: 999px; }
  .nav { position: absolute; left: 18px; right: 18px; top: calc(100% + 10px); display: none; flex-direction: column; align-items: stretch; padding: 16px; background:#fff; border-radius:24px; box-shadow: var(--shadow); }
  .nav.is-open,
  .topbar.menu-open .nav { display: flex; }
  .nav a, .nav button { justify-content:center; text-align:center; }
  .hero { grid-template-columns: 1fr; }
  .hero-stage { min-height: 560px; }
  .split-section, .lower-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .site-shell { padding: 14px 14px 28px; }
  .topbar { top: 10px; min-height: 78px; border-radius: 22px; margin-bottom: 34px; }
  .brand-logo { width: 132px; }
  .brand-copy { display: none; }
  h1 { font-size: 43px; }
  .lead { font-size: 18px; }
  .hero-metrics, .steps-grid, .stories-grid, .benefits-grid { grid-template-columns: 1fr; }
  .hero-stage { min-height: 480px; }
  .book-mockup { width: min(330px, 86vw); }
  .steps, .catalog-card, .spread-preview, .benefits, .security { padding: 24px; border-radius: 28px; }
  .security { grid-template-columns: 1fr; }
  .shield { width: 110px; margin: 0 auto; }
  .final-cta { flex-direction: column; align-items: flex-start; padding: 28px; }
  .footer { flex-direction: column; align-items: flex-start; }
}

/* Unified public navbar (mounted via public-nav.js) */
body.theme-skazum [data-public-topbar].topbar,
body.theme-skazum [data-cabinet-topbar].topbar {
  top: 18px;
  max-width: var(--container);
  margin: 0 auto 58px;
  min-height: 92px;
  padding: 18px 24px;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 24px 70px rgba(20, 27, 77, 0.08);
}

body.theme-skazum [data-public-topbar] .brand-logo,
body.theme-skazum [data-cabinet-topbar] .brand-logo {
  display: block;
  width: 150px;
  height: auto;
}

body.theme-skazum [data-public-topbar] .brand-copy,
body.theme-skazum [data-cabinet-topbar] .brand-copy {
  max-width: 150px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.1;
}

body.theme-skazum [data-public-topbar] .nav a:not(.nav-cta),
body.theme-skazum [data-public-topbar] .nav-account-btn,
body.theme-skazum [data-cabinet-topbar] .nav a {
  padding: 12px 15px;
  color: var(--deep);
  font-family: "Nunito", system-ui, sans-serif;
  font-weight: 800;
  font-size: 15px;
  border-radius: 999px;
}

body.theme-skazum [data-public-topbar] .nav a.is-active,
body.theme-skazum [data-cabinet-topbar] .nav a.is-active {
  color: #5921ff;
}

body.theme-skazum [data-public-topbar] .nav-cta {
  padding: 16px 24px;
  font-weight: 900;
  font-size: 15px;
}

@media (max-width: 760px) {
  body.theme-skazum [data-public-topbar].topbar,
  body.theme-skazum [data-cabinet-topbar].topbar {
    top: 10px;
    min-height: 78px;
    margin-bottom: 34px;
  }
}
