﻿html, body {
   
}

.container-form {
    min-height: 80vh;
    margin-top:100px;
}

/*AdminIndex---start*/
.admin-panel {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.admin-btn {
    display: inline-block;
    padding: 12px 20px;
    background: #2e6b52;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    transition: 0.3s;
}

    .admin-btn:hover {
        background: #1f4c3a;
    }
/* центрируем страницу логина */
.admin-auth {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* сужаем карточку */
.auth-card {
    max-width: 420px;
    width: 100%;
}

    /* делаем поля аккуратнее */
    .auth-card .form-control {
        max-width: 100%;
    }

/* сетка */
.admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

/* карточки-кнопки */
.admin-tile {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 90px; /* одинаковый размер */

    padding: 16px;
    border-radius: 10px;
    background: #fff;
    border: 1px solid #e5e7eb;
    text-decoration: none;
    color: #111;
    transition: all 0.2s ease;
}

    /* заголовок */
    .admin-tile span {
        font-weight: 600;
        font-size: 16px;
    }

    /* подпись */
    .admin-tile small {
        margin-top: 4px;
        color: #6b7280;
        font-size: 13px;
    }

    /* hover */
    .admin-tile:hover {
        transform: translateY(-2px);
        border-color: #3b82f6;
        box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    }
/*AdminIndex---end*/
/*GalleryImages------------------------------start*/

.gallery-form{
    margin-top:100px;
}
.upload-box {
    border: 2px dashed #4CAF50;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: 0.3s;
    background: rgba(255,255,255,0.05);
}

    .upload-box.dragover {
        background: rgba(76,175,80,0.2);
        border-color: #2e7d32;
    }

#preview {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.preview-img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
}
/*NEW GALLERY------------------------------------*/
/* ===== UPLOAD BOX ===== */

.upload-box {
    margin-top: 20px;
    padding: 20px;
    border: 2px dashed #ddd;
    border-radius: 10px;
    text-align: center;
    cursor: pointer;
    transition: 0.2s;
}

    .upload-box:hover {
        border-color: #2d6cdf;
        background: #f9fbff;
    }

/* ===== PREVIEW ===== */

.preview-grid {
    margin-top: 10px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

    .preview-grid img {
        width: 80px;
        border-radius: 6px;
    }

/* ===== GALLERY GRID ===== */

.gallery-grid {
    margin-top: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
}

/* ===== ITEM ===== */

.gallery-item {
    padding: 12px;
}

    /* ===== IMAGE ===== */

    .gallery-item img {
        width: 100%;
        border-radius: 8px;
    }

/* ===== META ===== */

.gallery-meta {
    font-size: 13px;
    color: #555;
    margin: 8px 0;
}

/* ===== IMAGE PREVIEW ===== */

.images-preview {
    display: flex;
    gap: 6px;
}

    .images-preview img {
        width: 40px;
        height: 40px;
        object-fit: cover;
        border-radius: 6px;
    }

.upload-box.dragover {
    border-color: #2d6cdf;
    background: #eef4ff;
}

/*GalleryImages------------------------------end*/
/*Market------------------------------start*/
.preview-grid {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.preview-item {
    position: relative;
    width: 100px;
    height: 100px;
    cursor: grab;
}

    .preview-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 6px;
    }

    .preview-item.main img {
        border: 3px solid green;
    }

.remove-btn {
    position: absolute;
    top: -6px;
    right: -6px;
    background: red;
    color: white;
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    cursor: pointer;
}
/* ================= МОБИЛКА ================= */

@media (max-width: 768px) {

    /* скрываем заголовок таблицы */
    .admin-table thead {
        display: none;
    }

    .admin-table,
    .admin-table tbody,
    .admin-table tr {
        display: block;
        width: 100%;
    }

        /* карточка */
        .admin-table tr {
            background: #fff;
            border: 1px solid #e5e7eb;
            border-radius: 12px;
            padding: 14px;
            margin-bottom: 12px;
        }

        .admin-table td {
            display: block;
            border: none;
            padding: 6px 0;
        }

    /* подписи */
    .mobile-label {
        display: block;
        font-size: 12px;
        color: #6b7280;
        margin-bottom: 2px;
    }

    /* название */
    .title {
        font-weight: 600;
        font-size: 16px;
    }

    /* картинки */
    .images-preview {
        display: flex;
        gap: 6px;
        overflow-x: auto;
        margin-top: 6px;
    }

        .images-preview img {
            width: 60px;
            height: 60px;
            border-radius: 6px;
            flex-shrink: 0;
        }

    /* кнопки */
    .actions-group {
        display: flex;
        flex-direction: column; /* 🔥 ключ */
        gap: 8px;
        margin-top: 10px;
    }

    .btn-sm {
        width: 100%; /* 🔥 кнопки на всю ширину */
        text-align: center;
        padding: 10px;
        font-size: 14px;
    }

    /* зона загрузки */
    .upload-box {
        padding: 20px;
        text-align: center;
    }

    .preview-item {
        width: 80px;
        height: 80px;
    }
}

/*Market------------------------------end*/
/*Requsts-----------------------------start*/

.request-form {
    margin-top: 150px;
    display: flex;
    justify-content: center;
    padding: 20px;
}

/* 🔥 КАРТОЧКА — ТЕПЕРЬ ОНА ЯКОРЬ */
.request-card {
    position: relative; /* ✅ ключевой фикс */

    width: 100%;
    max-width: 400px;
    background: #ffffff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* 🔥 КРЕСТИК */
.close-btn-request {
    top: 60px;
    right: 60px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    font-weight: bold;
    color: white;
    text-decoration: none;
    background: rgba(0,0,0,0.6); /* чтобы точно видно было */
    border-radius: 50%;
    cursor: pointer;
    z-index: 99999; /* 🔥 выше всего */

    transition: 0.2s;
}

    .close-btn-request:hover {
        background: #cb11ab;
        transform: scale(1.1);
    }

/* ОСТАЛЬНОЕ БЕЗ ИЗМЕНЕНИЙ */

.form-title {
    text-align: center;
    font-size: 20px;
    font-weight: 600;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

    .form-group label {
        font-size: 14px;
        color: #555;
    }

    .form-group input {
        padding: 10px;
        border-radius: 8px;
        border: 1px solid #ddd;
        font-size: 14px;
        transition: 0.2s;
    }

        .form-group input:focus {
            border-color: #4CAF50;
            outline: none;
        }

.error {
    font-size: 12px;
    color: red;
}

.btn-submit {
    margin-top: 10px;
    padding: 12px;
    border: none;
    border-radius: 8px;
    background: #4CAF50;
    color: white;
    font-size: 15px;
    cursor: pointer;
    transition: 0.2s;
}

    .btn-submit:hover {
        background: #43a047;
    }

/*Requsts------------------------------end*/

/*Faqs----------------------------------start*/
/*ДЛЯ АДМИНКИ-----------------*/
.title {
    margin-bottom: 20px;
}
.container-FAQ{
    margin:80px 10px 10px 10px;
}

.faq-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 600px;
}

    .faq-form input,
    .faq-form textarea {
        padding: 10px;
        border: 1px solid #ddd;
        border-radius: 6px;
    }

    .faq-form button {
        width: 150px;
        padding: 10px;
        background: black;
        color: white;
        border: none;
        cursor: pointer;
    }

.faq-list {
    margin-top: 30px;
}

.faq-card {
    border: 1px solid #eee;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 15px;
    background: #fafafa;
}

    .faq-card input,
    .faq-card textarea {
        width: 100%;
        margin-bottom: 10px;
        padding: 8px;
    }

.actions {
    display: flex;
    gap: 10px;
}

.delete {
    background: red;
    color: white;
    border: none;
    padding: 8px;
    cursor: pointer;
}
/* NEW FAQ------------------------*/
/* ===== FAQ LIST ===== */

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 20px;
}

/* ===== FAQ CARD ===== */

.faq-card {
    cursor: grab;
}

    .faq-card.dragging {
        opacity: 0.5;
    }

/* ===== SMALL BUTTON ===== */

.btn-sm {
    padding: 5px 10px;
    font-size: 12px;
}

/* ===== TOGGLE ===== */

.btn-toggle {
    background: #f3f4f6;
    color: #333;
}

    .btn-toggle:hover {
        background: #e5e7eb;
    }

/*для страницы FAQ------------------------*/
.faq {

    max-width: 800px;
    margin: 40px  auto;
    padding: 0 15px;
}

    .faq h1 {
        font-size: 28px;
        margin-bottom: 25px;
        font-weight: 600;
    }

/* карточка */
.faq-item {
    border-bottom: 1px solid #e5e5e5;
    padding: 15px 0;
}

/* вопрос */
.faq-question {
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    padding-right: 20px;
}

    /* стрелка */
    .faq-question::after {
        content: "+";
        position: absolute;
        right: 0;
        top: 0;
        font-size: 18px;
        transition: 0.2s;
    }

/* активное состояние */
.faq-item.active .faq-question::after {
    content: "–";
}

/* ответ */
.faq-answer {
    display: none;
    margin-top: 10px;
    color: #555;
    line-height: 1.5;
    font-size: 15px;
}

/* плавное появление */
.faq-item.active .faq-answer {
    display: block;
}

/*Faqs----------------------------------end*/

/*Blog--------------------------------------start*/



    .blog-post .content {
        font-size: 16px;
    }
.blog-post {
    max-width: 800px;
    margin: 80px auto;
    line-height: 1.7;
    padding: 0 15px;
}

    .blog-post h1 {
        font-size: 30px;
        margin-bottom: 20px;
    }

    .blog-post img {
        max-width: 100%;
        max-height: 350px; /* ограничение по высоте */
        width: auto;
        height: auto;
        object-fit: contain; /* не обрезает */
        display: block;
        
        border-radius: 8px;
        background: #f5f5f5;
    }
.container-blog{
    margin-top:80px;
}

@media (max-width: 768px){
    .container-blog h1 {
        margin-left: 10px;
    }
    .container-blog p {
        margin-left: 10px;
    }
} 


    .blog-list {
        max-width: 900px;
        margin: 40px auto;
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

.blog-card {

    display: flex;
    gap: 20px;
    align-items: center;
    border-bottom: 1px solid #ddd;
    padding-bottom: 15px;
    text-decoration: none;
    color: inherit;
}

    .blog-card:hover {
        opacity: 0.9;
    }

    .blog-card img {
        width: 160px;
        height: auto; /* 👈 лучший вариант */
        max-height: 110px;
        object-fit: contain;
    }

.blog-card-content {
    flex: 1;
}

    .blog-card-content h2 {
        font-size: 18px;
        margin: 0;
    }

.wb-button-wrapper {
    text-align: center;
    margin: 20px 0 30px;
}

.wb-button {
    display: inline-block;
    padding: 12px 24px;
    background: #a73afd; /* цвет WB */
    color: #fff;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: 0.3s ease;
}

    .wb-button:hover {
        background: #8e2de2;
        transform: translateY(-2px);
    }


/*Blog--------------------------------------end*/

/*Research----------------------------------start*/

.research-article {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.7;
}

.research-meta {
    color: #666;
    margin-bottom: 20px;
}

.abstract {
    background: #f5f5f5;
    padding: 15px;
    margin: 20px 0;
    border-left: 4px solid #333;
}
.research-container{
    margin-top:100px;
}

/* ===== ADMIN BASE ===== START */

.admin-container {
    max-width: 1100px;
    margin: 80px auto;
    padding: 0 20px;
    font-family: system-ui, -apple-system, sans-serif;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

    .admin-header h1 {
        font-size: 24px;
        font-weight: 600;
    }

/* ===== CARD ===== */

.admin-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

/* ===== TABLE ===== */

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

    .admin-table thead {
        background: #f8f9fb;
    }

    .admin-table th {
        text-align: left;
        padding: 12px;
        font-size: 14px;
        color: #666;
    }

    .admin-table td {
        padding: 14px 12px;
        border-top: 1px solid #eee;
    }

    .admin-table tr:hover {
        background: #fafafa;
    }

    .admin-table .title {
        font-weight: 500;
    }

/* ===== ACTIONS ===== */

.actions {
    width: 200px;
}

/* ===== BUTTONS ===== */

.btn {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 13px;
    border: none;
    cursor: pointer;
}

.btn-sm {
    padding: 5px 10px;
    font-size: 12px;
}


.btn-primary {
    background: #2d6cdf;
    color: white;
}

    .btn-primary:hover {
        background: #1f5bd1;
    }

.btn-edit {
    background: #eef2ff;
    color: #2d6cdf;
    margin-right: 6px;
}

    .btn-edit:hover {
        background: #e0e7ff;
    }

.btn-delete {
    background: #fff1f2;
    color: #dc2626;
}

    .btn-delete:hover {
        background: #ffe4e6;
    }

/* ===== FORM INLINE ===== */

form {
    display: inline;
}
/* ===== ADMIN BASE ===== END*/

/* ===== ADMIN EDIT ===== START*/

/* ===== FORM ===== */

.admin-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

    .form-group label {
        margin-bottom: 6px;
        font-size: 13px;
        color: #555;
    }

.form-control {
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #ddd;
    font-size: 14px;
}

    .form-control:focus {
        outline: none;
        border-color: #2d6cdf;
        box-shadow: 0 0 0 2px rgba(45,108,223,0.1);
    }

.form-control-file {
    font-size: 13px;
}

/* ===== FILE INFO ===== */

.file-info {
    font-size: 13px;
    margin-top: 6px;
}

/* ===== IMAGE ===== */

.image-preview img {
    margin-top: 10px;
    width: 150px;
    border-radius: 6px;
}

/* ===== CHECKBOX ===== */

.checkbox {
    flex-direction: row;
    align-items: center;
}

/* ===== ACTIONS ===== */

.form-actions {
    margin-top: 10px;
    display: flex;
    gap: 10px;
}

/* ===== SECONDARY BUTTON ===== */

.btn-secondary {
    background: #f3f4f6;
    color: #333;
}

    .btn-secondary:hover {
        background: #e5e7eb;
    }
/* ===== ADMIN EDIT ==================== END*/

/* ===== PAGE ========================START*/

.research-page {
    max-width: 900px;
    margin: 80px auto;
    padding: 0 20px;
    font-family: system-ui, -apple-system, sans-serif;
}

/* ===== HEADER ===== */

.research-header {
    margin-bottom: 30px;
}

    .research-header h1 {
        font-size: 28px;
        font-weight: 600;
        margin-bottom: 10px;
    }

.subtitle {
    color: #666;
    font-size: 15px;
    max-width: 600px;
}

/* ===== LIST ===== */

.research-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* ===== CARD ===== */

.research-card {
    padding: 20px;
    border: 1px solid #eee;
    border-radius: 10px;
    background: #fff;
    transition: all 0.2s ease;
}

    .research-card:hover {
        border-color: #dcdcdc;
        box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    }

/* ===== TITLE ===== */

.research-title {
    font-size: 18px;
    margin-bottom: 8px;
}

    .research-title a {
        text-decoration: none;
        color: #111;
    }

        .research-title a:hover {
            color: #2d6cdf;
        }

/* ===== ABSTRACT ===== */

.research-abstract {
    font-size: 14px;
    color: #444;
    line-height: 1.6;
    margin-bottom: 10px;
}

/* ===== META ===== */

.research-meta {
    font-size: 13px;
    color: #888;
}

/* ===== ARTICLE ===== */

.research-article {
    max-width: 800px;
    margin: 0 auto;
}

/* ===== TITLE ===== */

.article-title {
    font-size: 26px;
    font-weight: 600;
    margin-bottom: 10px;
}

/* ===== META ===== */

.research-meta {
    font-size: 14px;
    color: #777;
    margin-bottom: 20px;
}

/* ===== ABSTRACT BLOCK ===== */

.research-abstract-block {
    background: #f8f9fb;
    border-left: 4px solid #2d6cdf;
    padding: 15px;
    margin-bottom: 25px;
    border-radius: 6px;
}

.abstract-title {
    font-weight: 600;
    margin-bottom: 6px;
}

/* ===== DOI ===== */

.research-doi {
    font-size: 13px;
    color: #555;
    margin-bottom: 15px;
}

/* ===== IMAGE ===== */

.research-image img {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 20px;
}

/* ===== CONTENT (ТОЛЬКО СТАТЬЯ — УЛУЧШЕНО) ===== */

.research-content {
    font-size: 16px;
    line-height: 1.75;
    color: #111;
    word-wrap: break-word;
}

    /* заголовки */
    .research-content h2 {
        margin-top: 32px;
        margin-bottom: 12px;
        font-size: 20px;
        font-weight: 700;
    }

    .research-content h3 {
        margin-top: 22px;
        margin-bottom: 10px;
        font-size: 17px;
        font-weight: 600;
    }

    /* текст */
    .research-content p {
        margin-bottom: 14px;
        text-align: justify;
    }

    /* списки */
    .research-content ul {
        padding-left: 20px;
        margin-bottom: 16px;
    }

    .research-content li {
        margin-bottom: 6px;
    }

    /* картинки */
    .research-content img {
        width: 100%;
        height: auto;
        display: block;
        margin: 20px 0 8px;
    }

    /* подписи */
    .research-content .figure-caption {
        font-size: 13px;
        color: #444;
        margin-bottom: 14px;
        line-height: 1.5;
    }

    /* примечания */
    .research-content .figure-note {
        font-size: 12px;
        color: #666;
        margin-top: -6px;
        margin-bottom: 18px;
    }

    /* таблицы */
    .research-content table {
        width: 100%;
        border-collapse: collapse;
        margin: 20px 0;
        font-size: 14px;
    }

    .research-content th {
        background: #f4f4f4;
        font-weight: 600;
        padding: 8px;
        border: 1px solid #ddd;
        text-align: center;
    }

    .research-content td {
        padding: 8px;
        border: 1px solid #ddd;
        text-align: center;
    }

    /* подпись таблицы */
    .research-content .table-caption {
        font-size: 13px;
        color: #444;
        margin-top: -10px;
        margin-bottom: 20px;
    }

    /* разделители */
    .research-content hr {
        border: none;
        border-top: 1px solid #eee;
        margin: 24px 0;
    }
.research-images {
    max-width: 900px;
    margin: 40px auto;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

    .research-images img {
        width: 100%;
        height: auto;
        border: 1px solid #ddd;
        border-radius: 6px;
        background: #fff;
    }
.article-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px 16px;
}

/* ===== БЛОК С КАРТИНКОЙ ===== */
.article-figure {
    margin: 40px 0;
    text-align: center;
}

    /* ===== САМА КАРТИНКА ===== */
    .article-figure img {
        width: 100%;
        height: auto;
        background: #fff;
        border-radius: 6px;
        
        box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    }

    /* ===== ПОДПИСЬ К КАРТИНКЕ ===== */
    .article-figure figcaption {
        margin-top: 12px;
        font-size: 14px;
        line-height: 1.5;
        color: #555;
        text-align: left;
        max-width: 800px;
        margin-left: auto;
        margin-right: auto;
    }
    .article-figure img:hover {
        transform: scale(1.01);
        transition: 0.3s;
    }
/* ГРУППА ГРАФИКОВ */
.article-figure-group {
    max-width: 900px;
    margin: 50px auto;
}

    /* КАРТИНКИ */
    .article-figure-group .article-figure {
        margin-bottom: 20px;
    }

    .article-figure-group img {
        width: 100%;
        height: auto;
    }

/* ОБЩАЯ ПОДПИСЬ */
.figure-caption {
    font-size: 14px;
    color: #444;
    line-height: 1.6;
    margin-top: 10px;
}

/* ===== ДЛЯ МОБИЛКИ ===== */
@media (max-width: 768px) {

    .article-figure {
        margin: 30px 0;
    }

        .article-figure figcaption {
            font-size: 13px;
        }
}
/* ===== таблица ===== */
.research-table caption {
    caption-side: top;
    text-align: left;
    font-weight: 600;
    margin-bottom: 8px;
}
.table-wrapper {
    overflow-x: auto;
    margin: 40px 0;
}
/* ОБЁРТКА ДЛЯ ТАБЛИЦ */
.research-content .table-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 20px 0;
}

/* сама таблица */
.research-content table {
    min-width: 600px; /* 🔥 ключ */
}
.research-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    background: #fff;
}

    .research-table th,
    .research-table td {
        border: 1px solid #ddd;
        padding: 10px;
        text-align: center;
    }

    .research-table th {
        background: #f5f5f5;
        font-weight: 600;
    }

.table-section td {
    background: #fafafa;
    font-weight: 700;
    text-align: left;
}

.table-note {
    font-size: 13px;
    color: #555;
    margin-top: 10px;
    line-height: 1.5;
}

/* ===== PDF BUTTON ===== */

.research-pdf {
    margin-top: 30px;
}


.status {
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 6px;
}

.published {
    background: #e6f9f0;
    color: #059669;
}

.draft {
    background: #f3f4f6;
    color: #555;
}

/* ===== STATUS ===== */

.status {
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 6px;
    display: inline-block;
}

.published {
    background: #e6f9f0;
    color: #059669;
}

.draft {
    background: #f3f4f6;
    color: #555;
}

/* ===== TOGGLE BUTTON ===== */

.btn-toggle {
    background: #fff7ed;
    color: #c2410c;
    margin-right: 6px;
}

    .btn-toggle:hover {
        background: #ffedd5;
    }

/* ===== ACTIONS FIX ===== */

.actions-group {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

    .actions-group form {
        margin: 0;
    }

    .actions-group .btn {
        white-space: nowrap;
    }

/*Research----------------------------------end*/

/*RequestAdmin--------------------------------start*/
/* ================= ОБЩЕЕ ================= */

.admin-page {
    padding: 0;
}

.admin-title {
    margin-bottom: 20px;
}


/* ================= ФИЛЬТРЫ (ГОРИЗОНТАЛЬНЫЕ) ================= */

.filters-line {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
    align-items: center;
}

    /* поля */
    .filters-line input,
    .filters-line select {
        padding: 10px 12px;
        border: 1px solid #e5e7eb;
        border-radius: 8px;
        font-size: 14px;
        min-width: 140px;
        background: #fff;
        transition: 0.2s;
    }

        /* фокус */
        .filters-line input:focus,
        .filters-line select:focus {
            outline: none;
            border-color: #2e6b52;
        }

        /* даты компактнее */
        .filters-line input[type="date"] {
            min-width: 130px;
        }

    /* кнопки вправо */
    .filters-line .btn {
        margin-left: auto;
    }


/* ================= КНОПКИ ================= */

.btn {
    padding: 10px 16px;
    border-radius: 8px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    transition: 0.2s;
}



.btn-secondary {
    background: #f3f4f6;
    color: #111;
}

    .btn-secondary:hover {
        background: #e5e7eb;
    }


/* ================= ТАБЛИЦА ================= */

.table-wrapper {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

    /* заголовок */
    .admin-table th {
        text-align: left;
        padding: 12px;
        font-size: 13px;
        font-weight: 500;
        color: #6b7280;
        border-bottom: 1px solid #e5e7eb;
    }

    /* строки */
    .admin-table td {
        padding: 12px;
        border-bottom: 1px solid #f1f1f1;
        color: #111;
    }

    /* hover */
    .admin-table tr:hover {
        background: #fafafa;
    }


/* ================= МОБИЛКА ================= */

@media (max-width: 768px) {

    .filters-line {
        flex-direction: column;
        align-items: stretch;
    }

        .filters-line input,
        .filters-line select,
        .filters-line .btn {
            width: 100%;
        }

        /* кнопки вниз */
        .filters-line .btn {
            margin-left: 0;
        }
}
/*RequestAdmin--------------------------------end*/
/*Users----------------------------------------start*/

.users-form {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

    .users-form input,
    .users-form select {
        padding: 10px;
        border: 1px solid #e5e7eb;
        border-radius: 8px;
    }

.actions-group {
    display: flex;
    gap: 8px;
}

@media (max-width: 768px) {

    .users-form {
        flex-direction: column;
    }

    .actions-group {
        flex-direction: column;
    }

        .actions-group .btn {
            width: 100%;
        }
}

/*Users----------------------------------------end*/
/*Страница как применять---------------------start*/
.reff {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 20px;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    color: #1b5e20;
    background: #f1f8f4;
    border: 1px solid #c8e6c9;
    border-radius: 6px;
    transition: all 0.25s ease;
}

    /* hover */
    .reff:hover {
        background: #e0f2e9;
        border-color: #a5d6a7;
        color: #0d3d14;
    }

    /* active (нажатие) */
    .reff:active {
        transform: scale(0.98);
    }

.seo-page {
    padding: 15px;
}

.seo-image {
    margin: 15px 0 25px 0;
    border-radius: 6px;
    height: 240px;
    object-fit: contain; /* НЕ ОБРЕЗАЕТ */
    max-height: 320px;
    background: #f5f5f5; /* фон под пустые зоны */



    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}
.table-wrapper {
    overflow-x: auto;
    margin: 20px 0;
}

.dose-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 12px;
    overflow: hidden;
}

    .dose-table th {
        background: linear-gradient(135deg, #cb11ab, #a10f8f);
        color: white;
        padding: 12px;
        text-align: left;
    }

    .dose-table td {
        padding: 12px;
        border-bottom: 1px solid #eee;
    }

    .dose-table tr:hover {
        background: #f9f9f9;
    }

.discover-block {
    margin: 40px 0;
    padding: 20px;
    border-left: 4px solid #cb11ab;
    background: #fafafa;
}

    .discover-block h2 {
        margin-bottom: 15px;
    }

    .discover-block p {
        margin-bottom: 10px;
        line-height: 1.6;
    }

/* ===== НАУЧНЫЙ СТИЛЬ ===== */

.article {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    line-height: 1.75;
    font-size: 16px;
    color: #222;
}

    /* Заголовки как в статьях */
    .article h1 {
        font-size: 32px;
        font-weight: 700;
        margin-bottom: 20px;
    }

    .article h2 {
        font-size: 24px;
        margin-top: 40px;
        margin-bottom: 15px;
        border-left: 4px solid #cb11ab;
        padding-left: 10px;
    }

    .article h3 {
        font-size: 20px;
        margin-top: 25px;
        margin-bottom: 10px;
    }

    /* Абзацы */
    .article p {
        margin-bottom: 15px;
        text-align: justify;
    }

    /* Списки */
    .article ul {
        padding-left: 20px;
        margin-bottom: 20px;
    }

    .article li {
        margin-bottom: 8px;
    }

    /* Выделения */
    .article b {
        font-weight: 600;
    }

    /* Разделители */
    .article hr {
        margin: 30px 0;
        border: none;
        border-top: 1px solid #ddd;
    }

.article {
    max-width: 900px;
    margin: 10px auto;
}
@media (max-width: 768px) {
    .article {
        margin-top:-35px;
    }
}
    .article a {
        color: #4361ee;
        text-decoration: none;
        border-bottom: 1px dashed #4361ee;
    }

        .article a:hover {
            border-bottom: 1px solid #4361ee;
        }
/*Страница как применять---------------------start*/

@media (min-width: 1200px) {
   

    .seo-page {
        max-width: 900px;
        margin: 0 auto;
        padding: 20px;
    }

    /* 🔥 КАРТИНКА В СТАТЬЕ */
    .seo-image {
        width: 100%;
        height: 420px;
        object-fit: contain; /* НЕ ОБРЕЗАЕТ */

        background: #f5f5f5; /* фон под пустые зоны */

        margin: 20px 0 30px 0;
        border-radius: 8px;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    }
}

/* список */
.reviews-admin-list {
    display: grid;
    gap: 16px;
}

/* карточка */
.admin-review-card {
    display: grid;
    grid-template-columns: 120px 1fr auto;
    gap: 16px;
    align-items: start;
    padding: 16px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
}

/* изображение */
.review-preview img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
}

/* форма */
.review-edit {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* мобилка */
@media (max-width: 768px) {

    .admin-review-card {
        grid-template-columns: 1fr;
    }

    .review-preview img {
        height: 160px;
    }

    .form-actions {
        display: flex;
        gap: 8px;
    }
}
/*кнопка выйти------------------------------------------start*/
.admin-container {
  
}
.admin-topbar {
    position: fixed;
    top: 100px;
    right: 30px;
    z-index: 9999;
}
.admin-pan {
    position: fixed;
    top: 100px;
    left: 30px;
    z-index: 9999;
}

.admin-btn {
    background: transparent;
    color: #000;
    padding: 8px 16px;
    border: 1.5px solid #000;
    border-radius: 10px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}
.admin-btn:hover {
    background: #000;
    color: #fff;
}

.logout-btn {
    background: transparent;
    color: #000;
    padding: 8px 16px;
    border: 1.5px solid #000;
    border-radius: 10px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

    /* hover */
    .logout-btn:hover {
        background: #000;
        color: #fff;
    }

@media (max-width: 768px) {

    .admin-topbar {
        top: 80px;
        right: 10px;
    }

    .logout-btn {
        padding: 6px 12px;
        font-size: 13px;
        border-radius: 8px;
    }
    .admin-pan {
        top: 80px;
        left: 10px;
    }
    .admin-btn {
        padding: 6px 12px;
        font-size: 13px;
        border-radius: 8px;
    }
}
/*кнопка выйти------------------------------------------end*/