:root {
  /* Палитра */
  --c-navy: #0b1f3a;
  --c-navy-2: #12325c;
  --c-emerald: #10b981;
  --c-emerald-dark: #059669;
  --c-gold: #f5b544;
  --c-coral: #f0726b;
  --c-sky: #38bdf8;

  /* Светлая тема */
  --bg: #f7f8fb;
  --bg-alt: #eef2f8;
  --surface: #ffffff;
  --text: #1b2537;
  --text-muted: #5b6678;
  --heading: #0b1f3a;
  --border: rgba(11, 31, 58, 0.09);
  --accent: var(--c-emerald);
  --accent-hover: var(--c-emerald-dark);
  --accent-soft: rgba(16, 185, 129, 0.12);
  --nav-bg: rgba(247, 248, 251, 0.82);

  /* Типографика */
  --font-sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-serif: "Lora", Georgia, "Times New Roman", serif;

  /* Геометрия и эффекты */
  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;
  --shadow-sm: 0 2px 8px rgba(11, 31, 58, 0.06);
  --shadow: 0 12px 32px rgba(11, 31, 58, 0.08);
  --shadow-lg: 0 24px 60px rgba(11, 31, 58, 0.14);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --nav-h: 76px;
}

[data-theme="dark"] {
  --bg: #0a1426;
  --bg-alt: #0e1b33;
  --surface: #12223d;
  --text: #d7deea;
  --text-muted: #94a2b8;
  --heading: #f3f6fb;
  --border: rgba(255, 255, 255, 0.08);
  --accent-soft: rgba(16, 185, 129, 0.18);
  --nav-bg: rgba(10, 20, 38, 0.82);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.45);
}

/* ---------- 2. База ---------- */
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
}

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  font-size: 1.0625rem;
  line-height: 1.7;
  transition: background-color 0.4s ease, color 0.4s ease;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
  color: var(--heading);
  font-weight: 800;
  letter-spacing: -0.02em;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s;
}

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

::selection {
  background: var(--c-emerald);
  color: #fff;
}

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

section {
  position: relative;
}

/* ---------- 3. Кнопки ---------- */
.btn {
  font-weight: 700;
  border-radius: 999px;
  padding-inline: 1.4rem;
  transition: all 0.3s var(--ease);
}

.btn-lg {
  padding: 0.85rem 1.8rem;
  font-size: 1rem;
}

.btn-accent {
  background: var(--accent);
  color: #fff;
  border: none;
  box-shadow: 0 8px 22px rgba(16, 185, 129, 0.35);
}

.btn-accent:hover,
.btn-accent:focus-visible {
  background: var(--accent-hover);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(16, 185, 129, 0.45);
}

.btn-ghost {
  background: transparent;
  color: var(--heading);
  border: 2px solid var(--border);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

/* ---------- 4. Индикатор прочтения ---------- */
.reading-progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 3px;
  z-index: 1100;
  pointer-events: none;
}

.reading-progress span {
  display: block;
  height: 100%;
  width: 100%;
  transform-origin: 0 50%;
  transform: scaleX(0);
  background: linear-gradient(90deg, var(--c-emerald), var(--c-gold));
}

/* ---------- 5. Навигация ---------- */
.site-nav {
  height: var(--nav-h);
  transition: background-color 0.35s ease, box-shadow 0.35s ease, height 0.35s var(--ease);
}

.site-nav.scrolled {
  --nav-h: 64px;
  background: var(--nav-bg);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  box-shadow: 0 1px 0 var(--border);
}

.navbar-brand {
  color: var(--heading);
  font-size: 1.3rem;
  font-weight: 600;
}

.navbar-brand:hover {
  color: var(--heading);
}

.navbar-brand strong {
  color: var(--accent);
  font-weight: 800;
}

.site-nav .nav-link {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.5rem 0.9rem !important;
  position: relative;
}

.site-nav .nav-link::after {
  content: "";
  position: absolute;
  left: 0.9rem;
  right: 0.9rem;
  bottom: 0.2rem;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform 0.3s var(--ease);
}

.site-nav .nav-link:hover,
.site-nav .nav-link.active {
  color: var(--heading);
}

