/**
 * Ludoman.net — премиальный спокойный UI (recovery / SaaS).
 * Ориентир качества: спокойный editorial + продуктовые лендинги Apple / Stripe.
 */

:root {
  --ink: #1a2b4b;
  --ink-soft: #475569;
  --nav-navy: #1a2b4b;
  --nav-navy-hover: #152238;
  --muted: #64748b;
  --muted-2: #94a3b8;
  --bg-page: #f8fafc;
  --surface: #ffffff;
  --surface-glass: rgba(255, 255, 255, 0.72);
  --surface-elevated: #ffffff;
  --brand-primary: #065f46;
  --brand-primary-hover: #054d39;
  --brand-primary-soft: rgba(6, 95, 70, 0.1);
  --accent-blue: #065f46;
  --accent-blue-hover: #054d39;
  --accent-blue-soft: rgba(6, 95, 70, 0.12);
  --accent-teal: #0d9488;
  --accent-teal-hover: #0f766e;
  --accent-teal-soft: rgba(13, 148, 136, 0.1);
  --border: rgba(30, 41, 59, 0.06);
  --border-strong: rgba(30, 41, 59, 0.1);
  --radius: 14px;
  --radius-lg: 14px;
  --radius-xl: 16px;
  --radius-btn: 12px;
  --radius-full: 999px;
  --shadow-ring: 0 0 0 1px rgba(15, 23, 42, 0.04);
  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-sm: 0 10px 30px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 18px 48px rgba(15, 23, 42, 0.07);
  --shadow-lg: 0 28px 64px rgba(15, 23, 42, 0.09);
  --shadow-float: 0 24px 48px rgba(15, 23, 42, 0.12);
  --shadow-brand: 0 14px 36px rgba(6, 95, 70, 0.28);
  --font-ui: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Geologica", var(--font-ui);
  --font-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  --text-body: 1.0625rem;
  --text-body-lg: 1.125rem;
  --leading-body: 1.65;
  --leading-snug: 1.25;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.33, 1, 0.68, 1);
  --space-section: clamp(2.25rem, 5vw, 4rem);
  --space-block: clamp(2rem, 4vw, 3.5rem);
  --focus-ring: 0 0 0 2px #fff, 0 0 0 4px rgba(6, 95, 70, 0.45);
  --focus-ring-navy: 0 0 0 2px #fff, 0 0 0 4px rgba(26, 43, 75, 0.35);
}

/* ——— Bootstrap: только токены, без «голубого по умолчанию» ——— */
.site-root .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1.25;
}

.site-root .btn.text-start {
  justify-content: flex-start;
}

.site-root .btn-primary {
  --bs-btn-bg: var(--accent-blue);
  --bs-btn-border-color: var(--accent-blue);
  --bs-btn-hover-bg: var(--accent-blue-hover);
  --bs-btn-hover-border-color: var(--accent-blue-hover);
  --bs-btn-font-weight: 600;
  --bs-btn-padding-x: 1.25rem;
  --bs-btn-padding-y: 0.6rem;
  --bs-btn-border-radius: 12px;
}

.site-root .btn-outline-primary {
  --bs-btn-color: var(--brand-primary);
  --bs-btn-border-color: var(--brand-primary);
  --bs-btn-hover-color: var(--brand-primary-hover);
  --bs-btn-hover-bg: var(--brand-primary-soft);
  --bs-btn-hover-border-color: var(--brand-primary);
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: var(--brand-primary);
  --bs-btn-active-border-color: var(--brand-primary);
  --bs-btn-focus-shadow-rgb: 6, 95, 70;
}

.site-root .btn-outline-secondary {
  --bs-btn-color: var(--ink-soft);
  --bs-btn-border-color: rgba(15, 23, 42, 0.12);
  --bs-btn-hover-bg: rgba(15, 23, 42, 0.04);
  --bs-btn-hover-border-color: rgba(15, 23, 42, 0.18);
}

html {
  scroll-behavior: smooth;
  /* При коротком body иначе под футером видна полоса фона документа */
  background-color: var(--bg-page);
}

/* Футер внизу окна при коротком контенте (истории, пустые списки и т.д.) */
body.site-root {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
}

body.site-root > main {
  flex: 1 0 auto;
  width: 100%;
  position: relative;
  z-index: 2;
}

body.site-root > footer.site-footer {
  position: relative;
  z-index: 2;
}

/* Декоративный слой лепестков: только под контентом (main/footer z-index выше) и под модалками Bootstrap */
.sakura-petals-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

/* Короткие страницы (о проекте, хаб): высота по контенту, без полосы под футером */
html:has(body.site-root.is-page-about),
html:has(body.site-root.is-page-tools-hub) {
  height: fit-content;
  min-height: 0;
}

body.site-root.is-page-about,
body.site-root.is-page-tools-hub {
  min-height: 0 !important;
  height: auto;
}

body.site-root.is-page-about > main,
body.site-root.is-page-tools-hub > main {
  flex: 0 1 auto;
  min-height: 0;
}

/* Иначе margin-top: auto у .site-footer съедает свободную высоту — пустота над футером */
body.site-root.is-page-about .site-footer,
body.site-root.is-page-tools-hub .site-footer {
  margin-top: 0;
}

::selection {
  background: rgba(6, 95, 70, 0.18);
  color: inherit;
}

body.bg-page {
  background-color: var(--bg-page);
  background-image: none;
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: var(--text-body);
  line-height: var(--leading-body);
  letter-spacing: -0.013em;
  font-feature-settings: "kern" 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

.site-root h1,
.site-root h2,
.site-root h3,
.site-root .h1,
.site-root .h2,
.site-root .h3 {
  font-family: var(--font-display);
  letter-spacing: -0.042em;
  font-weight: 700;
}

.text-main,
.text-deep,
.text-ink {
  color: var(--ink) !important;
}
.text-subtle {
  color: var(--muted) !important;
}
.text-muted-custom {
  color: var(--muted) !important;
}

.hero-gradient {
  border-radius: var(--radius);
}
.bg-soft-accent {
  background: var(--accent-teal-soft);
}

/* ——— Shell ——— */
.site-root main.home-main {
  padding-top: 0 !important;
}

@media (min-width: 1200px) {
  .site-root .container {
    max-width: 1180px;
  }

  .landing-home .container {
    max-width: 1200px;
  }
}

.page-sections {
  padding-bottom: var(--space-section);
}

.section-block {
  margin-bottom: var(--space-block);
}

.section-heading {
  margin-bottom: clamp(1.25rem, 3vw, 2rem) !important;
}

.landing-home .section-heading {
  align-items: flex-end !important;
}

.section-heading__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.75rem, 3vw, 2.125rem);
  line-height: var(--leading-snug);
  letter-spacing: -0.048em;
  color: var(--ink);
  max-width: 32rem;
}

.section-heading__underline {
  border-bottom: 2px solid var(--brand-primary);
  padding-bottom: 0.12rem;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.seo-content .section-heading__title,
.container-narrow .section-heading__title {
  max-width: none;
}

.section-heading__link {
  font-family: var(--font-ui);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-transform: none;
  color: var(--brand-primary);
  text-decoration: none;
  padding: 0;
  margin-bottom: 0.15rem;
  border-radius: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  transition: color 0.2s var(--ease-soft), opacity 0.2s var(--ease-soft);
}
.section-heading__link:hover {
  color: var(--brand-primary-hover);
  background: transparent;
  border: none;
  transform: none;
  box-shadow: none;
  opacity: 0.9;
}

.section-heading__link .bi {
  font-size: 0.85em;
  vertical-align: -0.06em;
}

/* Сетки секций: просторнее дефолтного Bootstrap gutter */
.hero-split__row {
  --bs-gutter-x: clamp(1.25rem, 3vw, 2.25rem);
  --bs-gutter-y: clamp(1.35rem, 3vw, 2rem);
}

.page-sections .section-grid {
  --bs-gutter-x: clamp(1rem, 2.5vw, 1.75rem);
  --bs-gutter-y: clamp(1rem, 2.5vw, 1.75rem);
}

.page-sections .section-grid--loose {
  --bs-gutter-x: clamp(1.15rem, 3vw, 2rem);
  --bs-gutter-y: clamp(1.15rem, 3vw, 2rem);
}

.article-stack {
  gap: clamp(0.85rem, 2vw, 1.25rem);
}

.city-pills {
  gap: 0.65rem 0.85rem;
}

/* ——— Surfaces (Stripe-like: прежде всего граница + лёгкая глубина) ——— */
.card-surface {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-ring), var(--shadow-xs), var(--shadow-sm);
  transition: box-shadow 0.45s var(--ease-out), transform 0.45s var(--ease-out), border-color 0.45s var(--ease-out);
}

.card-surface--hover:hover {
  box-shadow: var(--shadow-ring), var(--shadow-float);
  border-color: rgba(15, 23, 42, 0.11);
  transform: translateY(-4px);
}

