

:root {
  --bg: #eef1f6;
  --bg-soft: #f7f8fb;
  --surface: #ffffff;
  --surface-2: #f3f4f8;
  --surface-glass: rgba(255, 255, 255, 0.82);
  --border: rgba(15, 23, 42, 0.08);
  --border-strong: rgba(15, 23, 42, 0.14);
  --text: #111827;
  --text-2: #374151;
  --muted: #6b7280;
  --accent: #0a84ff;
  --accent-hover: #0066d6;
  --accent-soft: rgba(10, 132, 255, 0.12);
  --accent-gradient: linear-gradient(135deg, #32b5ff 0%, #0a84ff 100%);
  --danger: #ff3b30;
  --danger-soft: rgba(255, 59, 48, 0.1);
  --success: #34c759;
  --sbp-bg: #111111;
  --sbp-text: #ffffff;
  --radius-sm: 12px;
  --radius: 18px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.04), 0 1px 3px rgba(16, 24, 40, 0.05);
  --shadow: 0 10px 30px -16px rgba(16, 24, 40, 0.22);
  --shadow-lg: 0 24px 50px -24px rgba(16, 24, 40, 0.35);
  --header-h: 64px;
  --container: 1120px;
  --gutter: 20px;
  --font: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0b0d;
    --bg-soft: #121214;
    --surface: #1c1c1e;
    --surface-2: #2a2a2e;
    --surface-glass: rgba(22, 22, 24, 0.82);
    --border: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.14);
    --text: #f5f5f7;
    --text-2: #d1d1d6;
    --muted: #98989f;
    --accent: #0a84ff;
    --accent-hover: #409cff;
    --accent-soft: rgba(10, 132, 255, 0.18);
    --danger: #ff453a;
    --danger-soft: rgba(255, 69, 58, 0.14);
    --sbp-bg: #ffffff;
    --sbp-text: #000000;
    --shadow-sm: none;
    --shadow: 0 12px 28px -16px rgba(0, 0, 0, 0.55);
    --shadow-lg: 0 24px 48px -20px rgba(0, 0, 0, 0.7);
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

img,
svg,
video {
  max-width: 100%;
  height: auto;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 18px);
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background:
    radial-gradient(920px 420px at 80% -8%, rgba(10, 132, 255, 0.14), transparent 60%),
    radial-gradient(700px 360px at 0% 0%, rgba(50, 181, 255, 0.1), transparent 55%),
    linear-gradient(180deg, var(--bg-soft), var(--bg) 280px);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}

img,
svg,
video {
  display: block;
  max-width: 100%;
}

a {
  color: var(--accent);
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
  color: inherit;
}

h1,
h2,
h3,
p {
  margin: 0;
}

ul {
  margin: 0;
  padding: 0;
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 3px solid var(--accent-soft);
  outline-offset: 2px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left));
  padding-right: max(var(--gutter), env(safe-area-inset-right));
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
  transition: 0.18s ease;
  user-select: none;
}

.btn:active {
  transform: scale(0.98);
}

.btn:disabled {
  opacity: 0.6;
  cursor: default;
}

.btn--sm {
  min-height: 36px;
  padding: 7px 12px;
  border-radius: 11px;
  font-size: 13px;
}

.btn--lg {
  min-height: 52px;
  padding: 14px 22px;
  font-size: 16px;
}

.btn--block {
  width: 100%;
}

.btn--primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 10px 22px -12px rgba(10, 132, 255, 0.8);
}

.btn--primary:hover {
  background: var(--accent-hover);
}

.btn--secondary {
  background: var(--accent-soft);
  color: var(--accent);
}

.btn--secondary:hover {
  filter: brightness(0.98);
}

.btn--soft {
  background: var(--surface-2);
  color: var(--accent);
}

.btn--soft:hover {
  background: var(--accent-soft);
}

.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}

.btn--ghost:hover {
  background: var(--surface-2);
}

.btn--sbp {
  background: var(--sbp-bg);
  color: var(--sbp-text);
}

.btn--sbp:hover {
  opacity: 0.9;
}

.sbp-icon {
  width: 18px;
  height: 22px;
  flex-shrink: 0;
}

.btn--sm .sbp-icon {
  width: 14px;
  height: 17px;
}

.btn__label-short {
  display: none;
}

.btn__label-full {
  display: inline;
}

.btn--contact {
  flex: 1;
  min-height: 46px;
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
  box-shadow: var(--shadow-sm);
  font-size: 14px;
}

.btn--contact img {
  width: 22px;
  height: 22px;
}

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding-top: env(safe-area-inset-top);
  background: var(--surface-glass);
  border-bottom: 1px solid var(--border);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  backdrop-filter: saturate(180%) blur(18px);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: 18px;
  height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 800;
  font-size: 16px;
  letter-spacing: -0.3px;
  min-width: 0;
}

.brand__logo {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  flex-shrink: 0;
}

.brand__name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand--muted {
  color: var(--muted);
  font-weight: 600;
  font-size: 14px;
}

.nav {
  display: flex;
  gap: 2px;
  margin-left: 8px;
  margin-right: auto;
}

.nav a {
  padding: 8px 11px;
  border-radius: 10px;
  color: var(--text-2);
  font-size: 14px;
  font-weight: 600;
}

.nav a:hover {
  background: var(--surface-2);
  color: var(--text);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  flex-shrink: 1;
  min-width: 0;
  flex-wrap: nowrap;
  justify-content: flex-end;
}

