/* Modern responsive layer — mobile-first overrides for legacy layout */

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    padding: 0;
}

body {
    padding: 0 20px;
}

img {
    max-width: 100%;
    height: auto;
}

#wrapper {
    min-width: 0;
    max-width: 1200px;
    margin: 0 auto;
}

#content {
    min-width: 0;
}

#footer {
    min-width: 0;
    margin-top: 0;
    padding: 0;
    clear: both;
    background: #f4f5f7;
    border-top: 3px solid #434448;
    color: #2d3748;
    font-size: 0.9rem;
}

.footer_content {
    float: none;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.25rem 1rem 1rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem 1.5rem;
    box-sizing: border-box;
}

.footer_content hr {
    display: none;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem 1rem;
    flex: 1 1 220px;
    min-width: 0;
}

#footer .footer-logo,
#footer .footer-brand img {
    float: none;
    margin: 0;
    max-height: 42px;
    width: auto;
    flex-shrink: 0;
}

.footer-copy {
    margin: 0;
    font-size: 0.85rem;
    line-height: 1.45;
    color: #4a5568;
}

#footer span {
    float: none;
    margin: 0;
}

.footer-nav ul,
.footer_content ul {
    float: none;
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.35rem 1.25rem;
}

.footer_content li,
.footer-nav li {
    display: block;
    border-right: none;
    padding: 0;
    margin: 0;
}

.footer_content li a,
.footer-nav a {
    color: #2d3748;
    text-decoration: none;
    font-size: 0.85rem;
    line-height: 1.4;
    white-space: nowrap;
}

.footer_content li a:hover,
.footer-nav a:hover {
    color: #9b1c1c;
    text-decoration: underline;
}

.footer_content li.last {
    border-right: none;
}

.footer-legal {
    text-align: center;
    padding: 0.75rem 1rem 1.25rem;
    border-top: 1px solid #e2e8f0;
    background: #eceef1;
}

.footer-legal a {
    color: #4a5568;
    text-decoration: none;
    font-size: 0.8rem;
    line-height: 1.5;
}

.footer-legal a:hover {
    color: #9b1c1c;
    text-decoration: underline;
}

#header {
    height: auto;
    min-height: 0;
    overflow: visible;
    padding-bottom: 0;
}

.header-top {
    overflow: hidden;
}

.header-top .logo {
    float: left;
    margin: 15px 0 25px 25px;
    max-height: none;
    width: auto;
}

.header-right {
    float: right;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.5rem 1rem;
    margin: 45px 25px 30px 0;
    max-width: calc(100% - 360px);
}

.header-right .search_panel {
    float: none;
    width: 240px;
    max-width: 100%;
    margin: 0;
    flex: 0 1 240px;
}

.header-right .profile-container {
    float: none;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.35rem 0.75rem;
}

.header-right .reg {
    float: none;
    margin: 0;
}

.header-right .lang {
    float: none;
    margin: 0;
    flex-shrink: 0;
}

.header-tools {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex-shrink: 0;
}

.search-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    color: #2d3748;
    cursor: pointer;
    flex-shrink: 0;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.search-toggle__icon {
    display: block;
    width: 22px;
    height: 22px;
    position: relative;
}

.search-toggle__icon::before {
    content: '';
    position: absolute;
    top: 1px;
    left: 1px;
    width: 14px;
    height: 14px;
    border: 2.5px solid currentColor;
    border-radius: 50%;
    box-sizing: border-box;
}

.search-toggle__icon::after {
    content: '';
    position: absolute;
    width: 2.5px;
    height: 9px;
    background: currentColor;
    bottom: 0;
    right: 1px;
    transform: rotate(-45deg);
    border-radius: 1px;
}

.search-toggle.is-active .search-toggle__icon::before {
    width: 18px;
    height: 2.5px;
    top: 10px;
    left: 2px;
    border: none;
    border-radius: 1px;
    background: currentColor;
    transform: rotate(45deg);
}

