@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;500;600;700;800&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=DM+Mono:wght@400;500&display=swap');

:root {
  --sky: #b8d4e8;
  --denim: #5b85aa;
  --denim-deep: #3a6480;
  --mist: #d6e8f5;
  --fog: #ebf4fb;
  --cream: #f5f0e8;
  --sand: #e8dfd0;
  --stone: #9a9080;
  --ink: #2c3e50;
  --ink-light: #4a5568;
  --white: #fdfcfa;
  --red: #e05c4a;
  --gold: #c9a84c;
  --mint: #7ec8c8;
}

.marketplace-wrap,
.marketplace-wrap * { margin: 0; padding: 0; box-sizing: border-box; }
.marketplace-wrap { overflow-x: hidden; max-width: 100%; }
body.marketplace-page,
body.litecat-marketplace-page,
body.news-marketplace-page,
body.pricelist-marketplace-page { font-family: 'DM Sans', sans-serif; background: var(--fog); color: var(--ink); margin: 0px;}

.header { background: var(--white); border-bottom: 1px solid var(--sand); position: sticky; top: 0; z-index: 100; max-width: 100%; }
.header:has(.header-user-menu--opened),
.header.header--profile-menu-open { overflow: visible; z-index: 500; }
.header-top { display: flex; align-items: center; gap: 16px; padding: 12px 24px; border-bottom: 1px solid rgba(91, 133, 170, 0.1); }
.logo {
  font-family: 'Syne', sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: var(--denim-deep);
  letter-spacing: -0.04em;
  white-space: nowrap;
  text-decoration: none;
}
.logo span { color: var(--denim); font-weight: 400; }
.search-bar { flex: 1; display: flex; align-items: center; background: var(--fog); border: 1.5px solid var(--sky); border-radius: 8px; overflow: hidden; max-width: 600px; min-width: 0; }
.search-bar input { flex: 1; border: none; background: transparent; padding: 9px 14px; font-size: 13px; font-family: 'DM Sans', sans-serif; color: var(--ink); outline: none; }
.search-bar input::placeholder { color: var(--stone); }
.search-btn { background: var(--denim); border: none; padding: 10px 18px; color: #fff; font-size: 12px; font-weight: 600; cursor: pointer; font-family: 'DM Sans', sans-serif; letter-spacing: 0.04em; white-space: nowrap; }
.header-actions { display: flex; align-items: center; gap: 20px; margin-left: auto; }
.hdr-btn { display: flex; flex-direction: column; align-items: center; font-size: 10px; color: var(--stone); cursor: pointer; gap: 2px; font-family: 'DM Mono', monospace; letter-spacing: 0.06em; white-space: nowrap; text-decoration: none; }
.hdr-btn--ghost { padding: 6px 10px; border: 1px solid var(--sky); border-radius: 6px; background: var(--white); }
.hdr-btn svg { width: 20px; height: 20px; flex-shrink: 0; }
.hdr-log-wrap { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.hdr-log-inline {
  flex-direction: row;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 6px;
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--denim-deep);
}
.hdr-log-icon { width: 18px; height: 18px; }
.hdr-btn--primary.hdr-log-inline {
  background: var(--denim);
  color: #fff;
  border: 1px solid var(--denim);
}
.hdr-btn--primary.hdr-log-inline:hover {
  background: var(--denim-deep);
  border-color: var(--denim-deep);
}
.hdr-btn--ghost.hdr-log-inline:hover {
  background: var(--fog);
}

/* Блок профиля как в header2022 (компонент ProfileMenu2022 + header-user-menu). */
/*
 * Контейнер меню в потоке широкий и рисуется поверх соседних пунктов шапки (тарифы, избранное).
 * Без pointer-events: none «прозрачная» область перехватывает клики — Избранное перестаёт открываться.
 */
.marketplace-header__user-menu.header-user-menu {
  position: relative;
  flex: 0 0 auto;
  margin-left: 12px;
  pointer-events: none;
}
.marketplace-header__user-menu .header-user-menu__btn {
  pointer-events: auto;
}

/*
 * В header2022 попап с top: 64px под высоту middle-header; здесь шапка ниже —
 * между кнопкой и списком получалась «дыра», курсор выходил из .header-user-menu,
 * срабатывал mouseleave и меню закрывалось до клика по пункту.
 */
.marketplace-header__user-menu .header-user-menu__pop-up {
  top: calc(100% + 6px);
  pointer-events: none;
}

/* Невидимая зона между кнопкой и меню — чтобы довести курсор до ссылок без закрытия. */
.marketplace-header__user-menu .header-user-menu__pop-up::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 100%;
  height: 14px;
}

