/* Erudia redesign v2 — Dropship / Linear craft */

/* Variable fonts: declare FULL wght axis (default instance is 200).
   A truncated range like 500–800 makes some engines treat the face as
   static ExtraLight and then faux-bold → «Erudia» looks always thick.
   font-display: optional — no mid-paint swap to a thicker system fallback. */
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 200 800;
  font-display: optional;
  src: url("../fonts/manrope-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 200 800;
  font-display: optional;
  src: url("../fonts/manrope-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 200 800;
  font-display: optional;
  src: url("../fonts/manrope-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url("../fonts/source-sans-3-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url("../fonts/source-sans-3-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --blue: #2563eb;
  --blue-hover: #1d4ed8;
  --blue-deep: #1e40af;
  --blue-soft: #eff6ff;
  --blue-mist: #dbeafe;
  --blue-glow: rgba(37, 99, 235, 0.22);
  --ink: #0b1220;
  --ink-2: #334155;
  --muted: #64748b;
  --muted-2: #94a3b8;
  --line: #e2e8f0;
  --line-soft: #f1f5f9;
  --bg: #ffffff;
  --bg-soft: #f8fafc;
  --bg-wash: #f4f7fc;
  --ok: #059669;
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow: 0 10px 32px rgba(15, 23, 42, 0.07);
  --shadow-lg: 0 28px 64px rgba(15, 23, 42, 0.1);
  --shadow-blue: 0 12px 32px rgba(37, 99, 235, 0.28);
  --container: 1120px;
  --gutter: 20px;
  --header-h: 72px;
  --font-display: "Manrope", system-ui, sans-serif;
  --font-body: "Source Sans 3", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-synthesis: none;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  position: relative;
}

main {
  position: relative;
  z-index: 1;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: 0;
  background: none;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  color: var(--ink);
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.12;
}

p {
  margin: 0;
}

.container {
  width: min(100% - var(--gutter) * 2, var(--container));
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.section-kicker {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 12px;
}

/* ——— Buttons ——— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.015em;
  transition: background 0.22s var(--ease), color 0.22s var(--ease),
    box-shadow 0.22s var(--ease), border-color 0.22s var(--ease),
    transform 0.22s var(--ease);
}

.btn:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

.btn-primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.18) inset, var(--shadow-blue);
}

.btn-primary:hover {
  background: var(--blue-hover);
  transform: translateY(-1px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.18) inset,
    0 16px 36px rgba(37, 99, 235, 0.34);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  border-color: #cbd5e1;
  background: var(--bg-soft);
  transform: translateY(-1px);
}

.btn-ghost {
  color: var(--ink-2);
  min-height: 40px;
  padding: 0 12px;
  font-weight: 600;
}

.btn-ghost:hover {
  color: var(--ink);
}

.btn-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--blue);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  transition: color 0.2s var(--ease);
}

.btn-link:hover {
  color: var(--blue-hover);
}

.btn-link svg {
  transition: transform 0.22s var(--ease);
}

.btn-link:hover svg {
  transform: translateX(3px);
}

/* ——— Page atmosphere (Dropship-style wash under header) ——— */
.page-atmosphere {
  position: absolute;
  inset: 0 0 auto;
  height: min(92vh, 920px);
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  opacity: 0;
  animation: hero-atmosphere-in 1.4s var(--ease-out) 0.05s both;
}

.page-atmosphere__peak {
  position: absolute;
  left: 50%;
  top: -18%;
  width: min(1200px, 155vw);
  height: 70%;
  transform: translateX(-50%);
  background:
    radial-gradient(ellipse 48% 78% at 50% 100%, rgba(37, 99, 235, 0.42), transparent 70%),
    radial-gradient(ellipse 72% 58% at 50% 88%, rgba(59, 130, 246, 0.28), transparent 68%),
    radial-gradient(ellipse 90% 50% at 50% 70%, rgba(147, 197, 253, 0.35), transparent 72%);
  filter: blur(56px);
  transform-origin: 50% 100%;
  animation: hero-peak-bloom 1.6s var(--ease-out) 0.1s both;
}

.page-atmosphere__glow {
  position: absolute;
  left: 50%;
  top: -4%;
  width: min(780px, 96vw);
  height: 48%;
  transform: translateX(-50%);
  background: radial-gradient(
    ellipse at 50% 20%,
    rgba(37, 99, 235, 0.2) 0%,
    rgba(96, 165, 250, 0.16) 38%,
    transparent 72%
  );
  filter: blur(32px);
}

.page-atmosphere__fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    #e8f0fe 0%,
    rgba(239, 245, 255, 0.78) 14%,
    rgba(246, 249, 255, 0.4) 42%,
    rgba(255, 255, 255, 0.9) 76%,
    #ffffff 100%
  );
}

/* ——— Header ——— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: border-color 0.35s var(--ease), background 0.35s var(--ease),
    box-shadow 0.35s var(--ease), backdrop-filter 0.35s var(--ease);
  animation: hero-chrome-in 0.85s var(--ease-out) 0.12s both;
}

.site-header.is-scrolled,
body.nav-open .site-header {
  border-bottom-color: rgba(226, 232, 240, 0.85);
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(1.15) blur(18px);
  -webkit-backdrop-filter: saturate(1.15) blur(18px);
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.03);
}

.site-header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.logo__mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--blue);
  color: #fff;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -0.04em;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.3);
}

.logo__word {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.22rem;
  letter-spacing: -0.045em;
  color: var(--ink);
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: 2px;
}

.nav-item {
  position: relative;
}

.nav-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 9px;
  color: var(--ink-2);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 14.5px;
  letter-spacing: -0.01em;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

.nav-trigger:hover,
.nav-item.is-open > .nav-trigger {
  background: var(--line-soft);
  color: var(--ink);
}

.nav-trigger svg {
  opacity: 0.5;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s var(--ease);
}

.nav-item.is-open > .nav-trigger svg {
  transform: rotate(180deg);
  opacity: 0.75;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 9px;
  color: var(--ink-2);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 14.5px;
  letter-spacing: -0.01em;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

.nav-link:hover {
  background: var(--line-soft);
  color: var(--ink);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.header-actions__guest,
.header-actions__user {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-actions__guest[hidden],
.header-actions__user[hidden],
[data-auth-guest][hidden],
[data-auth-user][hidden] {
  display: none !important;
}

.header-actions .btn-ghost {
  min-height: 42px;
  padding: 0 14px;
}

.header-actions .btn-primary {
  display: none;
  min-height: 42px;
  padding: 0 16px;
  font-size: 14px;
}

.menu-toggle {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: var(--ink);
}

.menu-toggle:hover {
  background: var(--line-soft);
}

.menu-toggle__bars {
  width: 18px;
  height: 12px;
  position: relative;
}

.menu-toggle__bars span {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.25s var(--ease), opacity 0.2s;
}

.menu-toggle__bars span:nth-child(1) {
  top: 0;
}
.menu-toggle__bars span:nth-child(2) {
  top: 5px;
}
.menu-toggle__bars span:nth-child(3) {
  top: 10px;
}

body.nav-open .menu-toggle__bars span:nth-child(1) {
  top: 5px;
  transform: rotate(45deg);
}
body.nav-open .menu-toggle__bars span:nth-child(2) {
  opacity: 0;
}
body.nav-open .menu-toggle__bars span:nth-child(3) {
  top: 5px;
  transform: rotate(-45deg);
}

/* Mega menu — появление из-под шапки */
.mega {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  translate: -50% 0;
  width: min(960px, calc(100vw - 40px));
  padding: 8px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 24px;
  box-shadow:
    0 28px 64px rgba(15, 23, 42, 0.12),
    0 8px 20px rgba(15, 23, 42, 0.04),
    0 0 0 1px rgba(15, 23, 42, 0.02);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate3d(0, -14px, 0) scale(0.96);
  transform-origin: top center;
  transition:
    opacity 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.42s cubic-bezier(0.16, 1, 0.3, 1),
    visibility 0.28s,
    box-shadow 0.42s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  will-change: transform, opacity;
}

.mega::before {
  content: "";
  position: absolute;
  left: 18%;
  right: 18%;
  top: -1px;
  height: 1px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(147, 197, 253, 0.7),
    rgba(37, 99, 235, 0.35),
    rgba(147, 197, 253, 0.7),
    transparent
  );
  opacity: 0;
  transition: opacity 0.4s var(--ease-out) 0.05s;
  pointer-events: none;
}

.nav-item.is-open > .mega {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate3d(0, 0, 0) scale(1);
  box-shadow:
    0 36px 80px rgba(15, 23, 42, 0.14),
    0 12px 28px rgba(15, 23, 42, 0.05),
    0 0 0 1px rgba(15, 23, 42, 0.02);
}

.nav-item.is-open > .mega::before {
  opacity: 1;
}

/* Невидимый мост — курсор не «теряется» между пунктом и панелью */
.mega::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -14px;
  height: 14px;
}

.nav-item.is-closing > .mega {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate3d(0, -8px, 0) scale(0.98);
  transition:
    opacity 0.2s cubic-bezier(0.4, 0, 1, 1),
    transform 0.22s cubic-bezier(0.4, 0, 1, 1),
    visibility 0.2s,
    box-shadow 0.22s;
}

.mega__grid {
  display: grid;
  grid-template-columns: 1.75fr 0.95fr;
  gap: 6px;
  padding: 10px;
}

.mega__cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px 6px;
}

.mega-card {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  padding: 14px 12px;
  border-radius: 16px;
  transition: background 0.22s var(--ease), transform 0.22s var(--ease);
}

