/* ═══════════════════════════════════════════════════════════════
   Референс: ugmonk.com
   • монохром: почти-чёрный текст (#010101) на белом, без ярких цветов
   • заголовки — антиквой, вес 400, с негативным трекингом
   • тело — гротеск; кнопки — чёрные прямоугольники
   • воздух + гештальт: группировка отступами, тонкие линии-контуры
   ═══════════════════════════════════════════════════════════════ */
:root {
  --ink: #010101;          /* основной текст (как у ugmonk) */
  --ink-soft: #6b6b6b;     /* вторичный текст */
  --line: #e6e6e6;         /* тонкие линии-разделители */
  --paper: #ffffff;
  --space: clamp(48px, 9vw, 110px);
  --measure: 1080px;
  --serif: "Iowan Old Style", "Palatino Linotype", Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.7;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
.container { max-width: var(--measure); margin: 0 auto; padding: 0 28px; }
.narrow { max-width: 720px; }
a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--ink-soft); }

/* Доступность (WCAG 2.2): видимый фокус */
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--ink); color: #fff; padding: 12px 20px; font-weight: 600;
}
.skip-link:focus-visible { left: 0; }

/* ─── Навигация ─────────────────────────────────────────────── */
.navbar {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { font-weight: 400; font-size: 18px; color: var(--ink); letter-spacing: -.01em; }
.navbar nav { display: flex; gap: 34px; }
.navbar nav a { color: var(--ink-soft); font-size: 15px; text-decoration: none; }
.navbar nav a.active,
.navbar nav a:hover { color: var(--ink); }

/* ─── Герой ─────────────────────────────────────────────────── */
.hero { padding: clamp(88px, 14vw, 160px) 0 clamp(56px, 9vw, 110px); }
.hero .kicker {
  font-size: 13px; font-weight: 500; letter-spacing: .16em;
  text-transform: uppercase; color: var(--ink-soft); margin: 0 0 22px;
}
.hero h1 {
  font-family: var(--serif);
  font-size: clamp(42px, 6.8vw, 76px);
  font-weight: 400; line-height: 1.08;
  letter-spacing: -.022em;              /* негативный трекинг, как у ugmonk */
  margin: 0 0 32px; max-width: 15ch;
}
.hero .lead { font-size: clamp(17px, 1.8vw, 20px); color: var(--ink-soft); max-width: 58ch; margin: 0 0 44px; }
.hero .divider { width: 64px; height: 1px; background: var(--ink); margin-bottom: 44px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.hero-diagram { width: 100%; max-width: 460px; justify-self: end; }

/* ─── Цитата (блок) ─────────────────────────────────────────────── */
.quote-section { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); text-align: center; }
.quote { margin: 0; padding: 8px 0 0; }
.quote-text {
  font-family: var(--serif); font-size: clamp(24px, 3.4vw, 34px);
  font-weight: 400; line-height: 1.35; letter-spacing: -.015em;
  margin: 0 0 14px;
}
.quote-author { color: var(--ink-soft); font-size: 15px; font-style: normal; letter-spacing: .04em; }

/* ─── Кейсы и результаты ────────────────────────────────────── */
.case-list { display: grid; grid-template-columns: 1fr 1fr; gap: 56px 64px; }
.case { border-top: 1px solid var(--line); padding-top: 22px; }
.case .case-meter {
  display: inline-block; font-family: var(--serif); font-size: 28px;
  color: var(--ink); letter-spacing: -.01em; margin-bottom: 8px;
}
.case h3 { font-size: 20px; margin: 0 0 10px; font-weight: 600; }
.case p { margin: 0; color: var(--ink-soft); font-size: 16px; }
.case:hover { border-top-color: var(--ink); }

/* ─── Кнопки: чёрный прямоугольник ──────────────────────────── */
.btn {
  display: inline-block; padding: 16px 34px; font-size: 15px; font-weight: 600;
  min-height: 50px; border-radius: 0; cursor: pointer; letter-spacing: .02em;
  transition: opacity .18s, background .18s;
}
.btn-primary { background: var(--ink); color: #fff; border: 1px solid var(--ink); }
.btn-primary:hover { background: #333; text-decoration: none; }

/* CTA-строка (направленный путь) */
.cta-row {
  margin-top: 80px; padding-top: 36px; border-top: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.cta-row p { margin: 0; font-size: 18px; color: var(--ink-soft); }
.cta-row p strong { color: var(--ink); font-weight: 600; }
.cta-row .btn { min-width: 220px; text-align: center; }

/* ─── Секции: метка + антиквенный заголовок + линия ─────────── */
.section { padding: var(--space) 0; }
.section-head { display: flex; align-items: baseline; gap: 24px; margin-bottom: 56px; }
.section-head .index { font-size: 13px; font-weight: 500; color: var(--ink-soft); letter-spacing: .1em; }
.section-head h2 {
  font-family: var(--serif);
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 400; margin: 0; letter-spacing: -.02em;
}
.section-head .rule { flex: 1; height: 1px; background: var(--line); }

/* ─── Услуги ────────────────────────────────────────────────── */
.services { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 56px 64px; }
.service { border-top: 1px solid var(--line); padding-top: 22px; }
.service .num { font-size: 12px; font-weight: 500; color: var(--ink-soft); letter-spacing: .14em; }
.service .icon { width: 34px; height: 34px; margin: 14px 0 2px; color: var(--ink); }
.service h3 { font-family: var(--serif); font-size: 22px; font-weight: 400; margin: 12px 0 10px; }
.service p { margin: 0; color: var(--ink-soft); font-size: 16px; }
.service:hover { border-top-color: var(--ink); }

/* Картинки в статьях */
.prose img { max-width: 100%; height: auto; margin: 24px 0; border: 1px solid var(--line); }

/* Баннеры (в т.ч. рекламные), позиции из админки */
.banner { padding: 18px 28px; margin: 0 0 8px; border: 1px solid var(--line); background: var(--paper); }
.banner-above-footer { margin: 32px 0 0; }
.banner a { font-weight: 600; }

/* ─── Обо мне ───────────────────────────────────────────────── */
.about-cols { display: grid; grid-template-columns: 1fr 1.6fr; gap: 56px; }
.about-cols .key {
  font-family: var(--serif); font-size: 19px; color: var(--ink);
  max-width: 30ch; line-height: 1.5;
}
.key-results { list-style: none; padding: 0; margin: 18px 0 0; font-family: var(--sans); }
.key-results li { padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.key-results li:last-child { border-bottom: 0; }
.about-cols .story p { margin: 0 0 20px; font-size: 17px; }
.about-cols .story p:last-child { margin-bottom: 0; }
.about-cols .story h3 {
  font-family: var(--serif); font-weight: 400; font-size: 22px;
  margin: 34px 0 14px; letter-spacing: -.01em;
}
.toc-list { list-style: none; padding: 0; margin: 0; columns: 2; column-gap: 44px; }
.toc-list li {
  padding: 5px 0 5px 20px; position: relative; color: var(--ink);
  break-inside: avoid;
}
.toc-list li::before {
  content: ""; position: absolute; left: 0; top: 13px;
  width: 9px; height: 9px; background: var(--ink);
}

/* ─── Контакты и форма ──────────────────────────────────────── */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.contacts-list { list-style: none; padding: 0; margin: 0 0 24px; }
.contacts-list li { margin-bottom: 14px; font-size: 17px; }
.muted { color: var(--ink-soft); }
.form-wrap { border-top: 1px solid var(--line); padding-top: 28px; }
.form-wrap .form-title { font-family: var(--serif); font-size: 24px; font-weight: 400; margin: 0 0 22px; letter-spacing: -.01em; }
.form-wrap { border-top: 1px solid var(--line); padding-top: 28px; }
.form label { display: block; margin-bottom: 30px; font-size: 14px; color: var(--ink-soft); font-weight: 500; }
.form input, .form textarea {
  width: 100%; border: 0; border-bottom: 1px solid var(--ink);
  padding: 10px 2px; font-size: 17px; font-family: inherit; color: var(--ink);
  background: transparent; border-radius: 0; transition: border-color .18s;
}
.form input::placeholder, .form textarea::placeholder { color: #b3b3b3; }
.form input:focus, .form textarea:focus { outline: none; border-bottom-width: 2px; }
.alert { padding: 14px 0; border-bottom: 1px solid var(--ink); margin-bottom: 24px; font-weight: 500; }
.alert.err { border-bottom-color: #c0392b; color: #c0392b; }
.form .check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; font-weight: 400; margin-bottom: 22px; }
.form .check input { width: 18px; height: 18px; margin-top: 2px; flex: 0 0 18px; }
.form .help { font-size: 13px; color: var(--ink-soft); margin: 10px 0 0; }

/* ─── Cookie-баннер ──────────────────────────────────────────── */
.cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  background: var(--ink); color: #fff; padding: 16px 0;
}
.cookie-banner-inner {
  max-width: var(--measure); margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.cookie-banner p { margin: 0; font-size: 15px; max-width: 70ch; }
.cookie-banner a { color: #fff; text-underline-offset: 3px; }
.cookie-banner .btn { flex: 0 0 auto; min-height: 42px; padding: 10px 26px; }
.cookie-banner .btn-primary { background: #fff; color: var(--ink); border-color: #fff; }
.cookie-banner .btn-primary:hover { background: #e6e6e6; }

/* ─── Практикум ─────────────────────────────────────────────── */
.article-list { border-top: 1px solid var(--line); }
.article-item { padding: 32px 0; border-bottom: 1px solid var(--line); }
.article-item h3 { margin: 0 0 8px; font-size: 21px; font-weight: 600; }
.article-item h3 a { color: var(--ink); text-decoration: none; }
.article-item h3 a:hover { color: var(--ink-soft); }
.article-item time { color: var(--ink-soft); font-size: 14px; }
.article-item p { margin: 10px 0 0; color: var(--ink-soft); }

/* ─── Статья ────────────────────────────────────────────────── */
.prose p { font-size: 17px; }
.prose h2, .prose h3 {
  font-family: var(--serif); font-weight: 400; letter-spacing: -.01em;
}
.prose h2 { font-size: 30px; margin-top: 40px; }
.prose h3 { font-size: 23px; margin-top: 36px; }
.prose code { background: #f3f3f3; padding: 2px 6px; font-size: .9em; }
.prose blockquote {
  margin: 28px 0; padding: 6px 0 6px 24px; color: var(--ink-soft);
  border-left: 2px solid var(--ink); font-size: 18px;
}
.prose table { border-collapse: collapse; width: 100%; margin: 24px 0; }
.prose th, .prose td { border-bottom: 1px solid var(--line); padding: 10px 12px; text-align: left; }

/* ─── Поделиться (репост) ───────────────────────────────────── */
.share { margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--line); }
.share-label { font-size: 14px; color: var(--ink-soft); font-weight: 500; letter-spacing: .06em; }
.share-buttons { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 18px; }
.share-btn {
  padding: 12px 24px; border: 1px solid var(--ink); color: var(--ink);
  text-decoration: none; font-size: 15px; font-weight: 600; transition: .18s;
}
.share-btn:hover { background: var(--ink); color: #fff; text-decoration: none; }
.prose th { border-bottom-color: var(--ink); font-weight: 600; }

/* ─── Футер ──────────────────────────────────────────────────── */
.footer { border-top: 1px solid var(--line); padding: 40px 0 56px; color: var(--ink-soft); font-size: 14px; }

/* ─── Адаптив ───────────────────────────────────────────────── */
@media (max-width: 760px) {
  .navbar nav { gap: 18px; }
  .navbar nav a { font-size: 14px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-diagram { max-width: 100%; justify-self: start; }
  .about-cols, .two-col { grid-template-columns: 1fr; }
  .services { grid-template-columns: 1fr; gap: 36px; }
  .case-list { grid-template-columns: 1fr; gap: 36px; }
  .form .btn, .cta-row .btn { width: 100%; }
  .cta-row { flex-direction: column; align-items: stretch; }
  .toc-list { columns: 1; }
}