/* Shared stylesheet of the static SEO guides under frontend/public/<slug>/.
   One file for all of them (2026-11-26): a redesign is one edit, not nineteen.
   Bump the ?v= on the <link> of every guide when this file changes. */
:root {
  --paper: #FBF8F2;
  --paper2: #F5F1E8;
  --ink: #2B302C;
  --muted: #6B7267;
  --line: #E2DCCF;
  --brand: #14D585;
  --brand-ink: #0B8F57;
  --dark: #101815;
  --card: #FFFFFF;
  --shadow: 0 1px 2px rgba(16, 24, 21, .05), 0 12px 32px -12px rgba(16, 24, 21, .18);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "Golos Text", system-ui, sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.65;
  font-size: 16.5px;
  -webkit-font-smoothing: antialiased;
}
.mono { font-family: "JetBrains Mono", monospace; }
a { color: var(--brand-ink); text-decoration: none; }
a:hover { text-decoration: underline; }
img, video { max-width: 100%; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* Header */
header.site {
  border-bottom: 1px solid var(--line); background: rgba(251, 248, 242, .92);
  position: sticky; top: 0; z-index: 20; backdrop-filter: blur(8px);
}
header.site .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding-top: 12px; padding-bottom: 12px;
}
.logo { display: flex; align-items: center; gap: 9px; color: var(--ink); font-weight: 600; font-size: 17px; }
.logo:hover { text-decoration: none; }
.logo img { width: 26px; height: 26px; }
.site-nav { display: flex; gap: 22px; margin-left: auto; margin-right: 6px; font-size: 14.5px; }
.site-nav a { color: var(--ink); }
.site-nav a:hover { color: var(--brand-ink); text-decoration: none; }
.pill {
  display: inline-block; padding: 10px 20px; border-radius: 999px;
  font-size: 14.5px; font-weight: 500; line-height: 1.2; white-space: nowrap;
}
.pill:hover { text-decoration: none; }
.pill--dark { background: var(--dark); color: #fff; }
.pill--dark:hover { opacity: .88; }
.pill--brand { background: var(--brand); color: var(--dark); }
.pill--brand:hover { opacity: .88; }
.pill--line { border: 1px solid var(--line); background: #fff; color: var(--ink); }
.pill--line:hover { border-color: var(--brand-ink); }
.pill--ghost { border: 1px solid rgba(255, 255, 255, .35); color: #fff; }
.pill--ghost:hover { border-color: #fff; }
.ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 22px 0 6px; }
.ctas .hint { font-size: 14px; color: var(--muted); }

/* Type */
.eyebrow {
  font-family: "JetBrains Mono", monospace; font-size: 12.5px;
  letter-spacing: .08em; text-transform: uppercase; color: var(--brand-ink);
  margin-bottom: 14px;
}
h1 { font-size: clamp(30px, 4.2vw, 46px); line-height: 1.12; letter-spacing: -.015em; margin-bottom: 18px; }
.lead { font-size: 18.5px; color: var(--muted); margin-bottom: 8px; max-width: 34em; }
h2 { font-size: 24px; line-height: 1.25; letter-spacing: -.01em; margin: 40px 0 12px; scroll-margin-top: 84px; }
h3 { font-size: 18px; margin: 26px 0 8px; }
article p { margin: 0 0 14px; }
article ul, article ol { margin: 0 0 14px 22px; }
article li { margin-bottom: 6px; }
.rule { border: 0; border-top: 1px solid var(--line); margin: 40px 0; }

/* First screen: text left, picture right */
.top { background: linear-gradient(180deg, var(--paper2), var(--paper)); border-bottom: 1px solid var(--line); }
.top-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 48px; align-items: center; padding-top: 56px; padding-bottom: 56px;
}
.top-art { margin: 0; }
.top-art img {
  display: block; width: 100%; height: auto; border-radius: 18px;
  border: 1px solid var(--line); background: var(--card); box-shadow: var(--shadow);
}
.top-art--square img { max-width: 440px; margin: 0 auto; }
.top-art--grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.top-art--grid img { border-radius: 14px; }
.top-art--grid figcaption { grid-column: 1 / -1; }
.top-art figcaption { text-align: center; }
.top-facts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; list-style: none; }
article .top-facts { margin-left: 0; }
.top-facts li {
  font-size: 13.5px; background: var(--card); border: 1px solid var(--line);
  border-radius: 999px; padding: 5px 12px; margin: 0;
}

/* «Как это выглядит»: real screens of the product, and the walkthrough video */
.shots { padding-top: 48px; padding-bottom: 8px; }
.shots > h2 { margin-top: 0; }
.shots > p { color: var(--muted); max-width: 46em; }
.shots-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; margin-top: 22px; }
.shots-grid figure { margin: 0; }
.shots-grid figure:first-child:nth-last-child(odd) { grid-column: 1 / -1; }
.shot {
  display: block; border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
  background: var(--card); box-shadow: var(--shadow); cursor: zoom-in;
}
.shot::before {
  content: ""; display: block; height: 26px; border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 16px 13px, #E8A598 4px, transparent 5px),
    radial-gradient(circle at 32px 13px, #E9CF8E 4px, transparent 5px),
    radial-gradient(circle at 48px 13px, #A9D6B4 4px, transparent 5px),
    var(--paper2);
}
.shot img { display: block; width: 100%; height: auto; border: 0; border-radius: 0; }
figure .shot img { border: 0; border-radius: 0; }
.video { margin: 28px 0 0; }
.video video {
  display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: 14px;
  border: 1px solid var(--line); background: var(--dark); box-shadow: var(--shadow);
}

/* Body: sticky table of contents beside the text */
.layout {
  display: grid; grid-template-columns: 250px minmax(0, 760px);
  gap: 56px; justify-content: center; padding-top: 40px;
}
.toc { position: sticky; top: 84px; align-self: start; max-height: calc(100vh - 110px); overflow: auto; }
.toc h2 {
  font-size: 12.5px; margin: 0 0 12px; letter-spacing: .08em; text-transform: uppercase;
  font-family: "JetBrains Mono", monospace; color: var(--muted); font-weight: 500;
}
article .toc ol { margin: 0; padding: 0; list-style: none; border-left: 1px solid var(--line); }
.toc li { margin: 0; }
.toc a { display: block; padding: 6px 0 6px 14px; margin-left: -1px; border-left: 2px solid transparent; color: var(--muted); font-size: 14.5px; line-height: 1.35; }
.toc a:hover { color: var(--ink); border-left-color: var(--brand-ink); text-decoration: none; }
.body > :first-child { margin-top: 0; }

.tldr {
  border: 1px solid var(--line); background: var(--paper2);
  border-radius: 14px; padding: 20px 24px; margin: 30px 0;
}
.tldr h2 {
  font-size: 13px; margin: 0 0 10px; letter-spacing: .08em; text-transform: uppercase;
  font-family: "JetBrains Mono", monospace; color: var(--brand-ink); font-weight: 500;
}
.tldr ul { margin: 0 0 0 20px; }
.tldr li { margin-bottom: 7px; }
.tldr li:last-child { margin-bottom: 0; }

.step { margin: 44px 0; }
.step > h2 { margin-top: 0; display: flex; gap: 12px; align-items: baseline; }
.step > h2 .n {
  flex: none; font-family: "JetBrains Mono", monospace; font-size: 13px;
  color: var(--brand-ink); border: 1px solid var(--line); background: #fff;
  border-radius: 8px; padding: 3px 9px; line-height: 1.3;
}

figure { margin: 22px 0; }
figure img {
  display: block; width: 100%; height: auto;
  border: 1px solid var(--line); border-radius: 12px; background: var(--paper2);
}
figure svg { display: block; width: 100%; height: auto; }
figcaption { font-size: 14.5px; color: var(--muted); margin-top: 9px; }
.figs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin: 22px 0; }
.figs figure { margin: 0; }
.figs--3 { grid-template-columns: repeat(3, 1fr); }
.figs figcaption { font-size: 13.5px; margin-top: 7px; }
/* The old one-picture block under the lead; still used for an inline diagram. */
.hero {
  margin: 0 0 26px; border: 1px solid var(--line); border-radius: 14px;
  overflow: hidden; background: var(--paper2);
}
.hero img, .hero svg { display: block; width: 100%; height: auto; }
.hero figcaption { font-size: 14.5px; color: var(--muted); padding: 10px 16px 12px; margin: 0; }

.note, .warn { border-radius: 12px; padding: 16px 20px; margin: 22px 0; font-size: 15.5px; }
.note { background: var(--paper2); border: 1px solid var(--line); }
.warn { background: #FFF6E9; border: 1px solid #EBD9BC; }
.note strong, .warn strong { font-weight: 600; }
.note p:last-child, .warn p:last-child { margin-bottom: 0; }
.formula {
  font-family: "JetBrains Mono", monospace; font-size: 13.5px; line-height: 1.7;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 14px 18px; margin: 18px 0; overflow-wrap: anywhere;
}
.formula strong { color: var(--brand-ink); font-weight: 500; }

ul.check { list-style: none; margin: 0 0 14px; }
ul.check li { position: relative; padding-left: 28px; margin-bottom: 9px; }
ul.check li::before {
  content: ""; position: absolute; left: 3px; top: .55em;
  width: 12px; height: 6px; border-left: 2px solid var(--brand-ink);
  border-bottom: 2px solid var(--brand-ink); transform: rotate(-45deg);
}
ul.bad { list-style: none; margin: 0 0 14px; }
ul.bad li { position: relative; padding-left: 28px; margin-bottom: 10px; }
ul.bad li::before {
  content: "×"; position: absolute; left: 6px; top: -.05em;
  color: #C0603C; font-size: 20px; line-height: 1.65;
}

/* Plans table of a guide */
.plans { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 15.5px; background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.plans th, .plans td { text-align: left; padding: 11px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.plans tr:last-child td { border-bottom: 0; }
.plans th { font-weight: 500; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); background: var(--paper2); }

.faq { margin: 44px 0; }
.faq details {
  border: 1px solid var(--line); border-radius: 12px; background: #fff;
  padding: 14px 18px; margin-bottom: 10px;
}
.faq summary { font-weight: 500; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--brand-ink); font-size: 19px; line-height: 1.4; }
.faq details[open] summary::after { content: "−"; }
.faq details[open] summary { margin-bottom: 10px; }
.faq details p { margin-bottom: 10px; }
.faq details p:last-child { margin-bottom: 0; }

.product {
  background: var(--paper2); border: 1px solid var(--line); border-radius: 16px;
  padding: 28px 30px; margin: 44px 0;
}
.product .eyebrow { margin-bottom: 10px; }
.product h2 { margin: 0 0 10px; font-size: 22px; }
.product p { margin-bottom: 10px; }
.product figure { margin: 18px 0 0; }

.cta {
  background: var(--dark); color: #EDEFEA; border-radius: 18px;
  padding: 38px 30px; margin: 44px 0; text-align: center;
}
.cta h2 { color: #fff; margin: 0 0 8px; font-size: 26px; }
.cta p { color: #A9B2A9; margin-bottom: 18px; }
.cta .ctas { justify-content: center; margin: 0; }

/* «Другие гайды» across the page width */
.guides { margin: 16px auto 44px; }
.guides h2 { font-size: 22px; margin: 0 0 16px; }
article .guides ul { list-style: none; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.guides li { margin: 0; }
.guides a {
  display: block; height: 100%; padding: 13px 16px; border: 1px solid var(--line);
  border-radius: 12px; color: var(--ink); background: #fff; font-size: 15px; line-height: 1.35;
}
.guides a:hover { border-color: var(--brand-ink); text-decoration: none; }

footer.site {
  border-top: 1px solid var(--line); margin-top: 24px;
  padding: 22px 0 30px; color: var(--muted); font-size: 14px;
}
footer.site .wrap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
footer.site .disclaimer { flex-basis: 100%; font-size: 13px; }

/* Full-size view of a screenshot (guide.js) */
.zoom {
  position: fixed; inset: 0; z-index: 50; background: rgba(16, 24, 21, .86);
  display: flex; align-items: center; justify-content: center; padding: 24px; cursor: zoom-out;
}
.zoom img { max-width: 100%; max-height: 100%; border-radius: 10px; background: #fff; }

@media (max-width: 1040px) {
  .layout { grid-template-columns: minmax(0, 760px); gap: 0; }
  .toc {
    position: static; max-height: none; border: 1px solid var(--line); border-radius: 14px;
    background: #fff; padding: 18px 22px; margin-bottom: 30px;
  }
  article .guides ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .top-grid { grid-template-columns: 1fr; gap: 28px; padding-top: 36px; padding-bottom: 36px; }
  .site-nav { display: none; }
  .shots-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .product, .cta { padding: 22px 18px; }
  .figs, .figs--3 { grid-template-columns: 1fr; }
  article .guides ul { grid-template-columns: 1fr; }
  .step > h2 { display: block; }
  .step > h2 .n { display: inline-block; margin-right: 8px; }
  .plans th, .plans td { padding: 9px 10px; font-size: 14.5px; }
}
