@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800&display=swap');

:root{
  --bg:#f6f7fb;
  --card:#fff;
  --text:#111827;
  --muted:#6b7280;
  --line:#e6e9f1;
  --accent:#1DDD9D;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body{
  margin:0;
  font:14px/1.45 'Montserrat', system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color:var(--text);
  background:var(--bg);
}

/* общий контейнер (для остального сайта) */

.container {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== шапка ===== */

.site-header {
  background: #ffffff;
  border-bottom: 1px solid var(--border);
}

/* верхняя полоса */

.site-header__top {
  border-bottom: 1px solid var(--border);
  background: #f9fafb;
}

/* внутренние блоки шапки */

.site-header__top-inner,
.site-header__bottom-inner {
  max-width: 1500px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* отдельные настройки топа */

.site-header__top-inner {
  height: 32px;
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 12px;
}

.top-nav a {
  text-decoration: none;
  color: var(--muted);
}

.top-nav a:hover {
  color: var(--text);
}

.top-nav__soon {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.top-nav__soon .soon {
  font-size: 10px;
  padding: 1px 4px;
  border-radius: 4px;
  background: #fbbf24;
  color: #111827;
}

.top-nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.top-nav-right a {
  text-decoration: none;
  font-size: 12px;
  color: var(--muted);
}

.top-nav-right a:hover {
  color: var(--text);
}

.top-nav__currency {
  font-weight: 600;
}

.top-nav__lang-flag {
  font-size: 16px;
}

/* переключатель валюты */

.currency-switch {
  position: relative;
  font-size: 12px;
}

.currency-switch__current {
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.currency-switch__current:hover {
  color: var(--text);
}

.currency-switch__symbol {
  font-weight: 600;
}

.currency-switch__code {
  font-weight: 500;
}

.currency-switch__menu {
  position: absolute;
  right: 0;
  top: 100%;
  margin-top: 4px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 4px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.12);
  display: none;
  z-index: 30;
}

.currency-switch--open .currency-switch__menu {
  display: block;
}

.currency-switch__item {
  border: 0;
  background: transparent;
  padding: 4px 10px;
  font: inherit;
  color: var(--text);
  cursor: pointer;
  border-radius: 6px;
  display: block;
  width: 100%;
  text-align: left;
}

.currency-switch__item:hover {
  background: #f3f4f6;
}

/* нижняя полоса */

.site-header__bottom {
  background: #ffffff;
}

/* высота нижней полосы */

.site-header__bottom-inner {
  height: 60px;
}

/* логотип и меню */

.bottom-left {
  display: flex;
  align-items: center;
  gap: 32px;
}

.logo {
  text-decoration: none;
  font-weight: 700;
  font-size: 22px;
  color: #000000;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.logo__tick {
  font-size: 18px;
  color: #1DDD9D;
}

.bottom-nav {
  display: flex;
  align-items: center;
  gap: 16px;
}

.bottom-nav a {
  text-decoration: none;
  font-size: 14px;
  color: #111827;
}

.bottom-nav a:hover {
  color: var(--accent);
}

/* правая часть */

.bottom-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.bottom-link {
  text-decoration: none;
  color: #111827;
  font-size: 14px;
}

/* иконка уведомлений и корзины */

.notif-bell,
.cart-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  margin: 0 4px;
}

.notif-bell a,
.cart-icon a {
  text-decoration: none;
  color: var(--text);
  transition: color 0.2s;
}

.notif-bell a:hover,
.cart-icon a:hover {
  color: var(--accent);
}

/* счётчики поверх иконок */

.notif-bell__count,
.cart-icon__count {
  position: absolute;
  top: -4px;
  right: -6px;
  background: #ef4444;
  color: #fff;
  font-size: 10px;
  line-height: 1;
  padding: 2px 4px;
  border-radius: 999px;
}

/* "таблетки" с бонусами и балансом */

.pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
}

.pill--green {
  background: #1DDD9D;
  color: #ffffff;
}

.pill__icon {
  font-size: 14px;
}

/* юзер справа */

.user-short {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.user-short__name {
  font-size: 14px;
}

.user-short__avatar {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
}

/* контент под шапкой */

.site-main {
  max-width: 1300px;
  margin: 16px auto 40px;
  padding: 0 24px;
}

/* адаптив */

@media (max-width: 960px) {
  .site-header__top-inner {
    justify-content: center;
    padding: 0 16px;
  }

  .site-header__bottom-inner {
    flex-direction: column;
    align-items: flex-start;
    height: auto;
    padding: 8px 16px;
    gap: 8px;
  }

  .bottom-left {
    gap: 16px;
  }

  .bottom-right {
    flex-wrap: wrap;
    gap: 8px;
  }

  .site-main {
    padding: 0 12px;
  }
}

.cart-icon .cart-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cart-svg {
  width: 22px;       /* лучше подогнать под стиль шапки */
  height: 22px;
  transition: filter .2s ease;
  filter: brightness(0) saturate(100%) invert(7%) sepia(8%) saturate(720%) hue-rotate(180deg) brightness(93%) contrast(90%);
}

/* hover → #1DDD9D */
.cart-link:hover .cart-svg {
  filter: brightness(0) saturate(100%) invert(75%) sepia(22%) saturate(965%) hue-rotate(110deg) brightness(96%) contrast(98%);
}

.bell-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.bell-svg {
  width: 20px;
  height: 20px;
  transition: filter .2s ease;
  filter: brightness(0) saturate(100%) invert(10%) sepia(6%) saturate(430%) hue-rotate(190deg) brightness(92%) contrast(95%);
}

.bell-link:hover .bell-svg {
  filter: brightness(0) saturate(100%) invert(75%) sepia(20%) saturate(1100%) hue-rotate(110deg) brightness(94%) contrast(97%);
  /* #1DDD9D */
}

.user-short__avatar {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #fff;
}

.avatar-svg {
  width: 18px;
  height: 18px;
  transition: filter .2s ease;
  filter: brightness(0) saturate(100%) invert(7%) sepia(8%) saturate(720%) hue-rotate(180deg) brightness(93%) contrast(90%);
}

.user-short__avatar:hover .avatar-svg {
  filter: brightness(0) saturate(100%) invert(75%) sepia(22%) saturate(965%) hue-rotate(110deg) brightness(96%) contrast(98%);
  /* #1DDD9D */
}

/* ссылки справа в шапке */
.bottom-link,
.user-short__name {
  text-decoration: none;   /* убрать подчёркивание */
  color: #111827;          /* базовый цвет */
}

/* ховер — зелёный */
.bottom-link:hover,
.user-short__name:hover {
  color: #1DDD9D;
}

/* баланс и бонусы — тоже без подчёркивания */
.pill,
.pill:hover {
  text-decoration: none;
}






.tg-header-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 14px;                 /* меньше высота и ширина */
  border-radius: 999px;
  background: #54A9EB;               /* новый цвет */
  color: #ffffff;
  font-weight: 600;
  font-size: 13px;                   /* уменьшили текст */
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease-in-out,
              transform 0.05s ease-in-out;
}

.tg-header-btn:hover {
  background: #4A97D1;               /* тёмный оттенок */
}

.tg-header-btn:active {
  transform: translateY(1px);
}

.tg-header-btn__icon {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.tg-header-btn__icon svg {
  width: 14px;
  height: 14px;
  fill: #54A9EB;
}

.tg-header-btn__text {
  white-space: nowrap;
}
