/* ==========================================================================
   1. ГЛОБАЛЬНЫЕ СБРОСЫ, ШРИФТЫ И ОСНОВНЫЕ СТИЛИ (CORE & TYPOGRAPHY)
   ========================================================================== */

/* Жесткий сброс шрифтов для абсолютно всех элементов на сайте */
*,
*::before,
*::after {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
    letter-spacing: normal !important;
}

body {
    margin: 0;
    color: #1a1a1a !important;
    /* Фирменный почти черный цвет */
}

.page {
    position: relative;
    min-width: 320px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    line-height: 1.5;
    color: #1a1a1a;
    overflow-x: hidden;
}

/* Настройки жирности шрифта */
b,
strong,
.f-bold {
    font-weight: 700;
}

.f-semibold {
    font-weight: 600;
}

.f-extrabold {
    font-weight: 800;
}

/* Общие правила для всех заголовков */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.5;
    margin: 0 0 1em 0;
    color: #1a1a1a;
}

h2 {
    text-align: center;
}

/* Базовый текст сайта и специфичные текстовые блоки */
p,
li,
td,
th,
.preim_advantages_item_text,
.kt-char-ico {
    font-size: 17px;
    line-height: 1.4;
    color: #1a1a1a;
    margin-bottom: 1em;
}


/* ==========================================================================
   2. СЕТКА И СТРУКТУРНЫЕ ЭЛЕМЕНТЫ (LAYOUT & CONTAINER)
   ========================================================================== */

.container {
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
    width: 100%;
    z-index: 9;
}

/* Вертикальные отступы для всех секций-модулей (мобильный дефолт) */
section {
    padding-top: 24px;
    padding-bottom: 24px;
}


/* ==========================================================================
   3. НАСТРОЙКИ ДЛЯ МОБИЛЬНЫХ УСТРОЙСТВ И ПЛАНШЕТОВ (КЛЮЧЕВЫЕ МЕДИА-ЗАПРОСЫ)
   ========================================================================== */

/* --- Мобильные экраны: ширина меньше 768px --- */
@media (max-width: 767px) {
    h1 {
        font-size: 25px !important;
    }

    h2 {
        font-size: 25px !important;
    }

    p,
    span,
    div,
    a,
    th,
    td,
    b,
    li,
    ul {
        font-size: 17px !important;
    }

    text-price-in-catalog {
        font-size: 23px !important;
        font-weight: 800;
        color: #1a1a1a;
    }

    text-price {
        font-size: 23px !important;
    }

    text-price-modtab {
        font-size: 21px !important;
        font-weight: 800 !important;
    }
}

/* --- Планшеты и экраны до ноутбуков: от 768px до 1023px --- */
@media (min-width: 768px) and (max-width: 1023px) {
    h2 {
        font-size: 28px;
    }
}

/* --- Ограничения контейнера для разных разрешений --- */
@media (max-width: 1300px) {
    .container {
        padding-left: 11px;
        padding-right: 11px;
    }

    .page {
        font-size: 14px;
    }
}

@media (min-width: 1024px) and (max-width: 1066px) {
    .container {
        width: 97%;
    }
}

@media (min-width: 1067px) and (max-width: 1359px) {
    .container {
        width: 95%;
    }
}


/* ==========================================================================
   4. НАСТРОЙКИ ДЛЯ ПК И БОЛЬШИХ МОНИТОРОВ (DESKTOP)
   ========================================================================== */

/* --- Базовый десктоп: от 768px и выше --- */
@media (min-width: 768px) {
    h1 {
        font-size: 40px !important;
    }

    h2 {
        font-size: 35px !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;
    }
}

/* --- Крупный десктоп: от 1024px и выше --- */
@media (min-width: 1024px) {
    section {
        padding-top: 2.5em;
        padding-bottom: 2.5em;
    }

    h2 {
        font-size: 38px;
    }
}

/* --- Мониторы от средних до FullHD --- */
@media (min-width: 1360px) {
    .container {
        width: 88.2%;
        max-width: 1400px;
    }
}

@media (min-width: 1301px) and (max-width: 1699px) {
    .page {
        font-size: 16px;
    }
}

/* --- Сверхбольшие мониторы (Ultra-wide / 4K): от 1700px --- */
@media (min-width: 1700px) {
    .page {
        font-size: 18px;
    }
}


/* ==========================================================================
   5. ВСПОМОГАТЕЛЬНЫЕ КЛАССЫ И МОДИФИКАТОРЫ (HELPERS)
   ========================================================================== */

/* Цветовые темы оформления блоков */
.dark-bg {
    background-color: #eaeaea;
}

/* Выравнивание текста */
.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-uppercase {
    text-transform: uppercase;
}

/* Автоматический перенос длинных слов */
.hyphenate {
    -webkit-hyphens: auto;
    hyphens: auto;
}

/* Правило для надстрочных знаков кубических метров (м³) */
sup {
    font-size: 0.7em;
    line-height: 0;
    vertical-align: baseline;
    position: relative;
    top: -0.4em;
}