.dark-bg {
    background-color:#eaeaea;
}

/* Применяем ко всем элементам на странице */
*, *::before, *::after {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
    letter-spacing: normal !important;
    /*color: #1a1a1a !important;*/
}

/* Настройки для ПК (ширина 768px и выше) */
@media (min-width: 768px) {
    h1 {
        font-size: 40px !important;
    }
    h2 {
        font-size: 32px !important;
    }
    p, span, div, a, th, td, b, li, ul {
        font-size: 19px !important;
    }

    text-price-in-catalog { 
        font-size: 32px !important;
        font-weight: 800 !important;
        color: #1a1a1a !important;
    }

    text-price { /*цена на странице карточки товара*/
        font-size: 32px !important;
    } 
    text-price-modtab  { /*цена в таблице модификаций по напору*/
        font-size: 27px !important; 
        font-weight: 800 !important;
    }       
}

/* Настройки для мобильных (ширина меньше 768px) */
@media (max-width: 767px) {
    h1 {
        font-size: 25px !important;
    }
    h2 {
        font-size: 23px !important;
    }
    p, span, div, a, th, td, b, li, ul{
        font-size: 17px !important;
    } 
    text-price-in-catalog { /*цена в карточке товара в каталоге*/
         font-weight: 800;
        color: #1a1a1a;        
        font-size: 23px !important;
    }

    text-price { /*цена в карточке товара*/
        font-size: 23px !important;
    } 
    text-price-modtab  { /*цена в таблице модификаций по напору*/
        font-size: 21px !important; 
        font-weight: 800 !important;
    }            
}


/* Явно возвращаем ваш фирменный цвет для основного текста, если он где-то слетел */
body {
    color: #1a1a1a !important;
}


/* --- 2. ОБЩИЕ СТРУКТУРНЫЕ СТИЛИ (CORE) --- */
body {
    margin: 0;
}

.page {
    position: relative;
    min-width: 320px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    font-family: 'Open Sans', Arial, Helvetica, sans-serif;
    line-height: 1.5;
    color: #1a1a1a;
    /* Почти черный цвет для всего сайта */
    overflow-x: hidden;
}

/* Адаптивный базовый размер шрифта для всей страницы */
@media (max-width: 1300px) {
    .page {
        font-size: 14px;
    }
}

@media (min-width: 1301px) and (max-width:1699px) {
    .page {
        font-size: 16px;
    }
}

@media (min-width: 1700px) {
    .page {
        font-size: 18px;
    }
}

.container {
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
    width: 100%;
    z-index: 9;
}

@media (max-width: 1300px) {
    .container {
        padding-left: 11px;
        padding-right: 11px;
    }
}

@media (min-width: 1024px) and (max-width:1066px) {
    .container {
        width: 97%;
    }
}

@media (min-width: 1067px) and (max-width:1359px) {
    .container {
        width: 95%;
    }
}

@media (min-width: 1360px) {
    .container {
        width: 88.2%;
        max-width: 1400px;
    }
}

/* Единые вертикальные отступы для всех секций-модулей */
section {
    padding-top: 24px;
    padding-bottom: 24px;
}

@media (min-width: 1024px) {
    section {
        padding-top: 2.5em;
        padding-bottom: 2.5em;
    }
}

/* --- 3. ТИПОГРАФИКА (УНИФИЦИРОВАННАЯ) --- */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
    font-weight: 700;
    line-height: 1.5;
    margin: 0 0 1em 0;
    color: #1a1a1a;
    /* Цвет заголовков */
}

h2 {
    text-align: center;
}

/* Единые размеры заголовков H2 для всех модулей */
@media (max-width: 1023px) {
    h2 {
        font-size: 24px;
    }
}

@media (min-width: 1024px) {
    h2 {
        font-size: 34px;
    }
}

/* Базовый текст сайта (17px) */
p,
li,
td,
th,
.preim_advantages_item_text,
.kt-char-ico {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
    font-size: 17px;
    line-height: 1.4;
    color: #1a1a1a;
    margin-bottom: 1em;
}

/* Настройки начертания */
b,
strong,
.f-bold {
    font-weight: 700;
}

.f-semibold {
    font-weight: 500;
}

/* --- 4. ВСПОМОГАТЕЛЬНЫЕ КЛАССЫ (HELPERS) --- */
.f-left {
    text-align: left !important;
}

.f-center {
    text-align: center !important;
}

.f-primary,
.f-green {
    color: #167f2b !important;
}

.f-secondary {
    color: #282e6a;
}

.f-white {
    color: #fff !important;
}

.f-extrabold {
    font-weight: 800;
}

.f-uppercase {
    text-transform: uppercase;
}

/* Правило для надстрочных знаков м3 */
sup {
    font-size: 0.7em;
    line-height: 0;
    vertical-align: baseline;
    position: relative;
    top: -0.4em;
}


.hyphenate {
  -webkit-hyphens: auto; /* для Safari */
  hyphens: auto;
}