/* ══════════════════════════════════════════════════════════════════════
   Нашми AI — русская редакция (nashmi.vip)
   Birch cream · Gzhel cobalt · Khokhloma gold & crimson · tricolor hairline
   ══════════════════════════════════════════════════════════════════════ */
@import url("/assets/fonts.css");

:root {
  --serif: "PT Serif", Georgia, "Times New Roman", serif;
  --sans: "Golos Text", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

  --bg: #F6F3EC;
  --bg-2: #EFEADF;
  --paper: #FFFDF8;
  --ink: #10172A;
  --ink-2: #3A4256;
  --muted: #667085;
  --line: #E3DDD0;
  --line-2: #D6CEBE;

  --cobalt: #1F3F94;
  --cobalt-2: #2E5BDA;
  --cobalt-soft: #E8EEFB;
  --night: #0B1633;
  --night-2: #13245A;
  --gold: #B8862B;
  --gold-2: #D4A93C;
  --gold-soft: #F6EDD6;
  --crimson: #B3232D;
  --crimson-soft: #FBE9EA;
  --green: #1F7A4D;

  --flag-white: #FFFFFF;
  --flag-blue: #0039A6;
  --flag-red: #D52B1E;

  --shadow-1: 0 1px 2px rgba(16, 23, 42, .06);
  --shadow-2: 0 2px 6px rgba(16, 23, 42, .05), 0 18px 40px -18px rgba(16, 23, 42, .25);
  --shadow-3: 0 4px 12px rgba(16, 23, 42, .08), 0 40px 80px -30px rgba(11, 22, 51, .45);
  --r-sm: 8px; --r-md: 12px; --r-lg: 18px; --r-xl: 26px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --wrap: 1180px;
}
:root[data-theme="dark"] {
  --bg: #0A1022;
  --bg-2: #0E1630;
  --paper: #111A36;
  --ink: #EEF1F8;
  --ink-2: #C4CBDB;
  --muted: #8E98B0;
  --line: #22305A;
  --line-2: #2E3E6E;
  --cobalt: #7FA2FF;
  --cobalt-2: #9DB6FF;
  --cobalt-soft: rgba(127, 162, 255, .12);
  --gold: #E2BD5A;
  --gold-2: #E9C86F;
  --gold-soft: rgba(226, 189, 90, .12);
  --crimson: #F07A82;
  --crimson-soft: rgba(240, 122, 130, .12);
  --shadow-1: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow-2: 0 2px 8px rgba(0, 0, 0, .35), 0 20px 44px -18px rgba(0, 0, 0, .7);
  --shadow-3: 0 4px 14px rgba(0, 0, 0, .45), 0 44px 90px -30px rgba(0, 0, 0, .85);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--sans); font-size: 16.5px; line-height: 1.65;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--cobalt-2); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 700; line-height: 1.18; margin: 0; letter-spacing: -.005em; color: var(--ink); }
p { margin: 0; }
:focus-visible { outline: 2.5px solid var(--gold-2); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--gold-soft); color: var(--ink); }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; top: -60px; left: 16px; z-index: 100; background: var(--ink); color: var(--bg); padding: 10px 14px; border-radius: 10px; }
.skip:focus { top: 12px; }

/* Tricolor hairline */
.tricolor { height: 4px; background: linear-gradient(180deg, var(--flag-white) 0 33.3%, var(--flag-blue) 33.3% 66.6%, var(--flag-red) 66.6% 100%); }

