html, body {
    -webkit-text-size-adjust: 100%;
    overflow-x: hidden; /* Защита от горизонтального скролла */
}

/* Запрещаем iOS сжимать логотип и блоки с контактами */
.header__logo,
.header__contacts,
.header__menu-btn {
    flex-shrink: 0 !important;
}

.intro-points,
.why-points,
.portfolio-elem.portfolio-elem-one,
.portfolio-elem.portfolio-elem-two {
  display: none;
}

.why-wrapper {
  margin-top: 96px;
}

.align-left {
  text-align-last: left;
}

.align-right {
  text-align-last: right;
}

.align-center {
  text-align-last: center;
}

.portfolio-empty-gallery {
    font-size: 1.4rem;
    line-height: 1.4;
    padding: 24px;
    min-height: 180px;
    text-align: center;
}

.portfolio-service-list a,
.portfolio-service-list a strong {
  color: var(--main-color-2);
}

.descr__title {
  font-weight: 900;
}

section.consultation {
  margin-bottom: 32px;
}

section.consultation h2 {
  margin: 0 auto 32px auto;
}

.consultation-form__button {
  border-radius: 4px;
  max-height: 54px;
  max-width: 324px;
  width: 100%;
  font-size: 0.9rem;
  line-height: 1.1;
  font-family: "Montserrat Regular";
  padding: 8px 16px;
  margin: 0 auto;
}

.consultation-form__button:hover,
.registration__link:hover {
  text-decoration: none;
}

.registration__link {
  color: #fff;
  font-size: 0.9rem;
  line-height: 1;
  padding: 8px 16px;
}

/* Стиль для кнопки "Наверх" */
.scroll-to-top {
  position: fixed;
  right: 30px;
  bottom: 30px;
  width: 50px;
  height: 50px;
  background-color: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 24px;
  line-height: 50px;
  text-align: center;
  border-radius: 50%;
  cursor: pointer;
  display: none;
  /* по умолчанию скрыта */
  z-index: 1000;
  transition: background-color 0.3s, transform 0.3s;
}

.scroll-to-top:hover {
  background-color: rgba(0, 0, 0, 0.8);
  transform: scale(1.1);
}

/*main.document-page .descr-block.aos-init.aos-animate {*/
/*    display: none !important;*/
/*}*/

/*main.document-page .descr-wrapper {*/
/*    padding: 0;*/
/*}*/

main.content-page .descr-wrapper,
main.portfolio-page .descr-wrapper,
main.blog-page .descr-wrapper,
main.faq-page .descr-wrapper {
    margin-top: 145px;
}

.descr-block ul li,
.descr-block ol li {
  padding-left: 16px;
  margin-top: 8px;
  margin-bottom: 8px;
}

.descr-block ul li:before,
.descr-block ol li:before {
  content: "❖";
  margin-right: 12px;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  /* Вместо 15px, чтобы не перекрывать текст */
  left: 0;
  background: #fff;
  border: 1px solid #ccc;
  min-width: 250px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  border-radius: 4px;
  z-index: 1000;

  /* Плавность силами браузера */
  display: block !important;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;

  margin-top: 0;
  padding: 10px 0;
}

/* Класс, который теперь вешает наш JS при ховере */
.dropdown-menu.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-subitem {
  padding: 8px 20px;
}

.dropdown-subitem:hover {
  color: #fff;
  background-color: var(--main-color-2);
}

.dropdown-subitem:hover a {
  color: #fff;
  text-decoration: none;
}

.dropdown-link {
  text-decoration: none;
  color: #333;
  font-weight: 600;
  display: block;
}

.has-children>.dropdown-link::after {
  content: " \25BC";
  font-size: 0.8em;
}

.intro {
  position: relative;
  z-index: 98;
  /* overflow: hidden; */
  color: #ffffff;
}

.intro::before {
  content: "";
  position: absolute;
  opacity: 0.5;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  filter: blur(8px) brightness(60%);
  z-index: -1;
}

/* УПРОЩËННАЯ ВЕРССИЯ ВЕРХНЕГО ИЗОБРАЖЕНИЯ */
/* main.content-page .intro-image {
  position: absolute;
  position: absolute;
  width: 996px;
  height: auto;
  display: block;
  left: 0 !important;
  width: 100% !important;
  bottom: 00;
  overflow: hidden;
  border-radius: 10px 0 0 10px;
} */

.intro-image-modified {
  position: absolute;
  width: auto;
  height: 650px;
  display: block;
  right: 0;
  bottom: -150px;
  overflow: hidden;
  border-radius: 10px 0 0 10px;
}

