/* Витрина — platform UI tokens + the public showcase (server-rendered catalogue and front door).
 * The same tokens are mirrored in frontend/src/styles/tokens.css for the React cabinet. */

:root {
  --sc-bg: #ffffff;
  --sc-surface: #f1f7f3;
  --sc-surface: oklch(0.97 0.008 160);
  --sc-ink: #13201b;
  --sc-ink: oklch(0.23 0.02 170);
  --sc-muted: #50665e;
  --sc-muted: oklch(0.49 0.03 170);
  --sc-border: #dce6e1;
  --sc-border: oklch(0.915 0.012 165);
  --sc-brand: #00864e;
  --sc-brand: oklch(0.54 0.14 158);
  --sc-brand-strong: #006d3c;
  --sc-brand-strong: oklch(0.46 0.13 159);
  --sc-brand-soft: #e0f7e9;
  --sc-brand-soft: oklch(0.955 0.03 158);
  --sc-on-brand: #ffffff;
  --sc-night: #023124; /* the «for masters» band */
  --sc-night: oklch(0.28 0.055 168);
  --sc-lit: #f4b83a; /* the lit window: promoted cards only */
  --sc-lit: oklch(0.83 0.145 82);
  --sc-lit-ink: #3d2c00;
  --sc-lit-ink: oklch(0.3 0.06 80);
  --sc-star: #e8a400;

  --sc-font: "Golos Text", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --sc-font-brand: "Unbounded", var(--sc-font);
  --sc-radius: 16px;
  --sc-radius-sm: 12px;
  --sc-shadow: 0 1px 2px rgb(20 28 43 / 6%), 0 8px 24px -12px rgb(10 48 30 / 22%);
  --sc-shadow-lg: 0 30px 60px -28px rgb(10 48 30 / 45%), 0 0 0 1px rgb(20 28 43 / 5%);
  --sc-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --sc-header-h: 64px;

  --z-sticky: 10;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; overflow-x: clip; scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--sc-bg);
  color: var(--sc-ink);
  font: 400 16px / 1.55 var(--sc-font);
  -webkit-font-smoothing: antialiased;
}
main { flex: 1; }
h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: var(--sc-brand); text-underline-offset: 3px; }
img { display: block; max-width: 100%; }
svg { flex: none; }
[id] { scroll-margin-top: calc(var(--sc-header-h) + 12px); }
:focus-visible { outline: 2px solid var(--sc-brand); outline-offset: 2px; border-radius: 4px; }

.sc-wrap { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: 16px; }
.sc-visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}
.sc-skip {
  position: absolute; left: 16px; top: -48px; z-index: 20;
  padding: 8px 14px; border-radius: 8px; background: var(--sc-ink); color: #fff;
}
.sc-skip:focus { top: 8px; }

/* ---------- buttons ---------- */
.sc-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 10px 20px;
  border: 0; border-radius: var(--sc-radius-sm);
  background: var(--sc-brand); color: var(--sc-on-brand);
  font: 600 1rem / 1.2 var(--sc-font); text-decoration: none; white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.2s var(--sc-ease), color 0.2s var(--sc-ease), transform 0.2s var(--sc-ease);
}
.sc-btn:hover { background: var(--sc-brand-strong); }
.sc-btn:active { transform: scale(0.98); }
.sc-btn-lg { min-height: 52px; padding: 12px 26px; font-size: 1.0625rem; }
.sc-btn-light { background: #fff; color: var(--sc-brand-strong); }
.sc-btn-light:hover { background: var(--sc-brand-soft); }
.sc-btn-outline-light { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgb(255 255 255 / 45%); }
.sc-btn-outline-light:hover { background: rgb(255 255 255 / 10%); }
.sc-link { color: var(--sc-ink); font-weight: 500; text-decoration: none; padding: 10px 8px; }
.sc-link:hover { color: var(--sc-brand); }

/* ---------- header ---------- */
.sc-header {
  position: sticky; top: 0; z-index: var(--z-sticky);
  background: rgb(255 255 255 / 90%);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--sc-border);
}
.sc-header-row { display: flex; align-items: center; gap: 12px; min-height: var(--sc-header-h); }
.sc-logo {
  display: inline-flex; align-items: center; gap: 10px;
  font: 700 1.25rem / 1 var(--sc-font-brand);
  letter-spacing: -0.02em; color: var(--sc-ink); text-decoration: none;
}
.sc-logo-mark {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px;
  background: linear-gradient(140deg, oklch(0.64 0.15 156), var(--sc-brand-strong));
  color: #fff; box-shadow: 0 6px 14px -6px oklch(0.46 0.13 159 / 70%);
}
.sc-logo-mark svg { width: 19px; height: 19px; }
.sc-menu { display: none; }
.sc-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.sc-nav .sc-btn { min-height: 40px; padding: 8px 14px; font-size: 0.9375rem; }
.sc-only-wide { display: none; }