.nav-item.is-open > .mega .mega-card {
  animation: mega-card-in 0.48s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.nav-item.is-open > .mega .mega-card:nth-child(1) {
  animation-delay: 0.05s;
}
.nav-item.is-open > .mega .mega-card:nth-child(2) {
  animation-delay: 0.09s;
}
.nav-item.is-open > .mega .mega-card:nth-child(3) {
  animation-delay: 0.13s;
}
.nav-item.is-open > .mega .mega-card:nth-child(4) {
  animation-delay: 0.17s;
}

.nav-item.is-open > .mega .mega__aside {
  animation: mega-aside-in 0.52s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both;
}

@keyframes mega-card-in {
  from {
    opacity: 0;
    transform: translate3d(0, 12px, 0);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes mega-aside-in {
  from {
    opacity: 0;
    transform: translate3d(12px, 8px, 0) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.mega-card:hover {
  background: var(--bg-soft);
  transform: translateY(-1px);
}

.mega-card__icon {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--blue);
  box-shadow: 0 8px 16px rgba(37, 99, 235, 0.22);
}

.mega-card__icon--mid {
  background: #3b82f6;
}
.mega-card__icon--soft {
  background: #60a5fa;
  color: #fff;
  box-shadow: 0 8px 16px rgba(96, 165, 250, 0.28);
}
.mega-card__icon--ink {
  background: #1e293b;
  box-shadow: 0 8px 16px rgba(15, 23, 42, 0.18);
}

.mega-card__title {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14.5px;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.mega-card__desc {
  display: block;
  margin-top: 3px;
  font-size: 13.5px;
  line-height: 1.4;
  color: var(--muted);
}


.mega__aside {
  padding: 16px;
  border-radius: 18px;
  background:
    linear-gradient(165deg, var(--blue-soft) 0%, #fff 68%);
  border: 1px solid rgba(191, 219, 254, 0.6);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mega__aside--quiet {
  background:
    linear-gradient(165deg, #f1f5f9 0%, #fff 68%);
  border-color: rgba(203, 213, 225, 0.8);
}

.mega__aside-label {
  font-family: var(--font-display);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.mega__aside-visual {
  aspect-ratio: 16 / 10;
  border-radius: 14px;
  background:
    radial-gradient(ellipse 80% 70% at 50% 0%, rgba(96, 165, 250, 0.55), transparent 58%),
    linear-gradient(180deg, #3b82f6 0%, var(--blue) 48%, var(--blue-deep) 100%);
  color: #fff;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.mega__aside-glow {
  position: absolute;
  left: 50%;
  bottom: -40%;
  width: 140%;
  height: 90%;
  transform: translateX(-50%);
  background: radial-gradient(
    ellipse at 50% 30%,
    rgba(255, 255, 255, 0.28),
    transparent 68%
  );
  filter: blur(18px);
  pointer-events: none;
  z-index: 0;
}

.mega__aside-glow--quiet {
  background: radial-gradient(
    ellipse at 50% 40%,
    rgba(96, 165, 250, 0.28),
    transparent 70%
  );
  bottom: -30%;
  height: 80%;
}

.mega__aside-logo {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.32);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: -0.04em;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.12);
}

.mega__aside-visual--quiet {
  background:
    radial-gradient(ellipse 70% 55% at 50% 15%, rgba(51, 65, 85, 0.9), transparent 65%),
    linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
}

.mega__aside-visual--quiet .mega__aside-logo {
  display: none;
}

.mega__aside-stage {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
  justify-content: center;
  padding: 10px 8px 8px;
  margin-top: 26px;
  max-width: 100%;
}

.mega__aside-chip {
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.22);
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.mega__aside-chip--on {
  background: #fff;
  color: var(--blue);
  border-color: transparent;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.12);
}

.mega__aside-chip--file {
  background: rgba(255, 255, 255, 0.92);
  color: var(--blue-deep);
  border-color: transparent;
  font-weight: 700;
}

.mega__aside-arrow {
  width: 10px;
  height: 1.5px;
  background: rgba(255, 255, 255, 0.5);
  position: relative;
  flex-shrink: 0;
}

.mega__aside-arrow::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  width: 4px;
  height: 4px;
  border-right: 1.5px solid rgba(255, 255, 255, 0.5);
  border-top: 1.5px solid rgba(255, 255, 255, 0.5);
  transform: translateY(-50%) rotate(45deg);
}

.mega__aside-quote {
  position: relative;
  z-index: 1;
  text-align: center;
  display: grid;
  gap: 6px;
  padding: 8px;
}

.mega__aside-quote strong {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.mega__aside-quote span {
  font-size: 13px;
  opacity: 0.7;
}

.mega__aside-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  color: var(--ink);
  letter-spacing: -0.025em;
}

.mega__aside-text {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.45;
}

/* Mobile nav */
.nav-mobile {
  position: fixed;
  inset: var(--header-h) 0 0;
  background: #fff;
  z-index: 99;
  padding: 16px 20px 32px;
  overflow: auto;
  transform: translateX(100%);
  transition: transform 0.32s var(--ease-out);
  visibility: hidden;
  pointer-events: none;
}

body.nav-open .nav-mobile {
  transform: translateX(0);
  visibility: visible;
  pointer-events: auto;
}

body.nav-open {
  overflow: hidden;
}

.nav-mobile__group + .nav-mobile__group {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.nav-mobile__label {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

.nav-mobile a {
  display: block;
  padding: 12px 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.nav-mobile a span {
  display: block;
  margin-top: 2px;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 14px;
  color: var(--muted);
}

.nav-mobile__cta {
  margin-top: 28px;
  display: grid;
  gap: 10px;
}

/* ——— Hero ——— */
.hero {
  position: relative;
  z-index: 1;
  padding: 28px 0 0;
  overflow: clip;
}

.hero__content {
  text-align: center;
  max-width: 920px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.hero__brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
  animation: hero-soft-rise 1.05s cubic-bezier(0.16, 1, 0.3, 1) 0.18s both;
}

.hero__brand-mark {
  width: 52px;
  height: 52px;
  border-radius: 15px;
  background: var(--blue);
  color: #fff;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 25px;
  font-weight: 800;
  letter-spacing: -0.04em;
  box-shadow: 0 14px 34px rgba(37, 99, 235, 0.36);
  animation: hero-mark-bloom 1.1s cubic-bezier(0.16, 1, 0.3, 1) 0.22s both;
}

.hero__brand-word {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 2.65rem);
  letter-spacing: -0.05em;
  color: var(--ink);
  animation: hero-word-in 1s cubic-bezier(0.16, 1, 0.3, 1) 0.32s both;
}

.hero h1 {
  font-size: clamp(1.95rem, 4.8vw, 3.15rem);
  font-weight: 800;
  max-width: 22ch;
  margin-inline: auto;
  letter-spacing: -0.045em;
  animation: hero-title-in 1.15s cubic-bezier(0.16, 1, 0.3, 1) 0.38s both;
}

.hero h1 .accent {
  color: var(--blue);
  position: relative;
  display: inline-block;
  animation: hero-accent-in 1s cubic-bezier(0.16, 1, 0.3, 1) 0.58s both;
}

.hero__lead {
  margin: 20px auto 0;
  max-width: 54ch;
  font-size: clamp(1.06rem, 2vw, 1.22rem);
  color: var(--muted);
  line-height: 1.5;
  font-weight: 400;
  animation: hero-soft-rise 1.05s cubic-bezier(0.16, 1, 0.3, 1) 0.52s both;
}

.hero__cta {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  animation: hero-cta-in 1s cubic-bezier(0.16, 1, 0.3, 1) 0.64s both;
}

.hero-trust {
  list-style: none;
  margin: 28px auto 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 22px;
  max-width: 720px;
}

.hero-trust li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--muted);
  opacity: 0;
  animation: hero-soft-rise 0.85s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero-trust li:nth-child(1) { animation-delay: 0.72s; }
.hero-trust li:nth-child(2) { animation-delay: 0.8s; }
.hero-trust li:nth-child(3) { animation-delay: 0.88s; }
.hero-trust li:nth-child(4) { animation-delay: 0.96s; }

.hero-trust svg {
  flex-shrink: 0;
  color: var(--ok);
}

@keyframes hero-atmosphere-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes hero-peak-bloom {
  from {
    opacity: 0.35;
    transform: translateX(-50%) scale(0.82);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) scale(1);
  }
}

@keyframes hero-chrome-in {
  from {
    opacity: 0;
    transform: translate3d(0, -12px, 0);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes hero-soft-rise {
  from {
    opacity: 0;
    transform: translate3d(0, 22px, 0);
    filter: blur(6px);
  }
  to {
    opacity: 1;
    transform: none;
    filter: blur(0);
  }
}

@keyframes hero-mark-bloom {
  from {
    opacity: 0;
    transform: scale(0.72) rotate(-8deg);
    box-shadow: 0 0 0 rgba(37, 99, 235, 0);
  }
  to {
    opacity: 1;
    transform: none;
    box-shadow: 0 14px 34px rgba(37, 99, 235, 0.36);
  }
}

@keyframes hero-word-in {
  from {
    opacity: 0;
    transform: translate3d(-10px, 8px, 0);
    letter-spacing: -0.02em;
  }
  to {
    opacity: 1;
    transform: none;
    letter-spacing: -0.05em;
  }
}

@keyframes hero-title-in {
  from {
    opacity: 0;
    transform: translate3d(0, 28px, 0) scale(0.985);
    filter: blur(8px);
  }
  to {
    opacity: 1;
    transform: none;
    filter: blur(0);
  }
}

@keyframes hero-accent-in {
  from {
    opacity: 0;
    transform: translate3d(0, 0.35em, 0);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes hero-cta-in {
  from {
    opacity: 0;
    transform: translate3d(0, 18px, 0) scale(0.96);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes hero-card-enter {
  from {
    opacity: 0;
    transform: translate3d(var(--base-x, 0px), calc(var(--base-y, 0px) + 48px), 0)
      scale(0.92) rotateX(8deg);
    filter: blur(4px);
  }
  to {
    opacity: 1;
    transform: translate3d(var(--base-x, 0px), var(--base-y, 0px), 0) scale(1) rotateX(0deg);
    filter: blur(0);
  }
}

@keyframes hero-ghost-enter {
  from {
    opacity: 0;
    transform: translate3d(0, 28px, 0) scale(0.96);
  }
  to {
    opacity: 0.4;
    transform: none;
  }
}

@keyframes hero-ghost-far-enter {
  from {
    opacity: 0;
    transform: translate3d(0, 20px, 0);
  }
  to {
    opacity: 0.24;
    transform: none;
  }
}

@keyframes hero-stage-veil {
  from {
    opacity: 0;
    transform: translateX(-50%) scaleY(0.86);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) scaleY(1);
  }
}

@keyframes hero-beam-draw {
  from {
    opacity: 0;
    transform: translateX(-50%) scaleY(0.4);
    transform-origin: top center;
  }
  to {
    opacity: 0.75;
    transform: translateX(-50%) scaleY(1);
    transform-origin: top center;
  }
}

@keyframes hero-anchor-pop {
  from {
    opacity: 0;
    transform: translateX(-50%) scale(0.7);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) scale(1);
  }
}

/* Hero stage — шире контейнера, меньше «пустых» полей */
.hero > .container {
  width: min(100% - var(--gutter) * 2, 1280px);
}

.hero-stage {
  position: relative;
  margin-top: 52px;
  height: clamp(320px, 52vw, 520px);
  max-width: none;
  width: 100%;
  margin-inline: auto;
  perspective: 1400px;
  transform-style: preserve-3d;
}

.hero-stage__pedestal {
  position: absolute;
  left: 50%;
  top: 52px;
  width: min(280px, 50vw);
  height: 70%;
  transform: translateX(-50%);
  background:
    radial-gradient(ellipse 55% 30% at 50% 8%, rgba(37, 99, 235, 0.2), transparent 70%),
    radial-gradient(ellipse 70% 50% at 50% 40%, rgba(147, 197, 253, 0.18), transparent 72%);
  filter: blur(2px);
  pointer-events: none;
  z-index: 0;
  opacity: 0;
}

.hero-stage.is-ready .hero-stage__pedestal {
  animation: hero-stage-veil 1.1s cubic-bezier(0.16, 1, 0.3, 1) 0.35s both;
}

.hero-stage__beam {
  position: absolute;
  left: 50%;
  top: 14%;
  width: 2.5px;
  height: 72%;
  transform: translateX(-50%) scaleY(0.4);
  transform-origin: top center;
  background: linear-gradient(
    180deg,
    var(--blue) 0%,
    rgba(37, 99, 235, 0.5) 32%,
    rgba(147, 197, 253, 0.18) 68%,
    transparent 100%
  );
  border-radius: 999px;
  opacity: 0;
  z-index: 1;
}

.hero-stage.is-ready .hero-stage__beam {
  animation: hero-beam-draw 1s cubic-bezier(0.16, 1, 0.3, 1) 0.5s both;
}

.hero-stage__beam::before {
  content: "";
  position: absolute;
  inset: -10px -22px;
  background: linear-gradient(
    180deg,
    rgba(37, 99, 235, 0.28),
    transparent 68%
  );
  filter: blur(14px);
  border-radius: 40px;
}

.hero-stage__anchor {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%) scale(0.7);
  z-index: 8;
  width: 62px;
  height: 62px;
  border-radius: 18px;
  background: var(--blue);
  color: #fff;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 26px;
  box-shadow: 0 18px 44px rgba(37, 99, 235, 0.44);
  opacity: 0;
}

.hero-stage.is-ready .hero-stage__anchor {
  animation: hero-anchor-pop 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.62s both;
}

.hero-stage__anchor span {
  position: relative;
  z-index: 1;
}

.hero-stage__ring {
  position: absolute;
  inset: -11px;
  border-radius: 24px;
  border: 1px solid rgba(37, 99, 235, 0.3);
  animation: ring-pulse 3.8s var(--ease) infinite;
  animation-play-state: paused;
  pointer-events: none;
  opacity: 0;
}

.hero-stage.is-ready .hero-stage__ring {
  opacity: 1;
  transition: opacity 0.6s var(--ease-out) 0.9s;
  animation-play-state: running;
}

.hero-stage__ring--late {
  inset: -20px;
  border-radius: 28px;
  border-color: rgba(37, 99, 235, 0.14);
  animation-delay: 1.2s;
}

.hero-stage__fade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 6;
  background:
    linear-gradient(90deg, #fff 0%, transparent 3%, transparent 97%, #fff 100%),
    linear-gradient(180deg, transparent 52%, rgba(255, 255, 255, 0.65) 82%, #fff 100%);
  opacity: 0;
  animation: hero-atmosphere-in 1s var(--ease-out) 0.7s both;
}

.draft-card {
  position: absolute;
  width: min(252px, 46vw);
  padding: 14px 15px 13px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 16px;
  box-shadow:
    0 12px 36px rgba(15, 23, 42, 0.08),
    0 2px 6px rgba(15, 23, 42, 0.03),
    0 0 0 1px rgba(255, 255, 255, 0.7) inset;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 2;
  will-change: transform, opacity;
  opacity: 0;
  transform-style: preserve-3d;
  transition: box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

.draft-card.is-in {
  animation: hero-card-enter 0.95s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.draft-card--1.is-in { animation-delay: 0.05s; }
.draft-card--2.is-in { animation-delay: 0.14s; }
.draft-card--3.is-in { animation-delay: 0.22s; }
.draft-card--4.is-in { animation-delay: 0.3s; }
.draft-card--5.is-in { animation-delay: 0.38s; }
.draft-card--6.is-in { animation-delay: 0.46s; }

.draft-card--ghost {
  filter: blur(2px);
  opacity: 0;
  z-index: 1;
  box-shadow: none;
  background: rgba(241, 245, 249, 0.82);
  border-color: transparent;
  backdrop-filter: none;
}

.draft-card--ghost.is-in {
  animation: hero-ghost-enter 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.draft-card--g1.is-in { animation-delay: 0.52s; }
.draft-card--g2.is-in { animation-delay: 0.58s; }
.draft-card--g3.is-in { animation-delay: 0.64s; }
.draft-card--g4.is-in { animation-delay: 0.7s; }

.draft-card--far {
  filter: blur(4px);
  z-index: 0;
}

.draft-card--far.is-in {
  animation: hero-ghost-far-enter 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.draft-card__head {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 10px;
  align-items: start;
  margin-bottom: 2px;
}

.draft-card__avatar {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(145deg, var(--blue-soft), #dbeafe);
  color: var(--blue);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: -0.03em;
}

.draft-card__tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 6px;
}

.draft-card__tag-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
}

.draft-card__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  color: var(--ink);
  letter-spacing: -0.025em;
  margin-bottom: 8px;
}

.draft-card__head .draft-card__title {
  margin-bottom: 0;
}

.draft-card__snippet {
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--muted);
  margin-bottom: 2px;
}

.draft-card__snippet mark {
  background: rgba(37, 99, 235, 0.12);
  color: var(--ink);
  border-radius: 3px;
  padding: 0 2px;
}

.draft-card__toc,
.draft-card__refs {
  display: grid;
  gap: 4px;
  margin-bottom: 4px;
  font-size: 12px;
  color: var(--ink-2);
  counter-reset: item;
}

.draft-card__toc li,
.draft-card__refs li {
  padding-left: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.draft-card__toc li::before,
.draft-card__refs li::before {
  content: counter(item) ". ";
  counter-increment: item;
  color: var(--muted-2);
  font-family: var(--font-display);
  font-weight: 600;
}

.draft-card__file {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 10px;
  align-items: center;
  margin-bottom: 8px;
}

.draft-card__file-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--blue-soft);
  color: var(--blue);
  display: grid;
  place-items: center;
}

.draft-card__file .draft-card__title {
  margin-bottom: 2px;
}

.draft-card__file-sub {
  display: block;
  font-size: 12px;
  color: var(--muted);
}

.draft-card__bar {
  height: 4px;
  border-radius: 999px;
  background: var(--line-soft);
  overflow: hidden;
  margin: 4px 0 2px;
}

.draft-card__bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), #60a5fa);
}

.draft-card__meta {
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11.5px;
  color: var(--muted);
  padding-top: 10px;
  border-top: 1px solid var(--line-soft);
}

.draft-card__meta strong {
  color: var(--blue);
  font-family: var(--font-display);
  font-weight: 700;
}

/* Constellation — шире по горизонтали */
.draft-card--1 {
  left: 50%;
  top: 14%;
  --base-x: -156%;
  --base-y: 0px;
  transform: translate(var(--base-x), var(--base-y));
  z-index: 4;
}
.draft-card--2 {
  left: 50%;
  top: 8%;
  --base-x: 42%;
  --base-y: 0px;
  transform: translate(var(--base-x), var(--base-y));
  z-index: 4;
}
.draft-card--3 {
  left: 50%;
  top: 42%;
  --base-x: -172%;
  --base-y: 0px;
  transform: translate(var(--base-x), var(--base-y));
  z-index: 3;
}
.draft-card--4 {
  left: 50%;
  top: 36%;
  --base-x: 54%;
  --base-y: 0px;
  transform: translate(var(--base-x), var(--base-y));
  z-index: 3;
}
.draft-card--5 {
  left: 50%;
  top: 66%;
  --base-x: -68%;
  --base-y: 0px;
  transform: translate(var(--base-x), var(--base-y));
  width: min(236px, 40vw);
  z-index: 5;
}
.draft-card--6 {
  left: 50%;
  top: 58%;
  --base-x: 18%;
  --base-y: 0px;
  transform: translate(var(--base-x), var(--base-y));
  width: min(232px, 42vw);
  z-index: 4;
}
.draft-card--g1 {
  left: 0%;
  top: 20%;
}
.draft-card--g2 {
  right: -1%;
  top: 52%;
  left: auto;
}
.draft-card--g3 {
  left: -1%;
  top: 58%;
}
.draft-card--g4 {
  right: 0%;
  top: 16%;
  left: auto;
}

@keyframes ring-pulse {
  0%,
  100% {
    opacity: 0.55;
    transform: scale(1);
  }
  50% {
    opacity: 0.12;
    transform: scale(1.1);
  }
}

/* ——— Showcase ——— */
.showcase {
  position: relative;
  padding: 12px 0 96px;
  margin-top: -48px;
}

.showcase__intro {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 36px;
}

.showcase__intro h2 {
  font-size: clamp(1.7rem, 3.6vw, 2.4rem);
  font-weight: 800;
}

.showcase__intro p:last-child {
  margin-top: 12px;
  color: var(--muted);
  font-size: 1.05rem;
}

.showcase-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
  margin-bottom: 28px;
  padding: 5px;
  width: fit-content;
  max-width: 100%;
  margin-inline: auto;
  background: rgba(248, 250, 252, 0.9);
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
  position: relative;
}

.showcase-tabs__pill {
  position: absolute;
  top: 5px;
  left: 0;
  height: 42px;
  width: 0;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.07);
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  transition:
    transform 0.48s cubic-bezier(0.22, 1, 0.36, 1),
    width 0.48s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.28s var(--ease);
  will-change: transform, width;
}

.showcase-tabs__pill.is-ready {
  opacity: 1;
}

.showcase-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: -0.015em;
  position: relative;
  z-index: 1;
  transition: color 0.28s var(--ease);
}

.showcase-tab__num {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--muted-2);
  font-variant-numeric: tabular-nums;
  transition: color 0.28s var(--ease);
}

.showcase-tab:hover {
  color: var(--ink);
}

.showcase-tab.is-active {
  color: var(--ink);
}

.showcase-tab.is-active .showcase-tab__num {
  color: var(--blue);
}

.showcase-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow:
    0 32px 72px rgba(15, 23, 42, 0.09),
    0 8px 20px rgba(15, 23, 42, 0.03);
  overflow: hidden;
  position: relative;
  display: grid;
}

.showcase-panel__pane {
  grid-area: 1 / 1;
  display: grid;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate3d(22px, 0, 0);
  transition:
    opacity 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0s linear 0.45s;
  z-index: 0;
}

.showcase-panel[data-dir="prev"] .showcase-panel__pane:not(.is-active):not(.is-leaving) {
  transform: translate3d(-22px, 0, 0);
}

.showcase-panel__pane.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate3d(0, 0, 0);
  transition:
    opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.04s,
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.02s,
    visibility 0s linear 0s;
  z-index: 2;
}

.showcase-panel__pane.is-leaving {
  opacity: 0;
  visibility: visible;
  pointer-events: none;
  z-index: 1;
  transition:
    opacity 0.32s cubic-bezier(0.4, 0, 1, 1),
    transform 0.38s cubic-bezier(0.4, 0, 1, 1),
    visibility 0s linear 0.38s;
}

.showcase-panel[data-dir="next"] .showcase-panel__pane.is-leaving {
  transform: translate3d(-28px, 0, 0);
}

.showcase-panel[data-dir="prev"] .showcase-panel__pane.is-leaving {
  transform: translate3d(28px, 0, 0);
}

.showcase-panel__pane.is-active .showcase-panel__copy {
  animation: showcase-copy-in 0.58s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.showcase-panel__pane.is-active .showcase-panel__preview {
  animation: showcase-preview-in 0.68s cubic-bezier(0.22, 1, 0.36, 1) 0.06s both;
}

.showcase-panel__pane.is-active .showcase-panel__points li {
  animation: showcase-point-in 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.showcase-panel__pane.is-active .showcase-panel__points li:nth-child(1) {
  animation-delay: 0.14s;
}

.showcase-panel__pane.is-active .showcase-panel__points li:nth-child(2) {
  animation-delay: 0.22s;
}

.showcase-panel__pane.is-active .btn-link {
  animation: showcase-point-in 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.28s both;
}

@keyframes showcase-copy-in {
  from {
    opacity: 0;
    transform: translate3d(0, 14px, 0);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes showcase-preview-in {
  from {
    opacity: 0;
    transform: translate3d(18px, 10px, 0) scale(0.97);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes showcase-point-in {
  from {
    opacity: 0;
    transform: translate3d(-8px, 6px, 0);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.showcase-panel__copy {
  padding: 28px 24px;
}

.showcase-panel__kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.showcase-panel__kicker-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--blue);
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.25);
}

.showcase-panel__step {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.showcase-panel h3 {
  font-size: clamp(1.4rem, 2.6vw, 1.8rem);
  font-weight: 800;
  margin-bottom: 10px;
}

.showcase-panel__text {
  color: var(--muted);
  max-width: 38ch;
  margin-bottom: 18px;
  font-size: 1.02rem;
}

.showcase-panel__points {
  display: grid;
  gap: 11px;
  margin-bottom: 24px;
}

.showcase-panel__points li {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  font-size: 15px;
  color: var(--ink-2);
}

.showcase-panel__points svg {
  margin-top: 3px;
  color: var(--ok);
}

.showcase-panel__preview {
  background:
    radial-gradient(ellipse 70% 55% at 75% 15%, rgba(37, 99, 235, 0.1), transparent 58%),
    linear-gradient(165deg, #f0f5fb 0%, #e6edf7 100%);
  padding: 24px 18px 0;
  min-height: 320px;
  display: flex;
  align-items: flex-end;
}

/* UI app mock */
.ui-app {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-bottom: 0;
  border-radius: 18px 18px 0 0;
  box-shadow:
    0 -10px 48px rgba(15, 23, 42, 0.1),
    0 0 0 1px rgba(255, 255, 255, 0.5) inset;
  overflow: hidden;
}

.ui-app__chrome {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line-soft);
  background: linear-gradient(180deg, #fbfcfe, #f3f6fa);
}

.ui-app__dots {
  display: flex;
  gap: 5px;
}

.ui-app__dots i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d4dbe5;
  display: block;
}

.ui-app__path {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: -0.01em;
}

.ui-app__badge {
  margin-left: auto;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue);
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
}

.ui-app__body {
  display: grid;
  grid-template-columns: 132px 1fr;
  min-height: 288px;
}

.ui-app__main.ui-app__main--export {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
  min-height: 100%;
  background: #f4f7fb;
}

.ui-export-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  background: #fff;
  border-bottom: 1px solid var(--line-soft);
}

.ui-export-bar__file {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 10px;
  align-items: center;
  min-width: 0;
}

.ui-export-bar__icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--blue-soft);
  color: var(--blue);
  display: grid;
  place-items: center;
}

.ui-export-bar__name {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12.5px;
  color: var(--ink);
  letter-spacing: -0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ui-export-bar__meta {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-top: 1px;
}

.ui-export-bar__btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 9px;
  background: var(--blue);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12.5px;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.24);
}

.ui-export-sheet {
  flex: 1;
  margin: 14px 14px 0;
  padding: 20px 18px 28px;
  background: #fff;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-bottom: 0;
  border-radius: 12px 12px 0 0;
  box-shadow: 0 -4px 24px rgba(15, 23, 42, 0.04);
  overflow: hidden;
}

.ui-export-sheet__uni {
  font-size: 10px;
  color: var(--muted-2);
  text-align: center;
  line-height: 1.35;
  margin-bottom: 14px;
}

.ui-export-sheet__type {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-2);
  text-align: center;
  margin-bottom: 8px;
}

.ui-export-sheet__topic {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  text-align: center;
  letter-spacing: -0.025em;
  margin-bottom: 16px;
  line-height: 1.3;
}

.ui-export-sheet__p {
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--ink-2);
  margin: 0 0 10px;
  text-align: justify;
}

.ui-export-sheet__p--fade {
  opacity: 0.4;
  mask-image: linear-gradient(180deg, #000 10%, transparent 95%);
  margin-bottom: 14px;
}

.ui-export-sheet__foot {
  font-size: 11px;
  color: var(--muted-2);
  padding-top: 10px;
  border-top: 1px solid var(--line-soft);
}

.ui-app__side {
  padding: 14px 10px;
  border-right: 1px solid var(--line-soft);
  background: #fafbfc;
}

.ui-app__side-label {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted-2);
  padding: 0 10px 8px;
}

.ui-app__side-item {
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 12.5px;
  color: var(--muted);
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.01em;
}

.ui-app__side-item.is-active {
  background: #fff;
  color: var(--blue);
  box-shadow: var(--shadow-sm);
  font-weight: 700;
}

.ui-app__main {
  padding: 16px 18px 24px;
}

.ui-app__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}

