/* ==========================================================================
   Егор Красноборов. Лендинги для малого бизнеса.
   Дизайн-система: холодные нейтрали + один акцент (кобальт).
   Радиусы: карточки и картинки 16px, кнопки и поля 10px, мелочь 8px.
   Тема: авто по prefers-color-scheme, одна на всю страницу.
   ========================================================================== */

/* --- Шрифты ------------------------------------------------------------- */
@font-face {
  font-family: 'Geologica';
  src: url('../fonts/geologica-cyrillic.woff2') format('woff2');
  font-weight: 400 700;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Geologica';
  src: url('../fonts/geologica-latin.woff2') format('woff2');
  font-weight: 400 700;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Plex';
  src: url('../fonts/plex-cyrillic.woff2') format('woff2');
  font-weight: 400 600;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Plex';
  src: url('../fonts/plex-latin.woff2') format('woff2');
  font-weight: 400 600;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* --- Токены ------------------------------------------------------------- */
:root {
  /* Палитра приведена к главной (home.css): тёплый монохром на бумаге,
     акцент = чернила (без кобальта), плоско, острые углы. */
  --bg: #f6f5f2;
  --surface: #ffffff;
  --surface-2: #efeee9;
  --ink: #15161a;
  --ink-2: #5f626a;
  --line: #dcdbd4;
  --accent: #15161a;
  --accent-ink: #f6f5f2;
  --accent-soft: #e8e7e1;
  --shadow: 0 1px 2px rgba(21, 22, 26, .04), 0 10px 26px rgba(21, 22, 26, .06);
  --shadow-lift: 0 2px 4px rgba(21, 22, 26, .05), 0 20px 44px rgba(21, 22, 26, .09);

  --r-card: 4px;
  --r-btn: 4px;
  --r-sm: 3px;

  --pad: clamp(20px, 5vw, 48px);
  --gap: clamp(16px, 2vw, 28px);
  --sec: clamp(72px, 9vw, 132px);
  --nav-h: 68px;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #101114;
    --surface: #16181c;
    --surface-2: #1c1f26;
    --ink: #eceef1;
    --ink-2: #9a9da4;
    --line: #272a30;
    --accent: #eceef1;
    --accent-ink: #101114;
    --accent-soft: #23262c;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 12px 32px rgba(0, 0, 0, .35);
    --shadow-lift: 0 2px 4px rgba(0, 0, 0, .45), 0 24px 56px rgba(0, 0, 0, .5);
  }
}
:root[data-theme="dark"]{
    --bg: #101114;
    --surface: #16181c;
    --surface-2: #1c1f26;
    --ink: #eceef1;
    --ink-2: #9a9da4;
    --line: #272a30;
    --accent: #eceef1;
    --accent-ink: #101114;
    --accent-soft: #23262c;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 12px 32px rgba(0, 0, 0, .35);
    --shadow-lift: 0 2px 4px rgba(0, 0, 0, .45), 0 24px 56px rgba(0, 0, 0, .5);
  }


/* --- База --------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* чтобы якорные ссылки не заезжали под шапку */
  scroll-padding-top: calc(var(--nav-h) + 8px);
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  /* Лишнее по горизонтали отрезаем через clip, а не hidden: hidden делает
     body контейнером прокрутки, и липкая шапка перестаёт прилипать в
     браузерах на движке Safari, включая встроенный в Телеграме. */
  overflow-x: clip;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Plex', ui-sans-serif, system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
::selection { background: var(--accent); color: var(--accent-ink); }

h1, h2, h3, h4 {
  font-family: 'Geologica', 'Plex', sans-serif;
  font-weight: 600;
  letter-spacing: -.02em;
  line-height: 1.08;
  margin: 0;
  text-wrap: balance;
}

h2 { font-size: clamp(2rem, 3.6vw, 3.1rem); }
h3 { font-size: clamp(1.15rem, 1.6vw, 1.4rem); line-height: 1.2; letter-spacing: -.01em; }

p { margin: 0; }

.wrap {
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: var(--pad);
}

