.header {
    position: relative;
    z-index: 10;
}

.header .container {
    margin-bottom: 0;
}

.header__main {
    background-color: #ffffff;
    padding: 20px 0;
}

.header__main-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.header__logos {
    display: flex;
    align-items: center;
    gap: 40px;
}

.header__logo {
    height: 60px;
}

.header__lang-btn {
    position: relative;
    width: 30px;
    height: 30px;
}

.header__lang-btn img {
    width: 100%;
    height: 100%;
}

.header__lang-overlay {
    position: absolute;
    bottom: -10px;
    right: -20px;
    transform: translateY(100%);
    background-color: #ffffff;
    box-shadow: 0 0 16px rgba(0, 0, 0, 0.2);
    padding: 0.5em 1em;
    display: none;
    align-items: center;
    gap: 1em;
}

.header__lang-overlay a {
    text-decoration: none;
}

.header__menu-btn {
    display: none;
}

.header__nav {
    background-color: #750e6d;
    color: #ffffff;
}

.header__nav a {
    text-decoration: none;
}

.header__nav a.subheader__nav-link:before {
  content: '•';
  margin-right: 0.5em;  
}

.header__nav a:hover {
    opacity: 0.8;
}

.header__nav-inner {
    display: flex;
    align-items: center;
    gap: 100px;
}

.header__nav-group {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
}

.header__nav-group--has-sub::after {
    content: '';
    display: block;
    width: 13px;
    height: 7px;
    background-image: url('../images/chevron-down.svg');
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center;
}

.header__nav-title {
    font-size: 18px;
    font-weight: 600;
    line-height: 28px;
    padding: 8px 0;
}

.header__nav-sub {
    position: absolute;
    z-index: 10;
    bottom: 0;
    left: -30px;
    transform: translateY(100%);
    background-color: #750e6d;
    min-width: 300px;
    display: none;
    flex-direction: column;
    gap: 1em;
    padding: 10px 30px 20px;
    font-size: 18px;
    font-weight: 400;
    line-height: normal;
}

.header__nav-group:hover .header__nav-sub {
    display: flex;
}

.header__nav-group--has-sub:hover::after {
    transform: rotate(180deg);
}

.header__menu {
    display: none;
}

@media (max-width: 1280px) {
    .header__main {
        padding: 20px 0;
    }

    .header__logos {
        gap: 32px;
    }

    .header__logo {
        height: 58px;
    }

    .header__nav-inner {
        gap: 70px;
    }
}

@media (max-width: 768px) {
    .header__logos {
        gap: 25px;
    }

    .header__logo {
        width: auto;
        height: 44px;
        object-fit: contain;
    }

    .header__lang-btn {
        display: none;
    }

    .header__menu-btn {
        display: block;
        width: 36px;
        padding: 4px;
    }

    .header__nav {
        display: none;
    }

    .header__menu {
        display: none;
        position: absolute;
        z-index: 10;
        bottom: 0;
        right: 0;
        transform: translateY(100%);
        width: 260px;
        background-color: #750e6d;
        padding: 40px 18px 50px 50px;
        color: #ffffff;
        font-size: 21px;
        font-weight: 400;
    }

    .header__menu--open {
        display: block;
    }

    .header__menu a {
        text-decoration: none;
    }

    .header__menu a.subheader__nav-link:before {
      content: '•';
      margin-right: 0.5em;  
    }

    .header__menu a:hover {
        opacity: 0.8;
    }

    .header__menu-list {
        display: flex;
        flex-direction: column;
        gap: 40px;
    }

    .header__menu-title {
        font-weight: 700;
        line-height: 32px; /* 152.381% */
    }

    .header__menu-title {
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .header__menu-group--has-sub .header__menu-title::after {
        content: '';
        display: block;
        width: 13px;
        height: 7px;
        background-image: url('../images/chevron-down.svg');
        background-size: 100% 100%;
        background-repeat: no-repeat;
        background-position: center;
    }

    .header__menu-group--has-sub.header__menu-group--active .header__menu-title::after {
        transform: rotate(180deg);
    }

    .header__menu-sub {
        display: none;
        flex-direction: column;
        gap: 1em;
        line-height: 1.5;
        margin: 1em 0 0.5em;
    }

    .header__menu-group--active .header__menu-sub {
        display: flex;
    }

    .header__menu-langs {
        display: flex;
        align-items: center;
        gap: 1em;
        font-size: 24px;
        line-height: 41px; /* 170.833% */
        margin-top: 40px;
    }
}