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

body:is(.s22-public, .home-page) {
  --s22-page-bg:
    radial-gradient(ellipse at 92% 3%, #fff 0%, transparent 58%),
    radial-gradient(ellipse at 0% 50%, #faf4ef 0%, transparent 68%),
    linear-gradient(137deg, #e9f1f8, #f0f4f7);
  --s22-ink: #202d3b;
  --s22-muted: #4e6173;
  --s22-line: #d6e0e8;
  --s22-surface: #f9fbfd;
  --s22-surface-gradient: linear-gradient(150deg, #fcfdff, #f1f6fa);
  --s22-surface-shadow: 0 6px 22px rgb(52 72 90 / 6%);
  --s22-accent: #385e7d;
  --s22-accent-fill: #e7f0f8;
  --s22-accent-line: #c8d9e7;
  --s22-focus: #426d8a;
  --font-sans: "Safe22 Manrope", system-ui, sans-serif;
  font-family: var(--font-sans);
  color: var(--s22-ink);
  background: var(--s22-page-bg);
}

body:is(.s22-public, .home-page) :where(button, input, select, textarea) {
  font-family: inherit;
}

body.home-page {
  --color-accent: var(--s22-accent);
  --color-accent-hover: #305570;
  --color-accent-press: #284a67;
  --color-accent-soft: var(--s22-accent-fill);
}

.home-page #lp {
  --bg: transparent;
  --surface: var(--s22-surface);
  --text: var(--s22-muted);
  --text-strong: var(--s22-ink);
  --muted: var(--s22-muted);
  --accent: var(--s22-accent);
  --accent-2: #567b97;
  --accent-press: #284a67;
  --sh: var(--s22-surface-shadow);
  --sh-sm: 0 3px 11px rgb(52 72 90 / 6%);
  --sh-in: inset 0 0 0 1px var(--s22-line);
  --sh-in-sm: var(--sh-in);
  font-family: var(--font-sans);
  background: none;
}

body:is(.s22-public, .home-page) :is(a[href], button, input, select, textarea, summary):focus-visible,
.home-page #lp .amt-input:focus-visible {
  outline: 2px solid var(--s22-focus);
  outline-offset: 3px;
}

body:is(.s22-public, .home-page) :is(
  .btn, .hero-guide, .telegram-cta, .support-btn, .btn-primary-action, .btn-secondary-action,
  .rec-cta-btn, .s22-cta-btn, .s22-store-return-btn, .c22-btn-shimmer, .c22-store-link,
  .store-buy, .store-secondary, .store-card-btn, .buy, .s22pay-cta, .s22pay-promo-btn,
  .sp-modal-alt-btn, .sp-modal-btn-store, .auth-action, .support-action, .faq-link,
  .site-header .feature-links :where(a),
  .footer-badge-link, .site-header-link, .nf-tg-link
),
body.s22-public .site-header .main-nav .nav-login,
.home-page #lp .btn {
  --s22-glass-tint: rgb(210 226 240 / 34%);
  --s22-glass-line: #a5b4c0;
  --s22-glass-ink: #203544;
  min-height: 44px;
  border: 1px solid var(--s22-glass-line);
  border-radius: 999px;
  color: var(--s22-glass-ink);
  background:
    linear-gradient(111deg, transparent 39%, rgb(167 196 218 / 28%) 45%, rgb(255 255 255 / 90%) 50%, transparent 56%) 100% 0 / 300% 100% no-repeat,
    radial-gradient(ellipse at 18% 0%, rgb(255 255 255 / 72%), transparent 78%),
    linear-gradient(149deg, rgb(250 253 255 / 44%), var(--s22-glass-tint));
  box-shadow: inset 0 1px rgb(255 255 255 / 70%);
  font-weight: 700;
  text-shadow: none;
  transition: background-position 1.04s cubic-bezier(.2, .7, .3, 1), border-color .16s ease, box-shadow .16s ease;
}

body:is(.s22-public, .home-page) :is(
  .hero-primary, .btn--accent, .btn-primary, .auth-action--primary, .store-buy,
  .store-card-btn, .s22pay-cta, .btn-primary-action, .s22-cta-btn, .c22-btn-shimmer,
  a.support-action.support-action-primary, .site-header-link--active
),
.home-page #lp .btn:not(.btn--ghost) {
  --s22-glass-tint: rgb(194 214 233 / 53%);
  --s22-glass-line: #96acbd;
  --s22-glass-ink: #264b68;
}

body.s22-public :is(.nav-login, .auth-action:not(.auth-action--primary), .hero-guide, .store-secondary) {
  --s22-glass-tint: rgb(226 236 245 / 40%);
  --s22-glass-line: #b7c5d0;
}

