/* ==========================================================================
   SvoyBiznesIzDoma — единая дизайн-система
   ========================================================================== */

:root {
  --bg-950: #020b20;
  --bg-900: #051434;
  --bg-850: #071b46;
  --bg-800: #0a255e;
  --surface: rgba(12, 37, 84, 0.62);
  --surface-strong: rgba(9, 29, 67, 0.9);
  --surface-soft: rgba(117, 190, 255, 0.08);
  --line: rgba(151, 214, 255, 0.22);
  --line-strong: rgba(151, 214, 255, 0.46);
  --text: #f6fbff;
  --text-soft: #c6d7ea;
  --text-muted: #91a9c4;
  --accent: #7bd2ff;
  --accent-strong: #42b9ff;
  --accent-ink: #02214c;
  --success: #9ce3c2;
  --warning: #ffd68c;
  --danger: #ffb3b3;
  --shadow: 0 24px 70px rgba(0, 8, 29, 0.36);
  --shadow-soft: 0 12px 38px rgba(0, 8, 29, 0.24);
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 30px;
  --container: 1180px;
  --header-height: 76px;
  --step--1: clamp(0.86rem, 0.82rem + 0.16vw, 0.96rem);
  --step-0: clamp(1rem, 0.94rem + 0.25vw, 1.12rem);
  --step-1: clamp(1.15rem, 1.03rem + 0.52vw, 1.38rem);
  --step-2: clamp(1.4rem, 1.16rem + 0.95vw, 1.9rem);
  --step-3: clamp(1.8rem, 1.35rem + 1.8vw, 2.7rem);
  --step-4: clamp(2.4rem, 1.52rem + 3.5vw, 4.3rem);
  --step-5: clamp(3.1rem, 1.75rem + 5.4vw, 6rem);
  --space-1: clamp(0.5rem, 0.42rem + 0.3vw, 0.75rem);
  --space-2: clamp(0.8rem, 0.66rem + 0.45vw, 1.1rem);
  --space-3: clamp(1.15rem, 0.92rem + 0.8vw, 1.7rem);
  --space-4: clamp(1.7rem, 1.24rem + 1.6vw, 2.7rem);
  --space-5: clamp(2.6rem, 1.74rem + 3vw, 4.5rem);
  --space-6: clamp(4rem, 2.4rem + 5.5vw, 7rem);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 24px);
  color-scheme: dark;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    Arial, sans-serif;
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--text);
  background:
    radial-gradient(circle at 84% 8%, rgba(67, 164, 255, 0.16), transparent 28rem),
    radial-gradient(circle at 12% 32%, rgba(33, 95, 185, 0.13), transparent 34rem),
    var(--bg-950);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -3;
  content: "";
  pointer-events: none;
  background-image:
    linear-gradient(rgba(126, 198, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(126, 198, 255, 0.045) 1px, transparent 1px),
    linear-gradient(rgba(126, 198, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(126, 198, 255, 0.018) 1px, transparent 1px);
  background-size:
    64px 64px,
    64px 64px,
    16px 16px,
    16px 16px;
  mask-image: linear-gradient(to bottom, black 0%, rgba(0, 0, 0, 0.6) 75%, transparent 100%);
}

body::after {
  position: fixed;
  inset: 0;
  z-index: -2;
  content: "";
  pointer-events: none;
  background:
    linear-gradient(125deg, transparent 0 67%, rgba(116, 203, 255, 0.045) 67.1% 67.3%, transparent 67.4%),
    linear-gradient(145deg, transparent 0 79%, rgba(116, 203, 255, 0.04) 79.1% 79.3%, transparent 79.4%);
}

::selection {
  color: var(--accent-ink);
  background: var(--accent);
}

img,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

a {
  color: inherit;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.2em;
}

button,
input,
textarea,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
  border-radius: 6px;
}

h1,
h2,
h3,
p,
ul,
ol,
dl,
blockquote {
  margin-top: 0;
}

h1,
h2,
h3 {
  line-height: 1.12;
  text-wrap: balance;
  overflow-wrap: anywhere;
  hyphens: auto;
}

h1 {
  margin-bottom: var(--space-3);
  font-size: var(--step-5);
  letter-spacing: -0.045em;
}

h2 {
  margin-bottom: var(--space-3);
  font-size: var(--step-3);
  letter-spacing: -0.03em;
}

h3 {
  margin-bottom: var(--space-2);
  font-size: var(--step-2);
  letter-spacing: -0.02em;
}

p {
  color: var(--text-soft);
}

ul,
ol {
  padding-left: 1.15em;
}