/* ── Buttons ─────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: 999px; border: 1.5px solid transparent;
  font: 600 16px/1 var(--sans); cursor: pointer; white-space: nowrap; text-decoration: none !important;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s, color .2s, border-color .2s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--cobalt); color: #fff; box-shadow: 0 10px 24px -10px rgba(31, 63, 148, .7); }
.btn-primary:hover { background: #18337A; transform: translateY(-1px); }
:root[data-theme="dark"] .btn-primary { background: #2E5BDA; }
.btn-gold { background: linear-gradient(180deg, #E9C86F, #C99A2E); color: #1A1305; box-shadow: 0 10px 26px -12px rgba(201, 154, 46, .9); }
.btn-gold:hover { transform: translateY(-1px); filter: saturate(1.08); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { background: var(--paper); }
.btn-light { background: rgba(255, 255, 255, .1); color: #fff; border-color: rgba(255, 255, 255, .28); backdrop-filter: blur(6px); }
.btn-light:hover { background: rgba(255, 255, 255, .18); }
.btn-sm { min-height: 38px; padding: 0 16px; font-size: 14.5px; }

/* ── Header ──────────────────────────────────────────────────────────── */
.site-header { position: sticky; top: 0; z-index: 50; }
.site-header .bar {
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header .inner { display: flex; align-items: center; gap: 18px; height: 70px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none !important; }
.brand img { width: 40px; height: 40px; border-radius: 11px; box-shadow: var(--shadow-1); }
.brand b { font-family: var(--serif); font-size: 21px; letter-spacing: .01em; }
.brand small { display: block; font-size: 11.5px; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; margin-top: 2px; }
.nav { display: flex; gap: 4px; margin-inline-start: auto; align-items: center; }
.nav a { color: var(--ink-2); font-weight: 500; font-size: 15.5px; padding: 8px 12px; border-radius: 10px; text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); background: var(--bg-2); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  width: 42px; height: 42px; border-radius: 12px; display: inline-grid; place-items: center;
  border: 1px solid var(--line); background: var(--paper); color: var(--ink-2); cursor: pointer;
}
.icon-btn:hover { color: var(--ink); border-color: var(--line-2); }
.icon-btn svg { width: 19px; height: 19px; }
.menu-toggle { display: none; }

