/**
 * Стили под фактическую разметку Bitrix.
 * Оригиналы вёрстки (gd-tokens / gd-custom / gd-interactive) не меняем.
 */

/* catalog.section оборачивает карточки в [data-entity="container-*"].
   Во вёрстке .gd-promo-card — прямые дети .gd-promo-page__grid. */
.gd-promo-page__grid > [data-entity^="container-"] {
  display: contents;
}

.catalog-item__stock--preorder {
  color: #c45a12;
}

.catalog-item__stock--none {
  color: var(--gd-text-secondary, #8f9396);
}

.catalog-section__container--empty {
  display: block;
}

.catalog-section__container--empty .gd-filter-empty {
  margin: 0;
}

.catalog-section__container--empty .catalog-item {
  display: none;
}

/* Тема: .counter__label min-width 44px — 5 цифр обрезаются. */
.counter__label {
  flex: 1 0 4.5em;
  min-width: 4.5em;
}

.counter__input {
  min-width: 4.5em;
  padding-inline: 4px;
  box-sizing: border-box;
}

/* Тема: .header-multilevel-menu { opacity: 0 } до класса .active.
   HeaderMultilevelMenu живёт в бандле футера, а BX.ready в шапке уже отработал. */
.header__second-menu-wrapper .header-multilevel-menu {
  opacity: 1;
}

.gd-product-stock--preorder {
  color: #c45a12;
}

.gd-product-stock--none {
  color: var(--gd-text-secondary, #8f9396);
}

.detail-product .gd-qty[data-entity="quantity-block"] {
  display: flex !important;
}

.detail-product .gd-product-cart.btn {
  display: inline-flex !important;
}

@media (max-width: 1024px) {
  .detail-product .gd-product-cart.btn,
  .bottom-bar {
    display: none !important;
  }

  main:has(.detail-product) .breadcrumbs__back {
    display: none !important;
  }

  .product-gallery .gd-gallery-back,
  .product-gallery .gd-gallery-tools .favorite-btn,
  .product-gallery .gd-gallery-tools .compare-btn {
    width: 40px !important;
    height: 40px !important;
    min-width: 0;
    padding: 0 !important;
    box-sizing: border-box;
    border-radius: 20px !important;
  }
}

.detail-product .info__counter[data-entity="quantity-block"],
.detail-buttons-container .info__counter[data-entity="quantity-block"],
.detail__fixed-header .info__counter[data-entity="quantity-block"],
.bottom-bar .info__counter[data-entity="quantity-block"],
#pallet-count {
  display: none !important;
}

/* Плавающий виджет сравнения Sotbit — во вёрстке его нет. */
.compare-list__wrapper {
  display: none !important;
}

:root {
  --compare-list-offset: 0px;
}

/* Корзина: поиск по позициям во вёрстке не показывается, остаётся «Очистить корзину». */
#basket-root .basket-filter,
#basket-root .basket-filter-messages {
  display: none !important;
}

#basket-root [data-entity="basket-oneclick-button"] {
  display: none !important;
}

/* Кабинет: число ступеней степпера 6 или 7. */
.gd-order-status__list {
  grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
}

.gd-orders .gd-cabinet-nav {
  grid-column: 1;
}

.gd-orders__main {
  min-width: 0;
}

.gd-orders__main > .gd-orders-card + .gd-orders-card {
  margin-top: 12px;
}

.gd-order__main {
  min-width: 0;
}

.gd-orders-card__actions .btn {
  width: auto;
}

.gd-order-docs .btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/*
 * Шкала статусов: те же цвета, что бейджи на вёрстке /personal/orders/.
 * data-gd-status дублируем на ol — у обёртки display:contents, иначе заливка
 * может не примениться.
 * Заказ принят / Готов к отгрузке / Документы получены — brand
 * Счёт выставлен — warning
 * Оплачен / Отгружен / Завершён — success
 */
