/* ============================================
   Static Website Styles - ТОВ «АЛЬТЕНЕРГОПРОСТІР»
   ============================================ */

:root {
    --primary-color: #FF6B35;
    --secondary-color: #E55A2B;
    --text-color: #2E4053;
    --bg-light: #F0F2F6;
    --text-muted: #5D6D7E;
    --white: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    color: var(--text-color);
    background-color: var(--white);
    line-height: 1.6;
}

/* === LAYOUT === */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* === HEADER === */
.header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    padding: 1.5rem 0;
    text-align: center;
}

.header h1 {
    color: var(--white);
    font-size: 2.5rem;
    font-weight: bold;
}

/* === NAVIGATION === */
.nav {
    background-color: var(--white);
    border-bottom: 3px solid #E0E0E0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-list {
    display: flex;
    justify-content: center;
    list-style: none;
    max-width: 1000px;
    margin: 0 auto;
}

.nav-item {
    flex: 1;
    max-width: 250px;
}

.nav-link {
    display: block;
    text-align: center;
    padding: 1.2rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-muted);
    text-decoration: none;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
    background-color: #FFF5F2;
    border-bottom-color: var(--primary-color);
}

.nav-icon {
    display: block;
    font-size: 1.5rem;
    margin-bottom: 0.3rem;
}

/* === MAIN CONTENT === */
.main {
    padding: 2rem 0;
    min-height: calc(100vh - 300px);
}

/* === SECTION HEADER === */
.section-header {
    font-size: 2rem;
    font-weight: bold;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(90deg, var(--primary-color) 0%, transparent 100%);
    border-radius: 5px;
    color: var(--white);
}

/* === INFO BOX === */
.info-box {
    background-color: var(--bg-light);
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 5px solid var(--primary-color);
    margin-bottom: 1.5rem;
}

.info-box h3 {
    color: var(--text-color);
    margin-bottom: 1rem;
}

.info-box p {
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

/* === NAVIGATION CARDS (Home Page) === */
.nav-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.nav-card {
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--white) 100%);
    padding: 1.5rem;
    border-radius: 15px;
    border: 2px solid var(--bg-light);
    transition: all 0.3s ease;
    text-decoration: none;
    display: block;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.nav-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 16px rgba(255, 107, 53, 0.2);
    transform: translateY(-5px);
}

.nav-card h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.nav-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 0.7rem 1.5rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: var(--secondary-color);
}

/* === TABS (Documents Page) === */
.tabs {
    display: flex;
    border-bottom: 2px solid #E0E0E0;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 1rem 1.5rem;
    background: none;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.3s;
}

.tab-btn:hover,
.tab-btn.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.document-section {
    background-color: var(--white);
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border: 1px solid #E0E0E0;
}

.document-section h4 {
    color: var(--text-color);
    margin-bottom: 1rem;
}

.document-actions {
    margin-bottom: 1rem;
}

.pdf-viewer {
    width: 100%;
    height: 800px;
    border: 1px solid #E0E0E0;
    border-radius: 5px;
}

/* === GALLERY === */
.gallery {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.gallery-item {
    width: 100%;
}

.gallery-item img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* === CONTACTS === */
.contact-list {
    list-style: none;
}

.contact-item {
    font-size: 1.2rem;
    padding: 1rem 0;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--bg-light);
}

.contact-item:last-child {
    border-bottom: none;
}

.contact-icon {
    color: var(--primary-color);
    margin-right: 15px;
    font-size: 1.5rem;
    width: 40px;
    text-align: center;
}

.contact-item a {
    color: var(--primary-color);
    text-decoration: none;
}

.contact-item a:hover {
    text-decoration: underline;
}

/* === FOOTER === */
.footer {
    background-color: var(--bg-light);
    text-align: center;
    padding: 2rem;
    margin-top: 2rem;
    border-top: 1px solid #E0E0E0;
}

.footer p {
    color: var(--text-muted);
}

/* === MOBILE RESPONSIVE === */
@media only screen and (max-width: 768px) {
    .header h1 {
        font-size: 1.8rem;
        padding: 0 1rem;
    }

    .nav-list {
        flex-wrap: wrap;
    }

    .nav-item {
        flex: 1 1 50%;
        max-width: none;
    }

    .nav-link {
        padding: 0.8rem 1rem;
        font-size: 0.9rem;
    }

    .nav-icon {
        font-size: 1.2rem;
    }

    .section-header {
        font-size: 1.5rem;
    }

    .nav-cards {
        grid-template-columns: 1fr;
    }

    .tabs {
        flex-direction: column;
    }

    .tab-btn {
        text-align: left;
        border-bottom: none;
        border-left: 3px solid transparent;
    }

    .tab-btn.active {
        border-bottom: none;
        border-left-color: var(--primary-color);
        background-color: #FFF5F2;
    }

    .pdf-viewer {
        height: 500px;
    }

    .contact-item {
        font-size: 1rem;
    }
}

@media only screen and (max-width: 480px) {
    .header h1 {
        font-size: 1.4rem;
    }

    .nav-item {
        flex: 1 1 50%;
    }

    .nav-link {
        padding: 0.6rem 0.5rem;
        font-size: 0.8rem;
    }

    .section-header {
        font-size: 1.2rem;
    }

    .pdf-viewer {
        height: 400px;
    }
}
