/* Showy cabinet: tokens first, then shell, components and screens. */
@font-face {
  font-family: Inter;
  src: url("/web-static/experience/Inter.woff2?v=20261119-contract2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}
:root {
  color-scheme: dark;
  --bg: #050507;
  --solid: #17171c;
  --surface: var(--solid);
  --glass: linear-gradient(180deg, #ffffff1c, #ffffff0d);
  --glass-flat: #ffffff14;
  --glass-strong: #ffffff24;
  --line: #ffffff24;
  --hairline: #ffffff17;
  --text: #fff;
  --muted: #ffffffb3;
  --faint: #ffffff80;
  --accent-start: #ff2d6e;
  --accent-end: #a855f7;
  --accent: #ff4f9a;
  --accent-gradient: linear-gradient(90deg, var(--accent-start), var(--accent-end));
  --green: #30d158;
  --yellow: #ffb020;
  --red: #ff453a;
  --card: 28px;
  --tile: 16px;
  --pill: 999px;
  --gutter: 20px;
  --gap: 12px;
  --nav: 248px;
  --control: 52px;
  --dock-height: 72px;
  --top: 64px;
  font-family: -apple-system, BlinkMacSystemFont, Inter, "Segoe UI", Roboto, sans-serif;
  font-synthesis: none;
  /* Hinted advances break the bundled Inter on Linux and legacy Windows rendering. */
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: antialiased;
  --chevron-down: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffffb3' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
}
* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
html {
  background: var(--bg);
}
body {
  margin: 0;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.45;
  letter-spacing: -0.011em;
  overflow-wrap: break-word;
}
/* Soft colour behind the floating panels, so the glass has something to hold. */
body.showy-v2::before {
  content: "";
  position: fixed;
  inset: auto 0 0;
  height: 260px;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(120px 90px at 18% 100%, #ff2d6e3d, transparent 70%),
    radial-gradient(150px 100px at 52% 108%, #a855f73d, transparent 70%),
    radial-gradient(130px 90px at 86% 100%, #2d7dff33, transparent 70%);
}
button,
input,
select,
textarea {
  font: inherit;
  letter-spacing: inherit;
  /* Browsers reset this on controls; without it button labels get hinted, uneven letter gaps. */
  text-rendering: inherit;
  margin: 0;
}
button,
a,
input,
select,
summary {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
  color: inherit;
}
button:disabled {
  cursor: default;
  opacity: 0.5;
}
a {
  color: inherit;
  text-decoration: none;
}
/* Scrollbars on mouse-driven screens: thin, dark, without arrow buttons, so a scrolling
   sheet or sidebar keeps its rounded corners. Touch screens keep their overlay bars:
   styling those would reserve a strip of the page. */
@media (hover: hover) and (pointer: fine) {
  ::-webkit-scrollbar {
    width: 12px;
    height: 12px;
  }
  ::-webkit-scrollbar-track,
  ::-webkit-scrollbar-corner {
    background: transparent;
  }
  ::-webkit-scrollbar-thumb {
    border: 4px solid transparent;
    border-radius: 999px;
    background: #ffffff38 content-box;
  }
  ::-webkit-scrollbar-thumb:hover {
    background-color: #ffffff66;
  }
  ::-webkit-scrollbar-button {
    display: none;
    width: 0;
    height: 0;
  }
  /* The thumb stops short of a panel's rounded corners. */
  dialog::-webkit-scrollbar-track {
    margin: 22px 0;
  }
  @supports not selector(::-webkit-scrollbar) {
    * {
      scrollbar-width: thin;
      scrollbar-color: #ffffff38 transparent;
    }
  }
}
/* Drop-down fields get the cabinet's own chevron instead of the system arrow. */
.showy-v2 select {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 44px;
  background-image: var(--chevron-down);
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 18px;
  cursor: pointer;
}
.showy-v2 select option {
  background: #1a1a20;
  color: var(--text);
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}
svg {
  width: 22px;
  height: 22px;
  stroke-width: 1.8;
  flex-shrink: 0;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 34px;
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.02em;
}
h2 {
  font-size: 22px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.01em;
}
h3 {
  font-size: 17px;
  line-height: 1.3;
  font-weight: 700;
}
h1,
h2,
h3 {
  text-wrap: balance;
}
strong,
b {
  font-weight: 700;
}
small {
  font-size: 13px;
}
.price,
.money,
.term,
.checkout-total strong,
.receipt-row > :last-child,
.step-number,
.code-cells,
.device-count,
#device-value {
  font-variant-numeric: lining-nums tabular-nums;
}
.price,
.money,
.receipt-row > :last-child {
  white-space: nowrap;
}
p + p {
  margin-top: 12px;
}
.muted,
small {
  color: var(--muted);
}
.accent {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.ok {
  color: var(--green);
}
.warning {
  color: var(--yellow);
}
.danger {
  color: var(--red);
}
.screen-reader {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 100;
}
.skip-link:focus {
  top: 12px;
  background: var(--solid);
  padding: 12px;
  border-radius: var(--tile);
}

/* Shell */
.app-layout {
  position: relative;
  z-index: 1;
  max-width: 1320px;
  margin: auto;
  display: grid;
  grid-template-columns: var(--nav) minmax(0, 1fr);
  min-height: 100dvh;
}
.navigation {
  position: sticky;
  top: 0;
  height: 100dvh;
  padding: 28px 16px 24px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  overflow-y: auto;
}
.navigation .brand {
  padding-left: 12px;
}
.brand img,
.mobile-brand img {
  display: block;
  width: 104px;
  height: 36px;
  object-fit: contain;
  object-position: left center;
}
.navigation nav {
  display: grid;
  gap: 4px;
  flex-shrink: 0;
}
.navigation nav button {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 52px;
  padding: 12px 16px;
  border: 1px solid transparent;
  border-radius: var(--pill);
  background: none;
  color: var(--muted);
  font-size: 15px;
  font-weight: 500;
  text-align: left;
  transition:
    background-color 0.24s,
    color 0.24s;
}
.navigation nav button:hover {
  color: var(--text);
}
.navigation nav button[aria-current="page"] {
  background: var(--glass);
  border-color: var(--hairline);
  box-shadow: inset 0 1px 0 #ffffff1f;
  color: var(--text);
  font-weight: 600;
}
.navigation-app {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--pill);
  color: var(--muted);
  font-size: 14px;
}
.navigation-app:hover {
  color: var(--text);
}
.main-column {
  min-width: 0;
}
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 76px;
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 16px 32px;
  background: linear-gradient(180deg, var(--bg) 40%, #05050700);
}
.topbar-account {
  flex: 1;
  min-width: 0;
}
.mobile-brand {
  display: none;
}
.account-identity {
  display: flex;
  gap: 0.35em;
  margin: 0;
  color: var(--faint);
  font-size: 13px;
  white-space: nowrap;
}
#identity {
  color: var(--muted);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
#checkout-back {
  display: none;
}
main {
  padding: 8px 32px 64px;
  outline: 0;
  min-height: calc(100dvh - 76px);
}

/* Controls */
.icon-button {
  position: relative;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid var(--hairline);
  border-radius: 50%;
  background: var(--glass);
  box-shadow: inset 0 1px 0 #ffffff1f;
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  color: var(--text);
  line-height: 1;
  transition:
    transform 0.24s,
    background-color 0.24s;
}
.button {
  min-height: var(--control);
  padding: 12px 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: var(--pill);
  background: var(--glass);
  box-shadow: inset 0 1px 0 #ffffff1f;
  color: var(--text);
  font-size: 16px;
  font-weight: 600;
  line-height: 22px;
  text-align: center;
  transition:
    transform 0.24s,
    background-color 0.24s,
    border-color 0.24s;
}
.button > svg {
  width: 20px;
  height: 20px;
}
.button:hover:not(:disabled),
.icon-button:hover:not(:disabled) {
  border-color: #ffffff47;
}
.button:active:not(:disabled),
.icon-button:active:not(:disabled),
.term:active,
.method:active:not(:disabled),
.guide-category:active {
  transform: scale(0.97);
}
/* The Mini App's red for the main action (Denis, 25.11: "белый везде на красный"). */
.button.primary {
  background: #ff2945;
  border-color: #ff2945;
  box-shadow: none;
  color: #fff;
  font-weight: 700;
}
.button.primary:hover:not(:disabled) {
  background: #e9233d;
  border-color: #e9233d;
}
.button.small {
  min-height: 44px;
  padding: 10px 16px;
  font-size: 14px;
}
.button.block {
  display: flex;
  width: 100%;
}
.button.danger {
  color: var(--red);
}
.button.selected {
  border-color: var(--green);
  color: var(--green);
}
.button-row {
  display: flex;
  gap: var(--gap);
  flex-wrap: wrap;
  align-items: center;
}
.text-action {
  min-height: 44px;
  padding: 8px 0;
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 15px;
  font-weight: 500;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 30px;
  padding: 4px 12px;
  border: 1px solid var(--line);
  border-radius: var(--pill);
  background: #0a0a0f8c;
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
  line-height: 20px;
}
.badge svg {
  width: 16px;
  height: 16px;
}
.badge.warning {
  border-color: #ffb02099;
  background: #ffb02033;
  color: #ffd27a;
}
.badge.is-accent {
  border: 0;
  background: #ff2d6e33;
  color: #ff7fb0;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
.section {
  margin-top: 28px;
}
.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}
.page-heading {
  margin-bottom: 20px;
}
.page-heading p {
  margin-top: 8px;
  color: var(--muted);
}

/* Surfaces */
.service-card,
.offer-card,
.app-prompt,
.list-card,
.guide-surface,
.guide-step,
.guide-help,
.connect-card,
.guide-category,
.tile,
.row-link,
.search-field,
.method,
.term,
.addon,
.install-card {
  border: 1px solid var(--line);
  background: var(--glass);
  box-shadow: inset 0 1px 0 #ffffff1f;
}
.list-card,
.guide-surface {
  border-radius: 24px;
  padding: 2px 16px;
}
.list-card > :last-child,
.guide-surface > :last-child,
.guide-surface .faq-answer:last-child {
  border-bottom: 0;
}
.grid-two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--gap);
}
.device-row,
.guide-row {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  min-height: 48px;
  padding: 10px 0;
  border-bottom: 1px solid var(--hairline);
}
.device-row > div,
.guide-row > span {
  min-width: 0;
}
.device-row h3 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  font-size: 16px;
  font-weight: 500;
  overflow-wrap: anywhere;
}
.device-row p {
  margin-top: 2px;
  font-size: 13px;
  color: var(--muted);
  line-height: 18px;
}
.status-dot {
  width: 8px;
  height: 8px;
  margin: 0 4px;
  border-radius: 50%;
  background: var(--faint);
}
.is-active > .status-dot,
.status-dot.is-active {
  background: var(--green);
  box-shadow: 0 0 8px #30d15899;
}
.device-status {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.device-status .status-dot {
  display: inline-block;
  margin: 0 8px 1px 0;
}
.device-actions {
  display: flex;
  gap: 2px;
  align-items: center;
}
.device-actions .icon-button {
  width: 36px;
  height: 40px;
  border-color: transparent;
  background: none;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  color: var(--muted);
}
.device-actions .icon-button svg {
  width: 19px;
  height: 19px;
}
.guide-row {
  width: 100%;
  min-height: 52px;
  background: none;
  border-width: 0 0 1px;
  border-color: var(--hairline);
  color: var(--text);
  text-align: left;
  font-size: 16px;
  font-weight: 500;
  line-height: 22px;
}
.guide-row small {
  display: block;
  margin-top: 1px;
  font-size: 12.5px;
  font-weight: 400;
  line-height: 17px;
}
.guide-row svg:last-child {
  width: 18px;
  color: var(--muted);
}
.row-link {
  width: 100%;
  min-height: 56px;
  margin-top: var(--gap);
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-radius: 24px;
  color: var(--text);
  font-size: 15px;
  font-weight: 500;
  line-height: 20px;
  text-align: left;
  text-wrap: balance;
}
.row-link .accent {
  flex-shrink: 0;
  font-weight: 600;
}
.row-link > svg {
  width: 18px;
  color: var(--muted);
}
.empty {
  padding: 24px 0;
  max-width: 500px;
}
.empty p {
  color: var(--muted);
  margin: 12px 0 24px;
}
.search-field {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  margin: 0 0 8px;
  padding: 0 18px;
  border-radius: var(--pill);
  color: var(--muted);
}
.search-field input {
  flex: 1;
  min-width: 0;
  min-height: 50px;
  border: 0;
  outline: 0;
  background: none;
  color: var(--text);
  font-size: 16px;
}
.search-field input::placeholder {
  color: var(--faint);
}
.search-field:focus-within {
  border-color: #ffffff59;
}
.input {
  width: 100%;
  min-height: var(--control);
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: var(--tile);
  background: #ffffff0f;
  color: var(--text);
  font-size: 16px;
}
.copy-box {
  display: inline-flex;
  max-width: 100%;
  gap: 4px;
  align-items: center;
  overflow: hidden;
  margin: 12px 0 0;
  padding: 2px 4px 2px 16px;
  border: 1px solid var(--line);
  border-radius: var(--pill);
  background: #ffffff0f;
}
.copy-box code {
  flex: 1;
  min-width: 0;
  word-break: break-all;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  line-height: 20px;
}
.copy-box .icon-button {
  width: 40px;
  height: 40px;
  border: 0;
  background: none;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
.copy-box .icon-button svg {
  width: 18px;
  height: 18px;
}
.skeleton {
  height: 420px;
  border-radius: var(--card);
  background: var(--solid);
  animation: breathe 1.4s ease-in-out infinite alternate;
}
@keyframes breathe {
  to {
    opacity: 0.5;
  }
}
.inline-error {
  padding: 20px;
  border: 1px solid #ff453a59;
  border-radius: 24px;
  background: #ff453a14;
  color: #ff8a82;
}
.inline-error .button {
  margin-top: 16px;
  color: var(--text);
}

/* Home */
.hero {
  position: relative;
  min-height: 460px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  padding: 32px;
  border-radius: var(--card);
  background: #0b0b10;
}
.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  animation: hero-in 0.4s ease-out;
}
@keyframes hero-in {
  from {
    opacity: 0;
  }
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, #05050799 0, #05050700 22%, #05050700 38%, #050507e6 72%, var(--bg) 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 640px;
}
.hero h1 {
  margin: 12px 0 6px;
  font-size: 44px;
  line-height: 1.04;
  letter-spacing: -0.03em;
}
.hero-sub {
  color: var(--muted);
  font-size: 16px;
  font-weight: 500;
}
.hero .button-row {
  margin-top: 20px;
}
.hero .button {
  white-space: nowrap;
  letter-spacing: -0.02em;
}
.hero-note {
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
}
.tiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--gap);
}
.tile {
  min-height: 96px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  border-radius: 20px;
  color: var(--text);
  font-size: 17px;
  font-weight: 700;
  text-align: left;
  transition: transform 0.24s;
}
.tile svg {
  width: 30px;
  height: 30px;
  stroke-width: 1.6;
}
.tile:active {
  transform: scale(0.97);
}
.service-card {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  padding: 16px;
  border-radius: 20px;
}
.service-card > svg {
  width: 22px;
  height: 22px;
  margin-bottom: 4px;
}
.service-card h3 {
  font-size: 17px;
}
.service-card p {
  font-size: 12.5px;
  line-height: 17px;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.home-aside .service-card {
  padding: 12px;
}
.home-aside .service-card .button {
  display: inline-block;
  align-self: flex-start;
  max-width: 100%;
  min-height: 0;
  margin-top: auto;
  padding: 6px 0 0;
  border: 0;
  background: none;
  box-shadow: none;
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 18px;
  text-align: left;
}
.nowrap {
  white-space: nowrap;
}
.home-aside .list-card {
  cursor: pointer;
}
.app-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 23%;
  background: linear-gradient(140deg, #ff2d6e, #d026c8 55%, #a855f7);
  box-shadow: inset 0 1px 0 #ffffff59;
}
.app-icon svg {
  width: 62%;
  height: 62%;
  stroke: none;
}
.app-prompt {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  border-radius: 24px;
}
.app-prompt h3 {
  font-size: 16px;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.app-prompt p {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 17px;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.app-prompt .button {
  min-height: 40px;
  padding: 8px 14px;
  font-size: 14px;
}
.app-update-prompt {
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 12px;
  margin-top: 20px;
  padding: 12px 14px;
}
.app-update-prompt h3 {
  white-space: normal;
}
.app-update-prompt > .app-icon {
  width: 44px;
  height: 44px;
}
.update-notes {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
}
.update-notes li + li {
  margin-top: 4px;
}
.update-size {
  text-align: center;
}
.home-app-prompt {
  grid-template-columns: 44px minmax(0, 1fr) auto;
  grid-template-areas:
    "icon copy dismiss"
    "icon copy action";
  grid-template-rows: 20px auto;
  gap: 0 10px;
  margin-top: 20px;
  padding: 8px 12px 14px 14px;
}
.home-app-prompt > .app-icon {
  grid-area: icon;
  align-self: center;
  width: 44px;
  height: 44px;
}
.home-app-prompt > div {
  grid-area: copy;
  align-self: center;
}
.home-app-prompt > .button {
  grid-area: action;
  align-self: center;
  padding-inline: 12px;
}
.home-app-prompt > .icon-button {
  grid-area: dismiss;
  justify-self: end;
  width: 32px;
  height: 20px;
  margin-right: -6px;
  border: 0;
  background: none;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  color: var(--muted);
}
.home-app-prompt > .icon-button svg {
  width: 16px;
  height: 16px;
}
.app-install-shortcut.needs-install-attention::after {
  content: "";
  position: absolute;
  top: 9px;
  right: 9px;
  width: 8px;
  height: 8px;
  border: 2px solid var(--bg);
  border-radius: 50%;
  background: var(--accent-start);
}
.offer-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 14px;
  align-items: center;
  padding: 16px 20px;
  border: 0;
  border-radius: 24px;
  background:
    linear-gradient(#17121c, #120f17) padding-box,
    var(--accent-gradient) border-box;
  border: 1.5px solid transparent;
  box-shadow: 0 0 28px #c93bd026;
}
.offer-card h3 {
  margin-top: 8px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.offer-card p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 14px;
}
.offer-card .button {
  min-height: 44px;
  padding: 8px 18px;
  font-size: 15px;
}
.offer-card > .icon-button {
  width: 36px;
  height: 36px;
}

/* Devices */
.devices-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}
.device-count {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.device-meter {
  display: flex;
  gap: 6px;
  margin-bottom: 20px;
}
.device-meter span {
  flex: 1;
  height: 10px;
  border: 1px solid var(--hairline);
  border-radius: var(--pill);
  background: #ffffff1a;
}
.device-meter .is-used {
  border-color: transparent;
  background: var(--accent-gradient);
}
.connect-card {
  padding: 20px;
  border-radius: var(--card);
}
.connect-card > p {
  margin-top: 6px;
  font-size: 13px;
  line-height: 18px;
  text-wrap: balance;
}
.code-form {
  margin-top: 16px;
}
.code-cells {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}
.code-cells span {
  display: grid;
  place-items: center;
  height: 58px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #0000004d;
  box-shadow: inset 0 1px 0 #ffffff14;
  font-size: 30px;
  font-weight: 800;
}
.code-cells:focus-within span.is-current {
  border-color: #e040fb;
  box-shadow:
    0 0 0 1px #e040fb,
    0 0 16px #e040fb66;
}
.code-cells:focus-within span.is-current:empty::after {
  content: "";
  width: 2px;
  height: 26px;
  background: #fff;
  animation: caret 1s steps(1) infinite;
}
@keyframes caret {
  50% {
    opacity: 0;
  }
}
.code-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: transparent;
  caret-color: transparent;
  font-size: 16px;
  letter-spacing: 0;
}
.code-input:focus-visible {
  outline: 0;
}
.code-form .button {
  margin-top: 16px;
}
#code-status:not(:empty),
.code-status:not(:empty) {
  margin-top: 12px;
  color: var(--yellow);
  font-size: 14px;
}
.code-status .button,
#code-status .button {
  margin-top: 10px;
  color: var(--text);
}
.connect-card .text-action {
  display: block;
  margin: 6px auto -8px;
}

/* Services */
.service-feature {
  position: relative;
  overflow: hidden;
  min-height: 228px;
  justify-content: flex-end;
  padding: 20px;
  border-radius: var(--card);
}
.service-feature::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(240px 160px at 78% 12%, #a855f780, transparent 70%),
    radial-gradient(220px 150px at 30% 0, #2dd4ff40, transparent 70%),
    radial-gradient(200px 140px at 100% 55%, #ff2d6e59, transparent 70%);
}
.service-feature.is-iptv::before {
  background:
    radial-gradient(240px 150px at 22% 8%, #ff2d6e66, transparent 70%),
    radial-gradient(220px 150px at 80% 0, #2d7dff59, transparent 70%);
}
.service-feature > * {
  position: relative;
  z-index: 1;
}
.service-feature .service-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 20px;
  font-weight: 700;
}
.service-feature h2 {
  margin-top: 4px;
  font-size: 34px;
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.service-feature p {
  margin-top: 4px;
  font-size: 15px;
  line-height: 20px;
}
.service-feature .button-row {
  margin-top: 16px;
}
.service-feature .button {
  min-height: 46px;
  padding: 10px 12px;
  font-size: 13.5px;
  letter-spacing: -0.03em;
  white-space: nowrap;
}
.service-feature .button-row {
  gap: 8px;
}
.services-list {
  display: grid;
  gap: var(--gap);
}

/* Guides */
.guide-categories {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.guide-category {
  display: grid;
  gap: 2px;
  align-content: start;
  min-height: 98px;
  padding: 12px 10px;
  border-radius: 20px;
  color: var(--text);
  text-align: left;
  transition:
    transform 0.24s,
    border-color 0.24s;
}
.guide-category svg {
  width: 24px;
  height: 24px;
  margin-bottom: 6px;
  stroke-width: 1.7;
}
.guide-category strong {
  font-size: 15px;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.guide-category small {
  font-size: 11.5px;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.guide-category[aria-pressed="true"] {
  border-color: #e040fb;
  box-shadow:
    0 0 0 1px #e040fb,
    0 0 20px #e040fb40;
}
#guide-list:not(:empty) {
  margin-top: var(--gap);
  padding: 2px 16px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--glass);
}
#guide-list > :last-child {
  border-bottom: 0;
}
.faq-all {
  min-height: 44px;
  padding: 4px 0 4px 8px;
  border: 0;
  flex-shrink: 0;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: 15px;
  font-weight: 600;
}
.faq-category,
.faq-answer {
  border-bottom: 1px solid var(--hairline);
  padding: 14px 0;
}
.faq-category > summary,
.faq-answer > summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 16px;
  font-weight: 600;
  line-height: 22px;
}
.faq-category > summary::-webkit-details-marker,
.faq-answer > summary::-webkit-details-marker,
.price-summary > summary::-webkit-details-marker {
  display: none;
}
.faq-answer > summary::after {
  content: "";
  width: 8px;
  height: 8px;
  margin-right: 4px;
  flex-shrink: 0;
  border: solid var(--muted);
  border-width: 2px 2px 0 0;
  transform: rotate(45deg);
  transition: transform 0.24s;
}
.faq-answer[open] > summary::after {
  transform: rotate(135deg);
}
.faq-answer-body {
  padding: 12px 0 4px;
  color: var(--muted);
}
.faq-answer-body a {
  color: var(--accent);
}
.faq-answer-body code {
  overflow-wrap: anywhere;
}
#faq-full .faq-category {
  padding: 2px 16px;
  margin-top: var(--gap);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--glass);
}
#faq-full .faq-category > summary {
  min-height: 52px;
  font-weight: 700;
}
#faq-full .faq-answer:last-child {
  border-bottom: 0;
}
.guide-help,
.guide-support {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 4px 14px;
  align-items: start;
  padding: 18px 20px;
  border-radius: 24px;
}
.guide-support {
  border: 1px solid var(--line);
  background: var(--glass);
  box-shadow: inset 0 1px 0 #ffffff1f;
}
.guide-help > svg,
.guide-support > svg {
  width: 28px;
  height: 28px;
  margin-top: 2px;
  stroke-width: 1.6;
}
.guide-help > :not(svg),
.guide-support > :not(svg) {
  grid-column: 2;
}
.guide-help h2,
.guide-support h2 {
  font-size: 20px;
}
.guide-help p,
.guide-support p {
  color: var(--muted);
  font-size: 14px;
}
.link-action {
  justify-self: start;
  min-height: 36px;
  padding: 6px 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  background: none;
  color: var(--accent);
  font-size: 16px;
  font-weight: 600;
}
.link-action svg {
  width: 18px;
  height: 18px;
}
.catalog-back {
  margin-bottom: 16px;
}
.guide-body {
  max-width: 720px;
}
.guide-body p {
  white-space: pre-line;
}
.guide-body .page-heading {
  margin: 16px 0 14px;
}
.guide-progress {
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}
.guide-step {
  position: relative;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 32px;
  column-gap: 14px;
  align-items: start;
  margin-top: var(--gap);
  padding: 16px;
  border-radius: 24px;
}
.guide-step > :not(.step-number, .step-toggle) {
  grid-column: 2;
  min-width: 0;
}
.step-number {
  grid-column: 1;
  grid-row: 1 / span 4;
  align-self: start;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #ffffff14;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
}
.guide-step h3 {
  font-size: 18px;
}
.guide-step p {
  margin-top: 4px;
  font-size: 14px;
  line-height: 20px;
}
.guide-step > p.muted,
.guide-step > .copy-box {
  grid-column: 2 / -1;
}
/* A long download label wraps as a row: text on the left, arrow on the right. */
.guide-body > a.button.block {
  justify-content: space-between;
  padding-inline: 20px;
  font-size: 15px;
  text-align: left;
}
.step-toggle {
  grid-column: 3;
  grid-row: 1;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  color: #ffffff59;
}
.step-toggle svg {
  width: 24px;
  height: 24px;
}
.step-toggle[aria-pressed="true"] {
  background: var(--green);
  color: #04130a;
}
.step-toggle[aria-pressed="true"] svg {
  width: 18px;
  height: 18px;
  stroke-width: 3;
}
.step-progress {
  display: flex;
  gap: 6px;
  margin: 0 0 16px;
}
.step-progress span {
  flex: 1;
  height: 4px;
  border-radius: var(--pill);
  background: #ffffff29;
}
.step-progress .is-done {
  background: var(--accent-gradient);
}
.help-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--hairline);
}

