@charset "UTF-8";

/*
 * SteelLand 2.0 design system
 * Loaded after legacy styles to provide a consistent, reversible UI layer.
 */

:root {
    --sl-bg: #f4f7fa;
    --sl-surface: #ffffff;
    --sl-surface-soft: #f8fafc;
    --sl-surface-strong: #eef3f7;
    --sl-text: #1f2933;
    --sl-text-soft: #5b6875;
    --sl-heading: #182431;
    --sl-border: #dce4eb;
    --sl-border-strong: #c8d4de;
    --sl-primary: #2878ad;
    --sl-primary-dark: #1e608b;
    --sl-primary-soft: #e7f2fa;
    --sl-accent: #d88b2f;
    --sl-success: #267a55;
    --sl-danger: #b13b3b;
    --sl-header: #263642;
    --sl-header-deep: #1f2c35;
    --sl-shadow-sm: 0 1px 2px rgba(21, 35, 46, .06), 0 3px 12px rgba(21, 35, 46, .04);
    --sl-shadow-md: 0 12px 30px rgba(21, 35, 46, .10);
    --sl-radius-sm: 6px;
    --sl-radius: 10px;
    --sl-radius-lg: 16px;
    --sl-container: 1344px;
    --sl-sidebar: 316px;
    --sl-gap: clamp(14px, 2vw, 24px);
    --sl-font-ui: "Fira Sans", Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    --sl-font-text: "PT Serif", Georgia, "Times New Roman", serif;
}

html {
    min-width: 320px;
    background: var(--sl-bg);
    scroll-padding-top: 72px;
}

body.site-body,
body {
    min-height: 100vh;
    color: var(--sl-text);
    background:
        radial-gradient(circle at 50% -180px, rgba(40, 120, 173, .08), transparent 420px),
        var(--sl-bg);
    font-family: var(--sl-font-text);
    font-size: 16px;
    line-height: 1.55;
    overflow-x: hidden;
}

body.has-modal-open {
    overflow: hidden;
}

::selection {
    color: #fff;
    background: var(--sl-primary);
}

.skip-link {
    position: fixed;
    top: 8px;
    left: 8px;
    z-index: 100000;
    transform: translateY(-160%);
    padding: 10px 14px;
    border-radius: var(--sl-radius-sm);
    color: #fff !important;
    background: var(--sl-primary-dark);
    font-family: var(--sl-font-ui);
    font-weight: 600;
    box-shadow: var(--sl-shadow-md);
    transition: transform .15s ease;
}

.skip-link:focus {
    transform: translateY(0);
}

/* Typography */

h1,
h2,
h3,
h4,
h5,
h6,
.sub_head,
.main_zagfont,
.news_date,
.trade_firm_razdel {
    color: var(--sl-heading);
    font-family: var(--sl-font-ui);
    letter-spacing: -.015em;
}

h1 {
    max-width: 100%;
    margin: 0 0 18px;
    padding: 0;
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.08;
}

h2 {
    margin: 0 0 14px;
    font-size: clamp(22px, 2.4vw, 30px);
    line-height: 1.16;
}

h3 {
    margin: 0 0 12px;
    font-size: clamp(18px, 1.8vw, 23px);
    line-height: 1.22;
}

h4 {
    font-size: 17px;
    line-height: 1.28;
}

p {
    margin: 0 0 1em;
}

.main_font,
[itemprop="articleBody"],
[itemprop="description"] {
    font-size: clamp(16px, 1.25vw, 18px);
    line-height: 1.72;
}

small,
.smallfont,
.meta,
.date,
.newsdatefont,
.timer {
    color: var(--sl-text-soft);
    font-family: var(--sl-font-ui);
    font-size: 13px;
    line-height: 1.45;
}

a,
a:link,
a:visited,
a:active {
    color: var(--sl-primary-dark);
    text-decoration: none !important;
    text-underline-offset: 3px;
}

a:hover {
    color: var(--sl-primary);
    text-decoration: underline !important;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
    outline: 3px solid rgba(40, 120, 173, .28);
    outline-offset: 2px;
}

/* Media */

img,
svg,
video,
iframe {
    max-width: 100%;
}

img {
    height: auto;
}

.main_font img,
[itemprop="articleBody"] img,
[itemprop="description"] img,
.bigimg,
.img_box2 img {
    border-radius: var(--sl-radius);
}

