/* ============================================================
   gomanov.pro — консалтинг
   Часть 1: общая дизайн-система (site)
   Часть 2: страничные стили «разворота»
   Тёплая редакционная: кремовый / уголь / терракота
   Newsreader (serif) · Hanken Grotesk (sans) · Space Mono (mono)
   Светлая по умолчанию, тёмная — по системе или вручную [data-theme]
   ============================================================ */

/* ===================== ДИЗАЙН-СИСТЕМА ===================== */

:root {
  /* warm light palette */
  --paper:      #f3ecdd;
  --paper-2:    #ece3d0;
  --paper-3:    #e4d8bf;
  --card:       #f8f3e8;
  --ink:        #2b2620;
  --ink-2:      #4a4338;
  --ink-soft:   #756b5b;
  --line:       rgba(43, 38, 32, 0.16);
  --line-2:     rgba(43, 38, 32, 0.28);
  --accent:     #b65a3c;
  --accent-2:   #9a4528;
  --accent-tint:#efd9cb;
  --on-accent:  #fbf6ee;

  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans:  "Hanken Grotesk", system-ui, -apple-system, sans-serif;
  --mono:  "Space Mono", ui-monospace, "SFMono-Regular", monospace;

  --maxw: 1140px;
  --gutter: clamp(20px, 5vw, 64px);
  --radius: 14px;
  --shadow: 0 1px 2px rgba(43,38,32,.05), 0 12px 30px -18px rgba(43,38,32,.30);
  --shadow-lg: 0 30px 60px -32px rgba(43,38,32,.45);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper:      #1f1b16;
    --paper-2:    #272219;
    --paper-3:    #2f2920;
    --card:       #292319;
    --ink:        #efe6d6;
    --ink-2:      #d2c7b3;
    --ink-soft:   #a4977f;
    --line:       rgba(239, 230, 214, 0.14);
    --line-2:     rgba(239, 230, 214, 0.26);
    --accent:     #e0825a;
    --accent-2:   #eca079;
    --accent-tint:#3a2a20;
    --on-accent:  #20160f;
    --shadow:     0 1px 2px rgba(0,0,0,.4), 0 12px 30px -18px rgba(0,0,0,.6);
    --shadow-lg:  0 30px 60px -32px rgba(0,0,0,.7);
  }
}
[data-theme="dark"] {
  --paper:      #1f1b16;
  --paper-2:    #272219;
  --paper-3:    #2f2920;
  --card:       #292319;
  --ink:        #efe6d6;
  --ink-2:      #d2c7b3;
  --ink-soft:   #a4977f;
  --line:       rgba(239, 230, 214, 0.14);
  --line-2:     rgba(239, 230, 214, 0.26);
  --accent:     #e0825a;
  --accent-2:   #eca079;
  --accent-tint:#3a2a20;
  --on-accent:  #20160f;
  --shadow:     0 1px 2px rgba(0,0,0,.4), 0 12px 30px -18px rgba(0,0,0,.6);
  --shadow-lg:  0 30px 60px -32px rgba(0,0,0,.7);
}

/* ---------- reset ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--sans); font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
h1,h2,h3,h4,p,ul,ol,figure,blockquote { margin: 0; }
ul,ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img,svg { display: block; max-width: 100%; }
::selection { background: var(--accent); color: var(--on-accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 3px; }

/* ---------- layout ---------- */
.wrap { width: min(var(--maxw), 100%); margin: 0 auto; padding-inline: var(--gutter); }
.wrap-narrow { width: min(660px, 100%); margin: 0 auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(56px, 9vw, 116px); }
.rule { height: 1px; background: var(--line); border: 0; }
.rule-2 { height: 1px; background: var(--line-2); border: 0; }

/* ---------- type ---------- */
.serif { font-family: var(--serif); }
.mono  { font-family: var(--mono); }

.display {
  font-family: var(--serif); font-weight: 500; line-height: 1.0;
  letter-spacing: -0.02em; font-size: clamp(44px, 7.5vw, 92px);
}
.display em { font-style: italic; color: var(--accent); }
h1.h-xl { font-family: var(--serif); font-weight: 500; line-height: 1.02; letter-spacing: -0.02em; font-size: clamp(38px, 6vw, 72px); }
h2.h-lg { font-family: var(--serif); font-weight: 500; line-height: 1.06; letter-spacing: -0.015em; font-size: clamp(30px, 4.2vw, 48px); }
h3.h-md { font-family: var(--serif); font-weight: 500; line-height: 1.12; letter-spacing: -0.01em; font-size: clamp(22px, 2.6vw, 28px); }
.lead { font-size: clamp(18px, 2vw, 21px); line-height: 1.55; color: var(--ink-2); }
.muted { color: var(--ink-soft); }
.measure { max-width: 56ch; }

