* {
    margin: 0;
    padding: 0;
    outline: none;
    border: 0;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

article, aside, figure, footer, header, nav, section, main {
    display: block;
}

body {
    font: 14px 'Ubuntu', Arial, Helvetica, sans-serif;
    line-height: 1.5;
    color: #333;
    background: #f0f2f5;
}

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

a {
    color: #008acf;
    text-decoration: none;
}

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

/* ---------- СЕТКА ---------- */
.wrap {
    min-width: 320px;
    overflow-x: hidden;
}

.center {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.block {
    background: #fff;
    padding: 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

/* ---------- ШАПКА ---------- */
.header {
    background: #fff;
    border-bottom: 1px solid #eaeaea;
}

.h-inf {
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    flex: 1;
}

.logo p {
    font-size: 24px;
    font-weight: 700;
    color: #222;
    margin-bottom: 5px;
}

.logo span {
    font-size: 13px;
    color: #777;
    display: block;
}

.search-box {
    width: 280px;
}

.search-field {
    position: relative;
}

.search-field input {
    width: 100%;
    padding: 0 40px 0 15px;
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: 30px;
    height: 38px;
    line-height: 38px;
    font-size: 14px;
}

.search-field input:focus {
    border-color: #008acf;
}

.search-box button {
    position: absolute;
    right: 5px;
    top: 5px;
    width: 28px;
    height: 28px;
    background: none;
    color: #888;
    border-radius: 30px;
    cursor: pointer;
}

.search-box button:hover {
    color: #008acf;
}

/* ---------- НАВИГАЦИЯ ---------- */
.h-nav {
    background: #f8f8f8;
    border-top: 1px solid #eaeaea;
    border-bottom: 4px solid #008acf;
    padding: 0 20px;
}

.h-nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
}

.h-nav li {
    display: inline-block;
}

.h-nav a {
    display: block;
    padding: 0 20px;
    line-height: 48px;
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    color: #333;
}

.h-nav a:hover {
    color: #008acf;
    text-decoration: none;
}

/* ---------- ОСНОВНАЯ СЕТКА ---------- */
.cols {
    display: flex;
    border-top: 1px solid #eaeaea;
}

.main {
    width: calc(100% - 340px);
    padding: 25px;
    background: #fff;
}

.side {
    width: 340px;
    border-left: 1px solid #eaeaea;
    background: #fff;
    padding: 25px 20px;
}

/* ---------- ХЛЕБНЫЕ КРОШКИ ---------- */
.speedbar {
    background: #f9f9f9;
    padding: 10px 15px;
    border: 1px solid #eaeaea;
    margin-bottom: 25px;
    font-size: 12px;
    color: #888;
    overflow-x: auto;
    white-space: nowrap;
}

.speedbar a {
    color: #008acf;
}

/* ---------- ЗАГОЛОВОК КАТЕГОРИИ ---------- */
.sect-t {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #008acf;
    display: inline-block;
}

/* ---------- SHORTSTORY (КАРТОЧКИ НОВОСТЕЙ) ---------- */
.post {
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 1px solid #eaeaea;
    position: relative;
}

.entry-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
}

.entry-title a {
    color: #222;
}

.entry-title a:hover {
    color: #008acf;
    text-decoration: none;
}

.entry-summary {
    position: relative;
    padding-left: 220px;
    min-height: 140px;
}

.excerpt-thumb {
    position: absolute;
    left: 0;
    top: 0;
    width: 200px;
    height: 140px;
    overflow: hidden;
    background: #eee;
    border-radius: 4px;
}

.excerpt-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.excerpt-thumb a:hover img {
    opacity: 0.85;
}

.entry-summary p {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
}

.read-more {
    display: inline-block;
}

.read-more a {
    color: #008acf;
    font-size: 13px;
    font-weight: 500;
}

/* Главная новость */
.featured-post {
    position: absolute;
    top: -12px;
    left: 0;
    background: #008acf;
    color: #fff;
    font-size: 11px;
    padding: 2px 10px;
    border-radius: 3px;
    text-transform: uppercase;
    font-weight: bold;
    z-index: 10;
}

.sticky .entry-summary {
    background: #fef9e7;
    padding: 15px 15px 15px 235px;
    margin-top: 5px;
}

.sticky .featured-post {
    left: 15px;
    top: 7px;
}

/* ---------- FULLSTORY (ПОЛНАЯ НОВОСТЬ) ---------- */
.full h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 15px;
}

.below-title-meta {
    font-size: 13px;
    color: #888;
    border-bottom: 1px solid #eaeaea;
    padding-bottom: 12px;
    margin-bottom: 25px;
}

.full-text {
    font-size: 15px;
    line-height: 1.7;
}

.full-text p {
    margin-bottom: 1.2em;
}

/* Видео плеер */
.video-box {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    margin-bottom: 25px;
    background: #000;
    overflow: hidden;
    border-radius: 8px;
}