li + li {
  margin-top: 0.52em;
}

strong {
  color: var(--text);
}

.container {
  width: min(calc(100% - 40px), var(--container));
  margin-inline: auto;
}

.container--narrow {
  width: min(calc(100% - 40px), 840px);
  margin-inline: auto;
}

.section {
  position: relative;
  padding-block: var(--space-6);
}

.section--compact {
  padding-block: var(--space-5);
}

.section--tinted {
  background:
    linear-gradient(180deg, rgba(8, 31, 72, 0.58), rgba(4, 18, 44, 0.74)),
    repeating-linear-gradient(
      90deg,
      transparent 0 63px,
      rgba(130, 207, 255, 0.025) 63px 64px
    );
  border-block: 1px solid var(--line);
}

.section--blueprint {
  position: relative;
  overflow: hidden;
}

.section--blueprint::after {
  position: absolute;
  right: -10rem;
  bottom: -8rem;
  width: min(46rem, 80vw);
  aspect-ratio: 1;
  content: "";
  pointer-events: none;
  opacity: 0.32;
  background:
    linear-gradient(135deg, transparent 0 40%, rgba(130, 208, 255, 0.36) 40.1% 40.3%, transparent 40.4%),
    linear-gradient(150deg, transparent 0 54%, rgba(130, 208, 255, 0.26) 54.1% 54.3%, transparent 54.4%),
    linear-gradient(165deg, transparent 0 66%, rgba(130, 208, 255, 0.2) 66.1% 66.3%, transparent 66.4%);
  transform: rotate(-8deg);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: var(--space-2);
  color: var(--accent);
  font-size: var(--step--1);
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 34px;
  height: 1px;
  content: "";
  background: var(--accent);
  box-shadow: 44px 0 0 rgba(123, 210, 255, 0.24);
}

.lead {
  max-width: 68ch;
  color: var(--text-soft);
  font-size: var(--step-1);
  line-height: 1.6;
}

.section-heading {
  display: grid;
  gap: 0.4rem;
  max-width: 850px;
  margin-bottom: var(--space-4);
}

.section-heading p {
  max-width: 68ch;
  margin-bottom: 0;
  font-size: var(--step-1);
}

.section-heading--center {
  margin-inline: auto;
  text-align: center;
}

.section-heading--center .eyebrow {
  justify-content: center;
}

