﻿/* === Biznes Starter - редакционный дизайн === */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,400;0,9..144,500;0,9..144,600;0,9..144,700;1,9..144,300;1,9..144,400&family=Inter:wght@300;400;500;600;700&family=DM+Serif+Display:ital@0;1&display=swap');

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  /* Новая палитра - тёплый кремовый / глубокий лесной / охра */
  --forest: #1F5441;
  --forest-deep: #0F3529;
  --forest-soft: #2E6E57;
  --forest-warm: #3B8168;

  --ochre: #D4A843;
  --ochre-deep: #B0872E;
  --ochre-light: #EACD77;

  --paper-1: #FDFAF1;
  --paper-2: #F6EFDD;
  --paper-3: #EBE2CB;

  /* Семантические алиасы - старые токены теперь указывают на новую палитру */
  --ink: #1A2421;                    /* основной тёмный текст */
  --ink-soft: #3E4A46;               /* приглушённый тёмный */
  --ink-muted: #808A85;              /* тёртиарный муд */
  --cream: #F6EFDD;                  /* main bg = тёплый кремовый */
  --cream-warm: #FDFAF1;             /* лайтер кремовый - hover */
  --cream-deep: #EBE2CB;             /* deeper кремовый */
  --paper: #FDFAF1;                  /* card surface - самый светлый */
  --terracotta: #1F5441;             /* accent = лесной зелёный */
  --terracotta-deep: #0F3529;        /* hover зелёный */
  --amber: #EACD77;                  /* светлая охра */
  --sage: #8FB3A3;
  --ruby: #D97757;                   /* тёплый коралл - warm accent */
  --line: rgba(26, 36, 33, 0.12);
  --line-soft: rgba(26, 36, 33, 0.06);

  /* Legacy tokens (бордо больше не используется, но не ломаем правила) */
  --burgundy: #1F5441;
  --burgundy-deep: #0F3529;
  --burgundy-soft: #2E6E57;
  --burgundy-warm: #3B8168;
  --gold: #D4A843;
  --gold-deep: #B0872E;
  --gold-light: #EACD77;
  --beige: #EBE2CB;
  --beige-warm: #F6EFDD;

  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 20px;

  --t-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --t-med: 280ms cubic-bezier(0.16, 1, 0.3, 1);
  --t-slow: 500ms cubic-bezier(0.16, 1, 0.3, 1);
}

html, body { height: 100%; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--cream);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, .serif { font-family: 'Fraunces', 'Times New Roman', serif; font-weight: 500; letter-spacing: -0.01em; }

button { font-family: inherit; background: none; border: none; color: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }

/* =========================
   ЛЕЙАУТ: сайдбар + контент
   ========================= */
.app {
  display: grid;
  grid-template-columns: 280px 1fr;
  min-height: 100vh;
}

/* --- SIDEBAR --- */
.sidebar {
  background: var(--paper);
  border-right: 1px solid var(--line);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.brand-mark {
  font-family: 'Fraunces', serif;
  font-size: 28px;
  font-weight: 500;
  font-style: italic;
  color: var(--terracotta);
  line-height: 1;
}

.brand-name {
  font-family: 'Fraunces', serif;
  font-size: 20px;
  letter-spacing: -0.02em;
}

.brand-sub {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-top: 4px;
  padding-left: 40px;
}

.nav-section { display: flex; flex-direction: column; gap: 2px; }

.nav-heading {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-muted);
  padding: 0 12px;
  margin-bottom: 10px;
  font-weight: 600;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: var(--r-sm);
  font-size: 14px;
  color: var(--ink-soft);
  transition: background var(--t-fast), color var(--t-fast);
  cursor: pointer;
  width: 100%;
  text-align: left;
}

.nav-item:hover {
  background: var(--cream-warm);
  color: var(--ink);
}

.nav-item.is-active {
  background: var(--ink);
  color: var(--cream);
}

.nav-item.is-active:hover {
  background: var(--ink);
}

.nav-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.4;
  flex-shrink: 0;
}

.nav-item.is-active .nav-dot { opacity: 1; background: var(--terracotta); }

.nav-tree {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding-left: 18px;
  border-left: 1px solid var(--line-soft);
  margin-left: 18px;
  margin-top: 4px;
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--t-med);
}

.nav-tree.is-open { max-height: 600px; }

.nav-subitem {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: var(--r-sm);
  font-size: 13px;
  color: var(--ink-soft);
  cursor: pointer;
  transition: background var(--t-fast);
}

.nav-subitem:hover { background: var(--cream-warm); }

.nav-subitem.is-active {
  background: var(--cream-deep);
  color: var(--ink);
  font-weight: 500;
}

.nav-subnumber {
  font-family: 'Fraunces', serif;
  font-style: italic;
  color: var(--ink-muted);
  font-size: 12px;
}

.nav-chevron {
  margin-left: auto;
  transition: transform var(--t-med);
  font-size: 10px;
  opacity: 0.5;
}

.nav-item.is-expanded .nav-chevron { transform: rotate(90deg); }

.nav-footer {
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px solid var(--line-soft);
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--amber), var(--terracotta));
  display: grid;
  place-items: center;
  color: var(--paper);
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: 14px;
}

.nav-user-name { font-size: 13px; font-weight: 500; }
.nav-user-plan { font-size: 11px; color: var(--ink-muted); }

/* --- MAIN --- */
.main {
  padding: 40px clamp(32px, 4vw, 72px) 80px;
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  min-width: 0;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 48px;
}

.breadcrumb {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.breadcrumb b { color: var(--ink); font-weight: 500; }

.topbar-actions { display: flex; gap: 12px; align-items: center; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  background: var(--cream-warm);
  color: var(--ink-soft);
}

.chip-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--sage);
}

/* Сцена/страница */
.page { display: none; }
.page.is-active { display: block; animation: fadeUp 0.5s var(--t-med); }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ================
   ГЛАВНАЯ
   ================ */
.hero {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 48px;
  align-items: end;
  margin-bottom: 64px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--line);
}

.hero-kicker {
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 20px;
  display: inline-block;
}

.hero-title {
  font-size: clamp(44px, 5vw, 72px);
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  font-weight: 400;
}

.hero-title em {
  font-style: italic;
  color: var(--terracotta);
  font-weight: 300;
}

.hero-lead {
  font-size: 18px;
  color: var(--ink-soft);
  max-width: 520px;
  line-height: 1.55;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px 32px;
  border-left: 1px solid var(--line);
  padding-left: 32px;
}

.stat-value {
  font-family: 'Fraunces', serif;
  font-size: 36px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.02em;
}

.stat-value em { color: var(--terracotta); font-style: italic; }

.stat-label {
  font-size: 12px;
  color: var(--ink-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 6px;
}

/* Продолжить учиться */
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 24px;
}

.section-title {
  font-size: 26px;
  letter-spacing: -0.015em;
}

.section-link {
  font-size: 13px;
  color: var(--terracotta);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-fast);
}

.section-link:hover { border-bottom-color: var(--terracotta); }

.continue-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 36px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: center;
  position: relative;
  overflow: hidden;
  margin-bottom: 64px;
  transition: transform var(--t-med), box-shadow var(--t-med);
}

.continue-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 40px -20px rgba(29, 20, 16, 0.15);
}

.continue-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: var(--terracotta);
}

.continue-block {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 10px;
}

.continue-lesson {
  font-family: 'Fraunces', serif;
  font-size: 28px;
  line-height: 1.2;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.continue-meta {
  display: flex;
  gap: 20px;
  color: var(--ink-muted);
  font-size: 13px;
  margin-bottom: 20px;
}

.continue-meta span::before {
  content: '';
  width: 4px; height: 4px;
  background: var(--ink-muted);
  border-radius: 50%;
  display: inline-block;
  margin-right: 8px;
  vertical-align: middle;
  opacity: 0.5;
}

.continue-meta span:first-child::before { display: none; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  transition: all var(--t-fast);
  cursor: pointer;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--ink);
  color: var(--cream);
}

