/* Стилизация сайта Veritas-Cats в соответствии с оригинальным оформлением DLE */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    min-width: 980px;
    margin: 0;
    font-family: Tahoma, Verdana, Helvetica, sans-serif;
    font-size: 13px;
    line-height: 1.4;
    color: #3f3f3f;
    background: #fdfcfc;
}

a {
    color: #990033;
    text-decoration: none;
}

a:hover {
    color: #210700;
    text-decoration: underline;
}

a:active {
    color: #d2451f;
}

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

h1 {
    font-size: 160%;
    font-weight: normal;
}

h2 {
    font-size: 150%;
}

h3 {
    font-size: 120%;
    font-weight: bold;
    margin: 0;
}

h4 {
    font-size: 100%;
}

p {
    margin: 6px 0;
}

/* Шапка */
.site-header {
    background: #ffffff url('../images/vbg.jpg') repeat-x;
}

.site-header__inner {
    max-width: 994px;
    margin: 0 auto;
    padding: 0;
}

.logo-table {
    width: 992px;
    margin: 0 auto;
    border-collapse: collapse;
}

.logo-table td {
    padding: 0;
}

.logo-table img {
    display: block;
}

.menu-row {
    height: 43px;
    background: url('../images/top1.jpg') repeat-x center top;
    text-align: center;
}

.menu-row__nav {
    width: 100%;
    height: 100%;
}

.menu-row__inner {
    position: relative;
    width: 992px;
    max-width: 100%;
    margin: 0 auto;
    height: 100%;
    box-sizing: border-box;
}

.menu-row__link {
    position: absolute;
    display: block;
    height: 100%;
}

.menu-row__link:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.8);
    outline-offset: -2px;
}

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

/* Основная сетка */
#wrapper,
#shadow-left,
#shadow-right,
#container {
    width: 994px;
    margin: 0 auto;
}

#wrapper {
    background: #ffffff;
}

#shadow-left,
#shadow-right,
#container {
    padding-bottom: 25px;
    background: #ffffff;
}

.slogan {
    width: 964px;
    margin: 16px auto 12px;
    padding: 14px 20px;
    text-align: center;
    font-size: 14px;
    font-weight: bold;
    color: #990033;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid #f0e4db;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

#leftbox {
    float: left;
    width: 209px;
    margin-top: 22px;
}

#rightbox {
    float: right;
    width: 209px;
    margin-top: 22px;
}

#mainbox {
    float: left;
    width: 576px;
    margin-top: 22px;
}

/* Боковые блоки */
.sidebar-block {
    margin: 0 6px 14px;
    background: #ffffff;
    border: 1px solid #d9cec4;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.18);
}

.sidebar-block--right {
    border-color: #d2c7bc;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.sidebar-block__body {
    padding: 14px 14px 18px;
    background: linear-gradient(#ffffff, #fbf9f7);
}

.sidebar-block__title {
    margin: 0 0 10px;
    padding-bottom: 6px;
    font-size: 14px;
    text-transform: uppercase;
    color: #5b5b5b;
    border-bottom: 1px solid #d8d0c8;
}

.sidebar-block__content {
    font-size: 12px;
    line-height: 1.5;
}

.sidebar-block__content img {
    display: block;
    margin: 0 auto;
}

.widget-content #sblocks_pitomcy {
    max-width: 180px;
    margin: 0 auto;
}

.widget-content #sblocks_pitomcy .slider,
.widget-content #sblocks_pitomcy .slider .container {
    overflow: visible;
}

.widget-content #sblocks_pitomcy .slides_container,
.widget-content #sblocks_pitomcy .slides_control {
    min-height: 180px;
}

.widget-content #sblocks_pitomcy img {
    display: block;
    width: 100%;
    height: auto;
}

.widget-content {
    font-size: 12px;
    line-height: 1.5;
}

.widget-content::after {
    content: "";
    display: table;
    clear: both;
}

.sidebar-block__content ul,
.sidebar-block__content ol {
    margin: 8px 0 8px 14px;
}

/* Хлебные крошки */
.speedbar {
    padding: 8px 14px 6px;
    font-size: 11px;
    color: #757575;
    background: #f7f2ef;
    border: 1px solid #e4dcd6;
}

