:root {
    --med-teal-900: #075f5a;
    --med-teal-800: #087f76;
    --med-teal-700: #09978c;
    --med-teal-100: #dff6f3;
    --med-teal-50: #f0fbfa;
    --med-blue-900: #123f4a;
    --med-blue-700: #315d66;
    --med-slate-700: #3c555b;
    --med-slate-500: #6d8388;
    --med-slate-300: #cddadc;
    --med-slate-200: #e3ebec;
    --med-slate-100: #f2f6f7;
    --med-white: #fff;
    --med-danger: #bd3c4d;
    --med-shadow: 0 12px 35px rgba(18, 63, 74, .09);
    --med-radius: 18px;
    --med-radius-small: 11px;
    --med-shell: 1360px;
}

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

html {
    min-width: 0;
    scroll-behavior: smooth;
}

body {
    min-width: 0;
    margin: 0;
    color: var(--med-blue-900);
    background: var(--med-slate-100);
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.62;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

body.nav-is-open {
    overflow: hidden;
}

body.dialog-is-open {
    overflow: hidden;
}

a {
    color: var(--med-teal-800);
    text-decoration-thickness: 1px;
    text-underline-offset: .18em;
    transition: color .18s ease, background-color .18s ease, border-color .18s ease, opacity .18s ease;
}

a:hover {
    color: var(--med-teal-900);
}

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

img {
    height: auto;
}

button,
input,
select,
textarea {
    font: inherit;
}

button,
input[type="submit"],
input[type="button"] {
    cursor: pointer;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 0 0 .7em;
    color: var(--med-blue-900);
    font-weight: 720;
    line-height: 1.22;
}

h1 { font-size: clamp(1.65rem, 3.3vw, 2.55rem); }
h2 { font-size: clamp(1.25rem, 2.1vw, 1.7rem); }
h3 { font-size: 1.18rem; }
h4 { font-size: 1.05rem; }

p {
    margin: 0 0 1.1em;
}

table {
    max-width: 100%;
    border-collapse: collapse;
}

.site-shell {
    width: min(calc(100% - 40px), var(--med-shell));
    margin-inline: auto;
}

.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;
}

.skip-link {
    position: fixed;
    z-index: 10000;
    top: 10px;
    left: 10px;
    padding: 10px 15px;
    color: var(--med-white);
    background: var(--med-blue-900);
    border-radius: 8px;
    transform: translateY(-150%);
    opacity: 0;
    pointer-events: none;
}

.skip-link:focus {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.site-header {
    position: relative;
    z-index: 100;
    background: var(--med-white);
    border-bottom: 1px solid var(--med-slate-200);
    box-shadow: 0 4px 24px rgba(18, 63, 74, .055);
}

.site-header__notice {
    color: #d9f5f2;
    background: var(--med-blue-900);
    font-size: .8rem;
}

.site-header__notice .site-shell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    min-height: 34px;
}

.site-header__notice a {
    color: var(--med-white);
}

.site-header__main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    min-height: 92px;
}

.site-brand {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    text-decoration: none;
}

.site-brand img {
    display: block;
}

.site-header__tools {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 9px;
    margin-left: auto;
}

.quiet-link,
.account-link {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 8px 13px;
    border-radius: 10px;
    font-size: .88rem;
    font-weight: 650;
    line-height: 1.25;
    text-decoration: none;
}

.quiet-link {
    color: var(--med-blue-700);
    background: var(--med-slate-100);
}

.quiet-link:hover {
    color: var(--med-teal-900);
    background: var(--med-teal-50);
}

.account-link {
    color: var(--med-white);
    background: var(--med-teal-800);
}

.account-link:hover {
    color: var(--med-white);
    background: var(--med-teal-900);
}

.site-header__navigation {
    border-top: 1px solid var(--med-slate-200);
}

.site-header__navigation-inner {
    display: flex;
    align-items: center;
    gap: 22px;
    min-height: 58px;
}

.primary-navigation {
    flex: 1 1 auto;
}

