/* Редизайн главной: шрифт Onest, меньше рамок, чёткая иерархия. Рукописность (pen.js, Caveat, линии от руки) сохранена.
   Подключается только на index.html после встроенного CSS. */

:root {
  --serif: "Onest", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --sans: "Onest", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}

body { font-size: 18px; line-height: 1.6; }
h1, h2, h3 { font-family: var(--sans); font-weight: 800; letter-spacing: -0.03em; }

/* шапка */
.brand { font-weight: 800; }
.nav { font-size: 16px; font-weight: 500; }
.cta-button { font-weight: 600; letter-spacing: 0; }

/* hero */
.hero-copy h1 { font-size: clamp(34px, 4.7vw, 60px); line-height: 1.06; font-weight: 800; letter-spacing: -0.035em; }
.hero-text { font-size: 19px; line-height: 1.6; max-width: 560px; color: var(--soft); }
.screen-card strong { font-weight: 800; white-space: nowrap; font-size: 34px; }

/* ритм страницы */
.section { padding: 88px var(--gutter); }
.section-heading { margin-bottom: 40px; }
.section-heading h2 { font-size: clamp(30px, 3.6vw, 46px); line-height: 1.08; letter-spacing: -0.035em; }
.lead { font-size: 19px; color: var(--soft); max-width: 62ch; margin-top: 14px; }
.hand-note { font-family: var(--hand); font-size: 25px; line-height: 1.25; color: var(--ink); max-width: 640px; }
.small-note { font-size: 15px; color: var(--soft); max-width: 64ch; margin-top: 18px; }

/* «Узнаёшь себя»: без рамок, рукописные номера и линии */
.pain-list { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 0 64px; max-width: 920px; }
.pain-list li {
  display: grid; grid-template-columns: 66px 1fr; align-items: center; padding: 20px 0;
  background-image: var(--hand-line-soft); background-repeat: repeat-x; background-position: left bottom; background-size: 420px 8px;
}
.pain-list li:nth-child(2n) { background-position: -140px bottom; }
.hn { font-family: var(--hand); font-size: 48px; line-height: 1; color: var(--ink); }
.pain-list p { font-size: 21px; line-height: 1.35; font-weight: 500; }

/* «Что получишь»: смысл слева, детали справа */
.gain-cols { display: grid; grid-template-columns: 1fr 1.2fr; gap: 64px; align-items: start; }
.gain-big { font-size: clamp(28px, 3.1vw, 40px); line-height: 1.15; font-weight: 800; letter-spacing: -0.03em; }
.mark { font-style: normal; background: linear-gradient(transparent 60%, rgba(30, 42, 99, 0.2) 60%); }
.gain-list { list-style: none; }
.gain-list li {
  padding: 16px 0 17px; background-image: var(--hand-line-soft); background-repeat: repeat-x; background-position: left bottom; background-size: 420px 8px;
}
.gain-list li:last-child { background-image: none; }
.gain-list b { display: block; font-size: 19px; font-weight: 700; letter-spacing: -0.01em; }
.gain-list span { display: block; color: var(--soft); font-size: 16.5px; line-height: 1.5; margin-top: 2px; }

/* «Как я работаю»: путь по линии */
.path-wrap { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: start; }
.path-list { list-style: none; position: relative; padding-left: 52px; }
.path-list::before {
  content: ""; position: absolute; left: 14px; top: 8px; bottom: 14px; width: 8px;
  background-image: var(--hand-line-vertical); background-repeat: repeat-y; background-size: 8px 160px;
}
.path-list li { position: relative; margin-bottom: 30px; }
.path-list li::before {
  content: ""; position: absolute; left: -46px; top: 5px; width: 22px; height: 22px; border: 3px solid var(--ink); background: var(--paper); border-radius: 50%;
}
.path-list li.acc::before { background: var(--ink); }
.path-list h3 { font-size: 24px; line-height: 1.2; margin-bottom: 6px; }
.path-list p { font-size: 17px; color: var(--soft); max-width: 58ch; }
.side-box { background: var(--paper-3); padding: 26px 26px 24px; transform: rotate(1deg); }
.side-box h3 { font-size: 22px; margin-bottom: 10px; }
.side-box p { font-size: 16.5px; color: var(--soft); }
.side-box ul { list-style: none; margin-top: 12px; display: grid; gap: 7px; font-size: 16.5px; }
.side-box li { padding-left: 22px; position: relative; }
.side-box li::before { content: ""; position: absolute; left: 0; top: 11px; width: 12px; height: 3px; background: var(--ink); transform: rotate(-2deg); }