.section-heading--center p {
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 999;
  padding: 0.75rem 1rem;
  color: var(--accent-ink);
  background: var(--accent);
  border-radius: 10px;
  transform: translateY(-150%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}


.hero-copy,
.split > *,
.product-card__body,
.author-card__content,
.purchase-content,
.section-heading {
  min-width: 0;
}

/* Header ------------------------------------------------------------------ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  min-height: var(--header-height);
  border-bottom: 1px solid transparent;
  transition:
    background 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.site-header[data-scrolled="true"] {
  background: rgba(2, 11, 32, 0.84);
  border-color: var(--line);
  box-shadow: 0 10px 40px rgba(0, 7, 24, 0.3);
  backdrop-filter: blur(16px);
}

.header-inner {
  display: flex;
  min-height: var(--header-height);
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: 0.8rem;
  color: var(--text);
  text-decoration: none;
}

.brand__mark {
  position: relative;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  overflow: hidden;
  color: var(--text);
  font-size: 1.2rem;
  font-weight: 850;
  background: linear-gradient(145deg, var(--bg-800), var(--bg-900));
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  box-shadow: inset 0 0 18px rgba(124, 210, 255, 0.1);
}

.brand__mark::before {
  position: absolute;
  inset: 0;
  content: "";
  background-image:
    linear-gradient(rgba(151, 214, 255, 0.13) 1px, transparent 1px),
    linear-gradient(90deg, rgba(151, 214, 255, 0.13) 1px, transparent 1px);
  background-size: 10px 10px;
}

.brand__mark span {
  position: relative;
}

.brand__text {
  display: grid;
  line-height: 1.08;
}

.brand__text strong {
  font-size: 0.95rem;
  letter-spacing: 0.01em;
}

.brand__text small {
  margin-top: 0.2rem;
  color: var(--text-muted);
  font-size: 0.7rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.desktop-nav a:not(.button) {
  color: var(--text-soft);
  font-size: 0.94rem;
  font-weight: 650;
  text-decoration: none;
  transition: color 150ms ease;
}

.desktop-nav a:not(.button):hover {
  color: var(--accent);
}

.menu-toggle {
  position: relative;
  display: none;
  width: 46px;
  height: 46px;
  padding: 0;
  cursor: pointer;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.menu-toggle span,
.menu-toggle::before,
.menu-toggle::after {
  position: absolute;
  left: 12px;
  width: 20px;
  height: 2px;
  content: "";
  background: currentColor;
  border-radius: 10px;
  transition:
    transform 180ms ease,
    opacity 180ms ease,
    top 180ms ease;
}

.menu-toggle::before {
  top: 14px;
}

.menu-toggle span {
  top: 21px;
}

.menu-toggle::after {
  top: 28px;
}

.menu-toggle[aria-expanded="true"]::before {
  top: 21px;
  transform: rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"]::after {
  top: 21px;
  transform: rotate(-45deg);
}

.mobile-menu {
  position: fixed;
  top: calc(var(--header-height) + 10px);
  right: 20px;
  left: 20px;
  z-index: 99;
  display: grid;
  gap: 0.4rem;
  max-height: calc(100vh - var(--header-height) - 30px);
  padding: 1rem;
  overflow-y: auto;
  visibility: hidden;
  background: rgba(4, 17, 43, 0.97);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(-10px) scale(0.98);
  transition:
    opacity 160ms ease,
    transform 160ms ease,
    visibility 160ms ease;
  backdrop-filter: blur(20px);
}

.mobile-menu[data-open="true"] {
  visibility: visible;
  opacity: 1;
  transform: translateY(0) scale(1);
}

.mobile-menu a {
  padding: 0.85rem 0.95rem;
  color: var(--text-soft);
  font-weight: 650;
  text-decoration: none;
  border-radius: 12px;
}

.mobile-menu a:hover,
.mobile-menu a:focus-visible {
  color: var(--text);
  background: var(--surface-soft);
}

/* Buttons ----------------------------------------------------------------- */

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.78rem 1.18rem;
  cursor: pointer;
  color: var(--accent-ink);
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  background: linear-gradient(135deg, #9ce1ff, #53bfff);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 14px;
  box-shadow:
    0 12px 30px rgba(66, 185, 255, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
  transition:
    transform 150ms ease,
    box-shadow 150ms ease,
    filter 150ms ease;
}

.button:hover {
  filter: brightness(1.05);
  box-shadow:
    0 16px 38px rgba(66, 185, 255, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
  transform: translateY(-2px);
}

.button:active {
  transform: translateY(0);
}

.button--secondary {
  color: var(--text);
  background: rgba(10, 39, 88, 0.72);
  border-color: var(--line-strong);
  box-shadow: none;
}

.button--secondary:hover {
  background: rgba(16, 55, 112, 0.8);
  box-shadow: 0 12px 30px rgba(0, 9, 30, 0.28);
}

.button--small {
  min-height: 42px;
  padding: 0.65rem 1rem;
  font-size: 0.9rem;
  border-radius: 12px;
}

.button--full {
  width: 100%;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--accent);
  font-weight: 750;
  text-decoration: none;
}

.text-link:hover {
  text-decoration: underline;
}

/* Hero -------------------------------------------------------------------- */

.hero {
  position: relative;
  min-height: calc(100svh - var(--header-height));
  padding-block: clamp(3rem, 6vw, 6.5rem);
  overflow: hidden;
}

.hero::before {
  position: absolute;
  top: 8%;
  right: -16rem;
  width: min(52rem, 85vw);
  aspect-ratio: 1;
  content: "";
  pointer-events: none;
  background:
    repeating-linear-gradient(125deg, transparent 0 42px, rgba(126, 206, 255, 0.07) 42px 43px),
    repeating-linear-gradient(35deg, transparent 0 54px, rgba(126, 206, 255, 0.04) 54px 55px);
  border: 1px solid rgba(132, 208, 255, 0.08);
  border-radius: 50%;
  transform: rotate(12deg);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: 650px;
  align-items: center;
  gap: var(--space-5);
  grid-template-columns: minmax(0, 1.12fr) minmax(330px, 0.88fr);
}

.hero-copy {
  max-width: 760px;
}

.hero-copy .lead {
  margin-bottom: var(--space-3);
}

.hero-result {
  max-width: 68ch;
  margin-bottom: var(--space-3);
  color: var(--text);
  font-size: var(--step-1);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: var(--space-3);
}

.hero-note {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  max-width: 62ch;
  margin: 0;
  color: var(--text-muted);
  font-size: var(--step--1);
}

.hero-note::before {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  margin-top: 0.55em;
  content: "";
  background: var(--success);
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(156, 227, 194, 0.1);
}

.hero-product {
  position: relative;
  display: grid;
  place-items: center;
}

.product-mockup {
  position: relative;
  width: min(350px, 78vw);
  perspective: 1100px;
}

.product-mockup::before {
  position: absolute;
  right: -20%;
  bottom: -10%;
  left: -20%;
  height: 30%;
  content: "";
  background: rgba(61, 165, 255, 0.2);
  border-radius: 50%;
  filter: blur(35px);
  transform: rotate(-6deg);
}

.product-mockup__book {
  position: relative;
  border-radius: 8px 16px 16px 8px;
  box-shadow:
    -28px 28px 60px rgba(0, 0, 0, 0.46),
    22px 18px 52px rgba(16, 91, 176, 0.2);
  transform: rotateY(-10deg) rotateX(2deg) rotateZ(-1.5deg);
  transform-origin: center;
  transition: transform 260ms ease;
}

.product-mockup:hover .product-mockup__book {
  transform: rotateY(-4deg) rotateX(1deg) rotateZ(0deg) translateY(-5px);
}

.product-mockup__book::before {
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: -13px;
  width: 14px;
  content: "";
  background: linear-gradient(90deg, #030b1c, #194a9a 70%, #0a2657);
  border-radius: 5px 0 0 5px;
  transform: skewY(-11deg);
  transform-origin: right;
}

.product-mockup__book::after {
  position: absolute;
  right: 5px;
  bottom: -13px;
  left: 8px;
  height: 14px;
  content: "";
  background: repeating-linear-gradient(
    0deg,
    #f1f5fa 0 2px,
    #cbd6e2 2px 3px
  );
  border-radius: 0 0 12px 5px;
  transform: skewX(-14deg);
  transform-origin: top;
}

.product-mockup img {
  position: relative;
  z-index: 1;
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 7px 14px 14px 7px;
}

.price-panel {
  position: absolute;
  right: -28px;
  bottom: 20px;
  z-index: 3;
  display: grid;
  min-width: 210px;
  gap: 0.6rem;
  padding: 1.1rem;
  background: rgba(4, 18, 46, 0.9);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(16px);
}

.price-panel small {
  color: var(--text-muted);
}

.price-panel strong {
  font-size: 1.8rem;
  line-height: 1;
}

.fact-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.fact-list li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.52rem 0.72rem;
  margin: 0;
  color: var(--text-soft);
  font-size: var(--step--1);
  background: rgba(96, 180, 255, 0.07);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.fact-list li::before {
  width: 6px;
  height: 6px;
  content: "";
  background: var(--accent);
  border-radius: 50%;
}

/* Cards and grids --------------------------------------------------------- */

.glass-card {
  padding: var(--space-3);
  background:
    linear-gradient(145deg, rgba(18, 56, 119, 0.44), rgba(6, 23, 56, 0.74));
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(12px);
}

.card-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card-grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.icon-card {
  position: relative;
  min-height: 100%;
  overflow: hidden;
}

.icon-card::before {
  position: absolute;
  top: -20px;
  right: -20px;
  width: 100px;
  aspect-ratio: 1;
  content: "";
  background: radial-gradient(circle, rgba(78, 185, 255, 0.16), transparent 70%);
}

.icon-card__number {
  display: grid;
  width: 46px;
  height: 46px;
  margin-bottom: 1rem;
  place-items: center;
  color: var(--accent);
  font-weight: 850;
  background: rgba(102, 190, 255, 0.08);
  border: 1px solid var(--line-strong);
  border-radius: 14px;
}

.icon-card p:last-child {
  margin-bottom: 0;
}

.check-list,
.cross-list {
  display: grid;
  gap: 0.8rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.check-list li,
.cross-list li {
  position: relative;
  padding-left: 2rem;
  margin: 0;
  color: var(--text-soft);
}

.check-list li::before,
.cross-list li::before {
  position: absolute;
  top: 0.1em;
  left: 0;
  display: grid;
  width: 1.4rem;
  height: 1.4rem;
  place-items: center;
  font-size: 0.78rem;
  font-weight: 900;
  border-radius: 50%;
}

.check-list li::before {
  color: #052b23;
  content: "✓";
  background: var(--success);
}

.cross-list li::before {
  color: #421d1d;
  content: "–";
  background: var(--danger);
}

.split {
  display: grid;
  align-items: center;
  gap: var(--space-5);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.split--top {
  align-items: start;
}

.quote-card {
  position: relative;
  padding: var(--space-4);
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(16, 53, 113, 0.62), rgba(5, 19, 47, 0.8));
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.quote-card::before {
  position: absolute;
  top: 0.1rem;
  right: 1.4rem;
  color: rgba(123, 210, 255, 0.18);
  content: "“";
  font-family: Georgia, serif;
  font-size: 9rem;
  line-height: 1;
}

.quote-card blockquote {
  position: relative;
  margin-bottom: 1rem;
  color: var(--text);
  font-size: var(--step-2);
  font-weight: 700;
  line-height: 1.4;
}

.quote-card cite {
  color: var(--text-muted);
  font-style: normal;
}

/* Formula ----------------------------------------------------------------- */

.formula {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  align-items: stretch;
  gap: 0.7rem;
}

.formula__step {
  position: relative;
  display: grid;
  min-height: 150px;
  align-content: center;
  justify-items: center;
  padding: 1rem;
  color: var(--text);
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
  background: linear-gradient(145deg, rgba(19, 63, 132, 0.5), rgba(7, 26, 61, 0.76));
  border: 1px solid var(--line);
  border-radius: 18px;
}

.formula__step:not(:last-child)::after {
  position: absolute;
  top: 50%;
  right: -0.7rem;
  z-index: 2;
  color: var(--accent);
  content: "→";
  font-size: 1.3rem;
  transform: translate(50%, -50%);
}

.formula__step span {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--accent);
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Results ----------------------------------------------------------------- */

.result-grid {
  display: grid;
  gap: 0.8rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.result-item {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  padding: 1rem;
  color: var(--text-soft);
  background: rgba(112, 194, 255, 0.055);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.result-item::before {
  flex: 0 0 auto;
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  color: var(--accent-ink);
  content: "✓";
  font-size: 0.85rem;
  font-weight: 900;
  background: var(--accent);
  border-radius: 8px;
}

/* Program ----------------------------------------------------------------- */

.program-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.program-card {
  position: relative;
  min-height: 100%;
  padding: var(--space-3);
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(16, 53, 113, 0.58), rgba(5, 18, 45, 0.84));
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
}

.program-card:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

.program-card__number {
  position: absolute;
  top: -0.1em;
  right: 0.2em;
  color: rgba(125, 210, 255, 0.08);
  font-size: 7.5rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.08em;
}

.program-card__day {
  position: relative;
  margin-bottom: 0.45rem;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.program-card h3 {
  position: relative;
  max-width: 80%;
}

.program-card dl {
  position: relative;
  display: grid;
  gap: 0.8rem;
  margin: 0;
}

.program-card dl > div {
  padding-top: 0.75rem;
  border-top: 1px solid var(--line);
}

.program-card dt {
  margin-bottom: 0.15rem;
  color: var(--text);
  font-size: 0.84rem;
  font-weight: 800;
}

.program-card dd {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.96rem;
}

/* AI loop ----------------------------------------------------------------- */

.ai-loop {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 0.8rem;
}

.ai-loop__node {
  min-height: 170px;
  display: grid;
  align-content: center;
  padding: 1.2rem;
  text-align: center;
  background: linear-gradient(145deg, rgba(18, 60, 125, 0.54), rgba(6, 22, 53, 0.8));
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.ai-loop__node strong {
  display: block;
  margin-bottom: 0.55rem;
  font-size: 1.15rem;
}

.ai-loop__node p {
  margin: 0;
  font-size: 0.92rem;
}

.ai-loop__arrow {
  color: var(--accent);
  font-size: 1.5rem;
}

/* Purchase ---------------------------------------------------------------- */

.purchase-block {
  display: grid;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4);
  background:
    radial-gradient(circle at 15% 20%, rgba(60, 167, 255, 0.16), transparent 20rem),
    linear-gradient(145deg, rgba(14, 48, 102, 0.9), rgba(4, 17, 42, 0.94));
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  grid-template-columns: minmax(210px, 0.62fr) minmax(0, 1.38fr);
}

.purchase-cover {
  width: min(250px, 65vw);
  margin-inline: auto;
  filter: drop-shadow(0 22px 34px rgba(0, 0, 0, 0.36));
}

.purchase-content h2,
.purchase-content h3 {
  margin-bottom: 0.8rem;
}

.purchase-price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.7rem;
  margin-block: 1.2rem;
}

.purchase-price strong {
  font-size: clamp(2rem, 1.6rem + 1.5vw, 3rem);
  line-height: 1;
}

.purchase-price span {
  color: var(--text-muted);
}

.purchase-delivery {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  margin: 1rem 0 0;
  color: var(--text-muted);
  font-size: var(--step--1);
}

.purchase-delivery::before {
  flex: 0 0 auto;
  width: 9px;
  height: 9px;
  margin-top: 0.48em;
  content: "";
  background: var(--success);
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(156, 227, 194, 0.1);
}

.purchase-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  padding: var(--space-3);
  background: linear-gradient(135deg, rgba(19, 65, 136, 0.7), rgba(6, 24, 59, 0.88));
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
}

.purchase-strip__copy {
  display: grid;
  gap: 0.25rem;
}

.purchase-strip__copy strong {
  font-size: var(--step-2);
}

.purchase-strip__copy span {
  color: var(--text-muted);
}

/* Product catalog --------------------------------------------------------- */

.product-grid {
  display: grid;
  gap: 1.2rem;
}

.product-card {
  display: grid;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(16, 52, 108, 0.58), rgba(5, 19, 47, 0.86));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  grid-template-columns: minmax(220px, 0.48fr) minmax(0, 1.52fr);
}

.product-card__cover {
  position: relative;
  display: grid;
  min-height: 100%;
  place-items: center;
  padding: 2rem;
  overflow: hidden;
  background:
    radial-gradient(circle, rgba(60, 161, 255, 0.18), transparent 65%),
    rgba(1, 12, 33, 0.55);
}

.product-card__cover::after {
  position: absolute;
  inset: 0;
  content: "";
  background-image:
    linear-gradient(rgba(131, 205, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(131, 205, 255, 0.045) 1px, transparent 1px);
  background-size: 24px 24px;
}

.product-card__cover img {
  position: relative;
  z-index: 1;
  width: min(230px, 58vw);
  border-radius: 6px;
  box-shadow: 0 20px 42px rgba(0, 0, 0, 0.42);
  transition: transform 220ms ease;
}

.product-card__cover:hover img {
  transform: translateY(-4px) rotate(-1deg);
}

.product-card__body {
  display: grid;
  align-content: center;
  padding: var(--space-4);
}

.product-card__body h3 a {
  text-decoration: none;
}

.product-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-block: 0.8rem 1.3rem;
}

.product-card__meta span {
  padding: 0.35rem 0.62rem;
  color: var(--text-muted);
  font-size: 0.82rem;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.product-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.product-card__footer strong {
  font-size: 1.5rem;
}

.empty-state {
  padding: 2rem;
  text-align: center;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-md);
}

/* Author ------------------------------------------------------------------ */

.author-card {
  display: grid;
  align-items: stretch;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(16, 51, 106, 0.58), rgba(5, 18, 45, 0.88));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  grid-template-columns: minmax(300px, 0.8fr) minmax(0, 1.2fr);
}

.author-card__media {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  background: #d8dce4;
}

.author-card__media::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(to right, transparent 55%, rgba(5, 18, 45, 0.6));
}

.author-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}

.author-card__content {
  display: grid;
  align-content: center;
  padding: var(--space-5);
}

.author-card__content h2 {
  margin-bottom: 0.4rem;
}

.author-role {
  margin-bottom: 1.3rem;
  color: var(--accent);
  font-weight: 750;
}

.author-directions {
  display: grid;
  gap: 0.6rem;
  padding: 0;
  margin: 1.2rem 0 0;
  list-style: none;
}

.author-directions li {
  position: relative;
  padding-left: 1.4rem;
  margin: 0;
  color: var(--text-soft);
}

.author-directions li::before {
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 8px;
  height: 1px;
  content: "";
  background: var(--accent);
}

/* Roadmap ----------------------------------------------------------------- */

.roadmap {
  position: relative;
  display: grid;
  gap: 0.9rem;
  max-width: 920px;
  margin-inline: auto;
}

.roadmap::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 25px;
  width: 1px;
  content: "";
  background: linear-gradient(var(--accent), var(--line), transparent);
}