.lead {
  color: var(--ink-2);
  font-size: clamp(1rem, 1.3vw, 1.14rem);
  max-width: 58ch;
}

.section { padding-block: var(--sec); }
.section + .section { padding-top: 0; }

.icon { width: 1.25em; height: 1.25em; flex: none; }

.mono-num {
  font-family: 'Geologica', sans-serif;
  font-variant-numeric: tabular-nums;
  font-weight: 500;
}

/* --- Кнопки ------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  white-space: nowrap;
  padding: 14px 22px;
  border-radius: var(--r-btn);
  border: 1px solid transparent;
  font: inherit;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  cursor: pointer;
  transition: background .2s var(--ease), border-color .2s var(--ease),
              color .2s var(--ease), transform .12s var(--ease), box-shadow .2s var(--ease);
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 8px 20px color-mix(in srgb, var(--accent) 28%, transparent);
}
.btn-primary:hover {
  background: color-mix(in srgb, var(--accent) 88%, var(--ink));
  box-shadow: 0 12px 28px color-mix(in srgb, var(--accent) 34%, transparent);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover { background: var(--surface); border-color: var(--ink-2); }

.btn-sm { padding: 10px 16px; font-size: 15px; }

/* --- Навигация ---------------------------------------------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  /* Фон непрозрачный. Полупрозрачный с размытием красив, но в браузере
     Телеграма и части мобильных WebView размытие не применяется, и заголовок
     страницы просвечивал сквозь шапку. Красота не стоит сломанной шапки. */
  background: var(--bg);
  border-bottom: 1px solid transparent;
  transition: border-color .25s var(--ease), background .25s var(--ease);
}
.nav[data-stuck='true'] { border-bottom-color: var(--line); }

/* Стекло возвращаем только на больших экранах и только там, где браузер
   действительно умеет размывать фон. */
@media (min-width: 901px) {
  @supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .nav {
      background: color-mix(in srgb, var(--bg) 88%, transparent);
      backdrop-filter: blur(14px);
      -webkit-backdrop-filter: blur(14px);
    }
  }
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Geologica', sans-serif;
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -.02em;
  text-decoration: none;
  white-space: nowrap;
}
/* Знак: плашка со срезанным правым нижним углом и буквой Е внутри.
   Цвета берутся из токенов, поэтому он сам подстраивается под тему. */
.brand-mark {
  width: 28px;
  height: 28px;
  flex: none;
  display: block;
  transition: transform .25s var(--ease);
}
.brand:hover .brand-mark { transform: translateY(-1px); }
.brand-sub { color: var(--ink-2); font-weight: 400; }

@media (max-width: 380px) {
  .brand-sub { display: none; }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
}
.nav-links a {
  text-decoration: none;
  color: var(--ink-2);
  font-size: 15px;
  white-space: nowrap;
  transition: color .18s var(--ease);
}
.nav-links a:hover { color: var(--ink); }

.nav-cta { flex: none; }

.burger {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: var(--r-btn);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}
.burger i {
  display: block;
  width: 18px;
  height: 1.5px;
  background: currentColor;
  position: relative;
}
.burger i::before, .burger i::after {
  content: '';
  position: absolute;
  left: 0;
  width: 18px;
  height: 1.5px;
  background: currentColor;
  transition: transform .22s var(--ease);
}
.burger i::before { top: -6px; }
.burger i::after { top: 6px; }
.burger[aria-expanded='true'] i { background: transparent; }
.burger[aria-expanded='true'] i::before { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded='true'] i::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 900px) {
  /* На телефонах шапка обычная и уезжает вместе со страницей.
     Ни прилипание, ни фиксация во встроенном браузере Телеграма не работают:
     он сдвигает видимую область под своей панелью, шапка привязывается не к
     тому краю, и содержимое проезжает в зазор над ней. Видно на видео от
     9 августа 2026. Постоянная шапка на телефоне не стоит сломанной вёрстки:
     к заявке всё равно ведут кнопки в тексте. */
  .nav { position: static; }

  .nav-links, .nav-cta { display: none; }
  .burger { display: flex; }
  .nav-links.is-open {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    padding: 16px var(--pad) 24px;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }
  .nav-links.is-open a { font-size: 18px; padding: 10px 0; color: var(--ink); }
}