.speedbar a {
    color: #757575;
}

.speedbar a:hover {
    text-decoration: underline;
}

/* Основной контент */
.content-frame {
    position: relative;
    margin-bottom: 18px;
    background: #ffffff;
}

.content-frame::before,
.content-frame::after {
    content: "";
    display: block;
    height: 8px;
    background: linear-gradient(#f8f3ef, #ffffff);
}

.content-frame__inner {
    padding: 12px 14px 18px;
    background: #ffffff;
}

.content {
    margin-bottom: 16px;
    background: #ffffff;
    border: 1px solid #e2d8d0;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6);
    display: flow-root;
}

.content:last-child {
    margin-bottom: 0;
}

.ntitle {
    display: block;
    padding: 12px 18px 6px;
    font-size: 18px;
    font-weight: bold;
    color: #3c0000;
}

.ntitle span {
    font-size: 18px;
    color: #999999;
    margin-right: 6px;
}

.post-preview__body {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.post-preview__excerpt {
    margin: 0;
    color: #3c0000;
}

.post-preview__more {
    align-self: flex-start;
}

.maincont {
    padding: 10px 16px 16px;
    line-height: 1.6;
}

.maincont a {
    font-weight: bold;
    font-size: 11px;
    color: #ab4f5f;
}

.maincont::after {
    content: "";
    display: table;
    clear: both;
}

.border {
    margin-bottom: 12px;
    text-align: center;
}

.border img {
    border: 2px solid #990033;
}

.morelink {
    height: 20px;
    margin: 0 16px 16px;
    background: url('../images/dot.gif') repeat-x left bottom;
}

/* Списки */
ul {
    margin: 10px 0;
    padding-left: 16px;
}

ul li {
    margin: 5px 0;
}

/* Футер */
.footer__inner {
    width: 100%;
    max-width: 994px;
    margin: 0 auto;
}

footer {
    clear: both;
    width: 994px;
    max-width: 100%;
    margin: 24px auto 30px;
    text-align: center;
    color: #3f3f3f;
}

.footer-banner {
    width: 100%;
}

.footer-banner__inner {
    height: 76px;
    max-width: 986px;
    margin: 0 auto;
    background: url('../images/bottom.jpg') repeat-x center top;
    border-bottom: none;
}

.footer__inner {
    max-width: 994px;
    margin: 0 auto;
    padding: 0 10px;
}

.footer-text {
    padding: 12px 10px 16px;
    border-top: none;
    background: #ffffff;
    font-size: 12px;
}

.footer-text p {
    margin: 4px 0;
}

footer a {
    color: #990033;
}

footer a:hover {
    color: #210700;
}

/* Пагинация */
.navigation {
    color: #666666;
    border: 0;
}

.navigation__page,
.navigation__control {
    display: inline-block;
    margin: 0 1px;
    padding: 3px 6px;
    font-size: 11px;
    text-decoration: none;
    color: #636363;
    background: #f9f9f9;
    border: 1px solid #e6e6e6;
}

.navigation__page:hover,
.navigation__control:hover {
    background: #ff7800;
    color: #ffffff;
    border-color: #ff7800;
    text-decoration: none;
}

.navigation__page--current,
.navigation__control--disabled {
    background: #ffffff;
    color: #cccccc;
    border-color: #e6e6e6;
    cursor: default;
}

.navigation__page--current:hover,
.navigation__control--disabled:hover {
    background: #ffffff;
    color: #cccccc;
    border-color: #e6e6e6;
}

/* Адаптивность для узких экранов */
@media (max-width: 980px) {
    body {
        min-width: 0;
    }

    #wrapper,
    #shadow-left,
    #shadow-right,
    #container {
        width: 100%;
    }

    #container {
        padding: 0 10px 25px;
    }

    #leftbox,
    #rightbox,
    #mainbox {
        float: none;
        width: 100%;
        margin: 20px auto 0;
    }

    .content-frame,
    .sidebar-block {
        margin-left: auto;
        margin-right: auto;
    }

    footer {
        width: 100%;
        margin-left: auto;
        margin-right: auto;
        padding: 0 10px;
    }
}