.header {
    position: relative;
    display: flex;
    align-items: center;
    font-family: "Manrope", sans-serif;
    font-size: 16px;
    background: #FFFFFF;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 0 50px;
    gap: 50px;
}

.header--bg, .header--bg .header__logo path, .header--bg .header__burger line, .header__hr--mobile path {
    transition: all .3s ease-in-out;
}

.header--bg .header__button-buy {
    background: transparent;
    border: 1px solid #292929;
}

.header--bg .header__hr path {
    fill: #292929;
    fill-opacity: 0.3;
}

.header__hr {
    width: 100%;
}

.header__hr--mobile {
    display: none;
}

.header--yellow {
    background: #F4C86F;
}

.header--yellow .header__logo path, .header--yellow ~ .header__hr--mobile path {
    fill: #D1A02C;
}

.header--yellow .header__burger line {
    stroke: #D1A02C;
}

.header--orange {
    background: #E69E5F;
}

.header--orange .header__logo path, .header--orange ~ .header__hr--mobile path  {
    fill: #B57033;
}

.header--orange .header__burger line {
    stroke: #B57033;
}

.header--blue {
    background: #4681C2;
}

.header--blue .header__logo path, .header--blue ~ .header__hr--mobile path {
    fill: #17487E;
}

.header--blue .header__burger line {
    stroke: #17487E;
}

.header--red {
    background: #C84C4C;
}

.header--red .header__logo path, .header--red ~ .header__hr--mobile path {
    fill: #9E2F2F;
}

.header--red .header__burger line {
    stroke: #9E2F2F;
}

.header--green {
    background: #4E8D4C;
}

.header--green .header__logo path, .header--green ~ .header__hr--mobile path {
    fill: #255B24;
}

.header--green .header__burger line {
    stroke: #255B24;
}

.header__mobile-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
}

.header__mobile-container__logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header__logo-container {
    max-width: 355px;
    flex-shrink: 1;
}

.header__logo {
    width: 100%;
    height: auto;
    display: flex;
}

.header__logo img {
    width: 100%;
    height: 100%;
    display: block;
}

.header__main {
    flex: 1;
    display: grid;
    grid-template-rows: max-content max-content 46px;
    text-align: center;
}

.header__main--mobile {
    display: none;
}

.header__buttons {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 12px 0;
    gap: 30px;
}

.header__button {
    display: flex;
    align-items: center;
    gap: 15px;
    color: #292929;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    margin-left: 20px;
}

.header__burger {
    display: none;
}

.header__language {
    position: relative;
    display: flex;
    align-items: baseline;
    gap: 5px;
    cursor: pointer;
}

.header__button-buy {
    width: 185px;
    height: 45px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #292929;
    text-decoration: none;
    background: #F4C86F;
    border-radius: 5px;
}

.header__button-buy--mobile {
    display: none;
}

.header__menus {
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    gap: 50px;
    padding: 12px 0;
    z-index: 9;
}

.header__menu {
    cursor: pointer;
    position: relative;
}

.header__menu--active .header__menu-header svg {
    transform: rotate(-180deg);
}

.header__menu--active .header__menu-content {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
}

.header__menu-header svg {
    transition: all .3s ease-in-out;
}

.header__menu-content {
    width: max-content;
    position: absolute;
    top: 33px;
    left: 0;
    transform: translateY(-15px);
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: left;
    background: #FFFFFF;
    border: 1px solid #D6D6D6;
    border-radius: 5px;
    list-style: none;
    padding: 15px 25px;
    opacity: 0;
    pointer-events: none;
    z-index: 10;
    transition: all .3s ease-in-out;
}

.header__menu-content a {
    color: #292929;
    font-size: 14px;
    font-weight: 400;
    text-decoration: none;
    transition: all .3s ease-in-out;
}

.header__menu-content a::after {
    height: 1px;
    bottom: 0px;
    background: currentColor;
}

.header__menu-content a:hover {
    opacity: 0.8;
}

.header__menu-content-link--bold {
    font-weight: 600 !important;
}