.primary-navigation ul {
    display: flex;
    align-items: stretch;
    gap: 2px;
    min-height: 58px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.primary-navigation li {
    display: flex;
    margin: 0;
    padding: 0;
}

.primary-navigation a {
    position: relative;
    display: flex;
    align-items: center;
    padding: 10px 12px;
    color: var(--med-blue-900);
    font-size: .91rem;
    font-weight: 670;
    text-decoration: none;
    white-space: nowrap;
}

.primary-navigation a::after {
    position: absolute;
    right: 12px;
    bottom: 0;
    left: 12px;
    height: 3px;
    content: "";
    background: var(--med-teal-700);
    border-radius: 3px 3px 0 0;
    opacity: 0;
    transform: scaleX(.45);
    transition: opacity .18s ease, transform .18s ease;
}

.primary-navigation a:hover,
.primary-navigation a.is-active {
    color: var(--med-teal-800);
}

.primary-navigation a:hover::after,
.primary-navigation a.is-active::after {
    opacity: 1;
    transform: scaleX(1);
}

.header-search {
    flex: 0 1 270px;
}

.site-search {
    position: relative;
    display: flex;
    width: 100%;
    margin: 0;
}

.site-search .s_input {
    width: 100%;
    height: 42px;
    margin: 0;
    padding: 8px 46px 8px 14px;
    color: var(--med-blue-900);
    background: var(--med-slate-100);
    border: 1px solid transparent;
    border-radius: 12px;
    outline: none;
}

.site-search .s_input:focus {
    background: var(--med-white);
    border-color: var(--med-teal-700);
    box-shadow: 0 0 0 3px rgba(9, 151, 140, .14);
}

.site-search .s_button {
    position: absolute;
    top: 3px;
    right: 3px;
    display: grid;
    width: 36px;
    height: 36px;
    padding: 0;
    color: var(--med-teal-800);
    background: transparent;
    border: 0;
    border-radius: 9px;
    place-items: center;
}

.site-search .s_button:hover {
    color: var(--med-white);
    background: var(--med-teal-800);
}

.nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 44px;
    padding: 8px 13px;
    color: var(--med-blue-900);
    background: var(--med-slate-100);
    border: 1px solid var(--med-slate-200);
    border-radius: 11px;
    font-weight: 680;
}

.nav-toggle__icon,
.nav-toggle__icon::before,
.nav-toggle__icon::after {
    display: block;
    width: 20px;
    height: 2px;
    content: "";
    background: currentColor;
    border-radius: 2px;
}

.nav-toggle__icon {
    position: relative;
}

.nav-toggle__icon::before { position: absolute; top: -6px; }
.nav-toggle__icon::after { position: absolute; top: 6px; }

.site-main {
    min-height: 52vh;
    padding: 30px 0 48px;
}

.content {
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 22px;
    width: min(calc(100% - 40px), var(--med-shell));
    min-height: 1px;
    margin: 0 auto;
    padding: 0;
    color: var(--med-blue-900);
    background: transparent;
}

.content > .left,
.content > .center,
.content > .right,
.content > .coll_n,
.content > .right_n {
    float: none;
    min-width: 0;
    margin: 0;
}

.content > .left,
.content > .center,
.content > .right {
    flex: 1 1 300px;
    width: auto;
}

.content > .coll_n {
    flex: 1 1 720px;
    width: auto;
}

.content > .right_n {
    flex: 0 1 300px;
    width: min(100%, 300px);
}

.content > .sub_menu,
.content > .border52,
.content > .clean {
    flex: 0 0 100%;
}

.coll {
    width: auto;
    min-width: 0;
    margin: 0;
    padding: 0;
}

.clean {
    clear: both;
    width: 100%;
    height: 0;
}

.sub_menu {
    position: sticky;
    z-index: 20;
    top: 0;
    width: 100%;
    margin: 0 0 4px;
    padding: 8px;
    background: rgba(255, 255, 255, .95);
    border: 1px solid var(--med-slate-200);
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(18, 63, 74, .06);
    backdrop-filter: blur(10px);
}