.intro-image-modified>img {
  max-width: 992px;
}

.intro-image-modified::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
}

.intro-image::before {
  background: rgba(0, 0, 0, 0.6);
}

.intro strong {
  color: #fff;
  font-family: "Montserrat SemiBold";
}

.descr-item__text {
  font-size: 1rem;
  line-height: 1.3;
}

.portfolio-service-item__text {
  font-size: 0.9rem;
  width: calc(100% - 46px);
  line-height: 1.3;
}

.portfolio-service-item__text b,
.portfolio-service-item__text strong {
  display: block;
  font-family: "Montserrat SemiBold";
  font-size: 1rem;
  margin-bottom: 16px;
  padding-top: 7px;
}

.portfolio-service-item-icon {
  width: 42px;
  margin-right: 16px;
  height: 42px;
}

.advantages-item__text {
  font-size: 1rem;
  line-height: 1.3;
}

.advantages-dop-item__descr {
  font-size: 0.9rem;
  line-height: 1.2;
  text-align: left;
}

.advantages-item--title {
  cursor: pointer;
  user-select: none;
  display: flex;
  /* Делаем флекс-контейнером */
  justify-content: space-between;
  /* Текст слева, стрелка справа */
  align-items: center;
  width: 100%;
  gap: 15px;
  transition: color 0.2s ease;
}

.advantages-item--title:hover {
  color: var(--color-link, #262626);
}

/* Рисуем стрелочку на чистом CSS */
.advantages-item--title::after {
  content: '';
  display: inline-block;
  margin: -6px 0 0 12px;
  width: 10px;
  height: 10px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.3s ease-in-out;
  flex-shrink: 0;
  margin-right: 4px;
}

/* Состояние, когда заголовок активен (аккордеон открыт) */
.advantages-item--title.is-active::after {
  transform: rotate(-135deg);
  /* Плавно разворачивается вверх */
}

.advantages-item--descr {
  color: white;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  margin-top: 0;
  margin-bottom: 0;
  transition: max-height 0.35s ease-in-out, opacity 0.25s ease-in-out, margin 0.35s ease-in-out;
}

.information-wrapper div blockquote p {
  background: #dfdfdf;
  font-family: "Roboto Regular";
  font-style: normal;
  font-size: 1rem;
  line-height: 1.3;
  letter-spacing: 0;
  color: #797979;
  padding: 16px 32px;
  margin: 16px auto;
  border-radius: 19px;
}

.why-item-head__title {
  font-size: 1rem;
  line-height: 1.2;
}

/* Mobile header */

.header-mobile.open {
  z-index: 999999;
}

.header-mobile.open>.container {
  width: 100%;
  padding: 0 10px;
  overflow: scroll;
  height: 1500px;
}

.header-mobile.open {
  overflow: scroll;
  height: 1000px;
  display: inline-flex;
}

.header-mobile-item.dropdown-mobile {
  margin-top: 12px;
}

.dropdown-menu-mobile .dropdown-subitem a {
  font-size: 0.9rem;
  font-family: "Montserrat Regular", sans-serif;
  line-height: 1.2;
}

/* Breadcrumb */

.breadcrumb {
  z-index: 99;
  position: relative;
  font-family: Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.4;
  color: #fff;
  background: transparent;
  margin: 16px auto 0 auto;
  padding: 15px 0;
}

.breadcrumb>.container {
  background: #454545;
  padding: 10px 16px;
  border-radius: 10px;
  margin-bottom: 16px;
}

.breadcrumb ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
}

.breadcrumb-item {
  margin-right: 8px;
}

.breadcrumb-item a {
  color: #007bff;
  text-decoration: none;
}

.breadcrumb-item a,
.breadcrumb-item a span,
.breadcrumb-item span {
  color: #fff;
  font-size: 0.9rem;
  line-height: 1.2;
}

.breadcrumb-item a:hover {
  text-decoration: underline;
}

.breadcrumb-item.active {
  color: #6c757d;
  pointer-events: none;
}

.breadcrumb-item::after {
  content: "\2192";
  margin-left: 8px;
  color: #6c757d;
}

.breadcrumb-item:last-child::after {
  content: "";
  margin: 0;
}

/* Blog */

.blog-container {
    margin-top: 32px;
}

.blog--item {
  width: 50%;
  padding: 16px;
  background: transparent;
  margin: 0 0 24px 0;
  border-radius: 10px;
}

.blog--item h2,
.blog--item .blog--text {
  background: #e4e4e4;
}