.video-box iframe,
.video-box video,
.video-box embed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Похожие статьи */
.side-box {
    background: #f9f9f9;
    border: 1px solid #eaeaea;
    padding: 20px;
    margin-top: 35px;
    border-radius: 8px;
}

.side-box .side-bt {
    font-size: 18px;
    font-weight: 600;
    padding-bottom: 10px;
    margin-bottom: 15px;
    border-bottom: 2px solid #008acf;
    display: inline-block;
}

/* ---------- САЙДБАР ---------- */
.side-bx {
    margin-bottom: 30px;
}

.side-bt {
    font-size: 16px;
    font-weight: 600;
    padding: 0 0 10px 0;
    margin-bottom: 15px;
    border-bottom: 2px solid #008acf;
    display: inline-block;
}

.side-item {
    padding: 12px 0;
    border-bottom: 1px solid #eaeaea;
}

.side-item:last-child {
    border-bottom: none;
}

.side-item-date {
    font-size: 11px;
    color: #999;
    margin-bottom: 5px;
}

.side-item-link {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    display: block;
}

.side-item-link:hover {
    color: #008acf;
}

/* ---------- КОММЕНТАРИИ (КАК НА ALL-MAKE.SU) ---------- */
.comments-area {
    margin-top: 40px;
    clear: both;
}

.comments-title {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid #008acf;
    display: inline-block;
}

/* Один комментарий */
.comm-item {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eaeaea;
}

.comm-author {
    font-weight: 600;
    color: #333;
    font-size: 15px;
}

.comm-date {
    font-size: 11px;
    color: #999;
    margin-left: 12px;
}

.comm-text {
    margin-top: 10px;
    font-size: 14px;
    line-height: 1.6;
    color: #444;
}

.comm-text p {
    margin-bottom: 10px;
}

.comm-text a {
    color: #008acf;
    text-decoration: underline;
}

/* Кнопки в комментариях */
.comm-actions {
    margin-top: 10px;
    font-size: 12px;
}

.comm-actions a {
    color: #008acf;
    margin-right: 15px;
    cursor: pointer;
}

.comm-actions a:hover {
    text-decoration: underline;
}

/* Форма добавления комментария */
#addcomment,
.add-comm-form {
    background: #f9f9f9;
    border: 1px solid #eaeaea;
    border-radius: 8px;
    padding: 20px;
    margin: 25px 0;
}

.ac-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eaeaea;
}

/* Поля формы */
.ac-inputs {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.ac-inputs input {
    flex: 1;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 10px 12px;
    height: 42px;
    font-size: 14px;
}

.ac-textarea textarea,
#addcomment textarea {
    width: 100%;
    min-height: 120px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
}

/* Защита от ботов */
.ac-protect {
    margin: 15px 0;
    padding: 15px;
    background: #f0f0f0;
    border-radius: 4px;
}

.ac-protect label {
    font-weight: 500;
    margin-bottom: 8px;
    display: block;
}

.ac-protect input {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    width: 100%;
    max-width: 250px;
}

.ac-protect img {
    vertical-align: middle;
    margin-top: 10px;
}

/* Кнопка отправки */
.ac-submit {
    margin-top: 20px;
    text-align: right;
}

.ac-submit button,
#addcomment button {
    background: #008acf;
    color: #fff;
    border: none;
    padding: 10px 30px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
}

.ac-submit button:hover,
#addcomment button:hover {
    background: #006699;
}

/* ---------- ВСПЛЫВАЮЩИЕ ОКНА ---------- */
.ui-dialog {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    border: none;
    z-index: 10000 !important;
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    min-width: 300px;
    max-width: 90%;
}

.ui-dialog .ui-dialog-titlebar {
    background: #008acf;
    color: #fff;
    border: none;
    padding: 12px 20px;
    font-weight: 600;
}

.ui-dialog .ui-dialog-titlebar-close {
    position: absolute;
    right: 15px;
    top: 10px;
    background: rgba(255,255,255,0.2);
    border: none;
    width: 24px;
    height: 24px;
    border-radius: 4px;
    cursor: pointer;
}

.ui-dialog .ui-dialog-titlebar-close:hover {
    background: rgba(255,255,255,0.3);
}

.ui-dialog .ui-dialog-content {
    padding: 25px 20px;
    font-size: 14px;
    color: #333;
}

.ui-dialog .ui-dialog-buttonpane {
    padding: 15px 20px;
    background: #f5f5f5;
    border-top: 1px solid #eaeaea;
    text-align: right;
}