.gd-order-status[data-gd-status="accepted"] .gd-order-status__step.is-done,
.gd-order-status[data-gd-status="accepted"] .gd-order-status__step.is-current,
.gd-order-status__list[data-gd-status="accepted"] .gd-order-status__step.is-done,
.gd-order-status__list[data-gd-status="accepted"] .gd-order-status__step.is-current,
.gd-order-status[data-gd-status="ready"] .gd-order-status__step.is-done,
.gd-order-status[data-gd-status="ready"] .gd-order-status__step.is-current,
.gd-order-status__list[data-gd-status="ready"] .gd-order-status__step.is-done,
.gd-order-status__list[data-gd-status="ready"] .gd-order-status__step.is-current,
.gd-order-status[data-gd-status="docs"] .gd-order-status__step.is-done,
.gd-order-status[data-gd-status="docs"] .gd-order-status__step.is-current,
.gd-order-status__list[data-gd-status="docs"] .gd-order-status__step.is-done,
.gd-order-status__list[data-gd-status="docs"] .gd-order-status__step.is-current {
  color: var(--gd-brand, #2f1d69);
}

.gd-order-status[data-gd-status="accepted"] .gd-order-status__step.is-done::after,
.gd-order-status[data-gd-status="accepted"] .gd-order-status__step.is-current::after,
.gd-order-status__list[data-gd-status="accepted"] .gd-order-status__step.is-done::after,
.gd-order-status__list[data-gd-status="accepted"] .gd-order-status__step.is-current::after,
.gd-order-status[data-gd-status="ready"] .gd-order-status__step.is-done::after,
.gd-order-status[data-gd-status="ready"] .gd-order-status__step.is-current::after,
.gd-order-status__list[data-gd-status="ready"] .gd-order-status__step.is-done::after,
.gd-order-status__list[data-gd-status="ready"] .gd-order-status__step.is-current::after,
.gd-order-status[data-gd-status="docs"] .gd-order-status__step.is-done::after,
.gd-order-status[data-gd-status="docs"] .gd-order-status__step.is-current::after,
.gd-order-status__list[data-gd-status="docs"] .gd-order-status__step.is-done::after,
.gd-order-status__list[data-gd-status="docs"] .gd-order-status__step.is-current::after {
  background: var(--gd-brand, #2f1d69);
}

.gd-order-status[data-gd-status="invoiced"] .gd-order-status__step.is-done,
.gd-order-status[data-gd-status="invoiced"] .gd-order-status__step.is-current,
.gd-order-status__list[data-gd-status="invoiced"] .gd-order-status__step.is-done,
.gd-order-status__list[data-gd-status="invoiced"] .gd-order-status__step.is-current {
  color: var(--warning, #ff9935);
}

.gd-order-status[data-gd-status="invoiced"] .gd-order-status__step.is-done::after,
.gd-order-status[data-gd-status="invoiced"] .gd-order-status__step.is-current::after,
.gd-order-status__list[data-gd-status="invoiced"] .gd-order-status__step.is-done::after,
.gd-order-status__list[data-gd-status="invoiced"] .gd-order-status__step.is-current::after {
  background: var(--warning, #ff9935);
}

.gd-order-status[data-gd-status="paid"] .gd-order-status__step.is-done,
.gd-order-status[data-gd-status="paid"] .gd-order-status__step.is-current,
.gd-order-status__list[data-gd-status="paid"] .gd-order-status__step.is-done,
.gd-order-status__list[data-gd-status="paid"] .gd-order-status__step.is-current,
.gd-order-status[data-gd-status="shipped"] .gd-order-status__step.is-done,
.gd-order-status[data-gd-status="shipped"] .gd-order-status__step.is-current,
.gd-order-status__list[data-gd-status="shipped"] .gd-order-status__step.is-done,
.gd-order-status__list[data-gd-status="shipped"] .gd-order-status__step.is-current,
.gd-order-status[data-gd-status="done"] .gd-order-status__step.is-done,
.gd-order-status[data-gd-status="done"] .gd-order-status__step.is-current,
.gd-order-status__list[data-gd-status="done"] .gd-order-status__step.is-done,
.gd-order-status__list[data-gd-status="done"] .gd-order-status__step.is-current {
  color: var(--success, #18b131);
}

.gd-order-status[data-gd-status="paid"] .gd-order-status__step.is-done::after,
.gd-order-status[data-gd-status="paid"] .gd-order-status__step.is-current::after,
.gd-order-status__list[data-gd-status="paid"] .gd-order-status__step.is-done::after,
.gd-order-status__list[data-gd-status="paid"] .gd-order-status__step.is-current::after,
.gd-order-status[data-gd-status="shipped"] .gd-order-status__step.is-done::after,
.gd-order-status[data-gd-status="shipped"] .gd-order-status__step.is-current::after,
.gd-order-status__list[data-gd-status="shipped"] .gd-order-status__step.is-done::after,
.gd-order-status__list[data-gd-status="shipped"] .gd-order-status__step.is-current::after,
.gd-order-status[data-gd-status="done"] .gd-order-status__step.is-done::after,
.gd-order-status[data-gd-status="done"] .gd-order-status__step.is-current::after,
.gd-order-status__list[data-gd-status="done"] .gd-order-status__step.is-done::after,
.gd-order-status__list[data-gd-status="done"] .gd-order-status__step.is-current::after {
  background: var(--success, #18b131);
}

/* Оформление: SOA-хром прячем, id блоков оставляем для JS. */
main.gd-checkout #bx-soa-order {
  opacity: 1 !important;
}

main.gd-checkout .gd-checkout__intro {
  grid-column: 1;
  grid-row: 1;
}

main.gd-checkout .gd-checkout__leftovers,
main.gd-checkout #bx-soa-auth {
  grid-column: 1;
  grid-row: 1;
}

main.gd-checkout #bx-soa-auth {
  display: none !important;
}

main.gd-checkout .gd-checkout__title {
  font-size: var(--gd-cabinet-title, 28px);
  font-weight: 600;
  line-height: 1.25;
}

main.gd-checkout .gd-checkout__intro h2,
main.gd-checkout .gd-checkout__aside h2 {
  margin: 0 0 12px;
  font-size: var(--gd-cabinet-section, 20px);
  font-weight: 700;
  line-height: 1.3;
}

main.gd-checkout .bx-soa-cart-total-wrapper,
main.gd-checkout .bx-soa-cart-total,
main.gd-checkout .bx-soa-cart-total.bx-soa-cart-total-fixed {
  position: static !important;
  top: auto !important;
  width: auto !important;
  max-width: none !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

main.gd-checkout .bx-soa-cart-total-ghost,
main.gd-checkout .bx-soa-cart-total-fixed {
  position: static !important;
  width: auto !important;
  padding-top: 0 !important;
}

main.gd-checkout .bx-soa-cart-total-ghost {
  display: none !important;
}

main.gd-checkout #bx-soa-properties.bx-soa-section,
main.gd-checkout #bx-soa-orderSave.bx-soa-section,
main.gd-checkout #bx-soa-auth.bx-soa-section,
main.gd-checkout .bx-soa-section-user-consent {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

main.gd-checkout .bx-soa-section-title-container,
main.gd-checkout .bx-soa-more,
main.gd-checkout .bx-soa-editstep-container,
main.gd-checkout .bx-soa-cart-total-button-container,
main.gd-checkout .bx-soa-cart-oneclick-button-container {
  display: none !important;
}

main.gd-checkout .bx-soa-section-content,
main.gd-checkout .bx-soa-section-content.container-fluid,
main.gd-checkout .bx-soa-customer,
main.gd-checkout #bx-soa-properties .row {
  display: block;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  float: none;
}

main.gd-checkout .soa-property-container,
main.gd-checkout .soa-property-container > div {
  margin: 0 !important;
}

main.gd-checkout .gd-field .input-text,
main.gd-checkout .gd-field textarea {
  width: 100%;
}

main.gd-checkout .gd-checkout__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 1024px) {
  main.gd-checkout .gd-checkout__row {
    grid-template-columns: 1fr;
  }
}

main.gd-checkout .gd-check-list .main-user-consent-request,
main.gd-checkout .gd-check-list .checkbox {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  width: auto;
  max-width: none;
  margin: 4px 0 !important;
  font-size: var(--gd-cabinet-body, 17px);
  font-weight: 400;
  line-height: 1.4;
  color: inherit;
}

main.gd-checkout .gd-check-list .main-user-consent-request .input-checkbox,
main.gd-checkout .gd-check-list .main-user-consent-request input[type="checkbox"] {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin: 2px 0 0;
  border-radius: 3px;
}

main.gd-checkout .gd-check-list .main-user-consent-request-announce,
main.gd-checkout .gd-check-list .main-user-consent-request-announce-link,
main.gd-checkout .gd-check-list .main-user-consent-request a {
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  text-decoration: none;
}

main.gd-checkout .gd-checkout__aside .gd-checkout__submit {
  width: 100%;
  max-width: none;
  margin-top: 16px;
}

main.gd-checkout .gd-checkout__submit:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

main.gd-thanks .gd-thanks__title {
  font-size: var(--gd-cabinet-title, 28px);
  font-weight: 600;
  line-height: 1.25;
}

main.gd-thanks .gd-thanks__order h2 {
  margin: 0 0 12px;
  font-size: var(--gd-cabinet-section, 20px);
  font-weight: 700;
  line-height: 1.3;
}

main.gd-thanks .gd-thanks__lead,
main.gd-thanks .gd-thanks__status,
main.gd-thanks .gd-thanks__phone {
  font-size: var(--gd-cabinet-body, 17px);
  line-height: 1.5;
}

main.gd-thanks .gd-thanks__phone-line {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

main.gd-thanks .gd-thanks__phone-line a {
  color: inherit;
  text-decoration: none;
}

main.gd-thanks .gd-thanks__im,
main.gd-thanks .contacts-popup__im {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

main.gd-thanks .gd-thanks__im a,
main.gd-thanks .contacts-popup__im-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  line-height: 0;
  color: inherit;
}

main.gd-thanks .gd-thanks__im svg,
main.gd-thanks .contacts-popup__im-link svg {
  display: block;
  width: 20px;
  height: 20px;
}

main.gd-thanks .gd-thanks__actions .btn {
  width: 100%;
}

main.gd-subscribe {
  margin-top: 48px;
}

main.gd-subscribe .gd-order__layout {
  grid-template-columns: 220px minmax(0, 1fr);
}

main.gd-subscribe .gd-cabinet-nav {
  grid-column: 1;
}

main.gd-subscribe .gd-subscribe__main {
  min-width: 0;
}

main.gd-subscribe .gd-subscribe__form {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  max-width: 560px;
}

main.gd-subscribe .gd-subscribe__form .btn {
  width: auto;
}

main.gd-subscribe .gd-subscribe__ok,
main.gd-subscribe .gd-subscribe__error {
  margin: 0;
  font-size: var(--gd-cabinet-small, 14px);
  line-height: 1.4;
}

main.gd-subscribe .gd-subscribe__ok {
  color: var(--gd-text-secondary, #5c5c5c);
}

main.gd-subscribe .gd-subscribe__error {
  color: #b42318;
}

@media (max-width: 1024px) {
  main.gd-subscribe .gd-order__layout {
    grid-template-columns: 1fr;
  }
}

/* Главная: hero на всю ширину контейнера, как в превью */
.gd-home > #HERO_BANNER.main-page-block {
  margin-top: 0;
}

.gd-home > #HERO_BANNER .hero.hero--compact {
  margin-top: -24px;
}

/* gd_hero не грузит hero_banner/style.css: без absolute right:0 не работает, кадр едет влево */
.gd-home #HERO_BANNER .hero.hero--compact .hero__background {
  position: absolute !important;
}

.gd-popular__card[hidden] {
  display: none !important;
}

/* Главная: блог — фото сверху, заголовок и анонс под ним */
.gd-home #BLOG .blog-small__item,
.gd-home #BLOG .blog-small__item.keen-slider__slide {
  height: auto !important;
  padding: 0;
  justify-content: flex-start;
}

.gd-home #BLOG .blog-small__image {
  position: relative !important;
  inset: auto;
  z-index: auto;
  width: 100%;
  height: auto !important;
  aspect-ratio: 16 / 9;
  margin: 0;
}