.ui-app__toolbar--edit {
  justify-content: flex-start;
  gap: 6px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line-soft);
  margin-bottom: 16px;
}

.ui-app__toolbar-sep {
  width: 1px;
  height: 18px;
  background: var(--line);
  margin: 0 4px;
}

.ui-app__status {
  margin-left: auto;
  font-size: 11px;
  font-weight: 600;
  color: var(--ok);
}

.ui-tool {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  background: var(--bg-soft);
  color: var(--ink-2);
  font-size: 12px;
  font-weight: 700;
}

.ui-tool.is-on {
  background: var(--blue-soft);
  color: var(--blue);
}

.ui-app__pill {
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--line-soft);
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.ui-app__pill--live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--blue-soft);
  color: var(--blue);
}

.ui-app__pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
  animation: pulse-dot 1.2s ease infinite;
}

.ui-doc__topic {
  font-size: 11.5px;
  color: var(--muted);
  margin-bottom: 10px;
  padding: 7px 10px;
  border-radius: 8px;
  background: var(--bg-soft);
  font-family: var(--font-display);
  font-weight: 500;
}

.ui-doc__h {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15.5px;
  color: var(--ink);
  margin: 0 0 12px;
  letter-spacing: -0.025em;
}

.ui-doc__p {
  font-size: 13px;
  line-height: 1.55;
  color: var(--ink-2);
  margin: 0 0 10px;
}