.header__user {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.header__panel {
  color: var(--accent);
  border-color: rgba(10, 132, 255, 0.28);
  background: var(--accent-soft);
}

.header__panel:hover {
  background: rgba(10, 132, 255, 0.18);
  color: var(--accent);
}

.header__login {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 140px;
  min-height: 36px;
  padding: 0 10px;
  border-radius: 11px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-2);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-decoration: none;
  cursor: pointer;
}

.header__login:hover {
  border-color: rgba(10, 132, 255, 0.35);
  color: var(--text);
}

.header__login span {
  overflow: hidden;
  text-overflow: ellipsis;
}

.header__login i {
  color: var(--accent);
  font-size: 12px;
  flex-shrink: 0;
}

.maintenance-note {
  background: #ff9f0a;
  color: #1c1c1e;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  padding: 10px 16px;
}

body.hold-page {
  min-height: 100dvh;
  overflow: auto;
}

html:has(body.hold-page) {
  height: auto;
  min-height: 100%;
  overflow: auto;
}

.hold {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 24px var(--gutter) calc(24px + env(safe-area-inset-bottom));
  box-sizing: border-box;
}

.hold__card {
  width: min(520px, 100%);
  padding: 28px 24px 22px;
  border-radius: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  text-align: center;
  box-sizing: border-box;
}

.hold__logo {
  width: 56px;
  height: 56px;
  margin: 0 auto 14px;
  border-radius: 16px;
}

.hold__title {
  margin: 12px 0 0;
  font-size: clamp(24px, 6vw, 32px);
  line-height: 1.15;
  letter-spacing: -0.04em;
  font-weight: 800;
}

.hold__text {
  margin: 10px auto 0;
  max-width: 38ch;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.45;
}

.hold__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 18px;
}

.hold__contacts {
  margin-top: 18px;
}

.hold .badge {
  background: rgba(255, 159, 10, 0.16);
  color: #9a6700;
}

.hold .badge__dot {
  background: #ff9f0a;
  box-shadow: 0 0 0 4px rgba(255, 159, 10, 0.22);
}

@media (prefers-color-scheme: dark) {
  .hold .badge {
    background: rgba(255, 159, 10, 0.18);
    color: #ffc14d;
  }
}

@media (max-height: 700px) {
  .hold {
    padding-top: 12px;
    padding-bottom: calc(12px + env(safe-area-inset-bottom));
  }

  .hold__card {
    padding: 20px 18px 16px;
  }

  .hold__logo {
    width: 48px;
    height: 48px;
    margin-bottom: 10px;
  }

  .hold__title {
    margin-top: 8px;
    font-size: 24px;
  }

  .hold__text {
    margin-top: 8px;
    font-size: 14px;
  }

  .hold__contacts {
    margin-top: 14px;
  }
}

.hero {
  padding: 28px 0 20px;
}

.hero__grid {
  display: flex;
  justify-content: center;
}

.hero__content {
  width: 100%;
  max-width: 760px;
  padding: 28px;
  border-radius: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
}

.badge__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 4px rgba(52, 199, 89, 0.18);
}

.hero__title {
  margin-top: 16px;
  font-size: clamp(30px, 4.6vw, 46px);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -1.2px;
}

.hero__text {
  margin-top: 12px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 22px;
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 22px;
  list-style: none;
}

.hero__stats li {
  padding: 12px;
  border-radius: 14px;
  background: var(--surface-2);
}

.hero__stats strong {
  display: block;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.4px;
  color: var(--accent);
}

.hero__stats span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
}

.hero__content .contacts {
  margin-top: 16px;
  max-width: none;
}

.section {
  padding: 36px 0 28px;
}

.section__head {
  margin-bottom: 16px;
}

.section__head--center {
  text-align: center;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 18px;
}

.section__title {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 800;
  letter-spacing: -0.7px;
  line-height: 1.15;
}

.section__text {
  margin-top: 6px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.45;
}

#how .section__head--center {
  max-width: 720px;
}

.section__text--one {
  white-space: normal;
}

@media (min-width: 901px) {
  .section__text--one {
    white-space: nowrap;
  }
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}

.card__title {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.3px;
}

.card__subtitle {
  margin-top: 4px;
  color: var(--muted);
  font-size: 15px;
}

.contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  width: 100%;
}

.contacts .btn--contact {
  flex: 1 1 0;
  min-width: 0;
  min-height: 44px;
  padding-left: 10px;
  padding-right: 10px;
  white-space: normal;
  text-wrap: balance;
  line-height: 1.2;
}

.pricing {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  min-height: 100%;
  padding: 22px;
  border-radius: 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.price-card--featured {
  border-color: rgba(10, 132, 255, 0.35);
  background:
    linear-gradient(180deg, rgba(10, 132, 255, 0.08), transparent 40%),
    var(--surface);
  box-shadow: var(--shadow);
}

.price-card__label {
  align-self: flex-start;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
}

.price-card__name {
  font-size: 17px;
  font-weight: 800;
}

.price-card__price {
  margin-top: 4px;
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -1px;
}

.price-card__text {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
  flex: 1;
}

.price-card .btn {
  margin-top: 12px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  white-space: normal;
  text-wrap: balance;
  line-height: 1.25;
  padding-left: 14px;
  padding-right: 14px;
}

.price-card .btn .sbp-icon {
  width: 16px;
  height: 20px;
}

.secure {
  position: relative;
  overflow: hidden;
  min-height: 220px;
  padding: 14px;
  border-radius: 18px;
  background: var(--surface-2);
  border: 1px solid var(--border);
}

.secure__content {
  padding: 8px;
}

.copy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-shrink: 0;
  min-height: 32px;
  padding: 0 12px;
  border: none;
  border-radius: 9px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  appearance: none;
  cursor: pointer;
}

