/* RedTrack Menu Styles for WordPress 
 * Version: 1.3.0 - Fixed Features menu layout (55/45% split for Core/Pro Features)
 * Version: 1.8.0 - Added "See all" link styling (grid-column: 1/-1 for full width)
 * Version: 1.8.1 - Fixed mobile: .grey blocks keep their styling on mobile (testimonial & recommended reading)
 * Version: 1.8.2 - Fixed mobile: .decor::after icon rotation when closing menu items
 * Version: 1.8.3 - Fixed mobile: disabled hover effects, added !important to menu state icon rotation
 */

/* Header Styles */
#masthead.site-header {
    box-shadow: 0 4px 14px 0 rgba(54, 57, 90, 0.10);
}

.admin-bar #masthead.site-header {
    top: 46px;
}
@media print, screen and (min-width: 1200px) {
    .admin-bar #masthead.site-header {
        top: 32px;
    }
}
@media print, screen and (min-width: 782px) {
    .admin-bar #masthead.site-header {
        top: 32px;
    }
}

/* RedTrack Menu Navigation */
.header__navigation {
    width: 100%;
    min-height: 70px;
    display: grid;
    grid-template-columns: 1fr;
    align-items: center;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 80px;
}

@media screen and (min-width: 1439px) {
    #masthead .header__navigation {
        padding: 0 0 0 80px;
    }
}

.header__navigation-box {
    display: flex;
    height: 100%;
}

.header__list {
    margin: 0;
    padding: 0;
    list-style: none;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 0 16px;
    flex-grow: 1;
}

.header__list-2 {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 16px;
}

.header__list-2 .header__item {
    display: flex;
    align-items: center;
    height: 100%;
}