.btn-primary:hover { background: var(--terracotta); transform: translateY(-1px); }

.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.btn-outline:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--cream);
}

.btn-ghost {
  color: var(--ink-soft);
  padding: 8px 14px;
}

.btn-ghost:hover { color: var(--terracotta); }

.btn-arrow { transition: transform var(--t-fast); }
.btn:hover .btn-arrow { transform: translateX(3px); }

/* Бенто-сетка разделов */
.bento {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 16px;
  margin-bottom: 64px;
}

.bento-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px;
  transition: all var(--t-med);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.bento-card:hover {
  transform: translateY(-2px);
  border-color: var(--ink);
}

.bento-card.tall { grid-row: span 2; }
.bento-card.accent { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.bento-card.accent .bento-meta { color: rgba(245, 239, 226, 0.6); }
.bento-card.warm { background: linear-gradient(135deg, var(--terracotta), var(--terracotta-deep)); color: var(--paper); border-color: transparent; }
.bento-card.warm .bento-meta { color: rgba(253, 250, 242, 0.75); }
.bento-card.warm:hover { transform: translateY(-2px) rotate(-0.3deg); }

.bento-meta {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 16px;
}

.bento-title {
  font-family: 'Fraunces', serif;
  font-size: 22px;
  line-height: 1.25;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.bento-tall-title { font-size: 32px; line-height: 1.15; }

.bento-desc {
  color: var(--ink-muted);
  font-size: 14px;
  line-height: 1.55;
}

.bento-card.accent .bento-desc,
.bento-card.warm .bento-desc { color: rgba(253, 250, 242, 0.8); }

.bento-figure {
  font-family: 'Fraunces', serif;
  font-size: 96px;
  line-height: 1;
  color: var(--cream-deep);
  margin-top: 32px;
  font-style: italic;
  font-weight: 300;
}

.bento-card.accent .bento-figure { color: rgba(245, 239, 226, 0.15); }

/* Testimonial block */
.pull-quote {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 48px;
  position: relative;
  margin-bottom: 48px;
}

.pull-quote::before {
  content: '“';
  position: absolute;
  top: 8px;
  left: 36px;
  font-family: 'Fraunces', serif;
  font-size: 120px;
  line-height: 1;
  color: var(--terracotta);
  opacity: 0.3;
}

.pull-text {
  font-family: 'Fraunces', serif;
  font-size: 24px;
  line-height: 1.45;
  font-weight: 300;
  font-style: italic;
  max-width: 760px;
  margin-left: 60px;
  color: var(--ink-soft);
}

.pull-author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
  margin-left: 60px;
}

.pull-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--sage), var(--amber));
  display: grid;
  place-items: center;
  color: var(--paper);
  font-family: 'Fraunces', serif;
  font-size: 14px;
}

.pull-name { font-weight: 500; font-size: 14px; }
.pull-role { color: var(--ink-muted); font-size: 12px; }

/* ================
   ПРОГРАММА (список блоков)
   ================ */
.page-header { margin-bottom: 48px; }

.page-kicker {
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 16px;
}

.page-title {
  font-size: clamp(40px, 4vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  font-weight: 400;
  max-width: 720px;
  margin-bottom: 20px;
}

.page-lead {
  font-size: 17px;
  color: var(--ink-soft);
  max-width: 620px;
}

.program-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.block-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 32px;
  cursor: pointer;
  transition: all var(--t-med);
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-height: 220px;
  position: relative;
  overflow: hidden;
}

.block-card:hover {
  transform: translateY(-2px);
  border-color: var(--ink);
  box-shadow: 0 24px 48px -24px rgba(29, 20, 16, 0.2);
}

.block-card[data-status="locked"] { opacity: 0.55; }
.block-card[data-status="locked"]:hover { transform: none; border-color: var(--line); cursor: not-allowed; }

.block-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.block-number {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 48px;
  line-height: 1;
  color: var(--cream-deep);
  font-weight: 300;
}

.block-card[data-status="in-progress"] .block-number { color: var(--terracotta); }

.block-badge {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-muted);
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.block-card[data-status="in-progress"] .block-badge {
  background: var(--terracotta);
  color: var(--paper);
  border-color: var(--terracotta);
}

.block-card[data-status="locked"] .block-badge {
  color: var(--ink-muted);
}

.block-title {
  font-family: 'Fraunces', serif;
  font-size: 28px;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.block-subtitle {
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.5;
}

.block-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
}

.block-meta {
  display: flex;
  gap: 16px;
  font-size: 12px;
  color: var(--ink-muted);
}

.block-progress-wrap {
  flex: 1;
  max-width: 120px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.block-progress-bar {
  flex: 1;
  height: 3px;
  background: var(--line);
  border-radius: 99px;
  overflow: hidden;
}

.block-progress-fill {
  height: 100%;
  background: var(--terracotta);
  width: 0;
  transition: width var(--t-slow);
}

.block-progress-num {
  font-family: 'Fraunces', serif;
  font-size: 12px;
  color: var(--ink-muted);
}

/* ================
   ДЕТАЛЬ БЛОКА
   ================ */
.block-detail-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
  padding-bottom: 40px;
  margin-bottom: 40px;
  border-bottom: 1px solid var(--line);
}

.block-detail-number {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 16px;
}

.block-detail-title {
  font-size: clamp(44px, 5vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  font-weight: 400;
}

.block-detail-subtitle {
  font-size: 18px;
  color: var(--ink-soft);
  margin-bottom: 24px;
}

.block-detail-stats {
  display: flex;
  gap: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--line-soft);
}

.block-mini-stat {
  font-family: 'Fraunces', serif;
  font-size: 24px;
}

.block-mini-stat small {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  color: var(--ink-muted);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-top: 4px;
  font-weight: 500;
}

.block-overview {
  background: var(--cream-warm);
  border-radius: var(--r-lg);
  padding: 28px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-soft);
}

.block-split {
  display: grid;
  grid-template-columns: 1.8fr 1fr;
  gap: 48px;
}

.lessons-list h3 {
  font-size: 20px;
  margin-bottom: 20px;
}

.lesson {
  display: grid;
  grid-template-columns: 32px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid var(--line-soft);
  transition: background var(--t-fast), padding var(--t-fast);
  cursor: pointer;
  margin: 0 -8px;
  padding-left: 8px;
  padding-right: 8px;
  border-radius: 4px;
}

.lesson:hover { background: var(--cream-warm); }

.lesson-check {
  width: 22px; height: 22px;
  border: 1.5px solid var(--line);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--paper);
  font-size: 11px;
  transition: all var(--t-fast);
}

.lesson[data-done="true"] .lesson-check {
  background: var(--ink);
  border-color: var(--ink);
}

.lesson[data-current="true"] .lesson-check {
  border-color: var(--terracotta);
  border-style: solid;
  border-width: 2px;
  box-shadow: 0 0 0 3px rgba(194, 81, 45, 0.15);
}

.lesson-title {
  font-size: 15px;
  line-height: 1.4;
}

.lesson[data-done="true"] .lesson-title { color: var(--ink-muted); }
.lesson[data-current="true"] .lesson-title { color: var(--terracotta); font-weight: 500; }

.lesson-time {
  font-size: 12px;
  color: var(--ink-muted);
  font-variant-numeric: tabular-nums;
}

.outcomes {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px;
}

.outcomes h4 {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 20px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
}

.outcomes-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.outcomes-list li {
  display: flex;
  gap: 12px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-soft);
}

.outcomes-list li::before {
  content: '✓';
  color: var(--terracotta);
  font-weight: 700;
  flex-shrink: 0;
}