.sub_menu ul,
.sub_menu .sub_navigation {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.sub_menu li {
    margin: 0;
    padding: 0;
}

.sub_menu a {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 7px 11px;
    color: var(--med-blue-700);
    border-radius: 9px;
    font-size: .89rem;
    font-weight: 650;
    text-decoration: none;
}

.sub_menu a:hover,
.sub_menu a.select,
.sub_menu .active a {
    color: var(--med-teal-900);
    background: var(--med-teal-100);
}

.border52,
.lil_line {
    height: 1px;
    background: var(--med-slate-200);
    border: 0;
}

.box_video,
.main_list > li,
.table1,
.bg_light_green,
.bg_green,
.board_main .coll,
.right_n.coll,
.content > .left > .coll,
.content > .center > .coll,
.content > .right > .coll {
    overflow: hidden;
    background: var(--med-white);
    border: 1px solid var(--med-slate-200);
    border-radius: var(--med-radius);
    box-shadow: var(--med-shadow);
}

.content > .left > .coll,
.content > .center > .coll,
.content > .right > .coll,
.board_main .coll,
.right_n.coll {
    padding: 20px;
}

.box_video {
    position: relative;
    min-height: 330px;
    margin: 0 0 22px;
}

.box_video .b_photo,
.box_video .b_photo > img {
    display: block;
    width: 100%;
}

.box_video .b_photo > img {
    min-height: 330px;
    object-fit: cover;
}

.box_video .bg {
    position: absolute;
    inset: 0;
    display: block;
    background: linear-gradient(180deg, rgba(8, 42, 49, .04) 22%, rgba(8, 42, 49, .9) 100%);
    pointer-events: none;
}

.box_video .text_tip {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 2;
    padding: 25px;
    color: var(--med-white);
}

.box_video .video-title {
    margin: 9px 0;
    color: inherit;
    font-size: clamp(1.3rem, 2.4vw, 2rem);
    font-weight: 760;
    line-height: 1.18;
}

.box_video .s_text {
    display: -webkit-box;
    overflow: hidden;
    max-width: 65ch;
    font-size: .92rem;
    opacity: .9;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.box_video .date,
.box_video .views {
    color: inherit;
    opacity: .84;
}

.category {
    display: inline-flex;
    align-items: center;
    min-height: 27px;
    padding: 3px 9px;
    color: var(--med-blue-900);
    background: #d8f7f3;
    border-radius: 99px;
    font-size: .74rem;
    font-weight: 760;
    letter-spacing: .025em;
    text-transform: uppercase;
}

.sub_head {
    margin: 24px 0 8px;
    color: var(--med-blue-900);
    font-size: 1.18rem;
    font-weight: 750;
    line-height: 1.3;
}

.sub_head:first-child {
    margin-top: 0;
}

.sub_head h1,
.sub_head h2,
.sub_head h3 {
    margin: 0;
    font: inherit;
}

.sub_head a {
    color: inherit;
    text-decoration: none;
}

.sub_head img[src*="triangle"] {
    display: none;
}

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

.main_list > li {
    margin: 14px 0;
    padding: 18px;
}

.main_list h2,
.top_side h2,
.top_side_article h2,
.top_side_news h2,
.top_side_cat h2 {
    margin: 0 0 8px;
    font-size: 1.06rem;
    line-height: 1.35;
}

.main_list h2 a,
.top_side h2 a,
.top_side_article h2 a,
.top_side_news h2 a,
.top_side_cat h2 a {
    color: var(--med-blue-900);
    text-decoration: none;
}

.main_list h2 a:hover,
.top_side h2 a:hover,
.top_side_article h2 a:hover,
.top_side_news h2 a:hover,
.top_side_cat h2 a:hover {
    color: var(--med-teal-800);
}

.date,
.light_small_font,
.text_tip_author_date,
.text_tip_view_comments {
    color: var(--med-slate-500);
    font-size: .78rem;
}

.news_pic,
.top_side_article img,
.top_side_news img {
    float: left;
    width: 118px;
    max-height: 88px;
    margin: 4px 14px 8px 0;
    object-fit: cover;
    border-radius: 10px;
}

.table1 {
    width: 100%;
    margin: 14px 0;
}

.table1 td {
    padding: 12px;
    border-color: var(--med-slate-200);
}

.bg_light_green,
.bg_green {
    margin: 8px 0;
    background: var(--med-white);
}

.bg_green {
    background: var(--med-teal-100);
    border-color: #b8e7e2;
}

.cat_menu_pic,
.cat_menu_pic_s {
    width: 100%;
}

.actionButton a,
.button a,
a.button,
button:not(.nav-toggle):not(.back-to-top):not(.s_button),
input[type="submit"],
input[type="button"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 8px 15px;
    color: var(--med-white);
    background: var(--med-teal-800);
    border: 1px solid var(--med-teal-800);
    border-radius: 10px;
    font-weight: 670;
    line-height: 1.2;
    text-decoration: none;
}

.actionButton a:hover,
.button a:hover,
a.button:hover,
button:not(.nav-toggle):not(.back-to-top):not(.s_button):hover,
input[type="submit"]:hover,
input[type="button"]:hover {
    color: var(--med-white);
    background: var(--med-teal-900);
    border-color: var(--med-teal-900);
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
input[type="tel"],
input[type="url"],
input[type="number"],
select,
textarea {
    max-width: 100%;
    min-height: 42px;
    padding: 9px 11px;
    color: var(--med-blue-900);
    background: var(--med-white);
    border: 1px solid var(--med-slate-300);
    border-radius: 9px;
    outline: none;
}

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

input:focus,
select:focus,
textarea:focus {
    border-color: var(--med-teal-700);
    box-shadow: 0 0 0 3px rgba(9, 151, 140, .13);
}

#load,
#load_firm,
#load_barter,
#load_press,
#load_stat {
    margin: 18px 0;
    text-align: center;
}

#load > div,
#load_firm > div,
#load_barter > div,
#load_press > div,
#load_stat > div {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 8px 15px;
    color: var(--med-teal-900);
    background: var(--med-teal-50);
    border: 1px solid #c6ebe7;
    border-radius: 10px;
    font-size: .9rem;
    font-weight: 680;
    cursor: pointer;
}

.pagination,
.pages {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 22px 0;
}

.pagination a,
.pages a,
.pagination span,
.pages span {
    display: inline-grid;
    min-width: 38px;
    min-height: 38px;
    padding: 6px;
    border: 1px solid var(--med-slate-200);
    border-radius: 8px;
    place-items: center;
    text-decoration: none;
}

.site-footer {
    color: #c9dcdf;
    background: var(--med-blue-900);
}

.site-footer__grid {
    display: grid;
    grid-template-columns: minmax(260px, 1.35fr) repeat(3, minmax(150px, 1fr));
    gap: 38px;
    padding-top: 46px;
    padding-bottom: 38px;
}

.site-brand--footer {
    display: inline-flex;
    padding: 7px 10px;
    background: var(--med-white);
    border-radius: 12px;
}

.site-footer__about p {
    max-width: 41ch;
    margin-top: 17px;
    font-size: .88rem;
}

.site-footer h2 {
    margin: 3px 0 13px;
    color: var(--med-white);
    font-size: .92rem;
}

.site-footer ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-footer li + li {
    margin-top: 8px;
}

.site-footer a {
    color: #d9eeef;
    font-size: .86rem;
    text-decoration: none;
}

.site-footer a:hover {
    color: var(--med-white);
    text-decoration: underline;
}

.site-footer__note p {
    font-size: .84rem;
}

.site-footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 68px;
    border-top: 1px solid rgba(255, 255, 255, .13);
    font-size: .82rem;
}

