:root {
    --primary: #6C63FF;
    --secondary: #FF6584;
    --dark: #1a1a2e;
    --dark-secondary: #16213e;
    --accent: #e6ccff;
    --text-light: #ffffff;
    --text-dark: #333333;
    --bg-light: #f8f9fa;
    --card-shadow: 0 10px 30px rgba(0,0,0,0.08);
    --transition: all 0.3s ease;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.7;
}

/* ===== НАВБАР ===== */
.navbar {
    background: var(--dark);
    color: white;
    padding: 18px 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.navbar-title {
    color: var(--accent);
    font-size: 26px;
    font-weight: 800;
    letter-spacing: 1px;
    flex-grow: 1;
    text-align: center;
}

.hamburger {
    background: none;
    border: none;
    color: white;
    font-size: 26px;
    cursor: pointer;
    display: none;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    transition: var(--transition);
}

.hamburger:hover {
    background: rgba(255,255,255,0.1);
}

.desktop-nav {
    display: flex;
    gap: 8px;
}

.desktop-nav a {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    font-size: 15px;
    padding: 10px 18px;
    border-radius: 25px;
    transition: var(--transition);
}

.desktop-nav a:hover {
    background: rgba(108,99,255,0.3);
    color: white;
    transform: translateY(-2px);
}

/* ===== МОБИЛЬНОЕ МЕНЮ ===== */
.mobile-menu {
    position: fixed;
    left: -320px;
    top: 0;
    width: 300px;
    height: 100vh;
    background: linear-gradient(180deg, var(--dark) 0%, var(--dark-secondary) 100%);
    transition: left 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 1001;
    padding: 80px 25px 25px;
    box-shadow: 5px 0 30px rgba(0,0,0,0.3);
}

.mobile-menu.open {
    left: 0;
}

.mobile-menu-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: white;
    font-size: 30px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: var(--transition);
}

.mobile-menu-close:hover {
    background: rgba(255,255,255,0.1);
}

.mobile-menu nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mobile-menu nav a {
    color: white;
    text-decoration: none;
    font-size: 18px;
    padding: 14px 18px;
    border-radius: 12px;
    transition: var(--transition);
}

.mobile-menu nav a:hover {
    background: rgba(108,99,255,0.3);
    transform: translateX(5px);
}

.mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 999;
    backdrop-filter: blur(3px);
}

.mobile-overlay.open {
    display: block;
}

/* ===== HERO ===== */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
    padding: 140px 20px 100px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: float 20s linear infinite;
}

@keyframes float {
    from { transform: translate(0, 0); }
    to { transform: translate(50px, 50px); }
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 56px;
    font-weight: 900;
    margin-bottom: 15px;
    letter-spacing: 2px;
}

.hero p {
    font-size: 22px;
    margin-bottom: 35px;
    opacity: 0.9;
}

.cta-button {
    background: white;
    color: #764ba2;
    padding: 16px 45px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 18px;
    display: inline-block;
    transition: var(--transition);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.cta-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
}

/* ===== СЕКЦИИ ===== */
.section {
    padding: 80px 25px;
}

.section-dark {
    background: var(--dark);
    color: white;
}

.section-title {
    font-size: 38px;
    font-weight: 800;
    margin-bottom: 20px;
    text-align: center;
    color: inherit;
}

.section-subtitle {
    font-size: 18px;
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px;
    opacity: 0.8;
}

/* ===== КАРТОЧКИ ===== */
.grid {
    display: grid;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}

.card-dark {
    background: rgba(255,255,255,0.05);
    box-shadow: none;
}

.card h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: inherit;
}

.card p {
    font-size: 16px;
    opacity: 0.85;
}

.card-link {
    display: inline-block;
    margin-top: 20px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

/* ===== ФОРМЫ ===== */
.form-container {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    padding: 40px;
    border-radius: 25px;
    box-shadow: var(--card-shadow);
}

.form-input {
    width: 100%;
    padding: 15px 20px;
    margin-bottom: 20px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 16px;
    transition: var(--transition);
}

.form-input:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 4px rgba(108,99,255,0.1);
}