.ui-dialog button {
    padding: 8px 20px;
    margin-left: 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.ui-dialog button:first-child {
    background: #e0e0e0;
    color: #333;
}

.ui-dialog button:last-child {
    background: #f44336;
    color: #fff;
}

.ui-widget-overlay {
    background: rgba(0,0,0,0.6);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
}

/* ---------- ПАГИНАЦИЯ ---------- */
.navigation {
    text-align: center;
    margin-top: 30px;
}

.navigation a,
.navigation span {
    display: inline-block;
    padding: 6px 13px;
    margin: 0 3px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.navigation span,
.navigation a:hover {
    background: #008acf;
    border-color: #008acf;
    color: #fff;
    text-decoration: none;
}

/* ---------- ПОДВАЛ ---------- */
.footer {
    background: #f8f8f8;
    border-top: 1px solid #eaeaea;
    padding: 25px;
    text-align: center;
    font-size: 13px;
    color: #777;
}

/* ---------- КНОПКА НАВЕРХ ---------- */
#gotop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background: #008acf;
    color: #fff;
    text-align: center;
    line-height: 45px;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    z-index: 999;
    font-size: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

#gotop:hover {
    background: #006699;
}

/* ---------- РЕЗУЛЬТАТЫ ПОИСКА ---------- */
.sres-wrap {
    display: flex;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid #eaeaea;
}

.sres-img {
    width: 130px;
    flex-shrink: 0;
}

.sres-img img {
    width: 100%;
    height: 90px;
    object-fit: cover;
    border-radius: 4px;
}

.sres-text {
    flex-grow: 1;
}

.sres-text h2 {
    font-size: 18px;
    margin-bottom: 8px;
}

.sres-date {
    font-size: 12px;
    color: #999;
    margin-top: 5px;
}

/* ---------- АДАПТАВНАЯ ВЕРСИЯ (МОБИЛЬНЫЕ) ---------- */
@media screen and (max-width: 860px) {
    .center {
        padding: 0 15px;
    }
    
    .cols {
        flex-direction: column;
    }
    
    .main {
        width: 100%;
        padding: 20px;
    }
    
    .side {
        width: 100%;
        border-left: none;
        border-top: 1px solid #eaeaea;
        padding: 20px;
    }
    
    .entry-summary {
        padding-left: 200px;
    }
    
    .excerpt-thumb {
        width: 180px;
        height: 126px;
    }
}

@media screen and (max-width: 650px) {
    /* ==================================================
       НОВЫЕ СТИЛИ ДЛЯ КРАСИВОЙ ШАПКИ
       ================================================== */
    .header {
        position: sticky;
        top: 0;
        z-index: 999;
        background: #fff;
        box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    }

    .h-inf {
        display: flex;
        flex-wrap: wrap; 
        align-items: center;
        padding: 15px !important;
        text-align: left;
    }

    .logo-full { 
        display: none !important; 
    }
    
    .logo-mobile { 
        display: flex; 
        width: 100%;
        margin: 0 0 15px 0 !important; 
        order: 1; /* Логотип на первой строке */
    }

    .logo-icon { width: 40px; height: 40px; }
    .logo-text p { font-size: 20px; margin-bottom: 0; }
    .logo-text span { font-size: 11px; }

    .search-box {
        flex-grow: 1; 
        width: auto;
        max-width: 100%; 
        order: 2; /* Поиск на второй строке слева */
        margin: 0 10px 0 0 !important; 
    }

    .search-field {
        display: flex;
        background: #f4f6f8; 
        border-radius: 8px;  
        border: 1px solid #eaeaea;
        overflow: hidden;
    }

    .search-field input {
        width: 100%;
        background: transparent;
        border: none;
        padding: 10px 15px;
        height: 44px;
        font-size: 14px;
        outline: none;
    }

    .search-field button {
        background: transparent;
        color: #008acf;
        height: 44px;
        width: 44px;
        border: none;
        cursor: pointer;
    }

    .menu-toggle {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        background: #008acf; 
        color: #fff !important; 
        border-radius: 8px; 
        font-size: 0; 
        padding: 0 !important;
        margin: 0 !important;
        order: 3; /* Кнопка меню на второй строке справа */
        border: none;
    }

    .menu-toggle i {
        font-size: 22px;
    }

    .h-nav {
        display: none;
        position: absolute;
        top: 100%; 
        left: 0;
        width: 100%;
        background: #fff;
        box-shadow: 0 10px 15px rgba(0,0,0,0.1);
        border-top: 1px solid #eaeaea;
        padding: 0;
        white-space: normal;
    }
    
    .h-nav.open { display: block; }
    .h-nav ul { display: block; padding: 0; margin: 0; }
    .h-nav li { display: block; border-bottom: 1px solid #eaeaea; }
    .h-nav a { 
        display: block;
        padding: 12px 15px; 
        line-height: normal; 
        text-align: center; 
        font-size: 14px; 
        color: #333;
        text-transform: uppercase;
        font-weight: 500;
    }

    /* ==================================================
       ТВОИ СТАРЫЕ СТИЛИ (ДЛЯ НОВОСТЕЙ, ФОТО, КОММЕНТОВ)
       ================================================== */
    .entry-summary {
        padding-left: 0;
    }
    
    .excerpt-thumb {
        position: relative;
        width: 100%;
        height: auto;
        margin-bottom: 12px;
    }
    
    .excerpt-thumb img {
        aspect-ratio: 16/9;
    }
    
    .sticky .entry-summary {
        padding: 12px;
    }
    
    .sticky .featured-post {
        position: relative;
        left: 0;
        top: 0;
        display: inline-block;
        margin-bottom: 10px;
    }
    
    .entry-title {
        font-size: 18px;
    }
    
    .full h1 {
        font-size: 22px;
    }
    
    .ac-inputs {
        flex-direction: column;
        gap: 10px;
    }
    
    .comm-date {
        display: block;
        margin-left: 0;
        margin-top: 5px;
    }
    
    .sres-wrap {
        flex-direction: column;
        gap: 10px;
    }
    
    .sres-img {
        width: 100%;
    }
    
    .sres-img img {
        height: auto;
        aspect-ratio: 16/9;
    }
}

@media screen and (max-width: 480px) {
    .center {
        padding: 0 10px;
    }
    
    .main {
        padding: 15px;
    }
    
    .entry-title {
        font-size: 20px;
    }
    
    .full h1 {
        font-size: 20px;
    }
    
    .h-nav a {
        padding: 0 10px;
        font-size: 14px;
        line-height: 40px;
    }
    
    .comm-actions a {
        margin-right: 10px;
        font-size: 11px;
    }
    
    .ac-submit button {
        width: 100%;
    }
    
    #gotop {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
        line-height: 40px;
        font-size: 18px;
    }
}

/*--- UI WIDGETS ---*/
.ui-widget-overlay { background: #000; opacity:0.5; left: 0; top: 0; right: 0; bottom: 0; position: fixed; }
.ui-helper-clearfix:after { clear: both; content: "."; display: block; height: 0; visibility: hidden }
.ui-helper-clearfix { display: inline-block }
* html .ui-helper-clearfix { height: 1% }
.ui-helper-clearfix { display: block }

.ui-dialog { background-color: #fff; overflow: hidden; padding: 0; position: absolute; width: 300px; 
box-shadow:0 0 0 10px rgba(0,0,0,0.1); border-radius:0px;}
.ui-dialog-titlebar {padding:0 60px 0 20px; background-color:#3c6695;  
height:50px; line-height:50px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis;}
.ui-dialog-title { margin-top: 2px; float: left; font-size: 16px; color: #fff;}

.ui-dialog .ui-dialog-content {padding:20px; border: 0; overflow: auto; position: relative; zoom: 1; }
.ui-dialog-content h2 { display: inline; font-size: 1em; font-weight: bold }
.ui-dialog .ui-dialog-buttonpane { border-top: 1px solid #f0f0f0; padding: 10px 20px; text-align: center; 
background-color:#f8f8f8; }

.ui-dialog .ui-resizable-se { bottom: 3px; height: 14px; right: 3px; width: 14px; }
.ui-draggable .ui-dialog-titlebar { cursor: move; }

.ui-state-error { background: #fef1ec 50% 50% repeat-x !important; border: 1px solid #cd0a0a; color: #cd0a0a; }

.ui-icon-closethick {cursor: pointer; position:absolute; right:0; top:0; width:50px; height:50px;}
.ui-icon-closethick:before {content:"\f00d"; width:50px; height:50px; line-height:50px; text-align:center; color:#fff; 
position:absolute; right:0; top:0; text-indent:0; font-size:18px; 
background-color:#d91e18; display:block; font-family:'FontAwesome';}
a:hover .ui-icon-closethick {opacity:0.8;}
.ui-dialog .ui-dialog-buttonset button { margin-right:10px !important; line-height:15px !important; font-size:12px; padding:0 10px;}

/* ==================================================
   ВСПЛЫВАЮЩИЕ УВЕДОМЛЕНИЯ DLEPush
   ================================================== */

.DLEPush {
    position: fixed;
    z-index: 9999;
    pointer-events: none;
}

.DLEPush.top-right {
    top: 20px;
    right: 20px;
}

.DLEPush.top-left {
    top: 20px;
    left: 20px;
}

.DLEPush.bottom-right {
    bottom: 20px;
    right: 20px;
}

.DLEPush.bottom-left {
    bottom: 20px;
    left: 20px;
}

.DLEPush-notification {
    position: relative;
    pointer-events: auto;
    margin-bottom: 10px;
    width: 350px;
    max-width: calc(100vw - 40px);
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    animation: dlePushIn 0.3s ease;
}

@keyframes dlePushIn {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.DLEPush-notification.wrapper {
    background: #fff;
    border-left: 4px solid;
}

.DLEPush-notification.wrapper.push-error {
    border-left-color: #f44336;
}

.DLEPush-notification.wrapper.push-success {
    border-left-color: #4caf50;
}

.DLEPush-notification.wrapper.push-warning {
    border-left-color: #ff9800;
}

.DLEPush-notification.wrapper.push-info {
    border-left-color: #008acf;
}

.DLEPush-close {
    position: absolute;
    right: 12px;
    top: 12px;
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #999;
    width: 24px;
    height: 24px;
    line-height: 1;
    padding: 0;
}

.DLEPush-close:hover {
    color: #333;
}

.DLEPush-icon {
    float: left;
    width: 40px;
    height: 40px;
    margin: 15px 0 0 15px;
}

.DLEPush-icon svg {
    width: 24px;
    height: 24px;
}

.push-error .DLEPush-icon {
    color: #f44336;
}

.push-success .DLEPush-icon {
    color: #4caf50;
}

.push-warning .DLEPush-icon {
    color: #ff9800;
}

.push-info .DLEPush-icon {
    color: #008acf;
}

.DLEPush-header {
    padding: 15px 35px 0 65px;
    font-weight: 600;
    font-size: 15px;
    color: #333;
}

.DLEPush-message {
    padding: 5px 35px 15px 65px;
    font-size: 13px;
    color: #666;
    line-height: 1.5;
}

/* Анимация закрытия */
.DLEPush-notification.removing {
    animation: dlePushOut 0.3s ease forwards;
}

@keyframes dlePushOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(100%);
    }
}

/* ==================================================
   КОММЕНТАРИИ - ВАШИ ТЕКУЩИЕ СТИЛИ (ДОПОЛНЕНИЕ)
   ================================================== */

.add-comm-form {
    background: #f9f9f9;
    border: 1px solid #eaeaea;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.ac-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #008acf;
    display: inline-block;
    cursor: pointer;
}

.ac-title .fa-chevron-down {
    transition: transform 0.2s;
}

.ac-title.collapsed .fa-chevron-down {
    transform: rotate(-90deg);
}

.ac-soc {
    text-align: right;
    margin-bottom: 15px;
    font-size: 12px;
    color: #666;
}

.ac-soc:before {
    content: attr(data-label);
    margin-right: 8px;
}

.ac-soc a {
    display: inline-block;
    margin-left: 5px;
}

.ac-soc img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
}

.ac-inputs {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.ac-inputs input {
    flex: 1;
    height: 42px;
    padding: 0 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fff;
    font-size: 14px;
}

.ac-textarea textarea {
    width: 100%;
    min-height: 120px;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fff;
    resize: vertical;
    font-family: inherit;
    font-size: 14px;
}

.ac-protect {
    margin: 15px 0;
    padding: 15px;
    background: #f0f0f0;
    border-radius: 6px;
}

.ac-protect .form-item {
    margin-bottom: 10px;
}

.ac-protect label {
    font-weight: 500;
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
}

.ac-protect .form-secur input {
    width: 100%;
    max-width: 250px;
    height: 38px;
    padding: 0 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
}

.ac-protect .form-secur img {
    vertical-align: middle;
    margin-top: 10px;
}

.ac-submit {
    margin-top: 20px;
    text-align: right;
}

.ac-submit button {
    background: #008acf;
    color: #fff;
    border: none;
    padding: 10px 30px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.2s;
}

.ac-submit button:hover {
    background: #006699;
}

/* Список комментариев */
.comm-item {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eaeaea;
}

.comm-right {
    margin-left: 0;
}

.comm-one {
    margin-bottom: 8px;
}

.comm-author {
    font-weight: 700;
    color: #222;
    font-size: 15px;
}

.comm-one span:not(.comm-author) {
    font-size: 11px;
    color: #999;
    margin-left: 12px;
}

.comm-two {
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    margin-bottom: 10px;
}

.comm-two p {
    margin-bottom: 8px;
}

.comm-three {
    list-style: none;
    margin-top: 10px;
}

.comm-three li {
    display: inline-block;
    margin-right: 15px;
    font-size: 12px;
}

.comm-three li a {
    color: #008acf;
    cursor: pointer;
}

.comm-three li a:hover {
    text-decoration: underline;
}

.comm-three .fa {
    margin-right: 5px;
}

/* Адаптив для мобильных */
@media (max-width: 650px) {
    .DLEPush-notification {
        width: calc(100vw - 40px);
    }
    
    .DLEPush-header,
    .DLEPush-message {
        padding-left: 55px;
        padding-right: 40px;
    }
    
    .DLEPush-icon {
        margin-left: 12px;
    }
    
    .ac-inputs {
        flex-direction: column;
        gap: 10px;
    }
    
    .ac-soc {
        text-align: center;
    }
    
    .ac-soc:before {
        display: block;
        margin-bottom: 8px;
    }
    
    .ac-protect .form-secur input {
        max-width: 100%;
    }
    
    .comm-one span:not(.comm-author) {
        display: inline-block;
        margin-left: 8px;
    }
    
    .comm-three li {
        margin-right: 10px;
    }
}

@media (max-width: 480px) {
    .comm-one span:not(.comm-author) {
        display: block;
        margin-left: 0;
        margin-top: 5px;
    }
}

/* ==================================================
   ВСЕ IFRAME (ВИДЕО) - АДАПТИВНЫЕ
   ================================================== */

/* Обертка для iframe (добавьте этот div вокруг видео) */
.video-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* Соотношение 16:9 */
    overflow: hidden;
    margin: 20px 0;
    background: #000;
    border-radius: 12px;
}

.video-container iframe,
.video-container video,
.video-container embed,
.video-container object {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    border: none;
}

/* Для прямых iframe без обертки */
iframe:not(.video-container iframe) {
    width: 100%;
    max-width: 100%;
    border: none;
    aspect-ratio: 14 / 9; /* Современный способ */
    height: auto;
}

/* Специально для OK.ru, YouTube, VK, Rutube */
iframe[src*="ok.ru"],
iframe[src*="youtube.com"],
iframe[src*="youtu.be"],
iframe[src*="vk.com"],
iframe[src*="rutube.ru"],
iframe[src*="dzen.ru"],
iframe[src*="mail.ru"] {
    width: 100%;
    max-width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    border-radius: 12px;
}

/* Старые браузеры (запасной вариант) */
@supports not (aspect-ratio: 16 / 9) {
    iframe[src*="ok.ru"],
    iframe[src*="youtube.com"],
    iframe[src*="vk.com"] {
        width: 100%;
        height: auto;
        min-height: 200px;
    }
}

/* ----- АДАПТИВ ДЛЯ ПЛАНШЕТОВ ----- */
@media screen and (max-width: 860px) {
    .video-container {
        border-radius: 8px;
        margin: 15px 0;
    }
    
    iframe[src*="ok.ru"],
    iframe[src*="youtube.com"],
    iframe[src*="vk.com"] {
        border-radius: 8px;
    }
}

/* ----- АДАПТИВ ДЛЯ МОБИЛЬНЫХ ----- */
@media screen and (max-width: 650px) {
    .video-container {
        border-radius: 6px;
        margin: 12px 0;
    }
    
    iframe[src*="ok.ru"],
    iframe[src*="youtube.com"],
    iframe[src*="vk.com"] {
        border-radius: 6px;
    }
}

/* Для очень маленьких телефонов */
@media screen and (max-width: 480px) {
    .video-container {
        margin: 10px 0;
        border-radius: 4px;
    }
}

/* Для iframe внутри full-text статьи */
.full-text iframe {
    width: 100%;
    max-width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    border-radius: 12px;
}

.full-text .video-container {
    margin: 25px 0;
}

/* ==================================================
   ПОИСК - ПОЛНЫЙ КОМПЛЕКТ СТИЛЕЙ
   ================================================== */

/* ---------- СТРАНИЦА ПОИСКА (search.tpl) ---------- */
.searchpage {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
}

.searchpage .head {
    margin-bottom: 25px;
}

.searchpage .title {
    font-size: 28px;
    font-weight: 700;
    color: #222;
    border-bottom: 3px solid #008acf;
    display: inline-block;
    padding-bottom: 8px;
}

/* Форма поиска */
.searchtable {
    background: #f5f7f9;
    border-radius: 12px;
    padding: 25px;
    margin: 20px 0;
}

.searchtable .form-group {
    margin-bottom: 15px;
}

.searchtable label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.searchtable input[type="text"],
.searchtable select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    background: #fff;
    transition: all 0.2s;
}

.searchtable input[type="text"]:focus {
    border-color: #008acf;
    box-shadow: 0 0 0 2px rgba(0,138,207,0.1);
    outline: none;
}

.searchtable input[type="submit"] {
    background: #008acf;
    color: #fff;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    transition: background 0.2s;
}

.searchtable input[type="submit"]:hover {
    background: #006699;
}

/* Сообщение о результатах поиска */
.search_result_num {
    background: #e8f4fd;
    padding: 12px 18px;
    border-radius: 8px;
    color: #008acf;
    font-size: 14px;
    margin: 20px 0;
}

/* ---------- РЕЗУЛЬТАТЫ ПОИСКА (searchresult.tpl) ---------- */
/* Полные результаты (как shortstory) */
.search_head_line {
    margin-bottom: 25px;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.search_head_line:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.search_head_line .wrp {
    padding: 20px;
    background: #fff;
    border: 1px solid #eaeaea;
    border-radius: 12px;
}

.search_head_line .title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
}

.search_head_line .title a {
    color: #222;
}

.search_head_line .title a:hover {
    color: #008acf;
    text-decoration: none;
}

.search_head_line .text {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

/* Короткие результаты */
.search_head_line .story_left_icons {
    float: right;
    margin-left: 15px;
}

.search_head_line .story_icons .edit_btn i {
    background: #999;
    display: inline-block;
    width: 16px;
    height: 16px;
    border-radius: 3px;
    cursor: pointer;
}

/* ---------- РЕЗУЛЬТАТЫ ПОИСКА КОММЕНТАРИЕВ ---------- */
.searchcoms {
    margin-bottom: 25px;
    border-radius: 12px;
}

.searchcoms .wrp {
    padding: 20px;
    background: #fff;
    border: 1px solid #eaeaea;
    border-radius: 12px;
}

.searchcoms .title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
}

.searchcoms .title a {
    color: #222;
}

.searchcoms .text {
    font-size: 14px;
    color: #555;
    line-height: 1.5;
}

.searchcoms .text strong {
    color: #008acf;
}

/* ---------- БЫСТРЫЙ ПОИСК (fastsearchresult.tpl) ---------- */
#fastsearch {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
    z-index: 1000;
    max-height: 360px;
    overflow-y: auto;
    margin-top: 5px;
}

#fastsearch a {
    display: flex;
    flex-direction: column;
    padding: 12px 16px;
    border-bottom: 1px solid #eee;
    text-decoration: none;
    transition: background 0.2s;
}

#fastsearch a:hover {
    background: #f5f7f9;
    text-decoration: none;
}