.blog--item h2 {
  font-size: 1.1rem;
  line-height: 1.2;
  margin: 24px auto 12px auto;
  padding: 0;
}

.blog--item h3 {
  font-size: 1rem;
  line-height: 1.2;
}

.blog--item p {
  font-size: 0.9rem;
  line-height: 1.3;
}

.blog--item .blog--text {
  padding: 12px 24px;
}

.blog--item>h2 {
  margin: 12px auto 0 auto;
}

.blog--item>h2 {
  font-family: "Montserrat Medium";
  font-size: 1rem;
  border-radius: 12px 12px 0 0;
  padding: 24px;
  margin-bottom: 0;
  text-align: center;
}

.blog--item .blog-intro * {
  font-size: 1rem;
  line-height: 1.4;
}

.blog--item .blog--text {
  border-radius: 0 0 12px 12px;
}

.blog-full-text {
  display: none;
}

.blog-intro {
  background: var(--color-lightest-gray);
  text-indent: 24px;
  padding: 16px;
}

/* FAQ */

/* Общий стиль блока */
.faq--item {
  border-bottom: 1px solid #ccc;
  padding: 10px 0;
}

/* Заголовок вопроса */
.faq--question {
  font-family: "Montserrat Medium";
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-size: 1.2rem;
  margin: 0 auto !important;
  user-select: none;
  /* Чтобы текст не выделялся при частых кликах */
}

/* Стрелка */
.arrow {
  display: inline-block;
  transition: transform 0.3s;
  font-size: 1.2rem;
}

/* Поворот стрелки на 180 градусов */
.rotated {
  transform: rotate(180deg);
}

/* Текст ответа — теперь анимацией полностью рулит jQuery */
.faq--text {
  display: none;
  /* Скрываем по умолчанию встроенным методом */
  overflow: hidden;
  padding: 10px 0 15px 0;
  /* Задаем постоянный красивый отступ вокруг текста */
  font-size: 1rem;
  line-height: 1.5;
}

/* Страница-документ */

.document-page h1 {
  margin-bottom: 32px;
}

main.document-page .information-points {
  display: none !important;
}

/* Форма контактов */

#ajaxOrderForm input {
  width: 100%;
}

#ajaxOrderForm label,
#ajaxOrderForm input {
  font-size: 0.8rem;
  line-height: 1.2;
}

.contact-form-container {
  max-width: 800px;
  margin: 40px auto;
  padding: 20px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  font-family: Arial, sans-serif;
}

.contact-form-container h2 {
  text-align: center;
  color: #333;
  margin-bottom: 15px;
  font-size: 1.8em;
}

h2.faq--question {
  font-size: 1rem;
}

.contact-form-container p {
  text-align: center;
  color: #666;
  margin-bottom: 25px;
  font-size: 0.9em;
}

.contact-form-container form div {
  margin-bottom: 15px;
}

.contact-form-container label {
  display: block;
  margin-bottom: 5px;
  color: #555;
  font-family: "Montserrat SemiBold";
  font-size: 0.9em;
}

.contact-form-container input[type="text"],
.contact-form-container input[type="tel"] {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  box-sizing: border-box;
  font-size: 1em;
}

