/* ТРУ — editorial minimal CSS, easy.mba-informed (cards / text / contracts)
 * Палитра: warm-paper + graphite + sienna + deep-forest (комплементарный).
 * Без римских цифр, без stats-колонки, секции на трёх фонах.
 */

:root {
  --bg: #F2EFE9;            /* warm paper — дефолт */
  --surface: #EDE9E1;       /* мягкий кремовый для soft-карточек */
  --fg: #1A1A1A;            /* графит */
  --muted: #5C5852;         /* приглушённый тёплый */
  --border: #D9D2C5;        /* бордюр */
  --accent: #BC9556;        /* сienna (тёплая охра) */
  --accent-on: #F2EFE9;     /* светлый текст на графите */

  --forest: #1F2E2A;        /* глубокий зелёный — комплементарный sienna */
  --forest-on: #E8E3D9;     /* тёплый светлый текст на forest */
  --forest-muted: rgba(232, 227, 217, 0.62);
  --forest-border: rgba(232, 227, 217, 0.18);

  --font-display: "PT Serif", Georgia, serif;
  --font-body: "PT Sans", "Helvetica Neue", Arial, sans-serif;

  --space-section: 120px;
  --container: 1200px;

  --ease: cubic-bezier(0.2, 0.6, 0.2, 1);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------- Top navigation ---------- */
.topbar {
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 10;
}
.topbar .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 32px;
  max-width: var(--container);
  margin: 0 auto;
}
.topbar .brand { display: inline-block; line-height: 0; }
.topbar .brand img { display: block; height: 44px; width: auto; }
.topbar nav a {
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-left: 28px;
  transition: color 0.2s var(--ease);
}
.topbar nav a:hover { color: var(--accent); }

/* ---------- HERO ---------- */
.hero { padding: 80px 0 0; max-width: 920px; }
.hero .eyebrow {
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 28px;
}
.hero .hero-logo {
  display: block;
  width: clamp(280px, 30vw, 400px);
  height: auto;
  margin: 0 0 36px;
}
.hero .lede {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.1vw, 30px);
  line-height: 1.4;
  max-width: 680px;
  color: var(--fg);
  margin: 0 0 36px;
  letter-spacing: -0.005em;
}

.pills {
  list-style: none;
  margin: 0 0 44px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.pills li {
  display: inline-block;
  padding: 9px 18px;
  border: 1px solid var(--fg);
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--fg);
  background: transparent;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}
.pills li:hover { background: var(--fg); color: var(--accent-on); }

.hero-cta { display: flex; flex-wrap: wrap; gap: 32px; align-items: center; margin-bottom: 16px; }

.hero-photo {
  margin-top: 64px;
  width: 100%;
  aspect-ratio: 21 / 9;
  overflow: hidden;
  background: var(--surface);
}
.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.9) contrast(1.02);
}

/* ---------- Chapter (3 фона) ---------- */
.chapter {
  padding: var(--space-section) 0;
  border-top: 1px solid var(--border);
}
.chapter--cream { background: var(--bg); }
.chapter--dark, .chapter--forest {
  background: var(--forest);
  color: var(--forest-on);
  border-top-color: var(--forest-border);
}
.chapter--dark .chapter-lede,
.chapter--forest .chapter-lede { color: var(--forest-muted); }

.chapter-tag {
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 32px;
}
.chapter-tag--light { color: var(--accent); }

.chapter-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(36px, 4.8vw, 64px);
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin: 0 0 28px;
  max-width: 18ch;
}
.chapter-lede {
  margin: 0 0 56px;
  font-size: 17px;
  line-height: 1.7;
  color: var(--muted);
  max-width: 60ch;
}