.search-toggle.is-active .search-toggle__icon::after {
    width: 18px;
    height: 2.5px;
    top: 10px;
    left: 2px;
    bottom: auto;
    right: auto;
    background: currentColor;
    transform: rotate(-45deg);
}

.header-right .lang img {
    width: auto;
    height: auto;
    vertical-align: middle;
}

.search_panel form,
.search_panel iframe,
.search_panel .ya-site-form {
    max-width: 100%;
}

.search_panel form input[type="text"],
.search_panel .ya-site-form input[type="text"] {
    max-width: 100%;
    box-sizing: border-box;
}

.nav-toggle {
    display: none;
}

#horizon_menu {
    clear: both;
}

.slider_box {
    height: auto;
    min-height: 90px;
    overflow: hidden;
    position: relative;
}

#slider {
    width: 100% !important;
    max-width: 100%;
    height: auto !important;
    overflow: hidden;
}

#slider ul.sld {
    display: flex;
    width: 100% !important;
    transition: transform 0.5s ease;
    will-change: transform;
}

#slider li {
    flex: 0 0 100%;
    width: 100% !important;
    height: auto !important;
    text-align: center;
}

#slider li img {
    display: block;
    margin: 0 auto;
    max-height: 201px;
    width: auto;
    max-width: 100%;
}

#prevBtn,
#nextBtn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    float: none;
    margin: 0;
    z-index: 2;
}

#prevBtn { left: 0.25rem; }
#nextBtn { right: 0.25rem; left: auto; }

#prevBtn a,
#nextBtn a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    color: #1B3863;
    font-size: 1.25rem;
    text-decoration: none;
}

#prevBtn a::before { content: "‹"; }
#nextBtn a::before { content: "›"; }

.slider_button {
    float: none;
    width: 100%;
    overflow: hidden;
}

#content_block {
    min-width: 0;
}

.content.layout-three-col {
    width: 100%;
}

#content_block.content {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
    float: none;
    margin: 0;
    margin-left: 0;
    min-width: 0;
    width: 100%;
}

#content_block .content_col1,
#content_block .content_col2,
#content_block .content_col3 {
    float: none;
    width: auto;
    margin: 0;
    padding: 0 0 1rem;
    border: none;
}

#content_block.content > div {
    float: none;
    width: auto;
}

.catalog-grid,
.books-grid,
.journals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1.25rem;
    width: 100%;
}

.catalog-grid__item,
.books-grid__item,
.journals-grid__item {
    text-align: center;
    min-width: 0;
}

.catalog-grid__item img,
.books-grid__item img,
.journals-grid__item img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0 auto 0.5rem;
}

.journals-grid__item .link {
    font-size: clamp(0.75rem, 2.8vw, 1rem);
    line-height: 1.25;
}

.upcoming-journals__group {
    margin-bottom: 1.5rem;
}

.upcoming-journals__group h3 {
    margin: 0 0 0.75rem;
    font-size: 1.05rem;
    font-weight: 600;
}

.journals-grid--row {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    margin-bottom: 1.25rem;
}

.journals-grid--row:last-child {
    margin-bottom: 0;
}

.content_col2 > h3,
.content_col2 h3:first-child {
    margin: 0 0 0.75rem;
    font-size: 1.05rem;
    font-weight: 600;
}

.content_col3 a img[style*="margin"] {
    margin: 0.75rem 0 0 !important;
    display: block;
}

.books-grid__item h3 {
    font-size: 0.95rem;
    font-weight: normal;
    margin: 0.25rem 0;
}

.table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0 -0.5rem;
    padding: 0 0.5rem;
}

table#articles {
    min-width: 480px;
}

/* Article detail page — div-based layout */
.article-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem 0.35rem;
    margin: 0 0 1rem;
    font-size: 0.9rem;
    line-height: 1.45;
}

.article-breadcrumb__sep {
    color: #718096;
}

.article-back {
    margin: 1rem 0 0;
}

#articles.article-detail {
    font-size: 10pt;
    margin: 0 0 0.5rem;
}

#articles.article-detail .category,
#articles.article-detail .sub_category1,
#articles.article-detail .sub_category2 {
    padding: 0.5rem 0.75rem;
    text-align: center;
    font-weight: bold;
}