.contact-form-container input[type="text"]:focus,
.contact-form-container input[type="tel"]:focus {
  border-color: #007bff;
  outline: none;
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.contact-form-container button {
  width: 100%;
  padding: 12px 20px;
  background-color: var(--main-color-2);
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1.1em;
  font-family: "Montserrat SemiBold";
  transition: background-color 0.2s ease-in-out;
}

.contact-form-container button:hover:not(:disabled) {
  background-color: var(--main-color);
}

.contact-form-container button:disabled {
  background-color: #cccccc;
  cursor: not-allowed;
}

.contact-form-container .message {
  margin-top: 20px;
  padding: 10px;
  border-radius: 4px;
  text-align: center;
  font-size: 0.9em;
}

.contact-form-container .message.success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.contact-form-container .message.error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

main.main-page .intro__title strong {
  font-family: "Montserrat Bold", "Helvetica Neue", Helvetica, sans-serif;
  font-size: 3rem;
  font-weight: 900;
  letter-spacing: 6px;
  color: var(--main-color-2);
}

.social-icons-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

.header-contact-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.social-phone {
  width: 100%;
    margin-top: 0;
    margin-bottom: 0;
    margin-left: -27px;
}

.social-phone:nth-child(1 of .social-phone) {
  margin-top: 12px;
}

.social-phone a {
    display: block;
    font-size: 0.8rem;
    line-height: 1.35;
    font-family: "Montserrat Regular";
    white-space: nowrap;
    text-align: left;
}

.social-phone a:hover {
  text-decoration: underline;
}

.header-mobile-phone {
  display: inline-flex;
  flex-direction: column; /* Выстраивает дочерние элементы вертикально */
  align-items: flex-start; /* или center — по левому краю или по центру */
  font-family: "Montserrat Bold", sans-serif;
  font-size: 0.72rem;
  line-height: 1.2;
  color: #262626;
  text-decoration: none;
}

.header-mobile-phone:hover {
  color: var(--main-color-2, #46495f);
  text-decoration: underline;
}

@media (min-width: 768px) {
  .header-mobile-phone {
    display: none;
  }
}

/* Mobile: keep hero title below fixed header */
:root {
  --site-header-offset: 130px;
}

@media (max-width: 767px) {
  :root {
    --site-header-offset: 100px;
  }

  body {
    padding-top: var(--site-header-offset) !important;
  }

  header.header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    z-index: 1000 !important;
  }

  main {
    padding-top: 0 !important;
  }

  section.intro {
    height: auto !important;
    min-height: 0 !important;
    padding-top: 40px !important;
    padding-bottom: 32px !important;
    box-sizing: border-box !important;
  }

  .intro .container {
    height: auto !important;
  }

  .intro-wrapper {
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    align-items: stretch !important;
    height: auto !important;
    min-height: 0 !important;
    padding: 12px 0 24px !important;
    margin: 0 !important;
  }

  .intro-block {
    height: auto !important;
    min-height: 0 !important;
    width: 100% !important;
  }

  .intro__title,
  h1.intro__title,
  main.main-page .intro__title,
  main.main-page .intro__title h1 {
    margin-top: 0 !important;
    margin-bottom: 12px !important;
    position: relative !important;
    z-index: 2 !important;
  }

  .intro__slogan {
    margin-top: 12px !important;
    margin-bottom: 0 !important;
    order: 3 !important;
  }

  .intro__descr {
    margin-top: 8px !important;
    padding-top: 0 !important;
  }

  main:not(.main-page) .intro-wrapper {
    padding-top: 8px !important;
  }

  main:not(.main-page) .intro__descr {
    padding-top: 8px !important;
  }

  main:not(.main-page) .intro__slogan {
    margin-bottom: 0 !important;
  }
}

@media (min-width: 768px) {
  main:not(.main-page) .intro-wrapper {
    padding-top: 56px !important;
  }

  main:not(.main-page) .intro__title {
    margin-top: 20px;
  }
}

.free-consultation-widget {
  --fcw-height: 420px;
  --fcw-width: 58px;
  position: fixed;
  top: 50%;
  right: 0;
  z-index: 1200;
  width: var(--fcw-width);
  height: var(--fcw-height);
  padding: 22px 6px 22px 10px;
  background: var(--main-color, #ffed2e);
  color: #1c1e2a;
  border-radius: calc(var(--fcw-height) / 2) 0 0 calc(var(--fcw-height) / 2);
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.16);
  cursor: pointer;
  transform: translate(100%, -50%);
  transition: transform 0.45s ease, opacity 0.35s ease;
  opacity: 0.8;
  font-family: "Montserrat Bold", sans-serif;
  font-size: 0.72rem;
  line-height: 1.15;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.free-consultation-widget.is-visible {
  transform: translate(0, -50%);
}

.free-consultation-widget:hover {
  opacity: 1;
}

.free-consultation-widget__text {
  display: block;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

@media (max-width: 767px) {
  .free-consultation-widget {
    --fcw-height: 320px;
    --fcw-width: 50px;
    font-size: 0.64rem;
    padding: 18px 5px 18px 8px;
  }
}

.modal-product-info--price.is-hidden {
  display: none !important;
}

/* Базовое состояние иконки */
.social-icons-group a {
  display: inline-block;
  /* Обязательно, чтобы transform работал корректно */
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), filter 0.25s ease;
}

/* Эффект при наведении */
.social-icons-group a:hover {
  transform: translateY(-4px);
  /* Едет вверх */
}

.social-icon {
  display: block;
}

.social-icon img {
  width: 24px;
  height: 24px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Стили для верхнего контейнера .row */
.row {
  display: flex;
  /* Делает элементы flex-элементами */
  flex-wrap: wrap;
  /* Позволяет элементам переноситься на новую строку при нехватке места */
  /* Эти отрицательные отступы компенсируют горизонтальный padding у .gallery-container-item,
     чтобы элементы выстраивались ровно по краям родительского контейнера .row. */
  margin-left: -0.5rem;
  margin-right: -0.5rem;
}

.gallery-container {
  width: 100%;
  margin: 48px auto 24px auto;
}

/* Стили для элемента галереи, объединяющие responsive ширину колонок и padding */
.gallery-container-item {

  /* col-12: Полная ширина на очень маленьких экранах (по умолчанию) */
  width: 100%;
}

.gallery-container-item,
.gallery-container-item a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.gallery-container-item img {
  width: 100%;
  padding: 0.5rem;
  border-radius: 16px;
}

/* Вывод элементов категории плиткой */

.cards-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  /* .col-12 на мобильных */
  gap: 20px;
  margin: 24px auto;
  width: 100%;
}

/* Если карточка в каталоге всего одна */
.cards-grid:has(> .custom-card:only-child) {
    grid-template-columns: 1fr;
    max-width: 400px; /* чтобы одиночная карточка не растягивалась на всю ширину экрана */
    margin-left: auto;
    margin-right: auto;
}

/* Если карточек ровно две */
.cards-grid:has(> .custom-card:nth-last-child(2):first-child) {
    grid-template-columns: repeat(2, 1fr);
}

/* По умолчанию (например, для 3 колонок) */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* Если карточек кратно 2 */
.cards-grid.grid-cols-2 {
    grid-template-columns: repeat(2, 1fr);
}

/* Если карточек кратно 3 */
.cards-grid.grid-cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

/* .col-sm-4 - от 576px выводим по 3 в ряд */
@media (min-width: 576px) {
  .cards-grid {
    grid-template-columns: repeat(1, 1fr);
  }
}

/* .col-lg-3 - от 992px выводим по 4 в ряд */
@media (min-width: 992px) {
  .cards-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .cards-grid.repeat-3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .cards-grid.repeat-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Стили карточки */
.custom-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid #e3e3e3;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  height: 100%;
  border-radius: 16px 16px 0 0;
}

.custom-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Изображение сверху (tv-поле image) */
.custom-card__image-wrapper {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  background-color: #f8f9fa;
  border-radius: 16px 16px 0 0;
}

.custom-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.catalog--title,
.catalog--title a {
  font-family: "Montserrat Bold", sans-serif;
  font-size: 2rem;
  line-height: 1.4;
  margin: 52px auto 44px auto;
  color: black;
  text-align: center;
}

/* Контентная часть */
.custom-card__body {
  display: flex;
  flex-direction: column;
  padding: 20px;
  flex-grow: 1;
  /* Чтобы кнопка всегда была прижата к низу */
}

/* Прижимаем кнопку к самому низу */
.custom-card__btn {
  margin-top: 4px;
  cursor: pointer;
  max-width: 300px;
}

form .custom-card__btn {
    max-width: 100%;    
}

.custom-card__title {
  font-family: "Montserrat Bold", sans-serif;
  font-size: 1rem;
  line-height: 1.3;
  color: var(--bg-dark, #1c1e2a);
  margin-bottom: 12px;
  text-align: center;
}

.custom-card__price {
  font-family: "Montserrat Bold", sans-serif;
  font-size: 1.1rem;
  line-height: 1.3;
  color: var(--bg-dark, #1c1e2a);
  margin-bottom: 12px;
}

.custom-card__price  .price-value {
  font-family: "Montserrat Bold", sans-serif;
  color: var(--color-accent-green, #1c1e2a);
}

.custom-card__descr,
.custom-card__descr p {
  font-family: "Montserrat Regular", sans-serif;
  font-size: 0.65rem;
  line-height: 1.25;
  color: #555555;
  margin-top: 8px;
}

.custom-card__descr .catalog-specs p {
  margin-bottom: 4px;
}

.custom-card__descr .catalog-specs__note {
  margin-top: 10px;
  font-weight: 600;
  color: #333333;
}

.custom-card__descr .catalog-specs__note:before {
  content: none;
}

.custom-card__descr p:before {
  content: "• ";
  color: black;
  font-size: 1rem;
  font-weight: 900;
}

.custom-card__descr strong {
  font-size: 0.8rem;
}

.custom-card__descr {
  flex-grow: 1;
  margin-bottom: 20px;
}

.custom-card__btn {
  display: inline-block;
  text-align: center;
  font-family: "Montserrat Regular", sans-serif;
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--bg-dark);
  background-color: var(--main-color, #ffed2e);
  border: 1px solid var(--main-color, #ffed2e);
  padding: 10px 16px;
  border-radius: 5px;
  border: none !important;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.custom-card__btn:hover {
  background-color: var(--main-color-2, #46495f);
  border-color: var(--main-color-2, #46495f);
  color: #ffffff;
  text-decoration: none !important;
}

.contacts-map-side {
  margin-top: 48px;
}

/* Всплывающее окно с настройкаи Cookie */

#consent-cookies {
  color: white;
  background: rgba(0, 0, 0, 0.82);
}

#consent-cookies .notification__info {
  flex: 1 1 100%;
}

#consent-cookies h3 {
  color: white;
  text-align: center;
  margin: 18px auto 4px auto;
}

#consent-cookies a {
  color: white;
  text-decoration: underline;
  font-family: "Montserrat SemiBold";
}

#consent-cookies p {
  margin: 12px auto 8px auto;
  text-indent: 12px;
}

#consent-cookies form legend {
  color: white;
  font-size: 1.2rem;
  font-family: "Montserrat SemiBold";
}

#consent-cookies .notification__wrapper {
  margin: 16px auto;
}

#consent-cookies .notification__wrapper p,
#consent-cookies .notification__wrapper li,
#consent-cookies .notification__wrapper span,
#consent-cookies .notification__wrapper strong,
#consent-cookies .notification__wrapper h2,
#consent-cookies .notification__wrapper h3,
#consent-cookies .notification__wrapper h4 {
  color: white;
  font-size: 0.6rem;
  line-height: 1.4;
}

.notification--fixed {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #fff;
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.15);
  z-index: 9999;
  padding: 20px 0;
  font-family: Arial, sans-serif;
}