@media (min-width: 767px) {
  .marketplace-header__user-menu {
    margin-left: 24px;
  }
  .marketplace-header__user-menu::before {
    content: "";
    position: absolute;
    left: -14px;
    top: 50%;
    transform: translateY(-50%);
    height: 24px;
    width: 1px;
    background: #eaeaea;
  }
}
.marketplace-header__user-menu.header-user-menu--opened .header-user-menu__pop-up {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0) !important;
  z-index: 600 !important;
  pointer-events: auto;
}

/* Pop-up вне .header-user-menu--desktop (перенос в body на планшете/мобиле). */
.header-user-menu__pop-up.marketplace-profile-menu--portaled {
  position: fixed !important;
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
  z-index: 9999 !important;
  pointer-events: auto !important;
  display: block !important;
  width: min(256px, calc(100vw - 24px));
  max-height: min(calc(100vh - 120px), 420px);
  overflow-y: auto;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

@media (max-width: 900px) {
  /*
   * Pop-up на мобиле живёт в body (profile-menu.js), в шапке — только кнопка.
   * Не форсируем display:block здесь: иначе скрытое меню раздувает header-actions.
   */
  .header-actions {
    align-items: center;
  }
  .marketplace-header__user-menu.header-user-menu {
    flex: 0 0 auto;
    width: auto;
    margin-left: auto;
  }
  .marketplace-header__user-menu .header-user-menu__btn {
    width: auto;
    margin: 0;
    padding: 0;
    background: none;
  }
  .marketplace-header__user-menu .header-user-menu__name {
    display: none;
  }
  .marketplace-header__user-menu .header-user-menu__name--desktop {
    display: none;
  }
  .marketplace-header__user-menu .header-user-menu__avatar {
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
  }
}

.header-user-menu__pop-up.marketplace-profile-menu--mobile-host:not(.marketplace-profile-menu--portaled) {
  display: none !important;
  pointer-events: none !important;
}

.cat-nav { display: flex; align-items: center; padding: 0 24px; overflow-x: auto; max-width: 100%; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; scroll-padding-inline-end: 20px; }
.cat-nav::-webkit-scrollbar { display: none; }
.cat-item { padding: 10px 14px; font-size: 11.5px; font-weight: 500; color: var(--ink-light); cursor: pointer; white-space: nowrap; border-bottom: 2px solid transparent; transition: all 0.15s; font-family: 'DM Sans', sans-serif; text-decoration: none; }
.cat-item:hover { color: var(--denim); border-bottom-color: var(--sky); }
.cat-item.active { color: var(--denim-deep); border-bottom-color: var(--denim); font-weight: 700; }

.page { display: grid; grid-template-columns: minmax(248px, 260px) 1fr; min-width: 0; max-width: 100%; }

.main { min-width: 0; max-width: 100%; overflow-x: hidden; }

.sidebar { background: var(--white); border-right: 1px solid var(--sand); padding: 20px 0; height: calc(100vh - 97px); overflow-y: auto; top: 97px; }
.sidebar::-webkit-scrollbar { width: 4px; }
.sidebar::-webkit-scrollbar-thumb { background: var(--sky); border-radius: 2px; }
.sb-section { margin-bottom: 20px; }
.sb-title { font-size: 9px; font-family: 'DM Mono', monospace; letter-spacing: 0.2em; text-transform: uppercase; color: var(--stone); padding: 0 18px 8px; border-bottom: 1px solid var(--sand); margin-bottom: 8px; }
.sb-item { display: flex; align-items: center; justify-content: space-between; padding: 7px 18px; font-size: 12.5px; cursor: pointer; transition: background 0.1s; border-radius: 4px; margin: 1px 8px; font-family: 'DM Sans', sans-serif; color: inherit; text-decoration: none; }
.region-picker { display: flex; align-items: center; justify-content: space-between; width: calc(100% - 36px); margin: 6px 18px 0; padding: 8px 10px; background: var(--fog); border: 1px solid var(--sky); border-radius: 6px; cursor: pointer; font-family: 'DM Sans', sans-serif; font-size: 12px; color: var(--ink); }
.region-picker__icon { color: var(--denim); font-size: 10px; }
.region-clear { display: block; margin: 8px 18px 0; font-size: 11px; color: var(--denim); text-decoration: none; }
.sb-item:hover { background: var(--fog); }
.sb-item.sel { background: rgba(91, 133, 170, 0.1); color: var(--denim-deep); font-weight: 600; }
.sb-count { font-size: 10px; color: var(--stone); font-family: 'DM Mono', monospace; }
.price-range {
  padding: 0 18px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-top: 8px;
}
.price-input {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  background: var(--fog);
  border: 1px solid var(--sky);
  border-radius: 4px;
  padding: 7px 10px;
  font-size: 11px;
  font-family: 'DM Mono', monospace;
  color: var(--ink);
  outline: none;
  text-align: left;
}
.region-chips { display: flex; flex-wrap: wrap; gap: 4px; padding: 0 18px; margin-top: 6px; }
.region-chip { background: var(--fog); border: 1px solid var(--sky); border-radius: 20px; padding: 3px 10px; font-size: 10px; color: var(--ink-light); cursor: pointer; font-family: 'DM Sans', sans-serif; }
.region-chip.active { background: var(--denim); color: #fff; border-color: var(--denim); }

.hero-banner { background: linear-gradient(135deg, #b8d4e8 0%, #5b85aa 50%, #3a6480 100%); padding: 28px 28px 24px; display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: center; position: relative; overflow: hidden; }
.hero-banner::before { content: ''; position: absolute; top: -40px; right: 80px; width: 200px; height: 200px; background: rgba(255, 255, 255, 0.06); border-radius: 50%; pointer-events: none; }
.hero-badge { font-size: 9px; font-family: 'DM Mono', monospace; letter-spacing: 0.2em; text-transform: uppercase; background: rgba(255, 255, 255, 0.2); color: #fff; padding: 4px 10px; border-radius: 20px; display: inline-block; margin-bottom: 10px; }
.hero-banner h1 { font-family: 'Syne', sans-serif; font-size: 26px; font-weight: 800; color: #fff; line-height: 1.15; letter-spacing: -0.03em; margin-bottom: 6px; }
.hero-banner p { font-size: 13px; color: rgba(255, 255, 255, 0.8); font-family: 'DM Sans', sans-serif; font-weight: 300; }
.hero-stats { display: flex; gap: 20px; margin-top: 14px; }
.hs { text-align: center; }
.hs-num { font-size: 22px; font-weight: 800; font-family: 'Syne', sans-serif; color: #fff; letter-spacing: -0.03em; }
.hs-lbl { font-size: 9px; color: rgba(255, 255, 255, 0.6); font-family: 'DM Mono', monospace; letter-spacing: 0.1em; text-transform: uppercase; }
.hero-cta { position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center; justify-self: start; align-self: center; width: fit-content; max-width: 100%; min-height: 41px; background: var(--cream); color: var(--denim-deep); border: none; border-radius: 8px; padding: 12px 24px; font-size: 13px; line-height: 1.2; font-weight: 700; cursor: pointer; font-family: 'DM Sans', sans-serif; white-space: nowrap; box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15); text-decoration: none; }
.hero-cta::before { content: ''; position: absolute; inset: -4px; border-radius: 10px; }

.promo-strip { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 16px 24px 0; }
.promo-card { border-radius: 10px; padding: 16px 20px; display: flex; align-items: center; justify-content: space-between; cursor: default; overflow: hidden; position: relative; }
.promo-card__body { min-width: 0; flex: 1; padding-right: 12px; }
.promo-blue { cursor: pointer; }
.promo-card::after { content: ''; position: absolute; right: -20px; top: -20px; width: 80px; height: 80px; border-radius: 50%; background: rgba(255, 255, 255, 0.08); }
.promo-blue { background: linear-gradient(135deg, #5b85aa, #3a6480); }
.promo-cream { background: linear-gradient(135deg, #e8dfd0, #c9b89a); }
.promo-title { font-family: 'Syne', sans-serif; font-size: 14px; font-weight: 700; color: #fff; margin-bottom: 4px; letter-spacing: -0.02em; }
.promo-cream .promo-title { color: var(--ink); }
.promo-sub { font-size: 11px; color: rgba(255, 255, 255, 0.7); font-family: 'DM Sans', sans-serif; }
.promo-cream .promo-sub { color: var(--stone); }
.promo-card--news .promo-news-title {
  display: block;
  margin-top: 0;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--denim-deep);
  text-decoration: none;
}
.promo-card--news .promo-news-title:hover { text-decoration: underline; }
.promo-sub--neutral { font-style: italic; opacity: 0.85; }
.promo-icon { font-size: 36px; opacity: 0.9; flex-shrink: 0; }

.section-header { display: flex; align-items: center; justify-content: space-between; padding: 18px 24px 12px; }
.section-title { font-family: 'Syne', sans-serif; font-size: 17px; font-weight: 700; color: var(--ink); letter-spacing: -0.025em; }
.sort-bar { display: flex; gap: 6px; align-items: center; }
.sort-btn { background: var(--white); border: 1px solid var(--sand); border-radius: 20px; padding: 5px 12px; font-size: 11px; color: var(--stone); cursor: pointer; font-family: 'DM Sans', sans-serif; text-decoration: none; display: inline-block; }
.sort-btn.active { background: var(--denim); color: #fff; border-color: var(--denim); }
.view-count { font-size: 11px; color: var(--stone); font-family: 'DM Mono', monospace; }

.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding: 0 24px 24px; }
.marketplace-load-more { display: flex; justify-content: center; padding: 0 24px 28px; }
.marketplace-load-more__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 9px 18px;
  border: 1px solid var(--denim);
  border-radius: 20px;
  background: var(--white);
  color: var(--denim-deep);
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.marketplace-load-more__btn:hover { background: var(--denim); border-color: var(--denim); color: #fff; }
.marketplace-load-more__btn--loading { opacity: 0.72; pointer-events: none; }
.card { background: var(--white); border-radius: 10px; border: 1px solid var(--sand); overflow: hidden; cursor: pointer; transition: all 0.2s; position: relative; }
.card:hover { border-color: var(--sky); box-shadow: 0 4px 20px rgba(91, 133, 170, 0.15); transform: translateY(-2px); }
.card-badge { position: absolute; top: 10px; left: 10px; z-index: 2; font-size: 9px; font-family: 'DM Mono', monospace; letter-spacing: 0.08em; text-transform: uppercase; padding: 3px 8px; border-radius: 3px; font-weight: 600; }
.badge-new { background: var(--denim); color: #fff; }
.badge-sale { background: var(--red); color: #fff; }
.badge-offer-sale { background: var(--denim-deep); color: #fff; }
.badge-hot { background: var(--gold); color: #fff; }
.badge-exp { background: var(--mint); color: #fff; }
.card-fav {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  width: 28px;
  height: 28px;
  padding: 0;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--sand);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  cursor: pointer;
}
.card-fav.favorites-button,
.card-fav.card-fav--guest {
  -webkit-mask: none;
  mask: none;
  background-color: #fff;
}
.card-fav.favorites-button::before,
.card-fav.card-fav--guest::before {
  content: '';
  position: absolute;
  inset: 0;
  margin: auto;
  width: 18px;
  height: 18px;
  background: #c9c9c9;
  -webkit-mask: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M13.825 2.19922C12.346 2.19922 10.9265 2.88772 10 3.97572C9.0735 2.88772 7.654 2.19922 6.175 2.19922C3.557 2.19922 1.5 4.25622 1.5 6.87422C1.5 10.0872 4.39 12.7052 8.7675 16.6832L10 17.7967L11.2325 16.6747C15.61 12.7052 18.5 10.0872 18.5 6.87422C18.5 4.25622 16.443 2.19922 13.825 2.19922ZM10.085 15.4167L10 15.5017L9.915 15.4167C5.869 11.7532 3.2 9.33072 3.2 6.87422C3.2 5.17422 4.475 3.89922 6.175 3.89922C7.484 3.89922 8.759 4.74072 9.2095 5.90522H10.799C11.241 4.74072 12.516 3.89922 13.825 3.89922C15.525 3.89922 16.8 5.17422 16.8 6.87422C16.8 9.33072 14.131 11.7532 10.085 15.4167Z' fill='%23C9C9C9'/%3E%3C/svg%3E%0A") center / 100% no-repeat;
  mask: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M13.825 2.19922C12.346 2.19922 10.9265 2.88772 10 3.97572C9.0735 2.88772 7.654 2.19922 6.175 2.19922C3.557 2.19922 1.5 4.25622 1.5 6.87422C1.5 10.0872 4.39 12.7052 8.7675 16.6832L10 17.7967L11.2325 16.6747C15.61 12.7052 18.5 10.0872 18.5 6.87422C18.5 4.25622 16.443 2.19922 13.825 2.19922ZM10.085 15.4167L10 15.5017L9.915 15.4167C5.869 11.7532 3.2 9.33072 3.2 6.87422C3.2 5.17422 4.475 3.89922 6.175 3.89922C7.484 3.89922 8.759 4.74072 9.2095 5.90522H10.799C11.241 4.74072 12.516 3.89922 13.825 3.89922C15.525 3.89922 16.8 5.17422 16.8 6.87422C16.8 9.33072 14.131 11.7532 10.085 15.4167Z' fill='%23C9C9C9'/%3E%3C/svg%3E%0A") center / 100% no-repeat;
}
.card-fav.favorites-button.favorites-button--added::before {
  background: #ec5732;
  -webkit-mask: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M13.825 2.20117C12.346 2.20117 10.9265 2.88967 10 3.97767C9.0735 2.88967 7.654 2.20117 6.175 2.20117C3.557 2.20117 1.5 4.25817 1.5 6.87617C1.5 10.0892 4.39 12.7072 8.7675 16.6852L10 17.7987L11.2325 16.6767C15.61 12.7072 18.5 10.0892 18.5 6.87617C18.5 4.25817 16.443 2.20117 13.825 2.20117Z' fill='%23EC5732'/%3E%3C/svg%3E%0A") center / 100% no-repeat;
  mask: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M13.825 2.20117C12.346 2.20117 10.9265 2.88967 10 3.97767C9.0735 2.88967 7.654 2.20117 6.175 2.20117C3.557 2.20117 1.5 4.25817 1.5 6.87617C1.5 10.0892 4.39 12.7072 8.7675 16.6852L10 17.7987L11.2325 16.6767C15.61 12.7072 18.5 10.0892 18.5 6.87617C18.5 4.25817 16.443 2.20117 13.825 2.20117Z' fill='%23EC5732'/%3E%3C/svg%3E%0A") center / 100% no-repeat;
}
.card-fav.card-fav--guest { text-decoration: none; }

.bubble-notify {
  font-family: "Roboto", "Arial", sans-serif;
  position: fixed;
  z-index: 9999;
  bottom: 0;
  left: 50%;
  transform: translate(-50%, 110%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(320px, calc(100vw - 24px));
  max-width: calc(100vw - 24px);
  padding: 14px;
  background: #323232;
  border-radius: 3px;
  font-size: 14px;
  line-height: 20px;
  color: #fff;
  transition: transform 0.4s ease, opacity 0.3s ease, visibility 0.3s ease;
  opacity: 0;
  visibility: hidden;
}
.bubble-notify--visible {
  transform: translate(-50%, -50%);
  opacity: 1;
  visibility: visible;
}

.card-photo { height: 170px; position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; text-decoration: none; color: inherit; }
.card-photo-img {height: 100%; object-fit: cover; display: block; }
.card-photo-inner { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 6px; }
.card-title a { color: inherit; text-decoration: none; }
.card-title a:hover { color: var(--denim); }
.card-action { display: inline-block; text-align: center; text-decoration: none; line-height: 1.2; }
.seller-chip--buy { color: var(--red); background: rgba(224, 92, 74, 0.08); }
.card-price--buy { color: var(--red); }
.card-price--muted { font-size: 14px; font-weight: 600; color: var(--stone); font-family: 'DM Sans', sans-serif; }
.product-grid--empty { display: block; padding: 48px 24px; text-align: center; }
.empty-state { margin: 0; font-size: 14px; color: var(--stone); font-family: 'DM Sans', sans-serif; }
.empty-state a { color: var(--denim); font-weight: 600; }
.photo-placeholder { font-size: 52px; opacity: 0.85; }
.photo-label { font-size: 9px; font-family: 'DM Mono', monospace; color: var(--stone); letter-spacing: 0.1em; text-transform: uppercase; background: rgba(255, 255, 255, 0.7); padding: 2px 8px; border-radius: 3px; }
.verified-seal { position: absolute; bottom: 8px; right: 8px; background: rgba(255, 255, 255, 0.92); border: 1px solid var(--sky); border-radius: 3px; padding: 3px 6px; font-size: 9px; font-family: 'DM Mono', monospace; color: var(--denim); display: flex; align-items: center; gap: 3px; }
.vs-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--mint); }

.bg1 { background: linear-gradient(135deg, #d6e8f5 0%, #b8d4e8 100%); }
.bg2 { background: linear-gradient(135deg, #ebf4fb 0%, #c8d8e8 100%); }
.bg3 { background: linear-gradient(135deg, #f5f0e8 0%, #e8dfd0 100%); }
.bg4 { background: linear-gradient(135deg, #d0e8d0 0%, #b8d4c8 100%); }
.bg5 { background: linear-gradient(135deg, #f0e8f0 0%, #d8c8d8 100%); }
.bg6 { background: linear-gradient(135deg, #f8f0d8 0%, #e8d8b0 100%); }

.card-body { padding: 12px 14px 14px; }
.card-title { font-size: 12px; font-weight: 500; line-height: 1.45; color: var(--ink); margin-bottom: 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-family: 'DM Sans', sans-serif; }
.card-meta { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; }
.seller-chip { font-size: 10px; font-family: 'DM Mono', monospace; color: var(--denim); background: rgba(91, 133, 170, 0.08); padding: 2px 7px; border-radius: 2px; letter-spacing: 0.04em; }
.card-location { font-size: 10px; color: var(--stone); font-family: 'DM Sans', sans-serif; }
.card-price-row { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 4px 8px; margin-bottom: 6px; }
.card-price { font-size: 17px; font-weight: 700; color: var(--denim-deep); font-family: 'Syne', sans-serif; letter-spacing: -0.02em; flex: 1 1 auto; min-width: 0; line-height: 1.25; word-break: break-word; }
.card-price-old { font-size: 11px; color: var(--stone); text-decoration: line-through; font-family: 'DM Mono', monospace; }
.card-price-sub { font-size: 10px; color: var(--stone); font-family: 'DM Sans', sans-serif; flex-shrink: 0; margin-left: auto; text-align: right; max-width: 100%; }
.card-footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 8px; border-top: 1px solid var(--sand); }
.card-footer-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; min-width: 0; }
.card-date { font-size: 10px; color: var(--stone); font-family: 'DM Mono', monospace; letter-spacing: 0.02em; white-space: nowrap; }
.card-vol { font-size: 10px; color: var(--stone); font-family: 'DM Sans', sans-serif; white-space: nowrap; }
.card-action { background: var(--denim); color: #fff; border: none; border-radius: 5px; padding: 5px 12px; font-size: 11px; font-weight: 600; cursor: pointer; font-family: 'DM Sans', sans-serif; transition: background 0.15s; }
.card-action:hover { background: var(--denim-deep); }

.trust-row { display: flex; gap: 8px; padding: 12px 24px; border-top: 1px solid var(--sand); background: var(--white); flex-wrap: wrap; }
.trust-chip { display: flex; align-items: center; gap: 5px; font-size: 10.5px; color: var(--denim-deep); font-weight: 500; background: rgba(184, 212, 232, 0.25); border: 1px solid rgba(91, 133, 170, 0.2); padding: 5px 11px; border-radius: 20px; font-family: 'DM Sans', sans-serif; }

@media (max-width: 1200px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .page {
    display: flex;
    flex-direction: column;
    grid-template-columns: none;
  }
  .mobile-filters-bar {
    display: flex;
    order: 1;
    padding: 8px 12px 0;
    background: var(--fog);
  }
  .mobile-filters-bar__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--sky);
    border-radius: 8px;
    background: var(--white);
    color: var(--denim-deep);
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
  }
  .mobile-filters-bar__icon {
    margin-left: auto;
    color: var(--denim);
    transition: transform 0.2s ease;
  }
  .page.page--filters-open .mobile-filters-bar__icon {
    transform: rotate(180deg);
  }
  .main {
    order: 2;
  }
  .sidebar {
    order: 3;
    display: none;
    position: static;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--sand);
  }
  .page.page--filters-open .sidebar {
    display: block;
    order: 2;
  }
  .page.page--filters-open .main {
    order: 3;
  }
  .cat-nav {
    position: relative;
    padding-right: 36px;
  }
  .cat-nav::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 36px;
    height: 100%;
    pointer-events: none;
    background: linear-gradient(to right, rgba(253, 252, 250, 0), var(--white) 75%);
    transition: opacity 0.15s ease;
  }
  .cat-nav--at-end::after {
    opacity: 0;
  }
  .hero-banner { grid-template-columns: 1fr; margin: 16px 24px 24px; border-radius: 10px;}
  .promo-strip { grid-template-columns: 1fr; }
}

@media (min-width: 901px) {
  .mobile-filters-bar {
    display: none;
  }
}

@media (max-width: 640px) {
  .header-top { flex-wrap: wrap; padding: 12px; gap: 10px; }
  .logo { min-width: 0; }
  .search-bar { flex: 1 1 100%; max-width: 100%; width: 100%; }
  .header-actions { margin-left: 0; gap: 10px; flex-wrap: wrap; }
  .mobile-filters-bar { padding-left: 12px; padding-right: 12px; }
  .cat-nav { padding: 0 12px; padding-right: 36px; }
  .section-header { flex-direction: column; align-items: flex-start; gap: 8px; padding: 14px 12px 10px; }
  .hero-banner { margin: 12px 12px 12px; padding: 20px 12px; }
  .promo-strip { padding: 12px 12px 0; }
  .product-grid { grid-template-columns: 1fr; padding: 0 12px 16px; }
  .marketplace-load-more { padding: 0 12px 20px; }
  .trust-row { padding: 12px; }
  .modal-region { width: calc(100vw - 24px); max-width: calc(100vw - 24px); max-height: 80vh; overflow: auto; top: 72px; }
  .modal-region__content { column-count: 1; height: auto; flex-wrap: nowrap; }
}

@media (max-width: 360px) {
  .hero-banner,
  .product-grid,
  .company-grid,
  .news-listing--drinkinfo-shell,
  .pricelist-marketplace-page .pricelist-grid {
    padding-left: 8px;
    padding-right: 8px;
  }

  .hero-banner,
  .section-header,
  .trust-row,
  .marketplace-load-more,
  .pricelist-load-more {
    padding-left: 8px;
    padding-right: 8px;
  }

  .header-top,
  .cat-nav,
  .mp-footer__top,
  .mp-footer__main,
  .mp-footer__bottom {
    padding-left: 8px;
    padding-right: 8px;
  }
}

.blackout { position: fixed; inset: 0; background: rgba(44, 62, 80, 0.45); z-index: 2; }
.blackout--hidden { display: none; }
.blackout--active { display: block; }

.modal-region {
  position: fixed;
  top: 96px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 210;
  box-sizing: border-box;
  width: min(860px, calc(100vw - 48px));
  max-width: calc(100vw - 48px);
  max-height: calc(100vh - 120px);
  overflow: auto;
  background: var(--white);
  border-radius: 10px;
  border: 1px solid var(--sand);
  box-shadow: 0 16px 48px rgba(44, 62, 80, 0.2);
  padding: 20px 20px 12px;
  font-family: 'DM Sans', sans-serif;
}
.modal-region,
.modal-region * {
  box-sizing: border-box;
}
.modal-region--hidden { display: none; }
.modal-region__title { font-family: 'Syne', sans-serif; font-size: 20px; font-weight: 700; color: var(--ink); }
.modal-region__top-wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 36px 12px 0; border-bottom: 1px solid var(--sand); margin-bottom: 12px; }
.modal-region__close-button { position: absolute; top: 14px; right: 14px; width: 28px; height: 28px; border: 0; background: transparent; cursor: pointer; }
.modal-region__close-button::before,
.modal-region__close-button::after { content: ''; position: absolute; left: 6px; top: 13px; width: 16px; height: 2px; background: var(--stone); }
.modal-region__close-button::before { transform: rotate(45deg); }
.modal-region__close-button::after { transform: rotate(-45deg); }
.modal-region__search-input { width: 240px; max-width: 100%; border: 1px solid var(--sky); border-radius: 6px; padding: 8px 10px; font-size: 13px; font-family: 'DM Sans', sans-serif; }
.modal-region__all-link { display: inline-block; margin-bottom: 12px; font-weight: 600; color: var(--denim); text-decoration: none; }
.modal-region__content { column-count: 3; column-gap: 20px; }

@media (max-width: 900px) {
  .modal-region__content { column-count: 2; }
}

@media (max-width: 640px) {
  .modal-region__content { column-count: 1; }
}

.modal-region__item { break-inside: avoid; margin-bottom: 12px; }
.modal-region__letter { display: block; font-family: 'DM Mono', monospace; font-size: 11px; color: var(--stone); margin-bottom: 4px; }
.modal-region__list { list-style: none; }
.modal-region__link { color: var(--ink); text-decoration: none; font-size: 13px; line-height: 1.6; }
.modal-region__link:hover { color: var(--denim); }
.modal-region__link-item--current .modal-region__link { color: var(--denim-deep); font-weight: 600; }

.blackout-header {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(44, 62, 80, 0.45);
}
.blackout-header--hidden { display: none; }
.blackout-header--dark { display: block; }

.drinkinfo .news-page__up-button {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 200;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: var(--denim);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(91, 133, 170, 0.35);
  transition: opacity 0.2s, transform 0.2s;
}
.drinkinfo .news-page__up-button:hover {
  background: var(--denim-deep);
  transform: translateY(-2px);
}
.drinkinfo .news-page__up-button--hidden {
  display: none;
}
.drinkinfo .news-page__up-button::after {
  content: '';
  display: block;
  width: 12px;
  height: 12px;
  border: 2px solid #fff;
  border-bottom: none;
  border-right: none;
  transform: rotate(45deg);
  margin-top: 4px;
}

.trade-create-disable-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 310;
  width: min(676px, calc(100vw - 32px));
  transform: translate(-50%, -50%);
}
.trade-create-disable-modal--hidden { display: none; }
.trade-create-disable-modal .info-popup {
  font-family: "Roboto", "Arial", sans-serif;
  color: #2c3e50;
}
.trade-create-disable-modal .info-popup__content {
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: 360px;
  overflow: hidden;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 16px 48px rgba(44, 62, 80, 0.22);
}
.trade-create-disable-modal .info-popup__left {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--denim);
}
.trade-create-disable-modal .info-popup__left.color-lightgreen { background: var(--mint); }
.trade-create-disable-modal .info-popup__logo {
  width: 86px;
  height: 86px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.24);
}
.trade-create-disable-modal .info-popup__image--desktop {
  position: absolute;
  width: 96px;
  height: auto;
}
.trade-create-disable-modal .info-popup__image--phone,
.trade-create-disable-modal .info-popup__vector-container,
.trade-create-disable-modal .info-popup__backdrop { display: none; }
.trade-create-disable-modal .info-popup__right {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  padding: 36px 32px 28px;
}
.trade-create-disable-modal .info-popup__close {
  position: absolute;
  top: 12px;
  right: 16px;
  z-index: 1;
  font-size: 28px;
  line-height: 1;
  color: var(--stone);
  cursor: pointer;
}
.trade-create-disable-modal .info-popup__title {
  margin: 0 0 14px;
  font-family: "Roboto", "Arial", sans-serif;
  font-size: 22px;
  line-height: 1.25;
  color: var(--ink);
}
.trade-create-disable-modal .info-popup__text-container p {
  margin: 0 0 10px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-light);
}
.trade-create-disable-modal .info-popup__list {
  margin: 8px 0 0 18px;
  text-align: left;
}
.trade-create-disable-modal .info-popup__footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}
.trade-create-disable-modal .info-popup__btn {
  min-height: 38px;
  padding: 9px 16px;
  border: 0;
  border-radius: 6px;
  font-family: "Roboto", "Arial", sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.trade-create-disable-modal .info-popup__btn--cancel {
  background: var(--fog);
  color: var(--ink-light);
}
.trade-create-disable-modal .info-popup__btn--submit {
  background: var(--denim);
  color: #fff;
}

@media (max-width: 640px) {
  .trade-create-disable-modal .info-popup__content { grid-template-columns: 1fr; }
  .trade-create-disable-modal .info-popup__left { display: none; }
  .trade-create-disable-modal .info-popup__right { padding: 32px 20px 20px; }
  .trade-create-disable-modal .info-popup__footer { justify-content: stretch; }
  .trade-create-disable-modal .info-popup__btn { flex: 1 1 100%; }
}

/* Footer (стилистика прототипа маркетплейса) */
.mp-footer {
  margin-top: 8px;
  font-family: 'DM Sans', sans-serif;
  color: var(--ink);
}
.mp-footer a { color: inherit; transition: color 0.15s; }
.mp-footer a:hover { color: var(--denim); }

.mp-footer__top {
  background: var(--denim-deep);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 20px 24px;
}
.mp-footer__top-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
}
.mp-footer__search {
  display: flex;
  flex: 1 1 280px;
  max-width: 420px;
  border: 1.5px solid rgba(184, 212, 232, 0.45);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
}
.mp-footer__search-input {
  flex: 1;
  border: 0;
  background: transparent;
  padding: 9px 14px;
  font-size: 13px;
  font-family: 'DM Sans', sans-serif;
  color: #fff;
  outline: none;
}
.mp-footer__search-input::placeholder { color: rgba(255, 255, 255, 0.55); }
.mp-footer__search-btn {
  border: 0;
  background: var(--denim);
  color: #fff;
  padding: 9px 18px;
  font-size: 12px;
  font-weight: 600;
  font-family: 'DM Sans', sans-serif;
  letter-spacing: 0.04em;
  cursor: pointer;
  white-space: nowrap;
}
.mp-footer__search-btn:hover { background: var(--sky); color: var(--denim-deep); }

.mp-footer__projects {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  flex: 1 1 320px;
  justify-content: flex-end;
}
.mp-footer__project {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 20px;
  border: 1px solid rgba(184, 212, 232, 0.35);
  background: rgba(255, 255, 255, 0.06);
  font-size: 10px;
  font-family: 'DM Mono', monospace;
  letter-spacing: 0.06em;
  text-transform: lowercase;
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
}
a.mp-footer__project:hover {
  background: var(--denim);
  border-color: var(--denim);
  color: #fff;
}
.mp-footer__project--active {
  background: var(--white);
  border-color: var(--white);
  color: var(--denim-deep);
  font-weight: 600;
}

.mp-footer__main {
  background: var(--white);
  border-top: 1px solid var(--sand);
  padding: 28px 24px 24px;
}
.mp-footer__main-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px 40px;
}
.mp-footer__brand { flex: 1 1 280px; max-width: 420px; }
.mp-footer__logo {
  font-family: 'Syne', sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: var(--denim-deep);
  letter-spacing: -0.04em;
  text-decoration: none;
  display: inline-block;
  margin-bottom: 10px;
}
.mp-footer__logo span { color: var(--denim); font-weight: 400; }
.mp-footer__slogan {
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-light);
  margin-bottom: 14px;
}
.mp-footer__slogan strong { color: var(--denim-deep); font-weight: 600; }
.mp-footer__legal {
  font-size: 11px;
  line-height: 1.55;
  color: var(--stone);
  font-family: 'DM Mono', monospace;
  letter-spacing: 0.02em;
}

.mp-footer__legal-nav {
  flex: 0 1 320px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  padding-top: 4px;
}
.mp-footer__legal-link {
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--ink-light);
  text-decoration: none;
  text-align: right;
  max-width: 280px;
}
.mp-footer__legal-link:hover { color: var(--denim-deep); }

.mp-footer__bottom {
  background: var(--fog);
  border-top: 1px solid var(--sand);
  padding: 16px 24px 20px;
}
.mp-footer__bottom-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}
.mp-footer__copyright {
  font-size: 11px;
  font-family: 'DM Mono', monospace;
  color: var(--ink);
  margin-bottom: 6px;
}
.mp-footer__hint {
  font-size: 10px;
  line-height: 1.5;
  color: var(--stone);
  max-width: 520px;
}
.mp-footer__hint a { color: var(--denim); text-decoration: underline; }
.mp-footer__bottom-badges {
  display: flex;
  align-items: center;
  gap: 12px;
  opacity: 0.85;
}
.mp-footer__bottom-badges img { display: block; height: 28px; width: auto; }

@media (max-width: 1024px) {
  .mp-footer__projects { justify-content: flex-start; }
}

@media (max-width: 640px) {
  .mp-footer__top,
  .mp-footer__main,
  .mp-footer__bottom { padding-left: 16px; padding-right: 16px; }
  .mp-footer__search { max-width: none; flex-basis: 100%; }
  .mp-footer__legal-nav {
    flex-basis: 100%;
    align-items: flex-start;
  }
  .mp-footer__legal-link { text-align: left; max-width: none; }
}