#fastsearch .searchheading {
    font-size: 14px;
    font-weight: 600;
    color: #222;
    margin-bottom: 5px;
}

#fastsearch span:not(.searchheading) {
    font-size: 12px;
    color: #888;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Пустой результат быстрого поиска */
#fastsearch .fastsearch-empty {
    padding: 20px;
    text-align: center;
    color: #999;
}

/* Скроллбар */
#fastsearch::-webkit-scrollbar {
    width: 6px;
}

#fastsearch::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

#fastsearch::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
}

#fastsearch::-webkit-scrollbar-thumb:hover {
    background: #999;
}

/* ---------- ОБЩИЕ ЭЛЕМЕНТЫ ПОИСКА ---------- */
/* Блок результата как карточка */
.block.story {
    margin-bottom: 25px;
}

/* Адаптивность */
@media (max-width: 860px) {
    .searchpage {
        padding: 20px;
    }
    
    .searchpage .title {
        font-size: 24px;
    }
    
    .searchtable {
        padding: 20px;
    }
}

@media (max-width: 650px) {
    .searchpage {
        padding: 15px;
    }
    
    .searchpage .title {
        font-size: 22px;
    }
    
    .searchtable {
        padding: 15px;
    }
    
    .search_head_line .wrp,
    .searchcoms .wrp {
        padding: 15px;
    }
    
    .search_head_line .title {
        font-size: 16px;
    }
    
    .search_head_line .text,
    .searchcoms .text {
        font-size: 13px;
    }
    
    #fastsearch {
        max-height: 280px;
    }
    
    #fastsearch .searchheading {
        font-size: 13px;
    }
    
    #fastsearch span:not(.searchheading) {
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .searchpage {
        padding: 12px;
    }
    
    .searchpage .title {
        font-size: 20px;
    }
    
    .searchtable input[type="submit"] {
        width: 100%;
    }
    
    .search_head_line .title {
        font-size: 15px;
    }
}

