@font-face {
  font-family: "Inter Variable";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(/assets/fonts/inter-cyrillic-wght-normal.woff2?v=71d5ee93cc) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Inter Variable";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(/assets/fonts/inter-latin-wght-normal.woff2?v=3100e775e8) format("woff2");
  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: light dark;
  --bg: #FFFFFF;
  --bg-alt: #F3F5F7;
  --tile: #F3F5F7;
  --ink: #14171A;
  --muted: #5C646C;
  --line: rgba(20, 23, 26, 0.12);
  --accent: #0A66D0;
  --btn: #0A66D0;
  --btn-hover: #0858B5;
  --on-btn: #FFFFFF;
  --tint: #E6EFFA;
  --tint-hover: #D8E6F7;
  --on-tint: #0756B0;
  --bar: rgba(255, 255, 255, 0.78);
  --bar-solid: #FFFFFF;
  --scene-shadow: 0 1px 2px rgba(20, 23, 26, 0.06), 0 40px 80px -48px rgba(20, 30, 44, 0.55);
  --hero-top: #3B4550;
  --hero-mid: #515C68;
  --hero-low: #6C7884;
  --hero-shade: rgba(22, 28, 36, 0.42);
  --tile-sky: linear-gradient(180deg, #BFDDF2 0%, #EEF6FB 100%);
  --sheet: #FFFFFF;
  --scrim: rgba(10, 14, 20, 0.45);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --font: -apple-system, BlinkMacSystemFont, "Inter Variable", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --gutter: 16px;
  --max: 1040px;
  --bar-h: 52px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0D1014;
    --bg-alt: #171B21;
    --tile: #171B21;
    --ink: #F2F4F6;
    --muted: #9AA3AD;
    --line: rgba(242, 244, 246, 0.12);
    --accent: #5AAAFF;
    --btn: #0A66D0;
    --btn-hover: #1A75DE;
    --on-btn: #FFFFFF;
    --tint: #142A44;
    --tint-hover: #1A3454;
    --on-tint: #8CC4FF;
    --bar: rgba(13, 16, 20, 0.72);
    --bar-solid: #0D1014;
    --scene-shadow: 0 1px 2px rgba(0, 0, 0, 0.5), 0 40px 80px -48px rgba(0, 0, 0, 0.9);
    --hero-top: #06080B;
    --hero-mid: #0A0D12;
    --hero-low: #0E1218;
    --hero-shade: rgba(0, 0, 0, 0.35);
    --tile-sky: linear-gradient(180deg, #1E3047 0%, #152232 100%);
    --sheet: #1C2128;
    --scrim: rgba(0, 0, 0, 0.62);
  }
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  scroll-behavior: smooth;
  scroll-padding-top: 16px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.5;
  letter-spacing: -0.006em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  overflow-wrap: break-word;
}

img { display: block; max-width: 100%; height: auto; }

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }

a, button, summary { touch-action: manipulation; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 10px;
}

h1, h2, h3 { margin: 0; text-wrap: balance; }
p { margin: 0; }

.wrap {
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: max(var(--gutter), env(safe-area-inset-left, 0px)) max(var(--gutter), env(safe-area-inset-right, 0px));
}
.narrow { max-width: calc(760px + 2 * var(--gutter)); }

.skip {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 30;
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--bg);
  color: var(--ink);
  box-shadow: 0 0 0 1px var(--line), 0 12px 32px -12px rgba(0, 0, 0, 0.35);
  transform: translateY(-200%);
}
.skip:focus-visible { transform: none; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  background: var(--btn);
  color: var(--on-btn);
  font: 500 1.0625rem/1 var(--font);
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  transition: background-color 160ms ease, transform 140ms var(--ease-out);
}
.btn:active { transform: scale(0.97); }
.btn-quiet { background: var(--tint); color: var(--on-tint); }
.btn-glass { background: rgba(255, 255, 255, 0.16); color: #FFFFFF; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5); }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: 0.9375rem; }
.btn-block { width: 100%; }

.bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  padding-top: env(safe-area-inset-top, 0px);
  background: transparent;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.14);
}

