/* PeachyGuard — тёмный «премиальный» дизайн (по макету Lovable «Creator Rights Japan»), без Tailwind. */
:root {
  color-scheme: dark;
  --bg: oklch(0.15 0.03 340);
  --fg: oklch(0.96 0.015 60);
  --card: oklch(0.2 0.035 340);
  --muted: oklch(0.24 0.035 340);
  --muted-fg: oklch(0.78 0.03 40);
  --border: oklch(0.32 0.04 340);
  --primary: oklch(0.72 0.15 30);
  --primary-fg: oklch(0.15 0.03 340);
  --accent: oklch(0.68 0.2 0);
  --accent-fg: oklch(0.98 0.01 60);
  --ink: oklch(0.11 0.025 340);
  --peach: oklch(0.82 0.11 45);
  --success: oklch(0.78 0.15 155);
  --gold: oklch(0.85 0.12 80);
  --danger: oklch(0.75 0.16 25);
  --brand: linear-gradient(120deg, var(--peach), var(--primary) 45%, var(--accent));
  --seal: 0 25px 70px -20px color-mix(in oklab, var(--accent) 55%, transparent);
  --serif: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", Georgia, serif;
  --sans: "Zen Kaku Gothic New", "Hiragino Sans", "Yu Gothic", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--sans); color: var(--fg); line-height: 1.7;
  background-color: var(--bg);
  background-image:
    radial-gradient(60rem 40rem at 85% -10%, color-mix(in oklab, var(--accent) 28%, transparent), transparent 60%),
    radial-gradient(50rem 35rem at -10% 30%, color-mix(in oklab, var(--primary) 18%, transparent), transparent 60%),
    radial-gradient(color-mix(in oklab, var(--fg) 7%, transparent) 1px, transparent 1px);
  background-size: auto, auto, 22px 22px;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
a { color: inherit; }
.hidden { display: none !important; }
.wrap { max-width: 72rem; margin: 0 auto; padding-inline: max(20px, env(safe-area-inset-left, 0px)) max(20px, env(safe-area-inset-right, 0px)); }
.narrow { max-width: 48rem; }
.serif { font-family: var(--serif); }
h1, h2, h3 { font-family: var(--serif); font-weight: 800; text-wrap: balance; margin: 0; line-height: 1.2; }
h2 { font-size: clamp(1.8rem, 4.2vw, 3rem); }
h3 { font-size: 1.25rem; }
p { margin: 0; }
.muted { color: var(--muted-fg); }
.grad { background-image: var(--brand); background-size: 200% auto; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shine 6s linear infinite; }
.brand { background-image: var(--brand); }
.glass { background-color: color-mix(in oklab, var(--card) 70%, transparent); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid color-mix(in oklab, var(--fg) 12%, transparent); }
.eyebrow { font-size: .8rem; font-weight: 700; letter-spacing: .3em; color: var(--primary); text-transform: uppercase; margin-bottom: .75rem; }
section { scroll-margin-top: 80px; }
.sec { padding-block: 6rem; }
.lead { margin-top: 1rem; max-width: 42rem; color: var(--muted-fg); font-size: 1.05rem; }

/* header */
#top-bar { position: sticky; top: 0; z-index: 20; border-bottom: 1px solid color-mix(in oklab, var(--border) 50%, transparent); background: color-mix(in oklab, var(--bg) 60%, transparent); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); transition: background .2s; }
#top-bar.scrolled { background: color-mix(in oklab, var(--bg) 85%, transparent); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: .75rem; }
.logo { display: flex; align-items: center; gap: .5rem; font-family: var(--serif); font-weight: 800; font-size: 1.15rem; text-decoration: none; }
.logo img { width: 32px; height: 32px; }
.nav { display: none; gap: 2rem; font-size: .9rem; color: var(--muted-fg); }
.nav a { text-decoration: none; }
.nav a:hover { color: var(--fg); }
.bar-r { display: flex; align-items: center; gap: .75rem; }
.lang { font-size: .85rem; color: var(--muted-fg); text-decoration: none; border: 1px solid var(--border); border-radius: 999px; padding: .3rem .8rem; }
.lang:hover { color: var(--fg); }
@media (min-width: 860px) { .nav { display: flex; } }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; border-radius: 999px; font-weight: 700; text-decoration: none; cursor: pointer; border: 0; font: inherit; font-weight: 700; transition: transform .2s, filter .2s, background .2s; }
.btn-primary { background-image: var(--brand); color: var(--accent-fg); padding: 1rem 2rem; box-shadow: var(--seal); }
.btn-primary:hover { transform: translateY(-2px); filter: brightness(1.1); }
.btn-primary:disabled { opacity: .6; cursor: wait; }
.btn-sm { padding: .5rem 1.25rem; font-size: .9rem; box-shadow: none; }
.btn-ghost { padding: 1rem 1.75rem; color: var(--fg); }
.btn-ghost:hover { background: var(--card); }
.btn-line { padding: .8rem 1.25rem; border: 1px solid var(--border); background: transparent; color: var(--fg); width: 100%; }
.btn-line:hover { background: var(--muted); }
.w-full { width: 100%; }
.arrow { transition: transform .2s; }
.btn:hover .arrow { transform: translateX(4px); }