/* ---------- Pulse-block (ударные фразы) ---------- */
.chapter-body {
  margin-top: 56px;
  border-top: 1px solid var(--border);
  padding-top: 56px;
}
.pulse-block {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 56px;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 56px;
  align-items: baseline;
}
.pulse {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--fg);
  margin: 0;
  max-width: 14ch;
}
.pulse--big {
  font-size: clamp(34px, 4.6vw, 56px);
  line-height: 1.1;
  letter-spacing: -0.015em;
  max-width: 22ch;
  margin: 0 0 48px;
}
.pulse-desc {
  font-family: var(--font-body);
  font-size: clamp(17px, 1.4vw, 19px);
  line-height: 1.65;
  color: var(--fg);
  margin: 0;
  max-width: 56ch;
}

.rules {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 1px solid var(--border);
}
.rule {
  font-family: var(--font-display);
  font-size: clamp(20px, 1.9vw, 26px);
  line-height: 1.35;
  color: var(--fg);
  margin: 0;
  padding: 32px 32px 32px 0;
}
.rule + .rule {
  padding-left: 32px;
  border-left: 1px solid var(--border);
}
.rule:nth-child(1)::before,
.rule:nth-child(2)::before {
  content: "";
  display: block;
  width: 28px;
  height: 2px;
  background: var(--accent);
  margin-bottom: 18px;
}

/* ---------- Chapter bleed (фон на всю ширину) ---------- */
.chapter--bleed {
  width: 100%;
  padding: 120px 0;
}
.chapter--bleed > .container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------- Groups (3 роли руководителей) ---------- */
.chapter-intro {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.4vw, 28px);
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--accent-on);
  margin: 0 0 56px;
  max-width: 36ch;
}
.groups {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--forest-border);
}
.group {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 48px;
  padding: 40px 0;
  border-bottom: 1px solid var(--forest-border);
  align-items: baseline;
}
.group-num {
  font-family: var(--font-body);
  font-size: 14px;
  letter-spacing: 0.18em;
  color: var(--accent);
}
.group-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(26px, 2.6vw, 32px);
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--accent-on);
  margin: 0 0 14px;
}
.group-desc {
  font-size: 16px;
  line-height: 1.6;
  color: var(--forest-muted);
  margin: 0;
  max-width: 60ch;
}
.groups-outro {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.1vw, 28px);
  line-height: 1.35;
  letter-spacing: -0.005em;
  color: var(--accent-on);
  margin: 56px 0 0;
  max-width: 36ch;
}

/* ---------- Practices figure (инфографика) ---------- */
.practices-figure {
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
}
.practices-figure img {
  display: block;
  width: 100%;
  height: auto;
}
.practices-figure figcaption {
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

/* ---------- Договорённость (cream-фон, две колонки) ---------- */
.agreement-pulse {
  margin: 56px 0 0;
  padding: 0 0 36px;
  border-bottom: 1px solid var(--border);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px 64px;
}
.agreement-pulse p {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(22px, 2.2vw, 28px);
  line-height: 1.35;
  color: var(--fg);
  max-width: 22ch;
}

.agreement-cols {
  margin-top: 56px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.agreement-col {
  padding: 48px 56px 48px 0;
}
.agreement-col + .agreement-col {
  padding-left: 56px;
  border-left: 1px solid var(--border);
}
.agreement-col-title {
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 32px;
  font-weight: 400;
}
.agreement-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.agreement-list li {
  padding: 22px 0;
  border-top: 1px solid var(--border);
  font-family: var(--font-display);
  font-size: clamp(17px, 1.4vw, 19px);
  line-height: 1.5;
  color: var(--fg);
}
.agreement-list li:last-child { border-bottom: 1px solid var(--border); }
.agreement-list strong {
  font-weight: 600;
  color: var(--fg);
}

.agreement-quote {
  margin: 72px 0 0;
  padding: 0;
  text-align: left;
  border: 0;
  font-family: var(--font-display);
  font-size: clamp(28px, 3.2vw, 44px);
  line-height: 1.25;
  color: var(--fg);
  max-width: 22ch;
  letter-spacing: -0.01em;
}

.agreement-flow {
  margin-top: 72px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}
.agreement-flow-row {
  display: grid;
  grid-template-columns: 120px 32px 220px 1fr;
  gap: 20px;
  align-items: baseline;
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
}
.agreement-flow-who {
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}
.agreement-flow-arrow {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--muted);
  text-align: center;
}
.agreement-flow-verb {
  font-family: var(--font-display);
  font-size: clamp(22px, 2vw, 26px);
  color: var(--fg);
}
.agreement-flow-items {
  font-family: var(--font-body);
  font-size: clamp(15px, 1.3vw, 17px);
  line-height: 1.5;
  color: var(--muted);
  letter-spacing: 0.01em;
}

/* ---------- Chapter break image ---------- */
.chapter-break {
  margin: 0;
  padding: 0;
  width: 100%;
  line-height: 0;
}
.chapter-break img {
  display: block;
  width: 100%;
  height: 56vh;
  min-height: 360px;
  max-height: 640px;
  object-fit: cover;
  filter: contrast(0.96) saturate(0.92);
}
@media (max-width: 880px) {
  .chapter-break img { height: 38vh; min-height: 240px; }
}

/* ---------- Calendar (iframe Google) ---------- */
.calendar-embed {
  margin: 56px 0 0;
  border: 1px solid var(--border);
  background: var(--paper);
  overflow: hidden;
}
.calendar-embed iframe {
  display: block;
  width: 100%;
}
.calendar-link {
  margin: 24px 0 0;
  font-size: 14px;
  color: var(--muted);
}
.calendar-link a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid var(--accent);
}
.calendar-link a:hover { color: var(--fg); border-bottom-color: var(--fg); }