.img_box2,
.img_box {
    overflow: hidden;
    border: 1px solid var(--sl-border);
    border-radius: var(--sl-radius);
    background: var(--sl-surface-soft);
    box-shadow: var(--sl-shadow-sm);
}

.img_source {
    color: var(--sl-text-soft);
    font-family: var(--sl-font-ui);
    font-size: 12px;
}

/* Header */

.dark_bg:first-of-type,
body > .dark_bg:first-of-type {
    position: relative;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    background:
        linear-gradient(120deg, rgba(255, 255, 255, .035), transparent 45%),
        linear-gradient(180deg, var(--sl-header), var(--sl-header-deep));
    box-shadow: 0 6px 18px rgba(17, 29, 38, .18);
}

.dark_page {
    display: flex;
    align-items: center;
    width: min(100% - 28px, var(--sl-container));
    min-height: 82px;
    margin: 0 auto;
    padding: 8px 0;
    overflow: visible;
}

.logo {
    display: flex;
    flex: 0 0 auto;
    flex-direction: column;
    justify-content: center;
    width: min(290px, 24vw);
    min-width: 220px;
    margin: 0 30px 0 0;
    overflow: visible;
}

.logo a {
    display: block;
    border: 0;
}

.logo img {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: 42px;
    object-fit: contain;
    object-position: left center;
}

.light_small_font h1,
.light_small_font h3 {
    margin: 3px 0 0;
    padding: 0 2px;
    color: rgba(255, 255, 255, .68);
    font-size: 11px;
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: .42em;
    text-shadow: none;
    white-space: nowrap;
}

.main_menu {
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    justify-content: flex-start;
    gap: 2px;
    min-width: 0;
    margin: 0;
    padding: 0;
    font-family: var(--sl-font-ui);
}

.main_menu li {
    display: block;
}

.main_menu > li > a {
    display: flex;
    align-items: center;
    min-height: 42px;
    padding: 0 10px;
    border: 0;
    border-radius: 8px;
    color: rgba(255, 255, 255, .90) !important;
    font-size: 13px;
    font-weight: 500;
    line-height: 1;
    letter-spacing: .015em;
    text-transform: uppercase;
    white-space: nowrap;
    transition: background-color .16s ease, color .16s ease, transform .16s ease;
}

.main_menu > li > a::before,
.main_menu > li > a::after {
    display: none !important;
}

.main_menu > li > a:hover,
.main_menu > li.active > a,
.main_menu > li > a.active {
    color: #fff !important;
    background: rgba(255, 255, 255, .12);
    text-decoration: none !important;
}

.main_menu > li > a:active {
    transform: translateY(1px);
}

.menu-link,
.authorization,
.search {
    flex: 0 0 46px;
    width: 46px;
    height: 46px;
    margin: 0 0 0 4px;
    float: none;
}

.menu-link {
    order: 20;
}

.authorization {
    order: 21;
}

.search {
    order: 22;
}

.menu-link a,
.authorization a,
.search a {
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    border: 0;
    border-radius: 50%;
    color: #fff !important;
    background: rgba(255, 255, 255, .075);
    transition: background-color .16s ease, transform .16s ease;
}

.menu-link a:hover,
.authorization a:hover,
.search a:hover {
    opacity: 1;
    background: rgba(255, 255, 255, .16);
    text-decoration: none !important;
    transform: translateY(-1px);
}

.menu-link span,
.authorization span,
.search span {
    color: #fff;
    font-size: 22px;
    line-height: 1;
}

.autor {
    width: 34px;
    height: 34px;
    margin: 0;
    border: 2px solid rgba(255, 255, 255, .65);
    object-fit: cover;
}

.sub_menu {
    top: 0;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    background: rgba(31, 44, 53, .97);
    backdrop-filter: blur(14px);
    box-shadow: 0 8px 20px rgba(17, 29, 38, .16);
}

.sub_menu ul {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    width: min(100% - 24px, var(--sl-container));
    min-height: 52px;
    margin: 0 auto;
    padding: 0;
}

.sub_menu li {
    padding: 0;
}

.sub_menu li a {
    padding: 9px 10px;
    border: 0;
    border-radius: 6px;
    color: rgba(255, 255, 255, .9) !important;
    font-size: 12px;
    font-weight: 500;
}