.site-nav .nav-link.active::after,
.site-nav .nav-link:hover::after {
  transform: scaleX(1);
}

.theme-toggle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--heading);
  display: grid;
  place-items: center;
  transition: transform 0.4s var(--ease);
}

.theme-toggle:hover {
  transform: rotate(-20deg) scale(1.05);
}

.navbar-toggler {
  border: none;
  width: 42px;
  height: 42px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.navbar-toggler:focus {
  box-shadow: none;
}

.toggler-bar {
  height: 2px;
  width: 100%;
  background: var(--heading);
  border-radius: 2px;
  transition: 0.3s;
}

.navbar-toggler[aria-expanded="true"] .toggler-bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.navbar-toggler[aria-expanded="true"] .toggler-bar:nth-child(2) {
  opacity: 0;
}

.navbar-toggler[aria-expanded="true"] .toggler-bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

@media (max-width: 991.98px) {
  .site-nav .navbar-collapse {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 1rem;
    margin-top: 0.75rem;
    box-shadow: var(--shadow-lg);
  }

  .site-nav {
    height: auto;
    min-height: var(--nav-h);
  }
}

/* ---------- 6. Hero ---------- */
.hero {
  padding: calc(var(--nav-h) + 5rem) 0 5rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
}

.blob-1 {
  width: 480px;
  height: 480px;
  background: var(--c-emerald);
  top: -120px;
  right: -100px;
  opacity: 0.22;
  animation: float 14s ease-in-out infinite;
}

.blob-2 {
  width: 380px;
  height: 380px;
  background: var(--c-gold);
  bottom: -140px;
  left: -120px;
  opacity: 0.18;
  animation: float 18s ease-in-out infinite reverse;
}

.grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 60% 30%, #000 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 60% 30%, #000 0%, transparent 70%);
}

@keyframes float {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(-30px, 30px) scale(1.08);
  }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 1.25rem;
}

.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.75rem);
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.hero-title em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 600;
  background: linear-gradient(100deg, var(--c-emerald), var(--c-gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 560px;
  margin-bottom: 2rem;
}

.author-card {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-top: 2.5rem;
}

.author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, var(--c-navy-2), var(--c-emerald));
}

.author-name {
  font-weight: 700;
  color: var(--heading);
}

.author-meta {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.hero-figure {
  position: relative;
  margin: 0;
}

.hero-figure img {
  filter: drop-shadow(0 30px 50px rgba(11, 31, 58, 0.18));
}

.floating-chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  line-height: 1.2;
  animation: bob 5s ease-in-out infinite;
}

.floating-chip i {
  font-size: 1.4rem;
  color: var(--accent);
}

.floating-chip strong {
  display: block;
  color: var(--heading);
  font-size: 1.1rem;
}

.floating-chip small {
  color: var(--text-muted);
  font-size: 0.75rem;
}

.chip-1 {
  top: 8%;
  left: -4%;
}

.chip-2 {
  bottom: 10%;
  right: -2%;
  animation-delay: -2.5s;
}

.chip-2 i {
  color: var(--c-gold);
}