/* «Кому подойдёт» */
.fit-columns h3 { font-size: 28px; font-weight: 800; }
.fit-list { font-size: 17.5px; line-height: 1.5; }
.fit-note { margin-top: 30px; max-width: 760px; }

/* «Почему я» */
.about-copy p { font-size: 18px; max-width: 64ch; }
.about-copy ul { font-size: 16.5px; }

/* форматы: средняя карточка главная */
.format-grid article h3 { font-size: 26px; font-weight: 800; }
.format-grid article p { font-size: 16.5px; line-height: 1.55; }
.format-grid .format-tag { font-family: var(--hand); font-size: 22px; color: var(--ink); display: block; margin-bottom: 4px; }
.format-grid .format-main { background: var(--ink); color: var(--paper-3); }
.format-grid .format-main h3 { color: #fff; }
.format-grid .format-main p { color: rgba(239, 232, 218, 0.86); }
.format-grid .format-main .format-tag { color: #cfd3f1; }
.format-grid ul { list-style: none; margin-top: 14px; display: grid; gap: 6px; font-size: 15.5px; color: rgba(239, 232, 218, 0.86); }
.format-grid ul li { padding-left: 18px; position: relative; }
.format-grid ul li::before { content: ""; position: absolute; left: 0; top: 10px; width: 9px; height: 3px; background: #cfd3f1; transform: rotate(-2deg); }

/* кейсы: те же карточки, текст чуть крупнее */
.case-card p { font-size: 15.5px; }

/* тёмные блоки и вопросы */
.dark-inner h2 { font-weight: 800; }
.dark-inner p { font-size: 18px; }
.accordion { max-width: 860px; }
.accordion summary { font-size: 21px; font-weight: 600; letter-spacing: -0.015em; }
.accordion details p { font-size: 17.5px; line-height: 1.6; max-width: 62ch; }

/* подвал */
.footer-brand { font-weight: 800; }
.footer-links { font-size: 15px; }
.copyright { font-size: 14px; }

@media (max-width: 1080px) {
  .gain-cols, .path-wrap { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 860px) {
  body { font-size: 17px; }
  .section { padding: 60px var(--gutter); }
  .pain-list { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .pain-list p { font-size: 19px; }
  .gain-big { font-size: 27px; }
  .path-list h3 { font-size: 22px; }
  .side-box { transform: none; }
}

/* короткое слово в заголовке: рукописная линия вместо pen.js (на коротких словах pen.js рисует «клубок») */
.hand-ul { color: var(--ink); display: inline-block; padding-bottom: 6px; background-image: var(--hand-line); background-repeat: no-repeat; background-position: left bottom; background-size: 100% 8px; }

/* кейсы: крупные цифры текстом и скриншоты на всю ширину карточки */
.case-grid .case-shots { flex-direction: column; flex-wrap: nowrap; gap: 12px; }
.case-grid .case-shots img { flex: 1 1 auto; width: 100%; max-height: none; min-width: 0; }
.case-nums { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; margin: 2px 0 16px; padding-bottom: 14px;
  background-image: var(--hand-line-soft); background-repeat: repeat-x; background-position: left bottom; background-size: 420px 8px; }
.case-nums span { font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--soft); width: 100%; }
.case-nums b { font-size: clamp(30px, 3.4vw, 42px); font-weight: 800; letter-spacing: -0.03em; line-height: 1; color: var(--ink); }
.case-nums b:first-of-type { color: var(--soft); }
.case-nums i { font-style: normal; font-family: var(--hand); font-size: 36px; color: var(--ink); line-height: 1; }
.case-card strong { font-size: 26px; }
.case-card p { font-size: 16px; line-height: 1.55; }
