/**
 * style.css - Полные стили сайта PostBoard
 * Версия 3.2 – мобильная сетка с явными классами, breakpoint 1024px
 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Roboto, -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: #2d3436;
    background: #f8f9fa;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: #2c7da0;
    transition: all 0.3s;
}
a:hover {
    color: #1f5e7a;
}

/* Кнопки */
.btn, .btn-filter, .btn-contacts, .btn-service {
    display: inline-block;
    padding: 12px 25px;
    background: #2c7da0;
    color: white;
    border-radius: 50px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
}
.btn:hover, .btn-filter:hover, .btn-contacts:hover, .btn-service:hover {
    background: #1f5e7a;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(44,125,160,0.3);
}
.btn-success { background: #28a745; }
.btn-success:hover { background: #218838; }
.btn-secondary { background: #6c757d; }
.btn-secondary:hover { background: #5a6268; }
.btn-large { padding: 15px 30px; font-size: 18px; width: 100%; }
.btn-block { display: block; width: 100%; }

/* Шапка */
.site-header {
    background: white;
    box-shadow: 0 2px 20px rgba(0,0,0,0.05);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}
.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}
.logo a {
    font-size: 28px;
    font-weight: 800;
    color: #2c7da0;
}
.desktop-nav ul {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 20px;
}
.desktop-nav a {
    color: #2d3436;
    font-weight: 500;
    padding-bottom: 5px;
    border-bottom: 2px solid transparent;
}
.desktop-nav a:hover {
    border-bottom-color: #2c7da0;
}
.desktop-nav a i {
    margin-right: 6px;
}
.notifications-link {
    position: relative;
}
.notifications-link .badge {
    position: absolute;
    top: -8px;
    right: -12px;
    background: #e63946;
    color: white;
    font-size: 12px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 20px;
}
.btn-pulse {
    background: linear-gradient(145deg, #2c7da0, #1f5e7a);
    color: white !important;
    padding: 8px 22px;
    border-radius: 40px;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(44,125,160,0.3);
    animation: gentlePulse 2.5s infinite;
}
@keyframes gentlePulse {
    0% { box-shadow: 0 4px 12px rgba(44,125,160,0.3); }
    50% { box-shadow: 0 4px 18px rgba(44,125,160,0.6); }
    100% { box-shadow: 0 4px 12px rgba(44,125,160,0.3); }
}
.user-menu .favorites-link {
    font-weight: 600;
    padding: 8px 15px;
    border-radius: 50px;
    background: #fff3cd;
    color: #ffc107;
}
.desktop-social-icons, .mobile-social-icons {
    display: flex;
    gap: 12px;
    align-items: center;
}
.social-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    transition: 0.3s;
}
.social-icon.max-icon { background: #8B5CF6; color: white; }
.social-icon.ok-icon { background: #ED812B; color: white; }
.social-icon.vk-icon { background: #4C75A3; color: white; }
.mobile-social-icons .social-icon { width: 32px; height: 32px; }

@media (min-width: 1025px) {
    .desktop-social-icons { display: flex; }
    .mobile-social-icons { display: none; }
}
@media (max-width: 1024px) {
    .desktop-social-icons { display: none; }
    .mobile-social-icons { display: flex; }
}

/* Мобильное меню */
.mobile-menu-toggle {
    display: none;
    font-size: 28px;
    color: #2c7da0;
    cursor: pointer;
    padding: 8px 0;
    margin-left: 5px;
    position: relative;
}
.mobile-menu-toggle .badge {
    position: absolute;
    top: 0;
    right: -5px;
    background: #e63946;
    color: white;
    font-size: 11px;
    padding: 2px 5px;
    border-radius: 20px;
}
.mobile-nav {
    display: none;
    background: white;
    padding: 20px;
    border-top: 1px solid #f1f1f1;
}
.mobile-nav ul {
    list-style: none;
}
.mobile-nav li {
    margin-bottom: 15px;
}
.mobile-nav a {
    display: block;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 10px;
    color: #2d3436;
    font-weight: 500;
    text-align: center;
}
.mobile-nav a:hover {
    background: #2c7da0;
    color: white;
}
.mobile-create-btn {
    background: #2c7da0 !important;
    color: white !important;
}

@media (max-width: 1024px) {
    .desktop-nav, .desktop-only { display: none; }
    .mobile-menu-toggle { display: inline-block; }
    .mobile-nav.active { display: block; }
    
    .site-header .container {
        flex-wrap: nowrap;
        justify-content: space-between;
        gap: 5px;
    }
    .logo {
        flex: 0 1 auto;
    }
    .logo a {
        font-size: 24px;
    }
    .mobile-social-icons {
        order: 2;
        margin-right: 3px;
    }
    .mobile-menu-toggle {
        order: 3;
        margin-left: 3px;
        padding: 8px 0;
    }
}

/* Плавающая кнопка */
.floating-create-btn {
    display: none;
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
}
.btn-floating {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 70px;
    height: 70px;
    background: linear-gradient(145deg, #2c7da0, #1f5e7a);
    color: white;
    border-radius: 50%;
    font-size: 32px;
    box-shadow: 0 8px 25px rgba(44,125,160,0.5);
}
.btn-floating:hover {
    transform: scale(1.1) rotate(90deg);
}
@media (max-width: 768px) {
    .floating-create-btn { display: block; }
}

/* Хлебные крошки */
.breadcrumbs {
    margin: 20px 0 10px;
    font-size: 14px;
    color: #6c757d;
}
.breadcrumbs a {
    color: #2c7da0;
}
.breadcrumbs a:hover {
    text-decoration: underline;
}
.breadcrumbs span {
    color: #2d3436;
}

/* ========== ФИЛЬТРЫ (ДЕСКТОП) ========== */
.search-filters {
    background: white;
    border-radius: 20px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 5px 20px rgba(0,0,0,0.03);
}
.filters-form {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: flex-end;
}
.filter-group {
    flex: 1 1 180px;
}
.filter-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 14px;
}
.filter-group input, .filter-group select {
    width: 100%;
    padding: 10px;
    border: 2px solid #dfe6e9;
    border-radius: 10px;
    font-size: 14px;
}
.filter-actions {
    display: flex;
    gap: 10px;
}
.btn-filter {
    background: #2c7da0;
    color: white;
    padding: 10px 25px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
}
.btn-reset {
    color: #6c757d;
    padding: 10px 15px;
    border-radius: 50px;
    background: #f8f9fa;
}

.price-group {
    display: flex;
    gap: 10px;
    align-items: center;
}
.price-group input {
    width: calc(50% - 5px);
    padding: 10px;
}

/* ========== МОБИЛЬНЫЕ ФИЛЬТРЫ (явные классы, сетка 2×N, breakpoint 1024px) ========== */
@media (max-width: 1024px) {
    .filters-form {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
        align-items: start;
    }
    /* По умолчанию все фильтры занимают одну колонку */
    .filter-group {
        width: auto;
        flex: none;
        grid-column: auto;
    }
    /* Категория и Поиск – в первой строке (каждый в своей колонке) */
    .filter-category,
    .filter-search {
        grid-column: auto;
    }
    /* Город – на всю ширину (две колонки) */
    .filter-city {
        grid-column: span 2;
    }
    /* Цена – на всю ширину (две колонки) */
    .filter-price {
        grid-column: span 2;
    }
    /* Состояние и Сортировка – в одной строке (каждый в своей колонке) */
    .filter-condition,
    .filter-sort {
        grid-column: auto;
    }
    /* Блок кнопок – на всю ширину, с flex внутри */
    .filter-actions {
        grid-column: span 2;
        display: flex;
        flex-direction: row;
        gap: 12px;
        margin-top: 0;
    }
    .btn-filter, .btn-reset {
        flex: 1;
        text-align: center;
        padding: 12px 10px;
    }
    /* Поля "от" и "до" внутри цены – в одну строку */
    .price-group {
        display: flex;
        flex-direction: row;
        gap: 10px;
        width: 100%;
    }
    .price-group input {
        width: calc(50% - 5px);
    }
}

/* Заголовок страницы */
.page-header {
    text-align: center;
    margin-bottom: 35px;
    position: relative;
    padding: 25px 0;
    background: linear-gradient(145deg, #fff9f9, #fff0f0);
    border-radius: 60px 60px 20px 20px;
    box-shadow: 0 5px 20px rgba(44,125,160,0.08);
}
.page-header h1 {
    font-size: 32px;
    font-weight: 800;
    color: #2d3436;
    margin-bottom: 5px;
    display: inline-block;
    position: relative;
    padding: 0 20px;
    background: transparent;
}
.page-header h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #2c7da0, #ffc107);
    border-radius: 3px;
}
@media (max-width: 768px) {
    .page-header {
        padding: 15px 10px;
        margin-bottom: 25px;
    }
    .page-header h1 {
        font-size: 24px;
    }
    .page-header h1::after {
        width: 60px;
        bottom: -8px;
    }
}

/* Случайные объявления */
.random-ads-section {
    margin: 30px 0;
    background: white;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.03);
}
.random-ads-title {
    font-size: 20px;
    color: #2c7da0;
    font-weight: 700;
    margin-bottom: 15px;
}
.random-ads-wrapper {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding-bottom: 10px;
    scrollbar-width: thin;
}
.random-ad-card {
    flex: 0 0 160px;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #f1f1f1;
    transition: transform 0.2s;
}
.random-ad-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(44,125,160,0.15);
}
.random-ad-image {
    height: 160px;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
}
.random-ad-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.random-ad-info {
    padding: 10px;
    text-align: center;
}
.random-ad-name {
    font-weight: 600;
    color: #2c7da0;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.random-ad-city {
    font-size: 12px;
    color: #6c757d;
}
@media (max-width: 480px) {
    .random-ad-card {
        flex: 0 0 130px;
    }
    .random-ad-image {
        height: 130px;
    }
}

/* Сетка объявлений – одинаковая высота */
.ads-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin: 30px 0;
}
.ad-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.03);
    transition: all 0.3s;
    border: 1px solid #f1f1f1;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.ad-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(44,125,160,0.1);
    border-color: #2c7da0;
}
.ad-card.ad-featured {
    border: 2px solid transparent;
    background: linear-gradient(white, white) padding-box,
                linear-gradient(135deg, #ffd700, #ff8c00) border-box;
    box-shadow: 0 10px 25px rgba(255,140,0,0.2);
}
.ad-card.ad-featured::before {
    content: "✨ Выделено";
    position: absolute;
    top: 10px;
    left: 10px;
    background: linear-gradient(135deg, #ffd700, #ff8c00);
    color: white;
    font-size: 12px;
    font-weight: bold;
    padding: 4px 12px;
    border-radius: 20px;
    z-index: 2;
}
.label-promoted, .label-pinned {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #28a745;
    color: white;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 20px;
    z-index: 2;
}
.label-pinned {
    background: #007bff;
}
.ad-image {
    height: 220px;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.ad-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.no-image {
    font-size: 64px;
    color: #2c7da0;
}
.ad-info {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.ad-info h3 {
    margin-bottom: 10px;
    font-size: 18px;
}
.ad-info h3 a {
    color: #2d3436;
}
.ad-info h3 a:hover {
    color: #2c7da0;
}
.price {
    font-size: 20px;
    font-weight: 700;
    color: #2c7da0;
    margin-bottom: 5px;
}
.city, .condition {
    font-size: 14px;
    color: #6c757d;
    margin-bottom: 5px;
}
.description {
    font-size: 14px;
    color: #636e72;
    margin: 10px 0;
    line-height: 1.4;
}
.ad-actions {
    display: flex;
    gap: 8px;
    margin-top: auto;
    flex-wrap: wrap;
    align-items: center;
}
.btn-contacts {
    background: #28a745;
    color: white;
    padding: 8px 15px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    flex: 1;
    text-align: center;
}
.btn-favorite, .btn-report, .btn-share {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}
.btn-favorite {
    background: white;
    border: 2px solid #ffc107;
    color: #ffc107;
}
.btn-favorite.active {
    background: #ffc107;
    color: white;
}
.btn-report {
    background: #dc3545;
    color: white;
}
.btn-share {
    background: #17a2b8;
    color: white;
}

/* Пагинация */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 50px 0;
    flex-wrap: wrap;
}
.pagination a, .pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 8px;
    background: white;
    border: 1px solid #2c7da0;
    border-radius: 10px;
    color: #2c7da0;
    font-weight: 600;
    transition: all 0.3s;
}
.pagination a:hover {
    background: #2c7da0;
    color: white;
    transform: translateY(-2px);
}
.pagination span.active {
    background: #2c7da0;
    color: white;
}
.pagination span.disabled {
    opacity: 0.5;
    pointer-events: none;
}
@media (max-width: 768px) {
    .pagination { gap: 5px; }
    .pagination a, .pagination span { min-width: 35px; height: 35px; font-size: 14px; }
}

/* Страница объявления – кнопки услуг */
.ad-view-container {
    max-width: 1000px;
    margin: 30px auto;
}
.ad-view-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-wrap: wrap;
}
.ad-view-gallery {
    flex: 1;
    min-width: 300px;
    padding: 20px;
}
.gallery-main img {
    width: 100%;
    max-height: 400px;
    object-fit: contain;
}
.gallery-thumbs {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    overflow-x: auto;
}
.gallery-thumbs img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
}
.ad-view-info {
    flex: 1;
    padding: 30px;
}
.ad-view-stats {
    display: flex;
    gap: 20px;
    color: #6c757d;
    margin-bottom: 15px;
}
.ad-view-price {
    font-size: 28px;
    font-weight: 700;
    color: #2c7da0;
    margin: 15px 0;
}
.ad-view-detail {
    margin: 10px 0;
}
.ad-view-description {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 15px;
    margin: 20px 0;
}
.ad-view-contacts {
    background: #e8f5e9;
    padding: 20px;
    border-radius: 15px;
    margin: 20px 0;
}
.ad-view-actions {
    display: flex;
    gap: 15px;
    margin: 20px 0;
    flex-wrap: wrap;
}
.ad-view-actions .btn-favorite,
.ad-view-actions .btn-report,
.ad-view-actions .btn-share {
    width: 45px;
    height: 45px;
    font-size: 20px;
    padding: 0;
    border-radius: 50%;
}
.ad-view-actions .btn-favorite {
    background: white;
    border: 2px solid #ffc107;
    color: #ffc107;
}
.ad-view-actions .btn-favorite.active {
    background: #ffc107;
    color: white;
}
.ad-view-actions .btn-report {
    background: #dc3545;
    color: white;
}
.ad-view-actions .btn-share {
    background: #17a2b8;
    color: white;
}
.service-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 15px;
}
.btn-service {
    flex: 1;
    text-align: center;
    background: #6c757d;
    color: white;
    padding: 8px 12px;
    font-size: 14px;
    border-radius: 40px;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    white-space: nowrap;
}
.btn-service.promote { background: #2c7da0; }
.btn-service.pin { background: #8B5CF6; }
.btn-service.feature { background: #e67e22; }
.btn-service:hover {
    transform: translateY(-2px);
    filter: brightness(0.9);
}
@media (max-width: 600px) {
    .service-buttons {
        gap: 8px;
    }
    .btn-service {
        padding: 6px 8px;
        font-size: 12px;
        white-space: normal;
    }
}

/* ========== КАРТОЧКИ СТРАНИЦ (ПРОФИЛЬ, ИЗБРАННОЕ, УВЕДОМЛЕНИЯ) ========== */
.profile-container,
.favorites-container,
.notifications-container {
    max-width: 800px;
    margin: 40px auto;
}
.profile-card,
.favorites-card,
.notifications-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    text-align: center;
}
.profile-card h1,
.favorites-card h1,
.notifications-card h1 {
    color: #2c7da0;
    margin-bottom: 25px;
    font-size: 28px;
}
.profile-stats {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 25px;
}
.profile-stats p {
    margin: 10px 0;
    font-size: 16px;
}
.profile-actions,
.favorites-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}
.profile-actions .btn,
.favorites-actions .btn {
    min-width: 180px;
}
@media (max-width: 480px) {
    .profile-actions,
    .favorites-actions {
        flex-direction: column;
        align-items: stretch;
    }
    .profile-actions .btn,
    .favorites-actions .btn {
        width: 100%;
    }
}

/* Список уведомлений внутри карточки */
.notifications-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}
.notification-item {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 20px 25px;
    border-left: 5px solid #2c7da0;
    transition: all 0.2s;
    cursor: pointer;
    text-align: left;
}
.notification-item:hover {
    transform: translateX(5px);
    background: #fff;
}
.notification-item.unread {
    background: #fff0f0;
    border-left-color: #e63946;
}
.notification-item.read {
    background: #f8f9fa;
    border-left-color: #6c757d;
    opacity: 0.8;
}
.notification-message {
    font-size: 16px;
    margin-bottom: 8px;
}
.notification-meta {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: #6c757d;
}
.notification-link {
    color: #2c7da0;
    font-weight: 600;
}

