/* marketplace: базовые стили страницы, шапки и баннера */
:root{
  --gmt-nav-height:100px;
  --gmt-nav-bg:#ffffff;
  --gmt-nav-text:#000000;
  --gmt-nav-line:rgba(0,0,0,0.12);
  --gmt-accent:#ff8a4a;
  --gmt-header-max-width:1200px;
  --gmt-header-side-padding:24px;
  --gmt-header-brand-size:26px;
  --gmt-header-link-size:16px;
}

*{
  box-sizing:border-box;
}

body{
  margin:0;
  font-family:'Manrope',Arial,sans-serif;
  background:#f6f7fb;
  color:#1f2937;
}

.marketplace-page{
  background:transparent;
}

/* marketplace: navigation without legacy platform runtime */
.marketplace-header{
  position:fixed;
  top:0;
  left:0;
  right:0;
  z-index:1000;
  background:var(--gmt-nav-bg);
  box-shadow:0 10px 24px rgba(0,0,0,0.08);
}

.marketplace-menu__bar{
  max-width:var(--gmt-header-max-width);
  margin:0 auto;
  height:var(--gmt-nav-height);
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 var(--gmt-header-side-padding);
}

.marketplace-menu__logo{
  font-weight:700;
  font-size:var(--gmt-header-brand-size);
  color:var(--gmt-nav-text);
  letter-spacing:0.02em;
}

.marketplace-menu__toggle{
  display:none;
}

.marketplace-menu__actions{
  display:none;
}

.marketplace-call-wrap{
  display:none;
}

.marketplace-call{
  display:none;
  border:none;
  padding:0;
  cursor:pointer;
  -webkit-appearance:none;
  appearance:none;
}

.marketplace-call-sheet[hidden]{
  display:none !important;
}

.marketplace-burger{
  width:34px;
  height:22px;
  position:relative;
  cursor:pointer;
  display:none;
}

.marketplace-burger span{
  position:absolute;
  left:0;
  right:0;
  height:2px;
  background:#111827;
  border-radius:2px;
}

.marketplace-burger span:nth-child(1){top:2px;}
.marketplace-burger span:nth-child(2){top:10px;}
.marketplace-burger span:nth-child(3){top:18px;}

.marketplace-nav{
  max-width:var(--gmt-header-max-width);
  margin:0 auto;
  height:var(--gmt-nav-height);
  display:flex;
  align-items:center;
  padding:0 var(--gmt-header-side-padding);
  box-sizing:border-box;
}

.marketplace-nav__inner{
  width:100%;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  position:relative;
}

.marketplace-nav__brand{
  font-weight:700;
  font-size:var(--gmt-header-brand-size);
  color:var(--gmt-nav-text);
  letter-spacing:0.02em;
  flex:0 0 auto;
}

.marketplace-nav__title{
  font-weight:700;
  font-size:var(--gmt-header-link-size);
  color:var(--gmt-nav-text);
}

.marketplace-nav__list{
  list-style:none;
  display:flex;
  gap:24px;
  margin:0;
  padding:0;
}

.marketplace-nav__link{
  color:var(--gmt-nav-text);
  text-decoration:none;
  font-weight:500;
  font-size:var(--gmt-header-link-size);
  position:relative;
  padding:6px 0;
}

.marketplace-nav__line{
  width:100%;
  height:1px;
  background:var(--gmt-nav-line);
  margin:0;
}

.marketplace-nav__top{
  display:none;
}

.marketplace-nav__close{
  cursor:pointer;
  font-size:24px;
  line-height:1;
  border:none;
  background:transparent;
}

@media (min-width: 981px){
  .marketplace-menu__bar{
    display:none;
  }

  .marketplace-burger{
    display:none;
  }

  .marketplace-nav{
    position:relative;
  }

  .marketplace-nav__inner{
    min-height:100%;
    padding:0;
  }

  .marketplace-nav__brand{
    position:absolute;
    left:50%;
    top:50%;
    transform:translate(-50%, -50%);
    z-index:2;
  }

  .marketplace-nav__left,
  .marketplace-nav__right{
    flex:1 1 50%;
    min-width:0;
  }

  .marketplace-nav__left{
    display:flex;
    justify-content:flex-start;
    padding-right:180px;
  }

  .marketplace-nav__right{
    display:flex;
    justify-content:flex-end;
    padding-left:180px;
  }

  .marketplace-nav__list{
    align-items:center;
    flex-wrap:nowrap;
  }

  .marketplace-nav__link{
    white-space:nowrap;
  }

  .marketplace-nav__line{
    position:absolute;
    left:0;
    right:0;
    bottom:0;
  }
}

@media (max-width: 980px){
  .marketplace-menu__bar{
    height:64px;
    padding:12px 16px;
  }

  .marketplace-menu__logo{
    font-size:20px;
  }

  .marketplace-menu__actions{
    display:flex;
    align-items:center;
    gap:10px;
  }

  .marketplace-call-wrap{
    display:inline-flex;
    position:relative;
  }

  .marketplace-call{
    width:40px;
    height:40px;
    border-radius:12px;
    border:1px solid #d9e4f0;
    background:#ffffff;
    box-shadow:0 8px 18px rgba(31, 111, 229, 0.12);
    display:inline-flex;
    align-items:center;
    justify-content:center;
    color:#ff8a4a;
    text-decoration:none;
  }

  .marketplace-call svg{
    width:18px;
    height:18px;
    stroke:currentColor;
    stroke-width:1.8;
    stroke-linecap:round;
    stroke-linejoin:round;
  }

  .marketplace-call:active{
    transform:translateY(1px);
  }

  .marketplace-call-sheet{
    position:absolute;
    top:calc(100% + 8px);
    right:0;
    min-width:170px;
    border-radius:12px;
    border:1px solid #d9e4f0;
    background:#fff;
    box-shadow:0 12px 22px rgba(17, 24, 39, 0.14);
    padding:8px 10px;
    z-index:1004;
  }

  .marketplace-call-sheet__number{
    display:block;
    color:#17304d;
    text-decoration:none;
    font-size:14px;
    font-weight:700;
    line-height:1.3;
    white-space:nowrap;
  }

  .marketplace-call-sheet__number:active{
    color:#ff8a4a;
  }

  .marketplace-burger{
    display:inline-flex;
  }

  .marketplace-nav{
    position:fixed;
    top:64px;
    left:0;
    right:0;
    height:auto;
    background:#ffffff;
    display:none;
    box-shadow:0 6px 18px rgba(0,0,0,0.08);
    z-index:1001;
  }

  .marketplace-menu__toggle:checked ~ .marketplace-nav{
    display:block;
  }

  .marketplace-nav__inner{
    padding:14px 16px 18px;
    flex-direction:column;
    align-items:flex-start;
    gap:12px;
  }

  .marketplace-nav__top{
    width:100%;
    display:flex;
    align-items:center;
    justify-content:flex-end;
  }

  .marketplace-nav__title{
    display:none;
  }

  .marketplace-nav__brand{
    display:none;
  }

  .marketplace-nav__left,
  .marketplace-nav__right{
    width:100%;
  }

  .marketplace-nav__list{
    flex-direction:column;
    gap:14px;
    width:100%;
  }
}

.t454{
  position:fixed;
  top:0;
  left:0;
  right:0;
  height:var(--gmt-nav-height);
  background:var(--gmt-nav-bg);
  z-index:1000;
  box-shadow:0 10px 24px rgba(0,0,0,0.08);
}

.t454__maincontainer{
  max-width:var(--gmt-header-max-width);
  margin:0 auto;
  height:100%;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 var(--gmt-header-side-padding);
  position:relative;
}

.t454__logowrapper{
  position:absolute;
  left:50%;
  transform:translateX(-50%);
}

.t454__logo{
  font-weight:700;
  font-size:var(--gmt-header-brand-size);
  color:var(--gmt-nav-text);
  letter-spacing:0.02em;
}

.t454__leftwrapper,
.t454__rightwrapper{
  width:50%;
}

.t454__leftmenuwrapper,
.t454__rightmenuwrapper{
  height:100%;
  display:flex;
  align-items:center;
}

.t454__rightmenuwrapper{
  justify-content:flex-end;
}

.t454__list{
  list-style:none;
  display:flex;
  gap:24px;
  margin:0;
  padding:0;
}

.t454__list_item a{
  color:var(--gmt-nav-text);
  text-decoration:none;
  font-weight:500;
  font-size:var(--gmt-header-link-size);
  letter-spacing:0.01em;
  position:relative;
}

.t454__list_item a::after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:-8px;
  height:2px;
  background:var(--gmt-accent);
  opacity:0;
  transform:scaleX(0.6);
  transition:opacity .2s ease, transform .2s ease;
}

.t454__list_item a:hover::after,
.t454__list_item a.t-active::after{
  opacity:1;
  transform:scaleX(1);
}

.t454__linewrapper{
  position:absolute;
  left:0;
  right:0;
  bottom:0;
}

.t454__horizontalline{
  border:0;
  height:1px;
  background:var(--gmt-nav-line);
  margin:0 40px;
}

.tmenu-mobile{
  display:none;
}

.t-menuburger{
  position:relative;
  flex-shrink:0;
  width:28px;
  height:20px;
  padding:0;
  border:none;
  background:transparent;
  cursor:pointer;
}

