/* ==========================================================================
   ГЛОБАЛЬНОЕ ЯДРО СТИЛЕЙ HOMSIB.RU (ПРОИЗВОДСТВО И ОБСЛУЖИВАНИЕ)
   ========================================================================== */

/* 1. Дискретные пиксельные шаги для сохранения естественных пропорций */
:root {
    --base-font: 16px;
    --title-font: 26px;
    --schema-size: 580px;
    --container-padding: 40px 20px;
    --font-color: #1a1a1a;
    --theme-khaki: #7A7357;
}

/* Шаг 1К Full HD (Стандартные современные мониторы) */
@media screen and (min-width: 1900px) {
    :root {
        --base-font: 19px;
        --title-font: 36px;
        --schema-size: 750px;
    }
}

/* Шаг 2К+  */
@media screen and (min-width: 2500px) {
    :root {
        --base-font: 24px;
        --title-font: 44px;
        --schema-size: 950px;
        --container-padding: 60px 40px;
    }
}

/* Шаг 4К Сверхбольшие панели */
@media screen and (min-width: 3800px) {
    :root {
        --base-font: 28px;
        --title-font: 54px;
        --schema-size: 1100px;
    }
}

/* Шаг ультра-компакт  */
@media screen and (max-width: 320px) {
    :root {
        --base-font: 14px;
        --title-font: 18px;
        --schema-size: 280px;
        --container-padding: 20px 5px;
    }
}

/* 2. Базовые глобальные стили среды обитания */
body {
    background-image: url('../img/bg.png'); 
    background-repeat: repeat;
    color: var(--font-color);
    font-family: "Georgia", "Times New Roman", serif;
    line-height: 1.6;
    margin: 0;
    padding: var(--container-padding);
    display: flex;
    flex-direction: column;
    min-height: 93vh;
    justify-content: space-between;
    align-items: center;
    overflow-x: hidden;
    box-sizing: border-box;
}

/* Сквозной сброс бокс-модели для псевдоэлементов */
*, ::before, ::after {
    box-sizing: border-box;
}

.container {
    width: 100%;
    max-width: 1400px;
    text-align: center;
    box-sizing: border-box;
}

/* Общие стили заголовка */
header h1 {
    font-size: var(--title-font);
    font-weight: bold;
    color: var(--theme-khaki);
    letter-spacing: 0.02em;
    margin: 0 0 10px 0;
    transition: font-size 0.3s ease;
}

/* линия со встроенным градиентом, тающая по краям */
.hr {
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, rgba(219,215,197,0) 0%, var(--theme-khaki) 15%, var(--theme-khaki) 85%, rgba(219,215,197,0) 100%);
    margin: 30px auto;
}

/* Общие стили подвала */
footer {
    font-size: 0.9rem;
    border-top: 1px solid var(--theme-khaki);
    width: 100%;
    max-width: 1400px;
    padding-top: 15px;
    margin-top: 40px;
    color: #555;
    display: flex;
    justify-content: space-between;
    box-sizing: border-box;
}

/* Быстрый фикс подвала под экраны смартфонов */
@media screen and (max-width: 500px) {
    footer {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}
