/*r*/
html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, font, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td {margin:0; padding:0; border:0; outline:0; font-size:100%; background:transparent;}
body {line-height:1;}
ol, ul {list-style: none;}
blockquote, q {quotes: none;}
blockquote:before, blockquote:after, q:before, q:after {content: ''; content: none;}
:focus {outline:0;}
/*/r*/

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

/*g*/
body {font:18px/1.4 Georgia, serif; color:#555; background:#fff;}
a {color:#999; text-decoration:none; border-bottom:1px solid #eee;}
a:hover {color:#000; border-bottom:1px solid #ccc;}
p {margin-bottom:20px;}
blockquote {margin:20px 10px; font-style:italic;}
h1, h2, h3, h4, .page-date {font-family:Helvetica, Arial, sans-serif; letter-spacing:-1px;}
h1 {font-size:40px;}
h2 {font-size:23px;}

.b-menu, .page-info, .pagination {font-family:Helvetica, Arial, sans-serif;}
input.text, input#flogin_user, input#flogin_password {width:170px; padding:4px; border:1px solid #ccc; font:14px Georgia, Times, serif;}
input.submit, input#flogin_submit {overflow:visible; padding:3px; border:1px solid #aaa; cursor:pointer; text-transform:uppercase; font:bold 13px Arial, sans-serif; color:#333; background:#f0f0f0; border-radius:5px;}
textarea, select {border:1px solid #ccc; border-radius:3px;}
label {padding:6px 0; text-transform:uppercase; font:bold 11px Arial, sans-serif; color:#333;}
.b-info-extra {margin:40px 0 30px; font:16px/1.4 Helvetica, Arial, sans-serif; color:#aaa;}
.b-info-extra p {margin:0;}
.b-info-extra h2 {font-size:23px; color:#333;}
.b-category-feed {font:16px Helvetica, Arial, sans-serif; color:#aaa;}
span.required {color:#f55;}
h2 a {border:none; color:#000; text-decoration:none; font-size:30px;}
h2 a:hover, #header h1 a:hover {border:none; color:#c00;}
/*/g*/

/*str*/
#wrapper {
    width: 1160px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
}

#header {
    flex: 0 0 100%;
    padding: 0 10px;
    border-bottom: 1px solid #ccc;
    display: flow-root;
}

#wrap-page {
    flex: 0 0 860px;
    min-width: 0;
}

#page {
    margin-bottom: 0;
    padding: 0 50px 35px 10px;
    border-right: 1px solid #ccc;
    text-align: justify;
    hyphens: auto;
}

#sidebars {
    flex: 0 0 300px;
    min-width: 0;
    padding: 40px 10px 40px 30px;
    font-size: 16px;
}

#footer {
    flex: 0 0 100%;
    padding: 30px 10px 10px;
    border-top: 1px solid #ccc;
    text-align: center;
    font-size: 14px;
    font-style: italic;
}
/*/str*/

/*header*/
#header h3 a {border:none; text-decoration:none;}
.b-title .b-subtitle { font: italic 16px Georgia, serif; color: #aaa; margin-top: 5px; }
.b-title {float:left; width:40%; padding:25px 0;}
.b-menu {float:right; padding-top:45px; text-transform:uppercase; font-weight:bold;}
.b-menu li {float:left; margin-left:13px; font-size:14px; line-height:1.8;}
.b-menu li a {float:left; color:#000; border:0;}
.b-menu li a:hover {color:#c00;}
.b-menu li.selected a {color:#aaa; border:none;}
.b-menu li a.rss {
    padding-right: 0;
    background: none;
    height: auto;
    overflow: visible;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
/*/header*/

/*page*/
/*---home, page, category, tag, search---*/
.home_top {background:#fafafa;}
ul.category {margin-top:40px;}
ul.home-cat-block {margin-top:10px;}
ul.category li, ul.home-cat-block li {margin-bottom:10px; font-family:Helvetica, Arial, sans-serif;}
h2.home-cat-block {margin:40px 0 5px; border-bottom:1px solid #eee; color:#333;}
.page_only {margin-top:30px;}
.page_only h2 {margin-bottom:20px; text-align:left; color:#333;}
.page-info {font-size:12px; color:#bbb;}
.page-date {float:left; padding:10px 8px 5px 0; text-transform:uppercase; font-size:10px; font-weight:bold; color:#ccc;}
.day {line-height:0.8; font-size:30px; font-weight:bold; color:#c00;}
.page_content img {display:block; margin: 0 auto 10px; padding:5px; border:1px solid #ddd; background:#fafafa; border-radius:3px;}
    .page_content h3 {margin:20px 0; font-size:22px; font-weight:normal;}
    .page_content h4 {margin:20px 0 10px; font-size:18px; font-weight:normal;}
    .page_content ul {margin:20px 0 20px .5em; padding-left:12px;}
    .page_content ul li {list-style-type:disc;}
    .page_content ol {margin:20px 0 20px .75em; padding-left:12px;}
    .page_content ol li {list-style-type:decimal;}
    .page-info-after {margin-top:20px; padding-top:10px; border-top:1px solid #eee; line-height:1.6; font-size:12px; color:#aaa;}
    .page_nav {margin-top:10px; font-size:16px;}
    .page_nav ul {padding:0 15px;}
    .page_nav li {line-height:1.5;}
    .page_other_pages {margin-top:20px;}
    .page_other_pages h3 {color:#333; font-weight:normal;}
    .page_other_pages ul {margin-left:16px; font-size:16px; list-style:disc;}
/*---/home, page, category, tag, search---*/

/*---page-comments, comments---*/
h3.comments {margin:20px 0; font-size:21px; color:#333;}
.b-page-feed {margin:20px 0; color:#aaa; font-size:16px;}
div.comments li {margin:0 0 10px; padding:10px; border:1px solid #ddd; border-radius:5px; -moz-border-radius:5px; -webkit-border-radius:5px;}
div.comments li.admin {background:#f9f9f9;}
    img.avatar {float:left; margin-right:10px; border:4px solid #e5e5e5;}
    .nick {font-style:italic;}
    .nick a {color:#333; text-decoration:none;}
    .nick a:hover {color:#000;}
    .comment-date {font:12px Arial, Verdana, sans-serif; color:#c0c0c0;}
        span.comment-check {font-style:italic; color:#000;}
    .comment-content {margin-top:1em;}
    .comment-content p {margin-bottom:1em;}
    .comment-content blockquote {margin:1em 10px;}
    a.permalink {letter-spacing:1px; font-size:11px; font-style:italic;}
/*---/page-comments, comments---*/

/*---page-comment-form---*/
.comments-noreg label, .comments-reg label {display:block; float:left; width:120px;}
span.black {font-size:17px;}
.comments-noreg {margin-bottom:10px; border-bottom:2px solid #ddd;}
p.msg {font-size:14px;}
p.field {margin:10px 0;}
.comments-user {font-size:16px;}
    span.usernik {color:#f55;}
label.comments_content {display:block;}
.comments-textarea textarea {width:100%; margin-bottom:5px;}
.comments-textarea input.submit {margin-top:10px;}
.comments-textarea span {font-style:italic; font-size:12px;}
.comments-textarea img {vertical-align:middle;}
/*---/page-comment-form---*/

/*---users, users-form, users-all---*/
.b-info-comuser p {margin-bottom:7px; font:16px Arial, sans-serif;}
.b-info-comuser p span {font-weight:bold;}
.b-info-comuser p span.comuser-no-activate {font-weight:normal;}
.comusers-form {font-family:Arial, sans-serif;}
.comusers-form label {display:block; float:left; width:140px;}
.comusers-form input.submit, a.lost-pwd {margin-left:140px;}
    a.lost-pwd {font-size:16px;}
.activate-form label {float:left; margin-right:10px;}
.activate-form input.text {margin-right:5px;}
ul.users-all li {float:left; font-size:16px;}
/*---/users, users-form, users-all---*/

/*---contact---*/
.contact-form {margin-top:15px;}
.contact-form label {float:left; width:170px;}
    input#contact_antispam {width:50px;}
    span.msg {font-size:14px; font-style:italic;}
.contact-form select {width:180px; padding:2px 0;}
.contact-form input.reset {margin:0 10px 0 170px;}
/*---/contact---*/

/*---loginform---*/
.b-loginform {position:fixed; top:10%; left:50%; width:250px; margin:50px 0 0 -150px; padding:20px 20px 20px 15px; border:1px solid #bababa; text-align:center; font-size:13px; background:#fff;}
/*---/loginform---*/

/*---404---*/
.b-404 {margin-top:10px;}
.b-404 h2, .b-404 p, .search-form {text-align:center;}
.b-404 h2 {color:#f55;}
/*---/404---*/
/*/page*/

/*sidebars*/
#sidebars h2.box {margin-bottom:6px; font-size:23px;}
.w0 {margin-bottom:20px;}
/*/sidebars*/

/*footer*/
p.copyright {margin-top:10px;}
/*/footer*/

/*---sys msg---*/
.comment-error, .comment-ok {margin:5px 0; text-align:center; color:#f00;}
/*---/sys msg---*/

/*plugins*/
/*---addzakl---*/
div.addzakl {text-align:center;}
div.addzakl a {border:0;}
div.addzakl img {display:inline-block; margin:0; padding:2px; vertical-align:middle; background:#fff;}
/*---/addzakl---*/

/*---comment_button---*/
.comment_button button {margin-right:3px; padding:1px; border:1px solid #aaa; cursor:pointer; text-transform:uppercase; font:bold 12px Arial, sans-serif; color:#333; background:#f0f0f0; border-radius:2px; -moz-border-radius:2px; -webkit-border-radius:2px;}
p.comment_button {margin-bottom:5px;}
p.comment_button input {overflow:visible; width:65px; margin-right:3px; padding:1px; border:1px solid #aaa; cursor:pointer; text-transform:uppercase; font:bold 12px Arial, sans-serif; color:#333; background:#f0f0f0; border-radius:2px; -moz-border-radius:2px; -webkit-border-radius:2px;}
/*---/comment_button---*/

/*---captcha---*/
input.comments_captha {width:145px; padding:2px; border:1px solid #ccc; font:14px Georgia, Times, serif;}
/*---/captcha---*/

/*---paginations---*/
.pagination {margin-top:30px; text-align:center; font-size:16px;}
.pagination2 {overflow:hidden; width:100%; padding:5px; font-size:100%;}
    span.old {float:right;}
    span.new {float:left;}
    span.old a, span.new a {padding:5px 10px; border:none; background:#eee; border-radius:3px; -moz-border-radius:3px; -webkit-border-radius:3px;}
    span.new a:hover, span.old a:hover {padding:5px 10px; background:#ddd; border-radius:3px; -moz-border-radius:3px; -webkit-border-radius:3px;}
/*---/paginations---*/

/*---last_comments---*/
.last_comments_widget {font-size:14px;}
h2.last_comment, #sidebars h2.last_comment {font-size:18px; font-weight:normal;}
ul.last_comment {margin-bottom:10px;}
ul.last_comment li {margin-bottom:5px;}
/*---/last_comments---*/

/*---search_form, login_form---*/
input.search_text {width:200px; margin-right:5px; padding:4px; border:1px solid #ddd; font:14px Georgia; background:#fafafa; border-radius:5px; -moz-border-radius:5px; -webkit-border-radius:5px;}
input.search_submit {width:24px; height:24px; border:0; text-indent:-99999px; color:transparent; background:transparent url(images/search_magnifier.png) no-repeat; cursor:pointer;}
.login_form_widget #flogin span {display:block;}
.login_form_widget input#flogin_user {border:1px solid #ddd; background:#fafafa; border-radius:5px; -moz-border-radius:5px; -webkit-border-radius:5px;}
.login_form_widget input#flogin_password {border:1px solid #ddd; background:#fafafa; border-radius:5px; -moz-border-radius:5px; -webkit-border-radius:5px;}
/*---/search_form, login_form---*/

/*---sitemap---*/
h2.sitemap {margin:10px 0; color:#333;}
div.sitemap {font-size:16px;}
div.sitemap h3 {margin-top:15px; border-bottom:1px solid #eee; font-weight:bold;}
div.sitemap li {line-height:1.6;}
/*---/sitemap---*/

/*---calendar---*/
.calendar table {width:100%;}
div.calendar td {padding:1px; text-align:center;}
.today-content a {padding:0 1px; border:0; color:#f33;}
.today-content a:hover {border:0; color:#fff; background:#f33;}
/*---/calendar---*/

/*---links---*/
div.links p {margin:6px 0 0;}
div.links p a {border:0;}
/*---/links---*/

/*---page_parent---*/
ul.page_parent_child li {margin-left:15px; padding:0;}
li.current-page>a {color:#555; border:0;}
li.current-page>a:hover {color:#555;}
/*---/page_parent---*/
/*/plugins*/

/* LIST */
ul.is_link li {margin:0; background:url(images/bullet.gif) no-repeat 0 4px; padding:0 0 0 14px;}
ul.is_link li li {margin-left:10px;}

.vrezka-r {
    float: right;
    padding: 0 10px 5px 0;
    margin-left: 10px;
}
.vrezka-l {
    float: left;
    margin-right: 10px;
    padding: 0 10px 5px 0;
}

.page_other_pages_header {
    font-weight: bold;
    background: #ddd;
    padding-left: 3px;
    border-radius: 2px;
}

.page_other_pages a {
    font-weight: bold;
    line-height: 100%;
    border-bottom: 0;
}

.page_other_pages a img {
    width: 120px;
}

.page_other_pages_img a {
    padding: 0;
}

.page_other_pages {
    text-align: left;
}

.page_other_pages_desc {
    padding: 0 5px;
    font-size: 80%;
}

h2.box {
    background: #ddd;
    border-radius: 5px;
    padding: 0 5px;
}

div.captcha {
    float: left;
    left: 3px;
    margin: 5px 0;
    position: relative;
    top: -26px;
}

div.comment-form input.submit {
    float: right;
    margin: 5px 0;
    width: 120px;
}

span.cut {
    display: block;
    margin-bottom: 5px;
    text-align: right;
}

/* ===================================================
   FLOPPY THEME — ВИЗУАЛЬНЫЕ УЛУЧШЕНИЯ
   =================================================== */

/* --- Базовые улучшения --- */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Плавные переходы для ссылок */
a {
    transition: color 0.2s ease, border-color 0.2s ease;
}

/* --- Шапка --- */
#header {
    position: relative;
}

/* --- Мигающий курсор в заголовке (десктоп) --- */
.b-title h1 a {
    font-size: 50px;
    display: inline-block;
    position: relative;
    transition: color 0.3s ease;
}

.b-title h1 a::after {
    content: '';
    display: inline-block;
    width: 6px;
    height: 42px;
    background-color: #c00;
    vertical-align: middle;
    margin-left: 5px;
    animation: cursor-blink 1.6s infinite;
}

@keyframes cursor-blink {
    0%,  40%  { opacity: 1; }
    41%, 100% { opacity: 0; }
}

.b-title h1 a:hover {
    color: #c00;
}

.b-menu li a {
    transition: color 0.2s ease;
    padding: 4px 8px;
    border-radius: 3px;
}

.b-menu li a:hover {
    background: #f5f5f5;
}

/* --- Поиск в сайдбаре --- */
.search-form {
    display: flex;
    align-items: center;
    gap: 5px;
}

.search-form input[type="search"] {
    flex: 1;
    padding: 6px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font: 14px Georgia, serif;
    background: #fafafa;
    transition: border-color 0.2s ease;
}

.search-form input[type="search"]:focus {
    border-color: #999;
    background: #fff;
    outline: none;
}

.search-form button {
    padding: 6px 12px;
    border: 1px solid #aaa;
    border-radius: 4px;
    background: #f0f0f0;
    cursor: pointer;
    font: bold 12px Arial, sans-serif;
    text-transform: uppercase;
    transition: background 0.2s ease;
}

.search-form button:hover {
    background: #e0e0e0;
}

/* --- Облако тегов --- */
.tagclouds {
    line-height: 1.4;
    padding: 5px 0;
    word-spacing: 2px;
}

.tagclouds span {
    display: inline;
    white-space: nowrap;
}

.tagclouds a {
    border-bottom: 1px dotted #ccc;
    transition: color 0.2s ease;
}

.tagclouds a:hover {
    color: #c00;
    border-bottom-color: #c00;
}

.tagclouds sub {
    font-size: 7pt;
    color: #555;
    margin-left: 1px;
}

/* --- Виджет-заголовки в сайдбаре --- */
.mso-widget-header {
    margin-bottom: 10px;
    padding-bottom: 5px;
    border-bottom: 2px solid #eee;
}

.mso-widget-header span {
    font: bold 14px Helvetica, Arial, sans-serif;
    text-transform: uppercase;
    color: #333;
    letter-spacing: 0.5px;
}

/* --- Последние комментарии --- */
.last_comments_widget h3,
.last_comments_widget .last_comment_title {
    margin: 12px 0 4px;
    padding: 3px 6px;
    background: #f8f8f8;
    border-left: 3px solid #c00;
    font: bold 13px Helvetica, Arial, sans-serif;
    color: #333;
}

.mso-widget-list {
    margin: 0 0 5px;
    padding: 0;
}

.mso-widget-list li {
    padding: 4px 6px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 13px;
    line-height: 1.4;
    transition: background 0.2s ease;
}

.mso-widget-list li:hover {
    background: #fafafa;
}

.mso-widget-list li:last-child {
    border-bottom: none;
}

.mso-widget-list a {
    border: none;
    color: #666;
}

.mso-widget-list a:hover {
    color: #c00;
}

.mso-widget-list b {
    color: #333;
}

/* --- Превью поста --- */
.post-preview-image {
    text-align: center;
    margin-bottom: 15px;
}

.post-preview-image img {
    border-radius: 4px;
    transition: opacity 0.3s ease;
}

.post-preview-image a:hover img {
    opacity: 0.85;
}

/* --- Полная страница поста --- */
.post-main-image {
    text-align: center;
    margin-bottom: 20px;
}

.post-main-image img {
    border-radius: 4px;
}

/* --- Комментарии --- */
.comments-list {
    list-style: none;
    padding: 0;
}

.comment-item {
    margin: 0 0 10px;
    padding: 12px 15px;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    background: #fff;
    transition: border-color 0.2s ease;
}

.comment-item:hover {
    border-color: #ccc;
}

.comment-info {
    margin-bottom: 8px;
}

.comment-info .nick {
    font-size: 15px;
}

.comment-info .nick b {
    color: #333;
}

.comment-date {
    font: 12px Arial, sans-serif;
    color: #bbb;
}

.comment-date a {
    color: #bbb;
    border: none;
}

.comment-date a:hover {
    color: #999;
}

.comment-content {
    margin-top: 8px;
    line-height: 1.5;
}

.comment-content p {
    margin-bottom: 0.8em;
}

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

.admin-response {
    background: #f9f9f9;
    border-left: 3px solid #c00;
    padding: 12px 15px;
    margin-top: 12px;
    border-radius: 0 4px 4px 0;
}

.admin-response b {
    color: #c00;
}

.comment-reply-link {
    text-align: right;
    font-size: 0.8em;
    margin: 8px 0 5px;
}

.comment-reply-link a {
    color: #999;
    border: none;
    padding: 2px 8px;
    border-radius: 3px;
    transition: background 0.2s ease, color 0.2s ease;
}

.comment-reply-link a:hover {
    background: #f0f0f0;
    color: #333;
}

.comment-children {
    list-style: none;
    padding-left: 0;
    margin-top: 10px;
}

/* --- Форма комментария --- */
.mso-comment-leave {
    margin: 25px 0 15px;
    padding: 10px 0;
    border-top: 2px solid #eee;
    font: bold 18px Helvetica, Arial, sans-serif;
    color: #333;
}

.mso-comment-form .mso-form {
    background: #fafafa;
    padding: 20px;
    border-radius: 6px;
    border: 1px solid #eee;
}

.mso-comments-textarea label {
    display: block;
    margin-bottom: 5px;
}

.mso-comments-textarea textarea {
    width: 100%;
    min-height: 120px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font: 15px Georgia, serif;
    resize: vertical;
    box-sizing: border-box;
}

.mso-comments-textarea textarea:focus {
    border-color: #999;
    outline: none;
}

.mso-comments-auth {
    margin-top: 15px;
}

.mso-comments-auth input[type="text"],
.mso-comments-auth input[type="email"] {
    width: 100%;
    max-width: 350px;
    padding: 6px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font: 14px Georgia, serif;
    box-sizing: border-box;
}

.mso-comments-auth input[type="number"] {
    width: 100%;
    max-width: 150px;
    padding: 6px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font: 14px Georgia, serif;
    box-sizing: border-box;
}

.mso-comments-auth input[type="number"]:focus,
.mso-comments-auth input:focus {
    border-color: #999;
    outline: none;
}

.field-error {
    color: #c00;
    font-size: 12px;
    margin-top: 3px;
}

.comment-submit-area {
    margin-top: 15px;
}

.comment-submit-area label {
    display: inline;
    font: normal 14px Georgia, serif;
    text-transform: none;
}

/* --- Кнопки --- */
button.button,
input.submit {
    padding: 8px 20px;
    border: 1px solid #999;
    border-radius: 4px;
    background: linear-gradient(to bottom, #f5f5f5, #e0e0e0);
    cursor: pointer;
    font: bold 13px Arial, sans-serif;
    text-transform: uppercase;
    color: #333;
    transition: background 0.2s ease, border-color 0.2s ease;
}

button.button:hover,
input.submit:hover {
    background: linear-gradient(to bottom, #e8e8e8, #d0d0d0);
    border-color: #777;
}

button.button:active,
input.submit:active {
    background: #d0d0d0;
}

/* --- Кнопка "Далее..." --- */
.mso-cut {
    display: block;
    margin: 15px 0 5px;
    text-align: right;
}

.mso-cut a {
    display: inline-block;
    padding: 4px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #666;
    font: bold 13px Helvetica, Arial, sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.2s ease;
}

.mso-cut a:hover {
    background: #f5f5f5;
    border-color: #ccc;
    color: #c00;
}

/* --- Пагинация --- */
.pagination {
    margin: 30px 0 10px;
    text-align: center;
}

.pagination nav {
    display: inline-flex;
    gap: 3px;
    align-items: center;
}

.pagination a,
.pagination strong {
    display: inline-block;
    min-width: 30px;
    padding: 5px 10px;
    text-align: center;
    border-radius: 4px;
    font: 14px Helvetica, Arial, sans-serif;
    transition: background 0.2s ease;
}

.pagination a {
    color: #555;
    border: 1px solid #ddd;
    background: #fafafa;
}

.pagination a:hover {
    background: #eee;
    border-color: #ccc;
    color: #333;
}

.pagination strong {
    background: #c00;
    color: #fff;
    border: 1px solid #c00;
}

.pagination-dots {
    display: inline-block;
    min-width: 30px;
    padding: 5px 4px;
    text-align: center;
    color: #999;
    font-size: 16px;
    letter-spacing: 1px;
}

/* --- Мета-информация поста --- */
.page-info-after {
    margin-top: 20px;
    padding: 12px 15px;
    border-top: 1px solid #eee;
    background: #fafafa;
    border-radius: 4px;
    line-height: 1.8;
    font-size: 13px;
    color: #888;
}

.page-info-after a {
    color: #666;
    border-bottom: 1px dotted #ccc;
}

.page-info-after a:hover {
    color: #c00;
    border-bottom-color: #c00;
}

/* --- Счётчик комментариев --- */
.mso-comments-count {
    margin: 20px 0 15px;
    padding: 8px 15px;
    background: #f5f5f5;
    border-radius: 4px;
    font: bold 14px Helvetica, Arial, sans-serif;
    color: #555;
}

/* --- Контактная форма --- */
.mso-comment-form .mso-comments-auth p {
    margin-bottom: 12px;
}

/* --- Каптча --- */
.captcha {
    margin: 12px 0;
    padding: 10px;
    background: #f5f5f5;
    border-radius: 4px;
}

.captcha input {
    padding: 5px 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font: 14px Georgia, serif;
}

/* --- Футер --- */
#footer {
    color: #999;
}

#footer a {
    color: #bbb;
    border-bottom: 1px dotted #ddd;
}

#footer a:hover {
    color: #c00;
    border-bottom-color: #c00;
}

/* --- Перенос длинных слов и ограничение медиа --- */
.page_content {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.page_content img,
.page_content pre,
.page_content iframe,
.page_content object,
.page_content embed {
    max-width: 100% !important;
    height: auto;
}

/* --- Форма комментариев: компактный ряд --- */
.form-row-compact {
    display: flex;
    gap: 20px;
    margin-top: 15px;
    margin-bottom: 20px;
}

.form-row-compact .form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.form-row-compact .form-group label {
    margin-bottom: 5px;
    font-size: 11px;
}

.form-row-compact input[type="text"],
.form-row-compact input[type="email"] {
    width: 100%;
    max-width: 100%;
}

.form-bottom-compact {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #e5e5e5;
    padding-top: 15px;
    margin-top: 15px;
}

.captcha-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.captcha-group label {
    text-transform: none;
    font-weight: normal;
    color: #333;
    font-size: 13px;
}

.mso-comments-auth input[type="number"],
.captcha-group input[type="number"] {
    width: 60px;
    padding: 6px;
    text-align: center;
}

.submit-group {
    display: flex;
    align-items: center;
    gap: 20px;
}

.notify-label {
    display: flex;
    align-items: center;
    gap: 5px;
    text-transform: none;
    font-weight: normal;
    color: #555;
    font-size: 13px;
}

.notify-label input[type="checkbox"] {
    margin: 0;
}

.ProseMirror {
    min-height: 120px;
}

/* ===================================================
   АДАПТИВНОСТЬ
   =================================================== */

@media screen and (max-width: 1200px) {
    #wrapper { width: auto; max-width: 1160px; margin: 0 15px; }
}

@media screen and (max-width: 960px) {
    #wrapper { flex-direction: column; }

    #header {
        flex: 0 0 auto;
        width: 100%;
        text-align: center;
        padding: 0 15px;
    }

    .b-title {
        float: none;
        width: 100%;
        text-align: center;
        padding: 20px 0 10px;
    }

    .b-menu {
        float: none;
        width: 100%;
        text-align: center;
        padding: 10px 0 15px;
    }

    .b-menu ul {
        display: inline-flex;
        flex-wrap: wrap;
        justify-content: center;
        padding: 0;
        float: none;
    }

    .b-menu li {
        float: none;
        margin: 5px;
    }

    #wrap-page { width: 100%; flex: 0 0 auto; }
    #page { padding: 0 15px 35px; border-right: none; }
    #sidebars { width: 100%; flex: 0 0 auto; padding: 20px; border-top: 1px solid #ccc; }
}

@media screen and (max-width: 600px) {
    #wrapper {
        margin: 0; /* Убираем внешний отступ, чтобы не было конфликтов с шириной */
        width: 100%;
    }

    #page h1, #page h2, #page h3, #page h4, #page h5, #page h6 {
        text-align: left;
    }

    /* Шапка сайта на мобильных */
    .b-title h1 a { font-size: 32px; }
    .b-title h1 a::after {
        width: 4px;
        height: 26px;
        margin-left: 3px;
    }
    .b-title .b-subtitle { font-size: 14px; }

    /* Дата и заголовки статей */
    .page_only {
        position: relative;
        padding-left: 15px; /* Увеличили отступ текста слева */
        padding-right: 15px; /* Увеличили отступ текста справа */
    }
    .page-info { padding-right: 60px; }
    .page-date {
        position: absolute;
        top: 0;
        right: 15px;
        float: none;
        padding: 0;
        margin: 0;
        text-align: right;
    }
    .day { font-size: 18px; display: block; }
    .page-date br { display: none; }

    .page_only h2 {
        margin-top: 10px;
        padding-right: 60px;
        font-size: 22px;
        text-align: left;
    }

    /* Картинки на ВСЮ ширину экрана без полос */
    #page {
        padding-left: 0;
        padding-right: 0;
        overflow-x: hidden; /* Защита от появления горизонтальной прокрутки */
    }

    .page_content img {
        width: calc(100% + 30px) !important;
        max-width: calc(100% + 30px) !important;
        margin-left: -15px !important;
        margin-right: -15px !important;
        padding: 0;
        border: none;
        border-radius: 0;
        background: none;
        display: block;
    }

    /* Отступы для остального текстового контента внутри статьи */
    .page_content p,
    .page_content h1,
    .page_content h2,
    .page_content h3,
    .page_content ul,
    .page_content ol,
    .page-info-after,
    .mso-cut,
    .pagination {
        padding-left: 1px !important;
        padding-right: 1px !important;
    }

    /* Чтобы пагинация и футер не прилипали */
    #footer {
        padding-left: 10px;
        padding-right: 10px;
    }
}

/* ===================================================
   ИСПРАВЛЕНИЕ ФОРМЫ КОММЕНТАРИЕВ
   =================================================== */

@media screen and (max-width: 600px) {

    .mso-comment-leave {
        padding: 10px;
    }

    /* Поля Имя и Email делаем друг под другом */
    .form-row-compact {
        display: flex;
        flex-direction: column;
        gap: var(--space-sm);
    }

    .form-row-compact .form-group {
        width: 100%;
    }

    /* Нижняя панель (капча, уведомление, кнопка) */
    .form-bottom-compact {
        display: flex;
        flex-direction: column; /* Складываем в столбик */
        gap: var(--space-md);
        align-items: stretch;  /* Растягиваем на всю ширину */
        margin-top: var(--space-md);
        padding-top: var(--space-md);
        border-top: 1px solid var(--border-color);
    }

    /* Блок капчи */
    .captcha-group {
        display: flex;
        flex-direction: column;
        gap: var(--space-xs);
    }

    .captcha-group label {
        font-size: 0.9rem;
    }

    .captcha-group input {
        width: 100% !important; /* На мобильных ответ на капчу во всю ширину */
        max-width: none;
        padding: 10px;
    }

    /* Группа отправки (чекбокс + кнопка) */
    .submit-group {
        display: flex;
        flex-direction: column;
        gap: var(--space-md);
        align-items: flex-start;
    }

    /* Чекбокс уведомлений */
    .notify-label {
        display: flex;
        align-items: center;
        gap: 8px;
        font-size: 0.9rem;
        cursor: pointer;
        width: 100%;
    }

    .notify-label input[type="checkbox"] {
        width: 18px;
        height: 18px;
        margin: 0;
    }

    /* Кнопка "Отправить" на всю ширину */
    .mso-form .button,
    .mso-form button[type="submit"] {
        width: 100%;
        padding: 12px;
        font-size: 1.1rem;
        justify-content: center;
    }

    /* Редактор Prose (если есть проблемы с вылезанием за края) */
    .prose-editor {
        width: 100%;
        max-width: 100vw;
    }

    .ProseMirror {
        min-height: 120px;
        padding: 10px;
    }

    /* Панель инструментов редактора на мобильных */
    .prose-menubar {
        display: flex;
        flex-wrap: wrap; /* Чтобы кнопки не уезжали */
        gap: 5px;
        padding: 5px;
    }
}

/* ===========================================================================
   АВТОРИЗАЦИЯ И РЕГИСТРАЦИЯ (ALLAUTH)
   =========================================================================== */

.auth-container {
    max-width: 400px;
    margin: 40px auto;
}

.auth-form-wrapper {
    background: #fafafa;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.auth-form {
    padding: 30px;
}

.auth-title {
    text-align: center;
    color: #333;
    margin-bottom: 25px;
    font-size: 26px;
    font-family: Helvetica, Arial, sans-serif;
    letter-spacing: -1px;
}

.auth-form .form-group {
    margin-bottom: 15px;
    text-align: left;
}

.auth-form label {
    display: block;
    margin-bottom: 5px;
    color: #333;
    font-weight: bold;
    font-size: 11px;
    text-transform: uppercase;
    font-family: Arial, sans-serif;
}

.auth-form label i {
    color: #c00;
    margin-right: 5px;
}

.auth-form input[type="text"],
.auth-form input[type="email"],
.auth-form input[type="password"] {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #ccc;
    background: #fff;
    border-radius: 3px;
    font: 15px Georgia, Times, serif;
    color: #555;
    box-sizing: border-box;
}

.auth-form input:focus {
    border-color: #999;
    outline: none;
}

.form-group-checkbox label {
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: none;
    font-weight: normal;
    font-size: 14px;
    color: #555;
    cursor: pointer;
}

.form-group-checkbox input {
    margin: 0;
}

.auth-button {
    display: block;
    width: 100%;
    padding: 10px;
    font-size: 14px;
    margin-top: 20px;
    text-align: center;
}

.auth-links {
    margin-top: 15px;
    text-align: center;
}

.auth-footer {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #ddd;
    text-align: center;
    font-size: 14px;
}

.auth-form a {
    color: #999;
    border-bottom: 1px dotted #ccc;
    transition: all 0.2s ease;
}

.auth-form a:hover {
    color: #c00;
    border-bottom-color: #c00;
}

.error-text, .error-message {
    color: #f55;
    font-size: 13px;
    margin-top: 5px;
    display: block;
}

.error-message {
    margin-bottom: 15px;
    text-align: center;
    font-weight: bold;
}

.social-auth-divider {
    text-align: center;
    margin: 20px 0;
    position: relative;
}

.social-auth-divider::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #ddd;
    z-index: 1;
}

.social-auth-divider span {
    background: #fafafa;
    padding: 0 10px;
    color: #999;
    font-size: 12px;
    position: relative;
    z-index: 2;
}

.social-auth-buttons {
    text-align: center;
}