.t-menuburger span{
  position:absolute;
  left:0;
  width:100%;
  height:3px;
  background:var(--gmt-nav-text);
  transition:.25s ease-in-out;
}

.t-menuburger span:nth-child(1){top:0;}
.t-menuburger span:nth-child(2),
.t-menuburger span:nth-child(3){top:8px;}
.t-menuburger span:nth-child(4){top:16px;}

.t-menuburger-opened span:nth-child(1){top:8px;width:0;left:50%;}
.t-menuburger-opened span:nth-child(2){transform:rotate(45deg);}
.t-menuburger-opened span:nth-child(3){transform:rotate(-45deg);}
.t-menuburger-opened span:nth-child(4){top:8px;width:0;left:50%;}

@media (max-width:980px){
  .tmenu-mobile{
    display:block;
    position:fixed;
    top:0;
    left:0;
    right:0;
    background:#fff;
    z-index:1002;
    box-shadow:0 6px 18px rgba(0,0,0,0.08);
  }

  .tmenu-mobile__container{
    min-height:64px;
    padding:20px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
  }

  .tmenu-mobile__burgerlogo__title{
    font-size:18px;
    font-weight:700;
  }

  .t454{
    position:fixed;
    top:64px;
    height:auto;
    background:#fff;
  }

  .t454__maincontainer{
    flex-direction:column;
    align-items:flex-start;
    padding:20px;
    gap:18px;
  }

  .t454__logowrapper{
    position:static;
    transform:none;
  }

  .t454__leftwrapper,
  .t454__rightwrapper{
    width:100%;
  }

  .t454__leftmenuwrapper,
  .t454__rightmenuwrapper{
    width:100%;
  }

  .t454__list{
    flex-direction:column;
    gap:14px;
  }

  .t454__horizontalline{
    margin:0;
  }

  .tmenu-mobile__menucontent_hidden{
    display:none;
  }
}

.marketplace-hero{
  position:relative;
  overflow:visible;
  width:100%;
  max-width:1088px;
  margin:40px auto 30px;
  padding:0 20px;
  box-sizing:border-box;
}

.marketplace-hero__frame{
  position:relative;
  max-width:1320px;
  margin:0 auto;
  overflow:visible;
}

.marketplace-hero__slider{
  width:100%;
  height:220px;
  border-radius:50px;
  overflow:hidden;
  box-shadow:0 18px 40px rgba(0,0,0,0.12);
  background:#eef1f7;
}

.marketplace-hero__track{
  display:flex;
  height:100%;
  transition:transform .65s cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change:transform;
}

.marketplace-hero__slide{
  flex:0 0 100%;
  width:100%;
  height:100%;
  margin:0;
  padding:0;
  background-size:cover;
  background-position:center 40%;
  background-repeat:no-repeat;
  background-color:#ffffff;
  opacity:1;
}

.marketplace-hero__slide:nth-child(2){
  background-position:center 30%;
}

.marketplace-hero__slide img,
.marketplace-hero__image{
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
  object-position:center;
}

.marketplace-hero__slide[data-slide="1"] .marketplace-hero__image{
  object-position:60% 50%;
}

.marketplace-hero__slide[data-slide="2"] .marketplace-hero__image{
  object-position:65% 55%;
}

@media (max-width:980px){
  .marketplace-hero__slide[data-slide="1"] .marketplace-hero__image{
    object-position:75% 55%;
  }

  .marketplace-hero__slide[data-slide="2"] .marketplace-hero__image{
    object-position:80% 60%;
  }
}

@media (max-width:768px){
  .marketplace-hero__slide[data-slide="1"] .marketplace-hero__image{
    object-position:85% 60%;
  }

  .marketplace-hero__slide[data-slide="2"] .marketplace-hero__image{
    object-position:88% 62%;
  }
}

.marketplace-hero__nav{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  width:44px;
  height:44px;
  border-radius:50%;
  background:#ff8562;
  color:#ffffff;
  font-size:0;
  font-weight:700;
  line-height:1;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  box-shadow:0 10px 24px rgba(0,0,0,0.10);
  z-index:10;
}

.marketplace-hero__nav::before{
  content:"";
  width:9px;
  height:9px;
  border-top:2px solid #fff;
  border-right:2px solid #fff;
}

.marketplace-hero__nav--prev{left:-22px;}
.marketplace-hero__nav--prev::before{transform:rotate(-135deg);}
.marketplace-hero__nav--next{right:-22px;}
.marketplace-hero__nav--next::before{transform:rotate(45deg);}

.marketplace-hero__dots{
  position:absolute;
  left:50%;
  bottom:-18px;
  transform:translateX(-50%);
  display:flex;
  gap:10px;
  z-index:9;
}

.marketplace-hero__dot{
  padding:0;
  margin:0;
  width:6px;
  height:6px;
  border-radius:50%;
  border:none;
  background:#333333;
  opacity:0.35;
  appearance:none;
  -webkit-appearance:none;
  flex:0 0 auto;
}

.marketplace-hero__dot.is-active{
  background:#ff8562;
  opacity:1;
}

@media (max-width:700px){
  .marketplace-hero{
    padding:110px 16px 44px;
  }

  .marketplace-hero__slider{
    height:180px;
  }

  .marketplace-hero__nav--prev{left:-22px;}
  .marketplace-hero__nav--next{right:-22px;}
}
/* marketplace: стили страницы. */
.gk-search {
  max-width: 1200px;
  margin: 20px auto 56px;
  padding: 18px 32px 24px;
  box-sizing: border-box;
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.05);
  border-radius: 20px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.06);
}

/* Смещаем каталог ниже баннера, чтобы не заходил на него */
.gk-search {
  margin: 20px auto 56px;
  margin-top:50px !important;
}

/* во всём кастомном блоке один стек шрифтов */
.gk-search,
.gk-search * {
  font-family: Manrope, Arial, sans-serif;
}

  .gk-search__header {
    text-align: left;
    margin-bottom: 12px;
  }

  .gk-search__title {
    font-size: 28px;
    line-height: 1.3;
    font-weight: 600;
    margin-bottom: 8px;
  }

  .gk-search__subtitle {
    font-size: 15px;
    line-height: 1.5;
    opacity: 0.8;
    max-width: 520px;
  }

  .gk-search__form {
    margin-top: 14px;
    display: flex;
    align-items: stretch;
    gap: 12px;
    flex-wrap: wrap;
    background: #f6f7fb;
    padding: 6px;
    border-radius: 999px;
    box-shadow: inset 0 0 0 1px rgba(0,0,0,0.04);
  }

  .gk-search__form:focus-within {
    box-shadow: inset 0 0 0 1px rgba(255,138,74,0.35), 0 6px 18px rgba(255,138,74,0.15);
  }

.gk-search__input-wrap {
  position: relative;
  flex: 1 1 260px;
  min-width: 0;
}

.marketplace-hero__nav{
  display:none !important;
}

.marketplace-hero{
  margin:30px auto 20px;
  padding:0 20px;
  max-width:1460px;
}

.marketplace-hero__slider{
  height:170px;
}

.marketplace-hero__slide{
  height:100%;
}

.marketplace-hero__dots{
  display:none;
}

.container-market{
  max-width:1460px;
  margin:-60px auto 30px;
  padding:0 16px;
  box-sizing:border-box;
  position:relative;
  top:-30px;
  display:grid;
  grid-template-columns:248px minmax(0, 1fr);
  grid-template-rows:max-content auto;
  column-gap:18px;
  row-gap:16px;
  align-items:start;
  align-content:start;
  grid-auto-rows:max-content;
}

.market-nav{
  grid-column:1 / -1;
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:12px;
  font-size:14px;
  color:#666;
}

.market-nav__home{
  color:#333;
  font-weight:500;
}

.market-nav__label{
  color:#666;
}

.market-nav__link{
  text-decoration:none;
  color:#333;
  font-weight:500;
}

.market-nav__sep{
  color:#c5c5c5;
}

.gk-search.container-market{
  background:transparent;
}

.gk-search{
  background:transparent;
  border:none;
  box-shadow:none;
}

.gk-search__sidebar{
  grid-column:1;
  /* Фильтры начинаются на уровне строки поиска и продолжаются рядом с контентом. */
  grid-row:1 / span 2;
  width:100%;
  position:sticky;
  top:110px;
  align-self:start;
  height:max-content;
}

.market-top{
  grid-column:2;
  grid-row:1;
  position:relative;
  z-index:30;
}

.market-content{
  grid-column:2;
  grid-row:2;
  position:relative;
  z-index:1;
}

/* Desktop: объединяем поиск и результаты в одну правую колонку,
   чтобы высота sticky-сайдбара не раздвигала вертикальный интервал карточек. */
.market-main-column{
  grid-column:2;
  grid-row:1 / span 2;
  min-width:0;
  display:flex;
  flex-direction:column;
}

.gk-search__header{
  max-width:720px;
}

.gk-search__results{
  margin-top:0;
}

.market-top .gk-search__header{
  background:transparent;
  border-radius:20px;
  padding:0;
  box-shadow:none;
  max-width:100%;
  width:100%;
  box-sizing:border-box;
}

.market-top .gk-search__form{
  margin-top:0;
}

.market-top .gk-search__meta{
  margin-top:6px;
}

.marketplace-hero{
  margin-top:130px;
}