#articles.article-detail .category {
    background: #c6c6c6;
    font-size: 14pt;
}

#articles.article-detail .sub_category1 {
    background: #a6a6a6;
    font-size: 13pt;
}

#articles.article-detail .sub_category2 {
    background: #b6b6b9;
    font-size: 12pt;
}

#articles.article-detail .article-row {
    display: grid;
    grid-template-columns: minmax(7.5rem, 28%) 1fr;
    gap: 0;
}

#articles.article-detail .article-row .title,
#articles.article-detail .article-row .value {
    padding: 0.35rem 0.5rem;
    border: 1px solid #fff;
    min-width: 0;
}

#articles.article-detail .article-row .title {
    font-weight: bold;
}

#articles.article-detail .article-row .value {
    overflow-wrap: anywhere;
    word-break: break-word;
}

#articles.article-detail .article-row .value a {
    text-decoration: underline;
    color: #000;
}

#articles.article-detail .article-row .value a:hover {
    text-decoration: none;
    color: gray;
}

#articles.article-detail .article-row.article_title .value,
#articles.article-detail .article-row.article_title_gray .value {
    font-size: 12pt;
    font-weight: bold;
}

#articles.article-detail .article-row.article_title_gray,
#articles.article-detail .article-row.gray_row {
    background: #e6e6e6;
}

#articles.article-detail .article-row.article_title_gray .title,
#articles.article-detail .article-row.article_title_gray .value,
#articles.article-detail .article-row.gray_row .title,
#articles.article-detail .article-row.gray_row .value {
    background: transparent;
}

#articles.article-detail .article-detail__media video,
#articles.article-detail .article-detail__media .projekktor {
    display: block;
    max-width: 100%;
    height: auto;
}

#articles.article-detail .value img[src*="pdf.png"] {
    vertical-align: middle;
    margin-right: 0.35rem;
}

/* Journal detail page */
.journal-header {
    margin-bottom: 1rem;
}

.journal-header h1 {
    font-size: 1.35rem;
    line-height: 1.3;
    margin: 0 0 0.75rem;
}

.journal-header__cover {
    display: block;
    max-width: min(100%, 220px);
    height: auto;
    margin: 0 0 0.75rem;
}

.journal-header__description {
    line-height: 1.5;
    margin-bottom: 0.5rem;
}

.journal-header__description > :last-child {
    margin-bottom: 0;
}

.article-breadcrumb__current {
    color: #4a5568;
}

.article-breadcrumb--footer {
    margin: 1rem 0 0;
}

.cart-page {
    max-width: 100%;
}

.cart-message {
    margin: 0;
    padding: 1rem;
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.35rem;
    color: #4a5568;
}

.cart-list {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    margin: 0 0 1.25rem;
}

.cart-item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.85rem 1rem;
    align-items: start;
    padding: 0.85rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.35rem;
    background: #fff;
}

.cart-item__cover img.cover {
    display: block;
    max-width: 72px;
    height: auto;
}

.cart-item__body {
    min-width: 0;
}

.cart-item__title {
    display: block;
    margin: 0 0 0.65rem;
    color: #000;
    text-decoration: underline;
    font-size: 0.95rem;
    line-height: 1.4;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.cart-item__title:hover {
    color: gray;
    text-decoration: none;
}

.cart-item__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.75rem;
}

.cart-item__quantity-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #4a5568;
}

.cart-item__quantity {
    width: 4rem;
    max-width: 100%;
    padding: 0.35rem 0.45rem;
    text-align: right;
    font-size: 0.95rem;
    line-height: 1.4;
    border: 1px solid #cbd5e0;
    border-radius: 0.25rem;
}

.cart-item__remove {
    margin-left: auto;
    font-size: 0.85rem;
}

form.checkout.cart-checkout {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
}

form.checkout .checkout__hidden {
    display: none;
}

form.checkout .checkout__field {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 0.35rem 0.75rem;
    margin-bottom: 0.85rem;
}