.ui-doc__p--fade {
  opacity: 0.45;
  mask-image: linear-gradient(180deg, #000 20%, transparent 95%);
}

.ui-doc__p--muted {
  color: var(--muted-2);
  font-style: italic;
}

.ui-doc__mark {
  background: rgba(37, 99, 235, 0.12);
  color: var(--ink);
  border-radius: 3px;
  padding: 0 2px;
}

.ui-doc__cursor {
  display: inline-block;
  width: 2px;
  height: 15px;
  background: var(--blue);
  margin-left: 2px;
  vertical-align: text-bottom;
  animation: blink 1s step-end infinite;
}

.ui-toc {
  display: grid;
  gap: 8px;
}

.ui-toc li {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 12.5px;
  color: var(--ink-2);
}

.ui-toc li.is-sub {
  padding-left: 14px;
  color: var(--muted);
  font-size: 12px;
}

.ui-toc li span {
  flex: 1;
  min-width: 0;
  border-bottom: 1px dotted #dbe3ee;
  padding-bottom: 2px;
}

.ui-toc li em {
  font-style: normal;
  color: var(--muted-2);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 11.5px;
  flex-shrink: 0;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

@keyframes pulse-dot {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.45;
    transform: scale(0.85);
  }
}

.showcase-panel__pane[hidden] {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  .showcase-tabs__pill {
    transition: none;
  }

  .showcase-panel__pane,
  .showcase-panel__pane.is-active,
  .showcase-panel__pane.is-leaving {
    transition: none;
    transform: none;
  }

  .showcase-panel__pane.is-active .showcase-panel__copy,
  .showcase-panel__pane.is-active .showcase-panel__preview,
  .showcase-panel__pane.is-active .showcase-panel__points li,
  .showcase-panel__pane.is-active .btn-link {
    animation: none;
  }
}

/* ——— Examples ——— */
.examples {
  padding: 72px 0 40px;
  background: var(--bg);
}

.examples__intro {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 28px;
}

.examples__intro h2 {
  font-size: clamp(1.7rem, 3.6vw, 2.4rem);
  font-weight: 800;
}

.examples__intro p:last-child {
  margin-top: 12px;
  color: var(--muted);
  font-size: 1.05rem;
}

.examples-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
  margin-bottom: 24px;
  padding: 5px;
  width: fit-content;
  max-width: 100%;
  margin-inline: auto;
  background: rgba(248, 250, 252, 0.9);
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  position: relative;
}