.gd-home #BLOG .blog-small__image .lazy-loader,
.gd-home #BLOG .blog-small__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gd-home #BLOG .blog-small__text-container {
  height: auto !important;
  max-height: none;
  margin-top: 0;
  padding: var(--gd-space-3);
  background: transparent;
}

.gd-home #BLOG .blog-small__title {
  color: var(--gd-text-primary);
}

.gd-home #BLOG .blog-small__text {
  color: var(--gd-text-secondary);
}

.gd-home #WEBFORM .mainpage-webform > .form__header:not(.gd-home-webform-header) {
  display: none;
}

.gd-home #BLOG .lazy-loader loader-element {
  display: none !important;
}

.gd-home #BLOG .blog-small__image img {
  opacity: 1 !important;
  visibility: visible !important;
}

/* showModal() держит попап в top layer — тост поднимаем через popover / overflow: visible */
.gd-home #gd-bottle-modal {
  overflow: visible;
}

.gd-home #gd-bottle-modal[open] > .top-message {
  z-index: 20;
}

body.gd-modal-open .top-message:popover-open {
  position: fixed !important;
  inset: auto !important;
  top: 163px !important;
  right: auto !important;
  bottom: auto !important;
  left: 50% !important;
  margin: 0 !important;
  width: max-content !important;
  height: auto !important;
  transform: translateX(-50%) !important;
  overflow: visible;
}

.gd-about .gd-about__consent .main-user-consent-request {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0;
  max-width: 100%;
  color: var(--gd-text-secondary);
  font-size: 14px;
  line-height: 1.45;
}

.gd-about .gd-about__consent .main-user-consent-request .input-checkbox,
.gd-about .gd-about__consent .main-user-consent-request input[type="checkbox"] {
  flex-shrink: 0;
  margin-top: 3px;
}

.gd-about .gd-about__consent .main-user-consent-request-announce,
.gd-about .gd-about__consent .main-user-consent-request-announce-link,
.gd-about .gd-about__consent .main-user-consent-request a,
.gd-about .gd-about__consent .pseudo-link {
  color: inherit;
}

/* П-4: шапка без поиска до 1024, слой поиска, карточки, фильтр */
@media (max-width: 1024px) {
  .header__search-wrapper {
    display: none !important;
  }

  main {
    margin-top: 16px;
  }
}

