.footer p {
   color: var(--white);
}
h1 {
    font-size: clamp(16px, 5vw, 23px); /* Адаптивный шрифт для заголовков h1 */

    
}

h2 {
    font-size: clamp(20px, 4vw, 21px);
     color: var(--primary-blue);/* Адаптивный шрифт для заголовков h2 */
}

h3 {
    font-size: clamp(18px, 3.5vw, 25px);
     color: var(--primary-blue);/* Адаптивный шрифт для заголовков h3 */
}
h4 {
    font-size: clamp(18px, 3.5vw, 25px);
     color: var(--white);/* Адаптивный шрифт для заголовков h3 */
}
p {
    font-size: clamp(13px, 2.5vw, 14px); /* Адаптивный шрифт для параграфов */
    line-height: 1.5;
     color: var(--text-secondary);/* Легкость чтения */
}

a {
     color: var(--white); /* Цвет всех других ссылок */
}
.footer ul {
    list-style-type: disc; /* Устанавливает тип маркера (точка) */
    list-style-position: inside; /* Маркер внутри элемента */
}

.footer ul li {
    color: var(--white); /* Устанавливаем цвет текста и маркера в белый */
}

.footer ul {
    color: var(--white); /* Устанавливаем цвет маркера, если не работает напрямую на li */
}
.logo h1 {
    white-space: nowrap; /* Предотвращает перенос текста */
}
.header-left h1 {
  
    
    white-space: nowrap; /* Предотвращает перенос текста */
}

.header-left h2 {
    
  
    display: block; /* Размещаем на следующей строке */
    padding-top: 5px; /* Отступ сверху для отступа от основного заголовка */
}
.header-left h1 {
  
 
    white-space: nowrap; /* Предотвращает перенос текста */
}
.header-left .company-name h1 {
    margin: 0;
}

.header-left .company-name h2 {
    margin: 0;
    display: block; /* Гарантирует, что подзаголовок находится на следующей строке */
   
}
.direction-header h3 {
    margin: 0;
   
    flex: 1; /* Заставляет заголовок занимать оставшееся пространство */
    white-space: nowrap; /* Отключает перенос слов */
    overflow: hidden; /* Скрывает текст, если он слишком длинный */
    text-overflow: ellipsis; /* Добавляет многоточие, если текст слишком длинный */
}
.direction-card h3 {
    
    margin-bottom: 15px;
}
.footer-column h4 {
    margin-bottom: 15px;
    padding-bottom: 5px;
}
.subcategory-item p {
  
}
.direction-card p {
   
}

/* Refined typography overrides */
h1 {
    color: var(--site-ink, var(--primary-blue));
    font-family: var(--site-font-family);
    font-size: clamp(26px, 3vw, 38px);
    font-weight: 600;
    line-height: 1.14;
}

h2 {
    color: var(--site-ink, var(--primary-blue));
    font-family: var(--site-font-family);
    font-size: clamp(22px, 2.5vw, 32px);
    font-weight: 600;
    line-height: 1.18;
}

h3 {
    color: var(--site-ink, var(--primary-blue));
    font-family: var(--site-font-family);
    font-size: clamp(18px, 2vw, 24px);
    font-weight: 600;
    line-height: 1.22;
}

p {
    color: var(--site-muted, var(--text-secondary));
    font-size: clamp(14px, 1.45vw, 16px);
    line-height: 1.62;
}

a {
    color: var(--site-accent, var(--primary-blue));
}

/* Final typography scale */
body {
    font-family: var(--site-font-family);
    font-size: var(--type-body);
    line-height: var(--line-body);
}

body :where(p, li, td, th, figcaption) {
    font-size: var(--type-body);
    line-height: var(--line-body);
}

.main-nav > .nav-item > a.menu-link,
.nav-list li a {
    font-size: var(--type-nav) !important;
    font-weight: 700;
    line-height: 1.2;
}

.header-action,
.header-action-catalog,
.header-action-request,
.product-hero-request,
.product-more,
.product-back,
.product-link,
.resource-download-card span,
.catalog-view-switcher a,
.product-view-switcher a {
    font-size: var(--type-nav) !important;
    font-weight: 700;
}

#hero .caption h1,
#hero .caption h2 {
    font-size: var(--type-display-title);
    font-weight: 700;
    line-height: 1.04;
}

#hero .caption p:not(.hero-kicker),
.products-hero p:not(.section-kicker),
.product-lead {
    font-size: var(--type-lead);
    line-height: 1.55;
}

