/* Prometei site. Tokens from the shared pink style; fonts are served from this site, no third parties. */
@font-face { font-family: 'Onest'; font-weight: 400 800; font-display: swap; src: url('fonts/onest-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Onest'; font-weight: 400 800; font-display: swap; src: url('fonts/onest-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Unbounded'; font-weight: 700 800; font-display: swap; src: url('fonts/unbounded-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Unbounded'; font-weight: 700 800; font-display: swap; src: url('fonts/unbounded-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --pink: #E0117E;
  --pink-soft: #FCE7F1;
  --ink: #14110F;
  --body: #332C2A;
  --soft: #6B625F;
  --line: #E7DFE3;
  --paper: #FAF7F8;
  --card: #FFFFFF;
  --font: 'Onest', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Unbounded', sans-serif;
  --r-pill: 999px;
  --r-card: 16px;
  --r-small: 8px;
  --shadow-pink: 0 2px 10px rgba(224, 17, 126, .45);
  --focus-ring: 0 0 0 4px rgba(224, 17, 126, .28);
  --ease: cubic-bezier(.22, .75, .28, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--body); font: 16px/1.55 var(--font); }
h1, h2, h3 { color: var(--ink); margin: 0; }
h1, h2 { font-family: var(--font-display); font-weight: 800; letter-spacing: -.01em; }
h1 { font-size: clamp(26px, 4.2vw, 38px); line-height: 1.15; }
h2 { font-size: clamp(20px, 3vw, 26px); line-height: 1.2; margin-bottom: 16px; }
h3 { font-size: 17px; font-weight: 700; margin-bottom: 4px; }
p { margin: 0 0 12px; }
a { color: var(--pink); }
:focus-visible { outline: none; box-shadow: var(--focus-ring); border-radius: var(--r-small); }
.wrap { max-width: 980px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--soft); }
.skip { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { width: auto; height: auto; clip-path: none; left: 16px; top: 8px; z-index: 50; background: var(--card); padding: 8px 14px; }

/* Header and footer */
.top { position: sticky; top: 0; z-index: 20; background: rgba(250, 247, 248, .92); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 12px; min-height: 60px; }
.brand { display: flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none;
  font: 800 18px var(--font-display); }
.bulb { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: var(--r-pill);
  background: var(--pink-soft); cursor: pointer; transition: transform 250ms var(--ease); }
.bulb:hover { transform: rotate(-10deg) scale(1.06); }
.bulb svg { width: 34px; height: 34px; }
.plug { fill: var(--ink); }
.nav { display: flex; gap: 18px; margin-left: auto; align-items: center; }
.nav a:not(.pill) { color: var(--body); text-decoration: none; font-weight: 500; }
.nav a:not(.pill):hover { color: var(--pink); }
.foot { border-top: 1px solid var(--line); margin-top: 64px; padding: 28px 0 40px; font-size: 15px; }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center; }
.foot a { color: var(--body); }
.foot kbd { margin-left: auto; }

/* Buttons */
.pill, .flash-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px;
  padding: 10px 20px; border: 2px solid var(--pink); border-radius: var(--r-pill); font: 700 16px var(--font);
  text-decoration: none; cursor: pointer; transition: transform 200ms var(--ease), opacity 200ms var(--ease); }
.pill { background: var(--card); color: var(--pink); }
.pill.solid, .flash-btn { background: var(--pink); color: #fff; box-shadow: var(--shadow-pink); }
.pill:hover, .flash-btn:hover { transform: translateY(-2px); }
.pill.small { min-height: 40px; padding: 8px 16px; font-size: 15px; }
.flash-btn { font-size: 18px; min-height: 54px; padding: 12px 30px; }
.flash-btn svg, .pill svg { width: 22px; height: 22px; }
.row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Hero */
.hero { padding: 32px 0 12px; display: grid; gap: 28px; grid-template-columns: 1.1fr .9fr; align-items: center; }
.hero p.lead { font-size: 17px; margin: 14px 0 20px; max-width: 34em; }
/* Telegram channel mock: Telegram's own light theme, not the site palette, so it reads as the real app. */
.tg { --tg-blue: #3390EC; --tg-grey: #707579; --tg-meta: #A0ACB6; width: 100%; max-width: 290px; justify-self: center;
  border-radius: 18px; overflow: hidden; box-shadow: 0 10px 40px rgba(20, 17, 15, .18), 0 0 0 1px rgba(20, 17, 15, .06);
  font: 13px/1.3 -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif; color: #000; }
.tg-top { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 8px 0 10px; background: #fff;
  box-shadow: 0 1px 2px rgba(16, 35, 47, .1); position: relative; z-index: 1; }
.tg-ico { width: 17px; height: 17px; fill: var(--tg-grey); flex: none; }
.tg-ava { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--pink-soft); flex: none; }
.tg-ava svg { width: 21px; height: 21px; }
.tg-title { display: grid; flex: 1; min-width: 0; line-height: 1.25; }
.tg-title b { font-size: 13.5px; font-weight: 600; }
.tg-title small { font-size: 11.5px; color: var(--tg-grey); }
.tg-feed { display: grid; gap: 4px; padding: 6px 8px 8px 14px; justify-items: start;
  background: radial-gradient(at 0% 0%, #dbddbb 0, transparent 60%), radial-gradient(at 100% 0%, #6ba587 0, transparent 60%),
    radial-gradient(at 0% 100%, #d5d88d 0, transparent 60%), radial-gradient(at 100% 100%, #88b884 0, transparent 60%), #b6cf9c; }
.tg-date { justify-self: center; margin: 2px 0; }
.tg-date span { display: block; padding: 1px 8px; border-radius: 12px; background: rgba(62, 94, 60, .42); color: #fff;
  font-size: 11px; font-weight: 500; }
.tg-msg { position: relative; max-width: 92%; padding: 4px 7px 5px 8px; background: #fff; border-radius: 12px 12px 12px 0;
  box-shadow: 0 1px 2px rgba(16, 35, 47, .15); display: flow-root; }
.tg-tail { position: absolute; left: -6.4px; bottom: 0; width: 7px; height: 14px; fill: #fff; }
.tg-meta { float: right; position: relative; top: 6px; display: inline-flex; align-items: center; gap: 3px; margin-left: 12px;
  font-size: 10px; line-height: 1; color: var(--tg-meta); }
.tg-meta svg { width: 12px; height: 12px; fill: currentColor; }
.tg-meta i { font-style: normal; margin-left: 4px; }
.tg-photo { padding: 0; width: 92%; overflow: visible; }
.tg-photo img { display: block; width: 100%; height: auto; border-radius: 12px 12px 0 0; }
.tg-cap { display: flow-root; padding: 4px 7px 5px 8px; }
.tg-bottom { height: 34px; display: grid; place-items: center; background: #fff; color: var(--tg-blue); font-weight: 500;
  font-size: 13px; box-shadow: 0 -1px 2px rgba(16, 35, 47, .08); position: relative; }

/* Sections */
section { padding: 32px 0 6px; scroll-margin-top: 72px; }
.cards { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card); padding: 18px; }
.card .ic { width: 40px; height: 40px; color: var(--pink); margin-bottom: 10px; }
.card p { margin: 0; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; counter-reset: s; }
.step { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card);
  padding: 20px 20px 20px 76px; counter-increment: s; }
.step::before { content: counter(s); position: absolute; left: 20px; top: 18px; width: 40px; height: 40px;
  display: grid; place-items: center; border-radius: var(--r-pill); background: var(--pink-soft); color: var(--pink);
  font: 800 18px var(--font-display); }
.step.main { border: 2px solid var(--pink); }
.step p:last-child { margin-bottom: 0; }
.step .flash { margin: 14px 0 6px; }
.btn-name { display: inline-block; padding: 0 8px; border-radius: var(--r-small); background: var(--paper);
  border: 1px solid var(--line); font-weight: 600; color: var(--ink); white-space: nowrap; }
.note { background: var(--pink-soft); border-radius: var(--r-card); padding: 14px 18px; margin-top: 14px; }
.unsupported { display: block; background: var(--pink-soft); color: var(--ink); border-radius: var(--r-card);
  padding: 14px 18px; font-weight: 600; }

/* "How it works" strip and help page */
.flow { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(3, 1fr); }
.flow li { display: grid; grid-template-columns: 40px 1fr; column-gap: 12px; align-items: center; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--r-card); padding: 14px 16px; }
.flow svg { grid-row: span 2; width: 40px; height: 40px; color: var(--pink); }
.flow strong { color: var(--ink); }
.flow span { color: var(--soft); font-size: 15px; line-height: 1.35; }
.idea { padding-top: 8px; }
.page.wide { max-width: 860px; }
.lead { font-size: 19px; }
.cards.two { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card.link { display: block; text-decoration: none; color: var(--body); transition: transform 200ms var(--ease); }
.card.link:hover { transform: translateY(-2px); border-color: var(--pink); }
.card.link h3 { color: var(--pink); }
.card p + p { margin-top: 6px; }
.yes::before { content: '+ '; color: var(--pink); font-weight: 800; }
.no::before { content: '- '; color: var(--soft); font-weight: 800; }
.note.big { font-size: 18px; border: 2px solid var(--pink); margin: 14px 0 18px; }
.page section > h3 { margin-top: 18px; }
.brands { margin-bottom: 14px; }
.brands h3 { margin: 0 0 4px; }
.brands p { overflow-wrap: anywhere; }

/* Product: price, what you get, the buy card */
.eyebrow { margin: 0 0 8px; color: var(--pink); font-weight: 700; letter-spacing: .02em; }
.price-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin: 0 0 18px; }
.price { font: 800 28px var(--font-display); color: var(--ink); margin: 0; }
.cards.three { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card .ic { display: block; }
.buy { display: grid; grid-template-columns: 220px 1fr; gap: 28px; align-items: center; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--r-card); padding: 24px; }
.buy .device { width: 200px; height: auto; justify-self: center; }
.buy ul { margin: 6px 0 18px; padding-left: 20px; }
.buy li { margin-bottom: 4px; }
.page-head { padding: 32px 0 0; }

/* Forms: order page */
.form { display: grid; gap: 16px; max-width: 520px; margin-top: 8px; }
.field { display: grid; gap: 6px; position: relative; }
.field label { font-weight: 700; color: var(--ink); }
.field input { font: 16px var(--font); padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-small);
  background: var(--card); color: var(--ink); width: 100%; }
.field input:focus-visible { outline: none; box-shadow: var(--focus-ring); border-color: var(--pink); }
.field input:disabled { background: var(--paper); color: var(--soft); }
.qty { display: flex; gap: 8px; align-items: center; }
.qty input { width: 80px; text-align: center; }
.qty .pill { min-width: 44px; padding: 8px 0; }
.suggest ul { position: absolute; top: 100%; left: 0; right: 0; z-index: 30; margin: 4px 0 0; padding: 4px; list-style: none;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-small); box-shadow: 0 8px 24px rgba(20, 17, 15, .12);
  max-height: 260px; overflow-y: auto; }
.suggest li { padding: 10px 12px; border-radius: 6px; cursor: pointer; }
.suggest li:hover, .suggest li[aria-selected="true"] { background: var(--pink-soft); }
.total { margin: 0; font-size: 18px; }
.error { margin: 0; padding: 12px 14px; border-radius: var(--r-small); background: var(--pink-soft); color: var(--ink); font-weight: 600; }
.small { font-size: 14px; }
.alt { margin-top: 24px; }

/* Socket setup page */
.status { margin: 0 0 18px; padding: 12px 16px; border-radius: var(--r-card); font-weight: 700; }
.status.wait { background: var(--card); border: 1px dashed var(--line); color: var(--soft); }
.status.ok { background: var(--pink); color: #fff; }
.status.bad { background: var(--pink-soft); color: var(--ink); }
.step.ok::before { content: '\2713'; background: var(--pink); color: #fff; }

/* Questions */
details { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card); margin-bottom: 10px; }
summary { cursor: pointer; padding: 16px 48px 16px 18px; font-weight: 700; color: var(--ink); list-style: none; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; position: absolute; right: 18px; top: 12px; font: 400 26px var(--font); color: var(--pink);
  transition: transform 250ms var(--ease); }
details[open] summary::after { transform: rotate(45deg); }
details > div { padding: 0 18px 16px; }
details > div p:last-child { margin-bottom: 0; }

/* Simple pages: ok, privacy */
.page { max-width: 640px; padding-top: 48px; }
.page h1 { font-size: clamp(26px, 5.5vw, 38px); margin-bottom: 16px; }
.page h2 { font-size: 21px; margin: 28px 0 10px; }
.page ul { padding-left: 20px; }
.code { font: 700 22px var(--font-display); color: var(--ink); letter-spacing: .04em; }
.done { width: 64px; height: 64px; color: var(--pink); margin-bottom: 12px; }

/* Hotkeys help and toast */
kbd { display: inline-block; min-width: 26px; padding: 1px 7px; border: 1px solid var(--line); border-bottom-width: 2px;
  border-radius: 6px; background: var(--card); font: 600 14px var(--font); text-align: center; color: var(--ink); }
dialog { border: 0; border-radius: var(--r-card); padding: 22px; max-width: min(420px, calc(100vw - 32px)); color: var(--body); }
dialog::backdrop { background: rgba(20, 17, 15, .45); }
dialog h2 { font-size: 20px; margin-bottom: 14px; }
dialog dl { display: grid; grid-template-columns: auto 1fr; gap: 10px 14px; margin: 0 0 16px; align-items: center; }
dialog dd { margin: 0; }
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 60; width: max-content; max-width: calc(100vw - 32px);
  transform: translate(-50%, 16px); opacity: 0; pointer-events: none; background: var(--card); color: var(--ink);
  border-radius: var(--r-card); padding: 12px 18px; box-shadow: 0 8px 30px rgba(20, 17, 15, .25); white-space: pre-line;
  font-weight: 600; transition: transform 300ms var(--ease), opacity 300ms var(--ease); }
.toast.show { transform: translate(-50%, 0); opacity: 1; }
.blackout { position: fixed; inset: 0; z-index: 55; background: #0b0908; opacity: 0; pointer-events: none;
  transition: opacity 300ms var(--ease); }
.blackout.on { opacity: .9; }
/* While the site "has no power" only the logo stays visible: grey and sad. */
.out .top { z-index: 58; background: #0b0908; border-color: #0b0908; }
.out .brand, .out .nav { opacity: 0; }
.out .bulb { background: #2a2326; }
.out .bulb path[fill="#E0117E"] { fill: #6B625F; }
.out .bulb .mouth { transform: scaleY(-1); transform-box: fill-box; transform-origin: center; }
.out .bulb .plug { fill: #6B625F; }

@media (max-width: 760px) {
  .flow { grid-template-columns: 1fr; }
  .buy { grid-template-columns: 1fr; padding: 18px; }
  .hero { grid-template-columns: 1fr; padding-top: 28px; }
  .nav a.hide-phone { display: none; }
  .step { padding: 70px 16px 18px; }
  .step::before { left: 16px; top: 16px; }
  .flash-btn { width: 100%; }
  .foot kbd { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
