:root {
    /* Colors - Charcoal Coral Palette */
    --color-primary-900: #2d3436;
    --color-primary-800: #3d4446;
    --color-primary-700: #4d5456;
    --color-accent-500: #e17055;
    --color-accent-400: #e88472;
    --color-accent-600: #c85d45;
    --color-surface: #ffffff;
    --color-surface-alt: #f7f7f7;
    --color-text: #2d3436;
    --color-text-muted: #636e72;
    --color-border: #dfe6e9;

    /* Typography */
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 8rem;

    /* Layout */
    --container-width: 1200px;
    --content-width: 720px;
    --header-height: 80px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--color-primary-900);
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
}

h1 {
    font-size: 2.25rem;
    font-weight: 600;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 1.875rem;
    font-weight: 600;
}

h3 {
    font-size: 1.375rem;
    font-weight: 500;
}

@media (min-width: 768px) {
    h1 { font-size: 3.5rem; line-height: 1.15; }
    h2 { font-size: 2.5rem; }
}

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

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

/* Utility Classes */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

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

.content-narrow {
    max-width: var(--content-width);
    margin: 0 auto;
}

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

@media (min-width: 768px) {
    .section-padding {
        padding: var(--spacing-xl) 0;
    }
}

/* Header */
.header {
    background: var(--color-surface);
    height: var(--header-height);
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.nav-desktop {
    display: none;
}

.nav-desktop ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-desktop a {
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--color-primary-900);
}

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

.hamburger {
    display: block;
    cursor: pointer;
    background: none;
    border: none;
}

@media (min-width: 992px) {
    .nav-desktop {
        display: block;
    }
    .hamburger {
        display: none;
    }
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    padding: 2rem;
    transform: translateY(-150%);
    transition: transform 0.3s ease-in-out;
    z-index: 999;
}

.mobile-menu.active {
    transform: translateY(0);
}

.mobile-menu ul {
    list-style: none;
    text-align: center;
}

.mobile-menu li {
    margin-bottom: 1.5rem;
}

.mobile-menu a {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 500;
}

/* Hero Section (Text Only Style) */
.hero {
    padding: var(--spacing-xl) 0;
    background: var(--color-surface);
    display: flex;
    align-items: center;
    min-height: 60vh;
}

.hero h1 {
    margin-bottom: var(--spacing-md);
}

.hero-subtitle {
    font-size: 1.25rem;
    line-height: 1.6;
    color: var(--color-text-muted);
    margin-bottom: var(--spacing-md);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 4px;
    font-weight: 500;
    font-size: 0.9375rem;
    letter-spacing: 0.02em;
    transition: all 0.2s ease;
    cursor: pointer;
    font-family: var(--font-heading);
}

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

.btn--primary:hover {
    background: var(--color-accent-600);
    border-color: var(--color-accent-600);
}

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

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

.btn-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

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

.card-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.card {
    background: var(--color-surface);
    padding: 2rem;
    border-left: 4px solid var(--color-accent-500);
    transition: transform 0.2s ease;
}

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

.quote-section {
    background: var(--color-surface-alt);
    padding: var(--spacing-xl) 0;
}

.quote-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-style: italic;
    color: var(--color-primary-800);
    line-height: 1.6;
}

@media (min-width: 768px) {
    .quote-text { font-size: 2.25rem; }
}

.method-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 3rem;
}

@media (min-width: 768px) {
    .method-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Forms */
.form-group {
    margin-bottom: 2rem;
    text-align: left;
}

.form-control {
    width: 100%;
    padding: 0.8rem 0;
    border: none;
    border-bottom: 2px solid var(--color-border);
    font-family: var(--font-body);
    font-size: 1rem;
    background: transparent;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-bottom-color: var(--color-accent-500);
}

.form-label {
    display: block;
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-bottom: 0.5rem;
}

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

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.footer h4 {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.footer ul {
    list-style: none;
}

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

.footer a {
    color: #9ca3af;
}

.footer a:hover {
    color: white;
}

.footer-text {
    color: #9ca3af;
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 2rem;
    text-align: center;
    color: #6b7280;
    font-size: 0.8rem;
}

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

.cookie-content {
    max-width: var(--container-width);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    text-align: center;
}

@media (min-width: 768px) {
    .cookie-content {
        flex-direction: row;
        text-align: left;
        justify-content: space-between;
    }
}

#privacy-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 2001;
    display: none;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: white;
    padding: 2rem;
    width: 90%;
    max-width: 500px;
    border-radius: 4px;
    max-height: 90vh;
    overflow-y: auto;
}

.error-message {
    color: var(--color-accent-500);
    font-size: 0.8rem;
    margin-top: 0.5rem;
    display: none;
}

/* Images */
img {
    max-width: 100%;
    height: auto;
    display: block;
}
/* === 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 === */