.roadmap-item {
  position: relative;
  display: grid;
  gap: 0.25rem;
  padding: 1.1rem 1.1rem 1.1rem 4.4rem;
  background: rgba(10, 35, 78, 0.54);
  border: 1px solid var(--line);
  border-radius: 18px;
}

.roadmap-item::before {
  position: absolute;
  top: 1.25rem;
  left: 16px;
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  content: "";
  background: var(--bg-950);
  border: 4px solid var(--line-strong);
  border-radius: 50%;
}

.roadmap-item--active {
  background: linear-gradient(145deg, rgba(22, 72, 148, 0.72), rgba(7, 28, 66, 0.86));
  border-color: var(--line-strong);
}

.roadmap-item--active::before {
  background: var(--accent);
  border-color: rgba(170, 229, 255, 0.38);
  box-shadow: 0 0 0 7px rgba(123, 210, 255, 0.08);
}

.roadmap-item strong {
  font-size: 1.1rem;
}

.roadmap-item p {
  margin: 0;
}

/* FAQ --------------------------------------------------------------------- */

.faq-list {
  display: grid;
  gap: 0.75rem;
}

.faq-item {
  overflow: hidden;
  background: rgba(8, 31, 72, 0.58);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.faq-item summary {
  display: flex;
  min-height: 68px;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.2rem;
  cursor: pointer;
  color: var(--text);
  font-weight: 750;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item__icon {
  position: relative;
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.faq-item__icon::before,
.faq-item__icon::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 2px;
  content: "";
  background: var(--accent);
  border-radius: 2px;
  transform: translate(-50%, -50%);
}

.faq-item__icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
  transition: transform 160ms ease;
}

.faq-item[open] .faq-item__icon::after {
  transform: translate(-50%, -50%) rotate(0deg);
}

.faq-item__answer {
  padding: 0 1.2rem 1.2rem;
}

.faq-item__answer p {
  max-width: 76ch;
  margin: 0;
}

/* Contacts ---------------------------------------------------------------- */

.contact-grid {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.contact-card {
  display: grid;
  min-height: 150px;
  align-content: space-between;
  gap: 1rem;
  padding: 1.2rem;
  color: var(--text);
  text-decoration: none;
  background: linear-gradient(145deg, rgba(16, 51, 108, 0.56), rgba(5, 18, 45, 0.78));
  border: 1px solid var(--line);
  border-radius: 18px;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

.contact-card:hover {
  background: linear-gradient(145deg, rgba(22, 67, 137, 0.68), rgba(7, 25, 59, 0.9));
  border-color: var(--line-strong);
  transform: translateY(-3px);
}

.contact-card span {
  color: var(--text-muted);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.contact-card strong {
  overflow-wrap: anywhere;
}

/* Footer ------------------------------------------------------------------ */

.site-footer {
  padding-block: 2.2rem;
  background: rgba(1, 8, 23, 0.82);
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  align-items: start;
  gap: 1.5rem;
  grid-template-columns: 1.3fr 0.8fr 0.8fr;
}

.footer-brand p {
  max-width: 44ch;
  margin: 0.7rem 0 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-nav {
  display: grid;
  gap: 0.5rem;
}

.footer-nav strong {
  margin-bottom: 0.2rem;
  font-size: 0.88rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-nav a {
  color: var(--text-soft);
  font-size: 0.9rem;
  text-decoration: none;
}

.footer-nav a:hover {
  color: var(--accent);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.4rem;
  margin-top: 1.6rem;
  color: var(--text-muted);
  font-size: 0.82rem;
  border-top: 1px solid var(--line);
}

/* Legal pages ------------------------------------------------------------- */

.page-hero {
  padding-block: clamp(3rem, 7vw, 6rem) var(--space-5);
}

.page-hero h1 {
  max-width: 900px;
  font-size: var(--step-4);
}

.legal-alert {
  padding: 1rem 1.2rem;
  margin-bottom: 1.5rem;
  color: #271800;
  background: var(--warning);
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-radius: 14px;
}

.legal-alert strong {
  color: inherit;
}

.legal-content {
  padding-bottom: var(--space-6);
}

.legal-content article {
  padding: var(--space-4);
  background: rgba(6, 23, 56, 0.74);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.legal-content h2 {
  margin-top: 2.2rem;
  font-size: var(--step-2);
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content p,
.legal-content li {
  max-width: 82ch;
}

.legal-placeholder {
  display: inline;
  padding: 0.08rem 0.32rem;
  color: #391400;
  font-weight: 800;
  background: #ffd7a8;
  border-radius: 4px;
}

/* Utility ----------------------------------------------------------------- */

.muted {
  color: var(--text-muted);
}

.no-margin {
  margin: 0;
}

.center {
  text-align: center;
}

.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;
}

.back-to-top {
  position: fixed;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 90;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  cursor: pointer;
  visibility: hidden;
  color: var(--accent-ink);
  background: var(--accent);
  border: 0;
  border-radius: 14px;
  box-shadow: var(--shadow-soft);
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 160ms ease,
    transform 160ms ease,
    visibility 160ms ease;
}

.back-to-top[data-visible="true"] {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

.reveal {
  opacity: 1;
  transform: none;
}

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 480ms ease,
    transform 480ms ease;
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Responsive -------------------------------------------------------------- */

@media (max-width: 1080px) {
  .desktop-nav {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(290px, 0.72fr);
  }

  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .formula {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .formula__step:nth-child(3)::after {
    display: none;
  }

  .contact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  :root {
    --header-height: 68px;
  }

  .container,
  .container--narrow {
    width: min(calc(100% - 30px), var(--container));
  }

  .brand__text small {
    display: none;
  }

  .hero {
    min-height: auto;
    padding-top: 3rem;
  }

  .hero-grid {
    min-height: 0;
    grid-template-columns: 1fr;
  }

  .hero-copy {
    text-align: left;
  }

  .hero-product {
    padding-block: 1.5rem 3rem;
  }

  .price-panel {
    right: 50%;
    bottom: -50px;
    width: min(280px, 85vw);
    transform: translateX(50%);
  }

  .split,
  .purchase-block,
  .author-card {
    grid-template-columns: 1fr;
  }

  .author-card__media {
    min-height: 430px;
  }

  .author-card__media::after {
    background: linear-gradient(to top, rgba(5, 18, 45, 0.5), transparent 40%);
  }

  .program-grid {
    grid-template-columns: 1fr;
  }

  .program-card:last-child:nth-child(odd) {
    grid-column: auto;
  }

  .product-card {
    grid-template-columns: 1fr;
  }

  .product-card__cover {
    padding: 2rem 1rem;
  }

  .ai-loop {
    grid-template-columns: 1fr;
  }

  .ai-loop__arrow {
    transform: rotate(90deg);
    justify-self: center;
  }

  .purchase-strip {
    align-items: stretch;
    flex-direction: column;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 600px) {
  .eyebrow {
    gap: 0.45rem;
    max-width: 100%;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
  }

  .eyebrow::before {
    width: 22px;
    box-shadow: none;
  }

  :root {
    --radius-lg: 22px;
  }

  .section {
    padding-block: 4rem;
  }

  .section--compact {
    padding-block: 3rem;
  }

  h1 {
    font-size: clamp(2.55rem, 12vw, 4.25rem);
  }

  .hero-result {
    font-size: 1.05rem;
  }

  .hero-actions,
  .button-row {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hero-actions .button,
  .button-row .button {
    width: 100%;
  }

  .fact-list {
    gap: 0.48rem;
  }

  .fact-list li {
    font-size: 0.78rem;
  }

  .card-grid,
  .card-grid--2,
  .result-grid,
  .contact-grid,
  .formula {
    grid-template-columns: 1fr;
  }

  .formula__step {
    min-height: 105px;
  }

  .formula__step:not(:last-child)::after {
    top: auto;
    right: 50%;
    bottom: -0.78rem;
    display: block;
    content: "↓";
    transform: translate(50%, 50%);
  }

  .glass-card,
  .program-card,
  .purchase-block,
  .quote-card,
  .author-card__content,
  .legal-content article {
    padding: 1.15rem;
  }

  .program-card h3 {
    max-width: 100%;
  }

  .program-card__number {
    font-size: 5.5rem;
  }

  .author-card__media {
    min-height: 360px;
  }

  .purchase-cover {
    width: min(210px, 62vw);
  }

  .product-card__footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-brand {
    grid-column: auto;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .mobile-menu {
    right: 12px;
    left: 12px;
  }

  .brand__text strong {
    font-size: 0.82rem;
  }
}

@media (max-width: 370px) {
  .container,
  .container--narrow {
    width: min(calc(100% - 24px), var(--container));
  }

  .brand__mark {
    width: 36px;
    height: 36px;
  }

  .brand__text strong {
    max-width: 165px;
    font-size: 0.76rem;
  }

  .menu-toggle {
    width: 42px;
    height: 42px;
  }

  .menu-toggle::before {
    top: 12px;
  }

  .menu-toggle span {
    top: 19px;
  }

  .menu-toggle::after {
    top: 26px;
  }

  .menu-toggle[aria-expanded="true"]::before,
  .menu-toggle[aria-expanded="true"]::after {
    top: 19px;
  }

  .price-panel {
    min-width: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}

@supports not (backdrop-filter: blur(1px)) {
  .site-header[data-scrolled="true"],
  .mobile-menu,
  .glass-card,
  .price-panel {
    background: var(--surface-strong);
  }
}


/* Фото автора в карточках контактов -------------------------------------- */

.contact-card__avatar {
  width: 68px;
  height: 68px;
  object-fit: cover;
  object-position: center 34%;
  border: 1px solid rgba(151, 214, 255, 0.34);
  border-radius: 16px;
  box-shadow: 0 12px 28px rgba(0, 8, 29, 0.32);
}

@media (max-width: 480px) {
  .contact-card__avatar {
    width: 60px;
    height: 60px;
    border-radius: 14px;
  }
}
