/* PureForm Guide — PF red + Mogi Studio glow cards */
:root {
  --bg: #07060a;
  --bg2: #0e0a0c;
  --card: rgba(22, 14, 18, 0.92);
  --line: rgba(255, 255, 255, 0.09);
  --line2: rgba(255, 255, 255, 0.15);
  --text: #f6f2f3;
  --muted: #9a8b90;
  --accent: #ff3b4a;
  --accent2: #ff6b7a;
  --accent-dim: rgba(255, 59, 74, 0.14);
  --glow: rgba(255, 59, 74, 0.28);
  --ok: #34d399;
  --bad: #f87171;
  --font: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Plus Jakarta Sans", Inter, system-ui, sans-serif;
  --radius: 16px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --wrap: min(1080px, calc(100% - 36px));
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  font-size: 15.5px;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 70% 45% at 50% -8%, rgba(255,59,74,.14), transparent 55%),
    radial-gradient(ellipse 40% 30% at 95% 30%, rgba(255,80,100,.06), transparent 55%),
    linear-gradient(180deg, rgba(7,6,10,.5) 0%, transparent 14%);
}
a { color: var(--accent2); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { width: var(--wrap); margin: 0 auto; position: relative; z-index: 1; }
.muted { color: var(--muted); }
.tiny { font-size: 13px; }

/* Top bar — full-bleed sticky (outside .wrap) so nothing scrolls “above” it */
.top {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  margin: 0;
  padding: 0;
  padding-top: env(safe-area-inset-top, 0px);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  background: rgba(7, 6, 10, 0.88);
  border-bottom: 1px solid rgba(255, 59, 74, 0.22);
}
.top-inner {
  width: var(--wrap);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  min-height: 48px;
}
.logo {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-weight: 800;
  letter-spacing: -0.03em; color: var(--text); text-decoration: none !important;
  line-height: 1;
  flex-shrink: 0;
  font-size: 17px;
}
.logo em { font-style: normal; color: var(--accent); margin-left: 0.06em; }
.logo-img { display: none !important; }
.logo-text { white-space: nowrap; }
.logo-dot {
  display: block;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--glow);
  flex-shrink: 0;
}
.top-nav {
  display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center;
  justify-content: flex-end;
}
.top-nav a { color: var(--muted); font-size: 13.5px; font-weight: 500; text-decoration: none; }
.top-nav a:hover { color: var(--text); }
@media (max-width: 640px) {
  .top-inner { padding: 10px 0; }
  .top-nav a:not(.btn):not(.lang-mini a) { display: none; }
  .logo { font-size: 15.5px; }
}
.lang-mini {
  display: inline-flex; align-items: center; gap: 0;
  border: 1px solid var(--line2); border-radius: 999px;
  overflow: hidden; font-size: 11.5px; font-weight: 700;
}
.lang-mini a {
  padding: 4px 9px; color: var(--muted); text-decoration: none !important;
  letter-spacing: 0.04em;
}
.lang-mini a.is-on {
  background: var(--accent-dim); color: var(--accent2);
}
.lang-mini a:hover { color: var(--text); background: rgba(255,255,255,.06); }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 10px 18px; border-radius: 999px;
  border: 1px solid var(--line2); background: rgba(255,255,255,.04);
  color: var(--text); font-weight: 600; font-size: 13.5px;
  cursor: pointer; transition: .15s var(--ease);
  text-decoration: none !important;
}
.btn:hover { background: rgba(255,255,255,.08); }
.btn-primary {
  border: none;
  background: linear-gradient(180deg, #ff5a66, #e11d2e);
  color: #fff;
  box-shadow: 0 8px 28px rgba(225, 29, 46, 0.35);
}
.btn-primary:hover { filter: brightness(1.06); }
.btn-sm { padding: 7px 14px; font-size: 12.5px; }

/* Glow card (Mogi Studio port → hue via --base) */
[data-glow] {
  --base: 0;
  --spread: 28;
  --g-radius: 16;
  --border: 1.5;
  --border-size: calc(var(--border) * 1px);
  --spotlight-size: 260px;
  --bg-spot-opacity: 0.12;
  --backup-border: rgba(255,255,255,.08);
  --backdrop: rgba(22, 14, 18, 0.94);
  --edge-a: rgba(255, 90, 100, 0.45);
  --edge-b: rgba(255, 255, 255, 0.08);
  --hue: calc(var(--base) + (var(--xp, 0.5) * var(--spread)));
  /* Local coords from pointer: --mx/--my as px (NOT fixed attachment) */
  --mx: 50%;
  --my: 40%;
  position: relative;
  isolation: isolate;
  border-radius: calc(var(--g-radius) * 1px);
  border: var(--border-size) solid var(--backup-border);
  background-image: radial-gradient(
    var(--spotlight-size) var(--spotlight-size) at var(--mx) var(--my),
    hsl(var(--hue) 95% 62% / var(--bg-spot-opacity)),
    transparent 70%
  );
  background-color: var(--backdrop);
  /* scroll = position relative to element; fixed broke cursor follow */
  background-attachment: scroll;
  background-repeat: no-repeat;
  box-shadow: 0 1rem 2rem -1rem rgba(0,0,0,.55);
  backdrop-filter: blur(10px);
}
[data-glow]::before {
  content: "";
  pointer-events: none;
  position: absolute;
  inset: calc(var(--border-size) * -1);
  border-radius: inherit;
  border: var(--border-size) solid transparent;
  background: linear-gradient(
    135deg,
    var(--edge-a),
    transparent 40%,
    transparent 60%,
    var(--edge-b)
  ) border-box;
  mask:
    linear-gradient(#fff 0 0) padding-box,
    linear-gradient(#fff 0 0);
  -webkit-mask:
    linear-gradient(#fff 0 0) padding-box,
    linear-gradient(#fff 0 0);
  mask-composite: exclude;
  -webkit-mask-composite: xor;
  z-index: 2;
}
/* Positive cards (хорошие / до-после / режимы) */
[data-glow].glow-ok {
  --base: 148;
  --spread: 22;
  --bg-spot-opacity: 0.16;
  --backup-border: rgba(52, 211, 153, 0.28);
  --edge-a: rgba(52, 211, 153, 0.55);
  --edge-b: rgba(167, 243, 208, 0.12);
  box-shadow:
    0 1rem 2rem -1rem rgba(0,0,0,.55),
    0 0 28px rgba(52, 211, 153, 0.12);
}
/* Negative cards (плохие исходники) */
[data-glow].glow-bad {
  --base: 0;
  --spread: 18;
  --bg-spot-opacity: 0.18;
  --backup-border: rgba(248, 113, 113, 0.32);
  --edge-a: rgba(248, 113, 113, 0.6);
  --edge-b: rgba(254, 202, 202, 0.1);
  box-shadow:
    0 1rem 2rem -1rem rgba(0,0,0,.55),
    0 0 28px rgba(239, 68, 68, 0.14);
}
/* Warning / tricky */
[data-glow].glow-warn {
  --base: 38;
  --spread: 16;
  --bg-spot-opacity: 0.15;
  --backup-border: rgba(245, 158, 11, 0.3);
  --edge-a: rgba(245, 158, 11, 0.5);
  --edge-b: rgba(253, 230, 138, 0.1);
}

/* Layout */
main { padding: 28px 0 80px; position: relative; z-index: 1; }
.hero {
  text-align: center;
  padding: 36px 0 28px;
}
.hero .eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--accent2);
  background: var(--accent-dim); border: 1px solid rgba(255,59,74,.25);
  padding: 6px 12px; border-radius: 999px; margin-bottom: 16px;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.55rem);
  font-weight: 800; letter-spacing: -0.03em;
  line-height: 1.15; margin: 0 0 12px;
}
.hero .lead {
  max-width: 540px; margin: 0 auto 22px;
  color: var(--muted); font-size: 15.5px;
}
.hero .btn-row {
  display: flex; flex-wrap: wrap; gap: 10px;
  justify-content: center;
}

.section { margin-top: 42px; }
.section-head {
  display: flex; flex-wrap: wrap; align-items: baseline;
  justify-content: space-between; gap: 10px;
  margin-bottom: 16px;
}
.section-head h2 {
  font-family: var(--font-display);
  font-size: 1.35rem; font-weight: 750;
  letter-spacing: -0.02em; margin: 0;
}
.section-head p { margin: 0; color: var(--muted); font-size: 13.5px; max-width: 420px; }

.toc {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  margin: 20px 0 8px;
}
.toc a {
  display: block; padding: 12px 14px;
  border-radius: 14px;
  color: var(--text); text-decoration: none !important;
  font-size: 13px; font-weight: 600;
  transition: .15s var(--ease);
}
.toc a:hover { transform: translateY(-1px); }
.toc a span {
  display: block; font-size: 11px; font-weight: 500;
  color: var(--muted); margin-top: 4px;
}

/* Tip cards */
.tip {
  padding: 18px 18px 16px;
  margin-bottom: 14px;
}
.tip-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 9px;
  background: var(--accent-dim); color: var(--accent2);
  font-weight: 800; font-size: 13px; margin-bottom: 10px;
}
.tip h3 {
  font-family: var(--font-display);
  font-size: 1.05rem; font-weight: 700;
  margin: 0 0 8px; letter-spacing: -0.02em;
}
.tip p { margin: 0 0 14px; color: var(--muted); font-size: 14px; }
.tip ul {
  margin: 0 0 14px; padding-left: 1.1em;
  color: var(--muted); font-size: 13.5px;
}
.tip li { margin: 4px 0; }

/* Always 2-up (desktop + phone): до | после */
.pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  align-items: stretch;
}
@media (max-width: 640px) {
  .pair { gap: 6px; }
  .tip { padding: 14px 12px 12px; }
  .shot .cap { font-size: 11px; padding: 22px 8px 8px; }
}
.shot {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: #120a0e;
  border: 1px solid var(--line);
  min-width: 0; /* grid shrink on mobile */
}
.shot img {
  display: block; width: 100%; height: auto;
  aspect-ratio: 3/4; object-fit: cover;
}
/* Big explicit verdict badge */
.shot .tag {
  position: absolute;
  left: 8px;
  top: 8px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 7px 11px;
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(0,0,0,.5), 0 0 0 1px rgba(0,0,0,.15);
  line-height: 1.15;
  max-width: calc(100% - 16px);
  white-space: nowrap;
}
@media (max-width: 640px) {
  .shot .tag {
    font-size: 11.5px;
    padding: 6px 9px;
    left: 5px;
    top: 5px;
    letter-spacing: 0.02em;
  }
}
.tag-ok {
  background: linear-gradient(180deg, #22c55e, #15803d);
  color: #fff;
  border: 1px solid rgba(255,255,255,.35);
  text-shadow: 0 1px 2px rgba(0,0,0,.35);
}
.tag-bad {
  background: linear-gradient(180deg, #ef4444, #b91c1c);
  color: #fff;
  border: 1px solid rgba(255,255,255,.35);
  text-shadow: 0 1px 2px rgba(0,0,0,.35);
}
.tag-before {
  background: linear-gradient(180deg, #3b82f6, #1d4ed8);
  color: #fff;
  border: 1px solid rgba(255,255,255,.3);
  text-shadow: 0 1px 2px rgba(0,0,0,.3);
}
/* Good result / «после» — same green family as tag-ok */
.tag-after {
  background: linear-gradient(180deg, #22c55e, #15803d);
  color: #fff;
  border: 1px solid rgba(255,255,255,.35);
  text-shadow: 0 1px 2px rgba(0,0,0,.35);
}
.tag-warn {
  background: linear-gradient(180deg, #f59e0b, #b45309);
  color: #fff;
  border: 1px solid rgba(255,255,255,.3);
  text-shadow: 0 1px 2px rgba(0,0,0,.3);
}
.shot .cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 28px 10px 9px;
  background: linear-gradient(transparent, rgba(0,0,0,.82));
  font-size: 12.5px; font-weight: 600;
}

/* Modes: each mode = source | result pair */
.mode-block {
  margin-bottom: 14px;
  padding: 14px 14px 12px;
}
.mode-block h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 6px;
  letter-spacing: -0.02em;
}
.mode-block .mode-lead {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 13px;
}

/* Prompt box */
.code {
  font-family: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  font-size: 12.5px; line-height: 1.55;
  background: rgba(0,0,0,.35);
  border: 1px solid rgba(255,59,74,.25);
  border-radius: 12px;
  padding: 14px 16px;
  color: #ffc9ce;
  overflow-x: auto;
  white-space: pre-wrap;
}

/* CTA */
.cta {
  text-align: center;
  padding: 28px 22px;
  margin-top: 48px;
}
.cta h2 {
  font-family: var(--font-display);
  margin: 0 0 8px;
  font-size: 1.45rem;
}
.cta p { margin: 0 0 18px; color: var(--muted); }

.foot {
  margin-top: 40px; padding: 20px 0 28px;
  border-top: 1px solid var(--line);
  color: var(--muted); font-size: 12.5px;
  display: flex; flex-wrap: wrap; gap: 10px 18px;
  justify-content: space-between;
}

.note-18 {
  font-size: 12.5px; color: var(--muted);
  border-left: 3px solid var(--accent);
  padding: 8px 0 8px 12px;
  margin: 16px auto 0; max-width: 520px; text-align: left;
}

/* CTA split — mirror hero (circle L · actions R) */
.cta.cta-split {
  display: grid;
  grid-template-columns: minmax(120px, 220px) minmax(0, 1fr);
  gap: clamp(18px, 4vw, 36px);
  align-items: center;
  padding: 28px 22px;
  border-radius: var(--radius);
  border: 1px solid rgba(255,59,74,.25);
  background:
    radial-gradient(ellipse 80% 80% at 10% 50%, rgba(255,59,74,.12), transparent 55%),
    var(--card);
  margin: 36px 0 24px;
}
.cta-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.cta-circle-wrap {
  width: min(200px, 46vw);
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(255,255,255,.12);
  box-shadow: 0 16px 40px rgba(0,0,0,.45), 0 0 32px rgba(255,59,74,.15);
  background: #1a1014;
}
.cta-circle { width: 100%; height: 100%; object-fit: cover; display: block; }
.cta-bubble {
  margin: 0;
  max-width: 20ch;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  padding: 8px 12px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.04);
}
.cta-copy { min-width: 0; }
.cta-kicker {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent2);
}
.cta.cta-split h2 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: clamp(22px, 4vw, 28px);
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.cta-lead {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 14.5px;
  max-width: 36ch;
}
.cta-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 300px;
}
.cta-actions .btn { width: 100%; justify-content: center; }
@media (max-width: 640px) {
  .cta.cta-split {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    padding: 22px 16px;
  }
  .cta-circle-wrap { width: min(140px, 42vw); }
  .cta-lead { margin-left: auto; margin-right: auto; }
  .cta-actions { max-width: 100%; width: 100%; }
}