.examples-tabs__pill {
  position: absolute;
  top: 5px;
  left: 0;
  height: 40px;
  width: 0;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  transition:
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    width 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.25s var(--ease);
}

.examples-tabs__pill.is-ready {
  opacity: 1;
}

.examples-tab {
  position: relative;
  z-index: 1;
  min-height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  transition: color 0.25s var(--ease);
}

.examples-tab.is-active,
.examples-tab:hover {
  color: var(--ink);
}

.examples-panel {
  display: grid;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow:
    0 24px 56px rgba(15, 23, 42, 0.07),
    0 6px 16px rgba(15, 23, 42, 0.03);
  overflow: hidden;
}

.examples-panel__pane {
  grid-area: 1 / 1;
  display: grid;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate3d(18px, 0, 0);
  transition:
    opacity 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0s linear 0.4s;
  z-index: 0;
}

.examples-panel[data-dir="prev"] .examples-panel__pane:not(.is-active):not(.is-leaving) {
  transform: translate3d(-18px, 0, 0);
}

.examples-panel__pane.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: none;
  transition:
    opacity 0.45s cubic-bezier(0.22, 1, 0.36, 1) 0.04s,
    transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0s;
  z-index: 2;
}

.examples-panel__pane.is-leaving {
  opacity: 0;
  visibility: visible;
  pointer-events: none;
  z-index: 1;
  transition:
    opacity 0.28s cubic-bezier(0.4, 0, 1, 1),
    transform 0.32s cubic-bezier(0.4, 0, 1, 1),
    visibility 0s linear 0.32s;
}

.examples-panel[data-dir="next"] .examples-panel__pane.is-leaving {
  transform: translate3d(-22px, 0, 0);
}

.examples-panel[data-dir="prev"] .examples-panel__pane.is-leaving {
  transform: translate3d(22px, 0, 0);
}

.examples-panel__copy {
  padding: 28px 24px;
}

.examples-panel__type {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 10px;
}

.examples-panel__copy h3 {
  font-size: clamp(1.25rem, 2.4vw, 1.55rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
  max-width: 22ch;
}

.examples-panel__text {
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.5;
  max-width: 42ch;
  margin-bottom: 18px;
}

.examples-panel__meta {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 22px;
  padding: 0;
}

.examples-panel__meta li {
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-2);
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--bg-soft);
  border: 1px solid var(--line-soft);
}

.examples-panel__preview {
  padding: 20px 20px 0;
  background:
    radial-gradient(ellipse 70% 50% at 70% 0%, rgba(37, 99, 235, 0.08), transparent 65%),
    var(--bg-soft);
  min-height: 280px;
  display: flex;
  align-items: flex-end;
}

.ex-sheet {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px 16px 0 0;
  padding: 20px 20px 28px;
  box-shadow: 0 -8px 32px rgba(15, 23, 42, 0.06);
}

.ex-sheet__label {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}

.ex-sheet__toc {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  display: grid;
  gap: 8px;
}

.ex-sheet__toc li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 13.5px;
  color: var(--ink-2);
  border-bottom: 1px dotted var(--line);
  padding-bottom: 6px;
}

.ex-sheet__toc li.is-sub {
  padding-left: 14px;
  color: var(--muted);
  font-size: 13px;
}

.ex-sheet__toc em {
  font-style: normal;
  color: var(--muted-2);
  font-variant-numeric: tabular-nums;
}

.ex-sheet__h {
  font-size: 14px;
  font-weight: 700;
  margin: 12px 0 6px;
  letter-spacing: -0.02em;
}

.ex-sheet__snippet {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ink-2);
  margin: 0;
}

.ex-sheet__snippet--fade {
  color: var(--muted-2);
}

@media (min-width: 900px) {
  .examples-panel__pane {
    grid-template-columns: 0.95fr 1.05fr;
  }

  .examples-panel__copy {
    padding: 40px 36px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .examples-panel__preview {
    padding: 28px 28px 0;
    min-height: 360px;
  }
}

/* ——— Audiences (type switcher + structure window) ——— */
.audiences {
  padding: 56px 0 40px;
}

.audiences__intro {
  text-align: center;
  max-width: 540px;
  margin: 0 auto 36px;
}

.audiences__intro h2 {
  font-size: clamp(1.65rem, 3.4vw, 2.2rem);
  font-weight: 800;
}

.audiences__intro p:last-child {
  margin-top: 12px;
  color: var(--muted);
}

.audience-stage {
  display: grid;
  gap: 28px;
  align-items: center;
  max-width: 980px;
  margin: 0 auto;
}

.audience-stage__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
}

.audience-tabs {
  position: relative;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 5px;
  margin-bottom: 22px;
  border-radius: 14px;
  background: rgba(241, 245, 249, 0.95);
  border: 1px solid rgba(226, 232, 240, 0.9);
}

.audience-tabs__pill {
  position: absolute;
  top: 5px;
  left: 5px;
  height: calc(100% - 10px);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
  pointer-events: none;
  transition: transform 0.28s var(--ease), width 0.28s var(--ease);
  will-change: transform, width;
}

.audience-tab {
  position: relative;
  z-index: 1;
  appearance: none;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 10px 14px;
  min-height: 40px;
  border-radius: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13.5px;
  color: var(--muted);
  letter-spacing: -0.015em;
  transition: color 0.2s var(--ease);
}

.audience-tab.is-active,
.audience-tab:hover {
  color: var(--ink);
}

.audience-stage__kicker {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: 0.02em;
}

.audience-stage__copy h3 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.6vw, 1.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1.2;
}

.audience-stage__text {
  margin: 0 0 16px;
  max-width: 38ch;
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--muted);
}

.audience-stage__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
}

.audience-stage__meta li {
  padding: 6px 11px;
  border-radius: 999px;
  background: var(--bg-soft);
  border: 1px solid var(--line-soft);
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-2);
}

.audience-stage__preview {
  min-width: 0;
}

.audience-app {
  max-width: 420px;
  margin: 0 auto;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.7) inset,
    0 18px 40px rgba(15, 23, 42, 0.08);
}