.marketplace-hero{
  width:100%;
  max-width:1460px;
  margin:30px auto 20px;
  margin-top:130px;
  padding:0 20px;
  box-sizing:border-box;
}

.marketplace-hero__frame{
  max-width:100%;
  margin:0;
}

.gk-search__meta{
  display:block;
}

.market-search-row{
  display:flex;
  align-items:center;
  gap:12px;
  width:100%;
}

.market-search-actions{
  display:flex;
  align-items:center;
  gap:10px;
}

.market-action{
  width:40px;
  height:40px;
  border-radius:50%;
  border:1px solid rgba(0,0,0,0.08);
  background:#ffffff;
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow:0 8px 18px rgba(0,0,0,0.06);
  cursor:pointer;
  position:relative;
  text-decoration:none;
  color:inherit;
  transition:transform .15s ease, box-shadow .15s ease, border-color .15s ease, background .15s ease;
}

.market-action svg{
  width:18px;
  height:18px;
  fill:none;
  stroke:#ff8a4a;
  stroke-width:1.8;
  stroke-linecap:round;
  stroke-linejoin:round;
}

.market-action:hover{
  border-color:rgba(255,138,74,0.4);
  box-shadow:0 10px 22px rgba(255,138,74,0.18);
  transform:translateY(-1px);
}

.market-action:active{
  transform:translateY(0);
  box-shadow:0 6px 16px rgba(255,138,74,0.16);
}

.market-action:focus-visible{
  outline:2px solid rgba(255,138,74,0.45);
  outline-offset:2px;
}

.market-action.is-active{
  border-color:rgba(255,138,74,0.55);
  background:#fff3ec;
  color:#ff8a4a;
  box-shadow:0 10px 24px rgba(255,138,74,0.24);
}

.market-action.is-active svg{
  stroke:currentColor;
  fill:currentColor;
}

.market-action__badge{
  position:absolute;
  top:-4px;
  right:-4px;
  min-width:18px;
  height:18px;
  padding:0 4px;
  border-radius:999px;
  background:#ff8a4a;
  color:#fff;
  font-size:10px;
  font-weight:600;
  display:none;
  align-items:center;
  justify-content:center;
  box-shadow:0 6px 14px rgba(255,138,74,0.35);
}

.market-favorites-state{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:2px 8px;
  border-radius:999px;
  background:#fff3ec;
  border:1px solid rgba(255,138,74,0.3);
  font-size:12px;
  color:#b45320;
  font-weight:600;
  line-height:1.2;
  margin:0;
  white-space:nowrap;
}

.market-favorites-state[hidden]{
  display:none !important;
}

.market-favorites-state__close{
  width:18px;
  height:18px;
  border-radius:50%;
  border:1px solid rgba(255,138,74,0.3);
  background:#fff;
  color:#b45320;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  font-size:12px;
  line-height:1;
}

.market-favorites-state__close:hover{
  border-color:rgba(255,138,74,0.6);
}

.market-search-meta{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-top:8px;
  width:100%;
}

.market-search-meta .gk-search__meta{
  display:block;
  margin:0;
  font-size:14px;
  font-weight:700;
  color:#111827;
}


.market-count{
  font-weight:700;
  color:#111827;
}

.market-search-controls{
  display:flex;
  align-items:center;
  gap:16px;
  margin-left:auto;
  background:transparent !important;
  position:relative;
  z-index:40;
  overflow:visible;
}

.market-sort{
  display:flex;
  align-items:center;
  gap:8px;
  font-size:13px;
  color:#6b7280;
  background:#fff !important;
  border:1px solid rgba(17,24,39,0.12);
  border-radius:12px;
  padding:4px 10px;
  min-height:42px;
  box-shadow:0 8px 18px rgba(17,24,39,0.06);
  transition:border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.market-sort__label{
  font-weight:700;
  color:#111827;
  white-space:nowrap;
}

.market-sort__select{
  border:none;
  background-color:transparent !important;
  appearance:none;
  -webkit-appearance:none;
  -moz-appearance:none;
  border-radius:8px;
  height:32px;
  min-width:150px;
  padding:0 26px 0 4px;
  font-size:13px;
  font-weight:600;
  color:#1f2937;
  line-height:1.2;
  box-shadow:none;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cpath d='M3 5.25L7 9l4-3.75' fill='none' stroke='%23ff8a4a' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat:no-repeat;
  background-position:calc(100% - 2px) 50%;
  transition:border-color .15s ease, box-shadow .15s ease;
  cursor:pointer;
}

.market-sort:hover{
  border-color:rgba(255,138,74,0.45);
  box-shadow:0 10px 22px rgba(255,138,74,0.14);
  transform:translateY(-1px);
}

.market-sort__select:focus{
  box-shadow:0 0 0 3px rgba(255,138,74,0.18);
  outline:none;
}

.market-sort:focus-within{
  border-color:#ff8a4a;
  box-shadow:0 0 0 3px rgba(255,138,74,0.18);
}

.market-sort__select option{
  background:#ffffff;
  color:#1f2937;
}

.market-sort__select option:checked{
  background:#fff3ec;
  color:#d8672b;
}

.market-sort.is-enhanced{
  position:relative;
  z-index:45;
}

.market-sort.is-enhanced .market-sort__select{
  position:absolute;
  width:1px;
  height:1px;
  opacity:0;
  pointer-events:none;
  overflow:hidden;
}

.market-sort__dropdown{
  position:relative;
  min-width:0;
}

.market-sort__dropdown-trigger{
  border:none;
  background:transparent;
  min-height:32px;
  padding:0 20px 0 2px;
  font:inherit;
  font-size:13px;
  font-weight:600;
  color:#1f2937;
  line-height:1.2;
  cursor:pointer;
  position:relative;
}

.market-sort__dropdown-trigger::after{
  content:"";
  position:absolute;
  right:0;
  top:50%;
  width:14px;
  height:14px;
  transform:translateY(-50%);
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cpath d='M3 5.25L7 9l4-3.75' fill='none' stroke='%23ff8a4a' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat:no-repeat;
  background-position:center;
  transition:transform .18s ease;
}

.market-sort__dropdown.is-open .market-sort__dropdown-trigger::after{
  transform:translateY(-50%) rotate(180deg);
}

.market-sort__dropdown-text{
  white-space:nowrap;
}

.market-sort__dropdown-menu{
  position:absolute;
  z-index:120;
  right:0;
  top:calc(100% + 8px);
  min-width:176px;
  width:max-content;
  max-width:220px;
  padding:6px;
  border:1px solid rgba(17,24,39,0.12);
  border-radius:12px;
  background:#ffffff;
  box-shadow:0 14px 30px rgba(17,24,39,0.14);
}

.market-sort__dropdown-option{
  width:100%;
  border:none;
  border-radius:9px;
  background:#fff;
  color:#1f2937;
  font:inherit;
  font-size:13px;
  font-weight:600;
  text-align:left;
  padding:10px 12px;
  cursor:pointer;
  transition:background .15s ease, color .15s ease;
}

.market-sort__dropdown-option:hover{
  background:#fff3ec;
  color:#d8672b;
}

.market-sort__dropdown-option.is-active{
  background:#fff3ec;
  color:#d8672b;
}

.market-view{
  display:flex;
  gap:8px;
  background:transparent !important;
}

.market-view__btn{
  width:40px;
  height:40px;
  border-radius:12px;
  border:1px solid rgba(0,0,0,0.12);
  background-color:#ffffff !important;
  color:#6b7280;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  box-shadow:0 6px 14px rgba(0,0,0,0.05);
  transition:transform .15s ease, box-shadow .15s ease, border-color .15s ease, color .15s ease;
}

.market-view__btn svg{
  width:18px;
  height:18px;
  stroke:currentColor;
  fill:none;
  stroke-width:1.8;
  stroke-linecap:round;
  stroke-linejoin:round;
}

.market-view__btn.is-active{
  background:#ffffff !important;
  border-color:rgba(255,138,74,0.55);
  color:#ff8a4a;
  box-shadow:0 8px 18px rgba(255,138,74,0.22);
}

.market-view__btn:hover{
  border-color:rgba(255,138,74,0.4);
  color:#ff8a4a;
  box-shadow:0 8px 18px rgba(255,138,74,0.18);
  transform:translateY(-1px);
}

.market-view__btn:active{
  transform:translateY(0);
}

.market-view__btn:focus-visible{
  outline:2px solid rgba(255,138,74,0.45);
  outline-offset:2px;
}

.market-top .gk-search__header{
  max-width:100%;
}

.market-search-row .gk-search__form{
  flex:1 1 auto;
  min-width:0;
}

.gk-search__grid{
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:18px;
}

.gk-card{
  border-radius:22px;
}

.gk-card__image{
  padding-bottom:64%;
}

.gk-card__body{
  padding:18px 18px 14px;
}

.gk-search,
.container-market{
  overflow:visible;
}

#rec1625415621,
#rec1625415621 .gk-search,
#rec1625415621 .container-market{
  overflow:visible;
  transform:none;
}

