/* moreseo.ru — design tokens
   Reference direction: editorial data-page (Ahrefs/Linear-style technical credibility)
   crossed with a warm print aesthetic — paper ground, ink type, one deep-pine accent,
   monospace reserved strictly for numbers/stats. No purple-blue gradients, no Inter default,
   no centered-everything, no rounded-lg-everywhere.
*/

:root {
  --paper: #f6f3ec;
  --paper-raised: #ffffff;
  --ink: #171b17;
  --muted: #6b6558;
  --line: #dcd5c4;
  --accent: #2f5d50;      /* deep pine — primary */
  --accent-ink: #f6f3ec;  /* text on accent */
  --warm: #c4622d;        /* burnt orange — sparse, CTA/highlight only */
  --warm-ink: #fff8f0;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #141713;
    --paper-raised: #1b1f1a;
    --ink: #ece7db;
    --muted: #96907f;
    --line: #33362d;
    --accent: #6fae9b;
    --accent-ink: #0f1512;
    --warm: #e08a52;
    --warm-ink: #1c1108;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.mono {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-feature-settings: "tnum";
}

h1, h2, h3 { font-family: "Fraunces", Georgia, serif; font-weight: 600; margin: 0; }
p { margin: 0 0 1em; color: var(--ink); }
a { color: inherit; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 28px; }

/* ---------- header ---------- */
.site-header {
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; }
.brand {
  font-family: "Fraunces", serif;
  font-weight: 600;
  font-size: 20px;
  letter-spacing: -0.01em;
  text-decoration: none;
}
.brand .dot { color: var(--accent); }
.site-nav { display: flex; gap: 28px; }
.site-nav a {
  text-decoration: none;
  font-size: 15px;
  color: var(--muted);
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: color .15s, border-color .15s;
}
.site-nav a:hover { color: var(--ink); border-color: var(--accent); }

/* ---------- hero ---------- */
.hero {
  padding: 84px 0 64px;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 56px;
  align-items: end;
  border-bottom: 1px solid var(--line);
}
/* byline: avatar + name, sits above the kicker */
.byline { display: flex; align-items: center; gap: 12px; margin-bottom: 26px; }
.avatar-slot {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--paper-raised);
  border: 1.5px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  font-family: "Fraunces", serif; font-weight: 600; font-size: 19px;
  color: var(--accent);
  flex: none;
}
.byline .who { font-size: 14.5px; color: var(--muted); }
.byline .who strong { color: var(--ink); font-weight: 600; }

.hero .kicker {
  font-family: "IBM Plex Mono", monospace;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--accent);
  margin-bottom: 18px;
  display: block;
}
.hero h1 {
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.06;
  letter-spacing: -0.01em;
  max-width: 14ch;
}
.hero .lede {
  margin-top: 22px;
  font-size: 19px;
  color: var(--muted);
  max-width: 46ch;
}
.hero .cta-row { margin-top: 32px; display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.cta-secondary {
  font-family: "IBM Plex Mono", monospace;
  font-size: 14px;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
}
.cta-secondary:hover { color: var(--accent); border-color: var(--accent); }

.stat-rail { display: flex; flex-direction: column; gap: 18px; padding-bottom: 4px; }
.stat-rail .stat { border-top: 1px solid var(--line); padding-top: 10px; }
.stat-rail .stat .n {
  font-family: "IBM Plex Mono", monospace;
  font-size: 28px;
  color: var(--accent);
  display: block;
}
.stat-rail .stat .l { font-size: 13.5px; color: var(--muted); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15.5px;
  font-weight: 600;
  padding: 13px 22px;
  border-radius: 3px;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform .12s ease, background .15s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--warm); color: var(--warm-ink); }
.btn-primary:hover { background: color-mix(in srgb, var(--warm) 88%, black); }
.btn-ghost { border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- sections ---------- */
section.block { padding: 68px 0; border-bottom: 1px solid var(--line); }
section.block:last-of-type { border-bottom: none; }
.block .eyebrow {
  font-family: "IBM Plex Mono", monospace;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--muted);
  margin-bottom: 12px;
}
.block h2 { font-size: clamp(26px, 3vw, 34px); max-width: 22ch; margin-bottom: 8px; }
.block .lead { color: var(--muted); font-size: 17px; max-width: 58ch; margin-top: 10px; }

/* offer cards (hub) */
.offer-list { margin-top: 44px; display: flex; flex-direction: column; }
.offer-row {
  display: grid;
  grid-template-columns: 40px 1.4fr 1.6fr auto;
  gap: 24px;
  align-items: center;
  padding: 26px 0;
  border-top: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
}
.offer-row:last-child { border-bottom: 1px solid var(--line); }
.offer-row .idx { font-family: "IBM Plex Mono", monospace; color: var(--muted); font-size: 14px; }
.offer-row h3 { font-size: 21px; }
.offer-row p { margin: 0; color: var(--muted); font-size: 15.5px; }
.offer-row .go { font-family: "IBM Plex Mono", monospace; font-size: 14px; color: var(--accent); white-space: nowrap; }
.offer-row.soon { opacity: .55; cursor: default; }
.offer-row.soon .go { color: var(--muted); }
.offer-row:not(.soon):hover { background: var(--paper-raised); }