/* Sheets */
dialog {
  width: min(520px, calc(100% - 32px));
  max-height: min(760px, calc(100dvh - 48px));
  padding: 24px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--card);
  background: #1a1a20;
  box-shadow:
    inset 0 1px 0 #ffffff24,
    0 24px 100px #000c;
  color: var(--text);
}
dialog::backdrop {
  background: #00000099;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
body:has(dialog[open]) {
  overflow: hidden;
}
.sheet-heading {
  position: sticky;
  top: -24px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: -24px -24px 0;
  padding: 24px 24px 12px;
  background: #1a1a20;
}
.sheet-heading h2 {
  flex: 1;
  min-width: 0;
  font-size: 26px;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.sheet-heading h2:focus {
  outline: 0;
}
#sheet-content .button-row > .button {
  flex: 1 1 auto;
}
.switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
  padding: 8px 12px 8px 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #ffffff0f;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
}
.switch {
  -webkit-appearance: none;
  appearance: none;
  position: relative;
  flex: none;
  width: 52px;
  height: 32px;
  border-radius: var(--pill);
  background: #ffffff29;
  cursor: pointer;
  transition: background-color 0.24s;
}
.switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px #0006;
  transition: transform 0.24s;
}
.switch:checked {
  background: var(--green);
}
.switch:checked::after {
  transform: translateX(20px);
}
#sheet-content {
  display: grid;
  gap: 12px;
  padding-top: 8px;
}
#sheet-content p + p {
  margin-top: 0;
}
#methods-back {
  justify-self: start;
}
#sheet-content .section {
  margin-top: 8px;
}
#sheet-content h3 {
  margin-top: 12px;
  font-size: 20px;
}
.support-context {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #ffffff0f;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}
.support-context span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.support-context svg {
  width: 16px;
  height: 16px;
}
#context-faq {
  padding: 2px 16px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #ffffff0a;
}
#context-faq > :last-child {
  border-bottom: 0;
}
#context-faq:empty {
  display: none;
}
.device-stepper {
  display: grid;
  grid-template-columns: 44px 96px 44px;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 12px 0;
}
#device-value {
  font-size: 34px;
  font-weight: 800;
  line-height: 40px;
  text-align: center;
}
#feedback {
  position: fixed;
  bottom: 32px;
  left: 50%;
  z-index: 100;
  max-width: calc(100% - 32px);
  padding: 12px 20px;
  transform: translateX(-50%);
  border: 1px solid var(--line);
  border-radius: var(--pill);
  background: #2a2a33;
  box-shadow: 0 8px 30px #0008;
  font-size: 14px;
  font-weight: 500;
  text-align: center;
}
#feedback.in-sheet {
  position: static;
  transform: none;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 12px 16px;
  border: 1px solid #ff453a59;
  border-radius: var(--tile);
  background: #ff453a14;
  box-shadow: none;
  text-align: left;
}
.method {
  width: 100%;
  min-height: 68px;
  padding: 12px 16px;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) max-content;
  align-items: center;
  gap: 14px;
  border-radius: 20px;
  color: var(--text);
  text-align: left;
  transition: transform 0.24s;
}
.method > div {
  min-width: 0;
}
.method strong {
  display: block;
  font-size: 16px;
  line-height: 22px;
}
.method small {
  display: block;
  font-size: 13px;
  line-height: 18px;
}
.method .price {
  font-size: 16px;
  font-weight: 700;
}
.method.is-last {
  border-color: transparent;
  background:
    linear-gradient(#211a26, #1b1620) padding-box,
    var(--accent-gradient) border-box;
}
.gift-option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  font-size: 14px;
  color: var(--muted);
}
.gift-option input {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  margin: 0;
  accent-color: var(--accent-end);
}
.sbp-handoff {
  display: grid;
  gap: 12px;
  text-align: center;
}
.sbp-handoff img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  background: #fff;
  border-radius: 12px;
}
.sbp-handoff p {
  margin: 0;
}

