/* === ОСНОВНОЙ ФОН СТРАНИЦЫ — как у шапки и футера === */
/* === ОСНОВНОЙ ФОН СТРАНИЦЫ === */
body {
  font-family: 'Roboto', sans-serif;
  background-color: #161b1f;
  color: #fff;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  /* УБРАТЬ: overflow-x: hidden */
  /* БЫЛО: overflow-x: hidden; — убираем! */
  scroll-behavior: smooth;
}


/* === ОБЁРТКА ДЛЯ КОНТЕНТА С ОСНОВНЫМ ФОНОМ === */
.content-wrapper {
  flex: 1;
  width: 100%;
  background-color: #111314; /* фон ТОЛЬКО между шапкой и футером */
  display: flex;
  flex-direction: column;
}

.wrapper {
  width: 100%;
  min-height: 100%;
}

/* Контейнер для контента */
.container {
  max-width: 900px;
  width: 100%;
  padding: 0 15px;
  margin: 0 auto;
}

/* Стили для плейсхолдера в input */
::placeholder {
  color: #808080;
  opacity: 1;
}

/* Основной контент */
.main {
  padding: 50px 0;
}

/* Скрывает крестик в поле поиска */
input[type="search"]::-webkit-search-cancel-button {
  display: none;
}

/* Скрывает стрелки у числового поля */
input[type="number"]::-webkit-inner-spin-button {
  display: none;
}

/* Стиль плейсхолдера в поиске */
input[type="search"]::-webkit-input-placeholder {
  font-weight: 450;
}

/* ---------------------------------------------------------------------------- */
/* Header — шапка сайта */
/* ---------------------------------------------------------------------------- */
/* Header — шапка сайта */
/* ---------------------------------------------------------------------------- */
/* Header — шапка сайта (НЕ прилипает, просто в начале страницы) */
/* ---------------------------------------------------------------------------- */
.header {
  /* УДАЛЕНО: position: sticky; top: 0; */
  z-index: 1000;
  height: 55px;
  background-color: #161b1f;
  border-bottom: 0.5px solid #3a3a3a95;
  width: 100%;
  flex-shrink: 0;
  display: flex;
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 55px;
}

/* Остальные стили — БЕЗ ИЗМЕНЕНИЙ */
/* (все остальные блоки остаются как есть) */


.header__left {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
}

.header__inner-logo {
  font-size: 20px;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  flex-shrink: 0;
}

.header__inner-logo img {
  display: block;
  width: 120px;
  height: auto;
}

.header__inner-search {
  display: flex;
  align-items: center;
  background-color: #0e1113;
  border: 1px solid #3d3d3dd9;
  border-radius: 8px;
  padding: 8px 10px;
  font-weight: 500;
  height: 36px;
  width: 230px;
  box-sizing: border-box;
}

.header__inner-search.header__inner-search--spaced {
  margin-right: 24px;
}

.header__inner-search-search {
  width: 100%;
  font-size: 14px;
  color: #fff;
  background: transparent;
  border: none;
  outline: none;
  font-weight: 500;
  padding: 0 8px;
  box-sizing: border-box;
}

.header__inner-search-img {
  display: flex;
  flex-shrink: 0;
}

.header__inner-search-img img {
  width: 13px;
}

.header__right {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-shrink: 0;
}

.header__inner-support {
  display: flex;
  align-items: center;
  font-family: Roboto;
  font-weight: 500;
  font-size: 14px;
  border: 1px solid #3d3d3dd9;
  border-radius: 8px;
  padding: 10px;
  background-color: #0e1113;
  color: #fff;
  cursor: pointer;
  transition: 0.1s;
  white-space: nowrap;
  flex-shrink: 0;
}

.header__inner-support:hover {
  border-color: #47474792;
  background-color: #4d545a1c;
}

.header__inner-profile {
  display: flex;
  align-items: center;
  font-family: Roboto;
  font-weight: 500;
  font-size: 14px;
  border: 1px solid #3d3d3dd9;
  border-radius: 8px;
  padding: 10px;
  background-color: #249c94;
  color: #fff;
  cursor: pointer;
  transition: 0.1s;
  white-space: nowrap;
  flex-shrink: 0;
}

.header__inner-profile:hover {
  background-color: #1f7f79;
  border-color: #0b312f;
}

