:root {
    --deco-yellow: #f8d000;
    --deco-yellow-dark: #e0be00;
    --deco-yellow-line: #ab8f00;
    --deco-text: #1c1c1c;
    --deco-muted: #6d6d71;
    --deco-dark: #1a1a1a;
    --deco-white: #ffffff;
    --deco-border: #dedede;
}

body {
    font-family: 'Didact Gothic', Arial, sans-serif;
}

.deco-site-header,
.deco-site-header * {
    box-sizing: border-box;
    border-radius: 0 !important;
}

.deco-site-header {
    position: relative;
    z-index: 3000;
    width: 100%;
    background: var(--deco-white);
    color: var(--deco-text);
    font-family: 'Didact Gothic', Arial, sans-serif;
}

.deco-header-top {
    display: grid;
    grid-template-columns: minmax(460px, 1fr) auto;
    align-items: center;
    gap: 18px;
    margin-top: 0 !important;
    padding: 12px 28px 10px;
    background: linear-gradient(180deg, #ffffff 0%, #f7f7f7 100%);
    border-bottom: 1px solid var(--deco-border);
}

.deco-header-brand {
    display: flex;
    align-items: center;
    gap: 22px;
    min-width: 0;
}

.deco-logo-link {
    display: block;
    flex: 0 0 auto;
    text-decoration: none;
}

.deco-logo-img {
    display: block;
    width: auto;
    height: 92px;
    margin: 0 !important;
}

.deco-header-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 16px;
    min-width: 0;
}

.deco-exchange-line {
    color: #333333;
    font-size: 14px;
    line-height: 1.35;
    white-space: normal;
}

.deco-exchange-title {
    color: var(--deco-text);
    font-weight: 700;
}

.deco-user-balance {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    margin-left: 0 !important;
    padding: 3px 8px;
    background: #ffffff;
    border-left: 4px solid var(--deco-yellow);
    font-size: 14px;
    line-height: 1.2;
}

.deco-beta-label {
    color: #999999;
    font-size: 10px;
}

.tooltip-balance {
    position: relative;
    display: inline-flex;
    cursor: pointer;
}

.tooltip-balance .tooltip-text {
    position: absolute;
    top: calc(100% + 7px);
    left: 0;
    z-index: 5000;
    width: max-content;
    max-width: 280px;
    padding: 8px 10px;
    background-color: #f8d7da;
    color: #721c24;
    font-size: 12px;
    line-height: 1.4;
    text-align: left;
    visibility: hidden;
    opacity: 0;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
    transition: opacity 0.12s ease-in-out;
}

.tooltip-balance:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

.btn-feedback,
.deco-feedback-link {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 7px 12px;
    background-color: var(--deco-yellow);
    color: #000000;
    border: 1px solid var(--deco-yellow-line);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
}

.btn-feedback:hover,
.deco-feedback-link:hover {
    background-color: var(--deco-yellow-dark);
    color: #000000;
    text-decoration: none;
}

.deco-contact-info-wrapper {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 18px;
    flex-wrap: nowrap;
}

.deco-mobile-contacts-toggle {
    display: none;
}

.deco-mobile-contacts-panel {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 18px;
    flex-wrap: nowrap;
}

.deco-contact-page-link {
    display: none;
}

.deco-site-header .contact-info {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: flex-end;
    gap: 14px;
    flex-wrap: nowrap;
}

.deco-site-header .contact-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 122px;
    margin-right: 0;
    padding-left: 10px;
    border-left: 3px solid var(--deco-yellow);
    color: #111111;
    font-size: 12px;
    line-height: 1.25;
}

.deco-site-header .contact-group strong {
    display: flex;
    align-items: center;
    min-height: 20px;
    margin-bottom: 2px;
    color: #111111;
    font-weight: 700;
    white-space: nowrap;
}

.deco-site-header .contact-group span {
    display: block;
    margin: 1px 0;
    color: #111111;
    font-size: 11px;
    line-height: 1.25;
    white-space: nowrap;
}

.deco-site-header .operator-icon {
    width: auto;
    height: 17px;
    margin-right: 5px;
    vertical-align: middle;
}

.deco-site-header .working-hours {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    min-width: 134px;
    padding-left: 14px;
    border-left: 1px solid #d0d0d0;
    color: #333333;
    font-size: 12px;
    line-height: 1.35;
    text-align: left;
}

.deco-site-header .working-hours strong {
    margin-bottom: 2px;
    color: #111111;
    font-weight: 700;
}

.deco-manager-empty-contact {
    min-height: 40px;
}