.back-to-top {
    padding: 7px 0;
    color: #d9eeef;
    background: transparent;
    border: 0;
}

.back-to-top:hover {
    color: var(--med-white);
}

.page-backdrop {
    position: fixed;
    z-index: 80;
    inset: 0;
    display: none;
    background: rgba(8, 42, 49, .48);
}

.mistake-overlay {
    position: fixed;
    z-index: 1000;
    inset: 0;
    display: grid;
    padding: 18px;
    overflow-y: auto;
    background: rgba(8, 42, 49, .62);
    place-items: center;
}

.mistake-dialog {
    position: relative;
    width: min(100%, 560px);
    padding: 27px;
    background: var(--med-white);
    border-radius: var(--med-radius);
    box-shadow: 0 30px 80px rgba(8, 42, 49, .28);
}

.mistake-dialog__close {
    position: absolute;
    top: 12px;
    right: 12px;
    display: grid;
    width: 38px;
    min-height: 38px;
    padding: 0;
    color: var(--med-blue-700);
    background: var(--med-slate-100);
    border: 0;
    border-radius: 10px;
    font-size: 1.55rem;
    line-height: 1;
    place-items: center;
}

.mistake-dialog__lead {
    color: var(--med-slate-500);
}

.mistake-form label {
    display: grid;
    gap: 5px;
    margin-top: 13px;
    color: var(--med-blue-700);
    font-size: .84rem;
    font-weight: 680;
}