.eyebrow {
  font-family: var(--mono); font-size: 12px; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent);
}
.kicker {
  font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--ink-soft);
}

/* ---------- links & buttons ---------- */
.link {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 600;
  border-bottom: 1.5px solid var(--accent); padding-bottom: 2px;
  transition: gap .18s, color .18s;
}
.link:hover { gap: 12px; color: var(--accent); }
.link .arr { transition: transform .18s; }
.link:hover .arr { transform: translateX(2px); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--sans); font-weight: 600; font-size: 15px; line-height: 1;
  padding: 14px 22px; border-radius: 999px; border: 1.5px solid transparent;
  cursor: pointer; transition: transform .06s, background .18s, border-color .18s, color .18s;
}
.btn:active { transform: translateY(1px); }
.btn-solid { background: var(--ink); color: var(--paper); }
.btn-solid:hover { background: var(--accent); }
.btn-accent { background: var(--accent); color: var(--on-accent); }
.btn-accent:hover { background: var(--accent-2); }
.btn-ghost { border-color: var(--line-2); color: var(--ink); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn[disabled] { opacity: .6; cursor: progress; }

/* ---------- tags ---------- */
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  font-family: var(--mono); font-size: 12px; color: var(--ink-2);
  border: 1px solid var(--line-2); border-radius: 999px; padding: 6px 12px;
  background: transparent;
}

/* ---------- top bar (shared) ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: saturate(150%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  width: min(var(--maxw), 100%); margin: 0 auto; padding: 14px var(--gutter);
  display: flex; align-items: center; gap: 20px;
}
.brand { display: flex; flex-direction: column; line-height: 1.08; }
.brand b { font-family: var(--serif); font-size: 19px; font-weight: 600; letter-spacing: -0.01em; }
.brand span { font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); }
.topnav { margin-left: auto; display: flex; align-items: center; gap: 26px; }
.topnav a { font-size: 14.5px; font-weight: 500; color: var(--ink-2); transition: color .15s; }
.topnav a:hover { color: var(--accent); }
.topnav a.cta { border-bottom: 1.5px solid var(--accent); padding-bottom: 2px; color: var(--ink); font-weight: 600; }

/* theme toggle */
.theme-btn {
  width: 38px; height: 38px; border-radius: 999px; border: 1px solid var(--line-2);
  background: transparent; color: var(--ink-2); cursor: pointer;
  display: grid; place-items: center; transition: border-color .15s, color .15s;
  flex-shrink: 0;
}
.theme-btn:hover { border-color: var(--accent); color: var(--accent); }
.theme-btn svg { width: 18px; height: 18px; }
.theme-btn .ico-dark { display: none; }
[data-theme="dark"] .theme-btn .ico-dark { display: block; }
[data-theme="dark"] .theme-btn .ico-light { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-btn .ico-dark { display: block; }
  :root:not([data-theme="light"]) .theme-btn .ico-light { display: none; }
}

/* mobile nav */
.nav-toggle { display: none; }
@media (max-width: 760px) {
  .topnav { position: fixed; inset: 64px 12px auto 12px; flex-direction: column; align-items: stretch;
    gap: 4px; background: var(--card); border: 1px solid var(--line-2); border-radius: 16px;
    padding: 12px; box-shadow: var(--shadow-lg); display: none; }
  .topnav.open { display: flex; }
  .topnav a { padding: 12px 14px; border-radius: 10px; }
  .topnav a.cta { border-bottom: none; background: var(--ink); color: var(--paper); text-align: center; }
  .nav-toggle { display: grid; place-items: center; margin-left: auto; width: 40px; height: 40px;
    border: 1px solid var(--line-2); border-radius: 10px; background: transparent; cursor: pointer; gap: 4px; }
  .nav-toggle i { display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; }
  .topbar .theme-btn { order: 3; }
}