.deco-menu-row {
    position: relative;
    z-index: 99999;
    width: 100%;
    background: var(--deco-yellow);
    border-top: 1px solid var(--deco-yellow-dark);
    border-bottom: 1px solid var(--deco-yellow-line);
}

.deco-main-menu {
    position: relative;
    z-index: 3500;
    width: 100%;
    background: var(--deco-yellow);
    font-family: 'Didact Gothic', Arial, sans-serif;
}

.deco-main-menu ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.deco-main-menu .menu {
    display: flex;
    justify-content: center;
    width: 100%;
    background: var(--deco-yellow);
}

.deco-main-menu > ul,
.deco-main-menu .menu > ul {
    display: flex;
    align-items: stretch;
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
    background: var(--deco-yellow);
}

.deco-main-menu li {
    position: relative;
}

.deco-main-menu a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 16px;
    background: var(--deco-yellow);
    color: #6d6d71;
    border-right: 1px solid rgba(0, 0, 0, 0.13);
    border-left: 1px solid rgba(255, 255, 255, 0.25);
    border-bottom: 0;
    box-shadow: none;
    font-family: 'Didact Gothic', Arial, sans-serif;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.1;
    text-decoration: none;
    transition: background-color 0.15s ease-in-out, color 0.15s ease-in-out;
}

.deco-main-menu .menu > ul > li > a,
.deco-main-menu > ul > li > a {
    min-width: auto;
}

.deco-main-menu a:hover,
.deco-main-menu li.active > a,
.deco-main-menu .active > a {
    background: var(--deco-yellow-dark);
    color: #000000;
    text-decoration: none;
}

.deco-main-menu a img {
    width: auto;
    height: 16px;
    margin-right: 8px;
}

.deco-header-breadcrumbs {
    background: #ffffff;
}

.breadcrumbs {
    margin: 0;
    padding: 6px 28px;
    color: #555555;
    font-size: 12px;
    line-height: 1.3;
}

.breadcrumbs a {
    color: #007bff;
    text-decoration: none;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

.breadcrumbs a.active {
    color: #000000;
    font-weight: 700;
    cursor: default;
}

.deco-menu-button {
    display: none;
}

.deco-mobile-backdrop {
    display: none;
}

#top-alert {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 100002;
    padding: 2px 5px;
    background-color: #cc0000;
    color: #ffffff;
    font-size: 15px;
    font-weight: 500;
    text-align: center;
}

@media (min-width: 1024px) {
    .deco-main-menu ul ul {
        position: absolute;
        top: 100%;
        left: 0;
        z-index: 5000;
        min-width: 240px;
        max-height: 0;
        overflow: hidden;
        background: var(--deco-yellow);
        opacity: 0;
        box-shadow: 0 12px 24px rgba(0, 0, 0, 0.24);
        transition: max-height 0.25s ease, opacity 0.18s ease;
    }

    .deco-main-menu ul ul ul {
        top: 0;
        left: 100%;
    }

    .deco-main-menu ul li:hover > ul,
    .deco-main-menu ul ul.open {
        max-height: 900px;
        overflow: visible;
        opacity: 1;
    }

    .deco-main-menu ul ul a {
        justify-content: flex-start;
        min-width: 220px;
        min-height: 40px;
        padding: 10px 14px;
        border-right: 0;
        border-left: 0;
        border-bottom: 1px solid var(--deco-yellow-line);
        font-size: 14px;
        text-align: left;
        white-space: nowrap;
    }

    .deco-main-menu.fixed,
    .deco-main-menu .menu.fixed,
    #navbar.fixed {
        position: fixed !important;
        top: 0;
        right: 0;
        left: 0;
        z-index: 9000;
        box-shadow: 0 2px 7px rgba(0, 0, 0, 0.18);
    }
}

@media (max-width: 1480px) {
    .deco-header-top {
        grid-template-columns: minmax(410px, 1fr) auto;
        gap: 14px;
        padding-right: 20px;
        padding-left: 20px;
    }

    .deco-logo-img {
        height: 82px;
    }

    .deco-header-brand {
        gap: 18px;
    }

    .deco-main-menu a {
        padding-right: 12px;
        padding-left: 12px;
        font-size: 15px;
    }

    .deco-site-header .contact-info {
        gap: 10px;
    }

    .deco-site-header .contact-group {
        min-width: 112px;
    }
}