.mistake-form input,
.mistake-form textarea {
    width: 100%;
    color: var(--med-blue-900);
    font-weight: 400;
}

.mistake-form [readonly] {
    background: var(--med-slate-100);
}

.mistake-dialog__actions {
    display: flex;
    gap: 9px;
    margin-top: 18px;
}

.mistake-dialog__actions .mistake-cancel {
    color: var(--med-blue-700) !important;
    background: var(--med-white) !important;
    border-color: var(--med-slate-300) !important;
}

.mistake-status {
    min-height: 1.5em;
    margin: 12px 0 0;
    color: var(--med-teal-900);
    font-size: .86rem;
}

.mobile-nav,
.dark_bg > .dark_page,
.dark_bg > .dark_page_footer {
    display: none !important;
}

.h10 { height: 10px; }
.h15 { height: 15px; }
.h20 { height: 20px; }
.h50 { height: 50px; }
.fl { float: left; }
.fr { float: right; }
.dnone,
.none { display: none !important; }

@media (max-width: 1080px) {
    .site-header__tools .quiet-link {
        display: none;
    }

    .primary-navigation a {
        padding-inline: 9px;
        font-size: .86rem;
    }

    .header-search {
        flex-basis: 220px;
    }

    .site-footer__grid {
        grid-template-columns: 1.5fr repeat(2, 1fr);
    }

    .site-footer__note {
        grid-column: 2 / -1;
    }
}

@media (max-width: 900px) {
    .site-header__notice span {
        display: none;
    }

    .site-header__notice .site-shell {
        justify-content: center;
        text-align: center;
    }

    .site-header__main {
        min-height: 76px;
    }

    .site-brand img {
        width: 190px;
    }

    .site-header__tools {
        display: none;
    }

    .nav-toggle {
        display: inline-flex;
        margin-left: auto;
    }

    .site-header__navigation-inner {
        display: block;
        min-height: 0;
    }

    .primary-navigation {
        position: fixed;
        z-index: 120;
        top: 0;
        right: 0;
        bottom: 0;
        width: min(86vw, 360px);
        padding: 90px 18px 24px;
        overflow-y: auto;
        background: var(--med-white);
        box-shadow: -18px 0 45px rgba(18, 63, 74, .16);
        transform: translateX(105%);
        transition: transform .23s ease;
    }

    .primary-navigation.is-open {
        transform: translateX(0);
    }

    .primary-navigation ul {
        display: block;
        min-height: 0;
    }

    .primary-navigation li {
        display: block;
    }

    .primary-navigation a {
        min-height: 46px;
        padding: 10px 12px;
        border-radius: 9px;
        font-size: .98rem;
    }

    .primary-navigation a::after {
        display: none;
    }

    .primary-navigation a:hover,
    .primary-navigation a.is-active {
        background: var(--med-teal-50);
    }

    .header-search {
        padding: 10px 0;
    }

    .nav-is-open .page-backdrop {
        display: block;
    }

    .nav-is-open .nav-toggle {
        position: fixed;
        z-index: 140;
        top: 21px;
        right: 18px;
    }

    .content > .left,
    .content > .center,
    .content > .right {
        flex-basis: calc(50% - 11px);
    }

    .content > .right_n {
        flex: 1 1 100%;
        width: 100%;
    }

    .site-footer__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .site-footer__about {
        grid-column: 1 / -1;
    }

    .site-footer__note {
        grid-column: auto;
    }
}