/* ================
   ШАБЛОНЫ
   ================ */
.filter-bar {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.filter-pill {
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13px;
  color: var(--ink-soft);
  transition: all var(--t-fast);
}

.filter-pill:hover { color: var(--ink); background: var(--cream-warm); }

.filter-pill.is-active {
  background: var(--ink);
  color: var(--cream);
}

.templates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.tpl-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: all var(--t-med);
  cursor: pointer;
  position: relative;
}

.tpl-card:hover {
  transform: translateY(-2px);
  border-color: var(--ink);
  box-shadow: 0 18px 30px -20px rgba(29, 20, 16, 0.2);
}

.tpl-icon {
  width: 44px; height: 44px;
  background: var(--cream-warm);
  border-radius: var(--r-sm);
  display: grid;
  place-items: center;
  font-size: 20px;
  color: var(--terracotta);
}

.tpl-popular {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--terracotta);
  font-weight: 600;
}

.tpl-category {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-muted);
  font-weight: 600;
}

.tpl-title {
  font-family: 'Fraunces', serif;
  font-size: 17px;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.tpl-meta {
  font-size: 12px;
  color: var(--ink-muted);
  margin-top: auto;
}

.tpl-download {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 14px;
  border-top: 1px solid var(--line-soft);
  font-size: 12px;
  color: var(--terracotta);
  font-weight: 500;
}

/* ================
   ЗАДАНИЯ
   ================ */
.tasks-list { display: flex; flex-direction: column; gap: 16px; }

.task-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  transition: all var(--t-med);
}

.task-card:hover { border-color: var(--ink); }

.task-card[data-status="done"] { opacity: 0.7; }
.task-card[data-status="locked"] { opacity: 0.45; }

.task-meta-row {
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
  align-items: center;
}

.task-block-tag {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--terracotta);
  padding: 4px 10px;
  background: rgba(194, 81, 45, 0.08);
  border-radius: 999px;
  font-weight: 600;
}

.task-difficulty {
  font-size: 11px;
  color: var(--ink-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.task-title {
  font-family: 'Fraunces', serif;
  font-size: 24px;
  line-height: 1.25;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.task-checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.task-checklist li {
  display: flex;
  gap: 10px;
  font-size: 14px;
  color: var(--ink-soft);
  cursor: pointer;
  padding: 4px 0;
  transition: color var(--t-fast);
}

.task-checklist li:hover { color: var(--ink); }

.task-check {
  width: 16px; height: 16px;
  border: 1.5px solid var(--line);
  border-radius: 4px;
  display: grid;
  place-items: center;
  color: var(--paper);
  font-size: 10px;
  transition: all var(--t-fast);
  flex-shrink: 0;
  margin-top: 2px;
}

.task-checklist li[data-done="true"] .task-check {
  background: var(--ink);
  border-color: var(--ink);
}

.task-checklist li[data-done="true"] .task-text {
  text-decoration: line-through;
  color: var(--ink-muted);
}

.task-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  min-width: 120px;
}

.task-xp {
  font-family: 'Fraunces', serif;
  font-size: 28px;
  color: var(--terracotta);
  font-weight: 500;
}

.task-xp small {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-muted);
  font-weight: 500;
  display: block;
  margin-top: -4px;
}

.task-deadline {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.task-progress {
  height: 3px;
  background: var(--line);
  border-radius: 99px;
  width: 100%;
  margin-bottom: 14px;
  overflow: hidden;
}

.task-progress-fill {
  height: 100%;
  background: var(--terracotta);
  transition: width var(--t-slow);
}

/* ================
   ПРОГРЕСС
   ================ */
.progress-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
  margin-bottom: 40px;
}

.metric {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px;
}

.metric-label {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 14px;
  font-weight: 600;
}

.metric-value {
  font-family: 'Fraunces', serif;
  font-size: 56px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.02em;
}

.metric-value small {
  font-size: 20px;
  color: var(--ink-muted);
  font-weight: 300;
}

.metric-delta {
  font-size: 12px;
  color: var(--sage);
  margin-top: 8px;
}

.progress-overview {
  background: var(--ink);
  color: var(--cream);
  border-radius: var(--r-lg);
  padding: 40px;
  margin-bottom: 40px;
}

.progress-overview-title {
  font-family: 'Fraunces', serif;
  font-size: 32px;
  margin-bottom: 8px;
}

.progress-overview-desc {
  color: rgba(245, 239, 226, 0.7);
  margin-bottom: 32px;
  max-width: 520px;
}

.progress-bar-big {
  height: 8px;
  background: rgba(245, 239, 226, 0.1);
  border-radius: 99px;
  overflow: hidden;
  margin-bottom: 16px;
}

.progress-bar-big-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--terracotta), var(--amber));
  width: 12%;
  border-radius: 99px;
  transition: width var(--t-slow);
}

.progress-stripes {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 6px;
}

.progress-stripe {
  height: 42px;
  border-radius: 4px;
  background: rgba(245, 239, 226, 0.08);
  position: relative;
  display: grid;
  place-items: center;
  font-family: 'Fraunces', serif;
  font-size: 14px;
  color: rgba(245, 239, 226, 0.5);
}

.progress-stripe.done { background: var(--terracotta); color: var(--paper); }
.progress-stripe.active {
  background: rgba(194, 81, 45, 0.35);
  color: var(--cream);
  outline: 1px solid var(--terracotta);
}

.achievements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}

.ach {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 20px;
  text-align: center;
}

.ach[data-locked="true"] { opacity: 0.4; }

.ach-icon {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 40px;
  color: var(--terracotta);
  line-height: 1;
  margin-bottom: 12px;
  font-weight: 400;
}

.ach[data-locked="true"] .ach-icon { color: var(--ink-muted); }

.ach-name { font-size: 13px; font-weight: 500; margin-bottom: 4px; }
.ach-desc { font-size: 11px; color: var(--ink-muted); line-height: 1.4; }

/* ================
   ПОДДЕРЖКА
   ================ */
.support-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 16px;
}

.support-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 32px;
}

.support-card.accent {
  background: var(--ink);
  color: var(--cream);
}

.support-card.accent .support-title { color: var(--paper); }

.support-title {
  font-family: 'Fraunces', serif;
  font-size: 24px;
  margin-bottom: 12px;
}

.support-text {
  color: var(--ink-muted);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 20px;
}

.support-card.accent .support-text { color: rgba(245, 239, 226, 0.65); }

.faq { display: flex; flex-direction: column; gap: 4px; margin-top: 32px; }

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-q {
  width: 100%;
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  text-align: left;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: color var(--t-fast);
}

.faq-q:hover { color: var(--terracotta); }

.faq-toggle {
  font-family: 'Fraunces', serif;
  font-style: italic;
  color: var(--terracotta);
  transition: transform var(--t-med);
  font-size: 20px;
  line-height: 1;
}

.faq-item.is-open .faq-toggle { transform: rotate(45deg); }

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--t-med);
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.65;
}

.faq-item.is-open .faq-a { max-height: 200px; padding-bottom: 20px; }

.contact-row {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid rgba(245, 239, 226, 0.12);
}

.contact-row:last-child { border-bottom: none; }

.contact-icon {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(245, 239, 226, 0.08);
  display: grid;
  place-items: center;
  color: var(--amber);
  font-family: 'Fraunces', serif;
  font-style: italic;
}

.contact-info { flex: 1; }
.contact-label { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(245, 239, 226, 0.5); }
.contact-value { font-size: 14px; font-weight: 500; }

/* ================
   ТАРИФЫ
   ================ */
.tariffs-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 56px;
}

.tariffs-head .page-title { margin: 0 auto 20px; }
.tariffs-head .page-lead { margin: 0 auto; }

.tariffs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  align-items: stretch;
}

.tariff-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: all var(--t-med);
}