/* ---------- footer (shared) ---------- */
.foot { background: var(--paper-2); border-top: 1px solid var(--line); padding-block: 48px; }
.foot-inner { display: flex; justify-content: space-between; align-items: flex-start; gap: 28px; flex-wrap: wrap; }
.foot b { font-family: var(--serif); font-size: 20px; font-weight: 600; }
.foot .kicker { display: block; margin-top: 6px; }
.foot-links { display: flex; gap: 24px; flex-wrap: wrap; }
.foot-links a { font-size: 14.5px; color: var(--ink-2); transition: color .15s; }
.foot-links a:hover { color: var(--accent); }

/* cross-site band */
.cross {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  background: var(--card); border: 1px solid var(--line);
  border-left: 3px solid var(--accent); border-radius: var(--radius);
  padding: clamp(22px, 3vw, 32px);
}
.cross .kicker { margin-bottom: 8px; display: block; }
.cross h3 { font-family: var(--serif); font-weight: 500; font-size: clamp(22px, 3vw, 30px); letter-spacing: -0.01em; }

/* ===================== СТРАНИЦА КОНСАЛТИНГА · «Разворот» ===================== */

/* ---------- HERO ---------- */
.c-hero { padding-top: clamp(36px, 6vw, 72px); padding-bottom: clamp(48px, 7vw, 96px); }
.c-hero-grid { display: grid; grid-template-columns: 1.55fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: end; }
.c-hero h1 { margin: 22px 0 0; }
.c-hero .lead { margin: 28px 0 30px; max-width: 30em; }
.c-hero-actions { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.c-hero-aside { display: flex; flex-direction: column; gap: 14px; }
.c-portrait { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); background: var(--paper-3); }
.c-portrait-cap { display: flex; justify-content: space-between; gap: 10px; }
.c-creds { display: grid; gap: 0; border-top: 1px solid var(--line); }
.c-creds div { display: flex; justify-content: space-between; gap: 14px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.c-creds .k { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); }
.c-creds .v { font-weight: 600; text-align: right; }

/* ---------- section heading ---------- */
.sec-head { margin-bottom: clamp(28px, 4vw, 48px); }
.sec-head .eyebrow { display: block; margin-bottom: 14px; }
.sec-head h2 { max-width: 24ch; }

/* ---------- numbered editorial list ---------- */
.numlist { border-top: 1px solid var(--line-2); }
.numrow { display: grid; grid-template-columns: 96px 1fr; gap: clamp(16px, 3vw, 40px); padding: clamp(22px, 3vw, 32px) 0; border-bottom: 1px solid var(--line); }
.numrow .num { font-family: var(--serif); font-weight: 500; font-size: clamp(34px, 4vw, 46px); color: var(--accent); line-height: 1; }
.numrow h3 { margin-bottom: 8px; }
.numrow p { color: var(--ink-2); max-width: 60ch; }

/* ---------- signals (two-column ruled) ---------- */
.signals { columns: 2; column-gap: clamp(28px, 5vw, 64px); }
.signal { break-inside: avoid; padding: 18px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: auto 1fr; gap: 14px; }
.signal::before { content: ""; width: 9px; height: 9px; margin-top: 9px; border-radius: 2px; background: var(--accent); transform: rotate(45deg); }
.signal h3 { font-family: var(--serif); font-weight: 500; font-size: 19px; line-height: 1.2; margin-bottom: 5px; }
.signal p { font-size: 14.5px; color: var(--ink-soft); }

/* ---------- metrics band ---------- */
.metrics { background: var(--paper-2); border-block: 1px solid var(--line); }
.metrics-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 56px); }
.metric { position: relative; }
.metric b { font-family: var(--serif); font-weight: 500; font-size: clamp(48px, 7vw, 84px); line-height: 0.9; letter-spacing: -0.02em; display: block; }
.metric span { display: block; margin-top: 10px; color: var(--ink-2); font-size: 15px; max-width: 22ch; }
.metric + .metric { border-left: 1px solid var(--line); padding-left: clamp(24px, 4vw, 56px); }
@media (max-width: 760px) { .metric + .metric { border-left: 0; padding-left: 0; } }

