:root {
  --bg: #0b0d12;
  --bg-2: #0f1218;
  --surface: #12161e;
  --line: #222834;
  --text: #d8dce5;
  --muted: #8b94a5;
  --accent: #5fc8c0;      /* приглушённый циан */
  --sakura: #e6a1b5;      /* сакура — только акценты */
  --seal: #c4444c;        /* красная печать */
  --radius: 10px;
  --mono: ui-monospace, "Cascadia Mono", "JetBrains Mono", Consolas, monospace;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #f6f4f1; --bg-2: #efece8; --surface: #ffffff; --line: #dcd7d0;
    --text: #1d2129; --muted: #5d6572; --accent: #14766f; --sakura: #b8475f; --seal: #b3363e;
  }
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.65 var(--sans); -webkit-font-smoothing: antialiased;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px; background-position: -1px -1px;
  background-attachment: fixed;
}
body::before { /* затемняем сетку, чтобы она едва читалась */
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: -1;
  background: radial-gradient(ellipse at 70% 0%, transparent 0%, var(--bg) 75%);
  opacity: .93;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
img, svg { max-width: 100%; }
.wrap { width: min(1080px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 8px; top: 8px; background: var(--surface); padding: 8px 12px; z-index: 99; }

/* шапка */
header.site {
  position: sticky; top: 0; z-index: 20; backdrop-filter: blur(10px);
  background: color-mix(in srgb, var(--bg) 85%, transparent); border-bottom: 1px solid var(--line);
}
.bar { display: flex; align-items: center; justify-content: space-between; height: 62px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 600; letter-spacing: .02em; }
.brand:hover { text-decoration: none; }
.brand small { display: block; font: 400 11px/1 var(--mono); color: var(--muted); letter-spacing: .08em; margin-top: 3px; }
.seal { width: 34px; height: 34px; flex: none; }
nav.main ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
nav.main a { display: block; padding: 8px 12px; color: var(--muted); border-radius: 6px; font-size: 14.5px; }
nav.main a:hover, nav.main a[aria-current="page"] { color: var(--text); background: var(--surface); text-decoration: none; }
nav.main a.ai { color: var(--sakura); }
.menu-btn { display: none; background: none; border: 1px solid var(--line); color: var(--text); border-radius: 6px; padding: 8px 12px; font: inherit; cursor: pointer; }

/* типографика */
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; font-weight: 650; letter-spacing: -.01em; }
h1 { font-size: clamp(28px, 5vw, 46px); }
h2 { font-size: clamp(22px, 3.2vw, 30px); }
h3 { font-size: 18px; }
p { margin: 0 0 1em; }
.lead { font-size: clamp(17px, 2vw, 20px); color: var(--muted); max-width: 62ch; }
.tag { font: 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.tag .jp { color: var(--sakura); letter-spacing: .1em; }
.tag::after { content: ""; height: 1px; width: 48px; background: var(--line); }

/* hero */
.hero { position: relative; padding: clamp(56px, 10vw, 110px) 0 clamp(40px, 7vw, 80px); overflow: hidden; }
.hero .kanji {
  position: absolute; right: -2%; top: 50%; transform: translateY(-50%);
  font: 700 clamp(220px, 34vw, 420px)/1 "Yu Mincho", "Noto Serif JP", "MS Mincho", serif;
  color: var(--sakura); opacity: .05; user-select: none; pointer-events: none;
}
.hero .sun { position: absolute; right: 9%; top: 14%; width: 120px; height: 120px; border-radius: 50%; border: 1px solid var(--seal); opacity: .35; }
.hero > .wrap { position: relative; }
.hero h1 em { font-style: normal; color: var(--accent); }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 8px;
  border: 1px solid var(--accent); color: var(--bg); background: var(--accent); font-weight: 600; cursor: pointer; font-size: 15px; font-family: inherit;
}
.btn:hover { text-decoration: none; filter: brightness(1.1); }
.btn.ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--accent); color: var(--accent); filter: none; }
.facts { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 34px; padding: 0; list-style: none; font: 13px var(--mono); color: var(--muted); }
.facts li::before { content: "◆ "; color: var(--sakura); font-size: 9px; vertical-align: 2px; }

