/* ====================================================
   БАЗОВЫЕ СТИЛИ ДЛЯ РАЗДЕЛА БАЗАНОВО
   ==================================================== */

body {
    font-family: Georgia, serif;
    background: #f7f3eb;
    color: #2c2c2c;
    line-height: 1.8;
    padding: 20px;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    background: #fffdf9;
    padding: 40px 50px;
    border-radius: 20px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.pagination {
  display: flex;
  gap: 8px;
  justify-content: center;
  align-items: center;
}

.page-btn {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1.5px solid #e2e8f0;
  background: #ffffff;
  color: #1e293b;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none; /* Убираем подчеркивание */
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  cursor: pointer;
}

/* Наведение */
.page-btn:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
  transform: translateY(-2px);
}

/* Активная страница */
.page-btn.active {
  background: #3b82f6;
  border-color: #3b82f6;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(59,130,246,0.4);
  cursor: default;
  pointer-events: none; /* Чтобы нельзя было кликнуть */
  transform: translateY(-2px);
}

/* Хлебные крошки */
.breadcrumb {
    font-size: 0.9em;
    color: #7f8c8d;
    margin-bottom: 20px;
}
.breadcrumb a {
    color: #a93226;
    text-decoration: none;
}
.breadcrumb a:hover {
    text-decoration: underline;
}

/* Заголовки */
h1 {
    border-bottom: 3px solid #a93226;
    padding-bottom: 15px;
}
h2 {
    color: #a93226;
    border-left: 6px solid #a93226;
    padding-left: 15px;
    margin-top: 30px;
}
h3 {
    color: #2c3e50;
    margin-top: 25px;
}

/* Цитаты */
.quote {
    background: #f0ebe3;
    padding: 15px 25px;
    border-radius: 10px;
    margin: 20px 0;
    font-style: italic;
    border-left: 5px solid #a93226;
}

.highlight {
    background: #f0ebe3;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: bold;
    color: #a93226;
}

/* Таблицы (используются на главной) */
.table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.2rem 0;
    font-size: 0.95rem;
}
.table th,
.table td {
    border: 1px solid #d5c9b8;
    padding: 8px 10px;
    text-align: left;
}
.table th {
    background: #d5c9b8;
    font-weight: bold;
}
.table a {
    color: #a93226;
    text-decoration: none;
}
.table a:hover {
    text-decoration: underline;
}

/* Навигационные ссылки внизу страниц */
.nav-links {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 2px solid #d5c9b8;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}
.nav-links a {
    background: #d5c9b8;
    padding: 8px 18px;
    border-radius: 30px;
    text-decoration: none;
    color: #1e2a3a;
    font-weight: bold;
    transition: background 0.2s, color 0.2s;
}
.nav-links a:hover {
    background: #a93226;
    color: white;
}

 /* Уникальные стили для галереи */
        .gallery {
            display: grid;
            gap: 1.2rem;
            margin: 2rem 0;
        }
        @media (min-width: 1024px) {
            .gallery {
                grid-template-columns: repeat(3, 1fr);
            }
            .gallery img {
                height: 280px;
            }
        }
        @media (min-width: 600px) and (max-width: 1023px) {
            .gallery {
                grid-template-columns: repeat(2, 1fr);
            }
            .gallery img {
                height: 220px;
            }
        }
        @media (max-width: 599px) {
            .gallery {
                grid-template-columns: 1fr;
            }
            .gallery img {
                height: 160px;
            }
        }
        .gallery a {
            display: block;
            border-radius: 10px;
            overflow: hidden;
            border: 1px solid #d5c9b8;
            transition: transform 0.2s, box-shadow 0.2s;
            background: #f0ebe3;
            text-decoration: none;
        }
        .gallery a:hover {
            transform: scale(1.02);
            box-shadow: 0 4px 12px rgba(0,0,0,0.2);
        }
        .gallery img {
            width: 100%;
            object-fit: cover;
            display: block;
        }
        .gallery .caption {
            padding: 0.5rem 0.8rem;
            font-size: 0.9rem;
            color: #2c2c2c;
            background: #fffdf9;
            text-align: center;
            border-top: 1px solid #d5c9b8;
        }

/* Подвал */
.footer {
    margin-top: 30px;
    font-size: 0.9em;
    color: #7f8c8d;
    text-align: center;
}

/* Адаптив */
@media (max-width: 600px) {
    .container {
        padding: 20px;
    }
    h1 {
        font-size: 1.8rem;
    }
}