/* wisp.monster — токены те же, что у расширения (src/styles/wisp.css). */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(/assets/fonts/manrope-cyrillic-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(/assets/fonts/manrope-latin-ext-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(/assets/fonts/manrope-latin-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: dark;
  --ground: #0b0c12;
  --glass: rgba(26, 26, 34, 0.42);
  --glass-strong: rgba(22, 22, 28, 0.78);
  --edge: rgba(255, 255, 255, 0.1);
  --hi: rgba(255, 255, 255, 0.16);
  --ink: rgba(255, 255, 255, 0.96);
  --ink2: rgba(255, 255, 255, 0.66);
  --ink3: rgba(255, 255, 255, 0.42);
  --fill: rgba(255, 255, 255, 0.07);
  --fill2: rgba(255, 255, 255, 0.12);
  --accent: #ff7a59;
  --on-accent: #16181c;
  --sky: #6cbbff;
  --pos: #5fe3a0;
  --radius: 24px;
  --wrap: 1120px;
  --font: 'Manrope', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: inherit;
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 8px;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

/* ——— верхняя панель: свисает с потолка, как панель страниц в Wisp ——— */
.bar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  justify-content: center;
  pointer-events: none;
}
.bar-inner {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 6px;
  width: min(var(--wrap), calc(100% - 32px));
  height: 56px;
  padding: 0 8px 0 16px;
  border-radius: 0 0 20px 20px;
  background: var(--glass-strong);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  backdrop-filter: blur(28px) saturate(180%);
  box-shadow: inset 0 0 0 1px var(--edge), 0 12px 32px rgba(0, 0, 0, 0.35);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -0.02em;
  text-decoration: none;
}
.brand img {
  width: 28px;
  height: 28px;
  border-radius: 8px;
}
.nav {
  display: flex;
  align-items: center;
  gap: 2px;
}
.nav a {
  padding: 8px 12px;
  border-radius: 12px;
  color: var(--ink2);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.15s, color 0.15s;
}
.nav a:hover {
  background: var(--fill);
  color: var(--ink);
}
.nav .btn-primary,
.nav .btn-primary:hover {
  padding: 0 14px;
  background: var(--accent);
  color: var(--on-accent);
}
.lang {
  display: flex;
  margin: 0 6px;
  padding: 3px;
  border-radius: 12px;
  background: var(--fill);
}
.lang a {
  padding: 5px 9px;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 800;
  color: var(--ink3);
  text-decoration: none;
}
.lang a[aria-current='true'] {
  background: var(--fill2);
  color: var(--ink);
}

/* ——— кнопки ——— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 48px;
  padding: 0 22px;
  border-radius: 14px;
  border: 0;
  font: inherit;
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s, opacity 0.15s, background-color 0.15s;
}
.btn:hover {
  opacity: 0.9;
}
.btn:active {
  transform: scale(0.97);
}
.btn-primary {
  background: var(--accent);
  color: var(--on-accent);
  box-shadow: 0 10px 30px rgba(255, 122, 89, 0.28);
}
.btn-ghost {
  background: var(--fill2);
  color: var(--ink);
}
.btn-sm {
  height: 38px;
  padding: 0 14px;
  border-radius: 12px;
  font-size: 13px;
}
.btn svg {
  width: 18px;
  height: 18px;
  flex: none;
}

/* ——— первый экран ——— */
.hero {
  position: relative;
  padding: 88px 0 40px;
  text-align: center;
}
.hero::before {
  content: '';
  position: absolute;
  inset: -140px 0 auto;
  height: 900px;
  z-index: -1;
  background:
    radial-gradient(640px 360px at 50% 30%, rgba(60, 130, 210, 0.28), transparent 70%),
    radial-gradient(420px 260px at 72% 12%, rgba(255, 122, 89, 0.14), transparent 70%);
  pointer-events: none;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 22px;
  padding: 6px 12px 6px 8px;
  border-radius: 999px;
  background: var(--fill);
  box-shadow: inset 0 0 0 1px var(--edge);
  color: var(--ink2);
  font-size: 13px;
  font-weight: 700;
}
.eyebrow b {
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 11px;
}
h1 {
  max-width: 820px;
  margin: 0 auto;
  font-size: clamp(40px, 6.4vw, 72px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.045em;
}
.lead {
  max-width: 580px;
  margin: 22px auto 0;
  color: var(--ink2);
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.5;
}
.cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 34px;
}
.note {
  margin: 16px 0 0;
  color: var(--ink3);
  font-size: 13px;
  font-weight: 600;
}
.shot-hero {
  position: relative;
  margin: 56px auto 0;
  max-width: 1080px;
}
.shot-hero::before {
  content: '';
  position: absolute;
  inset: 8% 6% -4%;
  z-index: -1;
  background: radial-gradient(closest-side, rgba(70, 140, 220, 0.35), transparent);
  filter: blur(40px);
}

.frame {
  overflow: hidden;
  border-radius: var(--radius);
  background: #0e1017;
  box-shadow: inset 0 0 0 1px var(--edge), 0 40px 100px rgba(0, 0, 0, 0.55);
}
.frame img {
  width: 100%;
}

/* ——— секции ——— */
section {
  padding: 96px 0 0;
}
.head {
  max-width: 640px;
  margin: 0 auto 44px;
  text-align: center;
}
h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.035em;
}
.head p {
  margin: 14px 0 0;
  color: var(--ink2);
  font-size: 17px;
}

.glass {
  border-radius: var(--radius);
  background: var(--glass);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  backdrop-filter: blur(28px) saturate(180%);
  box-shadow: inset 0 0 0 1px var(--edge), inset 0 1px 0 var(--hi), 0 18px 48px rgba(0, 0, 0, 0.3);
}

/* шаги — это правда последовательность, поэтому с номерами */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.steps li {
  padding: 26px 24px 24px;
  counter-increment: step;
}
.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 18px;
  border-radius: 12px;
  background: var(--fill2);
  font-weight: 800;
  font-size: 15px;
}
.steps h3,
.feature h3,
.plan h3 {
  margin: 0;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.steps p {
  margin: 8px 0 0;
  color: var(--ink2);
  font-size: 15px;
}
kbd {
  padding: 2px 7px;
  border-radius: 7px;
  background: var(--fill2);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.feature {
  display: grid;
  grid-template-columns: 5fr 7fr;
  align-items: center;
  gap: 56px;
  padding: 0;
}
.feature + .feature {
  margin-top: 88px;
}
.feature.flip .text {
  order: 2;
}
.feature .tag {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 800;
}
.feature h3 {
  font-size: clamp(26px, 3vw, 34px);
  line-height: 1.12;
  letter-spacing: -0.03em;
}
.feature p {
  margin: 14px 0 0;
  color: var(--ink2);
  font-size: 17px;
}
.ticks {
  display: grid;
  gap: 10px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}
.ticks li {
  display: flex;
  gap: 10px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
}
.ticks li::before {
  content: '';
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  border-radius: 6px;
  background: var(--fill2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23ff7a59' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5'/%3E%3C/svg%3E") center / 14px no-repeat;
}

/* тарифы */
.plans {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  max-width: 880px;
  margin: 0 auto;
}
.plan {
  display: flex;
  flex-direction: column;
  padding: 30px 28px 28px;
}
.plan.pro {
  box-shadow: inset 0 0 0 1.5px rgba(255, 122, 89, 0.55), inset 0 1px 0 var(--hi), 0 24px 60px rgba(255, 122, 89, 0.12);
}
.plan .price {
  margin: 10px 0 0;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.plan .price small {
  color: var(--ink3);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0;
}
.plan .sub {
  margin: 4px 0 0;
  color: var(--ink2);
  font-size: 14px;
}
.plan .ticks {
  flex: 1;
  margin-bottom: 26px;
}
.plan .btn {
  width: 100%;
}
.plan .fine {
  margin: 14px 0 0;
  color: var(--ink3);
  font-size: 13px;
  text-align: center;
}

/* вопросы — нативные details, без JS */
.faq {
  max-width: 760px;
  margin: 0 auto;
  padding: 6px;
}
.faq details {
  margin: 0 8px;
}
.faq details + details {
  box-shadow: inset 0 1px 0 var(--edge);
}
.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  cursor: pointer;
  list-style: none;
  font-size: 16px;
  font-weight: 700;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: '+';
  flex: none;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: var(--fill);
  color: var(--ink2);
  font-size: 18px;
  font-weight: 500;
  transition: transform 0.2s;
}
.faq details[open] summary::after {
  transform: rotate(45deg);
}
.faq details p {
  margin: -4px 0 0;
  padding: 0 20px 20px;
  color: var(--ink2);
  font-size: 15px;
}

.final {
  margin-top: 96px;
  padding: 56px 32px;
  text-align: center;
  background:
    radial-gradient(520px 220px at 50% 0%, rgba(255, 122, 89, 0.16), transparent 70%),
    var(--glass);
}
.final p {
  margin: 12px 0 28px;
  color: var(--ink2);
  font-size: 17px;
}

/* подвал */
.foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 72px;
  padding: 28px 0 40px;
  box-shadow: inset 0 1px 0 var(--edge);
  color: var(--ink3);
  font-size: 14px;
}
.foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}
.foot a {
  color: var(--ink2);
  font-weight: 600;
  text-decoration: none;
}
.foot a:hover {
  color: var(--ink);
}

/* подсказка про русскую версию (только на английской странице) */
.hint {
  position: fixed;
  left: 50%;
  bottom: 20px;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 8px 8px 16px;
  border-radius: 16px;
  transform: translateX(-50%);
  background: var(--glass-strong);
  -webkit-backdrop-filter: blur(28px);
  backdrop-filter: blur(28px);
  box-shadow: inset 0 0 0 1px var(--edge), 0 16px 40px rgba(0, 0, 0, 0.45);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}
.hint[hidden] {
  display: none;
}
.hint button {
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 10px;
  background: var(--fill);
  color: var(--ink2);
  font: inherit;
  font-size: 16px;
  cursor: pointer;
}

/* ——— документы: политика, поддержка, новости ——— */
.doc {
  max-width: 760px;
  margin: 0 auto;
  padding: 72px 24px 0;
}
.doc h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 48px);
  text-align: left;
}
.doc .meta {
  margin: 12px 0 0;
  color: var(--ink3);
  font-size: 14px;
  font-weight: 600;
}
.doc .intro {
  margin: 20px 0 0;
  color: var(--ink2);
  font-size: 18px;
}
.doc h2 {
  margin: 48px 0 0;
  font-size: 24px;
  letter-spacing: -0.025em;
}
.doc p,
.doc li {
  color: var(--ink2);
  font-size: 16px;
  line-height: 1.7;
}
.doc p {
  margin: 12px 0 0;
}
.doc ul {
  margin: 12px 0 0;
  padding-left: 20px;
}
.doc li + li {
  margin-top: 6px;
}
.doc strong {
  color: var(--ink);
}
.doc a {
  color: var(--accent);
  text-decoration: none;
}
.doc a:hover {
  text-decoration: underline;
}
.card {
  margin-top: 28px;
  padding: 26px 24px;
}
.card h3 {
  margin: 0;
  font-size: 18px;
}
.card p {
  margin: 6px 0 0;
}
.card .btn {
  margin-top: 18px;
}
.release {
  margin-top: 18px;
  padding: 24px;
}
.release .ver {
  display: flex;
  gap: 10px;
  align-items: center;
  color: var(--ink3);
  font-size: 13px;
  font-weight: 700;
}
.release .ver b {
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--fill2);
  color: var(--ink);
}
.release h2 {
  margin: 12px 0 0;
  font-size: 20px;
}
.release ul {
  margin-top: 10px;
}

/* ——— телефон ——— */
@media (max-width: 860px) {
  .nav .hide-sm {
    display: none;
  }
  .steps,
  .plans {
    grid-template-columns: 1fr;
  }
  .feature,
  .feature.flip {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .feature.flip .text {
    order: 0;
  }
  section {
    padding-top: 72px;
  }
}
@media (max-width: 520px) {
  .wrap {
    padding: 0 16px;
  }
  .bar-inner {
    width: calc(100% - 16px);
    padding: 0 6px 0 12px;
  }
  .bar .btn-sm span {
    display: none;
  }
  .hero {
    padding-top: 64px;
  }
  .cta .btn {
    width: 100%;
  }
  .hint {
    left: 16px;
    right: 16px;
    transform: none;
    white-space: normal;
  }
  .doc {
    padding: 48px 16px 0;
  }
}
