@charset "UTF-8";
html,
body {
    height: 100%;
    margin: 0;
}

body {
    font-family: verdana, tahoma, arial, sans-serif;
    font-size: 70.5% !important;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    overflow: hidden;
    background-repeat: no-repeat;
    background-position: center center;
    background-attachment: fixed;
    background-size: cover;
}
.page-center {
    width: 100%;
    height: 100vh;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-align: center; /* для inline/inline-block детей */
}
#login-box {
    /*margin-top: 80px; */
    width: 380px;
    display: inline-block;
    background: none repeat scroll 0 0 #ffffff;
    margin-top: calc(100vh / 10);
    justify-self: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

#login-head {
    font-size: 110%;
    font-weight: bold;
    background: url("img/top-bottom.gif") repeat-x scroll 0 0 transparent;
    overflow: hidden;
    padding: 6px;
    text-align: left;
}

#login-head-left {
    background: url("img/corners-sprite.gif") no-repeat scroll 0 0 #f0f0f0;
    border-bottom: 1px solid #d0d0d0;
    padding-left: 6px;
}

#login-head-right {
    background: url("img/corners-sprite.gif") no-repeat scroll right 0
        transparent;
    padding-right: 6px;
}

#login-form .x-form-item-label {
    font-weight: bold;
}

#info-box {
    font-size: 105% !important;
    padding: 8px 8px 0 8px;
    text-align: left;
    border-left: 1px solid #d0d0d0;
    border-right: 1px solid #d0d0d0;
}

#info-box div {
    border-bottom: 1px solid #eee;
    padding-bottom: 8px;
}

#left-box {
    padding-top: 16px;
    text-align: center;
    vertical-align: top;
    width: 136px;
}

#left-box a {
    color: #0066dd;
    text-decoration: underline;
    font-size: 101% !important;
    font-weight: bold;
}

#left-box a:hover {
    color: #0066dd;
    text-decoration: underline;
}

#login-div {
    width: 226px;
    vertical-align: top;
    padding: 0 8px 8px 8px;
}

#login-div span {
    display: block;
    font-size: 110%;
    font-weight: bold;
    padding: 8px 0 4px 0;
}

#login-div input {
    width: 218px;
    background: url("img/text-bg.gif") repeat-x scroll 0 0 #ffffff;
    border: 1px solid #b5b8c8;
    padding: 1px 3px;
    font-size: 112%;
}

#login-box table {
    border-right: 1px solid #d0d0d0;
    border-left: 1px solid #d0d0d0;
    border-bottom: 1px solid #d0d0d0;
}

#login-btn {
    text-align: center;
    padding: 8px 0 8px 0;
}

#login-btn input {
    padding: 2px 16px 2px 16px;
}

#terms-note {
    padding: 0 8px;
    text-align: center;
}

div.msg-box {
    margin-top: 16px;
    margin-bottom: 16px;
    font-size: 120%;
    font-weight: normal;
    text-align: left;
    background-color: #ffffff;
    border: 1px solid #cccccc;
    display: inline-block;
    padding: 8px;
}

.ny-msg-box {
    margin-top: 16px;
    margin-bottom: 16px;
    font-size: 180%;
    font-weight: normal;
    text-align: left;
    font-family: "Times New Roman", Times, serif;
    background: none no-repeat scroll 0 0 #fff;
    /* border: 1px solid #cccccc; #F0F0F0*/
    display: inline-block;
    color: #222;
    padding: 8px;
    vertical-align: top;
}

/* ===== Раскладка: форма + новости рядом ===== */
.layout-row {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: start;
    gap: 28px;
    padding: 0 20px;
    box-sizing: border-box;
    height: 100%;
}

/* ===== Блок новостей ===== */
.news-block {
    width: 600px;
    max-width: 100%;
    align-self: stretch;
    margin: calc(100vh / 10) 0;
    background: #ffffff;
    border: 1px solid #d0d0d0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    text-align: left;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.news-block-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    padding: 12px 16px;
    background: url("img/top-bottom.gif") repeat-x scroll 0 0 #f8f8f8;
    border-bottom: 1px solid #d0d0d0;
}

.news-block-title {
    font-size: 112%;
    font-weight: bold;
    letter-spacing: 0.02em;
    color: #222;
}

.news-block-count {
    font-size: 100%;
    color: #6f6f6f;
}

.news-scroll {
    flex: 1 1 auto;
    overflow-y: auto;
    min-height: 0;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: #b5b8c8 #f0f0f0;
}

.news-scroll::-webkit-scrollbar {
    width: 8px;
}

.news-scroll::-webkit-scrollbar-track {
    background: #f0f0f0;
}

.news-scroll::-webkit-scrollbar-thumb {
    background: #b5b8c8;
    border-radius: 4px;
}

.news-scroll::-webkit-scrollbar-thumb:hover {
    background: #8f94a8;
}

.news-item {
    padding: 12px 16px;
    border-bottom: 1px solid #eee;
    transition: background-color 0.15s ease;
}

.news-item:last-child {
    border-bottom: none;
}

.news-item:hover {
    background-color: #f7f9fc;
}

.news-date {
    display: block;
    font-size: 96%;
    color: #6f6f6f;
    letter-spacing: 0.04em;
    margin-bottom: 3px;
}

.news-title {
    margin: 0 0 5px 0;
    font-size: 112%;
    font-weight: bold;
    line-height: 1.3;
    color: #222;
}

.news-content {
    font-size: 103%;
    line-height: 1.55;
    color: #444;
}

.news-content p {
    margin: 0;
}

.news-content p + p {
    margin-top: 6px;
}

.news-content ul {
    margin: 6px 0 0 0;
    padding-left: 18px;
}

.news-content li + li {
    margin-top: 2px;
}

.news-content a {
    color: #0066dd;
    text-decoration: underline;
}

.news-content a:hover,
.news-content a:focus-visible {
    color: #004bb3;
}

.news-content strong {
    color: #222;
}

/* ===== Фокус и состояния ===== */
#login-div input:focus {
    border-color: #0066dd;
    outline: 2px solid rgba(0, 102, 221, 0.35);
    outline-offset: 0;
}

#login-btn input {
    border: 1px solid #b5b8c8;
    background: #f0f0f0;
    cursor: pointer;
}

#login-btn input:hover {
    background: #e3e6ea;
}

#login-btn input:focus-visible {
    outline: 2px solid #0066dd;
    outline-offset: 2px;
}

.news-content a:focus-visible,
#left-box a:focus-visible,
#terms-note a:focus-visible {
    outline: 2px solid #0066dd;
    outline-offset: 2px;
}

/* ===== Мобильная версия ===== */
@media (max-width: 900px) {
    body {
        overflow: auto;
    }

    .page-center {
        height: auto;
        min-height: 100vh;
        padding: 24px 0;
    }

    .layout-row {
        grid-template-columns: 1fr;
        justify-items: center;
        gap: 24px;
        height: auto;
    }

    .news-block {
        width: 100%;
        max-width: 420px;
        margin: 0;
        align-self: center;
    }

    .news-scroll {
        max-height: 320px;
    }

    #login-box {
        margin-top: 0;
    }
}
