/* Main Styles */
body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    background: #f8fafc;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header Styles */
header {
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2563eb;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.nav-links a {
    text-decoration: none;
    color: #64748b;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #2563eb;
}

.donate-btn {
    background: #f1f5f9;
    color: #475569;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border: 1px solid #e2e8f0;
}

.donate-btn:hover {
    background: #e2e8f0;
    color: #334155;
    transform: translateY(-1px);
}

/* Language Switcher */
.language-switcher {
    position: relative;
    display: flex;
    align-items: center;
}

.lang-btn {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
    padding: 0.75rem 1.25rem;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.lang-btn:hover {
    background: #e2e8f0;
    color: #334155;
    transform: translateY(-1px);
}

.lang-btn i {
    font-size: 1rem;
}

.current-lang {
    font-size: 0.9rem;
}

.lang-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    border: 1px solid #e2e8f0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    min-width: 180px;
}

.lang-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    padding: 0.75rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    transition: background 0.2s ease;
    border-bottom: 1px solid #f1f5f9;
}

.lang-option:last-child {
    border-bottom: none;
}

.lang-option:hover {
    background: #f8fafc;
}

.lang-option .flag {
    font-size: 1.25rem;
}

.lang-option span:last-child {
    color: #334155;
    font-weight: 500;
}

.mobile-menu {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Info Page Specific Styles */
.info-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
    margin-bottom: 3rem;
}

.info-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.info-header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #f1f5f9;
    color: #475569;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
}

.back-btn:hover {
    background: #e2e8f0;
    transform: translateY(-1px);
}

.info-section {
    background: white;
    padding: 3rem;
    border-radius: 1rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.info-section h2 {
    color: #1e293b;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 0.5rem;
}

.info-section h3 {
    color: #2563eb;
    font-size: 1.3rem;
    margin: 2rem 0 1rem 0;
}

.info-section p {
    color: #475569;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.info-section ul {
    color: #475569;
    line-height: 1.8;
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.highlight-box {
    background: #f8fafc;
    border-left: 4px solid #2563eb;
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 0.5rem;
}

.sources-section {
    background: #f1f5f9;
    padding: 2rem;
    border-radius: 1rem;
    margin-top: 3rem;
}

.source-item {
    background: white;
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 0.5rem;
    border-left: 3px solid #2563eb;
}

.source-item a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
}

.source-item a:hover {
    text-decoration: underline;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.stat-box {
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 0.5rem;
    text-align: center;
    border: 1px solid #e2e8f0;
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: #2563eb;
}

.stat-label {
    color: #64748b;
    font-weight: 500;
    margin-top: 0.5rem;
}

.learn-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    color: white;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.learn-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4);
}

.learn-more-btn i {
    font-size: 1.2rem;
}

/* Footer Styles */
footer {
    background: #1e293b;
    color: white;
    padding: 3rem 0 1rem 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
    color: #2563eb;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: white;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #94a3b8;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.social-links a:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    transform: translateY(-3px);
}

