html {
  color-scheme: light;
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

/* Ҹ���� ����: ��������� autofill � ����� � ����� */
@media (prefers-color-scheme: dark) {
    html {
        color-scheme: dark;
    }

    input, select, textarea {
        background-color: #0a0a0a; /* ������������� dark:bg-zinc-950/900 */
        color: #f4f4f5; /* ������������� dark:text-zinc-100 */
    }

    ::placeholder {
        color: #9ca3af;
        opacity: 1;
    }

    /* Chrome/Safari autofill */
    input:-webkit-autofill,
    input:-webkit-autofill:focus,
    select:-webkit-autofill,
    textarea:-webkit-autofill {
        -webkit-text-fill-color: #f4f4f5 !important;
        -webkit-box-shadow: 0 0 0 1000px #0a0a0a inset !important;
        caret-color: #f4f4f5 !important;
    }
}
/* Cherry Inside header navigation: clear groups, compact icons, and calm separators. */
.ci-main-nav {
  gap: 0;
  justify-content: flex-start;
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  color: #e4e4e7;
}
.ci-nav-link {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  min-height: 2.5rem;
  padding: .35rem .4rem;
  flex: 0 0 auto;
  color: inherit;
  font-size: .8125rem;
  white-space: nowrap;
  text-decoration: none;
  border-radius: .55rem;
  transition: color .16s ease, background-color .16s ease;
}
.ci-nav-link svg,
.ci-mobile-link svg,
.ci-action-link svg {
  width: .875rem;
  height: .875rem;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ci-main-nav::-webkit-scrollbar { display: none; }
.ci-nav-link svg { color: #fb7185; }
.ci-nav-link:hover,
.ci-nav-link:focus-visible {
  color: #fff;
  background: rgba(244, 63, 94, .12);
  outline: none;
}
.ci-nav-link:focus-visible,
.ci-mobile-link:focus-visible,
.ci-action-link:focus-visible { box-shadow: 0 0 0 2px #fb7185; }
.ci-nav-link:nth-child(3),
.ci-nav-link:nth-child(5),
.ci-nav-link:nth-child(8) {
  margin-right: .2rem;
  padding-right: .55rem;
  border-right: 1px solid rgba(161, 161, 170, .28);
  border-radius: .55rem 0 0 .55rem;
}
.ci-mobile-link {
  display: flex;
  align-items: center;
  gap: .75rem;
  min-height: 2.75rem;
  padding: .6rem .8rem;
  color: #e4e4e7;
  text-decoration: none;
  border-radius: .65rem;
}
.ci-mobile-link svg { color: #fb7185; }
.ci-mobile-link:hover,
.ci-mobile-link:focus-visible { background: rgba(244, 63, 94, .12); color: #fff; }
.ci-action-link { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; white-space: nowrap; }
.ci-action-link svg { width: .95rem; height: .95rem; }
@media (min-width: 1024px) {
  .ci-main-nav {
  gap: 0;
  justify-content: flex-start;
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  color: #e4e4e7;
}
}
@media (prefers-reduced-motion: reduce) {
  .ci-nav-link {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  min-height: 2.5rem;
  padding: .35rem .4rem;
  flex: 0 0 auto;
  color: inherit;
  font-size: .8125rem;
  white-space: nowrap;
  text-decoration: none;
  border-radius: .55rem;
  transition: color .16s ease, background-color .16s ease;
}
}
/* Floating purchase and Telegram shortcuts for long public pages. */
.ci-floating-actions {
  position: fixed;
  z-index: 35;
  inset: 50% 0 auto;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s ease, visibility .2s ease;
}
.ci-floating-actions.is-visible {
  opacity: 1;
  visibility: visible;
}
.ci-floating-action {
  position: fixed;
  top: 50%;
  display: flex;
  width: 50px;
  transform: translateY(-50%);
  min-height: 122px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .7rem;
  padding: .85rem .55rem;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 999px;
  color: #fff;
  box-shadow: 0 12px 30px rgba(0,0,0,.28);
  text-decoration: none;
  pointer-events: auto;
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
.ci-floating-action:hover {
  color: #fff;
  transform: translateY(calc(-50% - 3px));
  box-shadow: 0 16px 36px rgba(0,0,0,.34);
  filter: brightness(1.08);
}
.ci-floating-action:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}
.ci-floating-action--buy {
  left: clamp(12px, calc(50vw - 696px), 64px);
  background: linear-gradient(160deg, #f43f5e, #be123c);
}
.ci-floating-action--telegram {
  right: clamp(12px, calc(50vw - 696px), 64px);
  background: linear-gradient(160deg, #38bdf8, #087eae);
}
.ci-floating-action svg {
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
}
.ci-floating-action__label {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: .72rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: .09em;
  text-transform: uppercase;
}
@media (max-width: 1399px) {
  body.ci-has-floating-actions { padding-bottom: 5.5rem; }
  .ci-floating-actions {
    inset: auto auto calc(12px + env(safe-area-inset-bottom)) 50%;
    display: flex;
    width: min(calc(100vw - 24px), 360px);
    align-items: center;
    gap: 6px;
    padding: 5px;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 999px;
    background: rgba(9,9,11,.92);
    box-shadow: 0 12px 32px rgba(0,0,0,.3);
    backdrop-filter: blur(14px);
    transform: translateX(-50%);
  }
  .ci-floating-action {
    position: static;
    top: auto;
    transform: none;
    width: auto;
    min-width: 0;
    min-height: 46px;
    flex: 1 1 0;
    flex-direction: row;
    gap: .5rem;
    padding: 0 .75rem;
    border: 0;
    border-radius: 999px;
    box-shadow: none;
  }
  .ci-floating-action:hover { transform: translateY(-1px); box-shadow: none; }
  .ci-floating-action svg { width: 17px; height: 17px; }
  .ci-floating-action__label {
    writing-mode: horizontal-tb;
    transform: none;
    font-size: .82rem;
    letter-spacing: .01em;
    text-transform: none;
    white-space: nowrap;
  }
}
@media (max-width: 380px) {
  .ci-floating-actions { width: calc(100vw - 16px); gap: 4px; padding: 4px; }
  .ci-floating-action { min-height: 44px; gap: .4rem; padding-inline: .55rem; }
}
@media (max-height: 480px) and (max-width: 1399px) {
  .ci-floating-actions { bottom: calc(6px + env(safe-area-inset-bottom)); }
  .ci-floating-action { min-height: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  .ci-floating-actions,
  .ci-floating-action { transition: none; }
}

/* Responsive Cherry Inside header: navigation stays grouped with its main actions. */
.ci-site-header { border-color: rgba(161, 161, 170, .2); background: rgba(9, 9, 11, .92); }
.ci-site-header__inner { column-gap: .75rem; }
.ci-menu-toggle { display: inline-flex; align-items: center; justify-content: center; min-width: 2.65rem; min-height: 2.65rem; border-color: rgba(161, 161, 170, .35); color: #f4f4f5; }
.ci-menu-toggle:hover, .ci-menu-toggle:focus-visible { border-color: #71717a; background: rgba(63, 63, 70, .55); outline: none; }
.ci-mobile-menu { max-height: calc(100dvh - 4.25rem); overflow-y: auto; border-color: rgba(161, 161, 170, .2); background: rgba(9, 9, 11, .97); }
.ci-mobile-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; max-width: 80rem; margin-inline: auto; padding: .25rem 1rem 1rem; }
.ci-mobile-action, .ci-header-action { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 2.7rem; border: 1px solid transparent; border-radius: .7rem; font-size: .84rem; font-weight: 750; line-height: 1.2; text-decoration: none; transition: background-color .16s ease, border-color .16s ease, transform .16s ease; }
.ci-mobile-action svg, .ci-header-action svg { width: 1rem; height: 1rem; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.ci-mobile-action--telegram, .ci-header-action--telegram { border-color: rgba(56, 189, 248, .34); background: rgba(14, 116, 144, .18); color: #bae6fd; }
.ci-mobile-action--telegram:hover, .ci-header-action--telegram:hover { border-color: rgba(56, 189, 248, .7); background: rgba(14, 116, 144, .3); color: #fff; }
.ci-mobile-action--buy, .ci-header-action--buy { border-color: #16a34a; background: #15803d; color: #fff; }
.ci-mobile-action--buy:hover, .ci-header-action--buy:hover { border-color: #4ade80; background: #16a34a; }
.ci-mobile-action:focus-visible, .ci-header-action:focus-visible { outline: 3px solid #86efac; outline-offset: 2px; }
.ci-mobile-action:hover, .ci-header-action:hover { transform: translateY(-1px); }
.ci-nav-link--download { color: #fecdd3; }
.ci-nav-link--demo { color: #bbf7d0; }
.ci-nav-link--download svg { color: #fb7185; }
.ci-nav-link--demo svg { color: #4ade80; }
@media (min-width: 1200px) {
  .ci-site-header__inner { flex-wrap: nowrap; justify-content: space-between; gap: .5rem; }
  .ci-main-nav { flex: 1 1 auto; min-width: 0; justify-content: center; overflow: visible; }
  .ci-nav-link { gap: .24rem; min-height: 2.65rem; padding: .3rem .34rem; font-size: .75rem; }
  .ci-nav-link:nth-child(3), .ci-nav-link:nth-child(5), .ci-nav-link:nth-child(8) { margin-right: 0; padding-right: .34rem; border-right: 0; border-radius: .55rem; }
  .ci-header-actions { flex: 0 0 auto; gap: .45rem; padding-left: .75rem; border-left: 1px solid rgba(161, 161, 170, .24); }
  .ci-header-action { min-height: 2.5rem; padding: .35rem .65rem; font-size: .78rem; }
}
@media (max-width: 420px) { .ci-mobile-actions { padding-inline: .75rem; } .ci-mobile-action { min-height: 2.55rem; } }
@media (prefers-reduced-motion: reduce) { .ci-mobile-action, .ci-header-action { transition: none; } }
/* Keep the desktop quick actions clear of the centered content. */
@media (min-width: 1400px) {
  .ci-floating-action--buy { left: clamp(4px, calc(50vw - 715px), 45px); }
  .ci-floating-action--telegram { right: clamp(4px, calc(50vw - 715px), 45px); }
}

.ci-portrait-header-actions { display: none; }
@media (max-width: 760px) and (orientation: portrait) {
  .ci-site-header__inner { flex-wrap: nowrap; gap: .4rem; }
  .ci-site-header__inner > a:first-child { flex: 0 1 auto; min-width: 0; gap: .35rem; font-size: clamp(.75rem, 3vw, 1rem); white-space: nowrap; }
  .ci-site-header__inner > a:first-child picture, .ci-site-header__inner > a:first-child img { width: 2rem; height: 2rem; }
  .ci-portrait-header-actions { order: 2; display: flex; align-items: center; gap: .3rem; margin-left: auto; }
  .ci-portrait-header-actions a { display: inline-flex; align-items: center; justify-content: center; min-height: 2.3rem; padding: .3rem .5rem; border: 1px solid #52525b; border-radius: .55rem; color: #fff; font-size: .76rem; font-weight: 700; text-decoration: none; white-space: nowrap; }
  .ci-portrait-header-actions a:last-child { border-color: #16a34a; background: #15803d; }
  .ci-menu-toggle { order: 3; flex: 0 0 auto; }
}
.ci-header-action--demo { border-color: rgba(74,222,128,.5); background: rgba(21,128,61,.16); color: #bbf7d0; }
.ci-header-action--demo:hover { border-color: #4ade80; background: rgba(21,128,61,.3); color: #fff; }

@media (min-width: 1200px) and (max-width: 1399px) {
  .ci-site-header__inner { column-gap: .25rem; }
  .ci-main-nav { gap: 0; }
  .ci-nav-link { padding-inline: .16rem; font-size: .68rem; }
  .ci-header-actions { gap: .2rem; padding-left: .3rem; }
  .ci-header-action { padding-inline: .4rem; font-size: .7rem; }
}