/* ——— Кнопки hero (Apple / Stripe: ровный цвет + точная тень + фокус) ——— */
.btn-primary-lg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9375rem;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: #fff !important;
  background-color: var(--brand-primary);
  background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0) 45%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-btn);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 1px 2px rgba(15, 23, 42, 0.05), var(--shadow-brand);
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out), background-color 0.2s var(--ease-out),
    filter 0.2s var(--ease-out);
}
.btn-primary-lg:hover {
  color: #fff !important;
  background-color: var(--brand-primary-hover);
  transform: translateY(-1px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 8px 28px rgba(6, 95, 70, 0.35);
  filter: saturate(1.02);
}
.btn-primary-lg:active {
  transform: translateY(0);
}
.btn-primary-lg:focus-visible {
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), var(--focus-ring), var(--shadow-brand);
}

.btn-secondary-lg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.75rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9375rem;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--ink) !important;
  background: #fff;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-btn);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: background 0.2s var(--ease-out), border-color 0.2s var(--ease-out), transform 0.2s var(--ease-out),
    box-shadow 0.2s var(--ease-out);
}
.btn-secondary-lg:hover {
  background: #fff;
  border-color: rgba(30, 41, 59, 0.18);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}
.btn-secondary-lg:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring), var(--shadow-sm);
}

.hero-split__actions {
  gap: 0.75rem 1rem;
}

.btn-pill-outline {
  padding: 0.55rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--ink-soft) !important;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-full);
  text-decoration: none;
  box-shadow: var(--shadow-xs);
  transition: background 0.22s var(--ease-out), border-color 0.22s var(--ease-out),
    color 0.22s var(--ease-out), transform 0.22s var(--ease-out), box-shadow 0.22s var(--ease-out);
}
.btn-pill-outline:hover {
  border-color: rgba(6, 95, 70, 0.35);
  color: var(--brand-primary) !important;
  background: var(--brand-primary-soft);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.link-arrow {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: -0.02em;
  color: var(--brand-primary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: color 0.22s var(--ease-soft), gap 0.22s var(--ease-soft);
}
.link-arrow::after {
  content: "→";
  font-size: 1.05rem;
  line-height: 1;
  transition: transform 0.22s var(--ease-soft);
  opacity: 0.85;
}
.link-arrow:hover {
  color: var(--brand-primary-hover);
}
.link-arrow:hover::after {
  transform: translateX(4px);
  opacity: 1;
}

.btn-navy {
  font-family: var(--font-display);
  background: var(--nav-navy);
  color: #fff !important;
  border: none;
  border-radius: var(--radius-btn);
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: -0.02em;
  padding: 0.55rem 1.25rem;
  box-shadow: 0 4px 14px rgba(26, 43, 75, 0.22);
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out), background 0.2s var(--ease-out);
}
.btn-navy:hover {
  background: var(--nav-navy-hover);
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(26, 43, 75, 0.28);
}
.btn-navy:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring-navy), 0 4px 14px rgba(26, 43, 75, 0.22);
}

/* ——— Hero (атмосфера + «продуктовый» кадр) ——— */
.hero-split {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: linear-gradient(180deg, #f6f8fc 0%, var(--bg-page) 42%, var(--bg-page) 100%);
  border-bottom: 1px solid rgba(15, 23, 42, 0.045);
}

.hero-split__ambient {
  position: absolute;
  inset: -12% -8% auto -8%;
  height: 72%;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(55% 55% at 18% 28%, rgba(96, 165, 250, 0.28) 0%, transparent 58%),
    radial-gradient(48% 48% at 85% 18%, rgba(45, 212, 191, 0.22) 0%, transparent 58%),
    radial-gradient(70% 55% at 50% 95%, rgba(219, 234, 254, 0.35) 0%, transparent 58%);
  filter: saturate(1.08);
}

.hero-split__container {
  max-width: 1200px;
  padding-top: clamp(2.25rem, 6vw, 4.25rem);
  padding-bottom: clamp(2.5rem, 6vw, 4.5rem);
  z-index: 1;
}

/* Hero: фото на всю ширину экрана (якорь справа), текст остаётся в .container */
.hero-split--fullbleed-bg {
  min-height: clamp(22rem, 52vh, 38rem);
}

.hero-split--fullbleed-bg .hero-split__ambient {
  z-index: 0;
  opacity: 0.45;
}

.hero-split--fullbleed-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image: var(--hero-split-bg);
  background-size: contain;
  background-position: right center;
  background-repeat: no-repeat;
  pointer-events: none;
}

.hero-split--fullbleed-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 1) 0%,
    rgba(255, 255, 255, 0.97) 26%,
    rgba(248, 250, 252, 0.68) 46%,
    rgba(248, 250, 252, 0.18) 64%,
    transparent 80%
  );
}

.hero-split--fullbleed-bg .hero-split__container {
  position: relative;
  z-index: 4;
}

@media (max-width: 991.98px) {
  .hero-split--fullbleed-bg {
    min-height: clamp(20rem, 58vh, 30rem);
  }

  .hero-split--fullbleed-bg::before {
    background-position: right center;
  }

  .hero-split--fullbleed-bg::after {
    background: linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.98) 0%,
      rgba(255, 255, 255, 0.9) 40%,
      rgba(248, 250, 252, 0.5) 66%,
      rgba(248, 250, 252, 0.1) 88%
    );
  }
}

.hero-split__badge {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.85rem;
  font-family: var(--font-ui);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-transform: none;
  color: #64748b;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  box-shadow: none;
}

.hero-split__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.5rem, 5.5vw, 3.75rem);
  line-height: 1.02;
  letter-spacing: -0.055em;
  color: var(--nav-navy);
  max-width: 18ch;
}

.hero-split__lead {
  font-size: var(--text-body-lg);
  line-height: 1.66;
  color: var(--ink-soft);
  max-width: 34rem;
  font-weight: 400;
  letter-spacing: -0.02em;
}

.hero-split__figure {
  position: relative;
}

.hero-split__figure::before {
  content: "";
  position: absolute;
  inset: -6%;
  border-radius: calc(var(--radius-xl) + 8px);
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.35), rgba(13, 148, 136, 0.28));
  opacity: 0.45;
  filter: blur(28px);
  z-index: 0;
  pointer-events: none;
}

.landing-mock .hero-split__figure::before {
  display: none;
}

.hero-split__img-wrap {
  position: relative;
  z-index: 1;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255, 255, 255, 0.65) inset;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: linear-gradient(145deg, #e2e8f0, #cbd5e1);
}

.hero-split__img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: middle;
  object-fit: cover;
  aspect-ratio: 5 / 4;
  transform: scale(1.002);
}

.hero-split__img-wrap--blend {
  border: none;
  box-shadow: 0 16px 48px rgba(26, 43, 75, 0.1);
  background: #0f172a;
}

.hero-split__img-wrap--blend .hero-split__img {
  transform: none;
}

.hero-split__img-fade {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    #ffffff 0%,
    rgba(255, 255, 255, 0.95) 8%,
    rgba(255, 255, 255, 0.65) 22%,
    rgba(248, 250, 252, 0.2) 45%,
    transparent 68%
  );
}

/* ——— Trust ——— */
.trust-strip {
  padding-bottom: clamp(2.5rem, 6vw, 4.5rem);
}

.trust-bar {
  padding: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--surface-elevated);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.trust-bar__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: space-between;
  gap: 1rem;
  padding: clamp(1rem, 2.5vw, 1.35rem) clamp(1rem, 2.5vw, 1.5rem);
}

@media (min-width: 768px) {
  .trust-bar__inner {
    flex-wrap: nowrap;
    gap: 0;
    padding: 1.15rem 1.5rem;
  }
}

.trust-bar__item {
  flex: 1 1 45%;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  min-width: 0;
}

@media (min-width: 768px) {
  .trust-bar__item {
    flex: 1;
    padding: 0 1rem;
  }
}

.trust-bar__icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  background: linear-gradient(145deg, var(--accent-blue-soft), var(--accent-teal-soft));
  color: var(--accent-blue);
}

.trust-bar__label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.035em;
  text-transform: none;
  color: var(--ink);
}

.trust-bar__hint {
  display: block;
  font-size: 0.8125rem;
  color: var(--muted);
  margin-top: 0.15rem;
  line-height: 1.45;
  letter-spacing: -0.012em;
}

.trust-bar__divider {
  width: 1px;
  align-self: stretch;
  background: linear-gradient(180deg, transparent, rgba(15, 23, 42, 0.07), transparent);
}

/* Материалы */
.article-row {
  overflow: hidden;
  border-radius: var(--radius);
}

.article-row__link {
  text-decoration: none;
  color: inherit;
}

.article-row__link:hover .text-ink {
  color: var(--accent-blue) !important;
}

.article-row__thumb {
  min-height: 200px;
  height: 100%;
  background-size: cover;
  background-position: center;
}