.alert {
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--danger-soft);
  border-left: 3px solid var(--danger);
  color: var(--danger);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
}

.catalog-toolbar {
  margin-bottom: 12px;
}

.search {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 420px;
}

.search__icon {
  position: absolute;
  left: 14px;
  color: var(--muted);
  pointer-events: none;
}

.search__input {
  width: 100%;
  min-height: 46px;
  padding: 12px 42px 12px 44px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  outline: none;
  line-height: 1.35;
  -webkit-appearance: none;
  appearance: none;
}

.search__input:focus {
  border-color: rgba(10, 132, 255, 0.45);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.search__clear {
  position: absolute;
  right: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: none;
  border-radius: 9px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 14px;
  cursor: pointer;
}

.chips {
  display: flex;
  gap: 8px;
  margin: 0 calc(var(--gutter) * -1) 14px;
  padding: 0 var(--gutter) 2px;
  overflow-x: auto;
  scrollbar-width: none;
}

.chips::-webkit-scrollbar {
  display: none;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
}

.chip.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.chip__count {
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.chip.active .chip__count {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
}

.apps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.app-card {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.app-card__icon {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  border-radius: 13px;
  object-fit: cover;
  background: var(--surface-2);
}

.app-card__info {
  flex: 1;
  min-width: 0;
}

.app-card__install {
  flex-shrink: 0;
  align-self: center;
  min-width: 0;
  padding-left: 12px;
  padding-right: 12px;
}

.app-card__name {
  display: block;
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.25;
  overflow-wrap: break-word;
}

.app-card__meta {
  display: block;
  margin: 1px 0 0;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.app-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 5px;
}

.tag {
  padding: 1px 6px;
  border: 1px solid var(--border);
  border-radius: 5px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.catalog-empty {
  margin-top: 20px;
  padding: 28px 16px;
  border: 1px dashed var(--border-strong);
  border-radius: 18px;
  text-align: center;
  background: var(--surface);
}

.catalog-empty__title {
  font-size: 17px;
  font-weight: 800;
}

.catalog-empty__text {
  margin: 6px 0 14px;
  color: var(--muted);
}

.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.8fr);
  gap: 20px;
  align-items: start;
}

.faq {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 0;
}

.faq details {
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.faq summary {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 58px;
  padding: 16px 52px 16px 18px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 22px;
  width: 8px;
  height: 8px;
  margin-top: -6px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
  transition: transform 0.2s;
}

.faq details[open] summary::after {
  margin-top: -1px;
  transform: rotate(-135deg);
}

.faq details p {
  margin: 0;
  padding: 0 18px 12px;
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.5;
}

.faq details p:last-child {
  padding-bottom: 18px;
}

.support {
  position: sticky;
  top: calc(var(--header-h) + 16px);
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: auto;
  padding: 22px;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(10, 132, 255, 0.08), transparent 42%),
    var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.support__badge {
  display: inline-flex;
  align-self: flex-start;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
}

.support__title {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.4px;
}

.support__text {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.support__actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: auto;
}

.support__link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 14px;
  background: var(--surface-2);
  border: 1px solid transparent;
  color: var(--text);
  transition: 0.18s ease;
}

.support__link:hover {
  border-color: var(--border-strong);
  background: var(--surface);
}

.support__link img {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.support__link span {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.support__link strong {
  font-size: 14px;
  font-weight: 800;
}

.support__link small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.footer {
  margin-top: auto;
  padding: 32px 0 calc(28px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--border);
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  flex-wrap: wrap;
}

.footer .brand--muted {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  max-width: 100%;
  color: var(--muted);
  font-weight: 600;
  font-size: 14px;
  line-height: 1.3;
}

.footer .brand--muted span {
  white-space: normal;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
  margin-left: auto;
}

.footer__links a {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.footer__links a:hover {
  color: var(--text);
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(0, 0, 0, 0.45);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

#doc-modal {
  z-index: 1100;
}

.modal__dialog {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 420px;
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 24px 20px 20px;
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}

.modal__dialog--center {
  text-align: center;
}

.modal__dialog--wide {
  max-width: 860px;
}

.modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 14px;
  cursor: pointer;
  z-index: 1;
}

.modal__close::before {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
}

.modal__title {
  padding-right: 34px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.3px;
}

.modal__dialog--center .modal__title {
  padding: 0 34px;
}

.modal__label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.modal__text {
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.45;
}

.modal__text--nowrap {
  white-space: nowrap;
}

.modal__text--danger {
  color: var(--danger);
  font-size: 13px;
}

.modal__dialog--pin {
  padding: 0;
  overflow: hidden;
  background: transparent;
  box-shadow: none;
  text-align: left;
}

.modal__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  margin: 0 auto;
  border-radius: 50%;
  font-size: 26px;
  font-weight: 800;
}

.modal__icon--success {
  background: rgba(52, 199, 89, 0.14);
  color: var(--success);
}

.modal__actions,
.modal__row {
  display: flex;
  gap: 10px;
}

.modal__actions {
  flex-direction: column;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.input,
.select {
  width: 100%;
  min-height: 46px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-2);
  outline: none;
}

.input:focus,
.select:focus {
  border-color: rgba(10, 132, 255, 0.45);
  box-shadow: 0 0 0 4px var(--accent-soft);
  background: var(--surface);
}

.select {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1.5l5 5 5-5' stroke='%238e8e93' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}

.modal__dialog--auth {
  max-width: 400px;
  width: min(400px, calc(100vw - 24px));
  padding: 0;
  overflow: hidden;
  background: transparent;
  box-shadow: none;
}

.auth-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 28px 24px 22px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  text-align: left;
}

#register-step-form,
#register-step-code,
#forgot-step-email,
#forgot-step-code {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.auth-card__icon {
  width: 52px;
  height: 52px;
  margin: 0 auto;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 22px;
}

.auth-card__title {
  margin: 0;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.03em;
  text-align: center;
  padding: 0 40px;
  line-height: 1.25;
}

.auth-card__text {
  margin: 0;
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.45;
  text-align: center;
}

.auth-card__label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
}

.auth-card__input {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  background: var(--surface-2);
  color: var(--text);
  outline: none;
  transition: 0.18s ease;
}

.auth-card__input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
  background: var(--surface);
}