.audience-app__body {
  padding: 16px 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  grid-template-columns: none;
  min-height: 0;
}

.audience-depth__labels {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 7px;
  font-family: var(--font-display);
  font-size: 11.5px;
  font-weight: 700;
}

.audience-depth__labels span:first-child {
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 10.5px;
}

.audience-depth__labels span:last-child {
  color: var(--blue);
}

.audience-depth__track {
  height: 8px;
  border-radius: 999px;
  background: rgba(226, 232, 240, 0.95);
  overflow: hidden;
}

.audience-depth__fill {
  display: block;
  height: 100%;
  width: var(--depth, 50%);
  border-radius: inherit;
  background: linear-gradient(90deg, #60a5fa, var(--blue));
  transition: width 0.45s var(--ease);
}

.audience-toc {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.audience-toc li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: baseline;
  padding: 8px 0;
  border-bottom: 1px dashed rgba(226, 232, 240, 0.95);
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.35;
  animation: audience-toc-in 0.35s var(--ease) both;
}

.audience-toc li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.audience-toc li.is-sub {
  padding-left: 14px;
  font-size: 12.5px;
  color: var(--muted);
}

.audience-toc li em {
  font-style: normal;
  font-family: var(--font-display);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--muted-2);
}

.audience-stage.is-switching .audience-toc li {
  opacity: 0;
}

@keyframes audience-toc-in {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (min-width: 880px) {
  .audience-stage {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 40px;
  }

  .audience-app {
    margin: 0;
    max-width: none;
  }
}

@media (max-width: 520px) {
  .audience-tabs {
    width: 100%;
  }

  .audience-tab {
    flex: 1 1 auto;
    text-align: center;
    padding: 10px 8px;
    font-size: 12.5px;
  }
}

/* ——— Benefits (product windows) ——— */
.benefits {
  position: relative;
  padding: 72px 0 88px;
  background:
    radial-gradient(ellipse 70% 55% at 50% 0%, rgba(37, 99, 235, 0.06), transparent 68%),
    linear-gradient(180deg, #ffffff 0%, #f7f9fc 28%, #ffffff 100%);
  overflow: clip;
}

.benefits__header {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 44px;
}

.benefits__header h2 {
  font-size: clamp(1.7rem, 3.5vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.benefits__header p:last-child {
  margin-top: 12px;
  color: var(--muted);
  font-size: 1.05rem;
}

.benefits__list {
  display: grid;
  gap: 18px;
}

.benefit--window {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 0;
  padding: 0;
  overflow: hidden;
  border-radius: 20px;
  background: #fff;
  border: 1px solid rgba(226, 232, 240, 0.95);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.05);
  transition:
    transform 0.28s var(--ease),
    border-color 0.28s var(--ease),
    box-shadow 0.28s var(--ease);
}

.benefit--window:hover {
  transform: translateY(-3px);
  border-color: rgba(147, 197, 253, 0.9);
  box-shadow: 0 18px 40px rgba(37, 99, 235, 0.1);
}

.benefit__preview {
  padding: 14px 14px 0;
  background:
    radial-gradient(ellipse 80% 70% at 50% 0%, rgba(37, 99, 235, 0.08), transparent 70%),
    linear-gradient(180deg, #eef4ff 0%, #f5f8fc 100%);
}

.benefit__copy {
  padding: 16px 18px 18px;
}

.benefit--window h3 {
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin: 0 0 6px;
  color: var(--ink);
}

.benefit--window p {
  margin: 0;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.5;
}

.ui-app--sm {
  max-width: none;
  border-radius: 14px 14px 0 0;
  border-bottom: 0;
  box-shadow:
    0 -6px 28px rgba(15, 23, 42, 0.08),
    0 0 0 1px rgba(255, 255, 255, 0.55) inset;
}

.ui-app--sm .ui-app__chrome {
  padding: 10px 12px;
  gap: 8px;
}

.ui-app--sm .ui-app__dots i {
  width: 7px;
  height: 7px;
}

.ui-app--sm .ui-app__path {
  font-size: 11px;
}

.ui-app--sm .ui-app__badge {
  padding: 2px 8px;
  font-size: 10px;
}

.ui-app__main--solo {
  display: block;
  padding: 12px 12px 14px;
  min-height: 168px;
  background: #fff;
}

.ui-app--sm .ui-app__main--export {
  padding: 0;
  background: #f4f7fb;
  min-height: 168px;
}

.ui-app--sm .ui-app__toolbar {
  margin-bottom: 10px;
  padding-bottom: 8px;
}

.ui-toc--sm {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ui-toc--sm li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
  color: var(--ink-2);
  line-height: 1.35;
}

.ui-toc--sm li.is-sub {
  padding-left: 12px;
  color: var(--muted);
  font-size: 11.5px;
}

.ui-toc--sm em {
  font-style: normal;
  color: var(--muted-2);
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}

.ui-app--sm .ui-doc__h {
  font-size: 13px;
  margin: 0 0 8px;
}

.ui-app--sm .ui-doc__p {
  font-size: 12px;
  line-height: 1.45;
  margin: 0 0 6px;
  color: var(--ink-2);
}

.ui-app--sm .ui-export-bar {
  padding: 10px 12px;
}

.ui-app--sm .ui-export-bar__btn {
  font-size: 11px;
  padding: 6px 10px;
}

.ui-export-sheet--sm {
  margin: 10px 12px 12px;
  padding: 12px 12px 14px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--line-soft);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.04);
}

.ui-export-sheet--sm .ui-export-sheet__uni {
  font-size: 10px;
}

.ui-export-sheet--sm .ui-export-sheet__type {
  font-size: 10px;
}

.ui-export-sheet--sm .ui-export-sheet__topic {
  font-size: 12px;
  margin: 6px 0 8px;
}

.ui-export-sheet--sm .ui-export-sheet__p {
  font-size: 11px;
  margin: 0 0 4px;
}

.ui-pay {
  display: grid;
  gap: 12px;
}

.ui-pay__plan {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ui-pay__label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.ui-pay__plan strong {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.ui-pay__price {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.ui-pay__value {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--ink);
  line-height: 1;
}

.ui-pay__rub {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--muted);
}

.ui-pay__checks {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 6px;
}

.ui-pay__checks li {
  position: relative;
  padding-left: 18px;
  font-size: 12px;
  color: var(--ink-2);
  line-height: 1.35;
}

.ui-pay__checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35em;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 45%, #fff 0 28%, transparent 30%),
    var(--ok);
  box-shadow: 0 0 0 1px rgba(5, 150, 105, 0.2);
}

.ui-pay__cta {
  display: grid;
  place-items: center;
  min-height: 36px;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.benefits__foot {
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px 20px;
}

/* ——— Generator (form inside product window) ——— */
.generator {
  padding: 64px 0 88px;
  background:
    radial-gradient(ellipse 55% 45% at 50% 18%, rgba(37, 99, 235, 0.07), transparent 70%),
    linear-gradient(
      180deg,
      #ffffff 0%,
      #f8fafc 18%,
      #f4f7fc 50%,
      #f8fafc 82%,
      #ffffff 100%
    );
}

.generator__header {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 32px;
}

.generator__header h2 {
  font-size: clamp(1.7rem, 3.5vw, 2.3rem);
  font-weight: 800;
}

.generator__header p:last-child {
  margin-top: 12px;
  color: var(--muted);
}

.generator-app {
  max-width: 980px;
  margin: 0 auto;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.7) inset,
    0 22px 48px rgba(15, 23, 42, 0.1);
}

.generator-app__body {
  display: grid;
  grid-template-columns: 1fr;
  min-height: 0;
}

.generator-app__form {
  padding: 22px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: linear-gradient(180deg, #fff, #fbfcfe);
}

.generator-app__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.field__label,
.generator-app .field label {
  display: block;
  margin-bottom: 8px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
  letter-spacing: -0.01em;
}

.gen-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.gen-chip {
  appearance: none;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink-2);
  cursor: pointer;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: border-color 0.18s var(--ease), background 0.18s var(--ease),
    color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}

.gen-chip:hover {
  border-color: #93c5fd;
  color: var(--ink);
}

.gen-chip.is-active {
  border-color: rgba(37, 99, 235, 0.45);
  background: var(--blue-soft);
  color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.08);
}

.gen-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.generator-app .field input,
.generator-app .field select {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.generator-app .field input:hover,
.generator-app .field select:hover {
  border-color: #cbd5e1;
}

.generator-app .field input:focus,
.generator-app .field select:focus {
  outline: none;
  border-color: #93c5fd;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.generator-app__submit {
  width: 100%;
  margin-top: 4px;
}

.generator-note {
  margin: 0;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.45;
}

.generator-note a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.generator-preview {
  display: none;
  border-top: 1px solid var(--line-soft);
  background:
    linear-gradient(180deg, rgba(248, 250, 252, 0.95), #f1f5f9 40%, #eef2f7);
  padding: 16px;
}

.generator-preview__bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}

.generator-preview__live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--blue);
  font-size: 11.5px;
}

.generator-preview__live i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue);
  display: block;
  animation: pulse-dot 1.2s ease infinite;
}

.generator-preview__sheet {
  background: #fff;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 14px;
  padding: 18px 16px 16px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
  min-height: 280px;
  display: flex;
  flex-direction: column;
}

.generator-preview__type {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: 0.01em;
}

.generator-preview__topic {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.25;
  color: var(--ink);
  min-height: 2.5em;
}

.generator-preview__topic.is-placeholder {
  color: var(--muted-2);
  font-weight: 600;
  font-style: italic;
}

.generator-preview__toc {
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
}