.article-row__thumb--0 {
  background: linear-gradient(125deg, #dbeafe, #93c5fd);
}
.article-row__thumb--1 {
  background: linear-gradient(125deg, #ccfbf1, #5eead4);
}
.article-row__thumb--2 {
  background: linear-gradient(125deg, #e0e7ff, #a5b4fc);
}
.article-row__thumb--3 {
  background: linear-gradient(125deg, #e2e8f0, #cbd5e1);
}

.article-row .p-4 {
  padding: 1.65rem !important;
}

@media (min-width: 992px) {
  .article-row .p-lg-5 {
    padding: 2.35rem 2.75rem !important;
  }
}

.article-row .h5 {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.038em;
  line-height: 1.35;
}

.article-row__meta {
  letter-spacing: 0.04em;
  font-size: 0.75rem !important;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--muted-2) !important;
}

/* Истории */
.section-block--stories .story-emotion {
  background: linear-gradient(165deg, #ffffff 0%, #f1f5f9 100%);
  border-radius: var(--radius);
  padding: clamp(1.75rem, 4vw, 2.5rem);
}

.story-emotion__quote-icon {
  font-size: 2.15rem;
  opacity: 0.32;
}

.story-emotion__text {
  font-size: 1.0625rem;
  line-height: 1.72;
  color: var(--ink-soft);
}

.story-emotion__avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  color: #fff;
  background: linear-gradient(135deg, var(--accent-teal), var(--accent-blue));
  box-shadow: 0 6px 20px rgba(20, 184, 166, 0.25);
}

.story-visual {
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
}

.story-visual__img {
  object-fit: cover;
}

.story-visual__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.58), transparent 56%);
  pointer-events: none;
}

.story-visual .small {
  font-size: 0.9375rem !important;
  line-height: 1.5;
  letter-spacing: -0.015em;
}

.story-emotion__footer {
  margin-top: clamp(1.25rem, 3vw, 1.75rem);
}

.bg-ink {
  background: var(--ink);
}

.text-accent {
  color: var(--accent-teal) !important;
}

/* ——— Header ——— */
.site-header {
  background: #ffffff;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.site-nav {
  padding-top: 0.85rem !important;
  padding-bottom: 0.85rem !important;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 0;
  margin: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  border-radius: 0;
}

.brand-logo {
  display: block;
  height: 52px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  object-position: left center;
}

.brand-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.125rem;
  letter-spacing: -0.04em;
  color: var(--ink);
}

.brand-tagline {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--muted);
  max-width: 15rem;
  line-height: 1.35;
}

.navbar .nav-link {
  color: var(--ink-soft) !important;
  font-weight: 500;
  font-size: 0.875rem;
  letter-spacing: -0.018em;
  padding-left: 0.95rem !important;
  padding-right: 0.95rem !important;
  border-radius: 10px;
  transition: color 0.2s var(--ease-soft), background 0.2s var(--ease-soft);
}

.navbar .nav-link:hover {
  color: var(--brand-primary) !important;
  background: var(--brand-primary-soft);
}

.dropdown-menu {
  border-radius: 16px !important;
  border: 1px solid var(--border) !important;
  box-shadow: var(--shadow-md) !important;
  padding: 0.55rem !important;
  margin-top: 0.5rem !important;
}

.dropdown-item {
  border-radius: 11px;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: -0.015em;
  padding: 0.5rem 0.95rem !important;
}

.dropdown-item:hover {
  background: var(--brand-primary-soft) !important;
  color: var(--ink) !important;
}

.dropdown-header {
  font-size: 0.65rem !important;
  letter-spacing: 0.12em !important;
  font-weight: 700 !important;
  color: var(--muted-2) !important;
}

/* ——— Footer (референс: сплошной светлый фон + иконки у ссылок) ——— */
.site-footer {
  margin-top: auto;
  padding-top: clamp(2.5rem, 5vw, 3.75rem);
  padding-bottom: clamp(2.5rem, 5vw, 3.75rem);
  background: #e8edf4;
  border-top: none;
}

.site-footer__brand .brand-title {
  font-size: 1.0625rem;
}

.site-footer__brand .brand-tagline {
  font-size: 0.75rem;
  margin-top: 0.1rem;
}

.brand-mark--footer {
  padding: 0;
}

.site-footer__brand .brand-logo {
  height: 50px;
  max-width: 190px;
}

.site-footer__note {
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--muted);
  max-width: 34rem;
}

.site-footer__legal {
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.site-footer__copyright {
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--muted-2);
  letter-spacing: 0.01em;
}

.site-footer__nav {
  padding-top: 0.15rem;
}

@media (min-width: 992px) {
  .site-footer__nav {
    display: flex;
    justify-content: flex-end;
  }

  .site-footer__nav .list-unstyled {
    text-align: left;
    min-width: 14rem;
  }
}

.site-footer__nav-item + .site-footer__nav-item {
  margin-top: 0.65rem;
}

.site-footer__nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--nav-navy);
  text-decoration: none;
  transition: color 0.2s var(--ease-soft);
}

.site-footer__nav-link:hover {
  color: var(--brand-primary);
}

.site-footer__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.125rem;
  height: 2.125rem;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1.5px solid rgba(6, 95, 70, 0.45);
  color: var(--brand-primary);
  font-size: 0.9rem;
  background: rgba(255, 255, 255, 0.65);
  transition: border-color 0.2s var(--ease-soft), background 0.2s var(--ease-soft),
    color 0.2s var(--ease-soft);
}

.site-footer__nav-link:hover .site-footer__icon {
  border-color: var(--brand-primary);
  background: rgba(6, 95, 70, 0.08);
}

/* Inner pages */
.container-narrow {
  max-width: 720px;
}

/* История: обложка на всю ширину Bootstrap .container (не узкая колонка) */
.story-page__cover-wrap .story-cover-figure {
  margin: 0;
}
.story-page__cover-wrap .story-cover-figure__img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.content-body {
  font-size: 1.0625rem;
  line-height: 1.78;
}

/*
 * Эталон SEO-статьи (show.php + article.seo-article-standard):
 * иллюстрации в .content-body на всю ширину узкой колонки.
 */
.site-root.is-seo-article article.seo-article-standard .content-body figure {
  display: block;
  width: 100%;
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
  margin-top: 1.35rem;
  margin-bottom: 1.35rem;
}

.site-root.is-seo-article article.seo-article-standard .content-body figure img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.site-root.is-seo-article article.seo-article-standard .content-body figure figcaption {
  margin-top: 0.65rem;
  padding-left: 0;
  padding-right: 0;
}

/* ——— Хлебные крошки (пилюля, как на /instrumenty/) ——— */
.site-crumb__list {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem 0.45rem;
  list-style: none;
  margin: 0 0 clamp(1.25rem, 2.5vw, 2rem);
  padding: 0.42rem 1.05rem 0.42rem 0.65rem;
  font-family: var(--font-ui);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--ink-soft);
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
}

.site-crumb__item {
  margin: 0;
  padding: 0;
}

.site-crumb__item--current {
  color: var(--nav-navy);
  font-weight: 600;
  max-width: 100%;
}

.site-crumb__sep {
  color: #cbd5e1;
  user-select: none;
}

.site-crumb__link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s var(--ease-soft);
}

.site-crumb__link:hover {
  color: var(--brand-primary);
}

.site-crumb__link .bi {
  font-size: 0.95rem;
  opacity: 0.85;
}

/* ——— Статья (SEO): как на референсе ——— */
.site-root.is-seo-article {
  position: relative;
}

.site-root.is-seo-article::before,
.site-root.is-seo-article::after {
  content: "";
  position: fixed;
  width: min(420px, 55vw);
  height: min(420px, 55vw);
  pointer-events: none;
  z-index: 0;
  opacity: 0.07;
  background: no-repeat center / contain;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M12 3c-2 4-6 6-8 10 2 3 5 5 8 7 3-2 6-4 8-7-2-4-6-6-8-10z' stroke='%23065f46' stroke-width='1'/%3E%3C/svg%3E");
}

.site-root.is-seo-article::before {
  top: 4rem;
  right: -4rem;
  transform: rotate(12deg);
}

.site-root.is-seo-article::after {
  bottom: 2rem;
  left: -5rem;
  transform: rotate(-18deg) scaleX(-1);
}

.site-root.is-seo-article main {
  position: relative;
  z-index: 1;
}

.seo-content__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.65rem, 4.2vw, 2.15rem);
  line-height: 1.2;
  letter-spacing: -0.038em;
  color: var(--ink);
  margin-bottom: 0;
}

.seo-content__byline {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: 0.35rem;
  row-gap: 0.2rem;
  margin-top: 0.65rem;
  font-family: var(--font-ui);
  font-size: 0.8125rem;
  line-height: 1.45;
  letter-spacing: -0.01em;
  color: var(--muted);
}

.seo-content__byline-name {
  font-weight: 600;
  color: var(--ink-soft);
}

.seo-content__byline-sep {
  color: rgba(100, 116, 139, 0.65);
  font-weight: 500;
}

.seo-content__byline-read {
  font-weight: 500;
  color: var(--muted);
}

.seo-content__lead {
  font-size: 1.0625rem;
  line-height: 1.65;
  font-weight: 500;
  color: var(--brand-primary);
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

/* Внутренние ссылки над текстом (из JSON) — чипы, не «синие ссылки» */
.seo-content__intralinks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.55rem;
  font-family: var(--font-ui);
}

.seo-content__intralink {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.85rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink-soft);
  text-decoration: none;
  background: #fff;
  border: 1px solid rgba(148, 163, 184, 0.45);
  border-radius: 999px;
  box-shadow: var(--shadow-xs);
  transition: border-color 0.2s var(--ease-soft), color 0.2s var(--ease-soft), box-shadow 0.2s var(--ease-soft),
    background 0.2s var(--ease-soft);
}

