/* gptishka-header-refresh */

.gptishka-header-refresh {
  --gptishka-header-refresh: 1;
}

:root {
  --gptishka-header-shell: min(1680px, calc(100vw - 20px));
}

body header {
  position: sticky !important;
  top: 0 !important;
  z-index: 100 !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow: visible !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  transform: translate3d(0, 0, 0);
  transition: transform 0.24s ease;
  will-change: transform;
}

body header.header-hidden {
  transform: translate3d(0, -120%, 0);
  pointer-events: none;
}

body header .site-ticker {
  display: none !important;
  width: var(--gptishka-header-shell) !important;
  max-width: var(--gptishka-header-shell) !important;
  min-height: 30px !important;
  height: 30px !important;
  margin: 10px auto 8px !important;
  padding: 0 12px 0 16px !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  align-items: center !important;
  gap: 12px !important;
  border: 1px solid rgba(255, 255, 255, 0.32) !important;
  border-radius: 999px !important;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0.2)) !important;
  color: rgba(22, 32, 50, 0.58) !important;
  box-shadow: 0 14px 36px rgba(48, 84, 150, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.52) !important;
  overflow: hidden !important;
  backdrop-filter: blur(18px) saturate(132%) !important;
  -webkit-backdrop-filter: blur(18px) saturate(132%) !important;
}

body header .site-ticker__marquee {
  min-width: 0 !important;
  overflow: hidden !important;
}

body header .site-ticker__track {
  display: inline-flex !important;
  align-items: center !important;
  min-width: 200% !important;
  color: rgba(22, 32, 50, 0.58) !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  letter-spacing: -0.01em !important;
}

body header .site-ticker__item {
  color: rgba(22, 32, 50, 0.58) !important;
}

body header .site-ticker__stats {
  min-height: 22px !important;
  padding: 0 10px !important;
  display: inline-flex !important;
  align-items: center !important;
  border: 1px solid rgba(53, 242, 143, 0.16) !important;
  border-radius: 999px !important;
  background: rgba(53, 242, 143, 0.12) !important;
  color: rgba(17, 72, 39, 0.82) !important;
  box-shadow: none !important;
}

body header .site-ticker__stat,
body header .site-ticker__stat-label,
body header .site-ticker__stat strong {
  color: rgba(17, 72, 39, 0.82) !important;
  font-size: 11px !important;
  font-weight: 800 !important;
}

