/* === UA-GOV Defense Systems — Official Style inspired by mod.gov.ua === */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #ffffff;
    color: #1a1a1a;
    min-height: 100vh;
}

/* === TOP BAR === */
.top-bar-dark {
    background: #2C2C2C;
    color: #989791;
    font-size: 0.75em;
    padding: 8px 0;
    text-align: center;
}
.top-bar-dark a {
    color: #ffffff;
    text-decoration: none;
    margin: 0 12px;
    font-size: 0.8em;
}
.top-bar-dark a:hover { color: #FFBD1B; }

/* === HEADER === */
.main-header {
    background: #1a1a1a;
    border-bottom: 2px solid #333;
}
.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    padding: 12px 20px;
    gap: 15px;
}
.emblem-img {
    width: 50px;
    height: 50px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}
.header-title h1 {
    font-size: 1.1em;
    color: #ffffff;
    font-weight: 600;
    letter-spacing: 0.5px;
}
.header-title p {
    font-size: 0.7em;
    color: #989791;
    margin-top: 2px;
}

/* === NAVIGATION === */
.main-nav {
    background: #1a1a1a;
    border-top: 1px solid #333;
    position: sticky;
    top: 0;
    z-index: 100;
}
.nav-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 0;
    flex-wrap: wrap;
}
.main-nav a {
    color: #ffffff;
    text-decoration: none;
    padding: 14px 22px;
    font-size: 0.85em;
    font-weight: 500;
    transition: color 0.2s;
}
.main-nav a:hover,
.main-nav a.active {
    color: #FFBD1B;
}

/* === MAIN CONTENT === */
.military-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
}

/* === HERO === */
.hero-section {
    background: #fff;
    border-radius: 8px;
    padding: 50px 40px;
    text-align: center;
}
.hero-section h2 {
    font-size: 2em;
    font-weight: 600;
    margin-bottom: 15px;
    color: #1a1a1a;
}
.hero-section > p {
    color: #555;
    max-width: 700px;
    margin: 0 auto 30px auto;
    line-height: 1.6;
}
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin: 30px 0;
    flex-wrap: wrap;
}
.stat-number {
    font-size: 2.5em;
    font-weight: 700;
    color: #1a1a1a;
    display: block;
}
.stat-label {
    font-size: 0.9em;
    color: #777;
}
.hero-description {
    max-width: 700px;
    margin: 20px auto;
    color: #555;
    line-height: 1.7;
}
.cta-button {
    display: inline-block;
    background: #FFBD1B;
    color: #1a1a1a;
    padding: 15px 40px;
    text-decoration: none;
    border-radius: 50px;
    font-size: 1em;
    font-weight: 600;
    margin-top: 20px;
    border: 2px solid #FFBD1B;
    transition: all 0.3s;
}
.cta-button:hover {
    background: #1a1a1a;
    color: #FFBD1B;
}

/* === CATALOG === */
.catalog-container h2 {
    font-size: 2em;
    font-weight: 600;
    margin-bottom: 10px;
}
.catalog-intro {
    color: #666;
    margin-bottom: 25px;
}
.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 25px;
}
.catalog-item {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.3s;
}
.catalog-item:hover {
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}
.item-image {
    height: 200px;
    background: #f5f5f5;
}
.item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.item-info {
    padding: 20px;
}
.item-info h3 {
    font-size: 1.1em;
    font-weight: 600;
    margin-bottom: 5px;
}
.item-category {
    display: inline-block;
    background: #fff3cd;
    color: #856404;
    padding: 3px 10px;
    border-radius: 3px;
    font-size: 0.8em;
    margin-bottom: 10px;
}
.item-info p {
    color: #666;
    font-size: 0.9em;
    line-height: 1.5;
    margin-bottom: 15px;
}
.item-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}
.btn-download {
    background: #FFBD1B;
    color: #1a1a1a;
    border: 2px solid #FFBD1B;
    padding: 10px 20px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 0.9em;
    font-weight: 600;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}
.btn-download:hover {
    background: #1a1a1a;
    color: #FFBD1B;
}

/* === SECTIONS === */
.about-section,
.contacts-section,
.partners-section {
    background: #fff;
    border-radius: 8px;
    padding: 30px;
}
.about-section h2,
.contacts-section h2,
.partners-section h2 {
    font-size: 2em;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #FFBD1B;
}
.about-section h3 {
    font-size: 1.2em;
    font-weight: 600;
    margin: 20px 0 10px 0;
}
.about-section ul,
.about-section ol {
    margin-left: 20px;
    color: #555;
    line-height: 1.8;
}
.about-section p {
    color: #555;
    line-height: 1.7;
    margin: 10px 0;
}

