/* Smart Journal — лендинг. Цвета по презентации 2026 */
:root {
  --ink: #1e2230;
  --ink-2: #2c3245;
  --ink-3: #3a4157;
  --paper: #f3efe8;
  --paper-2: #ece6db;
  --card: #fffdf9;
  --line: #e2dacd;
  --accent: #c8573a;
  --accent-dark: #b24a2f;
  --accent-soft: #f0b48a;
  --text: #262a36;
  --muted: #6b6f7b;
  --muted-dark: #b8bccb;
  /* Шрифты — fonts.css (лежат в fonts/); дальше запасные, пока грузятся. */
  --serif: Lora, Georgia, "PT Serif", "Times New Roman", serif;
  --sans: Onest, "Segoe UI", "PT Sans", Roboto, "Helvetica Neue", Arial, sans-serif;
  --r: 10px;
  --shadow: 0 2px 0 #e4dccf, 0 6px 18px rgba(30, 34, 48, .06);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; font: 17px/1.55 var(--sans); color: var(--text); background: var(--paper); -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; }
h1, h2 { font-family: var(--serif); font-weight: 700; letter-spacing: -.01em; }
h3 { font-size: 1.12rem; font-weight: 600; }
h4 { font-size: 1rem; font-weight: 600; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }
.wrap--narrow { width: min(820px, 100% - 40px); }

/* Кнопки */
.btn { display: inline-block; padding: .72em 1.3em; border-radius: 999px; font-weight: 600; font-size: .95rem; text-decoration: none; border: 1.5px solid transparent; transition: background .15s, border-color .15s; text-align: center; }
.btn--accent { background: var(--accent); color: #fff; }
.btn--accent:hover { background: var(--accent-dark); }
.btn--line { border-color: rgba(255,255,255,.35); color: #fff; }
.btn--line:hover { border-color: #fff; }
.btn--big { font-size: 1.02rem; padding: .88em 1.6em; }

/* Шапка */
.top { position: sticky; top: 0; z-index: 10; background: rgba(243, 239, 232, .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top__in { display: flex; align-items: center; gap: 28px; height: 62px; }
.logo { font-family: var(--serif); font-weight: 700; font-size: 1.3rem; text-decoration: none; color: var(--ink); white-space: nowrap; }
.logo::first-letter { color: var(--accent); }
.nav { display: flex; gap: 24px; margin-left: auto; font-size: .95rem; }
.nav a { text-decoration: none; color: var(--muted); }
.nav a:hover { color: var(--ink); }
.top__cta { padding: .5em 1.1em; white-space: nowrap; }

/* Секции */
.sec { padding: 88px 0; }
.dark { background: var(--ink); color: #eef0f5; }
.light { background: var(--paper); }
.light--alt { background: var(--paper-2); }
.sec h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); max-width: 30ch; }
.sub { margin-top: 14px; max-width: 62ch; color: var(--muted); font-size: 1.05rem; }
.dark .sub { color: var(--muted-dark); }
.sub::after { content: ""; display: block; width: 72px; height: 4px; background: var(--accent); margin-top: 22px; }

/* Первый экран */
.hero { padding: 88px 0 96px; }
.hero__in { display: grid; grid-template-columns: 1.15fr 1fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); max-width: 17ch; }
.lead { margin-top: 22px; font-size: 1.15rem; color: #d7dae4; max-width: 52ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

/* До и после */
.ba { margin: 0; display: grid; grid-template-columns: 1fr 44px 1fr; align-items: center; }
.ba__side { text-align: center; }
.ba__page { width: 100%; border-radius: 3px; box-shadow: 0 24px 50px rgba(0,0,0,.35); }
.ba__page--word { transform: rotate(-2deg); opacity: .92; }
.ba figcaption { margin-top: 16px; font-size: .88rem; color: var(--muted-dark); }
.ba__side:last-child figcaption { color: var(--accent-soft); font-weight: 600; }
.ba__arrow { height: 2px; background: var(--accent); margin: 0 8px 30px; position: relative; }
.ba__arrow::after { content: ""; position: absolute; right: -2px; top: -5px; border: 6px solid transparent; border-left: 9px solid var(--accent); border-right: 0; }

/* Карточки */
.grid { display: grid; gap: 22px; margin-top: 44px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 26px 28px; box-shadow: var(--shadow); color: var(--text); position: relative; }
.card p { color: var(--muted); margin-top: 10px; font-size: .97rem; }
.card--tight { padding: 22px 22px; }
.num { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: #fff; font-size: .85rem; font-weight: 700; margin-bottom: 14px; }

.note { margin-top: 40px; padding: 20px 26px; background: var(--paper-2); border-radius: var(--r); font-weight: 600; max-width: 900px; }
.note.note--dark { background: var(--ink-2); color: #eef0f5; }

.dots li { position: relative; padding-left: 20px; margin-top: 12px; color: var(--muted); }
.dots li::before { content: ""; position: absolute; left: 0; top: .62em; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.card h3 + .dots { margin-top: 6px; }
.dots--big { margin-top: 30px; }
.dots--big li { font-size: 1.05rem; margin-top: 16px; }
.dots--big b { color: var(--text); }

/* Как работаем */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 44px; }
.steps h3 { font-size: 1.3rem; }
.modes { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 28px; }
.mode { display: flex; gap: 16px; align-items: flex-start; padding: 20px 24px; border-radius: var(--r); background: var(--paper-2); }
.mode p { color: var(--text); }
.mode--soon { background: transparent; border: 1.5px dashed #cfc5b5; }
.mode--soon p { color: var(--muted); }
.tag { flex: none; background: var(--accent); color: #fff; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; padding: .3em .75em; border-radius: 999px; margin-top: 2px; }
.tag--soon { background: var(--ink); }

/* Номер в цифрах */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: 44px; }
.facts--time { grid-template-columns: repeat(2, 1fr); margin-top: 22px; }
.fact { background: var(--ink-2); border-radius: var(--r); padding: 26px 24px; }
.fact b { display: block; font-size: 2.6rem; line-height: 1.05; font-weight: 700; color: #fff; letter-spacing: -.02em; }
.fact span { display: block; margin-top: 8px; color: var(--muted-dark); }
.fact--wide b { color: var(--accent-soft); font-size: 2.1rem; }

/* Стоимость */
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.price__card { padding: 34px; }
.price__card h3 { font-family: var(--serif); font-size: 1.6rem; }
.price__card p { margin: 14px 0 24px; font-size: 1.02rem; }

/* Пилот */
.pilot { padding: 96px 0; }
.pilot h2 { font-size: clamp(2rem, 4vw, 2.9rem); }
.pilot .lead { margin-bottom: 32px; }
.mail { margin-top: 14px; color: var(--muted-dark); }
.pilot__card { background: var(--paper); }
.pilot__card h3 { font-family: var(--serif); font-size: 1.5rem; }
.list-num { margin-top: 12px; counter-reset: n; }
.list-num li { position: relative; padding-left: 46px; margin-top: 20px; counter-increment: n; }
.list-num li::before { content: counter(n); position: absolute; left: 0; top: -2px; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: #fff; font-size: .82rem; font-weight: 700; display: grid; place-items: center; }
.list-num p { color: var(--muted); margin-top: 3px; font-size: .95rem; }

/* Вопросы */
.faq { margin-top: 36px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 44px 20px 0; font-weight: 600; font-size: 1.05rem; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font-size: 1.6rem; font-weight: 400; color: var(--accent); line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq summary:hover { color: var(--accent-dark); }
.faq details p { padding: 0 0 22px; color: var(--muted); max-width: 68ch; }

/* Подвал */
.foot { background: #161925; color: #9ca1b2; padding: 26px 0; font-size: .9rem; }
.foot__in { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.foot a { color: #c9cdd9; }

/* Планшет */
@media (max-width: 960px) {
  .nav { display: none; }
  .top__cta { margin-left: auto; }
  .hero__in, .split { grid-template-columns: 1fr; }
  .ba { max-width: 460px; }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .facts { grid-template-columns: repeat(2, 1fr); }
}

/* Телефон */
@media (max-width: 640px) {
  body { font-size: 16px; }
  .sec { padding: 64px 0; }
  .hero { padding: 56px 0 64px; }
  .grid--2, .grid--3, .grid--4, .steps, .modes, .facts--time { grid-template-columns: 1fr; }
  .fact b { font-size: 2.1rem; }
  .hero__cta .btn { width: 100%; }
  .top__cta { font-size: .85rem; }
}