/* ── Hero ────────────────────────────────────────────────────────────── */
.hero {
  position: relative; overflow: hidden; color: #F4F6FC;
  background: radial-gradient(120% 90% at 85% 0%, #24438F 0%, transparent 55%),
              radial-gradient(80% 70% at 0% 100%, #1A2B66 0%, transparent 60%),
              linear-gradient(160deg, #0A1430 0%, #0E1C46 55%, #0A1330 100%);
}
.hero::before { /* Gzhel ornament pattern */
  content: ""; position: absolute; inset: 0; opacity: .13; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='none' stroke='%23BFD0FF' stroke-width='1.4'%3E%3Cpath d='M60 18c8 10 8 22 0 32-8-10-8-22 0-32z'/%3E%3Cpath d='M60 102c8-10 8-22 0-32-8 10-8 22 0 32z'/%3E%3Cpath d='M18 60c10-8 22-8 32 0-10 8-22 8-32 0z'/%3E%3Cpath d='M102 60c-10-8-22-8-32 0 10 8 22 8 32 0z'/%3E%3Ccircle cx='60' cy='60' r='5'/%3E%3Cpath d='M30 30c6 2 9 6 10 12M90 30c-6 2-9 6-10 12M30 90c6-2 9-6 10-12M90 90c-6-2-9-6-10-12'/%3E%3Ccircle cx='0' cy='0' r='4'/%3E%3Ccircle cx='120' cy='0' r='4'/%3E%3Ccircle cx='0' cy='120' r='4'/%3E%3Ccircle cx='120' cy='120' r='4'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 120px 120px;
  mask-image: radial-gradient(ellipse at 70% 30%, #000 0%, transparent 75%);
}
.aurora { position: absolute; inset: -20% -10% auto; height: 70%; pointer-events: none; filter: blur(60px); opacity: .55; }
.aurora span { position: absolute; border-radius: 50%; mix-blend-mode: screen; animation: aurora 18s ease-in-out infinite alternate; }
.aurora span:nth-child(1) { width: 46%; height: 60%; left: 40%; top: 10%; background: #2F6BFF; }
.aurora span:nth-child(2) { width: 36%; height: 50%; left: 62%; top: 30%; background: #1FB6A6; animation-delay: -6s; opacity: .7; }
.aurora span:nth-child(3) { width: 30%; height: 40%; left: 20%; top: 25%; background: #6E4BFF; animation-delay: -12s; opacity: .6; }
@keyframes aurora { 0% { transform: translate(0, 0) scale(1); } 50% { transform: translate(-6%, 8%) scale(1.15); } 100% { transform: translate(5%, -4%) scale(.95); } }
.hero .inner { position: relative; display: grid; grid-template-columns: 1.08fr .92fr; gap: 48px; align-items: center; padding: 84px 0 96px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 13.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-2); }
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; border-radius: 2px; }
.hero h1 { color: #FFFFFF; font-size: clamp(38px, 5.2vw, 64px); margin-top: 18px; }
.hero h1 em { font-style: normal; background: linear-gradient(180deg, #F3D98C, #D4A93C); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { margin-top: 22px; font-size: clamp(17px, 1.6vw, 19.5px); color: #C9D4F2; max-width: 34em; }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 34px; }
.hero .badges { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 30px; color: #AFC0EA; font-size: 14.5px; }
.hero .badges span { display: inline-flex; align-items: center; gap: 8px; }
.hero .badges svg { width: 18px; height: 18px; color: var(--gold-2); }

/* Chat preview card in the hero */
.preview {
  position: relative; border-radius: var(--r-xl); padding: 18px; color: var(--ink);
  background: color-mix(in srgb, #FFFDF8 94%, transparent); box-shadow: var(--shadow-3);
  transform: rotate(-1.2deg); animation: float 7s ease-in-out infinite;
}
:root[data-theme="dark"] .preview { background: #111A36; color: var(--ink); }
@keyframes float { 0%, 100% { transform: rotate(-1.2deg) translateY(0); } 50% { transform: rotate(-1.2deg) translateY(-8px); } }
.preview .ph { display: flex; align-items: center; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.preview .ph img { width: 30px; height: 30px; border-radius: 9px; }
.preview .ph b { font-family: var(--serif); }
.preview .ph i { margin-inline-start: auto; font-style: normal; font-size: 12px; color: var(--green); display: inline-flex; align-items: center; gap: 6px; }
.preview .ph i::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.preview .msgs { display: grid; gap: 10px; padding: 14px 2px 4px; }
.pmsg { max-width: 88%; padding: 10px 14px; border-radius: 16px; font-size: 14.5px; line-height: 1.55; opacity: 0; animation: pop .5s var(--ease) forwards; }
.pmsg.u { justify-self: end; background: var(--cobalt); color: #fff; border-bottom-right-radius: 5px; }
.pmsg.a { background: var(--bg-2); border-bottom-left-radius: 5px; }
.pmsg:nth-child(1) { animation-delay: .4s; } .pmsg:nth-child(2) { animation-delay: 1.2s; } .pmsg:nth-child(3) { animation-delay: 2.2s; } .pmsg:nth-child(4) { animation-delay: 3s; }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
.preview .pin { margin-top: 12px; display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; color: var(--muted); font-size: 14px; }
.preview .pin span { margin-inline-start: auto; width: 32px; height: 32px; border-radius: 10px; background: var(--cobalt); display: grid; place-items: center; }
.preview .pin svg { width: 16px; height: 16px; color: #fff; }

/* ── Gift ribbon ─────────────────────────────────────────────────────── */
.gift {
  position: relative; margin-top: -44px; z-index: 2;
  display: grid; grid-template-columns: auto 1fr auto; gap: 22px; align-items: center;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-xl); padding: 22px 26px; box-shadow: var(--shadow-2);
}
.gift .seal { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 35% 30%, #F0D27A, #B8862B); color: #3A2A06; box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .35); }
.gift .seal svg { width: 30px; height: 30px; }
.gift h2 { font-size: 21px; }
.gift p { color: var(--ink-2); margin-top: 4px; }

/* ── Sections ────────────────────────────────────────────────────────── */
.section { padding: 96px 0; }
.section.alt { background: var(--bg-2); }
.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head.center { text-align: center; margin-inline: auto; }
.section-head h2 { font-size: clamp(30px, 3.6vw, 44px); margin-top: 12px; }
.section-head p { color: var(--ink-2); font-size: 18px; margin-top: 14px; }
.section .eyebrow { color: var(--gold); }

.ornament { display: block; width: 180px; height: 26px; margin: 0 auto 6px; color: var(--gold); }

.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.feature {
  position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); border-color: var(--line-2); }
.feature .fi { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; background: var(--cobalt-soft); color: var(--cobalt); margin-bottom: 18px; }
.feature:nth-child(3n+2) .fi { background: var(--gold-soft); color: var(--gold); }
.feature:nth-child(3n+3) .fi { background: var(--crimson-soft); color: var(--crimson); }
.feature .fi svg { width: 24px; height: 24px; }
.feature h3 { font-size: 20px; }
.feature p { color: var(--ink-2); margin-top: 8px; font-size: 15.5px; }

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; counter-reset: step; }
.step { position: relative; padding: 28px 26px 26px; border-radius: var(--r-lg); background: var(--paper); border: 1px solid var(--line); }
.step::before { counter-increment: step; content: counter(step); font-family: var(--serif); font-size: 46px; font-weight: 700; line-height: 1; color: var(--gold-2); opacity: .9; display: block; margin-bottom: 14px; }
.step h3 { font-size: 19px; }
.step p { color: var(--ink-2); margin-top: 8px; font-size: 15.5px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.list-check { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.list-check li { position: relative; padding-left: 34px; color: var(--ink-2); }
.list-check li::before { content: ""; position: absolute; left: 0; top: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--cobalt-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232E5BDA' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E") center/14px no-repeat; }

.quote-card {
  position: relative; border-radius: var(--r-xl); padding: 36px; color: #EEF2FC;
  background: linear-gradient(160deg, #0E1C46, #142A6B); box-shadow: var(--shadow-3); overflow: hidden;
}
.quote-card::after { content: "“"; position: absolute; right: 22px; top: -18px; font-family: var(--serif); font-size: 180px; color: rgba(212, 169, 60, .25); line-height: 1; }
.quote-card blockquote { margin: 0; font-family: var(--serif); font-size: 22px; line-height: 1.5; }
.quote-card cite { display: block; margin-top: 20px; font-style: normal; color: var(--gold-2); font-weight: 600; }
.quote-card cite small { display: block; color: #AFC0EA; font-weight: 400; margin-top: 2px; }

/* FAQ */
.faq { display: grid; gap: 12px; max-width: 860px; margin-inline: auto; }
.faq details { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); padding: 0 22px; transition: border-color .2s, box-shadow .2s; }
.faq details[open] { border-color: var(--line-2); box-shadow: var(--shadow-1); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 34px 18px 0; position: relative; font-weight: 600; font-size: 17px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 2px; top: 50%; width: 11px; height: 11px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: translateY(-70%) rotate(45deg); transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq .answer { padding: 0 0 20px; color: var(--ink-2); }
.faq .answer p + p { margin-top: 10px; }

/* CTA band */
.cta {
  position: relative; overflow: hidden; border-radius: var(--r-xl); padding: 56px; text-align: center; color: #fff;
  background: radial-gradient(90% 120% at 50% 0%, #2B4EB0 0%, #0E1C46 70%);
}
.cta h2 { color: #fff; font-size: clamp(28px, 3.4vw, 40px); }
.cta p { color: #C9D4F2; margin: 14px auto 0; max-width: 36em; font-size: 18px; }
.cta .actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }

/* Content pages */
.page-hero { padding: 64px 0 34px; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, var(--bg-2), var(--bg)); }
.page-hero h1 { font-size: clamp(32px, 4.4vw, 50px); margin-top: 12px; }
.page-hero p { color: var(--ink-2); font-size: 18.5px; margin-top: 14px; max-width: 46em; }
.crumbs { font-size: 14px; color: var(--muted); display: flex; gap: 8px; flex-wrap: wrap; }
.crumbs a { color: var(--muted); }
.prose { max-width: 780px; padding: 44px 0 90px; }
.prose h2 { font-size: 28px; margin: 44px 0 14px; }
.prose h3 { font-size: 21px; margin: 28px 0 10px; }
.prose p, .prose li { color: var(--ink-2); }
.prose p + p { margin-top: 14px; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li + li { margin-top: 6px; }
.prose .note { margin: 22px 0; padding: 16px 20px; border-left: 4px solid var(--gold-2); background: var(--gold-soft); border-radius: 0 var(--r-md) var(--r-md) 0; color: var(--ink); }
.prose table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 15.5px; }
.prose th, .prose td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.prose th { background: var(--bg-2); }

/* Forms (support) */
.form-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-xl); padding: 30px; box-shadow: var(--shadow-1); }
.field { display: grid; gap: 7px; }
.field > span { font-weight: 600; font-size: 14.5px; color: var(--ink-2); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line-2);
  background: var(--bg); color: var(--ink); font: inherit; transition: border-color .15s, box-shadow .15s;
}
.field textarea { min-height: 170px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--cobalt-2); box-shadow: 0 0 0 4px var(--cobalt-soft); }
.form-grid { display: grid; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.alert { border-radius: 12px; padding: 12px 16px; font-size: 15px; }
.alert.err { background: var(--crimson-soft); color: var(--crimson); }
.alert.ok { background: #E7F4EC; color: var(--green); }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Footer */
.site-footer { margin-top: 40px; background: var(--night); color: #AFC0EA; }
.site-footer .inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding: 56px 0 30px; }
.site-footer .brand { color: #fff; }
.site-footer .brand small { color: #8EA2D6; }
.site-footer p { margin-top: 14px; font-size: 15px; max-width: 30em; }
.site-footer h4 { font-family: var(--sans); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-2); margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.site-footer a { color: #D6E0FA; }
.site-footer .legal { border-top: 1px solid rgba(175, 192, 234, .16); padding: 18px 0 26px; display: flex; gap: 16px; flex-wrap: wrap; justify-content: space-between; font-size: 14px; color: #8EA2D6; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: .08s; } .reveal[data-d="2"] { transition-delay: .16s; } .reveal[data-d="3"] { transition-delay: .24s; }

/* ── Responsive ──────────────────────────────────────────────────────── */
@media (max-width: 1020px) {
  .hero .inner { grid-template-columns: 1fr; padding: 64px 0 88px; }
  .preview { max-width: 520px; }
  .features, .steps { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; gap: 36px; }
  .site-footer .inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .nav { display: none; position: absolute; top: 74px; left: 12px; right: 12px; flex-direction: column; align-items: stretch; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 10px; box-shadow: var(--shadow-3); }
  .nav.open { display: flex; }
  .nav a { padding: 12px 14px; }
  .menu-toggle { display: inline-grid; }
  .header-actions .btn { display: none; }
  .brand small { display: none; }
  .gift { grid-template-columns: 1fr; text-align: center; justify-items: center; padding: 22px; }
  .features, .steps { grid-template-columns: 1fr; }
  .section { padding: 68px 0; }
  .cta { padding: 40px 22px; }
  .form-row { grid-template-columns: 1fr; }
  .site-footer .inner { grid-template-columns: 1fr; }
  .preview { transform: none; animation: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Developers */
.prose code, .dev-layout code { font-family: var(--mono); font-size: .88em; background: var(--bg-2); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; color: var(--ink); }
pre.code { margin: 12px 0 18px; padding: 16px 18px; border-radius: var(--r-md); background: #0E1730; color: #E6ECFA; overflow-x: auto; font-size: 13.5px; line-height: 1.65; }
pre.code code { background: none; border: 0; padding: 0; color: inherit; font-size: inherit; }
.dev-layout { display: grid; grid-template-columns: minmax(0, 1fr) 390px; gap: 44px; align-items: start; padding: 44px 0 90px; }
.dev-layout > * { min-width: 0; }
.dev-layout .prose { padding: 0; }
.dev-console { position: sticky; top: 96px; }
.dev-user { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line); margin-bottom: 12px; }
.dev-user > div { min-width: 0; }
.dev-user b, .dev-user small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dev-user small { color: var(--muted); font-size: 13.5px; }
.key-list { display: grid; gap: 10px; margin: 12px 0; }
.key-item { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: var(--bg); display: grid; gap: 6px; }
.key-item .k { font-family: var(--mono); font-size: 13px; word-break: break-all; }
.key-item .meta { font-size: 12.5px; color: var(--muted); }
.key-item .row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.key-new { border: 1px solid var(--gold-2); background: var(--gold-soft); border-radius: 12px; padding: 14px; margin: 4px 0 12px; }
.key-new code { display: block; word-break: break-all; margin: 10px 0; background: var(--paper); }
.btn.danger { color: var(--crimson); }
.linkish { background: none; border: 0; padding: 0; font: inherit; color: var(--cobalt); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
:root[data-theme="dark"] .linkish { color: #9DB5F5; }
@media (max-width: 960px) { .dev-layout { grid-template-columns: minmax(0, 1fr); } .dev-console { position: static; } }
.prose td code { white-space: nowrap; }