@media (min-width: 1025px) {
  .header__search.search {
    position: relative;
  }

  .header__search .search-dropdown {
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    width: auto;
    transform: none;
  }

  .header__search.search:focus-within .search-label {
    border-color: var(--primary);
  }

  .header__search .search-input:focus,
  .header__search .search-input:focus-visible {
    outline: none;
    box-shadow: none;
  }

  .header__search .gd-search-all {
    flex: 0 0 auto;
    margin: 0;
    padding: 12px 16px;
    background: var(--gd-bg-surface, #fff);
    border-top: 1px solid var(--gd-border, #ced4da);
  }

  .header__search .search-dropdown-list {
    max-height: min(60vh, 520px);
  }

  .header__search .search-dropdown-item.text-center {
    position: sticky;
    bottom: 0;
    z-index: 2;
    margin: 0 -24px -24px;
    padding: 12px 24px;
    background: var(--gd-bg-surface);
  }
}

.gd-search {
  position: fixed;
  left: 0;
  right: 0;
  z-index: 200;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--gd-bg-page);
  color: var(--gd-text-primary);
}

.gd-search[hidden],
.gd-search__all[hidden],
.gd-search__clear[hidden] {
  display: none !important;
}

html.gd-search-open .gd-tabbar {
  transform: translateY(120%);
}

.gd-search__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 56px;
  flex: 0 0 56px;
  padding: 0 16px 0 8px;
  border-bottom: 1px solid var(--gd-border);
  background: var(--gd-bg-surface);
}

.gd-search__back {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 22px;
  background: transparent;
  color: var(--gd-text-primary);
  cursor: pointer;
}

.gd-search__combo {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  height: 44px;
}

.gd-search__field {
  display: block;
  width: 100%;
  height: 44px;
  margin: 0;
  padding: 0 44px 0 12px;
  box-sizing: border-box;
  border: 1px solid var(--gd-border-strong);
  border-radius: 8px;
  background: var(--gd-bg-page);
  color: var(--gd-text-primary);
  font-size: 16px;
}

.gd-search__clear {
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  color: var(--gd-text-muted);
}

.gd-search__clear svg {
  width: 20px;
  height: 20px;
}

.gd-search__body {
  flex: 1 1 auto;
  overflow: auto;
  padding: 12px 16px 8px;
}

.gd-search__label {
  margin: 12px 0 8px;
  color: var(--gd-text-muted);
  font-size: 13px;
  font-weight: 600;
}

.gd-search__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.gd-search__chip,
.gd-results__chip,
.gd-results__reset {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  height: 36px;
  padding: 6px 12px;
  border: 1px solid rgb(206, 212, 218);
  border-radius: 8px;
  background: var(--gd-bg-surface);
  color: var(--gd-text-primary);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
}

.gd-search__recent,
.gd-search__row,
.gd-search__clear-all {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 44px;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  text-decoration: none;
}

.gd-search__recent > button[data-gd-query] {
  flex: 1 1 auto;
  min-height: 44px;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
}

.gd-search__x {
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  color: var(--gd-text-muted);
  font-size: 20px;
}

.gd-search__purpose img,
.gd-search__product img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  flex: 0 0 48px;
  border-radius: 8px;
}

.gd-search__product {
  display: flex;
  gap: 12px;
  min-height: 64px;
  padding: 8px 0;
  color: inherit;
  text-decoration: none;
}

.gd-search__meta {
  margin: 0;
  color: var(--gd-text-muted);
  font-size: 13px;
}

.gd-search__all {
  margin: 8px 16px 12px;
  width: auto;
  align-self: stretch;
}

.gd-search__pick {
  display: inline-flex;
  margin-top: 12px;
  color: var(--gd-accent-text);
  font-weight: 500;
}

.gd-results-top {
  display: none;
}

@media (max-width: 1024px) {
  .gd-results-top {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
  }

  .gd-results-top form {
    flex: 1 1 auto;
  }

  .catalog-item {
    display: flex;
    flex-direction: column;
    height: 100%;
  }

  .catalog-item__card-controls { order: 1; }
  .catalog-item__image-container { order: 2; }
  .catalog-item__stock { order: 3; }
  .catalog-item__name { order: 4; }
  .catalog-item__spec { order: 5; }
  .catalog-item__price-container { order: 6; }
  .catalog-item__hint { order: 7; }
  .catalog-item__buttons-block { order: 8; }

  .catalog-item__price-val,
  .catalog-item__price-unit,
  .catalog-item__hint {
    white-space: nowrap;
  }

  .catalog-item__buttons-block .btn {
    height: 40px;
    width: 100%;
  }

  .catalog__filter-container {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
  }

  .catalog__filter-container .sort {
    min-width: 0;
    max-width: 46%;
  }

  .catalog__sort .sort__title {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: block;
  }

  .filter:not(.d-none) {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    top: auto;
    z-index: 200;
    max-height: calc(100% - 56px);
    border-radius: 24px 24px 0 0;
    background: var(--gd-bg-surface);
    color: var(--gd-text-primary);
  }
}

@media (max-width: 1024px) {
  .catalog-section__container,
  .catalog__wrapper--sidebar .catalog-section__container {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    column-gap: 8px !important;
    row-gap: 8px !important;
  }
}

@media (max-width: 767px) {
  h1,
  .catalog__breadcrumbs-title {
    padding-left: 0;
    padding-right: 0;
  }

  .product-list,
  .catalog-section-list,
  .catalog-section .row {
    gap: 8px;
  }
}

.filter .input-checkbox {
  width: 18px;
  height: 18px;
  border-radius: 3px;
  margin-right: 8px;
}

.filter [data-role^="count_"] {
  color: var(--secondary-600);
}

.filter__item-control.disabled,
.filter .disabled {
  color: var(--secondary-500);
  pointer-events: none;
}

.catalog-item .favorite-btn svg {
  fill: transparent;
  stroke: currentColor;
}

.catalog-item .favorite-btn.active svg,
.catalog-item .favorite-btn[data-favorite="true"] svg {
  fill: var(--primary);
  stroke: var(--primary);
}

.catalog-item .compare-btn {
  color: var(--dark);
}

.catalog-item .compare-btn[data-compared="true"] {
  color: var(--primary);
}

.gd-results-sort {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 12px;
}

.gd-results-sort a {
  min-height: 36px;
  padding: 6px 12px;
  border: 1px solid rgb(206, 212, 218);
  border-radius: 8px;
  color: var(--gd-text-primary);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
}