@media (max-width: 680px) {
    .site-shell,
    .content {
        width: min(calc(100% - 28px), var(--med-shell));
    }

    .site-main {
        padding-top: 18px;
        padding-bottom: 30px;
    }

    .content {
        display: block;
    }

    .content > .left,
    .content > .center,
    .content > .right,
    .content > .coll_n,
    .content > .right_n {
        width: 100%;
        margin-bottom: 18px;
    }

    .content > .left > .coll,
    .content > .center > .coll,
    .content > .right > .coll,
    .board_main .coll,
    .right_n.coll {
        padding: 14px;
    }

    .sub_menu {
        position: relative;
        overflow-x: auto;
        scrollbar-width: thin;
    }

    .sub_menu ul,
    .sub_menu .sub_navigation {
        flex-wrap: nowrap;
        width: max-content;
        min-width: 100%;
    }

    .box_video,
    .box_video .b_photo > img {
        min-height: 280px;
    }

    .box_video .text_tip {
        padding: 18px;
    }

    .box_video .s_text {
        display: none;
    }

    .main_list > li {
        padding: 14px;
    }

    .news_pic,
    .top_side_article img,
    .top_side_news img {
        width: 96px;
        max-height: 76px;
        margin-right: 11px;
    }

    table,
    tbody,
    tr,
    td,
    th {
        max-width: 100%;
    }

    .table1 td {
        padding: 9px;
    }

    .site-footer__grid {
        grid-template-columns: 1fr;
        gap: 25px;
        padding-top: 34px;
    }

    .site-footer__about,
    .site-footer__note {
        grid-column: auto;
    }
}

@media (max-width: 420px) {
    .site-header__notice {
        font-size: .73rem;
    }

    .site-header__main {
        min-height: 70px;
    }

    .site-brand img {
        width: 168px;
    }

    .nav-toggle {
        min-width: 44px;
        padding-inline: 11px;
    }

    .nav-toggle > span:last-child {
        display: none;
    }

    .box_video,
    .box_video .b_photo > img {
        min-height: 245px;
    }

    .box_video .video-title {
        font-size: 1.25rem;
    }

    .site-footer__bottom {
        align-items: flex-start;
        flex-direction: column;
        justify-content: center;
        padding-block: 15px;
    }
}

.form-error,
.form-success {
    width: min(100%, 620px);
    margin: 16px auto;
    padding: 14px 16px;
    border-radius: var(--med-radius-small);
    border: 1px solid #f3b7b4;
    background: #fff3f2;
    color: #8e2923;
}

.form-success {
    border-color: #9ed4bd;
    background: #edf9f3;
    color: #176445;
}

.form-error ul {
    margin: 0;
    padding-left: 20px;
}

.account-form {
    display: grid;
    gap: 16px;
    width: min(100%, 520px);
    margin: 20px auto;
    padding: clamp(20px, 4vw, 34px);
    border: 1px solid var(--med-slate-300);
    border-radius: var(--med-radius);
    background: #fff;
    box-shadow: var(--med-shadow);
}

.account-form label {
    display: grid;
    gap: 7px;
    color: var(--med-blue-900);
    font-weight: 700;
}

.account-form input {
    width: 100%;
}

/* Legacy breadcrumb artwork must stay icon-sized even when it is an SVG. */
img[src*="/assets/icon-chevron.svg"] {
    display: inline-block !important;
    width: .78em !important;
    min-width: .78em !important;
    max-width: .78em !important;
    height: .78em !important;
    min-height: 0 !important;
    margin: 0 .18em !important;
    object-fit: contain !important;
    vertical-align: -.06em !important;
}

