/* Главная razbor-pr.ru. Токены повторяют DESIGN.md и python/wb_bidder/static/app.css. */
:root {
  color-scheme: dark;
  --bg: #0b0b0b;
  --text: #f3f2ee;
  --muted: #b4b2ac;
  --lime: #d7ff00;
  --lime-strong: #c8ee00;
  --lime-edge: rgb(215 255 0 / 28%);
  --warning: #ffc65a;
  --success: #93e8a8;
  --success-soft: rgb(147 232 168 / 13%);
  --glass-regular: rgb(67 67 64 / 72%);
  --glass-dense: rgb(38 38 36 / 88%);
  --surface-muted: rgb(255 255 255 / 7%);
  --line: rgb(255 255 255 / 22%);
  --line-soft: rgb(255 255 255 / 12%);
  --shadow-border: 0 0 0 1px var(--line-soft), 0 8px 24px rgb(0 0 0 / 18%);
  --r-section: 18px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --page-max: 1240px;
  --gutter: clamp(16px, 4vw, 48px);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
html, body { max-width: 100%; overflow-x: clip; }
body { min-width: 320px; margin: 0; background: var(--bg); color: var(--text); font-size: 15px; line-height: 1.5; }
::selection { background: var(--lime); color: var(--bg); }
a { color: inherit; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; border-radius: 4px; }
* { scrollbar-color: rgb(255 255 255 / 22%) transparent; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

.wrap { max-width: var(--page-max); margin: 0 auto; padding: 0 var(--gutter); }

/* Шапка */
.site-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; max-width: var(--page-max); margin: 0 auto; padding: 18px var(--gutter); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 42px; height: 42px; color: var(--lime); filter: drop-shadow(0 0 10px rgb(215 255 0 / 20%)); }
.brand-copy { display: grid; line-height: 1.15; }
.brand-copy strong { font-size: 18px; font-weight: 800; letter-spacing: -0.02em; }
.brand-copy small { color: var(--muted); font-size: 12px; }
.head-actions { display: flex; align-items: center; gap: 8px; }

/* Кнопки по DESIGN.md: 32px, pill */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 32px; padding: 0 16px; border: 1px solid transparent; border-radius: 999px;
  font: inherit; font-size: 12px; font-weight: 750; letter-spacing: 0.08em; text-transform: uppercase;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color 160ms var(--ease-out), transform 120ms var(--ease-out), border-color 160ms;
}
.btn:active { transform: scale(0.97); }
.btn--primary { background: var(--lime); color: var(--bg); }
.btn--primary:hover { background: var(--lime-strong); }
.btn--ghost { background: var(--glass-regular); color: var(--text); border-color: var(--line-soft); }
.btn--ghost:hover { border-color: var(--lime-edge); }

/* Статусы возможностей */
.status {
  display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 9px;
  border-radius: 999px; font-size: 11px; font-weight: 750; letter-spacing: 0.06em;
  text-transform: uppercase; white-space: nowrap;
}
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status--live { background: var(--success-soft); color: var(--success); }
.status--soon { background: var(--surface-muted); color: var(--text); }
.status--soon::before { background: var(--warning); }
.status--idea { background: transparent; color: var(--muted); box-shadow: inset 0 0 0 1px var(--line); }
.status--idea::before { background: transparent; box-shadow: inset 0 0 0 1px currentColor; }