/* ==================================================
   БЫСТРЫЙ ПОИСК - searchsuggestions
   ================================================== */

#searchsuggestions {
    position: absolute;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
    z-index: 9999;
    min-width: 280px;
    max-width: 400px;
    overflow: hidden;
}

#searchsuggestions a {
    display: block;
    padding: 12px 15px;
    text-decoration: none;
    border-bottom: 1px solid #eee;
    transition: background 0.2s;
}

#searchsuggestions a:hover {
    background: #f5f7f9;
    text-decoration: none;
}

#searchsuggestions .searchheading {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #222;
    margin-bottom: 6px;
}

#searchsuggestions span:not(.searchheading) {
    display: block;
    font-size: 12px;
    color: #777;
    line-height: 1.4;
}

#searchsuggestions .seperator {
    display: block;
    padding: 10px 15px;
    background: #f8f8f8;
    border-top: 1px solid #eee;
}

#searchsuggestions .seperator a {
    display: inline;
    padding: 0;
    border-bottom: none;
    font-size: 13px;
    color: #008acf;
    font-weight: 500;
}

#searchsuggestions .seperator a:hover {
    background: none;
    text-decoration: underline;
}

/* Адаптив для мобильных */
@media (max-width: 768px) {
    #searchsuggestions {
        max-width: calc(100vw - 40px);
        left: 20px !important;
        right: 20px !important;
        top: auto !important;
    }
    
    #searchsuggestions .searchheading {
        font-size: 13px;
    }
    
    #searchsuggestions span:not(.searchheading) {
        font-size: 11px;
        -webkit-line-clamp: 2;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
}

