/* GOVGUN — Bootstrap theme overrides */

:root {
    --bs-primary: #053DC8;
    --bs-primary-rgb: 5, 61, 200;
    --bs-link-color: #053DC8;
    --bs-link-hover-color: #1A54E8;
    --bs-body-bg: #FEFEFE;
    --bs-body-color: #44494F;
    --bs-border-color: #E8EAED;
    --bs-border-radius: 16px;
    --bs-border-radius-sm: 10px;
    --bs-border-radius-lg: 16px;
    --bs-body-font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --bs-body-font-weight: 500;
    --bs-body-line-height: 1.55;

    --gg-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    --gg-accent: #053DC8;
    --gg-accent-light: #1A54E8;
    --gg-accent-dim: rgba(5, 61, 200, 0.08);
    --gg-accent-dim2: rgba(5, 61, 200, 0.15);
    --gg-surface: #F4F5F7;
    --gg-surface2: #ECEEF2;
    --gg-border: #E8EAED;
    --gg-text: #44494F;
    --gg-muted: #7A8089;
    --gg-green: #1A7A4A;
    --gg-green-bg: rgba(26, 122, 74, 0.08);
    --gg-yellow: #B45309;
    --gg-yellow-bg: rgba(180, 83, 9, 0.08);
    --gg-red: #D93025;
    --gg-shadow: 0 2px 12px rgba(5, 61, 200, 0.07), 0 1px 3px rgba(0, 0, 0, 0.06);
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--bs-body-font-family);
    background: var(--bs-body-bg);
    color: var(--bs-body-color);
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main { flex: 1; }

/* Заголовки — потолще, плотнее */
h1, .h1 { font-weight: 800; letter-spacing: -0.6px; font-size: 2.25rem; }
h2, .h2 { font-weight: 800; letter-spacing: -0.4px; font-size: 1.6rem; }
h3, .h3 { font-weight: 700; letter-spacing: -0.2px; font-size: 1.2rem; }
h4, .h4 { font-weight: 700; font-size: 1rem; }

/* ============================================
   Бренд / навигация
============================================ */
.navbar {
    background: rgba(254, 254, 254, 0.94);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--gg-border);
    padding: 0.65rem 0;
}

.navbar-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--gg-mono);
    font-weight: 700;
    font-size: 18px;
    color: var(--gg-accent) !important;
    letter-spacing: -0.5px;
}

.brand-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    display: block;
    background: var(--gg-accent);
}

.brand-icon img { width: 32px; height: 32px; display: block; }

/* "御用軍" склеено к "govgun" — это часть единого названия, без gap */
.navbar-brand .brand-name {
    display: inline-flex;
    align-items: baseline;
    gap: 0;
    line-height: 1;
}
.navbar-brand .brand-name .brand-jp {
    font-family: var(--gg-mono);
    font-size: 16px;
    color: var(--gg-accent);
    font-weight: 700;
    margin-left: 1px;
}
.navbar-brand .brand-name .brand-sep {
    color: var(--gg-text);
    opacity: 0.35;
    font-weight: 400;
    margin: 0 2px;
}

.brand-jp {
    font-family: var(--bs-body-font-family);
    font-size: 12px;
    color: var(--gg-text);
    opacity: 0.45;
    font-weight: 600;
}

.navbar-nav .nav-link {
    color: var(--gg-text) !important;
    font-weight: 600;
    font-size: 13px;
    padding: 0.5rem 0.9rem !important;
    border-radius: 10px;
    transition: background 0.15s, color 0.15s;
}

.navbar-nav .nav-link:hover { background: var(--gg-surface); }

.navbar-nav .nav-link.active {
    background: var(--gg-accent-dim);
    color: var(--gg-accent) !important;
}

.navbar-toggler {
    border: 0;
    padding: 0.35rem 0.5rem;
    border-radius: 10px;
    background: var(--gg-surface);
}
.navbar-toggler:focus { box-shadow: none; }

/* ============================================
   Утилитарные стили в духе клиента
============================================ */
.section-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: var(--gg-text);
    opacity: 0.42;
    font-family: var(--gg-mono);
    margin-bottom: 12px;
}

.gg-mono { font-family: var(--gg-mono); }