.header__balance-container {
  border: 1px solid #114c48;
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  display: flex;
  align-items: center;
  margin-left: 5px;
  margin-right: -5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  background-color: #249c94;
  padding-top: 4px;
  padding-bottom: 3px;
  padding-left: 8px;
  padding-right: 8px;
  border-radius: 10px;
}

.header__profile {
  display: flex;
  align-items: center;
  gap: 2px;
  position: relative;
}

.header__profile-avatar {
  cursor: pointer;
  border-radius: 50%;
  overflow: hidden;
  width: 32px;
  height: 32px;
  transition: border 0.2s ease;
}

.header__profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.header__profile-arrow {
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
  margin-top: 2px;
}

.header__profile-arrow img {
  width: 8px;
  height: 8px;
  transition: transform 0.2s ease;
}

.header__profile-open .header__profile-arrow img {
  transform: rotate(180deg);
}

.header__profile-dropdown {
  position: absolute;
  top: 50px;
  right: 0;
  width: 230px;
  background-color: #161b1f;
  border: 0.5px solid #3a3a3a95;
  border-radius: 8px;
  overflow: hidden;
  display: none;
  z-index: 1000;
}

.header__profile-dropdown-body {
  display: flex;
  flex-direction: column;
  padding: 0;
}

.header__profile-dropdown-item--profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 16px;
  background-color: #1e2428;
  border-bottom: 0.5px solid #3a3a3a95;
  text-align: center;
  width: 100%;
}

.header__profile-dropdown-item--profile .header__profile-dropdown-item-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid #249c94;
}

.header__profile-dropdown-item--profile .header__profile-dropdown-item-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.header__profile-dropdown-item--profile .header__profile-dropdown-item-title {
  font-size: 16px;
  font-weight: 600;
  color: #cdcdcd;
  margin: 0;
  padding: 0;
  text-align: center;
}

.header__profile-dropdown-item--profile .header__profile-dropdown-item-subtitle {
  font-size: 16px;
  color: #ffffff;
  margin: 0;
  padding: 0;
  text-align: center;
}

.header__profile-dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  color: #ffffff;
  text-decoration: none;
  transition: background 0.2s;
  border-bottom: 0.5px solid #3a3a3a95;
}

.header__profile-dropdown-item:last-child {
  border-bottom: none;
}

.header__profile-dropdown-item--link {
  cursor: pointer;
}

.header__profile-dropdown-item--link:hover {
  background: #2a3136;
}

.header__profile-dropdown-item-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.header__profile-dropdown-item-text {
  display: flex;
  flex-direction: column;
  flex: 1;
  margin-left: -10px;
}

.header__profile-dropdown-item-title {
  font-size: 14px;
  font-weight: 500;
  color: #d2d2d2;
}

.header__profile-dropdown-item-subtitle {
  font-size: 13px;
  color: #808080;
  margin-top: 2px;
}

.menu-item--logout:hover {
  background: #3d1b1b4d !important;
  color: #ffcccc !important;
}

.menu-item--logout .header__profile-dropdown-item-title {
  color: #ff6b6b !important;
}

.header__profile-dropdown-item-icon-profile img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
}

.header__profile-dropdown-item-title-profile {
  font-size: 16px;
  font-weight: 500;
  margin-left: 10px;
}

.header__profile-dropdown-item-subtitle-profile {
  font-size: 13px;
  color: #808080;
  margin: 0;
  padding: 0;
  font-weight: 400;
  margin-left: 10px;
}

.header__profile-dropdown-item {
  line-height: 1.2;
}

.menu-item--balance .header__profile-dropdown-item-text {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  flex: 1 !important;
}

.header__profile-dropdown-item-balance-value {
  font-weight: 600;
  color: #249c94;
  font-size: 14px;
}

/* ---------------------------------------------------------------------------- */
/* Footer — нижняя часть сайта */
.footer {
  width: 100%;
  height: 55px;
  background-color: #161b1f;
  border-top: 0.5px solid #3a3a3a95;
  flex-shrink: 0;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 0px;
  box-sizing: border-box;
  font-size: 14px;
  color: #bbbbbb;
  height: 55px;
  flex-wrap: wrap;
}

.footer__inner-logo {
  font-size: 14px;
  color: #bbbbbb;
  white-space: nowrap;
  flex-shrink: 0;
}

.footer__inner-links {
  display: flex;
  gap: 20px;
  flex-shrink: 0;
}

