/* =========================================
   1. НАСТРОЙКИ И ПЕРЕМЕННЫЕ
   ========================================= */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    --green: #2d352d;       /* Темно-зеленый */
    --green-hover: #3a413a; /* Цвет при наведении */
    --light-bg: #E8F5E9;    /* Светло-зеленый фон */
    --white: #ffffff;
    --text: #1F2A22;        /* Темный цвет текста */
    --text-muted: #5A6B60;  /* Серый текст */
    --border: #D6E9DA;      /* Границы */
    --shadow: 0 4px 20px rgba(0,0,0,0.08);
    --brand: #146C20;
    --brand-secondary: #1B7128;
    --bg: #E8F5E9;
    --bg2: #F5FBF6;
    --line: #D6E9DA;
    --ink: #1F2A22;
    --muted: #5A6B60;
    --badge-bg: #E8F5E9;
    --badge-text: #2E7D32;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    background: var(--light-bg);
    color: var(--text);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    line-height: 1.5;
}

/* =========================================
   2. ОБЩИЕ КОМПОНЕНТЫ
   ========================================= */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Кнопки */
.btn {
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
}

.btn-green { background: #2d352d; color: white; }
.btn-green:hover { background: var(--green-hover); }
.btn-outline { border: 1px solid #2d352d; color: #2d352d; background: transparent; }
.btn-outline:hover { background: #e8f5e9; }

.btn-login {
    background: transparent;
    color: #FF9800;
    border: 1px solid #FF9800;
}

.nav-link {
  color: var(--ink);
  position: relative;
  padding-bottom: 4px;
  transition: color 0.18s ease;
}
.nav-link:hover {
  color: #2d352d;
}
.nav-active {
  color: #2d352d !important;
}
.nav-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -3px;
  height: 2px;
  background: #2d352d;
  border-radius: 2px;
}

.btn-login:hover { background: #e8f5e9; }

.btn-register {
    background: #2d352d;
    color: white;
}
.btn-register:hover { background: var(--green-hover); }

.btn-green { background: #2d352d; color: white; }
.btn-green:hover { background: var(--green-hover); }
.btn-outline { border: 1px solid #2d352d; color: #2d352d; background: transparent; }
.btn-outline:hover { background: #e8f5e9; }

/* =========================================
   3. ШАПКА (HEADER)
   ========================================= */
header {
    background: var(--white);
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav {
    display: flex;
    justify-content: space-between; /* Логотип слева, кнопка справа */
    align-items: center;
    position: relative;
}

.logo {
    font-weight: 800;
    font-size: 20px;
    color: #FF5722;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-links { display: flex; align-items: center; gap: 25px; }
.nav-links a { text-decoration: none; color: var(--text); font-weight: 500; font-size: 15px; transition: 0.2s; }
.nav-links a:hover { color: #2d352d; }

/* Кнопки в шапке */
.header-btns { display: flex; gap: 10px; }

/* =========================================
   4. HERO СЕКЦИЯ (ЗЕЛЕНЫЙ БЛОК)
   ========================================= */
.hero {
    background: #191a19;
    color: white;
    padding: 60px 0;
    text-align: center;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    max-width: 800px;
    margin: 0 auto;
}

.hero-text h1 {
    font-size: 36px;
    font-weight: 800;
    margin: 0 0 15px 0;
    line-height: 1.2;
}

.hero-text p {
    font-size: 16px;
    opacity: 0.9;
    margin: 0 auto 30px auto;
    max-width: 600px;
    line-height: 1.5;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    width: 100%;
    justify-content: center;
}

.btn-hero-primary {
    background: white;
    color: #2d352d;
    font-weight: 700;
    padding: 14px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 16px;
}

.btn-hero-secondary {
    background: transparent;
    color: white;
    border: 1px solid rgba(255,255,255,0.5);
    font-weight: 600;
    padding: 14px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 16px;
}

.hero-stats {
    display: flex;
    
    justify-content: center;
    gap: 12px;
    width: 100%;
    max-width: 600px;
}

.stat-box {
    background: #ff9800d6;
    backdrop-filter: blur(5px);
    padding: 15px 10px;
    border-radius: 12px;
    text-align: center;
    flex: 1 1 30%;
    min-width: 100px;
    border: 1px solid rgba(255,255,255,0.2);
}

.stat-num {
    display: block;
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 13px;
    opacity: 0.9;
}

/* =========================================
   5. КАК ЭТО РАБОТАЕТ
   ========================================= */
.how-it-works {
    padding: 60px 0;
    background: var(--light-bg);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.step-card {
    background: white;
    padding: 30px 25px;
    border-radius: 16px;
    border: 1px solid var(--border);
    text-align: left;
}

.step-num {
    color: #ff98007d;
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 10px;
    display: block;
}

.step-card h3 {
    margin: 0 0 10px 0;
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
}

.step-card p {
    margin: 0;
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.4;
}

/* =========================================
   6. КАТАЛОГ
   ========================================= */
.catalog {
   
    background: var(--light-bg);
}

.catalog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    gap: 20px;
}

.catalog-info h2 {
    margin: 0;
    font-size: 28px;
    font-weight: 800;
    color: var(--text);
}

.btn-add-site {
    background: #2d352d;
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: 0.2s;
    white-space: nowrap;
}
.btn-add-site:hover { background: #546154; }

.sites-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.site-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border: 1px solid transparent;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.site-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.card-banner {
    
    height: 250px; /* Задайте желаемую высоту блока */
    overflow: hidden; /* Скрывает части изображения, выходящие за пределы блока */
    position: relative; /* Необходимо для правильного позиционирования изображения внутри */
}

/* Стили для самого изображения */
.card-banner img {
    display: block; /* Убирает лишние отступы под изображением */
    width: 100%; /* Изображение будет стремиться занять всю доступную ширину родительского блока */
    height: 100%; /* Изображение будет стремиться занять всю доступную высоту родительского блока */
    object-fit: cover; /* Этот ключевой момент! Масштабирует изображение, сохраняя пропорции, чтобы оно полностью покрывало контейнер, обрезая лишнее */
    object-position: center; /* Центрирует изображение внутри контейнера */
}

.badge-status {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 5;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.badge-status--pays { background-color: #28a745; }
.badge-status--not_paying { background-color: #fd7e14; }
.badge-status--scam { background-color: #dc3545; }
.badge-status--unverified { background-color: #6c757d; }

.card-body {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.card-title {
    font-weight: 700;
    font-size: 16px;
    color: var(--text);
    text-decoration: none;
    line-height: 1.3;
}

.card-cat {
    font-size: 11px;
    color: #ff9800;
    background: #f1f1f1;
    padding: 2px 8px;
    border-radius: 6px;
    font-weight: 600;
}

.card-info {
    margin: 15px 0;
    font-size: 13px;
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.card-info > div {
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.card-info .label { color: #888; display: flex; align-items: center; gap: 5px; }
.card-info .value { font-weight: 600; color: #333; }

.card-desc {
    font-size: 13px;
    color: #777;
    margin-bottom: 20px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}

.card-btns {
    display: block;
    text-align: center;
    background: #2d352d;
    color: white;
    padding: 12px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    transition: 0.2s;
    margin-top: auto;
}
.card-btns:hover { background: var(--green-hover); }

/* =========================================
   7. ФОРМЫ (Вход/Регистрация/Добавить сайт)
   ========================================= */
.form-page {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px; /* Отступы от краев */
    background: var(--light-bg);
}
 
.form-pages {
    flex-grow: 1;
    
    justify-content: center;
    align-items: center;
    padding: 40px 20px; /* Отступы от краев */
    background: var(--light-bg);
}

.form-boxs {
    background: var(--white);
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    width: 100%;
    
    margin: 0 auto; /* Центрируем */
}
* Формы */
.form-page {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 0;
}

h2 { margin-top: 0; color: var(--text); }
label { display: block; margin-top: 15px; font-weight: 600; font-size: 14px; color: #444; }
input, select, textarea {
    
    padding: 12px;
    margin-top: 5px;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-sizing: border-box;
    font-size: 15px;
    background: #fff;
}
input:focus, select:focus, textarea:focus {
    border-color: #2d352d;
    outline: none;
}

/* Блок скриншота */
.screenshot-box {
    background: var(--green-light);
    border: 2px dashed #a5d6a7;
    border-radius: var(--border-radius);
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
    position: relative;
    overflow: hidden;
}
.screenshot-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.screenshot-placeholder {
    color: var(--green);
    font-size: 14px;
    text-align: center;
    padding: 10px;
}


.form-box {
    background: var(--white);
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    width: 100%;
    max-width: 450px; /* Не растягивается на весь экран */
    margin: 0 auto;
}

h2 { margin-top: 0; color: var(--text); font-size: 24px; font-weight: 800; margin-bottom: 5px; }
.form-subtitle { color: var(--text-muted); font-size: 14px; margin-bottom: 30px; display: block; }

.form-group { margin-bottom: 20px; }
.form-label { display: block; margin-bottom: 8px; font-weight: 600; font-size: 14px; color: #444; }

.form-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-sizing: border-box;
    font-size: 15px;
    transition: 0.2s;
    background: #fff;
}
.form-input:focus { border-color: #2d352d; outline: none; box-shadow: 0 0 0 3px rgba(27, 94, 32, 0.1); }

.btn-full { width: 100%; padding: 12px; margin-top: 10px; }

.error { color: #c62828; background: #ffebee; padding: 12px; border-radius: 8px; margin-bottom: 20px; font-size: 14px; border: 1px solid #ffcdd2; }
.success { color: #2e7d32; background: #e8f5e9; padding: 12px; border-radius: 8px; margin-bottom: 20px; font-size: 14px; border: 1px solid #c8e6c9; }

/* =========================================
   8. ПОДВАЛ (FOOTER)
   ========================================= */
footer {
    background: #fff;
    padding: 40px 0;
    border-top: 1px solid var(--border);
    margin-top: auto;
    font-size: 14px;
    color: #777;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-links a { color: #777; text-decoration: none; margin-left: 15px; }

/* =========================================
   9. МОБИЛЬНОЕ МЕНЮ (Стили под скриншот)
   ========================================= */
/* Кнопка Гамбургер (скрыта на ПК) */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text);
    cursor: pointer;
    padding: 5px;
    z-index: 1002;
}

.desktop-nav { display: flex; align-items: center; gap: 30px; }

/* Контейнер мобильного меню */
.mobile-menu {
    display: none; /* Скрыто по умолчанию */
    position: absolute;
    top: 100%; /* Сразу под шапкой */
    left: 0;
    width: 100%;
    background: #ffffff;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    border-top: 1px solid var(--border);
    z-index: 1000;
    padding: 20px;
    box-sizing: border-box;
}

/* Класс для открытия меню (добавляется JS) */
.mobile-menu.active {
    display: block;
    animation: slideDown 0.3s ease-out;
}

/* Ссылки внутри мобильного меню */
.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 15px;
}

.mobile-link {
    display: block;
    text-align: left;
    padding: 10px 0;
    font-size: 16px;
    font-weight: 500;
    color: var(--text);
    text-decoration: none;
    transition: 0.2s;
}

.mobile-link:hover { color: #2d352d; }

/* Разделительная линия */
.mobile-divider {
    height: 1px;
    background: var(--border);
    margin: 15px 0;
}

/* Блок пользователя (Username + Кнопка Выйти) */
/* Это то, что делает нижнюю часть как на скриншоте */
.mobile-user-block {
    display: flex;
    justify-content: space-between; /* Имя слева, кнопка справа */
    align-items: center;
    width: 100%;
}

.mobile-username {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
}

/* Кнопка Выйти */
.btn-logout-mobile {
    background: transparent;
    border: 1px solid #2d352d;
    color: #2d352d;
    padding: 8px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: 0.2s;
}

.btn-logout-mobile:hover {
    background: #2d352d;
    color: white;
}

/* Анимация появления */
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* =========================================
   10. АДМИН-ПАНЕЛЬ
   ========================================= */
.admin-panel {
    padding: 40px 0;
    background: var(--light-bg);
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.admin-header h1 {
    margin: 0;
    font-size: 28px;
    color: var(--text);
}

.admin-section {
    margin-bottom: 40px;
}

.admin-section h2 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 10px;
}

.admin-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
    border: 1px solid var(--border);
}

.table-responsive {
    overflow-x: auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
    border: 1px solid var(--border);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.admin-table thead {
    background: var(--light-bg);
    color: var(--text);
}

.admin-table th {
    text-align: left;
    padding: 12px 15px;
    font-weight: 600;
    border-bottom: 1px solid var(--border);
}

.admin-table td {
    padding: 12px 15px;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}

.admin-table tr:last-child td {
    border-bottom: none;
}

.status-active { color: #2d352d; font-weight: 600; }
.status-hidden { color: #999; font-weight: 600; }
.badge-top { 
    background: #fff3cd; 
    color: #856404; 
    padding: 2px 6px; 
    border-radius: 4px; 
    font-size: 12px; 
    font-weight: 600;
}

.btn-hide {
    background: none;
    border: none;
    color: #2d352d;
    font-weight: 600;
    cursor: pointer;
    font-size: 14px;
}
.btn-hide:hover { text-decoration: underline; }

.inline-form {
    display: flex;
    align-items: center;
    gap: 8px;
}

.select-sm {
    padding: 6px 10px;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: #f9f9f9;
    font-size: 13px;
    color: #555;
    outline: none;
}

.btn-save-sm {
    background: #2d352d;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}
.btn-save-sm:hover { background: var(--green-hover); }

.admin-form {
    max-width: 700px;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    flex: 1;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 14px;
    color: var(--text);
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    color: #333;
    transition: 0.2s;
}

.form-group input:focus {
    border-color: #2d352d;
    background: white;
    outline: none;
}

.form-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.azvox-help-text {
    font-size: 12px;
    color: #777;
    line-height: 1.6;
}
.azvox-help-text code {
    background: #f0f0f0;
    padding: 2px 4px;
    border-radius: 4px;
    font-family: monospace;
    color: #333;
}

.alert-success {
    background: #e8f5e9;
    color: #2d352d;
    padding: 10px 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    border: 1px solid #c8e6c9;
    font-size: 14px;
}

.status-ok { color: #2d352d; font-weight: 600; font-size: 14px; }
.status-warn { color: #e67e22; font-weight: 600; font-size: 14px; }

.btn-group {
    display: flex;
    gap: 10px;
}

/* =========================================
   11. МЕДИА ЗАПРОСЫ (АДАПТИВНОСТЬ)
   ========================================= */

@media (max-width: 768px) {
    /* Скрываем десктопное меню */
    .desktop-nav { display: none; }
    /* Показываем кнопку гамбургер */
    .mobile-menu-toggle { display: block; }

    /* HERO СЕКЦИЯ (ИСПРАВЛЕНИЕ) */
    .hero {
        padding: 40px 0;
        text-align: center;
    }

    .hero-content {
        gap: 25px;
    }

    .hero-text h1 {
        font-size: 28px;
    }

    .hero-text p {
        font-size: 15px;
        margin-bottom: 20px;
    }

    /* Кнопки Hero */
    .hero-buttons {
        flex-direction: column;
        width: 100%;
        max-width: 350px;
    }

    .btn-hero-primary, .btn-hero-secondary {
        width: 100%;
        padding: 12px;
    }

    /* Статистика Hero */
    .hero-stats {
        
        width: 100%;
        max-width: 350px;
    }

    .stat-box {
        flex: 1 1 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    /* КАК ЭТО РАБОТАЕТ */
    .how-it-works { padding: 40px 0; }
    .steps-grid { grid-template-columns: 1fr; gap: 15px; }
    .step-card { padding: 20px; }

    /* КАТАЛОГ */
    .catalog { padding: 40px 0; }
    .catalog-header { flex-direction: column; align-items: center; text-align: center; gap: 15px; }
    .btn-add-site { width: 100%; justify-content: center; }
    .sites-grid { grid-template-columns: 1fr; }
    .card-banner { height: 140px; }

    /* ПОДВАЛ */
    .footer-content { flex-direction: column; gap: 20px; text-align: center; }
    .footer-links a { margin: 0 10px; }
}

/* Для совсем маленьких экранов (например, iPhone SE) */
@media (max-width: 375px) {
    .hero-text h1 { font-size: 24px; }
    .stat-box { padding: 12px; }
    .stat-num { font-size: 22px; }
}




mobile-divider { height: 1px; background: var(--border); margin: 15px 0; }

.btn-login-mobile, .btn-register-mobile {
    display: block;
    width: 100%;
    text-align: center;
    padding: 12px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    box-sizing: border-box;
}

.btn-login-mobile { background: transparent; border: 1px solid #2d352d; color: #2d352d; }
.btn-register-mobile { background: #2d352d; color: white; border: 1px solid #2d352d; }


/* =========================================
   ПАНЕЛЬ ФИЛЬТРОВ
   ========================================= */
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
    justify-content: center; /* Центрируем кнопки */
}

.filter-btn {
    padding: 10px 20px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: white;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-btn:hover {
    border-color: #2d352d;
    color: #2d352d;
    background: #f0fdf4;
}

/* Активная кнопка (выбранная) */
.filter-btn.active {
    background: #2d352d;
    color: white;
    border-color: #2d352d;
    box-shadow: 0 4px 10px rgba(27, 94, 32, 0.2);
}

/* Анимация появления карточек */
.site-card {
    animation: fadeIn 0.4s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.pagination {
    text-align: center; /* Центрирует содержимое блока */
    margin-top: 30px;   /* Отступ сверху */
    margin-bottom: -30px; /* Отступ снизу */
}

.pagination a {
    display: inline-block; /* Позволяет применять отступы и центрировать */
    color: white;          /* Белый цвет текста */
    background-color: #2d352d; /* Зеленый фон */
    padding: 10px 15px;    /* Внутренние отступы */
    margin: 0 5px;         /* Отступы между ссылками */
    border-radius: 5px;    /* Скругленные углы */
    text-decoration: none; /* Убирает подчеркивание у ссылок */
    transition: background-color 0.3s ease; /* Плавный переход цвета при наведении */
}

.pagination a:hover {
    background-color: #ff9800; /* Цвет фона при наведении */
}

.pagination a.active {
    background-color: #ff9800; /* Цвет для активной страницы */
    font-weight: bold;         /* Жирный шрифт для активной страницы */
}





/* Фильтр статусов: плоские чипы без полосок */
.filter-bar {
  display: flex;
  gap: 10px;
  padding: 6px 0;
  align-items: center;
}
.filter-bar .filter-btn {

    text-decoration: none;
 
}













    /* Стили для плавающей кнопки */
    .float-button-container {
        position: fixed; /* Фиксированное положение */
        bottom: 30px;    /* Отступ снизу */
        right: 30px;     /* Отступ справа */
        z-index: 1000;   /* Высокий z-index, чтобы быть поверх других элементов */
        opacity: 0;      /* Изначально скрыта */
        visibility: hidden;
        transform: translateY(20px);
        transition: opacity 0.4s ease, transform 0.4s ease, visibility 0.4s ease;
    }

    .float-button-container.visible {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .float-button {
        background-color: #ff9800; /* Зеленый */
        color: white;
        border: none;
        width: 50px;     /* Чуть больше */
        height: 50px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        font-size: 22px; /* Крупнее иконка */
        box-shadow: 0 8px 20px rgba(40, 167, 69, 0.35); /* Более выраженная тень */
        transition: all 0.3s ease;
    }

    .float-button:hover {
        background-color: #d38716;
        transform: translateY(-5px) scale(1.08); /* Больше эффект при наведении */
    }

    /* Оставляем стили для футера как есть */
    .custom-footer {
       
       
        border-top: 1px solid #dee2e6;
        margin-top: 10px;
        font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        
    }

    .footer-container {
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 20px;
    }

    .footer-row {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        flex-wrap: wrap;
        
        margin-bottom: 30px;
    }

    .footer-copy {
        font-size: 15px;
        line-height: 1.6;
    }

    .footer-subtext {
        color: #6c757d;
        font-size: 13px;
        margin-top: 6px;
    }

    .footer-right {
        display: flex;
        align-items: center;
        gap: 30px;
    }

    .footer-links {
        display: flex;
        gap: 25px;
    }

    .footer-links a {
        color: #495057;
        text-decoration: none;
        font-size: 15px;
        font-weight: 500;
        transition: color 0.3s ease, transform 0.3s ease;
    }

    .footer-links a:hover {
        color: #97a79b;
        transform: translateY(-2px);
    }

     /* Место для рекламного баннера */
    .banner-ad {
        
       
        border-top: 1px dashed #ced4da; /* Пунктирная линия */
    }

    

    /* Адаптив для телефонов */
    @media (max-width: 768px) {
        .footer-content-wrapper {
            flex-direction: column;
            text-align: center;
        }
        .footer-right {
            flex-direction: column;
            gap: 20px;
        }
        .footer-links {
            flex-direction: column;
            gap: 15px;
        }
        .footer-copy {
             margin-bottom: 15px; /* Больше отступ, когда нет баннера */
        }
        .banner-ad {
            margin-top: 15px;
        }
    }
    .counters-area {
        
        text-align: center;
        padding-top: 20px;
        
    }

    .counters-area img {
        margin: 0 8px;
        vertical-align: middle;
        border-radius: 5px;
    }

    @media (max-width: 768px) {
        .footer-row { flex-direction: column; text-align: center; align-items: center; }
        .footer-right { flex-direction: column; gap: 20px; }
        .footer-links { flex-direction: column; gap: 15px; }
        .float-button-container { right: 15px; bottom: 15px; } /* Смещаем на мобильных */
        .float-button { width: 45px; height: 45px; font-size: 18px; }
    }
    
    .custom-footer {
  background-color: #222;
  color: #fff;
  padding: 10px 20px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
.footer-wrapper {
  max-width: 1100px;
  margin: 0 auto;
}
.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}
.footer-column {
  flex: 1 1 200px;
  margin: 10px;
}
.footer-column h4 {
  margin-bottom: 10px;
  font-size: 16px;
}
.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-column ul li {
  margin-bottom: 8px;
}
.footer-column ul li a {
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s;
}
.footer-column ul li a:hover {
  color: #97a79b;
}
.logo {
  font-weight: bold;
  font-size: 20px;
  margin-bottom: 10px;
}
#footerYear {
 
  font-size: 13px;
  
}

/* Для плавного появления */
#cookie-banner {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}
#cookie-banner.show {
    opacity: 1;
    transform: translateY(0);
}

