/* ============================================================
   ENERGYNET — головний файл стилів
   ============================================================ */

/* --- Змінні --- */
:root {
    --primary:      #1a3a6b;
    --primary-dark: #0f2347;
    --accent:       #e8a020;
    --light-bg:     #f4f7fc;
}

body {
    font-family: 'Roboto', sans-serif;
    color: #333;
}

/* ============================================================
   TOP BAR
   ============================================================ */
.top-bar {
    background: var(--primary-dark);
    color: #cdd8f0;
    font-size: 0.85rem;
    padding: 6px 0;
}
.top-bar a { color: #cdd8f0; text-decoration: none; }
.top-bar a:hover { color: var(--accent); }

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
    background: var(--primary) !important;
    padding: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,.3);
}
.navbar-brand { padding: 10px 15px; }
.navbar-brand img { height: 44px; }
.navbar-brand span {
    color: #fff;
    font-weight: 700;
    font-size: 1.3rem;
    letter-spacing: 1px;
    margin-left: 8px;
    vertical-align: middle;
}
.navbar-toggler { border-color: rgba(255,255,255,.4); margin-right: 10px; }
.navbar-toggler-icon { filter: invert(1); }

.nav-link {
    color: rgba(255,255,255,.85) !important;
    font-size: 0.78rem;
    font-weight: 500;
    padding: 18px 8px !important;
    text-transform: uppercase;
    letter-spacing: .1px;
    transition: background .2s, color .2s;
    white-space: nowrap;
}
.nav-link:hover,
.nav-link.active {
    color: var(--accent) !important;
    background: rgba(255,255,255,.08);
}

.dropdown-menu {
    background: #1e3f7a;
    border: none;
    border-top: 3px solid var(--accent);
    border-radius: 0 0 6px 6px;
    margin-top: 0 !important;
}
.dropdown-item {
    color: rgba(255,255,255,.85);
    font-size: 0.85rem;
    padding: 10px 18px;
}
.dropdown-item:hover {
    background: rgba(255,255,255,.1);
    color: var(--accent);
}
.dropdown-item.active,
.dropdown-item:active {
    background: rgba(255,255,255,.15);
    color: var(--accent);
}
.dropdown-divider { border-color: rgba(255,255,255,.15); }

/* ============================================================
   PAGE HEADER (для внутрішніх сторінок)
   ============================================================ */
.page-header {
    background: linear-gradient(135deg, var(--primary-dark), #1e4a96);
    color: #fff;
    padding: 40px 0;
}
.page-header h1 { font-size: 2rem; font-weight: 700; margin-bottom: 6px; }

.breadcrumb-item a { color: rgba(255,255,255,.7); text-decoration: none; }
.breadcrumb-item.active { color: rgba(255,255,255,.9); }
.breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,.5); }

/* ============================================================
   ЗАГАЛЬНІ КОМПОНЕНТИ
   ============================================================ */
.section-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
}
.section-divider {
    width: 40px;
    height: 3px;
    background: var(--accent);
    margin-bottom: 18px;
}

/* Content card */
.content-card {
    background: #fff;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 12px rgba(0,0,0,.07);
    margin-bottom: 28px;
}
.content-card ul { padding-left: 20px; }
.content-card li { margin-bottom: 8px; line-height: 1.7; }

/* Alert info custom */
.alert-info-custom {
    background: #e8f0ff;
    border-left: 4px solid var(--primary);
    border-radius: 0 6px 6px 0;
    padding: 14px 18px;
    font-size: .9rem;
}

/* ============================================================
   ДОКУМЕНТИ ДЛЯ ЗАВАНТАЖЕННЯ
   ============================================================ */