.seo-content__intralink:hover {
  color: var(--brand-primary);
  border-color: rgba(6, 95, 70, 0.45);
  background: rgba(6, 95, 70, 0.05);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}

.seo-content__intralink:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

/* Похожие материалы: карусель карточек (Bootstrap carousel) */
.seo-related-carousel__track {
  position: relative;
  padding: 0 2.35rem 2.75rem;
}

.seo-related-carousel__indicators {
  margin-bottom: 0;
  bottom: 0;
  gap: 0.35rem;
}

.seo-related-carousel__indicators [data-bs-target] {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background-color: rgba(15, 23, 42, 0.22);
  border: 0;
}

.seo-related-carousel__indicators [data-bs-target].active {
  background-color: var(--brand-primary);
}

.seo-related-carousel__control {
  width: 2.35rem;
  height: 2.35rem;
  top: 40%;
  transform: translateY(-50%);
  opacity: 1;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.1);
  border: 1px solid rgba(148, 163, 184, 0.35);
}

.seo-related-carousel__control:hover {
  background: #fff;
}

.seo-related-carousel__control .carousel-control-prev-icon,
.seo-related-carousel__control .carousel-control-next-icon {
  width: 1.15rem;
  height: 1.15rem;
  filter: invert(28%) sepia(12%) saturate(1200%) hue-rotate(131deg) brightness(0.35);
}

.seo-related-carousel__control:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

@media (max-width: 767.98px) {
  .seo-related-carousel__track {
    padding-left: 0.15rem;
    padding-right: 0.15rem;
    padding-bottom: 2.5rem;
  }

  .seo-related-carousel__control {
    width: 2.1rem;
    height: 2.1rem;
  }

  .seo-related-carousel .carousel-control-prev {
    left: -0.15rem;
  }

  .seo-related-carousel .carousel-control-next {
    right: -0.15rem;
  }
}

/* Оглавление внутри HTML статьи — спокойные пункты, не синий bootstrap-link */
.content-body nav[aria-label="Содержание страницы"].card {
  border-radius: var(--radius-lg) !important;
  overflow: hidden;
  background: linear-gradient(165deg, #f8fafc 0%, #ffffff 55%);
  border: 1px solid rgba(15, 23, 42, 0.07) !important;
  box-shadow: var(--shadow-xs);
}

.content-body nav[aria-label="Содержание страницы"] .card-body {
  padding: 1rem 1.15rem 1.15rem;
}

.content-body nav[aria-label="Содержание страницы"] .small.text-uppercase {
  letter-spacing: 0.07em;
  color: var(--muted);
  font-weight: 700;
}

.content-body nav[aria-label="Содержание страницы"] ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.2rem 1.1rem;
  align-items: start;
}

@media (max-width: 575.98px) {
  .content-body nav[aria-label="Содержание страницы"] ul {
    grid-template-columns: 1fr;
    gap: 0.15rem 0;
  }
}

.content-body nav[aria-label="Содержание страницы"] li {
  margin: 0;
  padding: 0;
  min-width: 0;
}

.content-body nav[aria-label="Содержание страницы"] a {
  display: block;
  position: relative;
  padding: 0.55rem 0.35rem 0.55rem 1.75rem;
  margin: 0 -0.15rem;
  border-radius: 10px;
  font-weight: 500;
  font-size: 0.9375rem;
  color: var(--ink-soft);
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: color 0.2s var(--ease-soft), background 0.2s var(--ease-soft);
}

.content-body nav[aria-label="Содержание страницы"] a::before {
  content: "";
  position: absolute;
  left: 0.4rem;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(6, 95, 70, 0.35);
  transition: background 0.2s var(--ease-soft), transform 0.2s var(--ease-soft);
}

.content-body nav[aria-label="Содержание страницы"] a:hover {
  color: var(--ink);
  background: rgba(6, 95, 70, 0.06);
}

.content-body nav[aria-label="Содержание страницы"] a:hover::before {
  background: var(--brand-primary);
  transform: translateY(-50%) scale(1.25);
}

.content-body nav[aria-label="Содержание страницы"] a:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

/* Ссылки в теле статьи (оглавление перебивает более специфичными правилами выше) */
.content-body a {
  color: var(--ink);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: rgba(100, 116, 139, 0.45);
  text-underline-offset: 0.2em;
  text-decoration-thickness: 1px;
  transition: color 0.2s var(--ease-soft), text-decoration-color 0.2s var(--ease-soft);
}

.content-body a:hover {
  color: var(--brand-primary);
  text-decoration-color: rgba(6, 95, 70, 0.45);
}

.content-body a:focus-visible {
  outline: none;
  border-radius: 2px;
  box-shadow: var(--focus-ring);
}

/* FAQ: аккордеон в тон сайта */
.seo-faq-section .seo-faq-accordion {
  --bs-accordion-border-radius: 0;
  --bs-accordion-inner-border-radius: 0;
  --bs-accordion-btn-padding-x: 1.15rem;
  --bs-accordion-btn-padding-y: 0.95rem;
  --bs-accordion-body-padding-x: 1.15rem;
  --bs-accordion-body-padding-y: 0 1.15rem 1.1rem;
}

.seo-faq-accordion__btn {
  font-family: var(--font-ui);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink) !important;
  background-color: #fff !important;
  box-shadow: none !important;
}

.seo-faq-accordion__btn:not(.collapsed) {
  color: var(--brand-primary) !important;
  background: linear-gradient(180deg, rgba(6, 95, 70, 0.08) 0%, #fff 100%) !important;
}

.seo-faq-accordion__btn::after {
  filter: opacity(0.55);
  transition: transform 0.25s var(--ease-soft), filter 0.2s;
}

.seo-faq-accordion__btn:not(.collapsed)::after {
  filter: none;
}

.seo-faq-accordion__btn:focus {
  box-shadow: none;
  border-color: transparent;
}

.seo-faq-accordion__btn:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  z-index: 2;
}

.seo-faq-accordion__body {
  line-height: 1.65;
}

.content-body .content-section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-top: 2rem;
  margin-bottom: 1rem;
  padding-bottom: 0.35rem;
  border-bottom: 2px solid rgba(6, 95, 70, 0.35);
}

.article-signs-box {
  margin-top: 0.5rem;
  margin-bottom: 1.5rem;
  padding: 1.35rem 1.25rem 1.4rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: linear-gradient(165deg, #ffffff 0%, #f8fafc 100%);
  box-shadow: var(--shadow-xs);
}

.article-sign {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  min-height: 100%;
}

.article-sign__icon {
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  border: 2px solid rgba(6, 95, 70, 0.55);
  color: var(--brand-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  line-height: 0;
  background: rgba(6, 95, 70, 0.06);
}

.article-sign__icon > .bi {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  margin: 0;
  line-height: 1;
}

.article-sign__icon > .bi::before {
  line-height: 1;
  vertical-align: 0;
}

.article-sign__text {
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--ink-soft);
}

.seo-cta-row {
  align-items: stretch;
}

.seo-cta-card {
  display: flex;
  gap: 1rem;
  padding: 1.2rem 1.25rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #fff;
  box-shadow: var(--shadow-xs);
}

.seo-cta-card--action {
  border-color: rgba(6, 95, 70, 0.12);
  background: linear-gradient(160deg, #f0fdf4 0%, #ffffff 55%);
}

.seo-cta-card__icon {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.seo-cta-card__icon--action {
  border: 2px solid rgba(6, 95, 70, 0.45);
  color: var(--brand-primary);
  background: rgba(255, 255, 255, 0.9);
}

.seo-cta-card__body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-width: 0;
  gap: 0.65rem;
}

.seo-cta-card__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 0;
}

.seo-cta-card__text {
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--muted);
  margin-bottom: 0;
  flex: 1 1 auto;
  min-height: 0;
}

.seo-cta-card__btn {
  align-self: flex-start;
  border-radius: 10px !important;
  font-weight: 600 !important;
  padding: 0.45rem 1.1rem !important;
}

/* ——— Общий дисклеймер (как на /instrumenty/) ——— */
.content-notice {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem 1.15rem 1.05rem 1.1rem;
  border-radius: 14px;
  background: #eef2f6;
  border: 1px solid rgba(15, 23, 42, 0.07);
}

.content-notice__icon {
  flex-shrink: 0;
  margin-top: 0.08rem;
  color: #94a3b8;
  font-size: 1.1rem;
}

.content-notice__text {
  font-size: 0.875rem;
  line-height: 1.58;
  color: var(--muted);
  letter-spacing: -0.012em;
}

.content-body .content-notice .content-notice__text strong {
  color: var(--ink-soft);
  font-weight: 700;
}

.py-lg-6 {
  padding-top: 4.5rem !important;
  padding-bottom: 4.5rem !important;
}

.g-xl-6 {
  --bs-gutter-x: 4rem;
  --bs-gutter-y: 4rem;
}

/* ——— Макет лендинга (референс): hero + trust, сетки, плейсхолдеры ——— */
.hero-trust-stack {
  position: relative;
  margin-bottom: 0;
}