.legacy-image-missing,
img[src="/pics/time.gif"] {
    display: none !important;
}

.is-medical-placeholder {
    color: transparent;
    background: var(--med-teal-50);
    object-fit: cover !important;
}

/* Clearer reading surface for individual news, articles and advertisements. */
.page-detail .content > .coll_n {
    flex-basis: 840px;
}

.page-detail .content > .right_n {
    flex-basis: 310px;
    width: min(100%, 310px);
}

.page-detail .content > .coll_n.coll {
    padding: clamp(20px, 3vw, 34px);
    background: var(--med-white);
    border: 1px solid var(--med-slate-200);
    border-radius: var(--med-radius);
    box-shadow: var(--med-shadow);
}

.page-detail .coll_n > h1,
.page-detail .board_main h1 {
    max-width: 28ch;
    margin: 4px 0 15px;
    color: var(--med-blue-900);
    font-size: clamp(1.75rem, 3.5vw, 2.65rem);
    line-height: 1.13;
    letter-spacing: -.032em;
}

.page-detail .main_font {
    color: #294c54;
    font-size: 1rem !important;
    line-height: 1.74 !important;
}

.page-detail .main_font p {
    margin: 0 0 1.15em;
}

.page-detail .main_font img:not([src*="icon-chevron"]) {
    max-width: 100% !important;
    height: auto !important;
    border-radius: 12px;
}

.section-barter.page-detail .content > .left.disp,
.section-barter.page-detail .content > .right.disp1 {
    display: none !important;
}

.section-barter.page-detail .content > .center.board_main {
    flex: 1 1 100%;
    width: min(100%, 1060px) !important;
    margin-inline: auto;
}

.section-barter.page-detail .board_main .coll {
    padding: clamp(20px, 3.5vw, 38px);
}

.section-barter.page-detail .board_main table {
    width: 100%;
    table-layout: auto;
}

/* Modern sign-in screen. */
.auth-content {
    display: block;
}

.auth-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(380px, .95fr);
    width: 100%;
    max-width: 1060px;
    margin: 12px auto 22px;
    overflow: hidden;
    background: var(--med-white);
    border: 1px solid var(--med-slate-200);
    border-radius: 24px;
    box-shadow: 0 24px 70px rgba(18, 63, 74, .13);
}