@keyframes bob {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

@media (max-width: 575.98px) {
  .floating-chip {
    display: none;
  }
}

/* ---------- 7. Статистика ---------- */
.stats {
  padding: 0 0 4rem;
}

.stat-card {
  height: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.stat-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.stat-value {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  color: var(--heading);
  line-height: 1;
  margin-bottom: 0.75rem;
  font-variant-numeric: tabular-nums;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ---------- 8. Статья ---------- */
.article-section {
  padding: 5rem 0;
  background: var(--surface);
  border-block: 1px solid var(--border);
}

.toc {
  position: sticky;
  top: calc(var(--nav-h) + 2rem);
}

.toc-title {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 800;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: toc;
  border-left: 2px solid var(--border);
}

.toc-list li {
  counter-increment: toc;
}

.toc-list a {
  display: block;
  padding: 0.5rem 0 0.5rem 1.1rem;
  margin-left: -2px;
  border-left: 2px solid transparent;
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 600;
  transition: all 0.25s ease;
}

.toc-list a::before {
  content: counter(toc, decimal-leading-zero) "  ";
  color: var(--accent);
  font-size: 0.8rem;
  opacity: 0.7;
}

.toc-list a:hover {
  color: var(--heading);
}

.toc-list a.active {
  color: var(--heading);
  border-left-color: var(--accent);
  background: linear-gradient(90deg, var(--accent-soft), transparent);
}

.toc-share {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 2rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.share-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--heading);
  display: grid;
  place-items: center;
  transition: 0.25s;
}

.share-btn:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.article-body {
  font-size: 1.125rem;
}

.chapter {
  padding-bottom: 3.5rem;
  margin-bottom: 3.5rem;
  border-bottom: 1px dashed var(--border);
}

.chapter:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.chapter-num {
  display: block;
  font-family: var(--font-serif);
  font-size: 3.5rem;
  line-height: 1;
  font-weight: 700;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--accent);
  margin-bottom: 0.5rem;
}

.chapter h2 {
  font-size: clamp(1.6rem, 3vw, 2.15rem);
  margin-bottom: 1.25rem;
}

.dropcap::first-letter {
  float: left;
  font-family: var(--font-serif);
  font-size: 4.2rem;
  line-height: 0.85;
  font-weight: 700;
  color: var(--accent);
  padding: 0.35rem 0.6rem 0 0;
}

.pull-quote {
  position: relative;
  margin: 2.5rem 0;
  padding: 2rem 2rem 2rem 2.5rem;
  border-radius: var(--radius);
  background: var(--bg-alt);
  border-left: 4px solid var(--accent);
}

.pull-quote i {
  position: absolute;
  top: -18px;
  left: 1.5rem;
  font-size: 2.6rem;
  color: var(--accent);
}

.pull-quote p {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.35rem;
  color: var(--heading);
  margin: 0;
  line-height: 1.5;
}

/* Бюджетные полосы */
.budget-bars {
  display: flex;
  gap: 6px;
  margin: 2rem 0;
  height: 64px;
}

.budget-bar {
  flex: 0 0 calc(var(--w) - 4px);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  padding: 0 1rem;
  color: #fff;
  font-weight: 700;
  font-size: 0.875rem;
  white-space: nowrap;
  overflow: hidden;
  transform-origin: left center;
  transform: scaleX(0);
  transition: transform 1.1s var(--ease);
}

.budget-bar.needs {
  background: var(--c-navy-2);
}

.budget-bar.wants {
  background: var(--c-gold);
  color: var(--c-navy);
  transition-delay: 0.15s;
}

.budget-bar.save {
  background: var(--c-emerald);
  transition-delay: 0.3s;
}

.is-visible .budget-bar {
  transform: scaleX(1);
}

[data-theme="dark"] .budget-bar.needs {
  background: #2f5fa0;
}

@media (max-width: 575.98px) {
  .budget-bars {
    flex-direction: column;
    height: auto;
  }

  .budget-bar {
    flex: none;
    width: var(--w);
    min-width: 160px;
    height: 44px;
  }
}

.article-table {
  color: var(--text);
  --bs-table-bg: transparent;
  --bs-table-color: var(--text);
  font-size: 0.975rem;
}

.article-table thead th {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  border-bottom: 2px solid var(--border);
}

.article-table td {
  border-color: var(--border);
  padding: 1rem 0.75rem;
}

.article-table td:first-child {
  font-weight: 700;
  color: var(--heading);
  white-space: nowrap;
}

.article-table td:last-child {
  font-weight: 800;
  color: var(--accent);
}

.dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 0.5rem;
  vertical-align: middle;
}

.dot-needs {
  background: var(--c-navy-2);
}

.dot-wants {
  background: var(--c-gold);
}

.dot-save {
  background: var(--c-emerald);
}

/* Выноски */
.callout {
  display: flex;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius);
  margin: 2rem 0;
  font-size: 1rem;
  border: 1px solid;
}

.callout>i {
  font-size: 1.5rem;
  line-height: 1.2;
}

.callout-tip {
  background: var(--accent-soft);
  border-color: rgba(16, 185, 129, 0.3);
}