@media (max-width: 768px) {
    .profile-card,
    .favorites-card,
    .notifications-card {
        padding: 20px;
    }
    .notifications-list {
        gap: 12px;
    }
    .notification-item {
        padding: 15px;
    }
}

/* Модальные окна */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(5px);
    overflow-y: auto;
}
.modal-content {
    background: white;
    margin: 50px auto;
    padding: 40px;
    max-width: 550px;
    border-radius: 25px;
    position: relative;
    animation: modalFadeIn 0.3s;
}
.bot-modal-content {
    max-width: 700px;
}
@keyframes modalFadeIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
.close, .close-bot, .close-service, .close-report, .close-pending, .close-share, .close-preview, .close-install {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 35px;
    cursor: pointer;
}
.close:hover, .close-bot:hover {
    color: #2c7da0;
}
#install-modal .install-instructions {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 20px;
    margin: 20px 0;
}
#install-modal .install-instructions p {
    margin: 12px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}
#install-modal .install-instructions i {
    font-size: 24px;
    width: 32px;
    color: #2c7da0;
}

/* Бот-форма */
.bot-step {
    display: none;
}
.bot-step.active {
    display: block;
}
.bot-step input, .bot-step select, .bot-step textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #2c7da0;
    border-radius: 10px;
    margin-bottom: 20px;
}
.btn-next, .btn-finish {
    background: #2c7da0;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
}
.photo-upload-area {
    border: 2px dashed #2c7da0;
    padding: 20px;
    text-align: center;
    border-radius: 10px;
    margin-bottom: 20px;
}
.photo-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}
.char-counter {
    text-align: right;
    font-size: 14px;
    color: #6c757d;
}

