/* MIST PRO site V6: shared cosmic glass styles. Loaded after app.css and palette.css. */

:root {
  --s-bg: #091a2c;
  --s-text: #f3f7fd;
  --s-muted: #c6d9e9;
  --s-cyan: #9ee6f2;
  --s-cyan-rgb: 158, 230, 242;
  --s-blue: #87bce0;
  --s-violet: #bea9ee;
  --s-pink: #bea9ee;
  --s-pink-rgb: 190, 169, 238;
  --s-line: rgba(142, 196, 228, .36);
  --s-cta: linear-gradient(110deg, #c4f2fa, #8bd3e7);
  --s-cta-text: #071c28;
  --s-grad: linear-gradient(125deg, #183e57, #24546e);
  --s-glass: linear-gradient(145deg, rgba(24, 59, 84, .95), rgba(12, 34, 53, .96));
  --s-glass-violet: linear-gradient(145deg, #1f3450, #152a42);
  --s-shadow: 0 .45rem 1.3rem rgba(0, 8, 22, .3);
  --s-radius: .875rem;
  --max-width: 94rem;
  --color-link: #a5e6f4;
}

@font-face {
  font-family: "MIST Display";
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url("../fonts/inter-900-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "MIST Display";
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url("../fonts/inter-900-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

html { background-color: var(--s-bg); }
body {
  color: var(--s-text);
  font-family: Manrope, system-ui, sans-serif;
  background:
    linear-gradient(180deg, rgba(9, 25, 42, .55), #091a2c 95%),
    url("../img/v6-sky.webp") center top / cover no-repeat fixed #091a2c;
}
.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

a { color: var(--color-link); }
.ik { flex: none; width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

body[data-page] main.container, body[data-page] .site-header .header-bar, .site-footer .footer-inner { max-width: var(--max-width); }
main#main { padding-top: 1.5rem; }
body[data-page] main [id] { scroll-margin-top: var(--anchor-offset, 6rem); }

/* ---------------------------------------------------------------- кнопки и поля */

.btn {
  gap: .6rem;
  min-height: 3.25rem;
  padding: .7rem 1.5rem;
  border-radius: .7rem;
  font-weight: 600;
  font-size: 1.0625rem;
  color: var(--s-text);
}
.btn-primary, .btn-primary:hover {
  background: var(--s-cta);
  border: 1px solid #b7eef7;
  color: var(--s-cta-text);
  box-shadow: inset 0 1px 1px #dcfaff, 0 .2rem .75rem rgba(114, 213, 246, .2);
}
.btn-primary:hover { filter: brightness(1.08); }
.btn-secondary, .btn-secondary:hover {
  background: #142e44;
  border: 1px solid var(--s-line);
  color: var(--s-text);
  box-shadow: none;
}
.btn-secondary:not(:disabled):hover { background: #1c415a; border-color: var(--s-cyan); }
.btn-primary:disabled { background: #244459; border-color: #46677c; color: #d0dfea; box-shadow: none; }
.btn-arrow { width: 1.35em; height: 1.35em; }
input[type="text"], input[type="email"], input[type="number"], input[type="password"], select, textarea {
  background: #0d283c;
  border: 1px solid var(--s-line);
  border-radius: .7rem;
  color: var(--s-text);
}
input::placeholder { color: #b0c6d6; }

/* ---------------------------------------------------------------- стекло */

.card, .sub-card, .goal-card, .login-card, .tariff-card article, .feature-item, .home-card, .connect-step,
.network-row, .faq-item, .materials, .support-card, .video-card, .connect-strip .video-body, .connect-more, .help-block, .app-card, dialog.modal {
  border: 1px solid var(--s-line);
  border-radius: var(--s-radius);
  background: var(--s-glass);
  box-shadow: var(--s-shadow);
  color: var(--s-text);
}

/* ---------------------------------------------------------------- шапка */

.site-header {
  background: rgba(3, 6, 26, .86);
  border-bottom: 1px solid transparent;
  border-image: linear-gradient(90deg, rgba(var(--s-cyan-rgb), .7), rgba(140, 80, 255, .7), rgba(var(--s-cyan-rgb), .7)) 1;
  box-shadow: 0 6px 24px rgba(0, 0, 0, .35);
  backdrop-filter: blur(10px);
  z-index: 40;
}
.site-header .header-bar { gap: .7rem; padding: .85rem 1rem; flex-wrap: wrap; }
.site-header .brand { gap: .25rem; flex: none; }
.site-header .brand img { width: 12rem; height: auto; max-height: 2.75rem; }
.brand-pro {
  padding-right: .12em;
  font-family: "MIST Display", "Arial Black", "Segoe UI Black", Inter, "Liberation Sans", Arial, sans-serif;
  font-size: 1.85rem;
  font-weight: 900;
  font-style: italic;
  letter-spacing: -.01em;
  line-height: 1;
  background: linear-gradient(170deg, #ffffff 0%, #e4e8ff 45%, #b9a6ff 75%, #c77dff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-stroke: .035em #dfe3ff;
  filter: drop-shadow(0 0 1px #1a2bb0) drop-shadow(0 0 1px #1a2bb0) drop-shadow(0 0 8px rgba(90, 110, 255, .55));
}
.site-header .brand-pro { font-size: 1.6rem; }

.site-header .header-menu .site-nav a {
  position: relative;
  padding: .5rem .6rem;
  font-size: 1rem;
  color: #e3e8ff;
  box-shadow: none;
}
.site-header .header-menu .site-nav a:hover { background: none; color: #fff; }
.site-header .header-menu .site-nav a[aria-current="page"] { color: #fff; }
.nav-ik { display: none; }

.site-header .header-bar.nav-tight .header-donate span, .site-header .header-bar.nav-tight .header-account span { display: none; }
.site-header .header-bar.nav-tight .header-donate { padding-left: .7rem; padding-right: .7rem; }
@media (min-width: 74.0625rem) and (max-width: 80rem) {
  .site-header .header-bar .header-donate span, .site-header .header-bar .header-account span { display: none; }
  .site-header .header-bar .header-donate { padding-left: .7rem; padding-right: .7rem; }
}
@media (min-width: 74.0625rem) and (max-width: 90rem) {
  html[data-font-size="large"] .site-header .header-bar .header-donate span, html[data-font-size="large"] .site-header .header-bar .header-account span,
  html[data-font-size="max"] .site-header .header-bar .header-donate span, html[data-font-size="max"] .site-header .header-bar .header-account span { display: none; }
  html[data-font-size="large"] .site-header .header-bar .header-donate, html[data-font-size="max"] .site-header .header-bar .header-donate { padding-left: .7rem; padding-right: .7rem; }
}
.site-header .header-donate {
  gap: .55rem;
  min-height: 2.9rem;
  padding: .35rem 1rem;
  border: 1.5px solid rgba(var(--s-pink-rgb), .9);
  border-radius: .6rem;
  background: rgba(var(--s-pink-rgb), .08);
  box-shadow: var(--s-shadow);
  font-size: .9375rem;
  color: #fff;
}
.site-header .header-donate:hover { background: rgba(var(--s-pink-rgb), .18); }
.icon-heart { width: 1.4rem; height: 1.4rem; fill: none; stroke: #ff5bd8; stroke-width: 1.9; stroke-linejoin: round; }

.site-header .header-font-switch {
  position: relative;
  margin-left: .75rem;
  padding: 1px;
  gap: 0;
  border: 1px solid rgba(120, 140, 255, .55);
  border-radius: .6rem;
  background: rgba(4, 9, 32, .7);
}
.site-header .header-font-switch::before,
.site-header .header-account::before {
  content: "";
  position: absolute;
  left: -.75rem;
  top: 15%;
  bottom: 15%;
  width: 1px;
  background: rgba(150, 170, 255, .4);
}
.site-header .header-font-switch .font-switch-label { display: none; }
.site-header .header-font-switch .font-btn {
  min-width: 2.75rem;
  min-height: 2.75rem;
  padding: .1rem .55rem;
  border: 0;
  border-radius: .45rem;
  background: none;
  box-shadow: none;
  color: #e6eaff;
  font-size: .9375rem;
}
.site-header .header-font-switch .font-btn[aria-pressed="true"] {
  background: linear-gradient(180deg, #2a62ff, #1d3fd6);
  color: #fff;
  box-shadow: 0 0 12px rgba(50, 100, 255, .55);
}

.header-account {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  min-height: 2.9rem;
  margin-left: .75rem;
  padding: .35rem 1rem;
  border: 1.5px solid rgba(var(--s-cyan-rgb), .9);
  border-radius: .6rem;
  background: rgba(4, 9, 32, .6);
  box-shadow: 0 0 14px rgba(var(--s-cyan-rgb), .2);
  color: #fff;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}
.header-account .ik { width: 1.5rem; height: 1.5rem; color: var(--s-cyan); }
.header-account:hover { box-shadow: 0 0 18px rgba(var(--s-cyan-rgb), .35); }

.menu-toggle .ik { width: 1.6rem; height: 1.6rem; }
.menu-toggle .menu-ik-close, .menu-toggle[aria-expanded="true"] .menu-ik-open { display: none; }
.menu-toggle[aria-expanded="true"] .menu-ik-close { display: block; }
.menu-shade { position: fixed; inset: 0; z-index: 35; background: rgba(1, 3, 14, .72); }
.menu-shade[hidden] { display: none; }
html.menu-open body { overflow: hidden; }

@media (min-width: 74.0625rem) {
  .site-header .header-bar { flex-wrap: wrap; }
  .site-header .header-menu { display: contents; }
  .site-header .header-menu > .site-nav { order: 1; flex: 0 0 auto; justify-content: center; gap: .25rem; }
  .site-header .header-extra { display: contents; }
  .site-header .header-donate { order: 2; margin-inline-start: auto; }
  .site-header .header-font-switch { order: 3; }
  .site-header .header-account { order: 4; }
  .site-header .header-tools { order: 5; }
  .site-header .header-tools .site-nav-account a { display: none; }
  .site-header .header-tools .nav-link-btn { padding: .4rem .5rem; min-height: 2.9rem; color: var(--s-muted); font-size: .9375rem; }
  .site-header .menu-toggle { display: none; }
  .site-header .header-bar.nav-row2 { row-gap: .25rem; }
  .site-header .header-bar.nav-row2 .brand { margin-right: auto; }
  .site-header .header-bar.nav-row2 .header-menu > .site-nav { order: 10; flex-basis: 100%; justify-content: center; }
  html:is([data-font-size="large"], [data-font-size="max"]) .site-header .header-bar { gap: .45rem; padding-top: .5rem; padding-bottom: .5rem; }
  html:is([data-font-size="large"], [data-font-size="max"]) .site-header .brand img { width: 193px; max-height: 44px; }
  html:is([data-font-size="large"], [data-font-size="max"]) .site-header .brand-pro { font-size: 25.6px; }
  html:is([data-font-size="large"], [data-font-size="max"]) .site-header .header-menu .site-nav a { padding-left: .4rem; padding-right: .4rem; }
  html:is([data-font-size="large"], [data-font-size="max"]) .site-header :is(.header-font-switch, .header-account) { margin-left: .5rem; }
  html:is([data-font-size="large"], [data-font-size="max"]) .site-header :is(.header-font-switch, .header-account)::before { left: -.5rem; }
}

/* компактная шапка: логотип и три квадратные кнопки, ниже полоса с A / A+ / A++, меню выпадает справа */
@media (max-width: 74rem) {
  .site-header .header-bar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto auto;
    align-items: center;
    column-gap: .6rem;
    row-gap: 0;
    padding: .6rem 1rem 0;
    position: relative;
  }
  .site-header .header-bar .brand { grid-column: 1; grid-row: 1; justify-self: start; min-width: 0; max-width: 100%; }
  .site-header .header-bar .brand img { width: 12.4rem; min-width: 0; }
  .site-header .header-bar .header-extra { display: contents; }
  .site-header .header-bar .header-extra .header-donate { grid-column: 2; grid-row: 1; }
  .site-header .header-bar .header-account { grid-column: 3; grid-row: 1; margin: 0; }
  .site-header .header-bar .menu-toggle { grid-column: 4; grid-row: 1; margin: 0; }
  .site-header .header-bar .header-extra .header-donate,
  .site-header .header-bar .header-account,
  .site-header .header-bar .menu-toggle {
    width: 3.25rem;
    min-width: 3.25rem;
    height: 3.25rem;
    min-height: 3.25rem;
    padding: 0;
    justify-content: center;
    border-radius: .75rem;
    font-size: 1rem;
  }
  .site-header .header-bar .header-extra .header-donate span,
  .site-header .header-bar .header-account span { display: none; }
  .site-header .header-bar .header-account::before { display: none; }
  .site-header .header-bar .header-extra .header-donate .icon-heart { width: 1.6rem; height: 1.6rem; }
  .site-header .header-bar .menu-toggle {
    display: inline-flex;
    align-items: center;
    background: rgba(4, 9, 32, .7);
    border: 1.5px solid rgba(160, 150, 255, .6);
    color: #fff;
  }
  .site-header .header-bar .header-extra .header-font-switch {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: end;
    margin: .6rem -1rem 0;
    padding: .5rem 1rem;
    width: calc(100% + 2rem);
    justify-content: flex-end;
    border: 0;
    border-top: 1px solid rgba(var(--s-cyan-rgb), .45);
    border-radius: 0;
    background: rgba(3, 6, 26, .6);
  }
  .site-header .header-bar .header-extra .header-font-switch::before { display: none; }
  .site-header .header-bar .header-extra .header-font-switch .font-btn {
    min-width: 3.25rem;
    min-height: 2.75rem;
    border: 1px solid rgba(150, 120, 255, .55);
    border-radius: 0;
    margin-left: -1px;
    font-size: 1rem;
  }
  .site-header .header-bar .header-extra .header-font-switch .font-btn:first-of-type { border-radius: .6rem 0 0 .6rem; }
  .site-header .header-bar .header-extra .header-font-switch .font-btn:last-of-type { border-radius: 0 .6rem .6rem 0; }

  html.js .site-header .header-bar .header-menu { display: none; }
  html.js .site-header .header-bar .header-menu.is-open {
    display: flex;
    position: absolute;
    top: calc(100% + .5rem);
    right: 1rem;
    width: min(80vw, 24rem);
    max-height: calc(100vh - 10rem);
    overflow-y: auto;
    z-index: 45;
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 0;
    padding: .35rem 0;
    border: 1px solid var(--s-line);
    border-radius: 1rem;
    background: var(--s-glass);
    box-shadow: 0 18px 48px rgba(0, 0, 0, .55), var(--s-shadow);
  }
  html.js .site-header .header-bar .header-menu.is-open > * { flex-shrink: 0; }
  .site-header .header-menu .site-nav { flex-direction: column; gap: 0; width: 100%; }
  .site-header .header-menu .site-nav a {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    min-height: 4rem;
    padding: .6rem 1.5rem;
    font-size: 1.375rem;
    font-weight: 500;
    border-bottom: 1px solid rgba(120, 140, 255, .2);
  }
  .site-header .header-menu .site-nav a:last-child { border-bottom: 0; }
  .site-header .header-menu .site-nav a[aria-current="page"] { background: rgba(60, 80, 200, .22); font-weight: 700; }
  .site-header .header-menu .nav-ik { display: block; width: 2rem; height: 2rem; stroke: url(#ik-grad); color: var(--s-cyan); }
  .site-header .header-menu .nav-ik-pink { stroke: url(#ik-grad-pink); }
  .site-header .header-tools { padding: .25rem 1.5rem .5rem; border-top: 1px solid rgba(120, 140, 255, .2); justify-content: flex-start; }
  .site-header .header-tools .nav-link-btn { padding: .5rem 0; color: var(--s-muted); font-size: 1rem; }
  .site-header .header-tools:not(:has(.nav-link-btn)) { display: none; }
}
@media (max-width: 40rem) {
  .site-header .header-bar .brand img { width: min(12.4rem, 44.5vw); }
  .site-header .brand-pro { font-size: min(1.6rem, 6.4vw); }
  .site-header .header-bar .header-extra .header-donate,
  .site-header .header-bar .header-account,
  .site-header .header-bar .menu-toggle { width: min(3.25rem, 13vw); min-width: min(3.25rem, 13vw); height: min(3.25rem, 13vw); min-height: min(3.25rem, 13vw); }
}
@media (max-width: 22rem) {
  .site-header .header-bar { column-gap: .4rem; }
  .site-header .header-bar .header-extra .header-donate,
  .site-header .header-bar .header-account,
  .site-header .header-bar .menu-toggle { width: 2.9rem; min-width: 2.9rem; height: 2.9rem; min-height: 2.9rem; }
}

body[data-page] .site-header {
  background: #0c2034;
  border-image: none;
  border-bottom: 1px solid #2b4b65;
  box-shadow: none;
}
body[data-page] .site-header .header-bar {
  max-width: 104rem;
  padding-inline: clamp(.85rem, 2.8vw, 3rem);
}
body[data-page] .site-header .brand { display: grid; justify-items: start; gap: 0; }
body[data-page] .site-header .brand img { width: 13.5rem; max-height: none; }
body[data-page] .site-header .brand-tagline {
  display: block;
  margin: -.15em 0 0 20%;
  color: #f1f7ff;
  font-size: .58rem;
  font-weight: 700;
  letter-spacing: .2em;
  line-height: 1.35;
  text-transform: uppercase;
}
body[data-page] .site-header .header-menu .site-nav a[aria-current="page"] {
  background: #1c4a65;
  color: #fff;
}
body[data-page] .site-header .header-menu > .site-nav a:focus-visible {
  outline: 2px solid #a1e5f3;
  outline-offset: -3px;
}
body[data-page] .site-header :is(.header-donate, .header-account, .menu-toggle, .header-font-switch) {
  border: 1px solid #2e526c;
  background: #102a40;
  box-shadow: none;
}
body[data-page] .site-header :is(.header-donate, .header-account, .menu-toggle):hover { background: #193e57; }
body[data-page] .site-header :is(.header-account, .header-font-switch)::before { display: none; }
body[data-page] .site-header .header-font-switch .font-btn[aria-pressed="true"] {
  background: #a5e3f1;
  color: #092332;
  box-shadow: none;
}
body[data-page] .site-header .header-account .ik { color: #a5e3f1; }
body[data-page] .site-header .icon-heart { stroke: #bea9ee; }
@media (min-width: 74.0625rem) {
  body[data-page] .site-header .header-menu > .site-nav {
    border: 1px solid #33556e;
    border-radius: .75rem;
    background: linear-gradient(180deg, #193851, #122c44);
    box-shadow: inset 0 1px rgba(170, 216, 241, .09), 0 .2rem .55rem rgba(3, 16, 31, .26);
  }
  body[data-page] .site-header .header-menu > .site-nav a { padding-inline: clamp(.55rem, .9vw, 1rem); }
  body[data-page] .site-header .header-menu > .site-nav a[aria-current="page"] { background: #245874; }
  @media (hover: hover) {
    body[data-page] .site-header .header-menu > .site-nav a:not([aria-current="page"]):hover { background: #1b405a; }
  }
  @media (hover: hover) and (prefers-reduced-motion: no-preference) {
    body[data-page] .site-header .header-menu > .site-nav a { transition: background-color 180ms ease; }
  }
}
/* Reserve the guest header's second row before Manrope loads at the measured wrap widths. */
@media (min-width: 74.0625rem) and (max-width: 1195px) {
  html[data-font-size="large"] body[data-authed="false"] .site-header .header-bar .brand { margin-right: auto; }
  html[data-font-size="large"] body[data-authed="false"] .site-header .header-menu > .site-nav { order: 10; flex-basis: 100%; }
  html[data-font-size="large"] body[data-authed="false"] .site-header .header-menu > .site-nav a { min-height: 2.75rem; padding-block: .25rem; }
}
@media (min-width: 74.0625rem) and (max-width: 1392px) {
  html[data-font-size="max"] body[data-authed="false"] .site-header .header-bar .brand { margin-right: auto; }
  html[data-font-size="max"] body[data-authed="false"] .site-header .header-menu > .site-nav { order: 10; flex-basis: 100%; }
  html[data-font-size="max"] body[data-authed="false"] .site-header .header-menu > .site-nav a { min-height: 2.75rem; padding-block: .25rem; }
}
@media (max-width: 74rem) {
  body[data-page] .site-header .header-bar { padding: .38rem .85rem 0; }
  body[data-page] .site-header .header-bar .brand img { width: min(13.5rem, 43vw, 100%); }
  body[data-page] .site-header .header-bar .header-font-switch {
    width: calc(100% + 1.7rem);
    margin: .38rem -.85rem 0;
    padding: .22rem .85rem;
    border: 0;
    border-top: 1px solid #2b4b65;
    background: #0d243a;
  }
  body[data-page] .site-header .header-font-switch .font-btn {
    min-width: 3rem;
    min-height: 2.2rem;
    border-color: #527990;
  }
  html.js body[data-page] .site-header .header-bar .header-menu.is-open {
    grid-column: 1 / -1;
    inset-inline: auto 0;
    width: min(calc(100% - .75rem), 21rem);
    border: 1px solid #6fa5bd;
    background: linear-gradient(155deg, #173e57, #10293f 74%);
    box-shadow: 0 1rem 2rem #03101b85;
    padding: 0;
  }
  body[data-page] .site-header .header-menu .site-nav a {
    min-height: 3.05rem;
    padding: .45rem .9rem;
    border-radius: 0;
    border-color: #31536a;
    font-size: 1.05rem;
  }
  body[data-page] .site-header .header-menu > .site-nav a { width: 100%; }
  body[data-page] .site-header .header-menu .nav-ik { width: 1.65rem; height: 1.65rem; stroke: #a5e3f1; }
}
@media (max-width: 40rem) {
  body[data-page] .site-header .header-bar { padding: .4rem .75rem 0; column-gap: .4rem; }
  body[data-page] .site-header .header-bar :is(.header-donate, .header-account, .menu-toggle) {
    width: 44px;
    min-width: 44px;
    height: 44px;
    min-height: 44px;
  }
  body[data-page] .site-header .brand-tagline { font-size: clamp(5px, 1.45vw, 8px); }
  body[data-page] .site-header .header-bar .header-font-switch {
    width: calc(100% + 1.5rem);
    margin-inline: -.75rem;
    padding-inline: .75rem;
  }
}


/* ---------------------------------------------------------------- главная */

@font-face {
  font-family: Manrope;
  src: url("../fonts/manrope.ttf") format("truetype");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

body[data-page="index"] main#main {
  --home-gutter: clamp(1rem, 2.8vw, 3rem);
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - var(--header-h, 5rem));
  min-height: calc(100svh - var(--header-h, 5rem));
  max-width: none;
  width: 100%;
  padding: 0 var(--home-gutter) clamp(1rem, 2.5vh, 1.6rem);
  overflow: clip;
  background: linear-gradient(90deg, rgba(9, 25, 43, .24), transparent 60%),
    url("../img/v6-sky.webp") center bottom / cover no-repeat #091a2e;
}
body[data-page="index"] main#main::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url("../img/v6-ground.webp") center bottom / 100% auto no-repeat;
  pointer-events: none;
}
.hero.hero-split {
  display: flex;
  position: relative;
  align-items: center;
  gap: 0;
  flex: 1 0 auto;
  width: 100%;
  max-width: 100rem;
  margin: 0 auto;
  padding: clamp(1.5rem, 5.4vh, 3.5rem) 0;
  border: 0;
  border-radius: 0;
  text-align: left;
  background: none;
  box-shadow: none;
}
.hero-copy {
  position: relative;
  z-index: 1;
  width: min(39vw, 39rem);
  margin-inline-start: clamp(0rem, 1.2vw, 1.5rem);
}
.hero.hero-split h1 {
  margin: 0 0 clamp(1rem, 3vh, 1.85rem);
  font: 600 clamp(2rem, calc(2vw + 1.3rem), 3.9rem) / 1.16 Manrope, system-ui, sans-serif;
  letter-spacing: -.035em;
  text-wrap: wrap;
}
.hero h1 > span { display: block; }
.hero-accent { color: #9ee1f2; }
.hero-panel {
  padding: clamp(.75rem, 1.4vw, 1.3rem);
  border: 1px solid rgba(139, 201, 235, .36);
  border-top-color: rgba(208, 240, 255, .64);
  border-left-color: rgba(180, 224, 248, .52);
  border-radius: 1rem;
  background:
    linear-gradient(160deg, rgba(131, 198, 235, .14), transparent 42%),
    linear-gradient(115deg, rgba(13, 42, 66, .64), rgba(11, 34, 55, .65) 59%, rgba(13, 40, 64, .6));
  -webkit-backdrop-filter: blur(4px) brightness(.82);
  backdrop-filter: blur(4px) brightness(.82);
  box-shadow: inset 0 1px rgba(226, 248, 255, .14), 0 .85rem 1.65rem rgba(0, 8, 22, .4);
}
.hero-devices {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: .9rem;
}
.hero-devices span {
  display: grid;
  justify-items: center;
  align-content: start;
  gap: .15rem;
  min-width: 0;
  padding-inline: .2rem;
  font-size: 1.1rem;
  text-align: center;
  overflow-wrap: anywhere;
}
.hero-devices span + span { border-left: 1px solid rgba(136, 205, 235, .26); }
.hero-devices .ik { width: 2.15rem; height: 2.15rem; color: #9ee6f2; }
.hero .hero-actions {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: .75rem;
}
.hero-actions > :only-child { grid-column: 1 / -1; }
.hero .hero-actions .btn {
  min-width: 0;
  min-height: 3.15rem;
  padding: .55rem .7rem;
  border-radius: .65rem;
  font-size: clamp(.875rem, calc(.6vw + .52rem), 1.2rem);
  line-height: 1.25;
  text-align: center;
}
.hero .hero-actions .btn-primary {
  background: var(--s-cta);
  color: var(--s-cta-text);
}
.hero .hero-actions .btn-secondary {
  background: #142e44;
  border-color: rgba(138, 199, 230, .37);
  box-shadow: none;
}
.hero .hero-actions .btn-secondary:hover { background: #1c415a; border-color: #9ee1f2; }
.hero-note {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: .35rem .7rem;
  align-items: center;
  margin: .2rem 0 0;
  color: #e1efff;
  font-size: .85rem;
}
.hero-fact { display: inline-flex; align-items: center; gap: .3em; }
.hero-fact .ik { width: 1.3em; height: 1.3em; color: #9ee6f2; }
.hero-side {
  position: absolute;
  z-index: -2;
  right: max(-11vw, -10rem);
  bottom: -3.75rem;
  width: min(69vw, 82rem, calc(116svh - 1.2rem));
  pointer-events: none;
}
.hero-side .hero-art.has-image { position: relative; display: block; margin: 0; }
.hero-art img {
  display: block;
  width: 100%;
  height: auto;
  max-height: none;
  mask-image: linear-gradient(#000 87%, transparent);
}
.hero-earth, .hero-front { position: absolute; inset: 0; }
.hero-front { left: -1.52%; } /* Matches the 22 px shift in the 1448 px resting image. */
.hero-globe, .hero-front { visibility: hidden; }
.hero-starfield {
  position: absolute;
  inset: 0;
  z-index: -3;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
@media (max-width: 60rem) {
  .hero-starfield { height: min(100%, 32rem); opacity: .8; }
  .hero-starfield circle { r: 1px; }
}
@media (min-width: 961px) and (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .hero-art.is-layered > img:first-child { visibility: hidden; }
  .hero-art.is-layered :is(.hero-globe, .hero-front) { visibility: visible; }
  .hero-earth, .hero-front { transition: transform 260ms cubic-bezier(.23, 1, .32, 1); }
}
.hero-route-light, .hero-shooting-star { display: none; pointer-events: none; }
@media (prefers-reduced-motion: no-preference) {
  .hero-route-light {
    display: block;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 4px #72efaf);
  }
  .hero-shooting-star {
    display: block;
    position: absolute;
    top: 4px;
    left: 5%;
    width: min(38%, 30rem);
    height: 23px;
  }
  @media (min-width: 961px) {
    .hero-shooting-star:is([data-flight="2"], [data-flight="3"]) {
      left: var(--star-left, 21%);
      top: var(--star-top, 4px);
      width: var(--star-width, 24%);
    }
  }
  @media (max-width: 60rem) {
    .hero-shooting-star { left: 24%; width: min(60%, 17rem); height: 15px; }
    .hero-shooting-star[data-flight="2"] { left: 37%; width: 35%; }
    .hero-shooting-star[data-flight="3"] { left: 63%; width: 30%; }
  }
}

.home-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(.5rem, 1.15vw, 1.15rem);
  width: 100%;
  max-width: 100rem;
  margin: 0 auto;
}
.home-card {
  display: flex;
  align-items: center;
  gap: clamp(.5rem, 1.15vw, 1.05rem);
  min-width: 0;
  min-height: clamp(4.9rem, 12vh, 7.5rem);
  padding: .65rem clamp(.6rem, 1.25vw, 1.25rem);
  border: 1px solid rgba(125, 190, 225, .32);
  border-radius: 1rem;
  background: linear-gradient(145deg, #173b54, #0f2b40);
  box-shadow: 0 .35rem .9rem rgba(0, 10, 23, .28);
  text-decoration: none;
  color: #f2f7ff;
}
.home-card:hover {
  border-color: #81bddb;
  box-shadow: 0 .5rem 1.05rem rgba(0, 10, 23, .38), inset 0 0 0 1px rgba(138, 197, 230, .16);
}
.home-card-pink { background: linear-gradient(145deg, #1c324d, #162a42); }
.home-card-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: clamp(2.6rem, 4.3vw, 4.25rem);
  aspect-ratio: 1;
  border: 1px solid rgba(125, 190, 225, .22);
  border-radius: .75rem;
  background: #15374f;
  color: #a4e7fa;
}
.home-card-icon .ik { width: 62%; height: 62%; stroke-width: 1.4; }
.home-card-pink .home-card-icon { color: #dbc5fa; background: #253650; }
.home-card-text { display: grid; gap: .15rem; min-width: 0; flex: 1; }
.home-card-title { font-size: 1.15rem; font-weight: 750; line-height: 1.2; }
.home-card-sub { font-size: .92rem; color: #e0ebfa; line-height: 1.35; }
.home-card-go { width: 1.35rem; height: 1.35rem; color: #a4e7fa; }
.home-card-pink .home-card-go { color: #dbc5fa; }

/* Keep the A++ line breaks and card row stable while Manrope is loading. */
@media (min-width: 961px) and (max-width: 1524px) {
  html[data-font-size="max"] .home-cards { min-height: 5.41rem; }
}
@media (min-width: 961px) and (max-width: 1416px) {
  html[data-font-size="max"] .home-cards { min-height: 6.79rem; }
}
@media (min-width: 1280px) and (max-width: 1416px) {
  html[data-font-size="max"] .home-card-title-word { display: block; }
}
@media (min-width: 961px) and (max-width: 1247px) {
  html[data-font-size="max"] .hero-accent { inline-size: min-content; }
}

@media (max-width: 60rem) {
  .hero.hero-split { flex-direction: column; padding: 1.25rem 0 0; }
  .hero-copy { width: min(100%, 39rem); margin: 0; }
  .hero.hero-split h1 {
    font-size: clamp(1.7rem, calc(4.6vw + .85rem), 3.45rem);
    font-weight: 800;
    line-height: 1.05;
  }
  .hero-panel { padding: clamp(.65rem, 3vw, 1.1rem); }
  .hero-devices span { padding-inline: 1px; font-size: clamp(11px, calc(1.7vw + .4rem), .8rem); white-space: nowrap; }
  .hero-devices .ik { width: 1.75rem; height: 1.75rem; }
  .hero .hero-actions { grid-template-columns: minmax(0, 1fr); gap: .55rem; }
  .hero .hero-actions .btn { min-height: 2.75rem; font-size: 1rem; }
  .hero .hero-actions .btn-primary { justify-content: space-between; }
  .hero-note { grid-row: 2; justify-content: space-between; }
  .hero-note-title { flex-basis: 100%; }
  .hero-note-colon { display: none; }
  .hero-side {
    position: relative;
    align-self: center;
    right: auto;
    bottom: auto;
    width: min(146%, 45rem);
    margin: 0 0 -.35rem;
  }
  .hero-side::after {
    content: "";
    position: absolute;
    inset: 0;
    background: url("../img/v6-ground.webp") center bottom / 100% auto no-repeat;
  }
  .home-cards { grid-template-columns: minmax(0, 1fr); max-width: 39rem; }
  .home-card { min-height: 4.5rem; }
  .home-card-icon { width: 44px; }
  .home-card-go { width: 18px; height: 18px; }
}
@media (max-width: 23rem) {
  .hero-note { justify-content: flex-start; }
}

html[data-font-size="max"] .feature-item { flex-direction: column; align-items: flex-start; gap: .6rem; }

/* ---------------------------------------------------------------- заголовки страниц */

.page-title { margin: 0 0 .5rem; font-size: clamp(2.5rem, 1.6rem + 2.4vw, 4rem); font-weight: 800; line-height: 1.05; letter-spacing: -.02em; color: #fff; }
.section-lead { color: #d7defa; font-size: 1.25rem; }

/* ---------------------------------------------------------------- тарифы */

.features { margin: 0 0 1.5rem; }
.feature-row { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; padding: 0; border: 0; background: none; }
.feature-item { align-items: center; gap: 1.25rem; padding: 1.25rem 1.5rem; }
.feature-icon { width: 3.5rem; height: 3.5rem; stroke: url(#ik-grad); stroke-width: 1.5; }
.feature-pink .feature-icon { stroke: url(#ik-grad-pink); }
.feature-item h3 { margin: 0 0 .3rem; font-size: 1.25rem; font-weight: 700; }
.feature-item p { font-size: 1rem; color: #cdd5f5; }

.tariffs-title { margin-bottom: 1rem; }
.catalog-tabs {
  gap: 0;
  padding: 0;
  margin: 0 0 1.5rem;
  border: 1.5px solid rgba(90, 150, 255, .55);
  border-radius: .75rem;
  background: rgba(5, 10, 36, .75);
  overflow: hidden;
}
.catalog-tabs li + li { border-left: 1px solid rgba(90, 150, 255, .45); }
.catalog-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .9rem;
  min-height: 4rem;
  padding: .5rem 1rem;
  border-radius: 0;
  color: #e9edff;
  font-size: 1.25rem;
  font-weight: 500;
}
.catalog-tabs li { min-width: 0; }
.catalog-tab { min-width: 0; max-width: 100%; overflow-wrap: anywhere; }
.catalog-tab > span { min-width: 0; overflow-wrap: anywhere; }
.catalog-tab .tab-ik { width: 2.25rem; height: 2.25rem; stroke: url(#ik-grad); }
.catalog-tab[aria-pressed="true"] {
  background: var(--s-cta);
  color: var(--s-cta-text);
  border-radius: .55rem;
}
.catalog-tab[aria-pressed="true"] .tab-ik { stroke: currentColor; }

.category-head { align-items: center; gap: 1rem 1.25rem; flex-wrap: nowrap; }
.category-ik { width: 3.5rem; height: 3.5rem; stroke: url(#ik-grad); stroke-width: 1.6; }
.category-head-text { flex: 1 1 auto; min-width: 0; }
.category-head .category-title { margin: 0; font-size: 1.875rem; font-weight: 800; }
html:is([data-font-size="large"], [data-font-size="max"]) :is(#catalog, #cabinet-catalog) .category-title {
  line-height: 1.4;
}
.category-head .category-description { font-size: 1.125rem; color: #cdd5f5; }
.routes-compare { flex: none; min-height: 3rem; border-color: rgba(90, 150, 255, .7); }

.tariff-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); gap: 1rem; }
#catalog .tariff-card article {
  padding: 1.25rem 1.25rem 1.1rem;
  background: var(--s-glass);
}
.tariff-head { display: flex; align-items: flex-start; gap: 1rem; }
.tariff-head > div { min-width: 0; }
.tariff-name, .category-title { overflow-wrap: anywhere; }
.tariff-ik { width: 3.25rem; height: 3.25rem; stroke: url(#ik-grad); stroke-width: 1.5; }
.tariff-card .tariff-name { margin: 0; font-size: 1.375rem; font-weight: 800; }
.tariff-description { margin: .25rem 0 0; font-size: .9375rem; line-height: 1.35; color: #d3daf7; }
#catalog .tariff-facts {
  gap: .5rem;
  padding: .85rem 0;
  border-top: 1px solid rgba(120, 140, 255, .35);
  border-bottom: 1px solid rgba(120, 140, 255, .35);
}
#catalog .tariff-facts div + div { padding-left: .75rem; border-left: 1px solid rgba(120, 140, 255, .35); }
.tariff-facts dt { color: #c3cbee; font-size: .9375rem; }
.tariff-facts dd { font-size: 1.0625rem; font-weight: 700; color: #fff; }
.tariff-routes { border-bottom: 1px solid rgba(120, 140, 255, .35); }
.tariff-routes summary { display: flex; align-items: center; gap: .65rem; list-style: none; color: #e3e8ff; -webkit-user-select: none; user-select: none; }
.tariff-routes summary::-webkit-details-marker { display: none; }
.routes-ik { width: 1.6rem; height: 1.6rem; color: #6fb5ff; }
.routes-go { margin-left: auto; transition: transform .15s ease; }
.tariff-routes[open] .routes-go { transform: rotate(90deg); }
.tariff-price { display: flex; align-items: baseline; gap: .9rem; border: 0; padding-top: .35rem; }
.price-current { font-size: 2.5rem; font-weight: 800; line-height: 1.05; color: #fff; }
.price-old { font-size: 1.375rem; color: #9fa8cf; text-decoration-thickness: 2px; }
.tariff-card .btn { min-height: 3.5rem; font-size: 1.25rem; font-weight: 500; }

/* ---------------------------------------------------------------- подключение */

.connect-top { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 1rem 2rem; margin-bottom: 1.25rem; }
.connect-top .section-lead { margin: 0; }
.connect-page .device-tabs { gap: .65rem; margin: .5rem 0 0; padding: 0; border: 0; background: none; flex-wrap: wrap; }
.connect-page .device-tab {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  min-height: 4rem;
  padding: .5rem 1.4rem;
  border: 1.5px solid rgba(90, 150, 255, .6);
  border-radius: .7rem;
  background: rgba(5, 10, 36, .75);
  color: #e9edff;
  font-size: 1.25rem;
  font-weight: 500;
}
.device-ik { width: 2rem; height: 2rem; stroke-width: 1.5; }
.connect-page .device-tab[aria-selected="true"] { background: var(--s-grad); border-color: rgba(255, 255, 255, .35); color: #fff; box-shadow: 0 0 18px rgba(80, 90, 255, .5); }
.connect-page .connect-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem; counter-reset: step; }
.connect-page .connect-step { display: flex; flex-direction: column; padding: 1.25rem 1.75rem 1.5rem; }
.connect-page .step-shot { margin-top: auto; padding-top: .75rem; }
.connect-page .step-shot .step-img { margin-top: 0; }
.connect-page .connect-step + .connect-step::after {
  content: "\203A";
  position: absolute;
  left: -1.9rem;
  top: 40%;
  font-size: 2.75rem;
  line-height: 1;
  color: #5aa8ff;
}
.connect-page .connect-step::before {
  left: 1.25rem;
  top: 1.25rem;
  width: 2.5rem;
  height: 2.5rem;
  border: 1.5px solid rgba(255, 255, 255, .85);
  background: rgba(4, 9, 32, .7);
  font-size: 1.25rem;
}
.step-art { display: flex; justify-content: center; margin: 0 0 .75rem; }
.step-ik { width: 6.5rem; height: 6.5rem; stroke: url(#ik-grad); stroke-width: 1.2; filter: drop-shadow(0 0 10px rgba(80, 140, 255, .45)); }
.connect-page .connect-step h3 { margin: 0 0 .4rem; font-size: 1.5rem; font-weight: 800; }
.connect-page .connect-step p { color: #d7def8; font-size: 1.0625rem; }
.connect-page .step-links { flex-direction: column; gap: .6rem; margin-top: .75rem; }
.connect-page .step-link-main .btn { width: 100%; min-height: 3.5rem; font-size: 1.25rem; }
.step-link-note { color: #d7def8; }
.connect-page .step-hint { color: #aab3d8; font-size: .9375rem; }
.connect-strip { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr); gap: .75rem 1rem; margin-top: 1.5rem; }
.connect-strip .video-card { margin: 0; padding: 0; }
.connect-strip .video-card > summary { display: flex; align-items: center; gap: 1.5rem; padding: .6rem 1.25rem; cursor: pointer; list-style: none; }
.connect-strip .video-card > summary::-webkit-details-marker { display: none; }
.video-thumb {
  flex: none;
  display: grid;
  place-items: center;
  width: 9.5rem;
  height: 4.75rem;
  border: 1px solid rgba(var(--s-cyan-rgb), .5);
  border-radius: .6rem;
  background: radial-gradient(circle at 30% 40%, rgba(80, 120, 255, .5), transparent 60%), radial-gradient(1px 1px at 20% 30%, #fff, transparent), #070c2c;
}
.play-ik { width: 3rem; height: 3rem; color: #fff; stroke-width: 1.4; }
.video-sum-text { display: flex; flex-direction: column; gap: .2rem; }
.video-sum-title { font-size: 1.25rem; font-weight: 700; }
.video-sum-link { display: inline-flex; align-items: center; gap: .3rem; color: var(--s-cyan); }
.video-body { margin: 0; padding: 0 1.25rem 1.25rem; }
.connect-strip .video-body { display: none; grid-column: 1 / -1; justify-self: center; box-sizing: border-box; width: min(100%, 960px); padding: 1.25rem; }
.video-stage { position: relative; }
.video-play { position: absolute; inset: 0 0 3.5rem 0; margin: 0; padding: 0; border: 0; border-radius: .75rem .75rem 0 0; background: transparent; cursor: pointer; }
.video-play:hover { background: rgba(var(--s-cyan-rgb), .06); }
.video-play:focus-visible { outline: .1875rem solid var(--color-focus); outline-offset: -.25rem; }
.video-stage.is-playing .video-play, .video-play[hidden] { display: none; }
.connect-strip .video-card[open] ~ .video-body { display: block; }
.video-sum-close, .video-card[open] .video-sum-open { display: none; }
.video-card[open] .video-sum-close { display: inline; }
.video-sum-link .ik { transition: transform .15s; }
.video-card[open] .video-sum-link .ik { transform: rotate(180deg); }
.connect-more {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1rem 1.75rem;
  color: #fff;
  font-size: 1.25rem;
  text-decoration: none;
}
.connect-more .ik { width: 2.25rem; height: 2.25rem; color: var(--s-cyan); }
.connect-more .connect-more-go { margin-left: auto; width: 1.75rem; height: 1.75rem; color: #6fb5ff; }

/* ---------------------------------------------------------------- сеть */

.network-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.network-row { flex-wrap: nowrap; gap: .25rem 1.25rem; padding: 1.1rem 1.5rem; border-width: 1px; }
.network-ik .ik { width: 3rem; height: 3rem; stroke: url(#ik-grad); stroke-width: 1.4; }
.network-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-rows: auto auto; align-items: center; }
.network-ik { grid-row: 1 / 3; }
.network-name { grid-column: 2; font-size: 1.25rem; font-weight: 700; color: #fff; }
.network-state { grid-column: 2; grid-row: 2; font-size: 1.0625rem; color: #d7def8; white-space: normal; overflow-wrap: normal; }
.network-state::before { width: .8rem; height: .8rem; }
.network-ping { grid-column: 3; grid-row: 1 / 3; }

/* ---------------------------------------------------------------- помощь */

.help-page .help-layout { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr); gap: 1.25rem; align-items: start; }
.help-page .faq-list { gap: .6rem; }
.help-page .help-layout > *, .faq-item, .faq-item > summary > *, .feature-item > div, .cab-panel > summary > *, .ref-card-head h3, .app-links li { min-width: 0; }
.faq-title, .faq-item > summary, .cab-panel > summary h2, .ref-card-head h3, .feature-item h3, .cab-tile-title, .cab-tile-sub { overflow-wrap: anywhere; }
.app-links a { max-width: 100%; }
.faq-title { margin: 0 0 .35rem; font-size: 1.75rem; font-weight: 800; }
.faq-item > summary, .materials > summary {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 3.75rem;
  padding: .55rem 1.5rem;
  list-style: none;
  font-size: 1.25rem;
  font-weight: 700;
}
.faq-item > summary::-webkit-details-marker, .materials > summary::-webkit-details-marker { display: none; }
.faq-ik { width: 2.1rem; height: 2.1rem; color: #6ab4ff; stroke-width: 1.5; }
.faq-go { margin-left: auto; width: 1.6rem; height: 1.6rem; color: #6ab4ff; transition: transform .15s ease; }
details[open] > summary .faq-go { transform: rotate(180deg); }
.faq-body { padding: 0 1.5rem 1.25rem 5.1rem; color: #d7def8; }
.faq-body .help-steps { color: #d7def8; }
.faq-body .app-grid { margin: .75rem 0; }
.video-chapters { margin-top: 1rem; }
.video-chapters-hint { margin: 0 0 .6rem; color: #aab3d8; }
.video-chapters-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: .4rem; margin: 0; padding: 0; list-style: none; }
.video-chapter {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .1rem .75rem;
  width: 100%;
  min-height: 2.75rem;
  margin: 0;
  padding: .55rem .9rem;
  border: 1px solid rgba(var(--s-cyan-rgb), .28);
  border-radius: .6rem;
  background: rgba(var(--s-cyan-rgb), .04);
  color: #fff;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.video-chapter:hover { border-color: rgba(var(--s-cyan-rgb), .6); background: rgba(var(--s-cyan-rgb), .1); }
.video-chapter-time { flex: none; min-width: 2.6em; color: var(--s-cyan); font-weight: 700; font-variant-numeric: tabular-nums; }
/* без min-width: 0 нарочно: самое длинное слово не влезает рядом со временем, и название уходит под время целиком */
.video-chapter-name { flex: 1 1 0; max-width: 100%; }
.support-card { padding: 2rem 2.25rem; gap: 1rem; align-items: stretch; }
.support-head { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem; }
.support-ik { width: 4rem; height: 4rem; stroke: url(#ik-grad); stroke-width: 1.4; }
/* в узкой колонке длинное слово заголовка не встает рядом со значком, и заголовок переходит под значок целиком */
.support-card h2 { flex: 1 1 0; min-width: min-content; margin: 0; font-size: 2rem; font-weight: 800; }
.support-card p { color: #dfe5ff; font-size: 1.125rem; }
.support-card .btn { width: 100%; min-height: 3.75rem; font-size: 1.25rem; font-weight: 500; }
.support-meta { text-align: center; color: #b8c0e3; }
.support-mail { color: var(--s-cyan); font-size: 1.125rem; }
.help-page .materials { margin-top: 0; }
.materials .kb-card { padding: 0 1.5rem 1.25rem 5.1rem; }

/* ---------------------------------------------------------------- вход */

.login-page > h1 { text-align: center; margin: 1rem 0 .25rem; font-size: clamp(2.5rem, 1.6rem + 2.4vw, 4rem); font-weight: 800; }
.login-lead { text-align: center; margin: 0 0 2rem; font-size: 1.6rem; color: #9fe8f2; }
.login-methods { max-width: 72rem; margin: 0 auto; gap: 1.5rem; }
.login-card { padding: 2rem 2.5rem; }
.login-card-head { display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem; margin: 0 0 1.25rem; }
.login-card-head .ik { width: 3.25rem; height: 3.25rem; color: var(--s-cyan); stroke-width: 1.6; }
.login-card-head h2 { flex: 1 1 0; min-width: min-content; margin: 0; font-size: 2.25rem; font-weight: 800; }
.login-card label { font-weight: 500; font-size: 1.25rem; }
.login-card input[type="email"], .login-card input[type="text"] { max-width: none; min-height: 3.75rem; font-size: 1.25rem; }
#login-code { letter-spacing: .6em; font-size: 1.75rem; text-align: center; font-weight: 700; }
.login-card form .btn-primary { width: 100%; min-height: 3.75rem; font-size: 1.375rem; font-weight: 700; }
.login-card .btn-secondary { width: 100%; min-height: 3.75rem; font-size: 1.375rem; font-weight: 700; }
.login-card p { font-size: 1.25rem; color: #dfe5ff; }
.login-hint { font-size: 1.125rem !important; color: #c5cdf0 !important; }
.login-card .btn-link { color: #dfe5ff; padding-left: 0; }

/* Окна покупки и продления используют те же поверхности и действия, что и кабинет. */
dialog.modal:has(#purchase-modal-title) {
  width: min(calc(100% - 1rem), 34rem);
  max-height: calc(100dvh - 1rem);
  padding: clamp(.9rem, 3vw, 1.5rem);
}
#purchase-modal-title { margin: 0 2rem .7rem 0; line-height: 1.2; overflow-wrap: anywhere; }
#purchase-modal-title .modal-title-name { color: var(--s-cyan); }
dialog.modal:has(#purchase-modal-title) fieldset {
  min-inline-size: 0;
  margin: .75rem 0;
  padding: .5rem .75rem;
  border: 1px solid var(--s-line);
  border-radius: .65rem;
  background: #0c263a;
}
dialog.modal:has(#purchase-modal-title) .modal-actions > .btn { flex: 1 1 auto; }
dialog.modal::backdrop { background: #040e1bc9; }

/* ---------------------------------------------------------------- 404 */

body[data-page="error"] main#main:has(.not-found) { display: grid; align-items: center; }
.not-found {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  align-items: center;
  gap: clamp(.75rem, 3vw, 2rem);
}
.not-found-copy { padding-block: .75rem; }
.not-found h1 { margin: 0; font-size: clamp(1.8rem, calc(1.1rem + 1.5vw), 3.3rem); line-height: 1.1; }
.not-found .error-code { display: block; margin-bottom: .15em; color: var(--s-cyan); font-size: 2.5em; line-height: 1; }
.not-found .error-message { max-width: 31ch; margin: 1rem 0 1.25rem; color: var(--s-muted); }
.not-found-art {
  display: block;
  width: min(100%, 46rem);
  margin: 0 auto;
  mask-image: linear-gradient(90deg, transparent, #000 3%, #000 93%, transparent),
    linear-gradient(#000, #000 92%, transparent);
  mask-composite: intersect;
}
@media (max-width: 48rem) {
  .not-found { grid-template-columns: minmax(0, 1fr); text-align: center; }
  .not-found .error-message { margin-inline: auto; }
}

/* ---------------------------------------------------------------- подвал */

.site-footer {
  margin-top: auto;
  background: linear-gradient(140deg, #102c43, #0b2034);
  border-top: 1px solid var(--s-line);
}
.site-footer .footer-inner { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 3fr); gap: 0; padding: 2rem 1rem 2.25rem; }
.footer-about { padding-right: 2rem; }
.footer-logo { display: inline-flex; align-items: center; gap: .25rem; text-decoration: none; }
.footer-logo img { width: 13.8rem; height: auto; }
.footer-logo .brand-pro { font-size: 1.85rem; }
.footer-brand { margin: .5rem 0 1.25rem; font-size: 1.375rem; line-height: 1.3; color: #e6eaff; }
.footer-copy { margin: 0; color: #c5cdf0; }
.site-footer .footer-groups { grid-template-columns: minmax(0, .95fr) minmax(0, 1fr) minmax(0, 1.45fr); gap: 0; margin: 0; }
.footer-group { padding: 0 1.75rem; border-left: 1px solid rgba(150, 170, 255, .3); }
.footer-title { margin: 0 0 .5rem; font-size: 1.125rem; font-weight: 700; color: #fff; }
.site-footer .footer-list a {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 1rem;
  min-height: 2.6rem;
  color: #e3e8ff;
  font-size: 1rem;
}
.site-footer .footer-list a:hover { color: #fff; text-decoration: none; }
.site-footer .footer-list .ik { width: 1.5rem; height: 1.5rem; color: var(--s-cyan); stroke-width: 1.6; }
.site-footer .footer-list .footer-donate .ik:first-child { color: var(--s-violet); }
.footer-go { display: none; }
.site-footer .footer-list a > span { flex: 1 1 auto; min-width: 0; }
.footer-ext { margin-left: auto; }

/* ---------------------------------------------------------------- адаптив */

@media (max-width: 74rem) {
  .connect-page .connect-steps { gap: 1.25rem; }
  .connect-page .connect-step + .connect-step::after { display: none; }
  .network-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 60rem) {
  .feature-row { grid-template-columns: minmax(0, 1fr); }
  .connect-page .connect-steps { grid-template-columns: minmax(0, 1fr); }
  .connect-strip { grid-template-columns: minmax(0, 1fr); gap: .75rem; }
  .connect-strip .video-card { order: 1; }
  .connect-strip .video-body { order: 2; }
  .connect-strip .connect-more { order: 3; }
  .help-page .help-layout { grid-template-columns: minmax(0, 1fr); }
  .site-footer .footer-inner { grid-template-columns: minmax(0, 1fr); gap: .75rem; }
  .site-footer .footer-groups { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .footer-about { display: contents; }
  .footer-logo { order: 0; }
  .footer-logo img { width: 11.3rem; }
  .footer-logo .brand-pro { font-size: 1.5rem; }
  .footer-brand { order: 1; margin: 0; padding: 0 .25rem .75rem; font-size: .95rem; border-bottom: 1px solid var(--s-line); }
  .site-footer .footer-groups { order: 2; }
  .footer-copy { order: 3; }
  .footer-group { padding: .6rem .25rem; border-left: 0; border-bottom: 1px solid var(--s-line); }
  .footer-title { margin-bottom: .25rem; font-size: 1.15rem; font-weight: 800; }
  .site-footer .footer-list li + li a { border-top: 1px solid rgba(150, 170, 255, .2); }
  .site-footer .footer-list a { min-height: 2.75rem; font-size: .9375rem; gap: 1rem; }
  .site-footer .footer-list .ik { width: 1.4rem; height: 1.4rem; }
  .footer-go { display: block; margin-left: auto; color: #6ab4ff; }
  .site-footer .footer-list .footer-go { width: 1.1rem; height: 1.1rem; color: #6ab4ff; }
  .footer-copy { padding: 0 .25rem; }
}

@media (max-width: 40rem) {
  main#main { padding-left: 1rem; padding-right: 1rem; }
  .catalog-tabs { flex-direction: column; }
  .catalog-tabs li + li { border-left: 0; border-top: 1px solid rgba(90, 150, 255, .45); }
  .category-head { flex-wrap: wrap; }
  .network-list { grid-template-columns: minmax(0, 1fr); gap: 0; border-top: 1px solid rgba(150, 170, 255, .3); }
  .network-list .network-row { padding: .9rem .5rem; border: 0; border-radius: 0; background: none; box-shadow: none; }
  .network-list .network-row + .network-row { border-top: 1px solid rgba(150, 170, 255, .3); }
  .cab-panel > :not(summary) { margin-left: .75rem; margin-right: .75rem; }
  .cab-panel > .table-scroll { margin-left: 0; margin-right: 0; border-left: 0; border-right: 0; border-radius: 0; }
  #catalog .tariff-facts { gap: .5rem 1rem; }
  #catalog .tariff-facts div + div { padding-left: 0; border-left: 0; }
  .cab-panel > summary { padding: .5rem 1rem; }
  .connect-page .device-tab { flex: 1 1 calc(50% - .65rem); min-height: 3.5rem; font-size: 1.125rem; padding: .4rem .8rem; }
  .faq-body, .materials .kb-card { padding-left: 1.5rem; }
  .faq-item > summary, .materials > summary { gap: 1rem; padding: .55rem 1rem; font-size: 1.125rem; }
  .support-card { padding: 1.5rem 1.25rem; }
  .login-card { padding: 1.5rem 1.25rem; }
  .login-card-head h2 { font-size: 1.75rem; }
  .login-lead { font-size: 1.25rem; }
}

/* ---------------------------------------------------------------- кабинет */

body[data-page="cabinet"] .page-title { margin-bottom: .25rem; }
.cab-subs-head { margin: 0 0 .9rem; }
.cab-subs-title { margin: 0 0 .75rem; font-size: 1.6rem; font-weight: 800; }
.subs-count { color: var(--s-cyan); }
.sub-tabs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); gap: .75rem; }
.sub-tabs[hidden] { display: none; }
.sub-tab {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .15rem;
  min-height: 4.5rem;
  padding: .6rem 1rem .6rem 3.75rem;
  border: 1.5px solid rgba(90, 150, 255, .6);
  border-radius: .75rem;
  background: rgba(5, 10, 36, .78) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232ee6f0' stroke-width='1.6' stroke-linecap='round'%3E%3Ccircle cx='15.5' cy='8.5' r='5'/%3E%3Ccircle cx='16.5' cy='7.5' r='1.4'/%3E%3Cpath d='M12 12L3.5 20.5M6.5 17.5l2 2M9 15l2 2'/%3E%3C/svg%3E") no-repeat 1rem 50% / 2.25rem;
  color: #fff;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.sub-tab[aria-selected="true"] { background-color: transparent; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='1.6' stroke-linecap='round'%3E%3Ccircle cx='15.5' cy='8.5' r='5'/%3E%3Ccircle cx='16.5' cy='7.5' r='1.4'/%3E%3Cpath d='M12 12L3.5 20.5M6.5 17.5l2 2M9 15l2 2'/%3E%3C/svg%3E"), var(--s-grad); background-repeat: no-repeat, no-repeat; background-position: 1rem 50%, 0 0; background-size: 2.25rem, 100% 100%; border-color: rgba(255, 255, 255, .4); box-shadow: 0 0 18px rgba(80, 90, 255, .5); }
.sub-tab-name { font-size: 1.125rem; font-weight: 700; overflow-wrap: anywhere; }
.sub-tab-status { display: inline-flex; align-items: center; gap: .4rem; font-size: 1rem; color: #e6eaff; }
.sub-tab-status::before { content: ""; width: .7rem; height: .7rem; border-radius: 50%; background: #2fe39a; }
.subscriptions-list.has-sub-tabs > li.sub-card:not(.is-current) { display: none; }

.cab-grid { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); gap: 1rem; align-items: start; margin-bottom: 1rem; }
.cab-subs .subscriptions-list { gap: 1rem; }
.cab-subs .sub-card { padding: 1.5rem 1.75rem; }
.sub-card .sub-rename-form { margin: 0 0 .25rem; }
.sub-card .sub-rename-form .sub-link-row { margin: 0; gap: .5rem; }
.sub-card .sub-rename-form textarea {
  flex: 1 1 12rem;
  min-height: 3rem;
  padding: .2rem .5rem .2rem 3.25rem;
  border: 1px solid transparent;
  background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232ee6f0' stroke-width='1.6' stroke-linecap='round'%3E%3Ccircle cx='15.5' cy='8.5' r='5'/%3E%3Ccircle cx='16.5' cy='7.5' r='1.4'/%3E%3Cpath d='M12 12L3.5 20.5M6.5 17.5l2 2M9 15l2 2'/%3E%3C/svg%3E") no-repeat .25rem 50% / 2.5rem;
  box-shadow: none;
  font-family: inherit;
  font-size: 1.875rem;
  font-weight: 800;
  line-height: 1.2;
  color: #fff;
  display: block;
  width: 100%;
  max-width: none;
  height: auto;
  resize: none;
  overflow: hidden;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  field-sizing: content;
}
.sub-card .sub-rename-form textarea:hover, .sub-card .sub-rename-form textarea:focus { border-color: rgba(var(--s-cyan-rgb), .55); }
.sub-card .sub-rename-form .btn { min-height: 2.5rem; padding: .3rem .8rem; font-size: .875rem; border-color: rgba(180, 120, 255, .6); }
.sub-card .sub-status { margin: 0 0 .5rem 3.5rem; color: #2fe39a; font-size: 1.125rem; }
.sub-card .sub-status::before { content: ""; display: inline-block; width: .8rem; height: .8rem; margin-right: .45rem; border-radius: 50%; background: currentColor; vertical-align: -.05rem; }
.sub-card .sub-meta { gap: .5rem 1.25rem; margin: 0 0 1rem; padding: .25rem 0; color: #e6eaff; font-size: 1.0625rem; }
.sub-card .sub-meta > span + span { padding-left: 1.25rem; border-left: 1px solid rgba(150, 170, 255, .35); }
.sub-card .goal-actions, .sub-card .sub-link-row { gap: .75rem; }
.sub-card .goal-actions .btn, .sub-card .sub-link-row .btn { min-height: 3.25rem; }
.sub-card [data-extend-sub], .sub-card [data-pick-tariff] { order: -1; }
.sub-card .sub-link-row a.btn[href] { background: var(--s-cta); color: var(--s-cta-text); border-color: #b7eef7; flex: 1 1 14rem; }
.sub-card details { margin-top: .6rem; border: 1.5px solid rgba(90, 150, 255, .45); border-radius: .7rem; background: rgba(5, 10, 36, .6); }
.sub-card details > summary { display: flex; align-items: center; min-height: 3.25rem; padding: .4rem 1.1rem; font-size: 1.0625rem; cursor: pointer; background: none; border-radius: .7rem; }
.sub-card details > .devices-box, .sub-card details > img { margin: 0 1.1rem 1rem; }
.sub-card details.qr-details summary { display: flex; }

.cab-balance { display: flex; flex-direction: column; gap: .75rem; padding: 1.5rem 1.75rem; border: 1px solid var(--s-line); border-radius: var(--s-radius); background: var(--s-glass); box-shadow: var(--s-shadow); }
.cab-balance-head { display: flex; align-items: center; gap: 1rem; }
.cab-head-ik { width: 3rem; height: 3rem; color: var(--s-cyan); stroke-width: 1.5; }
.cab-balance h2 { margin: 0; font-size: 1.875rem; font-weight: 800; }
.cab-balance .balance-amount { margin: .25rem 0 0; font-size: 3.5rem; font-weight: 800; line-height: 1; }
.balance-note { margin: 0; color: #c9d8ff; font-size: 1.125rem; }
.cab-topup > summary { width: 100%; min-height: 3.5rem; list-style: none; font-size: 1.375rem; font-weight: 700; justify-content: space-between; padding-inline: 1.75rem; }
.cab-topup > summary::-webkit-details-marker { display: none; }
.cab-topup[open] > summary { margin-bottom: .75rem; }
.cab-topup input[type="number"] { max-width: none; }
.cab-row, .cab-balance #balance-extras {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 3.25rem;
  padding: .4rem 1.1rem;
  border: 1.5px solid rgba(90, 150, 255, .45);
  border-radius: .7rem;
  background: rgba(5, 10, 36, .6);
  color: #fff;
  font-size: 1.125rem;
  text-decoration: none;
}
.cab-row .ik { width: 1.75rem; height: 1.75rem; color: var(--s-cyan); }
.cab-row-go { margin-left: auto; color: #6ab4ff; }
.cab-row-history { order: 6; }
.cab-balance #balance-extras { order: 5; display: block; padding: .75rem 1.1rem; }
.cab-balance #balance-extras label { font-weight: 500; }
.cab-balance #balance-extras input[type="text"] { max-width: none; }
.cab-balance #balance-extras form { margin: 0; }

.cab-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin: 0 0 1.5rem; }
.cab-tile {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 5.5rem;
  padding: .9rem 1.25rem;
  border: 1px solid var(--s-line);
  border-radius: var(--s-radius);
  background: var(--s-glass);
  box-shadow: var(--s-shadow);
  color: #fff;
  text-decoration: none;
}
.cab-tile-pink { background: var(--s-glass-violet); box-shadow: var(--s-shadow); }
.cab-tile-ik { width: 2.75rem; height: 2.75rem; color: var(--s-cyan); stroke-width: 1.5; }
.cab-tile-pink .cab-tile-ik { color: var(--s-violet); }
.cab-tile-text { display: flex; flex-direction: column; gap: .15rem; min-width: 0; flex: 1 1 auto; }
.cab-tile-title { font-size: 1.125rem; font-weight: 700; color: #fff; text-decoration: none; }
.cab-tile-sub { font-size: .9375rem; color: #c9d2f5; }
.cab-tile .cab-row-go { flex: none; }

.cab-panel { margin: 0 0 1rem; padding: 0; border: 1px solid var(--s-line); border-radius: var(--s-radius); background: var(--s-glass); box-shadow: var(--s-shadow); }
.cab-panel[hidden] { display: none; }
.cab-panel > summary { display: flex; align-items: center; gap: 1rem; min-height: 3.75rem; padding: .5rem 1.5rem; list-style: none; cursor: pointer; }
.cab-panel > summary::-webkit-details-marker { display: none; }
.cab-panel > summary h2 { margin: 0; font-size: 1.375rem; font-weight: 800; }
.cab-panel > :not(summary) { margin-left: 1.5rem; margin-right: 1.5rem; }
.cab-panel[open] { padding-bottom: 1.25rem; }
.cab-panel .table-scroll { border-color: rgba(90, 150, 255, .45); background: rgba(5, 10, 36, .6); }
.cab-panel table, .cab-panel th { background: transparent; }
.cab-panel th { color: #c9d2f5; }

.cab-back { display: inline-flex; align-items: center; gap: .5rem; margin: 0 0 1rem; color: var(--s-cyan); font-weight: 600; text-decoration: none; }
.cab-back[hidden] { display: none; }
.cab-back-ik { width: 1.25rem; height: 1.25rem; }
html.js body:not(.cab-view) :is(#referral, #history, #login-ways, #donation) { display: none; }
body.cab-view :is(.cab-subs-head, .cab-grid, .cab-tiles, #cabinet-catalog, #cabinet-video-block, .cab-panel:not(.is-view)) { display: none; }
body.cab-view .cab-panel.is-view > summary { cursor: default; }
body.cab-view .cab-panel.is-view { scroll-margin-top: 100vh; }
body.cab-view .cab-panel.is-view > summary .faq-go { display: none; }

.history-table .history-note, .history-time { display: block; font-size: .875rem; color: var(--s-muted); }
.history-plus { color: var(--s-cyan); font-weight: 700; }
.history-minus { font-weight: 700; }
.history-sum { font-weight: 700; }
.history-result { display: inline-block; padding: .2rem .8rem; border: 1.5px solid rgba(var(--s-cyan-rgb), .7); border-radius: 999px; font-size: .875rem; white-space: nowrap; }
.history-pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; margin-top: 1rem; }
.history-pager[hidden] { display: none; }
.history-per { color: var(--s-muted); font-size: .9375rem; }
.history-pages { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; }
.history-page {
  min-width: 2.75rem;
  min-height: 2.75rem;
  padding: .3rem .7rem;
  border: 1.5px solid rgba(90, 150, 255, .55);
  border-radius: .6rem;
  background: rgba(5, 10, 36, .75);
  color: var(--s-text);
  font: inherit;
  cursor: pointer;
}
.history-page[aria-current="page"] { background: var(--s-grad); border-color: rgba(255, 255, 255, .3); color: #fff; }
.history-page:disabled { cursor: default; }
.history-page:disabled:not([aria-current]) { opacity: .45; }
.history-gap { padding: 0 .2rem; color: var(--s-muted); }
.devices-count { font-weight: 600; }
#cabinet-catalog .tariff-card article { padding: 1.1rem; background: linear-gradient(170deg, rgba(16, 24, 78, .92), rgba(6, 10, 40, .92)) padding-box, linear-gradient(160deg, #3d7bff, #6d4dff 60%, #9a4dff) border-box; }
#cabinet-catalog .tariff-head { align-items: center; }
#cabinet-catalog .tariff-name { margin: 0; font-size: 1.25rem; font-weight: 800; }
#cabinet-catalog .price-current { font-size: 2rem; }
.video-block { margin-top: 1rem; }

@media (max-width: 60rem) {
  .cab-grid { grid-template-columns: minmax(0, 1fr); }
  .cab-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 40rem) {
  .cab-tiles { grid-template-columns: minmax(0, 1fr); }
  .sub-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cab-subs .sub-card, .cab-balance { padding: 1.1rem 1rem; }
  .sub-card .sub-rename-form textarea { font-size: 1.5rem; }
  .sub-card .sub-status { margin-left: 0; }
  .cab-panel > summary { padding: .5rem 1rem; }
  .cab-panel > :not(summary) { margin-left: 1rem; margin-right: 1rem; }
}
.cab-subs .sub-card { display: flex; flex-direction: column; }
.sub-card > .sub-rename-form { order: 1; }
.sub-card > .sub-status { order: 2; }
.sub-card > .sub-meta { order: 3; }
.sub-card > .sub-link-row { order: 4; margin-top: 0; }
.sub-card > .goal-actions { order: 5; margin-top: .75rem; }
.sub-card > .form-status { order: 6; }
.sub-card > details { order: 7; }
.sub-card .sub-rename-form .btn { display: none; }
.sub-card .sub-rename-form:focus-within .btn { display: inline-flex; }
.sub-card .sub-rename-form textarea { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232ee6f0' stroke-width='1.6' stroke-linecap='round'%3E%3Ccircle cx='15.5' cy='8.5' r='5'/%3E%3Ccircle cx='16.5' cy='7.5' r='1.4'/%3E%3Cpath d='M12 12L3.5 20.5M6.5 17.5l2 2M9 15l2 2'/%3E%3C/svg%3E"), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b48cff' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 20l1-4L16.5 4.5a2 2 0 0 1 3 3L8 19z'/%3E%3Cpath d='M14.5 6.5l3 3'/%3E%3C/svg%3E"); background-repeat: no-repeat, no-repeat; background-position: .25rem 50%, right .5rem center; background-size: 2.5rem, 1.5rem; padding-right: 2.5rem; }
.cab-tile-logout { display: inline-flex; align-items: center; gap: .4rem; margin-top: .3rem; padding: 0; border: 0; background: none; color: #dfe5ff; font: inherit; font-size: .9375rem; cursor: pointer; }
.cab-tile-logout:hover { color: #fff; text-decoration: underline; }
.cab-account { display: flex; align-items: center; gap: 1rem; }
@media (min-width: 74.0625rem) {
  .site-header .header-tools { display: none; }
}

/* ---------------------------------------------------------------- поддержать проект */

.donate-head { display: flex; align-items: center; gap: 1.25rem; margin: 0 0 1rem; }
.donate-head-ik { width: 4.25rem; height: 4.25rem; color: #ff4fd8; stroke-width: 1.7; }
.donate-head .page-title { margin: 0; }
.donate-lead { margin: .25rem 0 0; font-size: 1.375rem; font-weight: 700; color: #e6eaff; }
.donate-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 1.25rem; align-items: start; margin-top: 1rem; }
#donation-goals .goal-card { padding: 1.5rem 1.75rem; margin-bottom: 1rem; }
.goal-card h3 { font-size: 1rem; font-weight: 500; color: #d7def8; }
.goal-card .goal-title { font-size: 1.6rem; font-weight: 800; line-height: 1.2; color: #fff; }
.goal-card progress { appearance: none; -webkit-appearance: none; height: 1.25rem; border: 1px solid rgba(var(--s-cyan-rgb), .5); border-radius: 1rem; background: rgba(5, 10, 36, .8); overflow: hidden; }
.goal-card progress::-webkit-progress-bar { background: rgba(5, 10, 36, .8); border-radius: 1rem; }
.goal-card progress::-webkit-progress-value { background: linear-gradient(90deg, #ff2fd0, #d12cff); border-radius: 1rem; box-shadow: 0 0 12px rgba(255, 60, 220, .6); }
.goal-card progress::-moz-progress-bar { background: linear-gradient(90deg, #ff2fd0, #d12cff); border-radius: 1rem; }
.goal-card .goal-amounts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .6rem; }
.goal-card .amount-preset { min-height: 3rem; }
.goal-card .amount-preset[aria-pressed="true"] { background: var(--s-grad); border-color: rgba(255, 255, 255, .4); }
.goal-card input[type="number"] { max-width: none; min-height: 3.5rem; font-size: 1.6rem; font-weight: 700; }
.goal-card .goal-actions .btn { flex: 1 1 12rem; min-height: 3.5rem; }
.rating-block { padding: 1.5rem 1.75rem; border: 1px solid var(--s-line); border-radius: var(--s-radius); background: var(--s-glass); box-shadow: var(--s-shadow); }
.donate-rating-head { display: flex; align-items: center; gap: 1rem; margin-bottom: .75rem; }
.donate-rating-ik { width: 3.5rem; height: 3.5rem; color: #ff4fd8; stroke-width: 1.6; }
.rating-block h2 { margin: 0; font-size: 2rem; font-weight: 800; }
.rating-block .table-scroll { border: 0; background: none; }
.rating-block table { min-width: 0; border-collapse: separate; border-spacing: 0 .5rem; background: none; }
.rating-block th { background: none; border: 0; color: #c9d2f5; font-weight: 500; }
.rating-block td { border-top: 1.5px solid rgba(90, 150, 255, .45); border-bottom: 1.5px solid rgba(90, 150, 255, .45); background: rgba(5, 10, 36, .65); font-size: 1.25rem; font-weight: 700; padding: .8rem 1rem; }
.rating-block td:first-child { border-left: 1.5px solid rgba(90, 150, 255, .45); border-radius: .7rem 0 0 .7rem; color: #8fb6ff; }
.rating-block td:last-child { border-right: 1.5px solid rgba(90, 150, 255, .45); border-radius: 0 .7rem .7rem 0; text-align: right; }
.rating-block tbody tr:nth-child(1) td { border-color: #f5c542; background: rgba(80, 60, 10, .35); }
.rating-block tbody tr:nth-child(1) td:first-child { color: #ffd25a; }
.rating-block tbody tr:nth-child(2) td { border-color: #9fb4ff; background: rgba(40, 60, 120, .35); }
.rating-block tbody tr:nth-child(2) td:first-child { color: #cdd8ff; }
.rating-block tbody tr:nth-child(3) td { border-color: #ff9a4d; background: rgba(90, 40, 10, .35); }
.rating-block tbody tr:nth-child(3) td:first-child { color: #ffae6b; }
.rating-block .rank-medal { display: inline-grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: 50%; color: #1a1205; font-weight: 800; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .35); }
.rating-block .rank-medal-1 { background: radial-gradient(circle at 30% 30%, #fff1b0, #f5c542 60%, #b8860b); }
.rating-block .rank-medal-2 { background: radial-gradient(circle at 30% 30%, #ffffff, #c5cde6 60%, #8892b0); }
.rating-block .rank-medal-3 { background: radial-gradient(circle at 30% 30%, #ffd9b8, #e0884a 60%, #8a4a1c); }
@media (max-width: 60rem) { .donate-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 40rem) { .goal-card .goal-amounts { grid-template-columns: repeat(2, minmax(0, 1fr)); } .donate-head-ik { width: 3rem; height: 3rem; } }
@media (max-width: 40rem) {
  .sub-tabs { display: flex; overflow-x: auto; gap: .5rem; padding-bottom: .25rem; scroll-snap-type: x proximity; }
  .sub-tab { flex: 0 0 10.5rem; scroll-snap-align: start; }
  .sub-card .sub-meta { flex-direction: column; gap: .2rem; }
  .sub-card .sub-meta > span + span { padding-left: 0; border-left: 0; }
}

/* ---------------------------------------------------------------- приглашения */

.referral-block > summary { align-items: center; }
.ref-summary { display: flex; flex-direction: column; gap: .15rem; }
.referral-block > summary h2 { font-size: 1.6rem; }
.ref-lead { color: #dfe5ff; font-size: 1rem; font-weight: 600; }
.ref-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin: .25rem 0 1rem; padding: 0; list-style: none; }
.ref-stats li { display: flex; align-items: center; gap: 1.25rem; padding: 1rem 1.5rem; border: 1.5px solid rgba(var(--s-cyan-rgb), .7); border-radius: var(--s-radius); background: rgba(5, 10, 36, .6); }
.ref-stats .ik { width: 3.25rem; height: 3.25rem; color: var(--s-cyan); stroke-width: 1.5; }
.ref-stats li > span { display: flex; flex-direction: column; }
.ref-stat-label { font-size: 1rem; color: #e6eaff; }
.ref-stat-value { font-size: 2.25rem; font-weight: 800; line-height: 1.1; }
.ref-stat-sub { color: var(--s-cyan); font-size: 1rem; }
.ref-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 1rem; align-items: start; }
.ref-card { padding: 1.25rem 1.5rem; border: 1.5px solid rgba(var(--s-cyan-rgb), .6); border-radius: var(--s-radius); background: rgba(5, 10, 36, .55); }
.ref-card-head { display: flex; align-items: center; gap: 1rem; margin: 0 0 .75rem; }
.ref-card-head .ik { width: 2.5rem; height: 2.5rem; color: var(--s-cyan); stroke-width: 1.6; }
.ref-card-head h3 { margin: 0; font-size: 1.5rem; font-weight: 800; }
.ref-message { margin: 0 0 1rem; padding: 1rem 1.25rem; border: 1px solid rgba(150, 170, 255, .45); border-radius: .7rem; background: rgba(3, 6, 26, .5); white-space: pre-line; line-height: 1.45; color: #e6eaff; overflow-wrap: anywhere; }
.ref-link-label { font-weight: 500; color: #dfe5ff; }
.ref-link-row { display: flex; gap: .5rem; margin-bottom: .75rem; }
.ref-link-row input[type="text"] { flex: 1 1 auto; max-width: none; margin: 0; }
.ref-link-copy { flex: none; min-height: 3rem; }
.ref-actions { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: .75rem; }
.ref-actions .btn { min-height: 3.25rem; }
.ref-actions .btn[hidden] { display: none; }
.ref-hint { margin: .6rem 0 .75rem; text-align: center; color: #c9d2f5; }
.ref-qr { border: 1.5px solid rgba(90, 150, 255, .45); border-radius: .7rem; background: rgba(5, 10, 36, .6); }
.ref-qr > summary { display: flex; align-items: center; gap: 1rem; min-height: 3.75rem; padding: .5rem 1.1rem; list-style: none; cursor: pointer; }
.ref-qr > summary::-webkit-details-marker { display: none; }
.ref-qr > summary .ik { width: 2.25rem; height: 2.25rem; color: var(--s-cyan); }
.ref-qr > summary > span { display: flex; flex-direction: column; }
.ref-qr-title { font-weight: 700; }
.ref-qr-sub { font-size: .9375rem; color: #c9d2f5; }
.ref-qr img { display: block; margin: 0 auto 1rem; border-radius: .5rem; background: #fff; }
.ref-steps { margin: 0 0 1.25rem; padding-left: 1.5rem; line-height: 1.7; font-size: 1.125rem; }
.ref-rules { margin: 0 0 1rem; padding: 0; list-style: none; }
.ref-rules li { padding: .5rem 0; border-bottom: 1px solid rgba(150, 170, 255, .25); color: #e6eaff; }
.ref-bonus { display: flex; align-items: center; gap: .75rem; margin: 0; color: var(--s-cyan); font-size: 1.25rem; font-weight: 700; }
.ref-bonus .ik { width: 2rem; height: 2rem; }
@media (max-width: 60rem) { .ref-grid, .ref-stats { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 40rem) { .ref-actions { grid-template-columns: minmax(0, 1fr); } .ref-link-row { flex-direction: column; } }
@media (max-width: 40rem) {
  .connect-strip .video-card > summary { gap: .9rem; padding: .6rem .9rem; }
  .video-thumb { width: 4.5rem; height: 3.5rem; }
  .play-ik { width: 2.25rem; height: 2.25rem; }
  .video-sum-title { font-size: 1.0625rem; overflow-wrap: anywhere; }
  .video-sum-text { min-width: 0; }
  .connect-more { padding: .9rem 1rem; font-size: 1.125rem; }
  .connect-page .device-tabs { width: 100%; }
  .connect-page .device-tab { min-width: 0; }
  .connect-page .connect-step { padding: 1.1rem 1rem 1.25rem; }
  .step-ik { width: 5rem; height: 5rem; }
  .page-title { overflow-wrap: anywhere; }
}
.site-footer .footer-list a > span { overflow-wrap: break-word; word-break: normal; hyphens: auto; }
@media (max-width: 40rem) {
  .category-ik { width: 2.5rem; height: 2.5rem; }
  .category-head-text { flex: 1 1 0; }
  .category-head .routes-compare { flex-basis: 100%; }
  .category-head .category-title { font-size: 1.5rem; }
  .feature-item { padding: .9rem 1rem; gap: 1rem; }
  .feature-icon { width: 2.75rem; height: 2.75rem; }
}

@media (max-width: 40rem) {
  .cab-panel > summary { gap: .6rem; }
  .cab-panel > summary .cab-head-ik { width: 2.25rem; height: 2.25rem; flex-shrink: 0; }
  .cab-panel > summary h2 { font-size: min(1.375rem, 6vw); overflow-wrap: break-word; }
  .ref-card-head { gap: .6rem; }
  .ref-card-head .ik { width: 2rem; height: 2rem; flex-shrink: 0; }
  .ref-card-head h3 { font-size: min(1.5rem, 6.4vw); overflow-wrap: break-word; }
  .ref-qr > summary { gap: .6rem; padding: .5rem .75rem; }
  .ref-qr > summary > span { min-width: 0; flex: 1 1 auto; overflow-wrap: break-word; }
  .ref-qr > summary .ik { flex-shrink: 0; }
}
@media (max-width: 40rem) {
  html[data-font-size="large"] .ref-qr > summary > .ik:first-child,
  html[data-font-size="max"] .ref-qr > summary > .ik:first-child { display: none; }
}
@media (max-width: 40rem) {
  .site-header .header-menu .site-nav a { min-width: 0; gap: .75rem; padding: .6rem 1rem; font-size: min(1.375rem, 7vw); overflow-wrap: break-word; }
  .support-head { gap: .75rem; }
  .support-ik { width: 2.75rem; height: 2.75rem; flex-shrink: 0; }
  .support-card h2 { min-width: 0; font-size: min(2rem, 8vw); overflow-wrap: break-word; }
}
@media (max-width: 22.5rem) {
  .site-footer .footer-list a { font-size: min(.9375rem, 4.6vw); gap: .75rem; }
  .connect-page .device-tab { gap: .5rem; padding: .4rem .6rem; }
  html[data-font-size="max"] .connect-page .device-tab { flex-basis: 100%; }
  .feature-item { gap: .75rem; padding: .9rem .75rem; }
  .feature-icon { width: 2.25rem; height: 2.25rem; flex-shrink: 0; }
  .feature-item p { font-size: min(1rem, 5vw); }
  .tariff-head { gap: .6rem; }
  .tariff-ik { width: 2.5rem; height: 2.5rem; flex-shrink: 0; }
  .tariff-card .tariff-name { font-size: min(1.375rem, 6.4vw); }
  .category-head .category-title { font-size: min(1.5rem, 7vw); }
  .page-title, .donate-head .page-title { font-size: min(2.5rem, 9.5vw); }
  .faq-item > summary, .materials > summary { gap: .5rem; padding: .55rem .6rem; font-size: min(1.125rem, 5vw); }
  .faq-ik { width: 1.6rem; height: 1.6rem; flex-shrink: 0; }
  .faq-go { width: 1.3rem; height: 1.3rem; flex-shrink: 0; }
  .app-card p { font-size: min(1rem, 4.6vw); }
  .play-ik { width: 1.75rem; height: 1.75rem; flex-shrink: 0; }
  .video-sum-title { font-size: min(1.0625rem, 5vw); }
  .network-name { font-size: min(1.25rem, 5vw); }
  .network-state { grid-column-end: -1; }
  .network-ping { grid-row: 1; }
}
@media (max-width: 100rem) { html[data-font-size="max"] .site-footer .footer-inner { grid-template-columns: minmax(0, 1fr); gap: 1.25rem; } }
@media (max-width: 40rem) { html[data-font-size="max"] .page-title, html[data-font-size="max"] .donate-head .page-title { font-size: min(2.5rem, 9.5vw); } }
@media (max-width: 40rem) {
  html[data-font-size="max"] :is(.faq-item, .materials) > summary { gap: .5rem; padding-inline: .6rem; }
  html[data-font-size="max"] .faq-ik { width: 1.6rem; height: 1.6rem; }
  html[data-font-size="max"] .faq-go { width: 1.3rem; height: 1.3rem; }
  html[data-font-size="max"] .connect-strip .video-card > summary { gap: .6rem; padding-inline: .6rem; }
  html[data-font-size="max"] .connect-more { gap: .6rem; padding-inline: .6rem; }
  html[data-font-size="max"] .connect-more > span { overflow-wrap: anywhere; }
  html[data-font-size="max"] .video-thumb { width: 2.75rem; height: 2.75rem; }
  html[data-font-size="max"] .play-ik { width: 1.75rem; height: 1.75rem; }
}
.rating-block h2 { min-width: 0; overflow-wrap: anywhere; }
.donate-rating-ik { flex: none; }
.rating-block table { width: 100%; }
.rating-block td:nth-child(2) { overflow-wrap: anywhere; }
.rating-block th:first-child, .rating-block th:last-child, .rating-block td:first-child, .rating-block td:last-child { width: 1%; white-space: nowrap; }
@media (max-width: 40rem) {
  .rating-block { padding: 1.25rem .85rem; }
  .donate-rating-head { gap: .6rem; }
  .donate-rating-ik { width: 2.5rem; height: 2.5rem; }
  .rating-block h2 { font-size: 1.4rem; }
  .rating-block table { border-spacing: 0 .4rem; }
  .rating-block th, .rating-block td { padding: .55rem .4rem; }
  .rating-block td { font-size: 1rem; }
  .rating-block .rank-medal { width: 1.9rem; height: 1.9rem; }
}
@media (max-width: 30rem) {
  .rating-block .table-compact th { font-size: .75rem; padding-left: .25rem; padding-right: .25rem; }
  .rating-block .table-compact td { font-size: .9375rem; padding: .5rem .3rem; }
  html[data-font-size="max"] .rating-block .table-compact td { padding-left: .25rem; padding-right: .25rem; }
  html[data-font-size="max"] .rating-block td:last-child { font-size: .875rem; }
  .rating-block .rank-medal { width: 1.75rem; height: 1.75rem; }
}
@media (max-width: 22.5rem) {
  .rating-block { padding-left: .5rem; padding-right: .5rem; }
  .rating-block .table-compact th, .rating-block .table-compact td { padding-left: .25rem; padding-right: .25rem; }
  .donate-rating-ik { width: 2.25rem; height: 2.25rem; }
  .rating-block .rank-medal { width: 1.6rem; height: 1.6rem; font-size: .875rem; }
  .rating-block td:last-child { font-size: .875rem; }
  html[data-font-size="max"] .rating-block th { font-size: .65rem; padding-left: .15rem; padding-right: .15rem; }
  html[data-font-size="max"] .rating-block td:last-child { font-size: .78rem; }
  html[data-font-size="max"] .rating-block td:nth-child(2) { padding-left: .15rem; padding-right: .15rem; }
  html[data-font-size="max"] .rating-block td:first-child { padding-right: .15rem; }
}
@media (max-width: 22.5rem) {
  html[data-font-size="max"] .rating-block h2 { font-size: 1.2rem; }
}
@media (min-width: 60.0625rem) and (max-width: 74rem) {
  html:is([data-font-size="large"], [data-font-size="max"]) .rating-block th, html:is([data-font-size="large"], [data-font-size="max"]) .rating-block td { padding-left: .4rem; padding-right: .4rem; }
  html[data-font-size="max"] .rating-block td { font-size: 1.05rem; }
  html[data-font-size="max"] .rating-block h2 { font-size: 1.6rem; }
}
@media (min-width: 22.5625rem) and (max-width: 25rem) {
  html[data-font-size="max"] .rating-block { padding-left: .5rem; padding-right: .5rem; }
  html[data-font-size="max"] .rating-block th { padding-left: .15rem; padding-right: .15rem; }
  html[data-font-size="max"] .rating-block td:nth-child(2) { padding-left: .15rem; padding-right: .15rem; }
  html[data-font-size="max"] .rating-block td:first-child { padding-right: .15rem; }
}
@media (min-width: 60.0625rem) and (max-width: 64rem) {
  html[data-font-size="max"] .rating-block { padding-left: .75rem; padding-right: .75rem; }
}
.sub-card .sub-rename-form textarea.has-name-emoji { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b48cff' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 20l1-4L16.5 4.5a2 2 0 0 1 3 3L8 19z'/%3E%3Cpath d='M14.5 6.5l3 3'/%3E%3C/svg%3E"); background-position: right .5rem center; background-size: 1.5rem; padding-left: 0; }
.sub-card:has(textarea.has-name-emoji) .sub-status { margin-left: 0; }
.sub-tab.has-name-emoji { background-image: none; padding-left: 1rem; }
.sub-tab.has-name-emoji[aria-selected="true"] { background-image: var(--s-grad); background-position: 0 0; background-size: 100% 100%; }
/* Случайное выделение: кнопки (и ссылки-кнопки), вкладки, заголовки раскрытия и значки не выделяются (Яндекс на выделении
   показывает свою панель). Поля ввода, ссылки в тексте и содержимое открытых списков выделяются и копируются как раньше. */
button, summary, [role="tab"], [role="button"], .btn, svg.ik { -webkit-user-select: none; user-select: none; }
button:focus:not(:focus-visible) { outline: none; }
