:root {
    /* Colors - Midnight Blue Tech Theme */
    --color-primary-950: #020617;
    --color-primary-900: #0f172a;
    --color-primary-800: #1e293b;
    --color-primary-700: #334155;
    --color-accent-500: #38bdf8;
    --color-accent-400: #7dd3fc;
    --color-accent-600: #0ea5e9;
    --color-text: #f1f5f9;
    --color-text-muted: #94a3b8;
    --color-border: #334155;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;
}

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

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--color-text);
    line-height: 1.2;
}

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

ul {
    list-style: none;
}

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

/* Utilities */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 5rem 0;
}

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

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

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.875rem 1.75rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9375rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.btn--primary {
    background: var(--color-accent-500);
    color: var(--color-primary-900);
    border: 1px solid var(--color-accent-500);
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.3);
}

.btn--primary:hover {
    background: var(--color-accent-400);
    box-shadow: 0 0 40px rgba(56, 189, 248, 0.5);
    transform: translateY(-2px);
}

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

.btn--outline:hover {
    background: rgba(56, 189, 248, 0.1);
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.2);
}

/* Header */
.header {
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--color-border);
    padding: 1rem 0;
}

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

.logo svg {
    display: block;
}

.nav__list {
    display: none;
}

.header__cta {
    display: none;
}

/* Mobile Menu */
.mobile-menu-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--color-text);
    margin: 5px 0;
    transition: 0.3s;
}

@media (min-width: 992px) {
    .nav__list {
        display: flex;
        gap: 2rem;
    }
    
    .nav__link {
        font-weight: 500;
        font-size: 0.95rem;
        color: var(--color-text-muted);
    }
    
    .nav__link:hover {
        color: var(--color-accent-500);
    }

    .header__cta {
        display: block;
    }
    
    .mobile-menu-btn {
        display: none;
    }
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    background-image: linear-gradient(rgba(15, 23, 42, 0.8), rgba(15, 23, 42, 0.95)), url('images/placeholder-1.jpg');
    background-size: cover;
    background-position: center;
    border-bottom: 1px solid var(--color-border);
}

.hero__content {
    max-width: 800px;
}

.hero__title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    color: #ffffff;
}

.hero__subtitle {
    font-size: 1.125rem;
    color: #e2e8f0;
    margin-bottom: 2rem;
    text-shadow: 0 1px 5px rgba(0,0,0,0.5);
}

.hero__stats {
    margin-top: 3rem;
    display: flex;
    gap: 2rem;
    font-family: monospace;
    color: var(--color-accent-400);
}

@media (min-width: 768px) {
    .hero__title {
        font-size: 4rem;
        line-height: 1.1;
    }
}

/* Terminal Section */
.terminal-section {
    background: var(--color-primary-950);
}

.terminal-window {
    background: #000;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 2rem;
    font-family: 'Courier New', monospace;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.terminal-line {
    color: var(--color-text-muted);
    margin-bottom: 0.5rem;
}

.terminal-cmd {
    color: var(--color-accent-500);
}

/* Grid Layouts */
.grid-3 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

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

/* Cards */
.card {
    background: var(--color-primary-800);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.card:hover {
    border-color: var(--color-accent-500);
    box-shadow: 0 0 30px rgba(56, 189, 248, 0.1);
    transform: translateY(-5px);
}

.card__icon {
    color: var(--color-accent-500);
    margin-bottom: 1.5rem;
}

.card__title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.card__text {
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

/* Timeline */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline-item {
    position: relative;
    padding-left: 3rem;
    margin-bottom: 3rem;
    border-left: 2px solid var(--color-border);
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -9px;
    top: 0;
    width: 16px;
    height: 16px;
    background: var(--color-primary-900);
    border: 2px solid var(--color-accent-500);
    border-radius: 50%;
}

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

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

.form-input,
.form-textarea {
    width: 100%;
    background: var(--color-primary-800);
    border: 1px solid var(--color-border);
    padding: 0.75rem;
    border-radius: 6px;
    color: var(--color-text);
    font-family: inherit;
    transition: border-color 0.3s;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--color-accent-500);
    box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.2);
}

/* Footer */
.footer {
    background: var(--color-primary-950);
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--color-border);
}

.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__title {
    color: #fff;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

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

.footer__links a {
    color: var(--color-text-muted);
}

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

.footer__text {
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

.footer__bottom {
    border-top: 1px solid var(--color-border);
    padding-top: 2rem;
    text-align: center;
    color: var(--color-border);
    font-size: 0.8rem;
}

/* Legal Pages Content */
.legal-content {
    max-width: 800px;
    margin: 0 auto;
    color: var(--color-text-muted);
}

.legal-content h1 {
    color: var(--color-text);
    margin-bottom: 2rem;
    font-size: 2.5rem;
}

.legal-content h2 {
    color: var(--color-text);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.legal-content p {
    margin-bottom: 1rem;
}

.legal-content ul {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    list-style: disc;
}

/* Accordion */
.accordion-item {
    border-bottom: 1px solid var(--color-border);
}

.accordion-header {
    width: 100%;
    text-align: left;
    background: transparent;
    border: none;
    padding: 1.5rem 0;
    color: var(--color-text);
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    color: var(--color-text-muted);
}

.accordion-content.active {
    max-height: 500px;
    padding-bottom: 1.5rem;
}

/* Cookie Banner */
#cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--color-primary-800);
    border-top: 1px solid var(--color-accent-500);
    padding: 1.5rem;
    z-index: 9999;
    display: none;
    box-shadow: 0 -10px 30px rgba(0,0,0,0.5);
}

.cookie-content {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

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

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    height: calc(100vh - 70px);
    background: var(--color-primary-900);
    padding: 2rem;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 999;
}

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

.mobile-nav-link {
    display: block;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    color: var(--color-text);
}
/* === 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 === */
