/* --- Asosiy o'zgaruvchilar --- */
:root {
    --gold: #FFD700;
    --gold-dark: #E6C200;
    --grey-dark: #333333;
    --grey-light: #808080;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --transition: all 0.3s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

/* ИСПРАВЛЕНИЕ ДЛЯ ТЕЛЕФОНОВ: Убираем белую щель (горизонтальный скролл) */
html, body {
    max-width: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: var(--grey-dark);
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Navbar */
.navbar {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: fixed; width: 100%; top: 0; z-index: 1000; padding: 10px 0;
}
.nav-container { display: flex; justify-content: space-between; align-items: center; }
.logo-container { display: flex; align-items: center; text-decoration: none; }

.nav-logo {
    height: 60px !important;
    width: auto !important;
    max-width: 200px !important;
    object-fit: contain; 
    margin-right: 15px;
    display: block;
}

.logo-text {
    font-size: 0.85rem; font-weight: 700; text-transform: uppercase; color: var(--grey-dark);
    line-height: 1.2; border-left: 2px solid var(--gold); padding-left: 10px; display: inline-block;
}
.nav-links { display: flex; align-items: center; }
.nav-links a { margin-left: 25px; font-weight: 600; font-size: 1rem; transition: var(--transition); position: relative; cursor: pointer;}
.nav-links a:hover, .nav-links a.active { color: var(--gold-dark); }
.nav-links a.active::after { content: ''; position: absolute; bottom: -5px; left: 0; width: 100%; height: 2px; background: var(--gold); }
.lang-switch { margin-left: 30px; display: flex; gap: 5px; }
.lang-btn {
    border: 1px solid #ddd; background: transparent; padding: 5px 10px;
    cursor: pointer; font-weight: bold; font-size: 0.8rem; border-radius: 4px; transition: var(--transition);
}
.lang-btn.active-lang { background: var(--gold); border-color: var(--gold); color: var(--grey-dark); }

/* Hero */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('img/hero-bg.jpg');
    background-size: cover; background-position: center;
    position: relative; display: flex; align-items: center; justify-content: center; text-align: center; color: var(--white); margin-top: 0;
}
.hero-content { position: relative; z-index: 2; max-width: 800px; }
.hero h1 { font-size: 3.5rem; margin-bottom: 20px; font-weight: 800; line-height: 1.2; }
.hero p { font-size: 1.2rem; margin-bottom: 30px; opacity: 0.9; }
.scroll-down {
    position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
    animation: bounce 2s infinite; font-size: 2rem; color: var(--gold); z-index: 2;
}
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateX(-50%) translateY(0);}
    40% {transform: translateX(-50%) translateY(-10px);}
    60% {transform: translateX(-50%) translateY(-5px);}
}

/* Sections */
.section { padding: 80px 0; }
.bg-light { background-color: var(--bg-light); }
.section-header { text-align: center; margin-bottom: 50px; }
.section-title { font-size: 2.2rem; color: var(--grey-dark); text-transform: uppercase; margin-bottom: 10px; }
.title-line { width: 60px; height: 4px; background: var(--gold); margin: 0 auto; }

/* About Expanded */
.about-expanded { max-width: 900px; margin: 0 auto; text-align: center; }
.about-main-text { font-size: 1.25rem; font-weight: 600; margin-bottom: 20px; color: var(--grey-dark); }
.about-sub-text { font-size: 1.1rem; color: #555; margin-bottom: 50px; }
.mission-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; margin-bottom: 50px; }
.mission-card {
    background: var(--white); padding: 30px; border-radius: 10px; box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: var(--transition); border-bottom: 3px solid transparent;
}
.mission-card:hover { transform: translateY(-5px); border-bottom-color: var(--gold); }
.mission-card i { font-size: 2.5rem; color: var(--gold); margin-bottom: 20px; }
.mission-card h3 { margin-bottom: 10px; font-size: 1.2rem; }
.mission-card p { font-size: 0.95rem; color: #666; }
.centered-stats { justify-content: center; flex-wrap: wrap; }
.stat-item { text-align: center; margin: 0 20px; }
.stat-item h3 { font-size: 2.5rem; color: var(--gold-dark); }

/* Team */
.team-container { display: flex; justify-content: center; width: 100%; }
.team-card {
    background: var(--white); padding: 40px; border-radius: 15px; text-align: center;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05); transition: var(--transition); max-width: 400px;
}
.team-card:hover { transform: translateY(-10px); }
.team-img-wrapper {
    width: 200px; height: 200px; margin: 0 auto 25px; border-radius: 50%; overflow: hidden;
    border: 4px solid var(--gold);
}
.team-img-wrapper img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.team-info h3 { font-size: 1.4rem; margin-bottom: 10px; font-weight: 700; }
.team-info p { color: var(--grey-light); font-weight: 600; }

/* Contact Styles */
.contact-wrapper { display: grid; grid-template-columns: 1fr 1.5fr; gap: 50px; }
.info-card { display: flex; align-items: flex-start; margin-bottom: 20px; background: var(--bg-light); padding: 20px; border-radius: 10px; }
.info-card i { font-size: 1.5rem; color: var(--gold); margin-right: 20px; margin-top: 5px; }
.contact-link { font-weight: bold; color: var(--grey-dark); transition: 0.3s; font-size: 1.1rem; }
.contact-link:hover { color: var(--gold-dark); }

