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

a {
    text-decoration: none; 
    color: inherit;        
}

/* Header styles */
.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 90px; 
    background-color: white;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    padding: 15px 40px; 
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000; /* Хедер має бути вище за більшість контенту */
}

.logo-container {
    display: flex;
    align-items: center;
    flex-shrink: 0; 
}

.header img { 
    
    height: 60px; 
    margin-right: 15px; 
    transition: transform 0.3s ease;
}

.header img:hover {
    transform: scale(1.05);
}

/* ПЗАС block styles */
.pz-block {
    display: flex;
    align-items: flex-start; 
    margin-right: 20px; 
}

.pz-letters {
    display: flex;
    flex-direction: column;
    background-color: #242060;
    justify-content: space-between;
    border-radius: 4px; 
    width: 20px; 
    overflow: hidden; 
    margin-right: 5px; 
}

.pz-letters div {
    color: white;
    font-size: 14px; 
    font-weight: 700;
    text-align: center;
    line-height: 1.4; 
    height: 20px;   
    width: 20px; 
    font-family: "Inter", sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pz-text {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.pz-text p {
    font-size: 14px; 
    font-weight: 600; 
    text-transform: uppercase;
    line-height: 1.4; 
    margin: 0;
    font-family: "Inter", sans-serif;
    color: #272A2C;
    display: flex;
    align-items: center;
    height: 20px; 
    white-space: nowrap; 
}

/* Navigation styles */
.nav-container {
    display: flex; 
    align-items: center;
}

.list { /* Це ul елемент */
    list-style: none;
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-item { 
    display: flex; 
    align-items: center;
}

.nav-link { 
    font-size: 16px;
    font-weight: 500;
    padding: 15px 20px; 
    color: #3D4853;
    cursor: pointer;
    position: relative;
    transition: color 0.3s ease, background-color 0.3s ease;
    display: flex;
    align-items: center;
    height: 60px; 
    white-space: nowrap;
}

.nav-link:hover {
    color: #0052CC;
    background-color: rgba(0, 82, 204, 0.04);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%; 
    transform: translateX(-50%); 
    height: 3px;
    width: 0; 
    background-color: #0052CC;
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after { 
    width: calc(100% - 40px); 
}

.nav-link.active {
    color: #0052CC;
    font-weight: 600;
}

/* Hamburger Menu Button */
.hamburger-menu {
    display: none; 
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    margin-left: 15px; 
    z-index: 1002; /* Має бути вище за меню, коли воно відкрите */
}

.hamburger-menu__line {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 5px 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger-menu[aria-expanded="true"] .hamburger-menu__line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.hamburger-menu[aria-expanded="true"] .hamburger-menu__line:nth-child(2) {
    opacity: 0;
}
.hamburger-menu[aria-expanded="true"] .hamburger-menu__line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}


/* Responsive styles */
@media (max-width: 1024px) { 
    .header {
        padding: 15px 20px;
    }
    .header img {
        height: 50px;
    }
    .pz-letters div {
        font-size: 12px;
        height: 18px;
    }
    .pz-text p {
        font-size: 12px;
        height: 18px;
    }
    .nav-link {
        padding: 10px 12px;
        font-size: 15px;
        height: 50px;
    }
    .nav-link::after {
        width: calc(100% - 24px);
    }
}

@media (max-width: 880px) { 
    .nav-container .list { /* Це ul елемент */
        flex-direction: column;
        position: fixed; 
        top: 0;
        right: 0; 
        width: 280px; 
        height: 100vh; 
        background-color: white;
        box-shadow: -4px 0 10px rgba(0, 0, 0, 0.1); 
        padding: 20px; 
        
        opacity: 0;
        visibility: hidden;
        transform: translateX(100%); 
        overflow-y: auto; 
        z-index: 1001; /* Має бути вище за .header, але нижче за .hamburger-menu[aria-expanded="true"] */
        
        transition: opacity 0.3s ease-in-out, 
                    transform 0.3s ease-in-out, 
                    visibility 0s linear 0.3s; 
    }

    .nav-container .list.active { 
        opacity: 1;
        visibility: visible;
        transform: translateX(0); 
        transition: opacity 0.3s ease-in-out, 
                    transform 0.3s ease-in-out, 
                    visibility 0s linear 0s; 
    }

    .nav-item {
        width: 100%;
    }

    .nav-link {
        width: 100%;
        justify-content: flex-start; 
        padding: 15px 10px; 
        border-bottom: 1px solid #f0f0f0;
        height: auto;
    }
    
    .nav-item:last-child .nav-link {
        border-bottom: none;
    }

    .nav-link::after { 
        display: none;
    }
    .nav-link:hover {
        background-color: rgba(0, 82, 204, 0.08); 
    }

    .hamburger-menu {
        display: block; 
    }
    
    .header { 
        min-height: 70px; 
        height: auto; 
        padding: 10px 15px;
    }

    .pz-block {
        margin-right: auto; 
    }
}


@media (max-width: 480px) { 
    .header {
        padding: 10px 15px;
    }
     .header img {
        height: 40px; 
        margin-right: 10px;
    }
    .pz-block {
         margin-right: 10px;
    }
    .pz-letters {
        width: 18px;
    }
    .pz-letters div {
        font-size: 10px;
        height: 16px;
        width: 18px;
    }
    .pz-text {
        display: none; 
    }

    .nav-link {
        font-size: 14px;
        padding: 12px 15px;
    }

    .nav-container .list { /* Налаштування ширини меню для дуже малих екранів */
        width: 250px; /* Можна зробити трохи вужчим */
    }
}