.notification__wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.notification__info {
  flex: 1 1 45%;
  min-width: 300px;
}

.notification__settings {
  flex: 1 1 45%;
  min-width: 300px;
  /* Изначально скрыто, но можно управлять через JS */
  /* display: none; - лучше управлять через inline style или JS */
}

.notification__buttons {
  flex-basis: 100%;
  margin-top: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: right;
}

.notification__buttons .btn {
  font-size: 0.75rem;
  line-height: 1.2;
  min-height: 58px;
  margin: 0 4px;
}

/* Форма заказа для Каталога */

#modalProductTitle,
#modalProductPrice {
  display: inline-flex;
  font-size: 0.8rem;
  line-height: 1.4;
}

/* Оверлей и контейнер модального окна */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1300;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
}

.modal-content {
  background: #ffffff;
  padding: 24px;
  border-radius: 12px;
  max-width: 450px;
  width: 90%;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  position: relative;
  transform: translateY(-20px);
  transition: transform 0.3s ease;
}

.modal-content .form-status-notice {
  color: var(--color-accent-red);
}

.modal-content .form-status-notice.status-success {
  color: var(--color-accent-green);
}

.modal-overlay.active .modal-content {
  transform: translateY(0);
}

.modal-close-btn {
  position: absolute;
  top: 15px;
  right: 20px;
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: #999;
  transition: color 0.2s;
}

.modal-close-btn:hover {
  color: #333;
}

.modal-title {
  font-family: "Montserrat Medium";
  font-size: 1rem;
  line-height: 1.4;
  margin-bottom: 6px;
  text-align: center;
}

.modal-product-info {
  font-size: 14px;
  color: var(--color-gray);
  margin: 24px auto;
}

.modal-product-info .highlight {
  font-weight: 600;
  color: #000;
}

/* Элементы формы */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
}

.form-group input {
  padding: 12px 15px;
  border: 1px solid #ccc;
  border-radius: 6px;
  outline: none;
  transition: border-color 0.2s;
}

.form-group input:focus {
  border-color: #0056b3;
}

#ajaxOrderForm .custom-card__btn {
  width: 100%;
  padding: 14px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}

/* Стили уведомлений об успехе / ошибке */
.form-status-notice {
  margin-top: 20px;
  padding: 15px;
  border-radius: 6px;
  text-align: center;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  animation: fadeInStatus 0.3s ease forwards;
}

@keyframes fadeInStatus {
  from {
    opacity: 0;
    transform: translateY(5px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Gate pages: slider + order block */
.gate-page-top {
  padding: 24px 0 8px;
}

.gate-page-slider {
  position: relative;
  margin-bottom: 24px;
  width: 100%;
  overflow: hidden;
}

.gate-page-slider .swiper-slide {
  width: 100%;
  height: auto;
  display: flex;
  justify-content: center;
  align-items: stretch;
}

.gate-page-slider__frame--drawing {
  background: #fff;
}

.gate-page-slider__frame--drawing .gate-page-slider__image {
  object-fit: contain;
  padding: 12px;
}

.gate-page-slider__frame {
  width: 100%;
  height: 420px;
  border-radius: 12px;
  overflow: hidden;
  background: #f3f4f7;
  border: 1px solid #e4e6ec;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gate-page-slider__image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  background: #fff;
}

@media (max-width: 767px) {
  .gate-page-slider__frame {
    height: 220px;
  }
}

.gate-page-slider__pagination {
  position: static;
  margin-top: 12px;
}

.gate-page-slider__prev,
.gate-page-slider__next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  z-index: 2;
}

.gate-page-slider__prev {
  left: 12px;
}

.gate-page-slider__next {
  right: 12px;
}

.gate-page-slider__prev::before,
.gate-page-slider__next::before {
  content: "";
  display: block;
  width: 10px;
  height: 10px;
  margin: 0 auto;
  border-top: 2px solid #46495f;
  border-right: 2px solid #46495f;
}

.gate-page-slider__prev::before {
  transform: rotate(-135deg);
}

.gate-page-slider__next::before {
  transform: rotate(45deg);
}

.gate-order-block {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) auto;
  gap: 12px 20px;
  align-items: center;
  padding: 12px 16px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #e4e6ec;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  margin-bottom: 24px;
}

.gate-order-block__image {
  width: 96px;
  height: 96px;
  border-radius: 10px;
  overflow: hidden;
  background: #f3f4f7;
  flex-shrink: 0;
}

.gate-order-block__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gate-order-block__content {
  min-width: 0;
}

.gate-order-block__title {
  margin: 0 0 6px;
  font-family: "Montserrat Bold", sans-serif;
  font-size: 1rem;
  line-height: 1.25;
  color: #1c1e2a;
}

.gate-order-block__text {
  margin: 0;
  font-family: "Montserrat Regular", sans-serif;
  font-size: 0.88rem;
  line-height: 1.4;
  color: #46495f;
}

.gate-order-block__action {
  display: flex;
  justify-content: flex-end;
  flex-shrink: 0;
}

.gate-order-block__btn {
  min-width: 150px;
  white-space: nowrap;
}

@media (max-width: 767px) {
  .gate-order-block {
    grid-template-columns: 72px minmax(0, 1fr);
    grid-template-areas:
      "image content"
      "action action";
    gap: 10px 14px;
    padding: 12px;
  }

  .gate-order-block__image {
    grid-area: image;
    width: 72px;
    height: 72px;
  }

  .gate-order-block__content {
    grid-area: content;
  }

  .gate-order-block__title {
    font-size: 0.92rem;
  }

  .gate-order-block__text {
    font-size: 0.82rem;
  }

  .gate-order-block__action {
    grid-area: action;
    justify-content: stretch;
  }

  .gate-order-block__btn {
    width: 100%;
    min-width: 0;
  }
}

/* Mobile header top block */
.header-mobile-top.top-placed {
  display: none;
}

@media (max-width: 767px) {
  .header-wrapper {
    display: grid;
    grid-template-columns: 125px minmax(0, 1fr) 40px;
    grid-template-areas:
      "logo contacts burger"
      "logo contacts burger";
    align-items: center;
    column-gap: 8px;
    flex-wrap: nowrap !important;
    min-height: 72px;
    padding: 6px 0;
  }

  .header__logo {
    grid-area: logo;
    width: 125px;
    height: auto;
    align-self: center;
  }

  .header-mobile-top.top-placed {
    grid-area: contacts;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin: 0;
    max-width: none;
    min-width: 0;
  }

  .header-burger {
    grid-area: burger;
    display: block;
    position: relative;
    right: auto;
    top: auto;
    align-self: center;
    justify-self: end;
    margin-right: 16px;
    flex-shrink: 0;
  }

  .header-wrapper::before {
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
  }

  .header-mobile-social-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: nowrap;
    width: 100%;
  }

  .header-mobile-phone-row {
      margin-top: 4px;
      width: 100%;
      display: flex;
      flex-direction: column; /* Выстраивает телефоны друг под другом */
      align-items: center;    /* Выравнивание по центру (или flex-start по левому краю) */
      gap: 4px;               /* Отступ между телефонами */
    }

  .header-mobile-phone-row .header-mobile-phone {
    font-size: 0.72rem;
    line-height: 1.2;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .header-mobile-social-row .header-mobile-social__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
  }

  .header-mobile-social-row .header-mobile-social__link svg {
    display: block;
  }
}