/* Social Icons */
.social-links { margin-top: 30px; }
.social-icons { display: flex; gap: 15px; }
.social-btn {
    display: flex; align-items: center; gap: 10px; padding: 10px 20px; border-radius: 5px;
    color: white; font-weight: bold; transition: 0.3s; text-decoration: none;
}
.social-btn.telegram { background-color: #0088cc; }
.social-btn.telegram:hover { background-color: #0077b5; }
.social-btn.facebook { background-color: #3b5998; }
.social-btn.facebook:hover { background-color: #2d4373; }

.contact-form { background: var(--white); padding: 30px; border-radius: 10px; box-shadow: 0 5px 20px rgba(0,0,0,0.05); }
.contact-form input, .contact-form textarea { width: 100%; padding: 15px; margin-bottom: 20px; border: 1px solid #ddd; border-radius: 5px; font-family: inherit; }
.btn-gold { background: var(--gold); color: var(--grey-dark); padding: 12px 30px; border: none; border-radius: 5px; font-weight: bold; cursor: pointer; transition: 0.3s; }
.btn-gold:hover { background: var(--gold-dark); }

/* Footer */
footer { background: var(--grey-dark); color: #aaa; text-align: center; padding: 30px 0; margin-top: auto; border-top: 3px solid var(--gold); }
.footer-link {
    color: var(--white); font-weight: bold; text-decoration: none; border-bottom: 1px dotted var(--gold); transition: 0.3s;
}
.footer-link:hover { color: var(--gold); border-bottom: 1px solid var(--gold); }

/* News Grid & Modal */
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 30px; }
.news-card {
    background: var(--white); border-radius: 10px; overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08); transition: var(--transition); border: 1px solid #eee; cursor: pointer;
}
.news-card:hover { transform: translateY(-5px); box-shadow: 0 10px 25px rgba(0,0,0,0.15); }
.news-img { height: 200px; background-size: cover; background-position: center; }
.news-content { padding: 20px; }
.news-date { font-size: 0.8rem; color: var(--gold-dark); font-weight: bold; display: block; margin-bottom: 8px; }
.news-title { font-size: 1.15rem; margin-bottom: 10px; line-height: 1.4; }
.read-more { color: var(--gold-dark); font-weight: bold; font-size: 0.9rem; text-decoration: underline; }

/* MODAL */
.modal {
    display: none; position: fixed; z-index: 9999; left: 0; top: 0; width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.85); backdrop-filter: blur(5px);
    align-items: center; justify-content: center; overflow: hidden;
}
.modal-content {
    background-color: #fff; width: 90%; max-width: 900px; max-height: 90vh;
    border-radius: 15px; position: relative; overflow-y: auto;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5); animation: zoomIn 0.3s ease;
    display: flex; flex-direction: column;
}
@keyframes zoomIn { from {transform: scale(0.9); opacity: 0;} to {transform: scale(1); opacity: 1;} }
.close-modal {
    position: absolute; right: 20px; top: 15px; font-size: 40px; font-weight: bold; color: #fff;
    text-shadow: 0 0 10px rgba(0,0,0,0.5); cursor: pointer; z-index: 100; transition: 0.3s;
    background: rgba(0,0,0,0.3); width: 50px; height: 50px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; line-height: 1;
}
.close-modal:hover { background: rgba(255,0,0,0.8); }
.modal-body { padding: 0; display: flex; flex-direction: column; }
.modal-img { width: 100%; height: 400px; object-fit: cover; border-radius: 15px 15px 0 0; }
.modal-text-content { padding: 40px; }
.modal-date {
    display: inline-block; background: var(--gold); color: var(--grey-dark);
    padding: 5px 15px; border-radius: 20px; font-weight: bold; margin-bottom: 15px; font-size: 0.9rem;
}
.modal-title { font-size: 2.5rem; margin-bottom: 25px; line-height: 1.2; color: var(--grey-dark); }
.modal-text { font-size: 1.2rem; line-height: 1.8; color: #444; white-space: pre-line; }

/* Mobile */
.burger { display: none; }
@media (max-width: 768px) {
    .nav-links { display: none; position: absolute; top: 75px; left: 0; width: 100%; background: var(--white); flex-direction: column; padding: 20px 0; box-shadow: 0 5px 10px rgba(0,0,0,0.1); }
    .nav-links.nav-active { display: flex; }
    .nav-links a { margin: 10px 0; }
    .burger { display: block; cursor: pointer; }
    .burger .line { width: 25px; height: 3px; background: var(--grey-dark); margin: 5px; }
    .hero h1 { font-size: 2.2rem; }
    .about-expanded { padding: 0 10px; }
    .contact-wrapper { grid-template-columns: 1fr; }
    .modal-content { width: 95%; max-height: 95vh; }
    .modal-img { height: 250px; }
    .modal-title { font-size: 1.8rem; }
    .modal-text { font-size: 1rem; }
}