/* --- Первый экран ------------------------------------------------------- */
.hero {
  padding-top: clamp(40px, 6vw, 80px);
  padding-bottom: clamp(56px, 7vw, 96px);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.3rem, 4.1vw, 3.4rem);
  letter-spacing: -.03em;
  max-width: 15ch;
}
.hero .lead { margin-top: 24px; font-size: clamp(1.02rem, 1.35vw, 1.18rem); max-width: 46ch; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

/* стопка реальных скриншотов сделанных страниц */
.stack {
  position: relative;
  aspect-ratio: 4 / 3.1;
  isolation: isolate;
}
.stack::before {
  content: '';
  position: absolute;
  inset: 8% 0 10% 22%;
  background: var(--accent);
  border-radius: var(--r-card);
  opacity: .16;
  z-index: 0;
}
.stack figure {
  position: absolute;
  margin: 0;
  border-radius: var(--r-card);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lift);
  background: var(--surface);
}
.stack img { width: 100%; height: auto; }
.stack .s1 { z-index: 3; width: 88%; top: 0; left: 0; }
.stack .s2 { z-index: 2; width: 62%; bottom: 0; right: 0; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .stack { max-width: 620px; }
}
@media (max-width: 560px) {
  .stack { aspect-ratio: 4 / 2.9; }
  .stack .s2 { width: 56%; }
  .stack::before { inset: 10% 0 8% 20%; }
}

/* --- Факты под первым экраном ------------------------------------------- */
.facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap);
  border-top: 1px solid var(--line);
  padding-top: 28px;
}
.facts div strong {
  display: block;
  font-family: 'Geologica', sans-serif;
  font-weight: 500;
  font-size: clamp(1.5rem, 2.4vw, 2.1rem);
  letter-spacing: -.03em;
  line-height: 1;
}
.facts div p { margin-top: 10px; color: var(--ink-2); font-size: 15px; max-width: 26ch; }

@media (max-width: 860px) { .facts { grid-template-columns: repeat(2, 1fr); row-gap: 32px; } }
@media (max-width: 460px) { .facts { grid-template-columns: 1fr; } }

/* --- Шапка секции ------------------------------------------------------- */
.sec-head { max-width: 62ch; margin-bottom: clamp(36px, 4vw, 56px); }
.sec-head .lead { margin-top: 18px; }

/* --- Работы ------------------------------------------------------------- */
.work-lead {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
  margin-bottom: var(--gap);
}
.work-shot {
  position: relative;
  border-radius: var(--r-card);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
/* высота auto: скриншот показывается целиком, без обрезки кадра */
.work-shot img { width: 100%; height: auto; }
.work-item:hover .work-shot { transform: translateY(-4px); box-shadow: var(--shadow-lift); }

/* карточка работы целиком ссылка на живую страницу */
a.work-item { display: block; text-decoration: none; color: inherit; }
a.work-item:hover h3 { color: var(--accent); }
.work-item h3 { transition: color .2s var(--ease); }

.work-open {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  font-size: 15px;
  font-weight: 600;
  color: var(--accent);
}
.work-open::after {
  content: '';
  width: 7px;
  height: 7px;
  border-top: 1.6px solid currentColor;
  border-right: 1.6px solid currentColor;
  transform: rotate(45deg);
  transition: transform .2s var(--ease);
}
a.work-item:hover .work-open::after { transform: rotate(45deg) translate(2px, -2px); }

.work-meta h3 { margin-bottom: 12px; }
.work-kind { color: var(--accent); font-size: 14px; font-weight: 600; margin-bottom: 14px; }
.work-meta p { color: var(--ink-2); max-width: 46ch; }
.work-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
  padding: 0;
  list-style: none;
}
.work-tags li {
  font-size: 13.5px;
  color: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 12px;
}

.work-duo {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(28px, 3.5vw, 48px);
}
.work-duo .work-meta { margin-top: 22px; }