.social-links a:hover.fa-instagram {
    background: linear-gradient(45deg, #f58529, #dd2a7b, #8134af, #515bd4);
    color: white;
}

.social-links a:hover.fa-tiktok {
    background: #000000;
    color: white;
}

.social-links a:hover.fa-facebook {
    background: #1877f2;
    color: white;
}

.social-links a:hover.fa-telegram {
    background: #0088cc;
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #334155;
    color: #64748b;
}

.footer-bottom a {
    color: #64748b;
}

/* Types Infographic */
.types-infographic {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.type-card {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    border-left: 4px solid #2563eb;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.type-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.type-card.type-1 {
    border-left-color: #dc2626;
}

.type-card.type-2 {
    border-left-color: #f59e0b;
}

.type-card.type-3 {
    border-left-color: #10b981;
}

.type-card.type-4 {
    border-left-color: #6366f1;
}

.type-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.type-1 .type-icon {
    background: #fee2e2;
    color: #dc2626;
}

.type-2 .type-icon {
    background: #fef3c7;
    color: #f59e0b;
}

.type-3 .type-icon {
    background: #d1fae5;
    color: #10b981;
}

.type-4 .type-icon {
    background: #e0e7ff;
    color: #6366f1;
}

.type-content h3 {
    color: #1e293b;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.type-content p {
    color: #475569;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.type-stats {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.type-stats span {
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.85rem;
    font-weight: 500;
}

.age {
    background: #f1f5f9;
    color: #475569;
}

.severity {
    background: #dbeafe;
    color: #1e40af;
}

/* Diagnosis Process */
.diagnosis-process {
    margin: 2rem 0;
}

.process-step {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: 0.5rem;
    border-left: 4px solid #2563eb;
}

.step-number {
    width: 40px;
    height: 40px;
    background: #2563eb;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.step-content h3 {
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.step-content p {
    color: #475569;
    line-height: 1.6;
}

.diagnosis-visual {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.visual-item {
    text-align: center;
    padding: 1.5rem;
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.visual-icon {
    width: 60px;
    height: 60px;
    background: #dbeafe;
    color: #2563eb;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 1rem auto;
}

.visual-item h4 {
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.visual-item p {
    color: #475569;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Treatment Grid */
.treatment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.treatment-card {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.treatment-card:hover {
    transform: translateY(-5px);
}

.treatment-card.gene-therapy {
    border-top: 4px solid #10b981;
}

.treatment-card.spinraza {
    border-top: 4px solid #f59e0b;
}

.treatment-card.evrysdi {
    border-top: 4px solid #8b5cf6;
}

.treatment-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.gene-therapy .treatment-icon {
    background: #d1fae5;
    color: #10b981;
}

.spinraza .treatment-icon {
    background: #fef3c7;
    color: #f59e0b;
}

.evrysdi .treatment-icon {
    background: #ede9fe;
    color: #8b5cf6;
}

.treatment-content h3 {
    color: #1e293b;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.treatment-content p {
    color: #475569;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.treatment-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f1f5f9;
}

.detail-item .label {
    color: #64748b;
    font-weight: 500;
}

.detail-item .value {
    color: #1e293b;
    font-weight: 600;
}

/* Supportive Therapy */
.supportive-therapy {
    margin-top: 3rem;
}

.therapy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.therapy-item {
    text-align: center;
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: 0.5rem;
    transition: transform 0.3s ease;
}

.therapy-item:hover {
    transform: translateY(-3px);
    background: #f1f5f9;
}

.therapy-icon {
    width: 50px;
    height: 50px;
    background: #dbeafe;
    color: #2563eb;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin: 0 auto 1rem auto;
}

.therapy-item h4 {
    color: #1e293b;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.therapy-item p {
    color: #475569;
    font-size: 0.85rem;
    line-height: 1.5;
}

/* Kyrgyzstan Situation */
.kg-situation {
    margin: 2rem 0;
}

.situation-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.kg-stat-item {
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    color: white;
    border-radius: 1rem;
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.3);
}

.kg-number {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.kg-label {
    font-size: 0.9rem;
    opacity: 0.9;
    line-height: 1.4;
}

.challenges-solutions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.challenge-list, .solution-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.challenge-item, .solution-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    border-radius: 0.5rem;
}

.challenge-item {
    background: #fef2f2;
    border-left: 3px solid #dc2626;
}

.solution-item {
    background: #f0fdf4;
    border-left: 3px solid #16a34a;
}

.challenge-icon, .solution-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.challenge-icon {
    background: #dc2626;
    color: white;
}

.solution-icon {
    background: #16a34a;
    color: white;
}

.challenge-text h4, .solution-text h4 {
    color: #1e293b;
    margin-bottom: 0.25rem;
    font-size: 1rem;
}

.challenge-text p, .solution-text p {
    color: #475569;
    font-size: 0.85rem;
    line-height: 1.4;
}

.role-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.role-item {
    text-align: center;
    padding: 1.5rem;
    background: white;
    border-radius: 0.5rem;
    border: 1px solid #e2e8f0;
}

.role-icon {
    width: 50px;
    height: 50px;
    background: #dbeafe;
    color: #2563eb;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin: 0 auto 1rem auto;
}

.role-item h4 {
    color: #1e293b;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.role-item p {
    color: #475569;
    font-size: 0.85rem;
    line-height: 1.5;
}

/* Back to Home Button */
.back-to-home {
    text-align: center;
    margin: 3rem 0;
}

.back-to-home .back-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    color: white;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.back-to-home .back-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4);
}

.back-to-home .back-btn i {
    font-size: 1.2rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .mobile-menu {
        display: block;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-section ul {
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    /* Улучшение расположения элементов в мобильной навигации */
    nav {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 1rem;
    }
    
    .logo {
        flex: 1;
    }
    
    .language-switcher {
        flex-shrink: 0;
        margin-right: 1rem;
    }
    
    .mobile-menu {
        flex-shrink: 0;
        margin-left: 0.5rem;
    }

    .info-header h1 {
        font-size: 2rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .info-section {
        padding: 2rem;
    }

    .container {
        padding: 0 1rem;
    }

    .types-infographic {
        grid-template-columns: 1fr;
    }

    .process-step {
        flex-direction: column;
        text-align: center;
    }

    .diagnosis-visual {
        grid-template-columns: 1fr;
    }

    .treatment-grid {
        grid-template-columns: 1fr;
    }

    .therapy-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .situation-stats {
        grid-template-columns: 1fr;
    }

    .challenges-solutions {
        grid-template-columns: 1fr;
    }

    .role-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Additional mobile optimizations */
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-section ul {
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .footer-section {
        margin-bottom: 1.5rem;
    }
    
    .info-header h1 {
        font-size: 1.75rem;
        line-height: 1.2;
    }
    
    .info-header p {
        font-size: 1rem;
        line-height: 1.5;
    }
    
    .info-section {
        padding: 1.5rem;
    }
    
    .info-section h2 {
        font-size: 1.5rem;
    }
    
    .info-section h3 {
        font-size: 1.2rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .type-card {
        flex-direction: column;
        text-align: center;
    }
    
    .type-icon {
        margin-right: 0;
        margin-bottom: 1rem;
    }
    
    .process-step {
        padding: 1rem;
    }
    
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .treatment-card {
        padding: 1.5rem;
    }
    
    .therapy-grid {
        grid-template-columns: 1fr;
    }
    
    .role-grid {
        grid-template-columns: 1fr;
    }
    
    .highlight-box {
        padding: 1.5rem;
    }
    
    .back-to-home {
        padding: 1.5rem;
    }
    
    .back-to-home .back-btn {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
}

/* Very small screens */
@media (max-width: 360px) {
    .container {
        padding: 0 10px;
    }
    
    .info-header h1 {
        font-size: 1.5rem;
    }
    
    .info-section h2 {
        font-size: 1.3rem;
    }
    
    .info-section h3 {
        font-size: 1.1rem;
    }
    
    .info-section {
        padding: 1rem;
    }
    
    .type-card,
    .process-step,
    .treatment-card,
    .highlight-box {
        padding: 1rem;
    }
    
    .step-number {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .stats-card {
        padding: 1rem;
    }
    
    .treatment-details .detail-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .detail-item i {
        margin-right: 0;
        margin-bottom: 0.5rem;
    }
}

/* Touch optimizations for mobile */
@media (hover: none) and (pointer: coarse) {
    .type-card:hover,
    .treatment-card:hover,
    .therapy-card:hover,
    .role-card:hover {
        transform: none;
    }
    
    .type-card:active,
    .treatment-card:active,
    .therapy-card:active,
    .role-card:active {
        transform: scale(0.98);
    }
    
    .back-to-home .back-btn:active {
        transform: scale(0.98);
    }
    
    /* Increase touch targets */
    .back-to-home .back-btn {
        min-height: 44px;
    }
    
    .lang-btn {
        min-height: 44px;
        padding: 0.75rem 1rem;
    }
    
    .lang-option {
        min-height: 44px;
        padding: 1rem;
    }
}

/* Landscape mobile optimizations */
@media (max-width: 768px) and (orientation: landscape) {
    .info-header {
        padding: 2rem 0;
    }
    
    .info-section {
        padding: 1.5rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .therapy-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .role-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* High DPI displays optimization */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .type-card,
    .treatment-card,
    .therapy-card,
    .role-card {
        border-width: 1px;
    }
    
    .back-to-home .back-btn {
        border-width: 1px;
    }
}

/* Form elements optimization */
@media (max-width: 480px) {
    input, textarea, select {
        font-size: 16px; /* Prevents zoom on iOS */
    }
}

/* Language switcher mobile optimization */
@media (max-width: 480px) {
    .language-switcher {
        margin-top: 0.5rem;
    }
    
    .lang-dropdown {
        right: -50px;
        min-width: 150px;
    }
}