.sub_menu li a:hover,
.sub_menu li a.select {
    background: rgba(255, 255, 255, .11);
    text-decoration: none !important;
}

/* Header overlays */

.modal,
.modal_auth,
.modal_search {
    position: fixed;
    inset: 0;
    z-index: 5000;
    overflow: auto;
    background: rgba(19, 31, 40, .82);
    backdrop-filter: blur(8px);
}

.modal .layout,
.modal_auth .layout,
.modal_search .layout {
    min-height: 100%;
    background: transparent;
}

.modal .layout_inner,
.modal_auth .layout_inner,
.modal_search .layout_inner {
    width: min(100% - 32px, 1120px);
    margin: 0 auto;
}

.modal_auth .layout_inner,
.modal_search .layout_inner {
    width: min(100% - 32px, 620px);
    margin-top: 8vh;
    padding: clamp(22px, 5vw, 46px);
    border: 1px solid rgba(255, 255, 255, .7);
    border-radius: var(--sl-radius-lg);
    background: var(--sl-surface);
    box-shadow: 0 30px 70px rgba(0, 0, 0, .25);
}

.header_content {
    width: min(100% - 24px, var(--sl-container));
    margin: 0 auto;
}

.close-link,
.close-link-auth,
.close-link-search {
    padding: 18px 0;
}

.close-link a,
.close-link-auth a,
.close-link-search a {
    display: grid;
    width: 48px;
    height: 48px;
    margin-left: auto;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 50%;
    color: #fff !important;
    background: rgba(255, 255, 255, .08);
}

.wide-nav {
    padding: clamp(55px, 10vh, 120px) 0 60px;
}

.top_columns,
.top_columns_group {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(20px, 4vw, 60px);
    width: 100%;
    overflow: visible;
}

.top_columns_group {
    grid-column: span 2;
}

.top_columns_item {
    width: auto;
    margin: 0;
    float: none;
}

.top_list {
    margin: 0;
    padding: 0;
}

.top_list_item a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border: 0;
    color: rgba(255, 255, 255, .88) !important;
    font-family: var(--sl-font-ui);
    font-size: 16px;
}

.top_list_item a:hover {
    color: #fff !important;
}

/* Mobile navigation */

.mobile-nav {
    display: none;
    width: 100%;
    max-width: none;
    background: var(--sl-header);
}

.open_menu {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border: 0;
    border-radius: 0;
    color: #fff;
    background: var(--sl-header);
    font-family: var(--sl-font-ui);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: .03em;
    text-align: left;
    text-transform: uppercase;
    cursor: pointer;
}

.open_menu::after {
    content: "+";
    font-size: 22px;
    font-weight: 300;
    transition: transform .18s ease;
}

.open_menu[aria-expanded="true"]::after {
    transform: rotate(45deg);
}

.mobile-nav ul {
    position: static;
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 6px 12px 14px;
    background: var(--sl-header-deep);
}

.mobile-nav li a {
    padding: 13px 14px;
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    border-radius: 7px;
    color: rgba(255, 255, 255, .93) !important;
    background: transparent;
    font-size: 16px;
    font-weight: 500;
}

.mobile-nav li a:hover {
    color: #fff !important;
    background: rgba(255, 255, 255, .09);
    text-decoration: none !important;
}

/* Main layout */

.content {
    width: min(100% - 28px, var(--sl-container));
    max-width: none;
    margin: clamp(18px, 3vw, 34px) auto;
    padding: 0;
    overflow: visible;
}

.page {
    display: grid;
    grid-template-columns: minmax(0, 1fr) var(--sl-sidebar);
    gap: var(--sl-gap);
    align-items: start;
}

.main,
.sidebar,
.grid-2 > * {
    min-width: 0;
}

.grid-2 {
    gap: var(--sl-gap);
}

.main > section,
.main > article,
.sidebar > section,
.sidebar > article,
.card,
.visitka,
.cabinet-card,
.top_side,
.top_side_news,
.top_side_cat,
.top_side_news_adv,
.bg_light_green,
.bg_green,
.anonse,
.anonse1,
.pre_info,
.box_inf {
    border: 1px solid var(--sl-border);
    border-radius: var(--sl-radius);
    background: var(--sl-surface);
    box-shadow: var(--sl-shadow-sm);
}

.card,
.visitka,
.cabinet-card,
.box_inf,
.pre_info {
    padding: clamp(16px, 2.5vw, 24px);
}