.bar-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--bar-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  color: #FFFFFF;
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  text-decoration: none;
}
.brand-mark { flex: none; width: 24px; height: 24px; color: #FFFFFF; }

.bar-nav { display: none; gap: 4px; }
.bar-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.9375rem;
  text-decoration: none;
  transition: color 160ms ease;
}

.bar-login {
  width: 44px;
  margin-left: auto;
  margin-right: -8px;
  padding: 0;
}
.bar-login-icon { flex: none; width: 20px; height: 20px; }
.bar-login-text { display: none; }

.bar :focus-visible { outline-color: #FFFFFF; }

.hero {
  position: relative;
  padding-top: calc(var(--bar-h) + env(safe-area-inset-top, 0px) + 40px);
  overflow: hidden;
  color: #FFFFFF;
  background:
    url(/assets/rain.svg?v=bbb2c5c817) 0 0 / 220px 220px repeat,
    linear-gradient(180deg, var(--hero-top) 0, var(--hero-mid) 22rem, var(--hero-low) 34rem, var(--hero-low) 100%);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 34rem;
  background: radial-gradient(ellipse 46rem 20rem at 50% 12rem, var(--hero-shade), transparent 72%);
  pointer-events: none;
}

.hero-copy { position: relative; z-index: 1; text-align: center; }
.hero :focus-visible { outline-color: #FFFFFF; }

.hero h1 {
  font-size: clamp(2.75rem, 12vw, 6.5rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.lead {
  max-width: 32ch;
  margin: 20px auto 0;
  color: #E9EDF1;
  font-size: clamp(1.1875rem, 2.8vw, 1.625rem);
  line-height: 1.38;
  letter-spacing: -0.015em;
  text-wrap: pretty;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
}

.scene {
  display: block;
  position: relative;
  z-index: 0;
  width: max(100%, 840px);
  margin-top: calc(max(100%, 840px) * -0.1767 + 28px);
  margin-left: calc((100% - max(100%, 840px)) / 2);
}
.scene img { width: 100%; height: auto; }

.band { padding-block: 96px; }
.hero + .band { padding-top: 112px; }
.band-alt { background: var(--bg-alt); }

.band h2 {
  font-size: clamp(2.125rem, 8vw, 4.25rem);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.03em;
}

.sub {
  margin-top: 16px;
  color: var(--muted);
  font-size: clamp(1.1875rem, 2.4vw, 1.5rem);
  line-height: 1.4;
  letter-spacing: -0.012em;
  text-wrap: pretty;
}

.head { max-width: 44rem; margin: 0 auto 48px; text-align: center; }

#devices .narrow, .support { text-align: center; }

.platforms {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 28px;
  margin: 48px 0 0;
  padding: 0;
  list-style: none;
  font-size: clamp(1.25rem, 4vw, 1.75rem);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.split { display: grid; gap: 40px; align-items: center; }

.bear-tile {
  overflow: hidden;
  border-radius: 28px;
  background: var(--tile-sky);
  aspect-ratio: 6 / 5;
}
.bear-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 0;
}

.steps {
  display: grid;
  gap: 40px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.steps li { counter-increment: step; }
.steps li::before {
  content: counter(step);
  display: block;
  margin-bottom: 12px;
  color: var(--accent);
  font-size: 3rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}
.steps h3, .pay h3 {
  font-size: 1.375rem;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.02em;
}
.steps p, .pay p { margin-top: 8px; color: var(--muted); max-width: 34ch; }

.plans {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.plan {
  display: flex;
  flex-direction: column;
  padding: 32px 28px 28px;
  border-radius: 28px;
  background: var(--tile);
}
.plan-title { color: var(--muted); font-size: 1.125rem; font-weight: 500; letter-spacing: -0.012em; }
.plan-price {
  margin-top: 8px;
  font-size: clamp(2.75rem, 6vw, 3.5rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.035em;
  font-variant-numeric: tabular-nums;
}
.plan-terms {
  display: grid;
  gap: 4px;
  margin: 20px 0 28px;
  padding: 0;
  list-style: none;
}
.plan-actions { display: grid; gap: 8px; margin-top: auto; }

.pay-note { border: 0; padding: 0; color: var(--ink); background: transparent; text-align: left; }
.pay-note-plan { color: var(--muted); font-size: 0.9375rem; font-weight: 500; letter-spacing: -0.006em; }
.pay-note-title {
  margin-top: 6px;
  font-size: 1.375rem;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.02em;
}
.pay-note-text { margin-top: 10px; color: var(--muted); overflow-wrap: anywhere; }
.pay-note-actions { display: grid; gap: 8px; margin-top: 24px; }

@supports selector(:popover-open) {
  .pay-note {
    position: fixed;
    inset: 0;
    width: min(420px, calc(100% - 2 * var(--gutter)));
    height: fit-content;
    max-height: calc(100dvh - 32px);
    margin: auto;
    padding: 28px 24px 24px;
    overflow: auto;
    overscroll-behavior: contain;
    border-radius: 28px;
    background: var(--sheet);
    box-shadow: 0 0 0 1px var(--line), 0 32px 64px -24px rgba(10, 14, 20, 0.45);
  }
  .pay-note::backdrop { background: var(--scrim, rgba(10, 14, 20, 0.45)); }
}

@supports not selector(:popover-open) {
  .pay-note { margin-top: 16px; padding: 20px; border-radius: 20px; background: var(--bg); }
  .pay-note-actions .btn-quiet { display: none; }
}

.pay {
  display: grid;
  gap: 40px;
  max-width: 48rem;
  margin: 0 auto;
  padding: 0;
  list-style: none;
  text-align: center;
}
.pay p { margin-inline: auto; }

.support-band { position: relative; overflow: hidden; isolation: isolate; padding-bottom: 176px; }
.support { position: relative; z-index: 1; }
.support-bear {
  position: absolute;
  right: -6px;
  bottom: -44px;
  z-index: 0;
  display: block;
  width: 128px;
  height: auto;
  margin: 0;
  pointer-events: none;
}

.faq { box-shadow: 0 1px 0 var(--line); }
.faq details { box-shadow: inset 0 1px 0 var(--line); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 72px;
  padding: 16px 0;
  font-size: clamp(1.125rem, 2.4vw, 1.3125rem);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.015em;
  list-style: none;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: none;
  width: 14px;
  height: 14px;
  background:
    linear-gradient(var(--accent), var(--accent)) center / 14px 2px no-repeat,
    linear-gradient(var(--accent), var(--accent)) center / 2px 14px no-repeat;
  transition: transform 200ms var(--ease-out);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { max-width: 62ch; padding: 0 0 24px; color: var(--muted); font-size: 1.0625rem; }

.support-mail {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  margin-top: 28px;
  font-size: clamp(1.25rem, 3.4vw, 1.75rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
}

.foot { box-shadow: inset 0 1px 0 var(--line); }
.foot-in {
  display: grid;
  gap: 8px;
  padding-top: 24px;
  padding-bottom: max(32px, env(safe-area-inset-bottom, 0px));
  color: var(--muted);
  font-size: 0.9375rem;
}
.foot-links { display: flex; flex-wrap: wrap; gap: 0 24px; }
.foot-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--muted);
  text-decoration: none;
  transition: color 160ms ease;
}
.foot-meta { display: flex; flex-wrap: wrap; gap: 4px 24px; }

@media (hover: hover) and (pointer: fine) {
  .btn:hover { background: var(--btn-hover); }
  .btn-quiet:hover { background: var(--tint-hover); }
  .btn-glass:hover { background: rgba(255, 255, 255, 0.26); }
  .bar-nav a:hover { color: #FFFFFF; }
  .foot-links a:hover { color: var(--ink); }
  .faq summary:hover { color: var(--accent); }
  .support-mail:hover { text-decoration-thickness: 2px; }
}

@media (min-width: 720px) {
  :root { --gutter: 32px; }
  .bar-nav { display: flex; margin-left: auto; }
  .bar-login { width: auto; gap: 6px; margin-left: 0; padding: 0 18px 0 14px; }
  .bar-login-text { display: inline; }
  .hero { padding-top: calc(var(--bar-h) + env(safe-area-inset-top, 0px) + 72px); }
  .band { padding-block: 144px; }
  .hero + .band { padding-top: 160px; }
  .head { margin-bottom: 72px; }
  .plans { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .split { grid-template-columns: minmax(0, 12fr) minmax(0, 13fr); gap: 80px; }
  .split-pay { grid-template-columns: minmax(0, 13fr) minmax(0, 12fr); }
  .bear-tile { aspect-ratio: 12 / 13; }
  .split-pay .head { margin: 0 0 48px; text-align: left; }
  .split-pay .pay { gap: 32px; margin: 0; text-align: left; }
  .split-pay .pay p { margin-inline: 0; }
  .support-band { padding-bottom: 120px; }
  .support-bear { right: max(8px, calc(50% - 440px)); bottom: -32px; width: 176px; }
  .foot-in { grid-template-columns: 1fr auto; align-items: center; }
}

@media (min-width: 1100px) {
  .support-band { padding-bottom: 144px; }
  .support-bear {
    position: absolute;
    right: max(32px, calc(50% - 560px));
    bottom: 0;
    width: 258px;
    margin: 0;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * { animation: rise 900ms var(--ease-out) both; }
  .hero-copy > .lead { animation-delay: 80ms; }
  .hero-copy > .actions { animation-delay: 160ms; }
  .scene { animation: rise-scene 1100ms var(--ease-out) 240ms both; }

  @supports (animation-timeline: view()) {
    .reveal {
      animation: reveal linear both;
      animation-timing-function: var(--ease-out);
      animation-timeline: view();
      animation-range: entry 5% entry 80%;
    }
  }
}

@supports selector(:popover-open) {
  @media (prefers-reduced-motion: no-preference) {
    .pay-note, .pay-note::backdrop {
      opacity: 0;
      transition: opacity 140ms ease-out, transform 140ms ease-out, overlay 140ms allow-discrete, display 140ms allow-discrete;
    }
    .pay-note { transform: scale(0.97); }
    .pay-note:popover-open, .pay-note:popover-open::backdrop {
      opacity: 1;
      transform: none;
      transition-duration: 220ms;
      transition-timing-function: var(--ease-out);
    }
    @starting-style {
      .pay-note:popover-open, .pay-note:popover-open::backdrop { opacity: 0; }
      .pay-note:popover-open { transform: scale(0.96); }
    }
  }

  @media (prefers-reduced-motion: reduce) {
    .pay-note, .pay-note::backdrop {
      opacity: 0;
      transition: opacity 120ms ease, overlay 120ms allow-discrete, display 120ms allow-discrete;
    }
    .pay-note:popover-open, .pay-note:popover-open::backdrop { opacity: 1; }
    @starting-style {
      .pay-note:popover-open, .pay-note:popover-open::backdrop { opacity: 0; }
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-copy > *, .scene { animation: fade 200ms ease both; }
  .btn, .faq summary::after { transition-duration: 0ms; }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
}

@keyframes rise-scene {
  from { opacity: 0; transform: translateY(32px) scale(0.97); }
}

@keyframes reveal {
  from { opacity: 0; transform: translateY(40px); }
}

@keyframes fade {
  from { opacity: 0; }
}
