/* Modern CSS Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Цветовая палитра - ЗЕЛЕНАЯ (вместо синей) */
    --primary-green: #10B981;
    --primary-green-dark: #059669;
    --primary-green-light: #34D399;
    --primary-green-soft: #D1FAE5;

    --primary: #0F172A; /* темный фон для футера оставляем */
    --primary-light: #1E293B;

    --text-primary: #0F172A;
    --text-secondary: #475569;
    --text-tertiary: #64748B;
    --background: #FFFFFF;
    --surface: #F8FAFC;
    --surface-hover: #F1F5F9;
    --border: #E2E8F0;
    --border-light: #F1F5F9;

    /* Тени */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);

    /* Радиусы */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-2xl: 24px;
    --radius-3xl: 32px;
    --radius-full: 9999px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--background);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
    font-family: 'Unbounded', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

h4 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Buttons */
.btn-primary, .btn-secondary, .btn-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: var(--radius-md);
    font-family: 'Unbounded', sans-serif;
    font-weight: 600;
    font-size: 0.9375rem;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-light);
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: white;
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: var(--surface);
    border-color: var(--text-tertiary);
    transform: translateY(-1px);
}

.btn-link {
    padding: 0;
    color: var(--primary-green);
    background: transparent;
    gap: 6px;
}

.btn-link:hover {
    gap: 10px;
    color: var(--primary-green-light);
}

.btn-large {
    padding: 16px 32px;
    font-size: 1rem;
}

.btn-small {
    padding: 10px 20px;
    font-size: 0.875rem;
}

/* Header */
.header {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 40px);
    max-width: 1200px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-light);
    z-index: 1000;
}

.navbar {
    padding: 16px 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 24px;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    max-height: 40px;
    width: auto;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-family: 'Unbounded', sans-serif;
    font-weight: 500;
    font-size: 0.875rem;
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: var(--primary-green);
}

.nav-buttons .btn-primary {
    background: var(--primary-green);
}

.nav-buttons .btn-primary:hover {
    background: var(--primary-green-light);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-primary);
    cursor: pointer;
}

/* Section Headers */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-subtitle {
    display: inline-block;
    color: var(--primary-green);
    font-family: 'Unbounded', sans-serif;
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 16px;
}

.section-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 20px auto 0;
}

/* Footer - исправленный как плашка */
.footer {
    padding: 0 20px 20px 20px;
    margin-top: 80px;
}

.footer-content {
    background: var(--primary);
    border-radius: var(--radius-3xl);
    padding: 60px 40px 40px;
    color: white;
    max-width: 1200px;
    margin: 0 auto;
    box-shadow: var(--shadow-xl);
}

.footer-brand .logo img {
    filter: brightness(0) invert(1);
    margin-bottom: 16px;
}

.footer-tagline {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9375rem;
}

.footer-main {
    display: grid;
    grid-template-columns: 1.5fr 2fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

@media (max-width: 1024px) {
    .footer-main {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .footer-main {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

@media (max-width: 480px) {
    .footer-links {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
}

.footer-column h4 {
    color: white;
    font-size: 1rem;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.footer-column h4:after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--primary-green);
}

@media (max-width: 768px) {
    .footer-column h4:after {
        left: 50%;
        transform: translateX(-50%);
    }
}

.footer-column a {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    margin-bottom: 12px;
    font-size: 0.875rem;
    transition: color 0.2s ease;
}

.footer-column a:hover {
    color: white;
    transform: translateX(5px);
}

@media (max-width: 768px) {
    .footer-column a:hover {
        transform: translateX(0) translateY(-2px);
    }
}

.footer-social h4 {
    color: white;
    font-size: 1rem;
    margin-bottom: 20px;
}

.social-icons {
    display: flex;
    gap: 12px;
}

@media (max-width: 768px) {
    .social-icons {
        justify-content: center;
    }
}

.social-icon {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.2s ease;
}

.social-icon:hover {
    background: white;
    color: var(--primary);
    transform: translateY(-2px);
}

.footer-bottom {
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    margin: 0;
    line-height: 1.5;
}

/* Responsive */
@media (max-width: 1024px) {
    h1 {
        font-size: 3rem;
    }

    h2 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 80px;
        left: 20px;
        right: 20px;
        background: white;
        border-radius: var(--radius-lg);
        padding: 24px;
        box-shadow: var(--shadow-xl);
        border: 1px solid var(--border);
        z-index: 1000;
    }

    .nav-buttons {
        display: none;
    }

    .menu-toggle {
        display: block;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2.25rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    .container {
        padding: 0 20px;
    }
}