.hero-trust-stack__float {
  position: relative;
  z-index: 5;
  margin-top: -2.75rem;
  margin-bottom: 0;
  padding-bottom: 0;
}

@media (max-width: 767.98px) {
  .hero-trust-stack__float {
    margin-top: -1.75rem;
  }
}

.hero-trust-stack__float .trust-bar {
  border: none;
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.hero-split--mock {
  background: #ffffff;
  border-bottom: none;
}

.hero-split__img-wrap--placeholder {
  border: none;
  box-shadow: var(--shadow-sm);
  background: transparent;
}

/* Компактнее вертикальный ритм hero */
.landing-mock .hero-split__badge-wrap {
  margin-bottom: 0.85rem !important;
}
.landing-mock .hero-split__title {
  margin-bottom: 0.85rem !important;
}
.landing-mock .hero-split__lead {
  margin-bottom: 1.25rem !important;
  color: #64748b !important;
}
@media (min-width: 992px) {
  .landing-mock .hero-split__lead {
    margin-bottom: 1.5rem !important;
  }
}

.media-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  text-align: center;
  padding: 1rem;
  border-radius: inherit;
  background: linear-gradient(145deg, #f1f5f9 0%, #e2e8f0 100%);
  border: 1px dashed rgba(30, 41, 59, 0.12);
  color: var(--muted-2);
  min-height: 12rem;
}

.media-placeholder--hero {
  min-height: 220px;
  aspect-ratio: 5 / 4;
}

.media-placeholder__icon {
  font-size: 2.25rem;
  opacity: 0.45;
}

.media-placeholder__label {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.media-placeholder--tool {
  min-height: 160px;
  border-radius: var(--radius);
}

.media-placeholder--compact {
  min-height: 140px;
  border-radius: var(--radius) var(--radius) 0 0;
}

.media-placeholder--wide {
  min-height: 100%;
  border-radius: var(--radius-xl);
}

.card-surface--mock {
  border: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  border-radius: var(--radius-lg);
}

.card-surface--mock.card-surface--hover:hover {
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.08);
  transform: translateY(-4px);
}

/* Карточки секций «С чего начать» / «Инструменты» (макет Stripe-like) */
.card-surface--stripe {
  border: 1px solid rgba(30, 41, 59, 0.07);
  border-radius: 14px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  background: #fff;
}

.card-surface--stripe.card-surface--hover:hover {
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.07);
  transform: translateY(-3px);
}

.section-block--start-tools .section-grid--cards {
  --bs-gutter-x: 1.5rem;
  --bs-gutter-y: 1.5rem;
}

@media (min-width: 992px) {
  .section-block--start-tools .section-grid--cards {
    --bs-gutter-x: 2rem;
    --bs-gutter-y: 2rem;
  }
}

.start-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.start-card__layout {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr minmax(108px, 38%);
  gap: 0.65rem 1rem;
  align-items: stretch;
  padding: 1.2rem 1.25rem 1.35rem;
  min-height: 0;
}

.start-card__stack {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 100%;
  height: 100%;
}

.start-card__stack .link-arrow {
  margin-top: auto;
  padding-top: 0.5rem;
  align-self: flex-start;
}

.start-card__step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  background: var(--brand-primary);
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.65rem;
}

.start-card__title {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--nav-navy);
  margin-bottom: 0.4rem;
  line-height: 1.25;
}

.start-card__desc {
  font-size: 0.90625rem;
  color: var(--muted);
  line-height: 1.55;
  margin-bottom: 0;
}

.start-card__visual {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  align-self: stretch;
  min-height: 124px;
  background-color: #f1f5f9;
  background-size: cover;
  background-position: bottom right;
  background-repeat: no-repeat;
}

.start-card__visual::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    ellipse 85% 70% at 92% 92%,
    rgba(167, 243, 208, 0.45) 0%,
    rgba(224, 242, 254, 0.2) 42%,
    transparent 68%
  );
}

.start-card__visual::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.97) 0%,
    rgba(255, 255, 255, 0.38) 28%,
    transparent 52%
  );
}

.start-card__visual--calc::before {
  background: radial-gradient(
    ellipse 85% 70% at 90% 88%,
    rgba(224, 242, 254, 0.55) 0%,
    rgba(226, 232, 240, 0.25) 45%,
    transparent 68%
  );
}

.start-card__visual--book::before {
  background: radial-gradient(
    ellipse 80% 65% at 88% 90%,
    rgba(209, 250, 229, 0.5) 0%,
    rgba(219, 234, 254, 0.22) 48%,
    transparent 70%
  );
}

@media (max-width: 767.98px) {
  .start-card__layout {
    grid-template-columns: 1fr;
  }

  .start-card__visual {
    order: -1;
    min-height: 148px;
    margin-bottom: 0.35rem;
    border-radius: 14px;
  }

  .start-card__visual::after {
    background: linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.88) 0%,
      rgba(255, 255, 255, 0.22) 42%,
      transparent 62%
    );
  }
}

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

.tool-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0.35;
  background-image: repeating-linear-gradient(
      135deg,
      rgba(6, 95, 70, 0.045) 0,
      rgba(6, 95, 70, 0.045) 1px,
      transparent 1px,
      transparent 11px
    ),
    repeating-linear-gradient(
      45deg,
      rgba(15, 23, 42, 0.02) 0,
      rgba(15, 23, 42, 0.02) 1px,
      transparent 1px,
      transparent 11px
    );
}

.tool-card__split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(112px, 44%);
  align-items: stretch;
  min-height: 228px;
  position: relative;
  z-index: 1;
}

.tool-card__main {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.tool-card__visual {
  position: relative;
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
  min-height: 168px;
}

.tool-card__visual::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.97) 0%,
    rgba(255, 255, 255, 0.35) 22%,
    transparent 48%
  );
}

.tool-card__head {
  padding: 1.2rem 1.25rem 0;
}

.tool-card__icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.tool-card__icon-wrap--sky {
  background: #e0f2fe;
  color: #0369a1;
}

.tool-card__icon-wrap--mint {
  background: rgba(6, 95, 70, 0.1);
  color: var(--brand-primary);
}

.tool-card__body {
  padding: 0.85rem 1.25rem 1.1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.tool-card__title {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--nav-navy);
  margin-bottom: 0.4rem;
  line-height: 1.25;
}

.tool-card__desc {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.55;
  margin-bottom: 0.65rem;
}

@media (max-width: 991.98px) {
  .tool-card__split {
    grid-template-columns: minmax(0, 1fr) minmax(96px, 38%);
    min-height: 200px;
  }
}

@media (max-width: 767.98px) {
  .tool-card__split {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .tool-card__visual {
    order: -1;
    min-height: 156px;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  }

  .tool-card__visual::after {
    background: linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.85) 0%,
      rgba(255, 255, 255, 0.2) 38%,
      transparent 58%
    );
  }

  .tool-card__head {
    padding-top: 1rem;
  }
}

.popular-grid {
  --bs-gutter-x: 0.85rem;
  --bs-gutter-y: 0.85rem;
}

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

.popular-card__link {
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.popular-card__thumb {
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  background-size: cover;
  background-position: center;
}

.popular-card__thumb--0 {
  background-image: linear-gradient(125deg, #dbeafe, #93c5fd);
}

.popular-card__thumb--1 {
  background-image: linear-gradient(125deg, #ccfbf1, #5eead4);
}

.popular-card__thumb--2 {
  background-image: linear-gradient(125deg, #e0e7ff, #a5b4fc);
}

.popular-card__thumb--3 {
  background-image: linear-gradient(125deg, #e2e8f0, #cbd5e1);
}

.popular-card__thumb--photo {
  background-image: none;
  background-color: #e2e8f0;
  position: relative;
  overflow: hidden;
}

.popular-card__thumb-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.popular-card__thumb--empty {
  background: #f1f5f9;
  display: flex;
  align-items: stretch;
}

.popular-card__body {
  padding: 0.85rem 1rem 1.1rem;
  flex-grow: 1;
}

.popular-card__title {
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.35;
  color: var(--ink);
  margin-bottom: 0.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.popular-card__meta {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--muted-2);
  margin: 0;
  letter-spacing: -0.01em;
}

.popular-card__excerpt {
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-top: 0.4rem;
}

.popular-card--empty .popular-card__title {
  font-weight: 600;
}

.story-emotion--mock {
  background: linear-gradient(165deg, #eff6ff 0%, #f8fafc 100%) !important;
  border: none !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05) !important;
  padding: clamp(1.25rem, 3vw, 1.65rem) !important;
  border-radius: var(--radius-lg) !important;
}

.story-emotion--mock .story-emotion__quote-icon {
  font-size: 2.5rem;
  color: var(--brand-primary);
  opacity: 0.35;
  line-height: 1;
}

.story-emotion__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--ink);
}

.story-emotion--mock .story-emotion__avatar {
  background: linear-gradient(135deg, #065f46, #0d9488);
  box-shadow: none;
}

.story-home-cover {
  background: #e2e8f0;
}

.ratio.story-visual--mock {
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  background: #0f172a;
}

.story-visual__inner {
  background: #0f172a;
}

.story-visual__placeholder {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.story-visual__play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.95);
  color: var(--ink);
  font-size: 2rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 6px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
  z-index: 4;
  cursor: default;
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
}

.story-visual__play:hover {
  transform: translate(-50%, -50%) scale(1.05);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.25);
}

.landing-mock .trust-bar__icon {
  background: transparent !important;
  border: 1.5px solid rgba(6, 95, 70, 0.35);
  color: var(--brand-primary) !important;
  font-size: 1.1rem;
}

/* Секции: отступы под «наезд» trust-карточки */
.landing-mock .page-sections--mock {
  padding-top: clamp(1rem, 3vw, 2rem);
}

.landing-mock .page-sections > .section-block {
  margin-bottom: 0 !important;
}

.landing-mock .page-sections > .section-block:not(:first-child) {
  padding-top: clamp(1.75rem, 4vw, 3.25rem);
}

@media (max-width: 991.98px) {
  .hero-split__title {
    max-width: none;
  }
}

/* ——— Калькулятор проигрышей (лендинг инструмента) ——— */
.tool-calc-main {
  padding-top: 0 !important;
}

.calc-tool__hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: linear-gradient(180deg, #ffffff 0%, #f3f9ff 46%, #f8fafc 100%);
  border-bottom: 1px solid rgba(15, 23, 42, 0.05);
}

.calc-tool__hero-glow {
  position: absolute;
  inset: -10% -12% auto -12%;
  height: 85%;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(55% 50% at 12% 22%, rgba(125, 211, 252, 0.35) 0%, transparent 58%),
    radial-gradient(45% 45% at 88% 12%, rgba(45, 212, 191, 0.2) 0%, transparent 55%),
    radial-gradient(65% 50% at 70% 88%, rgba(224, 242, 254, 0.55) 0%, transparent 60%);
  filter: saturate(1.05);
  opacity: 0.85;
}

.calc-tool__hero-photo {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: var(--calc-tool-hero-bg);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: right center;
}

.calc-tool__hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.9) 40%, rgba(255, 255, 255, 0.32) 58%, transparent 80%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.68) 0%, transparent 38%);
}

