@charset "UTF-8";

/* Construction calculators: secondary SEO section below the page previews. */
.calculators-seo {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  align-items: start;
  gap: 60px;
  margin-top: 95px;
  padding: 30px 0;
  border-top: var(--custom-border-width) solid var(--custom-border-color);
}

:root .calculators-seo .calculators-seo__title {
  margin: 0 !important;
  color: var(--custom-black-color);
  font-size: 18px !important;
  font-weight: 600 !important;
  line-height: 1.25 !important;
  letter-spacing: 0;
  text-transform: uppercase;
}

:root .calculators-seo .calculators-seo__text {
  position: relative;
  min-width: 0;
  margin: 0 !important;
  color: var(--custom-black-color);
  font-size: 13px !important;
  font-weight: 400;
  line-height: 1.6 !important;
}

.calculators-seo__text::before {
  content: "";
  position: absolute;
  top: -31px;
  bottom: 0;
  left: -30px;
  width: 1px;
  background: var(--custom-border-color);
  transform: skewX(-20deg);
  pointer-events: none;
}

:root .calculators-seo .calculators-seo__text a {
  color: var(--custom-accent-color-400);
  font-size: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (min-width: 768px) and (max-width: 1199px) {
  .calculators-seo {
    padding-right: 40px;
  }
}

@media (min-width: 768px) and (max-width: 991px) {
  .calculators-seo {
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 40px;
  }

  .calculators-seo__text::before {
    left: -20px;
  }
}

@media (max-width: 767px) {
  .calculators-seo {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
    padding: 40px 0;
  }

  :root .calculators-seo .calculators-seo__title {
    width: 100%;
    white-space: normal;
  }

  .calculators-seo__title br {
    display: none;
  }

  :root .calculators-seo .calculators-seo__text {
    font-size: 14px !important;
    overflow-wrap: break-word;
  }

  .calculators-seo__text::before {
    content: none;
  }
}

/* шрифты */

@font-face {
  font-family: "Montserrat", serif;
  font-optical-sizing: auto;
  font-display: swap;
  font-style: normal;
}

*,
a,
.__header .search-box input::placeholder,
.search--box form.s-icon-right input::placeholder,
.__header .search-box input {
  font-family: "Montserrat", serif !important;
  font-weight: 400;
}

*,
p {
  font-weight: 400;
  letter-spacing: 0.2px;
  color: var(--custom-black-color);
}

strong {
  font-weight: 500 !important;
}

span,
p,
.text-page ul li,
.o-product-tab ul li {
  line-height: 130% !important;
  font-size: 13px !important;
}

h1,
.h1,
h2,
.h2,
h3,
.h3,
h4,
.h4,
h5,
.h5,
h6,
.h6,
.__header .contact-box p.toggled {
  line-height: 110% !important;
  color: var(--custom-black-color);
}

a {
  font-weight: 400 !important;
  line-height: 100% !important;
  font-size: 13px;
}

.inner-page h1 {
  color: var(--custom-black-color);
  margin-bottom: 30px;
}

h2,
.h2,
h1,
.h1,
.mb-25,
section.feedback-form .h2,
.question-form .h2 {
  font-size: 20px;
  text-transform: uppercase;
  font-weight: 600 !important;
  margin-bottom: 30px;
}

h3,
.h3 {
  font-size: 16px;
  text-transform: uppercase;
  font-weight: 600 !important;
  margin-bottom: 20px;
}

h4,
.h4,
.footer-content__title {
  font-size: 13px;
  font-weight: 600 !important;
  line-height: 110% !important;
  margin-bottom: 15px;
  text-transform: uppercase;
}

h5,
.h5 {
  font-size: 13px;
  font-weight: 500 !important;
  line-height: 100% !important;
  margin-bottom: 15px;
}

main {
  overflow: hidden;
}

.fixed::after {
  display: none;
}

.button-theme_primary {
  color: var(--custom-white-color) !important;
  text-align: center;
}

.static-cold-block {
  padding: 80px 0 0 0;
}

.custom-cold-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-bottom: 80px;
  align-items: start;
}

.custom-cold-block .cold-column-left {
  padding-top: 15px;
}

.cold-column-right .features__plus-row:nth-child(2) {
  top: 44%;
  position: relative;
}

.partners-grid {
  display: grid;
  gap: 50px 0;
  margin: 15px 0;
  grid-template-columns: 1fr 1fr 1fr;
  justify-items: center;
}

.partners-grid img {
  transition: transform 0.25s ease;
  filter: grayscale(1);
  opacity: 0.5;
}

.seo-grid-item img {
  transition: transform 0.25s ease;
}

.partners-grid img:hover,
.seo-grid-item:hover img {
  transform: scale(1.03);
  filter: grayscale(0);
  opacity: 1;
}

.custom-seo-block,
.seo-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr 1fr;
}

.black-block {
  padding: 40px;
  background: var(--custom-black-color);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.black-block h1,
.black-block p {
  color: var(--custom-white-color);
}

.black-block h1 {
  margin-bottom: 15px !important;
}

.black-block .btn {
  width: 175px;
  margin-top: auto;
}

.seo-grid-item {
  background: var(--custom-black-color);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 50px;
  flex-direction: column;
  gap: 15px;
}

.seo-grid-item span {
  color: var(--custom-white-color);
  margin-bottom: 0;
  font-size: 14px !important;
}

.seo-grid-item img {
  max-height: 80px;
}

.footer-content__title:not(.footer-right .footer-content__title),
.footer-phone a {
  text-decoration: underline;
  text-underline-offset: 6px;
}

footer {
  z-index: 9999;
}
/*
.page::before {
  content: "";
  width: 1px;
  height: 100%;
  position: absolute;
  background: var(--custom-gray-color-300);
  right: calc(50% - 740px);
  z-index: 1;
  top: 0;
}

.page::after {
  content: "";
  width: 1px;
  height: 100%;
  position: absolute;
  background: var(--custom-gray-color-300);
  left: calc(50% - 740px);
  z-index: 1;
  top: 0;
}
*/
/* курсор */

.h1,
.h2,
.h3,
h1,
h2,
h3,
h4,
.h4,
.h5,
h5,
h6,
.h6,
.personal-form__element-top,
.personal-form__post-text,
section.feedback-form .form-text,
.modal.fancybox-content .form-text,
.footer-content__title,
.frontpage p,
.frontpage .text-page ul li,
.footer-bottom .copy.version,
.footer-bottom__left,
ul li,
.catalog-sorting__title,
.g-title,
.product-card__discription-title,
.product-card__personal-cost span,
.product-card__discription-title,
.product-item__status,
.orig-price strong,
.product-card__left p,
.shopping-cart-item__name,
.shopping-cart-item__total-cost,
.shopping-cart-item__cost,
.footer-content-cookie,
.form-text,
.footer-contact,
.product-card__artikul,
.product-card-container p,
.main-action p,
.contacts-block__title,
.contacts-block__title-red.address-data,
.contact-text-line p,
.content-title {
  cursor: default;
}

[data-fancybox],
.btn-border.callme-button,
.category-box-text,
.form-close,
.catalog-item p,
.st-button__title,
.events-item h4 {
  cursor: pointer;
}

.fixed::after {
  display: none;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

.about-block {
  padding: 20px 0 0 0;
  color: var(--custom-white-color);
}

.about-block__inner {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: 215px 105px 105px 105px;
  background-color: var(--custom-black-color);
  gap: 0;
  margin: 0 auto;
  overflow: visible;
}

/* шапка */

.__header .catalog-btn:hover,
.__header .catalog-btn.toggled {
  background: transparent;
  color: var(--custom-accent-color-400);
  border-color: var(--custom-accent-color-400);
}

.__header .contact-box p.toggled a {
  font-weight: 500 !important;
  color: var(--custom-black-color);
  line-height: 100%;
  font-size: 13px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--custom-black-color);
}

.__header .contact-box p.toggled a:hover {
  border-color: var(--custom-accent-color-400);
  color: var(--custom-accent-color-400);
}

.__header .contact-box p.toggled {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.__header .row .col-lg-2 {
  width: max-content !important;
}

.header-cart span.cart-number,
.__header .option-items li:first-child .products-total-count {
  width: min-content;
  height: min-content;
  font-size: 11px !important;
  text-align: center;
  color: var(--custom-black-color);
  border-radius: 0;
  flex-shrink: 0;
  background: none;
  position: absolute;
  top: -2px;
  right: -11px;
}

.__header .option-items li:first-child .products-total-count {
  right: -2px;
}

.__header .option-items li a.header-cart {
  width: max-content;
  gap: 0px;
  align-items: flex-end;
}

.__header .option-items li a {
  padding-left: 0;
}

.header-cart:hover::before {
  text-decoration: none !important;
  color: var(--custom-black-color);
}

.__header .options-box .nav-items li a.active,
.__header .options-box .nav-items li a:hover,
.__header .options-box .nav-items {
  text-decoration: none !important;
}

.__header .options-box .nav-items {
  width: min-content;
}

.__header .options-box ul {
  flex-shrink: 0;
}

.__header .options-box {
  width: min-content;
  margin-left: 0px;
  align-items: flex-start;
  flex-wrap: nowrap;
  flex-direction: row;
  justify-content: flex-end;
  gap: 20px;
}

.__header .options-box .nav-items li a {
  font-weight: 400;
  width: max-content;
  display: flex;
}

.__header .options-box .nav-items li {
  padding-right: 0;
  line-height: 100%;
}

.__header .option-items li {
  padding-right: 0;
}

.__header .option-items li a {
  gap: 5px;
}

.__header .option-items li img {
  width: 30px;
  height: 16px !important;
  position: relative;
}

.__header .option-items li a[href*="/favorites/products"] > img {
  content: url("https://stroybaza-samara.ru/media/uploads/svg/fav-icon.svg") !important;
  display: block !important;
  width: 30px !important;
  height: 16px !important;
  object-fit: contain;
}

.__header .options-box .nav-items li a {
  border-bottom: 1px solid var(--custom-accent-color-400);
  padding-bottom: 6px;
  font-size: 13px;
}

.__header .options-box .nav-items li .location-caret::before {
    content: "";
    width: 21px;
    height: 21px;
    background: url(https://stroybaza-samara.ru/media/uploads/svg/baza-icon.svg) no-repeat;
    background-size: 100%;
    background-position: center top;
    position: absolute;
    bottom: auto;
    right: auto;
    top: auto;
    bottom: -4px;
    left: -30px;
    border: none;
    border-bottom: 1px solid var(--custom-accent-color-400);
    border-bottom: none;
}

.fancybox-slide--html .fancybox-close-small {
  padding: 0;
  background: none;
}

.__header .option-items {
  justify-content: flex-end;
  width: min-content;
}

.__header .option-items li a[href*="/favorites/products"]::before {
  content: none;
}

.__header .option-items li a[href*="/favorites/products"] > svg.header-favorite-icon,
.mobile-header__favorite-button > svg.header-favorite-icon {
  display: block;
  flex: 0 0 30px;
  width: 30px;
  height: 16px;
  background: url("https://stroybaza-samara.ru/media/uploads/svg/fav-icon.svg") center / contain no-repeat;
}

.__header .option-items li a[href*="/favorites/products"] > svg.header-favorite-icon path,
.mobile-header__favorite-button > svg.header-favorite-icon path {
  display: none !important;
}

.custom-attention-section .custom-attention,
.custom-attention-section--hidden,
.custom-attention--source,
.custom-attention--mobile-fixed,
.custom-attention--header {
  display: none;
}
/*
.__header .options-box .nav-items li .location-caret {
    /*display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    position: relative;
    color: var(--custom-gray-color-700);
    font-size: 9px !important;
    line-height: 100% !important;
    justify-content: flex-end;
    flex-wrap: nowrap;
    white-space: nowrap;
}

.__header .options-box .nav-items li .location-caret::after {
  content: "Стройбаза";
  order: -1;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--custom-accent-color-400);
  color: var(--custom-black-color);
  font-size: 13px !important;
  line-height: 100% !important;
}
*/
.__header .options-box ul {
  gap: 15px;
}

.__header .contact-box {
  display: flex;
  max-height: 100%;
  height: 100%;
  flex-wrap: nowrap;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  width: 100%;
  margin-left: auto;
  margin-right: 20px;
  min-width: 0;
}

.__header .logo {
  width: max-content;
}

.__header .row .col-lg-2 {
  width: 22%;
}

.__header .custom-block {
  padding-left: 0;
  align-items: flex-end;
  gap: 20px;
  height: auto;
  width: min-content;
}

.__header .search-box form {
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  gap: 8px;
  height: auto;
  line-height: 100%;
  width: 100%;
}

.__header .search-box .submit img {
  display: none;
}

.__header .catalog-btn,
.__header .search-box input {
  background: none;
  border: none;
  color: var(--custom-black-color);
  padding: 0;
  width: min-content;
  height: auto;
  font-weight: 400;
  text-transform: uppercase;
  font-size: 13px;
  gap: 10px;
  line-height: 112%;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--custom-accent-color-400);
}

.__header .catalog-btn {
  margin-right: 0;
  flex-direction: column;
  gap: 0;
  text-transform: none;
  font-size: 0;
  padding: 0;
  margin: 0;
  margin-bottom: 0px;
  border: none;
}

.__header {
  padding-top: 18px;
  padding-bottom: 0px;
  height: 70px;
}

.__header .catalog-btn span {
  line-height: 100% !important;
  color: var(--custom-black-color);
}

.__header .search-box form,
.__header .search-box {
  height: auto;
}

.__header .search-box input {
  line-height: 100%;
  width: 100%;
  border-radius: 0;
  text-transform: none;
}

.__header .search-box input::placeholder {
  color: var(--custom-black-color);
  line-height: 100% !important;
  text-transform: none;
}

.__header .search-box .submit {
  background: transparent;
  width: 30px;
  min-width: 30px;
  flex: 0 0 30px;
  padding: 0;
  border-radius: 0;
  height: 16px;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: row;
  border: 0;
  overflow: visible;
  flex-wrap: nowrap;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.__header .search-box .submit::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--custom-accent-color-400);
  clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
}

.__header .search-box .submit::after {
  content: "";
  position: absolute;
  inset: 1px;
  background-color: var(--custom-white-color);
  background-image: url(https://stroybaza-samara.ru/media/uploads/svg/search-hover.svg);
  background-repeat: no-repeat;
  background-size: 10px;
  background-position: center;
  clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
}

.__header .search-box .submit:hover {
  background: transparent;
  border: 0;
}

.__header .contact-box a {
  display: none;
}

.__header .search-box .submit:hover::after {
  background-color: var(--custom-gray-color-100);
  background-image: url(https://stroybaza-samara.ru/media/uploads/svg/search-hover.svg);
  background-size: 10px;
  background-position: center;
  color: var(--custom-black-color);
}

.__header .search-box .submit:hover::before {
  background: var(--custom-gray-color-500);
}

.__header .search-box {
  width: 200px;
  display: flex;
  flex-direction: row;
  gap: 15px;
  align-items: flex-end;
}

.__header .catalog-btn span {
  display: none;
}

.__header .catalog-btn {
  margin-right: 0;
}

.__header .catalog-btn:hover {
  background: transparent;
  color: var(--custom-accent-color-400);
  border-color: var(--custom-accent-color-400);
}

.__header .catalog-btn::before {
  content: "";
  width: 30px;
  height: 16px;
  background: url(https://stroybaza-samara.ru/media/uploads/svg/catalog-header.svg)
    no-repeat center;
  background-size: 30px 16px;
  background-position: center center;
  margin-left: 0px;
}

/* Верхний большой блок */

.about-block__hero {
  position: relative;
  grid-column: 1 / -1;
  grid-row: 1 / 3;
  min-height: 330px;
  background-color: var(--custom-black-color);
  overflow: visible;
}

.about-block__hero::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 430px;
  background-image: url("https://stroybaza-samara.ru/media/uploads/svg/pattern-offer.svg");
  background-repeat: no-repeat;
  background-position: left bottom;
  background-size: cover;
  opacity: 1;
  pointer-events: none;
}

.about-block__content {
  position: relative;
  z-index: 3;
  padding: 40px 40px 0;
}

.about-block__content .btn {
  width: 155px;
}

.about-block__content h2,
.about-block__content h1,
.about-block__content p {
  color: var(--custom-white-color);
}

.about-block__content h2 {
  margin-bottom: 10px !important;
}

.about-block__content h1 {
  text-transform: none !important;
  font-size: 13px !important;
  line-height: 130% !important;
  font-weight: 400 !important;
}

.about-block__photo {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: -20px;
  width: auto;
  max-width: none;
  height: calc(100% + 20px);
  pointer-events: none;
  user-select: none;
  transform: translateX(-50%);
}

/* Категории */

.about-block__categories {
  display: contents;
}

.category-card {
  position: relative;
  z-index: 4;
  display: flex;
  align-items: flex-start;
  min-height: 105px;
  aspect-ratio: 2.8;
  height: auto;
  padding: 25px 25px 0px 25px;
  background-color: transparent;
  border: 0;
  color: var(--custom-white-color);
  text-decoration: none;
  overflow: hidden;
  isolation: isolate;
  transition: color 0.25s ease;
}

.category-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-color: var(--custom-white-color);
  pointer-events: none;
}

.category-card::after {
  content: "";
  position: absolute;
  top: 5px;
  right: 0;
  bottom: 0;
  left: 5px;
  z-index: 1;
  background-color: var(--custom-gray-color-400);
  pointer-events: none;
}

@media (min-width: 992px) {
  .category-card:nth-child(1),
  .category-card:nth-child(2),
  .category-card:nth-child(4),
  .category-card:nth-child(5),
  .category-card:nth-child(8) {
    margin-left: -0.1px;
  }
}
.category-card:nth-child(1)::before,
.category-card:nth-child(2)::before,
.category-card:nth-child(3)::before {
  clip-path: polygon(18px 0, 100% 0, 100% 100%, 0 100%, 0 18px);
}

.category-card:nth-child(1)::after,
.category-card:nth-child(2)::after,
.category-card:nth-child(3)::after {
  clip-path: polygon(15px 0, 100% 0, 100% 100%, 0 100%, 0 15px);
}

.category-card:nth-of-type(6),
.category-card:nth-of-type(9) {
  border-left: 0;
}

.category-card:hover {
  color: var(--custom-accent-color-400);
}

.category-card:focus-visible {
  outline: 2px solid var(--custom-accent-color-400);
  outline-offset: -2px;
}

.category-card__title {
  position: relative;
  z-index: 3;
  display: block;
  padding: 0;
  color: var(--custom-black-color);
  margin: 0 !important;
  cursor: pointer !important;
}

.category-card__image {
  position: absolute;
  bottom: 0;
  z-index: 2;
  object-fit: cover;
  pointer-events: none;
  transition: transform 0.25s ease;
  transform-origin: right bottom;
  right: -10px;
  width: auto;
  height: 87%;
  max-width: none !important;
}

.category-card:hover .category-card__image {
  transform: scale(1.03);
}

.dummy {
  grid-column: 2 / 2;
  grid-row: 5 / 6;
  background: var(--custom-white-color);
  position: relative;
  z-index: 4;
  display: flex;
  align-items: center;
  min-height: 84px;
}

/* Раскладка карточек на desktop */

.category-card--roof {
  grid-column: 3 / 4;
  grid-row: 2 / 3;
}

.category-card--facade {
  grid-column: 4 / 5;
  grid-row: 2 / 3;
}

.category-card--sheets {
  grid-column: 2 / 3;
  grid-row: 3 / 4;
}

.category-card--insulation {
  grid-column: 3 / 4;
  grid-row: 3 / 4;
}

.category-card--mixes {
  grid-column: 4 / 5;
  grid-row: 3 / 4;
}

.category-card--metal {
  grid-column: 1 / 2;
  grid-row: 4 / 5;
}

.category-card--wood {
  grid-column: 2 / 3;
  grid-row: 4 / 5;
}

.category-card--fasteners {
  grid-column: 3 / 3;
  grid-row: 4 / 5;
}

.category-card--sten {
  grid-column: 1 / 2;
  grid-row: 5 / 6;
}

.category-card--territory {
  grid-column: 2 / 3;
  grid-row: 5 / 6;
}

.catalog-box ul {
    grid-template-rows: repeat(2, auto) !important;
}

/* Нижний белый блок */

.about-block__bottom {
  position: relative;
  z-index: 4;
  grid-column: 4 / 5;
  grid-row: 4 / 5;
  display: flex;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 20px;
  padding: 25px 0 0 30px;
  background-color: var(--custom-white-color);
  color: var(--custom-black-color);
  flex-direction: column-reverse;
  justify-content: flex-end;
}

.about-block__bottom h4 {
  font-weight: 500 !important;
}

.about-block__slogan {
  margin: 0;
  max-width: 240px;
}

.about-block__socials {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin: 0;
  height: min-content;
  padding: 0;
  flex-shrink: 0;
}

.review-item {
  padding: 20px;
  background: var(--custom-gray-color-100);
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  transition: opacity 0.25s ease;
}

.social-link:hover {
  opacity: 0.65;
}

.social-link:focus-visible {
  outline: 1px solid var(--custom-accent-color-400);
  outline-offset: 2px;
}

.social-link img {
  width: 100%;
  height: 100%;
}

.features {
  position: relative;
  margin-top: 50px;
}

/* === Декоративные плюсы === */
.features__plus-grid {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 15px;
  align-items: center;
}

.features__plus-row {
  display: flex;
  justify-content: space-between;
  width: calc(100% + 20px) !important;
}

.features__plus-row--mobile {
  display: none;
}

.features__plus {
  position: relative;
  width: 20px;
  height: 20px;
  display: inline-block;
}

.features__plus::before,
.features__plus::after {
  content: "";
  position: absolute;
  background: var(--custom-gray-color-500);
}

.features__plus::before {
  top: 50%;
  left: 0;
  width: 100%;
  height: 1px;
  transform: translateY(-50%);
}

.features__plus::after {
  left: 50%;
  top: 0;
  width: 1px;
  height: 100%;
  transform: translateX(-50%);
}

/* === Список === */
.features__list {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0px;
  list-style: none;
  margin: 0;
  width: 100%;
}

.features__item {
  display: flex;
  justify-content: center;
}

/* === Кнопка === */
.features__btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding-bottom: 10px;
  font: inherit;
  transition:
    transform 0.2s ease,
    color 0.2s ease;
}

.features__btn:hover {
  transform: translateY(-2px);
}

.features__btn:focus-visible {
  outline: 1px solid var(--custom-accent-color-400);
  outline-offset: 6px;
  border-radius: 4px;
}

.features__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
}

.features__icon img {
  width: 100%;
  max-width: 100%;
  max-height: 100%;
  display: block;
}

.features__icon #hover {
  display: none;
}

.features__btn:hover #hover {
  display: block;
}

.features__btn:hover #default {
  display: none;
}

/* Use one shared icon source for homepage feature links on every city domain. */
.features__list > .features__btn:nth-child(1) .features__icon #default {
  content: url("https://stroybaza-samara.ru/media/uploads/svg/icon-1.svg");
}

.features__list > .features__btn:nth-child(1) .features__icon #hover {
  content: url("https://stroybaza-samara.ru/media/uploads/svg/icon-1-hover.svg");
}

.features__list > .features__btn:nth-child(2) .features__icon #default {
  content: url("https://stroybaza-samara.ru/media/uploads/svg/icon-2.svg");
}

.features__list > .features__btn:nth-child(2) .features__icon #hover {
  content: url("https://stroybaza-samara.ru/media/uploads/svg/icon-2-hover.svg");
}

.features__list > .features__btn:nth-child(3) .features__icon #default {
  content: url("https://stroybaza-samara.ru/media/uploads/svg/icon-3.svg");
}

.features__list > .features__btn:nth-child(3) .features__icon #hover {
  content: url("https://stroybaza-samara.ru/media/uploads/svg/icon-3-hover.svg");
}

.features__list > .features__btn:nth-child(4) .features__icon #default {
  content: url("https://stroybaza-samara.ru/media/uploads/svg/icon-4.svg");
}

.features__list > .features__btn:nth-child(4) .features__icon #hover {
  content: url("https://stroybaza-samara.ru/media/uploads/svg/icon-4-hover.svg");
}

.features__list > .features__btn:nth-child(5) .features__icon #default {
  content: url("https://stroybaza-samara.ru/media/uploads/svg/icon-5.svg");
}

.features__list > .features__btn:nth-child(5) .features__icon #hover {
  content: url("https://stroybaza-samara.ru/media/uploads/svg/icon-5-hover.svg");
}

.features__list > .features__btn:nth-child(6) .features__icon #default {
  content: url("https://stroybaza-samara.ru/media/uploads/svg/icon-6.svg");
}

.features__list > .features__btn:nth-child(6) .features__icon #hover {
  content: url("https://stroybaza-samara.ru/media/uploads/svg/icon-6-hover.svg");
}

.features__list > .features__btn:nth-child(7) .features__icon #default {
  content: url("https://stroybaza-samara.ru/media/uploads/svg/icon-7.svg");
}

.features__list > .features__btn:nth-child(7) .features__icon #hover {
  content: url("https://stroybaza-samara.ru/media/uploads/svg/icon-7-hover.svg");
}

.features__label {
  text-decoration: underline;
  text-underline-offset: 6px;
  white-space: nowrap;
  cursor: pointer !important;
}

.features__btn--active .features__label,
.features__btn:hover .features__label {
  color: var(--custom-accent-color-400);
}

/* подвал */

footer {
  background: var(--custom-black-color);
  padding: 80px 0 0px 0;
}

.footer-content__title {
  margin-bottom: 20px !important;
}

.footer-content__title span,
.footer-content__title,
.footer-content__column a,
.footer-phone a,
.footer-contact {
  color: var(--custom-white-color);
}

.footer-contact,
.footer-content__column a,
.footer-phone a {
  font-size: 13px !important;
}

footer .phone_alloka {
  color: var(--custom-white-color);
}

.phone_alloka:hover {
  color: var(--custom-accent-color-400);
}

.footer-right .footer-content__title {
  position: relative;
}

.footer-right .footer-content__title::after {
  content: "";
  height: 1px;
  background: var(--custom-white-color);
  top: 16px;
  left: 0;
  width: 186px;
  position: absolute;
}

.footer-content__title span {
  text-transform: none !important;
  margin-top: 5px;
}

.footer-phone {
  line-height: 100%;
}

.footer-phone a {
  font-weight: 500 !important;
}

.footer-content__column a:hover,
.footer-phone a:hover {
  color: var(--custom-accent-color-400);
}

.developer-link a,
.footer-bottom__left,
.footer-bottom .copy,
.footer-content-cookie {
  font-size: 10px !important;
  opacity: 1;
}

.developer-link a,
.footer-bottom__left,
.footer-bottom .copy,
.footer-content__title span,
.footer-content-cookie {
  color: var(--custom-gray-color-700) !important;
}

.checkbox span,
.checkbox span a {
  font-size: 10px !important;
  line-height: 130% !important;
}

/* Footer social links are hidden globally; keep the markup for restoring them. */
footer .footer-social {
  display: none !important;
}

.footer-first-column .logo img {
  width: 96%;
}

.button-theme_primary,
.__header .header-mail__action,
.footer-subscribe button,
.product-card-v2__buttons .st-button_add-to-cart,
.st-button_primary.w-100,
.question-main .btn,
.error__content .btn {
  height: 34px !important;
  width: 100%;
  border-radius: 0px;
  font-size: 13px;
  line-height: 100%;
}

.footer-subscribe button,
.question-main .btn,
.error__content .btn {
  width: 175px;
  background: var(--custom-accent-color-400) !important;
  color: var(--custom-white-color) !important;
  border: none !important;
  border-radius: 0;
}

.footer-subscribe button:hover,
.question-main .btn:hover,
.error__content .btn:hover {
  background: var(--custom-gray-color-100) !important;
  color: var(--custom-black-color) !important;
  border: none !important;
}

.developer-link a {
  color: var(--custom-accent-color-400);
}

.footer-subscribe input,
section.feedback-form .form-control,
.form-control {
  height: 34px;
  border: none !important;
  font-size: 13px;
  padding: 0 20px;
  border-radius: 0px;
  background: var(--custom-gray-color-100);
  color: var(--custom-black-color);
}

section.feedback-form .form-control:valid + .label-name .content-name {
  display: none;
}

#question-main textarea.form-control {
  display: block;
  height: 78px;
  padding: 8px 20px;
  min-height: 0;
}

.question-main .btn {
  margin-top: 0;
}

.question-form__column {
  align-items: flex-start;
}

.question-form .checkbox {
  max-width: 100%;
  margin-top: 0;
}

.form-group {
  margin-bottom: 10px;
}

.question-form form {
  display: grid;
  gap: 0 10px;
  grid-template-columns: repeat(2, 1fr);
}

.question-form__column {
  width: 100%;
}

.form-text,
.footer-content-cookie,
.form-control::placeholder,
.content-name,
.question-form .form-text {
  color: var(--custom-gray-color-700) !important;
}

.developer-link a:hover {
  color: var(--custom-accent-color-400) !important;
}

.section-dark.feedback-form {
  padding: 80px 0;
}

section.feedback-form .h2,
.question-form .h2 {
  font-size: 20px !important;
  width: min-content;
}

.custom-catalog-button .btn {
  width: 226px;
  display: flex;
  position: relative;
  margin-left: auto;
  margin-right: auto;
  right: 0;
}

.frontpage .custom-catalog-button .sb-home-slider-next {
  display: none;
}

@media (max-width: 767px) {
  .frontpage .custom-catalog-button > .container:has(> .sb-home-slider-next:not([hidden])) {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .frontpage .custom-catalog-button > .container:has(> .sb-home-slider-next:not([hidden])) > .btn {
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    height: 34px;
    min-height: 34px;
    margin: 0;
    padding: 0 10px;
    font-size: 13px;
    white-space: nowrap;
  }

  .frontpage .custom-catalog-button .sb-home-slider-next:not([hidden]) {
    grid-column: 1;
    display: flex !important;
  }

  .frontpage .custom-catalog-button > .container:has(> .sb-home-slider-next:not([hidden])) > a.btn {
    grid-column: 2;
  }

  .frontpage .custom-catalog-button > .container > .features__plus-row {
    grid-column: 1 / -1;
  }

  .frontpage .custom-catalog-button .sb-home-slider-next:disabled {
    opacity: .5;
    cursor: default;
  }
}

.button-theme_primary,
.st-button_primary.w-100 {
  color: var(--custom-white-color) !important;
  background: var(--custom-accent-color-400) !important;
  border: 1px solid var(--custom-accent-color-400) !important;
}

.button-theme_primary:hover,
.st-button_primary.w-100:hover {
  color: var(--custom-black-color) !important;
  background: var(--custom-white-color) !important;
  border: 1px solid var(--custom-accent-color-400) !important;
}

.slider-constructor .slick-arrow,
.faq-element__trigger {
  width: 40px;
  height: 34px;
  border-radius: 0px;
  border: var(--custom-border-width) solid var(--custom-border-color);
  background: var(--custom-white-color);
}

.product-slider__banners {
  z-index: 11;
}

.slider-constructor .slick-arrow img,
.slider-constructor .slick-arrow svg,
.faq-element__trigger .icon {
  width: 12px;
  height: 12px;
}

.slider-constructor .slick-arrow:hover img,
.slider-constructor .slick-arrow:hover svg,
.faq-element__head:hover .faq-element__trigger .icon,
.faq-element.active .faq-element__trigger .icon {
  fill: var(--custom-accent-color-400);
}

.slider-constructor .slick-prev {
  right: 39px;
}

.custom-catalog-button {
  margin-bottom: 0px !important;
}

.mb-25 {
  max-width: 280px;
  margin-bottom: 30px !important;
}

.slider-constructor .slick-prev,
.slider-constructor .slick-next {
  top: -70px;
}

.product_set_slider {
  padding: 60px 0 0 0;
}

/* тизер */

.advertising_horizontal {
  display: none;
}

.product-card-v2 {
  font-size: 13px;
  border: var(--custom-border-width) solid var(--custom-border-color);
  height: auto;
}

.product-card-v2__content {
  padding: 20px;
}

.product-card-v2__image {
  aspect-ratio: 220 / 170;
  background: var(--custom-white-color);
  border-radius: 0;
}

.product-card-v2__title {
  font-size: 13px;
  line-height: 130%;
  color: var(--custom-black-color);
  margin-bottom: 0px;
  min-height: 52px;
  -webkit-line-clamp: 3;
    word-break: normal;
  overflow-wrap: normal;
  hyphens: none;
}

.product-card-v2__price,
.product-card-v2__price span {
  font-size: 16px !important;
  font-weight: 500;
}

.product-card-v2__pricing-txt {
  font-size: 9px;
  line-height: 110% !important;
  width: 150px;
  order: 4;
  margin-top: 2px;
  margin-bottom: 0;
  color: var(--custom-black-color);
}

.product-card-v2__price.text-color-accent {
  margin-bottom: 4px;
}

.text-color-accent,
.text-color-accent span {
  color: var(--custom-gray-color-700) !important;
}

.product-card-v2__price,
.product-card-v2__price span {
  color: var(--custom-black-color);
}

.product-card-v2__buttons {
  gap: 6px;
}

.input-number input[type="number"] {
  font-size: 13px !important;
  -moz-appearance: textfield;
  appearance: textfield;
}

.input-number input[type="number"]::-webkit-inner-spin-button,
.input-number input[type="number"]::-webkit-outer-spin-button {
  margin: 0;
  -webkit-appearance: none;
}

/* Remove browser-native number steppers; the counter has its own +/- controls. */
input[type="number"] {
  -moz-appearance: textfield !important;
  appearance: textfield !important;
}

.product-item_new .input-number .order-down:hover,
.product-item_new .input-number .order-up:hover,
.product-item_wide .input-number .order-down:hover,
.product-item_wide .input-number .order-up:hover,
.product-item_max-heigth .input-number .order-down:hover,
.product-item_max-heigth .input-number .order-up:hover,
.product-item_max-width .input-number .order-down:hover,
.product-item_max-width .input-number .order-up:hover,
.product-card-v2 .input-number .order-down:hover,
.product-card-v2 .input-number .order-up:hover {
  background: var(--custom-white-color);
}

.product-item_new .input-number,
.product-item_wide .input-number,
.product-item_max-heigth .input-number,
.product-item_max-width .input-number,
.input-number,
.product-card-v2 .input-number {
  height: 34px !important;
  border: var(--custom-border-width) solid var(--custom-border-color) !important;
  border-radius: 0px;
  width: 100%;
  max-width: none;
}

.input-number .order-up:before {
  left: 50%;
}

.input-number .order-up:after,
.input-number .order-down::before {
  left: calc(50% - 5.5px);
}

.input-number .order-down,
.input-number .order-up,
.input-number .order-down:hover,
.input-number .order-up:hover {
  padding-left: 0;
}

.product-card-v2__buttons .st-button_add-to-cart {
  border: var(--custom-border-width) solid var(--custom-border-color) !important;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--custom-accent-color-100) !important;
  padding: 0;
  width: 55px !important;
}

.product-card-v2__buttons .st-button_add-to-cart:hover {
  border: 1px solid var(--custom-accent-color-400) !important;
  background: var(--custom-accent-color-400) !important;
}

.widget .st-button_add-to-cart .st-button__icon_cart,
.widget .st-button_add-to-cart:hover .st-button__icon_cart,
.widget .st-button_add-to-cart:has(.st-button__icon_cart.hover):hover .st-button__icon_cart.hover,
.product-card-v2__buttons .st-button_add-to-cart .st-button__icon_cart,
.product-card-v2__buttons .st-button_add-to-cart:hover .st-button__icon_cart,
.product-card-v2__buttons .st-button_add-to-cart:has(.st-button__icon_cart.hover):hover .st-button__icon_cart.hover {
  display: none !important;
}

.st-button_add-to-cart .st-button__icon_cart.hover,
.st-button_add-to-cart .st-button__text,
.st-button_add-to-cart:has(.st-button__icon_cart.hover):hover
  .st-button__icon_cart {
  display: none !important;
}

.st-button_add-to-cart:hover {
  border: 1px solid var(--custom-accent-color-400) !important;
  background: var(--custom-accent-color-400);
  color: var(--custom-white-color);
}

.st-button_add-to-cart:hover .st-button__icon_cart.hover,
.st-button_add-to-cart:has(.st-button__icon_cart.hover):hover
  .st-button__icon_cart.hover {
  display: block !important;
}

.st-button_add-to-cart:has(.st-button__icon_cart.hover):hover {
  background: var(--custom-accent-color-400) !important;
  border: 1px solid var(--custom-accent-color-400) !important;
  color: var(--custom-white-color) !important;
}

.st-button_add-to-cart {
  flex: none !important;
}

.st-button__icon_favorite {
  fill: var(--custom-accent-color-400) !important;
}

/* Keep the heart transparent over preview photos in every state. */
.product-card-v2 .st-button_add-to-favorite .st-button__icon_favorite,
.product-item .st-button_add-to-favorite .st-button__icon_favorite {
  background-color: transparent !important;
}

.product-card-v2 .st-button_add-to-favorite .icon-container > .st-button__icon_favorite:first-child,
.product-card .st-button_add-to-favorite .icon-container > .st-button__icon_favorite:first-child {
  background-image: url("https://stroybaza-samara.ru/media/uploads/svg/fav-icon.svg");
  background-position: center;
  background-repeat: no-repeat;
  background-size: 30px 16px;
}

.product-card-v2 .st-button_add-to-favorite .icon-container > .st-button__icon_favorite:first-child path,
.product-card .st-button_add-to-favorite .icon-container > .st-button__icon_favorite:first-child path {
  display: none;
}

/* акции */

.news-slider-set {
  margin-top: -90px;
  padding: 0;
}

.news-slider-set h2 {
  width: min-content;
}

.news-item-img img {
  max-width: 100%;
  position: relative;
  z-index: 2;
  width: 100%;
  transition: transform 0.25s ease;
}

.news-item-img {
  aspect-ratio: 1.195;
  background: var(--custom-black-color)
    url(https://stroybaza-samara.ru/media/uploads/svg/news-pattern.svg);
  position: relative;
  transition: 0.25s ease;
  overflow: hidden;
}

.news-item-img::before {
  content: "";
  position: absolute;
  background: var(--custom-white-color);
  height: 20px;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 1;
}

.custom-news-item {
  display: flex;
  gap: 10px;
  flex-direction: column;
  padding-top: 20px;
}

.custom-news-item:hover .news-item-img {
  background: var(--custom-accent-color-400)
    url(https://stroybaza-samara.ru/media/uploads/svg/news-pattern-hover.svg);
}

.custom-news-item:hover .news-item-img img {
  transform: scale(1.03);
}

.news-item-info {
  background: var(--custom-gray-color-100);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 10px;
  padding: 15px 20px 25px 20px;
  align-items: flex-start;
}

.news-item-info .btn-plus {
  flex-shrink: 0;
}

.news-item-info-text {
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  gap: 20px;
  justify-content: space-between;
    width: 100%;
}

.btn-plus {
  background-color: var(--custom-accent-color-400);
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: color 0.25s ease;
}

.product-info__banner .btn-plus::before,
.product-info__banner .btn-plus::after {
  background: var(--custom-accent-color-400);
}

.btn-plus:hover {
  background-color: var(--custom-accent-color-100);
}

.product-info__banner .btn-plus:hover::before,
.product-info__banner .btn-plus:hover::after {
  background: var(--custom-white-color);
}

.btn-plus::before,
.btn-plus::after {
  content: "";
  position: absolute;
  background: var(--custom-white-color);
  transition: color 0.25s ease;
}

.btn-plus:hover::before,
.btn-plus:hover::after {
  background: var(--custom-accent-color-400);
}

.btn-plus::after {
  left: 50%;
  top: 7px;
  width: 1px;
  height: calc(100% - 14px);
  transform: translateX(-50%);
}

.btn-plus::before {
  top: 50%;
  left: 7px;
  width: calc(100% - 14px);
  height: 1px;
  transform: translateY(-50%);
}

.product-info__banner img {
  z-index: 1;
  position: absolute;
}

.product-info__banner p, .banner-info {
  z-index: 2;
  padding: 30px;
  width: 100%;
}

.banner-info p {
  padding: 0px;
  width: 100%;
}

.banner-info h2 {
  margin-bottom: 10px !important;
}

.category-project {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px 60px;
    margin-top: 80px;
    margin-bottom: 80px;
}

.category-project li::before {
  display: none !important;
}

.category-project li {
    display: grid;
    grid-template-columns: 50px 1fr;
    gap: 20px;
    align-items: center;
    margin-bottom: 0 !important;
    padding-left: 0 !important;
}

.category-project li a {
    margin-bottom: 0;
}

.category-project li a:hover {
    color: var(--custom-accent-color-400);
}

.category-project li img {
    width: 50px;
}

.product-info__banner .btn-plus {
  top: 30px;
  right: 30px;
}

.product-info__banner .button-theme_primary {
  position: relative;
  z-index: 2;
  top: auto;
  bottom: 30px;
  left: 30px;
  width: calc(100% - 60px);
}

.content-title span {
  font-size: 20px !important;
}

.product-info__banner:hover .btn-plus::after,
.product-info__banner:hover .btn-plus::before {
  background: var(--custom-white-color);
}

.product-info__banner {
  height: min-content;
  position: relative;
  aspect-ratio: 0.619;
  width: 100%;
  justify-content: space-between;
}

.product-info__banner:hover .button-theme_primary {
  background: var(--custom-accent-color-400);
  color: var(--custom-black-color) !important;
}

.news-item-info h4,
.news-item-info p {
  color: var(--custom-black-color);
  margin-bottom: 0;
}

.news-item-info p {
  height: 33.8px;
  display: inline-table;
}

.custom-news-button {
  padding-bottom: 0px;
  margin-top: 0 !important;
  padding-top: 20px;
}

.custom-news-button .features__plus-row {
  width: calc(100% + 100px) !important;
  margin-top: 10px;
  transform: translateX(-50px);
}

.custom-news-button .btn:hover {
  background: var(--custom-white-color) !important;
}

.plus-block {
  position: relative;
  z-index: 10;
  margin-top: 140px;
}

.plus-block .features__plus-row,
.static-banners .features__plus-row {
  width: calc(100% + 100px) !important;
  transform: translateX(-50px);
}

.custom-banners-block {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 10px;
  margin-bottom: 15px;
}

.banners-column-right {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 10px;
}

.banner-img-block {
  clip-path: polygon(0% 34px, 34px 0%, 100% 0%, 100% 100%, 0% 100%);
  position: relative;
  margin-bottom: 8px;
}

.banner-img-block img {
  position: relative;
  transition: transform 0.25s ease;
  z-index: 1;
}

.banner-img-block .btn {
  position: absolute;
  bottom: 10px;
  left: 10px;
  width: calc(100% - 20px);
  z-index: 2;
}

.banner-img-block:hover img {
  transform: scale(1.03);
}

.banner-plus-item p {
  cursor: pointer !important;
  margin-bottom: 0;
}

.banner-plus-item .btn-plus {
  position: absolute;
  z-index: 2;
  right: 20px;
  top: 20px;
  background: var(--custom-white-color);
}

.banner-plus-item .btn-plus::before,
.banner-plus-item .btn-plus::after {
  background: var(--custom-accent-color-400);
}

.banner-plus-item#banner-1 .banner-img-block {
  background: var(--custom-gray-color-500);
}

.banner-plus-item#banner-2 .banner-img-block {
  background: var(--custom-gray-color-600);
}

.banner-plus-item#banner-3 .banner-img-block {
  background: var(--custom-gray-color-700);
}

.banner-plus-item#banner-4 .banner-img-block {
  background: var(--custom-black-color);
}

.banner-plus-item:hover .btn-plus {
  background: var(--custom-accent-color-400);
}

.banner-plus-item:hover .btn-plus::before,
.banner-plus-item:hover .btn-plus::after {
  background: var(--custom-white-color);
}

.static-banners {
  margin-top: 80px;
}

.static-banners h2 {
  width: 200px;
}

.filepond--root .filepond--drop-label {
    min-height: 76px !important;
}

.filepond--root *:not(text) {
    font-size: 13px !important;
}

.filepond--root.filepond {
  min-height: 76px;
  max-height: 80px;
  margin-bottom: 10px;
  background: var(--custom-white-color);
  border: none;
  border-radius: 0 !important;
  box-sizing: border-box;
  overflow: hidden;
}

.filepond--root.filepond .filepond--panel-root,
.filepond--root.filepond .filepond--panel-top,
.filepond--root.filepond .filepond--panel-center,
.filepond--root.filepond .filepond--panel-bottom {
  background: transparent !important;
  border-radius: 0 !important;
}

.filepond--root.filepond .filepond--drop-label {
  color: var(--custom-gray-color-700);
  line-height: 1.4;
  padding: 0 20px;
  justify-content: flex-start;
  text-align: left;
}

.filepond--root.filepond .filepond--drop-label label {
  display: flex;
  width: 100%;
  margin: 0;
  padding: 0;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  text-align: left;
}

.filepond--root.filepond .smeta-file-label__main {
  display: flex;
  align-items: center;
  gap: 7px;
}

.filepond--root.filepond .smeta-file-label__icon {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  color: var(--custom-gray-color-500);
  fill: currentColor;
}

.filepond--root.filepond .smeta-file-label__hint {
  color: var(--custom-gray-color-700);
  font-size: 10px !important;
  line-height: 1.25;
}

.filepond--root.filepond .filepond--label-action {
  color: var(--custom-accent-color-500);
  text-decoration-color: currentColor;
  cursor: pointer;
}

.filepond--root.filepond:has(.filepond--item) .filepond--drop-label {
  min-height: 30px !important;
  padding: 0 20px;
  font-size: 11px !important;
  line-height: 1.2;
}

.filepond--root.filepond:has(.filepond--item) .filepond--drop-label * {
  font-size: 11px !important;
}

.filepond--root.filepond:has(.filepond--item) .smeta-file-label__hint {
  display: none;
}

.filepond--root.filepond .filepond--list {
  margin-left: 0 !important;
  padding-left: 0 !important;
}

.filepond--root.filepond .filepond--list > li::before,
.filepond--root.filepond .filepond--item::before {
  display: none !important;
  content: none !important;
}

.filepond--root.filepond .filepond--item {
  margin: 2px 4px 2px 0;
}

.filepond--root.filepond .filepond--file {
  min-height: 46px;
  padding: 4px 28px 4px 8px;
  border-radius: 0 !important;
  background: var(--custom-gray-color-100) !important;
  color: var(--custom-black-color) !important;
  box-shadow: none !important;
  flex-wrap: wrap;
  align-content: center;
}

.filepond--root.filepond .filepond--file,
.filepond--root.filepond .filepond--file *:not(svg):not(path) {
  font-size: 11px !important;
  line-height: 1.2;
}

.filepond--root.filepond .filepond--file-info,
.filepond--root.filepond .filepond--file-status {
  width: 100%;
  flex: 0 0 100%;
  margin: 0;
  min-width: 0;
  transform: none !important;
  text-align: left;
  align-items: flex-start;
}

.filepond--root.filepond .filepond--file-info-main,
.filepond--root.filepond .filepond--file-status-main {
  display: block;
  width: 100%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.filepond--root.filepond .filepond--file-info-sub {
  color: var(--custom-gray-color-700);
  font-size: 10px !important;
}

.filepond--root.filepond .filepond--file-status {
  margin-top: 2px;
  color: var(--custom-gray-color-700);
}

.filepond--root.filepond .filepond--file-status-sub {
  display: none;
}

.filepond--root.filepond .filepond--file-action-button {
  background: var(--custom-gray-color-500);
  color: var(--custom-gray-color-800);
  box-shadow: none;
}

.filepond--root.filepond .filepond--file-action-button:hover,
.filepond--root.filepond .filepond--file-action-button:focus {
  background: var(--custom-gray-color-600);
  color: var(--custom-black-color);
}

.filepond--root.filepond .filepond--item-panel {
  border-radius: 0 !important;
  background: transparent !important;
}

.static-banners
  .features__plus-row:not(.static-banners .features__plus-row:last-child) {
  margin-bottom: 20px;
  margin-top: -20px;
}

.banner-form {
  background: var(--custom-gray-color-400)
    url(https://stroybaza-samara.ru/media/uploads/svg/banner-pattern.svg)
    no-repeat;
  background-size: contain;
  background-position: right bottom;
  height: 330px;
  position: relative;
  overflow: hidden;
  z-index: 1;
  padding: 20px;
}

.banner-form img {
  position: absolute;
  bottom: 0;
  height: 100%;
}

.banner-form form {
  padding-left: 185px;
}

.banner-form .form-control {
  background: var(--custom-white-color);
}

.banner-form .btn {
  width: 175px;
  color: var(--custom-white-color) !important;
}

.banner-form .btn:hover {
  color: var(--custom-black-color) !important;
}

.form-control::placeholder {
  font-size: 13px;
}

/* внутренние страницы */

.catalog-menu.catalog-categories-block,
.clients-section {
  gap: 10px;
}

@media (min-width: 1280px) {
.catalog-body--wide .grid-columns-xl-4 {
        grid-template-columns: repeat(5, 1fr) !important;
    }
  }

.points-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0px;
  margin-bottom: 20px;
}

.partner-item {
  border: var(--custom-border-width) solid var(--custom-border-color);
  border-radius: 0;
  overflow: hidden;
  background: var(--custom-white-color);
  margin: 0;
}

.points-grid .partner-item {
  width: 100%;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
}

.partner-item p {
  margin: 0;
}

.partner-item a {
  color: var(--custom-black-color);
  line-height: 130% !important;
}

.buttons-columns {
  margin-bottom: 20px;
}

.buttons-columns .btn {
  width: auto;
}

.amk-projects {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 80px;
}

.about-partner {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 80px;
}

.button-theme_primary.grey {
  background: var(--custom-gray-color-100) !important;
  color: var(--custom-black-color) !important;
  border: var(--custom-border-width) solid var(--custom-border-color) !important;
}

.button-theme_primary.grey:hover {
  background: var(--custom-accent-color-400) !important;
  color: var(--custom-white-color) !important;
  border: 1px solid var(--custom-accent-color-400) !important;
}

.about-partner .about-item {
  border: var(--custom-border-width) solid var(--custom-border-color);
  padding: 25px;
}

.partner-img-block {
  margin-bottom: 80px;
  background-color: var(--custom-gray-color-50);
  position: relative;
  overflow: hidden;
  margin-top: 20px;
  display: flex;
  justify-content: center;
  max-height: 220px;
  height: 220px;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 0px 20px;
}

.partner-img-block .partner-logo {
  z-index: 2;
  margin: 0;
  max-height: 100px;
  max-width: 600px;
  position: relative;
}

.partner-img-block span {
  text-align: center;
  font-size: 30px !important;
  margin: 0;
  max-width: 400px;
}

.static-project .gallery .item {
  border: var(--custom-border-width) solid var(--custom-border-color);
}

.static-project .gallery .item--big {
  border: none;
}

/* контакты */

.inner-page h1 {
  font-size: 22px !important;
}

.contact-line .icon {
  display: none;
}

.catalog-sorting ul li a,
.catalog-sorting__title,
.contacts-list span,
.contact-line a,
.contact-text-line p,
.btn-border,
.filter-show-all a,
.char-text,
.char-text:last-child,
.btn-radius,
.product-card__discription-title,
.product-item__status {
  font-size: 13px;
}

.contact-line a {
  color: var(--custom-black-color);
}

.contact-line a:active, .contact-text-line .phone:hover {
    color: var(--custom-accent-color-400);
}

.contacts-block__title-red.address-data {
  margin-top: 0;
  font-size: 22px !important;
  text-transform: uppercase;
  margin-bottom: 15px;
}

.contacts-block {
  border: none;
  gap: 10px;
}

.contacts-block__info {
  padding: 30px;
  background: var(--custom-gray-color-100)
    url(https://stroybaza-samara.ru/media/uploads/svg/contacts-pattern.svg)
    no-repeat;
  background-size: contain;
  background-position: right bottom;
  width: 50%;
}

.contacts-block__map {
  width: 50%;
  border: var(--custom-border-width) solid var(--custom-border-color);
}

.ymaps-2-1-79-svg-icon {
  display: block;
  background: url(https://stroybaza-samara.ru/media/uploads/svg/icon-map.svg)
    no-repeat !important;
  background-size: cover !important;
  width: 37px !important;
  height: 24px !important;
}

.ymaps-2-1-79-ground-pane {
  filter: grayscale(1);
  opacity: 0.8;
}

.catalog-menu-item__name,
.client-item__text {
  max-width: 140px;
}

.catalog-menu-item__image img {
  bottom: -1px;
  top: auto;
  height: 101%;
  left: auto;
  width: auto;
  right: -1px;
}

.client-item {
  aspect-ratio: 2.8;
  border: var(--custom-border-width) solid var(--custom-border-color);
  border-radius: 0;
}

.client-item_video {
  position: relative;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}

.client-item_video .client-item__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.2s ease,
    visibility 0.2s ease;
  z-index: 1;
}

.client-item_video:hover .client-item__video,
.client-item_video:focus-visible .client-item__video,
.client-item_video.is-video-active .client-item__video {
  opacity: 1;
  visibility: visible;
}

.client-item:nth-child(1) {
  background-color: var(--custom-white-color);
  border: var(--custom-border-width) solid var(--custom-border-color);
}

.client-item:nth-child(2),
.client-item:nth-child(4),
.client-item:nth-child(9),
.client-item:nth-child(11),
.client-item:nth-child(12),
:where(.menu-section) > .client-item:nth-child(13) {
  background-color: var(--custom-white-color);
  border: var(--custom-border-width) solid var(--custom-border-color);
}

/* Fixed calculator summary: inverted header silhouette and parallel sections. */
@media screen and (min-width: 801px) {
  :root .roof-calc .roof-calc__live-shell {
    height: 70px;
    background: transparent;
    box-shadow: none;
    overflow: visible;
  }

  :root .roof-calc .roof-calc__live {
    --rc-live-cut: calc(70px * 57.09 / 52.70);
    --rc-live-consultant-button-width: 144px;
    isolation: isolate;
    display: grid;
    grid-template-columns: 184px repeat(4, minmax(0, 1fr)) 168px;
    align-items: center;
    gap: 0;
    width: var(--rc-live-content-width, min(1180px, calc(100% - 160px)));
    height: 70px;
    max-height: none;
    padding: 0;
    border: 0;
    background: transparent;
    overflow: visible;
  }

  :root .roof-calc .roof-calc__live::before,
  :root .roof-calc .roof-calc__live::after {
    content: "";
    position: absolute;
    z-index: -2;
    left: var(--rc-live-frame-center, 50%);
    top: 0;
    width: var(--rc-live-frame-width, calc(100% + 140px));
    height: 70px;
    transform: translateX(-50%);
    background: var(--custom-border-color);
    clip-path: polygon(var(--rc-live-cut) 0, calc(100% - var(--rc-live-cut)) 0, 100% 100%, 0 100%);
    pointer-events: none;
  }

  :root .roof-calc .roof-calc__live::after {
    z-index: -1;
    background: var(--custom-white-color);
    clip-path: polygon(
      calc(var(--rc-live-cut) + .391px) 1px,
      calc(100% - var(--rc-live-cut) - .391px) 1px,
      calc(100% - 2.557px) calc(100% - 1px),
      2.557px calc(100% - 1px)
    );
  }

  :root .roof-calc .roof-calc__live .roof-calc__consultant {
    position: relative;
    isolation: isolate;
    display: flex;
    justify-content: center;
    align-self: stretch;
    order: 0;
    width: auto;
    height: 70px;
    padding-bottom: 0;
    gap: 0;
    overflow: visible;
  }

  :root .roof-calc .roof-calc__consultant::before {
    content: "";
    position: absolute;
    z-index: -1;
    top: 0;
    right: 0;
    width: 1px;
    height: 70px;
    background: var(--custom-border-color);
    transform: skewX(-20deg);
    pointer-events: none;
  }

  :root .roof-calc .roof-calc__consultant::after {
    content: none;
  }

  :root .roof-calc .roof-calc__live .roof-calc__consultant .roof-calc__live-button {
    align-self: flex-start;
    flex: 0 0 34px;
    height: 34px;
    min-height: 34px;
    width: var(--rc-live-consultant-button-width);
    padding-inline: 4px;
    transform: none;
  }

  :root .roof-calc .roof-calc__live .roof-calc__consultant img {
    position: absolute;
    display: block;
    left: calc(var(--rc-live-consultant-button-width) / 2);
    bottom: 51px;
    transform: translateX(-50%);
    width: 144px;
    height: 100px;
    min-height: 0;
    object-fit: contain;
    object-position: center bottom;
    border: 0;
    mask-image: linear-gradient(to bottom, #000 70%, transparent 100%);
  }

  :root .roof-calc .roof-calc__live .roof-calc__live-metric,
  :root .roof-calc .roof-calc__live .roof-calc__live-detail {
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    grid-column: auto;
    order: 0;
    gap: 3px;
    height: 70px;
    min-height: 0;
    padding: 4px 24px;
    border: 0;
    background: transparent;
    font-size: 13px !important;
    line-height: 1.15;
  }

  :root .roof-calc .roof-calc__live .roof-calc__live-metric::before,
  :root .roof-calc .roof-calc__live .roof-calc__live-detail::before {
    content: "";
    position: absolute;
    z-index: -1;
    top: 0;
    right: 0;
    bottom: 0;
    left: auto;
    width: 1px;
    background: var(--custom-border-color);
    transform: skewX(-20deg);
    pointer-events: none;
  }

  :root .roof-calc .roof-calc__live .roof-calc__live-metric b {
    font-size: 13px !important;
    line-height: 1.15;
  }

  :root .roof-calc .roof-calc__live .roof-calc__live-metric.is-ready b {
    font-size: 16px !important;
    line-height: 18px;
  }

  :root .roof-calc .roof-calc__live .roof-calc__live-metric.is-ready {
    gap: 4px;
    padding: 8px 18px;
  }

  :root .roof-calc .roof-calc__live .roof-calc__live-metric.is-ready b {
    padding-right: 38px;
  }

  :root .roof-calc .roof-calc__live .roof-calc__live-metric::after {
    content: "";
    position: absolute;
    top: 10px;
    right: 10px;
    display: none;
    width: 26px;
    height: 24px;
    background: url("https://stroybaza-samara.ru/media/uploads/svg/star.svg") center / contain no-repeat;
    pointer-events: none;
  }

  :root .roof-calc .roof-calc__live .roof-calc__live-metric.is-ready::after {
    display: block;
  }

  :root .roof-calc .roof-calc__live .roof-calc__live-metric span {
    font-size: 13px !important;
    line-height: 16px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  :root .roof-calc .roof-calc__live .roof-calc__live-detail {
    display: none;
  }

  :root .roof-calc .roof-calc__live .roof-calc__live-actions {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    grid-column: span 2;
    order: 0;
    gap: 10px;
    height: 70px;
    width: auto;
    min-width: 0;
    box-sizing: border-box;
    padding-inline: 32px 0;
    transform: none;
  }

  :root .roof-calc .roof-calc__live .roof-calc__live-button {
    flex: 0 0 28px;
    width: 100%;
    height: 28px;
    min-height: 28px;
    padding: 0 6px;
    font-size: 13px !important;
    line-height: 1.1;
    white-space: nowrap;
  }

  :root .roof-calc .roof-calc__live .roof-calc__live-actions .roof-calc__live-button {
    flex: 1 1 0;
    width: auto;
    min-width: 0;
    height: 34px;
    min-height: 34px;
  }

  :root .roof-calc .roof-calc__live .roof-calc__live-button:disabled {
    background: var(--custom-gray-color-100) !important;
    border-color: var(--custom-border-color) !important;
    color: var(--custom-gray-color-600) !important;
    -webkit-text-fill-color: var(--custom-gray-color-600) !important;
    cursor: not-allowed;
    opacity: 1;
  }
}

@media screen and (min-width: 801px) and (max-width: 1199px) {
  :root .roof-calc .roof-calc__live {
    grid-template-columns: 184px repeat(4, minmax(0, 1fr)) 160px;
    gap: 0;
  }

  :root .roof-calc .roof-calc__live .roof-calc__live-metric,
  :root .roof-calc .roof-calc__live .roof-calc__live-detail {
    padding-inline: 14px;
    font-size: 12px !important;
  }
}

@media screen and (min-width: 992px) and (max-width: 1199px) {
  :root .roof-calc .roof-calc__live .roof-calc__live-metric.is-ready b {
    padding-right: 26px;
  }

  :root .roof-calc .roof-calc__live .roof-calc__live-metric::after {
    top: 10px;
    right: 10px;
    width: 20px;
    height: 18px;
  }
}

@media screen and (min-width: 992px) and (max-width: 1439px) {
  :root .roof-calc .roof-calc__live {
    grid-template-columns: 184px repeat(4, minmax(0, 1fr)) 160px;
  }

  :root .roof-calc .roof-calc__live .roof-calc__live-metric.is-ready {
    padding-inline: 8px;
  }

}

@media screen and (max-width: 991px) {
  :root .roof-calc .roof-calc__live-shell {
    display: none !important;
  }
}

.client-item:hover {
  background-color: var(--custom-black-color);
  border: 1px solid var(--custom-white-color);
}

.client-item__text {
  max-width: 70%;
  vertical-align: middle;
  transform: translateY(-50%);
  left: 20px;
  bottom: auto;
  padding: 0;
  top: 50%;
  font-weight: 400;
  z-index: 2;
}

.menu-section .client-item__text {
  max-width: 108px;
}

.breadcrumbs {
  gap: 5px 0;
}

.breadcrumbs {
  font-size: 10px;
  color: var(--custom-gray-color-700);
  line-height: 100%;
}

.breadcrumbs__sep {
  width: 8px;
  height: 8px;
}

.breadcrumbs a {
  font-size: 10px !important;
  text-transform: none;
  margin-right: 6px !important;
  color: var(--custom-black-color);
}

.static-project .char {
  width: calc(50% - 10px);
}

.char-text:last-child {
  max-width: 120px !important;
}

.product-info {
  gap: 130px;
}

.category-root-page .catalog-menu,
.catalog-menu.catalog-categories-block {
  gap: 10px;
  grid-template-columns: repeat(2, 1fr);
}

.catalog-menu-item {
  border-radius: 0;
  aspect-ratio: 3.6 / 1;
}

.catalog-menu-item__name {
  max-width: 120px;
  vertical-align: middle;
  /*transform: translateY(-50%);*/
  left: 20px;
  bottom: auto;
  padding: 0;
  top: 20px;
}

.client-item:not(.menu-section .client-item) {
  display: flex;
  flex-direction: column;
  height: 256px !important;
  background-size: contain;
  background-position: top;
  background-color: var(--custom-white-color) !important;
  border: none !important;
}

.client-item:not(.menu-section .client-item) .client-item__text {
  max-width: 100%;
  width: 100%;
  left: 0;
  top: 211px;
  padding: 15px 20px 25px 20px;
  background: var(--custom-gray-color-100);
  color: var(--custom-black-color);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  height: 90px;
  gap: 30px;
}

.client-item:not(.menu-section .client-item) .client-item__text::after {
  content: "Читать";
  flex: 0 0 auto;
  white-space: nowrap;
  overflow-wrap: normal;
  font-size: 13px;
  color: var(--custom-black-color);
  background: var(--custom-white-color);
  border: 1px solid var(--custom-accent-color-400);
  height: 34px;
  align-items: center;
  justify-content: center;
  display: flex;
  line-height: 100%;
  text-align: center;
  padding: 0 15px;
  margin-top: auto;
}

.client-item:not(.menu-section .client-item):hover .client-item__text::after {
  color: var(--custom-white-color);
  background: var(--custom-accent-color-400);
  border: 1px solid var(--custom-accent-color-400);
}

/* Content cards: keep image spacing and exclude navigation tiles in .menu-section. */
.clients-section:not(.menu-section) > .client-item.client-item_bg {
  height: auto !important;
  aspect-ratio: auto;
  gap: 10px;
  background-size: 0 0;
}

.clients-section:not(.menu-section) > .client-item.client-item_bg::before {
  content: "";
  display: block;
  width: 100%;
  aspect-ratio: 5 / 2;
  flex: 0 0 auto;
  background-image: inherit;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.clients-section:not(.menu-section) > .client-item.client-item_bg .client-item__text {
  position: relative;
  inset: auto;
  transform: none;
  height: auto;
  min-height: 90px;
  overflow-wrap: anywhere;
  flex: 1 0 auto;
}

.static-project .product-info__chars {
  position: relative;
}

.product-card-container {
  position: relative;
}

.static-project .product-info__chars::after,
.product-card-container::before,
.product-content::after,
.container--small::before {
  content: "";
  height: 1px;
  width: 2550px;
  position: absolute;
  bottom: -40px;
  background: var(--custom-gray-color-300);
  z-index: 10;
  left: calc(50% - 1275px);
}

.product-card-container::before {
  bottom: auto;
  top: -40px;
}

.container--small::before {
  bottom: auto;
  top: 0px;
}

.project-chars {
  margin-bottom: 80px;
}

.product-card-v2__buttons .st-button_not-availbe {
  background-color: var(--custom-gray-color-100);
  border: none;
  border-radius: 0px;
  height: 32px !important;
  font-size: 13px;
  padding: 0;
  color: var(--custom-black-color) !important;
}

.product-card-v2__buttons .st-button_not-availbe:hover {
  background-color: var(--custom-accent-color-400);
  border: none;
  color: var(--custom-white-color) !important;
}

.product-card-v2__buttons .st-button_not-availbe .st-button__title {
  color: inherit;
}

.projects-content {
  grid-template-columns: repeat(3, 1fr);
}

.catalog-box li {
  margin-bottom: 10px;
}

.catalog-box ul a {
  font-size: 13px;
  padding-right: 0;
}

.catalog-menu-item__name {
  color: var(--custom-black-color);
  font-weight: 400;
}

.catalog-menu-item {
  background: var(--custom-white-color);
  border: 1px solid var(--custom-accent-color-400);
  transition: color 0.25s ease;
}

.catalog-menu-item:hover {
  background: var(--custom-black-color);
  border: 1px solid var(--custom-black-color);
}

.catalog-menu-item:hover .catalog-menu-item__name {
  color: var(--custom-black-color);
}

.catalog-menu-item__image img {
  transition: transform 0.25s ease;
}

.catalog-menu-item:hover .catalog-menu-item__image img {
  transform: scale(1.03);
}

.welcome .catalog-menu-item {
  background: var(--custom-white-color);
  border: 1px solid var(--custom-accent-color-400);
}

.welcome .catalog-menu-item .catalog-menu-item__name {
  color: var(--custom-black-color);
}

.catalog-menu-item:hover {
  background: var(--custom-white-color) url(https://stroybaza-samara.ru/media/uploads/svg/back-teaser.svg) no-repeat bottom left !important;
  background-size: cover !important;
  border: 1px solid var(--custom-accent-color-400) !important;
}

.welcome .catalog-menu-item:hover .catalog-menu-item__name {
  color: var(--custom-black-color);
}

.custom-news-section {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.custom-news-section .news-item-img::before {
  background: var(--custom-white-color);
}

.custom-news-section .custom-news-item {
  padding-top: 0;
}

/* каталог */

.sort-select .sb-sort-reset {
  display: none;
}

.filter-item-title,
.catalog-filter-accordion .opener {
  font-size: 13px;
  color: var(--custom-black-color);
  text-transform: uppercase;
  font-weight: 600 !important;
}

.checkbox [type="checkbox"]:not(:checked) + label,
.checkbox [type="checkbox"]:checked + label {
  font-size: 11px;
}

.catalog-filter-accordion .opener::before {
  border: none;
}

/* Mobile filters: accent plus when closed, black cross when expanded. */
@media (max-width: 767px) {
  :root .catalog-filter {
    padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px));
  }

  .checkbox [type="checkbox"]:not(:checked) + label,
  .checkbox [type="checkbox"]:checked + label {
    font-size: 14px;
  }

  :root .filter-item .form-group {
    margin-bottom: 15px;
  }

  :root .catalog-filter-accordion a.opener {
    display: flex;
    align-items: center;
    box-sizing: border-box;
    min-height: 24px;
    padding-top: 0;
    padding-bottom: 0;
    font-size: 14px;
    line-height: 20px;
  }

  :root .catalog-filter__btns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  :root .catalog-filter__btns > .btn,
  :root .catalog-filter__btns > .btn-link {
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    height: 34px;
    margin: 0;
    padding: 0 10px;
    border-radius: 0;
    font-size: 13px;
    line-height: normal;
  }

  :root .catalog-filter__btns > .btn-link {
    border: var(--custom-border-width) solid var(--custom-accent-color-400);
    background: transparent;
    color: var(--custom-black-color);
    text-decoration: none;
  }

  :root .catalog-filter__btns > .btn-link:hover {
    border-color: var(--custom-accent-color-400);
    background: var(--custom-accent-color-400);
    color: var(--custom-white-color);
  }

  :root .catalog-filter .mobile-menu-head__close-btn {
    top: 50%;
    right: 0;
    width: 44px;
    height: 44px;
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    transform: translateY(-50%);
  }

  :root .catalog-filter .mobile-menu-head__close-btn > .icon {
    display: none;
  }

  :root .catalog-filter .mobile-menu-head__close-btn::before,
  :root .catalog-filter .mobile-menu-head__close-btn::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    display: block;
    width: 24px;
    height: 1px;
    background: var(--custom-black-color);
    pointer-events: none;
  }

  :root .catalog-filter .mobile-menu-head__close-btn::before {
    transform: translate(-50%, -50%) rotate(45deg);
  }

  :root .catalog-filter .mobile-menu-head__close-btn::after {
    transform: translate(-50%, -50%) rotate(-45deg);
  }

  :root .catalog-filter-accordion a.opener > .icon {
    display: none;
  }

  :root .catalog-filter-accordion a.opener::before,
  :root .catalog-filter-accordion a.opener::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 15px;
    bottom: auto;
    left: auto;
    display: block;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: var(--custom-accent-color-500);
    transform: translateY(-50%);
    transition: opacity .15s ease;
    pointer-events: none;
  }

  :root .catalog-filter-accordion a.opener::before {
    width: 24px;
    height: 1px;
  }

  :root .catalog-filter-accordion a.opener::after {
    right: 26.5px;
    width: 1px;
    height: 24px;
    opacity: 1;
  }

  :root .catalog-filter-accordion > .active > a.opener::before,
  :root .catalog-filter-accordion > .active > a.opener::after {
    background: var(--custom-black-color);
    transform: translateY(-50%) rotate(45deg);
    opacity: 1;
  }
}

.input-cont .range-input {
  border: var(--custom-border-width) solid var(--custom-border-color);
  opacity: 1;
  height: 34px;
  border-radius: 0;
}

.input-cont {
  height: 34px;
}

.noUi-horizontal {
  height: 1px;
  background: var(--custom-gray-color-300);
}

.noUi-connects,
.filter-range .noUi-connect,
.filter-range .noUi-connect::before {
  background-color: var(--custom-gray-color-300);
}

.noUi-horizontal .noUi-handle {
  width: 12px;
  height: 12px;
  border-radius: 0;
  top: -6px;
}

.filter-range__head span {
  color: var(--custom-black-color);
}

.filter-show-all {
  height: 34px;
  border-radius: 0px;
  box-shadow: none;
}

.filter-show-all a {
  color: var(--custom-black-color);
}

.filter-range__head {
  padding-right: 0;
  padding-left: 0;
}

.product-card .st-button_add-to-favorite,
.product-card__right .button-theme_primary {
  width: calc(50% - 5px) !important;
}

.buttons-grid .button-theme_primary {
  width: 100% !important;
}

.product-card__content .not-for-sale {
  margin-bottom: 0;
}

.product-card__right h3 {
  margin-bottom: 10px !important;
  font-display: 20px !important;
}

.product-card__right .form-cart p {
  margin-bottom: 25px !important;
}

.shopping-cart-product .btn-border.not-for-sale {
  color: var(--custom-black-color) !important;
  border: 1px solid var(--custom-accent-color-400) !important;
  background: var(--custom-white-color) !important;
  height: 34px !important;
  min-width: 0;
  border-radius: 0;
  width: 100% !important;
}

.shopping-cart-product .btn-border.not-for-sale:hover {
  border: none !important;
  background: var(--custom-accent-color-400) !important;
  color: var(--custom-black-color) !important;
}

.g-title,
.content-title {
  font-size: 20px !important;
  text-transform: uppercase;
}

.product-card__discription {
  display: none;
}

.payment-section,
.form-cart {
  padding-top: 0px;
}

.product-card__container {
  padding: 0px 0px 80px 0;
  gap: 10px;
}

.product-card__head {
  margin-bottom: 20px !important;
}

.container--small h3 {
  margin-top: 30px;
}

.search-modal-window__input {
  height: 45px;
  background-color: var(--custom-white-color);
  border: 1px solid var(--custom-accent-color-400);
  padding: 0 15px !important;
  color: var(--custom-black-color);
  border-radius: 0;
  font-size: 14px;
}

.search-modal-window__input::placeholder {
  font-size: 14px;
  color: var(--custom-gray-color-800);
}

.g-link {
  font-size: 13px;
  color: var(--custom-gray-color-700);
}

.mobile-search input {
  border: none;
  height: 34px;
}

.search-input-group {
  padding: 0 10px;
}

.search-input-group__input {
  height: 34px;
  padding: 10px 0px;
  border-radius: 0;
  border: none;
  font-size: 14px;
  color: var(--custom-black-color);
  border-bottom: 1px solid var(--custom-accent-color-400);
}

.search-input-group__input::placeholder {
  color: var(--custom-black-color);
}

.search-input-group__row {
  gap: 10px;
}

.search-input-group__button {
  width: 44px;
  height: 34px;
  min-width: 44px;
  flex: 0 0 44px;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: row;
  flex-wrap: nowrap;
  background: transparent;
  padding: 0px;
  border-radius: 0px;
  border: 0;
}

.cross-button {
    width: 37px;
}

#mm-1 .mm-listview {
  padding-bottom: 0;
}

.search-input-group__button svg,
.mm-wrapper--opened .mm-wrapper__blocker {
  display: none;
}

.search-input-group__button::before {
  content: "";
  position: absolute;
  top: calc(50% + 5px);
  left: 50%;
  width: 40px;
  height: 24px;
  transform: translate(-50%, -50%);
  background: var(--custom-accent-color-400);
  clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
}

.search-input-group__button:hover {
  background: transparent;
  border: 0;
}

.search-input-group__button:hover::before {
  background: var(--custom-gray-color-500);
}

.search-input-group__button::after {
  content: "";
  position: absolute;
  top: calc(50% + 5px);
  left: 50%;
  width: 38px;
  height: 22px;
  transform: translate(-50%, -50%);
  background-color: var(--custom-white-color);
  background-image: url(https://stroybaza-samara.ru/media/uploads/svg/search-hover.svg);
  background-repeat: no-repeat;
  background-size: 14px;
  background-position: center;
  clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
}

.search-input-group__button:hover::after {
  background-color: var(--custom-gray-color-100);
  background-image: url(https://stroybaza-samara.ru/media/uploads/svg/search-hover.svg);
  background-size: 14px;
}

.mobile-search {
  height: 34px;
  border-radius: 0;
  background: var(--custom-gray-color-100);
}

.__header #search-result {
    width: 640px;
    margin-top: 15px;
}

.header-search button,
.mobile-search button {
  height: 34px;
  background: url(https://stroybaza-samara.ru/media/uploads/svg/search.svg)
    no-repeat !important;
  border: none;
  background-size: 16px !important;
  background-position: center center !important;
  border-radius: 0;
}

.header-search button:hover,
.mobile-search button:hover {
  background: url(https://stroybaza-samara.ru/media/uploads/svg/search-hover.svg)
    no-repeat !important;
  background-size: 16px !important;
  background-position: center center !important;
  border: none;
}

.header-search button::placeholder,
.mobile-search button::placeholder {
  font-size: 13px;
}

.buttons-grid {
  display: grid;
  gap: 10px;
  margin-top: auto;
  grid-template-columns: 1fr 1fr;
}

.buttons-grid a {
  width: 100% !important;
  padding: 0;
}

.product-card__right .buttons-grid__calculator {
  grid-column: 1 / -1;
}

.button-theme_primary.border {
  border: 1px solid var(--custom-accent-color-400) !important;
  background: var(--custom-white-color) !important;
  color: var(--custom-black-color) !important;
}

.button-theme_primary.border:hover {
  border: 1px solid var(--custom-accent-color-400) !important;
  background: var(--custom-accent-color-400) !important;
  color: var(--custom-white-color) !important;
}

.product-card__content {
  gap: 10px;
  height: 491px;
  width: 58%;
}

.product-card__slideshow {
  width: 42%;
  position: relative;
}

.product-card__right {
  width: 50%;
  margin-left: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  padding: 20px;
  border: var(--custom-border-width) solid var(--custom-border-color);
}

.product-card__left {
  height: 100%;
  padding: 20px;
  border: var(--custom-border-width) solid var(--custom-border-color);
}

#sync1 {
  margin-bottom: 0;
}

#sync2 {
  height: min-content;
  margin-top: -80px;
  margin-left: 20px;
  width: 411px;
}

#sync2 .owl-dots {
  display: none;
}

.product-card__main-cost {
  gap: 10px;
  font-size: 13px;
  margin-bottom: 0;
  text-transform: uppercase;
  font-weight: 600;
  border-bottom: var(--custom-border-width) solid var(--custom-border-color);
  padding-bottom: 10px;
  color: var(--custom-accent-color-400);
}

.product-card__main-cost strong,
.product-card-v2__price.text-color-accent,
.product-card-v2__price.text-color-accent span {
  color: var(--custom-accent-color-400) !important;
}

.product-card-v2__price.text-color-accent::after {
  content: "Обычная цена";
  font-size: 9px;
  color: var(--custom-accent-color-400);
  line-height: 110%;
  font-weight: 400 !important;
  margin-bottom: 9px;
  display: block;
}

.product-card-v2__pricing-txt {
  font-size: 0 !important;
}

.product-card-v2__pricing-txt::before {
  content: "Есть условие";
  display: block;
  font-size: 9px;
  line-height: 110%;
}

.product-card__main-cost {
  font-size: 0;
  gap: 0;
}

.product-card__main-cost::before {
  content: "Обычная цена";
  font-size: 13px;
  line-height: 130%;
  margin-bottom: 10px;
}

.product-card__personal-cost > span {
  font-size: 0 !important;
}

.product-card__personal-cost > span::before {
  content: "Есть условие";
  font-size: 13px !important;
  line-height: 130% !important;
}

.product-card__personal-cost strong {
  text-transform: none;
}

.product-sale-badge {
  border-radius: 0;
  height: 18px;
  align-items: center;
  clip-path: polygon(8px 0, 100% 0, calc(100% - 9px) 100%, 0 100%);
  justify-content: center;
}

.product-card__main-cost span {
  font-size: 22px !important;
  line-height: 100%;
  text-transform: uppercase;
  font-weight: 500 !important;
  color: var(--custom-gray-color-700);
}

.product-card__personal-cost span {
  text-transform: uppercase;
  font-weight: 600;
}

.product-sidebar__static-text-wrapper {
  margin-bottom: 0 !important;
}

.product-card__personal-cost strong {
  font-size: 22px;
  line-height: 100%;
}

.product-card__rating,
.share-btn,
.product-card .st-button_add-to-favorite {
  height: 34px;
  background: var(--custom-white-color);
  border: 1px solid var(--custom-accent-color-400);
  width: calc(50% - 5px);
  padding: 0 5px;
  align-items: center;
  justify-content: center;
  border-radius: 0;
  gap: 10px;
  position: relative;
}

.product-card__rating {
  display: none;
}

.share-btn,
.product-card__rating {
  margin-top: -5px;
}

.share-btn::before {
  content: "";
  width: 20px;
  height: 20px;
  background: url(https://stroybaza-samara.ru/media/uploads/svg/share-2.svg)
    no-repeat;
  background-size: cover;
  background-position: center center;
}

.product-card__review-link {
  margin-left: 0;
}

.btn-radius.share-btn .icon-svg {
  display: none;
}

.product-card__rating:hover,
.share-btn:hover,
.product-card .st-button_add-to-favorite:hover {
  background: var(--custom-gray-color-100) !important;
  border: var(--custom-border-width) solid var(--custom-border-color) !important;
  color: var(--custom-black-color) !important;
}

.product-card__rating:hover a {
  color: var(--custom-black-color);
}

.product-card__review-link a {
  font-size: 13px;
  color: var(--custom-black-color);
}

.product-card__rating .star--full {
  background-image: url(https://stroybaza-samara.ru/media/uploads/svg/star-full.svg);
  background-size: 9px 9px;
  background-position: center center;
  background-repeat: no-repeat;
}

.product-card__rating .star--empty {
  background-image: url(https://stroybaza-samara.ru/media/uploads/svg/star-empty.svg);
  background-size: 9px 9px;
  background-position: center center;
  background-repeat: no-repeat;
}

.product-card__rating .star {
  width: 7px;
  height: 9px;
  margin-left: 0;
}

.product-card .st-button_add-to-favorite {
  display: flex;
  gap: 3px;
  width: 100%;
  max-width: none;
  padding: 0 5px;
  justify-content: center;
  align-items: center;
  position: static;
}

.st-button_add-to-favorite .icon-container {
  width: 20px;
  height: 20px;
}

.product-card .st-button_add-to-favorite::after {
  content: "В избранное";
  font-size: 13px;
  color: var(--custom-black-color);
}

.st-button_add-to-favorite:is(:hover, .active)
  .icon-container
  .st-button__icon_favorite:last-child {
  width: 100%;
}

.shopping-cart-btn--lg.custom-icon {
  gap: 10px;
  font-size: 13px;
  height: 34px;
  border-radius: 0;
  border: 1px solid var(--custom-accent-color-400) !important;
}

.shopping-cart-btn--lg.custom-icon:hover {
  background: var(--custom-gray-color-100) !important;
  color: var(--custom-black-color) !important;
  border: var(--custom-border-width) solid var(--custom-border-color) !important;
}

.shopping-cart-btn--lg.custom-icon:hover img.cart-icon {
  display: block;
  margin: 0;
  padding: 0;
}

.shopping-cart-btn--lg.custom-icon:hover .custom-icon.hover {
  display: none !important;
}

.shopping-cart-product {
  gap: 10px;
  display: flex;
  flex-direction: column;
  margin-top: auto;
}

.product-card__title {
  margin-bottom: 0 !important;
}

.product-item__status.common-status {
  color: var(--custom-gray-color-700);
  font-size: 9px;
  line-height: 110% !important;
}

#sync2 .item {
  border-radius: 0;
  height: 60px;
  width: 60px;
  background: var(--custom-gray-color-100);
}

.document-item__format {
  background: url(https://stroybaza-samara.ru/media/uploads/svg/format-file.svg);
  color: var(--custom-accent-color-400);
}

.document-item__size {
  font-size: 13px;
  color: var(--custom-black-color);
}

.document-item__btn-download {
  flex-shrink: 0;
  background: var(--custom-accent-color-400);
  height: 34px;
  color: var(--custom-black-color);
  border: none !important;
  border-radius: 0;
}

.document-item__btn-download:hover {
  background: var(--custom-gray-color-100);
  color: var(--custom-black-color);
  border: none;
}

.document-item__text-link {
  font-size: 13px;
  color: var(--custom-black-color);
}

.document-item__btn-download svg {
  display: none;
}

.product-content {
  flex-direction: column !important;
  margin-bottom: 80px !important;
  position: relative;
  gap: 40px !important;
}

.amk-projects__about .button-theme_primary {
  width: 175px;
}

.related-products-main {
  margin-bottom: 80px;
}

.product-card-content .gap-0 {
  order: 5;
}

.product-card-content .gap-15:nth-child(2) {
  order: 1;
}

.product-card-content .gap-15:nth-child(1) {
  order: 2;
}

.product-card-content .gap-15:nth-child(3) {
  order: 3;
}

.rating-stars ul {
  gap: 0px;
  margin-bottom: 0;
  flex-direction: row;
}

.rating-stars ul li::before {
  display: none;
}

.ya-share-block {
  justify-content: flex-end;
  margin-top: -44px;
}

.fa-star::before {
  content: "";
  background-image: url(https://stroybaza-samara.ru/media/uploads/svg/star-empty.svg);
  background-size: 100%;
  background-position: center center;
  background-repeat: no-repeat;
  top: 0;
  left: 0;
  position: absolute;
  height: 100%;
  width: 100%;
}

.star.selected .fa-star::before,
.star.hover .fa-star:before {
  content: "";
  background-image: url(https://stroybaza-samara.ru/media/uploads/svg/star-full.svg);
  background-size: 100%;
  background-position: center center;
  background-repeat: no-repeat;
  top: 0;
  left: 0;
  position: absolute;
  height: 100%;
  width: 100%;
}

.review-item .product-item__rating .star--full {
  background-size: 9px 9px;
  content: "";
  background-image: url(https://stroybaza-samara.ru/media/uploads/svg/star-full.svg);
  background-position: center center;
  background-repeat: no-repeat;
}

.review-item .product-item__rating .star--empty {
  background-size: 9px 9px;
  content: "";
  background-image: url(https://stroybaza-samara.ru/media/uploads/svg/star-empty.svg);
  background-position: center center;
  background-repeat: no-repeat;
}

.review-item .product-item__rating .star {
  width: 9px;
  height: 9px;
  margin-left: 0px;
}

.review-item p,
.review-item__footer a {
  color: var(--custom-black-color);
}

.review-item .product-item__rating {
  margin-top: 5px;
}

.review-item__footer a {
  font-size: 13px;
}

.review-item__date,
.review-item__links span:first-child {
  color: var(--custom-gray-color-700);
}

.rating-stars ul > li.star > i.fa {
  color: var(--custom-white-color);
  width: 9px;
  height: 9px;
  position: relative;
}

.star {
  height: 9px;
  width: 9px;
}

.rating-stars ul > li.star {
  display: flex;
}

.rate-product__title {
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
}

.btn--fixed-small {
  height: 34px;
  border-radius: 0;
  color: var(--custom-white-color);
  font-size: 13px;
}

.btn--fixed-small:hover {
  background: var(--custom-gray-color-100);
  color: var(--custom-black-color);
}

.product-card-container .product-card-side {
  display: flex;
}

.product-card-container .product-card-content {
  width: 71%;
}

.product-card-container {
  gap: 55px;
}

.layout-grid iframe {
  width: 100%;
  height: auto;
  aspect-ratio: 1.78;
}

.layout-grid {
  grid-template-columns: repeat(2, 1fr);
  margin-bottom: 30px;
  margin-top: 30px;
}

.social-media {
  display: flex;
  flex-direction: row;
  gap: 30px;
}

.product-item--banner a,
.aside-banners-grid .content-standard-box__container,
.advertising_horizontal .advertising__block {
  clip-path: polygon(0% 34px, 34px 0%, 100% 0%, 100% 100%, 0% 100%);
}

.advertising__block img {
  height: auto;
}

.product-card-container .product-card-side {
  width: 280px;
}

.review-textarea {
  margin-bottom: 0;
}

.inner-page .slider-constructor .slick-prev,
.inner-page .slider-constructor .slick-next {
  top: -60px;
}

.inner-page .product-set-title {
  max-width: 290px;
}

.project-card-button {
  padding: 0 20px;
  width: min-content;
  height: 34px;
  font-size: 0px !important;
  font-weight: 400;
}

.project-card-button::after {
  content: "Подробнее";
  font-size: 13px;
  color: var(--custom-black-color);
}

.project-card:hover .project-card-button {
  background: var(--custom-accent-color-400);
  color: var(--custom-white-color) !important;
}

.project-card:hover .project-card-button::after, .filter-show-all a {
  color: var(--custom-white-color) !important;
}

/* Place search correctly on the first mobile paint, before deferred JS runs. */
@media (max-width: 767px) {
  .projects-search-container {
    margin-bottom: 10px;
  }

  .content-block:has(> .projects-search-container) {
    display: flex;
    flex-direction: column;
  }

  .content-block:has(> .projects-search-container) > h1 {
    order: -2;
  }

  .content-block > .projects-search-container {
    order: -1;
  }
}

.projects-search__input {
  height: 34px;
  border: var(--custom-border-width) solid var(--custom-border-color);
  border-radius: 0;
  font-size: 13px;
  color: var(--custom-black-color);
}

.projects-search__input::placeholder {
  font-size: 13px;
  color: var(--custom-gray-color-700);
}

.projects-search__button .icon-svg {
  width: 14px;
  height: 14px;
}

.catalog-side__title,
.catalog-side__content ul li a:before {
  display: none;
}

.catalog-side__content ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.catalog-side__content,
.catalog-side {
  border: none;
}

.catalog-side {
  background: transparent;
}

.container--small {
  position: relative;
  padding-top: 40px !important;
}

.menu-item__link,
.catalog-side__content ul li a,
.catalog-side__content .submenu a {
  height: 34px;
  font-size: 13px;
  padding: 0 25px;
  color: var(--custom-black-color);
  background: var(--custom-white-color) !important;
  border: 1px solid var(--custom-accent-color-400) !important;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  display: flex;
  text-align: left;
}

.menu-item__link.active,
.catalog-side__content ul li a.active,
.catalog-side__content ul li a:hover,
.menu-item__link:hover,
.menu-item.active a {
  background: var(--custom-accent-color-400) !important;
  color: var(--custom-white-color) !important;
  border: 1px solid var(--custom-accent-color-400) !important;
}

.catalog-side__content .submenu a {
  color: var(--custom-white-color) !important;
  background: var(--custom-accent-color-400) !important;
  border: 1px solid var(--custom-accent-color-400) !important;
}

.catalog-side__content .submenu a:hover {
  background: var(--custom-accent-color-400) !important;
  border: 1px solid var(--custom-accent-color-400) !important;
  color: var(--custom-white-color) !important;
}

.catalog-side__content ul li:hover .submenu {
  display: flex;
  background: transparent;
  gap: 4px;
  box-shadow: none;
}

.catalog-side__content .submenu {
  left: 231px;
  width: 280px;
}

.advertising h2 {
  width: min-content;
}

/* корзина */

.delivery-total__lg,
.shopping-cart-item__total-cost {
  text-transform: uppercase;
  text-decoration: underline;
  text-underline-offset: 6px;
}

.simple-order-form__title {
  font-size: 13px;
  text-transform: uppercase;
}

/* Дополнительные поля в форме заказа */
.cart-extra-field {
  margin-bottom: 18px;
}

.cart-extra-field .form-group-input-label:not(:empty),
.cart-extra-field .form-group-label:not(:empty) {
  position: relative;
  margin: 0px 0 10px;
  padding: 15px 20px;
  border: var(--custom-border-width) solid var(--custom-border-color);
  border-left: 3px solid var(--custom-accent-color-400);
  background: var(--custom-gray-color-100);
  color: var(--custom-black-color);
  font-size: 11px;
  line-height: 1.45;
}

.cart-extra-field .form-group-input-label:not(:empty)::before,
.cart-extra-field .form-group-label:not(:empty)::before {
  content: "Важно";
  display: block;
  margin-bottom: 6px;
  color: var(--custom-accent-color-400);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}

.shopping-cart-item__name span {
  font-size: 11px !important;
}

.form-control:valid + .label-name .content-name {
  font-size: 9px !important;
  top: -10px !important;
  color: var(--custom-black-color) !important;
}

.new-radio__label:after,
.new-radio__label:before,
.shopping-cart-btn--lg.custom-icon {
  border-radius: 0;
}

.new-radio__label,
.simple-order-form__column .d-flex.flex-row label {
  font-size: 13px;
}

.form-group-number {
  border-radius: 0;
  width: 25px;
  height: 25px;
  font-size: 11px !important;
  bottom: 10px;
}

.form-delivery-distance span,
.form-delivery-distance,
.form-delivery-address div,
.point-on-map-label {
  font-size: 13px !important;
}

.form-delivery-cost,
.form-delivery-cost span {
  font-size: 13px !important;
  text-transform: uppercase;
  text-decoration: underline;
  text-underline-offset: 6px;
  font-weight: 600;
}

.form-delivery-cost span {
  background: none;
  padding: 0;
  border-radius: 0;
}

.form-group label.label-lg {
  font-size: 13px;
  color: var(--custom-black-color);
}

.dropdown-select {
  border: var(--custom-border-width) solid var(--custom-border-color);
  border-radius: 0;
  height: 34px;
  padding: 0 20px;
  display: flex;
  font-size: 13px;
  align-items: center;
}

.active .dropdown-select,
.dropdown-select-ul {
  background: var(--custom-gray-color-100);
  border-radius: 0;
}

.dropdown-select-ul li {
  padding: 0 20px;
  height: 34px;
  min-height: 34px;
  line-height: 16px;
  display: flex;
  font-size: 13px;
  margin: 0 !important;
  align-items: center;
}

.dropdown-select-ul li.selected,
.dropdown-select-ul li:hover {
  color: var(--custom-white-color);
  border-bottom: 1px solid var(--custom-white-color);
}

.calculate-delivery .form-group .btn {
  height: 34px;
  font-size: 13px;
  color: var(--custom-white-color);
  border-radius: 0;
  margin-left: 50px;
}

.calculate-delivery .form-group .btn:hover {
  color: var(--custom-black-color);
  border: 1px solid var(--custom-accent-color-400);
  background: var(--custom-white-color);
}

.menu-list__item {
  border-bottom: var(--custom-border-width) solid var(--custom-border-color);
}

.mm-menu a {
  font-size: 14px;
  font-weight: 500 !important;
  color: var(--custom-black-color) !important;
}

.mm-navbar__title > span {
  text-transform: uppercase;
  font-size: 16px !important;
}

.mm-menu a:hover,
.mm-btn--next:hover {
  color: var(--custom-accent-color-400) !important;
}

.mm-menu .mm-listitem {
  position: relative;
}

.mm-menu .mm-listitem > .mm-listitem__text {
  padding-right: 54px;
  gap: 10px;
}

/* Share the current header artwork with the mobile menu on every domain. */
.mm-menu .menu-list__item_bottom > .mobile-side-menu-footer__link {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mm-menu .menu-list__item_bottom > .mobile-side-menu-footer__link > svg,
.mm-menu .mobile-side-menu-footer__link[href*="/cart/"] > img,
.mm-menu .mobile-side-menu-footer__link[href*="/favorites/products"] > img,
.mm-menu .mobile-side-menu-footer__link[href*="/favorites/products"] > svg {
  display: none !important;
}

.mm-menu .menu-list__item_bottom > .mobile-side-menu-footer__link::before {
  content: "";
  display: block;
  flex: 0 0 22px;
  width: 22px;
  height: 16px;
  background: url("https://stroybaza-samara.ru/media/uploads/svg/baza-icon.svg") center / contain no-repeat;
}

.mm-menu .mobile-side-menu-footer__link[href*="/cart/"]::before,
.mm-menu .mobile-side-menu-footer__link[href*="/favorites/products"]::before {
  content: "";
  display: block;
  flex: 0 0 30px;
  width: 30px;
  height: 16px;
  background: center / contain no-repeat;
}

.mm-menu .mobile-side-menu-footer__link[href*="/cart/"]::before {
  background-image: url("https://stroybaza-samara.ru/media/uploads/svg/cart-icon.svg");
}

.mm-menu .mobile-side-menu-footer__link[href*="/favorites/products"]::before {
  background-image: url("https://stroybaza-samara.ru/media/uploads/svg/fav-icon.svg");
}

.menu-list__icon {
    max-width: 35px;
}

.menu-item__image {
  display: none !important;
}

.mm-listitem__btn {
    padding-inline-end: 44px;
}

.mm-menu .mm-listitem__btn.mm-btn--next {
  position: absolute !important;
  top: 0 !important;
  right: 9px !important;
  bottom: 0 !important;
  left: auto !important;
  z-index: 2;
  display: block;
  width: 44px !important;
  height: 100% !important;
  min-height: 0 !important;
  border: 0 !important;
}

.mobile-side-menu-content__row {
    margin-right: 3px;
    gap: 8px;
}

.mm-menu .mm-listitem__btn.mm-btn--next::before,
.mm-menu .mm-listitem__btn.mm-btn--next::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  right: auto;
  bottom: auto;
  display: block;
  margin: 0;
  border: 0 !important;
  background-color: var(--custom-accent-color-500);
  transform: translate(-50%, -50%);
}

.mm-menu .mm-listitem__btn.mm-btn--next::before {
  width: 1px;
  height: 20px;
}

.mm-menu .mm-listitem__btn.mm-btn--next::after {
  width: 20px;
  height: 1px;
}

/* избранное */

.widget-content {
  width: 100%;
  max-width: 100%;
  margin-inline: auto;
  padding: 0;
  padding-block: 0;
}

.widget {
  border: none;
}

.product-item__art {
  font-size: 11px !important;
  color: var(--custom-gray-color-700);
}

.favorite-aside-bottom {
  margin-top: 0;
}

.color-gray-550 {
  font-size: 13px;
  font-weight: 600;
  color: var(--custom-black-color);
}

.favorite-aside-bottom-buttons
  .checkbox
  [type="checkbox"]:not(:checked)
  + label,
.favorite-aside-bottom-checkbox [type="checkbox"]:checked + label {
  font-size: 13px;
  color: var(--custom-black-color);
}

.cart-item__checkbox [type="checkbox"]:checked + label:before,
.cart-item__checkbox [type="checkbox"]:checked + label:after {
  top: 50% !important;
}

.s-item-price {
  text-transform: uppercase;
}

.__header #search-result .s-item-link {
  align-items: flex-start;
}

.btn.btn-plaintext {
  font-size: 13px;
  color: var(--custom-black-color);
}

.product-item__name {
  font-size: 13px;
  line-height: 130% !important;
  color: var(--custom-black-color);
}

.cart-item--favorite .cart-item__image-wrapper {
  background: var(--custom-gray-color-100);
}

.cart-item {
  padding: 10px 0;
  border-bottom: var(--custom-border-width) solid var(--custom-border-color);
}

.product-item__cost-product {
  font-size: 13px;
  color: var(--custom-black-color);
  font-weight: 600;
}

.favorite-aside-btn,
.btn-plaintext.selected-to-cart {
  color: var(--custom-white-color);
  background: var(--custom-accent-color-400);
  border: none;
  height: 34px;
  border-radius: 0;
  width: 175px;
  border: 1px solid var(--custom-accent-color-400);
}

h1 span,
.h1 span {
  font-size: inherit !important;
  font-weight: inherit;
}

.favorite-aside-btn::before,
.btn-plaintext.selected-to-cart::before {
  content: "";
  display: block;
  flex: 0 0 30px;
  width: 30px;
  height: 16px;
  background: url(https://stroybaza-samara.ru/media/uploads/svg/cart-icon-white.svg)
    no-repeat;
  background-position: center center;
  background-size: contain;
}

.favorite-aside-btn .svg-icon,
.btn.btn-plaintext .svg-icon {
  display: none;
}

.favorite-aside-btn:hover,
.btn-plaintext.selected-to-cart:hover {
  color: var(--custom-black-color);
  background: var(--custom-white-color);
  border: 1px solid var(--custom-accent-color-400);
}

.favorite-aside-btn:hover::before,
.btn-plaintext.selected-to-cart:hover::before {
  background: url(https://stroybaza-samara.ru/media/uploads/svg/cart-icon-accent.svg)
    no-repeat;
  background-position: center center;
  background-size: contain;
}

.mt-auto {
  flex-shrink: 0;
}

.cart-item--favorite {
  flex-direction: row !important;
}

.cart-item--favorite .cart-item__image-wrapper {
  margin-bottom: 0;
}

.widget .st-button_add-to-cart::before,
.product-card-v2__buttons .st-button_add-to-cart::before {
  content: "";
  display: block;
  flex: 0 0 30px;
  width: 30px;
  height: 16px;
  background: url(https://stroybaza-samara.ru/media/uploads/svg/cart-icon-accent.svg)
    no-repeat;
  background-position: center center;
  background-size: contain;
}

.st-button_add-to-cart {
  border-radius: 0 !important;
}

.widget .st-button_add-to-cart {
  background: var(--custom-gray-color-100);
  border: none !important;
  height: 34px;
  border-radius: 0 !important;
}

.widget .st-button_add-to-cart:hover {
  background: var(--custom-accent-color-400);
  border: none !important;
}

.widget .st-button_add-to-cart:hover::before,
.product-card-v2__buttons .st-button_add-to-cart:hover::before {
  background: url(https://stroybaza-samara.ru/media/uploads/svg/cart-icon-white.svg)
    no-repeat;
  background-position: center center;
  background-size: contain;
}

.cart-item--favorite {
  padding: 10px 0 !important;
  border-bottom: var(--custom-border-width) solid var(--custom-border-color) !important;
}

.modal {
  padding: 30px;
  min-height: auto;
}

.modal .h2 {
  margin-bottom: 25px;
  font-size: 20px !important;
  text-align: left;
  max-width: 240px;
}

#callme-modal .callme-request-form button[type="submit"] {
  width: 144px;
}

.modal#city-selection .h2 {
  font-size: 0 !important;
  height: auto !important;
  max-width: none !important;
  display: block !important;
  line-height: 0 !important;
}

.modal#city-selection .h2::after {
  display: inline-block;
  font-size: 20px;
  line-height: 1.2 !important;
  white-space: normal;
  content: "Выберите базу стройматериалов";
  text-transform: inherit !important;
  font-weight: inherit !important;
  color: inherit !important;
}

.city-list a:hover {
  color: var(--custom-black-color);
  text-decoration: underline;
  text-underline-offset: 8px;
}

.fixed-header-button {
  position: fixed;
  top: 20px;
  left: calc(50% - 21px);
  z-index: 1000;
  pointer-events: none;
}

.fixed-header-menu {
    left: calc(50% - 69px);
    z-index: 1000;
    pointer-events: auto;
    position: fixed;
    top: 27px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.fixed-header-button .btn {
  pointer-events: auto;
  background: none;
  color: var(--custom-black-color) !important;
  padding: 0;
  height: 24px;
  padding-bottom: 6px !important;
  border-bottom: 1px solid var(--custom-accent-color-400);
  width: auto;
  font-size: 13px;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.__header .row .col-lg-6 {
  margin-left: 0px;
}

.fixed-header-menu .btn {
  flex-direction: column;
  background: none;
  color: var(--custom-black-color);
  font-size: 0px;
  gap: 0px;
  padding: 0;
  height: auto;
  border-radius: 0;
}

.fixed-header-menu:hover .btn {
  color: var(--custom-accent-color-400);
}

.fixed-header-menu img {
  width: 32px;
  height: 18px;
  margin-left: 0px;
}

.fixed-header-button .btn:hover {
  color: var(--custom-accent-color-400);
}

.fixed-header-button .btn img {
  width: 12px;
  height: 7px;
}

/* pop-up */

.city-popup {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.city-popup[hidden] {
  display: none;
}

.city-popup__close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
  color: var(--custom-gray-color-700);
}

.city-popup__close:hover {
  color: var(--custom-black-color);
}

.city-popup h2 {
  margin: 0 0 15px;
}

.city-popup p {
  margin: 0 0 25px;
  color: var(--custom-black-color);
}

.city-popup__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 20px;
}

.city-popup__list li::before {
  display: none !important;
}

.city-popup__list li {
  margin-bottom: 0 !important;
  padding-left: 0 !important;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  column-gap: 8px;
}

.city-popup__list a {
  display: inline-block;
  padding: 6px 0;
  color: var(--custom-black-color);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.city-popup__list li:hover a {
  color: var(--custom-accent-color-400);
}

.city-popup__status {
  display: inline-block;
  font-size: 11px !important;
  line-height: 1.4;
  white-space: nowrap;
}

.city-popup__status::before {
  content: none;
}

.city-popup__status--searching {
  color: var(--custom-accent-color-400);
}

.city-popup__status--partner {
  color: var(--custom-gray-color-700);
}

.city-popup {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.city-popup.is-active {
  display: flex;
}

.city-popup__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(0, 0, 0, 0.55);
}

.city-popup__content {
  position: relative;
  width: 100%;
  max-width: 650px;
  padding: 30px;
  background: var(--custom-white-color);
  box-sizing: border-box;
  z-index: 2;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
}

body.popup-open {
  overflow: hidden;
}

.section-favorite .icon-sort-price {
  display: none;
}

.affiliate-network,
.affiliate-network__head {
  margin-bottom: 0px;
}

.affiliate-network__head .dropdown-select-ul li {
  padding: 0 20px;
}

.affiliate-network .form-group {
  margin-bottom: 20px;
}

.form-group label.select-label {
  font-size: 13px;
  margin-bottom: 8px;
  color: var(--custom-gray-color-700);
}

.cost-building {
  margin-bottom: 60px;
}

.catalog__links-block a {
  border-radius: 0px;
  font-size: 13px;
  color: var(--custom-black-color);
  padding: 0px 20px;
  border: 1px solid var(--custom-accent-color-400);
  height: 34px;
}

.catalog__links-block {
  padding-bottom: 0;
}

.catalog__links-block a:is(:hover, :focus-visible, .active) {
  color: var(--custom-white-color);
}

.project-card-button:hover, .project-card-badge {
  color: var(--custom-white-color) !important;
}

.city-select-wrapper {
  width: 250px;
  height: 34px;
}

.city-select-box__trigger {
  padding: 10px 15px;
  background: var(--custom-gray-color-100);
  border: none;
  min-height: 34px;
  height: 34px;
  border-radius: 0;
  color: var(--custom-black-color);
  font-size: 13px;
}

.city-select-box__dropdown {
  background: var(--custom-gray-color-100);
  border: none;
  border-top: none;
  border-radius: 0;
  box-shadow: none;
}

.city-select-box__search {
  padding: 10px 15px;
  border-bottom: var(--custom-border-width) solid var(--custom-border-color);
  background: var(--custom-gray-color-100);
}

.city-select-box__search-input,
.projects-search__input {
  border: var(--custom-border-width) solid var(--custom-border-color);
  border-radius: 0px;
  color: var(--custom-black-color);
  font-size: 13px;
}

.city-select-box.open .city-select-box__trigger,
.projects-search__input {
  background: var(--custom-gray-color-100);
}

.projects-search__input {
  border: none;
}

.city-select-box__option {
  padding: 8px 15px;
  color: var(--custom-black-color);
  font-size: 13px;
  height: 34px;
}

.city-select-box__search-input:focus,
.projects-search__input:focus {
  border-color: var(--custom-accent-color-400);
  box-shadow: none;
}

.city-select-box__search-icon {
  right: 30px;
  width: 12px;
}

.city-select-box__option.selected,
.city-select-box__option:hover {
  background: var(--custom-accent-color-400);
  color: var(--custom-black-color);
  font-weight: 400;
}

.partner-img-back {
  position: absolute;
  top: 0;
  height: auto;
  width: 100%;
  z-index: 1;
  margin-bottom: 0 !important;
  max-width: none !important;
}

.partner-item {
  padding: 20px;
  width: 100%;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  background: var(--custom-gray-color-100);
  border: none;
  position: relative;
  display: flex;
  flex-direction: column;
}

.points-grid,
.partners {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}

.partner-item__bg {
  position: relative;
  height: auto;
  background: transparent;
}

.partner-item__name {
  padding: 0;
  font-weight: 600;
  font-size: 13px;
  line-height: 100%;
  text-transform: uppercase;
  display: block;
  color: var(--custom-black-color);
}

.partner-item__content {
  background: transparent;
  padding: 0;
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
}

.partner-item__line {
  margin-bottom: 10px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

.partner-item .icon {
  display: none;
}

.partner-item__link {
  margin-top: auto;
  display: flex;
  height: 34px;
  background-color: var(--custom-white-color);
  align-items: center;
  justify-content: center;
  padding: 0px 20px;
  width: max-content;
  border: 1px solid var(--custom-accent-color-400);
  color: var(--custom-black-color);
  transition: 0.2s;
  width: 175px;
}

.partner-item__link:hover {
  background-color: var(--custom-accent-color-400);
  border: 1px solid var(--custom-accent-color-400);
  color: var(--custom-white-color);
}

.partner-item__link::after {
  display: none;
}
/*
.partner-item__link::before {
  content: "Подробнее";
  font-size: 13px;
  color: var(--custom-black-color);
}

.partner-item__link:hover::before {
  color: var(--custom-black-color);
}
*/

.partner-item__link:hover {
  color: var(--custom-black-color) !important;
}
.partner-item__line,
.partner-item__line p {
  font-size: 13px;
  color: var(--custom-black-color);
}

.ya-share2__badge {
  width: 30px !important;
  height: 30px !important;
  border-radius: 0 !important;
}

.ya-share2__item_service_vkontakte .ya-share2__badge,
.ya-share2__item_service_vkontakte .ya-share2__mobile-popup-badge {
  background-color: var(--custom-gray-color-600) !important;
}

.ya-share2__item_service_odnoklassniki .ya-share2__badge,
.ya-share2__item_service_odnoklassniki .ya-share2__mobile-popup-badge {
  background-color: var(--custom-gray-color-700) !important;
}

.ya-share2__item_service_telegram .ya-share2__badge,
.ya-share2__item_service_telegram .ya-share2__mobile-popup-badge {
  background-color: var(--custom-black-color) !important;
}

.article-inner__share-title {
  color: var(--custom-gray-color-700);
}

.news-item-info-text .button-theme_primary {
  width: max-content !important;
  flex-shrink: 0;
  color: var(--custom-black-color) !important;
  padding: 0 10px !important;
  background: var(--custom-white-color) !important;
  border: 1px solid var(--custom-accent-color-400) !important;
}

.news-item-info-text .button-theme_primary:hover {
  background: var(--custom-accent-color-400) !important;
  border: 1px solid var(--custom-accent-color-400) !important;
  color: var(--custom-white-color) !important;
}

.custom-news-item:hover .button-theme_primary {
  background: var(--custom-gray-color-100);
}

/* Тизер */

.article-hero {
  margin-bottom: 60px;
}

.article-hero__image {
  width: 100%;
  overflow: hidden;
}

.article-hero__image img {
  display: block;
  width: 100%;
  margin: 0;
}

.article-hero__image .article-images__video {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  object-fit: cover;
  object-position: center;
}

.shopping-cart-product .shopping-cart-btn.custom-icon img {
  display: none !important;
}

.product-item--banner a:hover img {
  transform: none;
}

.logo-pin {
  position: absolute;
  right: 15px;
  width: auto;
  height: 34px;
  bottom: 20px;
}

.logo-pin img {
  height: 100%;
}

.partner-item__line {
  position: unset;
}

/* Универсальная секция статьи */

.article-section {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 80px;
  margin-bottom: 80px;
}

.article-section--intro {
  margin-bottom: 80px;
}

.article-section__content ul,
.article-section__content ol {
  margin: 0 0 20px;
}

.article-section__title h2 {
  margin: 0;
  max-width: 200px;
}

.article-section__content h4 {
  margin-top: 25px;
}

.article-section__content {
  max-width: 920px;
}

.article-section__content .form-group-inline .button-theme_primary {
  width: 144px;
}

.article-section__content > *:first-child {
  margin-top: 0;
}

.article-section__content > *:last-child {
  margin-bottom: 0;
}

.article-section__content p {
  margin: 0 0 20px;
}

.article-section__content li {
  margin-bottom: 10px;
}

.article-section__content .article-partner-limits {
  display: grid;
  grid-template-columns: max-content max-content;
  gap: 15px 30px;
  max-width: 100%;
  padding: 0;
  list-style: none;
}

.article-partner-limits li {
  display: contents;
}

.article-partner-limits__label {
  min-width: 0;
}

.article-partner-limits__value {
  white-space: nowrap;
  text-align: left;
}

.article-partner-limits__value::before {
  content: "— ";
}
/* Картинки внутри статьи */

.article-images {
  display: grid;
  gap: 10px;
  margin-top: 40px;
}

.article-images--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.article-images__item {
  min-height: auto;
  background: var(--custom-gray-color-100);
  overflow: hidden;
}

.article-images--two .article-images__item {
  aspect-ratio: 1;
}

.article-images__item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Нижний блок статьи */

.article-bottom {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: start;
  padding-top: 30px;
  border-top: var(--custom-border-width) solid var(--custom-border-color);
  margin-left: 440px;
}

.article-bottom__info {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.article-bottom__logo {
  width: 50px;
  height: auto;
  flex-shrink: 0;
}

.article-bottom__text {
  max-width: 420px;
}

.article-bottom__text p {
  margin: 0 0 20px;
}

.article-bottom__text time {
  display: block;
}

.article-bottom__social {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.article-bottom__social-text {
  margin: 12px 0 0;
}

.offer-slider {
  padding-top: 20px;
  background: var(--custom-white-color);
}

.offer-slider-inner {
  background: var(--custom-black-color);
}

.offer-slider .about-block__content {
  padding-left: 0;
}

.offer-slider .about-block__content .btn {
    width: fit-content;
    border: 1px solid var(--custom-accent-color-400) !important;
    background: var(--custom-black-color) !important;
    color: var(--custom-white-color) !important;
    padding: 0 15px;
}

.offer-slider .about-block__content .btn:hover {
  border: 1px solid var(--custom-accent-color-400) !important;
  background: var(--custom-accent-color-400) !important;
  color: var(--custom-white-color) !important;
}

.under-slider-static-text {
  padding: 0;
  margin-top: -210px;
}

.under-slider-static-text .about-block__inner {
  grid-template-rows: 0 105px 105px 105px;
  background-color: transparent;
}

.under-slider-static-text .category-card:nth-child(5),
.under-slider-static-text .category-card:nth-child(2) {
  border-right: 5px solid var(--custom-white-color);
}

.offer-slider .about-block__hero {
  min-height: 425px;
  background: transparent;
}

.slider-constructor .slick-list {
  height: auto;
}

.custom-big-slide .slider-constructor .slick-prev,
.custom-big-slide .slider-constructor .slick-next {
  top: 65px;
  background: var(--custom-black-color);
  border: 1px solid var(--custom-white-color);
}

.custom-big-slide .slider-constructor .slick-arrow img,
.custom-big-slide .slider-constructor .slick-arrow svg {
  fill: var(--custom-white-color);
}

.custom-big-slide .slider-constructor .slick-arrow:hover {
  border: 1px solid var(--custom-accent-color-400);
}

.custom-big-slide .slider-constructor .slick-arrow:hover img,
.custom-big-slide .slider-constructor .slick-arrow:hover svg {
  fill: var(--custom-accent-color-400);
}

.custom-big-slide .slider-constructor .slick-prev {
  right: calc(50% - 551px);
}

.custom-big-slide .slider-constructor .slick-next {
  right: calc(50% - 590px);
}

.custom-big-slide .container:not(.offer-slider-inner .container) {
  width: 100%;
  max-width: 100%;
  padding: 0;
}

.custom-big-slide .about-block__hero::before {
  display: none;
}

.offer-slider-inner {
  position: relative;
}

.offer-slider-inner::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 430px;
  background-image: url(https://stroybaza-samara.ru/media/uploads/svg/pattern-offer.svg);
  background-repeat: no-repeat;
  background-position: center center;
  background-size: auto 100%;
  opacity: 1;
  pointer-events: none;
}

.custom-big-slide {
  z-index: 2;
}

.filter-item .form-group {
  margin-bottom: 8px;
}

.filter-item .form-group label {
  padding-right: 20px;
}

.product-card-v2__labels {
  top: 31px;
  bottom: auto;
  right: 4px;
  left: auto;
  height: min-content;
  width: auto;
  margin: 0;
  display: flex;
  flex-direction: column;
  margin-left: 0px;
  gap: 5px;
}

.product-card-v2__labels
  .card-label:not(.product-card-v2__labels .card-label:last-child) {
  margin-bottom: -9px;
}

.product-card-sell-badge {
  top: 37px;
}

.st-button__icon_favorite:not(.product-card__left .st-button__icon_favorite) {
  min-width: auto;
  height: auto;
  background: var(--custom-white-color);
  z-index: 2;
  /* clip-path: polygon(0 8px, 100% 0, 100% calc(100% - 8px), 0 100%);*/
  width: 100%;
  height: 100%;
  padding: 1px;
}

.st-button_add-to-favorite {
  overflow: visible;
  max-width: 22px;
  min-width: 22px;
  right: 4px;
  bottom: auto;
  top: 4px;
  height: 22px;
}

.product-card-sell-badge {
  right: -1px;
  top: 16px;
  width: min-content;
  min-width: 0;
  bottom: auto;
  left: auto;
  height: 30px;
}
/*
.st-button_add-to-favorite .icon-container::before {
  content: "";
  width: calc(100% + 2px);
  height: calc(100% + 2px);
  top: -1px;
  position: absolute;
  left: -1px;
  background: var(--custom-accent-color-400);
  clip-path: polygon(0 8px, 100% 0, 100% calc(100% - 8px), 0 100%);
  z-index: 1;
}
*/
.product-card__left .st-button_add-to-favorite .icon-container::before {
  display: none;
}

.product-item__flag,
.card-label,
.product-card-sell-badge {
  font-weight: 400;
  padding: 0 !important;
  line-height: 100% !important;
  font-size: 0px !important;
  /*clip-path: polygon(0 9px, 100% 0, 100% calc(100% - 9px), 0 100%);*/
  height: 22px;
  display: flex;
  font-size: 0 !important;
  width: 22px !important;
  min-width: 0;
  align-items: center;
  justify-content: center;
}

.product-item__flag-content {
  flex-direction: row;
  margin-left: 0px;
}

.product-item__flag-content {
  display: none;
}

.product-card .product-item__flag--new,
.card-label_style-new {
  background: transparent
    url(https://stroybaza-samara.ru/media/uploads/svg/hit.svg) no-repeat;
  background-size: 20px;
  background-position: center;
}

.product-card .product-item__flag--hit,
.card-label_style-hit {
  background: transparent
    url(https://stroybaza-samara.ru/media/uploads/svg/hit.svg) no-repeat;
  background-size: 20px;
  background-position: center;
}

.product-card .product-item__flag--offer,
.card-label_style-offer {
  background: transparent
    url(https://stroybaza-samara.ru/media/uploads/svg/sale.svg) no-repeat;
  background-size: 20px;
  background-position: center;
}

.product-card .product-item__flag--discount {
  background: transparent
    url(https://stroybaza-samara.ru/media/uploads/svg/sale.svg) no-repeat;
  background-size: 20px;
  background-position: center;
}

.product-card .product-item__flag--sale,
.product-card-sell-badge,
.card-label_style-stock,
.card-label_style-sale {
  background: transparent
    url(https://stroybaza-samara.ru/media/uploads/svg/sale.svg) no-repeat;
  background-size: 20px;
  background-position: center;
}

.st-button_add-to-favorite {
  background: none !important;
  border-radius: 0;
}

.partner-wrapper__item__flag {
  display: none;
}

header ul.link--arrow-left span + a {
  padding-left: 48px;
}

.custom-catalog-button .btn {
  border: 1px solid var(--custom-accent-color-400) !important;
  background: var(--custom-white-color) !important;
  color: var(--custom-black-color) !important;
}

.banner-img-block .btn {
  border: 1px solid var(--custom-white-color) !important;
  background: var(--custom-white-color) !important;
  color: var(--custom-black-color) !important;
}

.custom-catalog-button .btn:hover,
.banner-img-block .btn:hover {
  border: 1px solid var(--custom-accent-color-400) !important;
  background: var(--custom-accent-color-400) !important;
  color: var(--custom-white-color) !important;
}

.search-modal-window__cancel {
  font-size: 0px !important;
  position: relative;
}

.search-modal-window__cancel::before {
  font-size: 14px;
  color: var(--custom-black-color);
  content: "Закрыть";
  top: 2px;
  position: relative;
}

.search-modal-window__search-results {
  max-height: 380px;
}

.search-modal-window {
  height: 438px;
  box-shadow: 0px 1px 15px 2px rgba(218, 218, 218, 0.5019607843);
  overflow: hidden;
}

.search-modal-window__cancel {
  min-width: 60px;
}

.search-modal-window__clear-input {
  right: 15px;
  height: 100%;
  background: transparent;
  width: 55px;
  border-radius: 0;
  position: absolute;
}

.search-modal-window__clear-input::after {
  font-size: 14px;
  color: var(--custom-gray-color-700);
  content: "Стереть";
}

.search-modal-window__clear-input svg {
  display: none;
}

.product-card-v2__image {
  position: relative;
}

.product-card-v2__image::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2;
  height: 32px;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0) 0%,
    var(--custom-white-color) 100%
  );
}

.product-card-v2__badges-flex {
  position: absolute;
  top: 32px;
  bottom: auto;
  left: auto;
  right: -1px;
  z-index: 5;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0;
  flex-direction: column-reverse;
}

/* Принудительно сбрасываем старое позиционирование */
.product-card-v2__badges-flex .product-card-v2__labels,
.product-card-v2__badges-flex .product-card-sell-badge {
  position: static !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  transform: none !important;
  margin: 0 !important;
}

.product-card-v2__badges-flex .product-card-v2__labels {
  display: flex !important;
  flex-wrap: wrap;
  gap: 6px;
  align-items: flex-start;
}

.product-card-v2__badges-flex .product-card-v2__labels {
  margin-top: -10px !important;
}

.about-section {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  margin-bottom: 10px;
}

.about-section .about-img {
  background: var(--custom-black-color)
    url(https://stroybaza-samara.ru/media/uploads/svg/news-back.svg) no-repeat;
  background-size: cover;
  overflow: hidden;
  display: flex;
  justify-content: center;
}

.about-info .btn {
  width: 144px;
}

.about-section .about-img img {
  margin-top: auto;
}

.about-section img {
  margin-bottom: 0px;
  object-fit: cover;
  max-width: none;
  width: 100%;
}

.article-images__item--with-buttons {
  position: relative;
  overflow: hidden;
  background: var(--custom-gray-color-100);
}

.article-images__item--with-buttons img {
  display: block;
  width: 100%;
  height: auto;
}

.article-images__animated-media {
  position: relative;
  display: block;
  overflow: hidden;
}

.article-images__animated-media .article-images__static,
.article-images__animated-media .article-images__video {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
  transition: opacity 0.2s ease;
}

.article-images__animated-media .article-images__static {
  position: relative;
  z-index: 1;
  opacity: 1;
}

.article-images__animated-media .article-images__video {
  position: absolute;
  inset: 0;
  z-index: 2;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
  opacity: 0;
  pointer-events: none;
}

.article-images__animated-media.is-video-active .article-images__static {
  opacity: 0;
}

.article-images__animated-media.is-video-active .article-images__video {
  opacity: 1;
}

.article-image-buttons {
  position: absolute;
  left: 20px;
  bottom: 20px;
  display: flex;
  gap: 10px;
  z-index: 3;
  flex-direction: row;
}

.article-actions {
  display: flex;
  gap: 10px;
  margin-top: 40px;
  flex-direction: row;
}

.article-actions .btn,
.article-image-buttons .btn {
  width: max-content;
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.custom-cold-block .partners-grid {
  gap: 40px 20px;
}

.cold-column-right {
  position: relative;
}

.cold-column-right .features__plus-row:nth-child(2) {
  top: 32%;
  position: absolute;
}

.cold-column-right .features__plus-row:nth-child(3) {
  top: 62%;
  position: absolute;
}

.partners-grid__item {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 50px;
  transition:
    border-color 0.2s ease,
    background-color 0.2s ease,
    transform 0.2s ease;
}

.partners-grid__item img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: grayscale(1);
  transition:
    filter 0.2s ease,
    opacity 0.2s ease,
    transform 0.2s ease;
  margin: 0;
}

.partners-grid__item:hover {
  transform: translateY(-2px);
}

.partners-grid__item:hover img {
  filter: grayscale(0);
  opacity: 1;
}

.bottom-mobile-menu {
  z-index: 999999;
}

.calculate-delivery {
  gap: 30px;
  flex-direction: column-reverse;
}

.calculate-delivery__map {
  width: 100%;
}

.calculate-delivery__form {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 3fr)
        minmax(0, 4fr)
        minmax(0, 5fr)
        minmax(0, 2fr);
  align-items: start;
  gap: 0 30px;
}

.calculate-delivery__form > .form-group {
  grid-column: 1;
  width: 100%;
  min-width: 0;
}

.calculate-delivery__form > .form-group[style*="text-align"] {
  display: flex;
  justify-content: flex-start;
}

.cookie-modal__content button {
  height: 34px;
  font-size: 13px;
  line-height: 100%;
  border-radius: 0;
  color: var(--custom-white-color);
}

.cookie-modal__content button:hover {
  background: var(--custom-white-color);
  border-color: var(--custom-accent-color-400);
  color: var(--custom-black-color);
}

body.popup-open {
  overflow: hidden;
}

.advertising__block::before {
  padding-top: 181%;
}

.contacts-static-text {
  margin-left: 0px !important;
}

/* Адаптация */

/*правки новые*/

.calculate-delivery__form-delivery {
  grid-column: 2;
  grid-row: 1 / span 4;
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 0;
  margin-right: 0;
}

.calculate-delivery__form-delivery > span {
  display: block;
  width: 100%;
}

.form-delivery-address {
  line-height: 1.4;
}
.calculate-delivery__form-delivery .form-delivery-address div {
  width: 100%;
  margin-bottom: 5px !important;
}

.calculate-delivery__form-delivery .form-delivery-distance {
  width: 100%;
}

.form-delivery-distance span {
  font-weight: 500;
}

.form-delivery-cost {
  font-size: 15px;
  color: #666;
  padding-top: 4px;
  text-decoration: none;
}

.form-delivery-cost span {
  margin-left: 4px;
  text-decoration: none;
  border-bottom: none;
}
/*селект новы*/

.calculate-delivery__form .form-group.stock-select {
  width: 100%;
  flex: 0 1 auto;
}

.dropdown-select {
  border: var(--custom-border-width) solid var(--custom-border-color);
  border-radius: 0;
  height: 34px;
  padding: 0 20px;
  display: flex;
  font-size: 13px;
  align-items: center;
  white-space: normal;
  height: auto;
  min-height: 34px;
}

.dropdown-select span {
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
}

.contacts-block__info > div:not(:last-child) .contact-text-line {
  margin-bottom: 60px;
}

.contact-text-line h3 {
  margin-bottom: 10px !important;
}

/* =============================================================
   NETWORK PAGE
   Все стили заскоуплены внутри .text-page
============================================================= */

.text-page .network-page {
  --network-text: #1a1a1a;
  --network-muted: #767676;
  --network-light: #e4e4e4;
  --network-line: var(--custom-border-color);
  --network-accent: #b5aa7d;
  --network-accent-rgb: 129, 119, 86;
  --network-dark: #1a1a1a;

  color: var(--network-text);
  font: inherit;
}

/* HERO */

.network-hero {
  position: relative;
  overflow: hidden;
  background: var(--custom-black-color);
  color: var(--custom-white-color);
}

.network-hero__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.72) saturate(0.7);
}

.network-hero__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(16, 16, 15, 0.93) 0%,
    rgba(16, 16, 15, 0.7) 42%,
    rgba(16, 16, 15, 0.16) 76%,
    rgba(16, 16, 15, 0.08) 100%
  );
}

.network-hero__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  width: min(500px, 66%);
  padding: 60px;
}

.network-hero__kicker {
  margin-bottom: 15px;
  color: var(--custom-accent-color-400);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  text-transform: uppercase;
}

.network-hero h2 {
  margin: 0 0 20px;
  color: var(--custom-white-color);
  font-size: clamp(46px, 6.2vw, 58px);
  line-height: 0.91;
  font-weight: 500;
}

.network-hero p {
  margin: 0 0 30px;
  color: var(--custom-white-color);
}

/* BUTTON */

.network-hero__content .btn,
.network-cta .btn {
  width: 180px;
}

/* СЕКЦИИ */

.network-section__title {
  min-width: 0;
}

.network-copy > *:first-child {
  margin-top: 0;
}

.network-lead {
  font-size: 16px !important;
  font-weight: 600 !important;
  text-transform: uppercase;
}

.network-principle strong {
  font-size: 13px !important;
  font-weight: 600 !important;
  text-transform: uppercase;
}

/* PRINCIPLES */

.network-principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 40px;
  background: var(--custom-gray-color-400);
  border: var(--custom-border-width) solid var(--custom-border-color);
}

.network-principle {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
  background: var(--custom-white-color);
  gap: 15px;
}

/* LEGEND */

.network-legend {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 35px;
}

.network-legend__item {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ACCORDION */

.network-accordion {
  border-top: var(--custom-border-width) solid var(--custom-border-color);
}

.network-city {
  border-bottom: var(--custom-border-width) solid var(--custom-border-color);
}

.network-city__head {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 25px;
  align-items: center;
  gap: 20px;
  min-height: auto;
  padding: 15px 13px 15px 0;
  cursor: pointer;
  list-style: none;
}

.network-city__head::-webkit-details-marker {
  display: none;
}

.network-city__name {
  font-size: 16px !important;
  font-weight: 600;
  text-transform: uppercase;
}

.network-city__meta {
  color: var(--custom-gray-color-700);
  font-size: 12px;
  line-height: 1.3;
}

.network-city__toggle {
  position: relative;
  width: 25px;
  height: 25px;
}

.network-city__toggle::before,
.network-city__toggle::after {
  content: "";
  position: absolute;
  top: 12px;
  left: 4px;
  width: 17px;
  height: 1px;
  background: var(--custom-black-color);
  transition: transform 0.25s ease;
}

.network-city__toggle::after {
  transform: rotate(90deg);
}

.network-city[open] .network-city__toggle::after {
  transform: rotate(0);
}

/* POINT */

.network-point {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  padding: 15px 20px 15px 0;
  border-bottom: var(--custom-border-width) solid var(--custom-border-color);
  color: inherit;
  text-decoration: none !important;
}

.network-point--active {
  transition:
    background 0.2s ease,
    padding-left 0.2s ease;
}

.network-point--active:hover {
  padding-left: 25px;
  background: var(--custom-gray-color-100);
}

.network-point__main {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 6px;
}

.network-point__address {
  line-height: 1.35;
  font-weight: 500;
}

.network-point__caption {
  color: var(--custom-gray-color-700);
  font-size: 12px;
  line-height: 1.3;
}

.network-point--vacant {
  cursor: default;
}

.network-point--vacant .network-point__main,
.network-point--vacant .network-status {
  opacity: 0.48;
}

.network-point--vacant .network-point__address {
  font-weight: 400;
}

.network-point__side {
  display: flex;
  align-items: center;
  flex: 0 0 236px;
  justify-content: space-between;
  gap: 24px;
}

.network-point__button.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: 155px;
  padding: 0 18px;
  white-space: nowrap;
  cursor: pointer;
  color: var(--custom-black-color) !important;
  background: var(--custom-white-color) !important;
  border: 1px solid var(--custom-accent-color-400) !important;
}

.network-point__button.btn:hover {
  background: var(--custom-accent-color-400) !important;
  border: 1px solid var(--custom-accent-color-400) !important;
  color: var(--custom-white-color) !important;
}

/* ACTIVE / FREE DOT */

.network-status {
  position: relative;
  display: inline-block;
  flex: 0 0 auto;
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.network-status--active {
  background: var(--custom-accent-color-400);
  animation: networkPulse 2s infinite;
}

.network-status--vacant {
  border: var(--custom-border-width) solid var(--custom-border-color);
  background: transparent;
}

@keyframes networkPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(var(--network-accent-rgb), 0.42);
  }

  70% {
    box-shadow: 0 0 0 10px rgba(var(--network-accent-rgb), 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(var(--network-accent-rgb), 0);
  }
}

/* NOTE */

.network-accordion-note {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-top: 30px;
  padding: 20px;
  background: var(--custom-gray-color-100);
}

.network-accordion-note .network-status {
  margin-top: 3px;
}

.network-accordion-note p {
  margin: 0;
}

/* DARK SECTION */

.network-quote {
  display: grid;
  grid-template-columns: 55px minmax(0, 1fr);
  gap: 20px;
  margin-top: 40px;
  padding-top: 30px;
  border-top: var(--custom-border-width) solid var(--custom-border-color);
}

.network-quote__mark {
  color: var(--custom-accent-color-400);
  font-size: 54px !important;
  line-height: 0.8 !important;
}

.network-quote div {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.network-quote strong {
  font-size: 13px !important;
  text-transform: uppercase;
  font-weight: 600 !important;
}

/* CONDITIONS */

.network-section--conditions {
  border-bottom: 0;
}

.network-conditions {
  margin-top: 40px;
  border-top: var(--custom-border-width) solid var(--custom-border-color);
}

.network-condition {
  display: grid;
  grid-template-columns: 55px minmax(0, 1fr);
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--network-line);
}

.network-condition__num {
  color: var(--custom-accent-color-400);
  font-size: 13px !important;
  font-weight: 600;
}

.network-condition strong {
  display: block;
  margin-bottom: 10px;
  font-size: 13px;
  line-height: 1;
  text-transform: uppercase;
  font-weight: 600 !important;
}

.network-condition p {
  margin: 0;
}

/* CTA */

.network-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  margin-top: 40px;
  padding: 20px;
  background: var(--custom-gray-color-100);
}

.network-cta__text {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 50%;
}

.network-cta__text strong {
  font-size: 13px;
  line-height: 1.3;
  font-weight: 600 !important;
  text-transform: uppercase;
}

/* ACCESSIBILITY */

.text-page .network-city__head:focus-visible,
.text-page .network-button:focus-visible,
.text-page .network-point--active:focus-visible {
  outline: 2px solid var(--network-accent);
  outline-offset: 4px;
}

/* MOBILE */

/* Не анимируем статус для пользователей,
   отключивших анимации в системе */

.social-links-extra {
  display: flex;
  align-items: center;
  gap: 18px;
}

#max-share-link {
  margin-bottom: 2px;
}

/* =============================================================
   SCROLL ANIMATED BANNER
============================================================= */

.banner-form__animated-media {
  position: absolute;
  bottom: 0;
  left: -25px;
  z-index: 0;
  width: max-content;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
}

.banner-form form {
  position: relative;
  z-index: 2;
}

.banner-form .banner-form__static,
.banner-form .banner-form__video {
  display: block;
  width: auto;
  max-width: none;
  height: 100%;
  margin: 0;
  object-fit: contain;
  transition: opacity 0.18s ease;
}

.banner-form .banner-form__static {
  position: relative;
  z-index: 1;
  opacity: 1;
}

.banner-form .banner-form__video {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-position: left bottom;
  opacity: 0;
}

.banner-form__animated-media.is-video-active .banner-form__static {
  opacity: 0;
}

.banner-form__animated-media.is-video-active .banner-form__video {
  opacity: 1;
}

/* =============================================================
   PARTNER PROJECT BLOCK
============================================================= */

.partner-project-block {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  align-items: stretch;
}

.partner-project-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 10px;
  text-decoration: none !important;
}

.partner-project-card__image {
  aspect-ratio: 21/9;
  overflow: hidden;
  position: relative;
  background: var(--custom-gray-color-100)
    url(https://stroybaza-samara.ru/media/uploads/svg/contacts-back.svg);
  transition: 0.25s ease;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

.partner-project-card__image::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  width: 100%;
  height: 20px;
  background: var(--custom-white-color);
}

.partner-project-card__image img {
  display: block;
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  margin: 0;
  object-fit: cover;
  transition:
    filter 0.25s ease,
    transform 0.25s ease;
}

.partner-project-card_video .partner-project-card__video {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.2s ease,
    visibility 0.2s ease;
}

.partner-project-card_video:hover .partner-project-card__video,
.partner-project-card_video:focus-visible .partner-project-card__video,
.partner-project-card_video.is-video-active .partner-project-card__video {
  opacity: 1;
  visibility: visible;
}

.partner-project-card_video:hover .partner-project-card__image img {
  transform: none;
}

.partner-project-card__content {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: flex-start;
  gap: 10px;
  align-items: flex-start;
  padding: 15px 20px 25px 20px;
  background: var(--custom-gray-color-100);
}

.partner-project-card__content .btn {
  width: auto !important;
  flex-shrink: 0;
  margin-top: auto;
  color: var(--custom-black-color) !important;
  border: 1px solid var(--custom-accent-color-400) !important;
  background: var(--custom-white-color) !important;
}

.partner-project-card:hover .partner-project-card__image {
  background: var(--custom-black-color)
    url(https://stroybaza-samara.ru/media/uploads/svg/contacts-back-hover.svg);
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

.partner-project-card:hover .partner-project-card__image img {
  transform: scale(1.03);
}

.partner-project-card__content h3 {
  margin-bottom: 5px;
}

.partner-project-form h3 {
  margin-bottom: 15px;
}

.partner-project-form {
  padding: 15px 20px 25px 20px;
  border: var(--custom-border-width) solid var(--custom-border-color);
  background: var(--custom-white-color);
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.partner-project-form form {
  margin-top: auto;
}

.partner-project-form .btn {
  width: auto !important;
  color: var(--custom-black-color) !important;
  border: 1px solid var(--custom-accent-color-400) !important;
  background: var(--custom-white-color) !important;
}

.partner-project-card__content .btn:hover,
.partner-project-form .btn:hover {
  border: 1px solid var(--custom-accent-color-400) !important;
  background: var(--custom-accent-color-400) !important;
  color: var(--custom-white-color) !important;
}

.contacts-static-text .container {
  padding: 0px !important;
}

.text-page ol li,
.o-product-tab ol li {
  font-size: 13px;
  line-height: 130%;
}

.text-page ol li:before,
.o-product-tab ol li:before {
  width: 10px;
  height: 18px;
  top: 0;
  border: none;
  border-radius: 0%;
  font-weight: 600 !important;
  font-size: 14px;
  line-height: 130%;
}

.text-page ol li,
.o-product-tab ol li {
  padding-left: 30px;
}

.form-cart .button-theme_primary, .simple-order-form__group .button-theme_primary {
  border: 1px solid var(--custom-accent-color-400) !important;
  background: var(--custom-white-color) !important;
  color: var(--custom-black-color) !important;
}

.form-cart .button-theme_primary:hover, .simple-order-form__group .button-theme_primary:hover {
  border: 1px solid var(--custom-accent-color-400) !important;
  background: var(--custom-accent-color-400) !important;
  color: var(--custom-white-color) !important;
}

@media (min-width: 1280px) {
  .black-block {
    padding: 40px 80px 40px 40px;
  }
}

@media (min-width: 992px) and (max-width: 1279px) {
  .about-block__socials {
    justify-content: flex-start;
    gap: 0;
  }

  .social-link {
    width: 20px;
    height: 20px;
  }
}

@media (min-width: 992px) {
  .fixed .__header {
    top: 0;
    transform: none;
    transition: none;
  }

  header {
    position: fixed;
  }

  main {
    padding-top: 70px;
  }
}

@media (min-width: 991px) {
  .__header .row .col-lg-6 {
    width: min-content;
    margin-right: auto;
  }

  .__header .row {
    align-items: flex-end;
    margin: 0;
    justify-content: space-between;
    gap: 25px;
    flex-wrap: nowrap;
  }

  .section .text-page {
    margin-left: 238px;
  }

  .container--small h2 {
    max-width: 50%;
  }

  .favorite-aside {
    padding: 20px;
  }
}

@media (max-width: 1505px) {
  body::before {
    right: calc(50% - 610px);
  }

  body::after {
    left: calc(50% - 610px);
  }
}

@media (max-width: 1279px) {
  .__header .contact-box {
    margin-right: 0px;
  }

.__header #search-result {
    width: 550px;
}

  .calculate-delivery .form-group .btn {
    margin-left: 0;
}

  .seo-grid-item {
    padding: 40px 10px;
  }

  .seo-grid-item span {
    font-size: 12px !important;
  }

  .form-group-number {
    display: none;
  }

  .form-group.stock-select {
    width: 100%;
  }

  .custom-catalog-button .btn {
    width: 176px;
  }

  .partner-img-back {
    height: 100%;
    width: auto;
  }

  .points-grid,
  .partners {
    grid-template-columns: repeat(3, 1fr);
  }

  .client-item:not(.menu-section .client-item) .client-item__text {
    top: 240px;
  }

  .client-item:not(.menu-section .client-item) {
    height: 285px !important;
  }

  .article-section {
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 80px;
  }

  .article-bottom {
    margin-left: 300px;
  }

  .custom-big-slide .slider-constructor .slick-next {
    right: calc(50% - 465px);
  }

  .custom-big-slide .slider-constructor .slick-prev {
    right: calc(50% - 426px);
  }

  .fixed-header-menu {
    top: 25px;
    left: calc(50% - 13px);
  }

  .fixed-header-button {
    top: 18px;
  }

  .under-slider-static-text .about-block__inner {
    grid-template-rows: 0 85px 85px 85px;
  }

  .under-slider-static-text {
    margin-top: -170px;
  }

  .custom-news-section {
    grid-template-columns: repeat(3, 1fr);
  }

  .product-card__slideshow {
    width: 30%;
  }

  .product-card-container .product-card-content {
    width: 65%;
  }

  .product-card-container {
    gap: 20px;
  }

  .product-card-container .product-card-side {
    width: 230px;
  }

  .product-card__content {
    width: 70%;
  }

  .product-card__left,
  .simple-order-form__submit .btn,
  .calculate-delivery .form-group .btn {
    width: 50%;
  }

  .category-card {
    min-height: 85px;
    aspect-ratio: auto;
  }

  .about-block__inner {
    grid-template-rows: 215px 85px 85px 85px;
  }

  .__header .logo {
    width: 170px;
  }

  .__header .row {
    gap: 5px !important;
  }

  .__header .options-box {
    gap: 20px;
  }

  .about-block__bottom {
    grid-template-columns: 100%;
    align-items: start;
    flex-direction: column-reverse;
    justify-content: flex-end;
    display: flex;
  }

  .about-block__socials {
    justify-content: flex-start;
  }

  .category-card__image {
    width: 100%;
    height: auto;
  }

  body::before,
  body::after {
    display: none;
  }

  .banner-form {
    height: 100%;
  }

  .banner-form img {
    display: none;
  }

  .banner-form form {
    padding-left: 0;
  }

  .fixed-header-button {
    left: calc(50% + 40px);
  }

  .news-item-info p {
    height: 53.8px;
  }
}

@media (min-width: 992px) and (max-width: 1279px) {
  .banner-form .btn {
    margin-top: 17px;
  }
}

/* Header desktop layout: 992px+ */
@media (min-width: 992px) {
  .__header .row {
    align-items: flex-end;
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: 20px;
  }

  .__header .row > [class*="col-"]:has(.logo) {
    order: 1;
  }

  .__header .row > [class*="col-"]:has(.search-box),
  .__header .row > [class*="col-"]:has(.catalog-btn),
  .__header .row > .custom-block:has(.search-box),
  .__header .row > .custom-block:has(.catalog-btn) {
    order: 2;
  }

  .__header
    .row
    > [class*="col-"]:has(.contact-box):not(:has(.options-box)):not(
      :has(.search-box)
    ):not(:has(.catalog-btn)),
  .__header
    .row
    > .contact-box:not(:has(.options-box)):not(:has(.search-box)):not(
      :has(.catalog-btn)
    ) {
    order: 3;
    width: auto !important;
    min-width: 0;
    flex: 0 0 auto;
  }

  .__header
    .row
    > [class*="col-"]:has(.options-box):not(:has(.search-box)):not(
      :has(.catalog-btn)
    ),
  .__header .row > .options-box:not(:has(.search-box)):not(:has(.catalog-btn)),
  .__header
    .row
    > .custom-block:has(.options-box):not(:has(.search-box)):not(
      :has(.catalog-btn)
    ) {
    order: 4;
    width: auto !important;
    min-width: 0;
    flex: 0 0 auto;
  }

  .__header .custom-block {
    display: flex;
    flex: 0 0 auto;
    width: auto;
    min-width: 0;
    gap: 20px;
    margin-left: auto;
    align-items: flex-end;
    justify-content: flex-end;
  }

  .__header .contact-box {
    order: 1;
    display: flex;
    align-items: center;
    width: auto;
    min-width: 0;
    height: 24px;
    margin: 0;
    flex: 0 0 auto;
    max-height: none;
    justify-content: flex-start;
    margin-right: 20px;
    gap: 15px;
  }

  .__header .contact-box .custom-attention--header {
    display: flex;
    flex: 0 0 170px;
    align-items: center;
    width: 170px;
    max-width: 170px;
    min-height: 24px;
  }

  .__header .options-box {
    order: 2;
    display: flex;
    flex-direction: row;
  }

  .__header .options-box .nav-items,
  .__header .options-box .option-items {
    display: flex;
    align-items: center;
    flex-direction: row;
    width: auto;
    min-width: 0;
    height: 24px;
    margin: 0;
    flex: 0 0 auto;
  }
  .__header .options-box .nav-items {
    order: 2;
  }

  .__header .options-box .option-items {
    order: 3;
    justify-content: flex-end;
  }

  .__header .contact-box p,
  .__header .contact-box p.toggled {
    margin: 0;
    gap: 0;
    line-height: 100%;
  }

  .__header .contact-box p.toggled a {
    padding-bottom: 6px;
  }

  .__header .contact-box p.toggled a,
  .__header .options-box .nav-items li a,
  .__header .options-box .nav-items li .location-caret,
  .__header .options-box .option-items li a {
    display: flex;
    align-items: center;
    width: auto;
    max-width: none;
    min-height: 22px;
    white-space: nowrap;
    line-height: 100%;
  }

  .fixed-header-button .btn {
    width: auto;
    max-width: none;
    white-space: nowrap;
  }
}
@media (min-width: 992px) and (max-width: 1279px) {
  .__header .row {
    gap: 10px !important;
    align-items: flex-end;
  }

  .__header .logo {
    width: 128px;
    min-width: 0;
  }

  .__header .logo img,
  .__header .logo svg {
    max-width: 100%;
    height: auto;
  }

  .fixed-header-menu {
    left: calc(50% - 113px);
  }

  .__header .row .col-lg-6 {
    width: auto;
    flex: 1 1 190px;
    min-width: 110px;
    max-width: 190px;
    margin-right: auto;
  }

  .__header .search-box {
    width: 100%;
    min-width: 0;
  }

  .__header .search-box form {
    min-width: 0;
  }

  .__header .search-box input {
    min-width: 0;
  }

  .__header .custom-block,
  .__header .options-box {
    gap: 12px;
  }

  .fixed-header-button {
    left: calc(50% - 70px);
  }
}

@media (min-width: 768px) {
  .__header .contact-box a.custom-attention__desktop-link {
    display: block;
    width: 100%;
    max-width: 170px;
    min-height: 24px;
    padding: 0;
    border: 0 !important;
    color: var(--custom-gray-color-700) !important;
    font-size: 10px !important;
    font-weight: 400;
    line-height: 130%;
    text-decoration: none !important;
    white-space: normal;
  }

  .__header .contact-box a.custom-attention__desktop-link:hover {
    color: var(--custom-accent-color-400) !important;
    text-decoration: none !important;
  }
}

@media (min-width: 768px) and (max-width: 1279px) {
  .banner-form__animated-media {
    display: none;
  }
}

@media (max-width: 991px) {
  .client-item:not(.menu-section .client-item) {
    height: 29.5vw !important;
  }

  .calculate-delivery .form-group {
    margin-bottom: 0px;
}

  .calculate-delivery .form-group.stock-select {
    margin-bottom: 15px;
}

  .fixed-header-button {
    z-index: 999;
  }

.category-project {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px 30px;
}

  .calculate-delivery__form {
    grid-template-columns: 1fr;
    align-items: stretch;
    gap: 10px;
  }

  .calculate-delivery__form > .form-group,
  .calculate-delivery__form-delivery {
    grid-column: 1;
    grid-row: auto;
  }

  .calculate-delivery__form-delivery {
    margin-top: 20px;
  }

  .client-item:not(.menu-section .client-item) .client-item__text {
    top: 24.5vw;
  }

  .under-slider-static-text {
    margin-top: 0;
    background: var(--custom-black-color);
  }
  .under-slider-static-text .container {
    padding: 0 !important;
  }

  .offer-slider .about-block__content {
    padding-left: 20px;
  }

  .offer-slider-inner .container {
    padding: 0;
  }

  .custom-big-slide .slider-constructor .slick-next {
    right: 20px;
  }

  .custom-big-slide .slider-constructor .slick-prev {
    right: 59px;
  }

  .under-slider-static-text .category-card:nth-child(5),
  .under-slider-static-text .category-card:nth-child(2) {
    border-right: none;
  }

  .article-hero {
    margin-bottom: 40px;
  }

  .article-hero__title {
    margin-bottom: 20px;
  }

  .article-section {
    display: block;
    margin-bottom: 40px;
  }

  .article-section__title {
    margin-bottom: 20px;
  }

  .article-section__title h2 {
    max-width: none;
  }

  .article-section__content {
    max-width: none;
  }

  .article-section__content .article-partner-limits {
    gap: 10px 20px;
  }

  .article-bottom {
    margin-left: 0;
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .custom-big-slide {
    margin-top: -15px;
  }

  .fixed-header-button {
    left: calc(50% + 90px);
  }

  .fixed-header-menu {
    display: none;
  }

  .widget {
    margin-inline: 0;
  }

  .buttons-grid {
    margin-top: 30px;
  }

  .product-card__left {
    margin-bottom: 0;
  }

  .share-btn {
    max-width: none;
  }

  .shopping-cart-product {
    margin-top: 0;
  }

  .product-card__content {
    height: auto;
    width: 65%;
  }

  .product-card__slideshow {
    width: 35%;
  }

  .product-card__left,
  .product-card__right,
  .product-card-container .product-card-content,
  .product-card-container .product-card-side {
    width: 100%;
  }

  .bottom-mobile-menu-button:nth-child(4) .bottom-mobile-menu-button__text,
  .bottom-mobile-menu-button:nth-child(2) .bottom-mobile-menu-button__text {
    margin-left: -6px;
  }

  .bottom-mobile-menu-button__counter {
    width: auto;
    height: auto;
    border-radius: 0;
    background-color: transparent;
    color: var(--custom-black-color);
    font-size: 10px !important;
    right: 0px;
    top: 0px;
  }

  .about-block__inner {
    display: flex;
    flex-direction: column;
  }

  .about-block__categories {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px;
    /*background: var(--custom-white-color);*/
    background: transparent;
    padding: 0 5px 5px 5px;
    margin: 0 10px 20px 10px;
    align-items: start;
    align-content: start;
  }

  .category-card {
    border: none;
  }

  .about-block__hero {
    min-height: 410px;
    overflow: visible;
  }

  .about-block__hero::before {
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
  }

  .custom-news-section {
    grid-template-columns: repeat(3, 1fr);
  }

  .about-block__photo {
    top: 70px;
  }

  .about-block__content {
    padding: 48px 20px 0;
  }

  .dummy {
    display: none;
  }

  .category-card {
    min-height: 92px;
  }

  .category-card--roof {
    grid-column: 1 / 2;
    grid-row: 2 / 3;
  }

  .category-card--facade {
    grid-column: 2 / 3;
    grid-row: 2 / 3;
  }

  .category-card--sheets {
    grid-column: 1 / 2;
    grid-row: 3 / 4;
  }

  .category-card--mixes {
    grid-column: 2 / 3;
    grid-row: 3 / 4;
  }

  .category-card--metal {
    grid-column: 1 / 2;
    grid-row: 4 / 5;
  }

  .category-card--fasteners {
    grid-column: 2 / 3;
    grid-row: 4 / 5;
  }

  .category-card--wood {
    grid-column: 1 / 2;
    grid-row: 5 / 6;
  }

  .category-card--territory {
    grid-column: 2 / 2;
    grid-row: 5 / 6;
  }

  .category-card--insulation {
    grid-column: 1 / 2;
    grid-row: 6 / 6;
  }

  .category-card--sten {
    grid-column: 2 / 3;
    grid-row: 6 / 6;
  }

  .category-card {
    margin-left: 0;
    background: transparent;
    border: none;
  }

  .category-card::before {
    inset: 0;
    width: auto;
    height: auto;
    clip-path: polygon(18px 0, 100% 0, 100% 100%, 0 100%, 0 18px);
  }

  .category-card::after {
    inset: 5px;
    clip-path: polygon(15px 0, 100% 0, 100% 100%, 0 100%, 0 15px);
  }
  .category-card__image {
    right: 5px;
    bottom: 5px;
  }

  .about-block__bottom {
    padding: 30px 20px;
  }

  .features__list {
    grid-template-columns: repeat(3, 1fr);
    gap: 50px 10px;
    padding: 0 10px;
  }

  .features__plus-row--mobile {
    display: flex;
    position: absolute;
    top: 48%;
  }

  .features__btn:last-child,
  .features__plus-row--desktop .features__plus:nth-child(5),
  .features__plus-row--desktop .features__plus:nth-child(6),
  .features__plus-row--desktop .features__plus:nth-child(7),
  .features__plus-row--desktop .features__plus:nth-child(8),
  .cold-column-right .features__plus-row--mobile {
    display: none;
  }

  .features__plus-grid {
    gap: 10px;
    position: relative;
  }

  .features__btn {
    padding-bottom: 0;
  }

  .features {
    padding-top: 0px;
    background: var(--custom-white-color);
    margin-top: 0;
  }

  .mobile-header__hamburger-button::after,
  .mobile-header__hamburger-button::before,
  .mobile-header__hamburger-line {
    background-color: var(--custom-black-color) !important;
    width: 28px;
  }

  .mobile-header__hamburger-button::after,
  .mobile-header__hamburger-line {
    display: none;
  }

  .mobile-header__hamburger-button::before {
    content: "";
    background: url(https://stroybaza-samara.ru/media/uploads/svg/catalog-header-mob.svg)
      no-repeat;
    background-color: transparent !important;
    background-size: 100%;
    background-position: center;
    height: 100%;
    width: 100%;
    border-radius: 0;
    border: none;
  }

  .mobile-header__hamburger-button {
    gap: 5px;
    padding: 0;
    align-items: center;
    height: 100%;
    width: 40px;
  }

  .mobile-header__item {
    align-items: center;
  }

  .mobile-header__item {
    gap: 7px;
    flex-shrink: 0;
  }

  .logo-link__image {
    max-width: 220px;
    width: 190px;
  }

  .mobile-header__search-button {
    display: flex;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    min-width: 0;
    padding: 9px;
  }

  .mobile-header__search-button svg {
    width: 100%;
    height: 100%;
  }

  .mobile-header__search-button svg path,
  .mobile-header__search-button svg line {
    stroke: var(--custom-black-color);
    stroke-width: 2px;
  }

  .bottom-mobile-menu-button:nth-child(3) {
    position: absolute;
    top: -1px;
    background: var(--custom-border-color);
    height: 50px;
    width: 120px;
    left: calc(50% - 60px);
    opacity: 1;
    clip-path: polygon(0 0, 100% 0, calc(100% - 29px) 100%, 29px 100%);
    z-index: 10;
  }

  .bottom-mobile-menu-button:nth-child(3)::before {
    content: "";
    position: absolute;
    top: 1px;
    background: var(--custom-white-color);
    height: calc(100% - 2px);
    width: calc(100% - 2px);
    left: 1px;
    clip-path: polygon(0 0, 100% 0, calc(100% - 29px) 100%, 29px 100%);
    z-index: 9;
  }

  .bottom-mobile-menu-button:nth-child(3) .bottom-mobile-menu-button__inner {
    z-index: 10;
  }

  .bottom-mobile-menu-button {
    width: 50px;
  }

  .bottom-mobile-menu__row {
    padding: 0 15px;
    gap: 10px;
    z-index: 4;
  }

  .bottom-mobile-menu-button__icon {
    width: 100%;
  }

  .bottom-mobile-menu-list_plates {
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
    flex-direction: column;
    align-items: center;
  }

  .bottom-mobile-menu,
  .bottom-mobile-menu__content {
    background: transparent;
  }

  .bottom-mobile-menu__content {
    position: relative;
    box-shadow: none;
  }

  .bottom-mobile-menu__content::before {
    content: "";
    width: 100%;
    height: 60px;
    bottom: 0;
    left: 0;
    clip-path: polygon(
      14px 0,
      calc(50% - 65px) 0,
      calc(50% - 34px) 54px,
      calc(50% + 34px) 54px,
      calc(50% + 65px) 0,
      calc(100% - 14px) 0,
      100% 14px,
      100% 100%,
      0 100%,
      0 14px
    );
    position: absolute;
    background: var(--custom-white-color);
    z-index: 3;
  }

  .bottom-mobile-menu__content::after {
    content: "";
    width: 100%;
    height: 61px;
    bottom: auto;
    top: -1px;
    left: 0;
    clip-path: polygon(
      14px 0,
      calc(50% - 65px) 0,
      calc(50% - 33px) 54px,
      calc(50% + 33px) 54px,
      calc(50% + 65px) 0,
      calc(100% - 14px) 0,
      100% 14px,
      100% 100%,
      0 100%,
      0 14px
    );
    position: absolute;
    background: var(--custom-border-color);
    z-index: 2;
  }

  header {
    background: transparent;
    overflow: visible;
  }

  .bottom-mobile-menu-button_active .bottom-mobile-menu-button__icon {
    width: 100%;
  }

  .bottom-mobile-menu-button__icon-wrapper {
    height: 33px;
    width: 40px;
  }

  .mobile-header {
    position: relative;
    background: var(--custom-white-color);
    clip-path: polygon(
      0% 0%,
      100% 0%,
      100% calc(100% - 15px),
      calc(100% - 15px) 100%,
      15px 100%,
      0 calc(100% - 15px)
    );
    z-index: 10;
  }

  header::before {
    content: "";
    width: 100%;
    height: 60px;
    bottom: -1px;
    top: auto;
    left: 0;
    clip-path: polygon(
      0% 0%,
      100% 0%,
      100% calc(100% - 14px),
      calc(100% - 14px) 100%,
      14px 100%,
      0 calc(100% - 14px)
    );
    position: absolute;
    background: var(--custom-border-color);
    z-index: 8;
  }

  .bottom-mobile-menu-list_plates {
    padding: 0px 10px;
    padding-bottom: 70px;
    background: transparent;
  }

  .bottom-mobile-menu-list_plates .bottom-mobile-menu-list__link {
    background: var(--custom-accent-color-400);
    color: var(--custom-white-color);
    border-radius: 0;
    height: 34px;
    font-size: 13px;
    padding: 0;
    display: flex;
    justify-content: center;
    border: none;
    clip-path: polygon(0 0, 100% 0, calc(100% - 20px) 100%, 20px 100%);
  }

  .bottom-mobile-menu-list_plates .bottom-mobile-menu-list__link:hover {
    background: var(--custom-gray-color-100);
    color: var(--custom-black-color);
    border: none;
  }

  .bottom-mobile-menu-list_plates .bottom-mobile-menu-list__link:first-child {
    width: 275px;
  }

  .inner-page .product-set-title {
    max-width: 280px;
  }

  .bottom-mobile-menu-list_plates .bottom-mobile-menu-list__link:nth-child(2) {
    width: 227px;
  }

  .bottom-mobile-menu-list_plates .bottom-mobile-menu-list__link:nth-child(3) {
    width: 175px;
  }

  .burger-box #my-button {
    background: url(https://stroybaza-samara.ru/media/uploads/svg/plus-mob.svg)
      no-repeat;
    width: 31px;
    height: 31px;
    background-size: 100%;
    background-position: center center;
  }

  .header--mob .container,
  .header--mob .row,
  .header--mob .col-1 {
    height: 100%;
  }

  .mobile-side-menu-content__header {
    border-bottom: var(--custom-border-width) solid var(--custom-border-color);
  }

  .search--box,
  .header--mob .col-8 {
    display: none;
  }

  .header--mob .col-3 {
    width: calc(100% - 102px);
  }

  .header--mob {
    border-bottom: var(--custom-border-width) solid var(--custom-border-color);
  }

  .burger-box svg {
    display: none;
  }

  .header--mob .col-1 {
    width: 102px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-left: var(--custom-border-width) solid var(--custom-border-color);
    padding-right: 15px;
  }

  .bottom-mobile-menu-button__text {
    font-size: 9px !important;
  }

  .bottom-mobile-menu-button__inner {
    gap: 0;
  }

  .bottom-mobile-menu-button:nth-child(3) .bottom-mobile-menu-button__text {
    display: none;
  }

  .bottom-mobile-menu-button:hover,
  .bottom-mobile-menu-button_active {
    opacity: 1;
  }

  .bottom-mobile-menu__content {
    height: 60px;
  }

  .bottom-mobile-menu-button_active .bottom-mobile-menu-button__text,
  .bottom-mobile-menu-button:hover .bottom-mobile-menu-button__text {
    color: var(--custom-accent-color-400);
  }

  .header--mob .row {
    justify-content: space-between;
    gap: 20px;
    flex-wrap: nowrap;
  }

  .burger-box #my-button {
    margin-left: 0;
  }

  .burger-box {
    width: min-content;
    height: 31px;
    margin-left: 0;
  }

  .points-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .network-hero,
  .network-hero__content {
    min-height: auto;
  }

  .network-hero__shade {
    background: linear-gradient(
      0deg,
      rgba(16, 16, 15, 0.94) 0%,
      rgba(16, 16, 15, 0.68) 65%,
      rgba(16, 16, 15, 0.3) 100%
    );
  }

  .network-hero__content {
    width: auto;
    justify-content: flex-end;
    padding: 30px 20px;
  }

  .network-principles {
    grid-template-columns: 1fr;
  }

  .partner-project-block {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .partner-project-form {
    grid-column: 1 / -1;
  }

  .partner-project-form {
    margin-top: 0;
  }
}

/* Normalize mobile header control boxes and remove icon padding. */
@media (max-width: 992px) {
  .mobile-header__item {
    align-items: center !important;
    gap: 4px !important;
  }

  .mobile-header__item > .fixed-header-button {
    display: flex !important;
    justify-content: center;
    flex: 0 0 34px !important;
    width: 34px !important;
    min-width: 34px !important;
    height: 40px !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
  }

  .mobile-header__item > .fixed-header-button #openCityPopup {
    display: inline-flex !important;
    flex: 0 0 34px !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0 !important;
    width: 34px !important;
    min-width: 34px !important;
    height: 40px !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
  }

  .mobile-header__item > .fixed-header-button #openCityPopup::before {
    flex: 0 0 24px !important;
    width: 24px !important;
    height: 18px !important;
    margin: 0 !important;
    padding: 0 !important;
    background-size: 24px 18px !important;
  }

  .mobile-header__item > .fixed-header-button #openCityPopup img {
    display: none !important;
  }

  .mobile-header__favorite-button {
    display: flex !important;
    flex: 0 0 34px !important;
    align-items: center !important;
    justify-content: center !important;
    width: 34px !important;
    min-width: 34px !important;
    height: 40px !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
  }

  .mobile-header__favorite-button > svg.header-favorite-icon {
    flex: 0 0 30px !important;
    width: 30px !important;
    height: 16px !important;
    margin: 0 !important;
  }

  .mobile-header__favorite-button .cart-number,
  .mobile-header__favorite-button .products-total-count {
    position: absolute !important;
    top: 0 !important;
    right: -2px !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1 !important;
  }

  .mobile-header__search-button,
  .mobile-header__hamburger-button {
    display: inline-flex !important;
    flex: 0 0 34px !important;
    align-items: center !important;
    justify-content: center !important;
    width: 34px !important;
    min-width: 34px !important;
    height: 40px !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
  }

  .mobile-header__search-button::before {
    flex: 0 0 24px !important;
    width: 24px !important;
    height: 18px !important;
    margin: 0 !important;
    padding: 0 !important;
    background-size: 24px 18px !important;
  }

  .mobile-header__hamburger-button::before {
    flex: 0 0 30px !important;
    width: 30px !important;
    height: 16px !important;
    margin: 0 !important;
    padding: 0 !important;
    background-size: 30px 16px !important;
  }
}

@media (max-width: 992px) {
  .mobile-header__hamburger-button::before {
    width: 30px !important;
    height: 16px !important;
  }
}

@media (max-width: 992px) {
  .mobile-header__item > .fixed-header-button #openCityPopup::before {
    width: 24px !important;
    height: 18px !important;
  }
}

/* Use the supplied 16px header icon artwork instead of the built-in SVGs. */
@media (max-width: 992px) {
  .mobile-header__item > .fixed-header-button #openCityPopup img {
    width: 16px !important;
    height: 16px !important;
  }

  .mobile-header__favorite-button > svg.header-favorite-icon {
    flex: 0 0 30px !important;
    width: 30px !important;
    height: 16px !important;
    background: url("https://stroybaza-samara.ru/media/uploads/svg/fav-icon.svg") center / contain no-repeat !important;
  }

  .mobile-header__favorite-button > svg.header-favorite-icon path {
    display: none !important;
  }

  .mobile-header__search-button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .mobile-header__search-button > .mobile-header__search-icon {
    display: none !important;
  }

  .mobile-header__search-button::before {
    content: "" !important;
    display: block !important;
    flex: 0 0 24px !important;
    width: 24px !important;
    height: 18px !important;
    background: url("https://stroybaza-samara.ru/media/uploads/svg/search-icon.svg") center / 24px 18px no-repeat !important;
  }
}

@media (max-width: 767px) {
  .custom-catalog-button .btn {
    margin-right: 0;
  }

.category-project {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 60px;
    margin-bottom: 60px;
}

.category-project li {
    grid-template-columns: 30px 1fr;
    gap: 15px;
}

.category-project li {
    gap: 15px;
}

  .projects-content {
    grid-template-columns: repeat(2, 1fr);
  }

  .partners-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
  }

  .article-actions .btn,
  .article-image-buttons .btn {
    width: auto;
    padding: 0 20px;
  }

  .article-section h2 br,
  .empty-title {
    display: none;
  }

  .article-section__content .article-partner-limits {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .article-partner-limits li {
    padding-bottom: 15px;
    display: grid;
    grid-template-columns: 1fr 0.6fr;
    border-bottom: var(--custom-border-width) solid var(--custom-border-color);
    gap: 20px;
    padding-left: 0 !important;
  }

  .article-partner-limits li::before {
    display: none !important;
  }

  .fixed-header-button .btn {
    width: 40px;
    height: 40px;
    min-width: 40px;
    padding: 0 !important;
    border: 0 !important;
    background: transparent;
    font-size: 0 !important;
    line-height: 0 !important;
    gap: 0;
  }

  .fixed-header-button .btn::before {
    content: "";
    display: block;
    width: 32px;
    height: 20px;
    background: url(https://stroybaza-samara.ru/media/uploads/svg/map-point.svg)
      50% 50% / contain no-repeat;
  }

  .fixed-header-button .btn img {
    display: none;
  }

  .mobile-side-menu-content__row .fixed-header-button--menu {
    position: static;
    z-index: auto;
    pointer-events: auto;
    flex: 0 0 auto;
    margin-left: auto;
    margin-right: 0px;
  }

  /*.article-images--two {
      grid-template-columns: 1fr;
    }*/

  .partner-img-block .partner-logo {
    max-height: 100%;
    max-width: 100%;
  }

  .calculate-delivery {
    gap: 0;
    flex-direction: column;
  }

  .article-bottom__info {
    gap: 10px;
  }

  .article-bottom__social {
    gap: 10px;
  }

  .about-block__socials {
    flex-wrap: wrap;
  }

  .custom-big-slide .slider-constructor .slick-next {
    right: 10px;
  }

  .custom-big-slide .slider-constructor .slick-prev {
    right: 49px;
  }

  .about-partner {
    grid-template-columns: repeat(1, 1fr);
    margin-bottom: 60px;
  }

  .about-partner .about-item {
    padding: 20px;
  }

  .partner-img-block {
    margin-bottom: 40px;
    height: 160px;
    padding: 20px;
  }

  .char li {
    border-bottom: var(--custom-border-width) dashed var(--custom-border-color);
  }

  .char-text:last-child {
    max-width: 50% !important;
  }

  .question-form form {
    grid-template-columns: repeat(1, 1fr);
  }

  .section-dark.feedback-form {
    padding: 60px 0 30px 0;
  }

  .about-block__hero::before {
    left: -430px;
    width: 1390px;
    height: 100%;
    background-size: cover;
  }

  .product-card__content h4,
  .g-title,
  .content-title,
  section.feedback-form .h2,
  .question-form .h2 {
    font-size: 18px !important;
  }

  .about-block__categories {
    grid-template-columns: 1fr;
    /*padding: 5px;*/
    padding: 10px 0;
    margin: 0 10px 20px 10px;
  }

  .about-block__photo {
    top: auto;
    width: auto;
    max-width: none !important;
    height: 300px;
    bottom: 0;
  }

  .partner-search-wrapper .form-control {
    max-width: 100%;
  }

  .product_set_slider {
    padding: 60px 0 0 0;
  }

  .category-card {
    grid-column: auto;
    grid-row: auto;
    min-height: auto;
    aspect-ratio: 2.8;
    position: relative;
    width: 100%;
  }

  .about-block__bottom {
    padding: 30px 10px;
    display: flex;
    flex-direction: column-reverse;
    gap: 20px;
  }

  .cookie-modal {
    bottom: 60px;
  }

  .custom-attention--mobile-fixed {
    position: fixed;
    left: 0;
    bottom: 60px;
    z-index: 1000000;
    display: flex;
    width: 50%;
    min-height: 166px;
    margin: 0;
    padding: 15px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0;
    background-color: #fff;
    border: var(--custom-border-width) solid var(--custom-border-color);
    border-radius: 0;
    box-shadow: none;
  }

  .custom-attention--mobile-fixed .custom-attention__close {
    position: absolute;
    top: 8px;
    right: 4px;
    z-index: 2;
    display: block;
    width: 28px;
    height: 28px;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--custom-gray-color-700);
    cursor: pointer;
  }

  .custom-attention--mobile-fixed .custom-attention__close::before,
  .custom-attention--mobile-fixed .custom-attention__close::after {
    content: "";
    position: absolute;
    top: 13px;
    left: 7px;
    width: 14px;
    height: 1px;
    background: currentColor;
  }

  .custom-attention--mobile-fixed .custom-attention__close::before {
    transform: rotate(45deg);
  }

  .custom-attention--mobile-fixed .custom-attention__close::after {
    transform: rotate(-45deg);
  }

  .custom-attention--mobile-fixed .custom-attention__close:focus-visible {
    outline: 1px solid var(--custom-accent-color-400);
    outline-offset: 1px;
  }

  .custom-attention--mobile-fixed.custom-attention--dismissed {
    display: none;
  }

  .custom-attention__mobile {
    display: flex;
    width: 100%;
    min-height: 134px;
    flex-direction: column;
    align-items: flex-start;
  }

  .custom-attention__mobile h3 {
    margin: 0 0 8px 0;
    font-size: 14px;
    line-height: 110%;
  }

  .custom-attention__mobile p {
    margin: 0 0 15px 0;
    font-size: 12px;
    line-height: 130%;
    color: var(--custom-black-color);
  }

  .custom-attention__button {
    width: 100% !important;
    margin-top: auto;
    padding: 0 12px;
  }
  .social-link {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
  }

  .modal .h2 {
    text-align: left;
  }

  .about-block__socials {
    gap: 0;
    width: 100%;
    justify-content: space-between;
  }

  .about-block__slogan {
    max-width: 100%;
  }

  .custom-news-section {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-block .container,
  .about-block {
    padding: 0;
  }

.product-card-v2__title {
  min-height: 69px;
  -webkit-line-clamp: 4;
}

  .category-card__image {
    width: auto;
    height: 84%;
  }

  .custom-news-button .features__plus-row,
  .plus-block .features__plus-row {
    width: calc(100% + 40px) !important;
    transform: translateX(-20px);
    position: relative;
  }

  .custom-news-button .features__plus-row--mobile {
    top: auto;
  }

  .custom-news-button .features__plus-row--desktop {
    display: none;
  }

  .points-grid,
  .partners {
    grid-template-columns: repeat(1, 1fr);
  }

  .partner-item__link {
    width: 50%;
  }

  .seo-grid-item {
    padding: 30px 0px;
  }

  .seo-grid-item span {
    font-size: 12px !important;
  }

  h2,
  .h2,
  h1,
  .h1,
  .mb-25,
  section.feedback-form .h2,
  .question-form .h2 {
    font-size: 18px;
    margin-bottom: 25px;
  }

  .buttons-columns {
    flex-direction: row;
  }

  .custom-catalog-button {
    margin-top: 0px !important;
    padding-top: 10px !important;
    padding-bottom: 0px;
  }

  .question-form form .btn {
    width: 175px;
  }

  .container {
    padding: 0 10px;
  }

  .footer-first-column,
  .footer-bottom,
  .footer-bottom__left {
    align-items: flex-start;
  }

  .static-project .char {
    width: 100%;
  }

  .buttons-columns .btn {
    width: 50%;
  }

  .points-grid {
    grid-template-columns: repeat(1, 1fr);
  }

  .footer-right {
    order: 3;
    margin-bottom: 0;
  }

  .footer-content__menu {
    padding-top: 30px;
  }

  .mb-25 {
    margin-bottom: 25px !important;
  }

  /* Keep carousel headings clear of the two navigation buttons. */
  .mb-25:has(+ .slider-constructor),
  .product-set-title:has(+ .product-slider) {
    display: flex;
    align-items: center;
    box-sizing: border-box;
    width: calc(100% - 100px);
    max-width: 240px;
    min-height: 2.2em;
    margin-bottom: 25px !important;
    line-height: 1.1;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  #sync1.owl-theme .owl-dots {
    display: none !important;
  }

  .mobile-side-menu-footer__link .icon-svg.hover {
    display: none;
  }

  #sync2 {
    display: flex;
    width: calc(100% - 40px);
  }

  .slider-constructor .slick-prev,
  .slider-constructor .slick-next {
    top: -60px;
  }

  .product-item_new .input-number,
  .product-item_wide .input-number,
  .product_max-height .input-number,
  .product_max-width .input-number,
  .product-card-v2 .input-number {
    display: flex;
  }

  .partner-wrapper {
    gap: 10px;
  }

  .product-card__slideshow,
  .product-card__content {
    width: 100%;
  }

  .slider-constructor .slick-prev,
  .slider-constructor .slick-next {
    display: flex !important;
  }

  .custom-cold-block .cold-column-left {
    padding-top: 0;
  }

  .slider-constructor .slick-dots,
  .category-slider-set .slider-constructor:not([data-no-arrows]) .slick-dots,
  .category-slider-set .slider-constructor .slick-dots,
  .product_set_slider .slider-constructor:not([data-no-arrows]) .slick-dots,
  .product_set_slider .slider-constructor .slick-dots,
  .slider-constructor:not([data-no-arrows]) .slick-dots,
  .slider-constructor .slick-dots {
    display: none !important;
  }

  .custom-catalog-button .btn,
  .question-form form .btn {
    width: calc(50% - 5px);
    margin-left: 0;
  }

  .custom-catalog-button .btn {
    margin-left: auto;
  }

  .footer-first-column .logo {
    width: 100%;
  }

  .footer-first-column .logo img {
    display: block;
    width: 75%;
    max-width: none;
    margin: auto;
  }

  .news-slider-set {
    margin-top: -65px;
  }

  .custom-news-item {
    padding-top: 0px;
  }

  .plus-block {
    margin-top: 90px;
  }

  .catalog-sorting ul li {
    margin-right: 0px;
  }

  .icon-sort-price {
    width: 15px;
    height: 15px;
  }

  .catalog-sorting ul {
    display: flex !important;
    gap: 10px;
  }

  .custom-banners-block {
    grid-template-columns: 1fr;
  }

  .about-section {
    display: flex;
    flex-direction: column;
    gap: 30px;
  }

  .about-info .btn {
    width: calc(50% - 5px);
  }

  .offer-main-img img {
    height: auto !important;
    width: 100% !important;
  }

  .banner-form {
    height: auto;
    background: url(https://stroybaza-samara.ru/media/uploads/svg/banner-pattern-mob.svg)
      no-repeat !important;
    background-size: 210px !important;
    background-position: -70px bottom !important;
    padding-bottom: 250px;
  }

.cookie-modal__content {
  box-shadow: none;
}

  .layout-grid {
    margin-bottom: 10px;
    margin-top: 10px;
    grid-template-columns: 1fr 1fr;
  }

  .review-textarea .btn,
  .modal-content .button-theme_primary {
    width: 50%;
  }

  .project-card-button {
    width: auto;
  }

  .fancybox-slide--html .fancybox-close-small {
    padding: 0;
    background: none;
  }

  .menu-list__item_bottom {
    bottom: 128px;
  }

  .fixed-header-menu {
    display: none;
  }

  .modal {
    padding: 10px;
  }

  .menu-list__item {
    padding: 10px;
  }

  .mobile-side-menu-content__header {
    padding: 0 10px;
  }

  .mobile-side-menu-footer {
    padding: 20px 10px;
    background: var(--custom-white-color);
  }

  .document-item__btn-download {
    padding: 0 15px;
  }

  .related-products-main {
    margin-bottom: 40px;
  }

  .document-item .document-item__btn {
    margin-top: 0;
    display: block !important;
  }

  .document-item__size {
    display: none;
  }

  .social-media {
    flex-direction: column;
    gap: 20px;
  }

  .banner-form img {
    display: block;
    right: 0;
    left: auto;
    bottom: 0;
    height: 280px;
  }

  .banners-column-right {
    grid-template-columns: 1fr 1fr;
    gap: 15px 10px;
  }

  .banner-form .btn {
    width: 50%;
  }

  .static-banners {
    margin-top: 60px;
  }

  .bottom-mobile-menu-button:nth-child(2) {
    margin-right: auto;
  }

  .custom-cold-block {
    grid-template-columns: 1fr;
    margin-bottom: 30px;
    gap: 30px;
  }

  .cold-column-right .features__plus-row--mobile,
  .cold-column-right .features__plus-row--desktop {
    display: flex;
    width: calc(100% + 40px) !important;
    transform: translateX(-20px);
  }

  .cold-column-right .features__plus-row--mobile {
    top: 66%;
  }

  .custom-seo-block {
    grid-template-columns: 1fr;
  }

  .amk-projects__about .button-theme_primary {
    width: 50%;
  }

  .partners-grid {
    gap: 10px 0;
    margin: 10px 0;
    grid-template-columns: 1fr 1fr;
  }

  .cold-column-right .features__plus-row--desktop .features__plus:last-child,
  .cold-column-right .features__plus-row--desktop .features__plus:nth-child(2),
  .cold-column-right .features__plus-row:nth-child(3) {
    display: none;
  }

  .static-cold-block {
    padding: 60px 0 0 0;
  }

  .cold-column-right .features__plus-row:nth-child(2) {
    top: 31%;
  }

  .cold-column-right {
    position: relative;
  }

  .news-item-info p {
    height: 33.8px;
  }

  .black-block {
    padding: 30px 20px;
  }

  .black-block .btn {
    margin-top: 30px;
    width: calc(50% - 8px);
  }

  .contacts-block__info,
  .contacts-block__map {
    width: 100%;
  }

  .inner-page h1 {
    font-size: 18px !important;
    margin-bottom: 20px;
  }

  .contacts-block__title-red.address-data {
    font-size: 18px !important;
  }

  .contacts-block__info {
    padding: 20px;
  }

  .frontpage main {
    padding-top: 42px !important;
  }

  .dropdown-select {
    border: var(--custom-border-width) solid var(--custom-border-color);
    border-radius: 0px;
    height: 34px;
    padding: 0 40px 0 10px;
    font-size: 13px;
    color: var(--custom-black-color);
  }

  .active .dropdown-select {
    background: var(--custom-white-color);
    border-radius: 0;
  }

  .dropdown-select-ul {
    background: var(--custom-white-color);
    border: var(--custom-border-width) solid var(--custom-border-color);
    border-radius: 0;
  }

  .dropdown-select-ul li {
    padding: 0 10px;
    font-size: 14px;
    margin: 0 !important;
    height: 34px;
  }

  .dropdown-select-ul li.selected {
    color: var(--custom-white-color);
  }

  .mobile-menu-head__title {
    margin-bottom: 0;
    text-transform: uppercase;
    font-size: 18px !important;
    font-weight: 600;
  }

  .catalog-filter .catalog-filter-body {
    background: var(--custom-white-color);
    padding: 20px 0px;
  }

  .catalog-filter {
    background: var(--custom-white-color);
    padding: 55px 10px 15px 10px;
  }

  .filter-btn {
    right: 0px;
    width: 50px;
    height: 34px;
    background: var(--custom-white-color)
      url(https://stroybaza-samara.ru/media/uploads/svg/filter-btn.svg) 50% 50%
      no-repeat;
    background-size: 16px 14px;
    border-radius: 0px;
    border: 1px solid var(--custom-accent-color-400);
    box-shadow: none;
  }

  .catalog-head {
    gap: 10px;
  }

  .catalog-head.catalog-head--mobile-fixed {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    z-index: 20;
    background: var(--custom-white-color);
    padding: 10px;
    display: flex;
    flex-direction: row;
  }

  .catalog-sorting {
    display: none;
  }

  .sort-select,
  .filter-btn {
    min-width: auto;
    width: calc(50% - 4px);
  }

  .dropdown-select {
    position: relative;
    display: flex;
  }

  .dropdown-select::after {
    content: "Сортировка";
    position: relative;
    color: var(--custom-gray-color-700);
    font-size: 13px;
    font-family: "Montserrat";
  }

  .calculate-delivery__map {
    margin: 0;
  }

  .filter-btn {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0 44px 0 10px;
    color: var(--custom-black-color);
    background-position: right 12px center;
    background-size: 18px 18px;
  }

  .sort-select {
    order: 1;
  }

  .catalog-head--mobile-fixed .filter-btn {
    border: 1px solid var(--custom-accent-color-400);
    background-color: var(--custom-white-color);
    position: relative;
    order: 2;
  }

  .filter-btn::before {
    content: "Фильтры";
    position: static;
    color: var(--custom-black-color);
    font-size: 13px;
  }

  .dropdown-select span {
    display: none;
  }

  .sort-select .dropdown-select-ul[data-role="products-header-sort-mobile"] > li[data-value=""] {
    display: none;
  }

  .sort-select .dropdown-select-ul[data-role="products-header-sort-mobile"] > li {
    height: 34px;
    min-height: 34px;
    line-height: 16px;
  }

  .sort-select .dropdown-select {
    align-items: center;
    justify-content: flex-start;
    padding: 0 44px 0 10px;
    color: var(--custom-black-color);
  }

  .sort-select .dropdown-select::after {
    color: var(--custom-black-color);
  }

  .sort-select .dropdown-select > .icon {
    display: none;
  }

  .sort-select .dropdown-select::before {
    content: "";
    position: absolute;
    top: 50%;
    right: 12px;
    display: block;
    width: 18px;
    height: 18px;
    border: 0;
    background: url("https://stroybaza-samara.ru/media/uploads/svg/catalog-sort-arrow.svg") center / 18px 18px no-repeat;
    opacity: 1;
    transform: translateY(-50%);
    transition: none;
    pointer-events: none;
  }

  .sort-select .dropdown-container.active .dropdown-select::before {
    background-image: url("https://stroybaza-samara.ru/media/uploads/svg/catalog-sort-close.svg");
  }

  .sort-select .sb-sort-applied .dropdown-select > span {
    display: block;
    min-width: 0;
    overflow: hidden;
    color: var(--custom-black-color);
    font-size: 13px;
    line-height: 18px;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  .sort-select .sb-sort-applied .dropdown-select::after,
  .sort-select .sb-sort-applied .dropdown-select::before {
    display: none;
    content: none;
  }

  .sort-select .sb-sort-applied .sb-sort-reset {
    position: absolute;
    z-index: 201;
    top: 0;
    right: 0;
    display: block;
    width: 35px;
    height: 34px;
    min-height: 0;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent url("https://stroybaza-samara.ru/media/uploads/svg/catalog-sort-close.svg") center / 18px 18px no-repeat;
    cursor: pointer;
  }

  .mobile-header__row .logo-link img {
    height: 32px !important;
  }

  .client-item:not(.menu-section .client-item) {
    height: 256px !important;
    background-size: auto 201px;
    background-position: top center;
  }

  .client-item:not(.menu-section .client-item) .client-item__text {
    top: 255px;
  }

  .client-item:not(.menu-section .client-item) {
    height: 310px !important;
  }

  .article-image-buttons {
    position: relative;
    left: 0;
    bottom: 0;
  }

  .article-images__item--with-buttons {
    background: transparent;
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .city-select-wrapper {
    height: 34px;
    width: 100%;
  }

  /* Mobile mmenu inner scroll */
  .mm-menu .mm-panel--opened {
    overflow: hidden !important;
  }

  .mm-menu .mm-panel--opened > .mm-listview {
    height: 360px;
    max-height: 360px;
    min-height: 0;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding-bottom: calc(40px + env(safe-area-inset-bottom));
  }

  .mm-menu .mm-panel--opened > .mm-listview > .menu-list__item_bottom,
  .mm-menu .mm-panel--opened > .mm-listview > .mobile-side-menu-footer {
    position: relative !important;
    inset: auto !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    z-index: auto !important;
  }

  .menu-list__inner-list {
    max-height: none !important;
    height: 100% !important;
  }

  .mm-menu .mm-panel--opened > .mm-listview > .menu-list__item_bottom {
    display: flex;
    align-items: stretch;
    width: 100%;
  }

  .mm-menu
    .mm-panel--opened
    > .mm-listview
    > .menu-list__item_bottom
    > .mm-listitem__text {
    position: relative;
    z-index: 1;
    min-width: 0;
    padding-right: 54px;
  }

  .mm-menu
    .mm-panel--opened
    > .mm-listview
    > .menu-list__item_bottom
    > .mm-listitem__btn.mm-btn--next {
    position: absolute !important;
    top: 0 !important;
    right: 9px !important;
    bottom: 0 !important;
    left: auto !important;
    z-index: 2;
    display: block;
    width: 44px !important;
    height: 100% !important;
    min-height: 0 !important;
    border: 0 !important;
  }

  .mm-menu .mm-panel--opened > .mm-listview > .mobile-side-menu-footer {
    border-top: none;
  }

  .network-hero h2 {
    font-size: 38px;
  }

  .network-hero__kicker {
    margin-bottom: 5px;
    color: var(--custom-white-color);
  }

  .network-legend {
    gap: 10px;
    margin-top: 20px;
    margin-bottom: 40px;
  }

  .network-city__meta {
    display: none;
  }

  .network-point--active:hover {
    padding-left: 8px;
  }

  .network-point .network-status {
    align-self: flex-start;
    margin-top: 4px;
  }

  .network-cta {
    align-items: stretch;
    flex-direction: column;
    padding: 20px;
    margin-top: 30px;
    gap: 20px;
  }

  .network-cta__text {
    max-width: 100%;
  }
  .social-link img {
    width: 30px;
    height: 30px;
  }
  .social-links-extra {
    gap: 12px !important;
  }

  .network-lead {
    font-size: 13px !important;
    font-weight: 400 !important;
    text-transform: none;
  }

  .network-quote {
    margin-top: 30px;
  }

  .network-condition,
  .network-quote {
    grid-template-columns: 30px minmax(0, 1fr);
  }

  .network-city__head {
    grid-template-columns: 1fr 25px;
  }

  .network-point--vacant {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 12px 16px;
    padding: 15px 20px 15px 0;
  }

  .network-point--vacant .network-point__main {
    grid-column: 1;
    grid-row: 1;
  }

  .network-point--vacant .network-point__side {
    display: contents;
  }

  .network-point--vacant .network-point__button.btn {
    grid-column: 1;
    grid-row: 2;
    justify-self: start;
    min-width: 145px;
    padding: 0 14px;
  }

  .network-point--vacant .network-status {
    grid-column: 2;
    grid-row: 1;
    align-self: start;
  }

  .text-page .network-hero {
    min-height: 330px;
  }

  .affiliate-network .form-group {
    max-width: 100%;
  }

  .article-section__content .form-group-inline .button-theme_primary {
    width: 50%;
  }

  .mobile-side-menu-footer .phone_alloka {
    font-size: 16px !important;
    font-weight: 600 !important;
    text-transform: uppercase;
  }

  .product-card-v2__content {
    padding: 15px;
    gap: 10px;
  }

  .banner-form__animated-media {
    right: 0;
    bottom: 0;
    left: auto;
    display: block;
    height: 280px;
  }

  .partner-project-block {
    grid-template-columns: 1fr;
  }

  .partner-project-card__content,
  .partner-project-form {
    padding: 20px;
  }

  .partner-project-card__content .btn,
  .partner-project-form .btn {
    width: 50% !important;
  }

  .partner-project-card__content h3,
  .partner-project-form h3 {
    font-size: 18px;
  }

  .catalog-menu-item__name {
    max-width: 130px;
  }

  .about-partner .about-item h3 {
    margin-bottom: 10px !important;
  }

  .client-item:not(.menu-section .client-item) .client-item__text {
    height: auto;
  }

  .fixed-header-button {
    left: auto;
    right: 120px;
    top: 10px;
  }

  .city-popup__close {
    font-size: 48px !important;
    margin-left: auto;
    top: 15px;
    right: 15px;
  }

  .city-popup__list a {
    font-size: 14px;
  }
}

@media (max-width: 575px) {
  .catalog-menu.catalog-categories-block,
  .category-root-page .catalog-menu {
    grid-template-columns: repeat(1, 1fr);
  }

  .catalog-menu.catalog-categories-block {
    margin-bottom: 90px;
  }

  .custom-news-section {
    grid-template-columns: repeat(1, 1fr);
  }

  p,
  .text-page ul li,
  .o-product-tab ul li,
  .features__label,
  button,
  .btn,
  .button-theme_primary,
  .st-button__text,
  .st-button__title,
  .product-card-v2__title,
  .footer-contact,
  .footer-content__column a,
  .footer-phone a,
  .bottom-mobile-menu-list_plates .bottom-mobile-menu-list__link,
  .catalog-menu-item__name,
  .s-item-info span:first-child,
  .filter-btn::before,
  .dropdown-select::after,
  .shopping-cart-btn--lg.custom-icon,
  .product-card .st-button_add-to-favorite::after,
  .share-btn,
  .product-card__review-link a,
  .footer-subscribe input,
  section.feedback-form .form-control,
  .form-control,
  span,
  .form-control::placeholder,
  .new-radio__label,
  .simple-order-form__column .d-flex.flex-row label,
  h4,
  .h4,
  .footer-content__title,
  .form-delivery-distance span,
  .form-delivery-distance,
  .form-delivery-address div,
  .point-on-map-label,
  .form-group label.label-lg,
  .catalog__links-block a,
  .partner-item__link,
  .partner-item__line,
  .partner-item__line p,
  .partner-item a,
  .project-card-button::after,
  .project-card-title,
  .city-select-box__search-input,
  .projects-search__input,
  input::placeholder {
    font-size: 14px !important;
  }

  .catalog-menu-item__name,
  .client-item__text,
  .category-card__title {
    font-weight: 500 !important;
  }

  .partner-item__name {
    font-size: 16px !important;
  }

  .fixed-header-button {
    right: 100px;
  }
}

@media (max-width: 767px) {
  .city-popup__list {
    grid-template-columns: 1fr;
  }

  .city-popup {
    align-items: flex-start;
    justify-content: center;
    padding: 0;
  }

  .city-popup__content {
    width: 100%;
    max-height: 100%;
    max-width: none;
    padding: 10px;
    height: 100%;
    clip-path: none;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 70px;
  }

  .city-popup__list li {
    padding-bottom: 8px;
    border-bottom: var(--custom-border-width) solid var(--custom-border-color);
  }
}

@media (max-width: 440px) {
  .client-item:not(.menu-section .client-item) {
    height: 256px !important;
    background-size: auto 160px;
    background-position: top center;
  }

  .client-item:not(.menu-section .client-item) .client-item__text {
    top: 215px;
  }

  .client-item:not(.menu-section .client-item) {
    height: 260px !important;
  }

  .about-block__photo {
    height: 300px;
    left: 50%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .text-page .network-status--active {
    animation: none;
  }

  .text-page .network-point--active,
  .text-page .network-city__toggle::after {
    transition: none;
  }
}

/* Панель категорий в выпадающей выдаче поиска */
#search-result .search-category-links-panel {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  display: none;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  width: 100%;
  margin-top: 0;
  padding: 12px 15px;
  background: var(--custom-white-color);
  border: var(--custom-border-width) solid var(--custom-border-color);
  box-shadow: 0 -5px 18px rgba(0, 0, 0, 0.08);
}

#search-result .search-category-links-panel:has(a) {
  display: flex;
}

#search-result .search-category-links-panel.search-category-links-panel--visible {
  display: flex;
}

#search-result.search-category-results-active {
  display: flex !important;
  flex-direction: column;
  height: 400px;
  max-height: 70vh;
  overflow: hidden !important;
}

#search-result .search-category-results-list {
  display: block;
  flex: 1 1 0;
  width: 100%;
  height: 0;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch;
}

.ps-40 {
    padding-left: 0px !important;
}

#search-result.search-category-results-active > a.s-item-link,
#search-result .search-category-results-list > a.s-item-link,
#search-result .search-category-results-list > a.product-card-v2__link {
  flex: 0 0 auto;
}

#search-result .search-category-links-panel__static,
#search-result .search-category-links-panel__dynamic {
  display: contents;
}

#search-result .search-category-links-panel a,
#search-result .search-category-links-panel__link {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 8px 14px;
  border: 1px solid var(--custom-accent-color-400);
  background: var(--custom-white-color);
  color: var(--custom-black-color) !important;
  text-align: center;
  text-decoration: none !important;
  transition: background-color 0.2s ease, color 0.2s ease;
  width: auto;
}

#search-result .search-category-links-panel a:hover,
#search-result .search-category-links-panel__link:hover {
  background: var(--custom-accent-color-400);
  color: var(--custom-white-color) !important;
}

@media (max-width: 767px) {
  #search-result .search-category-links-panel {
    gap: 6px;
    margin-top: 15px;
    padding: 10px;
  }

  #search-result .search-category-links-panel a,
  #search-result .search-category-links-panel__link {
    flex: 1 1 auto;
    min-height: 32px;
    padding: 7px 10px;
    font-size: 12px !important;
  }
}

/* BEGIN frontpage first-screen height fix */
.frontpage .custom-big-slide {
  min-height: 445px;
  background: var(--custom-gray-color-400);
}

.frontpage .custom-big-slide .slider-constructor {
  min-height: 445px;
}

.frontpage .custom-big-slide .slider-constructor:not(.slick-initialized) {
  background: var(--custom-gray-color-400);
}

.frontpage .custom-big-slide .slider-constructor:not(.slick-initialized) .offer-slider-inner {
  background: var(--custom-gray-color-400);
}

.frontpage .custom-big-slide .offer-slider {
  min-height: 445px;
}

.frontpage .custom-big-slide .offer-slider .about-block__hero {
  min-height: 425px;
}

@media (max-width: 1279px) {
  .frontpage .custom-big-slide,
  .frontpage .custom-big-slide .slider-constructor,
  .frontpage .custom-big-slide .offer-slider {
    min-height: 445px;
  }
}

@media (max-width: 991px) {
  .frontpage .custom-big-slide,
  .frontpage .custom-big-slide .slider-constructor,
  .frontpage .custom-big-slide .offer-slider {
    min-height: 410px;
  }

  .frontpage .custom-big-slide .offer-slider .about-block__hero {
    min-height: 410px;
  }
}

@media (max-width: 767px) {
  .frontpage .custom-big-slide,
  .frontpage .custom-big-slide .slider-constructor,
  .frontpage .custom-big-slide .offer-slider {
    min-height: 500px;
  }

  .frontpage .custom-big-slide .slider-constructor .slick-list {
    height: 500px !important;
    min-height: 500px;
  }

  .frontpage .custom-big-slide .offer-slider .about-block__hero {
    min-height: 500px;
    overflow: hidden;
  }
}
/* END frontpage first-screen height fix */

.pagination > span,
.pagination > .prev,
.pagination > .next {
  border-radius: 0 !important;
}

.sb-catalog-more {
  display: contents;
}

.sb-catalog-more__button {
  display: none;
}

.pagination > .sb-catalog-compact-dot {
  display: none;
}

.sb-catalog-more__status {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
}

@media (max-width: 767px) {
  .sb-catalog-more {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    overflow-anchor: none;
  }

  .sb-catalog-more__button {
    grid-column: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-width: 0;
    height: 34px;
    min-height: 34px;
    box-sizing: border-box;
    padding: 0 10px;
    border: 1px solid var(--custom-accent-color-400);
    border-radius: 0;
    background: var(--custom-white-color);
    color: var(--custom-black-color);
    font: inherit;
    font-size: 13px;
    white-space: nowrap;
    cursor: pointer;
  }

  .sb-catalog-more__button[hidden] {
    display: none;
  }

  .sb-catalog-more__button:hover {
    background: var(--custom-accent-color-400);
    color: var(--custom-white-color);
  }

  .sb-catalog-more__button:disabled {
    opacity: .65;
    cursor: wait;
  }

  .sb-catalog-more__button:focus-visible {
    outline: 1px solid var(--custom-accent-color-400);
    outline-offset: 2px;
  }

  .catalog-body .sb-catalog-more > .pagination {
    grid-column: 2;
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-end;
    gap: 2px;
    width: 100%;
    margin: 0;
    padding: 0;
  }

  .catalog-body .sb-catalog-more > .pagination > * {
    flex: 0 1 34px;
    box-sizing: border-box;
    width: 34px;
    min-width: 30px;
    height: 34px;
    margin: 0;
  }

  .catalog-body .sb-catalog-more > .pagination > .sb-catalog-page-extra {
    display: none;
  }

  .catalog-body .sb-catalog-more > .pagination > .sb-catalog-compact-dot {
    display: flex;
    flex: 1 1 12px;
    align-items: center;
    justify-content: center;
    width: auto;
    min-width: 10px;
  }

  .catalog-body .sb-catalog-more > .pagination > span > a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
  }

  .sb-catalog-more_error .sb-catalog-more__status {
    position: static;
    grid-column: 1 / -1;
    width: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    clip-path: none;
    color: #b42318;
    font-size: 12px;
    line-height: 1.4;
  }
}

/* Stack only the homepage hero slides so a Slick reinitialization cannot
   bring back the horizontal track movement. */
.frontpage .custom-big-slide .slider-constructor.slick-initialized > .slick-list > .slick-track {
  position: relative;
  width: 100% !important;
  height: 100%;
  transform: none !important;
  transition: none !important;
}

.frontpage .custom-big-slide .slider-constructor.slick-initialized > .slick-list > .slick-track > .slick-slide {
  position: absolute !important;
  inset: 0 auto auto 0 !important;
  width: 100% !important;
  height: 100% !important;
  opacity: 0;
  transition: none !important;
}

.frontpage .custom-big-slide .slider-constructor.slick-initialized > .slick-list > .slick-track > .slick-slide.slick-current {
  z-index: 1001 !important;
  opacity: 1;
}






.city-popup {
  position: fixed;
  inset: 0;
  /* выше нижнего мобильного меню (999999) и плашки «ищем партнёра» (1000000) */
  z-index: 1000002;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.city-popup[hidden] {
  display: none;
}

.city-popup.is-active {
  display: flex;
}

.city-popup__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(0, 0, 0, 0.55);
}

/* Контент: шапка и поиск неподвижны, прокручивается только список */
.city-popup__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 650px;
  max-height: calc(100vh - 40px);
  max-height: calc(100dvh - 40px);
  padding: 30px;
  background: var(--custom-white-color);
  box-sizing: border-box;
  overflow: hidden;
}

.city-popup h2 {
  flex: 0 0 auto;
  margin: 0 0 15px;
  padding-right: 40px;
}

.city-popup__close {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  background: none;
  border: none;
  font-size: 32px !important;
  line-height: 1;
  cursor: pointer;
  color: var(--custom-gray-color-700);
}

.city-popup__close:hover {
  color: var(--custom-black-color);
}

/* Поиск */

.city-popup__search {
  position: relative;
  flex: 0 0 auto;
  margin-bottom: 20px;
}

.city-popup__search-input {
  display: block;
  width: 100%;
  height: 34px;
  margin: 0;
  padding: 0 44px 0 20px;
  border: none;
  border-bottom: 1px solid var(--custom-accent-color-400);
  border-radius: 0;
  background: var(--custom-gray-color-100);
  color: var(--custom-black-color);
  font-size: 13px;
  line-height: 1;
  box-shadow: none;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  box-sizing: border-box;
}

.city-popup__search-input::placeholder {
  color: var(--custom-gray-color-700);
}

.city-popup__search-input:focus {
  background: var(--custom-white-color);
  box-shadow: inset 0 0 0 1px var(--custom-accent-color-400);
}

/* убираем родной крестик браузера, у нас свой */
.city-popup__search-input::-webkit-search-cancel-button,
.city-popup__search-input::-webkit-search-decoration {
  -webkit-appearance: none;
  display: none;
}

.city-popup__search-clear {
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin: 0;
  padding: 0;
  background: none;
  border: none;
  color: var(--custom-gray-color-700);
  font-size: 22px !important;
  line-height: 1;
  cursor: pointer;
}

.city-popup__search-clear[hidden] {
  display: none;
}

.city-popup__search-clear:hover {
  color: var(--custom-black-color);
}

/* Список */

.city-popup__list {
  flex: 1 1 auto;
  min-height: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 20px;
  align-content: start;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.city-popup__list li::before {
  display: none !important;
}

.city-popup__list li {
  margin-bottom: 0 !important;
  padding-left: 0 !important;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  column-gap: 8px;
}

/* скрытые поиском города (перебивает inline display:flex) */
.city-popup__list li.is-hidden {
  display: none !important;
}

.city-popup__list a {
  display: inline-block;
  padding: 6px 0;
  color: var(--custom-black-color);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.city-popup__list li:hover a {
  color: var(--custom-accent-color-400);
}

.city-popup__status {
  display: inline-block;
  font-size: 11px !important;
  line-height: 1.4;
  white-space: nowrap;
}

.city-popup__status::before {
  content: none;
}

.city-popup__status--searching {
  color: var(--custom-accent-color-400);
}

.city-popup__status--partner {
  color: var(--custom-gray-color-700);
}

.city-popup .city-popup__empty {
  flex: 0 0 auto;
  margin: 10px 0 0;
  color: var(--custom-gray-color-700);
}

.city-popup .city-popup__empty[hidden] {
  display: none;
}

body.popup-open {
  overflow: hidden;
}

/* ---------- Мобильная версия ---------- */

@media (max-width: 767px) {
  .city-popup {
    align-items: stretch;
    justify-content: center;
    padding: 0;
  }

  .city-popup__content {
    max-width: none;
    max-height: none;
    /* --popup-vh задаёт JS по visualViewport (учитывает клавиатуру) */
    height: 100vh;
    height: 100dvh;
    height: var(--popup-vh, 100dvh);
    padding: 20px 10px 0;
  }

  .city-popup h2 {
    margin-bottom: 15px;
    padding-right: 50px;
    font-size: 18px;
  }

  .city-popup__close {
    top: 10px;
    right: 6px;
    font-size: 40px !important;
  }

  .city-popup__search {
    margin-bottom: 10px;
  }

  /* 16px — иначе iOS зумит страницу при фокусе на поле */
  .city-popup__search-input {
    height: 34px;
    font-size: 16px;
  }

  .city-popup__search-clear {
    width: 44px;
    height: 44px;
    font-size: 26px !important;
  }

  .city-popup__list {
    grid-template-columns: 1fr;
    gap: 0;
    padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  }

  .city-popup__list li {
    padding: 0 !important;
    border-bottom: var(--custom-border-width) solid var(--custom-border-color);
  }

  .city-popup__list a {
    padding: 13px 0;
    font-size: 14px;
  }

  .city-popup__list li:active a {
    color: var(--custom-accent-color-400);
  }
}


@media (max-width: 767px) {

    .city-popup {
        position: fixed;
        inset: 0;
        width: 100%;
        height: 100%;
        padding: 0;

        align-items: flex-start;
        justify-content: stretch;

        overflow: hidden;
    }

    .city-popup__content {
        width: 100%;
        max-width: none;

        height: 100%;
        min-height: 100%;
        max-height: none;

        padding: 20px 15px 0;

        display: flex;
        flex-direction: column;

        overflow: hidden;

        /* больше НЕ используем --popup-vh */
    }

    .city-popup h2 {
        flex: 0 0 auto;

        margin: 0 0 15px;
        padding-right: 45px;

        font-size: 18px;
    }

    .city-popup__search {
        flex: 0 0 auto;

        width: 100%;
        margin: 0 0 15px;
    }

    .city-popup__search-input {
        display: block;

        width: 100%;
        height: 34px;

        padding: 0 45px 0 15px;

        font-size: 16px !important;
        line-height: 34px;

        border: var(--custom-border-width) solid var(--custom-border-color);
        border-radius: 0;

        background: var(--custom-white-color);
        box-shadow: none;

        -webkit-appearance: none;
        appearance: none;
    }

    .city-popup__search-input:focus {
        outline: none;
        border-color: var(--custom-accent-color-400);
        box-shadow: none;
    }

    .city-popup__search-clear {
        width: 44px;
        height: 48px;
    }

    .city-popup__list {
        display: grid;
        grid-template-columns: 1fr;
        grid-auto-rows: min-content;

        flex: 1 1 auto;

        width: 100%;
        min-height: 0;

        margin: 0;
        padding: 0 0 20px;

        gap: 0;

        overflow-x: hidden;
        overflow-y: auto;

        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
    }

    .city-popup__list li {
        display: flex;

        flex: 0 0 auto;
        flex-wrap: nowrap;
        align-items: baseline;

        box-sizing: border-box;
        min-height: 44px;

        margin: 0 !important;
        padding: 11px 0 !important;

        border: 0 !important;
        border-bottom: var(--custom-border-width) solid var(--custom-border-color) !important;
    }

    .city-popup__list a {
        display: inline-block;

        flex: 0 0 auto;

        padding: 0;

        font-size: 14px;
        line-height: 20px !important;

        border: 0 !important;
    }

    .city-popup__status {
        display: inline-block;

        flex: 0 0 auto;

        font-size: 11px !important;
        line-height: 20px !important;

        white-space: nowrap;
    }
}

/* Калькулятор доставки: карта сверху, шаги и результат по макету */
.calculate-delivery {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr);
  gap: 30px;
  padding-bottom: 0;
}

.calculate-delivery__map {
  grid-column: 1 / -1;
  grid-row: 1;
  width: 100% !important;
  height: 365px;
  margin: 0;
  order: 0;
  box-sizing: border-box;
  border: var(--custom-border-width) solid var(--custom-border-color);
}

.calculate-delivery__form {
  grid-column: 1 / -1;
  grid-row: 2;
  display: grid;
    grid-template-columns:
        minmax(0, 3fr)
        minmax(0, 4fr)
        minmax(0, 5fr)
        minmax(0, 2fr);
  grid-template-rows: auto auto;
  gap: 10px;
  align-items: end;
  width: 100% !important;
  font-size: 13px;
}

.calculate-delivery__form > .form-group {
  width: auto;
  margin: 0 !important;
}

.calculate-delivery__form > .form-group:not(.stock-select):not(.car-select):not([style*="text-align"]) {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 34px;
}

.calculate-delivery__form .form-group-number {
  position: static;
  display: flex !important;
  flex: 0 0 34px;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin: 0;
  border: 1px solid var(--custom-accent-color-400);
  border-radius: 0;
  color: var(--custom-black-color);
  font-size: 13px !important;
  font-weight: 400;
}

.calculate-delivery__form .point-on-map-label,
.calculate-delivery__form > .stock-select,
.calculate-delivery__form > .car-select {
  padding-left: 0 !important;
}

.calculate-delivery__form .point-on-map-label {
  padding: 0 !important;
  color: var(--custom-black-color);
  font-size: 13px !important;
  line-height: 130%;
}

.calculate-delivery__form > .stock-select,
.calculate-delivery__form > .car-select {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  grid-template-rows: 18px 34px;
  gap: 8px 10px;
  align-items: end;
  min-width: 0;
}

.calculate-delivery__form > .stock-select {
  grid-column: 2;
  grid-row: 1;
}

.calculate-delivery__form > .car-select {
  grid-column: 3;
  grid-row: 1;
}

.calculate-delivery__form > .stock-select > .form-group-number,
.calculate-delivery__form > .car-select > .form-group-number {
  grid-column: 1;
  grid-row: 1 / 3;
  align-self: end;
}

.calculate-delivery__form > .stock-select > label,
.calculate-delivery__form > .car-select > label {
  grid-column: 2;
  grid-row: 1;
  margin: 0;
  color: var(--custom-black-color);
  font-size: 13px !important;
  font-weight: 400;
  line-height: 18px;
}

.calculate-delivery__form > .stock-select > .dropdown-container,
.calculate-delivery__form > .car-select > .dropdown-container {
  grid-column: 2;
  grid-row: 2;
  width: 100%;
  min-width: 0;
}

.calculate-delivery__form .dropdown-select {
  width: 100%;
  height: 34px;
  padding: 0 40px 0 20px;
  border: 0;
  border-radius: 0;
  background-color: var(--custom-gray-color-100);
  color: var(--custom-black-color);
  font-size: 13px;
  line-height: 34px;
}

.calculate-delivery__form .dropdown-select > span {
  display: block;
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: clip;
  -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 82%, transparent 100%);
  mask-image: linear-gradient(90deg, #000 0%, #000 82%, transparent 100%);
}

.calculate-delivery__form .dropdown-select::after {
  content: none !important;
  display: none !important;
}

.calculate-delivery__form .dropdown-select-ul {
  border: 0;
  border-radius: 0;
  background: var(--custom-gray-color-100) !important;
}

.calculate-delivery__form .dropdown-select-ul li {
  display: flex;
  align-items: center;
  height: 34px;
  padding: 0 20px;
  background: var(--custom-gray-color-100) !important;
  color: var(--custom-black-color) !important;
  font-size: 13px;
}

.calculate-delivery__form .dropdown-select-ul li:hover {
  background: var(--custom-gray-color-100) !important;
  color: var(--custom-black-color) !important;
}

.calculate-delivery__form .dropdown-select-ul li.selected {
  background: var(--custom-accent-color-400) !important;
  color: var(--custom-white-color) !important;
}

.calculate-delivery__form > .form-group[style*="text-align"] {
  grid-column: 4;
  grid-row: 1;
  align-self: end;
  text-align: left !important;
}

.calculate-delivery__form > .form-group[style*="text-align"] .btn {
  width: 100%;
  height: 34px;
  margin: 0;
  padding: 0 12px;
  border: 1px solid var(--custom-accent-color-400);
  border-radius: 0;
  background: var(--custom-accent-color-400);
  color: var(--custom-white-color);
  font-size: 13px;
}

.calculate-delivery__form > .form-group[style*="text-align"] .btn:hover {
  border-color: var(--custom-border-color);
  background: var(--custom-gray-color-100);
  color: var(--custom-black-color);
}

.calculate-delivery__form-delivery {
  display: none;
  grid-column: 1 / span 2;
  grid-row: 2;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  min-height: 140px;
  margin: 0;
  padding: 30px;
  background: var(--custom-gray-color-100);
  color: var(--custom-black-color);
}

.calculate-delivery__form-delivery:has(span:not(:empty)) {
  display: flex;
}

.calculate-delivery__form-delivery .form-delivery-address > div {
  margin-bottom: 0 !important;
  font-size: 13px !important;
  line-height: 130%;
}

.calculate-delivery__form-delivery .form-delivery-distance {
  margin: 0;
  color: var(--custom-black-color);
  font-size: 13px;
  line-height: 130%;
}

.calculate-delivery__form-delivery .form-delivery-distance span {
  color: inherit;
  font-size: inherit;
}

.calculate-delivery__form-delivery .form-delivery-cost {
  display: block;
  margin: 0;
  color: #666;
  font-size: 13px;
  font-weight: 600;
  line-height: 130%;
  text-transform: uppercase;
}

.calculate-delivery__form-delivery .form-delivery-cost span {
  padding: 0;
  background: transparent;
  color: var(--custom-black-color);
  font-size: inherit;
  font-weight: 600;
}

@media (min-width: 768px) and (max-width: 1199px) {
  .calculate-delivery__map {
    height: 270px;
  }

  .calculate-delivery__form {
    grid-template-columns: minmax(210px, 1fr) minmax(260px, 1.3fr);
    gap: 20px 10px;
  }

  .calculate-delivery__form > .form-group:not(.stock-select):not(.car-select):not([style*="text-align"]) {
    grid-column: 1;
    grid-row: 1;
  }

  .calculate-delivery__form > .stock-select {
    grid-column: 2;
    grid-row: 1;
  }

  .calculate-delivery__form > .car-select {
    grid-column: 1;
    grid-row: 2;
  }

  .calculate-delivery__form > .form-group[style*="text-align"] {
    grid-column: 2;
    grid-row: 2;
  }

  .calculate-delivery__form-delivery {
    grid-column: 1 / -1;
    grid-row: 3;
  }
}

@media (min-width: 992px) and (max-width: 1199px) {
  .calculate-delivery__form {
    grid-template-columns: minmax(190px, 1.05fr) minmax(220px, 1.2fr) minmax(250px, 1.4fr) minmax(110px, 0.65fr);
    column-gap: 8px;
  }

  .calculate-delivery__form > .form-group:not(.stock-select):not(.car-select):not([style*="text-align"]) {
    grid-column: 1;
    grid-row: 1;
  }

  .calculate-delivery__form > .stock-select {
    grid-column: 2;
    grid-row: 1;
  }

  .calculate-delivery__form > .car-select {
    grid-column: 3;
    grid-row: 1;
  }

  .calculate-delivery__form > .form-group[style*="text-align"] {
    grid-column: 4;
    grid-row: 1;
  }

  .calculate-delivery__form-delivery {
    grid-column: 1 / span 2;
    grid-row: 2;
  }
}

@media (max-width: 767px) {
  .calculate-delivery {
    display: flex !important;
    flex-direction: column;
    gap: 0;
  }

  .calculate-delivery__map {
    width: calc(100% + 30px) !important;
    height: 200px;
    margin: 0 -15px 24px;
    order: -1;
  }

  .calculate-delivery__form {
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  .calculate-delivery__form > .form-group:not(.stock-select):not(.car-select):not([style*="text-align"]) {
    align-self: stretch;
    justify-content: flex-start;
    width: 100%;
    margin-bottom: 16px !important;
  }

  .calculate-delivery__form > .stock-select,
  .calculate-delivery__form > .car-select {
    width: 100%;
    margin-bottom: 15px !important;
  }

  .calculate-delivery__form > .form-group[style*="text-align"] {
    width: 100%;
    margin-bottom: 16px !important;
  }

  .calculate-delivery__form > .form-group[style*="text-align"] .btn {
    width: 50%;
  }

  .calculate-delivery__form-delivery {
    width: 100%;
    min-height: 0;
    padding: 20px;
  }

  .calculate-delivery__form,
  .calculate-delivery__form *,
  .calculate-delivery__form-delivery,
  .calculate-delivery__form-delivery * {
    font-size: 14px !important;
  }

  .calculate-delivery__form .form-group-number,
  .calculate-delivery__form .point-on-map-label,
  .calculate-delivery__form > .stock-select > label,
  .calculate-delivery__form > .car-select > label,
  .calculate-delivery__form .dropdown-select,
  .calculate-delivery__form .dropdown-select-ul li,
  .calculate-delivery__form .btn {
    font-size: 14px !important;
  }
}

/* Keep city beside search and menu beside the phone on desktop. */
@media (min-width: 992px) {
  .__header .custom-block > button.catalog-btn {
    position: relative;
    display: block;
    width: 30px !important;
    min-width: 30px !important;
    height: 16px !important;
    flex: 0 0 30px !important;
    padding: 0 !important;
    overflow: hidden;
  }

  .__header .custom-block > button.catalog-btn::before {
    content: "" !important;
    display: block !important;
    position: absolute !important;
    top: 0;
    left: 0;
    width: 30px !important;
    height: 16px !important;
    background: url(https://stroybaza-samara.ru/media/uploads/svg/catalog-header.svg)
      no-repeat center / 30px 16px !important;
  }

  .__header .custom-block > .fixed-header-button {
    position: static;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
    z-index: auto;
    flex: 0 0 auto;
    margin: 0;
  }

  .__header .custom-block > .fixed-header-button .btn {
    white-space: nowrap;
  }

  .__header .contact-box > .fixed-header-menu {
    position: static;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
    z-index: auto;
    align-self: flex-end;
    flex: 0 0 auto;
    align-items: center;
    margin: 0;
    transform: translateY(2px);
  }

  .__header .contact-box > .fixed-header-menu .btn {
    display: flex !important;
    position: relative;
    align-items: center;
    justify-content: center;
    width: 32px;
    min-width: 32px;
    height: 18px;
    flex: 0 0 18px;
    font-size: 0 !important;
    line-height: 0;
  }

  header .fixed-header-menu .btn::before {
    content: "";
    display: block;
    width: 30px;
    height: 16px;
    flex: 0 0 16px;
    background: url(https://stroybaza-samara.ru/media/uploads/svg/menu-header.svg)
      no-repeat center / 30px 16px !important;
  }

  .__header .contact-box a img {
    max-width: 32px;
  }

  header .fixed-header-menu img {
    display: none !important;
  }

  /* Keep the address control compact and let long names fade at its edge. */
  .__header .options-box .nav-items {
    flex: 0 1 auto;
    min-width: 0;
  }

  .__header .options-box .nav-items li:has(.location-caret) {
    flex: 0 1 190px;
    min-width: 0;
  }

  .__header .options-box .nav-items li .location-caret {
    position: relative;
    display: table !important;
    align-items: center;
    box-sizing: border-box;
    flex: 0 1 auto;
    width: auto !important;
    max-width: 150px;
    min-width: 0;
    padding-right: 0 !important;
    margin-left: 40px;
    overflow: visible;
    clip-path: inset(-1px 0 -1px -40px);
    white-space: nowrap;
    border-bottom: 1px solid var(--custom-accent-color-400) !important;
  }

  .__header .options-box .nav-items li .location-caret::before {
    width: 22px;
    height: 21px;
    background-position: center bottom;
    bottom: -1px;
    left: -40px;
    border: 0 !important;
  }

  .__header .options-box .nav-items li .location-caret::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    right: -1px;
    width: 40px;
    height: auto;
    z-index: 1;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0), var(--custom-white-color) 85%);
    pointer-events: none;
  }

}

/* HD header: give the search a flexible lane and cap the address control. */
@media (min-width: 992px) and (max-width: 1279px) {
  .__header .row {
    gap: 16px !important;
  }

  .__header .row > [class*="col-"]:has(.logo) {
    flex: 0 0 128px;
    width: 128px;
    max-width: 128px;
  }

  .__header .row > .col-lg-6:has(.search-box),
  .__header .row > [class*="col-"]:has(.search-box) {
    flex: 1 1 300px;
    width: auto;
    min-width: 0;
    max-width: none;
    margin-right: 0;
  }

  .__header .custom-block:has(.search-box) {
    width: 100%;
    min-width: 0;
    flex: 1 1 auto;
    gap: 16px;
    margin: 0;
  }

  .__header .search-box {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
    max-width: none;
  }

  .__header .search-box form {
    width: 100%;
    min-width: 0;
  }

  .__header .search-box input {
    flex: 1 1 auto;
    width: 0;
    min-width: 0;
  }

  .__header .custom-block > .fixed-header-button {
    flex: 0 0 auto;
    width: max-content;
    min-width: 0;
    max-width: none;
  }

  .__header .custom-block > .fixed-header-button .btn {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .__header .row > [class*="col-"]:has(.contact-box):not(:has(.options-box)):not(:has(.search-box)):not(:has(.catalog-btn)) {
    flex: 0 0 170px;
    width: 170px;
    max-width: 170px;
    min-width: 0;
  }

  .__header .contact-box {
    gap: 15px;
    margin-right: 0;
  }

  .__header .contact-box > .fixed-header-menu {
    flex: 0 0 32px;
  }

  .__header .row > [class*="col-"]:has(.options-box):not(:has(.search-box)):not(:has(.catalog-btn)) {
    flex: 0 0 280px;
    width: 280px;
    max-width: 280px;
    min-width: 0;
  }

  .__header .options-box {
    gap: 8px;
    min-width: 0;
  }

  .__header .options-box .nav-items li:has(.location-caret) {
    flex: 0 1 130px;
    min-width: 0;
  }

  .__header .options-box .nav-items li .location-caret {
    max-width: 90px;
  }

  .__header .options-box .option-items li:first-child {
    margin-left: 22px;
  }
}

/* HD headers with no address item (for example, Nizhny Novgorod). */
@media (min-width: 992px) and (max-width: 1279px) {
  .__header .row > [class*="col-"]:has(.options-box):not(:has(.search-box)):not(:has(.location-caret)) {
    flex: 0 0 140px;
    width: 140px;
    max-width: 140px;
    min-width: 0;
  }

  .__header .row > [class*="col-"]:has(.contact-box):not(:has(.options-box)):not(:has(.search-box)):not(:has(.catalog-btn)) {
    flex: 0 0 270px;
    width: 270px;
    max-width: 270px;
    min-width: 0;
  }

  .__header .contact-box {
    gap: 15px;
  }

  .__header .contact-box .custom-attention--header {
    flex: 0 1 100px;
    width: 100px;
    max-width: 100px;
    min-width: 0;
    overflow: hidden;
  }

  .__header .custom-block > .fixed-header-button .btn {
    position: relative;
    justify-content: flex-start;
    overflow: hidden;
    text-overflow: clip;
  }

  .__header .custom-block > .fixed-header-button .btn::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 18px;
    height: 100%;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0), #fff 90%);
    pointer-events: none;
  }

  .__header .custom-block > .fixed-header-button .btn img {
    position: relative;
    z-index: 1;
    flex: 0 0 12px;
  }

}

/* Keep every desktop header control inside the container above HD width. */
@media (min-width: 1280px) {
  .__header .row {
    min-width: 0;
    gap: 12px;
  }

  .__header .row > [class*="col-"]:has(.logo) {
    flex: 0 0 230px;
    width: 230px;
    max-width: 230px;
    min-width: 0;
  }

  .__header .logo {
    width: 100%;
    min-width: 0;
  }

  .__header .logo img,
  .__header .logo svg {
    max-width: 100%;
    height: auto;
  }

  .__header .row > .col-lg-6:has(.search-box),
  .__header .row > [class*="col-"]:has(.search-box) {
    flex: 1 1 380px;
    width: auto !important;
    min-width: 0;
    max-width: none;
    margin: 0;
  }

  .__header .custom-block:has(.search-box) {
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
    gap: 12px;
    margin: 0;
  }

  .__header .search-box {
    flex: 1 1 220px;
    width: auto;
    min-width: 0;
    max-width: none;
  }

  .__header .search-box form {
    width: 100%;
    min-width: 0;
  }

  .__header .search-box input {
    flex: 1 1 auto;
    width: 0;
    min-width: 0;
  }

  .__header .custom-block > .fixed-header-button {
    flex: 0 0 auto;
    width: max-content;
    min-width: 0;
    max-width: none;
    margin: 0 0 0 12px;
  }

  .__header .custom-block > .fixed-header-button .btn {
    position: relative;
    justify-content: flex-start;
    width: auto;
    max-width: none;
    overflow: hidden;
    text-overflow: clip;
  }

  .__header .custom-block > .fixed-header-button .btn::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 18px;
    height: 100%;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0), #fff 90%);
    pointer-events: none;
  }

  .__header .custom-block > .fixed-header-button .btn img {
    position: relative;
    z-index: 1;
    flex: 0 0 12px;
  }

  .__header .row > [class*="col-"]:has(.contact-box):not(:has(.options-box)):not(:has(.search-box)):not(:has(.catalog-btn)) {
    flex: 0 1 300px;
    width: auto !important;
    max-width: 300px;
    min-width: 0;
    margin: 0 0 0 3px;
  }

  .__header .row:has(.location-caret) > [class*="col-"]:has(.contact-box):not(:has(.options-box)):not(:has(.search-box)):not(:has(.catalog-btn)) {
    flex-basis: 220px;
  }

  .__header .contact-box {
    gap: 15px;
    min-width: 0;
    margin: 0;
  }

  .__header .contact-box .custom-attention--header {
    flex: 0 1 120px;
    width: 120px;
    max-width: 120px;
    min-width: 0;
  }

  .__header .row > [class*="col-"]:has(.options-box):not(:has(.search-box)):not(:has(.catalog-btn)):has(.location-caret) {
    flex: 0 0 360px;
    width: 360px;
    max-width: 360px;
    min-width: 0;
    margin-left: 12px;
  }

  .__header .row > [class*="col-"]:has(.options-box):not(:has(.search-box)):not(:has(.catalog-btn)):not(:has(.location-caret)) {
    flex: 0 0 140px;
    width: 140px;
    max-width: 140px;
    min-width: 0;
    margin-left: 12px;
  }

  .__header .options-box {
    gap: 8px;
    min-width: 0;
  }

  .__header .options-box .nav-items li:has(.location-caret) {
    flex: 0 1 150px;
    min-width: 0;
  }

  .__header .options-box .nav-items li .location-caret {
    max-width: 110px;
  }

  .__header .options-box .option-items li:first-child {
    margin-left: 24px;
  }
}

/* Desktop header controls stay within the container, including cart counters. */
@media (min-width: 992px) {
  header .pre-header .fixed-header-button,
  header .pre-header-menu .fixed-header-menu {
    visibility: hidden;
  }

  .__header .custom-block > .fixed-header-button,
  .__header .contact-box > .fixed-header-menu {
    visibility: visible;
  }

  .__header > .container > .row {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin-inline: 0;
    box-sizing: border-box;
  }

  .__header > .container > .row > [class*="col-"] {
    min-width: 0;
    padding-inline: 0;
  }

  .__header .row > [class*="col-"]:has(.options-box):not(:has(.search-box)):not(:has(.catalog-btn)) {
    width: auto !important;
    flex-shrink: 1;
    min-width: 0;
  }

  .__header .options-box {
    display: grid;
    grid-template-columns: minmax(0, 1fr) max-content;
    gap: 12px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 0;
    box-sizing: border-box;
  }

  .__header .options-box .nav-items {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0;
  }

  .__header .options-box .nav-items li:has(.location-caret) {
    position: relative;
    display: block;
    flex: 1 1 auto;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 0 0 0 40px;
    box-sizing: border-box;
  }

  .__header .options-box .nav-items li .location-caret {
    display: block !important;
    width: max-content !important;
    max-width: 100% !important;
    min-width: 0;
    margin-left: 0;
    overflow: hidden;
    clip-path: none;
    isolation: isolate;
  }

  .__header .options-box .nav-items li .location-caret::before {
    display: none;
  }

  .__header .options-box .nav-items li:has(.location-caret)::before {
    content: "";
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 22px;
    height: 16px;
    background: url(https://stroybaza-samara.ru/media/uploads/svg/baza-icon.svg) no-repeat center bottom / 100%;
    pointer-events: none;
  }

  .__header .options-box .option-items {
    width: max-content;
    min-width: 0;
    margin: 0;
    padding: 0 12px 0 24px;
    gap: 18px;
    box-sizing: border-box;
  }

  .__header .options-box .option-items li,
  .__header .options-box .option-items li:first-child {
    flex: 0 0 auto;
    width: auto;
    margin: 0;
    padding: 0;
  }

  .__header .contact-box {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .__header .contact-box p.toggled {
    flex: 0 0 auto;
  }

  .__header .contact-box .custom-attention--header {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
    overflow: hidden;
  }
}

/* Keep the partner address notice on two lines in the desktop header. */
@media (min-width: 1280px) {
  .__header .row > [class*="col-"]:has(.contact-box .custom-attention--header):not(:has(.options-box)):not(:has(.search-box)) {
    flex: 0 0 340px;
    max-width: 340px;
  }

  .__header .contact-box .custom-attention--header {
    flex: 0 0 150px;
    width: 150px;
    max-width: 150px;
  }

  .__header .contact-box a.custom-attention__desktop-link {
    text-wrap: balance;
  }
}

/* Use the empty address lane for search on headers with a partner notice. */
@media (min-width: 1280px) {
  .__header .row:has(.custom-attention--header) > [class*="col-"]:has(.options-box):not(:has(.search-box)) {
    margin-left: 6px;
  }

  .__header .row:has(.custom-attention--header) .options-box:has(.header-mail-item):not(:has(.location-caret)) {
    grid-template-columns: max-content;
  }

  .__header .row:has(.custom-attention--header) .options-box:has(.header-mail-item):not(:has(.location-caret)) > .nav-items {
    display: none;
  }

  .__header .row:has(.custom-attention--header) .options-box:has(.header-mail-item):not(:has(.location-caret)) > .option-items {
    grid-column: 1;
  }
}

/* Delivery calculator: two persistent panels below the controls. */
.calculate-delivery__form > .calculate-delivery__results {
    position: relative;
    z-index: 0;
    isolation: isolate;
grid-column: 1 / -1;
    grid-row: 2;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    width: 100%;
    min-width: 0;
    align-content: end;
    align-items: stretch;
}

.calculate-delivery__results > .calculate-delivery__form-delivery {
  grid-column: auto;
  grid-row: auto;
  min-width: 0;
  min-height: 140px;
  margin: 0;
  padding: 30px;
  background: var(--custom-gray-color-100);
  box-sizing: border-box;
}

.calculate-delivery__results > .calculate-delivery__info {
  grid-column: auto;
  grid-row: auto;
  min-width: 0;
  min-height: 140px;
  margin: 0;
  background: var(--custom-gray-color-100) url(https://stroybaza-samara.ru/media/uploads/svg/contacts-pattern.svg) no-repeat;
  box-sizing: border-box;
  background-size: 60%;
    background-position: right bottom;
}

.delivery-promo__content {
  width: 50%;
  height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 40px 20px 20px 20px;
}

.delivery-promo__content .btn {
  width: 144px;
}

.delivery-promo {
    position: relative;
    height: 100%;
}

.delivery-promo::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 20px;
    background: var(--custom-white-color);
    z-index: 1;
}

.delivery-promo__image {
    position: absolute;
    right: 0;
    bottom: 0;
    height: 100%;
    z-index: 2;
}

.calculate-delivery__info {
  padding: 0px;
}

.calculate-delivery__results > .calculate-delivery__info {
    min-height: 175px;
}

.calculate-delivery__results > .calculate-delivery__form-delivery {
  display: flex;
  align-self: stretch;
  margin-top: 20px;
}

.calculate-delivery__results .calculate-delivery__placeholder {
  margin: 0;
  font-size: 13px;
  line-height: 1.4;
  white-space: pre-line;
  max-width: 100%;
}

.calculate-delivery__results .calculate-delivery__form-delivery > span:empty,
.calculate-delivery__results .calculate-delivery__form-delivery:has(> span:not(:empty)) > .calculate-delivery__placeholder {
  display: none;
}

@media (min-width: 768px) and (max-width: 991px) {
  .calculate-delivery__form > .calculate-delivery__results {
    grid-row: 3;
  }
}

@media (max-width: 767px) {
  .calculate-delivery__form > .calculate-delivery__results {
    grid-row: auto;
    grid-template-columns: minmax(0, 1fr);
  }

  .calculate-delivery__results > .calculate-delivery__form-delivery {
    padding: 20px;
  }

  .calculate-delivery__results .calculate-delivery__placeholder {
    white-space: normal;
    text-wrap: pretty;
  }
}

/* Keep an open delivery dropdown above the following fields. */
.calculate-delivery__form > .form-group {
  position: relative;
  z-index: 0;
}

.calculate-delivery__form > .form-group:has(.dropdown-container.active) {
  z-index: 2;
}

@media (max-width: 767px) {
  .calculate-delivery__form .dropdown-select-ul {
    max-height: min(260px, 45vh);
    overflow-y: auto;
  }

      .modal-content {
        justify-content: flex-start;
        padding-top: 60px;
    }

  .calculate-delivery__form .dropdown-select-ul li {
    height: 34px;
    min-height: 34px;
    padding: 0 20px;
    line-height: 16px;
    white-space: normal;
    box-sizing: border-box;
  }
}
/* Delivery field captions are shown inside the dropdowns until a choice is made. */
.calculate-delivery__form > .form-group.calculate-delivery__choice {
  grid-template-rows: 34px;
  row-gap: 0;
}

.calculate-delivery__form > .calculate-delivery__choice > label {
  display: none;
}

.calculate-delivery__form > .calculate-delivery__choice > .form-group-number,
.calculate-delivery__form > .calculate-delivery__choice > .dropdown-container {
  grid-row: 1;
}

/*акция*/

.promo-offer {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    width: 100%;
}

/* Верхний блок — на всю ширину */
.promo-offer__visual {
    width: 100%;
    background: var(--custom-white-color);
    padding-top: 20px;
    overflow: hidden;
}

.promo-offer__visual-inner {
    width: 100%;
    background: var(--custom-black-color);
    height: 425px;
    position: relative;
}

@media (max-width: 991px) {
    .promo-offer__visual-inner {
        height: auto;
        aspect-ratio: 1.7;
    }
}

.promo-offer__visual-inner::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-image: url(https://stroybaza-samara.ru/media/uploads/svg/pattern-offer.svg);
    background-repeat: no-repeat;
    background-position: center center;
    background-size: auto 100%;
    opacity: 1;
    pointer-events: none;
}

.promo-offer__visual img {
    display: block;
    width: 100%;
    height: auto;
    position: absolute;
    z-index: 2;
    left: 50%;
    top: -20px;
    width: auto;
    max-width: none;
    height: calc(100% + 20px);
    pointer-events: none;
    user-select: none;
    transform: translateX(-50%);
}

/* Нижний блок — две колонки */
.promo-offer__content {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px;
}

.promo-offer__text,
.promo-offer__form {
    min-width: 0;
}

.promo-offer__content h2 {
    margin-bottom: 20px;
}

.promo-offer__content
.button-theme_primary {
  width: 175px;
}

@media (max-width: 1279px) {
  .delivery-promo__image {
    height: 15vw;
}
}

/* Адаптив для мобильных */
@media (max-width: 767px) {
    .promo-offer__content {
        grid-template-columns: 1fr;
    }

    .delivery-promo__image {
    position: relative;
    width: 100%;
    height: auto;
}

.delivery-promo__content {
    width: 70%;
}

.delivery-promo__content {
    height: auto;
    padding: 20px;
}

.delivery-promo::before {
  display: none;
}

.calculate-delivery__results > .calculate-delivery__info {
    background-size: 100%;
    background-position: right top;
}
}
/* Header mail button supplied by a CMS static block. */
.header-mail {
  display: none;
}

.header-mail-item {
  display: none;
}

.header-mail-source-empty {
  display: none !important;
}

@media (min-width: 992px) {
  .__header .options-box:has(.header-mail-item) {
    grid-template-columns: minmax(0, 1fr) max-content;
    overflow: visible;
  }

  .__header .options-box:has(.header-mail-item) > .nav-items {
    grid-column: 1;
    grid-row: 1;
  }

  .__header .options-box:has(.header-mail-item) > .option-items {
    grid-column: 2;
    grid-row: 1;
    padding-left: 0;
  }

  .__header .row > [class*="col-"]:has(.options-box):not(:has(.search-box)):not(:has(.catalog-btn)):not(:has(.location-caret)):has(.header-mail) {
    flex: 0 0 auto;
    width: max-content !important;
    max-width: none;
  }

  .__header .options-box .header-mail-item {
    position: relative;
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    overflow: visible;
    margin: 0 !important;
    padding: 0 !important;
  }

  .__header .options-box .header-mail-item > .header-mail {
    position: relative;
    z-index: 5;
    display: flex;
    align-items: center;
    align-self: center;
    width: 30px !important;
    height: 16px !important;
    min-height: 16px !important;
    max-height: 16px !important;
    margin: 0;
  }

  .__header .options-box > .option-items {
    align-self: flex-end !important;
    height: 16px !important;
    min-height: 16px !important;
    max-height: 16px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }

  .__header .options-box .option-items > li,
  .__header .options-box .header-mail-item {
    height: 16px !important;
    min-height: 16px !important;
    max-height: 16px !important;
    align-self: flex-end;
  }

  .__header .options-box .option-items > li:first-child {
    margin-left: 0 !important;
  }

  .__header .header-mail__toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    min-width: 32px;
    height: 22px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    cursor: pointer;
  }

  .__header .header-mail__toggle::before {
    content: "";
    display: block;
    width: 32px;
    height: 22px;
    background: url(https://stroybaza-samara.ru/media/uploads/svg/mail-header.svg)
      no-repeat center bottom / 32px 22px;
  }

  .__header .header-mail__toggle:focus-visible {
    outline: 1px solid var(--custom-accent-color-400);
    outline-offset: 4px;
  }

  .__header .header-mail__actions {
    position: absolute;
    top: calc(100% + 16px);
    right: 0;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 175px;
    max-width: calc(100vw - 32px);
    margin: 0;
    padding: 0;
  }

  .__header .header-mail__actions[hidden] {
    display: none !important;
  }

  .__header .header-mail__actions:not([hidden]) {
    animation: header-mail-reveal 160ms ease-out both;
  }

  .__header .option-items li .header-mail__action {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    border: 1px solid var(--custom-accent-color-400);
    border-radius: 0;
    background: var(--custom-gray-color-100);
    color: var(--custom-black-color);
    font-family: inherit;
    font-size: 13px;
    font-weight: 400;
    text-align: center;
    text-decoration: none;
    box-sizing: border-box;
  }

  .__header .option-items li .header-mail__action:hover,
  .__header .option-items li .header-mail__action:focus-visible {
    background: var(--custom-accent-color-400);
    border-color: var(--custom-accent-color-400);
    color: var(--custom-white-color);
    text-decoration: none;
  }
}

@keyframes header-mail-reveal {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .__header .header-mail__actions:not([hidden]) {
    animation: none;
  }
}


/* модальное окно */

.partner-modal {
  width: min(600px, calc(100% - 32px));
  max-height: calc(100vh - 32px);
  padding: 0;
  border: 0;
  background: var(--custom-white-color);
  color: var(--custom-black-color);
  overflow: auto;
  margin: auto;
}

.partner-modal::backdrop {
  background: rgba(0, 0, 0, 0.65);
}

.partner-modal__content {
  position: relative;
  padding: 40px 30px;
}

.partner-modal__close {
  position: absolute;
  top: 12px;
  right: 16px;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--custom-black-color);
  cursor: pointer;
  font-size: 32px;
  line-height: 1;
}

.partner-modal__title {
  margin: 0 40px 12px 0;
}

.partner-modal__text {
  margin-bottom: 30px !important;
}
  
.partner-modal__content .btn {
    width: 144px;
}

@media (max-width: 767px) {
  .partner-modal {
    position: fixed;
    inset: 0;
    width: 100vw;
    max-width: none;
    height: 100vh;
    height: 100dvh;
    max-height: none;
    margin: 0;
    box-sizing: border-box;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .partner-modal__content {
    min-height: 100%;
    box-sizing: border-box;
    padding: 60px 15px 24px;
  }

  .partner-modal__close {
    top: 4px;
    right: 4px;
    width: 48px;
    height: 48px;
    font: 44px/1 Arial, sans-serif !important;
  }
}

@media (max-width: 767px) {
  .fancybox-slide--html:has(> #callme-modal) {
    padding: 0 !important;
  }

  .fancybox-slide--html > #callme-modal.fancybox-content {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100vh !important;
    height: 100dvh !important;
    max-width: none !important;
    max-height: none !important;
    margin: 0 !important;
    box-sizing: border-box;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
  }

}

/* Keep the accent frame visible without crowding the search icon. */
.__header .search-box .submit::before {
  clip-path: polygon(
    7px 0,
    100% 0,
    calc(100% - 7px) 100%,
    0 100%
  );
}

.__header .search-box .submit::after {
  inset: 1px;
  /* Offset the slanted edges by 1px perpendicular to the 7px / 16px slope. */
  clip-path: polygon(
    6.654px 0,
    calc(100% - 0.529px) 0,
    calc(100% - 6.654px) 100%,
    0.529px 100%
  );
}

.search-input-group__button::after {
  width: 38px;
  height: 22px;
  clip-path: polygon(
    8px 0,
    calc(100% - 0.7px) 0,
    calc(100% - 8px) 100%,
    0.7px 100%
  );
}

/* Give the search and address controls more room in the HD Moscow header. */
@media (min-width: 992px) and (max-width: 1279px) {
  .__header .row:has(.options-box .nav-items .location-caret) {
    gap: 12px !important;
  }

  .__header .row:has(.options-box .nav-items .location-caret) > [class*="col-"]:has(.contact-box):not(:has(.options-box)):not(:has(.search-box)):not(:has(.catalog-btn)):not(:has(.contact-box .custom-attention--header)) {
    flex: 0 0 200px;
    width: 200px;
    max-width: 200px;
  }

  .__header .row:has(.options-box .nav-items .location-caret) > [class*="col-"]:has(.options-box .nav-items .location-caret):not(:has(.search-box)):not(:has(.catalog-btn)) {
    flex: 0 1 264px;
    width: 264px;
    max-width: 264px;
  }

  .__header .options-box .nav-items li:has(.location-caret) {
    flex-basis: 160px;
  }

  .__header .options-box .nav-items li .location-caret {
    max-width: 130px;
  }
}

/* Site-wide chooser for mailto links. */
.mailto-menu {
  width: min(560px, calc(100% - 32px));
  max-width: 560px;
  max-height: calc(100vh - 32px);
  margin: auto;
  padding: 0;
  overflow: auto;
  border: 0;
  border-radius: 0;
  background: var(--custom-white-color);
  color: var(--custom-black-color);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.24);
}

.mailto-menu::backdrop {
  background: rgba(0, 0, 0, 0.58);
}

.mailto-menu__panel {
  position: relative;
  padding: 30px;
}

.mailto-menu__close {
  position: absolute;
  top: 10px;
  right: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--custom-gray-color-700);
  font: 32px/1 Arial, sans-serif;
  cursor: pointer;
}

.mailto-menu__close:hover,
.mailto-menu__close:focus-visible {
  color: var(--custom-black-color);
}

.mailto-menu__title {
  margin: 0 50px 10px 0;
  color: var(--custom-black-color);
  font-family: inherit;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.2;
}

.mailto-menu__subtitle {
  margin: 0 0 20px;
  color: var(--custom-gray-color-700);
}

.mailto-menu__address {
  margin: 0 0 20px;
  padding: 0px 15px;
  height: 34px;
    display: flex;
    align-items: center;
  overflow-wrap: anywhere;
  border-left: 2px solid var(--custom-accent-color-400);
  background: var(--custom-gray-color-100);
  color: var(--custom-black-color);
  font-size: 13px;
}

.mailto-menu__services {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 20px;
}

.mailto-menu__service {
  display: flex;
  align-items: center;
  width: 100%;
  height: 34px;
  min-height: 34px;
  padding: 4px 15px;
  gap: 10px;
  border: var(--custom-border-width) solid var(--custom-border-color);
  background: var(--custom-white-color);
  color: var(--custom-black-color);
  font-size: 14px;
  text-decoration: none;
  box-sizing: border-box;
  cursor: pointer;
}

.mailto-menu__service:hover,
.mailto-menu__service:focus-visible {
  border-color: var(--custom-accent-color-400);
  background: var(--custom-white-color);
  color: var(--custom-black-color);
  text-decoration: none;
}

.mailto-menu__service-icon {
  display: block;
  flex: 0 0 22px;
  width: 22px;
  height: 23px;
  object-fit: contain;
}

.mailto-menu__actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.mailto-menu__button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 34px;
  min-height: 34px;
  padding: 4px 12px;
  border: 1px solid var(--custom-accent-color-400);
  border-radius: 0;
  background: var(--custom-white-color);
  color: var(--custom-black-color);
  font-family: inherit;
  font-size: 13px;
  text-align: center;
  text-decoration: none;
  box-sizing: border-box;
  cursor: pointer;
}

.mailto-menu__button_primary,
.mailto-menu__button:hover,
.mailto-menu__button:focus-visible {
  border-color: var(--custom-accent-color-400);
  background: var(--custom-accent-color-400);
  color: var(--custom-white-color);
  text-decoration: none;
}

.mailto-menu__button_primary:hover,
.mailto-menu__button_primary:focus-visible {
  background: var(--custom-white-color);
  border-color: var(--custom-accent-color-400);
  color: var(--custom-black-color);
}

.mailto-menu__close:focus-visible,
.mailto-menu__service:focus-visible,
.mailto-menu__button:focus-visible {
  outline: 1px solid var(--custom-accent-color-400);
  outline-offset: 2px;
}

.mailto-menu__status {
  min-height: 18px;
  margin: 10px 0 -8px;
  color: var(--custom-accent-color-700);
  font-size: 12px;
  text-align: center;
}

.mailto-menu__status_error {
  color: #b42318;
}

@media (max-width: 575px) {
    .mailto-menu {
        width: 100%;
        max-height: 100%;
        height: 100%;
    }

  .mailto-menu__panel {
    padding: 30px 15px 20px;
  }

  .mailto-menu__services {
    grid-template-columns: 1fr;
  }

  .mailto-menu__button {
    font-size: 14px;
    white-space: nowrap;
  }

  .mailto-menu__close {
    font-size: 40px !important;
}
}

/* City picker: keep a steady desktop panel and scroll its city list. */
@media (min-width: 992px) {
  .city-popup__content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr) auto;
    column-gap: 20px;
    row-gap: 0;
    align-content: start;
    height: 400px;
    max-height: calc(100vh - 40px);
    max-height: calc(100dvh - 40px);
  }

  .city-popup h2 {
    grid-column: 1;
    grid-row: 1;
    align-self: center;
    margin: 0 0 20px;
    padding-right: 0;
  }

  .city-popup__search {
    grid-column: 2;
    grid-row: 1;
    align-self: center;
    position: relative;
    left: 0;
    width: calc(100% - 35px);
    margin: 0 0 20px;
    margin-left: -5px;
  }

  .city-popup__search-clear {
    width: 34px;
    height: 34px;
    font-size: 30px !important;
    font-weight: 300 !important;
  }

  .city-popup__list {
    grid-column: 1 / -1;
    grid-row: 2;
    min-height: 0;
    row-gap: 35px !important;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }

  .city-popup .city-popup__empty {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .__header .options-box .option-items {
    gap: 12px;
  }
}

.city-popup__search-input:focus,
.city-popup__search-input:focus-visible {
  outline: none !important;
  background: var(--custom-gray-color-100) !important;
  box-shadow: none !important;
  border: 0 !important;
  border-bottom: 1px solid var(--custom-accent-color-400) !important;
}

.city-popup .city-popup__count {
  color: var(--custom-gray-color-700);
  font-size: 12px !important;
  font-weight: 400 !important;
  line-height: 1.2;
  text-transform: none;
  white-space: nowrap;
}

.city-popup .city-popup__count--desktop {
  display: block;
  grid-column: 1 / -1;
  grid-row: 3;
  align-self: end;
  justify-self: start;
  margin: 8px 0 0;
}

.city-popup .city-popup__count--mobile {
  display: none;
}

@media (max-width: 767px) {
  .city-popup h2 {
    order: 1;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
  }

  .city-popup__close {
    top: 16px !important;
  }

  .city-popup__search {
    order: 2;
    margin-bottom: 8px;
  }

  .city-popup .city-popup__count--desktop {
    display: none;
  }

  .city-popup .city-popup__count--mobile {
    display: inline-block;
    flex: 0 0 auto;
    margin: 0;
    padding: 0;
  }

  .city-popup__list {
    order: 4;
  }

  .city-popup .city-popup__empty {
    order: 5;
  }
}

/* Keep the city list scroll area clear of the fixed mobile navigation. */
@media (max-width: 767px) {
  .city-popup__list {
    margin-bottom: calc(84px + env(safe-area-inset-bottom, 0px)) !important;
  }
}

@media (max-width: 767px) {
  .city-popup__close {
    top: 8px !important;
  }
}

.city-popup__search-clear {
  width: 34px !important;
  height: 34px !important;
}

/* Mobile header: city, favorites, search, and menu share one aligned control row. */
@media (max-width: 992px) {
  .mobile-header__row {
    gap: 8px;
  }

  .mobile-header__row .logo-link {
    flex: 1 1 0;
    min-width: 0;
    max-width: 220px;
    overflow: hidden;
  }

  .mobile-header__row .logo-link img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto !important;
    max-height: 30px;
    object-fit: contain;
    object-position: left center;
  }

  .mobile-header__item {
    flex: 0 0 auto;
    gap: 4px;
  }

  .mobile-header__item > .fixed-header-button {
    position: static !important;
    inset: auto !important;
    z-index: auto;
    flex: 0 0 auto;
    width: 34px !important;
    min-width: 34px !important;
    height: 40px;
    margin: 0 !important;
    pointer-events: auto;
  }

  .mobile-header__item > .fixed-header-button #openCityPopup {
    display: inline-flex !important;
    flex: 0 0 auto !important;
    align-items: center;
    gap: 4px;
    width: 34px !important;
    min-width: 34px !important;
    white-space: nowrap !important;
  }

  .mobile-header__item > .fixed-header-button #openCityPopup img {
    flex: 0 0 auto;
    width: 12px;
    height: 12px;
  }

  .mobile-header__favorite-button {
    position: relative;
    display: flex;
    flex: 0 0 34px;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 40px;
    margin: 0;
    padding: 0;
    color: var(--custom-black-color);
    text-decoration: none;
  }

  .mobile-header__favorite-button > img {
    display: block;
    width: 22px;
    height: 22px;
    object-fit: contain;
  }

  .mobile-header__favorite-button .cart-number {
    position: absolute;
    top: 3px;
    right: 0;
    font-size: 10px;
    line-height: 1;
  }

  .mobile-header__favorite-button .products-total-count {
    position: static !important;
    font-size: 10px !important;
  }

  .mobile-header__search-button,
  .mobile-header__hamburger-button {
    flex: 0 0 34px;
    width: 34px;
    min-width: 34px;
    height: 40px;
  }

  .mobile-header__search-button svg {
    width: 22px;
    height: 22px;
  }

  .mobile-header__hamburger-button::before {
    width: 38px;
    height: 28px;
  }
}

@media (max-width: 767px) {
  .mobile-header__item > .fixed-header-button {
    transform: none !important;
  }

  .mobile-header__item > .fixed-header-button #openCityPopup::before {
    flex: 0 0 31px !important;
    width: 31px !important;
    height: 19px !important;
    background-size: 31px 19px !important;
    transform: translateX(3px);
  }

  .city-popup__search-input {
    font-size: 14px !important;
  }
}

@media (min-width: 992px) {
  .city-popup .city-popup__count {
    font-size: 11px !important;
  }
}

/* Keep the visible row-to-row distance unchanged while the list is filtered. */
@media (min-width: 992px) {
  .city-popup__list.is-filtered {
    row-gap: 10px !important;
  }
}

/* Tint the mobile favorites shortcut across the site. */
@media (max-width: 992px) {
  body:has(.section-favorite) .mobile-header__item > .fixed-header-button {
    margin-right: 0 !important;
  }

  .mobile-header__favorite-button > .header-favorite-icon {
    display: block;
    width: 24px;
    height: 24px;
    color: var(--custom-accent-color-400);
  }

  .mobile-header__favorite-button::before {
    content: none;
  }
}

/* The favorites reminder paragraph should remain regular weight on desktop and mobile. */
.section-favorite .favorite-aside p {
  font-weight: 400 !important;
}

/* Keep the desktop location and favorites controls in separate columns on HD widths. */
@media (min-width: 992px) and (max-width: 1280px) {
  .__header .row:has(.options-box .nav-items .location-caret) > [class*="col-"]:has(.options-box .nav-items .location-caret):not(:has(.search-box)):not(:has(.catalog-btn)) {
    flex: 0 0 264px !important;
    width: 264px !important;
    max-width: 264px !important;
  }
}

/* Mobile search: restore the original controls and keep the result list scrollable. */
@media (max-width: 767px) {
  .search-modal-window {
    position: fixed !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100vh !important;
    height: 100dvh !important;
    max-height: 100vh !important;
    max-height: 100dvh !important;
    background: var(--custom-white-color);
    box-shadow: none;
    overflow: hidden;
  }

  .search-modal-window__input {
    height: 45px;
    min-width: 0;
    padding: 0 74px 0 15px !important;
    border: var(--custom-border-width) solid var(--custom-border-color);
    border-bottom: 1px solid var(--custom-accent-color-400);
    background: var(--custom-gray-color-100);
    color: var(--custom-black-color);
    font-family: inherit;
    font-size: 14px;
    box-shadow: none;
  }

  .search-modal-window__input:focus,
  .search-modal-window__input:focus-visible {
    outline: none;
    border: var(--custom-border-width) solid var(--custom-border-color);
    border-bottom: 1px solid var(--custom-accent-color-400);
    background: var(--custom-gray-color-100);
    box-shadow: none;
  }

  .search-modal-window__clear-input {
    right: 15px;
    width: 55px;
  }

  .search-modal-window__search-results {
    box-sizing: border-box;
    height: calc(100vh - 62px);
    height: calc(100dvh - 62px);
    max-height: calc(100dvh - 62px);
    padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px));
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    background: var(--custom-white-color);
  }
}

/* Keep saved product details and their controls within each phone-width row. */
@media (max-width: 769px) {
  .section-favorite .cart-item--favorite {
    display: grid !important;
    grid-template-columns: 24px 68px minmax(0, 1fr) !important;
    grid-template-rows: auto auto;
    column-gap: 8px !important;
    row-gap: 8px !important;
    align-items: start !important;
    min-width: 0;
    padding: 10px 0 !important;
  }

  .section-favorite .cart-item--favorite > .d-flex.flex-row {
    display: contents !important;
  }

  .section-favorite .cart-item--favorite > .d-flex:not(.flex-row) {
    display: contents !important;
  }

  .section-favorite .cart-item--favorite .cart-item--info {
    grid-column: 3;
    grid-row: 1;
    width: 100% !important;
    min-width: 0 !important;
  }

  .section-favorite .cart-item--favorite .cart-item__checkbox {
    grid-column: 1;
    grid-row: 1 / span 2;
    align-self: center;
    flex: 0 0 24px !important;
    width: 24px;
  }

  .section-favorite .cart-item--favorite .cart-item__image-wrapper {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: start;
    flex: 0 0 68px !important;
    width: 68px !important;
    height: 76px !important;
    margin: 0 !important;
  }

  .section-favorite .cart-item--favorite .cart-item__image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  .section-favorite .cart-item--favorite .product-item__art {
    flex: 0 1 auto;
    font-size: 11px !important;
    line-height: 1.2;
  }

  .section-favorite .cart-item--favorite .product-item__name {
    min-width: 0;
    font-size: 14px !important;
    line-height: 1.3 !important;
    overflow-wrap: anywhere;
  }

  .section-favorite .cart-item--favorite .product-item__cost-product {
    flex: 0 0 auto;
    white-space: nowrap;
    font-size: 13px !important;
  }

  .section-favorite .cart-item--favorite .cart-item__buttons {
    display: flex !important;
    grid-column: 3;
    grid-row: 2;
    flex: 0 0 auto !important;
    flex-flow: row nowrap !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 8px !important;
    width: 100% !important;
    min-width: 0 !important;
  }

  .section-favorite .cart-item--favorite .cart-item__buttons > .d-flex:has(.product-item__cost-product) {
    display: flex !important;
    flex: 0 0 auto !important;
    order: 2;
    flex-flow: row nowrap !important;
    align-items: center !important;
    width: max-content !important;
    min-width: 0 !important;
  }

  .section-favorite .cart-item--favorite .btn-plaintext:not(.selected-to-cart) {
    flex: 0 0 28px !important;
    width: 28px !important;
    min-width: 28px !important;
    height: 36px;
    padding: 0 !important;
  }

  .section-favorite .cart-item--favorite .btn-plaintext.selected-to-cart,
  .section-favorite .cart-item--favorite .st-button_add-to-cart {
    flex: 0 0 42px !important;
    order: 1;
    width: 42px !important;
    min-width: 42px !important;
    height: 36px !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .section-favorite .cart-item--favorite .cart-item__delete-button {
    flex: 0 0 28px !important;
    order: 3;
    width: 28px !important;
    min-width: 28px !important;
    height: 36px !important;
    margin-left: auto !important;
    padding: 0 !important;
  }

  .section-favorite .favorite-aside-bottom-buttons--mobile {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 10px;
    row-gap: 8px;
    align-items: center;
  }

  .section-favorite .favorite-aside-bottom-buttons--mobile .favorite-aside-bottom-checkbox {
    grid-column: 1;
    grid-row: 1;
  }

  .section-favorite .favorite-aside-bottom-buttons--mobile > .selected-to-cart {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    margin: 0 !important;
  }

  .section-favorite .favorite-aside-bottom-buttons--mobile > .favorite-aside-bottom-remove {
    grid-column: 1;
    grid-row: 2;
    justify-self: start;
    width: auto !important;
    height: auto !important;
    min-height: 22px !important;
    line-height: 1.3 !important;
    margin: 0 !important;
    padding: 0 !important;
  }
}

@media (max-width: 360px) {
  .section-favorite .favorite-aside-bottom-buttons--mobile {
    grid-template-columns: minmax(0, 1fr);
  }

  .section-favorite .favorite-aside-bottom-buttons--mobile > .selected-to-cart {
    grid-column: 1;
    grid-row: 2;
  }

  .section-favorite .favorite-aside-bottom-buttons--mobile > .favorite-aside-bottom-remove {
    grid-column: 1;
    grid-row: 3;
  }
}

/* Keep the mobile navigation icons consistent across every city domain. */
@media (max-width: 991px) {
  .bottom-mobile-menu__row > .bottom-mobile-menu-button .bottom-mobile-menu-button__icon {
    width: 30px !important;
    height: 16px !important;
    object-fit: contain;
  }

  .bottom-mobile-menu__row > .bottom-mobile-menu-button:nth-child(1) .bottom-mobile-menu-button__icon:not(.bottom-mobile-menu-button__icon_active) {
    content: url("https://stroybaza-samara.ru/media/uploads/svg/home.svg");
  }

  .bottom-mobile-menu__row > .bottom-mobile-menu-button:nth-child(1) .bottom-mobile-menu-button__icon_active {
    content: url("https://stroybaza-samara.ru/media/uploads/svg/home-hover.svg");
  }

  .bottom-mobile-menu__row > .bottom-mobile-menu-button:nth-child(2) .bottom-mobile-menu-button__icon:not(.bottom-mobile-menu-button__icon_active) {
    content: url("https://stroybaza-samara.ru/media/uploads/svg/clients.svg");
  }

  .bottom-mobile-menu__row > .bottom-mobile-menu-button:nth-child(2) .bottom-mobile-menu-button__icon_active {
    content: url("https://stroybaza-samara.ru/media/uploads/svg/clients-hover.svg");
  }

  .bottom-mobile-menu__row > .bottom-mobile-menu-button:nth-child(3) .bottom-mobile-menu-button__icon,
  .bottom-mobile-menu__row > .bottom-mobile-menu-button:nth-child(3) .bottom-mobile-menu-button__icon_active {
    content: url("https://stroybaza-samara.ru/media/uploads/svg/call.svg");
  }

  .bottom-mobile-menu__row > [data-toggle-bottom-dropdown] .bottom-mobile-menu-button__icon-wrapper {
    position: relative;
  }

  .bottom-mobile-menu__row > [data-toggle-bottom-dropdown].bottom-mobile-menu-button_active .bottom-mobile-menu-button__icon {
    display: none;
  }

  .bottom-mobile-menu__row > [data-toggle-bottom-dropdown].bottom-mobile-menu-button_active .bottom-mobile-menu-button__icon-wrapper::before,
  .bottom-mobile-menu__row > [data-toggle-bottom-dropdown].bottom-mobile-menu-button_active .bottom-mobile-menu-button__icon-wrapper::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 24px;
    height: 1px;
    background: var(--custom-black-color);
    pointer-events: none;
  }

  .bottom-mobile-menu__row > [data-toggle-bottom-dropdown].bottom-mobile-menu-button_active .bottom-mobile-menu-button__icon-wrapper::before {
    transform: translate(-50%, -50%) rotate(45deg);
  }

  .bottom-mobile-menu__row > [data-toggle-bottom-dropdown].bottom-mobile-menu-button_active .bottom-mobile-menu-button__icon-wrapper::after {
    transform: translate(-50%, -50%) rotate(-45deg);
  }

  .bottom-mobile-menu__row > .bottom-mobile-menu-button:nth-child(4) .bottom-mobile-menu-button__icon:not(.bottom-mobile-menu-button__icon_active) {
    content: url("https://stroybaza-samara.ru/media/uploads/svg/catalog.svg");
  }

  .bottom-mobile-menu__row > .bottom-mobile-menu-button:nth-child(4) .bottom-mobile-menu-button__icon_active {
    content: url("https://stroybaza-samara.ru/media/uploads/svg/catalog-hover.svg");
  }

  .bottom-mobile-menu__row > .bottom-mobile-menu-button:nth-child(5) .bottom-mobile-menu-button__icon:not(.bottom-mobile-menu-button__icon_active) {
    content: url("https://stroybaza-samara.ru/media/uploads/svg/cart.svg");
  }

  .bottom-mobile-menu__row > .bottom-mobile-menu-button:nth-child(5) .bottom-mobile-menu-button__icon_active {
    content: url("https://stroybaza-samara.ru/media/uploads/svg/cart-hover.svg");
  }
}

/* Desktop header icon artwork and dimensions. */
@media (min-width: 992px) {
  .__header .search-box .submit,
  .__header .contact-box > .fixed-header-menu .btn,
  .__header .header-mail__toggle,
  .__header .option-items li a[href*="/favorites/products"],
  .__header .option-items li a.header-cart {
    box-sizing: border-box;
    width: 30px;
    min-width: 30px;
    height: 16px !important;
    min-height: 16px !important;
    max-height: 16px !important;
    line-height: 0 !important;
    padding: 0;
  }

  .__header .options-box .header-mail-item > .header-mail {
    width: 30px;
    height: 16px;
  }

  .__header .header-mail__toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .__header .option-items li a[href*="/favorites/products"],
  .__header .option-items li a.header-cart {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .__header .contact-box > .fixed-header-menu .btn {
    display: flex !important;
    position: relative;
    align-items: center;
    justify-content: center;
    width: 30px;
    min-width: 30px;
    height: 16px;
    flex: 0 0 16px;
    font-size: 0 !important;
    line-height: 0;
  }

  .__header .contact-box > .fixed-header-menu .btn::before {
    content: "";
    display: block;
    width: 30px;
    height: 16px;
    flex: 0 0 16px;
    background: url(https://stroybaza-samara.ru/media/uploads/svg/menu-header.svg)
      no-repeat center / 30px 16px !important;
  }

  .__header .header-mail__toggle::before {
    content: "";
    display: block;
    width: 30px;
    height: 16px;
    background: url(https://stroybaza-samara.ru/media/uploads/svg/mail-header.svg)
      no-repeat center bottom / 30px 16px;
  }

  .__header .option-items li a[href*="/favorites/products"] > svg.header-favorite-icon {
    display: block;
    flex: 0 0 30px;
    width: 30px;
    height: 16px;
    clip-path: none;
    background: url(https://stroybaza-samara.ru/media/uploads/svg/fav-icon.svg)
      no-repeat center / 30px 16px;
  }

  .__header .option-items li a[href*="/favorites/products"] > svg.header-favorite-icon path {
    display: none !important;
  }

  .__header .option-items li a.header-cart img.icon-svg {
    display: none !important;
  }

  .__header .option-items li a.header-cart::before {
    content: "";
    display: block;
    flex: 0 0 30px;
    width: 30px;
    height: 16px;
    background: url(https://stroybaza-samara.ru/media/uploads/svg/cart-icon.svg)
      no-repeat center / 30px 16px;
  }
}

@media (min-width: 992px) {
  .__header .options-box .nav-items li:has(.location-caret)::before {
    content: "";
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 22px;
    height: 16px;
    background: url(https://stroybaza-samara.ru/media/uploads/svg/baza-icon.svg)
      no-repeat center bottom / 100%;
    pointer-events: none;
  }
}

/* Enlarge the supplied header and navigation icons by 4px. */
@media (min-width: 992px) {
  .__header .search-box .submit {
    width: 34px !important;
    min-width: 34px !important;
    height: 20px !important;
    min-height: 20px !important;
    max-height: 20px !important;
  }

  .__header .search-box .submit::before {
    clip-path: polygon(9px 0, 100% 0, calc(100% - 9px) 100%, 0 100%);
  }

  .__header .search-box .submit::after {
    background-size: 14px !important;
clip-path: polygon( 9.66px 1px, calc(100% - 1.56px) 1px, calc(100% - 9.66px) calc(100% - 1px), 1.56px calc(100% - 1px) ) !important;
  }

  .__header .search-box .submit:hover::after {
    background-size: 14px !important;
  }

  .__header .custom-block > button.catalog-btn,
  .__header .custom-block > button.catalog-btn::before {
    width: 34px !important;
    min-width: 34px !important;
    height: 20px !important;
    background-size: contain !important;
  }

  .__header .custom-block > button.catalog-btn {
    flex: 0 0 34px !important;
  }

  .__header .contact-box > .fixed-header-menu .btn {
    width: 34px !important;
    min-width: 34px !important;
    height: 20px !important;
    min-height: 20px !important;
    max-height: 20px !important;
    flex: 0 0 34px !important;
  }

  .__header .contact-box > .fixed-header-menu .btn::before {
    width: 34px !important;
    height: 20px !important;
    flex: 0 0 20px !important;
    background-size: contain !important;
  }

  .__header .options-box .header-mail-item > .header-mail,
  .__header .header-mail__toggle {
    width: 34px !important;
    min-width: 34px !important;
    height: 20px !important;
    min-height: 20px !important;
    max-height: 20px !important;
  }

  .__header .header-mail__toggle::before {
    width: 34px !important;
    height: 20px !important;
    background-size: contain !important;
  }

  .__header .options-box > .option-items,
  .__header .options-box .option-items > li,
  .__header .options-box .header-mail-item {
    height: 20px !important;
    min-height: 20px !important;
    max-height: 20px !important;
  }

  .__header .option-items li a[href*="/favorites/products"],
  .__header .option-items li a.header-cart {
    width: 34px !important;
    min-width: 34px !important;
    height: 20px !important;
    min-height: 20px !important;
    max-height: 20px !important;
  }

  .__header .option-items li a[href*="/favorites/products"] > img,
  .__header .option-items li a[href*="/favorites/products"] > svg.header-favorite-icon,
  .__header .option-items li a.header-cart::before {
    flex: 0 0 34px !important;
    width: 34px !important;
    height: 20px !important;
    background-size: contain !important;
    object-fit: contain;
  }

  .__header .options-box .nav-items li:has(.location-caret)::before {
    width: 26px !important;
    height: 20px !important;
    background-size: contain !important;
  }
}

@media (max-width: 992px) {
  .mobile-header__item > .fixed-header-button #openCityPopup::before {
    flex: 0 0 28px !important;
    width: 28px !important;
    height: 22px !important;
    background-size: contain !important;
  }

  .mobile-header__favorite-button > img.header-favorite-icon,
  .mobile-header__favorite-button > svg.header-favorite-icon {
    flex: 0 0 34px !important;
    width: 34px !important;
    height: 20px !important;
    object-fit: contain;
    background-size: contain !important;
  }

  .mobile-header__search-button::before {
    flex: 0 0 28px !important;
    width: 28px !important;
    height: 22px !important;
    background-size: contain !important;
  }

  .mobile-header__hamburger-button::before {
    flex: 0 0 34px !important;
    width: 34px !important;
    height: 20px !important;
    background-size: contain !important;
  }

  .search-input-group__button::before {
    width: 44px;
    height: 28px;
    clip-path: polygon(9.33px 0, 100% 0, calc(100% - 9.33px) 100%, 0 100%);
  }

  .search-input-group__button::after {
    width: 42px;
    height: 26px;
    background-size: 16px;
    clip-path: polygon(
      8.67px 0,
      100% 0,
      calc(100% - 8.67px) 100%,
      0 100%
    );
  }

  .search-input-group__button:hover::after {
    background-size: 16px;
  }

  .mm-menu .mm-listitem__btn.mm-btn--next::before,
  .mm-menu .mm-listitem__btn.mm-btn--next::after {
    width: 24px;
    height: 24px;
  }

  .mm-menu .mm-listitem__btn.mm-btn--next::after {
    height: 1px;
  }

  .mm-menu .mm-listitem__btn.mm-btn--next::before {
    width: 1px;
  }

  .mm-menu .menu-list__item_bottom > .mobile-side-menu-footer__link::before {
    flex-basis: 26px;
    width: 26px;
    height: 20px;
  }

  .mm-menu .mobile-side-menu-footer__link[href*="/cart/"]::before,
  .mm-menu .mobile-side-menu-footer__link[href*="/favorites/products"]::before {
    flex-basis: 34px;
    width: 34px;
    height: 20px;
  }

  .mm-menu .menu-list__icon {
    width: 39px;
    height: 39px;
    max-width: 39px;
    object-fit: contain;
  }

  .bottom-mobile-menu__row > .bottom-mobile-menu-button .bottom-mobile-menu-button__icon {
    width: 34px !important;
    height: 20px !important;
  }
}

@media (max-width: 767px) {
  .mobile-header__item > .fixed-header-button #openCityPopup::before {
    flex-basis: 33px !important;
    width: 33px !important;
    height: 21px !important;
    background-size: contain !important;
  }

  .mobile-side-menu-content__row .fixed-header-button .btn::before {
    width: 36px !important;
    height: 24px !important;
    background-size: contain !important;
  }
}

.favorite-aside-btn::before,
.btn-plaintext.selected-to-cart::before,
.widget .st-button_add-to-cart::before,
.product-card-v2__buttons .st-button_add-to-cart::before {
  flex-basis: 32px !important;
  width: 32px !important;
  height: 18px !important;
  background-size: contain !important;
}

.shopping-cart-btn--lg.custom-icon img.cart-icon,
.shopping-cart-btn--lg.custom-icon .custom-icon {
  width: 32px !important;
  height: 18px !important;
  object-fit: contain;
}

.fixed-header-button .btn,
.__header .options-box .nav-items li .location-caret {
  padding-bottom: 0 !important;
  border-bottom: none;
}

@media (min-width: 992px) {
  .__header .options-box {
    align-items: end;
  }

  .__header .options-box .nav-items,
  .__header .options-box .option-items {
    height: auto;
  }
}

.__header .contact-box {
  align-items: flex-end;
}

.__header .contact-box p.toggled a {
  padding-bottom: 0;
  border: none;
}

/* Align visible desktop header controls by their text baseline and keep only
   the search field's underline. */
@media (min-width: 992px) {
  .__header > .container > .row {
    align-items: flex-end !important;
  }

  .__header .custom-block,
  .__header .contact-box,
  .__header .options-box {
    align-items: flex-end !important;
  }

  .__header .row > [class*="col-"],
  .__header .fixed-header-button,
  .__header .contact-box > *,
  .__header .options-box .option-items > li {
    align-self: flex-end !important;
  }

  .__header .fixed-header-button > .btn,
  .__header .options-box .nav-items li .location-caret,
  .__header .contact-box > .fixed-header-menu .btn,
  .__header .contact-box p.toggled,
  .__header .contact-box p.toggled a,
  .__header .custom-attention--header > a,
  .__header .options-box .option-items > li > a,
  .__header .custom-block > .catalog-btn {
    padding: 0 !important;
    border: 0 !important;
    text-decoration: none !important;
    box-shadow: none !important;
  }

  .__header .fixed-header-button > .btn,
  .__header .contact-box p.toggled,
  .__header .contact-box p.toggled a,
  .__header .custom-attention--header > a {
    align-items: flex-end !important;
  }

  .__header .fixed-header-button > .btn {
    line-height: 16px !important;
  }

  .__header .fixed-header-button > .btn > img {
    align-self: center !important;
    transform: translateY(3.5px) !important;
  }

  .__header .options-box .nav-items {
    align-items: flex-end !important;
  }

  .__header .options-box .nav-items > li {
    align-self: flex-end !important;
    height: auto !important;
    min-height: 0 !important;
    line-height: 16px !important;
  }

  .__header .options-box .nav-items > li > .location-caret {
    display: flex !important;
    align-items: flex-end !important;
    height: auto !important;
    min-height: 0 !important;
    line-height: 16px !important;
  }

  .__header .contact-box p.toggled,
  .__header .contact-box p.toggled a {
    height: auto !important;
    min-height: 0 !important;
    line-height: 16px !important;
  }

  .__header .custom-attention--header > a {
    display: flex !important;
    line-height: 12px !important;
  }

  /* Lower the header labels and set the city arrow slightly lower on the text baseline. */
  .__header #openCityPopup {
    transform: translateY(3px) !important;
  }

  .__header #openCityPopup > img {
    transform: translateY(2.5px) !important;
  }

  .__header .options-box .nav-items > li > .location-caret,
  .__header .contact-box p.toggled > a {
    transform: translateY(3px) !important;
  }

  .__header .search-box .search_input {
    border: 0 !important;
    border-bottom: 1px solid #a69a6d !important;
  }

  /* Keep a consistent 1px inset along the search button's slanted frame. */
  .__header .search-box .submit::after {
    inset: 0 !important;
clip-path: polygon( 9.66px 1px, calc(100% - 1.56px) 1px, calc(100% - 9.66px) calc(100% - 1px), 1.56px calc(100% - 1px) ) !important;
  }
}

@media (min-width: 992px) {
  .__header .option-items li a[href*="/favorites/products"] > img.header-favorite-icon {
    transform: translateX(-3px) !important;
  }
}

@media (min-width: 992px) {
  .__header .search-box .submit::after {
    background-size: 12px !important;
  }

  .__header .search-box .submit:hover::after {
    background-size: 12px !important;
  }
}

@media (max-width: 991px) {
  .bottom-mobile-menu-button__counter {
    right: -5px;
    top: -3px;
  }
}

.catalog-box__first-column-end {
  position: relative;
}

@media (min-width: 992px) {
  .catalog-box {
    padding-bottom: 44px !important;
  }
}

.__header .catalog-box {
  height: 190px;
}

.catalog-box__close {
  position: absolute;
  top: calc(100% + 25px);
  left: 0;
  z-index: 3;
  display: inline-flex !important;
  width: max-content !important;
  min-width: 0 !important;
  max-width: none !important;
  height: 18px;
  flex: 0 0 auto !important;
  align-items: center;
  justify-content: flex-start;
  flex-direction: row-reverse;
  gap: 12px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #888;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  line-height: 18px;
}

.catalog-box__close-label {
  position: static !important;
  display: block !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
  height: auto !important;
  flex: 0 0 auto !important;
  margin: 0 !important;
  padding: 0 !important;
  color: inherit !important;
  font: inherit !important;
  line-height: inherit !important;
  white-space: nowrap;
}

.catalog-box__close::after {
  display: block;
  width: 12px;
  height: 12px;
  flex: 0 0 12px;
  background: linear-gradient(45deg, transparent calc(50% - 0.75px), currentColor calc(50% - 0.75px), currentColor calc(50% + 0.75px), transparent calc(50% + 0.75px)),
    linear-gradient(-45deg, transparent calc(50% - 0.75px), currentColor calc(50% - 0.75px), currentColor calc(50% + 0.75px), transparent calc(50% + 0.75px));
  content: "";
}

.catalog-box__close:hover {
  color: #666;
}

.catalog-box__close:focus-visible {
  outline: 1px solid currentColor;
  outline-offset: 2px;
}

/* Use one desktop header gap and give unused column space to search. */
@media (min-width: 992px) {
  .__header > .container > .row {
    --header-control-gap: 12px;
    gap: var(--header-control-gap) !important;
    justify-content: flex-start;
  }

  .__header > .container > .row > [class*="col-"]:has(.search-box) {
    flex: 1 1 0 !important;
    width: auto !important;
    max-width: none !important;
    min-width: 0;
    margin: 0 !important;
  }

  .__header .custom-block:has(.search-box) {
    gap: var(--header-control-gap) !important;
    margin: 0 !important;
  }

  .__header .search-box {
    flex: 1 1 0 !important;
    width: auto !important;
    max-width: none !important;
    min-width: 0;
  }

  .__header .custom-block > .fixed-header-button {
    margin: 0 !important;
  }

  .__header > .container > .row > [class*="col-"]:has(.contact-box):not(:has(.options-box)):not(:has(.search-box)),
  .__header > .container > .row > [class*="col-"]:has(.options-box):not(:has(.search-box)),
  .__header .row:has(.options-box .nav-items .location-caret) > [class*="col-"]:has(.options-box .nav-items .location-caret):not(:has(.search-box)):not(:has(.catalog-btn)) {
    flex: 0 0 auto !important;
    width: max-content !important;
    max-width: none !important;
    margin: 0 !important;
  }

  .__header .contact-box,
  .__header .options-box {
    width: max-content !important;
    gap: var(--header-control-gap) !important;
    margin: 0 !important;
    justify-content: flex-start;
  }

  .__header .options-box {
    display: flex;
  }

  .__header .options-box > .nav-items {
    flex: 0 0 auto;
    width: max-content;
  }

  .__header .options-box > .nav-items:not(:has(.location-caret)) {
    display: none;
  }

  .__header .options-box .nav-items li:has(.location-caret) {
    flex: 0 0 auto;
    width: max-content;
    padding-left: 38px;
  }

  .__header .options-box .nav-items li .location-caret {
    max-width: clamp(100px, 10vw, 160px) !important;
  }

  .__header .options-box > .option-items {
    gap: var(--header-control-gap) !important;
    padding-left: 0 !important;
    margin: 0 !important;
  }

  .__header .contact-box .custom-attention--header {
    flex: 0 0 150px;
    width: 150px;
    min-width: 150px;
    max-width: 150px;
    position: relative;
    top: 3px;
  }

  .__header .contact-box a.custom-attention__desktop-link {
    display: block !important;
    width: 100%;
    max-width: none;
    min-height: 0;
    line-height: 13px !important;
    text-wrap: balance;
  }
}

@media (max-width: 991px) {
  .catalog-box__close {
    display: none;
  }
}

/* Keep the desktop header's sloping white panel when it becomes fixed.
   Shape only the background so menus and popups can extend beyond it. */
@media (min-width: 992px) {
  header,
  header.fixed,
  header .__header,
  header .__header.fixed {
    background: transparent;
    border: 0;
    box-shadow: none;
    pointer-events: none;
    transition: none;
  }

  header,
  header.fixed {
    position: fixed;
    top: 0;
    height: 70px;
  }

  header .__header,
  header.fixed .__header {
    isolation: isolate;
    position: static;
    height: 70px;
    padding-block: 0;
    transform: none;
  }

  main {
    padding-top: 60px;
  }

  .__header > .container {
    position: relative;
    display: flex;
    align-items: center;
    height: 70px;
    pointer-events: auto;
    transition: none;
  }

  .__header > .container > .row {
    transform: translateY(-2.5px);
  }

  .__header > .container::before {
    /* Match the 57.09 / 52.70 diagonal used by pattern-offer.svg. */
    --header-panel-cut: calc(70px * 57.09 / 52.70);
    content: "";
    position: absolute;
    z-index: -1;
    top: 0;
    left: 50%;
    width: calc(100% + 140px);
    max-width: 100vw;
    height: 70px;
    transform: translateX(-50%);
    background: var(--custom-white-color);
    clip-path: polygon(0 0, 100% 0, calc(100% - var(--header-panel-cut)) 100%, var(--header-panel-cut) 100%);
    pointer-events: none;
    transition: none;
  }

  header > :not(.__header) {
    pointer-events: auto;
  }

  header[data-header-scrolled] .__header > .container {
    filter: none;
  }

  header[data-header-scrolled] .__header > .container::before {
    background: var(--custom-border-color);
    filter: none;
  }

  header[data-header-scrolled] .__header > .container::after {
    --header-panel-cut: calc(70px * 57.09 / 52.70);
    content: "";
    position: absolute;
    z-index: -1;
    top: 0;
    left: 50%;
    width: calc(100% + 140px);
    max-width: 100vw;
    height: 70px;
    transform: translateX(-50%);
    background: var(--custom-white-color);
    clip-path: polygon(
      1.474px 0,
      calc(100% - 1.474px) 0,
      calc(100% - var(--header-panel-cut) - .391px) calc(100% - 1px),
      calc(var(--header-panel-cut) + .391px) calc(100% - 1px)
    );
    pointer-events: none;
  }

  /* The backdrop belongs to the page and scrolls away, leaving the fixed
     header transparent outside its white panel. Match the loader's gray. */
  .frontpage .desktop-header-frame {
    position: relative;
    height: 0;
  }

  .frontpage .desktop-header-frame::before {
    content: "";
    position: absolute;
    z-index: 0;
    inset: 0 0 auto;
    height: 70px;
    background: var(--custom-gray-color-400);
    pointer-events: none;
  }

  .frontpage:has(.custom-big-slide .slick-initialized) .desktop-header-frame::before {
    background: var(--custom-black-color);
  }

  .frontpage .desktop-header-frame:has(.catalog-box.show) > header {
    background: var(--custom-gray-color-100) !important;
    z-index: 1002 !important;
  }

  .frontpage header:not([data-header-scrolled]) {
    position: absolute;
    z-index: auto;
    background: var(--custom-gray-color-400);
  }

  .frontpage:has(.custom-big-slide .slick-initialized) header:not([data-header-scrolled]) {
    background: var(--custom-black-color);
  }

  .frontpage .desktop-header-frame > header:not([data-header-scrolled]) {
    background: transparent;
  }

  /* Keep the original banner geometry and let its photos overlap the one
     white header panel, while controls and popups stay above the photos. */
  .frontpage header:not([data-header-scrolled]) .__header {
    isolation: auto;
  }

  .frontpage header:not([data-header-scrolled]) .__header > .container::before {
    z-index: 1;
  }

  .frontpage header:not([data-header-scrolled]) .__header > .container > .row {
    position: relative;
    z-index: 3;
  }

  /* Keep the catalog dropdown above the hero slider without lifting the
     whole header layer, so banner imagery can still overlap the header. */
  .frontpage .desktop-header-frame .catalog-box {
    position: relative;
    z-index: 20;
    pointer-events: auto;
  }

  /* Keep live search suggestions above the homepage category tiles. The
     header only rises while the suggestion panel contains results. */
  .frontpage .desktop-header-frame > header:has(.__header #search-result:not(:empty)) {
    z-index: 1002;
  }

  .frontpage .custom-big-slide .offer-slider {
    background: transparent;
  }

  .frontpage .custom-big-slide:has(.slick-initialized) {
    background: transparent;
  }

  /* The loading placeholder must not cover the bottom of the white panel. */
  .frontpage .custom-big-slide:not(:has(.slick-initialized)) {
    z-index: 0;
  }
}

@media (min-width: 992px) {
  .catalog-box {
    margin-top: 0 !important;
  }

  /* The shaped header is 10px shorter; extend the patterned layer to its edge
     while keeping the banner's foreground content and total height in place. */
  .frontpage .custom-big-slide .offer-slider {
    padding-top: 10px;
  }

  .frontpage .custom-big-slide .offer-slider-inner {
    padding-bottom: 10px;
  }

  .frontpage .custom-big-slide .offer-slider-inner::before {
    height: 100%;
  }

  .frontpage .custom-big-slide .offer-slider-inner > .container {
    transform: translateY(10px);
  }
}

/* Search results: visually join the result summary into a two-line heading. */
.catalog-block > .content-title:has(+ .content-title) {
  margin-bottom: 0;
}

/* Roofing calculator: align the CMS widget with the Stroybaza visual system. */
:root .roof-calc {
  --rc-accent: var(--custom-accent-color-500);
  --rc-accent-dark: var(--custom-accent-color-400);
  --rc-accent-soft: var(--custom-gray-color-100);
  --rc-ink: var(--custom-black-color);
  --rc-muted: var(--custom-gray-color-700);
  --rc-line: var(--custom-border-color);
  --rc-surface: var(--custom-white-color);
  width: 100% !important;
  max-width: none !important;
  font-family: inherit;
  font-size: 13px;
  line-height: 1.4;
  color: var(--custom-black-color);
}

:root .roof-calc .roof-calc__products {
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}

:root .roof-calc .roof-calc__products--choices {
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}

@media (max-width: 767px) {
  :root .roof-calc .roof-calc__products--choices {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

:root .roof-calc *,
:root .roof-calc *::before,
:root .roof-calc *::after {
  border-radius: 0 !important;
  box-shadow: none !important;
}

:root .roof-calc .roof-calc__stage {
  width: 100%;
  padding-left: 0 !important;
}

:root .roof-calc {
  margin: -9px 0 50px;
}

:root .roof-calc .roof-calc__stage::before {
  display: none !important;
  content: none !important;
}

:root .roof-calc .roof-calc__stage:not(.roof-calc__stage--last)::after {
  display: block;
  width: 100%;
  height: 1px;
  margin: 60px 0;
  background: var(--custom-border-color);
  content: "";
}

:root .roof-calc .roof-calc__stage-title {
  display: none !important;
}

:root .roof-calc .roof-calc__eyebrow {
  color: var(--rc-accent-dark);
  font-weight: 400;
  letter-spacing: 0;
  margin-bottom: 12px;
  text-transform: none;
}

:root .roof-calc .roof-calc__stage-title b {
  position: static !important;
  display: block;
  flex: 0 0 auto;
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  color: var(--custom-accent-color-400);
  font-size: 13px !important;
  font-weight: 500;
  letter-spacing: normal;
  line-height: inherit;
}

:root .roof-calc .roof-calc__card,
:root .roof-calc .roof-calc__complex {
  width: 100%;
  margin-bottom: 50px;
}

:root .roof-calc .roof-calc__card {
  border: 0 !important;
  background: transparent;
  padding: 0 !important;
}

:root .roof-calc .roof-calc__dimensions {
  align-items: start;
  border: var(--custom-border-width) solid var(--custom-border-color) !important;
  background: var(--custom-white-color);
  padding: 30px !important;
}

:root .roof-calc .roof-calc__card:has(.roof-calc__layout-head) {
  border: var(--custom-border-width) solid var(--custom-border-color) !important;
  background: var(--custom-white-color);
  padding: 30px !important;
}

:root .roof-calc .roof-calc__complex {
  border: 0 !important;
  background: transparent;
  padding: 0 !important;
}

:root .roof-calc .roof-calc__complex .roof-calc__form .form-group-inline > button {
  width: 144px !important;
  min-width: 144px;
  max-width: 144px;
}

:root .roof-calc .roof-calc__title {
  margin: 0 0 20px;
  color: var(--custom-black-color);
  font-size: 22px !important;
  font-weight: 600 !important;
  line-height: 1.1 !important;
}

:root .roof-calc h2,
:root .roof-calc .h2 {
  font-size: 22px !important;
}

:root body.inner-page:has(.roof-calc) .article-inner__content--wide > .text-page > h1 {
  margin-bottom: 8px !important;
  font-size: 22px !important;
}

:root body.inner-page:has(.roof-calc) .article-inner__content--wide > .text-page > h1 + p {
  display: none !important;
}

:root .roof-calc .roof-calc__muted,
:root .roof-calc .roof-calc__fields label,
:root .roof-calc .roof-calc__max-length,
:root .roof-calc .roof-calc__options,
:root .roof-calc .roof-calc__table {
  color: var(--custom-gray-color-700);
  font-size: 13px;
  line-height: 1.4;
}

:root .roof-calc .roof-calc__fields .roof-calc__error {
  height: auto !important;
  min-height: 0 !important;
  margin: 2px 0 0 !important;
  line-height: 1.2;
}

:root .roof-calc .roof-calc__eyebrow,
:root .roof-calc .roof-calc__product-meta,
:root .roof-calc .roof-calc__layout-note,
:root .roof-calc .roof-calc__table th {
  color: var(--custom-gray-color-700);
  font-size: 12px;
}

:root .roof-calc .roof-calc__type,
:root .roof-calc .roof-calc__chip,
:root .roof-calc .roof-calc__option,
:root .roof-calc .roof-calc__product,
:root .roof-calc .roof-calc__layout,
:root .roof-calc .roof-calc__sheet-breakdown,
:root .roof-calc .roof-calc__summary > div,
:root .roof-calc .roof-calc__impact,
:root .roof-calc .roof-calc__notice,
:root .roof-calc .roof-calc__large-diagram {
  border-color: var(--custom-border-color);
  background: var(--custom-white-color);
  color: var(--custom-black-color);
}

:root .roof-calc .roof-calc__type:not(.is-active):hover,
:root .roof-calc .roof-calc__chip:not(.is-active):hover {
  border-color: var(--custom-accent-color-500) !important;
  background: var(--custom-white-color) !important;
  color: var(--custom-black-color) !important;
  -webkit-text-fill-color: var(--custom-black-color) !important;
  transform: none !important;
}

:root .roof-calc .roof-calc__type.is-active {
  --roof-calc-type-background: var(--custom-gray-color-100);
  border-color: var(--custom-accent-color-500) !important;
  background: var(--custom-gray-color-100) !important;
  color: var(--custom-black-color) !important;
  -webkit-text-fill-color: var(--custom-black-color) !important;
  transform: none !important;
}

:root .roof-calc .roof-calc__chip.is-active {
  border-color: var(--custom-accent-color-500) !important;
  background: var(--custom-accent-color-500) !important;
  color: var(--custom-white-color) !important;
  -webkit-text-fill-color: var(--custom-white-color) !important;
  transform: none !important;
}

:root .roof-calc .roof-calc__type.is-active span {
  color: var(--custom-black-color) !important;
  -webkit-text-fill-color: var(--custom-black-color) !important;
}

:root .roof-calc .roof-calc__option:has(input:checked),
:root .roof-calc .roof-calc__product.is-active {
  border-color: var(--custom-accent-color-500) !important;
  color: var(--custom-black-color) !important;
  transform: none !important;
}

:root .roof-calc .roof-calc__option:has(input:checked) {
  background: var(--custom-gray-color-100) !important;
}

:root .roof-calc .roof-calc__product.is-active,
:root .roof-calc .roof-calc__product.is-active:hover {
  background: var(--custom-white-color) !important;
}

:root .roof-calc .roof-calc__type {
  transition: background-color .2s, border-color .2s, color .2s;
}

:root .roof-calc .roof-calc__chip {
  box-sizing: border-box;
  display: inline-flex;
  min-height: 34px !important;
  height: 34px;
  align-items: center;
  justify-content: center;
  padding: 0 15px !important;
  font-size: 13px !important;
  font-weight: 400 !important;
  line-height: 1.2;
  transition: background-color .2s, border-color .2s, color .2s;
}

:root .roof-calc .roof-calc__chip.is-active {
  font-weight: 400 !important;
}

:root .roof-calc .roof-calc__fields label {
  font-size: 13px !important;
  font-weight: 400 !important;
}

:root .roof-calc .roof-calc__muted,
:root .roof-calc .roof-calc__max-length {
  font-size: 13px !important;
  font-weight: 400 !important;
  line-height: 1.4;
}

:root .roof-calc input[type="number"],
:root .roof-calc select {
  font-weight: 400 !important;
}

:root .roof-calc .roof-calc__check span {
  font-size: 13px !important;
  font-weight: 400 !important;
  line-height: 1.4;
}

:root .roof-calc .roof-calc__check small {
  font-size: 12px !important;
  line-height: 1.3;
}

:root .roof-calc .roof-calc__check input,
:root .roof-calc .roof-calc__option input {
  appearance: none;
  display: inline-grid;
  box-sizing: border-box;
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  margin: 0;
  padding: 0;
  border: 1px solid var(--custom-accent-color-500);
  background: var(--custom-white-color);
  border-radius: 0 !important;
  cursor: pointer;
  place-content: center;
}

:root .roof-calc .roof-calc__check input::before,
:root .roof-calc .roof-calc__option input::before {
  content: "";
  width: 8px;
  height: 4px;
  margin-top: -2px;
  border-bottom: 2px solid var(--custom-white-color);
  border-left: 2px solid var(--custom-white-color);
  opacity: 0;
  transform: rotate(-45deg);
}

:root .roof-calc .roof-calc__check input:checked,
:root .roof-calc .roof-calc__option input:checked {
  border-color: var(--custom-accent-color-500);
  background: var(--custom-accent-color-500);
}

:root .roof-calc .roof-calc__check input:checked::before,
:root .roof-calc .roof-calc__option input:checked::before {
  opacity: 1;
}

:root .roof-calc .roof-calc__check input:focus-visible,
:root .roof-calc .roof-calc__option input:focus-visible {
  outline: 2px solid var(--custom-accent-color-500);
  outline-offset: 2px;
}

:root .roof-calc .roof-calc__option {
  align-items: flex-start !important;
  gap: 10px;
  padding: 15px;
}

:root .roof-calc .roof-calc__option input {
  margin-top: 2px;
}

:root .roof-calc .roof-calc__type svg {
  display: none !important;
}

:root .roof-calc .roof-calc__type::before {
  position: absolute;
  right: 20px;
  left: auto;
  bottom: -50px;
  display: block;
  width: 70%;
  max-width: none;
  height: 165px;
  margin: 0;
  background-position: right bottom;
  background-repeat: no-repeat;
  background-size: contain;
  content: "";
  pointer-events: none;
}

:root .roof-calc .roof-calc__type::after {
  position: absolute;
  right: 0;
  left: 0;
  bottom: 0;
  z-index: 1;
  display: block;
  height: 50px;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0) 0%,
    var(--roof-calc-type-background, var(--custom-white-color)) 100%
  );
  content: "";
  pointer-events: none;
}

:root .roof-calc .roof-calc__type {
  position: relative;
  display: block;
  height: 128px;
  min-height: 128px;
  overflow: hidden;
  padding: 15px;
  text-align: left;
}

:root .roof-calc .roof-calc__type span {
  position: absolute;
  top: 15px;
  left: 15px;
  z-index: 1;
  display: block;
  max-width: 43%;
  text-align: left;
  z-index: 2;
}

:root .roof-calc .roof-calc__type[data-roof-type="single"]::before {
  background-image: url("https://stroybaza-samara.ru/media/uploads/svg/krovlya-1.svg");
}

:root .roof-calc .roof-calc__type[data-roof-type="gable"]::before {
  background-image: url("https://stroybaza-samara.ru/media/uploads/svg/krovlya-2.svg");
}

:root .roof-calc .roof-calc__type[data-roof-type="hip"]::before {
  background-image: url("https://stroybaza-samara.ru/media/uploads/svg/krovlya-3.svg");
}

:root .roof-calc .roof-calc__type[data-roof-type="tent"]::before {
  background-image: url("https://stroybaza-samara.ru/media/uploads/svg/krovlya-4.svg");
}

:root .roof-calc .roof-calc__type[data-roof-type="mansard"]::before {
  background-image: url("https://stroybaza-samara.ru/media/uploads/svg/krovlya-5.svg");
}

:root .roof-calc .roof-calc__type[data-roof-type="complex"]::before {
  width: 50%;
  bottom: 0;
  height: 120px;
  background-image: url("https://stroybaza-samara.ru/media/uploads/webp/krovlya-avatar.webp");
  background-position: center bottom;
  right: 10px;
}

@media (max-width: 767px) {
  :root .roof-calc .roof-calc__type {
    height: 160px;
    min-height: 160px;
    padding: 15px;
  }

  :root .roof-calc .roof-calc__type span {
    top: 15px;
    left: 15px;
    max-width: 52%;
  }

  :root .roof-calc .roof-calc__type::before {
    right: 50%;
    left: auto;
    bottom: -15px;
    width: 70%;
    height: 120px;
    transform: translateX(50%);
    background-position: center top;
  }

  :root .roof-calc .roof-calc__type[data-roof-type="complex"]::before {
    right: 50%;
    bottom: 0;
    width: 78%;
    transform: translateX(50%);
  }

  :root .roof-calc .roof-calc__layout-head > div > p {
    margin-bottom: 8px !important;
  }

}

@media (max-width: 1279px) {
  :root .roof-calc .roof-calc__type[data-roof-type="complex"] .roof-calc__type-description {
    top: 54px;
  }
}

:root .roof-calc .roof-calc__types,
:root .roof-calc .roof-calc__chips,
:root .roof-calc .roof-calc__tabs {
  gap: 10px;
}

:root .roof-calc .roof-calc__option b {
  font-size: 13px !important;
  font-weight: 400 !important;
  line-height: 1.4;
}

:root .roof-calc .roof-calc__option small {
  max-width: 190px;
  font-size: 12px !important;
  line-height: 1.3;
}

:root .roof-calc .roof-calc__type span {
  font-size: 13px !important;
  font-weight: 600 !important;
  text-transform: uppercase;
}

:root .roof-calc .roof-calc__type .roof-calc__type-description {
  position: absolute;
  top: 38px;
  left: 15px;
  z-index: 2;
  display: block;
  width: 55%;
  max-width: none;
  color: var(--custom-gray-color-700);
  font-size: 13px !important;
  font-weight: 400 !important;
  line-height: 1.3 !important;
  white-space: pre-line;
  text-align: left;
  text-transform: none;
}

:root .roof-calc .roof-calc__type span,
:root .roof-calc .roof-calc__product-name,
:root .roof-calc .roof-calc__product-select,
:root .roof-calc .roof-calc__product-select:hover,
:root .roof-calc .roof-calc__product.is-active .roof-calc__product-select {
  color: var(--custom-black-color);
  font-size: 13px;
}

:root .roof-calc .roof-calc__product-image,
:root .roof-calc .roof-calc__sheet-breakdown,
:root .roof-calc .roof-calc__summary > div,
:root .roof-calc .roof-calc__impact,
:root .roof-calc .roof-calc__layout {
  background: var(--custom-gray-color-100);
}

:root .roof-calc .roof-calc__sheet-breakdown {
  margin-top: 15px;
  padding: 20px;
}

:root .roof-calc .roof-calc__sheet-breakdown span {
  display: flex;
  height: 34px;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
}

:root .roof-calc .roof-calc__sheet-breakdown b {
  display: block;
  margin-bottom: 15px;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
}

:root .roof-calc .roof-calc__product-image {
  position: relative;
  height: auto;
  aspect-ratio: 220 / 170;
  padding: 0;
  background: transparent !important;
}

:root .roof-calc .roof-calc__product-image::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2;
  height: 32px;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0) 0%,
    var(--custom-white-color) 100%
  );
}

:root .roof-calc .roof-calc__product-body {
  gap: 5px;
  padding: 20px;
}

:root .roof-calc .roof-calc__product-name {
  line-height: 1.2 !important;
}

:root .roof-calc .roof-calc__product-meta {
  margin-top: 10px;
  margin-bottom: 10px;
  line-height: 1.2 !important;
}

:root .roof-calc .roof-calc__product-body small {
  margin-bottom: 5px;
  line-height: 100%;
}

:root .roof-calc .roof-calc__complex {
  background: transparent;
}

:root .roof-calc .roof-calc__large-diagram {
  position: relative;
  overflow: hidden;
  min-height: 320px;
  background: var(--custom-gray-color-100);
}

:root .roof-calc .roof-calc__large-diagram:has(svg[data-roof-measurements]) {
  background: var(--custom-white-color);
}

:root .roof-calc .roof-calc__large-diagram svg[data-roof-measurements] {
  position: absolute;
  bottom: -152px;
  left: 0;
  right: auto;
  z-index: 1;
  height: 500px;
  width: 100%;
  max-width: none;
  transform: none;
}

:root .roof-calc .roof-calc__large-diagram svg[data-roof-measurements] path {
  stroke-width: .15 !important;
}

:root .roof-calc .roof-calc__large-diagram:has(svg[data-roof-measurements])::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2;
  display: block;
  height: 90px;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0) 0%,
    var(--custom-white-color) 100%
  );
  content: "";
  pointer-events: none;
}

@media (max-width: 767px) {
  :root .roof-calc .roof-calc__large-diagram {
    min-height: 285px;
  }

  :root .roof-calc .roof-calc__large-diagram svg[data-roof-measurements] {
    bottom: -95px;
    left: 0;
    right: auto;
    height: 400px;
    width: 100%;
    transform: none;
  }
}

:root .roof-calc input[type="number"],
:root .roof-calc select {
  min-height: 34px;
  margin-top: 5px;
  border: var(--custom-border-width) solid var(--custom-border-color);
  background: var(--custom-white-color);
  color: var(--custom-black-color);
  font: inherit;
  font-size: 13px !important;
  padding: 0 15px;
}

:root .roof-calc input[type="number"]:focus,
:root .roof-calc select:focus {
  border: 1px solid var(--custom-accent-color-500) !important;
  outline: none !important;
  box-shadow: none !important;
}

:root .roof-calc .roof-calc__button {
  min-height: 34px;
  border: 1px solid var(--custom-accent-color-500);
  background: var(--custom-accent-color-400);
  color: var(--custom-white-color);
  -webkit-text-fill-color: var(--custom-white-color);
  font: inherit;
  font-size: 13px !important;
  font-weight: 400;
  padding: 0 20px;
  transition: background-color .2s, border-color .2s, color .2s;
}

:root .roof-calc .roof-calc__button:hover,
:root .roof-calc .roof-calc__button:focus-visible {
  border-color: var(--custom-accent-color-500) !important;
  background: var(--custom-white-color) !important;
  color: var(--custom-black-color) !important;
  -webkit-text-fill-color: var(--custom-black-color) !important;
}

:root .roof-calc .roof-calc__product-select {
  box-sizing: border-box;
  display: flex;
  height: 34px;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--custom-accent-color-500);
  background: var(--custom-white-color);
  color: var(--custom-black-color);
  -webkit-text-fill-color: var(--custom-black-color);
  font-size: 13px !important;
  font-weight: 400;
}

:root .roof-calc .roof-calc__product:not(.is-active) .roof-calc__product-select:hover {
  border-color: var(--custom-accent-color-500) !important;
  background: var(--custom-white-color) !important;
  color: var(--custom-black-color) !important;
  -webkit-text-fill-color: var(--custom-black-color) !important;
}

:root .roof-calc .roof-calc__product.is-active .roof-calc__product-select,
:root .roof-calc .roof-calc__product.is-active .roof-calc__product-select:hover {
  background: var(--custom-accent-color-500) !important;
  color: var(--custom-white-color) !important;
  -webkit-text-fill-color: var(--custom-white-color) !important;
}

:root .roof-calc .roof-calc__impact {
  gap: 10px 20px;
  margin-top: 20px;
  padding: 20px;
}

:root .roof-calc .roof-calc__impact b {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
}

:root .roof-calc .roof-calc__link,
:root .roof-calc .roof-calc__length-settings summary {
  color: var(--custom-accent-color-400);
  font-size: 13px !important;
  font-weight: 600;
  text-transform: uppercase;
}

:root .roof-calc .roof-calc__summary b {
  display: block;
  font-size: 18px;
  font-weight: 600 !important;
}

:root .roof-calc .roof-calc__product-quantity {
  position: absolute;
  top: 0;
  right: 0;
  padding: 5px 10px;
  font-size: 12px !important;
  font-weight: 600;
  text-transform: uppercase;
}

:root .roof-calc .roof-calc__summary div {
  padding: 15px;
}

:root .roof-calc .roof-calc__eyebrow,
:root .roof-calc .roof-calc__product-meta,
:root .roof-calc .roof-calc__layout-note,
:root .roof-calc .roof-calc__table th,
:root .roof-calc .roof-calc__stage-title span,
:root .roof-calc .roof-calc__product-name {
  font-size: 13px !important;
}

:root .roof-calc .roof-calc__result-head strong {
  color: var(--custom-black-color);
  font-size: 24px;
}

@media (max-width: 767px) {
  :root body.inner-page:has(.roof-calc) .article-inner__content--wide > .text-page > h1 {
    font-size: 18px !important;
  }

  :root .roof-calc {
    font-size: 14px !important;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
  }

  :root .roof-calc .roof-calc__chip,
  :root .roof-calc .roof-calc__fields label,
  :root .roof-calc .roof-calc__fields input,
  :root .roof-calc input[type="number"],
  :root .roof-calc select,
  :root .roof-calc .roof-calc__muted,
  :root .roof-calc .roof-calc__max-length,
  :root .roof-calc .roof-calc__eyebrow,
  :root .roof-calc .roof-calc__type span,
  :root .roof-calc .roof-calc__option,
  :root .roof-calc .roof-calc__option b,
  :root .roof-calc .roof-calc__check span,
  :root .roof-calc .roof-calc__button,
  :root .roof-calc .roof-calc__product-select,
  :root .roof-calc .roof-calc__link,
  :root .roof-calc .roof-calc__length-settings summary,
  :root .roof-calc .roof-calc__product-name,
  :root .roof-calc .roof-calc__product-meta,
  :root .roof-calc .roof-calc__layout-note,
  :root .roof-calc .roof-calc__stage-title span,
  :root .roof-calc .roof-calc__table th,
  :root .roof-calc .roof-calc__sheet-breakdown span {
    font-size: 14px !important;
  }

  :root .roof-calc .roof-calc__fields {
    row-gap: 10px !important;
  }

  :root .roof-calc .roof-calc__stage:not(.roof-calc__stage--last)::after {
    margin: 30px 0;
  }

  :root .roof-calc .roof-calc__fields .roof-calc__error {
    height: auto !important;
    min-height: 0 !important;
    margin: 2px 0 0 !important;
    line-height: 1.2;
  }

  :root .roof-calc .roof-calc__product {
    display: flex !important;
    min-width: 0;
    flex-direction: column !important;
    grid-template-columns: none !important;
  }

  :root .roof-calc .roof-calc__product-image {
    width: 100%;
    height: auto !important;
    aspect-ratio: 220 / 170;
    padding: 0 !important;
    flex: 0 0 auto;
  }

  :root .roof-calc .roof-calc__product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  :root .roof-calc .roof-calc__product-body {
    width: 100%;
    min-width: 0;
    flex: 0 0 auto;
    gap: 5px;
    padding: 15px;
  }

  :root .roof-calc .roof-calc__products {
    grid-template-columns: repeat(2, 1fr);
  }

  :root .roof-calc .roof-calc__product-quantity {
    width: fit-content;
    left: auto;
  }

  :root .roof-calc .roof-calc__notice {
    padding: 0;
  }

  :root .roof-calc .roof-calc__length-settings summary {
    text-align: left;
  }

  :root .roof-calc .roof-calc__title {
    font-size: 18px !important;
  }

  :root .roof-calc h2,
  :root .roof-calc .h2 {
    font-size: 18px !important;
  }

  :root .roof-calc .roof-calc__type .roof-calc__type-description {
    top: 38px;
    width: 55%;
    font-size: 13px !important;
  }

  :root .roof-calc .roof-calc__type-description {
    display: none !important;
  }

  :root .roof-calc .roof-calc__type > span:not(.roof-calc__type-description) {
    line-height: 1 !important;
  }

  :root .roof-calc .roof-calc__card {
    padding: 0 !important;
  }

  :root .roof-calc .roof-calc__dimensions {
    padding: 16px !important;
  }

  :root .roof-calc .roof-calc__card:has(+ .roof-calc__dimensions) {
    margin-bottom: 20px !important;
  }

  :root .roof-calc .roof-calc__card:has(.roof-calc__layout-head) {
    padding: 16px !important;
  }

  :root .roof-calc .roof-calc__complex {
    padding: 0 !important;
  }
}

/* Fixed contact rail */
.sb-contact-rail {
  --sb-contact-rail-width: 50px;
  /* Match the 57.09 / 52.70 diagonal used by pattern-offer.svg. */
  --sb-contact-rail-cut: calc(var(--sb-contact-rail-width) * 52.70 / 57.09);
  --sb-contact-rail-accent: var(--custom-accent-color-400, #a69a6d);
  --sb-contact-rail-ink: var(--custom-black-color, #1a1a1a);
  --sb-contact-rail-bg: var(--custom-white-color, #fff);
  --sb-contact-rail-hover: var(--custom-gray-color-100, #f5f5f7);
  --sb-contact-rail-shape: polygon(
    0 var(--sb-contact-rail-cut),
    100% 0,
    100% calc(100% - var(--sb-contact-rail-cut)),
    0 100%
  );
  --sb-contact-rail-avatar-shape: polygon(
    0 var(--sb-contact-rail-cut),
    100% 0,
    100% 100%,
    0 calc(100% - var(--sb-contact-rail-cut))
  );
  position: fixed;
  right: 0;
  top: 50%;
  z-index: 999998;
  display: flex;
  width: var(--sb-contact-rail-width);
  flex-direction: column;
  gap: 15px;
  transform: translateY(-50%);
  color: var(--sb-contact-rail-ink);
  font-family: inherit;
}

.sb-contact-rail,
.sb-contact-rail * {
  box-sizing: border-box;
}

.sb-contact-rail__panel,
.sb-contact-rail__operator-panel {
  position: relative;
  isolation: isolate;
  width: 100%;
  flex: 0 0 auto;
}

.sb-contact-rail__panel {
  display: flex;
  height: 277px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0;
}

.sb-contact-rail__panel::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  clip-path: var(--sb-contact-rail-shape);
  background: var(--sb-contact-rail-bg);
  content: "";
}

.sb-contact-rail__mail {
  position: relative;
  display: flex !important;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  align-items: center;
  margin: 0;
}

.sb-contact-rail__messenger {
  position: relative;
  display: flex;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  align-items: center;
  margin: 0;
}

.sb-contact-rail__link,
.sb-contact-rail .header-mail__toggle {
  position: relative;
  display: flex;
  width: 24px;
  height: 24px;
  min-height: 24px;
  flex: 0 0 24px;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--sb-contact-rail-accent);
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 160ms ease, color 160ms ease;
}

.sb-contact-rail__link:visited {
  color: var(--sb-contact-rail-accent);
}

.sb-contact-rail__icon {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  display: block;
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  margin: 0;
  object-fit: contain;
  transform: translate(-50%, -50%);
}

.sb-contact-rail .header-mail__toggle {
  font-size: 0;
  line-height: 0;
}

.sb-contact-rail .header-mail__toggle::before {
  content: none;
  display: none;
}

.sb-contact-rail .header-mail__toggle[aria-expanded="true"],
.sb-contact-rail__link:hover,
.sb-contact-rail__link:focus-visible {
  background: var(--sb-contact-rail-hover);
  color: var(--sb-contact-rail-ink);
}

.sb-contact-rail .header-mail__toggle:focus-visible,
.sb-contact-rail__link:focus-visible {
  outline: 2px solid var(--sb-contact-rail-accent);
  outline-offset: -4px;
}

.sb-contact-rail .header-mail__actions {
  position: absolute;
  top: 50%;
  right: calc(100% + 20px);
  z-index: 2;
  display: flex;
  width: 190px;
  max-width: calc(100vw - 70px);
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 12px;
  transform: translateY(-50%);
  border: var(--custom-border-width) solid var(--custom-border-color);
  background: var(--sb-contact-rail-bg);
  box-shadow: none;
}

.sb-contact-rail .header-mail__actions[hidden] {
  display: none !important;
}

.sb-contact-rail .header-mail__action {
  display: flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border: 1px solid var(--sb-contact-rail-accent);
  border-radius: 0;
  background: var(--sb-contact-rail-hover);
  color: var(--sb-contact-rail-ink);
  font-family: inherit;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  transition: background-color 160ms ease, color 160ms ease;
}

.sb-contact-rail .header-mail__action:visited {
  color: var(--sb-contact-rail-ink);
}

.sb-contact-rail .header-mail__action:hover,
.sb-contact-rail .header-mail__action:focus-visible {
  border-color: var(--sb-contact-rail-accent);
  background: var(--sb-contact-rail-accent);
  color: var(--sb-contact-rail-bg);
  text-decoration: none;
}

.sb-contact-rail .header-mail__action:focus-visible {
  outline: 2px solid var(--sb-contact-rail-ink);
  outline-offset: 2px;
}

.sb-contact-rail__operator-panel {
  overflow: hidden;
  height: 180px;
  margin-top: calc(-1 * var(--sb-contact-rail-cut));
  clip-path: var(--sb-contact-rail-avatar-shape);
  background: transparent;
}

.sb-contact-rail__operator {
  position: absolute;
  inset: 0;
  display: flex;
  width: auto;
  height: auto;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  clip-path: none;
  background: var(--sb-contact-rail-bg);
  color: var(--sb-contact-rail-accent);
}

.sb-contact-rail__panel-outline,
.sb-contact-rail__operator-outline {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
  color: var(--sb-contact-rail-accent);
}

.sb-contact-rail__panel-outline path,
.sb-contact-rail__operator-outline path {
  fill: none;
  stroke: var(--sb-contact-rail-accent);
  stroke-width: 1px;
  vector-effect: non-scaling-stroke;
}

.sb-contact-rail__person {
  display: none !important;
}

.sb-contact-rail__portrait,
.sb-contact-rail__gif {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 12%;
}

.sb-contact-rail__gif {
  opacity: 0;
  pointer-events: none;
  transition: opacity 120ms ease;
}

.sb-contact-rail__operator.is-gif-active .sb-contact-rail__gif {
  opacity: 1;
}

@media (hover: hover) {
  .sb-contact-rail__link:hover {
    background: var(--sb-contact-rail-hover);
    color: var(--sb-contact-rail-ink);
  }
}

@media (max-height: 480px) {
  .sb-contact-rail {
    top: 10px;
    bottom: 10px;
    transform: none;
    overflow-y: auto;
    scrollbar-width: thin;
  }
}

@media (max-width: 767px) {
  .sb-contact-rail {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sb-contact-rail__link,
  .sb-contact-rail .header-mail__action,
  .sb-contact-rail__gif {
    transition: none;
  }

  .sb-contact-rail__gif {
    display: none;
  }
}

/* A larger AI portrait with an occasional, silent motion clip. */
.sb-contact-rail__operator[data-motion-src] .sb-contact-rail__portrait,
.sb-contact-rail__operator[data-motion-src] .sb-contact-rail__motion {
  position: absolute;
  inset: auto;
  top: 4px;
  left: 50%;
  display: block;
  width: 165px;
  max-width: none;
  height: auto;
  aspect-ratio: 2 / 3;
  margin: 0;
  object-fit: contain;
  object-position: center;
  transform: translateX(-50%);
  -webkit-mask-image: none;
  mask-image: none;
}

.sb-contact-rail__operator[data-motion-src] .sb-contact-rail__motion {
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.sb-contact-rail__operator[data-motion-src].is-video-active .sb-contact-rail__motion {
  opacity: 1;
}

/* An occasional expanding accent glow sits behind the opaque label. */
.sb-contact-rail__operator[data-motion-src]::after {
  content: "";
  position: absolute;
  z-index: 2;
  left: 26px;
  bottom: 53px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--sb-contact-rail-accent);
  filter: blur(7px);
  opacity: 0;
  transform: translate(-50%, 50%) scale(.5);
  animation: sb-ai-label-pulse 20s ease-out 2s infinite;
  pointer-events: none;
}

@keyframes sb-ai-label-pulse {
  0% { opacity: 0; transform: translate(-50%, 50%) scale(.5); }
  4% { opacity: .6; transform: translate(-50%, 50%) scale(1); }
  12% { opacity: .32; transform: translate(-50%, 50%) scale(1.35); }
  20%, 100% { opacity: 0; transform: translate(-50%, 50%) scale(1.6); }
}

.sb-contact-rail__ai-label {
  position: absolute;
  z-index: 3;
  left: 7px;
  bottom: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 18px;
  padding: 0 1px;
  border: 1px solid var(--sb-contact-rail-accent);
  background: var(--sb-contact-rail-bg);
  color: var(--sb-contact-rail-ink);
  font-family: inherit;
  font-size: 10px !important;
  font-weight: 600;
  line-height: 14px;
  letter-spacing: -0.15px;
  white-space: nowrap;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .sb-contact-rail__operator[data-motion-src]::after {
    animation: none;
    opacity: 0;
  }

  .sb-contact-rail__operator[data-motion-src] .sb-contact-rail__motion {
    display: none;
    transition: none;
  }
}

/* Temporarily hide the AI badge and its glow. */
.sb-contact-rail__ai-label,
.sb-contact-rail__operator[data-motion-src]::after {
  display: none;
  animation: none;
}

/* Show the sheet layout for every roof slope in a two-column grid. */
:root .roof-calc .roof-calc__tabs--all-slopes {
  display: none !important;
}

:root .roof-calc .roof-calc__layout--all-slopes {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: 10px;
  border: 0 !important;
  background: transparent !important;
  padding: 0 !important;
}

:root .roof-calc .roof-calc__slope-layout {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: var(--custom-border-width) solid var(--custom-border-color);
  background: var(--custom-gray-color-100);
  padding: 15px;
}

:root .roof-calc .roof-calc__slope-layout-title {
  margin: 0 0 10px;
  color: var(--custom-black-color);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
}

:root .roof-calc .roof-calc__slope-layout-drawing svg {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  margin: 0 auto;
}

:root .roof-calc .roof-calc__slope-layout-drawing {
  display: flex;
  flex: 1 1 auto;
  min-height: 0;
  align-items: center;
  justify-content: center;
}

:root .roof-calc .roof-calc__slope-layout-details {
  margin: auto 0 0;
  padding-top: 10px;
  color: var(--custom-gray-color-700);
  font-size: 12px;
  line-height: 1.35;
}

@media (max-width: 767px) {
  :root .roof-calc .roof-calc__layout--all-slopes {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Keep the cookie notice square and flat on every screen size. */
#cookie-modal,
#cookie-modal .cookie-modal__content {
  border-radius: 0 !important;
  box-shadow: none !important;
}

#cookie-modal .cookie-modal__content {
  border: var(--custom-border-width) solid var(--custom-border-color) !important;
}

@media (max-width: 991px) {
  .mm-menu .mm-panel:first-child > .mm-listview > .menu-list__item:first-child[data-mm-child] > .menu-list__link {
    color: var(--custom-accent-color-400, #a69a6d) !important;
  }
}

.catalog-box.show {
  position: relative;
  z-index: 20 !important;
  pointer-events: auto;
  height: auto;
  margin-top: -70px !important;
  padding-top: 100px;
  padding-bottom: 60px !important;
}

@media (min-width: 992px) {
  /* Only lift the white header panel while the catalog is open. */
  header:has(.catalog-box.show) .__header > .container {
    z-index: 21;
  }

  .frontpage .desktop-header-frame .catalog-box.show {
    z-index: 20 !important;
    pointer-events: auto;
    margin-top: 0 !important;
    padding-top: 30px !important;
  }
}

@media (max-width: 767px) {
  :root .roof-calc .roof-calc__chips {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  :root .roof-calc .roof-calc__chips > .roof-calc__chip {
    width: 100%;
    min-width: 0;
    justify-content: center;
  }

  :root .roof-calc .roof-calc__type span {
    font-size: 13px !important;
  }

  :root .roof-calc .roof-calc__length-settings summary {
    margin-top: 20px;
    margin-bottom: 20px;
  }
}



/* Compact inline consent feedback, aligned with the consent label. */
.privacy-policy {
  --sb-consent-error-color: #b54b55;
}

footer .privacy-policy {
  --sb-consent-error-color: #e29299;
}

:root .privacy-policy .sb-consent-error {
  display: block;
  margin: 4px 0 0;
  padding: 0 0 0 25px;
  color: var(--sb-consent-error-color) !important;
  font-size: 11px !important;
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: 0;
  text-transform: none;
  overflow-wrap: break-word;
}

:root .privacy-policy.sb-consent-invalid input[name="form_agree"] + label::before {
  border-color: var(--sb-consent-error-color) !important;
}


/* Neutral separators supplied by the CMS and the mobile menu library. */
/* Legacy CMS components do not all use the shared border token. Only recolor
   their existing edges, so mobile borderless layouts stay borderless. */
:root .catalog-filter .catalog-filter-body,
:root .catalog-filter__bottom,
:root .catalog-side__content,
:root .city-select-box__search,
:root .city-select-box__trigger,
:root .city-select-box__search-input,
:root .city-select-dropdown,
:root .your-city-window,
:root .your-city-window::after,
:root .pagination .prev,
:root .privilege-item,
:root .product-slider--full .item,
:root .lk-doc-line,
:root .history-orders__head-item,
:root .history-order-item,
:root .history-order-item div,
:root .table table th,
:root .table table td,
:root .review-item--answer,
:root .form-captcha .captcha,
:root .delivery-choice--wide,
:root .delivery-choice .delivery-total,
:root .shopping-cart-item,
:root .cart-item,
:root .cart-item--favorite,
:root .comparison__side,
:root .comparison-delete,
:root .ordered-table td,
:root .product-item-comparison__input-line input,
:root .product-item__input-line input,
:root .product-title-block,
:root .product-file,
:root .product__title-block,
:root .product__navigation-wrapper,
:root .product-short__navigation-wrapper,
:root .product-sidebar__sidebar-content,
:root .product-sidebar__sidebar-top,
:root .product-content,
:root .document-item,
:root .order-status-block__sub-title_table,
:root .order-status-block__table-row_head,
:root .order-status-block__table-row_post-head,
:root .order-status-block__row_top,
:root .tire-section .tab-content,
:root .g-content,
:root .widget,
:root .new-slide-item,
:root .dropdown-select,
:root .dropdown-select-ul,
:root .styled-select,
:root .custom__accordion,
:root .custom__accordion .acc__toggle:not(.acc__toggle-inner),
:root .side-menu,
:root .safety-message-fixed__popup,
:root .product-item--wide:not(:hover),
:root .product-item__parameter,
:root .additional-product,
:root .product-card__head,
:root .product-card__navigation,
:root .product-v2 .product-card__sidebar-top,
:root .owl-pagination--compare,
:root .promotional-code-input,
:root .parameter-select .selected-option,
:root .parameter-select .select-search-input,
:root .parameter-select .select-options,
:root .portfolio-widget,
:root .search-result-body,
:root .search-default-input,
:root .blog-aside-content,
:root .blog-aside-article + .blog-aside-article,
:root .select__content,
:root .select__option,
:root .search-select__content,
:root .search-select__option,
:root .product-counter {
  border-color: var(--custom-border-color);
}

:root #sync2 .owl-item:not(.current) .item {
  border-color: var(--custom-border-color);
}

:root .city-select-box__trigger:is(:hover, :focus-within),
:root .city-select-box.open .city-select-box__trigger,
:root .city-select-box__search-input:focus {
  border-color: var(--custom-accent-color-500);
}

:root :is(.input-number, .product-input-number, .product-counter):is(:focus-within, :active, .product-counter_active):not(.product-counter_disabled):not(:has(input:disabled)) {
  border-color: var(--custom-accent-color-500) !important;
}

.mm-menu {
  --mm-color-border: var(--custom-border-color);
}

.footer-bottom {
  border-top: 0;
}

hr {
  height: 0;
  border: 0;
  border-top: var(--custom-border-width) solid var(--custom-border-color);
}


.mobile-side-menu-footer,
.amk-projects__big-image {
  border-color: var(--custom-border-color) !important;
  border-width: var(--custom-border-width);
}

.calculate-delivery [class*="-traffic__switcher"],
.calculate-delivery [class*="-listbox__panel"] {
  border-color: var(--custom-border-color);
  border-width: var(--custom-border-width);
}

/* The social menu is enabled by the Moscow static widget markup only. */
.sb-contact-rail__social {
  position: relative;
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
}

.sb-contact-rail__social-actions {
  position: absolute;
  right: calc(100% + 20px);
  bottom: -35px;
  z-index: 3;
  display: grid;
  grid-template-columns: 26px;
  gap: 8px;
  width: max-content;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--sb-contact-rail-accent);
}

.sb-contact-rail__social-actions[hidden] {
  display: none !important;
}

.sb-contact-rail__social-actions.is-popover {
  position: fixed;
  inset: auto;
}

.sb-contact-rail__social-actions::backdrop {
  background: transparent;
  pointer-events: none;
}

.sb-contact-rail__social-link {
  display: flex;
  width: 26px;
  height: 26px;
  margin: 0;
  padding: 0;
  color: var(--sb-contact-rail-accent);
  text-decoration: none;
}

.sb-contact-rail__social-icon {
  display: block;
  width: 26px;
  height: 26px;
}

.sb-contact-rail__social-toggle .sb-contact-rail__icon,
.sb-contact-rail__social-toggle .sb-contact-rail__icon *,
.sb-contact-rail__social-icon,
.sb-contact-rail__social-icon * {
  color: #B5AA7D;
}

.sb-contact-rail__social-link:visited {
  color: var(--sb-contact-rail-accent);
}

.sb-contact-rail__social-toggle[aria-expanded="true"],
.sb-contact-rail__social-link:is(:hover, :focus-visible) {
  color: var(--sb-contact-rail-ink);
}

.sb-contact-rail__social-link:focus-visible {
  outline: 2px solid var(--sb-contact-rail-accent);
  outline-offset: 3px;
}

/* A live calculation stops at the end of its own content, before the footer. */
main.roof-calc-page {
  overflow: clip;
}

:root .roof-calc--live-flow {
  padding-bottom: 0 !important;
}

:root .roof-calc--live-flow .roof-calc__stage {
  scroll-margin-top: 90px;
}

.roof-calc__live-anchor {
  display: none;
}

.roof-calc__live-note {
  display: none;
}

:root .roof-calc--result-ready .roof-calc__live-shell,
:root .roof-calc--result-ready .roof-calc__live-anchor {
  display: none !important;
}

@media screen and (min-width: 992px) {
  :root .roof-calc--live-flow .roof-calc__live-anchor {
    display: block;
    height: 80px;
  }

  :root .roof-calc--live-flow .roof-calc__live-shell {
    position: sticky;
    bottom: 0;
    left: auto;
    right: auto;
    width: 100%;
  }

  :root .roof-calc--live-flow .roof-calc__live-shell.is-docked {
    position: relative;
    bottom: auto;
    z-index: 1;
    height: auto;
  }

  :root .roof-calc--live-flow .is-docked .roof-calc__live {
    height: auto;
    grid-template-rows: 70px auto;
  }

  :root .roof-calc--live-flow .is-docked .roof-calc__live-note {
    display: block;
    position: relative;
    isolation: isolate;
    grid-column: 1 / -1;
    grid-row: 2;
    top: -1px;
    left: 0;
    width: 100%;
    height: 70px;
    min-height: 70px;
    box-sizing: border-box;
    margin: 0 0 -1px;
    padding: 16px max(0px, calc(100% - 590px)) 16px 0;
    color: var(--custom-gray-color-700);
    font-size: 13px;
    font-weight: 400;
    line-height: 18px;
    text-align: left;
  }

  :root .roof-calc--live-flow .roof-calc__live-note::before,
  :root .roof-calc--live-flow .roof-calc__live-note::after {
    content: "";
    position: absolute;
    z-index: -2;
    top: 0;
    left: var(--rc-live-frame-center, 50%);
    width: var(--rc-live-frame-width, calc(100% + 140px));
    height: 100%;
    transform: translateX(-50%);
    background: var(--custom-border-color);
    clip-path: polygon(0 0, 100% 0, calc(100% - var(--rc-live-cut)) 100%, var(--rc-live-cut) 100%);
    pointer-events: none;
  }

  :root .roof-calc--live-flow .roof-calc__live-note::after {
    z-index: -1;
    background: var(--custom-white-color);
    clip-path: polygon(
      2.557px 1px,
      calc(100% - 2.557px) 1px,
      calc(100% - var(--rc-live-cut) - .391px) calc(100% - 1px),
      calc(var(--rc-live-cut) + .391px) calc(100% - 1px)
    );
  }

}

/* Keep the consultation submit action compact on desktop and mobile. */
:root #roof-consultation .form-group-inline button {
  width: 144px;
  max-width: 100%;
}

/* Completed values, selected material and actions belong to the specification. */
:root .roof-calc--live-flow [data-step="3"] > .roof-calc__card {
  margin-bottom: 0;
  padding: 30px !important;
  border: var(--custom-border-width) solid var(--custom-border-color) !important;
  background: var(--custom-white-color);
}

:root .roof-calc--live-flow .roof-calc__result-overview {
  display: block;
}

:root .roof-calc--live-flow .roof-calc__result-overview .roof-calc__summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 20px;
}

:root .roof-calc--live-flow .roof-calc__result-overview [data-mobile-product] {
  grid-template-columns: minmax(0, 1fr);
  margin-bottom: 20px;
}

:root .roof-calc--live-flow .roof-calc__result-overview .roof-calc__product {
  display: grid !important;
  grid-template-columns: 160px minmax(0, 1fr) !important;
  align-items: center;
  margin: 0;
}

:root .roof-calc--live-flow .roof-calc__result-overview .roof-calc__product-image {
  width: 100%;
  height: auto !important;
  aspect-ratio: 4 / 3;
  padding: 0 !important;
}

:root .roof-calc--live-flow .roof-calc__result-overview .roof-calc__product-body {
  padding: 20px 100px 20px 20px !important;
}

:root .roof-calc--live-flow .roof-calc__result-ending {
  display: grid;
  grid-template-columns: 144px minmax(0, 1fr);
  align-items: end;
  gap: 20px 30px;
  margin-top: 30px;
  padding-top: 25px;
  border-top: var(--custom-border-width) solid var(--custom-border-color);
}

.roof-calc__result-consultant {
  display: flex;
  flex-direction: column;
  grid-row: span 2;
  gap: 0;
}

.roof-calc__result-consultant img {
  display: block;
  width: 144px;
  height: 100px;
  object-fit: contain;
  object-position: center bottom;
  mask-image: linear-gradient(to bottom, #000 70%, transparent 100%);
}

:root .roof-calc--live-flow .roof-calc__result-consultant .roof-calc__button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 144px;
  padding-inline: 4px;
}

.roof-calc__result-notes {
  display: grid;
  gap: 15px;
  min-width: 0;
}

:root .roof-calc--live-flow .roof-calc__result-ending .roof-calc__consult-message,
:root .roof-calc--live-flow .roof-calc__result-ending .roof-calc__notice {
  margin: 0;
  padding: 0 !important;
  border: 0;
  background: transparent;
  color: var(--custom-black-color);
  font-size: 13px;
  line-height: 1.5;
}

:root .roof-calc--live-flow .roof-calc__result-ending .roof-calc__consult-message {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
}

:root .roof-calc--live-flow .roof-calc__result-action-wrap {
  display: block;
  grid-column: 2;
  min-width: 0;
}

:root .roof-calc--live-flow .roof-calc__result-action-wrap .roof-calc__actions {
  display: flex;
  justify-content: flex-start;
  gap: 10px;
  margin: 0;
}

:root .roof-calc--live-flow .roof-calc__result-action-wrap .roof-calc__button {
  flex: 0 1 144px;
  width: 144px;
  min-width: 0;
  padding-inline: 10px;
}

:root .roof-calc--live-flow .roof-calc__result-ending .roof-calc__button.roof-calc__button--secondary {
  background: var(--custom-white-color) !important;
  border-color: var(--custom-accent-color-500) !important;
  color: var(--custom-black-color) !important;
  -webkit-text-fill-color: var(--custom-black-color) !important;
}

:root .roof-calc--live-flow .roof-calc__result-ending .roof-calc__button.roof-calc__button--secondary:is(:hover, :focus-visible) {
  background: var(--custom-accent-color-400) !important;
  color: var(--custom-white-color) !important;
  -webkit-text-fill-color: var(--custom-white-color) !important;
}

@media (max-width: 767px) {
  :root .roof-calc--live-flow .roof-calc__stage {
    scroll-margin-top: 70px;
  }
  :root .roof-calc--live-flow [data-step="3"] > .roof-calc__card {
    padding: 15px !important;
  }

  :root .roof-calc--live-flow .roof-calc__result-overview .roof-calc__summary {
    grid-template-columns: minmax(0, 1fr);
  }

  :root .roof-calc--live-flow .roof-calc__result-overview .roof-calc__summary > div {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 5px 15px;
  }

  :root .roof-calc--live-flow .roof-calc__result-overview .roof-calc__product {
    grid-template-columns: 90px minmax(0, 1fr) !important;
  }

  :root .roof-calc--live-flow .roof-calc__result-overview .roof-calc__product-body {
    padding: 35px 15px 15px !important;
  }

  :root .roof-calc--live-flow .roof-calc__result-ending {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
    margin-top: 25px;
    padding-top: 20px;
  }

  .roof-calc__result-consultant {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: end;
    grid-row: auto;
    gap: 10px;
  }

  .roof-calc__result-consultant img {
    width: 100%;
    max-width: 184px;
    height: 120px;
    object-position: left bottom;
  }

  :root .roof-calc--live-flow .roof-calc__result-consultant .roof-calc__button {
    grid-column: 2;
    width: 100%;
    min-width: 0;
  }

  :root .roof-calc--live-flow .roof-calc__result-ending .roof-calc__consult-message,
  :root .roof-calc--live-flow .roof-calc__result-ending .roof-calc__notice {
    font-size: 14px;
  }

  :root .roof-calc--live-flow .roof-calc__result-action-wrap {
    grid-column: 1;
  }

  :root .roof-calc--live-flow .roof-calc__result-action-wrap .roof-calc__actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  :root .roof-calc--live-flow .roof-calc__result-action-wrap .roof-calc__button {
    width: 100%;
  }

}

@media print {
  main.roof-calc-page {
    overflow: visible;
  }

  :root .roof-calc--live-flow .roof-calc__live-anchor,
  :root .roof-calc--live-flow .roof-calc__result-consultant,
  :root .roof-calc--live-flow .roof-calc__result-action-wrap {
    display: none !important;
  }

  :root .roof-calc--live-flow .roof-calc__result-ending {
    display: block;
  }
}


/* Saved products: one horizontally scrollable comparison with shared feature rows. */
.section-favorite.sb-favorites-ready .sb-favorites-layout {
  grid-template-columns: minmax(0, 1fr) !important;
}
.section-favorite.sb-favorites-ready .sb-favorites-layout > div {
  grid-column: 1 / -1 !important;
  min-width: 0;
}
.section-favorite.sb-favorites-ready .favorite-aside-bottom {
  display: none !important;
}
.section-favorite.sb-favorites-ready .favorite-aside-bottom-buttons--mobile {
  display: grid !important;
  grid-template-columns: max-content minmax(0, 1fr) 175px;
  gap: 10px 24px;
  align-items: center;
  margin-top: 0;
}
.section-favorite.sb-favorites-ready .catalog-head:not(.catalog-head--mobile-fixed) + .catalog-head-placeholder {
  display: none;
}
.section-favorite.sb-favorites-ready .favorite-aside-bottom-buttons--mobile .favorite-aside-bottom-checkbox {
  grid-area: 1 / 1;
}
.section-favorite.sb-favorites-ready .favorite-aside-bottom-buttons--mobile > .selected-to-cart {
  grid-area: 1 / 3;
  width: 100% !important;
  min-width: 0 !important;
  padding: 0 8px !important;
  margin: 0 !important;
}
.section-favorite.sb-favorites-ready .favorite-aside-bottom-buttons--mobile > .delete-selected {
  grid-area: 1 / 2;
  justify-self: start;
  margin: 0 !important;
  padding: 0 !important;
}
.sb-favorites-comparison { min-width: 0; width: 100%; }
.sb-favorites-comparison[hidden],
.sb-favorites-navigation[hidden],
.sb-favorites-specifications[hidden],
.section-favorite.sb-favorites-ready [hidden] { display: none !important; }
.sb-favorites-navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.sb-favorites-hint {
  margin: 0;
  color: var(--custom-gray-color-700);
  font-size: 12px;
  line-height: 1.4;
}
.sb-favorites-arrows { display: flex; flex-shrink: 0; gap: 6px; }
.sb-favorites-arrow {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid var(--custom-border-color, #d6d6d6);
  border-radius: 0;
  color: var(--custom-black-color, #1a1a1a);
  background: white;
}
.sb-favorites-arrow::before {
  content: '';
  width: 8px;
  height: 8px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  transform: translateX(-2px) rotate(45deg);
}
.sb-favorites-arrow--prev::before { transform: translateX(2px) rotate(-135deg); }
.sb-favorites-arrow:disabled { opacity: .35; cursor: default; }
.sb-favorites-arrow:not(:disabled):hover { border-color: var(--custom-accent-color-400); }
.sb-favorites-scroll {
  width: 100%;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--custom-border-color, #d6d6d6);
}
.sb-favorites-scroll:focus-visible,
.sb-favorites-toggle:focus-visible,
.sb-favorites-arrow:focus-visible,
.sb-favorites-retry:focus-visible {
  outline: 2px solid var(--custom-accent-color-400);
  outline-offset: -2px;
}
.sb-favorites-grid {
  display: grid;
  grid-template-columns: repeat(var(--sb-favorites-count), minmax(0, 1fr));
  min-width: calc(var(--sb-favorites-count) * 230px);
  width: 100%;
}
:root .section-favorite .sb-favorites-grid > .cart-item--favorite {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  grid-template-rows: 156px minmax(88px, 1fr) auto !important;
  gap: 8px !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 6px 12px 12px !important;
  border: 0 !important;
  border-right: 1px solid var(--custom-border-color, #d6d6d6) !important;
}
.sb-favorites-card-top {
  display: flex;
  grid-area: 1 / 1;
  align-self: start;
  align-items: center;
  justify-content: space-between;
  height: 28px;
  gap: 10px;
  z-index: 1;
  pointer-events: none;
}
.sb-favorites-card-top > * { pointer-events: auto; }
:root .section-favorite .sb-favorites-grid .cart-item__checkbox {
  width: 24px;
  height: 28px;
  min-height: 0;
  flex: 0 0 24px !important;
  align-self: center;
}
:root .section-favorite .sb-favorites-grid .cart-item__checkbox label {
  display: block;
  position: relative;
  height: 28px;
  margin: 0;
}
:root .section-favorite .sb-favorites-grid .cart-item__checkbox label::before,
:root .section-favorite .sb-favorites-grid .cart-item__checkbox label::after {
  left: 0;
  right: auto;
}
:root .section-favorite .sb-favorites-grid .cart-item__image-wrapper {
  position: static;
  grid-area: 1 / 1;
  width: 100% !important;
  height: 156px !important;
  max-width: none;
  max-height: none;
  margin: 0 !important;
  background: white;
}
:root .section-favorite .sb-favorites-grid .cart-item__image-wrapper img {
  width: 100%; height: 100%; object-fit: contain;
}
:root .section-favorite .sb-favorites-grid .cart-item--info {
  display: block !important;
  grid-area: auto;
  width: 100% !important;
  min-width: 0 !important;
  max-width: none;
  position: static;
  padding-right: 0 !important;
}
:root .section-favorite .sb-favorites-grid .product-item__art { font-size: 11px !important; }
:root .section-favorite .sb-favorites-grid .product-item__name {
  display: block;
  font-size: 14px !important;
  line-height: 1.4 !important;
  overflow-wrap: anywhere;
  -webkit-line-clamp: unset;
  white-space: normal;
  max-width: none;
}
:root .section-favorite .sb-favorites-grid .cart-item__buttons {
  position: static !important;
  inset: auto !important;
  transform: none !important;
  display: flex !important;
  grid-area: auto;
  flex-flow: column nowrap !important;
  align-items: stretch !important;
  justify-content: flex-end !important;
  width: 100% !important;
  min-width: 0;
  gap: 10px !important;
}
:root .section-favorite .sb-favorites-grid .cart-item__buttons > .d-flex {
  display: flex !important;
  flex: 0 0 22px !important;
  min-height: 22px;
  width: 100% !important;
  justify-content: center !important;
  align-items: flex-start !important;
  order: 0 !important;
  flex-flow: column nowrap !important;
}
:root .section-favorite .sb-favorites-grid .product-item__cost-product { font-size: 14px !important; margin: 0 !important; text-align: left; }
.sb-favorites-price-empty { min-height: 22px; margin: 0; color: var(--custom-gray-color-700); font-size: 13px; }
:root .section-favorite .sb-favorites-grid .cart-item__buttons > :is(a, button),
.sb-favorites-unavailable {
  display: flex !important;
  align-items: center;
  justify-content: center;
  flex: 0 0 34px !important;
  width: 100% !important;
  min-width: 0 !important;
  height: 34px !important;
  margin: 0 !important;
  padding: 0 8px !important;
  border-radius: 0 !important;
  font-size: 13px !important;
}
.sb-favorites-unavailable { background: var(--custom-gray-color-100); color: var(--custom-black-color); }
:root .section-favorite .sb-favorites-grid .cart-item__buttons .st-button_add-to-cart {
  gap: 4px;
  border: 1px solid var(--custom-border-color, #d6d6d6);
  background: var(--custom-gray-color-100);
  color: var(--custom-black-color, #1a1a1a);
}
:root .section-favorite .sb-favorites-grid .cart-item__buttons .st-button_add-to-cart:hover {
  border-color: var(--custom-accent-color-400);
  background: var(--custom-accent-color-400);
  color: var(--custom-white-color, white);
}
:root .section-favorite .sb-favorites-grid .cart-item__buttons .st-button__text,
:root .section-favorite .sb-favorites-grid .cart-item__buttons .st-button__title {
  display: inline !important;
  font-size: 13px !important;
  line-height: 1 !important;
}
:root .section-favorite .sb-favorites-grid .sb-favorites-card-top .cart-item__delete-button {
  position: static;
  flex: 0 0 28px !important;
  width: 28px !important;
  height: 28px !important;
  min-width: 28px !important;
  margin: 0 0 0 auto !important;
  padding: 0 !important;
  justify-content: flex-end;
  color: var(--custom-black-color, #1a1a1a);
}
.sb-favorites-toggle {
  grid-column: 1 / -1;
  padding: 0;
  border: 0;
  border-top: 1px solid var(--custom-border-color, #d6d6d6);
  border-bottom: 1px solid var(--custom-border-color, #d6d6d6);
  border-radius: 0;
  text-align: left;
  color: var(--custom-black-color, #1a1a1a);
  background: var(--custom-gray-color-100);
}
.sb-favorites-toggle-inner {
  position: sticky;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: var(--sb-favorites-view-width, 100%);
  min-height: 48px;
  padding: 12px;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
}
.sb-favorites-toggle-inner::after {
  content: '';
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  background: linear-gradient(currentColor, currentColor) center / 18px 1px no-repeat,
    linear-gradient(currentColor, currentColor) center / 1px 18px no-repeat;
  transition: transform .15s;
}
.sb-favorites-toggle[aria-expanded=true] .sb-favorites-toggle-inner::after { transform: rotate(45deg); }
.sb-favorites-specifications { grid-column: 1 / -1; }
.sb-favorites-spec-row { display: grid; grid-template-columns: repeat(var(--sb-favorites-count), minmax(0, 1fr)); }
.sb-favorites-spec-cell {
  min-width: 0;
  padding: 12px;
  border-right: 1px solid var(--custom-border-color, #d6d6d6);
  border-bottom: 1px solid var(--custom-border-color, #d6d6d6);
  overflow-wrap: anywhere;
}
.sb-favorites-spec-label { margin: 0 0 6px; color: var(--custom-gray-color-700); font-size: 12px; line-height: 1.4; }
.sb-favorites-spec-value { margin: 0; color: var(--custom-black-color, #1a1a1a); font-size: 14px; line-height: 1.4; }
.sb-favorites-spec-status .sb-favorites-spec-label { margin-bottom: 0; }
.sb-favorites-retry { padding: 0; margin-top: 8px; border: 0; background: transparent; color: var(--custom-accent-color-400); font-size: 13px; }
.sb-favorites-spec-cell:last-child,
:root .section-favorite .sb-favorites-grid > .cart-item--favorite:nth-last-child(3) { border-right: 0 !important; }
.sb-favorites-spec-row:last-child .sb-favorites-spec-cell { border-bottom: 0; }
@media (max-width: 767px) {
  .section-favorite.sb-favorites-ready .favorite-aside-bottom-buttons--mobile { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 10px; }
  .section-favorite.sb-favorites-ready .favorite-aside-bottom-buttons--mobile > .selected-to-cart { grid-area: 1 / 2; }
  .section-favorite.sb-favorites-ready .favorite-aside-bottom-buttons--mobile > .delete-selected { grid-area: 2 / 1 / 3 / -1; }
  .sb-favorites-grid { min-width: calc(var(--sb-favorites-count) * 170px); }
  :root .section-favorite .sb-favorites-grid > .cart-item--favorite {
    padding: 4px 10px 10px !important;
    grid-template-rows: 134px minmax(88px, 1fr) auto !important;
    gap: 6px !important;
  }
  :root .section-favorite .sb-favorites-grid .cart-item__image-wrapper { height: 134px !important; }
  .sb-favorites-grid--single { min-width: 0; }
  :root .section-favorite .sb-favorites-grid .product-item__name {
    display: -webkit-box !important;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    max-height: 4.2em;
    overflow: hidden;
  }
  .sb-favorites-toggle-inner, .sb-favorites-spec-cell { padding: 12px 10px; }
}

/* Do not expose the favorite badge to native cart-number updates. */
.sb-favorite-number { color: var(--custom-black-color, #1a1a1a); }
@media (max-width: 767px) {
  :root .mobile-header__favorite-button .sb-favorite-number {
    position: absolute !important;
    top: 0 !important;
    right: -2px !important;
    margin: 0 !important;
    padding: 0 !important;
    font-size: 10px;
    line-height: 1 !important;
  }
}
.sb-favorites-order:hover {
  background: var(--custom-accent-color-400);
  color: var(--custom-white-color, white);
}
.sb-favorites-order:focus-visible {
  outline: 2px solid var(--custom-accent-color-400);
  outline-offset: -2px;
}

/* Reserve the first carousel page until its native Slick instance is needed. */
.frontpage .slider-constructor.sb-home-slider-pending {
  display: grid !important;
  grid-template-columns: repeat(var(--sb-home-columns, 2), minmax(0, 1fr));
  gap: 10px;
  opacity: 1;
  visibility: visible;
}
.frontpage .slider-constructor.sb-home-slider-pending > * {
  width: auto !important;
  min-width: 0;
  margin: 0 !important;
}
.frontpage .slider-constructor.sb-home-slider-pending > [data-sb-home-slide-hidden] {
  display: none !important;
}
.frontpage .slider-constructor.sb-home-slider-pending img[data-lazy] {
  visibility: hidden;
}