main h1,
.products-hero h1,
.product-detail h1,
.equipment-map-hero-copy h1,
.company-content h1,
.contacts-section > h1,
.social-hero h1,
.social-detail h1,
.vacancies-hero h1,
.reviews-hero h1 {
    font-size: var(--type-page-title) !important;
    font-weight: 700;
    line-height: 1.12;
}

main h2,
.section-heading h2,
.company-overview h2,
.directions-section h2,
.product-section h2,
.product-section h3,
.reference-section h2,
.product-buying-guide h2,
.resource-download-card h2,
.resource-download-card h3,
.partners-section > h2,
.partners-section > h3,
.contacts-panel h2,
.social-list-panel h2,
.vacancies-layout h2,
.reviews-preview h2 {
    font-size: var(--type-section-title) !important;
    font-weight: 700;
    line-height: 1.15;
}

main h3,
.product-card h2,
.direction-card h3,
.home-news-card h3,
.object-card h3,
.news-card h2,
.social-project-card h2,
.vacancy-card h2,
.partners-card h2 {
    font-size: var(--type-card-title) !important;
    font-weight: 700;
    line-height: 1.22;
}

.official-product-content,
.official-product-content p,
.official-product-content li,
.official-product-content td,
.official-product-content th,
.official-product-content span,
.official-product-content div {
    font-size: var(--type-body) !important;
    line-height: var(--line-body) !important;
}

.product-kicker,
.section-kicker,
.catalog-view-switcher span,
.submenu-flyout p {
    font-size: var(--type-xs) !important;
    font-weight: 700;
    letter-spacing: 0;
}

.main-nav .menu-link-products + .sub-menu > ul > li > a,
.sub-menu .submenu-section li a,
.sub-menu .submenu-flyout li a {
    font-size: var(--type-sm) !important;
    font-weight: 700;
}

.company-name h1,
.header-left .company-name h1 {
    font-size: clamp(24px, 2vw, 28px) !important;
    font-weight: 700;
    line-height: 1.05;
}

.company-name h2,
.header-left .company-name h2,
.contact-info p,
.contact-info a {
    font-size: 13px !important;
    line-height: 1.25;
}

.footer,
.footer p,
.footer li,
.footer a {
    font-size: 14px;
    line-height: 1.5;
}