/* ---------- offers ---------- */
.offers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.offer { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; position: relative; transition: border-color .18s, transform .18s, box-shadow .18s; }
.offer:hover { border-color: var(--line-2); transform: translateY(-3px); box-shadow: var(--shadow); }
.offer.feat { border-color: var(--accent); box-shadow: 0 18px 40px -22px color-mix(in srgb, var(--accent) 60%, transparent); }
.offer .badge { position: absolute; top: -11px; left: 24px; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; background: var(--accent); color: var(--on-accent); padding: 5px 11px; border-radius: 999px; }
.offer .otag { font-family: var(--mono); font-size: 11.5px; color: var(--ink-soft); letter-spacing: 0.04em; }
.offer h3 { margin: 12px 0 12px; }
.offer .odesc { color: var(--ink-2); font-size: 15px; margin-bottom: 16px; }
.offer ul { display: grid; gap: 9px; margin-bottom: 24px; }
.offer li { position: relative; padding-left: 20px; font-size: 14.5px; color: var(--ink-soft); }
.offer li::before { content: ""; position: absolute; left: 0; top: 9px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.offer .ofoot { margin-top: auto; }

/* ---------- process timeline ---------- */
.steps { display: grid; gap: 0; max-width: 860px; }
.step { display: grid; grid-template-columns: 64px 1fr; gap: clamp(16px, 3vw, 32px); padding: 26px 0; border-top: 1px solid var(--line); align-items: start; }
.step:first-child { border-top: 1px solid var(--line-2); }
.step .sn { font-family: var(--mono); font-size: 13px; color: var(--accent); padding-top: 6px; }
.step h3 { margin-bottom: 6px; }
.step p { color: var(--ink-2); max-width: 58ch; }

/* ---------- deliverables ---------- */
.delivs { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.deliv { background: var(--paper); padding: clamp(22px, 3vw, 32px); }
.deliv h3 { margin-bottom: 8px; }
.deliv p { color: var(--ink-soft); font-size: 15px; }

/* ---------- about ---------- */
.about { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.about p { color: var(--ink-2); margin-bottom: 16px; }
.about .about-actions { display: flex; gap: 26px; flex-wrap: wrap; margin-top: 10px; }
.about-side { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.about-side h3 { font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 16px; }

/* ---------- faq ---------- */
.faq { max-width: 820px; }
.qa { border-bottom: 1px solid var(--line); }
.qa summary { cursor: pointer; list-style: none; display: flex; gap: 16px; align-items: baseline; justify-content: space-between; padding: 22px 0; font-family: var(--serif); font-size: clamp(18px, 2.2vw, 22px); font-weight: 500; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary .pm { font-family: var(--mono); color: var(--accent); flex-shrink: 0; transition: transform .2s; }
.qa[open] summary .pm { transform: rotate(45deg); }
.qa .qa-body { padding: 0 0 24px; color: var(--ink-2); max-width: 64ch; }

/* ---------- contact ---------- */
.contact { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(24px, 4vw, 48px); align-items: start; }
.contact-card { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 3vw, 34px); }
.contact-list { display: grid; gap: 0; margin-bottom: 24px; }
.contact-list li { display: grid; grid-template-columns: 96px 1fr; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.contact-list li:first-child { border-top: 1px solid var(--line); }
.contact-list .k { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); }
.contact-list a { border-bottom: 1.5px solid var(--accent); padding-bottom: 1px; font-weight: 600; }

.form-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 3vw, 34px); }
.form { display: grid; gap: 16px; }
.frow { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.field .req { color: var(--accent); }
.field input, .field select, .field textarea {
  font-family: inherit; font-size: 15px; color: var(--ink);
  background: var(--paper); border: 1px solid var(--line-2); border-radius: 10px;
  padding: 12px 14px; width: 100%; transition: border-color .15s, box-shadow .15s;
}
.field input::placeholder, .field textarea::placeholder { color: var(--ink-soft); opacity: .8; }
.field input:focus, .field select: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 textarea { resize: vertical; min-height: 116px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink-soft); cursor: pointer; }
.check input { width: auto; margin-top: 3px; flex-shrink: 0; accent-color: var(--accent); }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: 13px; color: var(--ink-soft); }
.form-note.ok { color: var(--ink); font-weight: 600; }
.form-note.err { color: var(--accent); font-weight: 600; }

/* ---------- responsive ---------- */
@media (max-width: 920px) {
  .c-hero-grid { grid-template-columns: 1fr; }
  .c-hero-aside { max-width: 420px; }
  .offers { grid-template-columns: 1fr; }
  .metrics-grid { grid-template-columns: 1fr; gap: 28px; }
  .about { grid-template-columns: 1fr; }
  .contact { grid-template-columns: 1fr; }
  .delivs { grid-template-columns: 1fr; }
  .signals { columns: 1; }
  .sec-head h2 { max-width: none; }
}
@media (max-width: 520px) {
  .frow { grid-template-columns: 1fr; }
  .numrow { grid-template-columns: 56px 1fr; }
}
