/* ===== ОСНОВНЫЕ СТИЛИ JUNGO.KG ===== */

/* Цветовая палитра */
:root {
    --primary-red: #B22222;
    --gold: #D4AF37;
    --dark-red: #8B0000;
    --light-gold: #F5E8AA;
    --dark: #2C1810;
    --gray-dark: #5D4037;
    --gray: #8D6E63;
    --gray-light: #D7CCC8;
    --light: #FFF8F0;
    --white: #FFFFFF;
    --blue: #1565C0;
    --green: #2E7D32;
    --shadow: 0 4px 12px rgba(178, 34, 34, 0.1);
    --shadow-heavy: 0 8px 24px rgba(0, 0, 0, 0.15);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--dark);
    background-color: var(--light);
    line-height: 1.6;
    padding-top: 80px; /* Для фиксированного хедера */
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== УЛУЧШЕННЫЙ HEADER ===== */
.main-header {
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 0;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

/* Логотип */
.logo {
    display: flex;
    align-items: center;
}

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    height: 50px;
    margin-right: 15px;
}

.logo-text h1 {
    font-family: 'Dancing Script', cursive;
    color: var(--primary-red);
    font-size: 2.8rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 3px;
}

.logo-dot {
    color: var(--gold);
    font-family: 'Open Sans', sans-serif;
}

.logo-subtitle {
    font-size: 0.75rem;
    color: var(--gray);
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* Основное меню */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 5px;
}

.nav-menu li a {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    padding: 10px 18px;
    border-radius: 6px;
    color: var(--dark);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.nav-menu li a:hover {
    background-color: rgba(178, 34, 34, 0.08);
    color: var(--primary-red);
}

.nav-menu li a.active {
    background-color: rgba(178, 34, 34, 0.12);
    color: var(--primary-red);
    font-weight: 600;
}

.nav-menu li a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 18px;
    right: 18px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-red), var(--gold));
    border-radius: 2px;
}

/* Действия в хедере */
.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.language-switcher {
    display: flex;
    align-items: center;
    gap: 5px;
    background: rgba(245, 232, 170, 0.2);
    padding: 5px 10px;
    border-radius: 6px;
}

.lang-btn {
    background: none;
    border: none;
    font-family: 'Open Sans', sans-serif;
    font-size: 0.9rem;
    color: var(--gray);
    cursor: pointer;
    padding: 3px 8px;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.lang-btn:hover,
.lang-btn.active {
    background-color: var(--primary-red);
    color: white;
}

.lang-divider {
    color: var(--gray-light);
    font-size: 0.9rem;
}

.btn-subscribe {
    background: linear-gradient(135deg, var(--primary-red), var(--dark-red));
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-subscribe:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(178, 34, 34, 0.3);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary-red);
    cursor: pointer;
    padding: 5px;
}

/* ===== ГЛАВНЫЙ БАННЕР ===== */
.hero-banner {
    background: linear-gradient(135deg, rgba(178, 34, 34, 0.9) 0%, rgba(139, 0, 0, 0.9) 100%);
    color: white;
    padding: 100px 0 80px;
    text-align: center;
    margin-top: -80px; /* Компенсация для фиксированного хедера */
}

.hero-title {
    font-size: 3rem;
    color: white;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero-title .chinese-char {
    font-family: 'Dancing Script', cursive;
    color: var(--light-gold);
    font-size: 2.8rem;
    margin: 0 15px;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--light-gold);
    margin-bottom: 30px;
    font-weight: 300;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.mission-box {
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    padding: 25px;
    margin: 30px auto;
    max-width: 800px;
    border-left: 4px solid var(--gold);
}

.mission-box p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 0;
    font-style: italic;
}

.mission-box i {
    color: var(--light-gold);
    margin: 0 5px;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn i {
    font-size: 1.1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--gold), #FFD700);
    color: var(--dark-red);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: white;
    border: 2px solid var(--light-gold);
}

.btn-secondary:hover {
    background-color: rgba(245, 232, 170, 0.2);
}

/* ===== ОСНОВНОЕ СОДЕРЖИМОЕ ===== */
.main-content {
    padding: 60px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.2rem;
    color: var(--primary-red);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.section-subtitle {
    color: var(--gray);
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.section-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
}

.divider-line {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    width: 100px;
}

.divider-icon {
    margin: 0 20px;
    color: var(--primary-red);
    font-size: 1.2rem;
}

/* Карточки разделов */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.feature-card {
    background-color: var(--white);
    border-radius: 10px;
    padding: 30px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border-top: 4px solid transparent;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-red), var(--gold));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-heavy);
}

.card-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: white;
}