.top_side,
.top_side_news,
.top_side_cat,
.top_side_news_adv,
.bg_light_green,
.bg_green,
.anonse,
.anonse1 {
    overflow: hidden;
}

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

.sidebar .sub_head,
.sidebar .sub_head_news h3,
.top_side .sub_head,
.top_side_news .sub_head,
.top_side_cat .sub_head {
    margin: 0;
}

.sub_head,
.sub_head h1,
.sub_head h2,
.sub_head_news h3 {
    width: 100%;
    margin: 0 0 14px;
    padding: 10px 0 9px;
    border: 0;
    border-bottom: 2px solid var(--sl-primary-soft);
    color: var(--sl-heading);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: .065em;
    text-align: left;
    text-transform: uppercase;
}

.sub_head::after,
.sub_head h1::after,
.sub_head h2::after {
    content: "";
    display: block;
    width: 44px;
    height: 2px;
    margin: 9px 0 -11px;
    background: var(--sl-primary);
}

.lil_line {
    display: none;
}

.link_line {
    padding: 11px 0;
    border-bottom: 1px solid var(--sl-border);
}

.link_line:last-child {
    border-bottom: 0;
}

.main_list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.main_list li {
    padding: 12px 0;
    border-bottom: 1px solid var(--sl-border);
}

.main_list li:last-child {
    border-bottom: 0;
}

.main_list img,
.news_pic,
.barter_img,
.cat_img,
.top_img {
    border-radius: 8px;
    background: var(--sl-surface-strong);
}

/* Buttons and actions */

button,
.btn,
.actionButton,
.loginbutton,
.c_botton,
.b-btn,
input[type="button"],
input[type="submit"],
input[type="reset"] {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: auto;
    margin: 3px 6px 3px 0;
    padding: 10px 17px;
    border: 1px solid transparent;
    border-radius: 8px;
    color: #fff !important;
    background: var(--sl-primary);
    box-shadow: none;
    font-family: var(--sl-font-ui);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: .015em;
    text-transform: none;
    cursor: pointer;
    transition: background-color .16s ease, border-color .16s ease, transform .16s ease, box-shadow .16s ease;
}

button:hover,
.btn:hover,
.actionButton:hover,
.loginbutton:hover,
.c_botton:hover,
.b-btn:hover,
input[type="button"]:hover,
input[type="submit"]:hover {
    color: #fff !important;
    background: var(--sl-primary-dark);
    box-shadow: 0 6px 16px rgba(40, 120, 173, .2);
    text-decoration: none !important;
    transform: translateY(-1px);
}

input[type="reset"],
.btn-danger,
.actionButton.danger {
    background: var(--sl-danger);
}

.btn-secondary,
button.secondary,
input[type="button"].secondary {
    border-color: var(--sl-border-strong);
    color: var(--sl-text) !important;
    background: var(--sl-surface);
}

.btn-secondary:hover,
button.secondary:hover,
input[type="button"].secondary:hover {
    color: var(--sl-primary-dark) !important;
    background: var(--sl-primary-soft);
}

button[disabled],
input[disabled],
select[disabled],
textarea[disabled] {
    cursor: not-allowed;
    opacity: .58;
}

/* Forms */

form {
    max-width: 100%;
}

input,
textarea,
select,
.form-control,
.formfields,
.logininput {
    width: 100%;
    min-height: 42px;
    padding: 9px 11px;
    border: 1px solid var(--sl-border-strong);
    border-radius: 8px;
    color: var(--sl-text);
    background: var(--sl-surface);
    font-family: var(--sl-font-ui);
    font-size: 15px;
    line-height: 1.35;
    box-shadow: inset 0 1px 1px rgba(21, 35, 46, .025);
    transition: border-color .16s ease, box-shadow .16s ease, background-color .16s ease;
}

input:hover,
textarea:hover,
select:hover,
.form-control:hover {
    border-color: #aebfcb;
}

input:focus,
textarea:focus,
select:focus,
.form-control:focus {
    border-color: var(--sl-primary);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(40, 120, 173, .12);
    outline: 0;
}

input[type="checkbox"],
input[type="radio"] {
    width: 18px;
    min-height: 18px;
    height: 18px;
    padding: 0;
    accent-color: var(--sl-primary);
}

input[type="file"] {
    min-height: 44px;
    padding: 7px;
}

