/* header.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
}
}

/* Мобільна версія - зменшені розміри */
@media (max-width: 992px) {
    .burger-menu {
        display: flex;
        position: absolute;
        right: 20px;
        top: 50%;
        transform: translateY(-50%);
    }
    
    .header-content {
        position: relative;
    }
    
    .nav {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: #16213e;
        transition: left 0.3s;
        overflow-y: auto;
    }
    
    .nav.active {
        left: 0;
    }
    
    .nav-list {
        flex-direction: column;
        gap: 0;
        padding: 15px; /* Зменшено з 20px */
    }
    
    .nav-list > li {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .nav-list > li > a {
        padding: 12px 8px; /* Зменшено відступи */
        font-size: 14px; /* Зменшено з 15px */
    }
    
    .dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s;
        background: rgba(0, 0, 0, 0.2);
        margin-left: 0;
    }
    
    .has-dropdown.active > .dropdown {
        max-height: 1000px;
    }
    
    .dropdown .dropdown {
        background: rgba(0, 0, 0, 0.3);
        margin-left: 15px; /* Зменшено з 20px */
    }
    
    .dropdown .has-dropdown > a::after {
        content: "▼";
        float: right;
    }
    
    .dropdown li a {
        padding-left: 25px; /* Зменшено з 30px */
        font-size: 13px; /* Додано - менший шрифт */
    }
    
    .dropdown .dropdown li a {
        padding-left: 40px; /* Зменшено з 50px */
        font-size: 12px; /* Додано - ще менший шрифт */
    }
    
    .dropdown li a:hover {
        padding-left: 30px; /* Зменшено з 35px */
    }
    
    .dropdown .dropdown li a:hover {
        padding-left: 45px; /* Зменшено з 55px */
    }
}

@media (max-width: 576px) {
    .logo {
        font-size: 16px; /* Зменшено з 18px */
    }
    
    .nav-list {
        padding: 10px;
    }
    
    .nav-list > li > a {
        padding: 10px 6px; /* Ще менші відступи */
        font-size: 13px; /* Ще менший шрифт */
    }
    
    .dropdown li a {
        font-size: 12px;
        padding-left: 20px;
    }
    
    .dropdown .dropdown li a {
        font-size: 11px;
        padding-left: 35px;
    }
    
    .burger-menu {
        right: 15px;
    }
}

.nav-list > li > a {
    display: block;
    padding: 12px 18px;
    color: #fff;
    text-decoration: none;
    font-size: 14px;  /* Зменшено з 15px */
    font-weight: 500;
    transition: all 0.3s;
    border-radius: 5px;
}

.header {
    background-color: #000033;
    color: #000033;  /* Змінено з white на #000033 */
    padding: 15px 0;
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Hero Section */
.hero-section {
    background-color: #1a1a4d; 
    color: white; 
    padding: 40px 0;  
    text-align: center;
}
.hero-section h1 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #ffd700;
    line-height: 1.3;
}
.hero-section p {
    font-size: 16px;
    line-height: 1.8;
    max-width: 900px;
    margin: 0 auto;
    color: white;
}

/* Мобільна адаптація */
@media (max-width: 768px) {
    .hero-section {
        padding: 10px 0;  /* Зменшено з 60px */
    }
    
    .hero-section h1 {
        font-size: 24px;  /* Зменшено з 28px */
        margin-bottom: 12px;  /* Зменшено з 20px */
    }
    
    .hero-section p {
        font-size: 14px;  /* Зменшено з 16px */
        padding: 0 15px;
    }
}

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

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: #ffd700;
    text-decoration: none;
    transition: color 0.3s;
    margin-right: auto;
}

.logo:hover {
    color: #ffed4e;
}

.burger-menu {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}

.burger-menu span {
    width: 25px;
    height: 3px;
    background: #ffd700;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 3px;
}

/* Додайте це в медіа-запит */
@media (max-width: 992px) {
    .burger-menu {
        display: flex; /* Тепер відображається */
        position: absolute;
        right: auto; /* Скидаємо right */
        left: auto; /* Скидаємо left */
        margin-right: 20px; /* Відступ справа - змінюйте це значення */
        top: 50%;
        transform: translateY(-50%);
    }
}

.burger-menu.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.burger-menu.active span:nth-child(2) {
    opacity: 0;
}

.burger-menu.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 5px;
}

.nav-list > li {
    position: relative;
}

.nav-list > li > a {
    display: block;
    padding: 12px 18px;
    color: #fff;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s;
    border-radius: 5px;
}

.nav-list > li > a:hover {
    background: rgba(255, 215, 0, 0.1);
    color: #ffd700;
}

.has-dropdown > a::after {
    content: "▼";
    font-size: 10px;
    margin-left: 5px;
}

.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: #16213e;
    min-width: 220px;
    list-style: none;
    padding: 10px 0;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s;
    z-index: 100;
}

.has-dropdown:hover > .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown .has-dropdown > a::after {
    content: "►";
    float: right;
    font-size: 10px;
}

.dropdown .dropdown {
    top: 0;
    left: 100%;
    margin-left: 5px;
}

.dropdown li {
    position: relative;
}

.dropdown li a {
    display: block;
    padding: 10px 20px;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s;
}

.dropdown li a:hover {
    background: rgba(255, 215, 0, 0.1);
    color: #ffd700;
    padding-left: 25px;
}

@media (max-width: 992px) {
    .burger-menu {
        display: flex;
    }
    
    .nav {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: #16213e;
        transition: left 0.3s;
        overflow-y: auto;
    }
    
    .nav.active {
        left: 0;
    }
    
    .nav-list {
        flex-direction: column;
        gap: 0;
        padding: 20px;
    }
    
    .nav-list > li {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .nav-list > li > a {
        padding: 15px 10px;
    }
    
    .dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s;
        background: rgba(0, 0, 0, 0.2);
        margin-left: 0;
    }
    
    .has-dropdown.active > .dropdown {
        max-height: 1000px;
    }
    
    .dropdown .dropdown {
        background: rgba(0, 0, 0, 0.3);
        margin-left: 20px;
    }
    
    .dropdown .has-dropdown > a::after {
        content: "▼";
        float: right;
    }
    
    .dropdown li a {
        padding-left: 30px;
    }
    
    .dropdown .dropdown li a {
        padding-left: 50px;
    }
    
    .dropdown li a:hover {
        padding-left: 35px;
    }
    
    .dropdown .dropdown li a:hover {
        padding-left: 55px;
    }
}

@media (max-width: 576px) {
    .logo {
        font-size: 18px;
    }
    
    .nav-list {
        padding: 10px;
    }
}