/* ==========================================================================
   FLUID-EX Store (дочерняя тема) — проектные переопределения.
   Подключается после всех слоёв agreman-core (tokens → base → layout → components → brand).
   Правило: только осмысленные проектные правки с комментарием; не дублировать родителя.
   ========================================================================== */

/* Пример: чуть плотнее сетка каталога на широких экранах. */
@media (min-width: 1440px) {
  .fx-grid--products {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* Пример: акцентная подложка для полосы оптового запроса (появится вместе с формой). */
.fx-cta--wholesale {
  background: var(--fx-bg-accent-soft);
  border-color: var(--fx-accent);
}

/* --- Бренды: логотипы в чипах и на странице бренда --- */
.fx-chip--brand {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: #fff;
  border: 1px solid #E3E3DE;
}
.fx-chip--brand:hover { border-color: #101010; }
.fx-chip__logo {
  display: block;
  height: 32px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
}
.fx-chip__name {
  font-size: 12px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #5C5C5C;
}
.fx-brand__logo {
  margin: 0 0 16px;
}
.fx-brand__logo img {
  display: block;
  height: 64px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
}
@media (max-width: 560px) {
  .fx-chip__logo { height: 26px; }
  .fx-brand__logo img { height: 48px; }
}

/* --- Главная: блок «Новые позиции» и «Как купить» --- */
.fx-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.fx-link-more {
  font-size: 14px;
  text-decoration: underline;
  color: #101010;
}
.fx-steps__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  counter-reset: none;
}
.fx-steps__item {
  position: relative;
  padding: 24px;
  border: 1px solid #E3E3DE;
  border-radius: 12px;
  background: #fff;
}
.fx-steps__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #F0B000;
  color: #101010;
  font-weight: 700;
  margin-bottom: 12px;
}
.fx-steps__title { margin: 0 0 6px; font-size: 17px; }
.fx-steps__text { margin: 0; color: #5C5C5C; font-size: 14px; line-height: 1.5; }

/* --- Hero с фоновым изображением (главная) --- */
.fx-hero {
  background-color: #101010;
  background-image: linear-gradient(100deg, rgba(16,16,16,.94) 0%, rgba(16,16,16,.82) 38%, rgba(16,16,16,.35) 72%, rgba(16,16,16,.55) 100%), var(--fx-hero-image, none);
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  border-bottom: 0;
}
.fx-hero__title {
  color: #FFFFFF;
}
.fx-hero__subtitle {
  color: rgba(255,255,255,.80);
}
.fx-hero__overline {
  color: #F0B000;
}
.fx-hero__trust {
  color: rgba(255,255,255,.80);
}
.fx-hero__trust-item .fx-icon {
  color: #F0B000;
}
.fx-hero .fx-btn--ghost {
  color: #FFFFFF;
  border-color: rgba(255,255,255,.35);
}
.fx-hero .fx-btn--ghost:hover {
  border-color: #FFFFFF;
}
@media (max-width: 960px) {
  .fx-hero {
    background-image: linear-gradient(180deg, rgba(16,16,16,.90) 0%, rgba(16,16,16,.86) 100%), var(--fx-hero-image, none);
  }
}

/* Hero: логотип справа убран, текст на всю ширину */
.fx-hero__inner {
  grid-template-columns: minmax(0, 1fr);
}
.fx-hero__content {
  max-width: 760px;
}
.fx-hero__title {
  max-width: 30ch;
}

/* Бренды на главной: аккуратные боксы в полную ширину */
.fx-brands .fx-chips {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 14px;
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}
.fx-brands .fx-chips li {
  display: flex;
}
.fx-chip--brand {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 104px;
  padding: 18px 16px;
  background: #FFFFFF;
  border: 1px solid #E3E3DE;
  border-radius: 14px;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.fx-chip--brand:hover {
  border-color: #101010;
  box-shadow: 0 8px 24px rgba(16, 16, 16, .08);
  transform: translateY(-1px);
}
.fx-chip--brand .fx-chip__logo {
  display: block;
  height: 44px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}
.fx-chip--brand .fx-chip__name {
  display: none;
}
@media (min-width: 1200px) {
  .fx-brands .fx-chips {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .fx-chip--brand { min-height: 84px; padding: 14px 12px; }
  .fx-chip--brand .fx-chip__logo { height: 34px; }
}

/* Логотип в подвале: горизонтальный инверсный, как в шапке */
.fx-footer__logo {
  width: 190px;
  max-width: 100%;
  height: auto;
  display: block;
}
@media (max-width: 640px) {
  .fx-footer__logo { width: 150px; }
}

/* Подвал: колонка «Информация» — вертикальный список */
.fx-footer__menu .fx-menu__list {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.fx-footer__menu .fx-menu__item {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
}
.fx-footer__menu .fx-menu__link {
  display: block;
  color: #C9D6E0;
  font-size: 14px;
  line-height: 1.5;
  text-decoration: none;
}
.fx-footer__menu .fx-menu__link:hover {
  color: #FFFFFF;
  text-decoration: underline;
}

/* Страницы помощи: слева навигация по разделу, справа контент */
.fx-docs {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}
.fx-docs__nav {
  position: sticky;
  top: 96px;
  padding: 20px 18px;
  border: 1px solid #E3E3DE;
  border-radius: 14px;
  background: #FFFFFF;
}
.fx-docs__nav-title {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #8A6200;
}
.fx-docs__nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.fx-docs__nav-list a {
  display: block;
  padding: 9px 12px;
  border-radius: 8px;
  color: #101010;
  font-size: 14px;
  line-height: 1.4;
  text-decoration: none;
}
.fx-docs__nav-list a:hover { background: #F7F7F5; }
.fx-docs__nav-list a.is-active {
  background: #101010;
  color: #FFFFFF;
  font-weight: 600;
}
.fx-docs__body h2 {
  margin-top: 32px;
  font-size: 22px;
}
.fx-docs__body h2:first-child { margin-top: 0; }
.fx-docs__body ul { padding-left: 20px; }
.fx-docs__body li { margin-bottom: 6px; }
@media (max-width: 900px) {
  .fx-docs { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .fx-docs__nav { position: static; }
}
/* Карточки на странице «Помощь» */
.fx-help-cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}
.fx-help-card {
  display: block;
  height: 100%;
  padding: 20px;
  border: 1px solid #E3E3DE;
  border-radius: 14px;
  background: #FFFFFF;
  text-decoration: none;
  color: #101010;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.fx-help-card:hover { border-color: #101010; box-shadow: 0 8px 24px rgba(16,16,16,.08); }
.fx-help-card strong { display: block; margin-bottom: 6px; font-size: 16px; }
.fx-help-card span { display: block; color: #5C5C5C; font-size: 14px; line-height: 1.5; }

/* Страницы помощи/документов: контент на всю ширину */
.fx-article__content.fx-prose {
  max-width: none;
}
.fx-docs__body {
  max-width: none;
  min-width: 0;
}
.fx-docs__body p,
.fx-docs__body li {
  text-align: justify;
  hyphens: auto;
}
.fx-docs {
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 32px;
}
@media (max-width: 900px) {
  .fx-docs { grid-template-columns: minmax(0, 1fr); }
  .fx-docs__body p,
  .fx-docs__body li { text-align: left; }
}

/* Блок под навигацией «Помощь»: звонок и отзыв */
.fx-docs__cta {
  margin-top: 20px;
  padding: 18px;
  border: 1px solid #E3E3DE;
  border-radius: 14px;
  background: #F7F7F5;
}
.fx-docs__cta-title {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 600;
  color: #101010;
}
.fx-docs__cta-link {
  display: block;
  margin-bottom: 8px;
  padding: 10px 14px;
  border: 1px solid #101010;
  border-radius: 10px;
  text-align: center;
  color: #101010;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color .18s ease, color .18s ease;
}
.fx-docs__cta-link:hover {
  background: #101010;
  color: #FFFFFF;
}
.fx-docs__cta-link--primary {
  background: #F0B000;
  border-color: #F0B000;
}
.fx-docs__cta-link--primary:hover {
  background: #D99A00;
  border-color: #D99A00;
  color: #101010;
}
.fx-docs__cta-phone {
  margin: 14px 0 2px;
  font-size: 15px;
  font-weight: 700;
}
.fx-docs__cta-phone a { color: #101010; text-decoration: none; }
.fx-docs__cta-note {
  margin: 0;
  font-size: 12px;
  color: #5C5C5C;
}

/* Мессенджеры в боковом блоке помощи */
.fx-docs__cta-social {
  display: grid;
  gap: 8px;
  margin-bottom: 10px;
}
.fx-social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 14px;
  border: 1px solid #101010;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  color: #101010;
  text-decoration: none;
  transition: background-color .18s ease, color .18s ease;
}
.fx-social-btn:hover {
  background: #101010;
  color: #FFFFFF;
}

/* Мессенджеры — брендовые цвета */
.fx-social-btn[href*="wa.me"],
a.fx-social-btn[href*="wa.me"] {
  background: #25D366;
  border-color: #25D366;
  color: #FFFFFF;
}
.fx-social-btn[href*="wa.me"]:hover,
a.fx-social-btn[href*="wa.me"]:hover {
  background: #1EBE5B;
  border-color: #1EBE5B;
  color: #FFFFFF;
}
.fx-social-btn[href*="t.me"],
a.fx-social-btn[href*="t.me"] {
  background: #2AABEE;
  border-color: #2AABEE;
  color: #FFFFFF;
}
.fx-social-btn[href*="t.me"]:hover,
a.fx-social-btn[href*="t.me"]:hover {
  background: #1E96D4;
  border-color: #1E96D4;
  color: #FFFFFF;
}
.fx-social-btn[href*="max.ru"],
a.fx-social-btn[href*="max.ru"] {
  background: linear-gradient(135deg, #2B7BFF 0%, #8B3DFF 100%);
  border-color: #7B3DFF;
  color: #FFFFFF;
}
.fx-social-btn[href*="max.ru"]:hover,
a.fx-social-btn[href*="max.ru"]:hover {
  background: linear-gradient(135deg, #1F6BEF 0%, #7A2CEF 100%);
  border-color: #6A2CEF;
  color: #FFFFFF;
}

/* Соцсети в подвале — значки в фирменных цветах */
.fx-footer__social {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  list-style: none;
}
.fx-footer-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: #FFFFFF;
  text-decoration: none;
  transition: transform .18s ease, opacity .18s ease;
}
.fx-footer-social:hover {
  transform: translateY(-1px);
  opacity: .92;
}
.fx-footer-social[href*="wa.me"] { background: #25D366; }
.fx-footer-social[href*="t.me"] { background: #2AABEE; }
.fx-footer-social[href*="max.ru"] { background: linear-gradient(135deg, #2B7BFF 0%, #8B3DFF 100%); }

/* Фильтры каталога: блоки-аккордеоны */
.fx-filters {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.fx-filter {
  border: 1px solid #E3E3DE;
  border-radius: 12px;
  background: #FFFFFF;
  overflow: hidden;
}
.fx-filter[open] {
  border-color: #101010;
}
.fx-filter__title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 13px 16px;
  font-size: 14px;
  font-weight: 600;
  color: #101010;
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.fx-filter__title::-webkit-details-marker { display: none; }
.fx-filter__title::after {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 2px solid #101010;
  border-bottom: 2px solid #101010;
  transform: rotate(45deg) translateY(-2px);
  transition: transform .18s ease;
  flex: none;
}
.fx-filter[open] .fx-filter__title::after {
  transform: rotate(-135deg) translateY(-2px);
}
.fx-filter__body {
  padding: 0 16px 14px;
}
.fx-filter__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-height: 260px;
  overflow-y: auto;
}
.fx-filter__item { margin: 0; }
.fx-filter__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 8px;
  font-size: 14px;
  color: #101010;
  text-decoration: none;
}
.fx-filter__link:hover { background: #F7F7F5; }
.fx-filter__item.is-active .fx-filter__link {
  background: #101010;
  color: #FFFFFF;
  font-weight: 600;
}
.fx-filter__count {
  font-size: 12px;
  color: #8C8C86;
}
.fx-filter__item.is-active .fx-filter__count { color: rgba(255,255,255,.7); }
.fx-filter__select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #E3E3DE;
  border-radius: 10px;
  font-size: 14px;
  color: #101010;
  background: #FFFFFF;
}
.fx-filter__select:focus {
  outline: 2px solid #F0B000;
  outline-offset: 1px;
}
.fx-filter__reset {
  display: inline-block;
  margin-bottom: 10px;
  padding: 6px 10px;
  border-radius: 8px;
  background: #F0B000;
  color: #101010;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

/* Кнопки фильтра */
.fx-filters__form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.fx-filters__actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px;
  margin-top: 4px;
}
.fx-filters__submit {
  width: 100%;
  justify-content: center;
}
.fx-filters__reset-all {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 14px;
  border: 1px solid #E3E3DE;
  border-radius: 10px;
  background: #FFFFFF;
  color: #101010;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}
.fx-filters__reset-all:hover {
  border-color: #101010;
}

/* Плитка бренда без логотипа — название текстом */
.fx-chip__text {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 12px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .02em;
  color: #101010;
}

/* Заголовочные блоки разделов: текст на всю ширину и по формату */
.fx-catalog__head .fx-catalog__title,
.fx-catalog__head .fx-catalog__count,
.fx-catalog__desc,
.fx-catalog__desc p,
.fx-brand__hero .fx-brand__title,
.fx-brand__hero .fx-brand__count,
.fx-brand__hero p {
  max-width: none;
  width: 100%;
}
.fx-catalog__desc,
.fx-catalog__desc p,
.fx-brand__hero p {
  text-align: justify;
  text-align-last: left;
  hyphens: auto;
  line-height: 1.65;
}
@media (max-width: 700px) {
  .fx-catalog__desc,
  .fx-catalog__desc p,
  .fx-brand__hero p {
    text-align: left;
  }
}

/* Кнопка с телефоном в CTA на главной */
.fx-cta__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
.fx-cta__actions .fx-btn[href^="tel:"] {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 24px 15px 20px;
  border: 1.5px solid rgba(16, 16, 16, 0.16);
  border-radius: 999px;
  background: #FFFFFF;
  color: #101010;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
  box-shadow: 0 2px 0 rgba(16, 16, 16, 0.04);
  transition: background-color .2s ease, color .2s ease, border-color .2s ease,
              transform .2s ease, box-shadow .2s ease;
}
.fx-cta__actions .fx-btn[href^="tel:"]::before {
  content: "";
  width: 19px;
  height: 19px;
  flex: none;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.6 10.8c1.4 2.8 3.8 5.1 6.6 6.6l2.2-2.2c.3-.3.7-.4 1-.2 1.1.4 2.3.6 3.6.6.6 0 1 .4 1 1V20c0 .6-.4 1-1 1C10.6 21 3 13.4 3 4c0-.6.4-1 1-1h3.5c.6 0 1 .4 1 1 0 1.2.2 2.4.6 3.6.1.3 0 .7-.2 1l-2.3 2.2z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.6 10.8c1.4 2.8 3.8 5.1 6.6 6.6l2.2-2.2c.3-.3.7-.4 1-.2 1.1.4 2.3.6 3.6.6.6 0 1 .4 1 1V20c0 .6-.4 1-1 1C10.6 21 3 13.4 3 4c0-.6.4-1 1-1h3.5c.6 0 1 .4 1 1 0 1.2.2 2.4.6 3.6.1.3 0 .7-.2 1l-2.3 2.2z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.fx-cta__actions .fx-btn[href^="tel:"]:hover,
.fx-cta__actions .fx-btn[href^="tel:"]:focus-visible {
  background: #101010;
  border-color: #101010;
  color: #FFFFFF;
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(16, 16, 16, 0.18);
  text-decoration: none;
}
.fx-cta__actions .fx-btn[href^="tel:"]:active {
  transform: translateY(0);
  box-shadow: 0 4px 12px rgba(16, 16, 16, 0.16);
}
@media (max-width: 700px) {
  .fx-cta__actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }
  .fx-cta__actions .fx-btn {
    width: 100%;
    justify-content: center;
  }
}

/* Баннер cookie */
.fx-cookie {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 9999;
  background: #101010;
  color: #FFFFFF;
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .28);
}
.fx-cookie__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 18px;
  justify-content: space-between;
}
.fx-cookie__text {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: rgba(255, 255, 255, .9);
}
.fx-cookie__text a {
  color: #F0B000;
  text-decoration: underline;
}
.fx-cookie__actions {
  display: flex;
  gap: 10px;
  flex: none;
}
.fx-cookie__btn {
  padding: 11px 18px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, .3);
  background: transparent;
  color: #FFFFFF;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color .18s ease, border-color .18s ease;
}
.fx-cookie__btn:hover {
  border-color: #FFFFFF;
}
.fx-cookie__btn--primary {
  background: #F0B000;
  border-color: #F0B000;
  color: #101010;
}
.fx-cookie__btn--primary:hover {
  background: #FFC21A;
  border-color: #FFC21A;
}
@media (max-width: 700px) {
  .fx-cookie__inner {
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
  }
  .fx-cookie__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
}

/* Иконки в контактах подвала */
.fx-footer__link--icon {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.fx-footer__link--icon::before {
  content: "";
  width: 16px;
  height: 16px;
  flex: none;
  background-color: currentColor;
  opacity: .85;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-size: contain; mask-size: contain;
  -webkit-mask-position: center; mask-position: center;
}
.fx-footer__link--phone::before {
  -webkit-mask-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.6 10.8c1.4 2.8 3.8 5.1 6.6 6.6l2.2-2.2c.3-.3.7-.4 1-.2 1.1.4 2.3.6 3.6.6.6 0 1 .4 1 1V20c0 .6-.4 1-1 1C10.6 21 3 13.4 3 4c0-.6.4-1 1-1h3.5c.6 0 1 .4 1 1 0 1.2.2 2.4.6 3.6.1.3 0 .7-.2 1l-2.3 2.2z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.6 10.8c1.4 2.8 3.8 5.1 6.6 6.6l2.2-2.2c.3-.3.7-.4 1-.2 1.1.4 2.3.6 3.6.6.6 0 1 .4 1 1V20c0 .6-.4 1-1 1C10.6 21 3 13.4 3 4c0-.6.4-1 1-1h3.5c.6 0 1 .4 1 1 0 1.2.2 2.4.6 3.6.1.3 0 .7-.2 1l-2.3 2.2z'/%3E%3C/svg%3E");
}
.fx-footer__link--mail::before {
  -webkit-mask-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 5h18c.6 0 1 .4 1 1v12c0 .6-.4 1-1 1H3c-.6 0-1-.4-1-1V6c0-.6.4-1 1-1zm9 8.1 8-5.2V7l-8 5.2L4 7v.9l8 5.2z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 5h18c.6 0 1 .4 1 1v12c0 .6-.4 1-1 1H3c-.6 0-1-.4-1-1V6c0-.6.4-1 1-1zm9 8.1 8-5.2V7l-8 5.2L4 7v.9l8 5.2z'/%3E%3C/svg%3E");
}
.fx-footer__address {
  position: relative;
  margin-top: 8px;
  padding-left: 26px;
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255, 255, 255, .62);
}
.fx-footer__address::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 3px;
  width: 16px;
  height: 16px;
  background-color: currentColor;
  -webkit-mask-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a7 7 0 0 0-7 7c0 5.2 7 13 7 13s7-7.8 7-13a7 7 0 0 0-7-7zm0 9.5A2.5 2.5 0 1 1 12 6a2.5 2.5 0 0 1 0 5.5z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a7 7 0 0 0-7 7c0 5.2 7 13 7 13s7-7.8 7-13a7 7 0 0 0-7-7zm0 9.5A2.5 2.5 0 1 1 12 6a2.5 2.5 0 0 1 0 5.5z'/%3E%3C/svg%3E");
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-size: contain; mask-size: contain;
  -webkit-mask-position: center; mask-position: center;
}

/* Подвал: 5 колонок (бренд + Компания + Информация + Помощь + Контакты) */
.fx-footer__inner {
  grid-template-columns: minmax(0, 1.25fr) repeat(3, minmax(0, 0.85fr)) minmax(0, 1.05fr);
  gap: 32px 28px;
}
.fx-footer .fx-footer__title {
  margin-bottom: 14px;
}
.fx-footer .fx-footer__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
@media (max-width: 1180px) {
  .fx-footer__inner {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .fx-footer__col--brand {
    grid-column: 1 / -1;
  }
}
@media (max-width: 760px) {
  .fx-footer__inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 480px) {
  .fx-footer__inner {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Бренды: текст на всю ширину */
.fx-brand__text.fx-prose,
.fx-brand__hero .fx-prose {
  max-width: none;
  width: 100%;
}
.fx-brand__text,
.fx-brand__text p {
  max-width: none;
  text-align: justify;
  text-align-last: left;
  hyphens: auto;
  line-height: 1.65;
}
@media (max-width: 700px) {
  .fx-brand__text,
  .fx-brand__text p {
    text-align: left;
  }
}

/* Продукция: блоки разделов на всю ширину */
.fx-prod-grid {
  list-style: none;
  margin: 0 0 36px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}
.fx-prod-tile {
  margin: 0;
  display: flex;
}
.fx-prod-tile__link {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  padding: 18px 20px;
  border: 1px solid #E3E3DE;
  border-radius: 14px;
  background: #FFFFFF;
  color: #101010;
  text-decoration: none;
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.fx-prod-tile__link:hover,
.fx-prod-tile__link:focus-visible {
  border-color: #101010;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(16, 16, 16, .08);
  text-decoration: none;
  color: #101010;
}
.fx-prod-tile__name {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
}
.fx-prod-tile__meta {
  font-size: 13px;
  color: #8C8C86;
}
@media (max-width: 640px) {
  .fx-prod-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .fx-prod-tile__link {
    padding: 16px;
  }
}

/* FAQ-аккордеон на странице продукции */
.fx-faq {
  border: 1px solid #E3E3DE;
  border-radius: 12px;
  background: #FFFFFF;
  margin: 0 0 10px;
  overflow: hidden;
}
.fx-faq[open] {
  border-color: #101010;
}
.fx-faq summary {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 15px 48px 15px 18px;
  font-size: 16px;
  font-weight: 600;
  color: #101010;
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.fx-faq summary::-webkit-details-marker { display: none; }
.fx-faq summary::after {
  content: "+";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  font-weight: 400;
  line-height: 1;
  color: #101010;
  transition: transform .18s ease;
}
.fx-faq[open] summary::after {
  content: "−";
}
.fx-faq summary:hover { background: #F7F7F5; }
.fx-faq p {
  margin: 0;
  padding: 0 18px 16px;
  font-size: 15px;
  line-height: 1.6;
  color: #3D3D3A;
  text-align: left;
}

/* Ссылка «Продукция» в главном меню (вместо выпадающей группы) */
.fx-mainnav__link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
.fx-mainnav__link:hover,
.fx-mainnav__link:focus-visible {
  color: #101010;
  text-decoration: none;
}

/* Шапка каталога: заголовок слева, счётчик справа, линия-разделитель */
.fx-catalog__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 20px;
  padding-bottom: 18px;
  margin-bottom: 0;
  border-bottom: 1px solid #E3E3DE;
}
.fx-catalog__head .fx-catalog__title {
  margin: 0;
  font-size: 34px;
  line-height: 1.15;
}
.fx-catalog__head .fx-catalog__count {
  margin: 0;
  font-size: 14px;
  color: #8C8C86;
  white-space: nowrap;
}
.fx-catalog__head .fx-catalog__desc {
  flex-basis: 100%;
  margin-top: 10px;
}
@media (max-width: 640px) {
  .fx-catalog__head .fx-catalog__title {
    font-size: 26px;
  }
}

/* Хлебные крошки на всю ширину: выравниваем по контейнеру контента */
.fx-main > .fx-breadcrumbs {
  width: 100%;
  max-width: var(--fx-container, 1240px);
  margin-inline: auto;
  padding-inline: var(--fx-gutter, 16px);
  box-sizing: border-box;
}
.fx-main > .fx-breadcrumbs .fx-breadcrumbs__list {
  margin: 0;
}

/* Таблицы в описании товара: выравнивание столбцов и шапки */
.fx-description table,
.fx-prose table,
.woocommerce-Tabs-panel table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  margin: 14px 0 22px;
  font-size: 14px;
  line-height: 1.45;
}
.fx-description table th,
.fx-prose table th,
.woocommerce-Tabs-panel table th {
  text-align: left;
  vertical-align: middle;
  background: #F4F4F1;
  font-weight: 600;
  color: #101010;
  border: 1px solid #E3E3DE;
  padding: 10px 12px;
}
.fx-description table td,
.fx-prose table td,
.woocommerce-Tabs-panel table td {
  text-align: left;
  vertical-align: top;
  border: 1px solid #E3E3DE;
  padding: 10px 12px;
  color: #3D3D3A;
}
.fx-description table tbody tr:nth-child(even) td,
.fx-prose table tbody tr:nth-child(even) td {
  background: #FAFAF8;
}
.fx-description table th:nth-child(1),
.fx-description table td:nth-child(1),
.fx-prose table th:nth-child(1),
.fx-prose table td:nth-child(1) {
  width: 46%;
}
.fx-description table th:nth-child(2),
.fx-description table td:nth-child(2),
.fx-prose table th:nth-child(2),
.fx-prose table td:nth-child(2) {
  width: 27%;
}
.fx-description table th:nth-child(3),
.fx-description table td:nth-child(3),
.fx-prose table th:nth-child(3),
.fx-prose table td:nth-child(3) {
  width: 27%;
}
@media (max-width: 640px) {
  .fx-description table,
  .fx-prose table {
    font-size: 13px;
  }
  .fx-description table th,
  .fx-description table td,
  .fx-prose table th,
  .fx-prose table td {
    padding: 8px 9px;
  }
}

/* Кнопка «Скачать TDS» с картинкой */
.fx-tds {
  margin: 20px 0 10px;
}
.fx-tds__link {
  display: inline-block;
  line-height: 0;
}
.fx-tds__link img {
  display: block;
  width: 100%;
  max-width: 160px;
  height: auto;
  border: 0;
  border-radius: 8px;
  transition: transform .15s ease, opacity .15s ease;
}
.fx-tds__link:hover img,
.fx-tds__link:focus-visible img {
  transform: translateY(-2px);
  opacity: .93;
}
@media (max-width: 640px) {
  .fx-tds__link img { max-width: 130px; }
}

/* «Паспорт продукта» — таблица характеристик как в тех. параметрах */
.fx-spec {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  margin: 12px 0 26px;
  font-size: 14px;
  line-height: 1.45;
}
.fx-spec__caption {
  caption-side: top;
  text-align: left;
  padding: 0 0 10px;
  font-size: 15px;
  font-weight: 600;
  color: #101010;
}
.fx-spec .fx-spec__row th.fx-spec__key,
.fx-spec .fx-spec__row td.fx-spec__value {
  border: 1px solid #E3E3DE;
  padding: 10px 12px;
  vertical-align: top;
  text-align: left;
}
.fx-spec .fx-spec__row th.fx-spec__key {
  width: 42%;
  background: #F4F4F1;
  font-weight: 600;
  color: #101010;
}
.fx-spec .fx-spec__row td.fx-spec__value {
  color: #3D3D3A;
  background: #FFFFFF;
}
.fx-spec .fx-spec__row:nth-child(even) th.fx-spec__key {
  background: #EFEFEA;
}
.fx-spec .fx-spec__row:nth-child(even) td.fx-spec__value {
  background: #FAFAF8;
}
.fx-spec .fx-spec__value p {
  margin: 0;
}
@media (max-width: 640px) {
  .fx-spec {
    font-size: 13px;
  }
  .fx-spec .fx-spec__row th.fx-spec__key,
  .fx-spec .fx-spec__row td.fx-spec__value {
    padding: 8px 9px;
  }
}

/* Фото товара: чуть меньше в карточке */
.fx-product__media .woocommerce-product-gallery,
.fx-product__media .fx-product__gallery {
  max-width: 380px;
  margin-inline: auto;
}
.fx-product__media .woocommerce-product-gallery__wrapper,
.fx-product__media .woocommerce-product-gallery .flex-viewport {
  max-width: 380px;
  margin-inline: auto;
}
.fx-product__media .woocommerce-product-gallery__image img,
.fx-product__media .woocommerce-product-gallery img {
  width: 100%;
  height: auto;
  display: block;
}
.fx-product__media .flex-control-thumbs {
  max-width: 380px;
  margin-inline: auto;
}
@media (max-width: 640px) {
  .fx-product__media .woocommerce-product-gallery,
  .fx-product__media .woocommerce-product-gallery__wrapper,
  .fx-product__media .flex-control-thumbs {
    max-width: 300px;
  }
}

/* Описание товара — на всю ширину контейнера */
.fx-description .fx-prose,
.fx-description .fx-prose p,
.fx-description .fx-prose ul,
.fx-description .fx-prose li {
  max-width: none;
}
.fx-description .fx-prose p {
  text-align: justify;
  text-align-last: left;
}
@media (max-width: 700px) {
  .fx-description .fx-prose p { text-align: left; }
}

/* Паспорт: единый вид столбцов, шапка как в тех. параметрах */
.fx-spec { margin: 6px 0 26px; }
.fx-spec__title { margin: 0 0 10px; font-size: 15px; font-weight: 600; color: #101010; }
.fx-spec thead th {
  background: #F4F4F1;
  color: #101010;
  font-weight: 600;
  text-align: left;
  border: 1px solid #E3E3DE;
  padding: 10px 12px;
}
.fx-spec thead th:first-child { width: 42%; }
.fx-spec tbody th.fx-spec__key,
.fx-spec tbody td.fx-spec__value {
  background: #FFFFFF;
  border: 1px solid #E3E3DE;
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}
.fx-spec tbody th.fx-spec__key {
  width: 42%;
  font-weight: 400;
  color: #101010;
}
.fx-spec tbody td.fx-spec__value { color: #3D3D3A; }
.fx-spec tbody tr:nth-child(even) th.fx-spec__key,
.fx-spec tbody tr:nth-child(even) td.fx-spec__value { background: #FAFAF8; }
.fx-spec tbody th p,
.fx-spec tbody td p { margin: 0; }
@media (max-width: 640px) {
  .fx-spec { font-size: 13px; }
  .fx-spec thead th,
  .fx-spec tbody th.fx-spec__key,
  .fx-spec tbody td.fx-spec__value { padding: 8px 9px; }
}

/* Паспорт: «Характеристики» — заголовок таблицы на всю ширину */
.fx-spec thead th[colspan] {
  width: 100%;
  background: #F4F4F1;
  color: #101010;
  font-weight: 600;
  text-align: left;
  border: 1px solid #E3E3DE;
  padding: 10px 12px;
  font-size: 15px;
}

/* Паспорт: строка целиком одного цвета (ключ и значение) */
.fx-spec .fx-spec__row th.fx-spec__key,
.fx-spec .fx-spec__row td.fx-spec__value {
  background: #FFFFFF;
}
.fx-spec .fx-spec__row:nth-child(even) th.fx-spec__key,
.fx-spec .fx-spec__row:nth-child(even) td.fx-spec__value {
  background: #FAFAF8;
}

/* Паспорт: рамки как в таблице технических параметров */
.fx-spec {
  border: 1px solid #E3E3DE;
  border-collapse: collapse;
}
.fx-spec > thead > tr > th,
.fx-spec > tbody > tr > th.fx-spec__key,
.fx-spec > tbody > tr > td.fx-spec__value {
  border: 1px solid #E3E3DE;
}

/* Похожие товары: 4 карточки в ряд */
.related.products .products {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.related.products .products > li.product {
  width: 100% !important;
  margin: 0 !important;
  float: none !important;
}
@media (max-width: 1024px) {
  .related.products .products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .related.products .products { grid-template-columns: minmax(0, 1fr); }
}

/* Блок количества всегда виден (D-040) */
.fx-cart {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 0;
}
.fx-qty {
  display: inline-flex;
  align-items: center;
  height: 46px;
  border: 1px solid #E3E3DE;
  border-radius: 10px;
  overflow: hidden;
  background: #FFFFFF;
}
.fx-qty__btn {
  width: 38px;
  height: 100%;
  border: 0;
  background: #F4F4F1;
  color: #101010;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}
.fx-qty__btn:hover { background: #E9E9E4; }
.fx-qty__input {
  width: 52px;
  height: 100%;
  border: 0;
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  background: #FFFFFF;
  -moz-appearance: textfield;
}
.fx-qty__input::-webkit-outer-spin-button,
.fx-qty__input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.fx-cart .single_add_to_cart_button { min-height: 46px; }

/* Похожие: жёстко 4 колонки, карточки не схлопываются */
.related.products ul.products.columns-4 {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 16px !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}
.related.products ul.products.columns-4 > li.product {
  width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  float: none !important;
}
@media (max-width: 1024px) {
  .related.products ul.products.columns-4 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}
@media (max-width: 640px) {
  .related.products ul.products.columns-4 { grid-template-columns: minmax(0, 1fr) !important; }
}

/* Похожие: 4 в ряд максимально долго, карточки компактнее */
.related.products ul.fx-related > li.product {
  min-width: 0 !important;
  max-width: none !important;
}
.related.products ul.fx-related > li.product .fx-card__title {
  font-size: 14px;
  line-height: 1.3;
}
.related.products ul.fx-related > li.product .fx-card__media img {
  width: 100%;
  height: auto;
}
@media (max-width: 860px) {
  .related.products ul.fx-related { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}
@media (max-width: 560px) {
  .related.products ul.fx-related { grid-template-columns: minmax(0, 1fr) !important; }
}

/* КРИТИЧНО: WooCommerce добавляет ul.products::before/::after (clearfix),
   и в CSS Grid они становятся отдельными ячейками — из-за этого 4-я карточка
   уезжала во второй ряд. Убираем псевдоэлементы у сетки «Похожие». */
.related.products ul.fx-related::before,
.related.products ul.fx-related::after {
  content: none !important;
  display: none !important;
}