@media (max-width: 860px) {
  .work-lead, .work-duo { grid-template-columns: 1fr; }
  .work-lead .work-meta { margin-top: 4px; }
}

/* --- Что входит (бенто) ------------------------------------------------- */
.bento {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--gap);
}
.cell {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: clamp(22px, 2.4vw, 34px);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cell .icon { width: 26px; height: 26px; color: var(--accent); }
.cell p { color: var(--ink-2); font-size: 15.5px; }

.cell-lg { grid-column: span 2; grid-row: span 2; justify-content: space-between; }
.cell-lg h3 { font-size: clamp(1.5rem, 2.2vw, 2rem); letter-spacing: -.025em; }
.cell-wide { grid-column: span 2; }

.cell-accent {
  background: var(--accent);
  border-color: transparent;
  color: var(--accent-ink);
}
.cell-accent .icon { color: currentColor; }
.cell-accent p { color: color-mix(in srgb, var(--accent-ink) 78%, var(--accent)); }

/* тонированная ячейка: держит тему страницы, не выворачивая её */
.cell-tint {
  background: var(--accent-soft);
  border-color: color-mix(in srgb, var(--accent) 24%, transparent);
}

.cell-full {
  grid-column: 1 / -1;
  flex-direction: row;
  align-items: center;
  gap: clamp(18px, 3vw, 44px);
  flex-wrap: wrap;
}
.cell-full h3 { flex: 0 0 auto; }
.cell-full p { flex: 1 1 320px; max-width: 62ch; }

.cell-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.cell-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 15.5px; }
.cell-list .icon { width: 19px; height: 19px; margin-top: 3px; color: currentColor; opacity: .8; }

@media (max-width: 900px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cell-lg { grid-column: span 2; grid-row: auto; }
  .cell-wide { grid-column: span 2; }
}
@media (max-width: 700px) {
  .cell-full { flex-direction: column; align-items: flex-start; gap: 12px; }
}
@media (max-width: 560px) {
  .bento { grid-template-columns: 1fr; }
  .cell-lg, .cell-wide { grid-column: span 1; }
}

/* --- Страницы под ниши --------------------------------------------------- */
.niche-hero { padding-top: clamp(28px, 4vw, 56px); }
.niche-hero h1 {
  font-size: clamp(2.1rem, 3.8vw, 3.2rem);
  letter-spacing: -.03em;
  max-width: 20ch;
}
.niche-hero .lead { margin-top: 22px; max-width: 60ch; }

.crumbs {
  font-size: 14.5px;
  color: var(--ink-2);
  margin-bottom: 22px;
}
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { color: var(--accent); }
.crumbs span { margin: 0 6px; opacity: .6; }

.steps-list {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  overflow: hidden;
}
.steps-list li {
  counter-increment: step;
  background: var(--bg);
  padding: 20px clamp(20px, 2.4vw, 28px);
  display: flex;
  gap: 14px;
  align-items: baseline;
  font-size: 15.5px;
  color: var(--ink);
  line-height: 1.5;
}
.steps-list li::before {
  content: counter(step);
  font-family: 'Geologica', sans-serif;
  font-weight: 500;
  font-size: 14px;
  color: var(--accent);
  flex: none;
  min-width: 18px;
}

.niche-price {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--gap);
}
.niche-price > div {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: clamp(24px, 3vw, 34px);
}
.niche-price p { color: var(--ink-2); font-size: 15.5px; }
.niche-price-value {
  font-family: 'Geologica', sans-serif;
  font-weight: 500;
  font-size: clamp(1.7rem, 2.6vw, 2.2rem);
  letter-spacing: -.03em;
  color: var(--ink) !important;
  margin-bottom: 12px;
  line-height: 1;
}

@media (max-width: 760px) {
  .steps-list, .niche-price { grid-template-columns: 1fr; }
}

