/* ============================================================
   Render Prosto — общий стиль SEO-страниц
   Наследует палитру и типографику с главной.
   Подключается через <link rel="stylesheet" href="/assets/seo.css">.
   ============================================================ */

:root {
  --paper:      #f4f1ea;
  --paper-deep: #e8e2d3;
  --ink:        #0f0f0e;
  --ink-2:      #1a1a1a;
  --ink-soft:   #3a3a3a;
  --text-muted: #7a7770;
  --accent:     #c8553d;
  --accent-2:   #2d4a3e;
  --line:       #d5cfbe;
  --line-dark:  #2a2a2a;

  --font-display: 'Unbounded', 'Archivo Black', 'Archivo', -apple-system, sans-serif;
  --font-body:    'Archivo', -apple-system, 'Segoe UI', system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', 'SF Mono', Menlo, Consolas, monospace;
  --serif: var(--font-display);
  --sans:  var(--font-body);

  --ease:      cubic-bezier(.22,1,.36,1);
  --ease-soft: cubic-bezier(.16,1,.3,1);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: 17px; line-height: 1.6;
  color: var(--ink); background: var(--paper);
  min-height: 100vh; overflow-x: hidden;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
body::before {
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 0;
  opacity: .04;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 1 0'/></filter><rect width='180' height='180' filter='url(%23n)'/></svg>");
}
button, input, textarea { font-family: inherit; font-size: inherit; color: inherit; }
a { color: var(--ink); text-decoration: none; }
img { display: block; max-width: 100%; }
em { font-style: italic; }
::selection { background: var(--ink); color: var(--paper); }

/* ---- BG модификаторы ---- */
.bg-ink { background: var(--ink); color: var(--paper); }
.bg-paper-deep { background: var(--paper-deep); }

/* ---- HEADER ---- */
.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 1px; z-index: 60; pointer-events: none; }
.scroll-progress-bar { height: 100%; width: 0%; background: var(--accent); transition: width .12s linear; }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.sh-inner {
  max-width: 1280px; margin: 0 auto; padding: 18px 24px;
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
}
.sh-logo {
  font-family: var(--font-display); font-weight: 800; font-size: 18px; line-height: 1;
  color: var(--ink); letter-spacing: -0.02em;
}
.sh-logo em { color: var(--accent); font-style: normal; font-weight: 500; margin-left: 4px; }
.sh-login {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em;
  text-transform: uppercase; font-weight: 500; color: var(--ink);
  position: relative; padding-bottom: 4px;
}
.sh-login::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--ink); transform: scaleX(0); transform-origin: left;
  transition: transform .5s var(--ease);
}
.sh-login:hover::after { transform: scaleX(1); }

/* ---- CRUMBS ---- */
.crumbs {
  max-width: 1280px; margin: 0 auto; padding: 24px 24px 0;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--ink-soft);
}
.crumbs a { color: var(--ink-soft); position: relative; }
.crumbs a:hover { color: var(--ink); }
.crumbs span { color: var(--text-muted); margin: 0 10px; }

/* ---- HERO ---- */
.seo-hero {
  max-width: 1280px; margin: 0 auto;
  padding: 56px 24px 96px;
  position: relative;
}
@media (min-width: 900px) { .seo-hero { padding: 80px 48px 120px; } }
.seo-hero .eyebrow {
  display: inline-block; font-family: var(--font-mono); font-weight: 500; font-size: 12px;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 20px;
}
.seo-hero h1 {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(36px, 6vw, 80px); line-height: 0.98;
  letter-spacing: -0.03em; color: var(--ink);
  max-width: 20ch; margin-bottom: 28px;
}
.seo-hero h1 em { font-style: normal; color: var(--accent); font-weight: 500; }
.seo-hero .lead {
  font-size: 18px; line-height: 1.55; color: var(--ink-soft);
  max-width: 54ch; margin-bottom: 36px;
}
@media (min-width: 900px) { .seo-hero .lead { font-size: 20px; } }
.seo-hero .hero-actions { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }

.btn-primary {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 20px 28px; background: var(--ink); color: var(--paper);
  font-family: var(--font-mono); font-weight: 500; font-size: 12px;
  letter-spacing: 0.1em; text-transform: uppercase;
  border: 1px solid var(--ink); border-radius: 2px;
  transition: background .3s var(--ease), color .3s var(--ease);
}
.btn-primary:hover { background: var(--paper); color: var(--ink); }
.btn-primary .arrow { transition: transform .3s var(--ease); }
.btn-primary:hover .arrow { transform: translateX(6px); }

.btn-ghost {
  font-family: var(--font-mono); color: var(--ink-soft); font-size: 11px;
  letter-spacing: 0.08em; text-transform: uppercase; font-weight: 500;
  position: relative; padding-bottom: 3px;
}
.btn-ghost::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: left;
  transition: transform .4s var(--ease);
}
.btn-ghost:hover { color: var(--ink); }
.btn-ghost:hover::after { transform: scaleX(1); }