/* Component safeguards after the global typography pass */
.back-to-top {
    align-items: center !important;
    background: var(--brand-copper, #c7742d) !important;
    border: 0 !important;
    border-color: var(--brand-copper, #c7742d) !important;
    border-radius: 6px !important;
    bottom: 24px !important;
    box-sizing: border-box;
    color: #ffffff !important;
    display: inline-flex !important;
    font-size: 28px !important;
    font-weight: 700 !important;
    height: 54px !important;
    justify-content: center !important;
    left: auto !important;
    line-height: 1 !important;
    min-height: 54px !important;
    padding: 0 !important;
    position: fixed !important;
    right: 24px !important;
    text-decoration: none !important;
    width: 54px !important;
    z-index: 9000 !important;
}

.back-to-top:hover,
.back-to-top:focus-visible {
    background: var(--brand-copper-strong, #a95c1a) !important;
    border-color: var(--brand-copper-strong, #a95c1a) !important;
    color: #ffffff !important;
}

.hero-button,
.hero-button-primary,
.product-hero-request,
.header-action-catalog,
.admin-button-primary,
.reviews-button-primary,
.reviews-button-primary.document-link,
main .contacts-map-header a {
    color: #ffffff !important;
}

.hero-button-primary,
.product-hero-request,
.header-action-catalog,
.admin-button-primary,
.reviews-button-primary,
.reviews-button-primary.document-link,
main .contacts-map-header a {
    background: var(--brand-copper, #c7742d) !important;
    border-color: var(--brand-copper, #c7742d) !important;
}

.hero-button-primary:hover,
.hero-button-primary:focus-visible,
.product-hero-request:hover,
.product-hero-request:focus-visible,
.header-action-catalog:hover,
.header-action-catalog:focus-visible,
.admin-button-primary:hover,
.admin-button-primary:focus-visible,
.reviews-button-primary:hover,
.reviews-button-primary:focus-visible,
.reviews-button-primary.document-link:hover,
.reviews-button-primary.document-link:focus-visible,
main .contacts-map-header a:hover,
main .contacts-map-header a:focus-visible {
    background: var(--brand-copper-strong, #a95c1a) !important;
    border-color: var(--brand-copper-strong, #a95c1a) !important;
    color: #ffffff !important;
}

.hero-button *,
.hero-button-primary *,
.product-hero-request *,
.header-action-catalog *,
.admin-button-primary *,
.reviews-button-primary *,
.reviews-button-primary.document-link *,
main .contacts-map-header a * {
    color: #ffffff !important;
}

.hero-button-secondary {
    color: #ffffff !important;
}

.product-card,
.product-card:visited,
.resource-download-card,
.resource-download-card:visited {
    text-decoration: none;
}

.product-card h2,
.product-card h3,
.product-card p,
.product-card span,
.resource-download-card h2,
.resource-download-card h3,
.resource-download-card p {
    color: inherit;
}

.product-card h2,
.product-card h3,
.resource-download-card h2,
.resource-download-card h3 {
    color: var(--site-ink, #142231) !important;
}

.product-card p,
.resource-download-card p {
    color: var(--site-muted, #607283) !important;
}

.product-card .product-more,
.resource-download-card span {
    color: var(--site-accent, #c7742d) !important;
}

.resource-download-card.document-link {
    color: var(--site-ink, #142231) !important;
}

main a.product-card,
main a.product-card:visited {
    color: var(--site-ink, #142231) !important;
}

main a.product-card h2,
main a.product-card h3 {
    color: var(--site-ink, #142231) !important;
}

main a.product-card p {
    color: var(--site-muted, #607283) !important;
}

main a.product-card .product-more {
    color: var(--site-accent, #c7742d) !important;
}

.survey-sheets-page {
    max-width: min(1728px, calc(100% - 150px));
}

.survey-sheets-page > h1 {
    font-size: clamp(42px, 3.4vw, 54px) !important;
    line-height: 1.1;
}

.survey-sheets-page .product-lead {
    font-size: clamp(19px, 1.25vw, 22px);
    line-height: 1.5;
    max-width: 1180px;
}

.survey-sheets-page .resource-download-grid {
    gap: 16px 18px;
}

.survey-sheets-page a.resource-download-card,
.survey-sheets-page a.resource-download-card:visited {
    color: var(--site-ink, #142231) !important;
    min-height: 238px;
    padding: 26px 26px 24px;
}

.survey-sheets-page a.resource-download-card h2 {
    color: var(--site-ink, #142231) !important;
    font-size: clamp(22px, 1.35vw, 25px) !important;
    font-weight: 700;
    line-height: 1.18;
    margin: 0 0 16px;
}

.survey-sheets-page a.resource-download-card p {
    color: var(--site-muted, #607283) !important;
    font-size: clamp(18px, 1.1vw, 21px) !important;
    line-height: 1.55 !important;
    margin: 0 0 18px;
}

.survey-sheets-page a.resource-download-card span {
    color: var(--site-accent, #c7742d) !important;
    font-size: clamp(16px, 1vw, 18px) !important;
    font-weight: 800;
    margin-top: auto;
}

#company-directions a.direction-card:first-child,
#company-directions a.direction-card:first-child:visited {
    color: #ffffff !important;
}

#company-directions a.direction-card:first-child .direction-card-copy h3,
#company-directions a.direction-card:first-child .direction-card-copy strong {
    color: #ffffff !important;
}

#company-directions a.direction-card:first-child .direction-card-copy p {
    color: rgba(255, 255, 255, 0.74) !important;
}

#company-directions a.direction-card:first-child .direction-card-copy span {
    color: var(--site-accent, #c7742d) !important;
}

.main-nav > .nav-item > .sub-menu {
    max-height: none !important;
    overflow: visible !important;
    scrollbar-width: none;
}

.main-nav > .nav-item > .sub-menu::-webkit-scrollbar {
    height: 0;
    width: 0;
}

.main-nav > .nav-item > .sub-menu > ul > li {
    border-left: 0 !important;
    border-right: 0 !important;
}

.main-nav > .nav-item:not(.language-switcher) > .sub-menu > ul > li {
    padding: 3px 6px !important;
}

.main-nav > .nav-item:not(.language-switcher) > .sub-menu > ul > li > a {
    line-height: 1.22 !important;
    min-height: 36px !important;
    padding: 8px 12px !important;
}

.main-nav .menu-link-products + .sub-menu > ul > li > a {
    line-height: 1.2 !important;
    min-height: 32px !important;
    padding: 5px 8px !important;
}