/* Логотип с иконкой */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-icon {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.logo-text p {
    font-size: 22px;
    font-weight: 700;
    color: #222;
    margin-bottom: 4px;
}

.logo-text span {
    font-size: 12px;
    color: #777;
    display: block;
}

/* Мобильная версия логотипа (скрыта по умолчанию) */
.logo-mobile {
    display: none;
}

/* Планшеты и ПК */
@media screen and (min-width: 651px) {
    .logo-full {
        display: flex;
    }
    .logo-mobile {
        display: none;
    }
    .logo-icon {
        width: 45px;
        height: 45px;
    }
    .logo-text p {
        font-size: 22px;
    }
}

/* Мобильные телефоны */
@media screen and (max-width: 650px) {
    .logo-full {
        display: none;
    }
    .logo-mobile {
        display: flex;
    }
    .logo-icon {
        width: 50px;
        height: 50px;
    }
    .logo-text p {
        font-size: 32px;
        margin-bottom: 2px;
    }
    .logo-text span {
        font-size: 15px;
    }
}

/* Планшеты (промежуточный вариант) */
@media screen and (min-width: 651px) and (max-width: 860px) {
    .logo-icon {
        width: 38px;
        height: 38px;
    }
    .logo-text p {
        font-size: 18px;
    }
    .logo-text span {
        font-size: 11px;
    }
}

/* ==================================================
   КОММЕНТАРИИ - ОСНОВНЫЕ СТИЛИ (ДЛЯ ВСЕХ УСТРОЙСТВ)
   ================================================== */

.comments-area {
    margin-top: 40px;
    clear: both;
}

.comments-title {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid #008acf;
    display: inline-block;
}

/* Один комментарий */
.comm-item {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eaeaea;
}

.comm-author {
    font-weight: 600;
    color: #333;
    font-size: 15px;
}

.comm-date {
    font-size: 11px;
    color: #999;
    margin-left: 12px;
}

.comm-text {
    margin-top: 10px;
    font-size: 14px;
    line-height: 1.6;
    color: #444;
}

.comm-text p {
    margin-bottom: 10px;
}

.comm-text a {
    color: #008acf;
    text-decoration: underline;
}

/* Кнопки в комментариях */
.comm-actions {
    margin-top: 10px;
    font-size: 12px;
}

.comm-actions a {
    color: #008acf;
    margin-right: 15px;
    cursor: pointer;
}

.comm-actions a:hover {
    text-decoration: underline;
}

/* Форма добавления комментария */
#addcomment,
.add-comm-form {
    background: #f9f9f9;
    border: 1px solid #eaeaea;
    border-radius: 8px;
    padding: 20px;
    margin: 25px 0;
}

.ac-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eaeaea;
}

