/* Общий сброс стилей */
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, 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, article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section, summary, time, mark, audio, video { margin: 0; padding: 0; border: 0; vertical-align: baseline; }
article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section { display: block; max-width: 700px; /* Это ограничение может влиять на весь контент, включая страницу товара */ margin: auto; }
blockquote, q { quotes: none; }
blockquote:before, blockquote:after, q:before, q:after { content: ''; content: none; }

/* Базовые стили для body и типографики */
body, select, textarea, button, input { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; font-size: 17px; line-height: 1.7; color: #333; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; outline: none; word-wrap: break-word; }
a { outline: none; color: #007bff; text-decoration: none; transition: color 0.2s ease-in-out, text-decoration 0.2s ease-in-out; }
a:hover { color: #0056b3; text-decoration: underline; }
a img { border: 0 none; }
a > img { vertical-align: bottom; }

/* Базовые стили заголовков */
h1, h2, h3, h4, h5 { font-weight: 600; color: #111; padding: 0 0 10px; }
h1, h2 { font-size: 28px; padding-bottom: 15px; } /* Обновленный padding для h1, h2 */
h3 { font-size: 22px; padding: 20px 0 15px; } /* Обновленный padding для h3 */
h4 { font-size: 20px; line-height: 24px; }
h5 { font-size: 16px; line-height: 20px; }

/* Логотип */
#logo { display: block; text-align: center; padding: 20px 0; } /* Используется padding из секции Header */
a#logo { text-decoration: none; color: inherit; }
a#logo * { cursor: pointer; }
#logo-text { display: block; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; font-size: 32px; font-weight: 500; color: #141526; line-height: 1.3; letter-spacing: 0.01em; margin-bottom: 4px; text-transform: none; }
#logo span { /* Этот стиль для слогана переопределяется стилем #logo span в секции Header, если структура HTML позволяет */ display: block; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; font-size: 1.2em; /* Из секции Header */ color: #595959; /* Из секции Header */ line-height: 1.4; letter-spacing: 0.02em; }

/* Общие стили для списков */
ol, ul { background-color: transparent; padding-left: 20px; margin-bottom: 20px; }
ol { counter-reset: listitem; }
ol li { counter-increment: listitem; margin-bottom: 8px; padding-left: 1.5em; position: relative; list-style: none; border-bottom: none; }
ol li:before { content: counter(listitem); position: absolute; left: 0; top: 0; width: 1.5em; height: 100%; font-weight: bold; text-align: center; color: #555; }
ul { list-style: none; }
ul li { margin-bottom: 8px; padding-left: 1.5em; position: relative; border-bottom: none; }
ul li:before { content: "•"; position: absolute; left: 0; top: 0; width: 1.5em; height: 100%; font-weight: bold; text-align: center; color: #555; }

/* Стили для списков внутри .post-cont */
.post-cont ul, .post-cont ol { padding-left: 0; margin-top: 1em; margin-bottom: 1em; line-height: 1.7; }
.post-cont li { margin-bottom: 0; padding-left: 25px; position: relative; list-style-type: none; padding-top: 0.75em; padding-bottom: 0.75em; border-bottom: 1px solid #eaeaea; }
.post-cont li:last-child { border-bottom: none; }
.post-cont ul li::before { content: ''; position: absolute; left: 8px; top: 1.45em; /* Примерное положение, может требовать подстройки */ transform: translateY(-50%); width: 6px; height: 6px; background-color: #777; border-radius: 50%; }
.post-cont ol { counter-reset: minimalist-counter; }
.post-cont ol li::before { content: counter(minimalist-counter) "."; counter-increment: minimalist-counter; position: absolute; left: 5px; top: 0.75em; font-weight: 400; color: #555; font-size: 0.9em; line-height: 1.7; }
.post-cont ul ul, .post-cont ul ol, .post-cont ol ul, .post-cont ol ol { margin-top: 0.75em; margin-bottom: 0; padding-left: 20px; border-top: 1px solid #eaeaea; }
.post-cont li > ul, .post-cont li > ol { margin-left: -25px; }
.post-cont ul ul li::before { background-color: #999; width: 5px; height: 5px; }
.post-cont ol ol { counter-reset: minimalist-nested-counter; }
.post-cont ol ol li::before { content: counter(minimalist-nested-counter, lower-alpha) "."; counter-increment: minimalist-nested-counter; color: #777; font-size: 0.85em; }
.post-cont li:last-child > ul:last-child > li:last-child, .post-cont li:last-child > ol:last-child > li:last-child { border-bottom: none; }
/* --- Стиль "зебра" для списков --- */
.post-cont li:nth-child(even) {
  background-color: #f9f9f9; /* Очень светло-серый фон */
}

/* Товар */
.parent-container { display: flex; justify-content: center; align-items: center; height: auto; padding: 20px; }
.product-info { text-align: center; display: flex; flex-direction: column; align-items: center; }
.product-image img { max-width: 100%; max-height: 100%; }
.text-fields { font-size: 16px; margin-top: 10px; display: flex; justify-content: center; }
.text-fields p { margin: 0 5px; }
.product-info-block { border: 1px solid #ddd; padding: 20px; background-color: #ffffff; font-size: 16px; }
.product-details p { margin: 5px 0; }
.product-details p:before { font-weight: bold; content: attr(data-label) ":"; }
.product-price { margin-top: 20px; font-size: 18px; }
.price-amount { font-size: 24px; color: #ff0000; }
.price-label { font-weight: bold; }
.eac-icon { background-image: url('../dleimages/EAC.svg'); background-size: 20px 20px; display: inline-block; width: 20px; height: 20px; vertical-align: middle; }

/* Блок "Проверка оригинальности" */
.authentication-section { text-align: center; margin: 30px 0; padding: 25px; background: #eef7f7; border-radius: 6px; border: 1px solid #cce7e7; }
.authentication-text { font-size: 17px; margin-bottom: 20px; color: #334e4e; line-height: 1.6; }
.product-authentication { display: flex; flex-direction: column; align-items: center; gap: 15px; }
.input-with-icon { display: flex; align-items: center; border: 1px solid #b8d8d8; border-radius: 4px; padding-left: 12px; background-color: #fff; transition: border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out; width: 100%; max-width: 330px; box-sizing: border-box; }
.input-with-icon:focus-within { border-color: #007bff; box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25); }
.input-with-icon .las.la-barcode { font-size: 22px; color: #555; margin-right: 10px; line-height: 1; }
.product-authentication .input-with-icon input[type="text"] { padding: 12px 0; padding-right: 12px; font-size: 16px; border: none; border-radius: 0; flex-grow: 1; background-color: transparent; box-shadow: none; outline: none; margin-right: 0; max-width: none; transition: none; }
.product-authentication button { padding: 12px 25px; font-size: 16px; font-weight: 500; background-color: #28a745; color: white; border: none; border-radius: 4px; cursor: pointer; margin-top: 0; transition: background-color 0.2s ease-in-out, transform 0.1s ease; width: 100%; max-width: 330px; box-sizing: border-box; }
.product-authentication button:hover { background-color: #218838; transform: translateY(-1px); }
.product-authentication button:active { transform: translateY(0); }
#authentication-result { margin-top: 0; font-size: 16px; font-weight: 500; width: 100%; text-align: center; padding: 0 10px; box-sizing: border-box; }
@media (min-width: 576px) {
    .product-authentication { flex-direction: row; align-items: flex-start; flex-wrap: nowrap; }
    .input-with-icon { width: auto; flex-shrink: 1; }
    .product-authentication .input-with-icon input[type="text"] { min-width: 150px; }
    .product-authentication button { width: auto; max-width: none; flex-shrink: 0; }
    #authentication-result { margin-top: 15px; width: auto; text-align: left; }
}

/* Блок "Доставка и оплата" */
.delivery-payment-block { padding: 25px; border: 1px solid #e9ecef; border-radius: 6px; background-color: #fcfcfc; margin-bottom: 30px; }
.delivery-payment-block h3 { text-align: center; margin-bottom: 25px; color: #111; font-size: 20px; }
.delivery-options { display: flex; justify-content: space-around; flex-wrap: wrap; gap: 20px; }
.delivery-option { width: 30%; text-align: center; margin-bottom: 20px; position: relative; padding: 15px; background-color: #fff; border: 1px solid #f0f0f0; border-radius: 5px; transition: transform 0.2s ease-out, box-shadow 0.2s ease-out; }
.delivery-option:hover { transform: translateY(-3px); box-shadow: 0 4px 12px rgba(0,0,0,0.06); }
.delivery-icon, .delivery-icon1, .delivery-icon2 { width: 70px; height: 70px; background-size: cover; margin: 0 auto 15px auto; }
.delivery-icon { background-image: url('../dleimages/form.svg'); }
.delivery-icon1 { background-image: url('../dleimages/operator.svg'); }
.delivery-icon2 { background-image: url('../dleimages/delivery.svg'); }
.delivery-option p { position: relative; top: 0; font-size: 15px; line-height: 1.6; color: #555; }
@media (max-width: 768px) {
    .delivery-option { width: 100%; }
}

/* Блок "Состав продукта" */
.product-ingredients-block { background-color: #fdfdfd; padding: 25px 20px; border-radius: 8px; border: 1px solid #eef2f5; margin: 30px 0; box-shadow: 0 3px 10px rgba(0, 70, 120, 0.04); }
.product-ingredients-block h3 { font-size: 22px; font-weight: 600; color: #333; text-align: center; margin-bottom: 25px; }
.ingredients-list { display: flex; flex-wrap: wrap; justify-content: space-around; gap: 20px; }
.ingredient-item { display: flex; flex-direction: column; align-items: center; text-align: center; background-color: #ffffff; padding: 20px 15px; border: 1px solid #f0f3f6; border-radius: 6px; flex-basis: calc(50% - 10px); transition: transform 0.2s ease-out, box-shadow 0.2s ease-out; }
.ingredient-item:hover { transform: translateY(-3px); box-shadow: 0 5px 15px rgba(0, 70, 120, 0.07); }
.ingredient-item .ingredient-icon-la { font-size: 42px; color: #007bff; margin-bottom: 15px; line-height: 1; display: block; }
.ingredient-name { font-size: 18px; font-weight: 500; color: #334e4e; line-height: 1.4; margin: 0; }
.ingredient-description { font-size: 17px; color: #66727c; line-height: 1.5; margin-top: 5px; }
@media (max-width: 576px) {
    .ingredient-item { flex-basis: calc(100% - 10px); max-width: 300px; margin-left: auto; margin-right: auto; }
}
@media (min-width: 992px) {
    .ingredient-item { flex-basis: calc(25% - 15px); }
    .product-ingredients-block { padding: 30px 25px; }
}

.postersgort { text-align: center; }
.postersgort .poster-container img { width: 150px; height: auto; }
.speed { width: auto; max-width: 100%; font-size: 16px; }
.visa-content { margin-left: auto; margin-right: auto; width: 180px; height: 48px; background-image: url('../dleimages/visa.jpg'); background-size: contain; background-repeat: no-repeat; }

/* Глобальные стили элементов */
textarea { overflow: auto; vertical-align: top; resize: vertical; }
input:focus { outline: none; }
button::-moz-focus-inner, input::-moz-focus-inner { border: 0; padding: 0; }
button[disabled], input[disabled] { cursor: default; }
p, dl, dd, pre, ul, ol, blockquote, address, table, fieldset { margin-bottom: 20px; }
p { margin-block-start: .7em; margin-block-end: .7em; }
blockquote { margin-left: 20px; padding: 0 20px; font-family: Georgia, Times, serif; font-style: italic; border-left: 6px solid #d7d7d7; color: #737373; }
strong, b { font-weight: bold; }
em, cite, i { font-style: italic; }
caption { text-align: left; }
small, .small { font-size: .9em; }
.mejs-container, video, iframe { max-width: 100%; }
.thd, .ui-icon, .ico:before { display: inline-block; background-image: url(../images/sprite.png); /* Путь к sprite.png должен быть верным */ }
.thd, .ui-icon { text-align: left; overflow: hidden; text-indent: -9999px; white-space: nowrap; }
.ico:before { float: left; content: ""; width: 12px; height: 12px; }
.clr { clear: both; }
.clrfix:after { clear: both; content: ""; display: block; height: 0; width: 0; visibility: hidden; }

/* Шаблон: Тулбар */
#toolbar { position: fixed; top: 0; left: 0; width: 100%; z-index: 999; box-shadow: 0 1px 4px 0 rgba(0,0,0,0.2); background-color: #141526; border-bottom: 1px solid #070707; }
#in-toolbar { overflow: hidden; display: block; width: 100%; height: 44px; }
#in-toolbar a { color: #fff; }

.image-container { display: flex; justify-content: center; align-items: center; width: 100%; height: 300px; background-color: #f0f0f0; }
.image-container img { max-width: 100%; max-height: 100%; width: auto; height: auto; margin: auto; }

/* Плавающая кнопка */
.floating-button { position: fixed; bottom: 20px; left: 20px; width: 100px; height: 100px; background-color: #ff0000; color: white; text-align: center; line-height: 100px; font-size: 14px; font-weight: bold; border-radius: 50%; animation: pulse 2s ease-in-out infinite; cursor: pointer; z-index: 999; }
.floating-button a { color: #ffffff; font-size: 18px; display: block; width: 100%; height: 100%; text-decoration: none; } /* color: inherit; удалено, т.к. уже есть color: #ffffff */
.floating-button:hover { transform: translateY(-5px); box-shadow: 0 5px 10px rgba(0,0,0,0.3); }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 0, 0, 0.6); }
  50% { box-shadow: 0 0 0 25px rgba(255, 0, 0, 0.6); }
  100% { box-shadow: 0 0 0 0 rgba(255, 0, 0, 0.6); }
}
.floating-button a .las { font-size: 31px; line-height: 1; }

/* Форма заказа (старый вариант .block1) */
.block1 { position: relative; height: auto; margin: 0 0 20px; background: #f8f9fa; padding: 25px; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; border: 1px solid #dee2e6; border-radius: 5px; }
.input, .block1 input[type="text"], .block1 input[type="tel"], .block1 input[type="email"] { display: block; width: 100%; height: auto; padding: 10px 12px; border: 1px solid #ced4da; border-radius: 4px; box-shadow: inset 0 1px 2px rgba(0,0,0,0.075); font-size: 16px; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; color: #495057; line-height: 1.5; background-color: #fff; margin-bottom: 15px; box-sizing: border-box; transition: border-color .15s ease-in-out,box-shadow .15s ease-in-out; }
.input:focus, .block1 input[type="text"]:focus, .block1 input[type="tel"]:focus, .block1 input[type="email"]:focus { border-color: #80bdff; outline: 0; box-shadow: inset 0 1px 2px rgba(0,0,0,.075), 0 0 0 0.2rem rgba(0,123,255,.25); }
.submitc { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; cursor: pointer; padding: 12px 30px; border: none; border-bottom: 3px solid #005cbf; display: block; margin: 20px auto 10px; color: #ffffff; font-size: 20px; text-decoration: none; text-align: center; height: auto; line-height: 1.5; background: #007bff; font-weight: 600; border-radius: 5px; transition: background-color 0.2s ease-in-out, transform 0.1s ease, border-bottom-color 0.2s ease-in-out; box-shadow: 0 2px 5px rgba(0,0,0,0.1); }
.submitc:hover { background: #0069d9; border-bottom-color: #004aa0; transform: translateY(-2px); box-shadow: 0 4px 8px rgba(0,0,0,0.15); }
.submitc:active { background: #005cbf; transform: translateY(0); box-shadow: inset 0 1px 3px rgba(0,0,0,0.1); }

/* Форма заказа "Рецептурный бланк" */
#orderForm { background-color: #fff; padding: 25px 30px 30px 30px; border: 2px dotted #b0bec5; border-radius: 3px; max-width: 480px; margin: 0 auto; box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05); position: relative; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }
.form-prescription-icon { font-size: 28px; color: #778ca3; position: absolute; top: 18px; left: 25px; line-height: 1; z-index: 1; }
#formTitle { font-family: 'Georgia', 'Times New Roman', serif; font-size: 20px; font-weight: 500; color: #263238; text-align: center; margin-bottom: 25px; padding-top: 5px; line-height: 1.4; }
#orderForm > div { margin-bottom: 20px; }
#orderForm label { display: block; font-size: 13px; font-weight: 400; color: #546e7a; margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.5px; }
.input-with-icon-wrapper { display: flex; align-items: center; position: relative; }
.input-field-icon { font-size: 18px; color: #90a4ae; margin-right: 10px; flex-shrink: 0; }
#orderForm .input-with-icon-wrapper input[type="text"] { width: 100%; flex-grow: 1; padding: 10px 12px; font-size: 17px; color: #212529; background-color: #fdfdfd; border: 1px solid #d8dde2; border-radius: 4px; box-sizing: border-box; transition: border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out, background-color 0.2s ease-in-out; }
#orderForm .input-with-icon-wrapper input[type="text"]:focus { border-color: #007bff; background-color: #fff; box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.15); outline: none; }
#submitButton { display: block; width: 100%; padding: 12px 20px; font-size: 17px; font-weight: 500; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; color: #fff; background-color: #007bff; border: none; border-radius: 4px; cursor: pointer; text-align: center; transition: background-color 0.2s ease-in-out, transform 0.1s ease; margin-top: 25px; }
#submitButton:hover:not(:disabled) { background-color: #0069d9; transform: translateY(-1px); }
#submitButton:active:not(:disabled) { background-color: #005cbf; transform: translateY(0); }
#submitButton:disabled { background-color: #ced4da; color: #6c757d; cursor: not-allowed; transform: none; }
.form-consent-notice { font-size: 12px; color: #6c757d; text-align: center; margin-top: 15px; margin-bottom: 0; line-height: 1.5; }
.form-consent-notice a { color: #546e7a; text-decoration: underline; }
.form-consent-notice a:hover { color: #007bff; text-decoration: none; }
#formMessage {
    margin-top: 20px;
    padding: 15px 15px;
    border-radius: 4px;
    font-size: 18px;
    text-align: center;
    line-height: 1.5;
    display: none;
}
.form-message {
    display: block !important;
    border: 1px solid transparent;
}
.form-message.success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}
.form-message.error {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}
.form-message:not(.success):not(.error) {
    color: #004085;
    background-color: #cce5ff;
    border-color: #b8daff;
}

/* Опциональное дополнение для тонкой настройки иконок */
 .form-message i.las { 
 vertical-align: sub;
    font-size: 2em;
    position: relative;
    top: 3px;
 }

/* Top Menu */
#menu-btn { cursor: pointer; padding: 0 20px; height: 44px; position: relative; margin: 0 auto; display: block; }
#hamburger { top: 20px; background: #fff; content: ""; display: block; height: 3px; left: 0; position: relative; width: 17px; }
#hamburger:before { top: -6px; background: #fff; content: ""; display: block; height: 3px; left: 0; position: relative; width: 17px; }
#hamburger:after { bottom: -3px; background: #fff; content: ""; display: block; height: 3px; left: 0; position: relative; width: 17px; }
#menu-head { display: none; }
#menu-head.open { display: block; }
#menu-head a { border-top: 1px solid #222; display: block; height: 1%; padding: 10px 20px; color: #fff; }
#menu-head a:hover { background: #007bff; text-decoration: none; }

/* Login */
#login-btn { padding: 11px 20px; font-weight: bold; float: left; cursor: pointer; }
#login-btn:before { margin: 2px 5px 0 0; height: 14px; background-position: 0 0; /* Убедитесь, что sprite.png на месте */ }
.wideDialog { padding-top: 45px; display: none; z-index: 99999; height: 100%; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(255,255,255,0.95); }
.wideDialog.open { display: block; }
#lg-close { cursor: pointer; position: absolute; right: 0; top: 0; width: 45px; height: 45px; background-position: -30px -38px; /* Убедитесь, что sprite.png на месте */ }
#loginpane { float: left; margin-top: 41px; } /* .loginbox { position: fixed !important; } - правило было, но без стилей, если не нужно - удалить */
.login-form { padding: 20px; margin-top: 13%; }
.login-form .f_input { font-size: 1.2em; padding: 8px; width: 100%; height: 44px; box-sizing: border-box; }
.login-form li { margin-bottom: 1em; }
.login-form li label { display: block; margin-bottom: .2em; }
.login-form a { color: #007bff !important; }
.log-links { padding: 15px 0; text-align: center; }
#usermenu { padding: 20px; }
#usermenu a { display: block; font-size: 1.5em; color: #007bff; }

/* Header */
.background { position: relative; max-width: 700px; margin: 0 auto; height: auto; padding: 10px; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; text-align: center; padding-top: 50px; font-size: 14px; border-bottom: 1px #e8e4e2 solid; }
.background p { margin: 0 10px; }
.background a { color: #333; }
.background a:hover { text-decoration: underline; }
@media (max-width: 600px) { .background { flex-direction: column; } }
#header { padding: 0 20px; position: relative; background: #fff; border-bottom: 1px solid #d4d4d4; box-shadow: 0 2px 4px rgba(0,0,0,0.05); }
/* #logo стили определены выше, здесь только специфичные для контекста header */

/* Quick Search */
#quicksearch { display: block; margin: 0 auto 20px auto; max-width: 400px; }
.quicksearch { overflow: hidden; width: 100%; position: relative; }
.quicksearch input { padding: 10px 45px 10px 15px; width: 100%; height: 44px; box-sizing: border-box; border: 1px solid #ccc; border-radius: 4px; font-size: 16px; }
.quicksearch button { cursor: pointer; width: 29px; height: 35px; margin: 1px; position: absolute; right: 0; top: 0; background-position: 0 -14px; /* Проверьте sprite.png */ padding: 0; background-color: transparent; border: 0 none; transition: background-position .4s ease; }
.quicksearch button:hover { background-position: 0 -49px; /* Проверьте sprite.png */ }
#go2full { color: #8b8b8b; text-shadow: 0 1px 0 #fff; display: block; width: 100%; padding: 12px 0; font-size: .8em; }
#go2full:before { margin: 2px 10px 0 0; width: 31px; background-position: -12px 0; /* Проверьте sprite.png */ }

/* Footer */
#footer { text-align: center; }
#footer .background { height: 8px; background-position: 50% 50%; border-bottom: none; }
#copyright { padding: 16px 20px; font-size: .9em; }
#copyright a, #copyright { color: #6a6a6a; }
#scrollBtn { display: none; position: fixed; bottom: 20px; right: 20px; width: 44px; height: 44px; border: none; background-color: #007bff; color: #fff; border-radius: 4px; font-size: 20px; cursor: pointer; z-index: 9999; line-height: 44px; transition: background-color 0.2s ease, opacity 0.2s ease; }
#scrollBtn:hover { background-color: #0056b3; opacity: 0.9; }
#scrollBtn:before { content: "\2191"; }
#footmenu { color: #fff; height: 1%; padding: 20px; border-bottom: 1px solid #070707; background: #141526; }
#footmenu h3 { margin-bottom: .6em; color: #fff; } /* Добавлен цвет для h3 в footmenu, если он наследуется от общих h3 */
#footmenu a { color: #fff; }
.main-nav a { display: block; margin-bottom: 1px; height: 1%; padding: 8px 12px; background: rgb(0 0 0); border-radius: 3px; transition: background-color 0.2s ease; }
.main-nav a:hover { background-color: rgba(0,0,0,0.4); text-decoration: none; }
.nav-sep { display: inline-block; height: 14px; }

/* Content */
.post { height: auto; padding: 20px; border-bottom: 1px solid #d4d4d4; box-shadow: 0 2px 4px rgba(0,0,0,0.03); margin-bottom: 20px; }
.post img { margin: 10px 0; max-width: 100%; height: auto; border-radius: 4px; }
.post .title { margin-bottom: .5em; }
.title a { color: #2a2a2a; }
.title a:hover { color: #007bff; }
.post-info, .icat, .com-inf { margin: 0; font-size: .9em; color: #6a6a6a; }
.post-info a, .icat a { font-weight: bold; color: #6a6a6a; }
.post-info a:hover, .icat a:hover { color: #007bff; }
.post-info li { display: inline-block; margin-right: 1em; }
.post-info li:before { margin: 3px 5px 0 0; /* Проверьте sprite.png */ }
.post-info { margin-bottom: 10px; }
.post-cont { margin-bottom: 20px; }
.iauthor:before { width: 8px; height: 10px; background-position: -43px 0; }
.idate:before { width: 10px; height: 10px; background-position: -60px 0; }
.iviews:before { width: 10px; height: 11px; background-position: -70px 0; }
.icat { border-top: 1px solid #e7e7e7; position: relative; padding: 10px 0 15px 14px; }
.icat:before { position: absolute; margin: 4px 5px 0 -14px; width: 9px; height: 10px; background-position: -51px 0; }
.com-num, .more a, .pager * { border-radius: 3px; }
.more a { padding: 10px 20px; float: left; text-shadow: none; color: #fff; box-shadow: 0 1px 3px rgba(0,0,0,0.1); transition: opacity .2s ease, background-color .2s ease; background-color: #007bff; }
.more a:hover { text-decoration: none; opacity: .9; background-color: #0056b3; }
.com-num { color: #007bff; float: right; padding: 8px 12px; background: #e9ecef; font-weight: 500; }
.com-num:before { float: none; vertical-align: middle; display: inline-block; width: 13px; height: 13px; margin-right: 5px; background-position: -80px 0; /* Проверьте sprite.png */ }

/* Styles for Fullstory and Static Pages */
.fullstory, .static { 
    border-bottom-width: 0; 
    box-shadow: none; 
    padding: 20px; 
}

.fullstory h1, .static h1 { 
    font-size: 30px; 
    margin-bottom: 20px; 
    padding: 0; 
    color: #111; 
}

.fullstory h2, .static h2 { 
    font-size: 24px; 
    margin-top: 30px; 
    margin-bottom: 15px; 
    padding: 0; 
    color: #222; 
}

.fullstory h3, .static h3 { 
    font-size: 20px; 
    margin-top: 25px; 
    margin-bottom: 15px; 
    padding: 0; 
    color: #333; 
}

/* ОБЩИЕ СТИЛИ ТАБЛИЦ ДЛЯ ПОЛНОЙ НОВОСТИ И СТАТИЧЕСКИХ СТРАНИЦ */
.fullstory table, .static table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 25px;
  font-size: 16px;
  border: 1px solid #e9ecef;
  table-layout: fixed;
}

.fullstory th, .fullstory td, 
.static th, .static td {
  text-align: left;
  padding: 12px 15px;
  border: none;
  border-bottom: 1px solid #e9ecef;
  border-right: 1px solid #e9ecef; /* Вертикальная линия справа */
  vertical-align: top;
  word-break: break-word;
}

/* Убираем последнюю нижнюю границу в таблице */
.fullstory table tr:last-child td,
.static table tr:last-child td {
  border-bottom: none;
}

/* Убираем последнюю правую границу в ячейках */
.fullstory th:last-child, .fullstory td:last-child,
.static th:last-child, .static td:last-child {
  border-right: none;
}

.fullstory td:first-child,
.static td:first-child {  
  font-weight: 500;  
  color: #333;  
}

.fullstory td:last-child,
.static td:last-child {
  color: #555;
}

.box { margin-bottom: 2em; }
.box h3 { padding: 0 20px; margin-bottom: .6em; }
#rel-news { border-bottom: 1px solid #e1e1e1; }
#rel-news a { display: block; height: auto; padding: 10px 40px 10px 20px; border-top: 1px solid #e1e1e1; position: relative; transition: background-color 0.2s ease, color 0.2s ease; }
#rel-news a:hover { text-decoration: none; color: #fff; background-color: #007bff; }
#rel-news a:before { position: absolute; right: 20px; top: 50%; margin-top: -6px; background-position: -54px -14px; /* Проверьте sprite.png */ }
#rel-news a:hover:before { background-position: -30px -26px; /* Проверьте sprite.png */ }

/* Опросы */
.gr-box { text-align: center; background: #f8f9fa; padding: 20px; border-bottom: 1px dashed #dbdbdb; }
.vtitle, .vlist { margin-bottom: .6em; }
.vlist { background: #fff; text-align: left; width: 80%; padding: 14px; margin: 0 auto 15px auto; border-radius: 3px; box-shadow: 0 1px 2px rgba(0,0,0,0.05); }
.vfoot .btn { margin: 2px; }

/* Сообщения об ошибках/информационные */
.berrors { background: #fce5ba; color: #a76846; padding: 15px 20px; height: auto; border-radius: 4px; }
.berrors a { color: #aa4e43; text-decoration: underline; }

/* Комментарии */
.commentbox { margin-bottom: 0; }
.comment { border-top: 1px solid #eaeaea; height: auto; padding: 20px; }
.com-cont { margin-bottom: .7em; }
.comment .photo { margin-top: -2px; vertical-align: middle; width: 30px; height: 30px; border-radius: 50%; margin-right: 10px; }
.com-inf .arg { margin-right: 10px; }
.fast a, .del a { margin-top: -5px; float: right; width: 30px; height: 12px; text-align: right; padding: 9px 0; }
.fast .thd { width: 14px; height: 12px; background-position: -66px -14px; /* Проверьте sprite.png */ }
.del .thd { width: 11px; height: 11px; background-position: -54px -26px; /* Проверьте sprite.png */ }
.mass-check { float: right; }
.mass_comments_action { text-align: right; border-top: 1px dashed #dbdbdb; border-bottom: 1px solid #fff; background: #f3f3f3; padding: 20px; }
.mass_comments_action *, .mass_comments_action { font-size: 18px; } /* Может быть слишком крупно, проверьте */

/* Пагинация */
.pager { padding: 20px; text-align: center; }
.pager .ico:before { float: none; position: absolute; margin-top: 4px; }
.pprev, .pnext { color: #979797; padding: 10px 15px; background: #f1f1f1; position: relative; border-radius: 3px; display: inline-block; margin: 0 5px; }
.pprev { padding-right: 30px; }
.pnext { padding-left: 30px; }
.pprev:before { right: 10px; background-position: -30px -14px; /* Проверьте sprite.png */ }
.pnext:before { left: 10px; background-position: -42px -14px; /* Проверьте sprite.png */ }
a .pprev, a .pnext { color: #fff; background-color: #007bff; border-bottom: none; box-shadow: 0 1px 3px rgba(0,0,0,0.1); transition: opacity .2s ease, background-color .2s ease; }
a .pprev:hover, a .pnext:hover { opacity: .9; background-color: #0056b3; text-decoration: none; }
a .pprev:before { background-position: -30px -26px; /* Проверьте sprite.png */ }
a .pnext:before { background-position: -42px -26px; /* Проверьте sprite.png */ }

/* Общие стили форм */
.ux-form { padding: 20px; border-radius: 4px; }
.ux-form h3 { margin-bottom: .6em; }
.ui-form { overflow: hidden; }
.ui-form li { margin-bottom: 10px; }
#fullsearch table { margin: 0; }
.tableform { width: 100%; border-collapse: collapse; }
.tableform td, .tableform th { border: 1px solid #e9ecef; padding: 10px; text-align: left; vertical-align: top; }
.tableform tr:first-child td, .tableform tr:first-child th { border-top: 1px solid #e9ecef; }
.tableform th, .tableform .label, .tableform .addnews { width: 25%; font-weight: 500; padding-right: 10px; }
.imp::after { color: #e46950; content: "*"; font-weight: bold; margin-left: 2px; }
p.label { margin-bottom: .3em; font-weight: 500; }
.recipient select { width: 100%; max-width: 298px; }
.checkbox { color: #555; padding: 4px 0; line-height: 1.2; }
.checkbox input { margin-top: -2px; vertical-align: middle; margin-right: 5px; }
.c-captcha-box { padding: 15px; font-size: 11px; border-radius: 3px; background: #fff; border: 1px solid #e0e0e0; }
.c-captcha { position: relative; height: 70px; display: flex; align-items: center; }
.c-captcha #dle-captcha, .c-captcha .f_input { float: none; margin-right: 10px; }
.c-captcha #dle-captcha a { display: block; clear: both; }
.c-captcha .f_input { position: static; font-size: 20px; height: auto; padding: 9px; width: 120px; }

/* Глобальные стили для инпутов, текстовых полей и селектов */
.fieldtr select, .f_textarea, .f_input, .xfields textarea, .xprofile textarea, .tdfield select, .lfield input, .editor input[type="text"], #category, textarea.ui-corner-all, .pm select, .xfields input, .xprofile input, .xfields select, .xprofile select, .mass_comments_action select, .bbeditor select, .textin, select.rating {
    padding: 10px 12px; background: #fff; border: 1px solid #ced4da; border-radius: 4px; box-shadow: inset 0 1px 2px rgba(0,0,0,0.075); font-size: 16px; line-height: 1.5; color: #495057; transition: border-color .15s ease-in-out,box-shadow .15s ease-in-out; box-sizing: border-box;
}
.fieldtr select:focus, .pm select:focus, .textin:focus, .f_textarea:focus, .f_input:focus, .xfields textarea:focus, .xprofile textarea:focus, .editor input[type="text"]:focus, #category:focus, textarea.ui-corner-all:focus, .tdfield select:focus, .lfield input:focus, .xfields input:focus, .xprofile input:focus, .xfields select:focus, .xprofile select:focus, .mass_comments_action select:focus, .bbeditor select:focus {
    border-color: #80bdff; outline: 0; box-shadow: inset 0 1px 2px rgba(0,0,0,.075), 0 0 0 0.2rem rgba(0,123,255,.25);
}
.f_wide { width: 100%; }
.combofield { position: relative; padding-right: 120px; }
.combofield .bbcodes { width: 110px; position: absolute; top: 0; right: 0; }

/* Статистика */
.tlist { width: 100%; border-collapse: collapse; }
.tlist tr { border-top: 1px dotted #eee; }
.tlist tr td { padding: 6px 0; }
.tl-right { width: 20%; text-align: right; }
.subtitle { margin-bottom: .4em; font-weight: 500; }

/* Результаты опроса */
.voteprogress, .voteprogress span, .pollprogress, .pollprogress span { display: block; height: 8px; border-radius: 4px; }
.voteprogress, .pollprogress { background-color: #e3e3e3; padding: 0; margin: 4px 0 10px 0; }
.voteprogress span, .pollprogress span { background: #007bff; overflow: hidden; text-indent: -9999px; white-space: nowrap; }

/* Стили для кнопок .btn, .bbcodes, .ui-button (оранжевые) */
/* Эти стили могут применяться к элементам, для которых не предназначены синие кнопки. */
/* Внимательно проверьте использование этих классов. */
.btn, .bbcodes, .ui-button {
    font-weight: bold; display: inline-block; cursor: pointer; height: auto; line-height: 1.5; margin: 0 2px; padding: 8px 18px; text-shadow: none; color: #fff !important; border-radius: 4px; box-sizing: border-box; box-shadow: 0 1px 2px rgba(0,0,0,0.1); border: none;
    background-color: #ef502b; /* Базовый цвет */
    background: -webkit-linear-gradient(top, #ef5633 0%, #ee4924 100%);
    background: -moz-linear-gradient(top, #ef5633 0%, #ee4924 100%);
    background: -ms-linear-gradient(top, #ef5633 0%, #ee4924 100%);
    background: -o-linear-gradient(top, #ef5633 0%, #ee4924 100%);
    background: linear-gradient(to bottom, #ef5633 0%, #ee4924 100%);
    transition: opacity .2s ease, background-color .2s ease;
}
.btn:active, .bbcodes:active, .ui-button:active { background: #d8431e; box-shadow: inset 0 1px 3px rgba(0,0,0,0.2); }
.btn:hover, .bbcodes:hover, .ui-button:hover { opacity: 0.9; text-decoration: none; }
/* Если для .bbcodes и .ui-button нужны специфичные размеры, отличные от .btn: */
/* .bbcodes, .ui-button { height: 30px; padding: 5px 14px; } */
/*linguise flags*/
.linguise_switcher.linguise_switcher_dropdown.linguise_flag_rectangular {
    top: 0px !important;
}
.linguise_switcher.linguise_switcher_dropdown.linguise_flag_rounded {
    top: 0px !important;
}
.linguise_switcher li::before {
    content: none !important;
	}
	/*
  Стили для блока автора с повышенной специфичностью
  для решения конфликтов с общими стилями темы (.post)
*/

/* Используем .post .author-box, чтобы повысить специфичность и победить общие стили */
.post .author-box {
  display: flex !important; /* Добавляем !important для гарантии */
  align-items: center;
  padding: 15px 0;
  margin-top: 40px;
  max-width: 450px;
  /* Сбрасываем возможные лишние стили от .post div */
  border: none;
  background: none;
}

/* Указываем, что стиль применяется к картинке с классом .author-photo внутри .post */
.post .author-photo {
  width: 80px;
  height: 80px;
  border-radius: 50% !important; /* !important, чтобы перебить border-radius: 4px из .post img */
  object-fit: cover;
  flex-shrink: 0;
  margin-right: 25px;
}

/* Усиливаем и остальные селекторы на всякий случай */
.post .author-info {
  /* Стили не нужны, но селектор может пригодиться */
}

.post .author-name {
  margin: 0;
  font-size: 1.1em;
  font-weight: 600;
  line-height: 1.2; /* Добавим для стабильности */
}

.post .author-name a {
  color: #333;
  text-decoration: none;
}

.post .author-name a:hover {
  text-decoration: underline;
}

.post .author-description {
  margin: 4px 0 0;
  font-size: 0.9em;
  color: #666;
  line-height: 1.4;
}