:root {
    --accent: #f2c37a;
    --accent-dark: #d9a963;
    --brown: #b87a41;
    --text: #333;
    --bg: #ffffff;
    --border: #ddd;
}

img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.content a {
  color: #d9a963;
  text-decoration: none; /* убирает подчёркивание */
}

.content a:visited {
  color: #b87a41;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Century Gothic", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: #333;
}

@media (max-width: 768px) {
    body {
        font-size: 18px;
        padding-top: 10hv;
    }
}

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

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #fff;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

@media (max-width: 768px) {
    .site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #fff;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    max-height: 200px;
}
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.main-nav a {
    margin-left: 20px;
    text-decoration: none;
    color: var(--text);
    font-weight: 600;
}

.main-nav a:hover {
    color: var(--brown);
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: var(--brown);
    text-decoration: none;
}

.site-footer {
    background: white;
    border-top: 1px solid var(--border);
    padding: 20px;
    margin-top: 40px;
    text-align: center;
    color: var(--text);
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    background: var(--accent);
    color: #BC7A2E;
    text-decoration: none;
    font-weight: 600;
}

.btn:hover {
    background: var(--accent-dark);
}

body, html {
    margin: 0;
    padding-top: 25px;
    height: 100%;
    font-family: "Century Gothic", Arial, sans-serif;
}

.hero {
    position: relative;
    background-image: url("../images/index_background.jpg");
    background-size: cover;
    background-position: center;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.5);
    z-index: 1;
}

.buttons {
    position: relative;
    z-index: 2;
    display: flex;
    gap: 30px;
}

.buttons a {
    padding: 20px 40px;
    font-size: 24px;
    text-decoration: none;
    color: rgb(0, 0, 0);
    background-color: #EFB878(255, 0, 0, 0.7); /* полупрозрачная кнопка */
    border-radius: 10px;
    transition: background-color 0.3s, transform 0.3s;
}

.buttons a:hover {
    background-color: #e8ad69(255, 0, 0, 1);
    transform: scale(1.05);
}

.dogs-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 20px;
}