body:is(.s22-public, .home-page) :is(
  .btn, .hero-guide, .telegram-cta, .support-btn, .btn-primary-action, .btn-secondary-action,
  .rec-cta-btn, .s22-cta-btn, .s22-store-return-btn, .c22-btn-shimmer, .c22-store-link,
  .store-buy, .store-secondary, .store-card-btn, .buy, .s22pay-cta, .s22pay-promo-btn,
  .sp-modal-alt-btn, .sp-modal-btn-store, .auth-action, .support-action, .faq-link,
  .site-header .feature-links :where(a),
  .footer-badge-link, .site-header-link, .nf-tg-link
):not(:disabled, [aria-disabled="true"]):is(:hover, :focus-visible),
body.s22-public .site-header .main-nav .nav-login:is(:hover, :focus-visible),
.home-page #lp .btn:is(:hover, :focus-visible) {
  border-color: #8199ae;
  color: var(--s22-glass-ink);
  background-position: 0% 0, 0 0, 0 0;
  transform: none;
  filter: none;
  box-shadow: inset 0 1px rgb(255 255 255 / 70%);
}

.home-page #lp .btn .pulse { animation: none; box-shadow: none; }

body:is(.s22-public, .home-page) :is(
  .btn, .hero-guide, .auth-action, .store-buy, .s22pay-cta, .s22pay-promo-btn
):is(:disabled, [aria-disabled="true"]) {
  background: #edf2f6;
  border-color: var(--s22-line);
  color: #647689;
  cursor: default;
}

body.s22-public :is(.btn.hero-primary, .c22-btn-shimmer)::before,
body.s22-public :is(.btn.hero-primary, .btn.secondary, .btn:not(.secondary), .c22-btn-shimmer)::after {
  animation: none;
}

body.s22-public :is(.btn.hero-primary, .c22-btn-shimmer)::before,
body.s22-public :is(.btn.hero-primary, .c22-btn-shimmer)::after {
  content: none;
}

body:is(.s22-public, .home-page) :is(
  .site-header, .auth-header, .header, .feature-links, .bottom-nav
) {
  color: var(--s22-ink);
  border-color: var(--s22-line);
  background: rgb(248 251 254 / 96%);
  box-shadow: var(--s22-surface-shadow);
}

body:is(.s22-public, .home-page) :is(
  .bottom-nav__item.active, .bottom-nav__item--active, .bottom-nav__item[aria-current="page"]
) {
  background: var(--s22-accent-fill);
  border-color: var(--s22-accent-line);
  color: var(--s22-accent);
  border-radius: 999px;
}

body.s22-public .site-header .main-nav-links {
  gap: clamp(14px, 1.65vw, 26px);
}