.gk-search__sidebar{
  position:sticky;
  top:110px;
  align-self:start;
}


  .gk-search__input {
    width: 100%;
    border-radius: 999px;
    border: none;
    padding: 12px 14px 12px 18px;
    font-size: 15px;
    line-height: 1.4;
    outline: none;
    background: transparent;
    box-sizing: border-box;
  }

  .gk-search__input:focus {
    box-shadow: none;
  }

  .gk-search__icon {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    opacity: 0.35;
    pointer-events: none;
  }

  .gk-search__button {
    border-radius: 999px;
    border: none;
    background: #ff8a4a;
    color: #fff;
    padding: 12px 26px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(255,138,74,0.3);
    transition: background .15s ease, transform .15s ease, box-shadow .15s ease;
  }

  .gk-search__button:hover {
    background: #ff7a32;
    transform: translateY(-1px);
    box-shadow: 0 10px 26px rgba(255,138,74,0.45);
  }

  .gk-search__button:active {
    transform: translateY(0);
    box-shadow: 0 6px 16px rgba(255,138,74,0.35);
  }

  .gk-search__meta {
    margin-top: 10px;
    font-size: 13px;
    opacity: 0.65;
  }

  @media (max-width: 640px) {
    .gk-search {
      margin: -32px auto 48px;
      padding: 16px;
      border-radius: 16px;
    }

    .gk-search__form {
      border-radius: 16px;
    }

    .gk-search__button {
      width: 100%;
    }
  }

  .gk-search__meta {
    margin-top: 12px;
    font-size: 12px;
    opacity: 0.6;
  }

  .gk-search__layout {
    margin-top: 32px;
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 24px;
  }

  .gk-search__sidebar {
  align-self: flex-start;
  position: sticky;
  top: 110px;      /* можно поиграть значением, 80–120px обычно ок */
  }


  .gk-sidebar__block {
    margin-bottom: 24px;
  }

  .gk-sidebar__title {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    opacity: 0.7;
    margin-bottom: 10px;
  }

  .gk-categories {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: none;
    overflow: visible;
  }

  .gk-category {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    font-size: 16px;
    cursor: pointer;
  }

  .gk-category input {
    margin-top: 2px;
  }

  .gk-price-range {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .gk-price-range__sliders {
    display: block;
  }

  .gk-price-range input[type="range"] {
    width: 100%;
  }

  .gk-price-range__inputs label {
  flex: 1;
  font-size: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
    }
    
    /* красивый один слайдер */
.gk-price-range__sliders input[type="range"] {
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  height: 4px;
  border-radius: 999px;
  background: #e5e5e5;
  outline: none;
}

/* ползунок (webkit) */
.gk-price-range__sliders input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #ff8a4a;
  cursor: pointer;
  box-shadow: 0 0 0 4px rgba(255,138,74,0.25);
}

/* ползунок (Firefox) */
.gk-price-range__sliders input[type="range"]::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #ff8a4a;
  cursor: pointer;
  box-shadow: 0 0 0 4px rgba(255,138,74,0.25);
}
    
    .gk-price-range__inputs input[type="number"] {
  width: 100%;
  box-sizing: border-box;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,0.12);
  padding: 6px 10px;
  font-size: 13px;
}

  .gk-search__results {
    min-width: 0;
  }

.gk-search__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: 16px;
}

/* ---- popup product card ---- */
.t-store__prod-popup .gk-popup-card {
  margin-top: 16px;
  display: grid;
  gap: 12px;
}

.t-store__prod-popup .gk-popup-section {
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  background: #fafafa;
}

.t-store__prod-popup .gk-popup-section__title {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  color: #ff8a4a;
  margin-bottom: 8px;
}

.t-store__prod-popup .gk-popup-kv {
  display: grid;
  gap: 6px;
}

.t-store__prod-popup .gk-popup-kv__row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
}

.t-store__prod-popup .gk-popup-kv__label {
  color: #6b6b6b;
}

.t-store__prod-popup .gk-popup-kv__value {
  color: #222;
  text-align: right;
}

.t-store__prod-popup .gk-popup-kv__value .gk-popup-tags {
  justify-content: flex-end;
}

.t-store__prod-popup .gk-popup-text {
  font-size: 13px;
  line-height: 1.5;
  color: #3b3b3b;
}

.t-store__prod-popup .gk-popup-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.t-store__prod-popup .gk-popup-tag {
  padding: 4px 8px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  font-size: 11px;
  color: #3b3b3b;
}

.t-store__prod-popup .gk-popup-help {
  margin-top: 8px;
  font-size: 12px;
  color: #7a7a7a;
}

@media (max-width: 640px) {
  .t-store__prod-popup .gk-popup-kv__row {
    flex-direction: column;
    align-items: flex-start;
  }

  .t-store__prod-popup .gk-popup-kv__value {
    text-align: left;
  }

  .t-store__prod-popup .gk-popup-kv__value .gk-popup-tags {
    justify-content: flex-start;
  }
}

  @media (max-width: 980px) {
    .gk-search__layout {
      grid-template-columns: minmax(0, 1fr);
    }

    .gk-search__sidebar {
      order: -1;
    }

    .gk-search__grid {
      grid-template-columns: repeat(2, minmax(0,1fr));
    }
  }

  @media (max-width: 640px) {
    .gk-search__title {
      font-size: 22px;
    }
    .gk-search__grid {
      grid-template-columns: minmax(0,1fr);
    }
  }

.gk-card {
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 14px 34px rgba(0,0,0,0.07);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
  cursor: default;
}


  .gk-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(0,0,0,0.08);
  }

  .gk-card__image {
  position: relative;
  padding-bottom: 58%;
  background-size: cover;
  background-position: center;
  background-color: #f4f4f4;
}

.gk-card__body {
  padding: 16px 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}


  .gk-card__title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
  }

  .gk-card__sku {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .08em;
    opacity: 0.55;
  }

  .gk-card__meta {
    font-size: 12px;
    opacity: 0.7;
  }

  .gk-card__category{
    color:#6b7280;
  }

  .gk-card__stock{
    display:inline-flex;
    align-items:center;
    padding:2px 6px;
    border-radius:999px;
    background:rgba(255,138,74,0.12);
    color:#b45320;
    font-weight:600;
    font-size:11px;
  }

  .gk-card__bottom {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }

  .gk-card__actions{
    display:flex;
    align-items:center;
    gap:8px;
  }

  .gk-card__fav{
    width:34px;
    height:34px;
    border-radius:50%;
    border:1px solid rgba(0,0,0,0.12);
    background:#ffffff;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    cursor:pointer;
    color:#ff8a4a;
    box-shadow:0 6px 14px rgba(0,0,0,0.05);
    transition:transform .15s ease, box-shadow .15s ease, border-color .15s ease, background .15s ease;
  }

  .gk-card__fav svg{
    width:16px;
    height:16px;
    fill:none;
    stroke:currentColor;
    stroke-width:1.8;
    stroke-linecap:round;
    stroke-linejoin:round;
  }

  .gk-card__fav:hover{
    border-color:rgba(255,138,74,0.45);
    box-shadow:0 8px 18px rgba(255,138,74,0.16);
    transform:translateY(-1px);
  }

  .gk-card__fav:active{
    transform:translateY(0);
  }

  .gk-card__fav:focus-visible{
    outline:2px solid rgba(255,138,74,0.45);
    outline-offset:2px;
  }

  .gk-card__fav.is-active{
    background:#fff3ec;
    border-color:rgba(255,138,74,0.6);
  }

  .gk-card__fav.is-active svg{
    fill:currentColor;
    stroke:currentColor;
  }

  .gk-card__price {
    font-size: 15px;
    font-weight: 600;
  }

  .gk-card__btn {
    padding: 8px 14px;
    border-radius: 999px;
    border: none;
    background: #ff8a4a;
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
    transition: background .15s ease, transform .15s ease, box-shadow .15s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(255,138,74,0.35);
  }

  .gk-card__btn:hover {
    background: #ff7a32;
    transform: translateY(-1px);
    box-shadow: 0 10px 26px rgba(255,138,74,0.45);
  }

  .gk-card__btn:active {
    transform: translateY(0);
    box-shadow: 0 6px 16px rgba(255,138,74,0.35);
  }

@media (min-width: 981px) {
  .gk-card[data-gmt-card-clickable="true"] {
    cursor: pointer;
  }

  .gk-card[data-gmt-card-clickable="true"]:hover .gk-card__title {
    color: #1f3351;
  }
}

  .gk-search__empty {
    margin-top: 24px;
    font-size: 14px;
    opacity: 0.7;
  }

  .gk-search__empty .gk-empty__action{
    border:none;
    background:#ff8a4a;
    color:#ffffff;
    padding:6px 14px;
    border-radius:999px;
    font-size:12px;
    font-weight:600;
    cursor:pointer;
    margin-left:8px;
    box-shadow:0 6px 14px rgba(255,138,74,0.25);
  }

  .gk-search__empty .gk-empty__action:hover{
    background:#ff7a32;
  }

/* ---- карточка товара (модал) ---- */
.gk-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(15, 18, 24, 0.45);
  z-index: 200000;
}

.gk-modal.is-open {
  display: flex;
}

body.gk-modal-open {
  overflow: hidden;
}

.gk-modal__dialog {
  position: relative;
  width: min(980px, 100%);
  max-height: 92vh;
  background: #ffffff;
  border-radius: 28px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.22);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.gk-modal__close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.06);
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
  color: #111;
}

.gk-modal__body {
  padding: 28px;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 28px;
  overflow: auto;
}