/* --- Кому подходит ------------------------------------------------------- */
.niches {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.niches li {
  padding: 13px 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-size: clamp(15px, 1.4vw, 16.5px);
  font-weight: 500;
  color: var(--ink);
  transition: border-color .2s var(--ease), transform .12s var(--ease);
}
.niches li:hover { border-color: var(--accent); transform: translateY(-2px); }

.niches-note {
  margin-top: 28px;
  color: var(--ink-2);
  font-size: 15.5px;
  max-width: 62ch;
}

@media (max-width: 520px) {
  .niches { gap: 9px; }
  .niches li { padding: 11px 16px; }
}

/* --- Как идёт работа ---------------------------------------------------- */
.flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--gap);
  counter-reset: step;
}
.flow-step { padding-top: 26px; border-top: 2px solid var(--ink); }
.flow-step:nth-child(n+2) { border-top-color: var(--line); }
.flow-when {
  font-family: 'Geologica', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 10px;
}
.flow-step h3 { margin-bottom: 10px; }
.flow-step p { color: var(--ink-2); font-size: 15.5px; }

@media (max-width: 860px) { .flow { grid-template-columns: repeat(2, 1fr); row-gap: 36px; } }
@media (max-width: 520px) { .flow { grid-template-columns: 1fr; } }

/* --- Цены --------------------------------------------------------------- */
.plans {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  gap: var(--gap);
  align-items: stretch;
}
.plan {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: clamp(26px, 3vw, 42px);
  display: flex;
  flex-direction: column;
}
.plan-featured { border-color: var(--accent); box-shadow: var(--shadow); }
.plan h3 { font-size: clamp(1.3rem, 1.8vw, 1.6rem); }
.plan-price {
  font-family: 'Geologica', sans-serif;
  font-weight: 500;
  font-size: clamp(2rem, 3vw, 2.7rem);
  letter-spacing: -.03em;
  margin: 18px 0 6px;
  line-height: 1;
}
.plan-price small { font-size: .42em; color: var(--ink-2); font-weight: 400; letter-spacing: 0; }
.plan-term { color: var(--ink-2); font-size: 15px; }
.plan ul {
  list-style: none;
  margin: 26px 0 30px;
  padding: 0;
  display: grid;
  gap: 12px;
}
.plan li { display: flex; gap: 11px; align-items: flex-start; font-size: 15.5px; }
.plan li .icon { width: 19px; height: 19px; margin-top: 3px; color: var(--accent); }
.plan .btn { margin-top: auto; }

.plan-note {
  margin-top: var(--gap);
  padding: 22px clamp(20px, 2.4vw, 30px);
  border: 1px dashed var(--line);
  border-radius: var(--r-card);
  color: var(--ink-2);
  font-size: 15.5px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 28px;
}
.plan-note b { color: var(--ink); font-weight: 600; }

@media (max-width: 860px) { .plans { grid-template-columns: 1fr; } }

/* --- Чем я рискую -------------------------------------------------------- */
.promises {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  overflow: hidden;
}
.promises li {
  background: var(--bg);
  padding: clamp(22px, 2.6vw, 32px);
  display: grid;
  gap: 8px;
  font-size: 15.5px;
  color: var(--ink-2);
  line-height: 1.55;
}
.promises b {
  font-family: 'Geologica', sans-serif;
  font-weight: 500;
  font-size: 1.06rem;
  letter-spacing: -.015em;
  color: var(--ink);
  line-height: 1.25;
}
.promises a { color: var(--accent); text-decoration: none; font-weight: 600; }
.promises a:hover { text-decoration: underline; }

@media (max-width: 760px) {
  .promises { grid-template-columns: 1fr; }
}

/* --- Обо мне ------------------------------------------------------------ */
.about {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: clamp(28px, 4vw, 60px);
}
/* пока фото не положили в assets/img/egor.jpg, секция живёт одной колонкой */
.about-nophoto { grid-template-columns: 1fr; }
.about-nophoto .about-text p { max-width: 62ch; }

.about h2 { font-size: clamp(1.8rem, 2.8vw, 2.5rem); }
.about-text p { color: var(--ink-2); margin-top: 18px; max-width: 48ch; }
.about-text p:first-of-type { color: var(--ink); font-size: 1.1rem; }
.about-photo {
  border-radius: var(--r-card);
  overflow: hidden;
  background: var(--surface-2);
  /* фото из телеграма квадратное, шире 380px растягивать смысла нет */
  aspect-ratio: 1 / 1;
  max-width: 380px;
  margin-inline: auto;
  width: 100%;
}
.about-photo img { width: 100%; height: 100%; object-fit: cover; }