.callout-tip>i {
  color: var(--accent);
}

.callout-info {
  background: rgba(56, 189, 248, 0.1);
  border-color: rgba(56, 189, 248, 0.3);
}

.callout-info>i {
  color: var(--c-sky);
}

.callout-warning {
  background: rgba(245, 181, 68, 0.12);
  border-color: rgba(245, 181, 68, 0.35);
}

.callout-warning>i {
  color: var(--c-gold);
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}

.check-list li {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 0.9rem;
}

.check-list i {
  color: var(--accent);
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.article-figure {
  margin: 2rem 0;
  padding: 1.5rem;
  border-radius: var(--radius);
  background: var(--bg-alt);
  border: 1px solid var(--border);
}

.article-figure img {
  border-radius: var(--radius-sm);
}

.article-figure figcaption {
  margin-top: 1rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  text-align: center;
}

.asset-card {
  height: 100%;
  padding: 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg);
  transition: all 0.35s var(--ease);
}

.asset-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.asset-card i {
  font-size: 1.75rem;
  color: var(--accent);
}

.asset-card h3 {
  font-size: 1.15rem;
  margin: 0.75rem 0 0.4rem;
}

.asset-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.6;
}

/* ---------- 9. Заголовки секций ---------- */
.section-head {
  max-width: 680px;
  margin: 0 auto 3rem;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin-bottom: 0.75rem;
}

.section-sub {
  color: var(--text-muted);
  font-size: 1.1rem;
}

/* ---------- 10. Калькулятор ---------- */
.calc-section {
  padding: 6rem 0;
}

.calc-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 4vw, 3rem);
  box-shadow: var(--shadow-lg);
}

.calc-card .form-label {
  font-weight: 700;
  color: var(--heading);
  font-size: 0.95rem;
}

.calc-card output {
  color: var(--accent);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.calc-card .form-select {
  border-radius: var(--radius-sm);
  border-color: var(--border);
  background-color: var(--bg);
  color: var(--text);
  padding: 0.7rem 1rem;
}

[data-theme="dark"] .calc-card .form-select {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23d7deea' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
}

.calc-card .form-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.form-range::-webkit-slider-runnable-track {
  background: var(--bg-alt);
  height: 6px;
}

.form-range::-moz-range-track {
  background: var(--bg-alt);
  height: 6px;
}

.form-range::-webkit-slider-thumb {
  background: var(--accent);
  width: 20px;
  height: 20px;
  margin-top: -7px;
  box-shadow: 0 0 0 5px var(--accent-soft);
  transition: transform 0.2s;
}

.form-range::-webkit-slider-thumb:active {
  transform: scale(1.15);
  background: var(--accent-hover);
}

.form-range::-moz-range-thumb {
  background: var(--accent);
  width: 20px;
  height: 20px;
  box-shadow: 0 0 0 5px var(--accent-soft);
}

.form-range:focus::-webkit-slider-thumb {
  box-shadow: 0 0 0 6px rgba(16, 185, 129, 0.3);
}

.calc-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 1rem;
}

.calc-results {
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.75rem;
  border-radius: var(--radius);
  background: linear-gradient(160deg, var(--c-navy), var(--c-navy-2));
  color: #fff;
}

.result-main span {
  font-size: 0.85rem;
  opacity: 0.7;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.result-main strong {
  display: block;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
}

.result-mini {
  background: rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-sm);
  padding: 0.9rem 1rem;
}

.result-mini span {
  display: block;
  font-size: 0.8rem;
  opacity: 0.75;
}

.result-mini strong {
  font-size: 1.15rem;
  font-variant-numeric: tabular-nums;
}

.result-mini .dot {
  width: 8px;
  height: 8px;
  margin-right: 0.3rem;
}