/* Бейджи */
.gg-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--gg-accent-dim);
    color: var(--gg-accent);
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    font-family: var(--gg-mono);
    letter-spacing: 0.3px;
    text-transform: uppercase;
}
.gg-badge.green { background: var(--gg-green-bg); color: var(--gg-green); }
.gg-badge.yellow { background: var(--gg-yellow-bg); color: var(--gg-yellow); }
.gg-badge.red { background: rgba(217, 48, 37, 0.08); color: var(--gg-red); }
.gg-badge.neutral { background: var(--gg-surface); color: var(--gg-text); }
.gg-badge.lg { padding: 7px 12px; font-size: 12px; }

.version-pill {
    background: var(--gg-surface);
    padding: 8px 14px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--gg-text);
    font-family: var(--gg-mono);
}
.version-pill strong { color: var(--gg-accent); }

/* Кнопки */
.btn {
    border-radius: 10px;
    font-weight: 700;
    letter-spacing: 0.1px;
    padding: 0.65rem 1.25rem;
    font-size: 14px;
    transition: background-color 0.15s, transform 0.1s, border-color 0.15s;
}
.btn:active { transform: scale(0.97); }

.btn-primary {
    background: var(--gg-accent);
    border-color: var(--gg-accent);
}
.btn-primary:hover, .btn-primary:focus {
    background: var(--gg-accent-light);
    border-color: var(--gg-accent-light);
}

.btn-lg { font-size: 15px; padding: 0.85rem 1.5rem; }

.btn-soft {
    background: var(--gg-surface);
    color: var(--gg-text);
    border: 1.5px solid transparent;
}
.btn-soft:hover { background: var(--gg-surface2); color: var(--gg-text); }

.btn-outline-soft {
    background: transparent;
    color: var(--gg-text);
    border: 1.5px solid #D0D4DA;
}
.btn-outline-soft:hover { background: var(--gg-surface); color: var(--gg-text); }

/* Карточки */
.gg-card {
    background: var(--bs-body-bg);
    border: 1.5px solid var(--gg-border);
    border-radius: 16px;
    padding: 1.5rem;
}

.gg-card.soft {
    background: var(--gg-surface);
    border-color: var(--gg-border);
}

.gg-card.accent {
    background: var(--gg-accent-dim);
    border-color: var(--gg-accent-dim2);
}

.gg-card.dark {
    background: linear-gradient(135deg, #0a0e1a 0%, #11192e 100%);
    border-color: #1a2541;
    color: white;
    overflow: hidden;
    position: relative;
}
.gg-card.dark::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 80% 20%, rgba(5, 61, 200, 0.18) 0%, transparent 55%);
    pointer-events: none;
}
.gg-card.dark > * { position: relative; z-index: 1; }
.gg-card.dark h2, .gg-card.dark h3 { color: white; }
.gg-card.dark p { color: rgba(255,255,255, 0.65); }