.tariff-card:hover { transform: translateY(-4px); border-color: var(--ink); }

.tariff-card.featured {
  background: var(--ink);
  color: var(--cream);
  border-color: var(--ink);
  position: relative;
  transform: scale(1.02);
}

.tariff-card.featured:hover { transform: scale(1.02) translateY(-4px); }

.tariff-card.featured::before {
  content: 'Рекомендуем';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--terracotta);
  color: var(--paper);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  font-weight: 600;
}

.tariff-name {
  font-family: 'Fraunces', serif;
  font-size: 24px;
  letter-spacing: -0.01em;
}

.tariff-tagline {
  font-size: 13px;
  color: var(--ink-muted);
}

.tariff-card.featured .tariff-tagline { color: rgba(245, 239, 226, 0.65); }

.tariff-price {
  font-family: 'Fraunces', serif;
  font-size: 48px;
  line-height: 1;
  font-weight: 400;
  letter-spacing: -0.02em;
}

.tariff-price-sub {
  font-size: 12px;
  color: var(--ink-muted);
  margin-top: 4px;
}

.tariff-card.featured .tariff-price-sub { color: rgba(245, 239, 226, 0.6); }

.tariff-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
}

.tariff-card.featured .tariff-features { border-top-color: rgba(245, 239, 226, 0.12); }

.tariff-features li {
  display: flex;
  gap: 10px;
  font-size: 13px;
  line-height: 1.5;
  align-items: flex-start;
}

.tariff-features li.off { opacity: 0.35; }

.tariff-features li::before {
  content: '';
  width: 16px; height: 16px;
  background-repeat: no-repeat;
  background-position: center;
  flex-shrink: 0;
  margin-top: 2px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23c2512d' stroke-width='2' stroke-linecap='round'><path d='M3 8.5 L6.5 12 L13 4'/></svg>");
}

.tariff-features li.off::before {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%237a6a5e' stroke-width='1.5' stroke-linecap='round'><path d='M4 4 L12 12 M12 4 L4 12'/></svg>");
}

.tariff-card.featured .tariff-features li::before {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23d9a157' stroke-width='2' stroke-linecap='round'><path d='M3 8.5 L6.5 12 L13 4'/></svg>");
}

.tariff-cta {
  margin-top: auto;
  width: 100%;
  justify-content: center;
}

.tariff-card.featured .btn-primary {
  background: var(--terracotta);
  color: var(--paper);
}

.tariff-card.featured .btn-primary:hover { background: var(--paper); color: var(--ink); }

/* ================
   АДАПТИВ
   ================ */
@media (max-width: 1080px) {
  .app { grid-template-columns: 240px 1fr; }
  .main { padding: 32px 32px 60px; }
  .hero, .block-detail-head, .support-grid { grid-template-columns: 1fr; gap: 32px; }
  .bento { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .bento-card.tall { grid-row: auto; }
  .program-grid { grid-template-columns: 1fr; }
  .progress-grid { grid-template-columns: 1fr 1fr; }
  .tariffs-grid { grid-template-columns: 1fr; }
  .tariff-card.featured { transform: none; }
  .tariff-card.featured:hover { transform: translateY(-4px); }
  .block-split { grid-template-columns: 1fr; }
  .hero-stats { padding-left: 0; border-left: none; border-top: 1px solid var(--line); padding-top: 24px; }
}

@media (max-width: 720px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; border-right: 0; border-bottom: 1px solid var(--line); flex-direction: row; align-items: center; overflow-x: auto; gap: 16px; padding: 16px 20px; flex-wrap: wrap; }
  .brand-sub, .nav-heading, .nav-footer, .nav-tree { display: none; }
  .nav-section { flex-direction: row; flex-wrap: wrap; gap: 4px; }
  .main { padding: 24px 20px 60px; }
  .progress-grid { grid-template-columns: 1fr; }
  .bento { grid-template-columns: 1fr; }
  .progress-stripes { grid-template-columns: repeat(4, 1fr); }
  .task-card { grid-template-columns: 1fr; }
  .task-side { flex-direction: row; align-items: center; justify-content: flex-start; }
  .continue-card { grid-template-columns: 1fr; }
}

/* =========================================
   БОРДО · ЗОЛОТО · БЕЖ - переопределения
   ========================================= */

/* CTA - золотые */
.btn-primary { background: var(--gold); color: var(--burgundy-deep); }
.btn-primary:hover { background: var(--gold-light); color: var(--burgundy-deep); transform: translateY(-1px); }
.btn-outline { color: var(--ink); border-color: var(--line); }
.btn-outline:hover { background: var(--gold); color: var(--burgundy-deep); border-color: var(--gold); }

/* Навигация - активный пункт золотой */
.nav-item.is-active { background: var(--gold); color: var(--burgundy-deep); }
.nav-item.is-active:hover { background: var(--gold-light); }
.nav-item.is-active .nav-dot { background: var(--burgundy-deep); opacity: 1; }
.nav-subitem.is-active { background: var(--burgundy-warm); color: var(--ink); }
.nav-subitem.is-active .nav-subnumber { color: var(--gold); }
.nav-avatar { background: linear-gradient(135deg, var(--gold-light), var(--gold-deep)); color: var(--burgundy-deep); }

/* Hero и главная */
.stat-value em { color: var(--gold); }
.continue-card::before { background: var(--gold); }
.continue-card:hover { box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.5); }

/* Bento */
.bento-card { background: var(--paper); }
.bento-card:hover { border-color: var(--gold); box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.5); }
.bento-card.accent {
  background: var(--burgundy-deep);
  color: var(--ink);
  border-color: rgba(245, 234, 212, 0.1);
}
.bento-card.accent .bento-meta { color: rgba(245, 234, 212, 0.55); }
.bento-card.accent .bento-desc { color: rgba(245, 234, 212, 0.78); }
.bento-card.accent .bento-figure { color: rgba(201, 169, 97, 0.18); }
.bento-figure { color: rgba(201, 169, 97, 0.22); }

.bento-card.warm {
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  color: var(--burgundy-deep);
}
.bento-card.warm .bento-meta { color: rgba(46, 13, 20, 0.65); }
.bento-card.warm .bento-desc { color: rgba(46, 13, 20, 0.85); }

/* Pull-quote - лайтер бордо на основном фоне */
.pull-quote {
  background: var(--burgundy-soft);
  border-color: rgba(245, 234, 212, 0.1);
}
.pull-quote::before { color: var(--gold); opacity: 0.45; }
.pull-text { color: var(--ink-soft); }
.pull-avatar { background: linear-gradient(135deg, var(--sage), var(--gold)); color: var(--burgundy-deep); }

/* Блоки программы */
.block-card { background: var(--paper); }
.block-card:hover { border-color: var(--gold); box-shadow: 0 24px 48px -24px rgba(0, 0, 0, 0.6); }
.block-number { color: rgba(201, 169, 97, 0.32); }
.block-card[data-status="in-progress"] .block-number { color: var(--gold); }
.block-card[data-status="in-progress"] .block-badge {
  background: var(--gold);
  color: var(--burgundy-deep);
  border-color: var(--gold);
}
.block-progress-fill { background: var(--gold); }

/* Деталь блока */
.block-overview {
  background: var(--burgundy-soft);
  color: var(--ink-soft);
  border: 1px solid rgba(245, 234, 212, 0.08);
}
.lesson:hover { background: var(--burgundy-soft); }
.lesson[data-done="true"] .lesson-check {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--burgundy-deep);
}
.lesson[data-current="true"] .lesson-check {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 169, 97, 0.25);
}
.lesson[data-current="true"] .lesson-title { color: var(--gold); }
.outcomes { background: var(--paper); }