@media (max-width: 1180px) {
    .deco-header-top {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .deco-contact-info-wrapper {
        justify-content: flex-start;
    }

    .deco-main-menu a {
        min-height: 42px;
        padding-right: 10px;
        padding-left: 10px;
        font-size: 14px;
    }
}

@media (max-width: 1023px) {
    html,
    body {
        max-width: 100%;
        overflow-x: hidden;
    }

    body {
        font-family: 'Didact Gothic', Arial, sans-serif;
    }

    .deco-header-top {
        display: grid;
        grid-template-columns: 1fr;
        gap: 9px;
        margin-top: 0 !important;
        padding: 10px 70px 10px 12px;
        background: #ffffff;
    }

    .deco-header-brand {
        gap: 12px;
        align-items: center;
    }

    .deco-logo-img {
        height: 68px;
    }

    .deco-header-meta {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .deco-exchange-line {
        font-size: 12.5px;
        line-height: 1.3;
    }

    .deco-user-balance {
        min-height: 24px;
        padding: 2px 7px;
        font-size: 12.5px;
    }

    .tooltip-balance .tooltip-text {
        left: auto;
        right: 0;
        max-width: 240px;
        font-size: 11px;
    }

    .deco-feedback-link {
        min-height: 30px;
        padding: 6px 9px;
        font-size: 12px;
    }

    .deco-contact-info-wrapper {
        display: grid;
        grid-template-columns: 1fr;
        width: calc(100% + 82px);
        margin-left: -12px;
        margin-right: -70px;
        gap: 0;
        align-items: stretch;
        justify-content: stretch;
    }

    .deco-mobile-contacts-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        min-height: 30px;
        padding: 5px 10px;
        background: #8c8c8c;
        color: #ffffff;
        border-top: 1px solid var(--deco-yellow-line);
        border-right: 0;
        border-bottom: 1px solid var(--deco-yellow-line);
        border-left: 0;
        font-family: 'Didact Gothic', Arial, sans-serif;
        font-size: 12px;
        font-weight: 700;
        line-height: 1.1;
        text-align: center;
        text-transform: uppercase;
        cursor: pointer;
        box-shadow: none;
    }
    .deco-mobile-contacts-toggle.open {
        background: #7f7f7f;
    }

    .deco-mobile-contacts-toggle:hover,
    .deco-mobile-contacts-toggle:focus {
        background: #7f7f7f;
        color: #ffffff;
        outline: none;
    }

    .deco-mobile-contacts-panel {
        display: none;
        width: 100%;
        padding: 8px 12px 0;
        background: #ffffff;
    }

    .deco-mobile-contacts-panel.open {
        display: grid;
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .deco-site-header .contact-info {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        width: 100%;
        gap: 6px;
    }

    .deco-site-header .contact-group {
        min-width: 0;
        padding-left: 7px;
        font-size: 11px;
    }

    .deco-site-header .contact-group strong {
        font-size: 11px;
    }

    .deco-site-header .contact-group span {
        font-size: 10.5px;
        white-space: nowrap;
    }

    .deco-site-header .operator-icon {
        height: 14px;
        margin-right: 4px;
    }

    .deco-site-header .working-hours {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        justify-content: flex-start;
        min-width: 0;
        padding-left: 7px;
        border-left: 3px solid var(--deco-yellow);
        font-size: 11.5px;
        gap: 7px;
    }

    .deco-site-header .working-hours strong {
        margin-bottom: 0;
    }

    .deco-contact-page-link {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        min-height: 38px;
        padding: 9px 12px;
        background: var(--deco-yellow);
        color: #000000;
        border: 1px solid var(--deco-yellow-line);
        font-size: 14px;
        font-weight: 700;
        line-height: 1.1;
        text-align: center;
        text-decoration: none;
        text-transform: uppercase;
    }

    .deco-contact-page-link:hover,
    .deco-contact-page-link:focus {
        background: var(--deco-yellow-dark);
        color: #000000;
        text-decoration: none;
        outline: none;
    }

    .deco-header-breadcrumbs {
        display: none;
    }

    .deco-menu-button {
        position: fixed !important;
        top: 10px;
        right: 10px;
        z-index: 100001;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        min-width: 52px;
        min-height: 48px;
        padding: 7px 9px;
        background: rgba(26, 26, 26, 0.96);
        border: 2px solid var(--deco-yellow);
        cursor: pointer;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.32);
    }

    .menu-icon-lines {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 26px;
        height: 18px;
    }

    .menu-icon-lines span {
        display: block;
        width: 100%;
        height: 3px;
        background: var(--deco-yellow);
        transition: transform 0.22s ease-in-out, opacity 0.18s ease-in-out;
    }

    .deco-menu-button.open .menu-icon-lines span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }

    .deco-menu-button.open .menu-icon-lines span:nth-child(2) {
        opacity: 0;
    }

    .deco-menu-button.open .menu-icon-lines span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .menu-label {
        margin-top: 4px;
        color: var(--deco-yellow);
        font-size: 12px;
        font-weight: 700;
        line-height: 1;
        text-transform: uppercase;
    }

    .deco-mobile-backdrop {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 99996;
        display: none;
        background: rgba(0, 0, 0, 0.48);
    }

    body.deco-menu-open .deco-mobile-backdrop {
        display: block;
    }

    .deco-main-menu {
        position: fixed;
        top: 0;
        left: 0;
        z-index: 99999;
        width: 84%;
        max-width: 360px;
        height: 100vh;
        padding: 68px 0 20px;
        overflow-x: hidden;
        overflow-y: auto;
        background: var(--deco-dark);
        border-right: 4px solid var(--deco-yellow);
        box-shadow: 8px 0 28px rgba(0, 0, 0, 0.32);
        transform: translateX(-110%);
        transition: transform 0.24s ease-in-out;
    }

    .deco-main-menu.open {
        transform: translateX(0);
    }

    .deco-main-menu .menu {
        position: static !important;
        display: block !important;
        width: 100% !important;
        max-width: none !important;
        height: auto !important;
        overflow: visible !important;
        background: transparent !important;
        box-shadow: none !important;
        transform: none !important;
    }

    .deco-main-menu > ul,
    .deco-main-menu .menu > ul {
        display: block;
        width: 100%;
        padding: 0 10px;
        background: transparent;
    }

    .deco-main-menu li {
        display: block;
        margin: 0 0 4px;
    }

    .deco-main-menu a {
        display: flex;
        align-items: center;
        justify-content: space-between;
        min-height: 42px;
        padding: 11px 12px;
        background: #333333;
        color: #ffffff;
        border-right: 0;
        border-left: 4px solid var(--deco-yellow);
        border-bottom: 1px solid #454545;
        box-shadow: none;
        font-size: 15px;
        font-weight: 700;
        line-height: 1.2;
        text-align: left;
    }

    .deco-main-menu a:hover,
    .deco-main-menu li.active > a,
    .deco-main-menu .active > a {
        background: #444444;
        color: #ffffff;
    }

    .deco-main-menu ul ul {
        position: static !important;
        display: none;
        min-width: 0;
        max-height: none !important;
        padding: 4px 0 0 12px;
        overflow: visible !important;
        background: transparent !important;
        opacity: 1 !important;
        box-shadow: none !important;
    }

    .deco-main-menu ul ul.open,
    .deco-main-menu .submenu.open {
        display: block;
    }

    .deco-main-menu ul ul a {
        min-height: 38px;
        padding: 9px 10px;
        background: #252525;
        border-left-color: var(--deco-yellow-dark);
        font-size: 14px;
        font-weight: 600;
    }

    .submenu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        float: right;
        width: 38px;
        height: 38px;
        margin: -42px 0 0 0;
        color: #ffffff;
        font-size: 30px;
        font-weight: 400;
        line-height: 1;
        cursor: pointer;
        transition: transform 0.18s ease-in-out;
    }

    .submenu-toggle.open {
        transform: rotate(45deg);
    }
}