.auth-card__pass {
  position: relative;
}

.auth-card__pass .auth-card__input {
  padding-right: 48px;
}

.auth-card__eye {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0;
}

.auth-card__eye:hover {
  background: var(--surface);
  color: var(--text);
}

.auth-card__error {
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--danger-soft);
  color: var(--danger);
  font-size: 13px;
  font-weight: 700;
}

.auth-card__link {
  border: none;
  background: none;
  color: var(--accent);
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  padding: 4px 0 0;
  text-align: center;
}

.auth-card__link:hover {
  text-decoration: underline;
}

.auth-card__code {
  text-align: center;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0.32em;
  font-family: var(--font-mono);
}

.modal__dialog--access {
  max-width: 400px;
  width: min(400px, calc(100vw - 24px));
  padding: 0;
  overflow: hidden;
  background: transparent;
  box-shadow: none;
  text-align: left;
}

.access-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 28px 24px 22px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
}

.access-card > .modal__close,
.auth-card > .modal__close {
  top: 14px;
  right: 14px;
  z-index: 2;
}

.access-card > *,
.auth-card > * {
  flex-shrink: 0;
}

.access-card__icon {
  width: 52px;
  height: 52px;
  margin: 0 auto;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 22px;
  overflow: hidden;
}

.access-card__icon--buy {
  background: var(--surface-2);
  border: 1px solid var(--border);
}

.buy-modal__icon {
  display: block;
  object-fit: cover;
}

.buy-modal__icon--sbp {
  width: 22px;
  height: 26px;
  object-fit: contain;
}

.buy-modal__icon--app {
  width: 100%;
  height: 100%;
  border-radius: 14px;
}

.access-card__title {
  margin: 0;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.03em;
  text-align: center;
  padding: 0 40px;
  line-height: 1.25;
}

.access-card__text {
  margin: 0;
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.45;
  text-align: center;
}

.access-card__hint {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
  text-align: center;
}

.access-card .btn--primary {
  gap: 8px;
}

.access-card__divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.access-card__divider::before,
.access-card__divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

.access-card .btn {
  width: 100%;
  min-width: 0;
  white-space: normal;
  line-height: 1.25;
  gap: 10px;
  flex-shrink: 0;
}

.access-card .btn--lg {
  min-height: 52px;
  padding-left: 14px;
  padding-right: 14px;
}

.buy-sheet {
  display: contents;
}

#buy-modal #buy-pay {
  order: 1;
}

#buy-modal .buy-promo,
#buy-modal .buy-account,
#buy-modal .buy-sheet > .access-card__hint {
  order: 2;
}

