/* moreseo.ru v4 — см. DESIGN.md
   Тёплая бумага, спокойный тил, одна honey-деталь на экран. Onest + JetBrains Mono, self-hosted. */

:root {
  --paper: #FAF7F2;
  --paper-2: #F2EDE4;
  --ink: #24221F;
  --muted: #6E675F;
  --line: #E5DED2;
  --accent: #1F7A72;
  --accent-ink: #ffffff;
  --accent-soft: #DDEFEC;
  --honey: #E9B949;
  --radius: 14px;
  --wrap: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Onest", "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -0.015em; line-height: 1.15; text-wrap: balance; }
h2 { font-size: clamp(28px, 3.4vw, 40px); max-width: 22ch; }
h3 { font-size: 20px; line-height: 1.3; }
.mono { font-family: "JetBrains Mono", ui-monospace, Menlo, monospace; font-feature-settings: "tnum"; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: 24px; }
.muted { color: var(--muted); }

/* ---- header ---- */
.site-header { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { font-weight: 700; font-size: 22px; text-decoration: none; letter-spacing: -0.02em; }
.brand .dot { color: var(--accent); }
.site-nav { display: flex; gap: 22px; flex-wrap: wrap; }
.site-nav a { text-decoration: none; color: var(--muted); font-size: 15px; }
.site-nav a:hover { color: var(--ink); }
.nav-cta { display: inline-flex; align-items: center; padding: 8px 14px; border-radius: 999px; background: var(--ink); color: var(--paper); font-size: 14px; font-weight: 500; text-decoration: none; white-space: nowrap; }

/* ---- buttons ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 15px 24px; border-radius: 999px; font-weight: 500; font-size: 16px; text-decoration: none; border: 1px solid transparent; transition: transform .12s ease, background .12s ease; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: #196960; }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { background: var(--paper-2); }
.cta-row { display: flex; gap: 12px 16px; align-items: center; flex-wrap: wrap; }
.cta-note { color: var(--muted); font-size: 14px; }

/* ---- hero ---- */
.hero { padding: 72px 0 40px; }
.hero .wrap { display: grid; grid-template-columns: 7fr 5fr; gap: 48px; align-items: center; }
.eyebrow { font-family: "JetBrains Mono", monospace; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 18px; }
.hero h1 { font-size: clamp(34px, 4.6vw, 54px); max-width: 17ch; }
.hero h1 .hl { background: linear-gradient(transparent 62%, var(--honey) 62%, var(--honey) 92%, transparent 92%); }
.hero .lede { font-size: 19px; color: var(--muted); max-width: 48ch; margin: 22px 0 30px; }
.hero-photo { position: relative; }
.hero-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 70% 20%; border-radius: 22px; background: var(--paper-2); }
.hero-card { position: absolute; left: -18px; bottom: 28px; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; box-shadow: 0 8px 30px rgba(36,34,31,.08); max-width: 240px; }
.hero-card .k { font-size: 12px; color: var(--muted); }
.hero-card .v { font-size: 15px; font-weight: 500; }

/* ---- facts strip ---- */
.facts { padding: 28px 0 0; }
.facts .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; border-top: 1px solid var(--line); padding-top: 28px; }
.fact .n { font-family: "JetBrains Mono", monospace; font-size: 22px; font-weight: 500; color: var(--accent); }
.fact .l { color: var(--muted); font-size: 14px; margin-top: 2px; }

/* ---- sections ---- */
.block { padding: 104px 0 0; }
.block .lead { color: var(--muted); font-size: 18px; max-width: 58ch; margin-top: 14px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 40px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 26px 22px; }
.card p { color: var(--muted); font-size: 15.5px; margin: 10px 0 0; }
.card .tag { display: inline-block; font-family: "JetBrains Mono", monospace; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); background: var(--accent-soft); padding: 4px 9px; border-radius: 6px; margin-bottom: 14px; }

/* outcomes */
.outcome { position: relative; padding-top: 26px; }
.outcome .num { font-family: "JetBrains Mono", monospace; font-size: 13px; color: var(--muted); }
.outcome h3 { margin-top: 8px; }
.outcome ul { margin: 12px 0 0; padding-left: 18px; color: var(--muted); font-size: 15px; }
.outcome li { margin: 4px 0; }

