/* Custom overrides for the rebuilt copy */

.logo-placeholder {
  display: inline-block;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 3px;
  line-height: 1.1;
  color: var(--primary);
  text-transform: uppercase;
}

.main-footer .logo-placeholder {
  font-size: 24px;
}

.logo-img {
  display: block;
  max-height: 48px;
  width: auto;
  max-width: 100%;
}

.main-footer .logo-img {
  max-height: 40px;
}

body.nz-editing .logo-img {
  cursor: pointer;
}

.advantages__thumb .adv-icon {
  width: 64px;
  height: 64px;
  color: var(--primary);
}

/* Callback modal */
.callback-modal[hidden] {
  display: none;
}

.callback-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.callback-modal__overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, .5);
}

.callback-modal__dialog {
  position: relative;
  width: 420px;
  max-width: 92%;
  padding: 32px;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .25);
}

.callback-modal__close {
  position: absolute;
  top: 10px;
  right: 14px;
  padding: 0;
  border: 0;
  background: none;
  color: #9aa0a6;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

.callback-modal__close:hover {
  color: var(--dark);
}

.callback-modal h3 {
  margin: 0 0 8px;
  color: var(--dark);
  font-size: 22px;
}

.callback-modal p {
  margin: 0 0 18px;
  color: #7a7a7a;
  font-size: 14px;
}

.callback-form input:not([type="checkbox"]),
.callback-form textarea {
  display: block;
  width: 100%;
  margin-bottom: 12px;
  padding: 12px 16px;
  border: 1px solid #e3e6e8;
  border-radius: 4px;
  font-family: inherit;
  font-size: 14px;
}

.callback-form textarea {
  resize: vertical;
  min-height: 84px;
}

.callback-form input:not([type="checkbox"]):focus,
.callback-form textarea:focus {
  border-color: var(--primary);
  outline: none;
}

.callback-form__agree {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 4px 0 16px;
  color: #7a7a7a;
  font-size: 13px;
  line-height: 18px;
  cursor: pointer;
}

.callback-form__agree input[type="checkbox"] {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  margin: 1px 0 0;
}

.callback-form__agree a {
  color: var(--primary);
  text-decoration: none;
}

.callback-form__agree a:hover {
  text-decoration: underline;
}

.callback-form .adp-btn {
  width: 100%;
}

.callback-form__success {
  color: var(--primary);
  font-weight: 600;
  text-align: center;
  font-size: 20px;
  line-height: 1.5;
  padding: 24px 8px;
}

.callback-form__error {
  margin-top: 12px;
  color: #e30c35;
  font-weight: 600;
}

.callback-form button[disabled] {
  opacity: .7;
  cursor: default;
}

/* Static hero (slider removed) */
.hero-static {
  display: block;
  width: 100%;
  overflow: hidden;
}

.hero-static .hero__item {
  width: 100%;
}

.hero__description {
  max-width: 100%;
  text-align: left;
}

.hero__description p {
  margin: 0;
  color: var(--secondary);
}

/* Search suggestions */
.header-search {
  position: relative;
}

.search-suggest {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 500;
  margin-top: 6px;
  background: #fff;
  border: 1px solid #eef0f2;
  border-radius: 8px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .12);
  overflow: hidden;
}

.search-suggest__item {
  display: block;
  padding: 10px 16px;
  text-decoration: none;
  border-bottom: 1px solid #f4f5f7;
}

.search-suggest__item:last-child {
  border-bottom: 0;
}

.search-suggest__item:hover {
  background: #f7fbfb;
}

.search-suggest__title {
  display: block;
  color: var(--dark);
  font-weight: 600;
}

.search-suggest__section {
  display: block;
  margin-top: 2px;
  color: var(--primary);
  font-size: 12px;
}

/* Search page */
.search-page-form {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
}

.search-page-form input {
  flex: 1;
  padding: 14px 18px;
  border: 1px solid #e3e6e8;
  border-radius: 30px;
  font-family: inherit;
  font-size: 15px;
}

.search-page-form input:focus {
  border-color: var(--primary);
  outline: none;
}

#search-status {
  margin-bottom: 18px;
  color: #7a7a7a;
}

.search-result {
  display: block;
  padding: 18px 22px;
  margin-bottom: 14px;
  border: 1px solid #eef0f2;
  border-radius: 8px;
  text-decoration: none;
  transition: var(--dt);
}

.search-result:hover {
  border-color: var(--primary);
  box-shadow: 0 12px 30px rgba(27, 169, 183, .12);
}

.search-result__section {
  display: inline-block;
  margin-bottom: 8px;
  padding: 2px 10px;
  border-radius: 20px;
  background: rgba(27, 169, 183, .1);
  color: var(--primary);
  font-size: 12px;
}

.search-result__title {
  display: block;
  margin-bottom: 6px;
  color: var(--dark);
  font-size: 18px;
  font-weight: 700;
}

.search-result__text {
  display: block;
  color: #7a7a7a;
  font-size: 14px;
  line-height: 22px;
}

/* Blog article / PDF */
.pdf-cta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  padding: 18px 22px;
  margin-bottom: 28px;
  border: 1px dashed var(--primary);
  border-radius: 8px;
  background: rgba(27, 169, 183, .05);
}

.pdf-cta__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  border-radius: 8px;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
}

.pdf-cta__text {
  display: flex;
  flex-direction: column;
  flex: 1 1 120px;
  min-width: 0;
}

.pdf-cta__btn {
  margin-left: auto;
}

.pdf-cta__text b {
  color: var(--dark);
}

.article-back {
  display: inline-block;
  margin-top: 24px;
}

.copyright a.copyright-link {
  display: inline-block;
  margin-top: 6px;
  color: var(--primary);
  text-decoration: none;
}

.main-footer .copyright {
  max-width: 100%;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.copyright a.copyright-link {
  white-space: normal;
}

@media (max-width: 575px) {
  .main-footer .d-flex.flex-column {
    align-items: flex-start !important;
  }
  .main-footer .copyright {
    text-align: left;
  }
}

/* Заголовки страниц: не выходят за край на мобильном */
.stunning-header-title {
  overflow-wrap: anywhere;
  word-break: break-word;
}

@media (max-width: 767px) {
  .stunning-header-title {
    font-size: 28px;
    line-height: 1.2;
  }
}

@media (max-width: 480px) {
  .stunning-header-title {
    font-size: 22px;
  }
}

@media (max-width: 400px) {
  .stunning-header-title {
    font-size: 20px;
  }
}

/* Мобильный: поиск между логотипом и «бургером» */
@media (max-width: 767px) {
  .header-brand-row {
    flex-wrap: nowrap;
  }
  .col-header-logo {
    flex: 0 1 auto !important;
    width: auto !important;
    max-width: 45% !important;
    margin: 0 !important;
  }
  .main-header .logo {
    width: auto !important;
  }
  .col-header-search {
    order: 0 !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
    width: auto !important;
    max-width: 190px !important;
    margin-left: auto !important;
    padding-right: 8px !important;
  }
  .col-header-search .header-search {
    width: 100%;
    margin-bottom: 0;
  }
  .col-header-search .header-search input {
    min-width: 0;
    padding: 10px 40px 10px 14px;
  }
  .header-brand-row > .col-auto {
    flex: 0 0 auto !important;
    margin-left: 0 !important;
    padding-left: 0 !important;
  }
  .header-brand-row .toggle-menu {
    margin-left: 6px !important;
  }
}

.copyright a.copyright-link:hover {
  text-decoration: underline;
}

/* Картинка внутри новости — размеры сохраняют ориентацию (высота авто) */
.news-img {
  margin: 0 0 24px;
}

.news-img img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 3px;
}

.news-img--square {
  max-width: 100%;
}

.news-img--square img {
  width: auto;
  max-width: 100%;
  height: auto;
}

.news-img--medium {
  max-width: 60%;
}

.news-img--small {
  max-width: 34%;
}

@media (max-width: 767px) {
  .news-img--medium,
  .news-img--small {
    max-width: 100%;
  }
}

/* Текст в описаниях: вернуть базовое форматирование (шаблон сбрасывает его сбросом) */
strong, b {
  font-weight: 700;
}

em, i {
  font-style: italic;
}

.product__full h2,
.nz-content h2 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: .025em;
  margin: 0 0 12px;
}

.product__full h3,
.nz-content h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 10px;
}

.product__full ul,
.nz-content ul,
.product__full ol,
.nz-content ol {
  margin: 0 0 16px;
  padding-left: 22px;
}

.product__full ul,
.nz-content ul {
  list-style: disc;
}

.product__full ol,
.nz-content ol {
  list-style: decimal;
}

.product__full a,
.nz-content a {
  color: var(--primary);
  text-decoration: underline;
}

/* Блог: квадратные миниатюры новостей (как заглушка) */
.newsItem .departments__thumb {
  height: 150px;
  overflow: hidden;
  background: transparent;
}

.newsItem .departments__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Товары (каталог) — карточки в стиле маркетплейса */
.nz-products {
  margin-top: 0;
}

.nz-products__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.nz-products__head .section-title {
  margin: 0;
}

.nz-products__empty {
  color: #9aa0a6;
}

.nz-products__grid {
  row-gap: 24px;
}

.productCard {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  border: 1px solid #dadada;
  border-radius: 3px;
  overflow: hidden;
  transition: var(--dt);
}

.productCard:hover {
  border-color: var(--primary);
}

.productCard__thumb {
  display: block;
  position: relative;
  aspect-ratio: 1 / 1;
  background: #f6f7f8;
  overflow: hidden;
}

.productCard__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s ease;
}

.productCard:hover .productCard__thumb img {
  transform: scale(1.04);
}

.productCard__body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  padding: 15px 16px 16px;
}

.productCard__title {
  margin-bottom: 8px;
  font-size: 16px;
  font-weight: 500;
  line-height: 20px;
  letter-spacing: 0.025em;
  color: #000;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.productCard__title a {
  color: #000;
  text-decoration: none;
}

.productCard__title a:hover {
  color: var(--primary);
}

.productCard__desc {
  margin-bottom: 12px;
  color: var(--secondary);
  font-size: 12px;
  font-weight: 200;
  line-height: 17px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.productCard__price {
  margin-bottom: 14px;
  color: var(--secondary);
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.025em;
  line-height: 1;
}

.productCard__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
}

.productCard__actions .adp-btn {
  flex: 1 1 0;
  padding: 11px 14px;
  min-width: 0;
}

.nz-prod-del {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid #dadada;
  border-radius: 2px;
  background: #fff;
  color: var(--warning);
  font-family: inherit;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition: all .3s ease;
}

.nz-prod-del:hover {
  border-color: var(--warning);
  background: var(--warning);
  color: #fff;
}

/* Страница товара */
.product {
  display: flex;
  gap: 32px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.product__media {
  flex: 0 0 44%;
  max-width: 44%;
}

.product__image {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid #dadada;
  border-radius: 3px;
}

.product__info {
  flex: 1 1 40%;
  min-width: 260px;
}

.product__price {
  margin-bottom: 14px;
  color: var(--primary);
  font-size: 22px;
  font-weight: 400;
  letter-spacing: 0.025em;
  line-height: 1.1;
}

.product__short {
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
  color: var(--secondary);
  font-size: 14px;
  line-height: 22px;
  font-weight: 400;
}

.product__full {
  color: var(--secondary);
  font-size: 15px;
  font-weight: 300;
  line-height: 24px;
  letter-spacing: 0.025em;
}

.product__full p {
  margin-bottom: 16px;
}

@media (max-width: 767px) {
  .product__media {
    flex-basis: 100%;
    max-width: 100%;
  }
}

/* Разделы каталога */
.nz-sections {
  row-gap: 24px;
  margin-bottom: 20px;
}

.sectionTile {
  display: block;
  text-decoration: none;
}

.sectionTile__thumb {
  display: block;
  position: relative;
  aspect-ratio: 1 / 1;
  background: #f5f7f8;
  border: 1px solid #dadada;
  border-radius: 3px;
  overflow: hidden;
}

.sectionTile__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s ease;
}

.sectionTile__thumb--empty {
  background: #f5f7f8 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 24 24' fill='none' stroke='%231ba9b7' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 3h6M10 3v6l-4.5 8.2A2 2 0 0 0 7.3 20h9.4a2 2 0 0 0 1.8-2.8L14 9V3'/%3E%3C/svg%3E") center / 56px no-repeat;
}

.sectionTile:hover .sectionTile__thumb {
  border-color: var(--primary);
}

.sectionTile:hover .sectionTile__thumb img {
  transform: scale(1.05);
}

.sectionTile__name {
  display: block;
  margin-top: 12px;
  color: var(--dark);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.025em;
  line-height: 20px;
  text-align: center;
}

.sectionTile:hover .sectionTile__name {
  color: var(--primary);
}

.sectionTile__count {
  display: block;
  margin-top: 4px;
  color: #9aa0a6;
  font-size: 12px;
  text-align: center;
}

.nz-section {
  margin-top: 40px;
}

.nz-section__title {
  margin-bottom: 20px;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 0.025em;
  color: var(--dark);
}

.productCard__sku {
  margin-bottom: 6px;
  color: #9aa0a6;
  font-size: 12px;
  letter-spacing: 0.02em;
}

.product__section,
.product__sku {
  margin-bottom: 8px;
  color: #9aa0a6;
  font-size: 13px;
  letter-spacing: 0.02em;
}

.product__section a {
  color: var(--primary);
  text-decoration: none;
}

.product__section a:hover {
  text-decoration: underline;
}

.product__tags,
.news-tags {
  margin: 0 0 14px;
  color: #9aa0a6;
  font-size: 13px;
  letter-spacing: 0.02em;
}

.news-tags a {
  color: var(--primary);
  text-decoration: none;
}

.news-tags a:hover {
  text-decoration: underline;
}

.nz-modal__dialog select {
  display: block;
  width: 100%;
  margin-bottom: 12px;
  padding: 12px 16px;
  border: 1px solid #e3e6e8;
  border-radius: 4px;
  background: #fff;
  font-family: inherit;
  font-size: 14px;
}

/* Скрытое поле-приманка (защита от спама) */
.nz-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

/* ===== Корзина ===== */
.nz-cart-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 0;
  background: none;
  color: var(--dark);
  cursor: pointer;
}

.nz-cart-btn:hover {
  color: var(--primary);
}

.nz-cart-count {
  position: absolute;
  top: 0;
  right: 0;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 9px;
  background: var(--warning);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
}

.nz-cart-count.is-empty {
  display: none;
}

.cart-modal[hidden] {
  display: none;
}

.cart-modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 100001;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-modal__overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, .5);
}

.cart-modal__dialog {
  position: relative;
  width: 640px;
  max-width: 94%;
  max-height: 86vh;
  overflow: auto;
  padding: 28px;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .25);
}

.cart-modal__close {
  position: absolute;
  top: 10px;
  right: 14px;
  border: 0;
  background: none;
  color: #9aa0a6;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

.cart-modal__dialog h3 {
  margin: 0 0 16px;
  font-size: 22px;
  color: var(--dark);
}

.cart-empty {
  color: #9aa0a6;
}

.cart-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #eef0f2;
}

.cart-item__info {
  flex: 1 1 auto;
  min-width: 0;
}

.cart-item__title {
  color: var(--dark);
  font-weight: 600;
}

.cart-item__title a {
  color: var(--dark);
  text-decoration: none;
}

.cart-item__title a:hover {
  color: var(--primary);
  text-decoration: underline;
}

.cart-item__sku {
  color: #9aa0a6;
  font-size: 12px;
}

.cart-item__qty {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cart-item__qty button {
  width: 28px;
  height: 28px;
  border: 1px solid #dadada;
  border-radius: 3px;
  background: #fff;
  cursor: pointer;
}

.cart-item__price {
  min-width: 90px;
  text-align: right;
  color: var(--dark);
  font-weight: 600;
}

.cart-item__del {
  border: 0;
  background: none;
  color: var(--warning);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.cart-total {
  margin: 18px 0;
  text-align: right;
  font-size: 18px;
}

.cart-modal .js-cart-checkout {
  width: 100%;
}

/* Страница товара: кнопка «В корзину» */
.product__buy {
  margin: 0 0 18px;
}

.product__buy .adp-btn {
  min-width: 200px;
}