.header__buttons {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header__buttons .main-button {
    width: auto;
    min-width: 160px;
}

.main-button {
    width: 100%;
    padding: 12px 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    text-decoration: none;
    font-size: 14px;
    line-height: 18px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.main-button--black {
    background-color: #121214;
    color: #ffffff;
}

.main-button--black:hover {
    background-color: #FF473D;
	color: #ffffff;
}

.main-button--black:active {
    background-color: #C72C24;
}

.main-button--transparent-black {
    background-color: #ffffff;
    color: #121214;
    box-shadow: inset 0 0 0 2px #121214;
}

.main-button--transparent-black:hover {
    color: #FF473D;
    box-shadow: inset 0 0 0 2px #FF473D;
}

.main-button--transparent-black:active {
    background-color: #FFEDED;
    color: #FF473D;
    box-shadow: inset 0 0 0 2px #FF473D;
}

.main-button--transparent-white {
    background-color: transparent;
    color: #ffffff;
    box-shadow: inset 0 0 0 2px #ffffff;
}

.main-button--transparent-white:hover {
    background-color: #FFEDED;
    color: #FF473D;
    box-shadow: inset 0 0 0 2px #FF473D;
}

.main-button--transparent-white:active {
    background-color: #FF473D;
    color: #ffffff;
    box-shadow: inset 0 0 0 2px #FF473D;
}

.main-button--red {
    background-color: #FF473D;
    color: #ffffff;
    box-shadow: inset 0 0 0 2px transparent;
}

.main-button--red:hover {
    background-color: #ffffff;
    color: #FF473D;
    box-shadow: inset 0 0 0 2px #FF473D;
}

.main-button--red:active {
    background-color: #C72C24;
    color: #ffffff;
    box-shadow: inset 0 0 0 2px #C72C24;
}

.main-button--white {
    background-color: #ffffff;
    color: #121214;
}

.main-button--white:hover {
    background-color: #FFEDED;
    color: #FF473D;
}

.main-button--white:active {
    background-color: #FF473D;
    color: #ffffff;
}

.main-button--grey {
    background-color: #3C3D47;
    color: #ffffff;
    box-shadow: inset 0 0 0 2px transparent;
}

.main-button--grey:hover {
    background-color: #ffffff;
    color: #3C3D47;
    box-shadow: inset 0 0 0 2px #3C3D47;
}

.main-button--grey:active {
    background-color: #8C8F9D;
    color: #ffffff;
    box-shadow: inset 0 0 0 2px #8C8F9D;
}

.main-button--green {
    background-color: #45BA75;
    color: #ffffff;
    box-shadow: inset 0 0 0 2px transparent;
}

.main-button--green:hover {
    background-color: #FF473D;
    color: #ffffff;
    box-shadow: inset 0 0 0 2px #FF473D;
}

.main-button--green:active {
    background-color: #C72C24;
    color: #ffffff;
    box-shadow: inset 0 0 0 2px #C72C24;
}

.main-button--violet {
    background-color: #6E5CE6;
    color: #ffffff;
    box-shadow: inset 0 0 0 2px transparent;
}

.main-button--violet:hover {
    background-color: #FF473D;
    color: #ffffff;
    box-shadow: inset 0 0 0 2px #FF473D;
}

.main-button--violet:active {
    background-color: #C72C24;
    color: #ffffff;
    box-shadow: inset 0 0 0 2px #C72C24;
}

.header__item {
    height: 100%;
    display: flex;
    align-items: center;
}

.header__item:nth-child(1) .header__wrapper,
.header__item:nth-child(7) .header__wrapper {
    max-width: 370px;
}

/* Desktop only - hover effects */
@media (min-width: 1440px) {
    .header__item:hover .header__sub-wrapper {
        display: flex;
    }

    .header__item:hover .decor::after {
        transform: translateY(-50%) rotate(180deg);
    }
}

.header__link {
    font-size: 14px;
    line-height: 18px;
    font-weight: 500;
    color: #121214;
    text-decoration: none;
}

.header__link.red {
    color: #FF473D;
}

.header__link-update {
    margin-top: 86px;
    background-color: #F6F7FF;
    border-radius: 8px;
}

.header__sub-wrapper {
    position: absolute;
    top: 64px;
    left: 50%;
    transform: translateX(-54%);
    width: 100vw;
    background-color: #ffffff;
    color: #121214;
    display: none;
    box-shadow: 0 10px 14px 0 rgba(54, 57, 90, 0.10);
    justify-content: center;
    z-index: 999;
    transition: transform 0.3s ease;
}

.header__sub-box {
    padding: 16px 46px 16px 53px;
    width: 100%;
    max-width: 1440px;
    display: flex;
    margin: 0;
}

/* First wrapper-inner gets 55% width, second gets 45% */
.header__sub-box > .header__wrapper-inner:nth-child(1) {
    flex: 0 0 50%;
}

.header__sub-box > .header__wrapper-inner:nth-child(2) {
    flex: 0 0 50%;
}

.header__wrapper {
    padding: 16px 0;
    width: 100%;
}

/* Two-column layout for menu items within sections with red_column_type = "2 columns" */
.header__wrapper--two-columns ul {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0 24px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.header__wrapper--two-columns .header__sub-item {
    break-inside: avoid;
    margin-bottom: 8px;
}

.header__sub-menu:nth-child(2) .header__wrapper--two-columns .header__sub-item {
    height: fit-content;
}

/* Default single column for other sections */
.header__wrapper ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.header__wrapper-inner {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* For Solutions/Resources - wrapper-inner contains multiple header__wrapper in 2 columns */
.header__wrapper-inner--multi {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0 16px;
}

/* For Features menu - each header__wrapper is a separate column */
.header__wrapper-inner > .header__wrapper {
    display: flex;
    flex-direction: column;
}

/* Single column for blue column sections (Solutions/Resources) */
.header__wrapper-inner--single {
    display: flex;
    flex-direction: column;
}

.header__wrapper-inner:nth-child(1) {
    padding-right: 40px;
    border-right: solid 1px #D3D4E1;
}

.header__wrapper-inner:nth-child(2) {
    padding-left: 30px;
}

/* Recommended reading block styles */
.header__wrapper--3 {
    padding: 0;
}

.header__wrapper--3 .header__box {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.header__wrapper--3 .header__box-text {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header__wrapper--3 .header__sub-slogan {
    margin-left: 0;
}

.header__wrapper--3 .header__image {
    max-width: 80px;
    width: 100%;
    flex-shrink: 0;
}

.header__wrapper--3 .header__image img {
    width: 100%;
    height: auto;
    border-radius: 14px;
}

.header__wrapper--3 .header__text {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.header__wrapper--3 .header__box-bold {
    font-weight: 500;
    font-size: 12px;
    line-height: 16px;
    color: #121214;
    display: block;
}

.header__wrapper--3 .header__box-span {
    font-size: 8px;
    line-height: 16px;
    color: #8C8F9D;
    display: block;
}

.header__wrapper--3 .header__box-link {
    padding-right: 20px;
    font-weight: 500;
    font-size: 12px;
    line-height: 16px;
    color: #FF473D;
    text-decoration: none;
    position: relative;
    display: inline-block;
    transition: all 0.2s ease-in-out;
    width: fit-content;
}

.header__wrapper--3 .header__box-link:hover {
    color: #121214;
}

.header__wrapper--3 .header__box-link:hover::after {
    right: -5px;
    background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjgiIGhlaWdodD0iMjgiIHZpZXdCb3g9IjAgMCAyOCAyOCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTE5LjgzMzMgOC4xNjY3OEw3IDIxLjAwMDEiIHN0cm9rZT0iIzE0MUIzNCIgc3Ryb2tlLXdpZHRoPSIxLjUiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIvPgo8cGF0aCBkPSJNMTIuODMzMyA3LjE1MzQyQzEyLjgzMzMgNy4xNTM0MiAxOS40MDU3IDYuNTk5MzcgMjAuNDAzMSA3LjU5Njc3QzIxLjQwMDUgOC41OTQxNyAyMC44NDY0IDE1LjE2NjcgMjAuODQ2NCAxNS4xNjY3IiBzdHJva2U9IiMxNDFCMzQiIHN0cm9rZS13aWR0aD0iMS41IiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiLz4KPC9zdmc+');
}

.header__wrapper--3 .header__box-link::after {
    width: 15px;
    height: 15px;
    position: absolute;
    content: "";
    top: 50%;
    right: 0;
    transform: translateY(-50%) rotate(45deg);
    background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjgiIGhlaWdodD0iMjgiIHZpZXdCb3g9IjAgMCAyOCAyOCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTE5LjgzMzMgOC4xNjY3OEw3IDIxLjAwMDEiIHN0cm9rZT0iI0ZBNTM0QiIgc3Ryb2tlLXdpZHRoPSIxLjUiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIvPgo8cGF0aCBkPSJNMTIuODMzMyA3LjE1MzQyQzEyLjgzMzMgNy4xNTM0MiAxOS40MDU3IDYuNTk5MzcgMjAuNDAzMSA3LjU5Njc3QzIxLjQwMDUgOC41OTQxNyAyMC44NDY0IDE1LjE2NjcgMjAuODQ2NCAxNS4xNjY3IiBzdHJva2U9IiNGQTUzNEIiIHN0cm9rZS13aWR0aD0iMS41IiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiLz4KPC9zdmc+');
    background-repeat: no-repeat;
    background-size: contain;
    transition: all 0.2s ease-in-out;
}

.header__feedback-box {
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 16px;
}

.header__feedback-box-text {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header__feedback-image {
    max-width: 44px;
    width: 100%;
}

.header__feedback-image img {
    width: 100%;
    height: auto;
    border-radius: 50%;
}

.header__feedback-bold {
    font-weight: 500;
    font-size: 14px;
    line-height: 18px;
}

.header__feedback-span {
    font-size: 12px;
    line-height: 16px;
    color: #8C8F9D;
}

.header__feedback-text {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.header__feedback-link {
    max-width: 93px;
    padding-right: 20px;
    margin-top: 16px;
    font-weight: 500;
    font-size: 12px;
    line-height: 16px;
    color: #FF473D;
    text-decoration: none;
    position: relative;
    transition: all 0.2s ease-in-out;
}

.header__feedback-link:hover {
    color: #121214;
}

.header__feedback-link:hover::after {
    background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjgiIGhlaWdodD0iMjgiIHZpZXdCb3g9IjAgMCAyOCAyOCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTE5LjgzMzMgOC4xNjY3OEw3IDIxLjAwMDEiIHN0cm9rZT0iIzE0MUIzNCIgc3Ryb2tlLXdpZHRoPSIxLjUiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIvPgo8cGF0aCBkPSJNMTIuODMzMyA3LjE1MzQyQzEyLjgzMzMgNy4xNTM0MiAxOS40MDU3IDYuNTk5MzcgMjAuNDAzMSA3LjU5Njc3QzIxLjQwMDUgOC41OTQxNyAyMC44NDY0IDE1LjE2NjcgMjAuODQ2NCAxNS4xNjY3IiBzdHJva2U9IiMxNDFCMzQiIHN0cm9rZS13aWR0aD0iMS41IiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiLz4KPC9zdmc+');
}

.header__feedback-link::after {
    width: 15px;
    height: 15px;
    position: absolute;
    content: "";
    top: 50%;
    right: 0;
    transform: translateY(-50%) rotate(45deg);
    background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjgiIGhlaWdodD0iMjgiIHZpZXdCb3g9IjAgMCAyOCAyOCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTE5LjgzMzMgOC4xNjY3OEw3IDIxLjAwMDEiIHN0cm9rZT0iI0ZBNTM0QiIgc3Ryb2tlLXdpZHRoPSIxLjUiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIvPgo8cGF0aCBkPSJNMTIuODMzMyA3LjE1MzQyQzEyLjgzMzMgNy4xNTM0MiAxOS40MDU3IDYuNTk5MzcgMjAuNDAzMSA3LjU5Njc3QzIxLjQwMDUgOC41OTQxNyAyMC44NDY0IDE1LjE2NjcgMjAuODQ2NCAxNS4xNjY3IiBzdHJva2U9IiNGQTUzNEIiIHN0cm9rZS13aWR0aD0iMS41IiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiLz4KPC9zdmc+');
    background-repeat: no-repeat;
    background-size: contain;
    transition: all 0.2s ease-in-out;
}

.header__sub-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px 16px;
}

.header__sub-link {
    padding: 8px 12px;
    display: flex;
    gap: 12px;
    transition: all 0.2s ease-in-out;
    color: #121214;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    line-height: 20px;
    height: 100%;
}

.header__sub-link:hover {
    border-radius: 8px;
    background-color: #F6F7FF;
}

.header__sub-slogan {
    margin-left: 12px;
    margin-bottom: 16px;
    display: inline-block;
    font-weight: 500;
    font-size: 12px;
    line-height: 16px;
    color: #FF473D;
}

.header__bold-text {
    font-size: 14px;
    line-height: 18px;
    font-weight: 500;
    color: #121214;
}

.header__bold-text--decor {
    position: relative;
    padding-right: 24px;
    margin-left: 12px;
    margin-top: 20px;
    text-decoration: none;
    display: inline-block;
    color: #FF473D;
    transition: all 0.2s ease-in-out;
}

.header__bold-text--decor::after {
    width: 18px;
    height: 18px;
    position: absolute;
    content: "";
    top: 50%;
    right: 0;
    transform: translateY(-50%) rotate(45deg);
    background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjgiIGhlaWdodD0iMjgiIHZpZXdCb3g9IjAgMCAyOCAyOCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTE5LjgzMzMgOC4xNjY3OEw3IDIxLjAwMDEiIHN0cm9rZT0iI0ZBNTM0QiIgc3Ryb2tlLXdpZHRoPSIxLjUiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIvPgo8cGF0aCBkPSJNMTIuODMzMyA3LjE1MzQyQzEyLjgzMzMgNy4xNTM0MiAxOS40MDU3IDYuNTk5MzcgMjAuNDAzMSA3LjU5Njc3QzIxLjQwMDUgOC41OTQxNyAyMC44NDY0IDE1LjE2NjcgMjAuODQ2NCAxNS4xNjY3IiBzdHJva2U9IiNGQTUzNEIiIHN0cm9rZS13aWR0aD0iMS41IiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiLz4KPC9zdmc+');
    background-repeat: no-repeat;
    background-size: contain;
    transition: all 0.2s ease-in-out;
}

.header__bold-text--decor:hover {
    color: #121214;
}

.header__bold-text--decor:hover::after {
    background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjgiIGhlaWdodD0iMjgiIHZpZXdCb3g9IjAgMCAyOCAyOCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTE5LjgzMzMgOC4xNjY3OEw3IDIxLjAwMDEiIHN0cm9rZT0iIzE0MUIzNCIgc3Ryb2tlLXdpZHRoPSIxLjUiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIvPgo8cGF0aCBkPSJNMTIuODMzMyA3LjE1MzQyQzEyLjgzMzMgNy4xNTM0MiAxOS40MDU3IDYuNTk5MzcgMjAuNDAzMSA3LjU5Njc3QzIxLjQwMDUgOC41OTQxNyAyMC44NDY0IDE1LjE2NjcgMjAuODQ2NCAxNS4xNjY3IiBzdHJva2U9IiMxNDFCMzQiIHN0cm9rZS13aWR0aD0iMS41IiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiLz4KPC9zdmc+');
}

/* See all link - as last item in header__sub-list */
.header__sub-item--see-all {
    grid-column: 1 / -1;
    margin-top: 12px;
    margin-bottom: 0;
}

.header__sub-text {
    margin: 0;
    font-size: 12px;
    line-height: 16px;
    font-weight: 400;
    color: #3C3D47;
}

.header__sub-box-text {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
}

.header__burger {
    display: none;
}

.hidden {
    opacity: 0;
    visibility: hidden;
}

.decor {
    position: relative;
    padding-right: 20px;
}

.decor::after {
    width: 16px;
    height: 16px;
    position: absolute;
    content: "";
    top: 50%;
    right: 0;
    background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTE4IDkuMDAwMDVDMTggOS4wMDAwNSAxMy41ODExIDE1IDEyIDE1QzEwLjQxODggMTUgNiA5IDYgOSIgc3Ryb2tlPSIjMDkwRDIzIiBzdHJva2Utd2lkdGg9IjEuNSIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIi8+Cjwvc3ZnPg==');
    background-repeat: no-repeat;
    background-size: 100% 100%;
    transform: translateY(-50%) rotate(0deg);
    transition: all 0.2s ease-in-out;
}

.grey {
    padding: 16px 24px;
    background-color: #F6F7FF;
    border-radius: 16px;
    height: max-content;
}

.grey .header__sub-link:hover {
    background-color: #ffffff;
}

.header__inner-height {
    display: block;
}

#masthead .custom-html-widget:has(.header__list-2) {
    display:flex;
    align-items: center;
}

/* Media Queries */
@media (max-width: 1439px) {
    .header__navigation {
        min-height: 62px;
        grid-template-columns: 1fr;
        justify-content: space-between;
        padding: 0 16px;
    }

    .header__inner-height {
        width: 100%;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.6s ease;
    }

    .header__wrapper {
        max-width: unset;
        padding: 0;
        margin-top: 12px;
        background-color: #ffffff;
    }
    
    /* Keep grey background for testimonial and recommended reading blocks on mobile */
    .header__wrapper.grey,
    .header__feedback-box.grey {
        background-color: #F6F7FF;
        padding: 16px 24px;
        border-radius: 16px;
    }

    .header__wrapper-inner:nth-child(1),
    .header__wrapper-inner:nth-child(2) {
        border: none;
        padding: 0;
    }

    .header__sub-wrapper {
        width: 100%;
        flex-direction: column;
        display: flex;
        position: static;
        transform: none;
        left: auto;
    }

    .header__navigation-box {
        height: 100vh;
        position: fixed;
        left: 0;
        right: 0;
        top: 62px;
        display: flex;
        flex-direction: column;
        background-color: #ffffff;
        overflow-y: auto;
        transform: translateX(100%);
        transition: transform 0.8s ease;
    }

    .header__navigation-box--open {
        transform: translateX(0);
    }

    .header__list {
        height: auto;
        flex-direction: column;
        align-items: flex-start;
        flex-grow: unset;
    }

    .header__list-2 {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        margin-bottom: 90px;
        /* padding: 0 16px; */
    }
    .header__list-2 .header__item:nth-child(2) {
        padding: 0 16px;
    }

    .header__list-2 .header__item {
        width: 100%;
    }

    .header__item {
        width: 100%;
    }

    .header__link {
        padding: 16px;
        display: block;
        width: 100%;
        border-bottom: solid 1px #EDEFF7;
    }

    .header__list-2 .header__link {
        border-bottom: none;
    }

    .header__buttons {
        width: 100%;
        margin: 40px auto;
        flex-direction: column;
        gap: 12px;
    }

    .header__buttons .main-button {
        width: 100%;
    }

    .header__sub-menu {
        display: flex;
        flex-direction: column;
        height: auto;
    }

    /* Mobile: icon rotation based on menu state */
    .decor::after {
        transform: translateY(-50%) rotate(0deg) !important;
    }
    
    .header__sub-menu--open .decor::after {
        transform: translateY(-50%) rotate(180deg) !important;
    }

    .header__sub-box {
        padding: 0 16px;
        width: unset;
        flex-direction: column;
    }

    .header__sub-box-text {
        max-width: unset;
    }

    .header__sub-slogan {
        margin-left: 0;
        margin-bottom: 12px;
    }

    .decor::after {
        right: 16px;
    }

    .header__burger {
        display: block;
        width: 25px;
        height: 25px;
        padding: 0;
        border: 0;
        background-color: transparent;
        cursor: pointer;
        position: relative;
    }

    .header__burger span {
        position: absolute;
        width: 25px;
        height: 2px;
        top: 50%;
        left: 50%;
        background-color: #121214;
        border-radius: 2px;
        overflow: hidden;
        transition: all 0.3s ease;
    }

    .header__burger span:nth-child(1) {
        animation: span-first-off 0.5s ease-in-out forwards;
    }

    .header__burger span:nth-child(2) {
        animation: span-second-off 0.5s ease-in-out forwards;
    }

    .header__burger span:nth-child(3) {
        animation: span-third-off 0.5s ease-in-out forwards;
    }

    .header__burger--open span:nth-child(1) {
        animation: span-first-on 0.5s ease-in-out forwards;
    }

    .header__burger--open span:nth-child(2) {
        animation: span-second-on 0.5s ease-in-out forwards;
    }

    .header__burger--open span:nth-child(3) {
        animation: span-third-on 0.5s ease-in-out forwards;
    }

    .header__link-update {
        margin-top: 0;
    }

    .hidden {
        display: none;
    }
    
    /* Single column for mobile menu items */
    .header__wrapper--two-columns ul {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

@media (max-width: 1023px) {
    .header__wrapper-inner {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

@keyframes span-first-off {
    0% {
        transform: translate(-50%, -50%) rotate(-45deg);
    }
    30% {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    100% {
        transform: translate(-50%, -400%);
    }
}

@keyframes span-second-off {
    0% {
        transform: translate(-150%, -50%) scale(0);
    }
    50% {
        transform: translate(-50%, -50%) scale(1);
    }
    100% {
        transform: translate(-50%, -50%);
    }
}

@keyframes span-third-off {
    0% {
        transform: translate(-50%, -50%) rotate(45deg);
    }
    30% {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    100% {
        transform: translate(-50%, 330%);
    }
}

@keyframes span-first-on {
    0% {
        transform: translate(-50%, -300%);
    }
    30% {
        transform: translate(-50%, -50%);
    }
    100% {
        transform: translate(-50%, -50%) rotate(-45deg);
    }
}

@keyframes span-second-on {
    0% {
        transform: translate(-50%, -50%);
    }
    50% {
        transform: translate(-50%, -50%) scale(1);
    }
    100% {
        transform: translate(-150%, -50%) scale(0);
    }
}

@keyframes span-third-on {
    0% {
        transform: translate(-50%, 200%);
    }
    30% {
        transform: translate(-50%, -50%);
    }
    100% {
        transform: translate(-50%, -50%) rotate(45deg);
    }
}