/* Шаблоны */
.tpl-card { background: var(--paper); }
.tpl-card:hover { border-color: var(--gold); box-shadow: 0 18px 30px -20px rgba(0, 0, 0, 0.5); }
.tpl-icon { background: var(--burgundy-warm); color: var(--gold); }

.filter-pill.is-active { background: var(--gold); color: var(--burgundy-deep); }
.filter-pill:hover { background: var(--burgundy-soft); color: var(--ink); }

/* Задания */
.task-card { background: var(--paper); }
.task-card:hover { border-color: var(--gold); }
.task-block-tag { background: rgba(201, 169, 97, 0.18); color: var(--gold); }
.task-checklist li[data-done="true"] .task-check {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--burgundy-deep);
}
.task-xp { color: var(--gold); }
.task-progress-fill { background: var(--gold); }

/* Прогресс - основной блок золотой */
.metric { background: var(--paper); }
.metric-delta { color: var(--gold-light); }

.progress-overview {
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  color: var(--burgundy-deep);
}
.progress-overview-desc { color: rgba(46, 13, 20, 0.75); }
.progress-bar-big { background: rgba(46, 13, 20, 0.22); }
.progress-bar-big-fill { background: linear-gradient(90deg, var(--burgundy-deep), var(--burgundy)); }
.progress-stripe { background: rgba(46, 13, 20, 0.14); color: rgba(46, 13, 20, 0.5); }
.progress-stripe.done { background: var(--burgundy-deep); color: var(--gold); }
.progress-stripe.active {
  background: rgba(46, 13, 20, 0.38);
  color: var(--burgundy-deep);
  outline: 1px solid var(--burgundy-deep);
}

.ach { background: var(--paper); }
.ach-icon { color: var(--gold); }
.ach[data-locked="true"] .ach-icon { color: var(--ink-muted); }

/* Поддержка */
.support-card { background: var(--paper); }
.support-card.accent {
  background: var(--burgundy-deep);
  color: var(--ink);
}
.support-card.accent .support-title { color: var(--ink); }
.support-card.accent .support-text { color: rgba(245, 234, 212, 0.7); }
.contact-row { border-bottom-color: rgba(245, 234, 212, 0.1); }
.contact-icon { background: rgba(245, 234, 212, 0.08); color: var(--gold); }
.contact-label { color: rgba(245, 234, 212, 0.55); }

.faq-item { border-bottom-color: rgba(245, 234, 212, 0.12); }
.faq-toggle { color: var(--gold); }
.faq-q:hover { color: var(--gold); }
.faq-a { color: var(--ink-soft); }

/* Тарифы */
.tariff-card { background: var(--paper); }
.tariff-card:hover { border-color: var(--gold); }

.tariff-card.featured {
  background: linear-gradient(160deg, var(--gold), var(--gold-deep));
  color: var(--burgundy-deep);
  border-color: var(--gold);
}
.tariff-card.featured::before {
  background: var(--burgundy-deep);
  color: var(--gold);
}
.tariff-card.featured .tariff-tagline { color: rgba(46, 13, 20, 0.7); }
.tariff-card.featured .tariff-price-sub { color: rgba(46, 13, 20, 0.65); }
.tariff-card.featured .tariff-features { border-top-color: rgba(46, 13, 20, 0.22); }
.tariff-card.featured .tariff-features li::before {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%232e0d14' stroke-width='2.5' stroke-linecap='round'><path d='M3 8.5 L6.5 12 L13 4'/></svg>");
}
.tariff-card.featured .tariff-features li.off::before {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%232e0d14' stroke-width='1.8' stroke-linecap='round' opacity='0.5'><path d='M4 4 L12 12 M12 4 L4 12'/></svg>");
}
.tariff-card.featured .btn-primary {
  background: var(--burgundy-deep);
  color: var(--gold);
}
.tariff-card.featured .btn-primary:hover {
  background: var(--burgundy);
  color: var(--gold-light);
}

/* Мелочи: chip, breadcrumb */
.chip { background: var(--burgundy-warm); color: var(--ink-soft); }
.chip-dot { background: var(--gold-light); }

/* Page-level tariffs head center align */
.tariffs-head .page-kicker { justify-content: center; }

/* Тени карточек - на тёмном фоне более глубокие */
body { background: var(--burgundy); }

/* =========================================
   ФОТОГРАФИИ И ЖИВЫЕ ЭЛЕМЕНТЫ
   ========================================= */

/* «Живой» чип в hero */
.hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  background: rgba(201, 169, 97, 0.12);
  border: 1px solid rgba(201, 169, 97, 0.35);
  border-radius: 999px;
  font-size: 12px;
  color: var(--gold-light);
  letter-spacing: 0.04em;
  margin-bottom: 24px;
}
.hero-chip-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  animation: heroPulse 2.2s infinite;
  flex-shrink: 0;
}
@keyframes heroPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(201, 169, 97, 0.55); }
  50%      { box-shadow: 0 0 0 10px rgba(201, 169, 97, 0); }
}

/* Стек аватаров студентов под hero-lead */
/* ================ HERO WIDE: текст на всю ширину, фото ниже слева ================ */
.hero--wide {
  display: block !important;
  border-bottom: 1px solid var(--line);
  padding-bottom: 56px;
  margin-bottom: 40px;
}

.hero-kicker--big {
  font-size: 13px !important;
  letter-spacing: 0.24em !important;
  margin-bottom: 28px !important;
}

.hero-title--huge {
  font-size: clamp(56px, 8.5vw, 128px) !important;
  line-height: 0.98 !important;
  letter-spacing: -0.035em !important;
  margin-bottom: 32px !important;
  max-width: 100% !important;
}

.hero-lead--big {
  font-size: clamp(18px, 1.7vw, 24px) !important;
  line-height: 1.45 !important;
  max-width: 1100px;
  color: var(--ink-soft);
  margin-bottom: 40px;
}

/* Ряд: фото слева + поясняющий текст справа */
.hero-students-row {
  display: grid;
  grid-template-columns: minmax(280px, 380px) 1fr;
  gap: clamp(28px, 3vw, 48px);
  align-items: center;
}

.hero-diverse--big {
  font-size: clamp(17px, 1.5vw, 22px) !important;
  line-height: 1.5 !important;
  color: var(--ink-soft);
  max-width: 860px;
  padding-left: 22px;
  border-left: 3px solid var(--ochre);
}
.hero-diverse--big b { color: var(--ink); font-weight: 600; }

.hero-group-photo--big {
  width: 100%;
  aspect-ratio: 4 / 3;
  min-height: 260px;
  border-radius: 20px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 30px 70px -30px rgba(15, 53, 41, 0.4);
  transition: transform 500ms var(--t-med);
}
.hero-group-photo--big::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
  border: 1px solid rgba(15, 53, 41, 0.08);
  pointer-events: none;
}
.hero-group-photo--big:hover { transform: translateY(-3px); }
.hero-group-photo--big img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 1200ms var(--t-med);
}
.hero-group-photo--big:hover img { transform: scale(1.04); }

.hero-group-caption {
  position: absolute;
  left: 16px; bottom: 16px;
  background: rgba(253, 250, 241, 0.92);
  color: var(--forest-deep);
  padding: 10px 16px 10px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 8px 20px -8px rgba(15, 53, 41, 0.3);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}
.hero-copy .hero-title {
  max-width: none;
}
.hero-copy .hero-lead {
  max-width: 720px;
}

.hero-diverse {
  margin-top: 20px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 720px;
  padding-left: 16px;
  border-left: 2px solid var(--ochre);
}
.hero-diverse b { color: var(--ink); font-weight: 600; }

/* Широкая полоса статов под hero */
.hero-stats--wide {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 0 !important;
  padding: 28px 0 !important;
  border-top: 1px solid var(--line) !important;
  border-bottom: 1px solid var(--line) !important;
  border-left: none !important;
  padding-left: 0 !important;
  margin-bottom: 64px;
}
.hero-stats--wide > div {
  padding: 0 clamp(16px, 2vw, 32px);
  border-right: 1px solid var(--line);
}
.hero-stats--wide > div:last-child { border-right: none; }