/* Футер */
.site-footer {
    background: #2d3436;
    color: white;
    padding: 40px 0;
    margin-top: 80px;
}
.footer-content {
    text-align: center;
}
.footer-copyright {
    margin-bottom: 15px;
}
.footer-support a {
    color: #ffc107;
}
.footer-links a {
    color: #ffc107;
    margin: 0 5px;
}
.footer-links a:hover {
    color: #ffda6a;
}
.tag-cloud {
    margin: 30px 0;
}
.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}
.tag {
    background: #e9ecef;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 14px;
}
.seo-text {
    background: white;
    border-radius: 20px;
    padding: 30px;
    margin: 40px 0;
}

/* Админ-панель (минимальные стили) – без изменений */
.admin-body {
    background: #f1f5f9;
}
.admin-container {
    max-width: 1400px;
    margin: 30px auto;
    background: white;
    border-radius: 25px;
    overflow: hidden;
}
.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    background: linear-gradient(145deg, #2c7da0, #1f5e7a);
    color: white;
    flex-wrap: wrap;
}
.admin-header h1 { font-size: 28px; margin: 0; }
.admin-actions { display: flex; gap: 20px; align-items: center; }
.btn-logout {
    background: rgba(255,255,255,0.2);
    color: white;
    padding: 8px 18px;
    border-radius: 50px;
}
.mobile-admin-toggle {
    display: none;
    font-size: 28px;
    cursor: pointer;
}
.admin-nav { display: flex; align-items: center; gap: 20px; }
.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin: 25px;
}
.stat-card {
    background: white;
    padding: 20px;
    border-radius: 16px;
    text-align: center;
    font-weight: 700;
    border: 1px solid #e9ecef;
}
.admin-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px;
}
.admin-tabs .tab-btn {
    padding: 12px 25px;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
}
.admin-tabs .tab-btn.active {
    background: #2c7da0;
    color: white;
}
.table-container {
    overflow-x: auto;
    margin: 0 20px 20px;
    border: 1px solid #e9ecef;
    border-radius: 16px;
}
.admin-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 800px;
}
.admin-table th, .admin-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #e9ecef;
}
.admin-table th {
    background: #f8f9fa;
    border-bottom: 2px solid #2c7da0;
}
.status {
    padding: 5px 12px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    display: inline-block;
}
.status-pending { background: #fff3cd; color: #856404; }
.status-approved { background: #d4edda; color: #155724; }
.status-rejected { background: #f8d7da; color: #721c24; }
.btn-approve, .btn-reject, .btn-delete, .btn-preview {
    padding: 6px 12px;
    border-radius: 8px;
    color: white;
    font-size: 13px;
    margin: 0 3px;
    display: inline-block;
    cursor: pointer;
}
.btn-approve { background: #28a745; }
.btn-reject { background: #dc3545; }
.btn-delete { background: #6c757d; }
.btn-preview { background: #17a2b8; }
.action-buttons { display: flex; gap: 5px; flex-wrap: wrap; }
.tab-pane { display: none; padding-bottom: 25px; }
.tab-pane.active { display: block; }

@media (max-width: 768px) {
    .admin-header { padding: 15px 20px; }
    .admin-header h1 { font-size: 22px; }
    .mobile-admin-toggle { display: block; position: absolute; top: 15px; right: 20px; }
    .admin-nav { display: none; width: 100%; flex-direction: column; margin-top: 15px; background: rgba(255,255,255,0.1); padding: 15px; border-radius: 15px; }
    .admin-nav.active { display: flex; }
    .admin-actions { flex-direction: column; width: 100%; gap: 10px; }
    .admin-stats { grid-template-columns: repeat(2, 1fr); margin: 15px; }
    .admin-tabs { flex-direction: column; margin: 15px; }
    .admin-tabs .tab-btn { width: 100%; text-align: left; }
    .table-container { margin: 0 15px 20px; }
    .action-buttons { flex-direction: column; gap: 5px; }
    .action-buttons a, .action-buttons button { width: 100%; text-align: center; }
}

/* Формы */
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 600; }
.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #dfe6e9;
    border-radius: 10px;
    font-size: 16px;
}
.error-message { color: #dc3545; margin: 10px 0; }