form.checkout .checkout__field label {
    display: block;
    flex: 1 1 100%;
    text-align: left;
    padding: 0;
}

form.checkout .checkout__field input:not([type=submit]),
form.checkout .checkout__field select,
form.checkout .checkout__field textarea {
    flex: 1 1 100%;
    width: 100%;
    max-width: 100%;
    line-height: 1.5;
    padding: 0.45rem 0.6rem;
    box-sizing: border-box;
}

form.checkout .checkout__field--agreement {
    flex-direction: row;
    align-items: flex-start;
    gap: 0.5rem;
}

form.checkout .checkout__field--agreement label {
    flex: 1 1 auto;
    font-size: 0.85rem;
    line-height: 1.45;
}

form.checkout .checkout__field--agreement input[type=checkbox] {
    flex: 0 0 auto;
    width: auto;
    margin-top: 0.2rem;
}

form.checkout .checkout__field input[type=submit] {
    width: auto;
    min-width: 180px;
    margin-top: 0.5rem;
    font-size: 1.1rem;
    padding: 0.6rem 1.25rem;
}

form.checkout .checkout__field--submit label {
    display: none;
}

form.checkout {
    display: block;
}

form.checkout .checkout__field .error {
    flex: 1 1 100%;
    color: #c53030;
    line-height: 1.4;
}

.form_container {
    margin-left: 0;
    max-width: 520px;
}

form.companies-search input[type=text] {
    width: min(100%, 320px);
}

#registration_container .row,
#login_container .row {
    min-width: 0;
}

#registration_container .sec1,
#registration_container .sec2 {
    display: block;
    width: 100%;
    text-align: left;
}

.yashare-auto-init {
    margin-left: 0;
}

@media (max-width: 991px) {
    .wide {
        margin-left: 0;
    }

    .content.layout-three-col {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 1.5rem;
        float: none;
        padding-top: 1rem;
    }

    .content.layout-three-col > .container,
    .content.layout-three-col > .content_col1,
    .content.layout-three-col > .content_col2,
    .content.layout-three-col > .content_col3 {
        float: none;
        width: auto;
        margin: 0;
        padding: 0;
    }

    .content.layout-three-col .container {
        display: contents;
    }

    .content.layout-three-col .content_col2 {
        font-size: 1rem;
        line-height: 1.55;
        min-width: 0;
        padding: 0;
    }

    .content.layout-three-col .content_col1 ul,
    .content.layout-three-col .content_col3 ul {
        margin-left: 0;
        padding-left: 1.25rem;
    }
}

@media (min-width: 992px) {
    .content.layout-three-col {
        float: left;
        width: 100%;
        display: block;
        padding-top: 0;
    }

    .content.layout-three-col > .container {
        display: block;
        float: left;
        width: 100%;
        padding-top: 10px;
    }

    .content.layout-three-col > .content_col1 {
        width: 220px;
        margin-left: -100%;
        float: left;
    }

    .content.layout-three-col .content_col2 {
        padding: 0 270px 0 240px;
        font-size: 12pt;
        line-height: inherit;
        min-width: 0;
    }

    .content.layout-three-col > .content_col3 {
        width: 250px;
        margin-left: -250px;
        float: left;
    }

    .content.layout-three-col.layout-two-col-right > .content_col1 {
        display: none;
    }

    .content.layout-three-col.layout-two-col-right .content_col2 {
        padding: 0 270px 0 0;
    }
}

ul.year {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    padding: 0;
    list-style: none;
    margin-left: 0;
}

ul.year li {
    margin-left: 0;
}

@media (min-width: 640px) {
    .catalog-grid,
    .books-grid,
    .journals-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }

    form.checkout .checkout__field:not(.checkout__field--agreement):not(.checkout__field--submit) label {
        flex: 0 0 30%;
        text-align: right;
        padding-top: 0.35rem;
    }

    form.checkout .checkout__field:not(.checkout__field--agreement):not(.checkout__field--submit) input:not([type=submit]),
    form.checkout .checkout__field:not(.checkout__field--agreement):not(.checkout__field--submit) select,
    form.checkout .checkout__field:not(.checkout__field--agreement):not(.checkout__field--submit) textarea,
    form.checkout .checkout__field--error .error {
        flex: 1 1 60%;
    }

    #registration_container .sec1 {
        display: inline-block;
        width: 40%;
        text-align: right;
        padding-right: 0.75rem;
    }

    #registration_container .sec2 {
        display: inline-block;
        width: 55%;
    }
}