/* ---------- Founder ---------- */
.founder {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 64px;
  align-items: start;
}
.founder .photo {
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: var(--surface);
  margin: 0;
  padding: 0;
  overflow: hidden;
}
.founder .photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: contrast(0.98) saturate(0.95);
}
.founder .role {
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 28px;
}
.founder-body p {
  font-size: 17px;
  line-height: 1.65;
  margin: 0 0 16px;
  max-width: 52ch;
}
.founder-body p:last-of-type { margin-bottom: 28px; }

/* ---------- Final CTA panel ---------- */
.final-panel {
  background: var(--fg);
  color: var(--accent-on);
}
.final-panel .final { padding: 120px 0 120px; max-width: 920px; }
.final h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(36px, 4.8vw, 64px);
  line-height: 1.06;
  letter-spacing: -0.02em;
  margin: 0 0 28px;
  max-width: 22ch;
}
.final p {
  font-size: 17px;
  color: rgba(242, 239, 233, 0.7);
  max-width: 52ch;
  margin: 0 0 48px;
  line-height: 1.65;
}
.final-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 28px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 14px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 18px 32px;
  background: var(--fg);
  color: var(--accent-on);
  border: 1px solid var(--fg);
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
  min-height: 52px;
  cursor: pointer;
}
.btn:hover { background: var(--accent); border-color: var(--accent); }
.btn-light {
  background: var(--accent-on);
  color: var(--fg);
  border-color: var(--accent-on);
}
.btn-light:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-on); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-body);
  font-size: 14px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-on);
  border-bottom: 1px solid rgba(242, 239, 233, 0.4);
  padding: 6px 0;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.btn-ghost:hover { color: var(--accent); border-bottom-color: var(--accent); }

.secondary-link {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 14px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg);
  border-bottom: 1px solid var(--border);
  padding-bottom: 4px;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.secondary-link:hover { color: var(--accent); border-bottom-color: var(--accent); }

/* ---------- Contact strip ---------- */
.contact-strip {
  border-top: 1px solid var(--border);
  padding: 64px 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}
