/* ==========================================================================
   CSS VARIABLES & NEW LAYOUT SYSTEM (YEXIBUV.ONE)
   ========================================================================== */
:root {
    --brand-main: #4338ca; /* Indigo 700 */
    --brand-light: #6366f1; /* Indigo 500 */
    --brand-dark: #312e81; /* Indigo 900 */
    --surface-bg: #f8fafc;
    --surface-card: #ffffff;
    --text-primary: #1e293b;
    --text-secondary: #475569;
    --border-soft: #cbd5e1;
    --shadow-float: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-flat: 4px 4px 0px 0px var(--brand-dark);
    --radius-box: 0px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Georgia', serif;
    background-color: var(--surface-bg);
    color: var(--text-primary);
    line-height: 1.8;
    overflow-x: hidden;
}

/* ИСПРАВЛЕНИЕ: Убрана жесткая привязка цвета для .sans-text, чтобы он наследовал белый цвет в темных блоках */
h1, h2, h3, h4 {
    font-family: 'Arial', sans-serif;
    color: var(--text-primary);
    line-height: 1.3;
}
.sans-text {
    font-family: 'Arial', sans-serif;
}

a { text-decoration: none; color: inherit; transition: 0.2s ease-in-out; }
img { max-width: 100%; display: block; object-fit: cover; }
ul { list-style: none; padding: 0; margin: 0; }

/* ==========================================================================
   CONTAINERS & GRIDS
   ========================================================================== */
.wrapper { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 5%; }

/* ИСПРАВЛЕНИЕ: Заменены padding: 80px 0 на раздельные, чтобы не затирать боковой padding 5% у .wrapper */
.spacing-lg { padding-top: 120px; padding-bottom: 120px; }
.spacing-md { padding-top: 80px; padding-bottom: 80px; }

.bento-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}
@media (min-width: 992px) {
    .bento-grid {
        grid-template-columns: repeat(3, 1fr);
        grid-auto-rows: minmax(300px, auto);
    }
    .bento-item-large { grid-column: span 2; }
    .bento-item-tall { grid-row: span 2; }
}

.alt-row {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-bottom: 80px;
    align-items: center;
}
@media (min-width: 768px) {
    .alt-row { flex-direction: row; }
    .alt-row:nth-child(even) { flex-direction: row-reverse; }
    .alt-img, .alt-text { flex: 1; width: 100%; }
}

/* ==========================================================================
   HEADER
   ========================================================================== */
.topbar {
    background: var(--brand-dark); color: white; text-align: center;
    padding: 8px 15px; font-size: 0.85rem; letter-spacing: 1px;
}
.main-header {
    background: var(--surface-card);
    border-bottom: 2px solid var(--text-primary);
    padding: 30px 0;
}
.header-flex { display: flex; flex-direction: column; align-items: center; gap: 20px; }
.brand-logo { font-size: 2.5rem; font-weight: 900; text-transform: uppercase; letter-spacing: -2px; color: var(--brand-main); }
.site-nav { display: flex; gap: 20px; flex-wrap: wrap; justify-content: center; }
.site-nav a { font-weight: bold; text-transform: uppercase; font-size: 0.9rem; padding-bottom: 5px; border-bottom: 2px solid transparent; }
.site-nav a:hover, .site-nav a.active { border-bottom-color: var(--brand-main); }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero-overlap { position: relative; padding-bottom: 80px; background: var(--surface-bg); }
.hero-image-wrap { width: 100%; height: 50vh; min-height: 350px; position: relative; }
.hero-image-wrap img { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.9); }

/* ИСПРАВЛЕНИЕ: Добавлен width: 92% и уменьшен padding для мобильных */
.hero-content-box {
    background: var(--surface-card);
    border: 3px solid var(--text-primary);
    padding: 30px 20px;
    width: 92%;
    max-width: 800px;
    margin: -80px auto 0;
    position: relative;
    z-index: 10;
    text-align: center;
    box-shadow: var(--shadow-flat);
}
@media (min-width: 768px) {
    .hero-content-box { padding: 50px; margin: -150px auto 0; }
}
/* ИСПРАВЛЕНИЕ: Адаптивный размер шрифта */
.hero-content-box h1 { font-size: clamp(2rem, 5vw, 3.5rem); margin-bottom: 20px; line-height: 1.2; }
.hero-content-box p { font-size: 1.1rem; color: var(--text-secondary); margin-bottom: 30px; }

/* ==========================================================================
   BUTTONS & CARDS
   ========================================================================== */
.action-btn {
    display: inline-block; padding: 16px 30px; background: var(--brand-main);
    color: white; font-family: 'Arial', sans-serif; font-weight: bold;
    text-transform: uppercase; border: 2px solid var(--text-primary);
    box-shadow: 4px 4px 0px 0px var(--text-primary); cursor: pointer; transition: all 0.1s;
    text-align: center;
}
.action-btn:active { transform: translate(4px, 4px); box-shadow: 0px 0px 0px 0px var(--text-primary); }
.info-card { background: var(--surface-card); border: 2px solid var(--border-soft); padding: 30px; transition: 0.3s; }
.info-card:hover { border-color: var(--brand-main); box-shadow: var(--shadow-float); }

/* ==========================================================================
   FORMS
   ========================================================================== */
.contact-form { display: flex; flex-direction: column; gap: 20px; background: white; padding: 30px; border: 2px solid var(--text-primary); }
@media (min-width: 768px) { .contact-form { padding: 40px; } }
.input-field { width: 100%; padding: 15px; font-family: inherit; border: 1px solid var(--border-soft); background: var(--surface-bg); font-size: 1rem; }
.input-field:focus { outline: none; border-color: var(--brand-main); }
textarea.input-field { min-height: 150px; resize: vertical; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer { background: white; border-top: 4px solid var(--brand-main); padding: 60px 0 30px; margin-top: 60px; }
.footer-cols { display: grid; grid-template-columns: 1fr; gap: 40px; margin-bottom: 40px; }
@media (min-width: 768px) { .footer-cols { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); } }
.footer-heading { font-size: 1.2rem; text-transform: uppercase; margin-bottom: 20px; color: var(--brand-dark); }
/* ИСПРАВЛЕНИЕ: Жесткий сброс маркеров для списков в футере */
.footer-list { list-style-type: none !important; padding: 0 !important; margin: 0 !important; }
.footer-list li { list-style-type: none !important; margin-bottom: 12px; }
.footer-list a:hover { color: var(--brand-main); text-decoration: underline; }
.footer-legal { text-align: center; border-top: 1px solid var(--border-soft); padding-top: 20px; font-size: 0.9rem; color: var(--text-secondary); }

/* ==========================================================================
   COOKIE NOTIFICATION
   ========================================================================== */
.cookie-notice { position: fixed; bottom: 20px; right: 20px; max-width: 320px; background: var(--text-primary); color: white; padding: 20px; border-left: 5px solid var(--brand-light); box-shadow: var(--shadow-float); z-index: 1000; display: flex; flex-direction: column; gap: 15px; }
.cookie-notice.hide { display: none; }
.cookie-accept-btn { background: white; color: var(--text-primary); border: none; padding: 10px; font-weight: bold; cursor: pointer; text-align: center; width: 100%; }