/* steps */
.steps { margin-top: 40px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.step { padding: 28px 26px; border-right: 1px solid var(--line); }
.step:last-child { border-right: 0; }
.step .num { font-family: "JetBrains Mono", monospace; color: var(--accent); font-size: 13px; }
.step h3 { margin-top: 8px; font-size: 19px; }
.step p { color: var(--muted); font-size: 15.5px; margin: 10px 0 0; }
.step .when { display: inline-block; margin-top: 14px; font-family: "JetBrains Mono", monospace; font-size: 12px; color: var(--muted); background: var(--paper-2); padding: 4px 9px; border-radius: 6px; }
.honest { margin-top: 18px; padding: 16px 20px; border-left: 3px solid var(--honey); background: #fff; border-radius: 0 10px 10px 0; color: var(--ink); font-size: 16px; max-width: 70ch; }

/* services */
.services { margin-top: 40px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.service { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.service.primary { grid-column: 1 / -1; background: var(--ink); color: var(--paper); border-color: var(--ink); display: grid; grid-template-columns: 1.1fr 1fr; gap: 32px; padding: 30px 32px; }
.service.primary ul { margin: 0; }
.service.primary li:first-child { border-top: 0; padding-top: 0; }
.service.primary p, .service.primary li { color: color-mix(in srgb, var(--paper) 72%, transparent); }
.service.primary .tag { background: rgba(255,255,255,.1); color: var(--honey); }
.service p { color: var(--muted); font-size: 15.5px; margin: 10px 0 0; }
.service ul { margin: 14px 0 0; padding: 0; list-style: none; }
.service li { padding: 8px 0; border-top: 1px solid var(--line); font-size: 15px; }
.service.primary li { border-color: rgba(255,255,255,.12); }
.service .depth { display: inline-block; margin-top: 14px; font-size: 13px; color: var(--muted); }
.service .depth b { font-weight: 500; color: var(--ink); }
.service.primary .depth, .service.primary .depth b { color: var(--honey); }

/* transparency: timeline */
.timeline { margin-top: 28px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 26px; }
.tl-head { font-family: "JetBrains Mono", monospace; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.tl-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.tl { position: relative; padding-top: 14px; }
.tl::before { content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 3px; border-radius: 2px; background: var(--accent-soft); }
.tl:first-child::before { background: var(--honey); }
.tl-when { font-family: "JetBrains Mono", monospace; font-size: 15px; font-weight: 500; color: var(--ink); }
.tl-what { font-size: 14px; color: var(--muted); margin-top: 4px; line-height: 1.45; }

/* terms: один человек на практике */
.terms { margin-top: 40px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.term { padding: 22px 24px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.term:nth-child(3n) { border-right: 0; }
.term:nth-last-child(-n+3) { border-bottom: 0; }
.t-k { font-weight: 700; font-size: 17px; margin-bottom: 8px; }
.t-v { font-size: 15px; color: var(--muted); line-height: 1.55; }

/* cases */
.cases { margin-top: 40px; display: grid; gap: 16px; }
.case { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 28px; display: grid; grid-template-columns: 1.15fr 2fr 1.1fr; gap: 28px; align-items: start; }
.case-head .tag { display: block; font-size: 18px; font-weight: 700; line-height: 1.3; letter-spacing: -0.01em; }
.case-head .scope { display: block; margin-top: 8px; font-size: 14px; color: var(--muted); line-height: 1.45; }
.case-body { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.case-body .k { font-family: "JetBrains Mono", monospace; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); margin-bottom: 6px; }
.case-body p { margin: 0; font-size: 15.5px; line-height: 1.55; }
.case-result { border-left: 1px solid var(--line); padding-left: 24px; }
.case-result .n { font-family: "JetBrains Mono", monospace; font-size: 34px; font-weight: 500; color: var(--accent); line-height: 1; letter-spacing: -0.02em; }
.case-result .l { font-size: 15px; margin-top: 8px; line-height: 1.45; }
.case-result .also { font-size: 13.5px; color: var(--muted); margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--line); line-height: 1.45; }
.cases-note { margin-top: 18px; font-size: 14px; color: var(--muted); max-width: 70ch; }

/* about */
.about { display: grid; grid-template-columns: 1fr 1.6fr; gap: 48px; margin-top: 40px; align-items: start; }
.about-photo img { width: 100%; max-width: 380px; aspect-ratio: 1; object-fit: cover; object-position: 60% 15%; border-radius: 22px; background: var(--paper-2); }
.about-text p { font-size: 17px; }
.about-text .quote { font-size: 21px; line-height: 1.4; font-weight: 500; margin-bottom: 18px; }
.about-text .quote::before { content: ""; display: block; width: 44px; height: 5px; background: var(--honey); border-radius: 3px; margin-bottom: 18px; }
.about-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 28px; }
.about-col h3 { font-size: 15px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-family: "JetBrains Mono", monospace; font-weight: 500; }
.about-col ul { margin: 10px 0 0; padding: 0; list-style: none; }
.about-col li { padding: 7px 0; border-top: 1px solid var(--line); font-size: 15px; }
.about-col a { color: var(--accent); text-decoration-color: color-mix(in srgb, var(--accent) 40%, transparent); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.chip { font-family: "JetBrains Mono", monospace; font-size: 13px; background: var(--paper-2); border: 1px solid var(--line); padding: 5px 10px; border-radius: 999px; }

/* tools */
.tools { margin-top: 40px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.tool { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.tool h3 { font-size: 16px; }
.tool p { color: var(--muted); font-size: 14.5px; margin: 8px 0 0; }

/* cta band */
.cta-band { margin-top: 112px; background: var(--ink); color: var(--paper); padding: 80px 0; }
.cta-band h2 { color: var(--paper); }
.cta-band p { color: color-mix(in srgb, var(--paper) 70%, transparent); max-width: 52ch; margin: 14px 0 28px; font-size: 18px; }
.cta-band .btn-primary { background: var(--honey); color: var(--ink); }
.cta-band .btn-primary:hover { background: #dca93b; }
.cta-band .cta-note { color: color-mix(in srgb, var(--paper) 60%, transparent); }

/* footer */
.site-footer { padding: 26px 0; border-top: 1px solid var(--line); }
.site-footer .wrap { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; font-size: 14px; color: var(--muted); }
.site-footer a { color: var(--muted); }

/* subpage bits */
.back { display: inline-block; font-size: 14px; color: var(--muted); text-decoration: none; margin-bottom: 26px; }
.back:hover { color: var(--ink); }
.faq { margin-top: 40px; display: grid; gap: 14px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; }
.faq summary { cursor: pointer; font-weight: 500; font-size: 17px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-family: "JetBrains Mono", monospace; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 12px 0 0; color: var(--muted); font-size: 15.5px; max-width: 70ch; }
.plans { margin-top: 40px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.plan { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.plan.hot { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.plan .who { color: var(--muted); font-size: 14.5px; margin: 8px 0 14px; min-height: 44px; }
.plan .price { font-family: "JetBrains Mono", monospace; font-size: 15px; color: var(--accent); margin-bottom: 10px; }
.plan ul { margin: 0; padding: 0; list-style: none; }
.plan li { padding: 8px 0; border-top: 1px solid var(--line); font-size: 15px; }

/* ---- responsive ---- */
@media (max-width: 1199px) {
  .case { grid-template-columns: 1fr; gap: 18px; }
  .case-result { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 16px; }
  .services { grid-template-columns: repeat(2, 1fr); }
  .terms { grid-template-columns: repeat(2, 1fr); }
  .term:nth-child(3n) { border-right: 1px solid var(--line); }
  .term:nth-child(2n) { border-right: 0; }
  .term:nth-last-child(-n+3) { border-bottom: 1px solid var(--line); }
  .term:nth-last-child(-n+2) { border-bottom: 0; }
  .tl-row { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 960px) {
  .site-header .wrap { flex-wrap: wrap; row-gap: 0; }
  .site-nav { order: 3; flex-basis: 100%; flex-wrap: nowrap; overflow-x: auto; gap: 18px; padding: 0 0 12px; margin-top: -6px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .site-nav::-webkit-scrollbar { display: none; }
  .site-nav a { white-space: nowrap; font-size: 14px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 36px; }
  .hero-photo { max-width: 420px; }
  .hero-card { left: 12px; }
  .facts .wrap { grid-template-columns: repeat(2, 1fr); }
  .grid-3, .steps { grid-template-columns: 1fr; }
  .case { padding: 22px; }
  .step { border-right: 0; border-bottom: 1px solid var(--line); }
  .step:last-child { border-bottom: 0; }
  .service.primary { grid-template-columns: 1fr; gap: 18px; }
  .about { grid-template-columns: 1fr; gap: 28px; }
  .tools { grid-template-columns: 1fr 1fr; }
  .plans { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .hero { padding-top: 40px; }
  .hero h1 { font-size: 32px; }
  .hero .lede { font-size: 17px; }
  .block { padding-top: 72px; }
  .hero-photo img { aspect-ratio: 1 / 1; }
  .services, .grid-2, .about-cols, .tools, .case-body, .terms, .tl-row { grid-template-columns: 1fr; }
  .term { border-right: 0 !important; border-bottom: 1px solid var(--line) !important; }
  .term:last-child { border-bottom: 0 !important; }
  .facts .wrap { grid-template-columns: 1fr 1fr; }
  .cta-band { margin-top: 72px; padding: 56px 0; }
  .btn { width: 100%; }
}