.download-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    background: var(--light-bg);
    border-radius: 6px;
    margin-bottom: 10px;
    transition: background .2s;
}
.download-item:hover { background: #e0e8f5; }

.download-icon {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.download-icon.docx { background: #2b5797; }
.download-icon.doc  { background: #1e4d78; }
.download-icon.xlsx { background: #1f7041; }
.download-icon.pdf  { background: #c00;    }
.download-icon i    { color: #fff; font-size: 1.1rem; }

.download-name {
    font-weight: 500;
    font-size: .95rem;
    color: #333;
    flex-grow: 1;
}

.download-btn {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 7px 16px;
    border-radius: 4px;
    font-size: .82rem;
    white-space: nowrap;
    text-decoration: none;
    transition: background .2s;
}
.download-btn:hover { background: var(--accent); color: #fff; }

/* Архів: мітка групи */
.group-label {
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #888;
    margin: 20px 0 8px;
}

/* ============================================================
   ГОЛОВНА — HERO
   ============================================================ */
.hero-section {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #1e4a96 60%, #2563cc 100%);
    color: #fff;
    padding: 70px 0 60px;
    position: relative;
    overflow: hidden;
}
.hero-section::before {
    content: '';
    position: absolute;
    top: -60px; right: -80px;
    width: 400px; height: 400px;
    background: rgba(255,255,255,.04);
    border-radius: 50%;
}
.hero-section::after {
    content: '';
    position: absolute;
    bottom: -80px; left: -60px;
    width: 300px; height: 300px;
    background: rgba(255,255,255,.03);
    border-radius: 50%;
}
.hero-title    { font-size: 2.6rem; font-weight: 700; line-height: 1.2; margin-bottom: 18px; }
.hero-subtitle { font-size: 1.1rem; color: rgba(255,255,255,.8); margin-bottom: 32px; line-height: 1.7; }
.hero-badge {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    font-size: .78rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-bottom: 16px;
}

.btn-hero {
    background: var(--accent);
    color: #fff;
    border: none;
    padding: 13px 32px;
    font-weight: 600;
    border-radius: 4px;
    font-size: 1rem;
    transition: background .2s, transform .15s;
    text-decoration: none;
    display: inline-block;
}
.btn-hero:hover { background: #c8881a; color: #fff; transform: translateY(-1px); }

.btn-hero-outline {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255,255,255,.6);
    padding: 11px 28px;
    font-weight: 500;
    border-radius: 4px;
    font-size: 1rem;
    transition: all .2s;
    text-decoration: none;
    display: inline-block;
}
.btn-hero-outline:hover { border-color: #fff; background: rgba(255,255,255,.1); color: #fff; }

/* ============================================================
   ГОЛОВНА — FEATURES
   ============================================================ */
.features-section { padding: 60px 0; background: var(--light-bg); }

.feature-card {
    background: #fff;
    border-radius: 8px;
    padding: 32px 24px;
    text-align: center;
    box-shadow: 0 2px 12px rgba(0,0,0,.07);
    transition: box-shadow .25s, transform .25s;
    height: 100%;
}
.feature-card:hover { box-shadow: 0 6px 24px rgba(0,0,0,.12); transform: translateY(-4px); }

.feature-icon {
    width: 64px; height: 64px;
    background: linear-gradient(135deg, var(--primary), #2563cc);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
}
.feature-icon i  { color: #fff; font-size: 1.5rem; }
.feature-title   { font-weight: 700; font-size: 1.05rem; color: var(--primary); margin-bottom: 10px; }
.feature-text    { font-size: .9rem; color: #666; line-height: 1.6; }

/* ============================================================
   ГОЛОВНА — ABOUT
   ============================================================ */
.about-section { padding: 60px 0; }
.about-section .section-title { font-size: 1.75rem; font-weight: 700; color: var(--primary); margin-bottom: 10px; }
.about-section .section-divider { width: 50px; margin-bottom: 24px; }

.about-text { font-size: 1rem; color: #555; line-height: 1.8; }

.contact-block {
    background: var(--light-bg);
    border-left: 4px solid var(--accent);
    padding: 20px 24px;
    border-radius: 0 8px 8px 0;
}
.contact-block h5 { color: var(--primary); font-weight: 700; margin-bottom: 12px; }
.contact-item { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; font-size: .95rem; }
.contact-item i  { color: var(--accent); width: 18px; text-align: center; }

/* ============================================================
   ГОЛОВНА — INFO BANNER
   ============================================================ */
.info-banner { background: var(--primary); color: #fff; padding: 40px 0; }
.info-banner h3 { font-weight: 700; margin-bottom: 8px; }
.info-banner p  { color: rgba(255,255,255,.8); margin-bottom: 0; }

/* ============================================================
   FOOTER
   ============================================================ */
footer {
    background: var(--primary-dark);
    color: rgba(255,255,255,.7);
    padding: 40px 0 20px;
}
footer .footer-brand { color: #fff; font-weight: 700; font-size: 1.2rem; }
footer a { color: rgba(255,255,255,.7); text-decoration: none; }
footer a:hover { color: var(--accent); }
footer .footer-title {
    color: rgba(255,255,255,.9);
    font-weight: 600;
    margin-bottom: 14px;
    font-size: .95rem;
    text-transform: uppercase;
    letter-spacing: .5px;
}
footer hr         { border-color: rgba(255,255,255,.1); }
footer .footer-copy { font-size: .82rem; color: rgba(255,255,255,.45); }

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* Top bar — вертикальне вирівнювання тексту на мобільному */
@media (max-width: 575px) {
    .top-bar { text-align: center; }
}
