:root {
    /* Основные цвета */
    --primary-color: #007bff;
    --primary-hover: #0056b3;
    --secondary-color: #6c757d;
    --secondary-hover: #545b62;
    --accent-color: #0fc2c0;
    --accent-hover: #0a9e9c;
    
    /* Цвета текста */
    --text-color: #212529;
    --text-light: #f8f9fa;
    --text-muted: #6c757d;
    --link-color: #007bff;
    
    /* Фоновые цвета */
    --bg-color: #ffffff;
    --bg-light: #f8f9fa;
    --bg-dark: #343a40;
    --card-bg: #ffffff;
    --code-bg: #f5f5f5;
    
    /* Границы */
    --border-color: #dee2e6;
    --border-radius: 4px;
    
    /* Тени */
    --shadow-sm: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    --shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.175);
    
    /* Шрифты */
    --font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-size-base: 1rem;
    --font-size-sm: 0.875rem;
    --font-size-lg: 1.25rem;
    
    /* Размеры */
    --header-height: 70px;
    --container-max-width: 1200px;
    --section-spacing: 6rem;
}

/* Темная тема */
@media (prefers-color-scheme: dark) {
    :root {
        --primary-color: #0d6efd;
        --primary-hover: #0b5ed7;
        
        --text-color: #e9ecef;
        --text-light: #f8f9fa;
        --text-muted: #adb5bd;
        --link-color: #0d6efd;
        
        --bg-color: #121212;
        --bg-light: #212529;
        --bg-dark: #000000;
        --card-bg: #212529;
        --code-bg: #2b3035;
        
        --border-color: #495057;
    }
}

/* Базовые стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    line-height: 1.5;
    color: var(--text-color);
    background-color: var(--bg-color);
}

.container {
    width: 100%;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Типографика */
h1, h2, h3, h4, h5, h6 {
    margin-bottom: 0.5em;
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.75rem;
}

h4 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--link-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-hover);
}

ul, ol {
    margin-bottom: 1rem;
    padding-left: 2rem;
}

li {
    margin-bottom: 0.5rem;
}

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

/* Кнопки */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-decoration: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--text-light);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    color: var(--text-light);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--text-light);
}

.btn-secondary:hover {
    background-color: var(--secondary-hover);
    color: var(--text-light);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: var(--font-size-lg);
}

/* Шапка сайта */
header {
    position: sticky;
    top: 0;
    background-color: var(--bg-color);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    height: var(--header-height);
    display: flex;
    align-items: center;
}

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

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 40px;
    margin-right: 0.75rem;
}

.logo h1 {
    font-size: 1.5rem;
    margin-bottom: 0;
}

nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

nav ul li {
    margin: 0 0.5rem;
}

nav ul li a {
    display: block;
    padding: 0.5rem 1rem;
    color: var(--text-color);
    font-weight: 600;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
}

nav ul li a:hover,
nav ul li a.active {
    color: var(--primary-color);
    background-color: var(--bg-light);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* Секции */
section {
    padding: var(--section-spacing) 0;
}

section h2 {
    text-align: center;
    margin-bottom: 3rem;
}

/* Подвал */
footer {
    background-color: var(--bg-dark);
    color: var(--text-light);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.footer-logo img {
    height: 40px;
    margin-right: 0.75rem;
}

.footer-logo h2 {
    margin-bottom: 0;
    font-size: 1.5rem;
}

.footer-links h3,
.footer-contact h3 {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links ul li {
    margin-bottom: 0.75rem;
}

.footer-links ul li a {
    color: var(--text-muted);
    transition: color 0.3s ease;
}

.footer-links ul li a:hover {
    color: var(--text-light);
}

.contact-link {
    display: inline-block;
    color: var(--accent-color);
    margin-top: 0.5rem;
}

.contact-link:hover {
    color: var(--accent-hover);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

/* Медиа-запросы */
@media (max-width: 991px) {
    :root {
        --section-spacing: 4rem;
    }
    
    h1 {
        font-size: 2.25rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
}

@media (max-width: 767px) {
    :root {
        --section-spacing: 3rem;
    }
    
    header {
        height: auto;
    }
    
    .menu-toggle {
        display: block;
    }
    
    nav {
        position: absolute;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background-color: var(--bg-color);
        box-shadow: var(--shadow);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    
    nav.open {
        max-height: 300px;
    }
    
    nav ul {
        flex-direction: column;
        padding: 1rem;
    }
    
    nav ul li {
        margin: 0;
    }
    
    nav ul li a {
        padding: 1rem;
        text-align: center;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 575px) {
    :root {
        --section-spacing: 2.5rem;
    }
    
    h1 {
        font-size: 1.75rem;
    }
    
    h2 {
        font-size: 1.35rem;
    }
    
    .btn {
        padding: 0.6rem 1.2rem;
    }
}

/* Утилиты */
.text-center {
    text-align: center;
}

.mt-0 {
    margin-top: 0;
}

.mb-0 {
    margin-bottom: 0;
}

.my-0 {
    margin-top: 0;
    margin-bottom: 0;
}

.mt-3 {
    margin-top: 1.5rem;
}

.mb-3 {
    margin-bottom: 1.5rem;
}

.my-3 {
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
}

.mt-5 {
    margin-top: 3rem;
}

.mb-5 {
    margin-bottom: 3rem;
}

.my-5 {
    margin-top: 3rem;
    margin-bottom: 3rem;
} 