.calc-tool__hero-inner {
  position: relative;
  z-index: 1;
  padding-top: clamp(1.75rem, 4vw, 3rem);
  padding-bottom: clamp(2rem, 5vw, 3.5rem);
}

.calc-tool__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.42rem 0.95rem 0.42rem 0.55rem;
  font-family: var(--font-ui);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: #64748b;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
}

.calc-tool__badge-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: #fff;
  color: var(--brand-primary);
  font-size: 0.95rem;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}

.calc-tool__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 4.2vw, 2.875rem);
  line-height: 1.08;
  letter-spacing: -0.052em;
  color: var(--nav-navy);
  margin-bottom: 1rem;
  max-width: 16ch;
}

.calc-tool__lead {
  font-size: 1.0625rem;
  line-height: 1.66;
  color: var(--muted);
  font-weight: 400;
  letter-spacing: -0.018em;
  max-width: 36rem;
}

.calc-tool__form-wrap {
  margin-top: clamp(1.25rem, 3vw, 2rem);
}

/* Уже, чем общий container-narrow (720px) — только колонка калькулятора */
.calc-tool__form-wrap.container-narrow {
  max-width: 34rem;
}

.calc-form-card {
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(15, 23, 42, 0.06), 0 0 0 1px rgba(15, 23, 42, 0.04);
  background: var(--surface-elevated);
}

.calc-form-card__body {
  padding-bottom: 1.5rem !important;
}

/* Узкая «дорогая» колонка полей — не на всю ширину карточки */
.calc-form-card__body > div.mb-4 {
  max-width: min(21rem, 100%);
}

.calc-form-card__label {
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: -0.021em;
  color: var(--ink-soft);
  margin-bottom: 0.45rem;
}

.calc-form-card__control {
  border-radius: 13px;
  border: 1px solid rgba(15, 23, 42, 0.088);
  padding: 0.72rem 1.05rem;
  font-size: 0.96875rem;
  letter-spacing: -0.022em;
  font-variant-numeric: tabular-nums;
  background-color: #fbfbfc;
  background-image: linear-gradient(180deg, #fefefe 0%, #f7f9fb 100%);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.85),
    inset 0 -1px 1px rgba(15, 23, 42, 0.035);
  transition:
    border-color 0.18s var(--ease-soft),
    box-shadow 0.18s var(--ease-soft),
    background-color 0.18s var(--ease-soft);
}

.calc-form-card__control::placeholder {
  color: #94a3b8;
  letter-spacing: -0.015em;
}

.calc-form-card__control:hover {
  border-color: rgba(15, 23, 42, 0.12);
  background-color: #fff;
}

.calc-form-card__control:focus {
  border-color: rgba(6, 95, 70, 0.38);
  background-color: #fff;
  background-image: none;
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 1),
    0 0 0 3px rgba(6, 95, 70, 0.11);
  outline: none;
}

.calc-form-card__submit {
  font-weight: 600;
  --bs-btn-padding-y: 0.55rem;
  --bs-btn-padding-x: 1.5rem;
}

.calc-result-card {
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(15, 23, 42, 0.06), 0 0 0 1px rgba(15, 23, 42, 0.04);
  background: linear-gradient(180deg, rgba(6, 95, 70, 0.05) 0%, #fff 28%);
}

#calc-result.calc-result-card {
  scroll-margin-top: 5.5rem;
}

.calc-result-card .section-heading__title {
  max-width: none;
}

.calc-result-card__list {
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--ink);
}

.calc-result-card__k {
  display: inline-block;
  font-weight: 600;
  color: var(--ink-soft);
  margin-right: 0.35rem;
}

@media (max-width: 575.98px) {
  .calc-tool__title {
    max-width: none;
  }
}

/* ——— Трекер дней без ставок ——— */
.tool-tracker-main {
  padding-top: 0 !important;
}

.tracker-tool__hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: linear-gradient(180deg, #ffffff 0%, #f3fbf7 44%, #f8fafc 100%);
  border-bottom: 1px solid rgba(15, 23, 42, 0.05);
}

.tracker-tool__hero-glow {
  position: absolute;
  inset: -10% -12% auto -12%;
  height: 88%;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(50% 48% at 15% 24%, rgba(167, 243, 208, 0.45) 0%, transparent 58%),
    radial-gradient(42% 42% at 86% 14%, rgba(224, 242, 254, 0.35) 0%, transparent 55%),
    radial-gradient(60% 48% at 72% 90%, rgba(236, 253, 245, 0.75) 0%, transparent 58%);
  filter: saturate(1.06);
  opacity: 0.9;
}

.tracker-tool__hero-photo {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: var(--tracker-tool-hero-bg);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: right center;
}

.tracker-tool__hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.9) 40%, rgba(255, 255, 255, 0.32) 58%, transparent 80%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.68) 0%, transparent 38%);
}

.tracker-tool__hero-inner {
  position: relative;
  z-index: 1;
  padding-top: clamp(1.75rem, 4vw, 3rem);
  padding-bottom: clamp(2rem, 5vw, 3.5rem);
}

/* Как у .tracker-tool__hero-inner — одинаковые отступы контейнера при переходах между инструментами */
.tool-page-inner {
  padding-top: clamp(1.75rem, 4vw, 3rem);
}

.tracker-tool__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.42rem 0.95rem 0.42rem 0.55rem;
  font-family: var(--font-ui);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: #475569;
  background: rgba(236, 253, 245, 0.95);
  border: 1px solid rgba(6, 95, 70, 0.14);
  border-radius: 999px;
}

.tracker-tool__badge-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: #fff;
  color: var(--brand-primary);
  font-size: 0.95rem;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}

.tracker-tool__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 4.2vw, 2.875rem);
  line-height: 1.08;
  letter-spacing: -0.052em;
  color: var(--nav-navy);
  margin-bottom: 1rem;
  max-width: 18ch;
}

.tracker-tool__lead {
  font-size: 1.0625rem;
  line-height: 1.66;
  color: var(--muted);
  font-weight: 400;
  letter-spacing: -0.018em;
  max-width: 38rem;
}

.tracker-tool__lead--muted {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--muted-2);
}

.tracker-tool__content {
  margin-top: clamp(1.25rem, 3vw, 2rem);
}

.tracker-form-card {
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(15, 23, 42, 0.06), 0 0 0 1px rgba(15, 23, 42, 0.04);
  background: var(--surface-elevated);
}

.tracker-form-stack {
  max-width: min(21rem, 100%);
}

.tracker-form-card__label {
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: -0.021em;
  color: var(--ink-soft);
  margin-bottom: 0.5rem;
}

.tracker-date-field {
  position: relative;
  display: flex;
  align-items: stretch;
  border: 1px solid rgba(15, 23, 42, 0.088);
  border-radius: 13px;
  background-color: #fbfbfc;
  background-image: linear-gradient(180deg, #fefefe 0%, #f7f9fb 100%);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.85),
    inset 0 -1px 1px rgba(15, 23, 42, 0.035);
  overflow: hidden;
  transition:
    border-color 0.18s var(--ease-soft),
    box-shadow 0.18s var(--ease-soft),
    background-color 0.18s var(--ease-soft);
}

.tracker-date-field:focus-within {
  border-color: rgba(6, 95, 70, 0.38);
  background-color: #fff;
  background-image: none;
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 1),
    0 0 0 3px rgba(6, 95, 70, 0.11);
}