.generator-preview__toc li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding: 7px 0;
  border-bottom: 1px dashed rgba(226, 232, 240, 0.95);
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.35;
}

.generator-preview__toc li:last-child {
  border-bottom: 0;
}

.generator-preview__toc li.is-sub {
  padding-left: 12px;
  font-size: 12.5px;
  color: var(--muted);
}

.generator-preview__toc li em {
  font-style: normal;
  font-family: var(--font-display);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--muted-2);
}

.generator-preview__foot {
  margin: 14px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--line-soft);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}

@media (min-width: 880px) {
  .generator-app__body {
    grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.92fr);
  }

  .generator-app__form {
    padding: 26px 24px 22px;
    border-right: 1px solid var(--line-soft);
  }

  .generator-preview {
    display: block;
    border-top: 0;
    padding: 18px 18px 20px;
  }
}

/* ——— Pricing ——— */
.pricing {
  padding: 80px 0;
}

.pricing__header {
  text-align: center;
  max-width: 540px;
  margin: 0 auto 40px;
}

.pricing__header h2 {
  font-size: clamp(1.7rem, 3.5vw, 2.3rem);
  font-weight: 800;
}

.pricing__header p:last-child {
  margin-top: 12px;
  color: var(--muted);
}

.pricing__grid {
  display: grid;
  gap: 16px;
}

.price {
  position: relative;
  padding: 30px 26px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
    border-color 0.25s var(--ease);
}

.price:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: #cbd5e1;
}

.price--featured {
  border-color: #bfdbfe;
  background: linear-gradient(180deg, var(--blue-soft), #fff 42%);
  box-shadow: var(--shadow);
}

.price--featured:hover {
  box-shadow: var(--shadow-lg);
}

.price__badge {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-family: var(--font-display);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.price h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.price__desc {
  color: var(--muted);
  font-size: 14.5px;
  margin-bottom: 18px;
}

.price__amount {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 4px;
}

.price__value {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 800;
  letter-spacing: -0.05em;
  color: var(--ink);
  line-height: 1;
}

.price__currency {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--ink);
}

.price__period {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 22px;
}

.price__features {
  display: grid;
  gap: 11px;
  margin-bottom: 26px;
  flex: 1;
}

.price__features li {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  font-size: 14.5px;
  color: var(--ink-2);
}

.price__features svg {
  margin-top: 3px;
  color: var(--blue);
}

.price .btn {
  width: 100%;
}

.pricing__legal {
  margin: 28px auto 0;
  max-width: 640px;
  text-align: center;
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.5;
}

.pricing__legal a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ——— FAQ ——— */
.faq {
  padding: 48px 0 48px;
  background: linear-gradient(180deg, var(--bg-soft) 0%, #ffffff 55%, #ffffff 100%);
}

.faq__header {
  text-align: center;
  max-width: 480px;
  margin: 0 auto 36px;
}

.faq__header h2 {
  font-size: clamp(1.7rem, 3.5vw, 2.3rem);
  font-weight: 800;
}

.faq__list {
  max-width: 720px;
  margin: 0 auto;
  display: grid;
  gap: 10px;
}

.faq-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.faq-item:hover {
  border-color: #cbd5e1;
}

.faq-item.is-open {
  border-color: #bfdbfe;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.06);
}

.faq-item__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  text-align: left;
  padding: 18px 20px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15.5px;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.faq-item__q svg {
  flex-shrink: 0;
  color: var(--muted);
  transition: transform 0.28s var(--ease), color 0.2s;
}

.faq-item.is-open .faq-item__q svg {
  transform: rotate(45deg);
  color: var(--blue);
}

.faq-item__a {
  display: none;
  padding: 0 20px 18px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

.faq-item.is-open .faq-item__a {
  display: block;
  animation: faq-in 0.28s var(--ease);
}

@keyframes faq-in {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ——— Footer: soft blue wash, CTA on readable blue ——— */
.site-footer {
  position: relative;
  z-index: 1;
  margin-top: 16px;
  padding: 0 0 44px;
  border-top: 0;
  background:
    linear-gradient(
      180deg,
      var(--bg, #ffffff) 0%,
      #fcfdff 4%,
      #f5f9ff 9%,
      #eef5ff 15%,
      #e4effe 22%,
      #d4e6fc 30%,
      #bdd7f9 38%,
      #9fc5f5 46%,
      #7eb0f0 54%,
      #5b9aeb 62%,
      #3d86e6 70%,
      var(--blue, #2563eb) 82%,
      #1d4ed8 100%
    );
  color: rgba(255, 255, 255, 0.92);
  overflow: hidden;
  isolation: isolate;
}

.footer-atmosphere {
  position: absolute;
  inset: 0 0 auto;
  height: 400px;
  pointer-events: none;
  z-index: 0;
}

.footer-atmosphere__bloom {
  position: absolute;
  left: 50%;
  top: -10px;
  width: min(1400px, 160vw);
  height: 280px;
  transform: translateX(-50%);
  background:
    radial-gradient(ellipse 50% 65% at 50% 100%, rgba(37, 99, 235, 0.28), transparent 70%),
    radial-gradient(ellipse 70% 50% at 50% 100%, rgba(96, 165, 250, 0.22), transparent 74%);
  filter: blur(48px);
}

.footer-atmosphere__veil {
  position: absolute;
  inset: 0 0 auto;
  height: 220px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.95) 0%,
    rgba(255, 255, 255, 0.7) 28%,
    rgba(255, 255, 255, 0.35) 55%,
    rgba(255, 255, 255, 0.1) 78%,
    transparent 100%
  );
}

.footer-atmosphere__mist {
  display: none;
}

.footer-atmosphere__mark {
  position: absolute;
  left: 50%;
  top: 152px;
  transform: translateX(-50%);
  width: 64px;
  height: 64px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: #fff;
  border: 0;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.14);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.footer-atmosphere__mark span {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 28px;
  letter-spacing: -0.05em;
  color: var(--blue, #2563eb);
  text-shadow: none;
}

.footer__cta {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 248px 0 52px;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}

.footer__cta-title {
  font-size: clamp(1.7rem, 3.6vw, 2.25rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.035em;
  margin-bottom: 12px;
  text-shadow: 0 2px 16px rgba(15, 23, 42, 0.22);
}

.footer__cta-text {
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(0.98rem, 1.9vw, 1.08rem);
  margin-bottom: 24px;
  line-height: 1.5;
  text-shadow: 0 1px 10px rgba(15, 23, 42, 0.18);
}

.btn-footer {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  background: #fff;
  color: var(--ink, #0f172a);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.015em;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.14);
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease);
}

.btn-footer:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.18);
}

.btn-footer:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.site-footer > .container:not(.footer__cta) {
  position: relative;
  z-index: 1;
}

.footer__top {
  display: grid;
  gap: 36px;
  margin-bottom: 40px;
  padding-top: 8px;
}

.footer__brand p {
  margin-top: 14px;
  max-width: 32ch;
  color: rgba(255, 255, 255, 0.84);
  font-size: 15px;
  text-shadow: 0 1px 10px rgba(15, 23, 42, 0.16);
}

.site-footer .logo--on-blue .logo__mark {
  background: #fff;
  color: var(--blue, #2563eb);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.12);
}

.site-footer .logo--on-blue .logo__word {
  color: #fff;
}

.footer__cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.footer__col h4 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 14px;
  text-shadow: 0 1px 10px rgba(15, 23, 42, 0.18);
}

.footer__col a {
  display: block;
  padding: 5px 0;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.9);
  transition: color 0.2s var(--ease), opacity 0.2s var(--ease);
}

.footer__col a:hover {
  color: #fff;
}

.footer__bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.62);
}

.footer__mail {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

.footer__mail:hover {
  color: #fff;
}

@media (max-width: 639px) {
  .footer-atmosphere {
    height: 340px;
  }

  .footer-atmosphere__mark {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    top: 128px;
  }

  .footer-atmosphere__mark span {
    font-size: 24px;
  }

  .footer__cta {
    padding: 216px 0 44px;
  }
}

/* ——— Reveal ——— */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

/* ——— Responsive ——— */
@media (min-width: 640px) {
  :root {
    --gutter: 28px;
  }

  .header-actions .btn-primary {
    display: inline-flex;
  }

  .pricing__grid {
    grid-template-columns: repeat(3, 1fr);
    align-items: stretch;
  }

  .benefits__list {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  .benefit--window {
    min-height: 100%;
  }

  .footer__cols {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 900px) {
  .menu-toggle {
    display: none;
  }

  .nav-desktop {
    display: flex;
  }

  .nav-mobile {
    display: none;
  }

  .showcase-panel__pane {
    grid-template-columns: 0.92fr 1.18fr;
  }

  .showcase-panel__copy {
    padding: 40px 36px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .showcase-panel__preview {
    padding: 36px 32px 0;
    min-height: 400px;
  }

  .ui-app__body {
    grid-template-columns: 148px 1fr;
    min-height: 340px;
  }

  .footer__top {
    grid-template-columns: 1.2fr 2fr;
    gap: 48px;
  }

  .hero-stage {
    margin-top: 60px;
    height: clamp(380px, 42vw, 500px);
  }

  .hero {
    padding-top: 52px;
  }
}

@media (min-width: 1100px) {
  .benefits__list {
    grid-template-columns: 1fr 1fr;
    gap: 22px;
  }

  .benefit__preview {
    padding: 16px 16px 0;
  }

  .ui-app__main--solo {
    min-height: 190px;
  }
}

@media (max-width: 639px) {
  .draft-card--g1,
  .draft-card--g2,
  .draft-card--g3,
  .draft-card--g4,
  .draft-card--far,
  .draft-card--6 {
    display: none;
  }

  .draft-card {
    width: min(168px, 44vw);
    padding: 11px;
  }

  .draft-card__head {
    grid-template-columns: 1fr;
  }

  .draft-card__avatar {
    display: none;
  }

  .hero-stage {
    height: 280px;
    margin-top: 36px;
  }

  .hero-stage__anchor {
    width: 52px;
    height: 52px;
    font-size: 22px;
  }

  .showcase-tab__num {
    display: none;
  }

  .showcase-tab span:not(.showcase-tab__num) {
    font-size: 13px;
  }

  .showcase-tab:not(.is-active) span:last-child {
    display: none;
  }

  .showcase-tab.is-active {
    padding-inline: 14px;
  }

  .showcase-tabs__pill {
    height: 42px;
  }

  .ui-app__body {
    grid-template-columns: 1fr;
  }

  .ui-app__side {
    display: flex;
    gap: 4px;
    border-right: 0;
    border-bottom: 1px solid var(--line-soft);
    overflow-x: auto;
    padding-bottom: 10px;
  }

  .ui-app__side-label {
    display: none;
  }

  .ui-app__side-item {
    white-space: nowrap;
  }

  .mega {
    width: min(100vw - 24px, 960px);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .draft-card,
  .hero-stage__ring,
  .hero__brand,
  .hero__brand-mark,
  .hero__brand-word,
  .hero h1,
  .hero h1 .accent,
  .hero__lead,
  .hero__cta,
  .hero-trust li,
  .page-atmosphere,
  .page-atmosphere__peak,
  .site-header,
  .mega-card,
  .mega__aside {
    animation: none !important;
  }

  .nav-item.is-open > .mega,
  .nav-item.is-closing > .mega {
    transition: none !important;
    transform: none;
  }

  .examples-tabs__pill,
  .examples-panel__pane,
  .examples-panel__pane.is-active,
  .examples-panel__pane.is-leaving {
    transition: none !important;
    transform: none !important;
  }

  .draft-card,
  .draft-card--ghost,
  .draft-card--far,
  .hero-stage__anchor,
  .hero-stage__beam,
  .hero-stage__pedestal,
  .hero-stage__fade,
  .hero-trust li,
  .page-atmosphere,
  .page-atmosphere__peak,
  .site-header {
    opacity: 1 !important;
    transform: none;
    filter: none;
  }

  .draft-card--1,
  .draft-card--2,
  .draft-card--3,
  .draft-card--4,
  .draft-card--5,
  .draft-card--6 {
    transform: translate(var(--base-x), var(--base-y));
  }

  .draft-card--ghost.is-in {
    opacity: 0.4 !important;
  }

  .draft-card--far.is-in {
    opacity: 0.24 !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .faq-item.is-open .faq-item__a {
    animation: none;
  }

  .btn-primary:hover,
  .btn-secondary:hover,
  .btn-footer:hover,
  .price:hover,
  .mega-card:hover {
    transform: none;
  }

  .benefit:hover {
    transform: none;
  }

  .rd-auth.is-open .rd-auth__backdrop,
  .rd-auth.is-open .rd-auth__panel,
  .rd-auth.is-closing .rd-auth__backdrop,
  .rd-auth.is-closing .rd-auth__panel {
    transition: none;
  }
}

/* ——— Auth modal (редизайн) ——— */
.footer__auth-link {
  display: block;
  margin: 0;
  padding: 5px 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.9);
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.2s var(--ease);
}

a.footer__auth-link {
  color: rgba(255, 255, 255, 0.9);
}

.footer__auth-link:hover {
  color: #fff;
}

.rd-auth {
  --rd-auth-ease: cubic-bezier(0.25, 0.1, 0.25, 1);
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px var(--gutter);
  visibility: hidden;
  pointer-events: none;
}

.rd-auth.is-open,
.rd-auth.is-closing {
  visibility: visible;
  pointer-events: auto;
}

.rd-auth.is-closing {
  pointer-events: none;
}

.rd-auth__backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(37, 99, 235, 0.12), transparent 55%),
    rgba(11, 18, 32, 0.4);
  opacity: 0;
  transition: opacity 0.22s var(--rd-auth-ease);
}

.rd-auth.is-open .rd-auth__backdrop {
  opacity: 1;
}

.rd-auth.is-closing .rd-auth__backdrop {
  opacity: 0;
  transition-duration: 0.18s;
}

.rd-auth__panel {
  position: relative;
  z-index: 1;
  width: min(100%, 420px);
  max-height: min(92vh, 720px);
  overflow: auto;
  overscroll-behavior: contain;
  padding: 28px 28px 26px;
  background:
    linear-gradient(180deg, rgba(239, 246, 255, 0.55) 0%, #fff 42%),
    #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: translate3d(0, 12px, 0);
  transition:
    opacity 0.24s var(--rd-auth-ease),
    transform 0.24s var(--rd-auth-ease);
}

.rd-auth.is-open .rd-auth__panel {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.rd-auth.is-closing .rd-auth__panel {
  opacity: 0;
  transform: translate3d(0, 8px, 0);
  transition-duration: 0.18s;
}

.rd-auth__close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  color: var(--muted);
  transition: background 0.15s ease, color 0.15s ease;
}

.rd-auth__close:hover {
  background: var(--line-soft);
  color: var(--ink);
}

.rd-auth__close:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.rd-auth__brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
}

.rd-auth__mark {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--blue);
  color: #fff;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.rd-auth__word {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.rd-auth__tabs {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  margin-bottom: 22px;
  background: var(--bg-soft);
  border: 1px solid var(--line-soft);
  border-radius: 12px;
}

.rd-auth__tabs.is-hidden {
  display: none;
}

.rd-auth__tab {
  position: relative;
  z-index: 1;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 9px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 650;
  letter-spacing: -0.015em;
  color: var(--muted);
  transition: color 0.15s ease;
}

.rd-auth__tab.is-active,
.rd-auth__tab[aria-selected="true"] {
  color: var(--ink);
}

.rd-auth__tab:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.rd-auth__tab-pill {
  position: absolute;
  top: 4px;
  left: 0;
  z-index: 0;
  height: calc(100% - 8px);
  border-radius: 9px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
  transform: translate3d(4px, 0, 0);
  transition:
    transform 0.22s var(--rd-auth-ease),
    width 0.22s var(--rd-auth-ease),
    opacity 0.15s ease;
  pointer-events: none;
  opacity: 0;
}

.rd-auth__tab-pill.is-ready {
  opacity: 1;
}

.rd-auth__title {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1.25;
}

.rd-auth__hint {
  margin: 0 0 20px;
  font-size: 15px;
  line-height: 1.45;
  color: var(--muted);
  min-height: 1.45em;
}

.rd-auth__views {
  position: relative;
  min-height: 248px;
}

.rd-auth__form {
  display: none;
  flex-direction: column;
  gap: 14px;
}

.rd-auth__form.is-active {
  display: flex;
}

.rd-auth__form.is-entering {
  animation: rd-auth-fade 0.2s var(--rd-auth-ease) both;
}

@keyframes rd-auth-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

.rd-auth__field label {
  display: block;
  margin-bottom: 6px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
  letter-spacing: -0.01em;
}

.rd-auth__label-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}

.rd-auth__label-row label {
  margin-bottom: 0;
}

.rd-auth__field input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.rd-auth__field input:hover {
  border-color: #cbd5e1;
}

.rd-auth__field input:focus {
  outline: none;
  border-color: #93c5fd;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.rd-auth__text-btn {
  padding: 0;
  border: 0;
  background: none;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  color: var(--blue);
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: color 0.15s ease;
}

.rd-auth__text-btn:hover {
  color: var(--blue-hover);
}

.rd-auth__text-btn:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
  border-radius: 4px;
}

.rd-auth__error {
  min-height: 1.3em;
  font-size: 13.5px;
  line-height: 1.35;
  color: #b91c1c;
}

.rd-auth__error:empty {
  display: none;
}

.rd-auth__submit {
  width: 100%;
  margin-top: 4px;
}

.rd-auth__legal,
.rd-auth__note {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--muted);
}