@media (min-width: 884px) {
    #header {
        min-height: 170px;
    }

    .search-toggle {
        display: none !important;
    }

    .header-right .search_panel {
        display: block !important;
        max-height: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        overflow: visible !important;
        pointer-events: auto !important;
        margin-top: 0 !important;
        order: 1;
    }

    .header-right .profile-container {
        order: 2;
    }

    .header-tools {
        order: 3;
    }

    .catalog-grid,
    .books-grid,
    .journals-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 1.25rem;
    }

    .cart-item {
        grid-template-columns: 80px minmax(0, 1fr) auto auto;
        align-items: center;
        gap: 0.85rem 1rem;
    }

    .cart-item__cover img.cover {
        max-width: 80px;
    }

    .cart-item__body {
        display: contents;
    }

    .cart-item__title {
        margin: 0;
        grid-column: 2;
    }

    .cart-item__actions {
        display: contents;
    }

    .cart-item__quantity-label {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }

    .cart-item__quantity {
        grid-column: 3;
    }

    .cart-item__remove {
        grid-column: 4;
        margin-left: 0;
        white-space: nowrap;
    }

    .nav-toggle {
        display: none !important;
    }

    #mobile_nav_panel {
        display: block;
    }

    #mobile_sidebar_nav {
        display: none !important;
    }

    #content_block.content {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    #content_block .content_col1 {
        border-right: 2px solid #f6f6f6;
        margin: 5px;
        padding-right: 5px;
    }

    #content_block .content_col2 {
        margin: 5px;
        padding-right: 5px;
    }

    #content_block .content_col3 {
        border-left: 2px solid #f6f6f6;
        margin: 5px;
        padding-left: 10px;
    }
}