.contact-col {
  padding: 0 32px 0 0;
  border-left: 1px solid var(--border);
}
.contact-col:first-child { border-left: 0; padding-left: 0; }
.contact-col:not(:first-child) { padding-left: 32px; }
.contact-label {
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}
.contact-col p {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-size: 18px;
  line-height: 1.4;
  color: var(--fg);
}

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--border);
  padding: 40px 0 56px;
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.04em;
}
.footer .row {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  align-items: center;
}

/* ---------- Mobile (≤880px) ---------- */
@media (max-width: 880px) {
  :root { --space-section: 72px; }
  .container { padding: 0 20px; }
  .topbar .inner { padding: 14px 20px; }
  .topbar nav { display: none; }

  .hero { padding-top: 48px; }
  .hero .hero-logo { width: min(80vw, 320px); margin-bottom: 24px; }
  .hero-photo { aspect-ratio: 4 / 3; margin-top: 40px; }

  .chapter-title { max-width: none; }
  .chapter-lede { margin-bottom: 36px; }

  .chapter--bleed { padding: 72px 0; }
  .chapter-intro { font-size: 20px; margin-bottom: 36px; }

  .pulse-block {
    grid-template-columns: 1fr;
    gap: 20px;
    padding-bottom: 40px;
    margin-bottom: 40px;
  }
  .pulse { max-width: none; font-size: 28px; }
  .pulse--big { font-size: 32px; margin-bottom: 36px; }
  .rules { grid-template-columns: 1fr; }
  .rule, .rule + .rule { padding: 28px 0; border-left: 0; border-top: 1px solid var(--border); }
  .rule:nth-child(1) { border-top: 0; padding-top: 0; }
  .rule::before { margin-bottom: 14px; }

  .group { grid-template-columns: 1fr; gap: 14px; padding: 28px 0; }
  .group-num { font-size: 13px; letter-spacing: 0.18em; }
  .group-title { font-size: 22px; }
  .groups-outro { margin-top: 40px; font-size: 18px; }

  .practices-figure figcaption { font-size: 11px; letter-spacing: 0.18em; padding-top: 16px; margin-top: 16px; }

  .agreement-pulse { grid-template-columns: 1fr; gap: 16px; padding-bottom: 28px; }
  .agreement-pulse p { font-size: 22px; }

  .agreement-cols { grid-template-columns: 1fr; }
  .agreement-col { padding: 36px 0; }
  .agreement-col + .agreement-col { padding-left: 0; border-left: 0; border-top: 1px solid var(--border); }

  .agreement-quote { margin-top: 48px; font-size: 26px; }

  .agreement-flow-row {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 22px 0;
  }
  .agreement-flow-arrow { display: none; }
  .agreement-flow-verb { font-size: 20px; }

  .calendar-embed iframe { height: 720px; }

  .founder { grid-template-columns: 1fr; gap: 32px; }
  .founder .photo { width: 100%; max-width: 280px; height: 280px; margin: 0 auto; }

  .final-panel .final { padding: 80px 0 72px; }
  .final h2 { max-width: none; }

  .contact-strip { grid-template-columns: 1fr; gap: 32px; }
  .contact-col { padding: 0; border-left: 0; border-top: 1px solid var(--border); padding-top: 24px; }
  .contact-col:first-child { border-top: 0; padding-top: 0; }
}

@media (max-width: 480px) {
  .chapter-body { margin-top: 40px; padding-top: 36px; }
  .pulse-block { padding-bottom: 32px; margin-bottom: 32px; }
  .pulse--big { font-size: 28px; margin-bottom: 28px; }

  .pills { gap: 8px; }
  .pills li { padding: 8px 14px; font-size: 12px; }

  .hero-cta { flex-direction: column; align-items: stretch; gap: 20px; }
  .hero-cta .btn, .hero-cta .secondary-link { width: 100%; text-align: center; }

  .final-cta { flex-direction: column; align-items: stretch; }
  .final-cta .btn, .final-cta .btn-ghost { width: 100%; text-align: center; justify-content: center; }
  .btn-ghost { padding: 14px 0; }
  .btn { width: 100%; text-align: center; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
