@charset "UTF-8";

/*
 * SteelLand 2.0.4 Mobile UX layer
 * Loaded last. It intentionally targets the legacy markup without changing
 * business logic and keeps desktop behaviour intact.
 */

:root {
    --sl-mobile-gutter: 16px;
    --sl-mobile-card-radius: 14px;
    --sl-mobile-card-shadow: 0 6px 20px rgba(28, 48, 63, .08);
    --sl-mobile-muted: #667582;
    --sl-mobile-line: #dbe4eb;
}

/* A few global corrections that were visible in mobile screenshots. */
body.site-body {
    width: 100%;
    max-width: none;
}

.site-footer,
.site-footer > .dark_bg,
body > .dark_bg:last-of-type {
    width: 100%;
    max-width: none;
}

.site-footer .dark_page_footer {
    width: min(100% - 28px, var(--sl-container));
    max-width: var(--sl-container);
}

/* The old generic button selector made taxonomy links huge full-width CTAs. */
.actionButton {
    min-height: 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.actionButton > a {
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    padding: 9px 15px;
    border: 1px solid var(--sl-primary);
    border-radius: 8px;
    color: var(--sl-primary-dark) !important;
    background: #fff;
    font-family: var(--sl-font-ui);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
    text-transform: none;
    transition: background-color .16s ease, color .16s ease, border-color .16s ease;
}

.actionButton > a:hover {
    border-color: var(--sl-primary-dark);
    color: #fff !important;
    background: var(--sl-primary-dark);
    text-decoration: none !important;
}

.article-tag-list,
.quick-links,
.article-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin: 16px 0;
}

.article-tag-list .actionButton,
.quick-links .actionButton,
.article-actions .actionButton {
    margin: 0;
}

/* Semantically improved lists introduced in 2.0.4. */
.sl-card-list,
.sl-feed-list,
.sl-directory-list,
.sl-showcase-grid {
    margin: 0;
    padding: 0;
    list-style: none;
}

.sl-card-list,
.sl-feed-list {
    display: grid;
    gap: 12px;
}

.sl-card {
    position: relative;
    display: block;
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--sl-border);
    border-radius: var(--sl-radius);
    background: var(--sl-surface);
    box-shadow: var(--sl-shadow-sm);
}

.sl-card__link {
    display: block;
    padding: 17px 18px;
    color: var(--sl-heading) !important;
    font-family: var(--sl-font-ui);
    font-size: 17px;
    font-weight: 600;
    line-height: 1.32;
}

.sl-card__link:hover {
    color: var(--sl-primary-dark) !important;
    background: var(--sl-primary-soft);
    text-decoration: none !important;
}

.sl-feed-card {
    display: grid;
    grid-template-columns: 106px minmax(0, 1fr);
    gap: 14px;
    padding: 14px;
    border: 1px solid var(--sl-border);
    border-radius: var(--sl-radius);
    background: var(--sl-surface);
    box-shadow: var(--sl-shadow-sm);
}

.sl-feed-card__meta {
    color: var(--sl-mobile-muted);
    font-family: var(--sl-font-ui);
    font-size: 12px;
    line-height: 1.45;
}

.sl-feed-card__title {
    margin: 0;
    font-size: 18px;
    line-height: 1.28;
}

.sl-feed-card__excerpt {
    margin-top: 7px;
    color: var(--sl-text-soft);
    font-size: 14px;
    line-height: 1.5;
}

.sl-directory-list {
    display: grid;
    gap: 10px;
}

.sl-directory-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    min-height: 56px;
    padding: 12px 14px;
    border: 1px solid var(--sl-border);
    border-radius: 11px;
    color: var(--sl-heading) !important;
    background: var(--sl-surface);
    box-shadow: var(--sl-shadow-sm);
    font-family: var(--sl-font-ui);
    font-weight: 600;
    line-height: 1.3;
}

.sl-directory-item:hover {
    border-color: #b8cedd;
    background: var(--sl-primary-soft);
    text-decoration: none !important;
}

.sl-directory-item__count {
    display: inline-grid;
    min-width: 38px;
    min-height: 30px;
    place-items: center;
    padding: 4px 9px;
    border-radius: 999px;
    color: var(--sl-primary-dark);
    background: var(--sl-primary-soft);
    font-size: 13px;
    font-weight: 700;
}

.sl-showcase-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-top: 14px;
}

.sl-product-card {
    position: relative;
    display: flex;
    min-width: 0;
    min-height: 100%;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--sl-border);
    border-radius: 12px;
    background: var(--sl-surface);
    box-shadow: var(--sl-shadow-sm);
}