/* Paywall */
.compact-paywall {
  max-width: 560px;
  margin: 0 auto;
}
/* Why an old or foreign link from the bot or a TV opened the regular tariffs. */
.link-notice {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px 12px;
  align-items: start;
  margin-bottom: 16px;
  padding: 14px 16px;
  border: 1px solid #ffb02059;
  border-radius: var(--tile);
  background: #ffb02014;
  color: var(--text);
  font-size: 15px;
  line-height: 21px;
}
.link-notice > svg {
  width: 20px;
  height: 20px;
  color: var(--yellow);
}
.link-notice .button {
  grid-column: 2;
  justify-self: start;
}
.compact-paywall .page-heading {
  margin-bottom: 12px;
}
.compact-paywall h1 {
  font-size: clamp(26px, 7.5vw, 34px);
  line-height: 1.08;
  letter-spacing: -0.03em;
}
.page-heading .providers {
  margin-top: 6px;
  font-size: 13px;
  font-weight: 500;
  line-height: 18px;
  text-wrap: balance;
}
.pro-benefits {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin: 12px 0 14px;
}
.pro-benefits span {
  flex: 1 1 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 34px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: var(--pill);
  background: var(--glass);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.pro-benefits svg {
  width: 14px;
  height: 14px;
}
.terms {
  display: grid;
  gap: 10px;
}
.term {
  width: 100%;
  min-height: 64px;
  padding: 8px 16px 8px 14px;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  border-radius: 22px;
  color: var(--text);
  text-align: left;
  transition:
    transform 0.24s,
    border-color 0.24s;
}
.term-radio {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border: 2px solid #ffffffb3;
  border-radius: 50%;
}
.term-copy {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1px 8px;
  font-weight: 400;
}
.term strong {
  font-size: 18px;
  line-height: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.term span {
  flex-basis: 100%;
  color: var(--muted);
  font-size: 13px;
  line-height: 18px;
}
.term span:empty {
  display: none;
}
.term-badge {
  padding: 1px 8px;
  border: 1px solid var(--line);
  border-radius: var(--pill);
  background: #ffffff1f;
  color: var(--text);
  font-size: 11px;
  font-weight: 600;
  line-height: 16px;
  font-style: normal;
  white-space: nowrap;
}
.term-badge.is-accent {
  border-color: transparent;
  background: var(--accent-gradient);
}
.term .price {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.term[aria-pressed="true"] {
  border: 1.5px solid transparent;
  background:
    linear-gradient(#251a2c, #1a1422) padding-box,
    var(--accent-gradient) border-box;
  box-shadow: 0 0 24px #c93bd040;
}
.term[aria-pressed="true"] .term-radio {
  border-color: #ff5cb8;
}
.term[aria-pressed="true"] .term-radio::after {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent-gradient);
}
/* Half a year or a year for a regular customer of single months (cabinet_long_terms). */
.loyal-offer {
  margin: 14px 0 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--glass);
  box-shadow: inset 0 1px 0 #ffffff1f;
}
.loyal-offer h2 {
  font-size: 18px;
  line-height: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.loyal-offer p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 14px;
  line-height: 20px;
}
.loyal-choices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}
.loyal-choice {
  min-width: 0;
  display: grid;
  justify-items: start;
  align-content: start;
  gap: 2px;
  padding: 12px 14px 14px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--glass-flat);
  text-align: left;
}
.loyal-choice strong {
  font-size: 15px;
  line-height: 20px;
  font-weight: 700;
}
.loyal-choice .price {
  font-size: 20px;
  line-height: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
  font-variant-numeric: lining-nums tabular-nums;
}
.loyal-choice small {
  color: var(--muted);
  font-size: 12.5px;
  line-height: 17px;
}
.loyal-cta {
  margin-top: 10px;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 14px;
  border-radius: var(--pill);
  background: var(--text);
  color: var(--bg);
  font-size: 14px;
  font-weight: 700;
}
.loyal-cta svg {
  width: 15px;
  height: 15px;
}
.loyal-choice[aria-pressed="true"] {
  border-color: transparent;
  background:
    linear-gradient(#251a2c, #1a1422) padding-box,
    var(--accent-gradient) border-box;
}
.loyal-choice[aria-pressed="true"] .loyal-cta {
  padding-inline: 0;
  background: none;
  color: var(--text);
}
/* The per-day figure is a footnote to the totals on the buttons, never a charge. */
.term-daily {
  display: grid;
  gap: 2px;
  color: var(--muted);
  font-size: 15px;
}
.term-daily small {
  color: var(--faint);
  font-size: 13px;
}
/* The Mini App's arguments for a longer term, under the per-day footnote. */
.term-lead {
  color: var(--muted);
}
.term-benefits {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.term-benefits li {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.35;
}
.term-benefits svg {
  width: 18px;
  height: 18px;
  margin-top: 1px;
  color: var(--green);
}
.term-annual {
  display: grid;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--hairline);
}
#sheet-content .term-annual h3 {
  margin: 0;
  color: var(--green);
  font-size: 16px;
  line-height: 1.3;
}
.term-actions {
  display: grid;
  gap: 10px;
}
#sheet-content .term-note {
  margin-top: 0;
  font-size: 12px;
}
.note-shield {
  flex: none;
  width: 16px;
  height: 16px;
  color: var(--green);
}
/* The Mini App's page in the new design: headline, PRO band, access, sections, receipt. */
.is-miniapp .page-heading {
  margin-bottom: 16px;
}
.is-miniapp .page-heading p {
  font-size: 15px;
}
.pro-band,
.access-card,
.receipt-card {
  display: grid;
  gap: 6px;
  margin-bottom: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--glass);
  box-shadow: inset 0 1px 0 #ffffff1f;
}
.pro-band h2,
.receipt-card h2 {
  margin: 0;
  font-size: 18px;
  line-height: 1.25;
}
.pro-band p {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 13px;
}
.pro-band ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.pro-band li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}
.pro-band svg {
  flex: none;
  width: 16px;
  height: 16px;
  color: var(--accent);
}
.access-caption {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}
.access-caption svg {
  width: 15px;
  height: 15px;
}
.access-card strong {
  font-size: 18px;
}
.access-card small {
  color: var(--faint);
  font-size: 13px;
}
.section-title {
  margin: 4px 0 10px;
  font-size: 17px;
  line-height: 1.3;
}
.term-upsell {
  width: 100%;
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border: 1px dashed var(--line);
  border-radius: 20px;
  background: var(--glass-flat);
  color: var(--text);
  text-align: left;
  cursor: pointer;
}
.term-upsell span {
  display: grid;
  gap: 2px;
}
.term-upsell small {
  color: var(--muted);
  font-size: 13px;
}
.term-upsell svg {
  flex: none;
  width: 18px;
  height: 18px;
}
.addons-section {
  margin-top: 18px;
}
.addons-section .addons {
  margin: 0;
}
.addon.addon-tile {
  display: grid;
  border-radius: 18px;
  min-height: 112px;
  padding: 12px 6px;
  grid-template-columns: 1fr;
  justify-items: center;
  gap: 4px;
  white-space: normal;
  text-align: center;
}
.addon.addon-tile svg {
  width: 20px;
  height: 20px;
  color: var(--muted);
}
.addon.addon-tile:has(input:checked) svg {
  color: var(--accent);
}
.addon.addon-tile:has(input:disabled) {
  opacity: 1;
}
.addon.addon-tile small,
.addon-term {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  line-height: 16px;
}
.addon-fee {
  font-size: 13px;
  line-height: 18px;
}
.addon-note {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
}
.receipt-card {
  margin-top: 18px;
}
.receipt-card .receipt {
  display: grid;
  gap: 6px;
}
.projected-card {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
  padding: 10px 12px;
  border-radius: 16px;
  background: #30d1581a;
}
.projected-card[hidden] {
  display: none;
}
.projected-card svg {
  flex: none;
  width: 18px;
  height: 18px;
  color: var(--green);
}
.projected-card span {
  display: grid;
}
.projected-card small {
  color: var(--muted);
  font-size: 12px;
}
.footer-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 18px;
  font-weight: 700;
}
.footer-total strong {
  font-size: 28px;
  letter-spacing: -0.02em;
}
/* The Mini App's per-day figure: the plain PRO price of the longer term, labelled as such. */
.term-value {
  display: grid;
  gap: 2px;
  padding: 14px 16px;
  border: 1px solid #30d15840;
  border-radius: 20px;
  background: #30d15814;
}
.term-value span,
.term-value small {
  color: var(--muted);
  font-size: 13px;
}
.term-value strong {
  color: var(--green);
  font-size: 30px;
  line-height: 1.15;
}
.term-value strong small {
  margin-left: 6px;
  color: var(--green);
  font-size: 15px;
  font-weight: 500;
}
#sheet-content .button.is-annual {
  border-color: #30d15866;
  color: var(--green);
}
/* The order a payment confirms; "Другой срок" returns to the page with the same bundle. */
.order-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px 16px;
  align-items: start;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--glass-flat);
}
.order-lines {
  min-width: 0;
  display: grid;
  gap: 2px;
}
.order-lines strong {
  font-size: 16px;
  font-weight: 700;
}
.order-lines span {
  color: var(--muted);
  font-size: 14px;
}
.order-lines .order-gift {
  color: var(--green);
}
.order-total {
  display: grid;
  justify-items: end;
}
.order-total small {
  color: var(--muted);
  font-size: 13px;
}
.order-total strong {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.order-summary > .button {
  grid-column: 1 / -1;
  justify-self: start;
  min-height: 40px;
  padding: 8px 14px;
}
.addons {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  gap: 8px;
  margin: 14px 0 0;
}
.addon {
  position: relative;
  min-width: 0;
  min-height: 52px;
  padding: 7px 6px;
  display: grid;
  grid-template-columns: auto auto;
  align-content: center;
  justify-content: center;
  align-items: center;
  gap: 0 4px;
  letter-spacing: -0.02em;
  border-radius: 18px;
  color: var(--text);
  font-size: 13.5px;
  font-weight: 700;
  line-height: 19px;
  white-space: nowrap;
  cursor: pointer;
}
.addon svg {
  width: 15px;
  height: 15px;
  stroke-width: 2.4;
}
.addon small {
  grid-column: 1 / -1;
  justify-self: center;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  line-height: 16px;
}
.addon input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.addon:has(input:checked) {
  border-color: transparent;
  background:
    linear-gradient(#251a2c, #1a1422) padding-box,
    var(--accent-gradient) border-box;
}
.addon:has(input:focus-visible) {
  outline: 2px solid #fff;
  outline-offset: 3px;
}
.addon:has(input:disabled) {
  opacity: 0.6;
}
.checkout-offer {
  margin: 14px 0 0;
}
.checkout-footer {
  margin-top: 16px;
  padding: 18px 20px 14px;
  border: 1px solid var(--line);
  border-radius: var(--card);
  background: var(--glass);
  box-shadow: inset 0 1px 0 #ffffff1f;
}
.price-summary > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  list-style: none;
}
.checkout-total {
  min-width: 0;
  display: grid;
  gap: 2px;
}
.checkout-total > span {
  font-size: 26px;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.projected {
  color: var(--muted);
  font-size: 14px;
  line-height: 20px;
}
.price-summary > summary > strong {
  font-size: 34px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.02em;
  white-space: nowrap;
  font-variant-numeric: lining-nums tabular-nums;
}
.price-summary > summary > strong[aria-busy="true"] {
  opacity: 0.6;
}
.receipt {
  margin-top: 12px;
  padding-top: 8px;
  border-top: 1px solid var(--hairline);
}
.receipt-row {
  display: flex;
  gap: 16px;
  justify-content: space-between;
  align-items: baseline;
  padding: 5px 0;
  font-size: 14px;
  color: var(--muted);
}
.receipt-row > :first-child {
  min-width: 0;
}
.receipt-row > :last-child {
  flex-shrink: 0;
}
.checkout-footer .button {
  margin-top: 14px;
  min-height: 56px;
  font-size: 17px;
}
.checkout-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
}
.checkout-note svg {
  width: 16px;
  height: 16px;
}
#quote-error {
  margin-top: 8px;
  font-size: 13px;
  text-align: center;
}