.rd-auth__legal a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.rd-auth__legal a:hover {
  color: var(--blue-hover);
}

.rd-auth__footer {
  margin: 2px 0 0;
  text-align: center;
  font-size: 14px;
  color: var(--muted);
}

.rd-auth__footer .rd-auth__text-btn {
  font-size: 14px;
}

body.rd-auth-open {
  overflow: hidden;
}

@media (max-width: 560px) {
  .rd-auth {
    align-items: flex-end;
    padding: 0;
  }

  .rd-auth__panel {
    width: 100%;
    max-height: min(94vh, 780px);
    border-radius: 20px 20px 0 0;
    padding: 24px 20px calc(20px + env(safe-area-inset-bottom, 0px));
    transform: translate3d(0, 24px, 0);
  }

  .rd-auth.is-open .rd-auth__panel {
    transform: translate3d(0, 0, 0);
  }

  .rd-auth.is-closing .rd-auth__panel {
    transform: translate3d(0, 16px, 0);
  }

  .rd-auth__views {
    min-height: 220px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rd-auth__backdrop,
  .rd-auth__panel,
  .rd-auth__form.is-entering,
  .rd-auth__tab-pill {
    animation: none !important;
    transition: none !important;
  }

  .rd-auth.is-open .rd-auth__panel,
  .rd-auth.is-closing .rd-auth__panel {
    transform: none;
    opacity: 1;
  }

  .rd-auth.is-closing .rd-auth__backdrop {
    opacity: 0;
  }
}