.gk-modal__media {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.gk-modal__img {
  position: relative;
  width: 100%;
  padding-bottom: 100%;
  border-radius: 22px;
  background-color: #ffffff;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.04);
}

.gk-modal__img.is-empty::after {
  content: "Нет фото";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8a8f98;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.gk-modal__add {
  width: 100%;
  padding: 12px 18px;
  border-radius: 999px;
  border: none;
  background: #ff8a4a;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(255, 138, 74, 0.35);
  transition: background .15s ease, transform .15s ease, box-shadow .15s ease;
}

.gk-modal__add:hover {
  background: #ff7a32;
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(255, 138, 74, 0.45);
}

.gk-modal__add:active {
  transform: translateY(0);
  box-shadow: 0 8px 18px rgba(255, 138, 74, 0.35);
}

.gk-modal__qty {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.gk-modal__qty-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #ffffff;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.gk-modal__qty-input {
  width: 64px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  text-align: center;
  font-size: 14px;
}

.gk-modal__info {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.gk-modal__eyebrow {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #9aa0a6;
}

.gk-modal__title {
  margin: 0;
  font-size: 24px;
  line-height: 1.35;
  font-weight: 600;
  color: #1c1c1c;
}

.gk-modal__price {
  font-size: 20px;
  font-weight: 600;
  color: #1c1c1c;
}

.gk-modal__availability {
  font-size: 13px;
  color: #5f6368;
}

.gk-modal__section {
  padding: 14px 16px;
  border-radius: 16px;
  background: #fafafa;
  border: 1px solid rgba(0, 0, 0, 0.04);
  display: grid;
  gap: 10px;
}

.gk-modal__section-title {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #6b6f76;
}

.gk-modal__kv {
  display: grid;
  gap: 8px;
}

.gk-modal__row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.gk-modal__label {
  font-size: 13px;
  color: #6f6f6f;
}

.gk-modal__value {
  font-size: 13px;
  color: #1f1f1f;
  text-align: right;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.gk-modal__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.gk-modal__tag {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 138, 74, 0.14);
  color: #b45320;
  font-size: 12px;
  font-weight: 500;
}

.gk-modal__text {
  font-size: 13px;
  line-height: 1.55;
  color: #3f4247;
}

@media (max-width: 980px) {
  .gk-modal__body {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  .gk-modal {
    padding: 12px;
  }

  .gk-modal__body {
    padding: 20px;
  }

  .gk-modal__value {
    text-align: left;
    justify-content: flex-start;
  }

  .gk-modal__tags {
    justify-content: flex-start;
  }
}

/* Скрываем визуальную часть магазина, но не ломаем инициализацию */
#rec1509781121 .t-container {
  display: none !important;
}

/* Сам rec живой, просто без отступов */
#rec1509781121 {
  margin: 0 !important;
  padding: 0 !important;
}

/* центрированная пагинация */
.gk-pagination {
  margin-top: 28px;
  display: flex;
  justify-content: center;
  gap: 8px;
  font-size: 16px;
}

.gk-page-btn {
  min-width: 42px;
  height: 40px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,0.08);
  background: #fff;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .15s ease, color .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.gk-page-btn:hover:not(.gk-page-btn--active):not(.gk-page-btn--disabled) {
  background: #f4f5f9;
  box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}

.gk-page-btn--active {
  background: #ff8a4a;
  border-color: #ff8a4a;
  color: #fff;
  box-shadow: 0 6px 18px rgba(255,138,74,0.35);
  cursor: default;
}

.gk-page-btn--disabled {
  opacity: 0.4;
  cursor: default;
}



/* ---- выравниваем поиск ---- */
.gk-search__form {
  margin-top: 24px;
  display: flex;
  align-items: center;
  gap: 0;
  flex-wrap: nowrap;
  background: #fff;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.12);
  padding: 1px 8px 1px 8px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.03);
}

.gk-search__input-wrap {
  flex: 1 1 auto;
  min-width: 0;
  position: relative;
}

.gk-search__input {
  border: none;
  box-shadow: none;
  border-radius: 999px;
  padding: 6px 12px 6px 34px;
  font-size: 14px;
  line-height: 1.2;
}

.gk-search__input:focus {
  border: none;
  box-shadow: none;
  outline:none;
  background:#ffffff !important;
}

.gk-search__icon {
  left: 12px;
  right: auto;
  width: 16px;
  height: 16px;
  opacity: 0.35;
}

.gk-search__button {
  margin-left: 6px;
  margin-right: 4px;
  border-radius: 999px;
  height: 30px;
  padding: 0 16px;
  box-shadow: 0 6px 18px rgba(255,138,74,0.35);
}

.market-search-row .gk-search__form{
  height:42px;
}

.market-search-row .gk-search__input-wrap{
  display:flex;
  align-items:center;
  height:100%;
}

.market-search-row .gk-search__input{
  height:100%;
  padding-top:0;
  padding-bottom:0;
  background:#ffffff !important;
  outline:none !important;
  box-shadow:none !important;
  -webkit-tap-highlight-color:transparent;
}

.market-search-row .gk-search__form:focus-within{
  border-color:rgba(0,0,0,0.12) !important;
  box-shadow:0 4px 14px rgba(0,0,0,0.03) !important;
}

.market-search-row .gk-search__input::selection{
  background:transparent;
}

.market-search-row .gk-search__input:-webkit-autofill,
.market-search-row .gk-search__input:-webkit-autofill:hover,
.market-search-row .gk-search__input:-webkit-autofill:focus{
  -webkit-text-fill-color:#1f2937;
  -webkit-box-shadow:0 0 0 1000px #ffffff inset;
  transition:background-color 9999s ease-out 0s;
}

/* фиксируем подъём блока поиска */
.gk-search {
  margin-top: 60px !important;
}

@media (max-width: 640px) {
  .gk-search {
    margin-top: 60px !important;
  }
}

/* --- карточка фильтров в сайдбаре --- */
.gk-search__sidebar {
  align-self: flex-start;
  position: sticky;
  top: 110px;
  background: #ffffff;
  border-radius: 18px;
  padding: 16px 18px 20px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(255, 138, 74, 0.18); /* фирменный цвет */
}

/* надпись "Фильтры" */
.gk-sidebar__caption {
  font-size: 13px;
  font-weight: 600;
  color: #ff8a4a;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.gk-sidebar__caption::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 2px;
  transform: rotate(45deg);
  background: #ff8a4a;
}

/* блоки внутри фильтров */
.gk-sidebar__block {
  margin-bottom: 18px;
}

.gk-sidebar__block + .gk-sidebar__block {
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  padding-top: 16px;
}

/* заголовки блоков ("Категории", "Диапазон цен") */
.gk-sidebar__title {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  opacity: 0.7;
  margin-bottom: 10px;
}

/* пункты категорий */
.gk-category {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  cursor: pointer;
  padding: 4px 0;
}

.gk-category input {
  margin-top: 0;
  accent-color: #ff8a4a; /* цвет чекбоксов */
}

/* поля цены */
.gk-price-range__inputs input[type="number"] {
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  padding: 6px 10px;
  font-size: 13px;
}

/* трек слайдера */
.gk-price-range__sliders input[type="range"] {
  background: #e6e9f0;
}

/* ---- цена: новая версия ---- */

.gk-priceblock {
  background: #fff;
  padding: 14px;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.04);
}

.gk-price-fields {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
}

.gk-price-fields input {
  flex: 1;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
  border: 1px solid rgba(0,0,0,0.15);
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 14px;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
  overflow: hidden;
}

.gk-price-fields input::-webkit-outer-spin-button,
.gk-price-fields input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.gk-price-fields input[type="number"] {
  -moz-appearance: textfield;
}

.gk-price-slider {
  margin: 2px 2px 14px;
}

.gk-price-slider__input {
  width: 100%;
  height: 6px;
  margin: 0;
  -webkit-appearance: none;
  appearance: none;
  border-radius: 999px;
  border: none;
  background: #e6e9f0;
  outline: none;
}

.gk-price-slider__input::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: #ff8a4a;
  box-shadow: 0 0 0 3px rgba(255,138,74,0.24), 0 4px 10px rgba(255,138,74,0.3);
  cursor: pointer;
  margin-top: -5px;
}

.gk-price-slider__input::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 999px;
  background: transparent;
}

.gk-price-slider__input::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: #ff8a4a;
  box-shadow: 0 0 0 3px rgba(255,138,74,0.24), 0 4px 10px rgba(255,138,74,0.3);
  cursor: pointer;
}

.gk-price-slider__input::-moz-range-track {
  height: 6px;
  border-radius: 999px;
  background: #e6e9f0;
}

.gk-price-slider__input::-moz-range-progress {
  height: 6px;
  border-radius: 999px;
  background: #ff8a4a;
}

.gk-price-slider__input:focus {
  outline: none;
}

/* кнопки */
.gk-filter-apply {
  width: 100%;
  padding: 10px 0;
  border-radius: 10px;
  border: none;
  background: #ff8a4a;
  color: white;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 10px;
  transition: background .15s ease, box-shadow .15s ease;
}

.gk-filter-apply:hover {
  background: #ff7a32;
  box-shadow: 0 4px 10px rgba(255,138,74,0.35);
}

.gk-filter-reset {
  width: 100%;
  padding: 10px 0;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,0.15);
  background: #fff;
  font-size: 14px;
  cursor: pointer;
  transition: background .15s ease;
}

.gk-filter-reset:hover {
  background: #f4f5f9;
}