.about-links {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 20px;
}
.about-mail {
  color: var(--ink-2);
  text-decoration: none;
  font-size: 15.5px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 3px;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.about-mail:hover { color: var(--accent); border-color: var(--accent); }

@media (max-width: 860px) {
  .about { grid-template-columns: 1fr; }
  .about-photo { order: -1; max-width: 300px; margin-inline: 0; }
}

/* --- Вопросы ------------------------------------------------------------ */
.faq { display: grid; gap: 0; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 24px 48px 24px 0;
  position: relative;
  font-family: 'Geologica', sans-serif;
  font-weight: 500;
  font-size: clamp(1.02rem, 1.4vw, 1.2rem);
  letter-spacing: -.01em;
  transition: color .18s var(--ease);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--accent); }
.faq summary .icon {
  position: absolute;
  right: 4px;
  top: 26px;
  width: 20px;
  height: 20px;
  color: var(--ink-2);
  transition: transform .25s var(--ease);
}
.faq details[open] summary .icon { transform: rotate(180deg); }
.faq details p { color: var(--ink-2); padding-bottom: 26px; max-width: 68ch; }

/* --- Заявка ------------------------------------------------------------- */
.contact {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
.contact h2 { font-size: clamp(2rem, 3.2vw, 2.9rem); }
.contact-side .lead { margin-top: 20px; }
.contact-ways {
  margin-top: 30px;
  display: grid;
  gap: 12px;
  max-width: 420px;
}
.contact-way {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--surface);
  text-decoration: none;
  color: var(--ink);
  transition: border-color .2s var(--ease), transform .12s var(--ease), box-shadow .2s var(--ease);
}
.contact-way:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.contact-way .icon { width: 24px; height: 24px; color: var(--accent); }
.contact-way span { display: grid; gap: 2px; font-size: 14px; color: var(--ink-2); line-height: 1.35; }
.contact-way b {
  font-family: 'Geologica', sans-serif;
  font-weight: 500;
  font-size: 1.05rem;
  letter-spacing: -.02em;
  color: var(--ink);
}

.form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: clamp(24px, 3vw, 40px);
  display: grid;
  gap: 20px;
}
.field { display: grid; gap: 8px; }
.field label { font-size: 14.5px; font-weight: 600; }
.field input, .field textarea {
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-btn);
  padding: 13px 15px;
  width: 100%;
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.field textarea { min-height: 110px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-2); opacity: .85; }
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent);
}
.field .hint { font-size: 13.5px; color: var(--ink-2); }
/* Пометка у необязательного поля: человек не должен думать, что оно нужно всем. */
.label-opt { font-weight: 400; color: var(--ink-2); font-size: 13.5px; }
.field .err { font-size: 13.5px; color: #c0392b; display: none; }
@media (prefers-color-scheme: dark) { .field .err { color: #ff8a7a; } }
.field.is-invalid input, .field.is-invalid textarea { border-color: #c0392b; }
.field.is-invalid .err { display: block; }

.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; }
.form-foot .fine { font-size: 13.5px; color: var(--ink-2); max-width: 34ch; }

/* honeypot: поле есть в разметке, но человеку его не видно */
.trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-note {
  display: none;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 18px;
  border-radius: var(--r-btn);
  background: var(--accent-soft);
  color: var(--ink);
  font-size: 15.5px;
}
.form-note .icon { color: var(--accent); margin-top: 3px; }
.form-note a { color: var(--accent); font-weight: 600; text-decoration: none; }
.form-note a:hover { text-decoration: underline; }
.form.is-sent .form-done { display: flex; }
.form.is-failed .form-failed { display: flex; }

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

@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }

/* --- Подвал ------------------------------------------------------------- */
.footer {
  border-top: 1px solid var(--line);
  margin-top: var(--sec);
  padding-block: 36px 44px;
}
.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 64px);
  padding-bottom: 32px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--line);
}
.footer-name {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Geologica', sans-serif;
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: -.02em;
  margin-bottom: 12px;
}
.footer-mark { width: 30px; height: 30px; flex: none; display: block; }
.footer-about p { color: var(--ink-2); font-size: 15px; max-width: 44ch; }
.footer-col { display: grid; gap: 10px; align-content: start; }
.footer-col a { color: var(--ink-2); font-size: 15px; width: fit-content; }
.footer-title {
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
  margin-bottom: 2px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 32px;
  align-items: center;
  justify-content: space-between;
  color: var(--ink-2);
  font-size: 14.5px;
}
.footer a { text-decoration: none; transition: color .18s var(--ease); }
.footer a:hover { color: var(--accent); }

