/* Система кнопок и ссылок: общий слой для всех страниц сайта.
   Три элемента: кнопка (заливка 48 px), ссылка (текст и линия, которая прорисовывается при наведении), мета-ссылка (моно, капс). */

html:root:root :is(.designers__submit, .pdz-btn, .biz-button, .materials__samples-submit, .product__pdf-button, .product__model-button) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px !important;
  height: 48px !important;
  padding: 0 24px;
  background: #171715;
  color: #ffffff;
  border: 0;
  border-radius: 0;
  font-family: "TT Norms Pro", "TT Norms Pro Fallback", Arial, sans-serif;
  font-size: 16px;
  line-height: 1;
  letter-spacing: 0;
  text-transform: none;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity .15s;
}
html:root:root :is(.designers__submit, .pdz-btn, .biz-button, .materials__samples-submit, .product__pdf-button, .product__model-button):hover {
  opacity: .84;
  background: #171715;
}

html:root:root :is(.biz-link, .biz-textlink, .product__collection-link, .materials__samples-order-link, .materials__consultation-toggle, .materials__textile-catalog-toggle, .project__cta-label, .projects__cta-label, .collections__cta-label, .product__trade-link-label, .designers__consent-link, .privacy__consent-link, .contacts__consent-link) {
  text-decoration: none;
  background-image: linear-gradient(#b8b5ae, #b8b5ae), linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-position: 0 100%, 0 100%;
  background-size: 100% 1px, 0% 1px;
  transition: background-size .45s cubic-bezier(.16, 1, .3, 1);
}
html:root:root :is(.biz-link, .biz-textlink, .product__collection-link, .materials__samples-order-link, .materials__consultation-toggle, .materials__textile-catalog-toggle, .project__cta-label, .projects__cta-label, .collections__cta-label, .product__trade-link-label, .designers__consent-link, .privacy__consent-link, .contacts__consent-link):hover {
  background-size: 100% 1px, 100% 1px;
}

html:root:root .article__back-url,
html:root:root .article__back-url.article__back-url {
  font-family: "TT Norms Pro", "TT Norms Pro Fallback", Arial, sans-serif;
  font-size: 12px !important;
  line-height: 1.5;
  letter-spacing: 0.04em !important;
  text-transform: uppercase !important;
  text-decoration: none;
  color: #7a766d;
  transition: color .15s;
}
html:root:root .article__back-url:hover {
  color: #171715;
}

html:root:root :is(.designers__submit, .pdz-btn, .biz-button, .materials__samples-submit, .product__pdf-button, .product__model-button, .biz-link, .biz-textlink, .article__back-url):focus-visible {
  outline: 2px solid #856243;
  outline-offset: 4px;
}
html:root:root:root :is(.designers__submit, .pdz-btn, .biz-button, .materials__samples-submit, .product__pdf-button, .product__model-button) {
  font-size: 16px !important;
}
html:root:root:root .product__buyer-links a {
  font-family: "TT Norms Pro", "TT Norms Pro Fallback", Arial, sans-serif;
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: 0.04em;
  text-transform: uppercase !important;
  text-decoration: none !important;
  background: none !important;
  color: #7a766d;
  transition: color .15s;
}
html:root:root:root .product__buyer-links a:hover {
  color: #171715;
}
html:root:root:root .product__buyer-links a > span[aria-hidden="true"] {
  display: none;
}
html:root:root:root :is(.product__collection-link, .product__trade-link-label) {
  font-size: 16px !important;
}
/* Перенесено из legacy-cleanup.css: переопределения кнопок, ссылок и фильтров (без правок значений). */
/* Чистка старой системы: кнопки 48 px, ссылки 16 px, линия при наведении рисуется поверх серой */

/* Подписка в подвале */
html:root:root:root .podhozhu-newsletter__row input {
  height: 48px;
  box-sizing: border-box;
  font-family: "TT Norms Pro", "TT Norms Pro Fallback", Arial, sans-serif;
  font-size: 16px;
}
html:root:root:root .podhozhu-newsletter button {
  height: 48px;
  min-height: 48px;
  padding: 0 20px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: #171715 !important;
  color: #ffffff;
  font-family: "TT Norms Pro", "TT Norms Pro Fallback", Arial, sans-serif;
  font-size: 16px;
  line-height: 1 !important;
}
html:root:root:root .podhozhu-newsletter button:hover {
  opacity: .84;
}

/* Заливка 48 px: отправка на контактах, «В каталог» о бренде */
html:root:root:root :is(.contacts__submit, a.ab-button:not(.ab-button--ghost)) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  min-height: 48px;
  padding: 0 24px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: #171715 !important;
  color: #ffffff;
  font-family: "TT Norms Pro", "TT Norms Pro Fallback", Arial, sans-serif;
  font-size: 16px !important;
  line-height: 1 !important;
  text-decoration: none !important;
}