.gk-excel-import {
    max-width: 1160px;
    margin: 40px auto;
    padding: 0 20px;
    box-sizing: border-box;
  }

  .gk-excel-import__header {
    text-align: center;
    margin-bottom: 32px;
  }

  .gk-excel-import__title {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #333;
  }

  .gk-excel-import__soon-note {
    display: inline-block;
    margin-left: 8px;
    padding: 3px 10px;
    border-radius: 999px;
    background: rgba(255, 138, 74, 0.16);
    color: #c66227;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    vertical-align: middle;
  }

  .gk-excel-import__subtitle {
    font-size: 15px;
    opacity: 0.8;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.5;
  }

  .gk-excel-import__upload-area {
    border: 2px dashed #ff8a4a;
    border-radius: 20px;
    padding: 60px 20px;
    text-align: center;
    background: rgba(255, 138, 74, 0.05);
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 30px;
  }

  .gk-excel-import__upload-area:hover {
    background: rgba(255, 138, 74, 0.1);
    border-color: #ff7a32;
  }

  .gk-excel-import__upload-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    color: #ff8a4a;
  }

  .gk-excel-import__upload-text {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 8px;
    color: #333;
  }

  .gk-excel-import__upload-hint {
    font-size: 14px;
    opacity: 0.7;
    margin-bottom: 16px;
  }

  .gk-excel-import__upload-button {
    display: inline-block;
    padding: 12px 24px;
    background: #ff8a4a;
    color: white;
    border-radius: 999px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 14px;
  }

  .gk-excel-import__upload-button:hover {
    background: #ff7a32;
    transform: translateY(-2px);
  }

  .gk-excel-import__file-input {
    display: none;
  }

  .gk-excel-import__file-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f8f9fa;
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 30px;
  }

  .gk-excel-import__file-name {
    font-weight: 500;
    color: #333;
  }

  .gk-excel-import__file-stats {
    font-size: 14px;
    opacity: 0.7;
  }

  .gk-excel-import__controls {
    display: flex;
    gap: 12px;
    margin-bottom: 30px;
    align-items: center;
    flex-wrap: wrap;
  }

  .gk-excel-import__threshold {
    flex: 1;
    min-width: 200px;
  }

  .gk-excel-import__threshold-label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
  }

  .gk-excel-import__threshold-slider {
    width: 100%;
    height: 6px;
    -webkit-appearance: none;
    background: #e5e5e5;
    border-radius: 3px;
    outline: none;
  }

  .gk-excel-import__threshold-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #ff8a4a;
    cursor: pointer;
    border: 3px solid white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  }

  .gk-excel-import__threshold-value {
    font-size: 14px;
    font-weight: 600;
    color: #ff8a4a;
    min-width: 50px;
    text-align: center;
  }

  .gk-excel-import__search-btn {
    padding: 12px 32px;
    background: #ff8a4a;
    color: white;
    border: none;
    border-radius: 999px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
  }

  .gk-excel-import__search-btn:hover {
    background: #ff7a32;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 138, 74, 0.3);
  }

  .gk-excel-import__results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #eee;
  }

  .gk-excel-import__results-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
  }

  .gk-excel-import__results-count {
    font-size: 14px;
    opacity: 0.7;
  }

  .gk-excel-import__match-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    margin-left: 8px;
  }

  .gk-excel-import__match-high {
    background: rgba(76, 175, 80, 0.1);
    color: #4caf50;
  }

  .gk-excel-import__match-medium {
    background: rgba(255, 152, 0, 0.1);
    color: #ff9800;
  }

  .gk-excel-import__match-low {
    background: rgba(244, 67, 54, 0.1);
    color: #f44336;
  }

  .gk-excel-import__progress {
    height: 4px;
    background: #e5e5e5;
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 30px;
  }

  .gk-excel-import__progress-bar {
    height: 100%;
    background: #ff8a4a;
    width: 0%;
    transition: width 0.3s ease;
  }

  .gk-excel-import__empty {
    text-align: center;
    padding: 60px 20px;
    color: #666;
  }

  .gk-excel-import__empty-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    opacity: 0.3;
  }

  .gk-excel-import__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
  }

  .gk-excel-import__card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }

  .gk-excel-import__card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
  }

  .gk-excel-import__card-header {
    padding: 20px;
    border-bottom: 1px solid #f0f0f0;
  }

  .gk-excel-import__card-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
  }

  .gk-excel-import__card-sku {
    font-size: 12px;
    color: #666;
    font-family: monospace;
  }

  .gk-excel-import__card-body {
    padding: 20px;
  }

  .gk-excel-import__card-meta {
    font-size: 14px;
    color: #666;
    margin-bottom: 12px;
    line-height: 1.5;
  }

  .gk-excel-import__card-price {
    font-size: 18px;
    font-weight: 700;
    color: #ff8a4a;
    margin-bottom: 16px;
  }

  .gk-excel-import__card-footer {
    padding: 0 20px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .gk-excel-import__card-match {
    font-size: 14px;
    font-weight: 500;
  }

  .gk-excel-import__card-btn {
    padding: 8px 16px;
    background: #ff8a4a;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s ease;
  }

  .gk-excel-import__card-btn:hover {
    background: #ff7a32;
  }

/* desktop: больше отступ от баннера и умеренное уменьшение карточек */
@media (min-width: 981px) {
  .marketplace-hero {
    max-width: 1460px;
    padding: 0 20px;
  }

  .marketplace-hero__slider {
    height: 138px;
  }

  .gk-search {
    margin-top: 50px !important;
  }

  .container-market {
    max-width: 1460px;
    margin: -58px auto 28px;
    padding: 0 16px;
    top: -22px;
    grid-template-columns: 248px minmax(0, 1fr);
    column-gap: 18px;
    row-gap: 14px;
  }

  .gk-search__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }

  .gk-card {
    width: 100%;
    max-width: 344px;
    margin: 0 auto;
  }

  .gk-card__image {
    padding-bottom: 44%;
  }

  .gk-card__body {
    padding: 11px 12px 10px;
    gap: 6px;
  }

  .gk-card__title {
    line-height: 1.2;
  }

  .gk-card__meta {
    line-height: 1.2;
  }

  .gk-card__price {
    font-size: 14px;
  }

  .gk-card__btn {
    padding: 6px 12px;
  }
}

/* ---- переключение вида: list ---- */
.view-list .gk-search__grid{
  grid-template-columns: minmax(0, 1fr);
  gap:12px;
}

.view-list .gk-card{
  flex-direction:row;
  align-items:stretch;
  max-width:none;
  min-height:140px;
}

.view-list .gk-card__image{
  flex:0 0 160px;
  width:160px;
  padding-bottom:0;
  min-height:120px;
}

.view-list .gk-card__body{
  padding:12px 16px;
  gap:6px;
}

.view-list .gk-card__title{
  font-size:15px;
  line-height:1.3;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}

.view-list .gk-card__meta{
  font-size:12px;
  opacity:0.7;
  line-height:1.4;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.view-list .gk-card__bottom{
  margin-top:4px;
  align-items:center;
  justify-content:space-between;
}

.view-list .gk-card__actions{
  gap:10px;
}

.view-list .gk-card__price{
  font-size:16px;
}

.view-list .gk-card__btn{
  min-height:36px;
  padding:8px 16px;
}

.view-list .gk-card__fav{
  width:38px;
  height:38px;
}

@media (max-width: 980px){
  .view-list .gk-card__image{
    flex:0 0 140px;
    width:140px;
    min-height:110px;
  }
}

@media (max-width: 640px){
  .view-list .gk-card{
    flex-direction:column;
  }

  .view-list .gk-card__image{
    width:100%;
    flex:0 0 auto;
    padding-bottom:58%;
    min-height:0;
  }
}

/* marketplace hero: responsive banners */
.marketplace-hero__picture{
  display:block;
  width:100%;
  height:100%;
}

@media (max-width: 980px){
  .marketplace-hero__slider{
    height:200px;
  }
}

/* marketplace: mobile filters panel */
.market-filters-toggle{
  display:none;
  border:1px solid rgba(0,0,0,0.12);
  background:#fff;
  color:#111827;
  border-radius:999px;
  padding:6px 12px;
  font-size:13px;
  font-weight:600;
  cursor:pointer;
  white-space:nowrap;
}

.gk-mobile-filters__header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:14px;
}

.gk-mobile-filters__header .gk-sidebar__caption{
  margin:0;
}

.gk-mobile-filters__close{
  display:none;
  border:none;
  background:transparent;
  color:#111827;
  font-size:13px;
  font-weight:600;
  cursor:pointer;
}

.gk-mobile-filters__overlay{
  display:none;
}