/* ---- SECTIONS ---- */
.seo-section { padding: 80px 24px; }
@media (min-width: 900px) { .seo-section { padding: 120px 48px; } }
.seo-section-inner { max-width: 1280px; margin: 0 auto; }
.eyebrow {
  display: inline-block; font-family: var(--font-mono); font-weight: 500; font-size: 12px;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 20px;
}
.bg-ink .eyebrow { color: var(--accent); }
.seo-section h2 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(28px, 4.4vw, 52px); line-height: 1.05; letter-spacing: -0.03em;
  color: var(--ink); margin-bottom: 40px; max-width: 28ch;
}
.bg-ink .seo-section h2 { color: var(--paper); }
.seo-section h3 {
  font-family: var(--font-body); font-weight: 700; font-size: 20px; line-height: 1.3;
  color: var(--ink); margin-bottom: 12px; letter-spacing: -0.015em;
}
.bg-ink .seo-section h3 { color: var(--paper); }
.seo-section p {
  font-size: 17px; line-height: 1.65; color: var(--ink-soft);
  max-width: 62ch; margin-bottom: 18px;
}
.bg-ink .seo-section p { color: var(--text-muted); }
.seo-section p a {
  color: var(--accent); text-decoration: underline; text-underline-offset: 3px;
  transition: color .3s var(--ease);
}
.seo-section p a:hover { color: var(--accent-ink, #a2402b); }
.bg-ink .seo-section p a { color: var(--accent); }

/* ---- TWO-COL ---- */
.two-col { display: grid; grid-template-columns: 1fr; gap: 32px; }
@media (min-width: 900px) { .two-col { grid-template-columns: 1fr 1.3fr; gap: 80px; } }

/* ---- BULLETS ---- */
.bullets { list-style: none; display: grid; gap: 20px; }
.bullets li {
  padding-left: 28px; position: relative; font-size: 16px; line-height: 1.55;
  color: var(--ink-soft);
}
.bullets li::before {
  content: ''; position: absolute; left: 0; top: 12px; width: 16px; height: 1px;
  background: var(--accent);
}
.bg-ink .bullets li { color: var(--text-muted); }

/* ---- STEPS ---- */
.steps { display: grid; grid-template-columns: 1fr; gap: 32px; list-style: none; }
@media (min-width: 720px) {
  .steps { grid-template-columns: 1fr 1fr 1fr 1fr; gap: 40px; }
}
.steps li { padding-top: 20px; border-top: 1px solid var(--line); }
.bg-ink .steps li { border-top-color: var(--line-dark); }
.step-n {
  display: block; font-family: var(--font-display); font-weight: 800;
  font-size: clamp(56px, 6vw, 80px); line-height: 1; letter-spacing: -0.04em;
  color: var(--ink); margin-bottom: 20px;
}
.bg-ink .step-n { color: var(--paper); }
.steps h3 { margin-bottom: 10px; font-size: 18px; }
.steps p { font-size: 14px; margin: 0; max-width: 32ch; }

/* ---- PORTFOLIO ---- */
.portfolio { display: grid; grid-template-columns: 1fr; gap: 32px; }
@media (min-width: 720px) { .portfolio { grid-template-columns: 1fr 1fr 1fr; } }
.portfolio-item { display: flex; flex-direction: column; gap: 12px; }
.portfolio-visual {
  position: relative; aspect-ratio: 4/3; overflow: hidden;
  border: 1px solid var(--line); transition: transform .7s var(--ease-soft);
}
.bg-ink .portfolio-visual { border-color: var(--line-dark); }
.portfolio-item:hover .portfolio-visual { transform: scale(1.02); }
.portfolio-visual svg {
  position: absolute; inset: 0; width: 100%; height: 100%; opacity: .7;
}
.portfolio-meta { padding-left: 12px; border-left: 1px solid var(--line); }
.bg-ink .portfolio-meta { border-left-color: var(--line-dark); }
.portfolio-item:hover .portfolio-meta { border-left-color: var(--accent); }
.portfolio-category {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em;
  text-transform: uppercase; font-weight: 500; color: var(--ink-soft); margin-bottom: 8px;
}
.portfolio-title {
  font-family: var(--font-body); font-weight: 700; font-size: 18px; line-height: 1.2;
  color: var(--ink); margin-bottom: 6px; letter-spacing: -0.015em;
}
.bg-ink .portfolio-title { color: var(--paper); }
.portfolio-info {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--ink-soft);
}
.bg-ink .portfolio-info { color: var(--text-muted); }

/* ---- FAQ ---- */
.faq { border-top: 1px solid var(--line); max-width: 880px; }
.bg-ink .faq { border-top-color: var(--line-dark); }
.faq details { border-bottom: 1px solid var(--line); transition: background .3s var(--ease); }
.bg-ink .faq details { border-bottom-color: var(--line-dark); }
.faq details[open] { background: rgba(0,0,0,.02); }
.bg-ink .faq details[open] { background: rgba(200,85,61,.05); }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 0;
  display: grid; grid-template-columns: 1fr 28px; align-items: center; gap: 20px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq .q-text {
  font-family: var(--font-body); font-weight: 600; font-size: 17px; line-height: 1.35;
  color: var(--ink); letter-spacing: -0.01em;
}
.bg-ink .faq .q-text { color: var(--paper); }
.faq .q-icon {
  justify-self: end; width: 20px; height: 20px; position: relative;
}
.faq .q-icon::before, .faq .q-icon::after {
  content: ''; position: absolute; top: 50%; left: 0; width: 20px; height: 1px;
  background: var(--ink);
}
.bg-ink .faq .q-icon::before, .bg-ink .faq .q-icon::after { background: var(--paper); }
.faq .q-icon::after { transform: rotate(90deg); transition: transform .4s var(--ease); }
.faq details[open] .q-icon::after { transform: rotate(0deg); }
.faq .faq-a {
  padding: 0 0 22px; color: var(--ink-soft);
  font-size: 15px; line-height: 1.65; max-width: 68ch;
}
.bg-ink .faq .faq-a { color: var(--text-muted); }
.faq a { text-decoration: underline; text-underline-offset: 3px; }

/* ---- CTA BLOCK ---- */
.cta-block {
  padding: 80px 24px; text-align: center;
}
.cta-block h2 { margin-left: auto; margin-right: auto; max-width: 20ch; }
.cta-block .lead { margin: 0 auto 36px; text-align: center; max-width: 54ch; }
.cta-block .hero-actions { justify-content: center; }

/* ---- RELATED LINKS ---- */
.related {
  margin-top: 48px; display: grid; grid-template-columns: 1fr; gap: 0;
  border-top: 1px solid var(--line);
}
.bg-ink .related { border-top-color: var(--line-dark); }
@media (min-width: 720px) { .related { grid-template-columns: 1fr 1fr; } }
.related a {
  padding: 28px 0; border-bottom: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  transition: padding-left .3s var(--ease);
}
.bg-ink .related a { border-bottom-color: var(--line-dark); }
@media (min-width: 720px) {
  .related a:nth-child(odd) { padding-right: 40px; border-right: 1px solid var(--line); }
  .related a:nth-child(even) { padding-left: 40px; }
  .bg-ink .related a:nth-child(odd) { border-right-color: var(--line-dark); }
}
.related a:hover { padding-left: 8px; }
.related-label {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em;
  text-transform: uppercase; font-weight: 500;
  color: var(--accent); display: block; margin-bottom: 6px;
}
.related-title {
  font-family: var(--font-body); font-weight: 700; font-size: 18px;
  color: var(--ink); letter-spacing: -0.015em;
}
.bg-ink .related-title { color: var(--paper); }
.related-arrow {
  font-size: 20px; color: var(--ink-soft); transition: transform .3s var(--ease);
}
.related a:hover .related-arrow { transform: translateX(5px); color: var(--accent); }

/* ---- FOOTER ---- */
.site-footer {
  margin-top: 0; padding: 80px 24px 48px;
  border-top: 1px solid var(--line); background: var(--paper-deep);
}
.sf-inner { max-width: 1280px; margin: 0 auto; }
.sf-brand {
  font-family: var(--font-display); font-weight: 800;
  font-size: 20px; line-height: 1; letter-spacing: -0.02em;
  color: var(--ink); margin-bottom: 40px;
}
.sf-brand em { font-style: normal; color: var(--accent); font-weight: 500; margin-left: 6px; }
.sf-grid { display: grid; grid-template-columns: 1fr; gap: 0; border-top: 1px solid var(--line); }
@media (min-width: 720px) {
  .sf-grid { grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; padding-top: 32px; }
}
.sf-col { border-bottom: 1px solid var(--line); }
@media (min-width: 720px) { .sf-col { border-bottom: 0; } }
.sf-col > summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 0; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em;
  text-transform: uppercase; font-weight: 500; color: var(--ink);
}
.sf-col > summary::-webkit-details-marker { display: none; }
.sf-col > summary::after { content: '+'; font-size: 20px; color: var(--ink-soft); font-weight: 300; }
.sf-col[open] > summary::after { content: '−'; }
.sf-col ul { list-style: none; padding: 0 0 22px; display: flex; flex-direction: column; gap: 10px; }
.sf-col a {
  color: var(--ink-soft); font-size: 14px; font-family: var(--font-body); font-weight: 500;
  position: relative; display: inline-block; padding-bottom: 2px;
  transition: color .3s var(--ease);
}
.sf-col a:hover { color: var(--ink); }
.sf-intro {
  padding: 24px 0; font-family: var(--font-body); font-size: 16px; line-height: 1.55;
  color: var(--ink-soft); max-width: 32ch;
}
.sf-bottom {
  margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--ink-soft);
}
@media (min-width: 720px) {
  .sf-col > summary { cursor: default; pointer-events: none; padding: 0 0 20px; }
  .sf-col > summary::after { display: none; }
  .sf-col ul { padding: 0; }
}

/* ---- REVEAL ---- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .9s var(--ease-soft), transform .9s var(--ease-soft); }
.reveal.in-view { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }
