/* Catalog overrides — keep Архив markup, only polish injected bits. */
.header__catalog_group-title > a {
  color: inherit;
  text-decoration: none;
}
.header__catalog_group-title > a:hover {
  color: inherit;
  text-decoration: none;
}
.assortiment__card-title > a {
  color: inherit;
  text-decoration: none;
}
.assortiment__card-title > a:hover {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.12em;
}
.blog__tagpill > a {
  color: inherit;
  text-decoration: none;
  display: flex;
  align-items: center;
  width: 100%;
  height: 100%;
}
.blog__tagpill--active {
  background-color: var(--c-primary-dark, #1c3c78);
  color: #fff;
}

/* Homepage assortiment: fill wide cards, tags not stuck in a corner. */
.assortiment__card {
  align-items: stretch;
}
.assortiment__card-title {
  max-width: none;
  width: 100%;
}
.assortiment__tags {
  width: 100%;
  margin-top: auto;
}
.assortiment__card--lg .assortiment__tags {
  max-width: 100%;
}

/* Popular cards: equal height, no wavy bottoms. */
.popular__card {
  height: 100%;
  min-height: 100%;
}
.popular__card .popular__name {
  flex: 1 1 auto;
  min-height: 2.4em;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.popular__card .popular__status {
  margin-top: auto;
  margin-bottom: 16px;
}
.popular__card .popular__action {
  margin-top: 0;
  width: 100%;
}

/* Consent checkmarks: hide SVG until checked (help-2 / popup / resize). */
.help-2__checkbox_sq svg,
.popup__check-sq svg,
.calc__resize-sq svg,
.connect__policy-sq svg,
.calc__consent-sq svg {
  display: block;
  opacity: 0;
  transition: opacity 0.15s ease;
}
input:checked + .help-2__checkbox_sq svg,
input:checked + .popup__check-sq svg,
input:checked + .calc__resize-sq svg,
input:checked + .connect__policy-sq svg,
input:checked + .calc__consent-sq svg {
  opacity: 1;
}
.popup__check-sq,
.calc__resize-sq,
.connect__policy-sq,
.calc__consent-sq {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
input:checked + .popup__check-sq,
input:checked + .calc__resize-sq,
input:checked + .connect__policy-sq,
input:checked + .calc__consent-sq {
  background-color: var(--c-primary, #1c3c78);
  border-color: var(--c-primary, #1c3c78);
}
.forms-consent-error,
.is-consent-error {
  outline: 2px solid #e24b4b;
  outline-offset: 2px;
}

/* Product: manager tab hover + CTA feel */
.product__tab--manager {
  border: 1.5px solid transparent;
  cursor: pointer;
}
.product__tab--manager:hover {
  color: var(--c-primary, #1c3c78);
  background-color: #fff;
  border-color: var(--c-primary, #1c3c78);
}
.product__tab--manager:hover svg path {
  fill: var(--c-primary, #1c3c78);
}

/* Services: no black text on blue hero; WP content in white area */
.svc-hero,
.svc-hero p,
.svc-hero .svc-hero__desc {
  color: rgba(255, 255, 255, 0.75);
}
.svc-hero .svc-hero__title {
  color: #fff;
}
.svc-wp-content {
  padding: 8px 0 24px;
  color: #131313;
  font-size: 18px;
  line-height: 1.55;
}
.svc-wp-content p {
  margin: 0 0 1em;
  color: inherit;
}

/* Sticky header: calculator next to city, not centered away */
.header__sticky .header__calculator {
  margin-left: 0;
  margin-right: 0;
}
.header__sticky .header__bottom_right,
.header__sticky .header__sticky_right {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* Download price list: icon color + centering */
.breadcrumbs__download {
  line-height: 1;
}
.breadcrumbs__download svg {
  display: block;
  flex-shrink: 0;
  width: 13px;
  height: 12px;
}
.breadcrumbs__download svg path {
  fill: currentColor;
}

/* Category H1 keeps Архив look */
h1.category__head_curr {
  margin: 0;
  font: inherit;
  font-weight: inherit;
  font-size: inherit;
  line-height: inherit;
  color: inherit;
}

/* Promo hint on /prajs/ */
.catalog-table__promo-hint {
  margin: 0 0 20px;
  padding: 14px 18px;
  border-radius: 10px;
  background: #eef2f8;
  color: #1c3c78;
  font-size: 15px;
  line-height: 1.45;
}
.catalog-table__promo-hint code {
  font-size: 0.95em;
}

/* Cart Mars pulse */
.header__cart.is-pulse {
  animation: ms-cart-pulse 0.85s ease;
}
.header__cart-count.is-bump,
.header__cart span.is-bump {
  animation: ms-badge-bump 0.45s ease;
  background-color: #3879f3 !important;
  color: #fff !important;
}
@keyframes ms-cart-pulse {
  0% { transform: scale(1); }
  35% { transform: scale(1.12); }
  100% { transform: scale(1); }
}
@keyframes ms-badge-bump {
  0% { transform: scale(1); }
  40% { transform: scale(1.25); }
  100% { transform: scale(1); }
}

/* Article: WP content must not blow Архив layout */
.article__layout {
  align-items: start;
}
.article__wp-content {
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.article__wp-content img,
.article__wp-content iframe,
.article__wp-content table,
.article__wp-content pre {
  max-width: 100%;
  height: auto;
}
.article__wp-content table {
  display: block;
  overflow-x: auto;
}
.article__sidebar {
  min-width: 0;
}
.article__share-icon.is-copied {
  outline: 2px solid #3879f3;
}

/* Sitemap */
.ms-sitemap {
  padding: 40px 0 80px;
}
.ms-sitemap__title {
  margin: 0 0 28px;
  font-size: 42px;
  color: var(--c-primary-dark, #1c3c78);
}
.ms-sitemap__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.ms-sitemap__heading {
  margin: 0 0 14px;
  font-size: 22px;
  color: #131313;
}
.ms-sitemap__list,
.ms-sitemap__sub {
  margin: 0;
  padding: 0;
  list-style: none;
}
.ms-sitemap__list > li {
  margin: 0 0 8px;
}
.ms-sitemap__list a {
  color: #1c3c78;
  text-decoration: underline;
}
.ms-sitemap__sub {
  margin: 4px 0 12px 16px;
}
.ms-sitemap__sub a {
  color: #555;
  font-size: 14px;
}

/* Mobile text harmony (hero center, content left — as in maket) */
@media (max-width: 767px) {
  html,
  body {
    max-width: 100%;
    overflow-x: clip;
  }

  .assortiment__row,
  .services__grid,
  .catalog-table__wrap,
  .popular__slider,
  .cert__slider {
    overscroll-behavior-x: contain;
  }

  .hero__main,
  .hero__text,
  .hero__title,
  .hero__descr,
  .hero__actions {
    text-align: center;
  }
  .hero__actions {
    justify-content: center;
  }
  .hero__qrs {
    justify-content: center;
  }

  .assortiment__title,
  .assortiment__desc,
  .popular__title,
  .services__title,
  .section-title,
  .category__intro,
  .category-info__title,
  .category-info__text {
    text-align: left;
  }

  .article__layout {
    display: block;
  }
  .article__sidebar {
    margin-top: 28px;
  }
  .ms-sitemap__grid {
    grid-template-columns: 1fr;
  }
  .ms-sitemap__title {
    font-size: 28px;
  }
}