.auth-intro {
    position: relative;
    display: flex;
    min-height: 560px;
    padding: clamp(30px, 5vw, 58px);
    overflow: hidden;
    color: var(--med-white);
    background: linear-gradient(145deg, #075f5a 0%, #087f76 58%, #0a978b 100%);
    flex-direction: column;
    justify-content: center;
}

.auth-intro::after {
    position: absolute;
    right: -105px;
    bottom: -135px;
    width: 360px;
    height: 360px;
    border: 55px solid rgba(255, 255, 255, .07);
    border-radius: 50%;
    content: "";
}

.auth-intro__mark {
    display: grid;
    width: 54px;
    height: 54px;
    margin-bottom: 38px;
    color: var(--med-teal-900);
    background: var(--med-white);
    border-radius: 16px;
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
    place-items: center;
}

.auth-intro__eyebrow {
    margin: 0 0 10px !important;
    color: #c8f2ed;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.auth-intro h1 {
    max-width: 13ch;
    margin: 0 0 18px;
    color: inherit;
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1.08;
    letter-spacing: -.04em;
}

.auth-intro > p:not(.auth-intro__eyebrow) {
    max-width: 48ch;
    margin: 0;
    color: rgba(255, 255, 255, .82);
}

.auth-intro ul {
    display: grid;
    gap: 10px;
    margin: 30px 0 0;
    padding: 0;
    list-style: none;
}

.auth-intro li {
    position: relative;
    padding-left: 27px;
    color: rgba(255, 255, 255, .9);
    font-size: .9rem;
}

.auth-intro li::before {
    position: absolute;
    top: .28em;
    left: 0;
    display: grid;
    width: 17px;
    height: 17px;
    color: var(--med-teal-900);
    background: #c7f2ed;
    border-radius: 50%;
    content: "✓";
    font-size: .68rem;
    font-weight: 900;
    place-items: center;
}

.auth-card {
    align-self: center;
    padding: clamp(30px, 5vw, 58px);
}

.auth-card__header {
    margin-bottom: 26px;
}

.auth-card__badge {
    display: inline-flex;
    margin-bottom: 15px;
    padding: 5px 9px;
    color: var(--med-teal-900);
    background: var(--med-teal-100);
    border-radius: 99px;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .035em;
    text-transform: uppercase;
}

.auth-card h2 {
    margin: 0 0 8px;
    color: var(--med-blue-900);
    font-size: clamp(1.65rem, 3vw, 2.15rem);
    line-height: 1.16;
    letter-spacing: -.03em;
}

.auth-card__header p {
    margin: 0;
    color: var(--med-slate-500);
    font-size: .92rem;
    line-height: 1.5;
}

.auth-message {
    width: 100%;
    margin: 0 0 18px;
    padding: 11px 13px;
    color: var(--med-blue-700);
    background: var(--med-slate-100);
    border: 1px solid var(--med-slate-200);
    border-radius: 10px;
    font-size: .86rem;
}

.auth-message--error {
    color: #8e2923;
    background: #fff3f2;
    border-color: #f3b7b4;
}

.auth-form {
    display: grid;
    gap: 17px;
}

.auth-field {
    display: grid;
    gap: 7px;
    color: var(--med-blue-900);
    font-size: .86rem;
    font-weight: 720;
}

.auth-field input {
    width: 100%;
    min-height: 50px;
    padding: 11px 13px;
    color: var(--med-blue-900);
    background: var(--med-white);
    border: 1px solid var(--med-slate-300);
    border-radius: 11px;
    outline: none;
}

.auth-field input:focus {
    border-color: var(--med-teal-700);
    box-shadow: 0 0 0 4px rgba(9, 151, 140, .12);
}

.auth-submit {
    min-height: 50px;
    margin-top: 3px;
    color: var(--med-white);
    background: var(--med-teal-800);
    border: 0;
    border-radius: 11px;
    font-weight: 780;
    box-shadow: 0 10px 22px rgba(8, 127, 118, .2);
}

.auth-submit:hover {
    background: var(--med-teal-900);
}

.auth-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px 17px;
    margin-top: 22px;
    padding-top: 19px;
    border-top: 1px solid var(--med-slate-200);
}

.auth-links a {
    font-size: .84rem;
    font-weight: 680;
    text-decoration: none;
}

@media (min-width: 1101px) {
    .page-home .content {
        display: grid;
        grid-template-columns: minmax(0, 1.08fr) minmax(0, 1.08fr) minmax(290px, .84fr);
        gap: 24px;
    }

    .page-home .content > .left,
    .page-home .content > .center,
    .page-home .content > .right {
        width: auto;
        min-width: 0;
    }
}

@media (max-width: 820px) {
    .auth-shell {
        grid-template-columns: 1fr;
        max-width: 620px;
        border-radius: 18px;
    }

    .auth-intro {
        min-height: 0;
        padding-block: 34px;
    }

    .auth-intro__mark,
    .auth-intro ul {
        display: none;
    }

    .auth-intro h1 {
        max-width: 18ch;
        font-size: clamp(1.75rem, 7vw, 2.35rem);
    }
}

@media (max-width: 900px) {
    .content {
        max-width: none;
    }

    .sub_menu {
        display: block !important;
    }

    .page-detail .main_font p img,
    .page-detail .img_box2 img {
        display: block !important;
    }
}

@media (max-width: 680px) {
    .page-detail .content > .coll_n.coll {
        padding: 18px 15px;
        border-radius: 14px;
    }

    .auth-shell {
        margin-top: 0;
    }

    .auth-card {
        padding: 26px 20px 30px;
    }
}

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