.sl-product-card__media {
    position: relative;
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--sl-surface-strong);
}

.sl-product-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sl-product-card__price {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    display: inline-flex;
    max-width: calc(100% - 20px);
    padding: 6px 10px;
    border-radius: 999px;
    color: #fff;
    background: rgba(30, 96, 139, .92);
    font-family: var(--sl-font-ui);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.15;
    backdrop-filter: blur(4px);
}

.sl-product-card__body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    padding: 12px;
}

.sl-product-card__title {
    display: -webkit-box;
    overflow: hidden;
    margin: 0;
    color: var(--sl-heading);
    font-family: var(--sl-font-ui);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.32;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.sl-product-card__date {
    margin-top: auto;
    padding-top: 11px;
    color: var(--sl-mobile-muted);
    font-family: var(--sl-font-ui);
    font-size: 12px;
}

/* Mobile-first fixes. */
@media (max-width: 760px) {
    :root {
        --sl-mobile-gutter: 14px;
    }

    html {
        scroll-padding-top: 12px;
    }

    body.site-body {
        font-size: 15px !important;
        line-height: 1.52;
        background: #f4f7fa;
    }

    .content,
    .dark_page,
    .dark_page_footer {
        width: calc(100% - (var(--sl-mobile-gutter) * 2));
        max-width: none;
    }

    .content {
        margin: 18px auto 26px;
    }

    .page {
        gap: 24px;
    }

    .main,
    .sidebar,
    .left,
    .center,
    .right,
    .board_main,
    .coll,
    .coll_m,
    .coll_n {
        width: 100% !important;
        max-width: 100%;
        margin-right: 0 !important;
        margin-left: 0 !important;
        float: none !important;
    }

    /* Header and navigation */
    .dark_bg:first-of-type,
    body > .dark_bg:first-of-type {
        box-shadow: 0 3px 14px rgba(17, 29, 38, .16);
    }

    .dark_page {
        min-height: 66px;
        padding: 9px 0;
    }

    .logo img {
        width: min(210px, 58vw);
        max-width: 100%;
        max-height: 38px;
    }

    .light_small_font h1,
    .light_small_font h3 {
        display: none;
    }

    .search,
    .authorization,
    .menu-link,
    .search a,
    .authorization a,
    .menu-link a {
        width: 42px;
        height: 42px;
        flex-basis: 42px;
    }

    .menu-link {
        display: block !important;
    }

    .authorization {
        display: block !important;
    }

    .mobile-nav {
        padding: 8px var(--sl-mobile-gutter) 10px;
        background: var(--sl-header);
    }

    .open_menu {
        width: 100%;
        min-height: 44px;
        padding: 10px 14px;
        border: 1px solid rgba(255, 255, 255, .12);
        border-radius: 10px;
        background: rgba(255, 255, 255, .07);
        font-size: 14px;
        letter-spacing: .06em;
    }

    .open_menu::before {
        content: "☰";
        margin-right: 10px;
        font-size: 17px;
        line-height: 1;
    }

    .open_menu::after {
        margin-left: auto;
    }

    .mobile-nav ul {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 6px;
        margin-top: 8px;
        padding: 8px;
        border-radius: 12px;
        background: rgba(18, 28, 36, .72);
    }

    .mobile-nav ul[hidden] {
        display: none !important;
    }

    .mobile-nav li a {
        min-height: 44px;
        padding: 10px 11px;
        border: 0;
        border-radius: 8px;
        background: rgba(255, 255, 255, .055);
        font-size: 14px;
        text-align: center;
        text-transform: none;
    }

    /* Section rhythm and typography */
    h1 {
        margin-bottom: 14px;
        font-size: clamp(25px, 7vw, 32px);
        line-height: 1.12;
        overflow-wrap: anywhere;
    }

    h2 {
        font-size: 21px;
        line-height: 1.2;
    }

    h3 {
        font-size: 18px;
    }

    .sub_head,
    .sub_head h1,
    .sub_head h2,
    .sub_head_news h3 {
        margin: 0 0 14px;
        padding: 10px 0 11px;
        font-size: 15px;
        line-height: 1.25;
        letter-spacing: .045em;
    }

    .h50,
    .h60,
    .h200 {
        height: 28px;
    }

    .h15 {
        height: 12px;
    }

    .main_font,
    [itemprop="articleBody"],
    [itemprop="description"] {
        font-size: 17px;
        line-height: 1.68;
    }

    /* Sidebar should not look like an unrelated second page. */
    .sidebar {
        display: block;
    }

    .sidebar > * {
        margin-bottom: 22px;
    }

    /* Generic legacy lists are converted visually into compact cards. */
    .main_list {
        display: grid;
        gap: 12px;
    }

    .main_list > li {
        min-width: 0;
        padding: 0;
        border: 0;
    }

    .main_list > li > table {
        width: 100% !important;
        table-layout: fixed;
        border-collapse: separate;
        border-spacing: 0;
    }

    .main_list > li > table > tbody > tr {
        display: grid;
        grid-template-columns: 88px minmax(0, 1fr);
        gap: 12px;
        align-items: start;
        padding: 12px;
        border: 1px solid var(--sl-border);
        border-radius: var(--sl-mobile-card-radius);
        background: #fff;
        box-shadow: var(--sl-mobile-card-shadow);
    }

    .main_list > li > table td {
        display: block;
        width: auto !important;
        padding: 0 !important;
        border: 0 !important;
    }

    .main_list .news_pic {
        width: 88px !important;
        height: 72px !important;
        border-radius: 10px;
        object-fit: cover;
    }

    .main_list .date {
        margin-top: 7px;
        color: var(--sl-mobile-muted);
        font-size: 12px;
        text-align: left;
    }

    .main_list .anonse,
    .main_list .anonse1 {
        min-height: 0;
        padding: 0;
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
    }

    .main_list .anonse h4,
    .main_list .anonse1 h4 {
        margin: 0;
        font-size: 17px;
        line-height: 1.3;
    }

    .main_list .disp2 {
        display: -webkit-box !important;
        overflow: hidden;
        margin-top: 7px;
        color: var(--sl-text-soft);
        font-size: 13px;
        line-height: 1.45;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 3;
    }

    .more,
    .left_more,
    .right_more {
        width: auto;
        height: auto;
        margin: 12px 0 0;
        float: none;
        background: none;
    }

    .more a {
        display: flex;
        min-height: 42px;
        align-items: center;
        justify-content: center;
        padding: 9px 14px;
        border: 1px solid var(--sl-border-strong);
        border-radius: 9px;
        color: var(--sl-primary-dark) !important;
        background: #fff;
        font-family: var(--sl-font-ui);
        font-size: 13px;
        font-weight: 600;
        text-align: center;
    }

    /* Main lead stories. */
    .top_article {
        overflow: hidden;
        margin-bottom: 18px;
        border: 1px solid var(--sl-border);
        border-radius: var(--sl-mobile-card-radius);
        background: #fff;
        box-shadow: var(--sl-mobile-card-shadow);
    }

    .top_article .top_img {
        position: relative;
        height: auto;
        aspect-ratio: 16 / 9;
        overflow: hidden;
        border-radius: 0;
    }

    .top_article .top_img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .top_article h2,
    .top_article .text_tip_author_date,
    .top_article .s_text {
        padding-right: 15px;
        padding-left: 15px;
    }

    .top_article h2 {
        margin: 14px 0 8px;
        font-size: 21px;
        line-height: 1.24;
    }

    .top_article .text_tip_author_date {
        display: flex;
        gap: 7px;
        flex-wrap: wrap;
    }

    .top_article .s_text {
        display: -webkit-box;
        overflow: hidden;
        margin: 8px 0 16px;
        color: var(--sl-text-soft);
        font-size: 14px;
        line-height: 1.5;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 4;
    }

    /* Catalog and help rows (including old table markup). */
    .section-home .main_cat,
    .section-home .cat_pr {
        width: auto;
    }

    .cat_menu_pic,
    .cat_menu_pic_s {
        border: 0 !important;
        border-radius: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
    }

    .cat_menu_pic > tbody > tr,
    .cat_menu_pic_s > tbody > tr {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 10px;
        align-items: center;
    }

    .cat_menu_pic td,
    .cat_menu_pic_s td {
        display: block;
        width: auto !important;
        height: auto !important;
        padding: 0 !important;
    }

    .cat_menu_pic .top_side_cat,
    .cat_menu_pic_s .top_side_cat {
        padding: 0;
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
    }

    .cat_menu_pic .top_side_cat h2,
    .cat_menu_pic_s .top_side_cat h2 {
        margin: 0;
        font-size: 15px;
        line-height: 1.3;
    }

    /* Product showcase: two readable columns instead of four. */
    .sl-showcase-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .sl-product-card__price {
        top: 8px;
        left: 8px;
        padding: 5px 8px;
        font-size: 14px;
    }

    .sl-product-card__body {
        padding: 11px;
    }

    .sl-product-card__title {
        font-size: 14px;
        line-height: 1.3;
    }

    /* Legacy showcase cards if a cache still contains the older markup. */
    .margin_left_10:has(.cat_pr) {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        margin-left: 0;
    }

    .margin_left_10:has(.cat_pr) > .sub_head,
    .margin_left_10:has(.cat_pr) > .lil_line {
        grid-column: 1 / -1;
    }

    .margin_left_10 .cat_pr.main_cat {
        position: relative;
        width: 100% !important;
        min-height: 0;
        margin: 0 !important;
        overflow: hidden;
        border: 1px solid var(--sl-border);
        border-radius: 12px;
        background: #fff;
        box-shadow: var(--sl-shadow-sm);
    }

    .margin_left_10 .cat_pr .barter_img {
        width: 100%;
        height: auto;
        aspect-ratio: 4 / 3;
        object-fit: cover;
        border-radius: 0;
    }

    .margin_left_10 .cat_pr h5 {
        display: -webkit-box;
        overflow: hidden;
        min-height: 54px;
        margin: 0;
        padding: 10px;
        font-size: 14px;
        line-height: 1.3;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 3;
    }

    .margin_left_10 .cat_pr .cat_cena {
        top: 8px;
        right: auto;
        left: 8px;
        width: auto;
        height: auto;
        padding: 5px 8px;
        border-radius: 999px;
        color: #fff;
        background: rgba(30, 96, 139, .92);
        font-size: 14px;
        line-height: 1.15;
    }

    .margin_left_10 .cat_pr .tim {
        width: auto;
        height: auto;
        padding: 0 10px 10px;
        text-align: left;
    }

    /* Article pages */
    .page-news-detail .center,
    .page-stat-detail .center,
    .page-news-detail .board_main,
    .page-stat-detail .board_main {
        width: 100% !important;
    }

    .page-news-detail .img_box2,
    .page-stat-detail .img_box2 {
        width: 100%;
        max-width: none !important;
        margin: 0 0 18px;
        float: none;
    }

    .page-news-detail .bigimg,
    .page-stat-detail .bigimg {
        width: 100%;
        max-width: none;
        border-radius: 11px;
    }

    .page-news-detail .date,
    .page-stat-detail .date {
        display: flex;
        gap: 6px 12px;
        align-items: center;
        flex-wrap: wrap;
        margin-bottom: 12px;
    }

    .page-news-detail .date .autor,
    .page-stat-detail .date .autor {
        width: 34px;
        height: 34px;
        border-radius: 50%;
    }

    .page-news-detail .social_button,
    .page-stat-detail .social_button {
        display: flex;
        gap: 8px;
        margin: 12px 0;
    }

    .page-news-detail .actionButton,
    .page-stat-detail .actionButton {
        display: inline-flex;
        width: auto;
        margin: 0;
    }

    .page-news-detail .actionButton > a,
    .page-stat-detail .actionButton > a {
        min-height: 36px;
        padding: 7px 12px;
        border-radius: 999px;
        font-size: 12px;
    }

    /* Barter detail: one clear vertical flow. */
    .page-barter-detail .content {
        margin-top: 12px;
    }

    .page-barter-detail .left,
    .page-barter-detail .right {
        display: none !important;
    }

    .barter-detail {
        min-width: 0;
    }

    .barter-detail__table,
    .barter-detail__table > tbody,
    .barter-detail__table > tbody > tr,
    .barter-detail__table > tbody > tr > td {
        display: block;
        width: 100% !important;
        max-width: 100%;
    }

    .barter-detail__table {
        border-collapse: separate;
        border-spacing: 0;
    }

    .barter-detail__table > tbody > tr > td {
        height: auto !important;
        padding: 0 !important;
    }

    .barter-detail__breadcrumbs {
        overflow-x: auto;
        padding: 2px 0 8px !important;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
    }

    .barter-detail__breadcrumbs .date {
        display: flex;
        gap: 6px;
        align-items: center;
        width: max-content;
        min-width: 100%;
        font-size: 12px;
    }

    .barter-detail__title {
        padding: 8px 0 14px !important;
        border: 0 !important;
    }

    .barter-detail__title h1 {
        margin: 0;
        text-align: left;
    }

    .barter-detail__toolbar {
        display: flex !important;
        gap: 10px;
        align-items: center;
        flex-wrap: wrap;
        padding: 10px 0 !important;
        border-top: 1px solid var(--sl-mobile-line) !important;
        border-bottom: 1px solid var(--sl-mobile-line) !important;
    }

    .barter-detail__toolbar .tools {
        display: none !important;
    }

    .barter-detail__meta {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        margin: 14px 0;
        padding: 14px !important;
        border: 1px solid var(--sl-border);
        border-radius: 12px;
        background: #fff;
        box-shadow: var(--sl-shadow-sm);
    }

    .barter-detail__meta .barter_tools {
        display: grid;
        gap: 2px;
        min-width: 0;
        margin: 0 !important;
        padding: 0;
        text-align: left;
    }

    .barter-detail__meta .trade_firm_pos {
        color: var(--sl-mobile-muted);
        font-size: 12px;
    }

    .barter-detail__meta font[size="6"] {
        font-size: 28px !important;
    }

    .barter-detail__meta .board {
        grid-column: 1 / -1;
        margin: 0;
        font-size: 13px;
    }

    .barter-detail__photo {
        position: relative;
        width: 100% !important;
        min-height: 0;
        aspect-ratio: 4 / 3;
        margin: 0 0 14px;
        border: 0 !important;
        border-radius: 13px;
        background-size: cover !important;
        box-shadow: var(--sl-mobile-card-shadow);
    }

    .barter-detail__seller {
        padding: 14px !important;
        border: 1px solid var(--sl-border);
        border-radius: 13px;
        background: #fff;
        box-shadow: var(--sl-shadow-sm);
    }

    .barter-contact,
    .barter-contact > tbody,
    .barter-contact tr,
    .barter-contact td {
        display: block;
        width: 100% !important;
    }

    .barter-contact tr {
        display: grid;
        grid-template-columns: minmax(92px, .8fr) minmax(0, 1.4fr);
        gap: 12px;
        padding: 11px 0;
        border-bottom: 1px solid var(--sl-mobile-line);
    }

    .barter-contact tr:last-child {
        border-bottom: 0;
    }

    .barter-contact td {
        height: auto !important;
        padding: 0 !important;
        border: 0 !important;
        text-align: left !important;
    }

    .barter-contact td:last-child {
        text-align: right !important;
    }

    .barter-contact .avatar {
        width: 52px;
        height: 52px;
        margin: 0 0 7px auto;
        border-radius: 50%;
        object-fit: cover;
    }

    .barter-detail__description {
        margin: 18px 0;
        padding: 16px 0 !important;
        border-top: 1px solid var(--sl-mobile-line);
        border-bottom: 1px solid var(--sl-mobile-line);
    }

    .barter-detail__quick-title {
        padding-top: 10px !important;
    }

    .barter-detail__quick-links {
        padding: 0 !important;
    }

    .quick-links {
        gap: 8px;
        margin: 8px 0 18px;
    }

    .quick-links .actionButton > a {
        min-height: 36px;
        padding: 7px 11px;
        border-radius: 999px;
        font-size: 12px;
        text-transform: none;
    }

    .barter-detail__similar .table-scroll {
        overflow: visible;
        border: 0;
        box-shadow: none;
    }

    .barter-detail__similar table.table1 {
        min-width: 0;
        margin-bottom: 12px;
        border: 1px solid var(--sl-border);
        border-radius: 12px;
        box-shadow: var(--sl-shadow-sm);
    }

    /* Forms, filters and controls. */
    input,
    select,
    textarea,
    .form-control,
    .formfields,
    .logininput {
        min-height: 46px;
        font-size: 16px;
    }

    label {
        line-height: 1.45;
    }

    label:has(input[type="checkbox"]),
    label:has(input[type="radio"]) {
        display: flex;
        gap: 9px;
        align-items: flex-start;
    }

    input[type="checkbox"],
    input[type="radio"] {
        flex: 0 0 20px;
        width: 20px;
        height: 20px;
        min-height: 20px;
        margin-top: 1px;
    }

    /* Footer: full width, no half-screen dark panel. */
    body > .dark_bg:last-of-type,
    .site-footer {
        width: 100% !important;
        margin-top: 38px;
    }

    .site-footer .dark_page_footer,
    .dark_page_footer {
        width: 100%;
        padding: 28px var(--sl-mobile-gutter) 24px;
    }

    #footer_menu,
    .footer-menu {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0 18px;
        width: 100%;
    }

    #footer_menu .cc4,
    .footer-menu .cc4 {
        width: auto !important;
        min-width: 0;
        padding: 8px 0;
        float: none !important;
    }

    ul.footer_navigation1 a {
        display: block;
        padding: 7px 0;
        font-size: 14px;
    }

    .footer-main {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .footer-brand,
    .footer-side,
    .footer_text {
        width: 100%;
        margin: 0;
        padding: 0;
        float: none;
    }

    /* Hide intrusive fixed legacy widgets on small screens. */
    .join_informer_2816,
    .scroll-top-btn,
    [class*="jivo"],
    [id*="jivo"],
    .callback-bubble,
    .floating-widget {
        display: none !important;
    }
}

@media (max-width: 430px) {
    :root {
        --sl-mobile-gutter: 12px;
    }

    .logo img {
        width: min(185px, 55vw);
    }

    .authorization,
    .authorization a,
    .search,
    .search a,
    .menu-link,
    .menu-link a {
        width: 38px;
        height: 38px;
        flex-basis: 38px;
    }

    .mobile-nav ul {
        grid-template-columns: 1fr 1fr;
    }

    .sl-feed-card {
        grid-template-columns: 76px minmax(0, 1fr);
        gap: 10px;
        padding: 11px;
    }

    .sl-feed-card__title {
        font-size: 16px;
    }

    .main_list > li > table > tbody > tr {
        grid-template-columns: 74px minmax(0, 1fr);
        gap: 10px;
        padding: 10px;
    }

    .main_list .news_pic {
        width: 74px !important;
        height: 64px !important;
    }

    .main_list .anonse h4,
    .main_list .anonse1 h4 {
        font-size: 16px;
    }

    .sl-showcase-grid,
    .margin_left_10:has(.cat_pr) {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .barter-detail__meta {
        grid-template-columns: 1fr 1fr;
        padding: 12px !important;
    }

    .barter-contact tr {
        grid-template-columns: 82px minmax(0, 1fr);
        gap: 8px;
    }

    #footer_menu,
    .footer-menu {
        grid-template-columns: 1fr 1fr;
        gap: 0 12px;
    }
}

/* Additions for semantic feed/showcase cards. */
.sl-feed-card__media {
    display: block;
    overflow: hidden;
    border-radius: 10px;
    background: var(--sl-surface-strong);
}

.sl-feed-card__media img {
    width: 100%;
    height: 100%;
    min-height: 86px;
    object-fit: cover;
}

.sl-feed-card__content {
    min-width: 0;
}

.sl-feed-card__meta strong,
.sl-feed-card__meta time {
    display: block;
}

.sl-product-card.is-premium {
    border-color: #dfbd7b;
    box-shadow: 0 7px 22px rgba(156, 102, 25, .12);
}

.sl-product-card__premium {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 4;
    padding: 5px 8px;
    border-radius: 999px;
    color: #69460f;
    background: #ffe8ac;
    font-family: var(--sl-font-ui);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.sl-product-card .title-info-favorite-star {
    z-index: 5;
}

@media (max-width: 760px) {
    .page-barter-detail > .margin_but_10,
    .page-barter-detail .board_main > .coll > .margin_but_10:first-child {
        display: none;
    }

    .page-cat-section .table-scroll {
        overflow: visible;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .page-cat-section .table-scroll > table,
    .page-cat-section table.table1 {
        min-width: 0;
    }

    .page-cat-section .table1 > tbody > tr {
        display: grid;
        grid-template-columns: 72px minmax(0, 1fr);
        gap: 10px;
        padding: 12px;
        border-bottom: 1px solid var(--sl-mobile-line);
    }

    .page-cat-section .table1 > tbody > tr:first-child {
        display: block;
    }

    .page-cat-section .table1 td {
        display: block;
        width: auto !important;
        height: auto !important;
        padding: 0 !important;
        border: 0 !important;
    }

    .page-cat-section .table1 td[colspan] {
        grid-column: 1 / -1;
    }

    .page-cat-section .cat_img {
        width: 64px;
        height: 64px;
        border-radius: 10px;
        object-fit: contain;
        background: #fff;
    }

    .page-cat-section .cat_list_arrow,
    .page-cat-section .cat_list_arrow_s,
    .page-cat-section .bg_light_green,
    .page-cat-section .bg_green {
        border: 1px solid var(--sl-border) !important;
        border-radius: 12px !important;
        background: #fff !important;
        box-shadow: var(--sl-shadow-sm) !important;
    }

    .page-cat-section .cat_list_arrow > table,
    .page-cat-section .cat_list_arrow_s > table {
        width: 100% !important;
    }

    .page-cat-section .cat_list_arrow > table tr,
    .page-cat-section .cat_list_arrow_s > table tr {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 10px;
        align-items: center;
    }

    .page-cat-section .cat_list_arrow > table td,
    .page-cat-section .cat_list_arrow_s > table td {
        display: block;
        width: auto !important;
        padding: 12px 14px !important;
    }

    .page-cat-section .top_side_article {
        padding: 16px !important;
    }

    .page-cat-section .top_side_article h2,
    .page-cat-section .top_side_cat h2 {
        margin: 0;
        font-size: 16px;
        line-height: 1.32;
    }

    .page-cat-section .main_barter,
    .page-cat-section .pop_news,
    .page-cat-section .slider,
    .page-cat-section .slides {
        max-width: 100%;
        overflow: hidden;
    }

    .page-cat-section .main_barter img,
    .page-cat-section .pop_news img,
    .page-cat-section .slider img,
    .page-cat-section .slides img {
        width: 100%;
        max-width: 100%;
        height: auto;
        object-fit: cover;
    }

    .page-home .sl-feed-card,
    .section-news .sl-feed-card,
    .section-stat .sl-feed-card {
        grid-template-columns: 86px minmax(0, 1fr);
    }

    .sl-product-card__premium {
        top: 7px;
        right: 7px;
        padding: 4px 6px;
        font-size: 9px;
    }

    .nav,
    .b-top,
    .fixed {
        display: none !important;
    }
}

.catalog-search {
    display: grid;
    gap: 12px;
    margin: 0 0 18px;
    padding: 14px;
    border: 1px solid var(--sl-border);
    border-radius: 12px;
    background: #fff;
    box-shadow: var(--sl-shadow-sm);
}

.catalog-search__row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
}

.catalog-search__submit {
    min-width: 94px;
    margin: 0 !important;
}

.catalog-search__all {
    display: flex;
    gap: 9px;
    align-items: center;
    color: var(--sl-text-soft);
    font-size: 14px;
    font-weight: 500;
}

.sl-directory-item.is-active {
    border-color: #9fc4db;
    background: var(--sl-primary-soft);
}

.sl-directory-item__arrow {
    color: var(--sl-primary);
    font-size: 18px;
}

@media (max-width: 480px) {
    .catalog-search__row {
        grid-template-columns: 1fr;
    }

    .catalog-search__submit {
        width: 100%;
    }
}

@media (max-width: 760px) {
    .menu-link {
        display: none !important;
    }
}

@media (max-width: 360px) {
    .authorization {
        display: none !important;
    }
}


/* SteelLand 2.0.5 UX fixes: polished pagination, reliable legacy CTA buttons and comment form. */
.pagination {
    display: flex !important;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin: 22px 0 26px;
    padding: 0;
    list-style: none;
}

.pagination li {
    float: none !important;
    display: flex !important;
    margin: 0 !important;
    padding: 0 !important;
}

.pagination a,
.pagination span,
.pagination li > .paginatorlr,
.pagination li > a {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 14px !important;
    border: 1px solid var(--sl-border) !important;
    border-radius: 12px !important;
    color: var(--sl-heading) !important;
    background: #fff !important;
    font-family: var(--sl-font-ui);
    font-size: 15px;
    font-weight: 600;
    line-height: 1;
    box-shadow: 0 1px 2px rgba(21, 35, 46, .05);
}

.pagination a:hover,
.pagination li > a:hover,
.pagination li > .paginatorlr:hover {
    border-color: var(--sl-primary) !important;
    color: var(--sl-primary-dark) !important;
    background: var(--sl-primary-soft) !important;
    text-decoration: none !important;
}

.pagination span,
.pagination .a,
.pagination .selected,
.pagination li > span:not(.paginatorlr) {
    border-color: var(--sl-primary) !important;
    color: #fff !important;
    background: linear-gradient(180deg, var(--sl-primary) 0%, var(--sl-primary-dark) 100%) !important;
    box-shadow: 0 10px 20px rgba(40, 120, 173, .16);
}

.pagination .paginatorlr {
    font-size: 18px;
    font-weight: 700;
}

.b-btn {
    display: inline-flex !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    gap: 0 !important;
    min-height: 0 !important;
    padding: 0 !important;
    margin: 0;
    overflow: hidden;
    border: 0 !important;
    border-radius: 12px !important;
    background: transparent !important;
    box-shadow: none !important;
}

.b-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(40, 120, 173, .18) !important;
}

.b-btn__icon {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 46px !important;
    min-width: 46px !important;
    height: 46px !important;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 12px 0 0 12px !important;
    background: linear-gradient(180deg, #56c72b 0%, #3eaa16 100%) !important;
}

.b-btn__icon span {
    margin: 0 !important;
}

.b-btn__arrow {
    display: none !important;
}

.b-btn__name {
    display: inline-flex !important;
    align-items: center !important;
    min-height: 46px !important;
    margin: 0 !important;
    padding: 0 18px !important;
    border-radius: 0 12px 12px 0 !important;
    color: #fff !important;
    background: linear-gradient(180deg, #62a7d9 0%, #3d8fca 100%) !important;
    font-family: var(--sl-font-ui);
    font-size: 15px !important;
    font-weight: 700;
    line-height: 1.2;
    text-shadow: none !important;
}

.b-btn:hover .b-btn__name {
    background: linear-gradient(180deg, #5aabdf 0%, #2f81bd 100%) !important;
}

.centered-action {
    display: flex;
    justify-content: center;
    align-items: center;
}

.centered-action .b-btn {
    max-width: min(100%, 340px);
}

#CommentForm {
    width: 100%;
    max-width: 760px;
    margin: 18px 0 10px;
    padding: 18px;
    border: 1px solid var(--sl-border);
    border-radius: 16px;
    background: var(--sl-surface);
    box-shadow: var(--sl-mobile-card-shadow);
}

#CommentForm .sl-comment-form__close {
    float: right;
}

#CommentForm .sl-comment-form__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

#CommentForm .sl-comment-form__hint,
#CommentForm .sl-comment-form__grid > textarea,
#CommentForm .sl-comment-form__grid > input[type="url"] {
    grid-column: 1 / -1;
}

#CommentForm .sl-comment-form__hint {
    margin: 0;
    color: var(--sl-mobile-muted);
    font-family: var(--sl-font-ui);
    font-size: 13px;
}

#CommentForm .sl-comment-form__actions {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 16px;
    margin-right: 0 !important;
}

#CommentForm .sl-comment-form__recaptcha {
    max-width: 100%;
}

