.page-homepage .swiper-partners {
  margin-block: -16px;
  padding-block: 16px;
}

.tp-category__header {
  padding: 2rem 0 2.5rem;
  border-bottom: 1px solid #e9edf2;
}

.tp-category__heading {
  display: flex;
  gap: 1rem;
  align-items: baseline;
  margin: 0 0 0.6rem;
}

.tp-category__heading small {
  color: #bdc2d3;
  font-size: 1.5rem;
  font-weight: 400;
}

.tp-category__breadcrumbs {
  margin: 0;
  color: #a5acb8;
  font-size: 1.3rem;
}

.tp-category__subtitle {
  margin: 4.5rem 0 1rem;
  font-size: 1.6rem;
  line-height: 2rem;
}

.tp-category__subtitle > :last-child {
  margin-bottom: 0;
}

/* Imported OC HTML: <p><img>first line</p><p>…</p> — keep all text in one column beside the image. */
.tp-category__subtitle:has(img) {
  overflow: auto;
}

.tp-category__subtitle:has(img) > p:first-of-type img {
  float: left;
  width: 40%;
  max-width: 40%;
  height: auto;
  margin: 0 3rem 1rem 0;
}

.tp-category__subtitle:has(img) > p:not(:first-of-type) {
  margin-left: calc(40% + 3rem);
}

.tp-category__subtitle:has(img) > p {
  margin-top: 0;
}

@media (max-width: 767px) {
  .tp-category__subtitle:has(img) > p:first-of-type img {
    float: none;
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 0 0 1rem;
  }

  .tp-category__subtitle:has(img) > p:not(:first-of-type) {
    margin-left: 0;
  }
}

.tp-category__toolbar {
  margin: 0 0 0.5rem;
}

.tp-category__toolbar-title {
  display: block;
  margin-bottom: 1rem;
  font-size: 1.4rem;
  font-weight: 400;
}

.tp-view-toggle {
  display: flex;
  margin-bottom: 0.5rem;
}

.tp-view-toggle__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  border-right: 1px solid #edf0f4;
  background: #fff;
  color: #bdc2d3;
  text-decoration: none;
}

.tp-view-toggle__button:first-child {
  border-radius: 6px 0 0 6px;
}

.tp-view-toggle__button:last-child {
  border: 0;
  border-radius: 0 6px 6px 0;
}

.tp-view-toggle__button:hover,
.tp-view-toggle__button.is-active {
  color: var(--theme-primary-color);
  text-decoration: none;
}

.tp-products {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.6rem;
  margin: 0;
  padding: 1rem;
  list-style: none;
}

.tp-products > li {
  display: flex;
  min-width: 0;
}

.tp-product-card {
  display: flex;
  width: 100%;
  min-width: 0;
  border: 1px solid #edf0f4;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(52, 52, 52, 0.04);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.tp-product-card:hover {
  border-color: #dce4ec;
  box-shadow: 0 8px 20px rgba(52, 52, 52, 0.1);
  transform: translateY(-2px);
}

.tp-product-card__media {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  background: #fff;
}