@media (max-width: 640px) {
    .deco-header-top {
        padding-right: 66px;
        padding-left: 10px;
    }
	
    .deco-contact-info-wrapper {
        width: calc(100% + 76px);
        margin-left: -10px;
        margin-right: -66px;
    }

    .deco-logo-img {
        height: 58px;
    }

    .deco-header-brand {
        align-items: flex-start;
    }

    .deco-site-header .contact-info {
        grid-template-columns: 1fr;
        gap: 5px;
    }

    .deco-site-header .contact-group {
        display: grid;
        grid-template-columns: 98px 1fr;
        gap: 2px 8px;
        align-items: start;
        padding-top: 4px;
        padding-bottom: 4px;
        border-left-width: 4px;
    }

    .deco-site-header .contact-group strong {
        grid-row: 1 / span 3;
        align-items: flex-start;
        padding-top: 1px;
    }

    .deco-site-header .contact-group span {
        white-space: normal;
    }

    .deco-site-header .working-hours {
        gap: 5px 8px;
    }
}

@media (max-width: 420px) {
    .deco-contact-info-wrapper {
        width: calc(100% + 72px);
        margin-left: -10px;
        margin-right: -62px;
    }	

    .deco-header-top {
        padding-right: 62px;
    }

    .deco-logo-img {
        height: 52px;
    }

    .deco-exchange-line {
        font-size: 11.5px;
    }

    .deco-user-balance {
        font-size: 11.5px;
    }

    .deco-site-header .contact-group {
        grid-template-columns: 88px 1fr;
    }

    .deco-menu-button {
        right: 8px;
        min-width: 48px;
        padding-right: 7px;
        padding-left: 7px;
    }
}