/* Поля формы */
.ac-inputs {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.ac-inputs input {
    flex: 1;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 10px 12px;
    height: 42px;
    font-size: 14px;
}

.ac-textarea textarea,
#addcomment textarea {
    width: 100%;
    min-height: 120px;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
}

/* Защита от ботов */
.ac-protect {
    margin: 15px 0;
    padding: 15px;
    background: #f0f0f0;
    border-radius: 4px;
}

.ac-protect label {
    font-weight: 500;
    margin-bottom: 8px;
    display: block;
}

.ac-protect input {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    width: 100%;
    max-width: 250px;
}

.ac-protect img {
    vertical-align: middle;
    margin-top: 10px;
}

/* Кнопка отправки */
.ac-submit {
    margin-top: 20px;
    text-align: right;
}

.ac-submit button,
#addcomment button {
    background: #008acf;
    color: #fff;
    border: none;
    padding: 10px 30px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
}

.ac-submit button:hover,
#addcomment button:hover {
    background: #006699;
}

.comm-three {
    list-style: none;
    margin-top: 10px;
}

.comm-three li {
    display: inline-block;
    margin-right: 15px;
    font-size: 12px;
}

.comm-three li a {
    color: #008acf;
    cursor: pointer;
}

.comm-three li a:hover {
    text-decoration: underline;
}