.tracker-date-field:hover:not(:focus-within) {
  border-color: rgba(15, 23, 42, 0.12);
  background-color: #fff;
}

.tracker-date-field__ic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.72rem;
  color: #94a3b8;
  border-right: 1px solid rgba(15, 23, 42, 0.065);
  flex-shrink: 0;
}

.tracker-date-field__input {
  flex: 1 1 auto;
  min-width: 0;
  border: none !important;
  border-radius: 0 !important;
  padding: 0.68rem 0.65rem;
  font-size: 0.96875rem;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  box-shadow: none !important;
  background: transparent !important;
}

.tracker-date-field__input:focus {
  outline: none;
  box-shadow: none !important;
}

.tracker-form-card__hint {
  font-size: 0.8125rem;
  color: var(--muted-2);
  margin-top: 0.5rem;
}

.tracker-date-field__trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.78rem;
  margin: 0;
  border: none;
  border-left: 1px solid rgba(15, 23, 42, 0.065);
  background: transparent;
  color: #94a3b8;
  flex-shrink: 0;
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease;
}

.tracker-date-field__trigger:hover {
  color: var(--brand-primary);
  background: rgba(6, 95, 70, 0.04);
}

.tracker-form-card__btn {
  border-radius: 10px;
  font-weight: 600;
  padding: 0.55rem 1.35rem;
}

.tracker-form-card__btn--ghost {
  background: #fff !important;
  border-color: rgba(15, 23, 42, 0.12) !important;
  color: var(--ink-soft) !important;
}

.tracker-form-card__btn--ghost:hover {
  background: rgba(15, 23, 42, 0.04) !important;
  border-color: rgba(15, 23, 42, 0.18) !important;
  color: var(--ink) !important;
}

.tracker-progress-card {
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 32px rgba(15, 23, 42, 0.06), 0 0 0 1px rgba(15, 23, 42, 0.04);
  overflow: hidden;
}

.tracker-progress-card__inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(72px, 118px);
  align-items: center;
  gap: 1rem 1.15rem;
  padding: 1.2rem 1.35rem 1.2rem 1.25rem;
}

.tracker-progress-card__icon-wrap {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(6, 95, 70, 0.1);
  color: var(--brand-primary);
  font-size: 1.2rem;
  flex-shrink: 0;
}

.tracker-progress-card__stat {
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink-soft);
  letter-spacing: -0.02em;
}

.tracker-progress-card__num {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--brand-primary);
  letter-spacing: -0.04em;
  margin-left: 0.15rem;
}

.tracker-progress-card__milestone {
  color: var(--muted);
  font-weight: 500;
  letter-spacing: -0.015em;
}

.tracker-progress-card__art {
  color: var(--brand-primary);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  opacity: 0.85;
}

.tracker-progress-card__svg {
  width: 100%;
  max-width: 118px;
  height: auto;
}

@media (max-width: 575.98px) {
  .tracker-tool__title {
    max-width: none;
  }

  .tracker-progress-card__inner {
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
  }

  .tracker-progress-card__art {
    grid-column: 1 / -1;
    justify-content: center;
    padding-top: 0.25rem;
  }

  .tracker-progress-card__svg {
    max-width: 140px;
  }
}

/* Лист в углу футера (трекер / тест — как на референсе) */
.is-tool-tracker .site-footer,
.is-tool-test .site-footer,
.is-tool-test-result .site-footer,
.is-page-about .site-footer,
.is-page-tools-hub .site-footer {
  position: relative;
  overflow: hidden;
}

.is-tool-tracker .site-footer::after,
.is-tool-test .site-footer::after,
.is-tool-test-result .site-footer::after,
.is-page-about .site-footer::after,
.is-page-tools-hub .site-footer::after {
  content: "";
  position: absolute;
  right: -2rem;
  bottom: -1.5rem;
  width: 180px;
  height: 140px;
  pointer-events: none;
  opacity: 0.07;
  background: radial-gradient(ellipse 70% 60% at 70% 80%, rgba(6, 95, 70, 0.9) 0%, transparent 72%);
  filter: blur(0.5px);
  transform: rotate(-12deg);
}

/* ——— Тест на зависимость (скрининг) ——— */
.tool-test-main {
  padding-top: 0 !important;
}

.test-tool {
  padding-bottom: clamp(1.5rem, 4vw, 3rem);
}

.test-tool__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.95rem;
  font-family: var(--font-ui);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #0369a1;
  background: linear-gradient(180deg, #e0f2fe 0%, #dbeafe 100%);
  border: 1px solid rgba(14, 165, 233, 0.28);
  border-radius: 999px;
}

.test-tool__badge .bi {
  font-size: 0.95rem;
  opacity: 0.85;
}

.test-tool__progress-track {
  height: 5px;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
}

.test-tool__progress-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand-primary) 0%, #0d9488 100%);
  transition: width 0.45s var(--ease-out);
}

.test-tool__question {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.2vw, 2.05rem);
  font-weight: 800;
  letter-spacing: -0.048em;
  line-height: 1.22;
  color: var(--nav-navy);
  margin-bottom: 0.65rem;
  max-width: 38rem;
}

.test-tool__desc {
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--muted);
  margin-bottom: 1.5rem;
  max-width: 36rem;
}

.test-tool__options {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.test-option-card {
  width: 100%;
  margin: 0;
  padding: 1rem 1.15rem 1rem 1.1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  text-align: left;
  font-family: var(--font-ui);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.022em;
  color: var(--ink);
  cursor: pointer;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.055);
  transition:
    border-color 0.2s var(--ease-soft),
    box-shadow 0.2s var(--ease-soft),
    transform 0.2s var(--ease-soft);
}

.test-option-card:hover {
  border-color: rgba(6, 95, 70, 0.22);
  box-shadow: 0 10px 32px rgba(15, 23, 42, 0.09);
  transform: translateY(-1px);
}

.test-option-card:active {
  transform: translateY(0);
}

.test-option-card:focus-visible {
  outline: none;
  border-color: rgba(6, 95, 70, 0.35);
  box-shadow: var(--focus-ring), 0 4px 20px rgba(15, 23, 42, 0.06);
}

.test-option-card__left {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
}

.test-option-card__radio {
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  border: 2px solid rgba(15, 23, 42, 0.2);
  flex-shrink: 0;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.8);
}

.test-option-card:hover .test-option-card__radio {
  border-color: rgba(6, 95, 70, 0.45);
}

.test-option-card__text {
  line-height: 1.3;
}

.test-option-card__chev {
  flex-shrink: 0;
  font-size: 1.05rem;
  color: #cbd5e1;
  transition: color 0.2s var(--ease-soft), transform 0.2s var(--ease-soft);
}

.test-option-card:hover .test-option-card__chev {
  color: var(--brand-primary);
  transform: translateX(2px);
}

.test-tool--with-page-bg {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.test-tool__page-hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: clamp(300px, 52vh, 500px);
  z-index: 0;
  pointer-events: none;
  background-image: var(--test-tool-hero-bg);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: right center;
  -webkit-mask-image: linear-gradient(to bottom, #000 54%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 54%, transparent 100%);
}

.test-tool__page-hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(248, 250, 252, 0.98) 0%, rgba(248, 250, 252, 0.9) 36%, rgba(248, 250, 252, 0.38) 56%, transparent 76%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.72) 0%, transparent 38%);
}

.test-tool--with-page-bg > .container {
  position: relative;
  z-index: 1;
}

@media (max-width: 991.98px) {
  .test-tool__question {
    max-width: none;
  }
}

/* ——— Результат теста (скрининг) ——— */
.tool-test-result-main {
  padding-top: clamp(1.25rem, 3.5vw, 2rem) !important;
}

.test-result {
  padding-bottom: clamp(1.5rem, 4vw, 3rem);
}

.test-result__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.95rem 0.4rem 0.72rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--brand-primary);
  background: rgba(236, 253, 245, 0.95);
  border: 1px solid rgba(6, 95, 70, 0.18);
  border-radius: 999px;
  margin-bottom: 0.85rem;
}

.test-result__title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.048em;
  line-height: 1.15;
  color: var(--nav-navy);
}

.test-result__card {
  border-radius: 16px !important;
  box-shadow: 0 10px 40px rgba(15, 23, 42, 0.06), 0 0 0 1px rgba(15, 23, 42, 0.04) !important;
  background: #fff !important;
}

.test-result__card-body {
  padding: 1.35rem 1.5rem !important;
}

.test-result__card-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.15rem 1.5rem;
}

.test-result__icon-wrap {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: rgba(6, 95, 70, 0.1);
  color: var(--brand-primary);
  font-size: 1.35rem;
}

.test-result__copy {
  flex: 1 1 12rem;
  min-width: 0;
}

.test-result__label-line {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-bottom: 0.35rem;
}

.test-result__label {
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--nav-navy);
  line-height: 1.3;
}