.gd-results-sort a.is-active {
  border-color: var(--primary);
  background: var(--primary-100);
}

.gd-fav-empty .btn {
  margin-top: 16px;
}

@media (max-width: 1024px) {
  .catalog__filter-container {
    max-width: 100%;
  }

  .catalog__sort.sort__btn,
  .catalog__filter-container .sort__btn {
    flex: 1 1 auto;
    min-width: 0;
    max-width: 46%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .catalog-item__image-container,
  .catalog-item .keen-slider {
    max-width: 100%;
    overflow: hidden;
  }
}

/* Окно cookies: цвета с токенов, на телефоне не выше 120 px */
.cookies-form .swal2-popup {
  background: var(--gd-bg-surface) !important;
  color: var(--gd-text-primary) !important;
  border: 1px solid var(--gd-border) !important;
}

@media (max-width: 1024px) {
  .hero.hero--compact .hero__outer,
  .hero.hero--compact .hero__inner,
  .hero.hero--compact .hero__slide,
  .hero.hero--compact .hero__slide--gd-client,
  .gd-hero .swiper-slide {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
  }

  #HERO_BANNER .hero--fullscreen .hero__wrapper,
  #HERO_BANNER .hero.hero--compact .hero__wrapper,
  .header--2 + .container #HERO_BANNER .hero--fullscreen .hero__wrapper,
  .hero.hero--compact .hero__wrapper.gd-hero.swiper {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow: hidden !important;
  }

  .gd-hero .swiper-wrapper {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
  }

  .hero.hero--compact .hero__slide--gd-client {
    align-items: stretch;
    box-sizing: border-box;
    padding-bottom: 8px;
  }

  .hero.hero--compact .hero__slide--gd-client .hero__title,
  .hero.hero--compact .hero__title--banner3 {
    width: auto;
    max-width: 100%;
    white-space: normal;
    overflow-wrap: break-word;
    word-break: normal;
  }

  .gd-hero-copy {
    box-sizing: border-box;
    padding-left: 16px;
    padding-right: 16px;
    padding-bottom: 36px;
  }
}

@media (max-width: 767px) {
  .gd-hero__arrow {
    display: none !important;
  }

  .gd-hero__dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 8px;
    z-index: 4;
    display: flex;
    justify-content: center;
  }

  .gd-hero.swiper {
    padding-bottom: 28px;
  }
}

@media (min-width: 768px) {
  .gd-hero__dots {
    display: none;
  }
}

@media (min-width: 768px) and (max-width: 1024px) {
  .gd-hero-copy {
    padding-left: 16px;
    padding-right: 16px;
    padding-bottom: 72px;
  }

  .gd-hero__arrow {
    top: auto;
    bottom: 16px;
    transform: none;
  }
}

.header__logo,
.header__logo picture,
.header__logo-wrapper {
  height: auto;
  max-height: none;
  overflow: visible;
}

.header__logo,
.header__logo picture {
  display: block;
  width: min(240px, calc(100vw - 96px));
}

.header__logo-image {
  width: 100% !important;
  height: auto !important;
  max-width: none !important;
  max-height: none !important;
  aspect-ratio: 4905 / 1047;
  object-fit: contain;
}

@media (max-width: 1024px) {
  .header--2 .header__main.container {
    grid-template-areas: "logo catalog";
    grid-template-rows: auto;
  }

  .header__logo-wrapper {
    margin-bottom: 8px;
  }
}