#CommentForm .c_botton_c {
    min-height: 46px !important;
    height: auto !important;
    margin: 0 !important;
    padding: 12px 18px !important;
    border: 0 !important;
    border-radius: 12px !important;
    color: #fff !important;
    background: linear-gradient(180deg, var(--sl-primary) 0%, var(--sl-primary-dark) 100%) !important;
    font-size: 15px !important;
    font-weight: 700;
}

#CommentForm .c_botton_c:hover {
    background: linear-gradient(180deg, #3b91cc 0%, #1f6a9c 100%) !important;
}

.page-barter-detail .barter-contact {
    width: 100% !important;
    table-layout: fixed;
}

.page-barter-detail .barter-contact td {
    word-break: break-word;
}

.page-barter-detail .quick-links {
    justify-content: flex-start;
}

.page-barter-detail .quick-links .actionButton > a {
    border-radius: 999px;
}

@media (max-width: 760px) {
    .pagination {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 4px;
    }

    .pagination li {
        flex: 0 0 auto;
    }

    .centered-action .b-btn,
    .centered-action .b-btn .b-btn__name {
        width: 100%;
    }

    #CommentForm {
        padding: 14px;
    }

    #CommentForm .sl-comment-form__grid {
        grid-template-columns: minmax(0, 1fr);
    }

    #CommentForm .sl-comment-form__actions {
        flex-direction: column;
        align-items: stretch;
    }

    #CommentForm .sl-comment-form__actions .g-recaptcha {
        transform-origin: left top;
    }

    #CommentForm .c_botton_c {
        width: 100%;
    }

    .page-barter-detail .barter-contact,
    .page-barter-detail .barter-contact tbody,
    .page-barter-detail .barter-contact tr,
    .page-barter-detail .barter-contact td,
    .page-barter-detail .barter-contact colgroup,
    .page-barter-detail .barter-contact col {
        display: block;
        width: 100% !important;
    }

    .page-barter-detail .barter-contact tr {
        padding: 12px 0;
        border-bottom: 1px solid var(--sl-mobile-line);
    }

    .page-barter-detail .barter-contact tr:last-child {
        border-bottom: 0;
    }

    .page-barter-detail .barter-contact td {
        height: auto !important;
        padding: 0 !important;
        border: 0 !important;
        text-align: left !important;
    }

    .page-barter-detail .barter-contact td + td {
        margin-top: 6px;
    }

    .page-barter-detail .barter-contact .avatar {
        margin: 0 0 7px 0 !important;
    }
}