/* Wide screens: the hero sits beside the services. */
@media (min-width: 1100px) {
  .home-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(320px, 1fr);
    gap: 28px;
    align-items: start;
  }
  .home-grid .hero {
    min-height: 520px;
  }
  .home-aside .section:first-child {
    margin-top: 0;
  }
}
@media (min-width: 700px) {
  .purchasing main {
    padding-top: 0;
  }
  .services-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .tiles {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
/* Room for one-line add-on chips, as on the mockup. */
@media (min-width: 480px) {
  .addon {
    display: inline-flex;
    justify-content: center;
    gap: 5px;
    min-height: 44px;
    border-radius: var(--pill);
    font-size: 14px;
  }
  .addon small {
    font-size: 12.5px;
  }
}

/* Phones: art from the top edge, controls over it, floating tab bar. */
@media (max-width: 699px) {
  .showy-v2.purchasing {
    --dock-height: 0px;
  }
  .app-layout {
    display: block;
    max-width: 480px;
  }
  .navigation {
    position: fixed;
    top: auto;
    left: 12px;
    right: 12px;
    bottom: calc(10px + env(safe-area-inset-bottom));
    z-index: 30;
    width: auto;
    max-width: 456px;
    height: var(--dock-height);
    margin: 0 auto;
    padding: 6px;
    display: block;
    overflow: visible;
    border: 1px solid var(--line);
    border-radius: 36px;
    background: #1d1d24b8;
    box-shadow:
      inset 0 1px 0 #ffffff29,
      0 12px 40px #000a;
    -webkit-backdrop-filter: blur(24px) saturate(1.4);
    backdrop-filter: blur(24px) saturate(1.4);
  }
  .purchasing .navigation,
  .navigation .brand,
  .navigation-app {
    display: none;
  }
  .navigation nav {
    height: 100%;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0;
  }
  .navigation nav button {
    min-width: 0;
    min-height: 0;
    height: 100%;
    padding: 4px 0;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    border-radius: 30px;
    font-size: 10.5px;
    font-weight: 500;
    letter-spacing: -0.02em;
    line-height: 14px;
  }
  .navigation nav button span {
    white-space: nowrap;
  }
  .navigation nav button[aria-current="page"] {
    background: #ffffff24;
    border-color: #ffffff1f;
    /* Same weight as the rest: a bolder label would not fit the widest tab. */
    font-weight: 500;
  }
  .service-feature .button-row > .button {
    flex: 1 1 auto;
  }
  .navigation nav svg {
    width: 24px;
    height: 24px;
  }
  .topbar {
    position: fixed;
    inset: 0 0 auto;
    max-width: 480px;
    margin: 0 auto;
    height: calc(var(--top) + env(safe-area-inset-top));
    padding: calc(10px + env(safe-area-inset-top)) 16px 10px;
    justify-content: flex-end;
    gap: 8px;
    background: linear-gradient(180deg, #050507d9 0, #05050799 55%, #05050700);
    pointer-events: none;
  }
  .topbar > * {
    pointer-events: auto;
  }
  .topbar-account {
    position: absolute;
    left: 50%;
    top: calc(10px + env(safe-area-inset-top));
    height: 44px;
    width: calc(100% - 240px);
    transform: translateX(-50%);
    display: grid;
    align-content: center;
    justify-items: center;
    flex: none;
  }
  .mobile-brand {
    display: block;
  }
  .topbar .mobile-brand img {
    width: 78px;
    height: 26px;
    object-position: center;
  }
  .account-identity {
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    font-size: 10px;
    line-height: 12px;
  }
  .identity-caption {
    flex-shrink: 0;
  }
  #profile {
    order: -1;
    margin-right: auto;
  }
  .purchasing #profile {
    display: none;
  }
  .purchasing #checkout-back {
    display: inline-flex;
    margin-right: auto;
  }
  .purchasing .topbar a[href="/app"] {
    display: none;
  }
  main {
    padding: calc(var(--top) + env(safe-area-inset-top) + 16px) var(--gutter)
      calc(var(--dock-height) + 40px + env(safe-area-inset-bottom));
    min-height: 100dvh;
  }
  .on-home main {
    padding-top: 0;
  }
  .hero {
    min-height: 0;
    margin: 0 calc(-1 * var(--gutter));
    padding: clamp(196px, 28dvh, 240px) var(--gutter) 0;
    overflow: visible;
    border-radius: 0;
    background: none;
  }
  .hero img {
    inset: 0 0 auto;
    height: clamp(330px, 46dvh, 400px);
  }
  .hero::after {
    inset: 0 0 auto;
    height: clamp(330px, 46dvh, 400px);
    background: linear-gradient(180deg, #05050780 0, #05050700 24%, #05050700 40%, #050507cc 68%, var(--bg) 96%);
  }
  .hero h1 {
    font-size: clamp(34px, 10.4vw, 44px);
  }
  .hero h1.is-long {
    font-size: clamp(24px, 7.3vw, 34px);
    white-space: nowrap;
  }
  .hero-sub {
    font-size: 15px;
  }
  .hero .button-row {
    gap: 10px;
  }
  /* Each action keeps its padding; one that does not fit moves to its own full-width row. */
  .hero .button-row > .button {
    flex: 1 1 auto;
    padding-inline: 14px;
    font-size: 15px;
  }
  .hero .button-row > .button.primary:only-child {
    min-height: 56px;
    padding-inline: 22px;
    font-size: 17px;
  }
  .hero-note {
    text-align: center;
  }
  .section {
    margin-top: 24px;
  }
  .offer-card {
    padding: 14px 16px;
    gap: 0 12px;
    align-items: end;
  }
  .offer-card > div {
    display: contents;
  }
  .offer-card .badge {
    grid-column: 1 / -1;
    justify-self: start;
  }
  .offer-card h3 {
    grid-column: 1 / -1;
    font-size: 19px;
    text-wrap: balance;
  }
  .offer-card p {
    align-self: center;
    margin-top: 6px;
  }
  .offer-card .button {
    margin-top: 6px;
    min-height: 40px;
    padding-inline: 16px;
  }
  .offer-card > .icon-button {
    position: absolute;
    top: 10px;
    right: 10px;
  }
  .skeleton {
    margin-top: calc(var(--top) + 16px);
  }
  .compact-paywall {
    padding-bottom: var(--checkout-height, 220px);
  }
  .checkout-footer {
    position: fixed;
    left: 8px;
    right: 8px;
    bottom: calc(8px + env(safe-area-inset-bottom));
    z-index: 15;
    max-width: 464px;
    margin: 0 auto;
    background: #1f1f27d9;
    -webkit-backdrop-filter: blur(24px) saturate(1.4);
    backdrop-filter: blur(24px) saturate(1.4);
  }
  dialog {
    position: fixed;
    inset: auto 0 0;
    width: 100%;
    max-width: 480px;
    max-height: 88dvh;
    margin: 0 auto;
    padding: 28px 20px calc(24px + env(safe-area-inset-bottom));
    border-width: 1px 0 0;
    border-radius: var(--card) var(--card) 0 0;
  }
  dialog::before {
    content: "";
    position: absolute;
    top: 8px;
    left: 50%;
    z-index: 3;
    width: 40px;
    height: 4px;
    margin-left: -20px;
    border-radius: var(--pill);
    background: #ffffff59;
  }
  .sheet-heading {
    top: -28px;
    margin: -28px -20px 0;
    padding: 30px 20px 12px;
  }
  .sheet-heading h2 {
    font-size: 22px;
  }
  #feedback {
    bottom: calc(var(--dock-height) + 28px + env(safe-area-inset-bottom));
    width: max-content;
  }
  .purchasing #feedback {
    bottom: calc(var(--checkout-height, 220px) + 12px);
  }
}
@media (max-width: 389px) {
  .sheet-heading h2 {
    font-size: 20px;
  }
  .topbar .mobile-brand img {
    width: 60px;
    height: 20px;
  }
  .account-identity {
    display: grid;
    justify-items: center;
    gap: 0;
    font-size: 9.5px;
    line-height: 11px;
  }
  #identity {
    max-width: 100%;
  }
}
@media (max-width: 359px) {
  :root {
    --gutter: 16px;
  }
  .navigation {
    left: 6px;
    right: 6px;
    padding-inline: 3px;
  }
  .navigation nav button {
    font-size: 9.5px;
    letter-spacing: -0.04em;
  }
  .button {
    padding-inline: 16px;
    font-size: 15px;
  }
  .hero .button-row > .button.primary:only-child {
    padding-inline: 12px;
    font-size: 15px;
  }
  .device-status {
    white-space: normal;
  }
  .addon {
    grid-template-columns: auto;
  }
  .addon svg {
    display: none;
  }
  .service-card {
    padding: 14px 12px;
  }
  .home-aside .service-card .button {
    font-size: 14px;
  }
  .guide-category {
    padding-inline: 9px;
  }
  .guide-category strong {
    font-size: 14px;
  }
  .guide-category small {
    font-size: 11px;
  }
  .code-cells {
    gap: 6px;
  }
  .code-cells span {
    height: 56px;
    font-size: 26px;
  }
  .term strong {
    font-size: 18px;
  }
  .term .price {
    font-size: 19px;
  }
  .addon {
    padding-inline: 4px;
    font-size: 12.5px;
  }
  .guide-categories {
    gap: 8px;
  }
  .price-summary > summary > strong {
    font-size: 28px;
  }
  .home-app-prompt {
    grid-template-columns: 40px minmax(0, 1fr) auto;
    column-gap: 8px;
  }
  .home-app-prompt > .app-icon {
    width: 40px;
    height: 40px;
  }
  .home-app-prompt > .button {
    padding-inline: 10px;
  }
  .offer-card h3 {
    font-size: 18px;
  }
}