.form-btn {
    width: 100%;
    padding: 16px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.form-btn:hover {
    background: #5a52d5;
    transform: translateY(-3px);
}

/* ===== АДАПТИВНОСТЬ ===== */
@media (max-width: 992px) {
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .desktop-nav {
        display: none;
    }
    
    .hamburger {
        display: block;
    }
    
    .navbar-title {
        font-size: 20px;
    }
    
    .hero h1 {
        font-size: 34px;
    }
    
    .hero p {
        font-size: 17px;
    }
    
    .grid-3 {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 28px;
    }
}

/* ===== ТЕКСТОВЫЙ КОНТЕНТ ===== */
.content-text {
    max-width: 1000px;
    margin: 0 auto;
    font-size: 17px;
    line-height: 1.8;
}

.content-text h2 {
    font-size: 32px;
    margin-bottom: 25px;
    color: inherit;
}

.content-text h3 {
    font-size: 22px;
    margin: 30px 0 15px;
    color: inherit;
}

.content-text p {
    margin-bottom: 15px;
    opacity: 0.9;
}

/* ===== АДАПТИВНОСТЬ ДЛЯ 2-КОЛОНОК ===== */
@media (max-width: 768px) {
    .grid-2 {
        grid-template-columns: 1fr !important;
    }
    
    .content-text {
        font-size: 15px;
    }
    
    .content-text h2 {
        font-size: 24px;
    }
    
    .content-text h3 {
        font-size: 18px;
    }
}

/* ===== БАННЕРЫ ===== */
.hero-title {
    font-size: 56px;
    font-weight: 900;
    margin-bottom: 40px;
    letter-spacing: 2px;
    color: white;
}

.banner-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

.banners-wrapper {
    flex-grow: 1;
    position: relative;
    min-height: 150px;
}

.banner {
    display: none;
    text-align: center;
    animation: fadeIn 0.4s ease;
}

.banner.active {
    display: block;
}

.banner p {
    font-size: 24px;
    margin-bottom: 25px;
    opacity: 0.95;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.banner-arrow {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: white;
    font-size: 36px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.banner-arrow:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

/* ===== АДАПТИВНОСТЬ БАННЕРОВ ===== */
@media (max-width: 768px) {
    .hero-title {
        font-size: 32px;
        margin-bottom: 25px;
    }
    
    .banner-container {
        gap: 10px;
    }
    
    .banners-wrapper {
        min-height: 120px;
    }
    
    .banner p {
        font-size: 17px;
    }
    
    .banner-arrow {
        font-size: 24px;
        width: 35px;
        height: 35px;
    }
}

/* ===== НАШИ ПРОДУКТЫ (исправление) ===== */
.products-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 600px;
    margin: 0 auto;
}

.products-grid .card {
    width: 100%;
}

/* ===== МОДАЛЬНОЕ ОКНО ===== */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-overlay.open {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 20px;
    padding: 30px;
    max-width: 500px;
    width: 100%;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
    animation: modalIn 0.3s ease;
}

@keyframes modalIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.modal-content p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 25px;
}

.modal-btn {
    display: block;
    width: 100%;
    padding: 14px;
    background: #6C63FF;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.modal-btn:hover {
    background: #5a52d5;
}

/* ===== КРАСИВЫЕ SELECT ===== */
.styled-select {
    position: relative;
    margin-bottom: 20px;
}

.styled-select select {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 16px;
    appearance: none;
    background: white url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236C63FF' stroke-width='2' fill='none'/%3E%3C/svg%3E") no-repeat right 20px center;
    cursor: pointer;
    transition: all 0.3s;
}

.styled-select select:focus {
    border-color: #6C63FF;
    box-shadow: 0 0 0 4px rgba(108,99,255,0.1);
    outline: none;
}

/* ===== РАЗВОРАЧИВАЕМЫЙ ДОКУМЕНТ ===== */
.document-collapsed {
    max-height: 200px;
    overflow: hidden;
    position: relative;
    border: 2px solid #e0e0e0;
    border-radius: 15px;
    padding: 20px;
    transition: max-height 0.5s ease;
}

.document-collapsed::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: linear-gradient(transparent, white);
}

.document-expanded {
    max-height: 3000px;
    overflow: visible;
    border: 2px solid #e0e0e0;
    border-radius: 15px;
    padding: 20px;
    transition: max-height 0.5s ease;
}

.document-expanded::after {
    display: none;
}

.document-toggle-btn {
    display: block;
    margin: 15px auto 0;
    padding: 12px 30px;
    background: #6C63FF;
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
}

.document-toggle-btn:hover {
    background: #5a52d5;
}

@media (max-width: 768px) {
    .pdf-container iframe {
        display: none !important;
    }
    
    .pdf-mobile-fallback {
        display: block !important;
        text-align: center;
    }
}

.pdf-mobile-fallback {
    display: none;
}

/* ===== КНОПКИ ЯЗЫКА ===== */
.lang-switcher {
    display: flex;
    gap: 5px;
    margin-left: 15px;
}

.lang-btn {
    color: var(--accent);
    text-decoration: none;
    font-size: 18px;
    font-weight: 800;
    padding: 5px 10px;
    border-radius: 6px;
    transition: all 0.3s ease;
    letter-spacing: 1px;
}

.lang-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.lang-btn.active {
    background: rgba(230, 204, 255, 0.2);
    color: white;
}

/* ===== МОБИЛЬНАЯ НАВИГАЦИЯ (порядок) ===== */
@media (max-width: 768px) {
    .navbar {
        justify-content: flex-start;
        gap: 10px;
    }
    
    .hamburger {
        order: 1;
    }
    
    .lang-switcher {
        order: 2;
        margin-left: 0;
    }
    
    .navbar-title {
        order: 3;
        flex-grow: 1;
        text-align: center;
    }
}