.chart {
  flex: 1;
  min-height: 200px;
  display: flex;
  align-items: flex-end;
  gap: 3px;
  padding-top: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.chart-col {
  flex: 1;
  display: flex;
  flex-direction: column-reverse;
  height: 100%;
  position: relative;
  cursor: default;
}

.chart-col .seg-invested,
.chart-col .seg-interest {
  width: 100%;
  transition: height 0.6s var(--ease);
}

.chart-col .seg-invested {
  background: var(--c-emerald);
  border-radius: 0 0 3px 3px;
}

.chart-col .seg-interest {
  background: var(--c-gold);
  border-radius: 3px 3px 0 0;
}

.chart-col:hover .seg-invested,
.chart-col:hover .seg-interest {
  filter: brightness(1.15);
}

.chart-col[data-tip]:hover::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  white-space: pre;
  background: #fff;
  color: var(--c-navy);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.4rem 0.6rem;
  border-radius: 8px;
  box-shadow: var(--shadow);
  z-index: 5;
  pointer-events: none;
  text-align: center;
}

.chart-legend {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  font-size: 0.8rem;
  opacity: 0.8;
}

/* ---------- 11. Советы ---------- */
.tips-section {
  padding: 6rem 0;
  background: var(--bg-alt);
}

.tip-card {
  height: 100%;
  padding: 2rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.tip-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--c-emerald), var(--c-gold));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease);
}

.tip-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.tip-card:hover::before {
  transform: scaleX(1);
}

.tip-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
  transition: transform 0.4s var(--ease);
}

.tip-card:hover .tip-icon {
  transform: rotate(-8deg) scale(1.08);
}

.tip-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.tip-card p {
  color: var(--text-muted);
  font-size: 0.975rem;
  margin: 0;
}

/* ---------- 12. Таймлайн ---------- */
.plan-section {
  padding: 6rem 0;
}

.timeline {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 900px;
  position: relative;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: linear-gradient(var(--c-emerald), var(--c-gold));
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  width: 50%;
  padding: 0 3rem 3rem 0;
}

.timeline-item:nth-child(even) {
  margin-left: 50%;
  padding: 0 0 3rem 3rem;
}

.timeline-marker {
  position: absolute;
  top: 0;
  right: -22px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
  color: #fff;
  background: var(--accent);
  box-shadow: 0 0 0 6px var(--bg);
  z-index: 1;
}

.timeline-item:nth-child(even) .timeline-marker {
  right: auto;
  left: -22px;
  background: var(--c-gold);
  color: var(--c-navy);
}

.timeline-content {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.timeline-week {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.timeline-content h3 {
  font-size: 1.2rem;
  margin: 0.3rem 0 0.5rem;
}

.timeline-content p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.975rem;
}

@media (max-width: 767.98px) {
  .timeline::before {
    left: 22px;
  }

  .timeline-item,
  .timeline-item:nth-child(even) {
    width: 100%;
    margin-left: 0;
    padding: 0 0 2rem 4.25rem;
  }

  .timeline-marker,
  .timeline-item:nth-child(even) .timeline-marker {
    left: 0;
    right: auto;
  }
}

/* ---------- 13. FAQ ---------- */
.faq-section {
  padding: 6rem 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
}

.faq-accordion {
  --bs-accordion-bg: transparent;
  --bs-accordion-border-color: var(--border);
}

.faq-accordion .accordion-item {
  border: 1px solid var(--border);
  border-radius: var(--radius) !important;
  margin-bottom: 0.9rem;
  overflow: hidden;
  background: var(--bg);
}

.faq-accordion .accordion-button {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--heading);
  background: transparent;
  padding: 1.25rem 1.5rem;
  box-shadow: none;
}

.faq-accordion .accordion-button:not(.collapsed) {
  color: var(--accent);
  background: var(--accent-soft);
}

.faq-accordion .accordion-button::after {
  background-image: none;
  content: "\F4FE";
  font-family: "bootstrap-icons";
  width: auto;
  height: auto;
  font-size: 1.2rem;
  transition: transform 0.35s var(--ease);
}

.faq-accordion .accordion-button:not(.collapsed)::after {
  transform: rotate(45deg);
}

.faq-accordion .accordion-body {
  color: var(--text-muted);
  padding: 0.5rem 1.5rem 1.5rem;
}

/* ---------- 14. Подписка ---------- */
.subscribe-section {
  padding: 5rem 0 6rem;
}