/* Dense surfaces for weak Android devices and reduced transparency. */
.reduced-effects .navigation,
.reduced-effects .checkout-footer,
.reduced-effects .icon-button,
.reduced-effects .badge {
  background: var(--solid);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
.reduced-effects .service-card,
.reduced-effects .app-prompt,
.reduced-effects .list-card,
.reduced-effects .guide-surface,
.reduced-effects .guide-step,
.reduced-effects .guide-help,
.reduced-effects .guide-support,
.reduced-effects .connect-card,
.reduced-effects .guide-category,
.reduced-effects .tile,
.reduced-effects .row-link,
.reduced-effects .search-field,
.reduced-effects .method,
.reduced-effects .term,
.reduced-effects .addon,
.reduced-effects .install-card,
.reduced-effects .button:not(.primary) {
  background-color: var(--solid);
}
.reduced-effects dialog::backdrop {
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
.reduced-effects.showy-v2::before,
.reduced-effects .showy-v2::before {
  display: none;
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

/* Installation page */
.installation-page {
  background:
    radial-gradient(260px 200px at 12% 4%, #2d7dff59, transparent 70%),
    radial-gradient(280px 220px at 92% 10%, #ff2d6e66, transparent 70%),
    radial-gradient(260px 200px at 50% 0, #a855f74d, transparent 70%),
    var(--bg);
  background-repeat: no-repeat;
}
.installation-page .install-layout {
  max-width: 480px;
  min-height: 100dvh;
  margin: auto;
  padding: 16px var(--gutter) 40px;
}
.install-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px;
}
.install-header > :first-child {
  justify-self: start;
}
.install-header > :last-child {
  justify-self: end;
}
.install-header .brand img {
  width: 78px;
  height: 26px;
  object-position: center;
}
.install-header .button {
  min-height: 44px;
  padding: 8px 16px 8px 12px;
  gap: 6px;
  font-size: 15px;
  font-weight: 500;
}
.install-header .button svg {
  width: 18px;
  height: 18px;
}
.install-intro {
  padding-top: 20px;
  text-align: center;
}
.install-intro > img,
.install-intro > .app-icon {
  display: grid;
  width: 88px;
  height: 88px;
  margin: 0 auto 16px;
  border-radius: 22px;
}
[data-install-platform="android"] .install-intro > img,
[data-install-platform="android"] .install-intro > .app-icon {
  display: none;
}
[data-install-platform="android"] .install-intro {
  text-align: left;
}
.install-intro p {
  margin: 8px auto 0;
  max-width: 34ch;
  color: var(--muted);
  text-wrap: balance;
}
.install-card,
.install-warning {
  padding: 18px 20px;
  border-radius: 24px;
}
.install-steps,
.install-apk,
.install-qr,
.install-benefits,
.install-warning {
  margin-top: 14px;
}
.install-platforms {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2px;
  margin-top: 18px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: var(--pill);
  background: var(--glass);
}
.install-platforms .button {
  min-width: 0;
  min-height: 44px;
  padding-inline: 0;
  border-color: transparent;
  background: transparent;
  box-shadow: none;
  color: var(--muted);
  font-size: clamp(12.5px, 3.8vw, 15px);
  font-weight: 500;
  letter-spacing: -0.03em;
  white-space: nowrap;
}
.install-platforms [aria-pressed="true"] {
  background: #ffffff38;
  border-color: #ffffff29;
  box-shadow: inset 0 1px 0 #ffffff33;
  color: var(--text);
  font-weight: 600;
}
.install-card h2,
.install-warning h2 {
  font-size: 22px;
}
.install-list,
.install-benefits ul {
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
}
.install-list {
  counter-reset: install-step;
}
.install-list li,
.install-benefits li {
  min-height: 52px;
  padding-block: 10px;
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 16px;
  font-weight: 500;
}
.install-list li + li,
.install-benefits li + li {
  border-top: 1px solid var(--hairline);
}
.install-list li::before {
  counter-increment: install-step;
  content: counter(install-step);
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #ffffff14;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}
.install-list svg,
.install-benefits svg {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
}
.install-warning {
  margin-top: 20px;
  border: 1px solid #ffb020b3;
  background: linear-gradient(180deg, #4a3408f2, #2e2106f2);
  box-shadow:
    inset 0 1px 0 #ffd27a40,
    0 0 28px #ffb02026;
}
.install-warning h2,
.install-apk-heading {
  display: flex;
  align-items: center;
  gap: 14px;
}
.install-warning h2 svg {
  color: var(--yellow);
  flex-shrink: 0;
}
.install-warning > p {
  margin-top: 8px;
  color: #ebd6b5;
}
.install-warning > p:empty {
  display: none;
}
.install-warning .button,
.install-warning .input,
.install-apk .button,
.install-steps .button {
  margin-top: 14px;
}
.install-apk-heading img,
.install-apk-heading .app-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
}
.install-apk-heading div {
  min-width: 0;
}
.install-apk-heading p {
  color: var(--muted);
}
.install-version {
  margin-top: 8px;
  font-size: 13px;
  text-align: center;
}
#android-alternative summary {
  color: var(--muted);
  cursor: pointer;
}
#apk-steps:not([hidden]) + details {
  margin-top: 8px;
}
.install-sign-in {
  margin-block: 16px;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}
.install-qr {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}
.install-qr > div {
  flex: 1 1 140px;
}
.install-qr img {
  display: block;
  background: white;
  border: 8px solid white;
  border-radius: var(--tile);
}