/* hero */
.hero { display: grid; gap: 3.5rem; align-items: center; padding-block: 4rem; }
@media (min-width: 900px) { .hero { grid-template-columns: 1.1fr 1fr; padding-block: 6rem 4rem; } }
.pill { display: inline-flex; align-items: center; gap: .5rem; border-radius: 999px; padding: .35rem 1rem; font-size: .875rem; margin-bottom: 1.5rem; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 10px var(--success); }
.hero h1 { font-size: clamp(2.2rem, 5.4vw, 3.4rem); line-height: 1.15; }
.hero .lead { font-size: 1.1rem; max-width: 36rem; margin-top: 1.5rem; }
.ctas { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; margin-top: 2.25rem; }
.fine { margin-top: 1.25rem; font-size: .875rem; color: var(--muted-fg); }
.nowrap { white-space: nowrap; }
@media (max-width: 420px) { .nowrap { white-space: normal; } }

/* case card */
.case { position: relative; animation: rise .8s ease-out .2s both; min-width: 0; }
.case .halo { position: absolute; inset: -1.5rem; border-radius: 999px; opacity: .3; filter: blur(48px); pointer-events: none; }
.case .card { position: relative; overflow: hidden; border-radius: 1.5rem; padding: 1.5rem; box-shadow: var(--seal); animation: float 6s ease-in-out infinite; }
.case .scan { position: absolute; inset: 0 0 auto; height: 6rem; pointer-events: none; background: linear-gradient(to bottom, transparent, color-mix(in oklab, var(--primary) 10%, transparent), transparent); animation: scan 2.6s linear infinite; }
.case .head { display: flex; align-items: center; justify-content: space-between; border-bottom: 1px dashed var(--border); padding-bottom: 1rem; }
.case .tiny { font-size: .75rem; letter-spacing: .15em; color: var(--muted-fg); }
.case .ttl { font-family: var(--serif); font-size: 1.25rem; font-weight: 800; }
.live { position: relative; display: flex; width: 12px; height: 12px; }
.live::before, .live::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--success); }
.live::before { animation: ring 2s ease-out infinite; }
.case ul { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: .75rem; }
.case li { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: .75rem; border-radius: .75rem; border: 1px solid color-mix(in oklab, var(--border) 60%, transparent); background: color-mix(in oklab, var(--muted) 60%, transparent); padding: .75rem 1rem; }
.case li b { display: block; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.case li small { font-size: .75rem; color: var(--muted-fg); }
.tag { flex-shrink: 0; border-radius: 999px; border: 1px solid color-mix(in oklab, var(--primary) 40%, transparent); padding: .25rem .75rem; font-size: .75rem; font-weight: 700; color: var(--primary); white-space: nowrap; }
.tag.ok { color: var(--success); border-color: color-mix(in oklab, var(--success) 40%, transparent); }
.case .foot { margin-top: 1rem; font-size: .75rem; color: var(--muted-fg); }
.stamp { position: absolute; right: -1rem; top: -1.5rem; display: grid; place-items: center; width: 7rem; height: 7rem; border-radius: 50%; border: 4px solid var(--primary); color: var(--primary); font-family: var(--serif); font-size: 1.35rem; font-weight: 800; text-align: center; line-height: 1.1; background: color-mix(in oklab, var(--bg) 80%, transparent); box-shadow: var(--seal); backdrop-filter: blur(12px); animation: stamp .7s cubic-bezier(.2,.9,.3,1.2) .9s both; }
@media (max-width: 520px) { .stamp { width: 5.5rem; height: 5.5rem; font-size: 1.05rem; right: -.25rem; } }

/* trust strip */
.trust { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-radius: 1.5rem; }
.trust > div { padding: 1.5rem; text-align: center; }
.trust b { display: block; font-family: var(--serif); font-size: 1.9rem; font-weight: 800; line-height: 1.3; }
.trust span { font-size: .875rem; color: var(--muted-fg); }
@media (min-width: 860px) { .trust { grid-template-columns: repeat(4, minmax(0, 1fr)); } .trust > div + div { border-left: 1px solid var(--border); } }

/* marquee */
.marquee { overflow: hidden; padding-block: 1.5rem; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee .track { display: flex; width: max-content; gap: .75rem; animation: marquee 40s linear infinite; }
.marquee span { border-radius: 999px; padding: .5rem 1.25rem; font-weight: 500; white-space: nowrap; }

/* cards & grids */
.grid3 { display: grid; gap: 1.5rem; margin-top: 3rem; }
@media (min-width: 860px) { .grid3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.grid2 { display: grid; gap: 1.5rem; margin-top: 2rem; }
@media (min-width: 760px) { .grid2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.box { border-radius: 1.5rem; padding: 2rem; position: relative; overflow: hidden; min-width: 0; transition: transform .25s, border-color .25s; }
.box:hover { transform: translateY(-4px); }
.box .blob { position: absolute; right: -2.5rem; top: -2.5rem; width: 8rem; height: 8rem; border-radius: 50%; opacity: .2; filter: blur(32px); transition: opacity .25s; }
.box:hover .blob { opacity: .4; }
.icon { display: grid; place-items: center; width: 3.5rem; height: 3.5rem; border-radius: 1rem; font-size: 1.5rem; box-shadow: var(--seal); }
.box h3 { margin-top: 1.5rem; }
.box p { margin-top: .5rem; color: var(--muted-fg); }

/* FANBOX comparison */
.compare { margin-top: 2.5rem; border-radius: 1.5rem; overflow-x: auto; }
.compare table { width: 100%; border-collapse: collapse; min-width: 34rem; }
.compare th, .compare td { padding: 1rem 1.25rem; text-align: left; border-bottom: 1px solid color-mix(in oklab, var(--border) 70%, transparent); vertical-align: top; }
.compare thead th { font-size: .85rem; color: var(--muted-fg); font-weight: 700; }
.compare thead th:last-child { color: var(--primary); }
.compare tbody tr:last-child td { border-bottom: 0; }
.compare td:nth-child(2) { color: var(--muted-fg); }
.compare td:last-child { font-weight: 700; color: var(--success); }

/* chain */
.ink { position: relative; overflow: hidden; border-block: 1px solid var(--border); background: var(--ink); }
.ink::before { content: ""; position: absolute; left: 50%; top: 0; height: 1px; width: 66%; transform: translateX(-50%); background-image: var(--brand); opacity: .6; }
.chain { list-style: none; padding: 0; margin: 3.5rem 0 0; display: grid; gap: 1.25rem; }
@media (min-width: 640px) { .chain { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .chain { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.chain li { border-radius: 1.5rem; padding: 1.75rem; transition: transform .25s, border-color .25s; }
.chain li:hover { transform: translateY(-4px); border-color: color-mix(in oklab, var(--primary) 60%, transparent); }
.num { display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 50%; border: 1px solid color-mix(in oklab, var(--primary) 60%, transparent); color: var(--primary); font-family: var(--serif); font-size: 1.2rem; font-weight: 800; transition: background .25s, color .25s; }
.chain li:hover .num { background: var(--primary); color: var(--primary-fg); }
.chain h3 { margin-top: 1.25rem; font-family: var(--sans); font-size: 1.1rem; font-weight: 700; }
.chain p { margin-top: .25rem; font-size: .9rem; color: var(--muted-fg); }

/* steps */
.step .big { font-family: var(--serif); font-size: 3.75rem; font-weight: 800; line-height: 1; }
.step h3 { margin-top: .75rem; }
.can h3 { font-family: var(--sans); font-size: 1.05rem; }
.can ul { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: .5rem; }
.can.yes { border-color: color-mix(in oklab, var(--success) 40%, transparent); }
.can.yes h3 { color: var(--success); }
.can.no h3, .can.no li { color: var(--muted-fg); }

/* demo form */
.demo { display: grid; gap: 2.5rem; align-items: start; }
@media (min-width: 900px) { .demo { grid-template-columns: .9fr 1.1fr; } }
.formcard { border-radius: 1.75rem; padding: 1.75rem; }
@media (min-width: 600px) { .formcard { padding: 2.25rem; } }
form { display: grid; gap: 1.25rem; }
label { display: block; }
label > span:first-child { font-weight: 700; font-size: .95rem; }
.opt { font-weight: 400; color: var(--muted-fg); }
.field { display: block; width: 100%; margin-top: .4rem; padding: .8rem 1rem; border-radius: .9rem; border: 1px solid var(--border); background: color-mix(in oklab, var(--bg) 70%, transparent); color: var(--fg); font: inherit; }
.field:focus { outline: 2px solid var(--primary); outline-offset: 1px; border-color: transparent; }
.check { display: flex; align-items: flex-start; gap: .75rem; font-size: .95rem; }
.check input { margin-top: .3rem; width: 1.2rem; height: 1.2rem; flex-shrink: 0; accent-color: var(--primary); }
.err { display: block; color: var(--danger); font-size: .85rem; font-weight: 700; min-height: 0; }
.err:empty { display: none; }
.form-error { border-radius: 1rem; padding: .9rem 1rem; background: color-mix(in oklab, var(--danger) 18%, transparent); font-weight: 700; font-size: .9rem; }
.form-done { border-radius: 1.75rem; padding: 2.5rem; text-align: center; font-weight: 700; font-size: 1.15rem; }
.form-done svg { width: 5rem; height: 5rem; display: block; margin: 0 auto 1rem; }
.wl .form-done { padding: 1rem; font-size: .95rem; background: var(--muted); border-radius: 1rem; }

/* pricing */
.center { text-align: center; }
.center .lead { margin-inline: auto; }
.plans { display: grid; gap: 1.5rem; margin-top: 3.5rem; align-items: stretch; }
@media (min-width: 1000px) { .plans { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.plan { border-radius: 1.5rem; display: flex; flex-direction: column; min-width: 0; }
.plan > .in { display: flex; flex-direction: column; height: 100%; padding: 2rem; }
.plan.feat { padding: 1px; background-image: var(--brand); box-shadow: var(--seal); }
.plan.feat > .in { border-radius: calc(1.5rem - 1px); background: var(--card); }
@media (min-width: 1000px) { .plan.feat { margin-block: -1rem; } }
.badge { align-self: flex-start; margin-bottom: 1rem; border-radius: 999px; padding: .25rem .75rem; font-size: .75rem; font-weight: 700; color: var(--accent-fg); background-image: var(--brand); }
.plan h3 { font-size: 1.5rem; }
.plan .note { margin-top: .25rem; font-size: .9rem; color: var(--muted-fg); }
.price { margin-top: 1.5rem; font-family: var(--serif); font-size: 2.9rem; font-weight: 800; line-height: 1.1; }
.price small { font-family: var(--sans); font-size: 1rem; font-weight: 400; color: var(--muted-fg); margin-left: .25rem; }
.founder { margin-top: .5rem; font-size: .85rem; font-weight: 700; color: var(--gold); }
.plan ul { list-style: none; padding: 0; margin: 1.5rem 0 2rem; display: grid; gap: .7rem; font-size: .92rem; flex: 1; align-content: start; }
.plan li { padding-left: 1.4rem; position: relative; }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--primary); font-weight: 700; }
.plan form { gap: .75rem; }
.paynote { margin-top: 2.5rem; text-align: center; font-size: .9rem; color: var(--muted-fg); }

/* guides */
.guides { display: grid; gap: 1.25rem; margin-top: 2.5rem; }
@media (min-width: 760px) { .guides { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.guide { display: flex; flex-direction: column; border-radius: 1.5rem; padding: 1.75rem; text-decoration: none; transition: transform .25s, border-color .25s; }
.guide:hover { transform: translateY(-4px); border-color: color-mix(in oklab, var(--primary) 60%, transparent); }
.guide h3 { font-size: 1.15rem; }
.guide p { margin-top: .6rem; font-size: .9rem; color: var(--muted-fg); flex: 1; }
.guide span { margin-top: 1rem; font-weight: 700; color: var(--primary); }
.headrow { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 1rem; }
.link { color: var(--primary); font-weight: 700; text-decoration: none; }

/* faq */
.faq { display: grid; gap: .75rem; margin-top: 2.5rem; }
.faq details { border-radius: 1rem; padding: 1.25rem 1.5rem; }
.faq details[open] { border-color: color-mix(in oklab, var(--primary) 50%, transparent); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 1rem; font-weight: 700; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { font-style: normal; display: grid; place-items: center; flex-shrink: 0; width: 2rem; height: 2rem; border-radius: 50%; border: 1px solid var(--border); color: var(--primary); transition: transform .25s; }
.faq details[open] summary i { transform: rotate(45deg); }
.faq details p { margin-top: .75rem; color: var(--muted-fg); }

/* final cta */
.final { position: relative; overflow: hidden; max-width: 64rem; margin: 0 auto; border-radius: 2rem; padding: 4rem 2rem; text-align: center; color: var(--accent-fg); background-image: var(--brand); box-shadow: var(--seal); }
.final h2 { color: var(--accent-fg); }
.final p { margin: 1.25rem auto 0; max-width: 36rem; font-size: 1.1rem; opacity: .95; }
.final .btn { margin-top: 2.25rem; background: var(--bg); color: var(--fg); padding: 1rem 2.25rem; }
.final .btn:hover { transform: translateY(-2px); }

/* footer */
footer { border-top: 1px solid var(--border); padding-block: 3rem; font-size: .9rem; color: var(--muted-fg); margin-top: 6rem; }
.fgrid { display: grid; gap: 2rem; }
@media (min-width: 860px) { .fgrid { grid-template-columns: 1.3fr 1fr 1.5fr; } }
footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
footer a { text-decoration: none; }
footer a:hover { color: var(--fg); }
footer .logo { color: var(--fg); margin-bottom: .75rem; }
.copy { margin-top: 2.5rem; font-size: .8rem; }

/* scroll reveal (client.js добавляет .in) */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease-out, transform .8s ease-out; }
.reveal.in { opacity: 1; transform: none; }
.rise { animation: rise .8s ease-out both; }

@keyframes stamp { 0% { transform: scale(2.4) rotate(-24deg); opacity: 0; } 60% { transform: scale(.92) rotate(-10deg); opacity: 1; } 100% { transform: scale(1) rotate(-12deg); opacity: 1; } }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes scan { 0% { transform: translateY(-100%); } 100% { transform: translateY(400%); } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes ring { 0% { transform: scale(.8); opacity: .7; } 100% { transform: scale(1.8); opacity: 0; } }
@keyframes shine { to { background-position: 200% center; } }
@keyframes float { 50% { transform: translateY(-12px); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
.gold { color: var(--gold); }
@media (min-width: 900px) { .sticky { position: sticky; top: 100px; } }
.fine .nowrap { white-space: nowrap; }

/* ===== гайды и политика (.doc) ===== */
.doc { padding-block: 3.5rem 2rem; }
.doc > div, .doc > article { max-width: 48rem; margin-inline: auto; }
.doc > div:has(.gcards), .doc > div:has(> h2 + .gcards) { max-width: none; }
.doc > article + div { max-width: none; margin-top: 5rem; }
.doc h1 { font-size: clamp(2rem, 5vw, 3.2rem); margin-top: .75rem; }
.doc h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); }
.doc article > nav { font-size: .875rem; color: var(--muted-fg); }
.doc article > nav a { text-decoration: none; }
.doc article > nav a:hover, .doc a:not(.btn):not(.gcard):hover { color: var(--primary); }
.doc p { margin-top: 1rem; }
.doc article > p:first-of-type { font-size: .85rem; color: var(--muted-fg); margin-top: .75rem; }
.doc article > p:nth-of-type(2), .doc > div > p:first-of-type { font-size: 1.1rem; color: var(--muted-fg); }
.doc section { margin-top: 2.75rem; scroll-margin-top: 90px; }
.doc section p, .doc section li { color: color-mix(in oklab, var(--fg) 88%, var(--muted-fg)); }
.doc ul, .doc ol { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: .65rem; }
.doc li { display: flex; gap: .75rem; align-items: flex-start; min-width: 0; }
.doc li > span:last-child { min-width: 0; }
.doc section a, .doc .sum a { color: var(--peach); text-underline-offset: 3px; overflow-wrap: anywhere; }
.sum { margin-top: 2rem; border-radius: 1.5rem; padding: 1.5rem; }
.sum li { font-weight: 700; }
.ck { display: inline-grid; flex-shrink: 0; width: 1.25rem; height: 1.25rem; margin-top: .2rem; color: var(--success); }
.ck svg, .gicon svg, .gcard > span:last-child svg { width: 100%; height: 100%; }
.n { display: grid; place-items: center; flex-shrink: 0; width: 1.8rem; height: 1.8rem; border-radius: 50%; border: 1px solid color-mix(in oklab, var(--primary) 60%, transparent); color: var(--primary); font-family: var(--serif); font-weight: 800; font-size: .9rem; }
.bul { flex-shrink: 0; width: .75rem; height: .375rem; margin-top: .7rem; border-radius: 999px; background-image: var(--brand); }
.cta { margin-top: 3rem; border-radius: 1.75rem; padding: 1px; background-image: var(--brand); box-shadow: var(--seal); }
.cta-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 1.5rem; border-radius: calc(1.75rem - 1px); background: var(--card); padding: 1.75rem; }
.cta-in > div { flex: 1 1 18rem; min-width: 0; }
.cta-in p { margin-top: .25rem; }
.cta-in p:first-child { margin-top: 0; font-family: var(--serif); font-size: 1.25rem; font-weight: 800; }
.cta-in p + p { color: var(--muted-fg); }
.cta-in .btn { padding: .9rem 1.75rem; }
.doc details { margin-top: .75rem; border-radius: 1rem; padding: 1.1rem 1.4rem; background-color: color-mix(in oklab, var(--card) 70%, transparent); border: 1px solid color-mix(in oklab, var(--fg) 12%, transparent); }
.doc details[open] { border-color: color-mix(in oklab, var(--primary) 50%, transparent); }
.doc summary { display: flex; justify-content: space-between; gap: 1rem; font-weight: 700; cursor: pointer; list-style: none; color: var(--fg); }
.doc summary::-webkit-details-marker { display: none; }
.doc summary > span { color: var(--primary); flex-shrink: 0; transition: transform .25s; }
.doc details[open] summary > span { transform: rotate(45deg); }
.doc details p { margin-top: .6rem; color: var(--muted-fg); }
.gcards { display: grid; gap: 1.25rem; margin-top: 2rem; }
@media (min-width: 640px) { .gcards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .gcards { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.gcard { display: flex; flex-direction: column; border-radius: 1.5rem; padding: 1.5rem; text-decoration: none; min-width: 0; transition: transform .25s, border-color .25s; }
.gcard:hover { transform: translateY(-4px); border-color: color-mix(in oklab, var(--primary) 60%, transparent); }
.gicon { display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: .9rem; color: var(--primary-fg); box-shadow: var(--seal); }
.gicon > span { display: inline-grid; width: 1.4rem; height: 1.4rem; }
.gcard h3 { margin-top: 1.25rem; font-size: 1.1rem; line-height: 1.35; }
.gcard p { margin-top: .5rem; font-size: .88rem; color: var(--muted-fg); display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.gcard > span:last-child { margin-top: auto; padding-top: 1.25rem; display: inline-flex; align-items: center; gap: .35rem; font-weight: 700; font-size: .9rem; color: var(--primary); }
.gcard > span:last-child > span { display: inline-grid; width: 1rem; height: 1rem; transition: transform .2s; }
.gcard:hover > span:last-child > span { transform: translateX(4px); }
@media (min-width: 1000px) { .doc > article + div .gcards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ===== мобильная доводка ===== */
html, body { overflow-x: clip; }
.btn, .lang { white-space: nowrap; }
@media (max-width: 640px) { .case .halo { inset: 0; } }
@media (max-width: 480px) {
  .bar { gap: .5rem; }
  .bar-r { gap: .4rem; }
  .logo { font-size: 1rem; gap: .4rem; }
  .logo img { width: 28px; height: 28px; }
  .btn-sm { padding: .5rem .85rem; font-size: .8rem; }
  .lang { padding: .3rem .6rem; font-size: .75rem; }
}
@media (max-width: 350px) { .bar .logo > span { display: none; } }
@media (max-width: 480px) { .hero h1 { font-size: clamp(1.7rem, 8.4vw, 2.2rem); } .nowrap { white-space: nowrap; } }
.check input { width: 1.4rem; height: 1.4rem; margin-top: .15rem; }