/* === CONTACTS === */
.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}
.contact-card {
    background: #f8f8f8;
    border-radius: 8px;
    padding: 20px;
}
.contact-card h3 {
    font-weight: 600;
    margin-bottom: 8px;
}
.contact-card p {
    color: #555;
}

/* === PARTNERS === */
.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}
.partner-item {
    background: #f8f8f8;
    border-radius: 8px;
    padding: 20px;
    transition: box-shadow 0.2s;
}
.partner-item:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}
.partner-item h3 {
    font-weight: 600;
    margin-bottom: 5px;
}
.partner-item p {
    color: #666;
    font-size: 0.9em;
}

/* === WARNING BOX === */
.warning-box {
    background: #fff3cd;
    border: 1px solid #ffc107;
    padding: 15px;
    border-radius: 8px;
    margin: 15px 0;
}
.warning-box h3 { color: #856404; margin-bottom: 8px; font-weight: 600; }
.exe-explanation {
    background: #f0f7ff;
    border: 1px solid #b6d4fe;
    padding: 20px;
    border-radius: 8px;
    margin: 15px 0;
}
.exe-explanation h4 { font-weight: 600; margin: 15px 0 5px 0; }
.steps { margin: 20px 0; }
.step-item {
    background: #f8f8f8;
    border-left: 4px solid #FFBD1B;
    padding: 12px 15px;
    margin: 8px 0;
}
.step-number {
    display: inline-block;
    background: #FFBD1B;
    color: #1a1a1a;
    padding: 2px 10px;
    border-radius: 3px;
    font-weight: 600;
    margin-right: 10px;
    font-size: 0.85em;
}

/* === MODAL === */
.modal {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}
.military-modal {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    max-width: 600px;
    width: 95%;
    max-height: 85vh;
    overflow-y: auto;
}
.military-modal h3 { font-size: 1.3em; font-weight: 600; margin-bottom: 15px; }
.military-modal h4 { font-weight: 600; margin: 12px 0 5px 0; }
.military-modal p { color: #555; font-size: 0.9em; line-height: 1.6; margin: 8px 0; }
.military-modal ul, .military-modal ol { margin-left: 20px; color: #555; line-height: 1.8; }
.military-modal label { display: block; margin: 10px 0; font-size: 0.9em; }
.btn-confirm {
    background: #FFBD1B;
    color: #1a1a1a;
    border: 2px solid #FFBD1B;
    padding: 12px 30px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 1em;
    font-weight: 600;
    width: 100%;
    margin-top: 15px;
    transition: all 0.3s;
}
.btn-confirm:hover { background: #1a1a1a; color: #FFBD1B; }
.close-modal { color: #aaa; float: right; font-size: 24px; cursor: pointer; }
.close-modal:hover { color: #000; }

/* === FOOTER === */
.military-footer {
    background: #1a1a1a;
    color: #989791;
    text-align: center;
    padding: 30px;
    margin-top: 60px;
}
.military-footer p { margin: 3px 0; font-size: 0.85em; }

/* === PROGRESS === */
.progress-overlay {
    position: fixed; top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.7);
    display: flex; align-items: center; justify-content: center;
    z-index: 2000;
}
.progress-content {
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    text-align: center;
}
.progress-bar {
    width: 300px; height: 6px;
    background: #e5e5e5;
    border-radius: 3px;
    overflow: hidden;
    margin: 20px auto;
}
.progress-fill {
    width: 60%; height: 100%;
    background: #FFBD1B;
    animation: progress 1.5s ease-in-out infinite;
}
@keyframes progress { 0% { width: 10%; } 50% { width: 70%; } 100% { width: 10%; } }

/* === MISC === */
.military-icon { opacity: 0.6; }
.flag-strip { display: none; }
.top-bar { display: none; }

/* Переопределение фона */
body {
    background: #FFFDF5 !important;
}

/* Карточки на белом */
.hero-section,
.catalog-item,
.about-section,
.contacts-section,
.partners-section,
.contact-card,
.partner-item {
    background: #ffffff;
}

/* Тёмная полоса сверху как у мода */
.main-header {
    background: #1a1a1a;
}

/* Статистика — тёмные цифры */
.stat-number {
    color: #1a1a1a;
}

/* Оранжевый hover для навигации */
.main-nav a:hover,
.main-nav a.active {
    color: #FFBD1B;
}
