/* === БАЗОВЫЕ СТИЛИ === */
body {
    font-family: 'Open Sans', system-ui, sans-serif;
    font-weight: 400;
    background-color: #fefaf5;
    color: #351303;
    line-height: 1.7;
    margin: 0;
    padding: 0;
    position: relative;
}

/* Контроль прозрачности и угла паттерна */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../../images/pattern-web-v2.svg');
    background-repeat: repeat;
    background-size: 70px;
    opacity: 0.05; /* Прозрачность паттерна - можно менять от 0 до 1 */
    transform: rotate(0deg); /* Угол поворота - можно менять */
    filter: brightness(0.7) contrast(1.2); /* Затемнение паттерна */
    pointer-events: none;
    z-index: 0;
}

body > * {
    position: relative;
    z-index: 1;
}

.container {
    max-width: 1200px !important;
}

main.container {
    max-width: 1200px !important;
}

header .container,
footer .container {
    max-width: 1200px !important;
}

.heading-font {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    color: #caa55f;
    line-height: 1.3;
    /*letter-spacing: 0.05em;*/
}

p, .text-content {
    line-height: 1.6;
}

/* === ЦВЕТОВАЯ ПАЛИТРА === */
:root {
    --chocolate: #351303;
    --chocolate-soft: #562a0e;
    --chocolate-light: #5f3419;
    --champagne: #f7efe8;
    --ivory: #fefaf5;
    --cream: #faf6f0;
    --card-bg: #ffffff;

    --gold: #caa55f;
    --gold-soft: #e0c98a;
    --gold-deep: #a2833f;

    /* Legacy variables for compatibility */
    --color-base-dark: #351303;
    --color-bg-medium-1: #562a0e;
    --color-bg-medium-2: #5f3419;
    --color-bg-medium-3: #6e4021;
    --color-accent: #caa55f;
    --color-text-dark: #351303;
    --color-text-light: #351303;
    --color-bg-light: #fefaf5;
}

/* === ХЕДЕР === */
header,
.light-header {
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid rgba(202, 165, 95, 0.2);
    border-radius: 0 !important;
}

.light-header .nav-link {
    color: #351303;
}

.light-header .nav-link:hover {
    color: #caa55f;
}

/* Перекрашиваем золотой логотип в коричневый через CSS filter */
.logo-brown {
    filter: brightness(0) saturate(100%) invert(12%) sepia(45%) saturate(2500%) hue-rotate(359deg) brightness(95%) contrast(96%);
}

/* Inline SVG - перекраска через fill */
.logo-brown-inline path,
.logo-brown-inline line {
    fill: #caa55f;
    stroke: #caa55f;
}

/* === ФУТЕР === */
footer {
    background: #351303 !important;
    border-top: 1px solid rgba(202, 165, 95, 0.3) !important;
}

footer, footer * {
    color: #f7efe8 !important;
}

footer .heading-font {
    color: #caa55f !important;
}

footer a:hover {
    color: #caa55f !important;
}

footer .border-t {
    border-color: rgba(202, 165, 95, 0.2) !important;
}
