/* ===================================
   БАЗОВЫЕ СТИЛИ И СБРОС
   =================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Цветовая палитра */
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --text-color: #333;
    --text-light: #666;
    --bg-light: #f8f9fa;
    --bg-dark: #1a1a1a;
    --white: #ffffff;
    
    /* Типографика */
    --font-primary: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    --font-secondary: 'Georgia', serif;
    
    /* Размеры */
    --max-width: 1200px;
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 4rem;
    
    /* Тени */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.15);
    
    /* Переходы */
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style-position: inside;
}

/* ===================================
   КОНТЕЙНЕРЫ И СЕКЦИИ
   =================================== */

.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

.section {
    padding: var(--spacing-lg) 0;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    color: var(--primary-color);
    text-align: center;
}

.subsection-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    color: var(--secondary-color);
}

.bg-light {
    background-color: var(--bg-light);
}

.bg-dark {
    background-color: var(--bg-dark);
    color: var(--white);
}

.white-text {
    color: var(--white);
}

/* ===================================
   ШАПКА И НАВИГАЦИЯ (МОБИЛЬНАЯ)
   =================================== */

.header {
    background-color: var(--white);
    box-shadow: var(--shadow-md);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-sm) 0;
}

.logo a {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 0.5px;
}

/* Мобильное меню */
.nav-menu {
    position: fixed;
    left: -100%;
    top: 60px;
    flex-direction: column;
    background-color: var(--white);
    width: 100%;
    text-align: center;
    transition: 0.3s;
    box-shadow: var(--shadow-lg);
    padding: var(--spacing-md) 0;
}

.nav-menu.active {
    left: 0;
}

.nav-menu li {
    list-style: none;
    margin: var(--spacing-sm) 0;
}

.nav-menu a {
    color: var(--primary-color);
    font-size: 1.1rem;
    font-weight: 500;
    padding: var(--spacing-sm);
    display: block;
    transition: var(--transition);
}

/* Переключатель языков */
.lang-switcher {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.lang-link {
    color: var(--text-light);
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    transition: var(--transition);
}

.lang-link:hover {
    color: var(--secondary-color);
    background-color: rgba(52, 152, 219, 0.1);
}

.lang-link.active {
    color: var(--secondary-color);
    font-weight: 700;
}

.lang-separator {
    color: var(--text-light);
    font-size: 0.9rem;
}

.nav-menu a:hover {
    color: var(--secondary-color);
    background-color: var(--bg-light);
}

/* Гамбургер меню */
.hamburger {
    display: block;
    cursor: pointer;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* ===================================
   HERO СЕКЦИЯ (МОБИЛЬНАЯ)
   =================================== */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    margin-top: 60px;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><rect fill="%23667eea" width="1200" height="600"/><g fill-opacity="0.1"><polygon fill="%23444" points="1200 0 0 0 0 600"/><polygon fill="%23333" points="1200 600 0 600 600 300"/></g></svg>');
    background-size: cover;
    opacity: 0.3;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: var(--spacing-md);
    animation: fadeInUp 1s ease-out;
}

.hero-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: var(--spacing-md);
    line-height: 1.3;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--white);
    font-weight: 300;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
}

.mouse {
    width: 25px;
    height: 40px;
    border: 2px solid var(--white);
    border-radius: 15px;
    position: relative;
}