body header .nav-shell {
  width: var(--gptishka-header-shell) !important;
  max-width: var(--gptishka-header-shell) !important;
  min-height: 68px !important;
  margin: 12px auto 0 !important;
  padding: 9px 0 !important;
  display: grid !important;
  grid-template-columns: auto auto minmax(0, 1fr) !important;
  align-items: center !important;
  justify-content: initial !important;
  gap: 18px !important;
  border: 0 !important;
  border-radius: 26px !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow: visible !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

body header .logo-link {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  flex: 0 0 auto !important;
  min-width: 0 !important;
  height: 51px !important;
}

body header .logo-img {
  display: block !important;
  width: auto !important;
  height: 46px !important;
  max-width: min(231px, 23vw) !important;
  object-fit: contain !important;
  filter: drop-shadow(0 10px 18px rgba(18, 32, 58, 0.18)) !important;
}

body header nav {
  min-width: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  position: static !important;
  width: auto !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

body header nav a {
  min-height: 40px !important;
  padding: 0 15px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: 1px solid transparent !important;
  border-radius: 999px !important;
  color: rgba(25, 36, 58, 0.72) !important;
  background: transparent !important;
  box-shadow: none !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  transition: color 0.18s ease, background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

body header nav a:hover,
body header nav a:focus-visible,
body header nav a.active {
  color: #101827 !important;
  border-color: rgba(255, 255, 255, 0.52) !important;
  background: rgba(255, 255, 255, 0.48) !important;
  transform: translateY(-1px);
}

body .header-actions {
  margin-left: auto !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 10px !important;
  min-width: 0 !important;
  grid-column: 3 !important;
}

body .header-product-pill {
  min-height: 48px;
  padding: 0 20px 0 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: start;
  width: auto;
  max-width: max-content;
  gap: 10px;
  border: 0;
  border-radius: 999px;
  background:
    radial-gradient(circle at 18% 20%, rgba(255, 255, 255, 0.18), transparent 30%),
    linear-gradient(135deg, #35f28f 0%, #18c878 48%, #0f8f5c 100%);
  color: #07110c;
  font-size: 15px;
  line-height: 1;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24), 0 14px 28px rgba(24, 200, 120, 0.18);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

body .header-product-pill:hover,
body .header-product-pill:focus-visible {
  color: #020604;
  transform: translateY(-1px);
  filter: saturate(110%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 18px 36px rgba(24, 200, 120, 0.26);
}

body .header-product-pill__dot {
  display: none;
}

body .header-product-pill__logo {
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(4, 17, 11, 0.16);
}

body .lang-current,
body .home-mobile-menu-toggle {
  height: 44px !important;
  min-width: 44px !important;
  min-height: 44px !important;
  border: 1px solid rgba(255, 255, 255, 0.5) !important;
  border-radius: 16px !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.58), 0 10px 24px rgba(54, 92, 170, 0.1) !important;
}

body .lang-current {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: auto !important;
  min-width: 112px !important;
  padding: 0 13px !important;
  gap: 8px !important;
  background: rgba(255, 255, 255, 0.42) !important;
  color: rgba(25, 36, 58, 0.82) !important;
  font-size: 13px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  white-space: nowrap !important;
}

body .lang-current span:not(.arrow) {
  display: inline-flex !important;
  align-items: center !important;
}

body .lang-current .arrow {
  display: none !important;
}

body .lang-dropdown,
body .lang-options {
  border: 1px solid rgba(255, 255, 255, 0.54) !important;
  background: rgba(255, 255, 255, 0.86) !important;
  color: #152036 !important;
  box-shadow: 0 24px 54px rgba(54, 92, 170, 0.18) !important;
  backdrop-filter: blur(18px) saturate(132%) !important;
  -webkit-backdrop-filter: blur(18px) saturate(132%) !important;
}

body .home-mobile-menu-toggle {
  display: none !important;
  width: 44px !important;
  grid-template-columns: repeat(2, 5px) !important;
  grid-template-rows: repeat(2, 5px) !important;
  place-content: center !important;
  gap: 6px !important;
  flex: 0 0 auto !important;
  background: linear-gradient(135deg, rgba(32, 231, 109, 0.94), rgba(22, 201, 92, 0.94)) !important;
  color: #fff !important;
  border-color: rgba(255, 255, 255, 0.26) !important;
  cursor: pointer;
}

body .home-mobile-menu-toggle span,
body .home-mobile-menu-toggle::after {
  content: "";
  display: block !important;
  width: 5px !important;
  height: 5px !important;
  border-radius: 999px !important;
  background: #fff !important;
  transform: none !important;
  opacity: 1 !important;
}

body .home-mobile-menu-toggle:hover,
body .home-mobile-menu-toggle:focus-visible {
  transform: translateY(-1px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.44), 0 14px 30px rgba(18, 201, 92, 0.24) !important;
}

@media (max-width: 1100px) {
  :root {
    --gptishka-header-shell: min(100vw - 18px, 1680px);
  }

  body header .nav-shell {
    min-height: 64px !important;
    gap: 13px !important;
    padding: 8px 0 !important;
  }

  body header .logo-img {
    height: 42px !important;
    max-width: min(210px, 25vw) !important;
  }

  body header nav {
    gap: 4px !important;
  }

  body header nav a {
    min-height: 38px !important;
    padding: 0 11px !important;
    font-size: 13px !important;
  }

  body .header-product-pill {
    min-height: 46px;
    padding: 0 15px 0 11px;
    font-size: 14px;
  }
}

@media (max-width: 760px) {
  :root {
    --gptishka-header-shell: calc(100vw - 12px);
  }

  body header .site-ticker {
    height: 28px !important;
    min-height: 28px !important;
    margin-top: 7px !important;
    margin-bottom: 6px !important;
    padding: 0 10px !important;
  }

  body header .site-ticker__track {
    font-size: 11px !important;
  }

  body header .site-ticker__stat-label {
    display: none !important;
  }

  body header .nav-shell {
    min-height: 58px !important;
    padding: 7px 0 !important;
    grid-template-columns: auto minmax(0, 1fr) auto !important;
    gap: 8px !important;
    border-radius: 22px !important;
  }

  body header .logo-link {
    height: 36px !important;
  }

  body header .logo-img {
    height: 40px !important;
    max-width: min(162px, 40vw) !important;
  }

  body:not(.home-nav-open) header nav {
    display: none !important;
  }

  body.home-nav-open header nav {
    position: absolute !important;
    top: calc(100% + 8px) !important;
    left: 8px !important;
    right: 8px !important;
    width: auto !important;
    padding: 10px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 6px !important;
    border-radius: 20px !important;
    background: rgba(255, 255, 255, 0.9) !important;
    box-shadow: 0 20px 44px rgba(54, 92, 170, 0.2) !important;
    backdrop-filter: blur(18px) saturate(132%) !important;
    -webkit-backdrop-filter: blur(18px) saturate(132%) !important;
  }

  body.home-nav-open header nav a {
    justify-content: flex-start !important;
  }

  body .header-product-pill {
    min-height: 42px;
    padding: 0 12px 0 9px;
    gap: 7px;
    font-size: 12.5px;
    justify-self: start;
  }

  body .header-product-pill__logo {
    width: 23px;
    height: 23px;
  }

  body .header-actions {
    gap: 8px !important;
  }

  body .lang-current,
  body .home-mobile-menu-toggle {
    height: 42px !important;
    min-height: 42px !important;
    border-radius: 15px !important;
  }

  body .lang-current {
    width: auto !important;
    min-width: 96px !important;
    padding: 0 11px !important;
    gap: 7px !important;
    font-size: 12px !important;
  }
}

@media (max-width: 390px) {
  body header .logo-img {
    height: 35px !important;
    max-width: min(144px, 37vw) !important;
  }

  body .lang-current,
  body .home-mobile-menu-toggle {
    height: 40px !important;
    min-height: 40px !important;
  }

  body .lang-current {
    width: auto !important;
    min-width: 88px !important;
    padding: 0 9px !important;
    gap: 6px !important;
    font-size: 11.5px !important;
  }

  body .header-product-pill span {
    max-width: 92px;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

@media (prefers-reduced-motion: reduce) {
  body header nav a,
  body .header-product-pill,
  body .home-mobile-menu-toggle {
    transition: none !important;
  }
}

body header .nav-shell {
  grid-template-columns: auto auto minmax(0, 1fr) auto !important;
}

body header .header-quick-links {
  min-width: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 8px !important;
  position: static !important;
  width: auto !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  overflow: visible !important;
}

body header .header-quick-link {
  min-height: 38px !important;
  padding: 0 14px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: 1px solid rgba(255, 255, 255, 0.38) !important;
  border-radius: 999px !important;
  color: rgba(16, 28, 48, 0.74) !important;
  background: rgba(255, 255, 255, 0.34) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35) !important;
  font-size: 13px !important;
  font-weight: 900 !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease !important;
}

body header .header-quick-link:hover,
body header .header-quick-link:focus-visible {
  color: rgba(7, 18, 33, 0.96) !important;
  background: rgba(255, 255, 255, 0.62) !important;
  box-shadow: 0 12px 28px rgba(74, 126, 255, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.52) !important;
  transform: translateY(-1px);
  outline: none !important;
}

body header .header-quick-link--telegram {
  color: #ffffff !important;
  background: linear-gradient(135deg, #35f28f, #18c878, #0f8f5c) !important;
  border-color: rgba(53, 242, 143, 0.42) !important;
  box-shadow: 0 14px 30px rgba(24, 200, 120, 0.22) !important;
}

body .header-actions {
  grid-column: 4 !important;
}

@media (max-width: 1180px) {
  body header .header-quick-links,
  body:not(.home-nav-open) header .header-quick-links,
  body.home-nav-open header .header-quick-links {
    display: none !important;
  }
}

@media (min-width: 1181px) and (max-width: 1320px) {
  body header .header-quick-links {
    gap: 6px !important;
  }

  body header .header-quick-link {
    min-height: 36px !important;
    padding: 0 11px !important;
    font-size: 12px !important;
  }
}

@media (max-width: 760px) {
  body header .nav-shell {
    grid-template-columns: auto minmax(0, 1fr) auto !important;
  }

  body .header-actions {
    grid-column: 3 !important;
  }
}

@media (max-width: 520px) {
  body header .header-quick-link {
    min-height: 34px !important;
    padding: 0 10px !important;
    font-size: 11.5px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  body header .header-quick-link {
    transition: none !important;
  }
}