.header__language--mobile {
    width: 30px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.header__language-btn {
    cursor: pointer;
}

.header__language-list {
    position: absolute;
    top: 35px;
    left: -15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 14px;
    background: white;
    border: 1px solid #D6D6D6;
    border-radius: 5px;
    padding: 15px;
    list-style: none;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease-in-out;
    z-index: 11;
}

.header__language-list::before {
    content: "";
    position: absolute;
    bottom: 100%; 
    right: 15px;
    border-width: 8px;
    border-style: solid;
    border-color: transparent transparent #292929  transparent;
    opacity: 0;
}

.header__language-list::after {
    content: "";
    position: absolute;
    bottom: calc(100% - 1px); 
    right: 16px;
    border-width: 7px;
    border-style: solid;
    border-color: transparent transparent white transparent;
    z-index: 2;
    opacity: 0;
}

.js-lang.active .header__language-list {
    opacity: 1;
    pointer-events: auto;
}

.header__language-list-item {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 7px;
}

.search-drawer__container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100svh;
    overflow: hidden;
    pointer-events: none;
    z-index: 11;
}

.search-drawer {
    width: 100%;
    height: 100%;
    font-family: "Manrope";
    font-size: 13px;
    background: #FFFFFF;
    padding: 11px 15px;
    z-index: 11;
    box-sizing: border-box;
    transform: translateY(-100%);
    pointer-events: all;
    transition: all .3s ease-in-out;
}

.search-drawer.open {
    transform: translateY(0);
}

.search-drawer__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 55px;
}

.search-drawer__logo-container {
    width: 170px;
    max-width: 70%;
}

.search-drawer__logo-container img {
    width: 100%;
    height: auto;
}

.search-drawer__close {
    background: none;
    border: none;
    cursor: pointer;
}

.search-drawer__input-container {
    position: relative;
    margin-bottom: 20px;
}

.search-drawer__input-container input {
    width: 100%;
    font-family: "Manrope";
    font-size: 13px;
    text-transform: uppercase;
    border: none;
    border-bottom: 1px solid #292929;
    outline: none;
    padding: 16px 0;
}

.search-drawer__input-container input::placeholder {
    color: #AEAAAA;
}

.search-drawer__input-container img {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
}

.search-drawer__links {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.search-drawer__link {
    width: max-content;
    color: #292929;
    text-decoration: none;
}

.search-drawer .header__button-buy {
    width: 160px;
    height: 40px;
    margin-top: 170px;
}

.menu-drawer__container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100dvh;
    overflow: hidden;
    pointer-events: none;
    z-index: 10;
}

.menu-drawer {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    font-family: "Bounded";
    font-size: 13px;
    background: #FFFFFF;
    z-index: 11;
    box-sizing: border-box;
    transform: translateX(-100%);
    pointer-events: all;
    transition: all .3s ease-in-out;
}

.menu-drawer.open {
    transform: translateX(0);
}

.menu-drawer__preheader {
    height: 35px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
    font-family: "Manrope";
    background: #F4C86F;
    padding: 15px;
    box-sizing: border-box;
}

.menu-drawer__header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 17px 15px;
}

.menu-drawer__logo-container {
    width: auto;
    height: 25px;
}

.menu-drawer__logo-container img {
    width: 100%;
    height: 100%;
    display: block;
}

.menu-drawer__close {
    background: none;
    border: none;
    cursor: pointer;
}

.menu-drawer__main {
    padding: 25px 15px;
    overflow: hidden;
    overflow-y: auto;
}

.menu-drawer__main::-webkit-scrollbar {
    width: 5px;
}

.menu-drawer__main::-webkit-scrollbar-track {
    background: #E7E7E7;
}

.menu-drawer__main::-webkit-scrollbar-thumb {
    background-color: #E69E5F;
    background-clip: content-box;
}

.menu-drawer__links {
    display: flex;
    flex-direction: column;
    color: #292929;
}

.menu-drawer__links-item {
    border-bottom: 1px solid rgba(230, 158, 95, 0.2);
}

.menu-drawer__links-item--active .menu-drawer__links-title svg {
    transform: rotate(45deg);
}

.menu-drawer__links-item--active .menu-drawer__links-content {
    max-height: 500px;
    opacity: 1;
}

.menu-drawer__links-title {
    height: 55px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 7px;
    color: currentColor;
    font-family: "Bounded";
    text-transform: uppercase;
    text-decoration: none;
    padding: 20px 0;
    cursor: pointer;
    box-sizing: border-box;
}

.menu-drawer__links-title svg {
    transition: all .3s ease-in-out;
}

.menu-drawer__links-title--link {
    justify-content: flex-start;
}

.menu-drawer__links-badge {
    color: #FFFFFF;
    font-size: 8px;
    background: #C84C4C;
    border-radius: 5px;
    padding: 5px 10px;
}

.menu-drawer__links-content {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all .3s ease-in-out;
}

.menu-drawer__links-content--bold {
    font-weight: 600;
}

.menu-drawer__links-content ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
    list-style: none;
    padding: 10px 0 20px;
}