/* Преимущество */
.feature-item {
    background: var(--bs-body-bg);
    border: 1.5px solid var(--gg-border);
    border-radius: 16px;
    padding: 1.1rem;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    height: 100%;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.feature-item:hover { border-color: var(--gg-accent-dim2); box-shadow: var(--gg-shadow); }

.feature-ico {
    width: 36px;
    height: 36px;
    background: var(--gg-surface);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.feature-item strong { display: block; font-size: 17px; margin-bottom: 6px; font-weight: 700; }
.feature-item .feature-sub { font-size: 14px; color: var(--gg-muted); line-height: 1.55; display: block; }

/* Шаги */
.step-card {
    background: var(--bs-body-bg);
    border: 1.5px solid var(--gg-border);
    border-radius: 16px;
    padding: 1.25rem;
    text-align: center;
    height: 100%;
}
.step-num {
    width: 40px; height: 40px;
    background: var(--gg-accent);
    color: white;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 16px;
    margin-bottom: 12px;
    font-family: var(--gg-mono);
}
.step-card strong { display: block; font-size: 14px; font-weight: 700; margin-bottom: 4px; }

/* Чипы для тёмной секции */
.gg-chip {
    background: rgba(255, 255, 255, 0.08);
    padding: 7px 14px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
    color: white;
    font-family: var(--gg-mono);
    border: 1px solid rgba(255, 255, 255, 0.06);
    letter-spacing: 0.3px;
    display: inline-block;
}

/* Уведомления */
.gg-notice {
    background: var(--gg-yellow-bg);
    border: 1px solid rgba(180, 83, 9, 0.2);
    border-radius: 10px;
    padding: 12px 16px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}
.gg-notice .ttl { font-size: 13px; font-weight: 700; color: var(--gg-yellow); margin: 0 0 3px; }
.gg-notice .txt { font-size: 13px; opacity: 0.8; margin: 0; line-height: 1.5; }

/* Платформы */
.platform-card {
    background: var(--bs-body-bg);
    border: 1.5px solid var(--gg-border);
    border-radius: 16px;
    padding: 1.4rem;
    height: 100%;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.platform-card:hover { border-color: var(--gg-accent-dim2); box-shadow: var(--gg-shadow); }

.platform-ico {
    width: 48px; height: 48px;
    background: var(--gg-surface);
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: 24px; flex-shrink: 0;
}

.spec-list {
    margin: 14px 0;
    background: var(--gg-surface);
    border-radius: 10px;
    padding: 14px 16px;
}
.spec-item {
    display: flex; align-items: center; gap: 10px;
    margin-bottom: 8px; font-size: 13px;
}
.spec-item:last-child { margin-bottom: 0; }

.instruction-box {
    margin-top: 16px;
    background: var(--gg-surface);
    border-radius: 10px;
    padding: 14px 16px;
    border-left: 3px solid var(--gg-accent);
}
.instruction-step {
    margin: 6px 0;
    font-size: 12.5px;
    line-height: 1.55;
    opacity: 0.85;
}
.instruction-step strong {
    background: var(--bs-body-bg);
    padding: 1px 6px;
    border-radius: 5px;
    font-size: 11.5px;
    font-family: var(--gg-mono);
    border: 1px solid var(--gg-border);
}

.warning-mini {
    background: var(--gg-yellow-bg);
    border-radius: 8px;
    padding: 10px 12px;
    margin-top: 12px;
    font-size: 12px;
    color: var(--gg-yellow);
    display: flex; gap: 8px; align-items: flex-start;
    line-height: 1.5;
}

.os-tag {
    display: inline-flex; align-items: center; gap: 5px;
    background: var(--gg-surface);
    padding: 4px 10px;
    border-radius: 5px;
    font-size: 11px;
    font-weight: 700;
    font-family: var(--gg-mono);
    color: var(--gg-text);
    letter-spacing: 0.2px;
    margin-right: 4px;
}

/* Формы — подсказки в стиле клиента */
.form-label {
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: 0.5px;
    color: var(--gg-text);
    opacity: 0.65;
    font-family: var(--gg-mono);
    text-transform: uppercase;
    margin-bottom: 6px;
}

.form-control, .form-select {
    border: 1.5px solid var(--gg-border);
    border-radius: 10px;
    padding: 0.7rem 0.9rem;
    font-size: 14px;
    color: var(--gg-text);
    background: var(--bs-body-bg);
}
.form-control:focus, .form-select:focus {
    border-color: var(--gg-accent);
    box-shadow: 0 0 0 3px var(--gg-accent-dim);
}
.form-control::placeholder { color: var(--gg-text); opacity: 0.32; }

.form-check-input { border-color: #C5CAD0; }
.form-check-input:checked { background-color: var(--gg-accent); border-color: var(--gg-accent); }
.form-check-input:focus { box-shadow: 0 0 0 3px var(--gg-accent-dim); border-color: var(--gg-accent); }

.honeypot {
    position: absolute !important;
    left: -9999px !important;
    top: -9999px !important;
    height: 0 !important;
    width: 0 !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.form-section {
    display: none;
    padding: 16px;
    background: var(--gg-surface);
    border-radius: 10px;
    margin-top: 14px;
    border: 1px solid var(--gg-border);
}
.form-section.active { display: block; animation: fadeIn 0.2s ease; }
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Чекбокс-карточка */
.checkbox-card {
    display: flex; align-items: flex-start; gap: 10px;
    padding: 11px 14px;
    background: var(--bs-body-bg);
    border: 1.5px solid var(--gg-border);
    border-radius: 10px;
    cursor: pointer;
    transition: border-color 0.15s;
    margin-bottom: 8px;
}
.checkbox-card:hover { border-color: #D0D4DA; }
.checkbox-card input { margin-top: 2px; flex-shrink: 0; }
.checkbox-card span { flex: 1; font-size: 13px; line-height: 1.5; }

/* Алерты — тонкие */
.alert {
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 14px;
    border-width: 1px;
}
.alert-success { background: var(--gg-green-bg); color: var(--gg-green); border-color: rgba(26, 122, 74, 0.2); }
.alert-danger { background: rgba(217, 48, 37, 0.07); color: var(--gg-red); border-color: rgba(217, 48, 37, 0.2); }
.alert-info { background: var(--gg-accent-dim); color: var(--gg-accent); border-color: var(--gg-accent-dim2); }

/* Юр.страницы */
.legal-page h2 {
    font-size: 19px;
    margin-top: 28px;
    margin-bottom: 12px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--gg-border);
}
.legal-page h3 { font-size: 15px; margin-top: 16px; margin-bottom: 8px; }
.legal-page p, .legal-page li { font-size: 14px; line-height: 1.65; }

.toc {
    background: var(--gg-surface);
    border-radius: 16px;
    padding: 18px 22px;
    margin: 20px 0 28px;
    border: 1px solid var(--gg-border);
}
.toc h4 {
    margin-bottom: 8px;
    font-size: 13px;
    font-family: var(--gg-mono);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.6;
}
.toc ol { margin-left: 18px; margin-bottom: 0; padding-left: 0; }
.toc li { font-size: 13px; margin-bottom: 4px; }
.toc a { color: var(--gg-text); text-decoration: none; }
.toc a:hover { color: var(--gg-accent); }

/* Hero */
.hero { text-align: center; padding: 28px 0 12px; }
.hero .brand-icon {
    width: 56px; height: 56px; border-radius: 14px; margin: 0 auto 16px;
}
.hero .brand-icon img { width: 56px; height: 56px; }
.hero .jp-tag {
    font-family: var(--gg-mono);
    font-size: 13px;
    color: var(--gg-accent);
    margin-bottom: 6px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Футер */
.site-footer {
    background: #0a0e1a;
    color: rgba(255,255,255, 0.55);
    padding: 40px 0 24px;
    margin-top: 60px;
    border-top: 1px solid #1a2541;
}
.site-footer h5 {
    color: white;
    font-size: 11px;
    font-weight: 700;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    font-family: var(--gg-mono);
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 7px; }
.site-footer a { color: rgba(255,255,255, 0.55); font-size: 13px; text-decoration: none; transition: color 0.15s; }
.site-footer a:hover { color: white; }

.footer-brand {
    display: inline-flex; align-items: center; gap: 10px;
    color: white; font-family: var(--gg-mono); font-weight: 700; font-size: 18px;
    margin-bottom: 10px;
}
.footer-brand .brand-icon { width: 30px; height: 30px; border-radius: 7px; }
.footer-brand .brand-icon img { width: 30px; height: 30px; }
.footer-tagline { font-size: 12px; color: rgba(255,255,255, 0.45); line-height: 1.55; max-width: 320px; }

.footer-bottom {
    border-top: 1px solid #1a2541;
    padding-top: 18px;
    margin-top: 24px;
    text-align: center;
    font-size: 11px;
    color: rgba(255,255,255, 0.35);
    font-family: var(--gg-mono);
}

/* Toast */
.toast-notify {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translate3d(-50%, 0, 0);
    background: rgba(30, 35, 50, 0.96);
    color: rgba(255, 255, 255, 0.92);
    padding: 10px 18px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    z-index: 10000;
    border: 1px solid rgba(255, 255, 255, 0.08);
    animation: slideUp 0.22s ease;
}
@keyframes slideUp {
    from { opacity: 0; transform: translate3d(-50%, 12px, 0); }
    to { opacity: 1; transform: translate3d(-50%, 0, 0); }
}
@keyframes slideDown {
    from { opacity: 1; transform: translate3d(-50%, 0, 0); }
    to { opacity: 0; transform: translate3d(-50%, 12px, 0); }
}
