:root {
    /* Colors */
    --color-primary-900: #1e3a5f;
    --color-primary-800: #2a4a6f;
    --color-primary-700: #3a5a7f;
    --color-accent-500: #c9a227;
    --color-accent-400: #d4b23a;
    --color-accent-600: #b08d1f;
    --color-surface: #ffffff;
    --color-surface-alt: #f8f9fa;
    --color-text: #1f2937;
    --color-text-muted: #6b7280;
    --color-border: #e5e7eb;

    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Lato', sans-serif;

    /* Spacing */
    --spacing-container: 1200px;
    --spacing-section: 6rem;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--color-text);
    line-height: 1.7;
    background-color: var(--color-surface);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--color-primary-900);
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.25rem;
    line-height: 1.2;
}

h2 {
    font-size: 1.75rem;
    line-height: 1.3;
}

h3 {
    font-size: 1.25rem;
    font-weight: 600;
}

p {
    margin-bottom: 1.5rem;
    color: var(--color-text);
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Utilities */
.container {
    max-width: var(--spacing-container);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: var(--spacing-section) 0;
}

.bg-alt {
    background-color: var(--color-surface-alt);
}

.bg-navy {
    background-color: var(--color-primary-900);
    color: var(--color-surface);
}

.text-center {
    text-align: center;
}

.text-gold {
    color: var(--color-accent-500);
}

.grid {
    display: grid;
    gap: 2rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 700;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-align: center;
}

.btn--primary {
    background: var(--color-accent-500);
    color: var(--color-primary-900);
}

.btn--primary:hover {
    background: var(--color-accent-600);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(201, 162, 39, 0.3);
}

.btn--outline {
    border: 2px solid var(--color-accent-500);
    color: var(--color-accent-500);
    background: transparent;
}

.btn--outline:hover {
    background: var(--color-accent-500);
    color: var(--color-primary-900);
}

/* Header & Nav */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 20px rgba(0,0,0,0.05);
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.header__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav__list {
    display: none;
    list-style: none;
    gap: 2rem;
}

.nav__link {
    font-weight: 600;
    color: var(--color-primary-900);
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav__link:hover {
    color: var(--color-accent-500);
}

.mobile-toggle {
    display: block;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--color-primary-900);
    margin: 5px 0;
    transition: 0.3s;
}

/* Hero */
.hero {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    color: white;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(30,58,95,0.9) 0%, rgba(30,58,95,0.6) 100%);
}

.hero__content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero__title {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.hero__subtitle {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

/* Cards */
.card {
    background: white;
    padding: 2.5rem;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border-top: 4px solid var(--color-accent-500);
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

.card__icon {
    width: 48px;
    height: 48px;
    margin-bottom: 1.5rem;
    fill: var(--color-accent-500);
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 700;
    color: var(--color-primary-900);
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--color-accent-500);
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.9rem;
}

/* Footer */
.footer {
    background: var(--color-primary-900);
    color: white;
    padding: 4rem 0 2rem;
}

.footer h4 {
    color: var(--color-accent-500);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.footer__links {
    list-style: none;
}

.footer__links li {
    margin-bottom: 0.8rem;
}

.footer__links a:hover {
    color: var(--color-accent-500);
}

.footer__disclaimer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.85rem;
    color: #9ca3af;
    text-align: center;
}

/* Modals & Banners */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: white;
    padding: 1.5rem;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.1);
    z-index: 2000;
    display: none;
    border-top: 4px solid var(--color-accent-500);
}

.modal {
    position: fixed;
    inset: 0;
    background: rgba(30,58,95,0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 3000;
    padding: 1rem;
}

.modal__content {
    background: white;
    padding: 2.5rem;
    max-width: 600px;
    width: 100%;
    border-radius: 8px;
    position: relative;
}

/* Desktop Media Queries */
@media (min-width: 768px) {
    h1 { font-size: 3rem; }
    h2 { font-size: 2.25rem; }
    
    .grid-2 { grid-template-columns: 1fr 1fr; }
    .grid-3 { grid-template-columns: repeat(3, 1fr); }
    .grid-4 { grid-template-columns: repeat(4, 1fr); }

    .mobile-toggle { display: none; }
    .nav__list {
        display: flex;
        align-items: center;
    }

    .hero__title { font-size: 3.5rem; }
    
    .zig-zag {
        display: flex;
        align-items: center;
        gap: 4rem;
    }
    .zig-zag:nth-child(even) { flex-direction: row-reverse; }
    .zig-zag > * { flex: 1; }
}




/* === AUTO CONTRAST FIX === */
/* Только для секций с фоновыми изображениями */
section[style*="background-image"] { position: relative; }
section[style*="background-image"]::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.6));
    z-index: 1;
}
section[style*="background-image"] > * { position: relative; z-index: 2; }
section[style*="background-image"] h1,
section[style*="background-image"] h2,
section[style*="background-image"] h3,
section[style*="background-image"] p {
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}
/* Hero с классом */
.hero--dark h1, .hero--dark h2, .hero--dark p { color: white; }
/* Footer всегда тёмный */
.footer { background: #1f2937; color: #9ca3af; }
.footer h4 { color: white; }
.footer a { color: #9ca3af; }
.footer a:hover { color: white; }
/* Cookie banner */
.cookie-banner { position: fixed; bottom: 0; left: 0; right: 0; background: #1f2937; padding: 1rem; z-index: 1000; }
/* === END AUTO CONTRAST FIX === */