/* Сброс трансформаций и ротации для шапки и всех её дочерних элементов */
.header,
.header * {
    transform: none !important;
    writing-mode: horizontal-tb !important;
    rotate: none !important;
}

/* Поиск */

/* Контейнер поиска (ширина увеличена с 300px до 450px) */
.ajax-search-wrapper {
    position: relative;
    max-width: 450px;
    margin-top: -10px;
}

/* Поле ввода */
#ajax-search-input {
    width: 100%;
    padding: 4px 12px 4px 40px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 0.85rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 400; /* Тонкое начертание */
    box-sizing: border-box;
    background: #fff url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M15.5 14h-.79l-.28-.27a6.5 6.5 0 0 0 1.48-5.34c-.47-2.78-2.79-5-5.59-5.34a6.505 6.505 0 0 0-7.27 7.27c.34 2.8 2.56 5.12 5.34 5.59a6.5 6.5 0 0 0 5.34-1.48l.27.28v.79l4.25 4.25c.41.41 1.08.41 1.49 0 .41-.41.41-1.08 0-1.49L15.5 14zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z" fill="%23888"/></svg>') no-repeat 12px center;
    background-size: 20px 20px;
}

#ajax-search-input:focus {
    outline: none;
    border-color: #ffd700;
    box-shadow: 0 0 5px rgba(255, 215, 0, 0.3);
}