@media (max-width: 820px) {
  .footer-top { grid-template-columns: 1fr 1fr; row-gap: 32px; }
  .footer-about { grid-column: 1 / -1; }
}

/* --- Страница «не найдено» ----------------------------------------------- */
.notfound { display: flex; align-items: center; min-height: calc(100dvh - var(--nav-h) - 160px); }
.notfound-inner { max-width: 640px; padding-block: clamp(48px, 8vw, 96px); }
.notfound-code {
  font-family: 'Geologica', sans-serif;
  font-weight: 600;
  font-size: clamp(3.5rem, 9vw, 6rem);
  line-height: 1;
  letter-spacing: -.04em;
  color: var(--accent);
  margin-bottom: 12px;
}
.notfound h1 { font-size: clamp(1.8rem, 3vw, 2.6rem); margin-bottom: 18px; }
.notfound .hero-actions { margin-top: 32px; }

/* --- Правовые документы -------------------------------------------------- */
.doc { padding-block: clamp(40px, 6vw, 72px) 0; }
.doc-wrap { max-width: 820px; }

.doc h1 {
  font-size: clamp(1.9rem, 3.4vw, 2.7rem);
  margin-bottom: 16px;
}
.doc h2 {
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  margin-bottom: 14px;
}
.doc h3 {
  font-size: 1.05rem;
  margin: 26px 0 10px;
}
.doc section { margin-top: clamp(36px, 4vw, 52px); }
.doc p { margin-bottom: 14px; color: var(--ink-2); }
.doc p b, .doc li b { color: var(--ink); font-weight: 600; }
.doc a { color: var(--accent); text-decoration: none; }
.doc a:hover { text-decoration: underline; }

.doc-meta { font-size: 15px; }

.doc-lead {
  margin: 28px 0 8px;
  padding: clamp(20px, 2.4vw, 28px);
  border-radius: var(--r-card);
  background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
}
.doc-lead p { color: var(--ink); margin-bottom: 10px; }
.doc-lead p:last-child { margin-bottom: 0; }

.doc-toc {
  margin-top: 32px;
  padding: clamp(20px, 2.4vw, 28px);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--surface);
}
.doc-toc-title { font-weight: 600; color: var(--ink); margin-bottom: 12px; }
.doc-toc ol {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 7px;
  color: var(--ink-2);
  font-size: 15.5px;
}

.doc-list {
  margin: 0 0 16px;
  padding-left: 20px;
  display: grid;
  gap: 9px;
  color: var(--ink-2);
}
.doc-list li { padding-left: 2px; }

.doc-back { margin-bottom: 26px; font-size: 15px; }
.doc-back a { color: var(--ink-2); text-decoration: none; }
.doc-back a:hover { color: var(--accent); }
.doc-back-bottom { margin: 48px 0 0; }

/* --- Согласие в форме ---------------------------------------------------- */
.consent {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-btn);
  background: var(--bg);
  cursor: pointer;
  transition: border-color .18s var(--ease), background .18s var(--ease);
}
.consent:hover { border-color: var(--ink-2); }