/* approach */
.approach-grid { margin-top: 40px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.approach-grid .item .num { font-family: "IBM Plex Mono", monospace; color: var(--accent); font-size: 14px; }
.approach-grid .item h3 { font-size: 18px; margin: 10px 0 8px; }
.approach-grid .item p { color: var(--muted); font-size: 15px; }

/* case studies (anonymised) */
.case-grid { margin-top: 44px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--line); }
.case-card { padding: 30px 26px; border-left: 1px solid var(--line); display: flex; flex-direction: column; }
.case-card:first-child { border-left: none; }
.case-card .tag {
  font-family: "IBM Plex Mono", monospace; font-size: 12.5px;
  text-transform: uppercase; letter-spacing: .08em;
  color: var(--accent); margin-bottom: 16px;
}
.case-card .row { margin-bottom: 14px; }
.case-card .row .k { font-size: 12.5px; color: var(--muted); margin-bottom: 3px; }
.case-card .row .v { font-size: 14.5px; }
.case-card .result {
  margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line);
}
.case-card .result .n { font-family: "IBM Plex Mono", monospace; font-size: 26px; color: var(--accent); display: block; }
.case-card .result .l { font-size: 13px; color: var(--muted); }

/* pricing tiers */
.tiers { margin-top: 44px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--line); }
.tier { padding: 32px 26px; border-left: 1px solid var(--line); }
.tier:first-child { border-left: none; }
.tier.is-featured { background: var(--paper-raised); }
.tier .tier-name { font-family: "IBM Plex Mono", monospace; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); }
.tier .tier-for { color: var(--muted); font-size: 14.5px; margin-top: 8px; }
.tier .tier-price { font-family: "Fraunces", serif; font-size: 22px; margin-top: 18px; }
.tier ul { list-style: none; margin: 20px 0 0; padding: 0; }
.tier li { font-size: 14.5px; color: var(--muted); padding: 9px 0; border-top: 1px solid var(--line); }
.tier li:first-child { border-top: none; }

/* process */
.process { margin-top: 44px; }
.process .step { display: grid; grid-template-columns: 64px 1fr; gap: 20px; padding: 22px 0; border-top: 1px solid var(--line); }
.process .step:last-child { border-bottom: 1px solid var(--line); }
.process .step .num { font-family: "IBM Plex Mono", monospace; font-size: 22px; color: var(--accent); }
.process .step h3 { font-size: 18px; margin-bottom: 6px; }
.process .step p { color: var(--muted); font-size: 15px; margin: 0; }

/* faq */
.faq-item { padding: 22px 0; border-top: 1px solid var(--line); }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-item h3 { font-size: 17px; margin-bottom: 8px; }
.faq-item p { color: var(--muted); font-size: 15px; margin: 0; }

/* cta band */
.cta-band {
  background: var(--ink);
  color: var(--paper);
  padding: 64px 0;
  text-align: left;
}
.cta-band h2 { color: var(--paper); font-size: clamp(24px, 3vw, 32px); max-width: 20ch; }
.cta-band p { color: color-mix(in srgb, var(--paper) 70%, transparent); margin-top: 10px; max-width: 46ch; }
.cta-band .cta-row { margin-top: 26px; }
.cta-band .btn-ghost { border-color: color-mix(in srgb, var(--paper) 30%, transparent); color: var(--paper); }
.cta-band .btn-ghost:hover { border-color: var(--warm); color: var(--warm); }

/* footer */
.site-footer { padding: 34px 0; }
.site-footer .wrap { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.site-footer, .site-footer a { color: var(--muted); font-size: 14px; text-decoration: none; }
.site-footer a:hover { color: var(--accent); }

/* back link on subpages */
.back-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: "IBM Plex Mono", monospace; font-size: 13.5px;
  color: var(--muted); text-decoration: none; margin-bottom: 26px;
}
.back-link:hover { color: var(--accent); }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
  .stat-rail { flex-direction: row; flex-wrap: wrap; }
  .stat-rail .stat { flex: 1 1 40%; }
  .approach-grid { grid-template-columns: 1fr; }
  .tiers { grid-template-columns: 1fr; }
  .tier { border-left: none; border-top: 1px solid var(--line); }
  .tier:first-child { border-top: none; }
  .case-grid { grid-template-columns: 1fr; }
  .case-card { border-left: none; border-top: 1px solid var(--line); }
  .case-card:first-child { border-top: none; }
  .offer-row {
    grid-template-columns: 1fr;
    grid-template-areas: "idx" "title" "desc" "go";
    row-gap: 8px;
  }
  .offer-row .idx { grid-area: idx; }
  .offer-row h3 { grid-area: title; }
  .offer-row p { grid-area: desc; }
  .offer-row .go { grid-area: go; }
}