@media (max-width: 883px) {
    body {
        padding: 0 0.75rem;
    }

    .catalog-grid,
    .journals-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.75rem 0.85rem;
    }

    .books-grid {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
        gap: 0.75rem 0.85rem;
    }

    .article-breadcrumb {
        font-size: 0.82rem;
        gap: 0.2rem 0.3rem;
        margin-bottom: 0.75rem;
    }

    #articles.article-detail {
        font-size: 0.9rem;
        border: 1px solid #e2e8f0;
        border-radius: 0.35rem;
        overflow: hidden;
    }

    #articles.article-detail .category,
    #articles.article-detail .sub_category1,
    #articles.article-detail .sub_category2 {
        font-size: 0.95rem;
        padding: 0.55rem 0.65rem;
    }

    #articles.article-detail .article-row {
        grid-template-columns: 1fr;
        border-bottom: 1px solid #e2e8f0;
    }

    #articles.article-detail .article-row:last-child {
        border-bottom: none;
    }

    #articles.article-detail .article-row .title,
    #articles.article-detail .article-row .value {
        border: none;
        padding: 0.55rem 0.75rem;
    }

    #articles.article-detail .article-row .title {
        padding-bottom: 0.2rem;
        font-size: 0.78rem;
        font-weight: 600;
        color: #4a5568;
        text-transform: uppercase;
        letter-spacing: 0.02em;
    }

    #articles.article-detail .article-row .value {
        padding-top: 0;
        padding-bottom: 0.65rem;
        line-height: 1.5;
    }

    #articles.article-detail .article-row.article_title .title,
    #articles.article-detail .article-row.article_title_gray .title {
        display: none;
    }

    #articles.article-detail .article-row.article_title .value,
    #articles.article-detail .article-row.article_title_gray .value {
        padding: 0.75rem;
        font-size: 1.05rem;
        line-height: 1.35;
    }

    #articles.article-detail .article-row.gray_row,
    #articles.article-detail .article-row.article_title_gray {
        background: #f7fafc;
    }

    .article-back {
        margin-top: 0.75rem;
    }

    .journal-header {
        margin-bottom: 0.75rem;
    }

    .journal-header h1 {
        font-size: 1.1rem;
        margin-bottom: 0.55rem;
    }

    .journal-header__cover {
        max-width: min(100%, 160px);
        margin-bottom: 0.55rem;
    }

    .journal-header__description {
        font-size: 0.9rem;
    }

    .article-breadcrumb--footer {
        margin-top: 0.75rem;
    }

    #articles.journal-detail .journal-article {
        border-bottom: 2px solid #cbd5e0;
    }

    #articles.journal-detail .journal-article:last-child {
        border-bottom: none;
    }

    #articles.journal-detail .journal-article .article-row:last-child {
        border-bottom: none;
    }

    #footer {
        margin-left: -0.75rem;
        margin-right: -0.75rem;
        width: auto;
        border-top-width: 2px;
    }

    .footer_content {
        flex-direction: column;
        align-items: stretch;
        padding: 0.55rem 0.75rem 0.45rem;
        gap: 0.45rem;
    }

    .footer-brand {
        flex-direction: row;
        align-items: center;
        width: 100%;
        gap: 0.45rem 0.6rem;
        flex: none;
    }

    #footer .footer-logo,
    #footer .footer-brand img {
        max-height: 26px;
    }

    .footer-copy {
        font-size: 0.68rem;
        line-height: 1.25;
    }

    .footer-nav {
        width: 100%;
    }

    .footer-nav ul,
    .footer_content ul {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: flex-start;
        gap: 0.35rem 0.75rem;
        width: 100%;
    }

    .footer-nav a,
    .footer_content li a {
        font-size: 0.75rem;
        line-height: 1.25;
        padding: 0.15rem 0;
        white-space: nowrap;
    }

    .footer-legal {
        padding: 0.4rem 0.75rem 0.55rem;
    }

    .footer-legal a {
        font-size: 0.68rem;
        line-height: 1.25;
    }

    #footer .footer_content,
    #footer img,
    #footer .footer-brand img {
        float: none !important;
    }

    .header-top {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 0.75rem;
        padding: 0.75rem 5.25rem 0.5rem 0;
        overflow: visible;
        position: relative;
    }

    .header-top .logo {
        float: none;
        margin: 0;
        max-height: 56px;
        flex: 1 1 auto;
        min-width: 0;
    }

    .header-right {
        float: none;
        order: 3;
        flex: 1 1 100%;
        margin: 0;
        max-width: none;
        justify-content: stretch;
        gap: 0.5rem;
    }

    .header-tools {
        position: absolute;
        top: 0.75rem;
        right: 0;
        z-index: 5;
        gap: 0.5rem;
    }

    .search-toggle {
        display: inline-flex;
    }

    .header-right .search_panel {
        display: block;
        flex: 1 1 100%;
        width: 100%;
        order: 1;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        visibility: hidden;
        margin: 0;
        padding: 0;
        pointer-events: none;
        transition: max-height 0.2s ease, opacity 0.2s ease, margin 0.2s ease;
    }

    .header-right .search_panel.is-open {
        max-height: 8rem;
        opacity: 1;
        visibility: visible;
        margin-top: 0.35rem;
        pointer-events: auto;
    }

    .header-right .search_panel.is-open .ya-site-form,
    .header-right .search_panel.is-open .ya-site-form form,
    .header-right .search_panel.is-open form {
        display: block !important;
        visibility: visible !important;
    }

    .header-right .search_panel form,
    .header-right .search_panel .ya-site-form {
        width: 100%;
    }

    .header-right .search_panel input[type="text"] {
        width: 100%;
        min-height: 2.25rem;
        padding: 0.4rem 0.6rem;
        border: 1px solid #cbd5e0;
        border-radius: 0.35rem;
        font-size: 1rem;
        line-height: 1.4;
    }

    .header-right .search_panel input[type="submit"] {
        margin-top: 0.35rem;
        padding: 0.4rem 0.85rem;
        font-size: 0.9rem;
        border: 1px solid #cbd5e0;
        border-radius: 0.35rem;
        background: #f7fafc;
        cursor: pointer;
    }

    .header-right .profile-container {
        flex: 1 1 auto;
        justify-content: flex-start;
        order: 2;
    }

    .header-right .lang {
        position: static;
        margin: 0;
    }

    .header-right .lang img {
        width: 32px;
        height: auto;
        display: block;
    }

    .nav-toggle {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        width: 100%;
        margin: 0.5rem 0;
        padding: 0.65rem 1rem;
        border: none;
        border-radius: 6px;
        background: linear-gradient(#47484b, #2e3032);
        color: #fff;
        font: inherit;
        font-size: 1rem;
        cursor: pointer;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
    }

    .nav-toggle__icon {
        display: inline-block;
        width: 1.25rem;
        height: 2px;
        background: currentColor;
        box-shadow: 0 -6px 0 currentColor, 0 6px 0 currentColor;
    }

    #horizon_menu {
        clear: both;
        float: none !important;
        width: 100%;
        margin: 0;
        padding: 0;
    }

    #horizon_menu #mobile_nav_panel {
        display: none;
        border-radius: 6px;
        overflow: hidden;
        box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12);
    }

    #horizon_menu.is-open #mobile_nav_panel {
        display: block;
        margin-bottom: 0.5rem;
    }

    .mobile-sidebar-nav {
        background: #fff;
        color: #1a202c;
        border-bottom: 2px solid #e2e8f0;
    }

    .mobile-sidebar-nav:empty,
    .mobile-sidebar-nav:not(:has(a)) {
        display: none !important;
        border-bottom: none;
    }

    .mobile-sidebar-nav__title {
        margin: 0;
        padding: 0.75rem 1rem 0.35rem;
        font-size: 0.75rem;
        font-weight: 600;
        letter-spacing: 0.04em;
        text-transform: uppercase;
        color: #718096;
    }

    .mobile-sidebar-nav ul {
        list-style: none;
        margin: 0 !important;
        padding: 0 !important;
        text-align: left !important;
    }

    .mobile-sidebar-nav li {
        list-style: none;
        display: block !important;
        float: none !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        text-align: left !important;
    }

    .mobile-sidebar-nav > ul > li > a,
    .mobile-sidebar-nav > ul > ul > li > a,
    .mobile-sidebar-nav a {
        display: block !important;
        float: none !important;
        padding: 0.65rem 1rem !important;
        color: #1a202c;
        text-decoration: none;
        font-size: 0.95rem;
        line-height: 1.35;
        text-align: left !important;
        width: 100% !important;
        box-sizing: border-box;
    }

    .mobile-sidebar-nav a.is-current,
    .mobile-sidebar-nav a#current,
    .mobile-sidebar-nav li.is-current > a {
        font-weight: 600;
        background: #edf2f7;
    }

    .mobile-sidebar-nav ul ul {
        display: block;
        padding-left: 0;
        background: #f8fafc;
    }

    .mobile-sidebar-nav ul ul a {
        padding-left: 1.75rem !important;
        font-size: 0.9rem;
    }

    .mobile-sidebar-nav ul ul ul a {
        padding-left: 2.5rem !important;
    }

    .mobile-sidebar-nav .publisher a {
        padding-left: 1.75rem !important;
    }

    #horizon_menu .mobile-sidebar-nav ul > ul {
        margin: 0 !important;
        padding: 0 !important;
    }

    .mobile-main-nav {
        width: 100%;
        float: none !important;
    }

    .mobile-main-nav > ul,
    #horizon_menu #hmie {
        display: none;
        float: none !important;
        flex-direction: column;
        flex-wrap: nowrap;
        height: auto;
        min-height: 0;
        width: 100% !important;
        border-radius: 0;
        overflow: hidden;
        margin: 0 !important;
        padding: 0 !important;
        list-style: none !important;
        text-align: left !important;
    }

    #horizon_menu.is-open #hmie {
        display: block;
        height: auto !important;
        overflow: visible !important;
    }

    #horizon_menu.is-open #hmie,
    #horizon_menu.is-open #hmie li,
    #horizon_menu.is-open #hmie ul,
    #horizon_menu.is-open #hmie ul li {
        float: none !important;
        position: static !important;
        left: auto !important;
        right: auto !important;
        text-align: left !important;
    }

    #horizon_menu #hmie > li {
        float: none !important;
        display: block !important;
        width: 100% !important;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        position: relative;
        margin: 0 !important;
        padding: 0 !important;
    }

    #horizon_menu #hmie > li.has-submenu > a {
        padding-right: 2.5rem !important;
    }

    #horizon_menu #hmie > li.has-submenu > a::after {
        content: "+";
        position: absolute;
        right: 1rem;
        top: 50%;
        margin-top: -0.55rem;
        float: none;
        font-weight: 700;
        opacity: 0.75;
        line-height: 1;
    }

    #horizon_menu #hmie > li.is-expanded.has-submenu > a::after {
        content: "−";
    }

    #horizon_menu #hmie > li:first-child {
        border-top: none;
    }

    #horizon_menu #hmie > li > a {
        display: block !important;
        float: none !important;
        position: relative !important;
        line-height: 1.35 !important;
        padding: 0.85rem 1rem !important;
        font-size: 1rem !important;
        color: #fff !important;
        text-align: left !important;
        width: 100% !important;
        box-sizing: border-box;
    }

    #horizon_menu #hmie > li > ul {
        position: static !important;
        top: auto !important;
        left: auto !important;
        display: none;
        width: 100% !important;
        height: auto !important;
        float: none !important;
        border: none;
        border-radius: 0;
        box-shadow: none !important;
        background: #323336 !important;
        overflow: visible !important;
        margin: 0 !important;
        padding: 0 !important;
        list-style: none !important;
    }

    #horizon_menu #hmie > li > ul > li {
        float: none !important;
        display: block !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    #horizon_menu #hmie > li > ul > li > a {
        display: block !important;
        width: 100% !important;
        float: none !important;
        position: static !important;
        padding: 0.65rem 1rem 0.65rem 1.75rem !important;
        line-height: 1.4 !important;
        font-size: 0.95rem !important;
        color: #fff !important;
        text-align: left !important;
        background: transparent !important;
        box-sizing: border-box;
    }

    #horizon_menu #hmie > li > ul > li > a.last_fol {
        display: none;
    }

    #horizon_menu #hmie > li:hover > ul {
        display: none !important;
    }

    #horizon_menu #hmie > li.is-expanded > ul {
        display: block !important;
        height: auto !important;
    }

    #horizon_menu .mobile-sidebar-nav,
    #horizon_menu .mobile-sidebar-nav > ul,
    #horizon_menu .mobile-sidebar-nav ul,
    #horizon_menu .mobile-sidebar-nav ul ul,
    #horizon_menu .mobile-sidebar-nav ul ul ul {
        display: block !important;
        height: auto !important;
        width: auto !important;
        float: none !important;
        position: static !important;
        overflow: visible !important;
        box-shadow: none !important;
        background: transparent;
    }

    #horizon_menu .mobile-sidebar-nav ul > ul {
        background: #f8fafc;
    }

    #horizon_menu .mobile-sidebar-nav a {
        float: none !important;
        width: auto !important;
        display: block !important;
        line-height: 1.35 !important;
        background: transparent !important;
    }

    #horizon_menu .mobile-sidebar-nav a > li {
        display: block;
        list-style: none;
    }

    .content_col1 #menu_left {
        display: none;
    }

    #slider li img {
        max-height: 120px;
    }

    .slider_box {
        min-height: 70px;
    }

    .cart-item {
        padding: 0.75rem;
    }

    .cart-item__cover img.cover {
        max-width: 64px;
    }

    .cart-item__title {
        font-size: 0.9rem;
    }

    .cart-item__remove {
        flex: 1 1 100%;
        margin-left: 0;
    }
}