.comm-three .fa {
    margin-right: 5px;
}

/* ==================================================
   МОБИЛЬНЫЕ СТИЛИ ДЛЯ КОММЕНТАРИЕВ (ТОЛЬКО ДЛЯ ТЕЛЕФОНОВ)
   ================================================== */
@media screen and (max-width: 650px) {
    .comments-area {
        margin-top: 25px;
    }
    
    .comments-title {
        font-size: 18px;
        margin-bottom: 15px;
        display: block;
        text-align: left;
    }
    
    .add-comm-form {
        padding: 12px;
        margin: 15px 0;
    }
    
    .ac-title {
        font-size: 16px;
        margin-bottom: 12px;
    }
    
    .ac-inputs {
        flex-direction: column;
        gap: 8px;
    }
    
    .ac-inputs input {
        height: 38px;
        font-size: 13px;
    }
    
    .ac-textarea textarea {
        min-height: 100px;
        font-size: 13px;
    }
    
    .ac-protect {
        padding: 10px;
    }
    
    .ac-protect .form-secur input {
        max-width: 100%;
    }
    
    .ac-submit button {
        width: 100%;
        padding: 10px;
    }
    
    .comm-item {
        margin-bottom: 15px;
        padding-bottom: 12px;
    }
    
    .comm-author {
        font-size: 14px;
        display: inline-block;
    }
    
    .comm-date {
        display: inline-block;
        margin-left: 8px;
        font-size: 10px;
    }
    
    .comm-text {
        font-size: 13px;
    }
    
    .comm-three li {
        margin-right: 10px;
        font-size: 11px;
    }
}

@media screen and (max-width: 480px) {
    .add-comm-form {
        padding: 10px;
    }
    
    .ac-title {
        font-size: 15px;
    }
    
    .comm-author {
        display: block;
    }
    
    .comm-date {
        display: block;
        margin-left: 0;
        margin-top: 3px;
    }
}