.icon { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Первый экран: знак как в финале ролика про РнП —
   линия обводит «Р», контур заливается лаймом, вспышка и расходящийся круг. */
.hero { display: grid; justify-items: center; text-align: center; gap: 22px; padding-top: clamp(32px, 7vw, 96px); padding-bottom: clamp(40px, 6vw, 80px); }
.mark-stage { position: relative; display: grid; place-items: center; width: clamp(120px, 16vw, 200px); aspect-ratio: 1; }
.big-mark { position: relative; z-index: 1; width: 100%; overflow: visible; color: var(--lime); filter: drop-shadow(0 0 24px rgb(215 255 0 / 24%)); }
.mark-fill { fill: currentColor; }
.mark-line { fill: none; stroke: currentColor; stroke-width: .42; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 100 101; opacity: 0; }
.mark-tip { opacity: 0; }
.mark-ring, .mark-flare, .mark-streak { position: absolute; left: 50%; top: 50%; pointer-events: none; opacity: 0; }
.mark-ring { width: 130%; aspect-ratio: 1; border-radius: 50%; border: 2px solid rgb(215 255 0 / 70%); transform: translate(-50%, -50%); }
.mark-flare { width: 520%; aspect-ratio: 1.6; transform: translate(-50%, -50%); mix-blend-mode: screen; background: radial-gradient(ellipse at center, rgb(240 255 170 / 90%) 0, rgb(215 255 0 / 40%) 12%, rgb(215 255 0 / 0%) 45%); }
.mark-streak { width: 640%; height: 5px; transform: translate(-50%, -50%) scaleX(.4); filter: blur(2px); background: linear-gradient(90deg, transparent 0, rgb(215 255 0 / 0%) 10%, rgb(240 255 170 / 90%) 50%, rgb(215 255 0 / 0%) 90%, transparent 100%); }
@media (prefers-reduced-motion: no-preference) {
  .mark-line { opacity: 1; stroke-dashoffset: 100; animation: mark-draw 1.5s linear .3s forwards, mark-fade .6s ease-out 1.95s forwards; }
  .mark-tip { opacity: 1; animation: mark-fade .4s ease-out 1.75s forwards; }
  .mark-fill { opacity: 0; animation: mark-fill .7s var(--ease-out) 1.8s forwards; }
  .big-mark { animation: mark-glow 2.4s ease-out 1.6s both; }
  .mark-flare { animation: mark-flash 1.3s ease-out 2.4s forwards; }
  .mark-streak { animation: mark-streak 1.3s ease-out 2.4s forwards; }
  .mark-ring { animation: mark-ring 1.4s cubic-bezier(.2, .7, .3, 1) 2.4s forwards; }
}
@keyframes mark-draw { to { stroke-dashoffset: 0; } }
@keyframes mark-fade { to { opacity: 0; } }
@keyframes mark-fill { from { opacity: 0; } to { opacity: 1; } }
@keyframes mark-glow {
  0% { filter: drop-shadow(0 0 8px rgb(215 255 0 / 45%)); }
  40% { filter: drop-shadow(0 0 34px rgb(215 255 0 / 60%)); }
  100% { filter: drop-shadow(0 0 24px rgb(215 255 0 / 24%)); }
}
@keyframes mark-flash { 0% { opacity: 0; } 6% { opacity: 1; } 100% { opacity: 0; } }
@keyframes mark-streak { 0% { opacity: 0; transform: translate(-50%, -50%) scaleX(.4); } 6% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -50%) scaleX(1.6); } }
@keyframes mark-ring { 0% { width: 130%; opacity: .8; } 100% { width: 520%; opacity: 0; } }

.hero h1 { font-size: clamp(40px, 6.6vw, 92px); font-weight: 800; line-height: 0.98; letter-spacing: -0.04em; }
.hero h1 span { display: block; color: var(--muted); }
.hero__lead { max-width: 58ch; color: var(--muted); font-size: clamp(16px, 1.5vw, 19px); }
.hero__lead b { color: var(--text); font-weight: 650; }
.cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }

/* Разобранный магазин: стопка слоёв раздвигается при прокрутке */
.explode { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 0 40px; }
.stack-view { position: sticky; top: 0; height: 100vh; display: grid; place-items: center; overflow: hidden; }
.scene { --plate: clamp(190px, 19vw, 260px); --gap: 22px; --lift: 130px; width: var(--plate); height: var(--plate); perspective: 1600px; }
.iso { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transform: translateY(calc((var(--gap) * 8 + var(--lift)) * 0.4)) rotateX(58deg) rotateZ(-40deg); }
.plate {
  position: absolute; inset: 0; border-radius: 24px; padding: 18px;
  display: grid; align-content: space-between; color: var(--muted);
  background: linear-gradient(145deg, #4b4b47, #2a2a27);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 16%), 0 0 0 1px var(--line-soft), 0 30px 40px rgb(0 0 0 / 28%);
  transform: translateZ(calc(var(--i) * var(--gap) + var(--above, 0px)));
  transition: transform 700ms var(--ease-out), box-shadow 400ms var(--ease-out), background 400ms;
}
.plate:nth-child(1) { --i: 0; } .plate:nth-child(2) { --i: 1; } .plate:nth-child(3) { --i: 2; }
.plate:nth-child(4) { --i: 3; } .plate:nth-child(5) { --i: 4; } .plate:nth-child(6) { --i: 5; }
.plate:nth-child(7) { --i: 6; } .plate:nth-child(8) { --i: 7; } .plate:nth-child(9) { --i: 8; }
.plate__name { font-size: 12px; font-weight: 750; letter-spacing: 0.08em; text-transform: uppercase; }
.plate.is-active { color: var(--text); box-shadow: inset 0 1px 0 rgb(255 255 255 / 16%), 0 0 0 1.5px rgb(215 255 0 / 55%), 0 30px 40px rgb(0 0 0 / 28%); }
.plate.is-active .plate__name { color: var(--lime); }
/* Подписи видны только у активной плиты и у крышки стопки: у остальных их закрывают соседние плиты. */
.plate:not(.is-active):not(:last-child) .plate__name { visibility: hidden; }
.plate--future { background: rgb(31 31 29); box-shadow: 0 30px 40px rgb(0 0 0 / 28%); outline: 1.5px dashed rgb(255 255 255 / 30%); outline-offset: -1px; }
.plate--future.is-active { outline-color: rgb(215 255 0 / 55%); }
.plate--idea { outline-color: rgb(255 255 255 / 18%); }
.plate--idea .plate__name { color: rgb(180 178 172 / 60%); }
.plate--idea.is-active .plate__name { color: var(--lime); }
.glyph { width: 100%; height: auto; opacity: 0.9; }
.layer-count { position: absolute; left: 0; bottom: 28px; width: 100%; margin: 0; text-align: center; color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.layer-count b { color: var(--text); }

.steps { display: grid; padding: 12vh 0 24vh; }
.step { min-height: 76vh; display: grid; align-content: center; gap: 12px; padding: 24px 0; }
.step__tool { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 20px; font-weight: 750; letter-spacing: -0.01em; }
.step__pain { font-size: clamp(28px, 3.4vw, 46px); font-weight: 800; line-height: 1.04; letter-spacing: -0.035em; }
.step__desc { color: var(--muted); font-size: 16.5px; max-width: 46ch; }
.step__desc b { color: var(--text); font-weight: 650; }
.js .step { opacity: 0.32; transition: opacity 500ms var(--ease-out); }
.js .step.is-active { opacity: 1; }

/* Честные границы */
.honest-wrap, .community-wrap { padding-top: clamp(64px, 9vw, 120px); }
.honest { display: grid; gap: 22px; }
.honest h2, .community h2 { font-size: clamp(26px, 3.2vw, 40px); line-height: 1.1; letter-spacing: -0.03em; }
.honest ul { list-style: none; margin: 0; padding: 0; display: grid; }
.honest li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 8px 32px; padding: 16px 0; border-top: 1px solid var(--line-soft); }
.honest li strong { font-size: 17px; }
.honest li span { color: var(--muted); }
.honest .coda { font-size: clamp(18px, 2vw, 22px); font-weight: 700; letter-spacing: -0.01em; }
.honest .coda em { font-style: normal; color: var(--muted); }

/* Сообщество */
.community { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 24px 48px; align-items: start; }
.community > div > p { color: var(--muted); max-width: 46ch; margin-top: 14px; }
.tg-links { display: grid; gap: 10px; }
.tg-link {
  display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; gap: 14px; align-items: center;
  padding: 14px 16px; border-radius: var(--r-section); background: var(--glass-dense);
  box-shadow: var(--shadow-border); text-decoration: none;
  transition: box-shadow 200ms var(--ease-out);
}
.tg-link:hover { box-shadow: 0 0 0 1px var(--lime-edge), 0 14px 32px rgb(0 0 0 / 24%); }
.tg-link__avatar { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 1px var(--line-soft); }
.tg-link b { display: block; font-size: 16px; }
.tg-link small { display: block; color: var(--muted); font-size: 13px; line-height: 1.4; }
.tg-link .icon { color: var(--muted); }

.finale { padding-top: clamp(72px, 11vw, 150px); padding-bottom: clamp(56px, 8vw, 96px); display: grid; justify-items: center; text-align: center; gap: 18px; }
.finale h2 { font-size: clamp(36px, 6vw, 76px); letter-spacing: -0.04em; line-height: 1; }
.finale h2 span { color: var(--muted); }

/* Тариф: одна панель — слева цена и регистрация, справа условия строками */
.tariff-wrap { display: grid; gap: 22px; padding-top: clamp(64px, 9vw, 120px); }
.tariff-wrap h2 { font-size: clamp(26px, 3.2vw, 40px); line-height: 1.1; letter-spacing: -0.03em; }
.tariff {
  display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 24px 48px;
  padding: clamp(20px, 3vw, 32px); border-radius: 24px; background: var(--glass-dense); box-shadow: var(--shadow-border);
}
.tariff__offer { display: grid; align-content: start; justify-items: start; gap: 14px; }
.tariff__name { font-size: 20px; font-weight: 750; letter-spacing: -0.01em; }
.tariff__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.tariff__price b { font-size: clamp(44px, 6vw, 72px); font-weight: 800; line-height: 1; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.tariff__price span { color: var(--muted); font-size: 17px; }
.tariff__trial { font-size: 16.5px; max-width: 34ch; }
.tariff__note { color: var(--muted); font-size: 13px; max-width: 46ch; }
.tariff__terms { list-style: none; margin: 0; padding: 0; display: grid; }
.tariff__terms li { display: grid; gap: 2px; padding: 12px 0; border-top: 1px solid var(--line-soft); }
.tariff__terms li:first-child { border-top: 0; padding-top: 0; }
.tariff__terms strong { font-size: 16px; }
.tariff__terms span { color: var(--muted); }

/* Страницы документов: оферта и политика */
.doc { max-width: 800px; margin: 0 auto; padding: clamp(24px, 5vw, 64px) var(--gutter) clamp(56px, 8vw, 96px); }
.doc h1 { font-size: clamp(26px, 3.2vw, 40px); line-height: 1.1; letter-spacing: -0.03em; }
.doc__meta { margin-top: 12px; color: var(--muted); }
.doc h2 { margin: 36px 0 12px; font-size: 20px; font-weight: 750; letter-spacing: -0.01em; scroll-margin-top: 24px; }
.doc p, .doc li { font-size: 16px; line-height: 1.6; max-width: 72ch; }
.doc p + p { margin-top: 10px; }
.doc ul { margin: 10px 0 0; padding-left: 22px; }
.doc li + li { margin-top: 6px; }
.doc__requisites { margin: 0; display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 8px 24px; }
.doc__requisites dt { color: var(--muted); }
.doc__requisites dd { margin: 0; }

.site-foot {
  max-width: var(--page-max); margin: 0 auto; padding: 32px var(--gutter) 40px;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px;
  color: var(--muted); font-size: 13px; border-top: 1px solid var(--line-soft);
}
.site-foot a { color: var(--text); }
.site-foot__col { display: grid; align-content: start; justify-items: start; gap: 6px; }
.site-foot__label { color: var(--muted); font-size: 12px; font-weight: 750; letter-spacing: 0.08em; text-transform: uppercase; }
.site-foot__legal { grid-column: 1 / -1; padding-top: 16px; border-top: 1px solid var(--line-soft); }

@media (max-width: 900px) {
  .explode { grid-template-columns: minmax(0, 1fr); }
  .stack-view { height: 40vh; height: 40svh; z-index: 2; background: var(--bg); box-shadow: 0 12px 18px var(--bg); }
  .scene { --plate: 132px; --lift: 84px; }
  .plate { padding: 12px; border-radius: 18px; }
  .plate__name { font-size: 11px; }
  .plate:not(.is-active) .plate__name { visibility: hidden; }
  .layer-count { bottom: 4px; }
  .steps { padding: 0 0 40vh; }
  /* Текст шага начинается сразу под закреплённой стопкой и не уходит под неё. */
  .step { min-height: 56vh; align-content: start; padding: 5vh 0 24px; }
}
@media (max-width: 760px) {
  .honest li, .community, .tariff, .site-foot { grid-template-columns: minmax(0, 1fr); }
  .tariff__terms li:first-child { border-top: 1px solid var(--line-soft); padding-top: 12px; }
  .doc__requisites { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .doc__requisites dd + dt { margin-top: 10px; }
}
@media (max-width: 640px) {
  .brand-copy small { display: none; }
  .head-actions .btn--ghost { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; }
  .scene { --gap: 40px; }
}