body.s22-public .site-header .main-nav-links > a,
body.s22-public .site-header .main-nav-links .feature-summary {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 4px;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  color: var(--s22-ink);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

body.s22-public .site-header .main-nav-links > a:is(:hover, :focus-visible, .active, [aria-current="page"]),
body.s22-public .site-header .main-nav-links .feature-summary:is(:hover, :focus-visible),
body.s22-public .site-header .main-nav-links .feature-menu[open] .feature-summary {
  color: #264b68;
}

body.s22-public .site-header .main-nav-links > a:is(.active, [aria-current="page"]) {
  font-weight: 740;
}

body.s22-public .site-header .main-nav-links > a::before,
body.s22-public .site-header .main-nav-links .feature-summary::before {
  content: "";
  position: absolute;
  inset: auto 4px 5px;
  border-bottom: 2px solid currentColor;
  pointer-events: none;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 220ms cubic-bezier(.22, .61, .36, 1);
}

body.s22-public .site-header .main-nav-links > a:is(.active, [aria-current="page"], :focus-visible)::before,
body.s22-public .site-header .main-nav-links .feature-summary:focus-visible::before,
body.s22-public .site-header .main-nav-links .feature-menu[open] .feature-summary::before {
  transform: scaleX(1);
}

@media (hover: hover) {
  body.s22-public .site-header .main-nav-links > a:hover::before,
  body.s22-public .site-header .main-nav-links .feature-summary:hover::before {
    transform: scaleX(1);
  }
}

.s22-public .site-header .nav-login,
.s22-public .site-header .feature-links a {
  align-items: center;
  min-height: 44px;
  padding: 8px 13px;
  font-size: 14px;
  font-weight: 680;
  text-decoration: none;
}

.s22-public .site-header .feature-links {
  gap: 5px;
  padding: 8px;
  border-color: var(--s22-accent-line);
  box-shadow: 0 16px 36px rgb(52 72 90 / 14%);
}

.s22-public .site-header .feature-links a {
  display: flex;
  border-radius: 10px;
  white-space: normal;
}

.s22-public .site-header .feature-links .feature-benefits-mobile { display: none; }

body.s22-public .site-header :is(a, summary):focus-visible {
  outline: 2px solid var(--s22-focus);
  outline-offset: 3px;
}

@media (max-width: 960px) {
  .s22-public .site-header .main-nav {
    position: relative;
    grid-template-columns: minmax(0, 1fr) auto;
    min-height: auto;
    gap: 8px 12px;
    padding-block: 8px;
  }

  .s22-public .site-header .nav-login { grid-area: 1 / 2; }

  body.s22-public .site-header .main-nav-links {
    grid-area: 2 / 1 / auto / -1;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .s22-public .site-header .feature-menu { position: static; }

  .s22-public .site-header .feature-links {
    top: 100%;
    left: 0;
    transform: none;
  }

  .s22-public .site-header .feature-links::before { content: none; }
}

@media (max-width: 480px) {
  body.s22-public .site-header .main-nav-links { gap: clamp(8px, 2.5vw, 12px); }

  body.s22-public .site-header .main-nav-links > a,
  body.s22-public .site-header .main-nav-links .feature-summary {
    font-size: clamp(12px, 3.2vw, 13px);
  }

  body.s22-public .site-header .main-nav-links > a.nav-benefits { display: none; }
  .s22-public .site-header .feature-links .feature-benefits-mobile { display: flex; }
}

body.home-page .nf {
  --s22-footer-text: #3d5267;
  background: linear-gradient(140deg, #edf4fa, #f9fbfd);
  border-color: var(--s22-line);
  color: var(--s22-footer-text);
}

body.home-page .nf :is(a, strong, p, small, span, .nf-title, .nf-copy, .nf-disclaimer) {
  color: var(--s22-footer-text);
}

body.home-page .nf .nf-tg-link { color: var(--s22-glass-ink); }

body.s22-public .support-card .support-action {
  min-height: 62px;
  border-radius: 13px;
}

body.s22-public .support-faq-box .faq-link {
  border-radius: 11px;
}

body.home-page .nf-bottom {
  border-color: var(--s22-line);
}

body.s22-public :is(
  .hero:not(.hero-open), .panel, .card, .faq-item, .support-card, .rec-card, .s22-order-card,
  .c22-card, .app-card, .s22pay-modal, #authCard
),
body.home-page :is(.plans-panel, .accordion-item, .dcard, .hero-card) {
  border-color: var(--s22-line);
  background-color: var(--s22-surface);
  box-shadow: var(--s22-surface-shadow);
}

body.s22-public :is(.hero:not(.hero-open), .support-card-primary, #authCard, .pa-guest, .c22-card),
body.home-page .plans-panel {
  background-image: var(--s22-surface-gradient);
}

body.s22-public :is(.accent, .eyebrow, .pa-hero-label) {
  color: var(--s22-accent);
}

body.s22-public :is(.mark, .plan-mark, .hero-note, .store-hero-badge),
body.home-page :is(.hero-eyebrow, .esim-hero-badge) {
  background-color: var(--s22-accent-fill);
  border-color: var(--s22-accent-line);
  color: var(--s22-accent);
}

.home-page #lp .preset.active,
body:is(.s22-public, .home-page) :is(
  .sp-tab.active, .sp-tab[aria-selected="true"],
  .esim-tfilter.is-active, .esim-tfilter[aria-pressed="true"], .preset.active,
  .s22pay-tile.is-active, .s22pay-dur-pill[aria-pressed="true"]
) {
  background-color: var(--s22-accent-fill);
  border-color: var(--s22-accent-line);
  color: var(--s22-accent);
}

body.s22-public .s22pay-tile.is-active {
  box-shadow: inset 0 0 0 1px var(--s22-accent-line);
}

body.s22-public .s22pay-total-val { --brand-red: var(--s22-accent); }

body:is(.s22-public, .home-page) :is(
  .auth-field, .pa-input, .store-input, .s22pay-input, .store-filters select, .amt-input
):not(.is-invalid, .is-valid, [aria-invalid="true"]),
.home-page #lp .amt-input {
  min-height: 44px;
  border-color: #c4d2df;
  background-color: #fcfdff;
  color: var(--s22-ink);
}

body:is(.s22-public, .home-page) :is(.auth-field, .pa-input, .store-input, .s22pay-input, .amt-input)::placeholder {
  color: #647689;
}

body:is(.s22-public, .home-page) :is(.faq-header, .accordion-header) {
  color: var(--s22-ink);
}

@media (max-width: 640px) {
  body:is(.s22-public, .home-page) :is(.auth-field, .pa-input, .store-input, .s22pay-input, .amt-input) {
    font-size: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body:is(.s22-public, .home-page) :is(
    .btn, .hero-guide, .telegram-cta, .support-btn, .btn-primary-action, .btn-secondary-action,
    .rec-cta-btn, .s22-cta-btn, .s22-store-return-btn, .c22-btn-shimmer, .c22-store-link,
    .store-buy, .store-secondary, .store-card-btn, .buy, .s22pay-cta, .s22pay-promo-btn,
    .sp-modal-alt-btn, .sp-modal-btn-store, .auth-action, .support-action, .faq-link,
    .main-nav-links > a, .main-nav-links .feature-summary, .feature-links a,
    .footer-badge-link, .site-header-link, .nf-tg-link
  ),
  body.s22-public .site-header .main-nav-links > a::before,
  body.s22-public .site-header .main-nav-links .feature-summary::before,
  body.s22-public .site-header .main-nav .nav-login,
  .home-page #lp .btn { transition: none; }
}

@media (forced-colors: active) {
  body:is(.s22-public, .home-page) :is(a[href], button, input, select, textarea, summary):focus-visible {
    outline-color: Highlight;
  }
}