/* Mobile для hero-wide */
@media (max-width: 1080px) {
  .hero-students-row { grid-template-columns: 1fr; gap: 24px; }
  .hero-group-photo--big { aspect-ratio: 16 / 10; max-height: 360px; }
  .hero-stats--wide { grid-template-columns: repeat(2, 1fr) !important; }
  .hero-stats--wide > div { padding: 20px clamp(16px, 2vw, 24px); }
  .hero-stats--wide > div:nth-child(2) { border-right: none; }
  .hero-stats--wide > div:nth-child(1),
  .hero-stats--wide > div:nth-child(2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 720px) {
  .hero--wide { padding-bottom: 40px; }
  .hero-group-photo--big { aspect-ratio: 3 / 2; border-radius: 14px; min-height: 220px; }
  .hero-group-caption { left: 12px; bottom: 12px; font-size: 11px; padding: 8px 14px; }
  .hero-diverse--big { padding-left: 14px; border-left-width: 2px; }
}
@media (max-width: 480px) {
  .hero-stats--wide { grid-template-columns: 1fr !important; }
  .hero-stats--wide > div { border-right: none !important; border-bottom: 1px solid var(--line); }
  .hero-stats--wide > div:last-child { border-bottom: none; }
}

/* =============
   ОТЗЫВЫ
   ============= */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 64px;
}

.testimonial-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: all var(--t-med);
  position: relative;
}

.testimonial-card:hover {
  transform: translateY(-3px);
  border-color: var(--gold);
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.5);
}

.testimonial-stars {
  color: var(--gold);
  font-size: 14px;
  letter-spacing: 3px;
}

.testimonial-text {
  font-family: 'Fraunces', serif;
  font-size: 16px;
  line-height: 1.55;
  font-style: italic;
  color: var(--ink-soft);
  font-weight: 300;
  flex: 1;
}

.testimonial-author {
  display: flex;
  gap: 12px;
  align-items: center;
  padding-top: 14px;
  border-top: 1px solid var(--line-soft);
}

.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold);
  flex-shrink: 0;
}

.testimonial-name {
  font-weight: 500;
  font-size: 14px;
  color: var(--ink);
}

.testimonial-role {
  font-size: 12px;
  color: var(--ink-muted);
  margin-top: 2px;
}

/* =============
   СООБЩЕСТВО / ГАЛЕРЕЯ
   ============= */
.community-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 64px;
}

.community-card {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: var(--r-md);
  overflow: hidden;
  cursor: pointer;
  background: var(--paper);
  transition: transform var(--t-med);
}

.community-card:hover { transform: translateY(-3px); }

.community-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow), filter var(--t-med);
  filter: saturate(0.95);
}

.community-card:hover img {
  transform: scale(1.04);
  filter: saturate(1.1);
}

.community-overlay {
  position: absolute;
  inset: auto 0 0 0;
  background: linear-gradient(to top, rgba(46, 13, 20, 0.95) 10%, rgba(46, 13, 20, 0.4) 70%, transparent 100%);
  padding: 44px 16px 14px;
  color: var(--ink);
}

.community-name {
  font-family: 'Fraunces', serif;
  font-size: 17px;
  font-weight: 500;
  margin-bottom: 2px;
  letter-spacing: -0.01em;
}

.community-meta {
  font-size: 11px;
  color: rgba(245, 234, 212, 0.8);
  letter-spacing: 0.04em;
}

/* Адаптив для новых элементов */
@media (max-width: 1080px) {
  .testimonials-grid { grid-template-columns: 1fr; }
  .community-gallery { grid-template-columns: repeat(3, 1fr); }
  .hero-students { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 720px) {
  .community-gallery { grid-template-columns: repeat(2, 1fr); }
  .hero-students-stack img { width: 36px; height: 36px; margin-left: -10px; }
}

/* =========================================
   СВЕТЛАЯ ТЕМА - FIX контрастов поверх старых
   ========================================= */

/* Body снова кремовый, а не лесной-зелёный */
body { background: var(--cream); color: var(--ink); }

/* Тёмные акцентные карточки - текст должен быть светлым */
.bento-card.accent { color: var(--paper-1); }
.bento-card.accent .bento-title { color: var(--paper-1); }
.bento-card.warm { color: var(--forest-deep); }
.support-card.accent { background: var(--forest-deep); color: var(--paper-1); }
.support-card.accent .support-title { color: var(--paper-1); }
.pull-quote { background: var(--forest-deep); color: var(--paper-1); }
.pull-quote .pull-text,
.pull-text { color: rgba(253, 250, 241, 0.82); }
.block-overview { background: var(--forest-deep); color: var(--paper-1); }
.lesson:hover { background: rgba(31, 84, 65, 0.08); }
.tpl-icon { background: var(--forest); color: var(--paper-1); }
.filter-pill:hover { background: var(--cream-deep); color: var(--ink); }
.chip { background: var(--cream-deep); color: var(--ink-soft); }
.hero-chip {
  background: rgba(31, 84, 65, 0.1);
  border-color: rgba(31, 84, 65, 0.28);
  color: var(--forest-deep);
}
.hero-chip-pulse { background: var(--forest); }

.progress-overview { color: var(--forest-deep); }
.progress-stripe.done { color: var(--paper-1); }
.tariff-card.featured { color: var(--forest-deep); }
.tariff-card.featured::before { background: var(--forest-deep); color: var(--ochre-light); }
.tariff-card.featured .btn-primary { background: var(--forest-deep); color: var(--ochre-light); }
.tariff-card.featured .btn-primary:hover { background: var(--forest); color: var(--paper-1); }

/* CTA primary - лесной, а не золотой (более чистый) */
.btn-primary { background: var(--forest); color: var(--paper-1); }
.btn-primary:hover { background: var(--forest-deep); color: var(--paper-1); }

/* Активный пункт навигации - тёмный с охряной точкой */
.nav-item.is-active { background: var(--forest); color: var(--paper-1); }
.nav-item.is-active:hover { background: var(--forest-deep); color: var(--paper-1); }
.nav-item.is-active .nav-dot { background: var(--ochre); opacity: 1; }
.nav-subitem.is-active { background: var(--cream-deep); color: var(--ink); }
.nav-subitem.is-active .nav-subnumber { color: var(--forest); }
.nav-avatar { background: linear-gradient(135deg, var(--ochre-light), var(--ochre-deep)); color: var(--forest-deep); }

/* Комьюнити карточки - тёмный оверлей зелёный вместо бордо */
.community-overlay {
  background: linear-gradient(to top, rgba(15, 53, 41, 0.92) 10%, rgba(15, 53, 41, 0.4) 70%, transparent 100%);
  color: var(--paper-1);
}
.community-meta { color: rgba(253, 250, 241, 0.8); }

/* =========================================
   ИКОНКИ - контейнер и размеры
   ========================================= */

.icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  line-height: 0;
  color: currentColor;
}
.icon svg { width: 100%; height: 100%; display: block; }
.icon-14 { width: 14px; height: 14px; }
.icon-16 { width: 16px; height: 16px; }
.icon-18 { width: 18px; height: 18px; }
.icon-22 { width: 22px; height: 22px; }
.icon-28 { width: 28px; height: 28px; }

/* Иконка в nav заменяет точку */
.nav-item .nav-icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-muted);
  transition: color var(--t-fast), transform var(--t-med);
  flex-shrink: 0;
}
.nav-item:hover .nav-icon { color: var(--forest); transform: rotate(-4deg) scale(1.08); }
.nav-item.is-active .nav-icon { color: var(--ochre); transform: rotate(0deg) scale(1); }