.subscribe-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 5vw, 3.5rem);
  color: #fff;
  background:
    radial-gradient(circle at 90% 10%, rgba(245, 181, 68, 0.35), transparent 40%),
    radial-gradient(circle at 0% 100%, rgba(16, 185, 129, 0.4), transparent 45%),
    linear-gradient(135deg, var(--c-navy), var(--c-navy-2));
  box-shadow: var(--shadow-lg);
}

.subscribe-card h2 {
  color: #fff;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
}

.subscribe-card p {
  opacity: 0.8;
  margin: 0;
}

.subscribe-form .form-control {
  border-radius: 999px 0 0 999px;
  border: none;
  padding-left: 1.5rem;
  font-size: 1rem;
}

.subscribe-form .form-control:focus {
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.45);
}

.subscribe-form .btn {
  border-radius: 0 999px 999px 0;
}

.subscribe-form .form-control.is-invalid {
  box-shadow: 0 0 0 3px rgba(240, 114, 107, 0.7);
}

.form-feedback {
  min-height: 1.5rem;
  margin-top: 0.75rem;
  font-size: 0.9rem;
  font-weight: 600;
}

.form-feedback.ok {
  color: #6ee7b7;
}

.form-feedback.err {
  color: #fca5a5;
}

/* ---------- 15. Футер ---------- */
.site-footer {
  padding: 4rem 0 2rem;
  background: var(--c-navy);
  color: #aab6c8;
}

.site-footer .navbar-brand,
.site-footer h4 {
  color: #fff;
}

.site-footer h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

.footer-text {
  max-width: 380px;
  font-size: 0.95rem;
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links a {
  color: #aab6c8;
  display: inline-block;
  padding: 0.25rem 0;
}

.footer-links a:hover {
  color: #fff;
  transform: translateX(4px);
}

.social {
  display: flex;
  gap: 0.6rem;
}

.social a {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
  transition: 0.3s var(--ease);
}

.social a:hover {
  background: var(--accent);
  transform: translateY(-3px);
}

.site-footer hr {
  border-color: rgba(255, 255, 255, 0.12);
  margin: 2.5rem 0 1.5rem;
  opacity: 1;
}

.disclaimer {
  font-size: 0.825rem;
  margin: 0;
}

/* ---------- 16. Кнопка «Наверх» ---------- */
.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 1050;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: none;
  background: var(--surface);
  color: var(--heading);
  box-shadow: var(--shadow-lg);
  display: grid;
  place-items: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.9);
  transition: all 0.4s var(--ease);
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.back-to-top:hover {
  color: var(--accent);
  transform: translateY(-4px);
}

.back-to-top svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.back-to-top circle {
  fill: none;
  stroke-width: 3;
}

.ring-bg {
  stroke: var(--border);
}

.ring-progress {
  stroke: var(--accent);
  stroke-linecap: round;
  stroke-dasharray: 131.95;
  stroke-dashoffset: 131.95;
  /* 2πr, r = 21 */
  transition: stroke-dashoffset 0.15s linear;
}

.back-to-top i {
  font-size: 1.2rem;
  position: relative;
}

/* ---------- 17. Toast ---------- */
.toast-lite {
  position: fixed;
  left: 50%;
  bottom: 32px;
  z-index: 1100;
  transform: translate(-50%, 30px);
  opacity: 0;
  pointer-events: none;
  background: var(--c-navy);
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: var(--shadow-lg);
  transition: all 0.35s var(--ease);
}

.toast-lite.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ---------- 18. Анимации появления (Intersection Observer) ---------- */
.reveal {
  opacity: 0;
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: var(--delay, 0ms);
  will-change: opacity, transform;
}

.reveal[data-reveal="fade-up"] {
  transform: translateY(40px);
}

.reveal[data-reveal="fade-left"] {
  transform: translateX(40px);
}

.reveal[data-reveal="fade-right"] {
  transform: translateX(-40px);
}

.reveal[data-reveal="zoom-in"] {
  transform: scale(0.92);
}

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

/* Без JS контент не должен прятаться */
.no-js .reveal {
  opacity: 1;
  transform: none;
}

/* Уважение к настройкам доступности */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }

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