textarea {
    min-height: 130px;
    resize: vertical;
}

select {
    float: none;
}

label,
.form-label {
    color: var(--sl-heading);
    font-family: var(--sl-font-ui);
    font-weight: 600;
    line-height: 1.35;
}

.form-group,
.form-row {
    margin-bottom: 16px;
}

.form-row {
    gap: 16px;
}

.form-required,
.error {
    color: var(--sl-danger);
}

#login,
.auth,
.search-container {
    width: min(100%, 520px);
    margin: 0 auto;
}

/* Tables */

.table-scroll {
    width: 100%;
    overflow-x: auto;
    border: 1px solid var(--sl-border);
    border-radius: var(--sl-radius);
    background: var(--sl-surface);
    box-shadow: var(--sl-shadow-sm);
    -webkit-overflow-scrolling: touch;
}

.table-scroll > table {
    min-width: 640px;
    margin: 0;
}

table.table1,
table.table2,
table.border,
table.vcard {
    width: 100%;
    border: 0;
    border-collapse: collapse;
    border-spacing: 0;
    background: var(--sl-surface);
    font-family: var(--sl-font-ui);
    font-size: 14px;
}

table.table1 th,
table.table2 th,
table.border th,
table.table1 td,
table.table2 td,
table.border td,
table.vcard td {
    padding: 11px 12px;
    border: 0;
    border-bottom: 1px solid var(--sl-border);
    vertical-align: top;
}

table.table1 th,
table.table2 th,
table.border th {
    color: var(--sl-heading);
    background: var(--sl-surface-strong);
    font-weight: 700;
    text-align: left;
}

table.table1 tr:last-child td,
table.table2 tr:last-child td,
table.border tr:last-child td {
    border-bottom: 0;
}

table.table1 tr:hover td,
table.table2 tr:hover td {
    background: #f7fbfe;
}

/* Pagination */

.pagination,
.paginatorlr {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
    margin: 22px 0;
    font-family: var(--sl-font-ui);
}

.pagination a,
.pagination span,
.paginatorlr a,
.paginatorlr span {
    display: grid;
    min-width: 38px;
    min-height: 38px;
    place-items: center;
    padding: 6px 10px;
    border: 1px solid var(--sl-border);
    border-radius: 7px;
    color: var(--sl-text) !important;
    background: var(--sl-surface);
}

.pagination a:hover,
.paginatorlr a:hover,
.pagination .selected,
.paginatorlr .selected {
    border-color: var(--sl-primary);
    color: #fff !important;
    background: var(--sl-primary);
    text-decoration: none !important;
}

/* Notices and tooltips */

.error,
.alert,
.notice,
.success,
.warning,
.textinform {
    margin: 12px 0;
    padding: 13px 15px;
    border: 1px solid var(--sl-border);
    border-left-width: 4px;
    border-radius: 8px;
    background: var(--sl-surface);
    font-family: var(--sl-font-ui);
}

.error,
.alert-danger {
    border-left-color: var(--sl-danger);
    color: #7d2929;
    background: #fff7f7;
}

.success,
.alert-success {
    border-left-color: var(--sl-success);
    color: #1f6044;
    background: #f3fbf7;
}

.warning,
.alert-warning {
    border-left-color: var(--sl-accent);
    color: #76501f;
    background: #fffaf2;
}

.toast {
    border: 0 !important;
    border-left: 4px solid var(--sl-primary) !important;
    border-radius: var(--sl-radius) !important;
    box-shadow: var(--sl-shadow-md) !important;
}

/* Footer */

body > .dark_bg:last-of-type,
.dark_page_footer {
    background: transparent;
}

body > .dark_bg:last-of-type {
    margin-top: clamp(36px, 6vw, 72px);
    border-top: 1px solid rgba(255, 255, 255, .08);
    background:
        linear-gradient(160deg, rgba(255, 255, 255, .025), transparent 55%),
        var(--sl-header-deep);
    box-shadow: none;
}

.dark_page_footer {
    width: min(100% - 28px, var(--sl-container));
    max-width: none;
    padding: clamp(28px, 5vw, 56px) 0 26px;
}

#footer_menu {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
    padding: 0 0 28px;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
}

#footer_menu .cc4 {
    width: auto;
    float: none;
}

ul.footer_navigation1 {
    margin: 0;
}

ul.footer_navigation1 li {
    padding: 4px 0;
}