@media (max-width: 980px){
  .market-filters-toggle{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:6px;
  }

  .container-market{
    display:block;
    width:100%;
    max-width:100%;
    margin:12px auto 24px;
    padding:0 16px;
    top:0;
  }

  .marketplace-hero{
    margin:12px auto 12px;
    margin-top:12px;
    padding:0 16px;
  }

  .gk-search{
    margin-top:12px !important;
  }

  .gk-search__sidebar{
    position:fixed !important;
    top:0 !important;
    right:0 !important;
    bottom:0 !important;
    left:auto !important;
    order:0 !important;
    height:100dvh !important;
    min-height:100dvh !important;
    width:88vw !important;
    max-width:360px !important;
    margin:0 !important;
    border-radius:18px 0 0 18px;
    transform:translateX(100%);
    opacity:0;
    pointer-events:none;
    z-index:1002;
    overflow-y:auto;
    transition:transform .25s ease, opacity .25s ease;
    align-self:auto !important;
  }

  .gk-mobile-filters__close{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding:6px 10px;
    border-radius:8px;
    background:#f3f4f6;
  }

  .gk-mobile-filters__overlay{
    display:block;
    position:fixed;
    inset:0;
    background:rgba(0,0,0,0.45);
    opacity:0;
    pointer-events:none;
    transition:opacity .2s ease;
    z-index:1001;
  }

  .gk-search--filters-open .gk-search__sidebar{
    transform:translateX(0);
    opacity:1;
    pointer-events:auto;
  }

  .gk-search--filters-open .gk-mobile-filters__overlay{
    opacity:1;
    pointer-events:auto;
  }

  .market-search-row{
    gap:8px;
  }

  .market-search-actions{
    gap:8px;
  }

  .catalog-toolbar{
    display:flex;
    flex-wrap:wrap;
    align-items:center;
    gap:8px;
    margin-top:8px;
  }

  .gk-search__meta{
    width:100%;
    font-size:12px;
  }

  .market-search-controls{
    width:100%;
    margin-left:0;
    justify-content:space-between;
    gap:8px;
  }

  .market-sort__label{
    display:none;
  }

  .market-sort{
    flex:1;
    min-width:0;
    padding:4px 8px;
  }

  .market-sort__select{
    width:100%;
    min-width:0;
  }

  .market-sort__dropdown{
    width:100%;
    min-width:0;
  }

  .market-sort__dropdown-trigger{
    width:100%;
    text-align:left;
  }

  .market-sort__dropdown-menu{
    left:0;
    right:auto;
    min-width:100%;
  }

  .market-view{
    display:none;
  }

  .market-top,
  .market-content{
    width:100%;
    grid-column:auto;
    grid-row:auto;
  }

  .gk-search__grid{
    display:grid;
    grid-template-columns:repeat(2, minmax(0, 1fr));
    gap:12px;
  }

  .gk-card__image{
    padding-bottom:72%;
  }

  .gk-card__title{
    display:-webkit-box;
    -webkit-box-orient:vertical;
    -webkit-line-clamp:2;
    overflow:hidden;
    font-size:13px;
    line-height:1.2;
  }

  .gk-card__body{
    padding:10px 10px 12px;
    gap:6px;
  }

  .gk-card__price{
    font-size:14px;
  }

  .gk-card__meta{
    font-size:11px;
  }

  .gk-card__actions{
    gap:6px;
  }

  .gk-card__btn{
    padding:6px 10px;
    min-height:32px;
    font-size:12px;
  }

  .gk-card__fav{
    width:32px;
    height:32px;
  }

  .gk-pagination{
    display:flex;
    justify-content:center;
    flex-wrap:nowrap;
    gap:6px;
    margin-left:0;
    margin-right:0;
  }

  .gk-page-btn{
    min-width:36px;
    height:34px;
    padding:0 10px;
    font-size:14px;
  }
}

/* marketplace: mobile hard overrides (980px) */
@media (max-width: 980px){
  :root{
    --gmt-nav-height:64px;
  }

  html,
  body,
  #allrecords,
  .marketplace-page,
  .marketplace-main{
    display:block !important;
    height:auto !important;
    min-height:0 !important;
    align-items:stretch !important;
    justify-content:flex-start !important;
    padding-top:0 !important;
    margin-top:0 !important;
  }

  /* убираем пустоту сверху */
  body,
  #allrecords,
  .marketplace-page{
    margin-top:0 !important;
    padding-top:0 !important;
  }

  #rec1707667511,
  #rec1625415621,
  .marketplace-section{
    margin-top:0 !important;
    padding-top:0 !important;
  }

  .marketplace-search{
    margin-top:-18px !important;
    padding-top:0 !important;
  }

  .marketplace-excel,
  #gkExcelImport{
    margin-top:40px !important;
  }

  #rec1625415621{
    display:block !important;
    height:auto !important;
    min-height:0 !important;
    padding:0 !important;
  }

  #rec1707667511{
    height:64px !important;
    min-height:64px !important;
    padding:0 !important;
    margin:0 !important;
    overflow:visible !important;
  }

  #nav1707667511marker{
    display:none !important;
    height:0 !important;
    margin:0 !important;
    padding:0 !important;
  }

  .marketplace-hero,
  .marketplace-hero__frame,
  .marketplace-hero__slider{
    display:none !important;
    visibility:hidden !important;
    pointer-events:none !important;
    height:0 !important;
    min-height:0 !important;
    margin:0 !important;
    padding:0 !important;
    border:0 !important;
  }

  .gk-search,
  .container-market,
  .market-top,
  .market-content{
    margin-top:0 !important;
    padding-top:0 !important;
  }

  #gkSearchRoot,
  .gk-search{
    padding:0 !important;
    margin-top:0 !important;
    margin-bottom:16px !important;
    position:static !important;
    inset:auto !important;
    top:auto !important;
    bottom:auto !important;
    transform:none !important;
  }

  #gkSearchRoot{
    margin-top:0 !important;
  }

  .gk-search,
  .market-top,
  .market-content{
    align-self:stretch !important;
  }

  .container-market{
    margin:0 auto 24px !important;
    padding:0 12px !important;
  }

  .marketplace-main{
    padding-top:64px !important;
  }

  #rec1625415621,
  .marketplace-search{
    position:relative !important;
    top:0 !important;
    margin:14px 0 0 !important;
  }

  #gkSearchRoot.gk-search.container-market{
    display:flex !important;
    flex-direction:column !important;
    gap:0 !important;
    width:100% !important;
    max-width:100% !important;
    margin:0 auto 24px !important;
    padding:0 12px !important;
    top:0 !important;
  }

  #gkSearchRoot > .gk-search__sidebar,
  #gkSearchRoot > .gk-mobile-filters__overlay,
  #gkSearchRoot > .market-top,
  #gkSearchRoot > .market-content{
    grid-column:auto !important;
    grid-row:auto !important;
  }

  #gkSearchRoot > .market-top{
    order:1 !important;
    width:100% !important;
    margin:0 !important;
  }

  #gkSearchRoot > .market-content{
    order:2 !important;
    width:100% !important;
    margin:0 !important;
  }

  #gkSearchAnchor,
  .gk-search-anchor{
    display:block;
    height:0 !important;
    margin:0 !important;
    padding:0 !important;
  }

  .tmenu-mobile{
    position:fixed;
    top:0;
    left:0;
    right:0;
    z-index:1003;
  }

  .tmenu-mobile__container{
    min-height:64px;
    padding:12px 16px;
  }

  .tmenu-mobile__burgerlogo__title{
    font-size:18px;
  }

  .t454{
    top:64px;
    left:0;
    right:0;
    width:100%;
  }

  .t454__maincontainer{
    padding:14px 16px;
    gap:12px;
  }

  .t454__logowrapper{
    display:none;
  }

  .t454__leftmenuwrapper,
  .t454__rightmenuwrapper{
    justify-content:flex-start;
  }

  .t454__rightwrapper{
    margin-top:10px;
  }

  .t454__list_item a{
    display:block;
    padding:6px 0;
  }

  .gk-search__header{
    margin-top:0 !important;
    margin-bottom:8px !important;
    padding-top:0 !important;
  }

  /* компактный поиск */
  .market-search-row{
    align-items:center;
    flex-wrap:nowrap !important;
    gap:8px !important;
  }

  .gk-search__form{
    height:38px !important;
    padding:4px 0 4px 4px !important;
    margin-top:0 !important;
    flex-wrap:nowrap !important;
    gap:6px !important;
  }

  .gk-search__input-wrap{
    flex:1 1 auto !important;
    min-width:0 !important;
  }

  .market-search-row .gk-search__input-wrap{
    flex:1 1 auto !important;
  }

  .market-search-row .gk-search__button{
    flex:0 0 auto !important;
    width:auto !important;
  }

  .gk-search__input{
    font-size:14px;
  }

  .gk-search__button{
    flex:0 0 auto !important;
    height:36px !important;
    padding:0 14px !important;
    font-size:14px !important;
    border-radius:999px;
    width:auto !important;
    margin:0 !important;
    white-space:nowrap;
    max-width:120px !important;
  }

  /* принудительно 2 колонки */
  .gk-search__grid,
  #gkSearchGrid{
    display:grid !important;
    grid-template-columns:repeat(2, minmax(0, 1fr)) !important;
    gap:12px !important;
  }

  .gk-card{
    width:auto !important;
    max-width:none !important;
    flex:0 0 auto !important;
  }

  .view-list .gk-card{
    flex-direction:column !important;
  }

.view-list .gk-search__grid{
    grid-template-columns:repeat(2, minmax(0, 1fr)) !important;
  }
}

/* D62: marketplace search aligned to home-hero style */
.market-search-row .gk-search__form{
  display:flex !important;
  align-items:center !important;
  gap:0 !important;
  flex-wrap:nowrap !important;
  background:#ffffff !important;
  border:1.5px solid #ff8a4a !important;
  border-radius:14px !important;
  box-shadow:0 6px 14px rgba(255,138,74,0.16) !important;
  padding:0 0 0 16px !important;
  overflow:hidden !important;
  min-height:46px !important;
}