/* Контурная кнопка 48 px: «Показать карту», «Лица бренда», «В каталог» (дизайнерам) */
html:root:root:root :is(.cookie-map-placeholder button, .ab-button--ghost, .pdz-btn--ghost) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  min-height: 48px;
  padding: 0 24px !important;
  box-sizing: border-box;
  border: 1px solid #171715 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #171715;
  font-family: "TT Norms Pro", "TT Norms Pro Fallback", Arial, sans-serif;
  font-size: 16px !important;
  line-height: 1 !important;
  text-decoration: none !important;
  cursor: pointer;
}
html:root:root:root :is(.cookie-map-placeholder button, .ab-button--ghost, .pdz-btn--ghost):hover {
  background: #171715 !important;
  color: #ffffff;
}

/* Фильтры проектов и журнала: мета-ссылки (моно, капс), активный подчёркнут */
html:root:root:root :is(button[class*="projects__filter-"], button[class*="journal__filter-"]) {
  height: auto;
  min-height: 44px;
  padding: 0 !important;
  border: 0 !important;
  background: none !important;
  font-family: "TT Norms Pro", "TT Norms Pro Fallback", Arial, sans-serif;
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: .04em;
  text-transform: uppercase;
  text-decoration: none !important;
  color: #7a766d;
  cursor: pointer;
}
html:root:root:root :is(button[class*="projects__filter-"], button[class*="journal__filter-"]):hover {
  color: #171715;
}
html:root:root:root :is(button[class*="projects__filter-"], button[class*="journal__filter-"]):is([aria-pressed="true"], [aria-selected="true"], [aria-current="true"], .is-active) {
  color: #171715;
  text-decoration: underline !important;
  text-underline-offset: 6px;
}

/* Вкладки тканей в «Материалах»: 16 px */
html:root:root:root .materials__textile-tabs button {
  font-family: "TT Norms Pro", "TT Norms Pro Fallback", Arial, sans-serif;
  font-size: 16px !important;
}

/* Ссылки: 16 px, линия при наведении (тёмная рисуется поверх серой) */
html:root:root:root :is(.biz-link, .biz-textlink, .project__cta-label, .projects__cta-label, .collections__cta-label, .materials__samples-order-link, .materials__consultation-toggle, .materials__textile-catalog-toggle, .ab-text-link, .biz-contact, .cms-map-link, .contacts__pinterest-label-row) {
  font-family: "TT Norms Pro", "TT Norms Pro Fallback", Arial, sans-serif;
  font-size: 16px !important;
  line-height: 1.4 !important;
}
html:root:root:root :is(.biz-link, .biz-textlink, .project__cta-label, .projects__cta-label, .collections__cta-label, .materials__samples-order-link, .materials__consultation-toggle, .materials__textile-catalog-toggle, .ab-text-link, .biz-contact, .cms-map-link, .contacts__pinterest-label-row, .ph-approach-jump, .ph-link) {
  text-decoration: none !important;
  background-image: linear-gradient(currentColor, currentColor), linear-gradient(#b8b5ae, #b8b5ae);
  background-repeat: no-repeat;
  background-position: 0 100%, 0 100%;
  background-size: 0% 1px, 100% 1px;
  transition: background-size .45s cubic-bezier(.16, 1, .3, 1) !important;
}
html:root:root:root :is(.biz-link, .biz-textlink, .project__cta-label, .projects__cta-label, .collections__cta-label, .materials__samples-order-link, .materials__consultation-toggle, .materials__textile-catalog-toggle, .ab-text-link, .biz-contact, .cms-map-link, .contacts__pinterest-label-row, .ph-approach-jump, .ph-link):hover {
  background-size: 100% 1px, 100% 1px;
}

/* «Три подхода ↓» на главной: мета (моно 12, капс) с той же линией */
html:root:root:root .ph-approach-jump {
  font-family: "TT Norms Pro", "TT Norms Pro Fallback", Arial, sans-serif;
  font-size: 12px;
  letter-spacing: .04em;
  text-transform: uppercase;
}

/* Главная: ссылки «Смотреть предметы», «Для бизнеса» и т.п. — та же линия (тёмная поверх серой) */
html:root:root:root .pdz-home a.ph-link {
  background-image: linear-gradient(currentColor, currentColor), linear-gradient(#b8b5ae, #b8b5ae);
  background-size: 0% 1px, 100% 1px !important;
}
html:root:root:root .pdz-home a.ph-link:hover {
  background-size: 100% 1px, 100% 1px;
}