ul.footer_navigation1 a {
    display: inline-block;
    padding: 4px 0;
    border: 0;
    color: rgba(255, 255, 255, .72) !important;
    font-family: var(--sl-font-ui);
}

ul.footer_navigation1 a:hover,
#footer_menu .select {
    color: #fff !important;
}

.footer_text {
    color: rgba(255, 255, 255, .64);
    font-family: var(--sl-font-ui);
    font-size: 13px;
    line-height: 1.58;
}

.logo_footer img {
    max-width: 170px;
    opacity: .9;
}

/* Utilities */

.h10 { height: 10px; }
.h15 { height: 16px; }
.h50 { height: 34px; }
.h60 { height: 60px; }
.h200 { height: 120px; }

.clean,
.fix {
    clear: both;
}

.center {
    text-align: center;
}

hr {
    height: 1px;
    margin: 22px 0;
    border: 0;
    background: var(--sl-border);
}

blockquote {
    max-width: 100%;
    margin: 22px 0;
    padding: 18px 22px;
    border: 0;
    border-left: 4px solid var(--sl-primary);
    border-radius: 0 var(--sl-radius) var(--sl-radius) 0;
    color: var(--sl-text);
    background: var(--sl-primary-soft);
    font-family: var(--sl-font-text);
    font-size: 18px;
    font-weight: 400;
    line-height: 1.55;
}

/* Admin/private UI */

body.section-private .content,
body.section-edit .content,
body.section-login .content,
body.section-register .content {
    margin-top: 24px;
}

body.section-private .main_menu,
body.section-edit .main_menu {
    gap: 1px;
}

body.section-private .main_menu > li > a,
body.section-edit .main_menu > li > a {
    font-size: 12px;
}

body.section-edit .content,
body.section-private .content {
    padding: clamp(16px, 2.5vw, 26px);
    border: 1px solid var(--sl-border);
    border-radius: var(--sl-radius-lg);
    background: var(--sl-surface);
    box-shadow: var(--sl-shadow-sm);
}

/* Responsive */