.market-search-row .gk-search__form:hover{
  border-color:#ff7a32 !important;
}

.market-search-row .gk-search__form:focus-within{
  border-color:#ff8a4a !important;
  box-shadow:
    0 0 0 3px rgba(255,138,74,0.18),
    0 6px 14px rgba(255,138,74,0.22) !important;
}

.market-search-row .gk-search__input-wrap{
  display:flex !important;
  align-items:center !important;
  flex:1 1 auto !important;
  min-width:0 !important;
  height:46px !important;
}

.market-search-row .gk-search__icon{
  left:12px !important;
  right:auto !important;
  width:16px !important;
  height:16px !important;
  opacity:0.45 !important;
}

.market-search-row .gk-search__input{
  width:100% !important;
  height:46px !important;
  border:none !important;
  border-radius:0 !important;
  background:transparent !important;
  box-shadow:none !important;
  outline:none !important;
  padding:0 14px 0 36px !important;
  font-size:15px !important;
  line-height:1.2 !important;
}

.market-search-row .gk-search__button{
  flex:0 0 auto !important;
  width:auto !important;
  max-width:none !important;
  margin:0 !important;
  align-self:stretch !important;
  height:100% !important;
  min-height:100% !important;
  min-width:104px !important;
  padding:0 20px 0 30px !important;
  border:none !important;
  border-left:0 !important;
  border-radius:0 !important;
  background:#ff8a4a !important;
  color:#ffffff !important;
  box-shadow:none !important;
  transform:none !important;
  position:relative !important;
  z-index:1 !important;
}

.market-search-row .gk-search__button::before{
  content:"" !important;
  position:absolute !important;
  left:-20px !important;
  top:-2px !important;
  width:40px !important;
  height:calc(100% + 4px) !important;
  border-radius:18px !important;
  background:#ffffff !important;
  pointer-events:none !important;
}

.market-search-row .gk-search__button:hover,
.market-search-row .gk-search__button:active{
  background:#ff7a32 !important;
  box-shadow:none !important;
  transform:none !important;
}

.market-search-row .gk-search__button:hover::before,
.market-search-row .gk-search__button:active::before{
  background:#ffffff !important;
}

.market-search-row .gk-search__button:focus-visible{
  outline:2px solid rgba(255,138,74,0.35) !important;
  outline-offset:2px !important;
}

@media (max-width:980px){
  .market-search-row .gk-search__form{
    min-height:42px !important;
    height:42px !important;
    border-radius:12px !important;
    padding-left:12px !important;
  }

  .market-search-row .gk-search__input-wrap{
    height:42px !important;
  }

  .market-search-row .gk-search__input{
    height:42px !important;
    padding-left:34px !important;
    font-size:14px !important;
    border-radius:0 !important;
  }

  .market-search-row .gk-search__button{
    height:100% !important;
    min-height:100% !important;
    min-width:92px !important;
    padding:0 16px 0 24px !important;
    border-radius:0 !important;
    font-size:14px !important;
  }

  .market-search-row .gk-search__button::before{
    left:-17px !important;
    top:-1px !important;
    width:34px !important;
    height:calc(100% + 2px) !important;
    border-radius:14px !important;
  }
}

/* MARKETPLACE: heart icon optical centering */
.gk-card__fav{
  -webkit-appearance:none;
  appearance:none;
  padding:0;
  line-height:1;
  display:inline-flex;
  align-items:center;
  justify-content:center;
}

.gk-card__fav svg{
  display:block;
  margin:0;
  transform:translateY(-0.5px);
}

.market-action--fav{
  -webkit-appearance:none;
  appearance:none;
  padding:0;
  line-height:1;
  display:inline-flex;
  align-items:center;
  justify-content:center;
}

.market-action--fav svg{
  display:block;
  margin:0;
  transform:translateY(-0.5px);
}

/* MARKETPLACE: precise centering for top favorite icon (right of search) */
.market-search-actions .market-action--fav{
  position:relative;
  padding:0;
}

.market-search-actions .market-action--fav > svg{
  position:absolute;
  left:50%;
  top:50%;
  width:18px;
  height:18px;
  margin:0;
  transform:translate(-50%, -50%);
}

.market-search-actions .market-action--fav .market-action__badge{
  z-index:2;
}

/* D63: keep favorite buttons perfectly round */
.gk-card__fav{
  flex:0 0 auto !important;
  min-width:34px;
  min-height:34px;
  max-width:34px;
  max-height:34px;
  aspect-ratio:1 / 1;
  border-radius:50% !important;
  box-sizing:border-box;
}

.view-list .gk-card__fav{
  min-width:38px;
  min-height:38px;
  max-width:38px;
  max-height:38px;
}

.market-action--fav{
  flex:0 0 auto;
  min-width:40px;
  min-height:40px;
  max-width:40px;
  max-height:40px;
  aspect-ratio:1 / 1;
  border-radius:50%;
  box-sizing:border-box;
}

@media (max-width:980px){
  .gk-card__fav{
    min-width:32px;
    min-height:32px;
    max-width:32px;
    max-height:32px;
  }

  .view-list .gk-card__fav{
    min-width:32px;
    min-height:32px;
    max-width:32px;
    max-height:32px;
  }
}

/* MARKETPLACE: keep search clear button aligned inside white field */
.market-search-row .gk-search__input{
  padding-right:44px !important;
}

.market-search-row .gk-search__input::-webkit-search-cancel-button{
  -webkit-appearance:none;
  appearance:none;
  width:16px;
  height:16px;
  margin:0;
  transform:translateX(-10px);
  border-radius:50%;
  background:
    linear-gradient(45deg, transparent 43%, #ffffff 43%, #ffffff 57%, transparent 57%),
    linear-gradient(-45deg, transparent 43%, #ffffff 43%, #ffffff 57%, transparent 57%),
    #ff9a63;
  box-shadow:0 0 0 1px rgba(255,138,74,0.55);
  cursor:pointer;
}

.market-search-row .gk-search__input::-webkit-search-cancel-button:hover{
  background:
    linear-gradient(45deg, transparent 43%, #ffffff 43%, #ffffff 57%, transparent 57%),
    linear-gradient(-45deg, transparent 43%, #ffffff 43%, #ffffff 57%, transparent 57%),
    #ff7a32;
  box-shadow:0 0 0 1px rgba(255,122,50,0.7);
}

/* Marketplace mobile hardening: stable product cards and controls */
@media (max-width:980px){
  .gk-card{
    width:100% !important;
    max-width:100% !important;
    min-width:0;
    border-radius:12px;
    overflow:hidden;
  }

  .gk-card__body{
    min-width:0;
  }

  .gk-card__title,
  .gk-card__meta{
    word-break:break-word;
    overflow-wrap:anywhere;
  }

  .gk-card__actions{
    align-items:stretch;
  }

  .gk-card__btn{
    flex:1 1 auto;
    min-width:0;
  }
}

@media (max-width:560px){
  .gk-search__grid,
  #gkSearchGrid,
  .view-list .gk-search__grid{
    grid-template-columns:repeat(2, minmax(0, 1fr)) !important;
  }

  .gk-card__image{
    padding-bottom:62% !important;
  }

  .market-search-controls{
    flex-direction:column;
    align-items:stretch;
  }

  .market-sort{
    width:100%;
  }
}

/* D64: mobile toolbar polish and placeholder fit */
@media (max-width:560px){
  .market-search-row{
    gap:6px !important;
  }

  .market-search-row .gk-search__form{
    min-height:40px !important;
    height:40px !important;
    border-radius:11px !important;
    padding-left:10px !important;
  }

  .market-search-row .gk-search__icon{
    left:10px !important;
    width:14px !important;
    height:14px !important;
  }

  .market-search-row .gk-search__input{
    font-size:13px !important;
    padding-left:28px !important;
    padding-right:32px !important;
    letter-spacing:0 !important;
  }

  .market-search-row .gk-search__button{
    min-width:74px !important;
    padding:0 12px 0 18px !important;
    font-size:13px !important;
  }

  .market-search-row .gk-search__button::before{
    left:-14px !important;
    width:28px !important;
  }

  .market-search-controls{
    display:grid !important;
    grid-template-columns:minmax(0, 1fr) minmax(0, 1fr) !important;
    align-items:stretch !important;
    gap:8px !important;
  }

  .market-filters-toggle,
  .market-sort{
    width:100% !important;
    min-height:38px !important;
    margin:0 !important;
  }

  .market-filters-toggle{
    justify-content:center;
    padding:0 10px !important;
    border-radius:10px !important;
  }

  .market-sort{
    padding:0 8px !important;
    border-radius:10px !important;
    box-shadow:0 6px 16px rgba(17,24,39,0.06);
  }

  .market-sort__dropdown,
  .market-sort__dropdown-trigger{
    width:100% !important;
  }

  .market-sort__dropdown-trigger{
    min-height:36px !important;
    padding:0 16px 0 4px !important;
    display:flex !important;
    align-items:center !important;
    justify-content:flex-start !important;
  }

  .market-sort__dropdown-text{
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
  }

  .market-sort__dropdown-menu{
    left:0 !important;
    right:auto !important;
    width:100% !important;
    max-width:none !important;
  }
}

