/* Track pages and blog (generated by seo/build.py). Loaded after /styles.css: reuses its tokens, fonts,
   .container, .btn, .badge, .header, .legal-footer and the cookie banner; everything here is .seo-*. */

.seo-header { position: static; border-bottom: 1px solid var(--line); }
.seo-header .header__inner { justify-content: space-between; min-height: 72px; }
.seo-nav ul { display: flex; flex-wrap: wrap; gap: 0 20px; padding-bottom: 8px; font-weight: 600; font-size: 15px; }
.seo-nav a { display: inline-flex; align-items: center; min-height: 44px; text-underline-offset: 4px; }
.seo-nav a[aria-current="page"] { color: var(--blue-text); }
@media (max-width: 400px) {
  .seo-header .header__logo img { width: 96px; }
  .seo-header__cta.btn--sm { padding: 0 12px; font-size: 13px; }
  .seo-nav ul { gap: 0 14px; font-size: 14px; }
}

.seo-main { max-width: 1040px; padding-top: 16px; padding-bottom: var(--section); overflow-wrap: break-word; }
.seo-page .btn { max-width: 100%; min-height: 56px; padding: 12px 24px; }

.seo-crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 0; font-size: 14px; color: var(--ink-muted); }
.seo-crumbs li { display: inline-flex; align-items: center; min-height: 32px; }
.seo-crumbs li + li::before { content: "›"; padding: 0 8px; }
.seo-crumbs a { text-underline-offset: 3px; }

.seo-hero { display: grid; justify-items: start; gap: 16px; padding: clamp(24px, 4vw, 48px) 0; }
.seo-hero > * { max-width: 100%; }
/* Loos Wide is wide: long Russian words need hyphenation on 320px screens. */
.seo-hero h1 { font: 700 clamp(24px, 4.6vw, 52px)/1.1 var(--display); hyphens: auto; }
.seo-section > h2, .seo-cta h2, .seo-prose h2 { hyphens: auto; }
.seo-lead { max-width: 70ch; font-size: clamp(17px, 1.6vw, 20px); line-height: 1.5; }
.seo-byline { color: var(--ink-muted); font-size: 15px; }
.seo-facts { display: flex; flex-wrap: wrap; gap: 8px; }
.seo-facts li { padding: 8px 12px; border-radius: 4px; background: var(--cyan); font-weight: 600; font-size: 15px; }

.seo-section { padding-top: clamp(32px, 5vw, 56px); }
.seo-section > h2, .seo-cta h2, .seo-prose h2 { margin-bottom: 16px; font: 700 clamp(24px, 3.4vw, 36px)/1.15 var(--display); }
.seo-section h3, .seo-prose h3 { margin: 24px 0 8px; font: 700 20px/1.3 var(--sans); }
.seo-section p, .seo-prose p { max-width: 75ch; margin-bottom: 12px; }
.seo-section a, .seo-prose a { color: var(--blue-text); text-underline-offset: 3px; }

.seo-panel { margin-bottom: 16px; padding: 20px 24px; border-left: 6px solid var(--mint); border-radius: 8px; background: var(--cyan-soft); }
.seo-panel h3 { margin-top: 0; }
.seo-panel p:last-child { margin-bottom: 0; }

.seo-list, .seo-prose ul, .seo-prose ol { max-width: 75ch; margin: 0 0 16px; padding-left: 24px; }
.seo-list, .seo-prose ul { list-style: disc; }
.seo-prose ol { list-style: decimal; }
.seo-list li, .seo-prose li { margin-bottom: 8px; }
.seo-list li::marker, .seo-prose li::marker { color: var(--violet-text); }

.seo-months { width: 100%; margin: 8px 0 16px; border-collapse: collapse; font-size: 16px; }
.seo-months caption { padding-bottom: 8px; text-align: left; font-weight: 600; color: var(--ink-muted); }
.seo-months th, .seo-months td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.seo-months thead th { background: var(--cyan); font: 700 14px/1.2 var(--mono); text-transform: uppercase; }
.seo-months tbody th { white-space: nowrap; font-weight: 700; color: var(--violet-text); }
@media (max-width: 640px) {
  .seo-months thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .seo-months tr { display: block; margin-bottom: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; }
  .seo-months th, .seo-months td { display: block; padding: 4px 0; border: 0; }
  .seo-months tbody th { white-space: normal; }
  .seo-months td::before { content: attr(data-label) ": "; font-weight: 600; color: var(--ink-muted); }
}
.seo-outcome { padding: 14px 18px; border-radius: 8px; background: var(--cyan); }

.seo-prices { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 16px; margin: 8px 0 16px; }
.seo-price { padding: 20px; border: 2px solid var(--line); border-radius: var(--radius); }
.seo-price h3 { margin-top: 0; }
.seo-price p { margin-bottom: 6px; }
.seo-price__total { font: 700 clamp(26px, 3vw, 34px)/1.1 var(--display); color: var(--ink); }
.seo-note { color: var(--ink-muted); font-size: 15px; }

.seo-faq { display: grid; gap: 12px; }
.seo-faq__item { padding: 16px 20px; border-radius: 8px; background: var(--cyan-soft); }
.seo-faq__item h3 { margin: 0 0 6px; font-size: 18px; }
.seo-faq__item p { margin: 0; }

.seo-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 16px; }
.seo-card { padding: 20px; border: 1px solid var(--line); border-top: 4px solid var(--violet-text); border-radius: 8px; }
.seo-card h3 { margin: 0 0 8px; font-size: 18px; }
.seo-card a { color: var(--ink); }
.seo-card p { margin: 0; color: var(--ink-soft); font-size: 15px; }
.seo-card__thumb { display: block; width: 100%; height: auto; margin-bottom: 16px; border-radius: 4px; background: var(--cyan-soft); }

/* Article illustration: width/height attributes reserve the box, CSS only scales it. Keep 720px in sync with IMAGE_SIZES in build.py. */
.seo-figure { max-width: 720px; margin: 0 0 clamp(24px, 4vw, 40px); }
.seo-figure img { display: block; width: 100%; height: auto; border-radius: var(--radius); background: var(--cyan-soft); }
.seo-figure figcaption { max-width: 75ch; margin-top: 10px; color: var(--ink-muted); font-size: 15px; line-height: 1.4; }

.seo-prose { max-width: 75ch; }
.seo-prose h2 { margin-top: 32px; }
.seo-example { padding: 14px 18px; border-left: 4px solid var(--blue); border-radius: 4px; background: var(--cyan-soft); }
.seo-code { max-width: 100%; margin: 0 0 16px; padding: 14px 18px; overflow-x: auto; border-radius: 8px; background: var(--ink); color: #fff; font: 14px/1.5 var(--mono); }
.seo-prose code { font-family: var(--mono); font-size: .9em; }

.seo-cta { display: grid; gap: 12px; margin-top: clamp(40px, 6vw, 64px); padding: clamp(20px, 4vw, 40px); border-radius: var(--radius); background: var(--mint); }
.seo-cta p { max-width: 70ch; }
.seo-cta__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.seo-cta .btn { background: var(--ink); color: #fff; }
.seo-cta .btn:hover { background: var(--blue-text); }
.seo-cta .seo-btn--ghost { background: #fff; color: var(--ink); }

.seo-footer nav + nav { margin-top: 8px; }