#ajax-search-input::placeholder {
    color: #777;
    font-weight: 400;
}

/* Выпадающий блок с результатами */
.ajax-search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #ddd;
    border-top: none;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    z-index: 1000;
    max-height: 300px;
    overflow-y: auto;
}

.search-results-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.search-results-list li {
    border-bottom: 1px solid #eee;
}

.search-results-list li:last-child {
    border-bottom: none;
}

/* Принудительно задаем размер 0.7rem и самый тонкий Montserrat */
.search-results-list a, .search-results-list a .sr-title, .sr-empty {
    font-family: 'Montserrat', sans-serif !important;
    font-size: 0.7rem !important;
    font-weight: 400 !important;
    line-height: 1.35;
    color: #000;
}

.search-results-list a {
    display: block;
    padding: 8px 12px;
    text-decoration: none;
    color: #333;
    transition: background 0.2s;
}

.search-results-list a:hover {
    background: #f5f5f5;
    color: #000;
}

.sr-empty {
    padding: 12px 15px;
    text-align: center;
    color: #888;
}

.ajax-search-wrapper {
    position: relative;
}

/* 1. Стили мобильного контейнера (паддинг задаем внешнему блоку, а не wrapper) */
@media (max-width: 767px) {
    #mobile-search-place {
        padding: 8px 15px;
        background: #fff;
        border-top: 1px solid #eee;
        box-shadow: 0 3px 6px rgba(0,0,0,0.06);
    }
    #mobile-search-place .ajax-search-wrapper {
        padding: 0 !important;
        margin: 0 !important;
        width: 100%;
    }
}

/* 2. Позиционирование обертки поиска */
.ajax-search-wrapper {
    position: relative;
}

/* Вращение вокруг своего геометрического центра */
/* При загрузке: та же самая родная серая лупа (#888), но с вращением */
.ajax-search-wrapper.is-loading #ajax-search-input {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><g><path d="M15.5 14h-.79l-.28-.27a6.5 6.5 0 0 0 1.48-5.34c-.47-2.78-2.79-5-5.59-5.34a6.505 6.505 0 0 0-7.27 7.27c.34 2.8 2.56 5.12 5.34 5.59a6.5 6.5 0 0 0 5.34-1.48l.27.28v.79l4.25 4.25c.41.41 1.08.41 1.49 0 .41-.41.41-1.08 0-1.49L15.5 14zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z" fill="%23888"/><animateTransform attributeName="transform" type="rotate" from="0 12 12" to="360 12 12" dur="0.8s" repeatCount="indefinite"/></g></svg>') !important;
}

/* Вращение вокруг своей оси */
/* При загрузке: вращение строго вокруг реального центра иконки лупы */
/* .ajax-search-wrapper.is-loading #ajax-search-input {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><g><path d="M15.5 14h-.79l-.28-.27a6.5 6.5 0 0 0 1.48-5.34c-.47-2.78-2.79-5-5.59-5.34a6.505 6.505 0 0 0-7.27 7.27c.34 2.8 2.56 5.12 5.34 5.59a6.5 6.5 0 0 0 5.34-1.48l.27.28v.79l4.25 4.25c.41.41 1.08.41 1.49 0 .41-.41.41-1.08 0-1.49L15.5 14zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z" fill="%23888"/><animateTransform attributeName="transform" type="rotate" from="0 9.5 9.5" to="360 9.5 9.5" dur="0.6s" repeatCount="indefinite"/></g></svg>') !important;
} */