/* ==========================================================================
   FININDI — дизайн-токены и базовые примитивы
   Самостоятельная визуальная система бренда Finindi.
   Намеренно НЕ похожа на Strategy12: там кремово-золотая «книжность» и
   широкий геометрический гротеск, здесь — графитовый «инструмент» с
   кислотно-лаймовым акцентом, плотной типографикой и моно-подписями.
   ========================================================================== */

:root {
  /* --- Палитра ------------------------------------------------------- */
  --ink: #0b0f0c;          /* основной тёмный (герой, подвал, CTA-панели) */
  --ink-2: #141914;        /* тёмная поверхность 2-го уровня               */
  --ink-3: #1e251f;        /* тёмная поверхность 3-го уровня / ховер       */
  --paper: #f2f2ed;        /* светлый фон страницы (холодный, не кремовый) */
  --paper-2: #e9e9e2;      /* светлая поверхность 2-го уровня              */
  --white: #ffffff;
  --line: #dcdcd3;         /* волосяная линейка на светлом                 */
  --line-2: #c8c8bd;       /* линейка посильнее                            */
  --line-dark: rgba(255, 255, 255, 0.14);
  --text: #141914;         /* основной текст                               */
  --muted: #5b635c;        /* вторичный текст на светлом                   */
  --muted-dark: #a5ada5;   /* вторичный текст на тёмном                    */
  --accent: #c9f158;       /* кислотный лайм — единственный акцент         */
  --accent-2: #e4fba6;     /* мягкий лайм (плашки, hover)                  */
  --accent-ink: #0b0f0c;   /* текст на лайме                              */
  --danger: #c8452c;       /* только ошибки форм, не маркетинг             */

  /* --- Радиусы и тени ------------------------------------------------ */
  --r-xs: 8px;
  --r-sm: 12px;
  --r: 16px;
  --r-lg: 22px;
  --r-xl: 28px;
  --shadow-1: 0 1px 2px rgba(11, 15, 12, 0.05), 0 10px 26px -16px rgba(11, 15, 12, 0.22);
  --shadow-2: 0 2px 4px rgba(11, 15, 12, 0.06), 0 26px 60px -28px rgba(11, 15, 12, 0.4);
  --shadow-3: 0 40px 90px -40px rgba(11, 15, 12, 0.6);

  /* --- Типографика --------------------------------------------------- */
  --font: "Segoe UI Variable Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Segoe UI Variable Display", "Segoe UI", Roboto, Arial, sans-serif;
  --font-mono: "Cascadia Mono", "Cascadia Code", Consolas, "SF Mono", ui-monospace, monospace;

  /* --- Сетка --------------------------------------------------------- */
  --container: 1180px;
  --gutter: 40px;
  --section-y: 112px;
}

/* --- Reset ------------------------------------------------------------ */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.02;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; }

::selection { background: var(--accent); color: var(--accent-ink); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* --- Сетка/контейнер -------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section { padding: var(--section-y) 0; }
.section--tight { padding: 72px 0; }
.section--dark { background: var(--ink); color: #fff; }
.section--paper2 { background: var(--paper-2); }

/* --- Подписи/кикеры --------------------------------------------------- */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  line-height: 1;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.kicker::before {
  content: "";
  width: 18px;
  height: 2px;
  background: var(--accent);
  flex: none;
}
.section--dark .kicker { color: var(--muted-dark); }

.num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

/* Шапка секции: номер + заголовок + пояснение */
.section-head {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 0 24px;
  align-items: start;
  margin-bottom: 56px;
}
.section-head__num {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--muted);
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.section--dark .section-head__num { color: var(--muted-dark); border-color: var(--line-dark); }
.section-head__title { font-size: clamp(32px, 3.4vw, 46px); max-width: 22ch; }
.section-head__lead {
  margin-top: 18px;
  max-width: 62ch;
  color: var(--muted);
  font-size: 18px;
}
.section--dark .section-head__lead { color: var(--muted-dark); }
.section-head__lead b { color: inherit; font-weight: 600; }

@media (max-width: 900px) {
  .section-head { grid-template-columns: 1fr; gap: 12px 0; margin-bottom: 36px; }
  .section-head__num { padding-top: 0; border-top: 0; }
  .section-head__title { max-width: none; }
  .section-head__lead { margin-top: 14px; font-size: 16.5px; }
}

/* --- Кнопки ----------------------------------------------------------- */
.btn {
  --btn-bg: var(--ink);
  --btn-fg: #fff;
  --btn-bd: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  padding: 0 26px;
  border: 1px solid var(--btn-bd);
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font);
  font-size: 16px;
  font-weight: 650;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: transform 0.16s ease, background 0.16s ease, color 0.16s ease, border-color 0.16s ease;
  text-align: center;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--accent { --btn-bg: var(--accent); --btn-fg: var(--accent-ink); }
.btn--accent:hover { --btn-bg: #d6f77c; }

.btn--ink { --btn-bg: var(--ink); --btn-fg: #fff; }
.btn--ink:hover { --btn-bg: var(--ink-3); }

.btn--outline-dark {
  --btn-bg: transparent;
  --btn-fg: #fff;
  --btn-bd: rgba(255, 255, 255, 0.28);
}
.btn--outline-dark:hover { --btn-bd: #fff; background: rgba(255, 255, 255, 0.06); }

.btn--outline {
  --btn-bg: transparent;
  --btn-fg: var(--text);
  --btn-bd: var(--line-2);
}
.btn--outline:hover { --btn-bd: var(--ink); }

.btn--block { width: 100%; }
.btn--sm { min-height: 44px; padding: 0 18px; font-size: 15px; }

.btn__price {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
  opacity: 0.72;
}

/* --- Чипы/бейджи ------------------------------------------------------ */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 13px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  font-size: 14px;
  color: var(--muted);
  background: transparent;
  white-space: nowrap;
}
.chip--accent {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
}
.chip--dark { border-color: rgba(255, 255, 255, 0.22); color: #fff; }

/* --- Карточки --------------------------------------------------------- */
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 30px;
}
.card--flush { padding: 0; overflow: hidden; }

/* --- Мелкий текст/сноски --------------------------------------------- */
.small { font-size: 14.5px; color: var(--muted); }
.tiny { font-size: 12.5px; color: var(--muted); }
.section--dark .small,
.section--dark .tiny { color: var(--muted-dark); }

/* --- Таблицы ---------------------------------------------------------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* --- Доступность ------------------------------------------------------ */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  background: var(--ink);
  color: #fff;
  padding: 12px 18px;
  border-radius: var(--r-xs);
  transition: top 0.15s ease;
}
.skip-link:focus { top: 12px; }

@media (max-width: 900px) {
  :root { --gutter: 20px; --section-y: 72px; }
  body { font-size: 16.5px; }
}