/* ---------- hero (the front door) ---------- */
.sc-hero {
  position: relative; overflow: hidden; isolation: isolate;
  padding: 36px 0 28px;
  background: linear-gradient(180deg, var(--sc-brand-soft) 0%, #fff 78%);
}
.sc-hero::before,
.sc-hero::after {
  content: ""; position: absolute; z-index: -1; border-radius: 50%; pointer-events: none;
}
.sc-hero::before {
  width: 640px; height: 640px; top: -260px; right: -220px;
  background: radial-gradient(closest-side, oklch(0.85 0.1 158 / 50%), transparent);
}
.sc-hero::after {
  width: 420px; height: 420px; bottom: -180px; left: -160px;
  background: radial-gradient(closest-side, oklch(0.9 0.08 82 / 45%), transparent);
}
.sc-hero-grid { display: grid; gap: 36px; align-items: center; }
.sc-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px 6px 10px; border-radius: 999px;
  background: #fff; color: var(--sc-brand-strong);
  box-shadow: inset 0 0 0 1px var(--sc-border), 0 1px 2px rgb(20 28 43 / 5%);
  font-size: 0.875rem; font-weight: 600; line-height: 1.3;
}
.sc-eyebrow svg { width: 16px; height: 16px; }
.sc-eyebrow.is-dark { background: rgb(255 255 255 / 10%); color: #fff; box-shadow: inset 0 0 0 1px rgb(255 255 255 / 16%); }
.sc-hero h1 {
  margin-top: 18px;
  font-size: clamp(2.25rem, 1.35rem + 4.2vw, 4rem);
  font-weight: 800; line-height: 1.02; letter-spacing: -0.04em;
  text-wrap: balance;
}
.sc-accent {
  color: var(--sc-brand);
  background: linear-gradient(transparent 72%, oklch(0.87 0.12 82 / 70%) 72%, oklch(0.87 0.12 82 / 70%) 92%, transparent 92%);
}
.sc-lead { margin-top: 16px; max-width: 34em; color: var(--sc-muted); font-size: 1.125rem; line-height: 1.55; text-wrap: pretty; }

/* ---------- search ---------- */
.sc-search { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; margin-top: 20px; }
.sc-field {
  display: flex; align-items: center; gap: 10px;
  min-height: 50px; padding: 0 14px;
  border: 1.5px solid var(--sc-border); border-radius: var(--sc-radius-sm);
  background: var(--sc-bg); color: var(--sc-muted);
  transition: border-color 0.2s var(--sc-ease), box-shadow 0.2s var(--sc-ease), background-color 0.2s var(--sc-ease);
}
.sc-field:focus-within { border-color: var(--sc-brand); box-shadow: 0 0 0 3px var(--sc-brand-soft); }
.sc-field svg { width: 20px; height: 20px; }
.sc-field input {
  flex: 1; min-width: 0; height: 46px; padding: 0; border: 0; outline: 0;
  background: none; color: var(--sc-ink); font: 400 1rem / 1.2 var(--sc-font);
}
.sc-field input::placeholder { color: var(--sc-muted); }
.sc-field-q { grid-column: 1 / -1; }
.sc-search .sc-btn { min-height: 50px; }

/* the big one in the hero: a single white panel */
.sc-search.is-big {
  margin-top: 26px; padding: 8px; gap: 0;
  border-radius: 20px; background: #fff; box-shadow: var(--sc-shadow-lg);
}
.sc-search.is-big .sc-field { min-height: 54px; border: 0; border-radius: 14px; }
.sc-search.is-big .sc-field:focus-within { box-shadow: none; background: var(--sc-surface); }
.sc-search.is-big .sc-field-q { border-bottom: 1px solid var(--sc-border); border-radius: 14px 14px 0 0; }
.sc-search.is-big .sc-btn { min-height: 50px; margin-left: 8px; padding-inline: 24px; border-radius: 14px; }

.sc-examples { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 14px; color: var(--sc-muted); font-size: 0.9375rem; }
.sc-examples span { margin-right: 2px; }
.sc-examples a {
  padding: 4px 11px; border-radius: 999px; background: rgb(255 255 255 / 75%);
  box-shadow: inset 0 0 0 1px var(--sc-border);
  color: var(--sc-ink); text-decoration: none; font-weight: 500;
  transition: color 0.2s var(--sc-ease), box-shadow 0.2s var(--sc-ease);
}
.sc-examples a:hover { color: var(--sc-brand-strong); background: var(--sc-brand-soft); box-shadow: inset 0 0 0 1px var(--sc-brand); }

/* collage of real cards: wide screens only */
.sc-collage { display: none; }
.sc-collage-card { overflow: hidden; border-radius: 18px; background: #fff; box-shadow: var(--sc-shadow-lg); }
.sc-collage-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.sc-collage-body { display: grid; gap: 1px; padding: 12px 14px 14px; position: relative; }
.sc-collage-body b { font-size: 0.9375rem; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding-right: 52px; }
.sc-collage-body span { color: var(--sc-muted); font-size: 0.8125rem; }
.sc-collage-body .sc-collage-rating {
  position: absolute; top: 12px; right: 14px;
  display: inline-flex; align-items: center; gap: 3px; color: var(--sc-ink); font-weight: 700;
}
.sc-collage-rating svg { width: 14px; height: 14px; color: var(--sc-star); fill: currentColor; }

/* trust row */
.sc-trust { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 28px; }
.sc-trust li {
  display: flex; flex-direction: column; align-items: flex-start; gap: 8px;
  padding: 12px; border-radius: var(--sc-radius-sm);
  background: rgb(255 255 255 / 70%); box-shadow: inset 0 0 0 1px var(--sc-border);
}
.sc-trust svg { width: 38px; height: 38px; padding: 8px; border-radius: 11px; background: var(--sc-brand-soft); color: var(--sc-brand); }
.sc-trust b { display: block; font-size: 0.875rem; line-height: 1.25; }
.sc-trust span { display: none; color: var(--sc-muted); font-size: 0.875rem; line-height: 1.4; }

/* ---------- sections ---------- */
.sc-section { padding: 36px 0; }
.sc-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.sc-section-head h2 {
  font-size: clamp(1.375rem, 1.05rem + 1.4vw, 2rem);
  font-weight: 750; line-height: 1.15; letter-spacing: -0.028em;
}
.sc-count { flex: none; color: var(--sc-muted); font-size: 0.9375rem; }

/* ---------- category tiles ---------- */
.sc-tiles {
  display: grid; grid-auto-flow: column; grid-template-rows: repeat(2, auto); grid-auto-columns: 38%;
  gap: 10px; margin-inline: -16px; padding: 2px 16px 10px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 16px; scrollbar-width: none;
}
.sc-tiles::-webkit-scrollbar { display: none; }
.sc-tiles li { scroll-snap-align: start; }
.sc-tile {
  position: relative; isolation: isolate; overflow: hidden;
  display: block; aspect-ratio: 3 / 4; border-radius: var(--sc-radius);
  background: var(--sc-surface); color: #fff; text-decoration: none;
}
.sc-tile img {
  position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s var(--sc-ease);
}
.sc-tile::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, transparent 40%, rgb(10 16 32 / 82%));
}
.sc-tile-name {
  position: absolute; left: 12px; right: 12px; bottom: 12px;
  font-size: 0.9375rem; font-weight: 700; line-height: 1.2; text-wrap: balance;
}
.sc-tile:hover img { transform: scale(1.07); }
.sc-tile.is-plain {
  background: linear-gradient(160deg, var(--sc-brand-soft), oklch(0.9 0.07 158));
  color: var(--sc-ink);
}
.sc-tile.is-plain::after { display: none; }
.sc-tile.is-plain svg {
  position: absolute; top: 14px; left: 12px; width: 34px; height: 34px; color: var(--sc-brand);
  transition: transform 0.4s var(--sc-ease);
}
.sc-tile.is-plain:hover svg { transform: scale(1.12) rotate(-6deg); }