.mouse::before {
    content: '';
    width: 4px;
    height: 8px;
    background: var(--white);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0%, 20% { transform: translateX(-50%) translateY(0); opacity: 1; }
    100% { transform: translateX(-50%) translateY(15px); opacity: 0; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===================================
   WELCOME СЕКЦИЯ
   =================================== */

.welcome {
    text-align: center;
    background-color: var(--white);
    position: relative;
    z-index: 10;
}

.lead-text {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
    line-height: 1.5;
}

.welcome-content p {
    margin-bottom: var(--spacing-sm);
    color: var(--text-light);
}

/* ===================================
   О КОМПАНИИ (МОБИЛЬНАЯ)
   =================================== */

.about {
    background-color: var(--white);
    position: relative;
    z-index: 10;
}

.about-content p {
    margin-bottom: var(--spacing-sm);
    text-align: justify;
}

/* ===================================
   КАК ЭТО РАБОТАЕТ
   =================================== */

.how-content p {
    margin-bottom: var(--spacing-sm);
    text-align: justify;
}

.image-placeholder {
    margin: var(--spacing-md) 0;
    text-align: center;
}

.responsive-img {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    background-color: #e0e0e0;
    min-height: 200px;
}

.image-caption {
    margin-top: var(--spacing-sm);
    font-style: italic;
    color: var(--text-light);
    font-size: 0.9rem;
}

/* ===================================
   FEATURES (МОБИЛЬНАЯ)
   =================================== */

.features {
    background-color: var(--white);
    position: relative;
    z-index: 10;
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
}

.feature-card {
    background: var(--white);
    padding: var(--spacing-md);
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto var(--spacing-sm);
    color: var(--secondary-color);
}

.feature-icon svg {
    width: 100%;
    height: 100%;
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    color: var(--primary-color);
}

.feature-card p {
    color: var(--text-light);
    line-height: 1.8;
}

/* ===================================
   ПРОДУКТЫ (МОБИЛЬНАЯ)
   =================================== */

.products-intro {
    margin-bottom: var(--spacing-lg);
}

.products-intro p {
    margin-bottom: var(--spacing-sm);
    font-size: 1.1rem;
}

.products-list {
    background: var(--white);
    padding: var(--spacing-md);
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
}

.products-list li {
    margin-bottom: var(--spacing-sm);
    line-height: 1.8;
}

.product-category {
    margin-bottom: var(--spacing-lg);
}

.category-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: var(--spacing-md);
    color: var(--secondary-color);
    border-bottom: 3px solid var(--secondary-color);
    padding-bottom: var(--spacing-xs);
}

.product-items {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.product-item {
    background: var(--white);
    padding: var(--spacing-md);
    border-radius: 8px;
    border-left: 4px solid var(--secondary-color);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.product-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateX(5px);
}

.product-item h4 {
    font-size: 1.2rem;
    margin-bottom: var(--spacing-sm);
    color: var(--primary-color);
}

.product-badge {
    display: inline-block;
    background: var(--accent-color);
    color: var(--white);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    margin-bottom: var(--spacing-sm);
    font-weight: 600;
}

.product-item ul {
    list-style: none;
    padding-left: 0;
}

.product-item ul li {
    padding: var(--spacing-xs) 0;
    position: relative;
    padding-left: 24px;
}

.product-item ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: bold;
}

.product-note {
    margin-top: var(--spacing-md);
    font-style: italic;
    color: var(--text-light);
    text-align: center;
}

/* ===================================
   ПРЕИМУЩЕСТВА (МОБИЛЬНАЯ)
   =================================== */

.benefits {
    background-color: var(--white);
    position: relative;
    z-index: 10;
}

.benefits-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
}

.benefit-card {
    background: var(--white);
    padding: var(--spacing-md);
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: var(--transition);
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.benefit-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-sm);
}

.benefit-card h3 {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-sm);
    color: var(--primary-color);
}

.benefit-card p {
    color: var(--text-light);
    line-height: 1.7;
}

/* ===================================
   КОНТАКТЫ
   =================================== */

.contact {
    text-align: center;
    padding: var(--spacing-xl) 0;
}

.contact-info {
    margin-top: var(--spacing-md);
}

.contact-email {
    font-size: 1.5rem;
    color: var(--white);
    font-weight: 500;
    padding: var(--spacing-sm) var(--spacing-md);
    display: inline-block;
    border: 2px solid var(--white);
    border-radius: 8px;
    transition: var(--transition);
}

.contact-email:hover {
    background: var(--white);
    color: var(--bg-dark);
}

/* ===================================
   ФУТЕР
   =================================== */

.footer {
    background-color: #0f0f0f;
    color: var(--white);
    padding: var(--spacing-md) 0;
    text-align: center;
}

