/* ============================================================
   Поток — дизайн-система (по hi-fi хэндоффу valmax-стиль)
   ============================================================ */

:root {
  --bg: #ffffff;
  --surface: #f4f5ef;
  --canvas: #ecede7;
  --ink: #13140f;
  --ink-soft: #3a3c33;
  --muted: #76786c;
  --line: #e6e7e0;
  --accent: #c4f23a;
  --accent-hover: #b6e62b;
  --accent-ink: #13140f;
  --dark: #13140f;
  --dark-2: #1c1e16;
  --dark-line: #2c2f25;
  --on-dark: #a9ac9f;
  --on-dark-muted: #9ea193;

  --r-sm: 10px;
  --r-md: 13px;
  --r-lg: 16px;
  --r-xl: 22px;
  --r-2xl: 28px;
  --r-pill: 100px;

  --container: 1280px;
  --pad: 40px;

  --shadow-card: 0 34px 60px -28px rgba(19, 20, 15, 0.35);
  --shadow-badge: 0 8px 20px -6px rgba(0, 0, 0, 0.3);

  --ease: 180ms ease;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: "Manrope", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-weight: 500;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

html { overflow-x: clip; }

/* ---------- Hero load-in animation ---------- */
@keyframes potokHeroIn { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
[data-anim] { animation: potokHeroIn .7s cubic-bezier(.22,.61,.36,1) both; }
[data-anim].d1 { animation-delay: .08s; }
[data-anim].d2 { animation-delay: .16s; }
[data-anim].d3 { animation-delay: .24s; }
[data-anim].d4 { animation-delay: .32s; }
@media (prefers-reduced-motion: reduce) { [data-anim] { animation: none !important; } }

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }
::selection { background: var(--accent); color: var(--ink); }

/* ---------- Layout ---------- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--pad); }
.section { padding: 72px 0 0; }
.section--soft { background: var(--surface); padding-bottom: 72px; }
.section--dark { background: var(--dark); color: #fff; padding: 84px 0; }
.section + .section--dark { margin-top: 72px; }

.center { text-align: center; }
.muted { color: var(--muted); }
.flow > * + * { margin-top: 16px; }

/* ---------- Typography ---------- */
h1, .h1 {
  font-size: clamp(40px, 9vw, 78px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 800;
}
h2, .h2 {
  font-size: clamp(32px, 6vw, 50px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 800;
}
.section--dark h2 { font-size: clamp(30px, 5.5vw, 48px); line-height: 1.06; }
h3 { font-size: 22px; line-height: 1.15; letter-spacing: -0.01em; font-weight: 800; }
h4 { font-size: 15px; font-weight: 700; }
p { font-size: 18px; line-height: 1.55; }

.lead { font-size: clamp(18px, 2.4vw, 21px); line-height: 1.5; color: var(--ink-soft); font-weight: 500; }
.section--dark .lead { color: var(--on-dark); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--muted); margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 22px; height: 1.5px; background: var(--accent); }
.section--dark .eyebrow { color: var(--on-dark-muted); }

.section__head { max-width: 720px; margin-bottom: 44px; }
.section__head .lead { margin-top: 18px; }
.section__head--row {
  max-width: none; display: flex; align-items: flex-end;
  justify-content: space-between; gap: 32px;
}
.section__head--row h2 { max-width: 680px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-weight: 700; font-size: 17px; line-height: 1;
  padding: 17px 28px; border-radius: var(--r-md);
  border: 1px solid transparent; white-space: nowrap;
  transition: background var(--ease), border-color var(--ease), color var(--ease);
}
.btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.btn--primary { background: var(--accent); color: var(--accent-ink); }
.btn--primary:hover { background: var(--accent-hover); }
.btn--dark { background: var(--ink); color: #fff; padding: 13px 22px; font-size: 15px; }
.btn--dark:hover { background: #2a2c22; }
.btn--dark svg path { stroke: var(--accent); }
.btn--outline { background: #fff; color: var(--ink); border-color: var(--line); }
.btn--outline:hover { border-color: var(--ink); }
.btn--sm { padding: 11px 18px; font-size: 14.5px; }
.btn--block { width: 100%; }
.btn[disabled] { background: #ebece5; color: #a6a89c; cursor: not-allowed; }
.btn[disabled] svg path { stroke: #a6a89c; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 15.5px; font-weight: 700; color: var(--ink);
  border-bottom: 2px solid var(--accent); padding-bottom: 4px; white-space: nowrap;
  transition: gap var(--ease);
}
.link-arrow:hover { gap: 13px; }
.link-arrow svg { width: 15px; height: 15px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  height: 76px; display: flex; align-items: center;
  justify-content: space-between; gap: 32px;
}
.logo { display: inline-flex; align-items: center; gap: 11px; }
.logo__mark {
  width: 34px; height: 34px; border-radius: 9px; background: var(--accent);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.logo__text { font-size: 21px; font-weight: 800; letter-spacing: -0.02em; }

.nav { display: flex; align-items: center; gap: 30px; }
.nav a, .nav .dropbtn {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 15.5px; font-weight: 600; color: var(--ink-soft);
  background: none; border: none; transition: color var(--ease);
}
.nav a:hover, .nav .dropbtn:hover { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); }

.has-drop { position: relative; }
.dropmenu {
  position: absolute; top: calc(100% + 14px); left: -16px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 10px; min-width: 280px; list-style: none;
  box-shadow: var(--shadow-card); opacity: 0; visibility: hidden;
  transform: translateY(-6px); transition: var(--ease);
}
.has-drop:hover .dropmenu, .has-drop:focus-within .dropmenu {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.dropmenu a {
  display: flex; flex-direction: column; gap: 2px; align-items: flex-start;
  padding: 11px 14px; border-radius: var(--r-sm); color: var(--ink); font-weight: 700;
}
.dropmenu a small { font-size: 13px; font-weight: 500; color: var(--muted); }
.dropmenu a:hover { background: var(--surface); }

.header-actions { display: flex; align-items: center; gap: 14px; }
.burger {
  display: none; width: 44px; height: 44px; border: 1px solid var(--line);
  border-radius: var(--r-md); background: #fff; position: relative;
}
.burger span, .burger span::before, .burger span::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 18px; height: 2px;
  background: var(--ink); border-radius: 2px; transform: translate(-50%, -50%);
  transition: var(--ease);
}
.burger span::before { transform: translate(-50%, -8px); }
.burger span::after { transform: translate(-50%, 6px); }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { transform: translate(-50%, -50%) rotate(45deg); }
.burger[aria-expanded="true"] span::after { transform: translate(-50%, -50%) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { padding: 78px 0 64px; }
.hero h1 { max-width: 1060px; }
.hero .lead { margin-top: 30px; max-width: 680px; }
.hero__cta { margin-top: 40px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.hero__note { margin-top: 22px; font-size: 15px; color: var(--muted); }

.pill {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 15px;
  border: 1px solid var(--line); border-radius: var(--r-pill);
  font-size: 13.5px; font-weight: 600; color: var(--muted); margin-bottom: 34px;
}
.pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }

/* ---------- Metric plates ---------- */
.metric-plates { margin-top: 56px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.plate {
  border-radius: 20px; padding: 30px 30px 26px; min-height: 172px;
  display: flex; flex-direction: column; justify-content: space-between;
  background: var(--surface);
}
.plate--accent { background: var(--accent); }
.plate--dark { background: var(--ink); color: #fff; }
.plate__num { font-size: 46px; font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.plate__num--sm { font-size: 28px; line-height: 1.05; letter-spacing: -0.02em; }
.plate__label { margin-top: 8px; font-size: 15.5px; font-weight: 600; color: var(--muted); }

/* Компактные метрики внутри двухколоночного блока (.split) — без кривых переносов */
.split .metric-plates { grid-template-columns: 1fr; gap: 12px; align-self: center; }
.split .metric-plates .plate { min-height: 0; flex-direction: row; align-items: center; justify-content: flex-start; gap: 18px; padding: 22px 26px; }
.split .metric-plates .plate > svg { flex-shrink: 0; }
.split .metric-plates .plate__num { font-size: 30px; white-space: nowrap; }
.split .metric-plates .plate__num--sm { font-size: 21px; white-space: normal; }
.split .metric-plates .plate__label { margin-top: 4px; }
.plate--accent .plate__label { color: var(--ink-soft); }
.plate--dark .plate__label { color: var(--on-dark-muted); }

/* ---------- Markers band ---------- */
.markers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; border-top: 1px solid var(--line); padding-top: 40px; }
.marker { display: flex; gap: 16px; }
.icon-plate {
  flex-shrink: 0; width: 44px; height: 44px; border-radius: 12px; background: var(--surface);
  display: flex; align-items: center; justify-content: center;
}
.icon-plate--lg { width: 52px; height: 52px; border-radius: 14px; }
.marker h3 { font-size: 18px; font-weight: 700; }
.marker p { margin-top: 6px; font-size: 15px; color: var(--muted); }

/* ---------- Service cards grid ---------- */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.scard {
  border-radius: var(--r-xl); padding: 32px; min-height: 230px;
  display: flex; flex-direction: column; justify-content: space-between;
  background: var(--surface); transition: background var(--ease);
}
.scard:hover { background: #eceee6; }
.scard__top { display: flex; justify-content: space-between; align-items: flex-start; }
.scard__top .icon-plate { background: #fff; }
.scard h3 { font-size: 22px; }
.scard p { margin-top: 9px; font-size: 15px; color: var(--muted); }
.scard--feature {
  grid-column: span 2; background: var(--ink); color: #fff; padding: 36px; min-height: 280px;
}
.scard--feature:hover { background: var(--dark-2); }
.scard--feature h3 { font-size: clamp(26px, 4vw, 34px); }
.scard--feature p { font-size: 17px; color: var(--on-dark); max-width: 560px; }
.scard--accent { background: var(--accent); color: var(--ink); }
.scard--accent:hover { background: var(--accent-hover); }
.scard--accent p { color: var(--ink-soft); font-weight: 600; }

.badge {
  display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700;
  padding: 7px 13px; border-radius: var(--r-pill); background: var(--accent); color: var(--ink);
}
.badge--dark { background: var(--ink); color: #fff; }

/* ---------- Dark metrics grid ---------- */
.split { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 64px; align-items: start; }
.metrics-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.dmetric { background: var(--dark-2); border: 1px solid var(--dark-line); border-radius: 18px; padding: 28px; }
.dmetric__num { font-size: 42px; font-weight: 800; letter-spacing: -0.03em; color: var(--accent); }
.dmetric p { margin-top: 10px; font-size: 15.5px; color: var(--on-dark); }
.dmetric--accent { background: var(--accent); color: var(--ink); display: flex; flex-direction: column; justify-content: space-between; }
.dmetric--accent strong { margin-top: 18px; font-size: 16px; line-height: 1.45; font-weight: 700; }

/* ---------- Cases ---------- */
.case-feature {
  display: grid; grid-template-columns: 0.9fr 1.1fr;
  border: 1px solid var(--line); border-radius: var(--r-2xl); overflow: hidden; margin-bottom: 16px;
}
.case-feature__story { background: var(--ink); color: #fff; padding: 44px; display: flex; flex-direction: column; }
.case-feature__story h3 { margin-top: 28px; font-size: 30px; }
.case-feature__story p { margin-top: 14px; font-size: 16px; color: var(--on-dark); max-width: 380px; }
.tags { display: flex; gap: 8px; flex-wrap: wrap; }
.tag { font-size: 12.5px; font-weight: 700; color: var(--ink-soft); background: var(--surface); padding: 6px 11px; border-radius: var(--r-pill); }
.tag--dark { color: #c7c9bd; background: transparent; border: 1px solid var(--dark-line); }
.tag--accent { color: var(--ink); background: var(--accent); }

.case-metrics { margin-top: auto; padding-top: 32px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.cmetric { background: var(--dark-2); border: 1px solid var(--dark-line); border-radius: 14px; padding: 18px; }
.cmetric__label { font-size: 12px; font-weight: 700; color: #8b8e81; text-transform: uppercase; letter-spacing: 0.05em; }
.cmetric__val { margin-top: 10px; font-size: 30px; font-weight: 800; letter-spacing: -0.02em; color: var(--accent); }
.cmetric__delta { margin-top: 10px; display: flex; align-items: baseline; gap: 7px; }
.cmetric__delta .from { font-size: 22px; font-weight: 700; color: #6e7165; }
.cmetric__delta .to { font-size: 30px; font-weight: 800; letter-spacing: -0.02em; color: var(--accent); }

.case-feature__visual { background: var(--surface); padding: 44px; display: flex; align-items: center; justify-content: center; }
.browser { width: 100%; max-width: 560px; border-radius: var(--r-lg); overflow: hidden; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-card); }
.browser__bar { height: 40px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 14px; padding: 0 16px; }
.browser__dots { display: flex; gap: 7px; }
.browser__dots span { width: 11px; height: 11px; border-radius: 50%; background: #e2e3dc; }
.browser__url { flex: 1; height: 22px; background: var(--surface); border-radius: 7px; display: flex; align-items: center; padding: 0 12px; font-size: 12px; font-weight: 600; color: var(--muted); }
.browser__shot { display: block; width: 100%; height: 312px; object-fit: cover; background: var(--surface); }

.cases-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.case-card { border: 1px solid var(--line); border-radius: 24px; padding: 18px 18px 26px; transition: border-color var(--ease); }
.case-card:hover { border-color: var(--ink); }
.case-card__media { position: relative; border-radius: var(--r-lg); overflow: hidden; }
.case-card__media img { width: 100%; height: 220px; object-fit: cover; background: var(--surface); }
.case-card__badge { position: absolute; left: 16px; bottom: 16px; display: inline-flex; align-items: center; gap: 7px; background: var(--accent); color: var(--ink); font-size: 14px; font-weight: 800; padding: 9px 14px; border-radius: var(--r-pill); box-shadow: var(--shadow-badge); }
.case-card__badge--dark { background: var(--ink); color: #fff; }
.case-card__body { padding: 0 8px; }
.case-card__body .tags { margin-top: 20px; }
.case-card h3 { margin-top: 14px; font-size: 21px; }
.case-card p { margin-top: 8px; font-size: 15px; color: var(--muted); }
.case-card .link-arrow { margin-top: 16px; border-bottom: none; padding-bottom: 0; }

/* ---------- CTA + form ---------- */
.cta-block { background: var(--dark); border-radius: var(--r-2xl); padding: 64px; display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; color: #fff; }
.cta-block h2 { color: #fff; }
.cta-block .lead { color: var(--on-dark); margin-top: 20px; max-width: 420px; }
.checklist { margin-top: 32px; display: flex; flex-direction: column; gap: 14px; }
.checklist li { display: flex; align-items: center; gap: 12px; font-size: 16px; font-weight: 600; color: #d6d8ce; list-style: none; }
.checklist svg { width: 20px; height: 20px; flex-shrink: 0; }

/* ---------- Killer offer ---------- */
.killer { background: var(--accent); border-radius: var(--r-2xl); padding: 56px; display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; position: relative; overflow: hidden; }
.killer__decor { position: absolute; top: -40px; right: -40px; width: 220px; height: 220px; border-radius: 50%; background: rgba(19, 20, 15, 0.06); }
.killer__main { position: relative; }
.killer__badge { display: inline-flex; align-items: center; gap: 9px; background: var(--ink); color: var(--accent); font-size: 13px; font-weight: 700; padding: 9px 16px; border-radius: var(--r-pill); margin-bottom: 24px; }
.killer__badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.killer__title { font-size: clamp(34px, 5vw, 54px); line-height: 1; letter-spacing: -0.035em; font-weight: 800; color: var(--ink); }
.killer__lead { margin-top: 20px; font-size: 19px; line-height: 1.5; color: #2a2c22; font-weight: 600; max-width: 460px; }
.killer__cta { margin-top: 30px; display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.killer__note { font-size: 15px; font-weight: 700; color: #2a2c22; }
.killer__timeline { position: relative; display: flex; flex-direction: column; gap: 14px; }
.tl-step { background: #fff; border-radius: 18px; padding: 24px 26px; display: flex; align-items: center; gap: 20px; }
.tl-step--dark { background: var(--ink); color: #fff; }
.tl-step__icon { flex-shrink: 0; width: 58px; height: 58px; border-radius: 15px; background: var(--accent); display: flex; align-items: center; justify-content: center; }
.tl-step__when { font-size: 13px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }
.tl-step__when--accent { color: var(--accent); }
.tl-step__title { margin-top: 3px; font-size: 20px; font-weight: 800; letter-spacing: -0.01em; }
.tl-step__desc { font-size: 14.5px; font-weight: 500; color: var(--muted); }
.tl-step__desc--on-dark { color: var(--on-dark); }
.tl-arrow { display: flex; justify-content: center; }

/* ---------- Forms ---------- */
.form { background: #fff; border-radius: var(--r-xl); padding: 34px; display: flex; flex-direction: column; gap: 16px; }
.field label { display: block; font-size: 13.5px; font-weight: 700; color: var(--ink-soft); margin-bottom: 8px; }
.field label .opt { color: var(--muted); font-weight: 600; }
.input, .textarea, select.input {
  width: 100%; height: 54px; border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 0 18px; font-size: 16px; font-family: inherit; font-weight: 500; color: var(--ink);
  background: #fff; outline: none; transition: border-color var(--ease);
}
.textarea { height: 108px; padding: 16px 18px; resize: none; }
.input:focus, .textarea:focus, select.input:focus { border: 2px solid var(--ink); padding: 0 17px; }
.textarea:focus { padding: 15px 17px; }
.input::placeholder, .textarea::placeholder { color: var(--muted); }
select.input { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M6 9l6 6 6-6' stroke='%2376786c' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 18px center; padding-right: 44px; }
.consent { display: flex; gap: 11px; align-items: flex-start; font-size: 13px; line-height: 1.45; color: var(--muted); font-weight: 500; cursor: pointer; margin-top: 2px; }
.consent input { margin-top: 2px; width: 18px; height: 18px; accent-color: var(--ink); flex-shrink: 0; }
.consent a { color: var(--ink-soft); text-decoration: underline; }
.form .btn { margin-top: 6px; height: 56px; padding: 0; }
.field-error { display: none; margin-top: 6px; font-size: 13px; color: #c0392b; font-weight: 600; }
.field.invalid .input, .field.invalid .textarea { border-color: #c0392b; }
.field.invalid .field-error { display: block; }
.form__success { display: none; text-align: center; padding: 12px 0; }
.form.is-sent .form__success { display: block; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.step { background: var(--surface); border-radius: var(--r-xl); padding: 30px; }
.step__n { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px; background: var(--accent); color: var(--ink); font-weight: 800; font-size: 18px; }
.step h3 { margin-top: 20px; font-size: 20px; }
.step p { margin-top: 8px; font-size: 15px; color: var(--muted); }

/* ---------- Bullets / ticks ---------- */
.ticks { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.ticks li { display: flex; align-items: flex-start; gap: 12px; font-size: 16px; line-height: 1.5; }
.ticks svg { width: 22px; height: 22px; flex-shrink: 0; margin-top: 1px; }
.ticks.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 32px; }
.section--dark .ticks li { color: #e7e8e0; }

/* ---------- Pricing ---------- */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: start; }
.plan { position: relative; border: 1px solid var(--line); border-radius: var(--r-xl); padding: 32px; background: #fff; }
.plan--hit { background: var(--ink); color: #fff; border-color: var(--ink); }
.plan__tag { position: absolute; top: 24px; right: 24px; }
.plan__name { font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.plan--hit .plan__name { color: var(--on-dark-muted); }
.plan__price { margin-top: 14px; font-size: 34px; font-weight: 800; letter-spacing: -0.02em; }
.plan__price small { font-size: 16px; font-weight: 600; color: var(--muted); }
.plan--hit .plan__price small { color: var(--on-dark-muted); }
.plan__desc { margin-top: 10px; font-size: 15px; color: var(--muted); }
.plan--hit .plan__desc { color: var(--on-dark); }
.plan .ticks { margin: 24px 0; }
.plan .ticks li { font-size: 15px; }
.plan--hit .ticks svg path { stroke: var(--accent); }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); padding: 22px 0; }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 24px; cursor: pointer; list-style: none; font-size: 19px; font-weight: 700; letter-spacing: -0.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex-shrink: 0; width: 22px; height: 22px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M12 5v14M5 12h14' stroke='%2313140f' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E") center/contain no-repeat; transition: transform var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { margin-top: 14px; font-size: 16px; color: var(--ink-soft); max-width: 760px; }

/* ---------- Breadcrumbs ---------- */
.crumbs { padding-top: 28px; font-size: 14px; color: var(--muted); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.crumbs li { display: flex; align-items: center; gap: 8px; }
.crumbs li + li::before { content: "/"; color: var(--line); }
.crumbs a:hover { color: var(--ink); }
.crumbs [aria-current] { color: var(--ink-soft); }

/* ---------- Page hero (inner) ---------- */
.page-hero { padding: 48px 0 12px; }
.page-hero h1 { max-width: 900px; }
.page-hero .lead { margin-top: 24px; max-width: 680px; }
.page-hero .hero__cta { margin-top: 32px; }

/* ---------- Prose (blog / legal) ---------- */
.prose { max-width: 760px; }
.prose > * + * { margin-top: 20px; }
.prose h2 { font-size: clamp(26px, 4vw, 34px); margin-top: 44px; }
.prose h3 { font-size: 22px; margin-top: 32px; }
.prose p, .prose li { font-size: 18px; line-height: 1.65; color: var(--ink-soft); }
.prose ul, .prose ol { padding-left: 24px; }
.prose li + li { margin-top: 8px; }
.prose a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.prose strong { color: var(--ink); font-weight: 700; }

/* ---------- Article (blog detail) ---------- */
.art-head { max-width: 820px; margin: 0 auto; padding: 40px var(--pad) 0; }
.art-head .crumbs { padding-top: 0; margin-bottom: 30px; }
.art-tag { display: inline-flex; align-items: center; gap: 8px; background: var(--surface); color: var(--ink); font-size: 12.5px; font-weight: 700; padding: 7px 14px; border-radius: var(--r-pill); margin-bottom: 20px; }
.art-head h1 { font-size: clamp(32px, 5vw, 48px); line-height: 1.08; letter-spacing: -0.03em; max-width: 740px; }
.art-meta { margin-top: 24px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.art-meta__author { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 700; color: var(--ink-soft); }
.art-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--accent); display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 800; color: var(--ink); }
.art-meta__dot { width: 5px; height: 5px; border-radius: 50%; background: #c9cabf; }
.art-meta__item { font-size: 15px; font-weight: 600; color: var(--muted); }
.art-cover { max-width: 1080px; margin: 36px auto 0; padding: 0 var(--pad); }
.art-cover img { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; border-radius: var(--r-2xl); background: var(--surface); display: block; }

.article-prose { max-width: 760px; margin: 0 auto; padding: 48px var(--pad) 0; }
.article-prose > * + * { margin-top: 18px; }
.article-prose .art-lead { font-size: 21px; line-height: 1.65; color: var(--ink); font-weight: 600; }
.article-prose p { font-size: 18px; line-height: 1.75; color: #2a2c22; font-weight: 500; }
.article-prose h2 { font-size: clamp(26px, 3.4vw, 30px); line-height: 1.15; letter-spacing: -0.02em; font-weight: 800; margin-top: 46px; }
.article-prose h3 { font-size: 22px; font-weight: 800; margin-top: 32px; }
.article-prose ul, .article-prose ol { margin-top: 18px; padding-left: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; }
.article-prose li { position: relative; padding-left: 32px; font-size: 17px; line-height: 1.6; color: #2a2c22; font-weight: 500; }
.article-prose li::before { content: ""; position: absolute; left: 0; top: 9px; width: 14px; height: 14px; border-radius: 4px; background: var(--accent); }
.article-prose a { color: var(--ink); font-weight: 700; border-bottom: 2px solid var(--accent); }
.article-prose blockquote { margin: 40px 0; padding: 28px 32px; background: var(--surface); border-radius: 20px; border-left: 4px solid var(--accent); }
.article-prose blockquote p { font-size: 23px; line-height: 1.45; font-weight: 700; color: var(--ink); margin: 0; }

.art-cta { max-width: 760px; margin: 48px auto 0; padding: 0 var(--pad); }
.art-cta__inner { background: var(--accent); border-radius: var(--r-2xl); padding: 36px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.art-cta h3 { font-size: 24px; font-weight: 800; letter-spacing: -0.01em; }
.art-cta p { margin-top: 8px; font-size: 15.5px; line-height: 1.5; color: #2a2c22; font-weight: 600; }

.related-posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.rpost { display: flex; flex-direction: column; gap: 16px; }
.rpost__media { position: relative; border-radius: 18px; overflow: hidden; aspect-ratio: 16 / 10; background: var(--surface); }
.rpost__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rpost__tag { position: absolute; top: 14px; left: 14px; font-size: 12px; font-weight: 700; color: var(--ink); background: #fff; padding: 7px 13px; border-radius: var(--r-pill); }
.rpost__meta { font-size: 13px; font-weight: 600; color: var(--muted); }
.rpost h3 { margin-top: 8px; font-size: 21px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.18; }

.cta-band { background: var(--dark); border-radius: var(--r-2xl); padding: 64px; display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap; color: #fff; }
.cta-band h2 { color: #fff; font-size: clamp(30px, 4vw, 42px); line-height: 1.07; }
.cta-band p { margin-top: 16px; font-size: 18px; line-height: 1.5; color: var(--on-dark); font-weight: 500; max-width: 560px; }

/* ---------- Blog cards ---------- */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.post { border: 1px solid var(--line); border-radius: var(--r-xl); padding: 28px; display: flex; flex-direction: column; transition: border-color var(--ease); }
.post:hover { border-color: var(--ink); }
.post__meta { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.post h3 { margin-top: 14px; font-size: 22px; }
.post p { margin-top: 10px; font-size: 15px; color: var(--muted); }
.post .link-arrow { margin-top: 20px; border-bottom: none; padding-bottom: 0; }

/* ---------- Related services ---------- */
.related { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }

/* ---------- Footer ---------- */
.site-footer .container { padding-top: 84px; padding-bottom: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid var(--line); }
.footer-grid p { font-size: 15px; color: var(--muted); max-width: 280px; margin-top: 18px; }
.footer-col__title { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 18px; }
.footer-col__links { display: flex; flex-direction: column; gap: 12px; font-size: 15.5px; font-weight: 600; color: var(--ink-soft); }
.footer-col__links a:hover { color: var(--ink); }
.footer-phone { font-size: 20px; font-weight: 800; letter-spacing: -0.01em; color: var(--ink); }
.footer-bottom { padding-top: 28px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; font-size: 13.5px; color: var(--muted); }
.footer-bottom a:hover { color: var(--ink); }

/* ============================================================
   Responsive — mobile-first collapse
   ============================================================ */
@media (max-width: 900px) {
  :root { --pad: 20px; }
  .section { padding-top: 56px; }
  .section--soft { padding-bottom: 56px; }
  .section--dark { padding: 64px 0; }
  .section + .section--dark { margin-top: 56px; }

  .nav { display: none; }
  .burger { display: block; }
  .site-header.menu-open .nav {
    display: flex; position: fixed; inset: 76px 0 0; flex-direction: column;
    align-items: flex-start; gap: 4px; background: #fff; padding: 24px var(--pad);
    overflow-y: auto; z-index: 49;
  }
  .site-header.menu-open .nav a, .site-header.menu-open .nav .dropbtn { font-size: 20px; padding: 12px 0; }
  .site-header.menu-open .dropmenu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: none; padding: 0 0 8px 12px; min-width: 0; }

  .metric-plates, .markers, .cards-3, .steps, .pricing, .posts, .metrics-2,
  .cases-2, .related, .ticks.cols, .related-posts { grid-template-columns: 1fr; }
  .cta-band { padding: 36px 28px; }
  .art-cta__inner { padding: 28px 24px; }
  .scard--feature { grid-column: span 1; }

  .split, .case-feature, .cta-block, .killer { grid-template-columns: 1fr; gap: 32px; }
  .killer { padding: 32px 24px; }
  .case-feature__story { padding: 32px; }
  .case-feature__visual { padding: 24px; }
  .case-metrics { gap: 10px; }

  .section__head--row { flex-direction: column; align-items: flex-start; gap: 20px; }
  .cta-block { padding: 36px 28px; }
  .hero { padding: 48px 0 40px; }
  .form { padding: 24px; }
}

@media (max-width: 560px) {
  .case-metrics { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
  .cmetric__val, .dmetric__num { font-size: 34px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
