/* Shared sections restored from the supplied HTML. */
.df-assembly-details { margin-top: 32px; }
.assembly-section .advantages-row { margin-bottom: 1.5em; }
.popular-products_mod-section .product-unit_desc { flex: 1; }
.popular-products_mod-section .df-all-specifications { margin-top: auto; }
.popular-products_mod-section .product-unit_price-btn { align-items: center; justify-content: space-between; }
.popular-products_mod-section .product-unit_price { white-space: nowrap; font-size: 20px; }
.examples-work .result-item_img img { width: 100%; height: auto; aspect-ratio: 4/3; object-fit: cover; }
.advantages-mod_row { margin-top: 0; margin-bottom: 0; }

.popular-products_mod-section .product-unit_price-btn { flex-wrap: nowrap; gap: 6px; }
.popular-products_mod-section .product-unit_price-btn .main-btn { padding: 0 12px; flex: 0 0 auto; }

/* Keep the specifications link underline at text width inside flex cards. */
.product-unit_desc > .df-all-specifications { align-self: flex-start; width: fit-content; max-width: 100%; }

/* Separate page content from the shared contact form. */
.contact-section { margin-top: 2.5em; }

/* Long real product names must wrap inside the horizontal mobile carousel. */
.product-unit_desc { white-space: normal; min-width: 0; }
.df-all-specifications { display: inline-block; font-size: .875rem; color: #695570; border-bottom: 1px dotted currentColor; text-decoration: none; }

/* Exact archive colors and work-card rhythm take priority over previous overrides. */
.product-card_tab-names, .selectric .label { color: #B6B9CD; }
.contact-section .section-title, .contact-section .form-policy a { color: #BB3351; }
.work-item .item-phones a { min-height: 0; }

/* Original category strip height: preserve fitting columns without shifting every page. */
@media (min-width: 1025px) {
  .head_bottom-panel .head_bottom-menu > li > a { min-height: 56px; }
}

/* Archive motion from supplied HTML; activated only after AOS is available. */
html.df-archive-animations main [data-aos] {
  opacity: 0 !important;
  transition: none !important;
  transition-delay: 0ms !important;
}
html.df-archive-animations main [data-aos="fade-right"] { transform: translate3d(-100px, 0, 0) !important; }
html.df-archive-animations main [data-aos="fade-left"] { transform: translate3d(100px, 0, 0) !important; }
html.df-archive-animations main [data-aos].aos-animate[data-aos-delay="300"] { transition-delay: 300ms !important; }
html.df-archive-animations main [data-aos].aos-animate[data-aos-delay="600"] { transition-delay: 600ms !important; }
html.df-archive-animations main [data-aos].aos-animate[data-aos-delay="900"] { transition-delay: 900ms !important; }
html.df-archive-animations main [data-aos].aos-animate[data-aos-delay="1200"] { transition-delay: 1200ms !important; }
html.df-archive-animations main [data-aos].aos-animate { transition: opacity 800ms ease, transform 800ms ease !important; opacity: 1 !important; transform: none !important; }
html.df-archive-animations main [data-aos="fade-up"] { transform: translate3d(0, 100px, 0) !important; }
html.df-archive-animations main [data-aos="fade-up"].aos-animate { transform: none !important; }
@media (prefers-reduced-motion: reduce) {
  html.df-archive-animations main [data-aos] { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* Pull prose closer to its heading without changing card/section layouts. */
main :is(h2, h3, .section-title):has(+ :is(p, ul, ol)) { margin-bottom: .6em; }

/* Bare counter sections must keep the same separation as the source advantages wrapper. */
.advantages-mod_row + .reviews-section { padding-top: 2em; }
@media (max-width: 767px) {
  .advantages-mod_row + .reviews-section { padding-top: 1.7em; }
}

/* A selected category tag must be visibly distinct and remain readable. */
.tag-filter_row .tag-item.is-active { background: #513E62; color: #fff; box-shadow: inset 0 0 0 2px #F8A917; }
.tag-filter_row button.show-tag_btn { background: transparent; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; }