@media (max-width: 1180px) {
    :root {
        --sl-sidebar: 286px;
    }

    .dark_page {
        min-height: 74px;
    }

    .logo {
        width: 220px;
        min-width: 190px;
        margin-right: 16px;
    }

    .main_menu > li > a {
        padding-inline: 7px;
        font-size: 11px;
    }

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

@media (max-width: 1000px) {
    :root {
        --sl-gap: 16px;
    }

    .dark_page {
        flex-wrap: wrap;
    }

    .logo {
        flex: 1 1 auto;
    }

    .main_menu {
        display: none;
    }

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

    .mobile-nav {
        display: block;
    }

    .page {
        grid-template-columns: minmax(0, 1fr);
    }

    .main {
        order: 1;
    }

    .sidebar {
        order: 2;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }

    .sidebar > * {
        margin-bottom: 0;
    }

    .top_columns,
    .top_columns_group {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .top_columns_group {
        grid-column: 1 / -1;
    }
}

@media (max-width: 760px) {
    body {
        font-size: 15px !important;
    }

    .dark_page {
        width: min(100% - 20px, var(--sl-container));
        min-height: 66px;
    }

    .logo {
        width: auto;
        min-width: 0;
        margin-right: auto;
    }

    .logo img {
        max-width: 195px;
        max-height: 36px;
    }

    .light_small_font h1,
    .light_small_font h3 {
        font-size: 9px;
        letter-spacing: .28em;
    }

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

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

    .content,
    .dark_page_footer {
        width: min(100% - 20px, var(--sl-container));
    }

    .grid-2,
    .sidebar,
    #footer_menu,
    .top_columns,
    .top_columns_group {
        grid-template-columns: minmax(0, 1fr);
    }

    .top_columns_group {
        display: contents;
    }

    #footer_menu {
        gap: 0;
    }

    #footer_menu .cc4 {
        padding: 8px 0;
        border-bottom: 1px solid rgba(255, 255, 255, .08);
    }

    .modal_auth .layout_inner,
    .modal_search .layout_inner {
        margin-top: 3vh;
        padding: 20px;
    }

    .mobile-hidden {
        display: none !important;
    }

    .form-row,
    .price-row {
        flex-direction: column;
        align-items: stretch;
    }

    .form-label,
    .form-field {
        width: 100%;
        max-width: 100%;
        flex-basis: auto;
    }

    .pagination,
    .paginatorlr {
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 5px;
    }

    .pagination a,
    .pagination span,
    .paginatorlr a,
    .paginatorlr span {
        flex: 0 0 auto;
    }

    /* Undo legacy rules that hide article images on phones. */
    p img,
    .main_font img,
    [itemprop="articleBody"] img,
    [itemprop="description"] img {
        display: inline-block !important;
        max-width: 100% !important;
    }

    .disp {
        display: block !important;
    }

    .dark_page_footer .disp {
        display: none !important;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 28px;
    }

    h2 {
        font-size: 22px;
    }

    .authorization {
        display: none !important;
    }

    .search {
        margin: 0 !important;
    }

    .card,
    .visitka,
    .cabinet-card,
    .box_inf,
    .pre_info,
    body.section-edit .content,
    body.section-private .content {
        padding: 15px;
        border-radius: 8px;
    }

    button,
    .btn,
    .actionButton,
    .loginbutton,
    .c_botton,
    input[type="button"],
    input[type="submit"],
    input[type="reset"] {
        width: 100%;
        margin-right: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}

@media print {
    body {
        color: #000;
        background: #fff;
    }

    .dark_bg,
    .sub_menu,
    .mobile-nav,
    .sidebar,
    .skip-link,
    .scroll-top-btn,
    button,
    .btn,
    .actionButton {
        display: none !important;
    }

    .content,
    .page,
    .main {
        display: block;
        width: 100%;
        max-width: none;
        margin: 0;
        padding: 0;
        border: 0;
        box-shadow: none;
    }

    a,
    a:visited {
        color: #000 !important;
    }
}

/* Unified status messages and action controls used by modernized modules. */
.notice-success,
.notice-error,
.notice-warning,
.form-errors {
    margin: 18px 0;
    padding: 16px 18px;
    border: 1px solid var(--sl-border);
    border-radius: var(--sl-radius);
    background: var(--sl-surface);
    font-family: var(--sl-font-ui);
    box-shadow: var(--sl-shadow-sm);
}

.notice-success {
    border-color: rgba(38, 122, 85, .34);
    background: #edf8f2;
    color: #19583c;
}

.notice-error,
.form-errors {
    border-color: rgba(177, 59, 59, .34);
    background: #fff2f2;
    color: #7f2929;
}

.notice-warning {
    border-color: rgba(216, 139, 47, .38);
    background: #fff8eb;
    color: #74501f;
}

.notice-success > :last-child,
.notice-error > :last-child,
.notice-warning > :last-child,
.form-errors > :last-child {
    margin-bottom: 0;
}

.button,
a.button,
button.button,
input.button,
input[type="submit"],
input[type="button"],
button:not(.open_menu) {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 17px;
    border: 1px solid var(--sl-primary-dark);
    border-radius: var(--sl-radius-sm);
    color: #fff !important;
    background: linear-gradient(180deg, #3389c0, var(--sl-primary-dark));
    font-family: var(--sl-font-ui);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none !important;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(30, 96, 139, .18);
    transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}

.button:hover,
a.button:hover,
button.button:hover,
input[type="submit"]:hover,
input[type="button"]:hover {
    filter: brightness(1.05);
    transform: translateY(-1px);
    box-shadow: 0 7px 18px rgba(30, 96, 139, .22);
}

.button:focus-visible,
a.button:focus-visible,
button:focus-visible,
input[type="submit"]:focus-visible,
input[type="button"]:focus-visible {
    outline: 3px solid rgba(40, 120, 173, .25);
    outline-offset: 2px;
}

.payment-form {
    display: grid;
    gap: 12px;
    max-width: 520px;
    padding: 18px;
    border: 1px solid var(--sl-border);
    border-radius: var(--sl-radius);
    background: var(--sl-surface-soft);
}

.payment-form label {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.payment-note {
    color: var(--sl-text-soft);
}

.honeypot-field {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

/* SteelLand 2.0.3: balanced semantic fragments and unified footer. */
.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.centered-action {
    display: flex;
    justify-content: center;
    margin: 18px 0;
}

.site-footer {
    clear: both;
    margin-top: 36px;
    color: rgba(255, 255, 255, .88);
    font-family: var(--sl-font-ui);
}

.site-footer a,
.site-footer a:visited {
    color: #fff;
}

.dark_page_footer {
    max-width: 1240px;
    margin: 0 auto;
    padding: 30px clamp(18px, 4vw, 46px);
}

.footer-menu {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, .16);
}

.footer-menu .cc4 {
    min-width: 0;
}

.footer_navigation1 {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer_navigation1 a {
    display: inline-flex;
    padding: 3px 0;
    text-decoration: none;
    opacity: .86;
}

.footer_navigation1 a:hover,
.footer_navigation1 a.select {
    opacity: 1;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.footer-main {
    display: grid;
    grid-template-columns: minmax(150px, .7fr) minmax(280px, 2fr) minmax(150px, .8fr);
    gap: clamp(20px, 4vw, 46px);
    align-items: start;
    padding-top: 26px;
}

.footer-brand,
.footer-side {
    display: grid;
    gap: 16px;
}

.logo_footer img {
    display: block;
    max-width: 100%;
    height: auto;
}

.footer_text p {
    margin: 0 0 14px;
    line-height: 1.62;
}

.footer-typo-button {
    display: inline !important;
    min-height: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    color: inherit !important;
    background: transparent !important;
    font: inherit !important;
    text-decoration: underline;
    text-underline-offset: 3px;
    box-shadow: none !important;
}

.footer-img,
.footer-counters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.footer-img img,
.footer-counters img {
    display: block;
    max-width: 100%;
    height: auto;
}

.footer-side .social1 {
    display: flex;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.cookie-consent {
    position: fixed;
    z-index: 10000;
    right: 18px;
    bottom: 18px;
    left: 18px;
    display: flex;
    max-width: 780px;
    margin: 0 auto;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 14px 18px;
    border: 1px solid var(--sl-border);
    border-radius: var(--sl-radius);
    color: var(--sl-text);
    background: rgba(255, 255, 255, .98);
    box-shadow: var(--sl-shadow-lg);
    font-family: var(--sl-font-ui);
}

.cookie-consent__accept {
    flex: 0 0 auto;
    min-height: 36px !important;
    padding: 7px 14px !important;
}

.barter-filter {
    margin-bottom: 20px;
}

.barter-filter__list,
.barter-filter__sublist {
    margin: 0;
    padding: 0;
    list-style: none;
}

.barter-filter__list {
    display: grid;
    gap: 2px;
    overflow: hidden;
    border: 1px solid var(--sl-border);
    border-radius: var(--sl-radius-sm);
    background: var(--sl-border);
}

.barter-filter__list > li {
    background: var(--sl-surface-soft);
}

.barter-filter__list > li > a {
    display: block;
    padding: 11px 13px;
    font-weight: 600;
    text-decoration: none;
}

.barter-filter__list > li.is-active {
    background: #e8f3ea;
}

.barter-filter__list > li.is-active > a {
    color: #1d6a42;
}

.barter-filter__sublist {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    padding: 0 13px 12px;
}

.barter-filter__sublist a {
    display: inline-flex;
    padding: 5px 9px;
    border: 1px solid var(--sl-border);
    border-radius: 999px;
    background: var(--sl-surface);
    font-size: 13px;
    text-decoration: none;
}

.market-table {
    width: 100%;
    border-collapse: collapse;
}

.market-table th,
.market-table td {
    padding: 9px 8px;
    border-bottom: 1px solid var(--sl-border);
    text-align: left;
}

.market-table th,
.market-table .numeric-cell {
    text-align: right;
}

.market-table th:first-child {
    text-align: left;
}

.market-indexes {
    display: grid;
    gap: 8px;
}

.market-index {
    padding: 11px 12px;
    border: 1px solid var(--sl-border);
    border-radius: var(--sl-radius-sm);
    background: var(--sl-surface-soft);
}

.market-index__header,
.market-index__value {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.market-index__header span {
    color: var(--sl-text-soft);
    font-size: 12px;
}

.market-index__value {
    margin-top: 7px;
}

.market-index__value img {
    margin-right: 5px;
}

.town-groups {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.town-groups .sub > button {
    width: 100%;
    justify-content: flex-start;
}

.legacy-price-list {
    overflow-x: auto;
}

@media (max-width: 820px) {
    .footer-menu {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .cookie-consent {
        align-items: stretch;
        flex-direction: column;
    }
}

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

    .dark_page_footer {
        padding-inline: 18px;
    }
}