.footer-text {
    font-size: 0.9rem;
    margin-bottom: var(--spacing-sm);
    color: #999;
}

.footer-copyright {
    font-size: 0.85rem;
    color: #666;
}

/* ===================================
   АДАПТИВНОСТЬ - ПЛАНШЕТЫ
   =================================== */

@media screen and (min-width: 768px) {
    :root {
        --spacing-lg: 4rem;
        --spacing-xl: 5rem;
    }

    /* Hero для планшетов */
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.3rem;
    }

    /* Features для планшетов */
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Products для планшетов */
    .product-items {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Benefits для планшетов */
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .section-title {
        font-size: 2.5rem;
    }
}

/* ===================================
   АДАПТИВНОСТЬ - ДЕСКТОП
   =================================== */

@media screen and (min-width: 1024px) {
    :root {
        --spacing-lg: 5rem;
        --spacing-xl: 6rem;
    }

    html {
        font-size: 18px;
    }

    /* Десктопная навигация */
    .hamburger {
        display: none;
    }

    .nav-menu {
        position: static;
        flex-direction: row;
        background-color: transparent;
        width: auto;
        box-shadow: none;
        padding: 0;
    }

    .nav-menu li {
        margin: 0 var(--spacing-sm);
    }

    .nav-menu a {
        font-size: 1rem;
        padding: var(--spacing-xs) var(--spacing-sm);
        border-radius: 4px;
    }

    .nav-menu a:hover {
        background-color: var(--bg-light);
    }

    /* Hero для десктопа */
    .hero {
        min-height: 100vh;
        margin-top: 70px;
    }

    .hero-title {
        font-size: 3.5rem;
        max-width: 900px;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-subtitle {
        font-size: 1.5rem;
    }

    /* Welcome для десктопа */
    .welcome-content {
        max-width: 800px;
        margin: 0 auto;
    }

    .lead-text {
        font-size: 1.5rem;
    }

    /* About для десктопа */
    .about-content {
        max-width: 900px;
        margin: 0 auto;
    }

    /* How it works для десктопа */
    .how-content {
        max-width: 900px;
        margin: 0 auto;
    }

    /* Features для десктопа */
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--spacing-lg);
    }

    .feature-card {
        padding: var(--spacing-lg);
    }

    .feature-icon {
        width: 80px;
        height: 80px;
    }

    /* Products для десктопа */
    .product-items {
        grid-template-columns: repeat(3, 1fr);
    }

    .product-item {
        padding: var(--spacing-lg);
    }

    /* Benefits для десктопа */
    .benefits-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--spacing-lg);
    }

    .benefit-card {
        padding: var(--spacing-lg);
    }

    /* Contact для десктопа */
    .contact-email {
        font-size: 2rem;
    }

    /* Анимации при скролле для десктопа */
    .section {
        opacity: 0;
        animation: fadeIn 0.8s ease-out forwards;
    }

    @keyframes fadeIn {
        from {
            opacity: 0;
            transform: translateY(20px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}

/* ===================================
   АДАПТИВНОСТЬ - ШИРОКИЕ ЭКРАНЫ
   =================================== */

@media screen and (min-width: 1440px) {
    .container {
        max-width: 1400px;
    }

    .hero-title {
        font-size: 4rem;
    }

    .section-title {
        font-size: 3rem;
    }
}

/* ===================================
   УТИЛИТЫ
   =================================== */

.text-center {
    text-align: center;
}

.mb-1 { margin-bottom: var(--spacing-sm); }
.mb-2 { margin-bottom: var(--spacing-md); }
.mb-3 { margin-bottom: var(--spacing-lg); }

.mt-1 { margin-top: var(--spacing-sm); }
.mt-2 { margin-top: var(--spacing-md); }
.mt-3 { margin-top: var(--spacing-lg); }

/* ===================================
   ПЕЧАТЬ
   =================================== */

@media print {
    .header,
    .hamburger,
    .scroll-indicator,
    .contact {
        display: none;
    }

    body {
        font-size: 12pt;
    }

    .section {
        page-break-inside: avoid;
    }
}


