/* ========== СТИЛИ ШАПКИ ========== */
header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 15px 0;
    margin-bottom: 20px;
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 0 20px;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
}
.logo {
    flex-shrink: 0;
}
.logo img {
    height: 80px;
    width: auto;
}

/* Соцсети */
.header-socials-block {
    display: flex;
    align-items: center;
    gap: 10px;
}
.header-socials-block a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f1f2f6;
    color: #333;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.2s, color 0.2s;
}
.header-socials-block a:hover {
    background: #0984e3;
    color: #fff;
}

/* Email */
.header-email-block {
    display: flex;
    align-items: center;
}
.header-email-block a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 15px;
    border-radius: 20px;
    background: #f1f2f6;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    transition: background 0.2s, color 0.2s;
}
.header-email-block a:hover {
    background: #0984e3;
    color: #fff;
}

/* Кнопка */
.header-button {
    background: #0984e3;
    color: #fff;
    padding: 10px 20px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.2s;
    white-space: nowrap;
}
.header-button:hover {
    background: #0767b3;
}

/* ========== АДАПТИВНОСТЬ ШАПКИ ========== */
@media (max-width: 900px) {
    .header-inner {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: center;
        align-items: center !important;
        gap: 10px;
    }
    .logo img {
        height: 60px;
    }
    .header-socials-block a {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
    .header-button {
        padding: 8px 16px;
        font-size: 14px;
    }
}

  /* Скрываем email на мобильных */
    .header-email-block {
       /* display: none;*/
    }
}


@media (max-width: 600px) {
    .header-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 10px;
    }
    .logo {
        display: none;
    }
    .header-socials-block {
        display: flex;
        justify-content: center;
        gap: 10px;
    }
    .header-button {
        display: inline-block;
    }
    .header-email-block {
        display: none;
    }
}



/* ========== МЕНЮ ПОД ШАПКОЙ ========== */
.main-nav {
    width: 100%;
    background: #fff;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}
.main-nav ul {
    display: flex;
    list-style: none;
    gap: 40px;                  /* увеличили расстояние между пунктами */
    align-items: center;
    justify-content: center;    /* центрируем меню */
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}
.main-nav li {
    position: relative;
}
.main-nav a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    padding: 15px 0;
    display: inline-block;
}
.main-nav a:hover {
    color: #0984e3;
}
.main-nav .dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border-radius: 0 0 8px 8px;
    padding: 10px 0;
    min-width: 240px;
    z-index: 100;
    flex-direction: column;
    gap: 0;
}
.main-nav .has-dropdown:hover .dropdown {
    display: flex;
}
.main-nav .dropdown li {
    padding: 0;
}
.main-nav .dropdown a {
    display: block;
    padding: 10px 20px;
    color: #333;
    font-weight: normal;
}
.main-nav .dropdown a:hover {
    background: #f1f2f6;
    color: #0984e3;
}

  