@font-face {
  font-family: Manrope;
  src: url('/assets/manrope.woff2') format('woff2');
  font-weight: 200 800;
  font-display: swap;
}
:root {
  font: 16px/1.45 Manrope, -apple-system, "Segoe UI", Arial, sans-serif;
  -webkit-text-size-adjust: 100%;
}
* { box-sizing: border-box }
body {
  --bg:#0b111c; --surface:#141f31; --tile:#101a29; --ink:#edf2fa; --muted:#a9b7cb;
  --accent:#bdceff; --line:#314158; --thin:#233046; --button-ink:var(--bg);
  --selected:color-mix(in srgb,var(--accent) 12%,var(--tile));
  --sphere-top:var(--selected); --sphere-base:var(--tile); --map-dot:var(--muted); --pin:var(--accent);
  --button:var(--accent); --radius:13px;
  margin:0; color:var(--ink); background:var(--bg); color-scheme:dark; min-height:100svh;
}
body.prism {
  --bg:#f5f7fb; --surface:#fff; --tile:#fff; --ink:#172a46; --muted:#52647d;
  --accent:#254f9b; --line:#cad3e0; --thin:#d9dfe9; --button-ink:#fff;
  --radius:9px; color-scheme:light;
}
body.pulse {
  --bg:#111413; --surface:#1a1d1b; --tile:#191c1a; --ink:#f0f1ec; --muted:#b3bcb3;
  --accent:#c7debb; --line:#39413b; --thin:#2e352f; --radius:10px;
}
body.arc {
  --bg:#faf9f5; --surface:#fffefa; --tile:#f6f5ee; --ink:#302f2a; --muted:#626054;
  --accent:#685129; --line:#d5cfc0; --thin:#e0dcd2; --button-ink:#fffefa; color-scheme:light;
}
body.wave {
  --bg:#101714; --surface:#18221d; --tile:#141d18; --ink:#edf4ed; --muted:#aec0b3;
  --accent:#b4d7b6; --line:#36473c; --thin:#2a382f; --radius:7px;
}
body.studio {
  --bg:#151618; --surface:#1d1f22; --tile:#191b1e; --ink:#f3f2ef; --muted:#bbbcc2;
  --accent:#e0e2e8; --line:#414247; --thin:#303236; --radius:8px;
}
a {color:inherit;text-underline-offset:.2em}
button,input {font:inherit;color:inherit}
button,summary,label.plan {cursor:pointer}
h1,h2,p {margin:0}
.skip,.sr,.plan input {position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.skip:focus {inset:5px auto auto 5px;width:auto;height:auto;clip-path:none;background:var(--surface);padding:10px;z-index:3}
:focus-visible {outline:2px solid var(--accent);outline-offset:3px}
.wrap {width:min(1180px,calc(100% - 96px));margin-inline:auto}
header {border-bottom:1px solid var(--thin)}
.mast,footer,footer nav,.brand,.support,.config,.step,.details-line {display:flex;align-items:center}
.mast {justify-content:space-between;min-height:67px;gap:12px}
.brand {gap:10px;text-decoration:none;font-size:1.45rem;font-weight:780;letter-spacing:-.065em}
.brand-mark {width:23px;height:29px;display:block}
.wave .brand-mark {width:30px}
.support {min-height:39px;border:1px solid var(--line);border-radius:8px;padding:0 15px;text-decoration:none;font-size:.88rem;font-weight:650}
.support:hover {border-color:var(--accent)}
.hero {isolation:isolate;position:relative;overflow:hidden;border-bottom:1px solid var(--thin);min-height:184px;display:flex;align-items:center}
.hero-copy {max-width:67%;padding:28px 0 32px}
h1 {font-size:clamp(2.4rem,4.4vw,4.05rem);font-weight:620;letter-spacing:-.06em;line-height:1.09}
h1 em {color:var(--accent);font-style:normal}
.hero p {margin-top:11px;color:var(--muted);font-size:1.01rem;max-width:57ch}
.map {position:absolute;z-index:-1;right:0;inset-block:0;width:42%;overflow:hidden;pointer-events:none}
.map svg {width:100%;height:auto;display:block}
.pulse .map {right:-2%;width:35%;opacity:.75}
.arc .map {width:40%;opacity:.68}
.studio .map {width:38%;right:-2%;opacity:.56}
.studio h1 {font-family:Georgia,"Times New Roman",serif;font-weight:400;letter-spacing:-.045em}
.prism .hero {min-height:164px}
.prism .hero-copy,.wave .hero-copy {max-width:100%}
.wave .hero {min-height:150px}
.wave .hero-copy {width:100%;display:flex;align-items:end;justify-content:space-between;gap:40px}
.wave .hero-copy p {max-width:32ch;margin:0 0 3px}
.purchase-grid {display:grid;grid-template-columns:minmax(0,1.16fr) minmax(0,.91fr);grid-template-rows:auto 1fr;gap:0 clamp(32px,5.2vw,78px);align-items:start;padding:30px 0}
#plans,.checkout-sheet,.faq {min-width:0}
#plans {grid-column:1;grid-row:1}
h2 {font-size:clamp(1.35rem,2.1vw,1.85rem);letter-spacing:-.045em;line-height:1.18;font-weight:690}
/* Сетка, размеры и внутренние строки карточек из Happ Mesh. */
.plan-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;border:0;padding:0;margin:20px 0 0;min-width:0}
.plan {position:relative;display:grid;grid-template-columns:minmax(0,1fr);gap:17px;min-width:0;border:1px solid var(--line);border-radius:15px;padding:18px 20px 19px;background:var(--tile)}
.plan-top,.plan-bottom {display:flex;align-items:center;justify-content:space-between;gap:4px}
.plan-top {font-size:1rem;font-weight:550;letter-spacing:-.015em}
.plan strong {font-weight:580;letter-spacing:-.035em;font-size:clamp(25px,2vw,31px);line-height:1;white-space:nowrap}
.plan small {color:var(--accent);font-size:.78rem;font-weight:550;white-space:nowrap}
.choice-dot {flex:none;width:16px;height:16px;border:1px solid var(--line);border-radius:50%;display:grid;place-items:center}
.plan:has(input:checked) {background:var(--selected);border-color:var(--accent);box-shadow:inset 3px 0 var(--accent)}
.plan:has(input:checked) .choice-dot {background:var(--accent);border-color:var(--accent)}
.plan:has(input:checked) .choice-dot::after {content:"";width:7px;height:4px;transform:translateY(-1px) rotate(-45deg);border-left:1.6px solid var(--bg);border-bottom:1.6px solid var(--bg)}
.plan:has(input:focus-visible) {outline:2px solid var(--accent);outline-offset:3px}
@media(hover:hover) {.plan:hover{border-color:var(--accent)}}
@media(max-width:959px) {.plan{padding:16px}}
@media(max-width:740px) {
  .plan-grid{gap:8px;margin-top:10px}
  .plan{padding:12px 14px;gap:10px;border-radius:12px}
  .plan-top{font-size:.925rem}
  .plan strong{font-size:1.52rem}
}
@media(max-width:375px) {
  .wrap {width:calc(100% - 28px)}
  .plan{padding:11px 10px}
  .plan strong{font-size:1.34rem}
  .plan small{font-size:.7rem}
  .plan-bottom{column-gap:2px}
}
.plan[data-long-price] .plan-bottom {flex-wrap:wrap}
.plan[data-long-price] strong {white-space:normal;overflow-wrap:anywhere;max-width:100%}
.config {justify-content:space-between;gap:12px;margin-top:18px;border-block:1px solid var(--thin);padding:14px 0}
.config label {font-size:.98rem;font-weight:700}
.config p,.details-line,.faq p,footer {color:var(--muted)}
.config p {margin-top:2px;font-size:.83rem}
.step {flex:none;border:1px solid var(--line);border-radius:8px;background:var(--tile);overflow:hidden}
.step button,.step input {background:none;border:0;text-align:center;padding:0;min-height:40px}
.step button {width:39px;font-size:1.2rem}
.step button:disabled {opacity:.38;cursor:default}
.step input {width:3.3em;font-size:1rem;font-weight:700;appearance:textfield}
.step input::-webkit-inner-spin-button {appearance:none}
.details-line {gap:17px;font-size:.8rem;margin:13px 0 17px}
.details-line span+span::before {content:"·";margin-right:17px}
.checkout-sheet {grid-column:2;grid-row:1 / 3}
.faq {grid-column:1;grid-row:2}
.faq details {border-top:1px solid var(--thin)}
.faq details:last-child {border-bottom:1px solid var(--thin)}
.faq summary {position:relative;list-style:none;padding:13px 28px 13px 0;font-size:.88rem;font-weight:620}
summary::-webkit-details-marker {display:none}
.faq summary::after {content:"";position:absolute;right:4px;top:42%;width:7px;height:7px;border:solid var(--muted);border-width:0 1px 1px 0;transform:rotate(45deg)}
.faq details[open] summary::after {transform:rotate(225deg);top:49%}
.faq p {margin:0 0 14px;max-width:66ch;font-size:.88rem}
footer {justify-content:space-between;border-top:1px solid var(--thin);padding-block:17px 22px;gap:12px;font-size:.8rem}
footer nav {gap:18px}
footer a {text-decoration:none}
footer a:hover {text-decoration:underline}
@media(max-width:900px) {.wrap{width:calc(100% - 48px)}.purchase-grid{column-gap:25px}}
@media(max-width:740px) {
  .wrap {width:calc(100% - 36px)}
  .mast {min-height:55px}
  .brand {font-size:1.17rem;gap:7px}
  .brand-mark {width:18px;height:23px}
  .wave .brand-mark {width:26px}
  .support {min-height:34px;padding-inline:11px;font-size:.8rem}
  .hero,.wave .hero,.prism .hero {min-height:112px}
  .hero-copy,.wave .hero-copy {padding:20px 0;max-width:83%;display:block}
  h1 {font-size:clamp(2rem,7.4vw,3rem)}
  .hero p,.wave .hero p {margin:6px 0 0;font-size:.88rem;max-width:38ch;line-height:1.42}
  .wave .hero-copy,.prism .hero-copy {max-width:100%}
  .map,.pulse .map,.arc .map,.studio .map {width:40%;right:-7%;opacity:.52;mask-image:linear-gradient(to right,transparent,#000 70%)}
  .map svg {position:absolute;right:-18%;width:158%;top:4%}
  .purchase-grid {grid-template-columns:minmax(0,1fr);gap:17px;padding:17px 0 20px}
  #plans,.faq,.checkout-sheet {grid-column:1;grid-row:auto}
  .config {margin-top:12px;padding:9px 0}
  .config p {font-size:.76rem;max-width:29ch}
  .step button {width:32px}
  .step input {width:2.5em}
  .details-line {margin:9px 0 0;font-size:.75rem}
}
@media(max-width:375px) {.wrap{width:calc(100% - 28px)}}
@media(max-width:420px) {
  .step button {width:30px}
  footer nav {gap:10px}
}
@media(prefers-reduced-motion:reduce) {*{scroll-behavior:auto!important}}

.order-return {position:fixed;bottom:max(15px,env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);z-index:5;max-width:calc(100% - 24px)}
.order-return button {padding:10px 20px;min-height:44px;background:var(--button);color:var(--button-ink);border:1px solid var(--line);border-radius:8px;font-weight:650;box-shadow:0 3px 14px #0003}

.pulse .map {width:39%;overflow:hidden}
.pulse .map svg{width:128%;margin-top:-10%}
.studio .hero {min-height:160px}
.studio .hero-copy {max-width:100%}
@media(max-width:740px){.studio .hero{min-height:110px}.pulse .map svg{width:155%;margin-top:0}}

/* Первый экран Pulse использует утверждённые эмблему и композицию Happ Nova. */
.hero-link {display:inline-flex;align-items:center;gap:10px;width:fit-content;min-height:39px;margin-top:15px;padding:0 13px;border-radius:6px;color:var(--button-ink);background:var(--accent);font-size:.87rem;font-weight:700;text-decoration:none}
.hero-link span {border-inline-start:1px solid currentColor;padding-inline-start:10px;font-weight:580;white-space:nowrap}
.pulse .hero {min-height:235px;margin-top:18px;border:1px solid var(--line);border-radius:15px;background:linear-gradient(110deg,#212622,#1c201d 65%,#262d27)}
.pulse .hero-copy {max-width:65%;padding:28px 0 30px 35px}
.pulse .hero h1 em {color:#e0e8dc}
.nova-emblem {position:absolute;inset:0 0 0 auto;z-index:-1;width:42%;pointer-events:none;background-image:radial-gradient(circle,#abbba32d .9px,transparent 1px);background-size:8px 8px;mask-image:linear-gradient(90deg,transparent,#000 10%)}
.nova-emblem svg {position:absolute;inset:0;width:100%;height:100%}
@media(max-width:740px) {
  .pulse .hero {min-height:170px;margin-top:12px;border-radius:12px}
  .pulse .hero-copy {padding:16px 0 16px 15px;max-width:68%}
  .pulse .hero p {font-size:.82rem}
  .hero-link {font-size:.8rem;min-height:36px;margin-top:10px;gap:6px;padding:0 9px}
  .hero-link span {padding-inline-start:6px}
  .nova-emblem {width:33%}
  .nova-emblem svg {width:165%;left:-39%}
}
@media(max-width:375px) {
  .pulse .hero {min-height:145px}
  .pulse .hero-copy {max-width:70%;padding:12px 0 12px 12px}
  .pulse .hero h1 {font-size:1.75rem}
  .pulse .hero p {line-height:1.35}
}
.checkout-sheet {
  --sheet-border:var(--line);
  --field:var(--tile);
  color:var(--ink);
  min-width:0;
}
.checkout-sheet .payment-icons {position:absolute;pointer-events:none}
.checkout-sheet :focus-visible {outline:3px solid var(--accent);outline-offset:3px}
.checkout-sheet #checkout {
  background:var(--surface);border:1px solid var(--sheet-border);
  border-radius:calc(var(--radius) + 4px);padding:23px 25px;
}
.checkout-sheet .pay-title,.checkout-sheet .total,.checkout-sheet .total>div {display:flex;align-items:center;justify-content:space-between;gap:10px}
.checkout-sheet .pay-title {margin-bottom:20px}
.checkout-sheet h2 {font-size:1.62rem;letter-spacing:-.042em;line-height:1.15;font-weight:740;margin:0}
.checkout-sheet .provider {display:flex;align-items:center;gap:5px;font-size:.82rem;color:var(--muted)}
.checkout-sheet .icon {flex:none;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round}
.checkout-sheet .provider .icon {width:15px;height:15px}
.checkout-sheet form>label,.checkout-sheet legend {font-size:.93rem;font-weight:675;line-height:1.5}
.checkout-sheet fieldset {border:0;padding:0;min-width:0}
.checkout-sheet .mail {background:var(--field);display:flex;align-items:center;gap:9px;padding:0 12px;border:1px solid var(--sheet-border);border-radius:10px;margin-top:6px}
.checkout-sheet .mail .icon {width:18px;height:18px;color:var(--muted)}
.checkout-sheet .mail input {border:0;outline:none;background:transparent;color:var(--ink);height:46px;min-width:0;flex:1}
.checkout-sheet .mail input::placeholder {color:var(--muted);opacity:1}
.checkout-sheet .mail:focus-within {outline:2px solid var(--accent);outline-offset:1px}
.checkout-sheet .hint {margin:6px 0 0;font-size:.85rem;line-height:1.42;color:var(--muted)}
.checkout-sheet .methods {display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:16px 0}
.checkout-sheet .methods legend {margin-bottom:6px}
.checkout-sheet .methods label {background:var(--field);display:flex;align-items:center;gap:8px;min-height:46px;border:1px solid var(--sheet-border);border-radius:9px;padding:9px 10px;position:relative;font-weight:550;font-size:.94rem;cursor:pointer}
.checkout-sheet .methods label:has(:checked) {color:var(--accent);border-color:var(--accent);background:var(--selected);box-shadow:none}
.checkout-sheet .methods label:has(:focus-visible) {outline:3px solid var(--accent);outline-offset:3px}
.checkout-sheet .methods input {position:absolute;width:1px;height:1px;opacity:0}
.checkout-sheet .methods .icon,.checkout-sheet .sbp {width:16px;height:18px}
.checkout-sheet .dot {flex:none;display:grid;place-items:center;margin-left:auto;width:17px;height:17px;border:1.5px solid var(--muted);border-radius:50%;background:var(--field)}
.checkout-sheet :checked~.dot {background:var(--accent);border-color:var(--accent)}
.checkout-sheet :checked~.dot::before {content:"";width:7px;height:4px;border:solid var(--bg);border-width:0 0 2px 2px;transform:translateY(-1px) rotate(-45deg)}
.checkout-sheet .total {border-top:1px solid var(--sheet-border);padding-top:16px}
.checkout-sheet .total>div {justify-content:flex-start;flex-wrap:wrap}
.checkout-sheet .total a {font-size:.86rem;color:var(--accent);text-decoration:underline;text-underline-offset:.16em}
.checkout-sheet .total output {white-space:nowrap;font-size:1.62rem;font-weight:740;letter-spacing:-.018em}
.checkout-sheet .pay {display:inline-flex;align-items:center;justify-content:center;gap:.3em;min-height:48px;width:100%;margin-top:16px;padding:9px 18px;border:1px solid transparent;border-radius:12px;color:var(--button-ink);background:var(--button);box-shadow:inset 0 1px 0 rgb(255 255 255/.2);font-weight:690;line-height:1.25;text-align:center;cursor:pointer}
.checkout-sheet .pay b {font-weight:720;white-space:nowrap;font-variant-numeric:tabular-nums}
.checkout-sheet .pay:active {transform:translateY(1px)}
.checkout-sheet .pay:disabled {cursor:wait}
.checkout-sheet .terms,.checkout-sheet #checkout-message,.checkout-sheet #checkout-resume {font-size:.875rem;line-height:1.5}
.checkout-sheet .terms a,.checkout-sheet #checkout-resume {color:var(--accent);text-decoration:underline}
.checkout-sheet #checkout-message:empty {display:none}
@media(hover:hover) {.checkout-sheet .methods label:hover {border-color:var(--accent)}}

@media(max-width:420px) {
  .checkout-sheet #checkout {padding:17px;border-radius:16px}
}
@media(forced-colors:active) {
  .checkout-sheet .methods input {position:static;opacity:1;width:1em;height:1em}
  .checkout-sheet .dot {display:none}
}

.checkout-sheet .pay-title {margin-bottom:14px}
.checkout-sheet h2 {font-size:1.45rem;font-weight:680}
.checkout-sheet form>label,.checkout-sheet legend {font-size:.86rem}
.checkout-sheet fieldset {margin-inline:0}
.checkout-sheet .terms {margin-top:9px;font-size:.75rem;line-height:1.48;color:var(--muted)}
.checkout-sheet .terms a {color:inherit}
.checkout-sheet #renewal {margin-top:8px;font-size:.78rem}
.checkout-sheet .pay {margin-top:10px;border-radius:9px}
.checkout-sheet .total output {font-size:1.6rem}
.checkout-sheet .total>div {display:grid;gap:1px}
.checkout-sheet .total a {font-size:.76rem}
@media(max-width:740px) {.checkout-sheet #checkout{padding:16px}.checkout-sheet h2{font-size:1.25rem}.checkout-sheet .mail input{min-height:44px}}
.refund-note {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 12px;
  padding: 16px 19px;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  background: var(--tile);
  color: var(--ink);
}
.refund-note > svg { flex: none; width: 28px; height: 28px; color: var(--accent) }
.refund-note h3 { margin: 0 0 4px; font-size: .99rem; font-weight: 720; line-height: 1.35; letter-spacing: -.025em; color: var(--accent) }
.refund-note p, .refund-rules { font-size: .84rem; line-height: 1.48; color: var(--muted) }
.refund-note a:hover { color: var(--accent) }
.refund-rules { display: inline-block; margin-top: 4px }
@media (max-width: 740px) { .refund-note { padding: 13px 15px; gap: 10px } }
body.studio {
  --bg: #0e181d;
  --surface: #17252a;
  --tile: #132025;
  --ink: #edf5f4;
  --muted: #acbfc2;
  --accent: #91ded6;
  --line: #36494f;
  --thin: #283a40;
  --button-ink: #0e2527;
  --radius: 10px;
}
.studio .brand-mark { color: var(--accent) }
.studio .support { border-radius: 100px; gap: 9px }
.studio .support::after {
  content: "";
  width: 7px;
  height: 7px;
  border: solid var(--accent);
  border-width: 1.5px 1.5px 0 0;
  background: linear-gradient(135deg, transparent 44%, var(--accent) 45% 57%, transparent 58%);
}
.studio .hero {
  margin-top: 20px;
  min-height: 192px;
  border: 1px solid var(--thin);
  border-radius: 12px;
  background: #0b171d;
}
.studio .hero-copy {
  padding: 28px clamp(22px, 3vw, 42px);
  max-width: 67%;
}
.studio h1 {
  font: inherit;
  font-size: clamp(2.4rem, 4.4vw, 4.05rem);
  font-weight: 620;
  letter-spacing: -.06em;
  line-height: 1.09;
}
.studio .hero p { color: #b6c8cb; max-width: 35ch }
.space-horizon {
  position: absolute;
  z-index: -1;
  inset: 0 0 0 auto;
  width: 69%;
  pointer-events: none;
  mask-image: linear-gradient(to right, transparent, black 44%);
}
.space-horizon img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: right 47% }
@media (max-width: 740px) {
  .studio .hero { min-height: 136px; margin-top: 12px; border-radius: 10px }
  .studio .hero-copy { max-width: 79%; padding: 17px 0 17px 16px }
  .studio h1 { font-size: clamp(1.95rem, 7.5vw, 3rem) }
  .studio .hero p { max-width: 25ch; font-size: .84rem }
  .space-horizon { width: 54%; mask-image: linear-gradient(to right, transparent, #0008 46%, black 90%) }
}
@media (max-width: 375px) {
  .studio .hero-copy { padding-left: 12px }
  .studio .hero p { max-width: 24ch }
}