/* Иконка-бейдж для bento и бенто-акцента */
.bento-icon {
  position: absolute;
  top: 28px; right: 28px;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--cream-deep);
  color: var(--forest);
  transition: transform var(--t-med), background var(--t-med);
  z-index: 2;
}
.bento-card:hover .bento-icon { transform: rotate(-8deg) scale(1.1); }
.bento-card.accent .bento-icon { background: rgba(253, 250, 241, 0.14); color: var(--ochre-light); }
.bento-card.warm .bento-icon { background: rgba(15, 53, 41, 0.18); color: var(--forest-deep); }

/* Иконка над stat-value */
.stat-icon {
  width: 22px;
  height: 22px;
  margin-bottom: 10px;
  color: var(--forest);
  display: inline-flex;
}

/* Contact icon - теперь SVG, не буква */
.contact-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-icon svg { width: 18px; height: 18px; }
.support-card.accent .contact-icon { background: rgba(253, 250, 241, 0.08); color: var(--ochre-light); }

/* =========================================
   ЖИВЫЕ АНИМАЦИИ
   ========================================= */

/* Плавающие декоративные фигуры на главной */
.floating-shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}
.floating-shapes > * { position: absolute; opacity: 0.35; }
.f-shape-1 {
  top: -40px; right: 8%;
  width: 160px; height: 160px;
  background: radial-gradient(circle at 30% 30%, var(--ochre-light), transparent 70%);
  border-radius: 50%;
  animation: floatA 14s ease-in-out infinite;
}
.f-shape-2 {
  top: 40%; right: -60px;
  width: 220px; height: 220px;
  background: radial-gradient(circle at 60% 40%, rgba(31,84,65,0.25), transparent 70%);
  border-radius: 50%;
  animation: floatB 18s ease-in-out infinite;
}
.f-shape-3 {
  top: 20%; left: -40px;
  width: 120px; height: 120px;
  border: 2px dashed rgba(31,84,65,0.35);
  border-radius: 50%;
  animation: spinSlow 40s linear infinite;
  opacity: 0.5;
}
@keyframes floatA {
  0%,100% { transform: translate(0,0) rotate(0); }
  33%    { transform: translate(-18px, 22px) rotate(14deg); }
  66%    { transform: translate(16px, -12px) rotate(-8deg); }
}
@keyframes floatB {
  0%,100% { transform: translate(0,0); }
  50%    { transform: translate(-30px, 18px); }
}
@keyframes spinSlow {
  from { transform: rotate(0); }
  to   { transform: rotate(360deg); }
}

.hero { position: relative; z-index: 1; overflow: hidden; border-radius: 2px; }
.hero > * { position: relative; z-index: 1; }
@media (max-width: 720px) {
  .floating-shapes { display: none; }
}

/* Бегущая строка городов */
.marquee {
  margin: 28px 0 40px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  background: var(--cream-warm);
}
.marquee-track {
  display: flex;
  gap: 32px;
  white-space: nowrap;
  animation: marquee 32s linear infinite;
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 18px;
  color: var(--ink-soft);
}
.marquee-track span { display: inline-flex; align-items: center; gap: 32px; }
.marquee-track .icon { color: var(--ochre); }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* Счётчик - анимация появления */
.count-up {
  display: inline-block;
  font-variant-numeric: tabular-nums;
  transition: color var(--t-slow);
}

/* Scroll-reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms var(--t-med), transform 700ms var(--t-med);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Пульсирующий свет на primary-кнопке */
.btn-primary {
  position: relative;
  overflow: hidden;
}
.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 40%, rgba(253,250,241,0.3) 50%, transparent 60%);
  transform: translateX(-120%);
  transition: transform 700ms var(--t-med);
}
.btn-primary:hover::after { transform: translateX(120%); }

/* Мягкая подсветка карточек */
.continue-card,
.bento-card,
.block-card,
.tpl-card,
.task-card,
.tariff-card,
.support-card {
  box-shadow: 0 1px 3px rgba(26,36,33,0.04);
}
.continue-card:hover,
.bento-card:hover,
.block-card:hover,
.tpl-card:hover,
.task-card:hover,
.tariff-card:hover,
.support-card:hover {
  box-shadow: 0 18px 40px -22px rgba(15,53,41,0.22);
}

/* Иконка в hero-chip пульсирует */
.hero-chip-pulse {
  animation: pulseDot 2s ease-in-out infinite;
}
@keyframes pulseDot {
  0%,100% { box-shadow: 0 0 0 0 rgba(31,84,65,0.6); }
  60%     { box-shadow: 0 0 0 10px rgba(31,84,65,0); }
}

/* Подчёркивание section-link - анимированное */
.section-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.section-link::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: var(--forest);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 300ms var(--t-med);
}
.section-link:hover::after { transform: scaleX(1); }
.section-link .icon { transition: transform 220ms var(--t-med); }
.section-link:hover .icon { transform: translateX(4px); }

/* Iconbadge - круглая иконка, для списков */
.icon-badge {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--forest);
  color: var(--paper-1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.icon-badge svg { width: 16px; height: 16px; }

/* Hero title - подсвеченный em */
.hero-title em {
  color: var(--forest);
  position: relative;
}
.hero-title em::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0.08em;
  height: 0.18em;
  background: var(--ochre);
  opacity: 0.4;
  z-index: -1;
  border-radius: 2px;
}

/* hero-kicker - изменить цвет */
.hero-kicker { color: var(--forest); }
.hero-kicker::before { background: var(--forest); }

/* Stat accent */
.stat-value em { color: var(--forest); }
.continue-card::before { background: var(--forest); }
.continue-block { color: var(--forest); }

/* Уменьшаем тень в continue-card */
.continue-card:hover { box-shadow: 0 20px 40px -24px rgba(15,53,41,0.22); }

/* Префайн для большой ОКРАСКИ в hero-students-text */
.hero-students-text b { color: var(--forest); }

/* Accessible reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* =========================================
   БРЕНД: логотип Dinara SoulBiz + «Академия бизнеса»
   ========================================= */
.brand {
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
  text-decoration: none;
  color: inherit;
  transition: transform var(--t-med);
}
.brand:hover { transform: translateY(-1px); }
.brand:hover .brand-logo { transform: rotate(-4deg) scale(1.04); }

/* Контейнер логотипа: показываем только DSB-монограмму (верх картинки),
   а белый фон смешиваем с кремовым через mix-blend-mode */
.brand-logo {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  object-fit: cover;
  object-position: center 28%;
  mix-blend-mode: multiply;
  transition: transform 500ms var(--t-med);
  background: transparent;
}

.brand-name {
  font-family: 'Fraunces', serif !important;
  font-size: 18px !important;
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--ink);
  display: inline-block;
}
.brand-name em {
  font-style: italic;
  color: #6B1F2C; /* лёгкий отсыл к бордо логотипа */
  font-weight: 400;
}

.brand-sub {
  padding-left: 66px !important;
  font-size: 10px !important;
  margin-top: 6px !important;
  letter-spacing: 0.16em !important;
  color: var(--ink-muted);
}

/* Footer-аватар теперь с фото основателя */
.nav-avatar--img {
  padding: 0 !important;
  overflow: hidden;
  background: var(--cream-deep) !important;
}
.nav-avatar--img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
  display: block;
}

/* =========================================
   СТРАНИЦА «ОСНОВАТЕЛЬ»
   ========================================= */