/* Кабинет: плитки меню до 1023 px, с 1024 колонка как раньше. */
@media (max-width: 1023px) {
  .gd-cabinet-nav,
  .gd-cabinet-menu .sidebar__slider {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    width: 100% !important;
    margin: 0 0 24px;
    transform: none !important;
    overflow: visible !important;
  }

  .gd-cabinet-nav__group {
    display: contents;
    margin: 0;
    padding: 0;
    border: 0;
  }

  .gd-cabinet-nav__group-title {
    display: none;
  }

  .gd-cabinet-nav a,
  .gd-cabinet-menu .sidebar__item {
    min-width: 0 !important;
    width: auto !important;
    max-width: none !important;
    height: auto !important;
    min-height: 44px;
    margin: 0;
    padding: 0;
    transform: none !important;
    position: static !important;
  }

  .gd-cabinet-nav a,
  .gd-cabinet-menu .sidebar__item a {
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    min-height: 44px;
    padding: 8px;
    border: 1px solid var(--gd-border, #e6e6e6);
    border-radius: 8px;
    background: var(--gd-bg-surface, #fff);
    color: var(--gd-text-primary, #2c2c2c);
    font-size: 13px;
    font-weight: 500;
    line-height: 1.25;
    text-align: center;
    text-decoration: none;
    box-shadow: none;
  }

  .gd-cabinet-nav a.is-current,
  .gd-cabinet-menu .sidebar__item a.text-primary {
    border: 1px solid var(--primary, #8450db);
    border-color: var(--primary, #8450db);
    background: color-mix(in srgb, var(--primary, #8450db) 12%, var(--gd-bg-surface, #fff));
    box-shadow: none;
    color: var(--gd-text-primary, #2c2c2c);
    font-weight: 500;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .gd-cabinet-nav,
  .gd-cabinet-menu .sidebar__slider {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.gd-order__head h1 span {
  display: inline-block;
  color: var(--gd-text-secondary, #5c5c5c);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}

.gd-order__head:has(.gd-order__invoice) {
  margin-bottom: 24px;
}

.gd-order__invoice {
  margin-bottom: 0;
}

.gd-order-status__step {
  min-height: 76px;
  justify-content: flex-start;
  gap: 6px;
}

@media (min-width: 768px) and (max-width: 1023px) {
  .gd-order-status {
    max-width: 100%;
  }

  .gd-order-status__list {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 76px;
    grid-template-columns: none;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
  }

  .gd-order-status__step {
    width: 76px;
    white-space: normal;
    overflow-wrap: normal;
    word-break: normal;
  }
}

@media (max-width: 767px) {
  .gd-order-status,
  .gd-order-status__list {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow: visible;
    gap: 0;
  }

  .gd-order-status__step {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    height: 76px;
    min-height: 76px;
    max-height: 76px;
    gap: 6px;
    padding: 0;
    white-space: normal;
    overflow: hidden;
  }

  .gd-order-status__step::after {
    width: 100%;
    height: 5px;
    margin-top: 0;
    padding-top: 0;
    flex: 0 0 5px;
  }
}

.gd-order-status__step::after {
  margin-top: 6px;
  padding-top: 0;
}

.gd-order__aside .gd-order__totals {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  margin-bottom: 16px;
}

.gd-order__aside .gd-order__totals > div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  width: 100%;
}

.gd-order__aside .gd-order__totals dd {
  margin: 0;
  text-align: right;
  white-space: nowrap;
}

.gd-order__aside .gd-order__actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.gd-orders-card__actions,
.gd-orders-card__actions .btn,
.gd-order__aside .gd-order__actions .btn {
  display: flex;
  justify-content: center;
  width: 100%;
  max-width: none;
}

[data-theme="dark"] .gd-orders-badge--warn {
  background: #ff9935;
  color: #fff;
}

[data-theme="dark"] .gd-orders-badge--ok {
  background: #18b131;
  color: #fff;
}

[data-theme="dark"] .gd-orders-badge--error {
  background: #f66767;
  color: #fff;
}

[data-theme="dark"] .gd-orders--history .gd-orders-card {
  background: rgb(39, 35, 56);
  color: var(--gd-text-primary, #eceaf2);
}

[data-theme="dark"] .blog-small__badge,
[data-theme="dark"] .blog-small__text-small {
  background: #2c2c2c;
  color: #fff;
}

[data-theme="dark"] .bx-yandex-map,
[data-theme="dark"] .bx-yandex-view-map {
  color: #fff;
  background: #2c2c2c;
}

.input-checkbox {
  width: 18px !important;
  height: 18px !important;
  min-width: 18px;
  max-width: 18px;
  flex: 0 0 18px;
}

.input-checkbox::before {
  width: 18px !important;
  height: 18px !important;
  pointer-events: none;
}

@media (max-width: 1024px) {
  .gd-about__cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gd-about__highlight {
    padding-right: 98px;
  }

  .gd-about__highlight::before {
    background: url("../img/brand/glassdecorfavicon.svg") no-repeat right 6px center / auto 54%;
    opacity: 0.11;
  }

  .gd-promo-page__head h1 {
    position: relative;
  }

  .gd-promo-page__head h1::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: -16px;
    width: 4px;
    background: var(--gd-sale, #e24a4a);
  }
}

.gd-soon__title {
  padding-left: 16px;
  padding-right: 16px;
}

.gd-thanks__title {
  white-space: normal;
}

.gd-thanks__id,
.gd-thanks__num {
  white-space: nowrap;
}

@media (max-width: 390px) {
  .gd-thanks__title,
  main.gd-thanks .gd-thanks__title {
    font-size: 20px;
    white-space: normal;
  }
}

.gd-thanks__order .gd-checkout__line.gd-thanks__line {
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "name sum"
    "status status"
    "meta meta"
    "unit unit";
  column-gap: 12px;
  row-gap: 4px;
  align-items: baseline;
}

.gd-thanks__line-name {
  grid-area: name;
}

.gd-thanks__line-sum {
  grid-area: sum;
  white-space: nowrap;
}

.gd-thanks__line .gd-checkout__line-status {
  grid-area: status;
}

.gd-thanks__line-meta,
.gd-thanks__line-unit {
  color: var(--gd-text-secondary, #6b7280);
  font-size: 14px;
}

.gd-thanks__line-meta {
  grid-area: meta;
}

.gd-thanks__line-unit {
  grid-area: unit;
}

.gd-faq__item {
  margin: 0 0 8px;
  background: var(--gd-bg-muted, #f7f7f8);
  border-radius: 16px;
}

.gd-faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 16px 24px;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
  text-align: left;
  cursor: pointer;
}

.gd-faq__q > span {
  min-width: 0;
}

.gd-faq__arrow {
  flex: 0 0 24px;
  transform: none;
}

.gd-faq__item.is-open .gd-faq__arrow {
  transform: rotate(90deg);
}

.gd-faq__a {
  padding: 0 24px 16px;
  color: inherit;
}

.gd-exclusive__whys {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.gd-exclusive__why {
  padding: 16px;
  border: 1px solid var(--gd-border, #e5e7eb);
  border-radius: 16px;
}

.gd-exclusive__btn {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: fit-content;
  height: auto;
  min-height: 52px;
  padding: 12px 16px;
  line-height: 1.25;
  white-space: nowrap;
}

.gd-exclusive__btn span {
  white-space: nowrap;
}

@media (max-width: 1024px) {
  .gd-exclusive__whys {
    grid-template-columns: 1fr;
  }

  .gd-exclusive__btn {
    width: 100%;
  }
}

[data-theme="dark"] .region-choose-modal .select-city__groups,
[data-theme="dark"] .region-choose-modal .select-city__list span,
[data-theme="dark"] .region-choose-modal .select-city__dropdown__title {
  color: var(--gd-text-primary, #eceaf2);
}

/* F.A.Q. и «Декор»: до 1024 крошки одной строкой, заголовок ниже. */
@media (max-width: 1024px) {
  .gd-faq-page .title-container,
  .gd-exclusive .title-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    width: 100%;
    margin-bottom: 24px;
  }

  .gd-faq-page .breadcrumbs,
  .gd-exclusive .breadcrumbs,
  .gd-faq-page .breadcrumbs__list,
  .gd-exclusive .breadcrumbs__list {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    font-size: 14px;
    line-height: 1.2;
    color: var(--gd-text-secondary, #5c5c5c);
    white-space: nowrap;
  }

  .gd-faq-page .breadcrumbs__item,
  .gd-exclusive .breadcrumbs__item,
  .gd-faq-page .breadcrumbs__link,
  .gd-exclusive .breadcrumbs__link,
  .gd-faq-page .breadcrumbs__item span,
  .gd-exclusive .breadcrumbs__item span {
    color: var(--gd-text-secondary, #5c5c5c);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.2;
    white-space: nowrap;
  }

  .gd-faq-page .title-container h1,
  .gd-exclusive .title-container h1 {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
    text-align: left;
  }
}

/* fix-50: кнопки, окна, заголовки, флаги, характеристики */
:root {
  --primary: #2f1d69;
  --primary-hover: #174a9a;
}
[data-theme="dark"] {
  --primary: #6e50cf;
  --primary-hover: #8b6fe0;
}
.btn:not(.btn-secondary),
.btn:not(.btn-secondary):hover,
.btn:not(.btn-secondary):focus,
.btn:not(.btn-secondary):active,
.btn:not(.btn-secondary):focus-visible {
  background-color: var(--gd-brand, #2f1d69);
  border-color: var(--gd-brand, #2f1d69);
  color: #fff;
}
[data-theme="dark"] .swal2-popup,
[data-theme="dark"] .contacts-popup,
[data-theme="dark"] .regions__choose_popup,
[data-theme="dark"] .region-choose-modal,
[data-theme="dark"] .popup-window {
  background: var(--gd-bg-surface, #1e1b2a) !important;
  color: var(--gd-text-primary, #eceaf2) !important;
}
[data-theme="dark"] .swal2-html-container,
[data-theme="dark"] .swal2-title,
[data-theme="dark"] .contacts-popup a,
[data-theme="dark"] .contacts-popup span,
[data-theme="dark"] .region-choose-modal span {
  color: var(--gd-text-primary, #eceaf2);
}
.input-flags-flag {
  display: inline-block;
  width: 20px;
  height: 14px;
  min-width: 20px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 14'%3E%3Crect width='20' height='14' fill='%23fff'/%3E%3Crect width='20' height='4.67' y='4.67' fill='%230039a6'/%3E%3Crect width='20' height='4.67' y='9.33' fill='%23d52b1e'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}
@media (max-width: 1024px) {
  .gd-faq-page .title-container h1,
  .gd-exclusive .title-container h1,
  .gd-about__head h1,
  .gd-promo-page__head h1,
  .gd-page-head h1 {
    font-size: 30px;
    font-weight: 700;
    line-height: 1.2;
    padding-left: 0;
  }
  .gd-page-crumbs,
  .gd-page-head {
    padding-left: 0;
    padding-right: 0;
  }
  .gd-page-head {
    margin: 0 0 16px;
  }
  .gd-page-head h1 {
    margin: 0;
  }
  .tab__list--properties-tab .tab__list-item {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 0 6px;
  }
  .tab__list--properties-tab .tab__list-item > span + span {
    font-weight: 700;
    white-space: nowrap;
  }
  .swal2-popup {
    padding-left: 16px !important;
    padding-right: 16px !important;
    box-sizing: border-box;
  }
}
@media (max-width: 389px) {
  .gd-exclusive__btn,
  .gd-exclusive__btn span {
    white-space: normal;
    line-height: 1.25;
  }
  .gd-exclusive__btn {
    flex-direction: column;
    padding-top: 12px;
    padding-bottom: 12px;
  }
}


/* fix-50b: эти правила в конце файла, потому что gd-mobile.css Битрикс вставляет раньше */
@media (min-width: 1025px) {
  .regions__choose_popup.gd-city-ask {
    background: var(--gd-bg-surface, #fff);
    color: var(--gd-text-primary, #2c2c2c);
    border: 1px solid var(--gd-border, #d9d9de);
    border-radius: 16px;
    box-shadow: 0 12px 32px rgba(20, 12, 40, 0.16);
    padding: 16px;
    z-index: 40;
    width: max-content;
    min-width: 320px;
    max-width: min(420px, calc(100vw - 32px));
    box-sizing: border-box;
  }
  .gd-city-ask__close,
  .gd-city-ask__note {
    display: none;
  }
  .gd-city-ask__head {
    display: block;
  }
  .regions__choose_popup.gd-city-ask .select-city__dropdown__title {
    display: flex;
    justify-content: center;
    margin: 0 0 16px;
    text-align: center;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.3;
  }
  .gd-city-ask__actions {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 12px;
  }
  .gd-city-ask__actions .btn {
    flex: 1 1 auto;
    width: auto;
    min-width: 128px;
    white-space: nowrap;
  }
  .gd-results__bar,
  .gd-results-sort-drop {
    display: none;
  }
}

@media (max-width: 1024px) {
  #gd-city-sheet #regions_choose_component_dropdown,
  .gd-city-ask {
    padding: 16px 16px calc(16px + env(safe-area-inset-bottom, 0px));
    background: var(--gd-bg-surface, #fff);
    color: var(--gd-text-primary, #2c2c2c);
    box-sizing: border-box;
  }
  .gd-city-ask__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
  }
  .gd-city-ask .select-city__dropdown__title {
    display: block;
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
    text-align: left;
  }
  .gd-city-ask__close {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    border: 0;
    background: transparent;
    color: inherit;
    font-size: 28px;
    line-height: 1;
  }
  .gd-city-ask__note {
    display: block;
    margin: 8px 0 16px;
    font-size: 16px;
    line-height: 1.4;
  }
  .gd-city-ask__actions {
    display: flex;
    flex-direction: row;
    gap: 8px;
  }
  .gd-city-ask__actions .btn {
    flex: 1 1 0;
    min-height: 44px;
    width: auto;
  }
  #gd-chat .gd-sheet__panel {
    padding-left: 16px;
    padding-right: 16px;
    box-sizing: border-box;
  }
  #gd-chat h2,
  #gd-chat .gd-sheet__title {
    font-size: 18px;
    font-weight: 700;
  }
  #gd-chat .contacts-popup__im,
  #gd-chat .contacts-popup__im-link {
    width: 100%;
    box-sizing: border-box;
    margin-left: 0;
    margin-right: 0;
  }
  #gd-chat .contacts-popup__im-link {
    color: #fff;
    min-height: 52px;
  }
  #gd-chat .contacts-popup__im-link svg {
    width: 24px;
    height: 24px;
    color: #fff;
  }
  .catalog__filter-container,
  .gd-results-tools {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 8px 12px;
  }
  .gd-results-count {
    flex: 1 0 100%;
    margin: 0;
  }
  .gd-results-sort {
    display: none;
  }
  .gd-results__bar {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 12px;
  }
  .gd-results__bar .gd-search__back {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    color: var(--gd-text-primary);
    text-decoration: none;
  }
  .gd-results__bar .gd-search__combo {
    position: relative;
    flex: 1 1 auto;
    min-width: 0;
    height: 44px;
  }
  .gd-results__bar .gd-search__field {
    width: 100%;
    height: 44px;
    padding-right: 44px;
  }
  .gd-results__bar .gd-search__field::-webkit-search-cancel-button,
  .gd-results__bar .gd-search__field::-webkit-search-decoration {
    -webkit-appearance: none;
    appearance: none;
    display: none;
  }
  .gd-results__bar .gd-search__clear {
    position: absolute;
    top: 0;
    right: 0;
  }
  body:has(.gd-results__bar) .breadcrumbs__back {
    display: none;
  }
  .gd-results-sort-drop {
    position: relative;
    margin-left: auto;
    min-width: 0;
    max-width: calc(100% - 120px);
  }
  .gd-results-sort-drop .sort__btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    max-width: 100%;
    min-height: 44px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--gd-text-primary);
  }
  .gd-results-sort-drop .sort__title {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .gd-results-sort-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 4px);
    z-index: 30;
    min-width: 220px;
    display: flex;
    flex-direction: column;
    padding: 8px;
    background: var(--gd-bg-surface, #fff);
    color: var(--gd-text-primary, #2c2c2c);
    border: 1px solid var(--gd-border, #d9d9de);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(20, 12, 40, 0.12);
  }
  .gd-results-sort-menu[hidden] {
    display: none;
  }
  .gd-results-sort-menu a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 0 12px;
    color: inherit;
    text-decoration: none;
  }
  .gd-results-sort-menu a.is-active {
    font-weight: 700;
  }
  .catalog-item__card-controls {
    display: flex;
    flex-direction: row;
    gap: 4px;
    top: 8px;
    right: 8px;
  }
  .catalog-item__card-controls-item,
  .catalog-item__card-controls button {
    width: 40px;
    height: 40px;
    background: var(--gd-bg-surface, #fff);
    border-radius: 50%;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
  }
  .gd-page-crumbs,
  .gd-page-head {
    padding-left: 0;
    padding-right: 0;
  }
  .gd-page-head {
    margin: 0 0 16px;
  }
}

@media (max-width: 1024px) {
  .catalog__filter-container {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    column-gap: 8px;
    width: 100%;
  }
  .catalog__filter-container .catalog__filter-btn {
    flex: 0 0 auto;
  }
  .catalog__filter-container > .sort,
  .catalog__filter-container > .catalog__sort {
    display: flex;
    justify-content: flex-end;
    flex: 1 1 auto;
    min-width: 0;
    max-width: none;
    margin-left: 8px;
  }
  .catalog__sort.sort__btn,
  .catalog__filter-container .sort__btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    flex: 0 1 auto;
    min-width: 0;
    max-width: 100%;
    margin-left: auto;
    overflow: hidden;
  }
  .catalog__filter-container .sort__title {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .catalog__filter-container .sort__icon {
    flex: 0 0 24px;
  }
}

.contacts-popup__im-link[aria-label="MAX"] svg {
  width: 20px;
  height: 20px;
  display: block;
}

.gd-gallery-dots {
  display: none;
  justify-content: center;
  gap: 8px;
  margin: 8px 0 0;
}
@media (max-width: 1024px) {
  .detail-product .product-gallery {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }
  .detail-product .product-gallery .gd-gallery-dots {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    align-self: stretch;
    width: 100%;
    height: auto;
    flex: 0 0 auto;
    margin: 8px 0 0;
    position: static;
  }
}
.gd-gallery-dots__item {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(44, 44, 44, 0.28);
}
.gd-gallery-dots__item.is-active {
  background: var(--gd-brand, #2f1d69);
}
[data-theme="dark"] .gd-gallery-dots__item {
  background: rgba(236, 234, 242, 0.35);
}
[data-theme="dark"] .gd-gallery-dots__item.is-active {
  background: var(--gd-brand, #6e50cf);
}

/* Карточка каталога: блок покупки внизу карточки, счётчик в ширину кнопки */
.catalog-item > .catalog-item__buttons-block {
  margin-top: auto;
  padding-top: 12px;
}
.catalog-item__buttons-block .counter {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  height: 40px;
}
.catalog-item__buttons-block .counter__button {
  flex: 0 0 40px;
  width: 40px;
  min-width: 0;
  height: 40px;
  padding: 0;
}
.catalog-item__buttons-block .counter__button svg {
  width: 24px;
  height: 24px;
}
.catalog-item__buttons-block .counter__label {
  flex: 1 1 auto;
  min-width: 0;
}
.catalog-item__buttons-block .counter__input {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
}
@media (min-width: 1025px) {
  .catalog-item__buttons-block .position-relative > .btn,
  .catalog-item__buttons-block .position-relative > .counter {
    box-sizing: border-box;
    width: 144px;
    max-width: 100%;
    height: 44px;
  }
  .catalog-item__buttons-block .counter__button {
    flex-basis: 44px;
    width: 44px;
    height: 44px;
  }
}

/* Мессенджеры кружками рядом с площадками */
.gd-mp-badge--wa {
  background-color: #25d366;
}
.gd-mp-badge--tg {
  background-color: #2aabee;
}
.gd-mp-badge--max {
  background-color: #471aff;
}
.gd-mp-badge--wa svg,
.gd-mp-badge--tg svg,
.gd-mp-badge--max svg {
  display: block;
  flex: 0 0 auto;
  width: 60%;
  height: 60%;
}
.gd-markets__im {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.gd-markets__im-link,
.gd-markets__im-link:link,
.gd-markets__im-link:visited {
  display: inline-flex;
  border-radius: 50%;
  text-decoration: none;
}
.gd-markets__im-link:hover,
.gd-markets__im-link:focus-visible {
  opacity: 0.85;
}

/* Заголовок «Заказ принят»: по левому краю текста, без отступа оформления */
.gd-thanks__title,
main.gd-thanks .gd-thanks__title {
  box-sizing: border-box;
  width: auto;
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
  padding-left: 0 !important;
  padding-right: 0 !important;
  text-align: left;
}

/* Статус товара уже показан под названием. Вторая подпись в ряду значков сжимается до ширины значка. */
.detail-buttons-container [data-entity="mess-not-avail"] {
  display: none !important;
}