.test-result__label-help {
  display: inline-flex;
  color: var(--muted-2);
  cursor: help;
  font-size: 1rem;
  line-height: 1;
}

.test-result__score {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--brand-primary);
}

.test-result__gauge {
  flex: 0 0 auto;
  margin-left: auto;
  text-align: center;
  min-width: 9.5rem;
}

.test-result__gauge-svg {
  display: block;
  width: 100%;
  max-width: 200px;
  height: auto;
  margin: 0 auto;
}

.test-result__gauge-caption {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--muted);
}

.test-result__explain {
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--muted);
  letter-spacing: -0.018em;
  max-width: 40rem;
}

.test-result__cta {
  border-radius: 12px !important;
  font-weight: 600 !important;
  padding: 0.6rem 1.25rem !important;
}

.test-result__cta--outline {
  background: #fff !important;
  border-color: rgba(6, 95, 70, 0.35) !important;
}

@media (max-width: 767.98px) {
  .test-result__gauge {
    margin-left: 0;
    width: 100%;
    order: 3;
  }

  .test-result__card-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .test-result__gauge-svg {
    max-width: 220px;
    margin-left: 0;
  }
}

/* ——— О проекте (макет: крошки-пилюля + текст + иллюстрация) ——— */
.about-main {
  padding-top: 0 !important;
}

.about-page {
  padding-bottom: clamp(1.5rem, 4vw, 2.75rem);
}

.about-page--with-page-bg {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.about-page__page-hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: clamp(340px, 58vh, 560px);
  z-index: 0;
  pointer-events: none;
  background-image: var(--about-page-hero-bg);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: right center;
  -webkit-mask-image: linear-gradient(to bottom, #000 58%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 58%, transparent 100%);
}

.about-page__page-hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.97) 0%, rgba(255, 255, 255, 0.88) 38%, rgba(255, 255, 255, 0.45) 58%, transparent 78%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.55) 0%, transparent 42%);
}

.about-page--with-page-bg > .container {
  position: relative;
  z-index: 1;
}

.about-page__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.65rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1.12;
  color: var(--nav-navy);
  margin-bottom: 0.65rem;
}

.about-page__lead {
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.45;
  color: var(--brand-primary);
  margin-bottom: 0;
}

.about-page__body {
  font-size: 1.0625rem;
  line-height: 1.72;
  color: var(--ink-soft);
  letter-spacing: -0.018em;
}

.about-page__body p {
  margin-bottom: 1rem;
}

.about-page__body p:last-child {
  margin-bottom: 0;
}

/* ——— Хаб «Инструменты» ——— */
.tools-hub-main {
  padding-top: 0 !important;
}

.tools-hub {
  padding-bottom: clamp(1.5rem, 4vw, 2.75rem);
}

.tools-hub--with-page-bg {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.tools-hub__page-hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: clamp(340px, 58vh, 580px);
  z-index: 0;
  pointer-events: none;
  background-image: var(--tools-hub-hero-bg);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: right center;
  -webkit-mask-image: linear-gradient(to bottom, #000 60%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 60%, transparent 100%);
}

.tools-hub__page-hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, #f8fafc 0%, rgba(248, 250, 252, 0.94) 36%, rgba(246, 248, 251, 0.48) 56%, transparent 76%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.62) 0%, transparent 40%);
}

.tools-hub--with-page-bg > .container {
  position: relative;
  z-index: 1;
}

.tools-hub__title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.6vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -0.048em;
  line-height: 1.15;
  color: var(--nav-navy);
  margin-bottom: 0.65rem;
}

.tools-hub__lead {
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.45;
  color: var(--brand-primary);
  margin-bottom: 0;
}

.tools-hub__body {
  font-size: 1.0625rem;
  line-height: 1.72;
  color: var(--ink-soft);
  letter-spacing: -0.018em;
}

.tools-hub__body p {
  margin-bottom: 1rem;
}

.tools-hub__body p:last-child {
  margin-bottom: 0;
}

.tools-hub__body ul {
  list-style: none;
  padding-left: 0;
  margin: 1.15rem 0 0;
}

.tools-hub__body ul li {
  position: relative;
  padding-left: 2.15rem;
  margin-bottom: 0.72rem;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--ink-soft);
}

.tools-hub__body ul li:last-child {
  margin-bottom: 0;
}

.tools-hub__body ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.22rem;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  background: rgba(6, 95, 70, 0.12);
  border: 1.5px solid rgba(6, 95, 70, 0.28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.tools-hub__body ul li::after {
  content: "";
  position: absolute;
  left: 0.5rem;
  top: 0.5em;
  width: 0.32rem;
  height: 0.55rem;
  border: solid var(--brand-primary);
  border-width: 0 0.13rem 0.13rem 0;
  transform: rotate(45deg);
  border-radius: 0 0 1px 0;
}

/* ——— Материалы и истории (сетка карточек) ——— */
.materials-page__title,
.stories-page__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.65rem, 4vw, 2.1rem);
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: 0.5rem;
}

.materials-page__header,
.stories-page__header {
  max-width: 42rem;
}

.materials-page__lead a,
.stories-page__lead a {
  font-weight: 600;
}

.materials-page__grid .popular-card__title,
.stories-page__grid .popular-card__title {
  font-size: 0.9375rem;
}

/* ——— Telegram CTA (централизованный призыв) ——— */
.telegram-cta {
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, var(--surface) 0%, rgba(248, 250, 252, 0.98) 100%);
  box-shadow: var(--shadow-md);
}

.telegram-cta__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.telegram-cta__text--measure {
  max-width: 36rem;
}

.telegram-cta--compact .telegram-cta__title {
  font-size: 1rem;
}

.telegram-cta--compact .telegram-cta__text {
  font-size: 0.875rem;
  margin-bottom: 0.75rem !important;
}

.telegram-cta--compact .telegram-cta__trust {
  margin-bottom: 0.75rem !important;
  font-size: 0.8125rem;
}

.telegram-cta__title {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.telegram-cta__btn {
  --bs-btn-font-weight: 700;
  --bs-btn-padding-y: 0.85rem;
  --bs-btn-padding-x: 1.35rem;
  --bs-btn-font-size: 1.05rem;
  min-height: 3rem;
  width: 100%;
  max-width: 22rem;
  border-radius: var(--radius-btn);
  box-shadow: var(--shadow-brand);
}

@media (min-width: 576px) {
  .telegram-cta__btn {
    width: auto;
    min-width: min(100%, 17rem);
  }
}

.telegram-cta__btn:focus-visible {
  box-shadow: var(--focus-ring), var(--shadow-brand);
}

/* ——— 404 ——— */
.error-404__hero {
  position: relative;
  padding: clamp(2.5rem, 8vw, 4.5rem) 0 clamp(3rem, 10vw, 5rem);
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(6, 95, 70, 0.09) 0%, transparent 55%),
    linear-gradient(180deg, #eef2f8 0%, var(--bg-page) 100%);
  overflow: hidden;
}

.error-404__hero-glow {
  position: absolute;
  inset: -20% -10% auto;
  height: 70%;
  background: radial-gradient(ellipse 55% 45% at 50% 40%, rgba(13, 148, 136, 0.12), transparent 70%);
  pointer-events: none;
}

.error-404__inner {
  position: relative;
  z-index: 1;
  max-width: 40rem;
}

.error-404__panel {
  border-radius: 22px;
  padding: clamp(1.75rem, 4vw, 2.75rem) clamp(1.5rem, 4vw, 2.5rem);
  background: var(--surface-elevated);
  box-shadow: var(--shadow-md), var(--shadow-ring);
  border: 1px solid rgba(15, 23, 42, 0.06);
  text-align: center;
}

.error-404__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.38rem 0.85rem 0.38rem 0.5rem;
  margin-bottom: 1.25rem;
  font-family: var(--font-ui);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink-soft);
  background: rgba(6, 95, 70, 0.08);
  border: 1px solid rgba(6, 95, 70, 0.14);
  border-radius: 999px;
}

.error-404__badge-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 50%;
  background: #fff;
  color: var(--brand-primary);
  font-size: 0.9rem;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}

.error-404__code {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3.25rem, 14vw, 5.5rem);
  line-height: 0.95;
  letter-spacing: -0.06em;
  margin: 0 0 0.35rem;
  background: linear-gradient(165deg, rgba(26, 43, 75, 0.18) 0%, rgba(6, 95, 70, 0.35) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  user-select: none;
}

.error-404__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.35rem, 3.5vw, 1.75rem);
  line-height: 1.15;
  letter-spacing: -0.045em;
  color: var(--nav-navy);
  margin: 0 0 1rem;
}

.error-404__lead {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--muted);
  max-width: 32rem;
  margin-left: auto;
  margin-right: auto;
}

.error-404__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
  margin-top: 1.75rem;
}

.error-404__btn {
  border-radius: var(--radius-btn);
  font-weight: 600;
  padding: 0.55rem 1.2rem;
}

.error-404__btn--ghost {
  border-color: rgba(15, 23, 42, 0.12);
  color: var(--ink-soft);
}

.error-404__btn--ghost:hover {
  border-color: rgba(15, 23, 42, 0.2);
  background: rgba(15, 23, 42, 0.04);
  color: var(--ink);
}