.dog-card {
    width: 25%;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.dog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

.dog-photo {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.dog-name a {
    text-decoration: none;
    color: var(--brown);
}

.dog-name a:hover {
    color: var(--accent-dark);
}

.dog-button {
    display: inline-block;
    margin: 10px 0 15px 0;
    padding: 10px 20px;
    background-color: #EFB878;
    color: rgb(0, 0, 0);
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s, transform 0.3s;
}

.dog-button:hover {
    background-color: #f1b36c;
    transform: scale(1.05);
}

/* Общий стиль navbar */
.navbar {
    background-color: #f5f5f5; /* светлый фон */
    font-family: "Century Gothic", Arial, sans-serif; /* шрифт сайта */
}

/* Контейнер с логотипом и меню */
.navbar-container {
    display: flex;
    justify-content: space-between; /* логотип слева, меню справа */
    align-items: center;
}

/* Список меню в один ряд */
.navbar-menu {
    list-style: none;
    display: flex;
    gap: 10px; /* расстояние между пунктами */
    margin: 0;
    padding: 0;
}

/* Ссылки */
.navbar-menu li a {
    text-decoration: none;
    color: #333;
    padding: 6px 12px;
    border-radius: 5px;
    transition: background-color 0.3s;
}

/* Эффект при наведении на ссылки */
.navbar-menu li a:hover {
    background-color: #ddd;
}

/* Выделяем «Помочь» цветом */
.navbar-menu li.help-link a {
    background-color: #EFB878;
    color: white;
}

.navbar-menu li.help-link a:hover {
    background-color: #f1b36c;
}

.navbar-menu {
    list-style: none;       /* убираем маркеры */
    margin: 0;
    padding: 0;
    display: flex;          /* делаем горизонтально */
    gap: 20px;              /* расстояние между ссылками */
}

/* Сбрасываем отступы <li> */
.navbar-menu li {
    margin: 0;
    padding: 0;
}

/* Ссылки */
.navbar-menu li a {
    text-decoration: none;
    color: #333;
    padding: 6px 12px;
    border-radius: 5px;
    display: block;         /* важно для кликабельности */
    transition: background-color 0.3s;
}

/* Эффект при наведении */
.navbar-menu li a:hover {
    background-color: #ddd;
}

/* Выделяем «Помочь» */
.navbar-menu li.help-link a {
    background-color: #EFB878;
    color: rgb(0, 0, 0);
}

.navbar-menu li.help-link a:hover {
    background-color: #f1b36c;
}

/* Контейнер для логотипа и меню */
.navbar-container {
    display: flex;
    justify-content: space-between; /* логотип слева, меню справа */
    align-items: center;
    padding: 10px 20px;
}

/* Логотип */
.navbar-brand {
    font-family: "Century Gothic", Arial, sans-serif;
    font-weight: bold;
    font-size: 20px;
    color: #333;
    text-decoration: none;
}

.hero-section {
    position: relative;
    height: 70vh;
    background-image: url('../images/index_background.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Полупрозрачный overlay */
.hero-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.4);
    z-index: 1;
}

/* Контент поверх */
.hero-content {
    position: relative;
    z-index: 2; /* чтобы быть поверх overlay */
    text-align: center;
    color: white;
}

/* Buttons */
.hero-buttons {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.btn {
    display: inline-block;
    padding: 15px 30px;
    font-size: 20px;
    text-decoration: none;
    color: white;
    border-radius: 20px;
    transition: background-color 0.3s;
}

/* Кнопки главной страницы */

.primary-btn {
    background-color: #BC7A2E;
    color: #fff;
}

.primary-btn:hover {
    background-color: #cc883a;
}

.secondary-btn {
    background-color: #ffffff;
    color: #000000;
}

.secondary-btn:hover {
    background-color: #fff2e2;
}

.section-title {
    width: 60%;
    margin-top: 50px;
    margin-bottom: 50px;
    margin-left: 70px;
}

.section-text {
        width: 60%;
    margin-top: 50px;
    margin-bottom: 50px;
    margin-left: 70px;
}

ul {
    list-style-type: none;
    padding-left: 0;
}

.dogs-container {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 20px;
}
.dog-card {
    width: 100%;
    max-width: 300px;
    border: 1px solid #ccc;
    border-radius: 5px;
    overflow: hidden;
}

.dog-image-wrapper {
    width: 100%;
    padding-top: 100%; /* 4:3 = 3/4 = 75% */
    position: relative;
}

.dog-card img.dog-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 5px;
}

.dog-detail-container {
    display: flex;
    flex: 1;
    gap: 10%;
    flex-wrap: wrap;
    max-width: 80%;
    margin: 0 auto;
}

.dog-text {
    flex: 1;
    margin: 0 auto;

}
.dog-slider {
    flex: 1;
    width: 40%;
    position: relative;
}

.slides-container {
    max-width: 100%;
    overflow: hidden;
    border-radius: 5px;
    max-height: 550px;
    position: relative; /* важно для абсолютного позиционирования кнопок */
}

.slide {
    width: 100%;
    display: none;
    object-fit: cover;
    border-radius: 5px;
}

.dog-slider button.prev,
.dog-slider button.next {
    position: absolute;
    top: 50%;                 /* по вертикали центр */
    transform: translateY(-50%);
    background-color: rgba(0,0,0,0.5);
    color: white;
    border: none;
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 50%;
    font-size: 20px;
}

.dog-slider button.prev { left: 10px; }
.dog-slider button.next { right: 10px; }

.dog-slider button:hover {
    background-color: rgba(0,0,0,0.7);
}

.dog-name-detail {
    text-align: center;
    font-size: 50px;
    font-weight: bold;
    margin: 10px 0;
    margin-top: 100px;
    color: var(--brown);
}

.site-footer {
    background-color: #BC7A2E;
    color: black;
    text-align: center;
    padding: 30px 20px;
    font-family: 'Century Gothic', sans-serif;
}

.footer-nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.footer-nav a {
    color: black;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

.footer-nav a:hover {
    color: #333; /* чуть темнее при наведении */
}

.footer-info p {
    margin: 5px 0;
}

.logo-img {
    width: 50px;
}

.navbar-brand {
    display: flex;
    align-items: center; /* выравнивание логотипа и текста по центру */
    gap: 10px;           /* расстояние между картинкой и текстом */
    text-decoration: none;
}

.logo-img {
    height: 50px;        /* высота логотипа */
    width: auto;
}

.brand-text {
    display: flex;
    flex-direction: column; /* текст в две строки */
    justify-content: center; /* вертикальное центрирование по логотипу */
    font-size: 16px;         /* подбираем под дизайн */
    line-height: 1.2;        /* расстояние между строк */
    color: black;
    font-weight: bold;
}

.more-dogs-btn {
    margin-left: 50px;
    margin-bottom: 50px;
}

.donate-section {
    background-color: #EED6BB;
    padding: 40px 20px;
    text-align: center;
}

.donate-title {
    font-size: 32px;
    font-weight: bold;
    color: #BC7A2E;
    margin-bottom: 30px;
}

.donate-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    max-width: 1000px;
    margin: 0 auto;
}

.donate-box {
    background-color: #fff;
    flex: 1 1 300px;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 180px;
}

.donate-qr-box {
    flex-direction: row;
    align-items: center;
    gap: 20px;
}

.donate-qr {
    width: 120px;
    height: 120px;
    object-fit: contain;
    align-items: center;
}

.donate-qr-text {
    flex: 1;
    text-align: left;
    font-size: 16px;
}

.navbar-toggle {
    display: none;
    font-size: 28px;
    background: none;
    border: none;
    cursor: pointer;
}

@media (max-width: 768px) {
    .navbar-container {
        flex-direction: column;
        align-items: flex-start; 
        padding: 10px 20px;
    }

    .navbar-brand {
        margin-bottom: 10px;
    }

    .navbar-toggle {
        align-self: flex-end;
        margin-bottom: 10px;
        display: block;
    }

    .navbar-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        gap: 10px;
    }

    .navbar-menu.active {
        display: flex;
    }

    .navbar-menu li a {
        width: 100%;
        padding: 10px 15px;
        text-align: left;
    }
}

@media (max-width: 768px) {
    /* Контейнер: логотип + бургер в ряд */
    .navbar-container {
        display: flex;
        flex-direction: row;
        justify-content: space-between; /* лого слева, бургер справа */
        align-items: center;            /* выровнять по центру */
        flex-wrap: wrap;                /* меню уйдет на новую строку */
        padding: 10px 20px;
    }

    /* Лого */
    .navbar-brand {
        margin-bottom: 0;
        display: flex;
        align-items: center;
        gap: 10px;
    }

    /* Бургер */
    .navbar-toggle {
        font-size: 28px;
        display: block;
        margin-bottom: 0;
        background: none;
        border: none;
        cursor: pointer;
    }

    /* Меню */
    .navbar-menu {
        display: none;
        flex-direction: column;
        width: 100%;                /* полностью под хедером */
        gap: 10px;
        margin-top: 10px;
        max-height: 80vh;
        overflow-y: auto;
        background-color: #fff;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        padding: 10px 0;
    }

    .navbar-menu.active {
        display: flex;
    }

    /* Пункты меню */
    .navbar-menu li a {
        width: 100%;
        padding: 12px 20px;
        text-align: left;
        font-size: 16px;
    }
}

/* Контейнер для двух белых блоков */
.donate-container {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 20px;
    flex-wrap: wrap;
    max-width: 1000px;
    margin: 0 auto;
}

/* Белые карточки - ОБЩИЕ стили */
.donate-box {
    background-color: #fff;
    flex: 1 1 400px;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* ПРАВЫЙ блок - QR-код */
.donate-qr-box {
    display: flex;           /* горизонтальный flex */
    align-items: center;     
    gap: 20px;
    justify-content: flex-start;
}

/* QR-код */
.donate-qr-box img {
    width: 120px;            /* фиксированный размер QR */
    height: 120px;
    object-fit: contain;
    flex-shrink: 0;
}

/* Текст рядом с QR */
.donate-qr-text {
    font-size: 16px;
    line-height: 1.4;
}

/* Для мобильных */
@media (max-width: 768px) {
    .donate-qr-box {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .donate-qr-box img {
        margin-bottom: 10px;
    }
}
.post-detail-section {
    background-color: #fdfdfd;
    padding: 40px 0;
}

.post-detail-container {
    max-width: 900px;
    width: 90%;
    margin: 0 auto; /* центрируем блок */
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.post-image {
  max-width: 90%;       /* адаптивно под размер контейнера */
  height: auto;         /* сохраняем пропорции! */
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: inline-block;
}

.post-image:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.post-image-box {
  text-align: center;
  margin: 25px 0;
  overflow: visible; /* разрешаем показывать всю картинку */
}

.post-content-box {
    width: 100%;
    padding: 30px;
    box-sizing: border-box;
}

.post-title {
    font-size: 2rem;
    margin-bottom: 10px;
    text-align: center;
}

.post-meta {
    color: #777;
    font-size: 0.9rem;
    margin-bottom: 20px;
    text-align: center;
}

.post-text {
    font-size: 1.1rem;
    line-height: 1.6;
    text-align: justify;
}

/* =========================
   ПАГИНАЦИЯ
   ========================= */
.pagination {
  display: flex !important;
  justify-content: center !important;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin-top: 20px;
  padding: 0;
}

.page-item {
  list-style: none;
}

.page-link {
  display: inline-block;
  padding: 6px 12px;
  text-decoration: none;
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 6px;
  color: #333;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.page-link:hover {
  background-color: #cc883a;
  color: #fff;
  border-color: #cc883a;
}

.page-item.active .page-link {
  background-color: #BC7A2E;
  color: #fff;
  border-color: #BC7A2E;
  cursor: default;
}

/* Секция "О приюте" */
.about-section {
    padding: 60px 20px;
    background-color: #fdfdfd;
}

.post-detail-container {
    max-width: 900px;
    width: 90%;
    margin: 0 auto;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 6px 15px rgba(0,0,0,0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px;
}

.post-title {
    font-size: 2.2rem;
    font-weight: bold;
    color: var(--brown);
    text-align: center;
    margin-bottom: 30px;
}

.post-subtitle {
    font-size: 1.6rem;
    color: var(--accent-dark);
    margin: 40px 0 20px;
    text-align: left;
    width: 100%;
}

.post-content-box {
    width: 100%;
}

.post-text {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text);
    margin-bottom: 20px;
    text-align: justify;
}

.post-list {
    list-style-type: disc;
    padding-left: 20px;
    margin-bottom: 30px;
}

.post-list li {
    margin-bottom: 15px;
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Мобильная адаптация */
@media (max-width: 768px) {
    .post-title {
        font-size: 1.8rem;
    }
    .post-subtitle {
        font-size: 1.4rem;
    }
    .post-text, .post-list li {
        font-size: 1rem;
    }
}

/* Контейнер с текстом и картинкой */
.about-grid {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

/* Текстовая колонка */
.post-content-box {
    flex: 1;
}

/* Картинка справа */
.about-image-box {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-image {
    width: 100%;
    max-width: 450px;
    border-radius: 15px;
    box-shadow: 0 6px 15px rgba(0,0,0,0.1);
    object-fit: cover;
}

/* Мобильная адаптация */
@media (max-width: 768px) {
    .about-grid {
        flex-direction: column;
        gap: 20px;
    }

    .about-image {
        max-width: 100%;
    }
}


.filter-section {
    background-color: #EED6BB;
    padding: 20px 10px;
}

.filter-form {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: center;
}

.filter-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.filter-item label {
    font-weight: bold;
    color: var(--brown);
}

.filter-item input,
.filter-item select {
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid var(--border);
    font-size: 16px;
}

/* Кнопка */
.filter-form .btn {
    margin-top: 20px;
}

/* Мобильная адаптация */
@media (max-width: 768px) {
    .filter-form {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
}

.filter-row {
  display: flex;
  flex-wrap: nowrap;       /* строго в одну строку */
  gap: 20px;
  align-items: flex-end;   /* выравнивание по нижней линии */
}

.filter-item {
  display: flex;
  flex-direction: column;  /* метка сверху, поле снизу */
}

.filter-item.age {
  flex-direction: row;     /* два input в одну строку */
  gap: 5px;
  align-items: center;
}

.filter-item.age label {
  margin-right: 10px;
}

.filter-buttons {
  display: flex;
  gap: 10px;
  align-items: center;
}

/* Поля и кнопки */
.filter-item input,
.filter-item select {
  padding: 5px 10px;
  border-radius: 5px;
  border: 1px solid #ccc;
  min-width: 80px;
}

.filter-buttons .btn {
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  text-decoration: none;
  padding: 8px 15px;
}

.filter-buttons .primary-btn {
  background-color: #BC7A2E;
  color: white;
}

.filter-buttons .primary-btn:hover {
  background-color: #d9a963;
}

.filter-buttons .secondary-btn {
  background-color: #EFB878;
  color: black;
}

.filter-buttons .secondary-btn:hover {
  background-color: #f1b36c;
}

/* Мобильные */
@media (max-width: 768px) {
  .filter-row {
    max-width: 80%;
    flex-wrap: wrap !important;       /* разрешаем перенос */
    justify-content: flex-start;
  }
  .filter-item {
    flex: 1 1 100%;
    margin-left: 15px;
    margin-right: 15px;
    max-width: 60%;
  }
  .filter-buttons {
    flex: 1 1 100%;
    margin-left: 15px;
  }
}

.filter-btn {
    background-color: #BC7A2E;
     display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    font-size: 16px;
    line-height: 1;
    min-height: 40px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    text-decoration: none;
    box-sizing: border-box; 
}

.filter-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 5px;
}

.filter-item.age {
    flex-direction: row;
    align-items: center;
    gap: 5px;
}

.filter-item label {
    min-width: 60px;
    font-weight: bold;
}

.help-section {
    background-color: #fdf4eb; /* мягкий фон */
    padding: 50px 20px;
    font-family: "Century Gothic", Arial, sans-serif;
    color: var(--text);
}

.help-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.help-box {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    padding: 25px;
}

.help-box h3 {
    color: var(--brown);
    margin-bottom: 15px;
}

.help-box ul {
    padding-left: 20px;
    margin-bottom: 15px;
}

.help-box ul li {
    margin-bottom: 10px;
}

.help-footer {
    margin-top: 30px;
    font-size: 16px;
    line-height: 1.6;
}

.contacts-section {
    background-color: #fdf4eb; /* мягкий фон */
    padding: 50px 20px;
    font-family: "Century Gothic", Arial, sans-serif;
    color: var(--text);
}

.contacts-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-box {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    padding: 25px;
}

.contact-box h3 {
    color: var(--brown);
    margin-bottom: 15px;
}

.contact-box a {
    color: var(--accent-dark);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

.contact-box a:hover {
    color: var(--brown);
}

.contacts-footer {
    margin-top: 30px;
    font-size: 16px;
    line-height: 1.6;
}

.links-section {
    background-color: #fdf4eb;
    padding: 50px 20px;
    font-family: "Century Gothic", Arial, sans-serif;
    color: var(--text);
}

.links-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}

.link-box {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    padding: 25px;
    flex: 1 1 300px;
    max-width: 400px;
}

.link-box h3 {
    color: var(--brown);
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.link-box p {
    margin-bottom: 10px;
    font-size: 1rem;
}

.link-box a {
    color: var(--accent-dark);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

.link-box a:hover {
    color: var(--brown);
}

.donate-qr-help {
    display: block;           /* чтобы можно было центрировать */
    margin: 20px auto;        /* 20px сверху и снизу, auto слева и справа */
    max-width: 200px;         /* ограничим размер */
    width: 100%;
    height: auto;             /* пропорционально */
    padding: 10px;            /* внутренний отступ */
    background-color: #fff;   /* чтобы QR был на белом фоне */
}

.articles-list .section-text {
    background-color: #FEEFD8;  /* мягкий бежевый фон, можно менять */
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.articles-list .section-text h3 {
    color: var(--brown);
    margin-bottom: 10px;
}

.articles-list .section-text p {
    color: var(--text);
    line-height: 1.6;
}

.articles-list .section-text a {
    color: #BC7A2E;
    font-weight: 600;
    text-decoration: none;
    margin-top: 10px;
    display: inline-block;
}

.articles-list .section-text a:hover {
    color: var(--accent-dark);
}

.articles-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding: 20px;
}

.article-card {
    width: 100%;
    max-width: 750px; /* <-- фикс ширины карточки */
    background-color: #FEEFD8;
    border-radius: 12px;
    padding: 25px 30px;
    margin-bottom: 25px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.article-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 14px rgba(0,0,0,0.15);
}

.article-title {
    color: var(--brown);
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 10px;
}

.article-snippet {
    color: var(--text);
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 30px 0;
}

.page-link {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 6px;
    text-decoration: none;
    color: var(--brown);
    border: 1px solid var(--brown);
    transition: all 0.2s ease;
}

.page-link:hover {
    background-color: var(--brown);
    color: white;
}

.lost_dog {
    align-items: center;
}

.dog-tags {
    margin-top: 20px;
}

.tag-button {
    display: inline-block;
    background-color: #EFB878;
    color: #333;
    text-decoration: none;
    padding: 5px 12px;
    border-radius: 20px;
    margin: 5px 5px 0 0;
    font-size: 14px;
    transition: background-color 0.2s;
}

.tag-button:hover {
    background-color: #e8ad69;
    color: #fff;
}

.tag-button.active {
    background-color: #BC7A2E;
}

.dogs-page-container {
    display: flex;
    gap: 30px;
}

.dogs-sidebar {
    width: 250px;
}

.dogs-main {
    flex: 1;
}

.tags-sidebar {
    margin-top: 20px;
}

.photo-container {
  width: 500px;          /* ширина блока просмотра */
  height: 500px;         /* высота блока просмотра */
  background-color: #f0f0f0; /* цвет заливки вокруг фото */
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;      /* чтобы фото не вылазило за границы */
}

.photo-container img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;    /* масштабирование по большей стороне */
}

/* SLIDER */

.swiper {
    width: 600px;              /* ширина слайдера */
    height: 400px;             /* высота слайдера */
    background-color: #fff;
    margin-top: 100px;
}

.swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
}

.swiper-wrapper {
    height: 100%;           /* ВОТ ЭТО КЛЮЧ */
    align-items: center;    /* теперь заработает как надо */
}

.swiper-slide img {
    display: block;          /* убирает inline-отступы */
    margin: auto;  
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    align-items: center;
}

.swiper-button-next,
.swiper-button-prev {
    color: #BC7A2E !important;
}

.swiper-pagination-bullet {
    background: #e8ad69 !important;
    opacity: 1;
}

.swiper-pagination-bullet-active {
    background: #BC7A2E !important;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    color: #EFB878 !important;
}

.swiper-pagination-bullet:hover {
    background: #EFB878 !important;
}

.two-columns {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}


@media (max-width: 768px) {
    .two-columns {
        flex-direction: column;
    }

    .swiper {
        width: 100%;
    }
}

.adoption-title {
    width: 60%;
    margin-top: 20px;
    margin-bottom: 20px;
    margin-left: 70px;
}

#map {
    width: 80%;
    margin-left: 5%;
    height: 30vh;
}

a {
    color: #cc883a;
    text-decoration: underline;
}


button a,
.btn a {
    color: inherit;
}

.image-overlay {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;

    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;

    z-index: 99999; /* важно */
}

.image-overlay img {
    max-width: 90%;
    max-height: 90%;
}

.hidden {
    display: none !important;
}

.vk-wrapper {
    display: flex;
    justify-content: center;
}