.menu-drawer__links-content ul a {
    font-family: "Manrope";
    color: currentColor;
    text-decoration: none;
}

.menu-drawer__buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
}

.menu-drawer__button {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    color: #292929;
    text-decoration: none;
    text-transform: uppercase;
    border: 1px solid #292929;
    border-radius: 5px;
    padding: 11px;
    background: white;          
    position: relative;           
    z-index: 2;                   
    overflow: visible;
}

.corner-border {
    border: none;
  --border-color: #292929;
  --border-width: 1px;
  --corner-length: 17px; 
  --bg: white;   
}

.corner-border svg {
    position: absolute;
    top: 3px;
    right: 7px;
}

.corner-border::before {
  content: "";
  position: absolute;
  inset: 0;                   
  border: 1px solid #292929;
  border-radius: 5px;
  pointer-events: none;
  z-index: 0;                 
}


.corner-border::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;                
  border-radius: 5px;
  background:
    linear-gradient(#FFFFFF, #FFFFFF) top center / calc(100% - 36px) 1px no-repeat,
    linear-gradient(#FFFFFF, #FFFFFF) bottom center / calc(100% - 36px) 1px no-repeat,
    linear-gradient(#FFFFFF, #FFFFFF) center left / 1px calc(100% - 36px) no-repeat,
    linear-gradient(#FFFFFF, #FFFFFF) center right / 1px calc(100% - 36px) no-repeat;
  background-repeat: no-repeat;
  transition: all .3s ease-in-out;
}

.corner-border:hover::after {
  background:
    linear-gradient(#FFFFFF, #FFFFFF) top center / 0 1px no-repeat,
    linear-gradient(#FFFFFF, #FFFFFF) bottom center / 0 1px no-repeat,
    linear-gradient(#FFFFFF, #FFFFFF) center left / 1px 0 no-repeat,
    linear-gradient(#FFFFFF, #FFFFFF) center right / 1px 0 no-repeat;
}

.menu-drawer__button-buy {
    width: 100%;
    height: 40px;
    margin-bottom: 40px;
}

.menu-drawer__footer {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding: 15px;
}

.menu-drawer__socials {
    display: flex;
    align-items: center;
    gap: 14px;
}

.menu-drawer__socials a {
    position: relative;
    color: #E69E5F;
    text-decoration: none;
    will-change: transform;
}

.menu-drawer__account {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #292929;
    text-decoration: none;
    padding-bottom: 10px;
    will-change: transform;
}

@media (max-width: 1440px) {
    .header {
        gap: 20px;
        font-size: 13px;
    } 

    .header__logo-container {
        max-width: 220px;
        flex-shrink: 1;
    }


    .header__buttons {
        gap: 20px;
    }

    .header__button {
        margin: 0;
        gap: 5px;
    }
    
    .header__button img {
        width: 16px;
        height: 16px;
    }
}

@media (max-width: 1180px) {
    .header {
        padding: 0 15px;
    }

    .header__button-buy {
        width: 130px;
        height: 35px;
    }

    .menu-drawer__button-buy {
        width: 100%;
        height: 40px;
    }

    .header__menus {
        gap: 30px;
    }
}

@media (max-width: 1024px) {
    .header {
        height: max-content;
        flex-direction: column-reverse;
        gap: 0;
        box-shadow: none;
        padding: 0;
    }

    .header__mobile-container {
        width: 100%;
        padding: 10px 15px;
    }

    .header__logo {
        height: 25px;
        width: auto;
    }

    .header__main {
        display: none;
    }

    .header__main--mobile {
        width: 100%;
        display: flex;
        justify-content: flex-end;
        gap: 10px;
        background: #F4C86F;
        padding: 2px 15px;
        box-sizing: border-box;
    }

    .header__button {
        width: 30px;
        height: 30px;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .header__button .header__icon--eye {
        width: 25px;
        height: auto;
    }

    .header__button .header__icon--search {
        width: 20px;
        height: auto;
    }

    .header__burger {
        display: flex;
        width: 30px;
    }

    .header__hr--mobile {
        display: block;
        height: max-content;
    }

    .header__language-list {
        top: 40px;
        right: -10px;
        left: auto;
        gap: 14px;
        border: 1px solid #292929;
        border-radius: 8px;
        padding: 15px 10px;
    }

    .header__language-list::before {
        opacity: 1;
    }

    .header__language-list::after {
        opacity: 1;
    }

    .header__button-buy--mobile {
        display: flex;
        width: 90px;
        height: 40px;
    }
}