/* ---------- compact head: category, search, further pages ---------- */
.sc-top { padding: 22px 0 4px; background: linear-gradient(180deg, var(--sc-brand-soft), #fff); }
.sc-crumbs { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; color: var(--sc-muted); font-size: 0.875rem; }
.sc-crumbs a { color: var(--sc-muted); }
.sc-crumbs a:hover { color: var(--sc-brand); }
.sc-crumbs [aria-current] { color: var(--sc-ink); font-weight: 500; }
.sc-intro { max-width: 760px; }
.sc-intro h1 {
  font-size: clamp(1.75rem, 1.2rem + 2.6vw, 2.75rem);
  font-weight: 800; line-height: 1.08; letter-spacing: -0.03em;
  text-wrap: balance;
}
.sc-intro p { margin-top: 10px; color: var(--sc-muted); font-size: 1.0625rem; text-wrap: pretty; }

.sc-cats {
  display: flex; gap: 8px; margin: 18px -16px 0; padding: 2px 16px 12px;
  overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity;
}
.sc-cats::-webkit-scrollbar { display: none; }
.sc-cat {
  display: inline-flex; align-items: center; gap: 8px; flex: none;
  min-height: 42px; padding: 8px 14px;
  border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px var(--sc-border); color: var(--sc-ink);
  font-weight: 500; font-size: 0.9375rem; text-decoration: none; white-space: nowrap;
  scroll-snap-align: start;
  transition: background-color 0.2s var(--sc-ease), color 0.2s var(--sc-ease), box-shadow 0.2s var(--sc-ease);
}
.sc-cat svg { width: 18px; height: 18px; color: var(--sc-brand); transition: color 0.2s var(--sc-ease); }
.sc-cat:hover { box-shadow: inset 0 0 0 1px var(--sc-brand); }
.sc-cat.is-active { background: var(--sc-ink); box-shadow: none; color: #fff; }
.sc-cat.is-active svg { color: #fff; }

/* ---------- feed ---------- */
.sc-feed-section { padding-bottom: 64px; }
.sc-found { margin: -6px 0 18px; color: var(--sc-muted); }
.sc-found a { margin-left: 8px; }

.sc-feed { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 12px; }
.sc-card { min-width: 0; }
.sc-card.is-pinned { grid-column: 1 / -1; }
.sc-card-link { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; }

.sc-media { position: relative; }
.sc-cover {
  position: relative; overflow: hidden;
  aspect-ratio: 4 / 3; border-radius: var(--sc-radius);
  background: var(--accent, var(--sc-brand)); color: var(--accent-ink, #fff);
  display: grid; place-items: center;
}
.sc-card.is-pinned .sc-cover { aspect-ratio: 16 / 9; }
.sc-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--sc-ease); }
.sc-card-link:hover .sc-cover img { transform: scale(1.05); }
.sc-cover-letter {
  font: 700 clamp(2.5rem, 12vw, 4.5rem) / 1 var(--sc-font-brand);
  opacity: 0.92; transition: transform 0.5s var(--sc-ease);
}
.sc-card-link:hover .sc-cover-letter { transform: scale(1.08); }

.sc-badge {
  position: absolute; top: 10px;
  display: inline-flex; align-items: center; gap: 4px;
  padding: 5px 10px; border-radius: 999px;
  font-size: 0.8125rem; font-weight: 700; line-height: 1.2;
}
.sc-badge svg { width: 14px; height: 14px; }
.sc-badge-top { left: 10px; background: var(--sc-lit); color: var(--sc-lit-ink); box-shadow: 0 4px 12px -4px rgb(61 44 0 / 45%); }
.sc-badge-rating { right: 10px; background: rgb(255 255 255 / 94%); color: var(--sc-ink); box-shadow: 0 2px 8px rgb(20 28 43 / 14%); }
.sc-badge-rating svg { color: var(--sc-star); fill: currentColor; }
.sc-badge-rating small { color: var(--sc-muted); font-size: 0.75rem; font-weight: 500; }

.sc-avatar {
  position: absolute; left: 12px; bottom: -20px;
  display: grid; place-items: center; overflow: hidden;
  width: 46px; height: 46px; border-radius: 50%;
  border: 3px solid #fff; background: var(--accent, var(--sc-brand)); color: var(--accent-ink, #fff);
  font: 700 1.125rem / 1 var(--sc-font-brand);
  box-shadow: 0 4px 10px -4px rgb(20 28 43 / 35%);
}
.sc-avatar img { width: 100%; height: 100%; object-fit: cover; }

.sc-card-body { display: flex; flex-direction: column; gap: 4px; padding: 12px 2px 0; }
.sc-card.has-avatar .sc-card-body { padding-top: 28px; }
.sc-card-title {
  font-size: 1.0625rem; font-weight: 700; line-height: 1.28; letter-spacing: -0.012em;
  overflow-wrap: anywhere;
  transition: color 0.2s var(--sc-ease);
}
.sc-card-link:hover .sc-card-title { color: var(--sc-brand); }
.sc-card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0 2px; color: var(--sc-muted); font-size: 0.8125rem; }
.sc-card-meta svg { width: 13px; height: 13px; margin-right: 2px; }
.sc-card-text {
  margin-top: 2px; color: var(--sc-muted); font-size: 0.9375rem; line-height: 1.42;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.sc-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.sc-tags li {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 9px; border-radius: 999px;
  background: var(--sc-brand-soft); color: var(--sc-brand-strong);
  font-size: 0.75rem; font-weight: 600; line-height: 1.2;
}
.sc-tags svg { width: 13px; height: 13px; }

/* «Выделение»: the whole card sits on a warm tinted plate */
.sc-card.is-highlighted .sc-card-link {
  padding: 8px 8px 14px; margin: -8px;
  border-radius: calc(var(--sc-radius) + 6px);
  background: color-mix(in oklch, var(--sc-lit) 20%, white);
}
.sc-card.is-highlighted .sc-card-meta,
.sc-card.is-highlighted .sc-card-text { color: oklch(0.4 0.04 80); }
.sc-card.is-highlighted .sc-tags li { background: rgb(255 255 255 / 70%); }

/* ---------- pager / empty ---------- */
.sc-pager { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 44px; flex-wrap: wrap; }
.sc-pager-step {
  display: inline-flex; align-items: center; gap: 4px; min-height: 44px; padding: 8px 16px;
  border: 1.5px solid var(--sc-border); border-radius: var(--sc-radius-sm);
  color: var(--sc-ink); font-weight: 600; text-decoration: none;
  transition: border-color 0.2s var(--sc-ease), color 0.2s var(--sc-ease);
}
.sc-pager-step svg { width: 18px; height: 18px; }
.sc-pager-step:hover { border-color: var(--sc-brand); color: var(--sc-brand); }
.sc-pager-state { color: var(--sc-muted); }

.sc-empty { max-width: 520px; margin: 24px auto; text-align: center; display: grid; gap: 10px; justify-items: center; }
.sc-empty-icon { display: grid; place-items: center; width: 64px; height: 64px; margin-bottom: 4px; border-radius: 20px; background: var(--sc-brand-soft); color: var(--sc-brand); }
.sc-empty-icon svg { width: 28px; height: 28px; }
.sc-empty h2 { font-size: 1.375rem; line-height: 1.2; letter-spacing: -0.015em; }
.sc-empty p { color: var(--sc-muted); margin-bottom: 8px; }

/* ---------- for masters (the front door) ---------- */
.sc-pro {
  position: relative; overflow: hidden; isolation: isolate;
  padding: 56px 0; color: #fff;
  background:
    radial-gradient(760px 460px at 88% 12%, oklch(0.58 0.14 160 / 85%), transparent 62%),
    radial-gradient(520px 360px at 0% 100%, oklch(0.55 0.12 190 / 45%), transparent 60%),
    var(--sc-night);
}
.sc-pro-grid { display: grid; gap: 40px; align-items: center; }
.sc-pro h2 {
  margin-top: 16px;
  font-size: clamp(1.875rem, 1.25rem + 2.8vw, 3rem);
  font-weight: 800; line-height: 1.06; letter-spacing: -0.035em; text-wrap: balance;
}
.sc-pro-lead { margin-top: 14px; max-width: 36em; color: oklch(0.9 0.03 160); font-size: 1.0625rem; text-wrap: pretty; }
.sc-pro-lead b { color: #fff; font-weight: 600; }
.sc-features { display: grid; gap: 16px; margin-top: 28px; }
.sc-features li { display: flex; align-items: flex-start; gap: 14px; }
.sc-feature-icon {
  display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 12px;
  background: rgb(255 255 255 / 10%); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 14%); color: oklch(0.88 0.1 82);
}
.sc-feature-icon svg { width: 22px; height: 22px; }
.sc-features b { display: block; font-size: 1rem; line-height: 1.3; }
.sc-features div span { display: block; margin-top: 2px; color: oklch(0.84 0.03 160); font-size: 0.9375rem; line-height: 1.45; }
.sc-pro-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }

/* a phone with a real page from the catalogue */
.sc-phone { display: none; }
.sc-phone-screen {
  display: flex; flex-direction: column; height: 100%; overflow: hidden;
  border-radius: 32px; background: #fff; color: var(--sc-ink);
}
.sc-phone-cover { width: 100%; height: 46%; object-fit: cover; }
.sc-phone-body { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 0 18px 18px; margin-top: -26px; }
.sc-phone-avatar {
  display: grid; place-items: center; overflow: hidden; width: 54px; height: 54px; border-radius: 50%;
  border: 3px solid #fff; background: var(--accent); color: var(--accent-ink);
  font: 700 1.25rem / 1 var(--sc-font-brand);
}
.sc-phone-avatar img { width: 100%; height: 100%; object-fit: cover; }
.sc-phone-body b { font-size: 1.0625rem; line-height: 1.25; }
.sc-phone-text { color: var(--sc-muted); font-size: 0.8125rem; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.sc-phone-rating { display: inline-flex; align-items: center; gap: 4px; font-size: 0.8125rem; font-weight: 600; }
.sc-phone-rating svg { width: 14px; height: 14px; color: var(--sc-star); fill: currentColor; }
.sc-phone-btn {
  align-self: stretch; display: grid; place-items: center; min-height: 42px; margin-top: 4px;
  border-radius: 12px; background: var(--accent); color: var(--accent-ink); font-size: 0.875rem; font-weight: 600;
}
.sc-phone-btn.is-ghost { margin-top: 0; background: transparent; color: var(--sc-ink); box-shadow: inset 0 0 0 1.5px var(--sc-border); }

/* ---------- own page vs a board: the comparison ---------- */
.sc-compare { background: var(--sc-surface); }
.sc-section-head.is-stacked { flex-direction: column; align-items: flex-start; gap: 8px; }
.sc-section-head.is-stacked p { max-width: 62ch; color: var(--sc-muted); font-size: 1.0625rem; text-wrap: pretty; }
.sc-table { display: block; width: 100%; border-collapse: separate; border-spacing: 0; font-size: 0.9375rem; line-height: 1.45; }
.sc-table tbody { display: block; }
.sc-table tr { display: flex; flex-direction: column; margin-bottom: 12px; padding: 14px 16px; border-radius: var(--sc-radius); background: #fff; box-shadow: inset 0 0 0 1px var(--sc-border); }
.sc-table thead { display: none; }
.sc-table tbody th { order: 0; margin-bottom: 8px; font-size: 1rem; font-weight: 700; text-align: left; }
.sc-table td { order: 2; padding: 3px 0; color: var(--sc-muted); }
.sc-table td::before { content: attr(data-label) ": "; color: var(--sc-ink); font-weight: 600; }
.sc-table td.is-us {
  order: 1; margin-bottom: 8px; padding: 10px 12px; border-radius: 12px;
  background: var(--sc-brand-soft); color: var(--sc-ink); font-weight: 500;
}
.sc-table td.is-us::before { display: none; }
.sc-table td.is-us svg { width: 16px; height: 16px; margin-right: 8px; vertical-align: -3px; color: var(--sc-brand); }

/* ---------- FAQ ---------- */
.sc-faq-grid { display: grid; gap: 22px; }
.sc-faq-list { display: grid; gap: 10px; }
.sc-faq-item { border-radius: var(--sc-radius); background: var(--sc-surface); transition: background-color 0.2s var(--sc-ease); }
.sc-faq-item[open] { background: var(--sc-brand-soft); }
.sc-faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px 18px; font-size: 1.0625rem; font-weight: 600; line-height: 1.35; cursor: pointer; list-style: none;
}
.sc-faq-item summary::-webkit-details-marker { display: none; }
.sc-faq-item summary svg { width: 20px; height: 20px; color: var(--sc-muted); transition: transform 0.25s var(--sc-ease); }
.sc-faq-item[open] summary svg { transform: rotate(180deg); }
.sc-faq-item summary:focus-visible { outline-offset: -2px; border-radius: var(--sc-radius); }
.sc-faq-item p { max-width: 64ch; padding: 0 18px 18px; color: var(--sc-muted); }

/* ---------- compact pitch (category and search pages) ---------- */
.sc-pitch { background: var(--sc-night); color: var(--sc-on-brand); padding: 40px 0; }
.sc-pitch-row { display: grid; gap: 20px; align-items: center; }
.sc-pitch h2 { font-size: clamp(1.375rem, 1rem + 1.6vw, 2rem); line-height: 1.15; letter-spacing: -0.02em; text-wrap: balance; }
.sc-pitch p { margin-top: 10px; max-width: 62ch; color: oklch(0.9 0.03 160); }
.sc-pitch strong { color: #fff; font-weight: 600; }
.sc-pitch .sc-btn { justify-self: start; }

/* ---------- footer ---------- */
.sc-footer { padding: 44px 0 28px; background: var(--sc-surface); border-top: 1px solid var(--sc-border); color: var(--sc-muted); font-size: 0.9375rem; }
.sc-footer-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; }
.sc-footer-brand { grid-column: 1 / -1; display: grid; gap: 12px; justify-items: start; }
.sc-footer-brand p { max-width: 40ch; line-height: 1.5; }
.sc-footer h2 { margin-bottom: 12px; color: var(--sc-ink); font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.sc-footer ul { display: grid; gap: 8px; }
.sc-footer ul a { color: var(--sc-muted); text-decoration: none; }
.sc-footer ul a:hover { color: var(--sc-brand); }
.sc-copy { margin-top: 32px; padding-top: 18px; border-top: 1px solid var(--sc-border); font-size: 0.875rem; }

/* ---------- legal documents ---------- */
.sc-doc { max-width: 780px; padding-block: 36px 72px; }
.sc-doc h1 { font-size: clamp(1.625rem, 1.2rem + 2vw, 2.25rem); line-height: 1.15; letter-spacing: -0.02em; margin-bottom: 20px; text-wrap: balance; }
.sc-doc h2 { font-size: 1.1875rem; line-height: 1.3; margin: 32px 0 8px; }
.sc-doc p { margin: 0 0 12px; max-width: 72ch; }
.sc-doc ul { list-style: disc; padding-left: 1.3em; margin: 0 0 12px; max-width: 72ch; }
.sc-doc li { margin-bottom: 6px; }

/* ---------- wider screens ---------- */
@media (min-width: 640px) {
  .sc-wrap { padding-inline: 24px; }
  .sc-only-wide { display: inline; }
  .sc-nav { gap: 8px; }
  .sc-hero { padding: 56px 0 36px; }
  .sc-search { grid-template-columns: minmax(0, 1fr) 220px auto; }
  .sc-field-q { grid-column: auto; }
  .sc-search.is-big { grid-template-columns: minmax(0, 1fr) 200px auto; }
  .sc-search.is-big .sc-field-q { border-bottom: 0; border-right: 1px solid var(--sc-border); border-radius: 14px 0 0 14px; }
  .sc-trust { gap: 12px; }
  .sc-trust li { flex-direction: row; align-items: center; gap: 14px; padding: 12px 16px; }
  .sc-trust span { display: block; }
  .sc-trust b { font-size: 0.9375rem; }
  .sc-section { padding: 48px 0; }
  .sc-tiles { grid-auto-columns: 22%; margin-inline: -24px; padding-inline: 24px; scroll-padding-inline: 24px; }
  .sc-tile-name { left: 14px; right: 14px; bottom: 14px; font-size: 1rem; }
  .sc-top { padding-top: 32px; }
  .sc-cats { flex-wrap: wrap; overflow: visible; margin-inline: 0; padding-inline: 0; }
  .sc-feed { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 36px 22px; }
  .sc-card.is-pinned { grid-column: span 2; }
  .sc-features { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 24px; }
  .sc-pro { padding: 72px 0; }
  .sc-pitch { padding: 56px 0; }
  .sc-pitch-row { grid-template-columns: minmax(0, 1fr) auto; gap: 40px; }
  .sc-pitch .sc-btn { justify-self: end; }
  .sc-footer-grid { grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); }
  /* the comparison becomes a real table */
  .sc-table-wrap { overflow-x: auto; }
  .sc-table { display: table; min-width: 720px; }
  .sc-table tbody { display: table-row-group; }
  .sc-table thead { display: table-header-group; }
  .sc-table tr { display: table-row; margin: 0; padding: 0; border-radius: 0; background: none; box-shadow: none; }
  .sc-table th, .sc-table td { padding: 16px 18px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--sc-border); }
  .sc-table td::before { display: none; }
  .sc-table thead th { color: var(--sc-muted); font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; }
  .sc-table tbody th { width: 17%; margin: 0; font-size: 0.9375rem; }
  .sc-table td.is-us { margin: 0; padding: 16px 18px; border-radius: 0; background: #fff; }
  .sc-table thead .is-us { background: #fff; color: var(--sc-brand-strong); border-radius: 14px 14px 0 0; box-shadow: inset 0 3px 0 var(--sc-brand); }
  .sc-table tbody tr:last-child .is-us { border-radius: 0 0 14px 14px; border-bottom: 0; }
  .sc-footer-brand { grid-column: auto; }
}

@media (min-width: 960px) {
  .sc-menu { display: flex; gap: 2px; margin-left: 28px; }
  .sc-menu a {
    padding: 8px 12px; border-radius: 10px; color: var(--sc-ink); font-weight: 500; text-decoration: none;
    transition: background-color 0.2s var(--sc-ease), color 0.2s var(--sc-ease);
  }
  .sc-menu a:hover { background: var(--sc-surface); color: var(--sc-brand); }
  .sc-hero { padding: 72px 0 44px; }
  .sc-hero-copy { max-width: 760px; }
  .sc-trust { margin-top: 44px; }
  .sc-tiles {
    grid-auto-flow: row; grid-template-rows: none; grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 12px; margin-inline: 0; padding: 0; overflow: visible;
  }
  .sc-pro-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: 56px; }
  .sc-faq-grid { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 56px; align-items: start; }
  .sc-phone {
    display: block; justify-self: center; width: 290px; aspect-ratio: 9 / 18.5; padding: 10px;
    border-radius: 44px; background: #071a12; rotate: 3deg;
    box-shadow: 0 50px 90px -40px rgb(0 0 0 / 70%), inset 0 0 0 2px rgb(255 255 255 / 14%);
  }
}

/* the collage needs room: next to a search panel that still fits a real query */
@media (min-width: 1100px) {
  .sc-hero-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 48px; }
  .sc-search.is-big { grid-template-columns: minmax(0, 1fr) 170px auto; }
  .sc-collage { display: block; position: relative; height: 470px; }
  .sc-collage-card { position: absolute; width: 62%; }
  .sc-collage-card.is-1 { top: 6px; left: 0; z-index: 2; rotate: -4deg; }
  .sc-collage-card.is-2 { top: 44px; right: 0; z-index: 1; rotate: 5deg; }
  .sc-collage-card.is-3 { bottom: 0; left: 20%; z-index: 3; rotate: -1deg; }
}

@media (min-width: 1200px) {
  .sc-feed { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  .sc-card-link:hover .sc-cover img, .sc-card-link:hover .sc-cover-letter, .sc-tile:hover img { transform: none; }
}