/* сам input скрыт, но остаётся доступным с клавиатуры */
.consent input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.consent-box {
  flex: none;
  width: 22px;
  height: 22px;
  border: 1.5px solid var(--ink-2);
  border-radius: 6px;
  position: relative;
  transition: background .18s var(--ease), border-color .18s var(--ease);
}
.consent-box::after {
  content: '';
  position: absolute;
  left: 7px;
  top: 3px;
  width: 5px;
  height: 10px;
  border: solid var(--accent-ink);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) scale(.6);
  opacity: 0;
  transition: opacity .16s var(--ease), transform .16s var(--ease);
}
.consent input:checked + .consent-box {
  background: var(--accent);
  border-color: var(--accent);
}
.consent input:checked + .consent-box::after {
  opacity: 1;
  transform: rotate(45deg) scale(1);
}
.consent input:focus-visible + .consent-box {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.consent-text {
  display: grid;
  gap: 3px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.35;
}
.consent-text small { font-size: 13px; font-weight: 400; color: var(--ink-2); }
.consent-text a { color: var(--accent); text-decoration: none; }
.consent-text a:hover { text-decoration: underline; }

.field.is-invalid .consent { border-color: #c0392b; }
.field.is-invalid .consent-box { border-color: #c0392b; }

/* --- Уведомление о cookie ------------------------------------------------ */
.cookie {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 55;
  max-width: 620px;
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--surface);
  box-shadow: var(--shadow-lift);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.cookie.is-on { opacity: 1; transform: none; }
.cookie p { font-size: 14px; color: var(--ink-2); line-height: 1.4; flex: 1 1 300px; }
.cookie a { color: var(--accent); text-decoration: none; }
.cookie a:hover { text-decoration: underline; }
.cookie button { flex: none; }

@media (max-width: 520px) {
  .cookie { padding: 14px 16px; }
  .cookie button { width: 100%; }
}

/* --- Подсказка о скопированном контакте ---------------------------------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translate(-50%, 12px);
  z-index: 60;
  max-width: calc(100vw - 32px);
  padding: 13px 20px;
  border-radius: var(--r-btn);
  background: var(--ink);
  color: var(--bg);
  font-size: 15px;
  font-weight: 500;
  box-shadow: var(--shadow-lift);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s var(--ease), transform .25s var(--ease);
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* --- Появление при скролле ---------------------------------------------- */
.reveal { opacity: 0; transform: translateY(18px); }
.reveal.is-in {
  opacity: 1;
  transform: none;
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  transition-delay: var(--d, 0ms);
}

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal.is-in { opacity: 1; transform: none; transition: none; }
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* ссылки-чипы в блоке «Кому подходит» */
.niches li a { color: inherit; text-decoration: none; display: block; }
.niches li:has(a) { border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
.niches li:has(a):hover { border-color: var(--accent); }

/* --- Партнёрская программа ----------------------------------------------- */
.partner {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
  padding: clamp(28px, 4vw, 52px);
  border-radius: var(--r-card);
  background: var(--surface);
  border: 1px solid var(--line);
}
.partner h2 { font-size: clamp(1.7rem, 2.8vw, 2.4rem); margin-bottom: 18px; }
.partner-text > p { color: var(--ink-2); max-width: 56ch; }

.partner-list {
  list-style: none;
  margin: 24px 0 30px;
  padding: 0;
  display: grid;
  gap: 11px;
}
.partner-list li {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  font-size: 15.5px;
  color: var(--ink);
}
.partner-list .icon { width: 19px; height: 19px; margin-top: 3px; color: var(--accent); }

.partner-rate {
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: var(--r-card);
  padding: clamp(24px, 3vw, 36px);
  text-align: center;
}
.partner-rate-value {
  font-family: 'Geologica', sans-serif;
  font-weight: 600;
  font-size: clamp(3rem, 6vw, 4.4rem);
  line-height: 1;
  letter-spacing: -.04em;
  margin-bottom: 14px;
}
.partner-rate-note {
  font-size: 14.5px;
  line-height: 1.5;
  color: color-mix(in srgb, var(--accent-ink) 82%, var(--accent));
}

@media (max-width: 860px) {
  .partner { grid-template-columns: 1fr; }
  .partner-rate { order: -1; }
}