/* секции */
section { padding: clamp(40px, 6vw, 72px) 0; }
section.alt { background: color-mix(in srgb, var(--bg-2) 80%, transparent); border-block: 1px solid var(--line); }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card {
  position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; color: var(--text); display: block; transition: border-color .2s, transform .2s;
}
a.card:hover { text-decoration: none; border-color: var(--accent); transform: translateY(-2px); }
.card .jp { position: absolute; right: 16px; top: 10px; font: 700 34px/1 "Yu Mincho", "Noto Serif JP", serif; color: var(--sakura); opacity: .22; }
.card p { color: var(--muted); font-size: 15px; margin-bottom: 0; }
.card .more { display: inline-block; margin-top: 14px; font: 13px var(--mono); color: var(--accent); }
.card.ai { border-color: color-mix(in srgb, var(--sakura) 45%, var(--line)); }

ul.checks { list-style: none; padding: 0; margin: 0 0 1em; }
ul.checks li { padding: 6px 0 6px 26px; position: relative; }
ul.checks li::before { content: ""; position: absolute; left: 2px; top: 14px; width: 10px; height: 10px; background: var(--sakura); clip-path: polygon(50% 0, 62% 38%, 100% 38%, 69% 60%, 81% 100%, 50% 75%, 19% 100%, 31% 60%, 0 38%, 38% 38%); }

.steps { counter-reset: s; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); padding: 0; list-style: none; }
.steps li { counter-increment: s; border-left: 1px solid var(--line); padding: 2px 0 2px 18px; }
.steps li::before { content: "0" counter(s); font: 13px var(--mono); color: var(--accent); display: block; margin-bottom: 4px; }
.steps b { display: block; margin-bottom: 4px; }
.steps span { color: var(--muted); font-size: 15px; }

.price { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 36px; background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--seal); border-radius: var(--radius); padding: 22px 26px; }
.price strong { font: 700 34px/1 var(--mono); color: var(--text); }
.price p { margin: 0; color: var(--muted); max-width: 52ch; }

.pgroup { margin-bottom: 26px; }
.pgroup h3 { font: 600 13px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--sakura); border-bottom: 1px solid var(--line); padding-bottom: 8px; }
.prow { display: flex; justify-content: space-between; gap: 20px; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.prow b { display: block; font-weight: 600; }
.prow span { color: var(--muted); font-size: 14.5px; }
.pprice { font: 600 15px var(--mono); white-space: nowrap; color: var(--accent); }
@media (max-width: 520px) { .prow { flex-direction: column; gap: 4px; } }

details { border-bottom: 1px solid var(--line); padding: 14px 0; }
details summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
details summary::after { content: "+"; color: var(--accent); font-family: var(--mono); }
details[open] summary::after { content: "–"; }
details p { color: var(--muted); margin: 10px 0 0; }

.links { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.links a { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; color: var(--text); display: flex; flex-direction: column; gap: 2px; }
.links a:hover { border-color: var(--accent); text-decoration: none; }
.links small { font: 12px var(--mono); color: var(--muted); }

/* divider-катана */
.katana { height: 14px; margin: 0; color: var(--line); }
.katana svg { width: 100%; height: 14px; display: block; }

/* форма */
form.order { display: grid; gap: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(18px, 3vw, 30px); }
form.order .row { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
label { display: grid; gap: 6px; font-size: 14px; color: var(--muted); }
input, select, textarea {
  width: 100%; background: var(--bg); color: var(--text); border: 1px solid var(--line); border-radius: 8px;
  padding: 11px 12px; font: 16px var(--sans);
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); }
textarea { min-height: 120px; resize: vertical; }
.note { font-size: 13px; color: var(--muted); }
.ok { color: var(--accent); font: 13px var(--mono); min-height: 1.4em; }

footer.site { border-top: 1px solid var(--line); padding: 36px 0 44px; color: var(--muted); font-size: 14px; }
footer.site .cols { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
footer.site h4 { margin: 0 0 8px; color: var(--text); font: 600 12px var(--mono); letter-spacing: .12em; text-transform: uppercase; }
footer.site ul { list-style: none; margin: 0; padding: 0; }
footer.site li { padding: 2px 0; }
.crumbs { font: 13px var(--mono); color: var(--muted); padding-top: 22px; }
.crumbs a { color: var(--muted); }
.prose { max-width: 70ch; }

@media (max-width: 760px) {
  .menu-btn { display: block; }
  nav.main { display: none; position: absolute; left: 0; right: 0; top: 62px; background: var(--bg); border-bottom: 1px solid var(--line); padding: 10px 16px 16px; }
  nav.main.open { display: block; }
  nav.main ul { flex-direction: column; }
  .hero .sun { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