.tp-product-card__image {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.tp-product-card__body {
  min-width: 0;
}

.tp-product-card__title {
  margin: 0 0 1.4rem;
  overflow-wrap: anywhere;
  font-size: 1.7rem;
  line-height: 2.2rem;
  font-weight: 500;
}

.tp-product-card__title a {
  color: #343434;
  text-decoration: none;
  transition: color 0.2s ease;
}

.tp-product-card__title a:hover {
  color: var(--theme-primary-color);
}

.tp-product-card__stock,
.tp-product-card__dimensions,
.tp-product-card__price,
.tp-product-card__minimum {
  margin: 0;
}

.tp-product-card__stock {
  position: relative;
  min-width: 0;
  margin-bottom: 1rem;
  padding-left: 1.3rem;
  font-size: 1.4rem;
  line-height: 1.4;
}

.tp-product-card__stock::before {
  position: absolute;
  top: 0.65rem;
  left: 0;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: #bdc2d3;
  content: "";
}

.tp-product-card__stock.is-in-stock::before {
  background: #13d154;
}

.tp-cart-on-order {
  color: #8a90a5;
  font-size: 1.3rem;
}

.tp-product-card__dimensions {
  color: #bdc2d3;
  font-size: 1.3rem;
  line-height: 1.5;
}

.tp-product-card__dimensions strong {
  color: #343434;
  font-weight: 500;
}

.tp-product-card__footer {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

.tp-product-card__price {
  width: 100%;
  font-size: 2rem;
  line-height: 1.2;
  font-weight: 500;
}

.tp-product-card__minimum {
  color: #727988;
  font-size: 1.3rem;
  line-height: 1.4;
}

.tp-product-card__cart {
  margin: 0;
}

.tp-product-card__cart .ui-btn,
.ui-btn.tp-product-card__cart {
  min-width: 12.5rem;
}

.tp-product-card__cart .icon-cart {
  width: 1.8rem;
  height: 1.8rem;
  margin-left: 1rem;
}

.tp-product-card--grid {
  flex-direction: column;
  min-height: 0;
}

.tp-product-card--grid .tp-product-card__media {
  height: 24rem;
  padding: 1.5rem;
  border-bottom: 1px solid #f0f3f6;
}

.tp-product-card--grid .tp-product-card__image {
  max-width: 22rem;
  max-height: 21rem;
}

.tp-product-card--grid .tp-product-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 2.4rem;
}

.tp-product-card--grid .tp-product-card__title {
  min-height: 4.4rem;
}

.tp-product-card--grid .tp-product-card__dimensions {
  margin-top: 0;
  margin-bottom: 1.5rem;
}

.tp-product-card--list {
  display: grid;
  grid-template-columns: 24rem minmax(0, 1fr);
  min-height: 23rem;
}

.tp-product-card--list .tp-product-card__media {
  height: 100%;
  min-height: 22.8rem;
  padding: 2rem;
  border-right: 1px solid #f0f3f6;
}

.tp-product-card--list .tp-product-card__image {
  max-width: 16rem;
  max-height: 17rem;
}

.tp-product-card--list .tp-product-card__body {
  display: flex;
  flex-direction: column;
  padding: 2.4rem 3rem;
}

.tp-product-card--list .tp-product-card__title {
  min-height: 2.2rem;
}

.tp-product-card--list .tp-product-card__dimensions {
  margin-bottom: 1.5rem;
}

.tp-product-card--list .tp-product-card__footer {
  margin-top: auto;
}

.tp-product-card--compact {
  display: grid;
  grid-template-columns: 22rem minmax(0, 1fr);
  min-height: 16rem;
}

.tp-product-card--compact .tp-product-card__media {
  height: 100%;
  min-height: 15.8rem;
  padding: 2rem;
}

.tp-product-card--compact .tp-product-card__image {
  max-width: 9rem;
  max-height: 10rem;
}

.tp-product-card--compact .tp-product-card__body {
  display: grid;
  grid-template-areas:
    "stock cart"
    "title cart"
    "dimensions cart"
    "price cart"
    "minimum cart";
  grid-template-columns: minmax(0, 1fr) auto;
  align-content: center;
  column-gap: 3rem;
  padding: 2rem 3rem 2rem 0;
}

.tp-product-card--compact .tp-product-card__stock {
  grid-area: stock;
}

.tp-product-card--compact .tp-product-card__title {
  grid-area: title;
  min-height: 0;
  margin-bottom: 0.8rem;
}

.tp-product-card--compact .tp-product-card__dimensions {
  grid-area: dimensions;
  margin-bottom: 0.8rem;
}

.tp-product-card--compact .tp-product-card__footer {
  display: contents;
}

.tp-product-card--compact .tp-product-card__price {
  grid-area: price;
}

.tp-product-card--compact .tp-product-card__minimum {
  grid-area: minimum;
  margin-top: 0.5rem;
}

.tp-product-card--compact .tp-product-card__cart {
  grid-area: cart;
  align-self: center;
}

@media (min-width: 576px) and (max-width: 991px) {
  .tp-products--grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 992px) {
  .tp-products--grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 575px) {
  .tp-category__heading {
    display: block;
  }

  .tp-category__heading small {
    display: block;
    margin-top: 0.5rem;
  }

  .tp-category__subtitle {
    margin-top: 3rem;
  }

  .tp-products {
    gap: 1.2rem;
    padding: 0.5rem;
  }

  .tp-product-card--grid {
    min-height: 0;
  }

  .tp-product-card--grid .tp-product-card__media {
    height: 21rem;
  }

  .tp-product-card--grid .tp-product-card__image {
    max-width: 18rem;
    max-height: 18rem;
  }

  .tp-product-card--grid .tp-product-card__body {
    padding: 2rem;
  }

  .tp-product-card--grid .tp-product-card__title {
    min-height: 0;
  }

  .tp-product-card--grid .tp-product-card__dimensions {
    margin-top: 0;
  }

  .tp-product-card--list,
  .tp-product-card--compact {
    grid-template-columns: 9rem minmax(0, 1fr);
    min-height: 0;
  }

  .tp-product-card--list .tp-product-card__media,
  .tp-product-card--compact .tp-product-card__media {
    min-height: 0;
    padding: 1rem;
    border-right: 1px solid #f0f3f6;
  }

  .tp-product-card--list .tp-product-card__image,
  .tp-product-card--compact .tp-product-card__image {
    max-width: 7rem;
    max-height: 8rem;
  }

  .tp-product-card--list .tp-product-card__body,
  .tp-product-card--compact .tp-product-card__body {
    display: flex;
    flex-direction: column;
    padding: 1.4rem;
  }

  .tp-product-card--list .tp-product-card__title,
  .tp-product-card--compact .tp-product-card__title {
    min-height: 0;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    line-height: 2rem;
  }

  .tp-product-card--list .tp-product-card__footer,
  .tp-product-card--compact .tp-product-card__footer {
    display: flex;
    margin-top: 1rem;
  }

  .tp-product-card--list .tp-product-card__cart,
  .tp-product-card--compact .tp-product-card__cart {
    align-self: auto;
  }
}

.header__catalog-link.is-active {
  color: var(--theme-primary-color);
}

@media (min-width: 768px) {
  .header__mobile {
    display: none !important;
  }

  .header__desktop {
    display: block !important;
  }

  .header__desktop .header__row {
    display: flex !important;
    align-items: center;
    width: 100%;
    min-width: 0;
  }

  .header__desktop .header__catalog {
    flex: 0 0 auto;
  }

  .header__desktop .tp-header-contact {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    height: 4rem;
    margin-left: 2rem;
    padding: 0 1.6rem;
    color: #343434 !important;
    background: #fff;
    text-decoration: none;
  }

  .header__desktop .tp-header-contact.is-active {
    color: #343434 !important;
    border-bottom: 2px solid var(--theme-primary-color);
  }

  .header__desktop .tp-header-actions {
    margin-left: auto;
    flex: 0 0 auto;
  }
}

.tp-contact {
  padding-bottom: 5rem;
}

.tp-contact__header {
  padding: 2rem 0 2.5rem;
  border-bottom: 1px solid #e9edf2;
}

.tp-contact__header h1 {
  margin: 0 0 0.6rem;
}

.tp-contact__map {
  position: relative;
  width: 100%;
  height: 32rem;
  margin: 0 0 4rem;
  overflow: hidden;
  background: #edf0f5;
}

.tp-contact__map iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.tp-contact__map-fallback {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  margin: 0;
  background: #edf0f5;
}

.tp-contact__map-fallback a {
  color: var(--theme-primary-color);
}

.tp-contact__breadcrumbs,
.tp-contact__muted {
  color: #a5acb8;
  font-size: 1.3rem;
}

.tp-contact__breadcrumbs {
  margin: 0;
}

.tp-contact__notice {
  margin: 2rem 0 0;
  padding: 1.2rem 1.6rem;
  border-radius: 6px;
}

.tp-contact__notice--success {
  background: #edf9f0;
  color: #287c3d;
}

.tp-contact__notice--error {
  background: #fff0f0;
  color: #b52a2a;
}

.tp-contact__grid {
  display: grid;
  grid-template-columns: minmax(18rem, 0.9fr) minmax(32rem, 1.3fr) minmax(25rem, 1fr);
  gap: 5rem;
  padding-top: 4rem;
}

.tp-contact h2 {
  margin: 0 0 0.8rem;
  font-size: 1.6rem;
  line-height: 1.4;
}

.tp-contact__details dl,
.tp-contact__details dd {
  margin: 0;
}

.tp-contact__details dt {
  margin-top: 1.9rem;
  font-size: 1.3rem;
  font-weight: 700;
}

.tp-contact__details dt:first-child {
  margin-top: 0;
}

.tp-contact__details dd {
  overflow-wrap: anywhere;
}

.tp-contact__details a {
  color: var(--theme-primary-color);
}

.tp-contact__requisites {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem 3rem;
}

.tp-contact__requisites div {
  min-width: 0;
}

.tp-contact__requisites dt {
  margin: 0;
}

.tp-contact__question {
  padding: 2.4rem;
  border-radius: 8px;
  background: #f7f8fc;
}

.tp-contact__form {
  display: grid;
  gap: 1.3rem;
}

.tp-contact__form label {
  display: grid;
  gap: 0.6rem;
  font-size: 1.3rem;
}

.tp-contact__form .form-control {
  min-width: 0;
  height: 3.5rem;
  background: #eef0f5;
  box-shadow: none;
}

.tp-contact__form textarea.form-control {
  height: auto;
  min-height: 9rem;
  resize: vertical;
}

.tp-contact__form .ui-btn {
  justify-self: start;
  margin-top: 0.5rem;
}

@media (max-width: 991px) {
  .tp-contact__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 3rem;
  }

  .tp-contact__question {
    grid-column: span 2;
  }
}

@media (max-width: 575px) {
  .tp-contact {
    padding-bottom: 3rem;
  }

  .tp-contact__map {
    height: 24rem;
    margin-bottom: 3rem;
  }

  .tp-contact__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 3rem;
    padding-top: 3rem;
  }

  .tp-contact__details,
  .tp-contact__question {
    grid-column: auto;
    padding: 2rem;
    border-radius: 8px;
    background: #fff;
  }

  .tp-contact__requisites {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.4rem 2rem;
  }
}

.tp-quick-order {
  margin-top: 1em;
}

.tp-quick-order__field {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0 0 1rem;
}

.tp-quick-order__field label {
  flex: 0 0 7rem;
  margin: 0;
  font-weight: 400;
}

.tp-quick-order__field input {
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
  margin: 0;
}

.tp-quick-order #qo-comment {
  display: block;
  width: 100%;
  min-height: 0;
  height: 7.2rem;
  margin-top: 0.5rem;
  resize: vertical;
}

#product-qty,
.tp-quick-order__field input,
.tp-quick-order #qo-comment,
.tp-contact__form .form-control {
  border: 1px solid var(--theme-primary-color);
}