.buy-step {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.buy-step[hidden] {
  display: none;
}

.buy-targets {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.buy-target-stack {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.buy-target {
  position: relative;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 20px;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease;
}

.buy-target:hover {
  border-color: rgba(10, 132, 255, 0.35);
}

.buy-target__radio {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.buy-target__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 15px;
  transition: background 0.16s ease, color 0.16s ease;
}

.buy-target__body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.buy-target__title {
  font-size: 14.5px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
}

.buy-target__hint {
  font-size: 12px;
  line-height: 1.35;
  color: var(--muted);
}

.buy-target__check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border: 1.5px solid var(--border-strong);
  border-radius: 50%;
  color: transparent;
  font-size: 9px;
  transition: border-color 0.16s ease, background 0.16s ease, color 0.16s ease;
}

.buy-target.is-active {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.buy-target.is-active .buy-target__icon {
  background: var(--accent);
  color: #fff;
}

.buy-target.is-active .buy-target__check {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.buy-target__radio:focus-visible ~ .buy-target__check {
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.buy-gift {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  padding: 4px 14px 14px;
  border: 1px solid var(--accent);
  border-top: 0;
  border-radius: 0 0 16px 16px;
  background: var(--accent-soft);
}

.buy-gift[hidden] {
  display: none;
}

.buy-target-stack:has(.buy-gift:not([hidden])) .buy-target {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  border-bottom-color: var(--accent);
}

.buy-gift .auth-card__label,
.buy-gift .auth-card__input {
  text-align: left;
}

.buy-gift__note {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.gift-mail {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  margin-top: 2px;
  text-align: left;
}

.gift-mail__label,
.gift-mail__note {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}

.gift-mail__card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 14px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.gift-mail__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
}

.gift-mail__title {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
}

.gift-mail__text {
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.4;
}

.gift-mail__cta {
  display: inline-flex;
  align-items: center;
  margin-top: 4px;
  padding: 8px 12px;
  border-radius: 12px;
  background: var(--accent);
  color: #fff;
  font-size: 12.5px;
  font-weight: 800;
}

.buy-account {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  width: 100%;
  padding: 12px 12px 10px;
  border-radius: 16px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  text-align: center;
}

.buy-account__title {
  margin: 0;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
}

.buy-account__text {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.buy-account__actions {
  display: flex;
  gap: 8px;
  width: 100%;
  margin-top: 8px;
}

.buy-account__btn {
  flex: 1;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  color: var(--accent);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.buy-account__btn:hover {
  border-color: rgba(10, 132, 255, 0.35);
  background: var(--accent-soft);
}

.buy-promo {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.buy-promo__panel {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.buy-promo__panel[hidden] {
  display: none;
}

.buy-promo__row {
  display: flex;
  gap: 8px;
  width: 100%;
}

.buy-promo__row .auth-card__input {
  flex: 1;
  min-width: 0;
}

.access-card .buy-promo__row .btn {
  width: auto;
  flex-shrink: 0;
  min-height: 48px;
  padding-left: 16px;
  padding-right: 16px;
}

.buy-promo-result {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  padding: 14px;
  border-radius: 16px;
  background: var(--accent-soft);
}

.buy-promo-result[hidden] {
  display: none;
}

.buy-promo-result .access-card__text {
  margin: 0;
  font-weight: 800;
  color: var(--text);
}

.access-card__channels {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.access-card__channel {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  transition: border-color 0.15s ease, background 0.15s ease;
}

.access-card__channel:hover {
  border-color: rgba(10, 132, 255, 0.35);
  background: var(--accent-soft);
}

.access-card__channel-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: var(--surface);
  border: 1px solid var(--border);
  flex-shrink: 0;
}

.access-card__channel-icon img {
  width: 18px;
  height: 18px;
}

.access-card__channel-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
  text-align: left;
}

.access-card__channel-body strong {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.access-card__channel-body span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.access-card__channel-go {
  color: var(--muted);
  font-size: 12px;
  flex-shrink: 0;
}

.access-card .auth-card__link {
  margin-top: 2px;
}

.gift-code {
  font-family: var(--font-mono);
  font-size: clamp(18px, 5.5vw, 26px);
  font-weight: 800;
  letter-spacing: 2px;
  text-align: center;
  word-break: break-all;
  overflow-wrap: anywhere;
}

.gift-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  text-align: left;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
}

.gift-field .gift-code {
  display: block;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
}

.gift-link {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  font-size: 13px;
  color: var(--text);
}

.pricing--single {
  width: 100%;
  max-width: 400px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: stretch;
}

.pricing--single .price-card {
  overflow: hidden;
  text-align: center;
}

.pricing--single .price-card__text {
  text-align: center;
}

.pricing--single .btn {
  width: 100%;
  min-width: 0;
  white-space: normal;
  line-height: 1.25;
  justify-content: center;
}

.catalog-toolbar--center {
  display: flex;
  justify-content: center;
}

.catalog-toolbar--center .search {
  max-width: 480px;
}

.chips--center {
  justify-content: center;
  flex-wrap: wrap;
  margin-left: 0;
  margin-right: 0;
  padding-left: 0;
  padding-right: 0;
  overflow: visible;
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  counter-reset: none;
}

.steps__item {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
  padding: 22px 18px;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(10, 132, 255, 0.06), transparent 42%),
    var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.steps__item:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 41px;
  left: 100%;
  width: 16px;
  height: 2px;
  background: linear-gradient(90deg, rgba(10, 132, 255, 0.45), rgba(10, 132, 255, 0.08));
  pointer-events: none;
}

.steps__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: var(--accent-gradient, linear-gradient(135deg, #0a84ff, #5ac8fa));
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.02em;
  box-shadow: 0 10px 20px -12px rgba(10, 132, 255, 0.95);
}

.steps__body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.steps__title {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.steps__text {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.benefits {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.benefits__item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  padding: 20px 18px;
  border-radius: 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.benefits__icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 4px;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 16px;
}

.benefits__title {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.benefits__text {
  margin: 0;
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.45;
}

@media (max-width: 900px) {
  .benefits {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .benefits {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1024px) {
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .steps__item:not(:last-child)::after {
    display: none;
  }
}

@media (max-width: 480px) {

  .buy-target {
    grid-template-columns: 34px minmax(0, 1fr) 18px;
    gap: 10px;
    padding: 11px 12px;
  }

  .buy-target__icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    font-size: 14px;
  }

  .buy-target__title {
    font-size: 14px;
  }

  .steps {
    grid-template-columns: 1fr;
    gap: 10px;
  }

    .steps__item {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr);
    align-items: center;
    gap: 6px 12px;
    padding: 16px;
    border-radius: 18px;
  }

  .steps__body {
    display: contents;
  }

  .steps__num {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    font-size: 15px;
  }

  .steps__title {
    font-size: 16px;
  }

  .steps__text {
    grid-column: 2;
  }

  .faq summary {
    padding-right: 44px;
    font-size: 14px;
    line-height: 1.4;
  }

  .faq summary::after {
    right: 16px;
  }

  .contacts {
    flex-direction: column;
  }

  .contacts .btn--contact {
    flex: 1 1 auto;
    width: 100%;
  }

  .footer__links {
    flex-direction: column;
    gap: 10px;
  }
}

.qr {
  width: 168px;
  height: 168px;
  margin: 0 auto;
  padding: 8px;
  border-radius: 12px;
  background: #fff;
}

.qr img,
.qr canvas,
.qr table {
  display: block;
  width: 100%;
  height: 100%;
}

.gift-qr {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 14px 12px 12px;
  border-radius: 16px;
  background: var(--surface-2);
  border: 1px solid var(--border);
}

.gift-qr[hidden] {
  display: none;
}

.gift-qr__hint {
  margin: 0;
  max-width: 260px;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
}

.modal__dialog--wide {
  max-width: 860px;
  width: min(860px, calc(100vw - 32px));
}

.modal__dialog--wide .modal__title {
  margin-top: 4px;
}

.modal__dialog--wide .btn--lg {
  margin-top: 4px;
}

.prose {
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.55;
}

.prose > * + * {
  margin-top: 10px;
}

.prose h3 {
  color: var(--text);
  font-size: 16px;
}

.prose ol,
.prose ul {
  padding-left: 18px;
}

.prose blockquote {
  margin: 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--surface-2);
}

.cookie {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 150;
  padding: 12px;
  padding-bottom: calc(12px + env(safe-area-inset-bottom));
}

.cookie__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: var(--container);
  margin: 0 auto;
  padding: 14px 16px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  font-size: 13px;
}

.loading {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.72);
}

@media (prefers-color-scheme: dark) {
  .loading {
    background: rgba(0, 0, 0, 0.55);
  }
}

.loading__title {
  font-weight: 800;
  color: var(--text);
}

body.modal-open {
  overflow: hidden;
  touch-action: none;
}

.loading__text {
  color: var(--muted);
  font-size: 14px;
}

.spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--border-strong);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.toast-stack {
  position: fixed;
  z-index: 2000;
  top: calc(var(--header-h) + 12px + env(safe-area-inset-top));
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: min(380px, calc(100% - 24px));
  max-width: calc(100vw - env(safe-area-inset-left) - env(safe-area-inset-right) - 24px);
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 12px 12px 12px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  pointer-events: auto;
  opacity: 0;
  transform: translateY(-8px);
  transition: 0.2s ease;
}

.toast--in {
  opacity: 1;
  transform: translateY(0);
}

.toast--out {
  opacity: 0;
  transform: translateY(-6px);
}

.toast__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: var(--accent-soft);
  color: var(--accent);
  flex-shrink: 0;
  line-height: 1;
}

.toast__icon i {
  font-size: 16px;
  line-height: 1;
}

.toast--success .toast__icon {
  background: rgba(52, 199, 89, 0.16);
  color: var(--success);
}

.toast--error .toast__icon {
  background: var(--danger-soft);
  color: var(--danger);
}

.toast--warn .toast__icon {
  background: rgba(255, 159, 10, 0.16);
  color: #ff9f0a;
}

.toast__text {
  flex: 1;
  min-width: 0;
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text);
  white-space: pre-line;
}

.toast__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  flex-shrink: 0;
  line-height: 1;
}

.toast__close i {
  font-size: 14px;
  line-height: 1;
}

.toast__close:hover {
  background: var(--surface-2);
  color: var(--text);
}

.mobile-bar {
  display: none;
}

@media (max-width: 1100px) {
  .header__inner {
    height: auto;
    min-height: var(--header-h);
    flex-wrap: wrap;
    align-items: center;
    row-gap: 6px;
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .brand {
    flex: 1 1 auto;
  }

  .header__actions {
    flex: 0 0 auto;
    flex-wrap: nowrap;
    margin-left: auto;
  }

  .nav {
    display: flex;
    order: 3;
    flex: 1 0 100%;
    width: 100%;
    margin: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .nav::-webkit-scrollbar {
    display: none;
  }

  .header__actions .btn__label-full {
    display: none;
  }

  .header__actions .btn__label-short {
    display: inline;
  }
}

@media (max-width: 1024px) {

  .faq-grid {
    grid-template-columns: 1fr;
  }

  .support {
    position: static;
  }

  .header__inner {
    gap: 10px;
  }

  .header__actions {
    gap: 6px;
    flex-wrap: nowrap;
    justify-content: flex-end;
  }

  .header__login {
    max-width: 100px;
    font-size: 12px;
  }

  .chips--center {
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin: 0 calc(var(--gutter) * -1) 14px;
    padding: 0 var(--gutter) 4px;
    scroll-padding-inline: var(--gutter);
  }

  .chips--center::-webkit-scrollbar {
    display: none;
  }
}

@media (max-width: 900px) {
  .pricing {
    grid-template-columns: 1fr;
  }

  .apps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .header__actions .btn__label-full {
    display: none;
  }

  .header__actions .btn__label-short {
    display: inline;
  }

  .header__actions .btn--sm {
    padding-left: 10px;
    padding-right: 10px;
  }
}

@media (max-width: 720px) {
  .header__login {
    max-width: 88px;
  }

  .hero__actions {
    flex-direction: column;
    align-items: center;
  }

  .hero__actions .btn {
    width: auto;
    max-width: 100%;
    white-space: normal;
    text-wrap: balance;
  }

  .apps {
    grid-template-columns: 1fr;
  }

  .app-card {
    flex-wrap: wrap;
  }

  .app-card__install {
    margin-left: auto;
  }

  .input,
  .select,
  textarea {
    font-size: 16px;
  }
}

@media (max-width: 640px) {
  :root {
    --header-h: 56px;
    --gutter: 16px;
    --mobile-bar-h: 76px;
  }

  body:has(.mobile-bar) {
    padding-bottom: calc(var(--mobile-bar-h) + env(safe-area-inset-bottom));
  }

  body.modal-open {
    position: fixed;
    left: 0;
    right: 0;
    width: 100%;
  }

  .header__actions {
    display: none;
  }

  .header__inner {
    height: var(--header-h);
    flex-wrap: nowrap;
    row-gap: 0;
    padding-top: 0;
    padding-bottom: 0;
  }

  .nav {
    display: none;
  }

  .brand__name {
    font-size: 15px;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 20px 0 16px;
  }

  .hero__content {
    padding: 18px;
    border-radius: 22px;
  }

  .hero__text {
    white-space: normal;
  }

  .hero__actions {
    flex-direction: column;
    align-items: center;
  }

  .hero__title {
    letter-spacing: -0.6px;
  }

  .hero__actions .btn {
    width: auto;
    max-width: 100%;
    white-space: normal;
  }

  .hero__stats {
    gap: 8px;
    margin-top: 18px;
  }

  .hero__stats li {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 12px 6px;
    text-align: center;
  }

  .hero__stats strong {
    font-size: clamp(15px, 4.4vw, 18px);
    letter-spacing: -0.3px;
    white-space: nowrap;
  }

  .hero__stats span {
    margin-top: 0;
    font-size: 11px;
    line-height: 1.25;
    text-wrap: balance;
  }

  .hero__content .contacts {
    flex-direction: row;
    gap: 8px;
    margin-top: 12px;
  }

  .hero__content .contacts .btn--contact {
    flex: 1 1 0;
    width: auto;
    min-height: 46px;
    gap: 6px;
    padding: 8px 6px;
    font-size: 12.5px;
  }

  .hero__content .contacts .btn--contact img {
    width: 18px;
    height: 18px;
  }

  .section {
    padding: 28px 0 20px;
  }

  .section__text--one {
    white-space: normal;
  }

  .section__head--center {
    text-align: center;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
  }

  .pricing--single {
    max-width: 100%;
  }

  .apps {
    grid-template-columns: 1fr;
  }

  .app-card {
    padding: 12px;
  }

  .app-card__install {
    padding-left: 10px;
    padding-right: 10px;
    font-size: 13px;
  }

  .app-card__icon {
    width: 48px;
    height: 48px;
  }

  .catalog-empty {
    text-align: center;
  }

  .catalog-toolbar--center .search {
    max-width: none;
    width: 100%;
  }

  .search {
    max-width: none;
  }

  .chips--center {
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0 calc(var(--gutter) * -1) 14px;
    padding: 0 var(--gutter) 2px;
  }

  .footer__inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
  }

  .footer__links {
    margin-left: 0;
    justify-content: center;
    flex-wrap: wrap;
  }

  .mobile-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 160;
    display: flex;
    gap: 8px;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    background: var(--surface-glass);
    border-top: 1px solid var(--border);
    -webkit-backdrop-filter: saturate(180%) blur(18px);
    backdrop-filter: saturate(180%) blur(18px);
    flex-wrap: nowrap;
    align-items: center;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .mobile-bar::-webkit-scrollbar {
    display: none;
  }

  .mobile-bar .btn {
    flex: 0 1 auto;
    min-width: max(44px, fit-content);
    justify-content: center;
  }

    .mobile-bar > .btn:first-child {
    flex: 1 1 auto;
  }

  .mobile-bar__user {
    margin-left: auto;
  }

  .mobile-bar .btn__label-full {
    display: none;
  }

  .mobile-bar .btn__label-short {
    display: inline;
  }

  .mobile-bar__user {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    flex: 0 0 auto;
  }

  .mobile-bar__login span,
  .mobile-bar__logout-label {
    display: none;
  }

  .mobile-bar__login.header__login {
    max-width: none;
    width: 40px;
    min-width: 40px;
    padding: 0;
    justify-content: center;
  }

  .mobile-bar__icon {
    flex: 0 0 40px;
    width: 40px;
    min-width: 40px;
    padding-left: 0;
    padding-right: 0;
  }

  .cookie {
    bottom: calc(var(--mobile-bar-h) + env(safe-area-inset-bottom));
    padding-bottom: 12px;
    z-index: 165;
  }

  .modal {
    align-items: flex-end;
    padding: 0;
  }

  .modal__dialog,
  .modal__dialog--wide {
    max-width: none;
    max-height: 92dvh;
    padding: 24px 16px calc(16px + env(safe-area-inset-bottom));
    border-radius: 22px 22px 0 0;
  }

  .modal__dialog--auth,
  .modal__dialog--access {
    max-width: none;
    width: 100%;
    padding: 0;
    border-radius: 0;
  }

  .auth-card,
  .access-card {
    max-height: 92dvh;
    overflow-y: auto;
    padding: 32px 16px calc(18px + env(safe-area-inset-bottom));
    border-radius: 22px 22px 0 0;
    border-left: none;
    border-right: none;
    border-bottom: none;
  }

  #buy-modal .access-card {
    gap: 10px;
    padding-top: 22px;
    padding-bottom: calc(12px + env(safe-area-inset-bottom));
    overflow: hidden;
  }

  #buy-modal .buy-sheet {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  #buy-modal .buy-step {
    min-height: 0;
    overflow: visible;
  }

  #buy-modal #buy-pay {
    flex: none;
  }

  .buy-gift {
    padding-bottom: 10px;
  }

  .gift-mail {
    gap: 6px;
  }

  .gift-mail__card {
    padding: 10px 12px;
    gap: 4px;
  }

  .access-card__title,
  .auth-card__title {
    padding: 0 36px;
    font-size: 22px;
    text-align: center;
  }

  .access-card__text,
  .auth-card__text,
  .access-card__hint,
  .auth-card__link {
    text-align: center;
  }

  .modal__row {
    flex-direction: column;
  }

  .gift-code {
    font-size: 18px;
    letter-spacing: 1px;
  }

  .gift-link {
    font-size: 12px;
    word-break: break-all;
  }

  .modal__dialog--center {
    width: 100%;
  }

  .cookie__inner {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
}

@media (max-width: 380px) {
  .btn--lg {
    font-size: 15px;
    padding-left: 12px;
    padding-right: 12px;
  }

  .btn--contact {
    gap: 5px;
    padding-left: 6px;
    padding-right: 6px;
    font-size: 12px;
  }

  .btn--contact img {
    width: 18px;
    height: 18px;
  }

  .hero__content {
    padding: 16px;
  }

  .steps__title {
    font-size: 16px;
  }

  .access-card__channel-body span {
    font-size: 11px;
  }

  .mobile-bar {
    gap: 6px;
    padding-left: 10px;
    padding-right: 10px;
  }

  .mobile-bar .btn--sm {
    padding-left: 8px;
    padding-right: 8px;
    font-size: 12px;
  }

  .mobile-bar__icon,
  .mobile-bar__login.header__login {
    flex-basis: 36px;
    width: 36px;
    min-width: 36px;
  }

  .auth-card__code {
    letter-spacing: 0.18em;
    font-size: 20px;
  }
}

.notice-page {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding:
    max(24px, env(safe-area-inset-top))
    max(16px, env(safe-area-inset-right))
    max(24px, env(safe-area-inset-bottom))
    max(16px, env(safe-area-inset-left));
}

.notice-page .auth-card,
.notice-page .card {
  width: min(440px, 100%);
  margin: 0;
}

.notice-page .card--wide {
  width: min(560px, 100%);
}

.notice-page .card--wide {
  width: min(560px, 100%);
}

.profile-page {
  min-height: 100dvh;
  background: var(--bg);
}

.profile-bar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 64px;
  padding: 10px max(16px, env(safe-area-inset-right)) 10px max(16px, env(safe-area-inset-left));
  padding-top: max(10px, env(safe-area-inset-top));
  background: var(--surface-glass, var(--surface));
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(16px);
}

.profile {
  width: 100%;
  margin: 0;
  padding: 22px 0 8px;
}

.profile__inner {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.header__login.is-current {
  border-color: rgba(10, 132, 255, 0.35);
  background: var(--accent-soft);
  color: var(--accent);
}

.profile-kicker {
  margin: 0;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.profile-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.profile-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  align-items: stretch;
}

.profile-split > .profile-card {
  height: 100%;
}

.profile-stats > li {
  min-width: 0;
  padding: 14px 16px;
  border-radius: 18px;
  background: var(--surface-2);
  border: 1px solid var(--border);
}

.profile-stats > li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  text-align: center;
}

.profile-stats strong {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.profile-stats span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.profile-card__lead {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.profile-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  border-radius: 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.profile-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.profile-card > .btn {
  align-self: flex-start;
}

.profile-card__head h2,
.profile-hero__name {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.profile-hero__name {
  font-size: 26px;
}

.profile-card.profile-account {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px 32px;
  padding: 22px 24px;
}

.profile-account .profile-stats {
  width: 432px;
  max-width: 100%;
}

.profile-ref .profile-stats {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 420px;
}

.profile-hero {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.profile-hero__line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.profile-hero__since {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.profile-hero__avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  border-radius: 16px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 18px;
}

.profile-hero__body {
  min-width: 0;
}

.profile-hero__mail,
.profile-item__meta,
.profile-empty,
.profile-item__warn {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.profile-item__warn {
  color: var(--danger, #ff3b30);
}

.profile-count {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-2);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.profile-count b {
  color: var(--accent);
  font-weight: 800;
}

.profile-status {
  display: inline-flex;
  align-items: center;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.profile-status--ok {
  background: rgba(52, 199, 89, 0.14);
  color: #1f8a3b;
}

.profile-status--wait {
  background: var(--accent-soft);
  color: var(--accent);
}

.profile-status--off {
  background: rgba(255, 59, 48, 0.12);
  color: #d92d20;
}

.profile-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.profile-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 14px;
  border-radius: 16px;
  background: var(--surface-2);
  border: 1px solid var(--border);
}

.profile-item__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
}

.profile-item__top strong {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.profile-code {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  width: 100%;
}

.profile-code code {
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.04em;
  word-break: break-all;
}

@media (max-width: 900px) {
  .profile-card.profile-account {
    grid-template-columns: 1fr;
    padding: 16px;
  }

  .profile-account .profile-stats {
    width: 100%;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .profile-split {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .profile-hero__name {
    font-size: 22px;
  }

  .profile-account .profile-stats {
    grid-template-columns: 1fr;
  }

  .profile-card > .btn {
    align-self: stretch;
  }

  .profile-bar .brand__name {
    font-size: 15px;
  }

  .profile-card {
    padding: 14px;
    border-radius: 18px;
  }

  .profile-item .btn {
    width: 100%;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
