﻿* {
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    color: #333333;
    background-color: #f9f9f9;
    line-height: 1.6;
}

.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 20px;
}

header {
    background-color: #ffffff;
    border-bottom: 1px solid #e0e0e0;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 960px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo {
    font-weight: bold;
    font-size: 1.3rem;
    color: #222;
}

.logo img {
    height: 90px;       
    width: auto;        
    display: block;     
}

nav {
    display: flex;
    justify-content: center;
    flex-grow: 1;
    margin-right: 120px;
}

nav a {
    color: #555555;
    text-decoration: none;
    margin: 0 15px;
    font-weight: 500;
    transition: color 0.2s;
    display: inline-block;
    text-align: center;
    vertical-align: middle;
}

    nav a:hover, nav a.active {
        color: #0044aa;
        border-bottom: 2px solid #0044aa;
        padding-bottom: 4px;
    }

.hero {
    text-align: center;
    padding: 60px 0 30px 0;
    background-color: #ffffff;
}

    .hero h1 {
        font-size: 3.5rem;
        font-weight: 400;
        margin: 0 0 10px 0;
        color: #111111;
    }

.subtitle {
    font-size: 1.5rem;
    color: #b8c412;
    margin-bottom: 30px;
}

.highlight {
    background-color: #e2f42a;
    color: #ffffff;
    padding: 2px 10px;
    font-weight: bold;
    display: inline-block;
}

.description {
    font-size: 1.15rem;
    max-width: 800px;
    margin: 0 auto;
    color: #555555;
}

.page-main {
    padding: 40px 20px;
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 40px;
    margin-bottom: 40px;
}

.card {
    background: #ffffff;
    padding: 25px;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

    .card h3, .card h4 {
        margin-top: 0;
        color: #222;
        border-bottom: 2px solid #f0f0f0;
        padding-bottom: 8px;
    }

footer {
    background-color: #222222;
    color: #ffffff;
    text-align: center;
    padding: 20px 0;
    font-size: 0.9rem;
    margin-top: 60px;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    cursor: pointer;
    background: none !important;
    border: none !important;
    outline: none;
    padding: 0;
    z-index: 101;
    -webkit-appearance: none;
    appearance: none;
}

    .menu-toggle .bar {
        display: block;
        height: 3px;
        width: 100%;
        background-color: #333333;
        border-radius: 2px;
        transition: all 0.3s ease;
    }

@media (max-width: 768px) {
    
    header {
        position: relative !important;
    }

    .nav-container {
        justify-content: space-between;
        padding: 10px 20px;
    }

    .menu-toggle {
        display: flex !important;
    }

    nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #ffffff;
        flex-direction: column;
        align-items: center;
        gap: 0;
        padding: 10px 0;
        border-bottom: 2px solid #e0e0e0;
        margin-right: 0 !important;
        box-shadow: 0 4px 6px rgba(0,0,0,0.05);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: all 0.3s ease;
        z-index: 100;
    }

        nav.open {
            opacity: 1;
            visibility: visible;
            transform: translateY(0);
        }

        nav a {
            margin: 0 !important;
            font-size: 1.1rem;
            width: 100%;
            text-align: center;
            padding: 15px 0;
            border-bottom: 1px solid #f5f5f5;
        }

            nav a:last-child {
                border-bottom: none;
            }

            nav a:hover, nav a.active {
                border-bottom: 1px solid #0044aa !important;
                padding-bottom: 15px !important;
            }

    .menu-toggle.open .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .menu-toggle.open .bar:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.open .bar:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    .hero {
        padding: 40px 15px 20px 15px;
    }

        .hero h1 {
            font-size: 2.2rem;
        }

    .subtitle {
        font-size: 1.2rem;
    }

    .content-grid {
        grid-template-columns: 1fr !important;
        gap: 15px;
        padding: 0 10px;
    }
}