.founder-head {
  margin-bottom: 36px;
}
.founder-title-huge,
.page-title--huge,
.hero-title--huge {
  font-family: 'DM Serif Display', 'Fraunces', Georgia, serif !important;
  font-weight: 400 !important;
  line-height: 1 !important;
  letter-spacing: -0.025em !important;
  max-width: 100% !important;
}
.founder-title-huge,
.page-title--huge {
  font-size: clamp(48px, 6.5vw, 96px) !important;
  margin-bottom: 24px !important;
}
.hero-title--huge {
  font-size: clamp(56px, 8.5vw, 128px) !important;
  letter-spacing: -0.035em !important;
  margin-bottom: 32px !important;
}
.founder-title-huge em,
.page-title--huge em,
.hero-title--huge em { color: var(--forest); font-style: italic; }
.founder-roles {
  font-size: 17px;
  color: var(--forest);
  font-weight: 500;
  letter-spacing: 0.01em;
}

.founder-hero {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 56px;
  align-items: start;
  margin-bottom: 80px;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--line);
}

.founder-portrait {
  position: relative;
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(15, 53, 41, 0.35);
  aspect-ratio: 3 / 4;
  background: var(--cream-deep);
}
.founder-portrait::before {
  content: '';
  position: absolute;
  top: -18px; left: -18px;
  width: 120px; height: 120px;
  border: 2px solid var(--ochre);
  border-radius: 16px;
  z-index: -1;
  opacity: 0.7;
}
.founder-portrait::after {
  content: '';
  position: absolute;
  bottom: -18px; right: -18px;
  width: 140px; height: 140px;
  border: 2px solid var(--forest);
  border-radius: 16px;
  z-index: -1;
  opacity: 0.6;
}
.founder-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
  display: block;
  transition: transform 900ms var(--t-med);
}
.founder-portrait:hover img { transform: scale(1.03); }
.founder-portrait figcaption {
  position: absolute;
  left: 16px; bottom: 16px;
  background: rgba(253, 250, 241, 0.9);
  color: var(--forest-deep);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
  backdrop-filter: blur(6px);
}

.founder-about-kicker {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--forest);
  margin-bottom: 16px;
  display: inline-block;
}

.founder-about p {
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-soft);
  margin-bottom: 16px;
  max-width: 620px;
}
.founder-about p b { color: var(--ink); font-weight: 600; }

.founder-stats {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 36px;
  padding-top: 28px;
  margin-top: 28px;
  border-top: 1px solid var(--line);
}
.founder-stats .stat-value {
  font-family: 'Fraunces', serif;
  font-size: 42px;
  line-height: 1;
  font-weight: 400;
  letter-spacing: -0.02em;
}
.founder-stats .stat-value em { color: var(--forest); font-style: italic; }
.founder-stats .stat-label {
  font-size: 11px;
  color: var(--ink-muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: 8px;
}

/* --- Timeline - Образование --- */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 24px;
}
.tl-item {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 24px;
  padding-bottom: 28px;
  position: relative;
}
.tl-rail {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.tl-icon {
  width: 44px;
  height: 44px;
  background: var(--cream-warm);
  color: var(--forest);
  border: 1px solid var(--line);
  transition: transform var(--t-med), background var(--t-med), color var(--t-med);
}
.tl-item:hover .tl-icon {
  background: var(--forest);
  color: var(--paper-1);
  transform: rotate(-4deg) scale(1.05);
}
.tl-icon svg { width: 20px; height: 20px; }
.tl-line {
  width: 1px;
  flex: 1;
  background: linear-gradient(to bottom, var(--line), transparent);
  margin-top: 8px;
  min-height: 32px;
}
.tl-body { padding-top: 10px; }
.tl-year {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--forest);
  margin-bottom: 6px;
  font-weight: 600;
}
.tl-title {
  font-size: 19px;
  line-height: 1.3;
  margin-bottom: 4px;
  color: var(--ink);
}
.tl-place {
  font-size: 14px;
  color: var(--ink-muted);
}

/* --- Expertise grid --- */
.expertise-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 72px;
}
.expertise-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 22px 22px 24px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  transition: transform var(--t-med), border-color var(--t-med), box-shadow var(--t-med);
  cursor: default;
}
.expertise-card:hover {
  transform: translateY(-3px);
  border-color: var(--forest);
  box-shadow: 0 18px 40px -22px rgba(15, 53, 41, 0.25);
}
.expertise-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--cream);
  color: var(--forest);
  flex-shrink: 0;
  transition: background var(--t-med), color var(--t-med), transform var(--t-med);
}
.expertise-card:hover .expertise-icon {
  background: var(--ochre);
  color: var(--forest-deep);
  transform: rotate(-6deg) scale(1.08);
}
.expertise-icon svg { width: 20px; height: 20px; }
.expertise-title {
  font-size: 16px;
  line-height: 1.35;
  font-weight: 500;
  color: var(--ink);
}

/* --- Approach / CTA блок --- */
.founder-approach {
  background: var(--forest-deep);
  color: var(--paper-1);
  border-radius: var(--r-lg);
  padding: 56px;
  position: relative;
  overflow: hidden;
}
.founder-approach::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 260px; height: 260px;
  background: radial-gradient(circle, rgba(212, 168, 67, 0.18), transparent 70%);
  pointer-events: none;
}
.founder-approach-kicker {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ochre-light);
  margin-bottom: 16px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.founder-approach-kicker::before {
  content: '';
  width: 28px; height: 1px;
  background: var(--ochre-light);
}
.founder-approach h2 {
  font-size: clamp(32px, 3.5vw, 46px);
  line-height: 1.05;
  font-weight: 400;
  color: var(--paper-1);
  margin-bottom: 32px;
  letter-spacing: -0.02em;
}

.approach-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 36px;
}
.approach-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: rgba(253, 250, 241, 0.06);
  border: 1px solid rgba(253, 250, 241, 0.1);
  border-radius: 12px;
  font-size: 15px;
  line-height: 1.35;
  color: rgba(253, 250, 241, 0.92);
  transition: background var(--t-med), transform var(--t-med);
}
.approach-item:hover {
  background: rgba(253, 250, 241, 0.1);
  transform: translateX(4px);
}
.approach-item .icon-badge {
  background: var(--ochre);
  color: var(--forest-deep);
  width: 36px; height: 36px;
  flex-shrink: 0;
}

.founder-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.founder-approach .btn-primary {
  background: var(--ochre);
  color: var(--forest-deep);
}
.founder-approach .btn-primary:hover {
  background: var(--ochre-light);
  color: var(--forest-deep);
}
.founder-approach .btn-outline {
  background: transparent;
  color: var(--paper-1);
  border: 1px solid rgba(253, 250, 241, 0.3);
}
.founder-approach .btn-outline:hover {
  background: rgba(253, 250, 241, 0.08);
  border-color: var(--paper-1);
}

/* Founder - адаптив */
@media (max-width: 1080px) {
  .founder-hero { grid-template-columns: 1fr; gap: 32px; }
  .founder-portrait { max-width: 340px; }
  .expertise-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .founder-hero { margin-bottom: 56px; padding-bottom: 40px; gap: 24px; }
  .founder-portrait { max-width: 100%; aspect-ratio: 4/5; }
  .founder-portrait::before,
  .founder-portrait::after { display: none; }
  .approach-list { grid-template-columns: 1fr; }
  .founder-approach { padding: 32px 20px; border-radius: var(--r-md); }
  .founder-approach h2 { font-size: 28px; }
  .founder-stats { gap: 16px; }
  .founder-stats .stat-value { font-size: 28px; }
  .founder-stats .stat-label { font-size: 10px; letter-spacing: 0.1em; }
  .tl-item { grid-template-columns: 44px 1fr; gap: 16px; }
  .tl-icon { width: 36px; height: 36px; }
  .tl-title { font-size: 17px; }
}
@media (max-width: 480px) {
  .expertise-grid { grid-template-columns: 1fr; }
  .founder-stats { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .founder-stats .stat-value { font-size: 24px; }
  .founder-cta { flex-direction: column; }
  .founder-cta .btn { width: 100%; justify-content: center; }
}