.footer__inner-politeka,
.footer__inner-offer {
  font-size: 14px;
  color: #bbbbbb;
  white-space: nowrap;
  text-decoration: none;
}

.footer__inner-politeka:hover,
.footer__inner-offer:hover {
  color: #fff;
}

.footer__inner-icons {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: 50px;
  flex-shrink: 0;
}

.footer__inner-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  overflow: hidden;
}

.footer__inner-icons img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* === АДАПТИВ: МОБИЛЬНЫЕ (до 1023px) === */
@media (max-width: 1023px) {
  .footer__inner {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 15px;
    height: auto;
    text-align: center;
    margin-left: 0;
  }

  .footer {
    height: auto;
  }

  .footer__inner-logo,
  .footer__inner-politeka,
  .footer__inner-offer {
    font-size: 14px;
    color: #bbbbbb;
    margin: 0;
  }

  .footer__inner-links {
    flex-direction: column;
    gap: 8px;
    align-items: center;
  }

  .footer__inner-icons {
    gap: 10px;
    margin-top: 8px;
    margin-left: 0;
  }

  .footer__inner-icons a {
    width: 30px;
    height: 30px;
  }
}

/* === РЕЗУЛЬТАТЫ ПОИСКА — ШИРИНА КАК У ПОЛЯ ВВОДА === */
.search-results {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%; /* Теперь ширина = ширине .header__inner-search */
  max-height: 300px;
  background: #161b1f;
  border: 0.5px solid #3a3a3a95;
  border-radius: 8px;
  overflow-y: auto;
  z-index: 1001;
  margin-top: 17px;
  display: none;
  box-sizing: border-box; /* Важно: учитывает padding и border */
}

.search-results.active {
  display: block;
}

.search-results::-webkit-scrollbar {
  width: 6px;
}

.search-results::-webkit-scrollbar-track {
  background: #111314;
}

.search-results::-webkit-scrollbar-thumb {
  background: #3a3a3a;
  border-radius: 3px;
}

.search-result-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  color: #fff;
  text-decoration: none;
  border-bottom: 0.5px solid #3a3a3a95;
  transition: background 0.2s;
}

.search-result-item:last-child {
  border-bottom: none;
}

.search-result-item:hover {
  background: #2a3136;
}

.search-result-item img {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  object-fit: cover;
}

.search-result-item-title {
  font-size: 14px;
  font-weight: 500;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-result-item-price {
  font-size: 14px;
  font-weight: 600;
  color: #249c94;
}


/* === ПОИСК === */
.header__inner-search {
  position: relative;
}

/* === ИКОНКА ВХОДА === */
.header__login-icon {
  display: none;
}

/* === АДАПТИВ: ПЛАНШЕТ (768px — 1023px) === */
@media (max-width: 1024px) and (min-width: 768px) {
  .header__inner-support,
  .header__inner-profile,
  .header__balance-container {
    display: none !important;
  }

  .header__inner-logo img {
    display: none;
  }

  .header__inner-logo::before {
    content: '';
    display: block;
    width: 32px;
    height: 32px;
    background-image: url('/images/logo-2.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
  }

  .header__left {
    flex: 1;
    justify-content: flex-start;
    gap: 10px;
  }

  .header__inner-search {
    flex: 1;
    width: auto;
    min-width: 150px;
    margin-left: 8px;
  }

  .header__login-icon {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    margin-left: 10px;
  }

  .header__login-icon img {
    width: 32px;
    height: 32px;
  }
}

/* === АДАПТИВ: ТЕЛЕФОН (до 767px) — ФОН КАК У ШАПКИ === */
@media (max-width: 767px) {
  body {

  }

  .content-wrapper {

  }

  .header__inner-support,
  .header__inner-profile,
  .header__balance-container {
    display: none !important;
  }

  .header__inner-logo img {
    display: none;
  }

  .header__inner-logo::before {
    content: '';
    display: block;
    width: 32px;
    height: 32px;
    background-image: url('/images/logo-2.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
  }

  .header__left {
    flex: 1;
    justify-content: flex-start;
    gap: 8px;
  }

  .header__inner-search {
    flex: 1;
    width: auto;
    min-width: 120px;
    margin-left: 8px;
  }

  .header__login-icon {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    margin-left: 8px;
  }

  .header__login-icon img {
    width: 32px;
    height: 32px;
  }
}