.culture-icon {
    background: linear-gradient(135deg, #FF6B6B, #EE5A24);
}

.language-icon {
    background: linear-gradient(135deg, #2E86C1, #1B4F72);
}

.news-icon {
    background: linear-gradient(135deg, #58D68D, #28B463);
}

.modern-icon {
    background: linear-gradient(135deg, #F7DC6F, #F1C40F);
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--dark);
}

.feature-card p {
    color: var(--gray-dark);
    margin-bottom: 20px;
}

.card-topics {
    list-style: none;
    margin: 20px 0;
}

.card-topics li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: var(--gray-dark);
}

.card-topics i {
    color: var(--primary-red);
    width: 16px;
}

.card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    margin-top: 15px;
    color: var(--primary-red);
    text-decoration: none;
}

.card-link i {
    transition: transform 0.3s ease;
}

.card-link:hover i {
    transform: translateX(5px);
}

/* ===== КИТАЙСКИЕ КОМПАНИИ ===== */
.companies-section {
    padding: 80px 0;
    background-color: rgba(245, 232, 170, 0.05);
}

.companies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.company-card {
    background: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border-top: 4px solid var(--blue);
}

.company-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-heavy);
}

.company-logo {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--blue);
    margin-bottom: 20px;
}

.company-card h3 {
    font-size: 1.2rem;
    color: var(--dark);
    margin-bottom: 10px;
    line-height: 1.4;
}

.company-sector {
    color: var(--primary-red);
    font-size: 0.9rem;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px dashed #eee;
    display: flex;
    align-items: center;
    gap: 8px;
}

.company-desc {
    color: var(--gray-dark);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 15px;
}

.company-projects {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.project-tag {
    background-color: rgba(21, 101, 192, 0.1);
    color: var(--blue);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* ===== ПОСЛЕДНИЕ МАТЕРИАЛЫ ===== */
.latest-content {
    padding: 80px 0;
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.content-card {
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.content-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-heavy);
}

.card-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.content-card:hover .card-image img {
    transform: scale(1.05);
}

.card-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: var(--primary-red);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.card-content {
    padding: 20px;
}

.card-content h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    line-height: 1.4;
}

.card-excerpt {
    color: var(--gray);
    font-size: 0.95rem;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-origin: vertical;
    overflow: hidden;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    color: var(--gray);
    font-size: 0.85rem;
    margin-bottom: 15px;
}

.card-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--primary-red);
    text-decoration: none;
}

.read-more i {
    transition: transform 0.3s ease;
}

.read-more:hover i {
    transform: translateX(5px);
}

.section-footer {
    text-align: center;
    margin-top: 30px;
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-red);
    border: 2px solid var(--primary-red);
    padding: 10px 30px;
    text-decoration: none;
}

.btn-outline:hover {
    background-color: rgba(178, 34, 34, 0.1);
}

/* ===== ПОДВАЛ ===== */
.main-footer {
    background-color: var(--dark);
    color: var(--gray-light);
    padding-top: 60px;
}

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

.footer-column h4 {
    color: var(--light-gold);
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-column h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--gold);
}

.footer-logo h3 {
    font-family: 'Dancing Script', cursive;
    color: white;
    font-size: 2.2rem;
    margin-bottom: 5px;
}

.footer-logo p {
    color: var(--gray);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.footer-mission {
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: var(--primary-red);
    transform: translateY(-3px);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--gray-light);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-links a:hover {
    color: var(--gold);
    transform: translateX(5px);
}

.subscribe-form {
    display: flex;
    margin-top: 15px;
}

.subscribe-form input {
    flex-grow: 1;
    padding: 12px 15px;
    border: none;
    border-radius: 4px 0 0 4px;
    font-family: 'Open Sans', sans-serif;
    font-size: 0.9rem;
}

.subscribe-form .btn-subscribe {
    background-color: var(--primary-red);
    color: white;
    border: none;
    padding: 0 20px;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.subscribe-form .btn-subscribe:hover {
    background-color: var(--dark-red);
}

.subscribe-note {
    font-size: 0.8rem;
    color: var(--gray);
    margin-top: 10px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-copyright p {
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.footer-legal {
    display: flex;
    gap: 20px;
}

.footer-legal a {
    color: var(--gray);
    font-size: 0.9rem;
    text-decoration: none;
}

.footer-legal a:hover {
    color: var(--light-gold);
}

/* ===== АДАПТИВНОСТЬ ===== */
@media (max-width: 1100px) {
    .nav-menu {
        gap: 2px;
    }
    
    .nav-menu li a {
        padding: 10px 14px;
        font-size: 0.9rem;
    }
}

@media (max-width: 992px) {
    .header-actions {
        display: none;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-title .chinese-char {
        font-size: 2.3rem;
    }
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }
    
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        flex-direction: column;
        background-color: white;
        width: 100%;
        padding: 20px;
        box-shadow: var(--shadow-heavy);
        transition: left 0.3s ease;
        gap: 0;
        z-index: 999;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        width: 100%;
    }
    
    .nav-menu li a {
        padding: 15px;
        border-bottom: 1px solid var(--gray-light);
        justify-content: center;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .features-grid,
    .companies-grid,
    .content-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-legal {
        justify-content: center;
        flex-wrap: wrap;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 15px;
    }
    
    .logo-text h1 {
        font-size: 2.2rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-title .chinese-char {
        font-size: 1.8rem;
        margin: 0 8px;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
}