Theme Name: VolunteerHelp
Theme URI: https://helpsafe.by  
Author: Igor Hulchenko
Description: Тема для волонтёрского портала
Version: 2.2
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: volunteerhelp


/* ===== RESET MIN ===== */
* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}
:root {
    /* Цвета */
    --color-main: #189589;
    --color-accent: #81c784;
    --color-text: #262424;
    --color-muted: #777;
    --color-bg: #fffdf5;
    --color-border: rgba(0,0,0,0.1);

    /* Шрифты */
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
    --font-accent: 'Manrope', var(--font-sans);

    /* Анимации */
    --transition: 0.3s ease;
}
html {
    overflow-x: hidden;
}
body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}

body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-sans);
  color: #262424;
  background-color: #fffdf5;
  line-height: 1.6;
}
/* ===== Tipografica ===== */
h1,h2,h3,h4,h5,h6 { font-family: var(--font-accent); color: #5D5044; font-weight: 700; margin: 0 0 0.5em; }
h1 { font-size: 2.5rem; } h2 { font-size: 2rem; } h3 { font-size: 1.75rem; } h4 { font-size: 1.5rem; } h5 { font-size: 1.25rem; } h6 { font-size: 1rem; }

p { margin: 0 0 1em; font-size: 1.2rem;}

ul, ol { padding-left: 1.5em; margin: 0 0 1em 0; }
li { margin-bottom: 0.5em; }

a {
	text-decoration: none;
}

/* ==============
   HEADER + MENU 
   ============== */

.site-header {
    height: 90px;
    background: #262424;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 2000;
}

.header-container {
    max-width: 1024px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-logo img {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

/* =========================
   SOCIAL ICONS
   ========================= */
.header-social {
    display: flex;
    gap: 14px;
}

.header-social a,
.header-social i {
    color: #fff !important;
    font-size: 18px;
    text-decoration: none;
}

/* =========================
   BURGER
   ========================= */
.mobile-menu-toggle {
    display: none;
    width: 30px;
    height: 22px;
    background: none;
    border: none;
    cursor: pointer;
    position: relative;
    z-index: 3001;
}

.mobile-menu-toggle span {
    position: absolute;
    left: 0;
    width: 100%;
    height: 3px;
    background: #fff;
    border-radius: 2px;
    transition: 0.3s ease;
}

.mobile-menu-toggle span:nth-child(1) { top: 0; }
.mobile-menu-toggle span:nth-child(2) { top: 9px; }
.mobile-menu-toggle span:nth-child(3) { top: 18px; }

body.mobile-menu-open .mobile-menu-toggle span:nth-child(1) {
    top: 9px;
    transform: rotate(45deg);
}
body.mobile-menu-open .mobile-menu-toggle span:nth-child(2) {
    opacity: 0;
}
body.mobile-menu-open .mobile-menu-toggle span:nth-child(3) {
    top: 9px;
    transform: rotate(-45deg);
}

/* =========================
   DESKTOP MENU
   ========================= */
.header-menu {
    flex: 1;
    display: flex;
    justify-content: center;
}

.menu-list {
    display: flex;
    gap: 24px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.menu-list li {
    position: relative;
}

.menu-list a {
    color: #fff;
    text-decoration: none;
    padding: 6px 0;
    display: inline-block;
}

/* desktop arrow */
.menu-item-has-children > a::after {
    content: " ▾";
    font-size: 12px;
}

/* =========================
   DESKTOP SUBMENU
   ========================= */
.menu-list .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: #262424;
    list-style: none;
    padding: 10px 0;
    margin: 0;

    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: 0.25s ease;
}

.menu-list > li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.menu-list .sub-menu a {
    display: block;
    padding: 10px 16px;
    font-size: 15px;
}

/* =========================
   OVERLAY
   ========================= */
.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
    z-index: 1800;
}

body.mobile-menu-open .mobile-menu-overlay {
    opacity: 1;
    visibility: visible;
}

/* =========================
   MOBILE
   ========================= */
.submenu-toggle {
    display: none;
}

@media (max-width: 768px) {

    .mobile-menu-toggle {
        display: block;
    }

    .header-social {
        display: none;
    }

    .header-menu {
        justify-content: flex-start;
    }

    .main-menu {
        position: fixed;
        top: 0;
        left: -100%;
        width: 280px;
        height: 100vh;
        background: #262424;
        padding: 90px 20px 20px;
        overflow-y: auto;
        transition: left 0.35s ease;
        z-index: 2000;
    }

    body.mobile-menu-open .main-menu {
        left: 0;
    }

    .menu-list {
        flex-direction: column;
        gap: 0;
    }

    .menu-list a {
        display: block;
        padding: 12px 0;
        font-size: 18px;
    }

    /* отключаем hover */
    .menu-list > li:hover > .sub-menu {
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    /* убираем стрелку */
    .menu-item-has-children > a::after {
        content: "";
    }

    /* кнопка + / − */
    .submenu-toggle {
        display: flex;
        position: absolute;
        right: 0;
        top: 6px;
        width: 40px;
        height: 40px;
        align-items: center;
        justify-content: center;
        background: none;
        border: none;
        color: #fff;
        font-size: 22px;
        cursor: pointer;
        z-index: 5;
    }

    .submenu-toggle::before {
        content: "+";
    }

    .menu-item-has-children.open > .submenu-toggle::before {
        content: "−";
    }

    /* подменю */
    .menu-list .sub-menu {
        position: static;
        max-height: 0;
        overflow: hidden;
        padding: 0;
        margin: 0;
        transition: max-height 0.35s ease;
    }

    .menu-item-has-children.open > .sub-menu {
        max-height: 1000px;
        padding: 6px 0 10px;
    }

    .menu-list .sub-menu li {
        padding-left: 12px;
    }

    .menu-list .sub-menu a {
        display: block;
        padding: 8px 0;
        font-size: 16px;
        opacity: 1;
    }
}


/* ===== HERO SPECIFIC ===== */
.hero {
    position: relative;
    width: 100%;
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.hero-inner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none; /* по умолчанию блок не мешает кликам */
}

/* Заголовок слева сверху */
.hero-title {
    pointer-events: auto;
    position: absolute;
    top: 50px;     /* под хедер */
    left: 50px;    /* смещение влево */
    font-size: 3rem;
    line-height: 1.2;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    animation: fadeInHero 1s forwards;
}

/* Подзаголовок в нижний правый угол, над кнопками */
.hero-subtitle {
    pointer-events: auto;
    position: absolute;
	
    bottom: 70px; /* 50px от низа кнопок + 25px вверх */
    right: 50px;
    font-size: 1.25rem;
    line-height: 1.4;
    color: #fff;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.4);
    animation: fadeInHero 1.2s forwards;
}

/* Кнопки под подзаголовком */
.hero-buttons {
    pointer-events: auto;
    position: absolute;
    bottom: 20px; /* отступ от низа */
    right: 50px;
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-btn {
    padding: 12px 24px;
    font-size: 1rem;
    border-radius: 50px;
    text-decoration: none;
    background: #189589;
    color: #fff;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.hero-btn:hover {
    background: #fff;
	color: #189589;
	transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.3);
}


/* Анимация появления текста */
@keyframes fadeInHero {
    0% { opacity: 0; transform: translateY(10px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* ===== ADAPTIVE ===== */

/* Планшет и меньше: центрируем текст и кнопки */
@media (max-width: 1024px) {
    .hero-inner {
        justify-content: center;
        align-items: center;
        pointer-events: auto;
    }
    .hero-title, .hero-subtitle, .hero-buttons {
        position: static;
        text-align: center;
        margin: 10px auto;
    }
    .hero-buttons {
        justify-content: center;
		
    }
	
}

/* Смартфон: уменьшаем шрифты, кнопки в ряд с прозрачным фоном */

@media (max-width: 768px) {
    .hero {
        min-height: 60vh;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .hero-inner {
        position: relative !important;
        height: auto !important;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 15px;
        padding: 20px;
    }
    .hero-title { 
        font-size: 2rem;
        margin: 0 !important;
    }
    .hero-subtitle { 
        font-size: 1rem;
        margin: 0 !important;
    }
    .hero-buttons {
        flex-direction: row !important;
        gap: 10px !important;
        flex-wrap: wrap !important;
        margin-top: 15px !important;
    }
    .hero-btn {
        background: transparent !important;
        color: #fff !important;
        border: 2px solid #189589 !important;
        padding: 10px 18px !important;
        font-size: 0.95rem !important;
    }
    .hero-btn:hover {
        background: transparent !important;
        color: #fff !important;
        border-color: #fff !important;
        transform: translateY(-2px);
    }
}

/* Маленькие экраны: ещё меньше шрифты */
@media (max-width: 480px) {
    .hero {
        min-height: 50vh;
    }
    .hero-title { font-size: 1.6rem; }
    .hero-subtitle { font-size: 0.95rem; margin-bottom: 8px; }
	.hero-btn {
		background: transpsrent !important;
	}
}


/* ===== АНИМАЦИИ ===== */

/* Плавное появление */
.fade-in-item {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 1.8s ease;
}

.fade-in-item.fade-in-visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes fadeInSmooth {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Пульсация для кнопки */
.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.03); }
}

/* ========================================
ПОИСК ПО САЙТУ
======================================== */

.header-search {
    display: flex;
    align-items: center;
    margin-left: 20px;
    border-left: 1px solid rgba(255, 255, 255, 0.5);
    border-right: 1px solid rgba(255, 255, 255, 0.5);
    padding: 0 8px; /* Уменьшено внутреннее пространство */
}

.search-toggle {
    background: none;
    border: none;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    padding: 8px 5px; /* Уменьшены горизонтальные отступы */
    transition: all 0.3s ease;
}

/* Добавлен отступ между иконкой поиска и соцсетями */
.header-search + .header-social {
    margin-left: 10px; /* Ключевое исправление */
}

.search-toggle:hover {
    color: #4ecdc4;
    transform: scale(1.1);
}

/* Попап поиска - СКРЫТ по умолчанию */
.search-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.search-popup.active {
    display: flex;
    opacity: 1;
}

.search-popup-inner {
    position: relative;
    width: 90%;
    max-width: 700px;
    background: #fff;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: popupSlideIn 0.4s ease-out;
}

@keyframes popupSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.search-popup-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: #f0f0f0;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 24px;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-popup-close:hover {
    background: #e0e0e0;
    color: #333;
    transform: rotate(90deg);
}

.search-popup-form {
    display: flex;
    gap: 12px;
    align-items: center;
}

.search-popup-input-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 12px 10px; /* Уменьшено внутреннее пространство */
    background: #f8f9fa;
    border: 2px solid #e0e0e0;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.search-popup-input-wrapper:focus-within {
    border-color: #189589;
    box-shadow: 0 0 0 4px rgba(24, 149, 137, 0.1);
}

.search-popup-input-wrapper i {
    color: #189589;
    font-size: 18px;
    margin-right: 8px; /* Уменьшено расстояние до иконки */
}

.search-popup .search-input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 1.2rem;
    padding: 8px 0;
    color: #262424;
}

.search-popup .search-input::placeholder {
    color: #777;
}

.search-popup .search-input:focus {
    outline: none;
}

.search-popup .search-submit {
    background: #189589;
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 14px 24px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
}

.search-popup .search-submit:hover {
    background: #137c72;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(24, 149, 137, 0.4);
}

/* Мобильная версия попапа */
@media (max-width: 768px) {
    .search-popup-inner {
        width: 95%;
        padding: 24px;
        margin: 20px;
    }
    
    .search-popup-form {
        flex-direction: column;
    }
    
    .search-popup .search-submit {
        width: 100%;
        padding: 16px;
    }
}

/* ========================================
СТРАНИЦА РЕЗУЛЬТАТОВ ПОИСКА
======================================== */

.search-results-wrapper {
    max-width: 1024px;
    margin: 60px auto;
    padding: 0 20px;
}

.search-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 40px 20px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.search-header h1 {
    font-size: 2.2rem;
    color: var(--color-main);
    margin-bottom: 12px;
    font-family: var(--font-accent);
}

.search-header p {
    color: var(--color-muted);
    font-size: 1.1rem;
    margin: 0;
}

.search-item {
    background: white;
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 24px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--color-border);
}

.search-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.search-item h2 {
    font-size: 1.5rem;
    margin: 0 0 12px;
    color: var(--color-main);
    font-family: var(--font-accent);
}

.search-item h2 a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.search-item h2 a:hover {
    color: var(--color-accent);
}

.search-item .entry-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 16px;
    color: var(--color-muted);
    font-size: 0.95rem;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 12px;
}

.search-item .entry-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.search-item .entry-meta i {
    color: var(--color-main);
    font-size: 14px;
}

.search-item .entry-summary {
    color: #555;
    line-height: 1.7;
    margin: 16px 0;
    font-size: 1.05rem;
}

.search-item .read-more {
    display: inline-block;
    padding: 10px 20px;
    background: var(--color-main);
    color: white;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: 12px;
}

.search-item .read-more:hover {
    background: var(--color-accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Нет результатов */
.no-results {
    text-align: center;
    padding: 80px 20px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.no-results i {
    font-size: 4rem;
    color: var(--color-muted);
    margin-bottom: 24px;
    opacity: 0.3;
}

.no-results h2 {
    font-size: 2rem;
    color: var(--color-main);
    margin-bottom: 16px;
    font-family: var(--font-accent);
}

.no-results p {
    color: var(--color-muted);
    font-size: 1.1rem;
    margin-bottom: 24px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.no-results .btn {
    display: inline-block;
    padding: 12px 32px;
    background: var(--color-main);
    color: white;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.no-results .btn:hover {
    background: var(--color-accent);
    transform: translateY(-2px);
}

/* Пагинация */
.search-pagination {
    margin-top: 40px;
    text-align: center;
}

.search-pagination .pagination {
    display: inline-flex;
    gap: 8px;
    flex-wrap: wrap;
}

.search-pagination .pagination a,
.search-pagination .pagination span {
    display: inline-block;
    padding: 10px 18px;
    border: 1px solid #ddd;
    border-radius: 8px;
    color: #555;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.search-pagination .pagination a:hover {
    background: #f5f5f5;
    border-color: #ccc;
}

.search-pagination .pagination .current {
    background: var(--color-main);
    color: white;
    border-color: var(--color-main);
    font-weight: 600;
}

/* Подсветка найденных слов */
.search-highlight {
    background: #fff9c4;
    color: #000;
    padding: 2px 4px;
    border-radius: 3px;
    font-weight: bold;
}

/* Адаптивность результатов поиска */
@media (max-width: 768px) {
    .search-results-wrapper {
        margin: 40px auto;
    }
    
    .search-header h1 {
        font-size: 1.8rem;
    }
    
    .search-item {
        padding: 24px;
    }
    
    .search-item h2 {
        font-size: 1.3rem;
    }
    
    .search-item .entry-summary {
        font-size: 1rem;
    }
    
    .no-results {
        padding: 60px 20px;
    }
    
    .no-results i {
        font-size: 3rem;
    }
    
    .no-results h2 {
        font-size: 1.6rem;
    }
}

/*	ИКОНКИ СОЦСЕТЕЙ	*/
.social-share-wrapper {
    text-align: center; /* Центрируем содержимое */
    margin-top: 30px;
}

.social-share-title {
    font-weight: 600;
    margin-bottom: 15px;
    font-size: 16px;
    color: #333; /* Цвет надписи, можно изменить */
}

.social-share {
    display: inline-flex; /* Для центровки по горизонтали */
    gap: 10px;
    flex-wrap: wrap; /* Иконки переносятся при нехватке места */
    justify-content: center; /* Центрируем иконки */
}

.social-share .social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: #fff; /* Цвет иконки */
    background-color: #0077ff; /* Фирменный цвет */
    text-decoration: none;
    transition: transform 0.3s, background-color 0.3s;
}

.social-share .social-icon:hover {
    transform: scale(1.1);
    background-color: #005bb5; /* Тёмный оттенок */
}

/* Отдельные цвета для соцсетей */
.social-share .facebook { background-color: #3b5998; }
.social-share .vk { background-color: #4c75a3; }
.social-share .telegram { background-color: #0088cc; }
.social-share .viber { background-color: #665cac; }
.social-share .whatsapp { background-color: #25d366; }
.social-share .mail { background-color: #f39c12; }
.social-share .signal { background-color: #3a76f0; }

/* Адаптив для мобильных */
@media (max-width: 480px) {
    .social-share {
        gap: 12px; /* чуть больше пространства между иконками */
    }

    .social-share .social-icon {
        width: 36px;
        height: 36px;
    }

    .social-share-title {
        font-size: 14px; /* немного меньше текст на мобильных */
        margin-bottom: 12px;
    }
}


/* Хлебные крошки */
.breadcrumbs {
	margin-top: 5px; /* отступ от хедера, как вы просили */
	margin-bottom: 20px;
	padding: 12px 20px;
	background: linear-gradient(to bottom, #f8f9fa, #ffffff, #f8f9fa);
	border: 1px solid #e0e0e0;
	border-radius: 10px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
	font-size: 14px;
	color: #666;
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	font-family: var(--font-sans);
}

.breadcrumbs .breadcrumb-item {
    display: inline-flex;
    align-items: center;
}

.breadcrumbs a {
	color: var(--color-main); /* #189589 — ваш основной цвет */
	text-decoration: none;
	font-weight: 600;
	transition: color 0.2s;
}

.breadcrumbs a:hover {
	color: #d32f2f; /* контрастный акцент при наведении */
	text-decoration: underline;
}

.breadcrumbs .breadcrumb-separator {
	color: #aaa;
	font-size: 16px;
	line-height: 1;
}

.breadcrumbs .current {
	color: #444;
	font-weight: 600;
}

/* Иконки */
.breadcrumbs .home-icon,
.breadcrumbs .category-icon,
.breadcrumbs .post-icon {
    font-size: 16px;
}

/* Адаптивность */
@media (max-width: 768px) {
    .breadcrumbs {
        font-size: 13px;
        flex-direction: column;
        align-items: flex-start;
        gap: 3px;
    }
    
    .breadcrumbs .breadcrumb-separator {
        display: none;
    }
}

/* Модальное окно срочной новости */

.breaking-news-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 99999;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

.breaking-news-modal-content {
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 600px;
    width: 90%;
    position: relative;
    animation: modalSlideIn 0.4s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.breaking-news-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #e9ecef;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    font-size: 24px;
    cursor: pointer;
    color: #6c757d;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.breaking-news-close:hover {
    background: #189589; /* Цвет из вашей палитры */
    color: white;
    transform: rotate(90deg);
}

.breaking-news-header {
    background: linear-gradient(135deg, #189589 0%, #157a71 100%); /* --color-main */
    color: white;
    padding: 20px 25px;
    border-radius: 16px 16px 0 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.breaking-news-header i {
    font-size: 24px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.breaking-news-header h3 {
    margin: 0;
    font-size: 22px;
    font-weight: 600;
}

.breaking-news-body {
    padding: 25px;
    color: #262424; /* --color-text */
}

.breaking-news-body p {
    margin: 0 0 15px 0;
    line-height: 1.6;
    font-size: 16px;
    color: #262424; /* --color-text */
}

/* Адаптивность */
@media (max-width: 768px) {
    .breaking-news-modal-content {
        width: 95%;
        margin: 20px;
    }
    
    .breaking-news-header h3 {
        font-size: 18px;
    }
    
    .breaking-news-body {
        padding: 20px;
    }
}

/* ===== НОВОСТИ: сетка 4×2 ===== */
.news-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 24px;
}

.news-item {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.news-item.fade-in-visible {
    opacity: 1;
    transform: translateY(0);
}

.news-thumb img {
    width: 100%;
    height: auto;
    display: block;
}

.news-item h3 {
    font-size: 1.1rem;
    margin: 16px 12px 8px;
    line-height: 1.3;
}

.news-item time,
.news-item .news-label {
    display: block;
    margin: 0 12px 12px;
    font-size: 0.85rem;
    color: var(--color-muted);
}

.news-label {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    color: white;
    background: #f44336;
}

.news-label.успех { background: #4caf50; }

/* Адаптивность */
@media (max-width: 1024px) {
    .news-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .news-grid {
        grid-template-columns: 1fr;
    }
}

@keyframes fadeInUp {
    to { opacity: 1; transform: translateY(0); }
}

.about-intro .card {
    box-shadow: 0 4px 16px rgba(0,0,0,0.05);
    border-radius: 16px;
}

/* ===== CONTAINER ===== */
.container {
    max-width: 1024px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== MISSION ===== */

.mission-card {
    text-align: center;
    padding: 30px 20px;
    background: #f9f9f9;
    border-radius: 12px;
    transition: transform 0.3s ease;
}

.mission-card:hover {
    transform: translateY(-5px);
}

.mission-icon {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 16px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
    position: relative;
    transition: transform 0.3s ease;
}

.mission-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.mission-icon:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.mission-card h3 {
    margin: 0 0 16px;
    color: var(--color-main);
    font-size: 1.4rem;
    font-family: var(--font-accent);
}

.mission-card p {
    margin: 0 0 16px;
    line-height: 1.6;
}
.mission {
    padding: 80px 0;
    background: #fff;
}

.mission h2 {
    text-align: center;
    margin-bottom: 50px;
}

.mission-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.mission-card {
    text-align: center;
    padding: 30px 20px;
    background: #f9f9f9;
    border-radius: 12px;
    transition: transform 0.3s ease;
}

.mission-card:hover {
    transform: translateY(-5px);
}

.icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
}


/* ===== STATS ===== */
.stats {
    padding: 60px 0;
    background: transparent;
    text-align: center;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); /* ← уменьшена минимальная ширина */
    gap: 16px;
    margin: 0 auto;
    padding: 0 10px; /* ← небольшой внутренний отступ */
}

.stat-item {
    padding: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-4px);
}

.stat-number {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--color-main);
    display: block;
    line-height: 1.1;
}

.stat-label {
    display: block;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-text);
    margin-top: 8px;
}

.stat-desc {
    display: block;
    font-size: 0.95rem;
    color: var(--color-muted);
    margin-top: 4px;
}

@media (max-width: 768px) {
    .stat-number {
        font-size: 1.8rem;
    }

    .stat-label {
        font-size: 1rem;
    }
}

/* ===== EXPLANATION BLOCK ===== */
.explanation {
    padding: 60px 0;
    background: #fffdf5;

}

.explanation h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2rem;
    color: var(--color-main);
}

.explanation-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    max-width: 1200px;
    margin: 0 auto 40px;
}

.explanation .card {
    background: white;
    padding: 24px;
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}

.explanation .card:hover {
    transform: translateY(-4px);
}

.explanation .card h3 {
    margin-top: 0;
    margin-bottom: 16px;
    color: var(--color-main);
    font-size: 1.4rem;
    font-family: var(--font-accent);
}

.explanation .card p {
    margin: 0 0 16px;
    line-height: 1.6;
}

.explanation .card p:last-child {
    margin-bottom: 0;
}

/* Общий информационный блок */
.explanation-summary {
    max-width: 1024px;
    margin: 80px auto 0; /* ← верхний отступ 50px */
    padding: 20px;
    text-align: center;
    font-size: 1.05rem;
    background: #e8f5e9;
    border: 1px solid #a5d6a7;
    border-radius: 8px;
    color: #1b5e20;
    clear: both; /* ← предотвращает наложение */
}
/* Фоновые изображения для карточек в секции объяснения */
.explanation-cards .card {
    background: transparent !important;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.explanation-cards .card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.4;
    z-index: 0;
}

.explanation-cards .card:first-child::before {
    background-image: url('./assets/images/cat-1.webp');
}

.explanation-cards .card:nth-child(2)::before {
    background-image: url('./assets/images/dog-1.webp');
}

.explanation-cards .card * {
    position: relative;
    z-index: 1;
}

.explanation-cards .card h3 {
    color: #242424;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.explanation-cards .card p {
    color: #242222;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.explanation-cards .card strong {
    color: #222;
    
}

@media (max-width: 768px) {
    .explanation h2 {
        font-size: 1.6rem;
    }

    .explanation-cards {
        gap: 24px;
    }

    .explanation .card {
        padding: 20px;
    }
}

/* ===== HELP ===== */

.help-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin-top: 32px;
}

.help-card {
    background: white;
    padding: 24px;
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
    text-align: center;
    cursor: pointer;
}

.help-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

.help-card i {
    font-size: 2.5rem;
    color: var(--color-main);
    margin-bottom: 16px;
    display: block;
}

.help-card h3 {
    font-size: 1.3rem;
    margin: 0 0 12px;
    color: var(--color-main);
    font-family: var(--font-accent);
}

.help-card p {
    color: #555;
    line-height: 1.5;
    margin: 0 0 16px;
    flex: 1;
}


/* Главная — срочные случаи */
#urgent {
    margin-top: 100px; 
}

/* ================================
   SECTION HEADER (базовая геометрия)
================================ */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    width: 100%;
    margin-bottom: 30px;
    overflow: hidden; /* важно для анимации */
}

/* Заголовок */
.section-header h2 {
    margin: 0;
    flex: 1 1 auto;
    min-width: 0;
    white-space: nowrap;
    font-size: 1.8rem;
    line-height: 1.3;
    color: #2c3e50;
}

/* Кнопка */
.section-header .btn {
    flex-shrink: 0;
    white-space: nowrap;
    padding: 8px 24px;
    font-size: 0.95rem;
    text-decoration: none;
}

/* ================================
   АНИМАЦИЯ (пружина)
================================ */

/* анимируем ТОЛЬКО внутренние элементы */
.animate-left,
.animate-right {
    display: inline-block;
    opacity: 0;
    will-change: transform, opacity;
    transition:
        transform 1s cubic-bezier(0.34, 1.56, 0.64, 1),
        opacity 0.6s ease;
}

/* стартовые позиции */
.animate-left {
    transform: translateX(-80px);
}

.animate-right {
    transform: translateX(80px);
    transition-delay: 0.15s;
}

/* активное состояние */
section.show .animate-left,
section.show .animate-right {
    opacity: 1;
    transform: translateX(0);
}

/* ================================
   URGENT — локальные правки
================================ */
#urgent .section-header {
    margin-bottom: 24px;
    gap: 12px;
}

/* ================================
   MOBILE
================================ */
@media (max-width: 768px) {
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .section-header h2 {
        white-space: normal;
    }

    .section-header .btn {
        align-self: flex-end;
        max-width: 220px;
        width: 100%;
        text-align: center;
    }
}

#urgent .animal-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.animal-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 24px;
}


.card.animal-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;

}


.card.animal-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.card.animal-card .card-image-wrapper img {
    width: 100%;
    height: auto;
    max-height: 180px;
    display: block;
    transition: transform 0.3s ease;
}

/* Сохраняем пропорции */
.card.animal-card .card-image-wrapper {
    height: auto;
    overflow: hidden;
}

.card.animal-card:hover .card-image-wrapper img {
    transform: scale(1.02);
}

.card.animal-card .card-content {
    padding: 16px;
    background: #fff;
}

.card.animal-card h3 {
    font-size: 1.2rem;
    margin: 0 0 8px;
    color: #2c3e50;
    font-weight: 700;
    line-height: 1.3;
}

/* ===== ЯРЛЫКИ ПОМОЩИ ===== */

.animal-status {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 700;
    margin: 0 0 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: black;
    background: #666; /* fallback */
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

.animal-status.urgent {
    background: white;
    border: 1px solid #d32f2f;
}

.animal-status.perederga {
    background: white;
    border: 1px solid #388e3c;
}

.animal-status.transport {
    background: white;
    border: 1px solid #1976d2;
}

.animal-status.clinic {
    background: white;
    border: 1px solid #f57c00;
}

.btn-small {
    display: inline-block;
    padding: 8px 16px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 20px;
    background: #2a9589;
    color: white;
    transition: all 0.3s ease;
    margin-top: 8px;
}

.btn-small:hover {
    background: #1b7a6d;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}
.my-animals-actions {
    margin-top: 12px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
/* Кнопки в "Мои животные" */
.my-animals-actions .btn {
    color: white !important;
    background: #2a9589;
    border-color: #2a9589;
}

.my-animals-actions .btn:hover {
    background: #1b7a6d;
    border-color: #1b7a6d;
}

/* Кнопка "Архивировать" */
.my-animals-actions .btn-danger {
    color: white !important;
    background: #e53935;
    border-color: #d32f2f;
}

.my-animals-actions .btn-danger:hover {
    background: #c62828;
    border-color: #b71c1c;
}

.btn-danger {
    background: #e53935;
    border-color: #d32f2f;
}

.btn-danger:hover {
    background: #c62828;
}

@keyframes fadeInStagger {
from { opacity: 0; transform: translateY(20px); }
to { opacity: 1; transform: translateY(0); }
}

/* Статусы */
.status {
padding: 0 16px 16px;
font-size: 0.9rem;
color: #777;
margin: 0;
}

.status.urgent {
color: #e53935;
font-weight: 600;
}

.status.perederga {
color: #4caf50;
font-weight: 600;
}

.status.transport {
color: #2196f3;
font-weight: 600;
}

.status.clinic {
color: #ff9800;
font-weight: 600;
}
/* Адаптивность */
@media (max-width: 768px) {
    .animal-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .animal-cards {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 1024px) {
    #urgent .urgent-cards {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    #urgent .urgent-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    #urgent .urgent-cards {
        grid-template-columns: 1fr;
    }
}
.pagination {
    margin-top: 32px;
    text-align: center;
}

.pagination ul {
    display: inline-flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 8px;
}

.pagination a,
.pagination span {
    display: block;
    padding: 8px 14px;
    border: 1px solid #ddd;
    text-decoration: none;
    color: #2a9589;
    border-radius: 4px;
}

.pagination .current {
    background: #2a9589;
    color: white;
    border-color: #2a9589;
}
/* ========================================
   КАТАЛОГ ЖИВОТНЫХ — ИЗОЛИРОВАННЫЕ СТИЛИ
   ======================================== */
/* Отступ для блока каталога на главной */
#catalog-preview {
	margin-top: 80px;
}
.catalog-page {
	max-width: 1024px;
	margin: 0 auto;
	padding: 40px 20px;
}
.catalog-header {
	text-align: center;
	margin-bottom: 40px;
	background: white;
	padding: 25px;
	border-radius: 16px;
	box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}
.catalog-header h1 {
	font-size: 2.5rem;
	color: var(--color-main);
	margin-bottom: 16px;
	font-family: var(--font-accent);
}
.catalog-header p {
	font-size: 1.2rem;
	color: #555;
	max-width: 800px;
	margin: 0 auto;
	line-height: 1.6;
}
/* Фильтры */
/* Фильтры */
.catalog-filters {
	background: white;
	padding: 25px;
	border-radius: 16px;
	box-shadow: 0 4px 20px rgba(0,0,0,0.06);
	margin-bottom: 30px;
}

/* Сетка фильтров — адаптивная */
.filter-row {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 16px;
	align-items: end;
}

.filter-group label {
	display: block;
	margin-bottom: 8px;
	font-weight: 600;
	font-size: 0.95rem;
	color: #2c3e50;
}

.filter-group select,
.filter-group button {
	width: 100%;
	padding: 12px 16px;
	border: 2px solid #e0e0e0;
	border-radius: 10px;
	font-size: 1rem;
	background: white;
	transition: all 0.3s;
}

.filter-group select:focus,
.filter-group button:focus {
	outline: none;
	border-color: var(--color-main);
	box-shadow: 0 0 0 3px rgba(24, 149, 137, 0.15);
}

.filter-group button {
	background: var(--color-main);
	color: white;
	border: none;
	font-weight: 600;
	cursor: pointer;
}

.filter-group button:hover {
	background: #137c72;
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(24, 149, 137, 0.3);
}

/* Дополнительно: немного уменьшаем паддинг на маленьких экранах */
@media (max-width: 480px) {
	.catalog-filters {
		padding: 16px;
	}
}


/* ===== СЕТКА КАРТОЧЕК ===== */
.catalog-cards-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 28px;
	margin: 30px 0;
}
@media (max-width: 992px) {
	.catalog-cards-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
	.catalog-cards-grid { grid-template-columns: 1fr; }
}

/* ===== КАРТОЧКА ===== */
.catalog-card {
	background: white;
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 6px 25px rgba(0,0,0,0.08);
	transition: all 0.3s ease;
	position: relative;
}
.catalog-card:hover {
	transform: translateY(-8px);
	box-shadow: 0 12px 35px rgba(0,0,0,0.12);
}

/* ===== ФОТО ===== */
.catalog-card-image {
	position: relative;
	height: 180px;
	overflow: hidden;
	background: linear-gradient(135deg, #f5f7fa, #e0e0e0);
	display: flex;
	align-items: center;
	justify-content: center;
}
.catalog-card-image img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}
.catalog-card:hover .catalog-card-image img {
	transform: scale(1.05);
}

/* ===== БЕЙДЖИ ===== */
.catalog-card-badges {
	position: absolute;
	top: 16px;
	right: 16px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	z-index: 2;
}
.catalog-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 12px;
	background: rgba(255, 255, 255, 0.9);
	border-radius: 20px;
	font-size: 0.85rem;
	font-weight: 600;
	color: #2c3e50;
	backdrop-filter: blur(10px);
	box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.catalog-badge i {
	font-size: 0.9rem;
}

/* ===== КОНТЕНТ ===== */
.catalog-card-content {
	padding: 16px;
	background: white;
}
.catalog-card h3 {
	font-size: 1.5rem;
	margin: 0 0 8px;
	font-weight: 700;
	color: #2c3e50;
	font-family: var(--font-accent);
	line-height: 1.3;
}
.catalog-card-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-bottom: 4px;
}
.catalog-card-meta-item {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 0.9rem;
	color: #555;
}
.catalog-card-meta-item i {
	color: var(--color-main);
	font-size: 0.95rem;
}
.catalog-card-short-desc {
	font-size: 0.95rem;
	line-height: 1.3em;
	color: #555;
	margin: 4px 0 8px;
}
.catalog-card-short {
	font-size: 0.95rem;
	line-height: 1.4em;
	max-height: calc(1.4em * 6);
	overflow: hidden;
	text-overflow: ellipsis;
	display: -webkit-box;
	-webkit-line-clamp: 6;
	-webkit-box-orient: vertical;
	margin-bottom: 8px;
	color: #444;
}
.catalog-card-special {
	display: inline-block;
	padding: 4px 10px;
	background: #fff8e1;
	color: #856404;
	border-radius: 4px;
	font-size: 0.85rem;
	font-weight: 600;
	margin-bottom: 8px;
}
.catalog-card-link {
	display: inline-block;
	font-weight: 600;
	color: var(--color-main);
	text-decoration: underline;
	cursor: pointer;
	font-size: 0.95rem;
	transition: color 0.3s;
}
.catalog-card-link:hover {
	color: #137c72;
}

/* ===== КНОПКИ ДЕЙСТВИЙ ===== */
.catalog-card-btn {
	display: block;
	width: 100%;
	padding: 12px 20px;
	background: var(--color-main);
	color: white;
	text-align: center;
	text-decoration: none;
	border-radius: 10px;
	font-weight: 600;
	font-size: 1rem;
	transition: all 0.3s;
	border: 2px solid var(--color-main);

	box-sizing: border-box; 
}

.catalog-card-btn:hover {
	background: white;
	color: var(--color-main);
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(24, 149, 137, 0.3);
}



/* ===== THANKS BLOCK ===== */
.catalog-thanks {
	text-align: center;
	padding: 40px 20px;
	background: linear-gradient(135deg, #e8f5e9 0%, #fff 100%);
	border-radius: 16px;
	margin-top: 50px;
	border: 1px solid #a5d6a7;
}
.catalog-thanks p {
	font-size: 1.2rem;
	color: #2e7d32;
	line-height: 1.6;
	max-width: 800px;
	margin: 0 auto;
}
/* Кнопки в блоке благодарности */
.catalog-thanks-buttons {
	display: flex;
	justify-content: center;
	gap: 20px;
	flex-wrap: wrap;
	margin-top: 25px;
}
.catalog-thanks-btn {
	display: inline-block;
	padding: 14px 32px;
	border-radius: 28px;
	font-weight: 600;
	font-size: 1.1rem;
	text-decoration: none;
	transition: all 0.3s;
	box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}
.catalog-thanks-btn:hover {
	transform: translateY(-3px);
	box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}
.catalog-thanks-btn.catalog {
	background: var(--color-main);
	color: white;
}
.catalog-thanks-btn.catalog:hover {
	background: #137c72;
	box-shadow: 0 6px 20px rgba(24, 149, 137, 0.4);
}
.catalog-thanks-btn.blog {
	background: #ff9800;
	color: white;
}
.catalog-thanks-btn.blog:hover {
	background: #e68a00;
	box-shadow: 0 6px 20px rgba(255, 152, 0, 0.4);
}

/* ===== АДАПТИВНОСТЬ ДЛЯ АРХИВА (высота фото) ===== */
@media (min-width: 769px) {
	.archive-page .catalog-card-image {
		height: 320px;
	}
}

/* ========================================
   СИНГЛ КАТАЛОГА — СТИЛИ
======================================== */
.single-catalog-page {
	max-width: 1024px;
	margin: 0 auto;
	padding: 40px 20px;
	box-sizing: border-box;
}
.single-catalog-header h1 {
	font-size: 2.8rem;
	color: var(--color-main);
	margin-bottom: 16px;
	font-family: var(--font-accent);
	text-align: center;
}

/* Карусель */
.animal-carousel-wrapper {
	position: relative;
	max-width: 100%;
	margin: 0 auto 40px;
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 10px 40px rgba(0,0,0,0.12);
}
.animal-carousel {
	position: relative;
	height: 600px;
	background: #f5f5f5;
}
.carousel-track {
	display: flex;
	transition: transform 0.4s ease;
	height: 100%;
	width: 100%;
}
.carousel-slide {
	min-width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, #f5f7fa, #e0e0e0);
}
.carousel-slide img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}
.carousel-badges {
	position: absolute;
	top: 20px;
	right: 20px;
	display: flex;
	flex-direction: column;
	gap: 12px;
	z-index: 10;
}
.carousel-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 16px;
	background: rgba(255,255,255,0.92);
	border-radius: 25px;
	font-size: 0.95rem;
	font-weight: 600;
	color: #2c3e50;
	backdrop-filter: blur(10px);
	box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}
.carousel-copyright {
	position: absolute;
	bottom: 50%;
	left: 50%;
	transform: translate(-50%, 50%);
	background: transparent;
	color: rgba(255, 255, 255, 0.7);
	font-size: 3rem;
	font-weight: 800;
	z-index: 10;
	pointer-events: none;
	opacity: 0.3;
	text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
	letter-spacing: 4px;
	user-select: none;
	text-transform: uppercase;
}
.carousel-controls {
	position: absolute;
	bottom: 20px;
	left: 0;
	right: 0;
	display: flex;
	justify-content: space-between;
	padding: 0 20px;
	z-index: 10;
}
.carousel-btn {
	width: 50px;
	height: 50px;
	border-radius: 50%;
	background: rgba(255,255,255,0.85);
	border: none;
	color: #2c3e50;
	font-size: 1.5rem;
	font-weight: bold;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.3s;
	box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}
.carousel-btn:hover {
	background: white;
	transform: scale(1.1);
}
.carousel-dots {
	display: flex;
	justify-content: center;
	gap: 8px;
	margin-top: 16px;
}
.carousel-dot {
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: #ccc;
	cursor: pointer;
	transition: all 0.3s;
}
.carousel-dot.active {
	background: var(--color-main);
	transform: scale(1.2);
}

/* Контент карточки */
.catalog-single-card {
	background: white;
	border-radius: 16px;
	padding: 40px;
	box-shadow: 0 6px 25px rgba(0,0,0,0.06);
	margin-top: 30px;
	max-width: 100%;
	box-sizing: border-box;
}

/* Информация */
.animal-info-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 30px;
	margin-bottom: 40px;
}
.animal-info-section h3 {
	font-size: 1.5rem;
	color: var(--color-main);
	margin-bottom: 20px;
	font-family: var(--font-accent);
}
.animal-info-item {
	margin-bottom: 12px;
	display: flex;
	gap: 10px;
}
.animal-info-item strong {
	color: #2c3e50;
	min-width: 120px;
}
.animal-info-item span {
	color: #555;
	flex: 1;
}

/* Описание */
.animal-description {
	margin-top: 40px;
	padding-top: 30px;
	border-top: 2px solid #f0f0f0;
}
.animal-description h3 {
	font-size: 1.6rem;
	margin-bottom: 20px;
	color: var(--color-main);
	font-family: var(--font-accent);
}
.animal-description p {
	font-size: 1.1rem;
	line-height: 1.8;
	color: #444;
}

/* Куратор */
.animal-curator {
	margin-top: 40px;
	padding: 30px;
	background: linear-gradient(135deg, #f5f7fa 0%, #e8f5e9 100%);
	border-radius: 16px;
	border: 2px solid var(--color-main);
}
.animal-curator h3 {
	font-size: 1.5rem;
	margin-bottom: 20px;
	color: var(--color-main);
	font-family: var(--font-accent);
	text-align: center;
}
.animal-curator-info {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
	margin-top: 20px;
}
.animal-curator-info div {
	text-align: center;
}
.animal-curator-info strong {
	display: block;
	font-size: 1.1rem;
	color: #2c3e50;
	margin-bottom: 8px;
}
.animal-curator-info span {
	font-size: 1.2rem;
	color: var(--color-main);
	font-weight: 600;
}

/* Защищённый телефон */
.protected-contact {
	margin-top: 20px;
	text-align: center;
}
.reveal-contact {
	background: var(--color-main);
	color: white;
	border: none;
	padding: 12px 30px;
	border-radius: 25px;
	font-size: 1.1rem;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s;
	margin: 0 auto;
	display: block;
	max-width: 300px;
}
.reveal-contact:hover {
	background: #137c72;
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(24, 149, 137, 0.3);
}
.contact-revealed {
	margin-top: 12px;
	font-size: 1.2rem;
	color: var(--color-main);
	font-weight: 600;
}
.contact-revealed a {
	color: var(--color-main);
	text-decoration: none;
}
.contact-revealed a:hover {
	text-decoration: underline;
}

/* Кнопки действий */
.animal-actions {
	margin-top: 40px;
	display: flex;
	gap: 16px;
	justify-content: center;
	flex-wrap: wrap;
}
.animal-action-btn {
	padding: 12px 28px;
	border-radius: 25px;
	text-decoration: none;
	font-weight: 600;
	font-size: 1rem;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	transition: all 0.3s;
	border: 2px solid;
}
.animal-action-btn.edit {
	background: #2196f3;
	color: white;
	border-color: #2196f3;
}
.animal-action-btn.edit:hover {
	background: #1976d2;
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(33, 150, 243, 0.3);
}
.animal-action-btn.archive,
.animal-action-btn.restore {
	background: #f44336;
	color: white;
	border-color: #f44336;
}
.animal-action-btn.archive:hover,
.animal-action-btn.restore:hover {
	background: #c62828;
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(244, 67, 54, 0.3);
}
.animal-action-btn.delete {
	background: #9c27b0;
	color: white;
	border-color: #9c27b0;
}
.animal-action-btn.delete:hover {
	background: #7b1fa2;
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(156, 39, 176, 0.3);
}

/* Адаптивность сингла */
@media (max-width: 768px) {
	.animal-info-grid,
	.animal-curator-info {
		grid-template-columns: 1fr;
	}
	.single-catalog-header h1 {
		font-size: 2.2rem;
	}
	.animal-carousel {
		height: 400px;
	}
}

/*	МОИ ЖИВОТНЫЕ В КАТАЛОГЕ	*/
.my-animals-catalog-page {
    max-width: 1024px;
    margin: 0 auto;
    padding: 40px 20px;
}

.page-header {
    text-align: center !important;
    margin-bottom: 40px;
}

.page-header h1 {
    font-size: 2.5rem;
    color: var(--color-main);
    margin-bottom: 16px;
    font-family: var(--font-accent);
	
}

.page-header p {
    font-size: 1.2rem;
    color: #555;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

.animals-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin: 30px 0;
}

.animal-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 6px 25px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    position: relative;
}

.animal-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.12);
}

.animal-card-image {
    position: relative;
    height: 280px;
    overflow: hidden;
}

.animal-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.animal-card:hover .animal-card-image img {
    transform: scale(1.05);
}

.status-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    color: white;
    z-index: 2;
}

.status-badge.looking {
    background: linear-gradient(135deg, #4caf50 0%, #2e7d32 100%);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.4);
}

.status-badge.adopted {
    background: linear-gradient(135deg, #9c27b0 0%, #6a1b9a 100%);
    box-shadow: 0 4px 12px rgba(156, 39, 176, 0.4);
}

.animal-card-content {
    padding: 24px;
    background: white;
}

.animal-card h3 {
    font-size: 1.5rem;
    margin: 0 0 12px;
    font-weight: 700;
    color: #2c3e50;
    font-family: var(--font-accent);
    line-height: 1.3;
}

.animal-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid #f0f0f0;
}

.animal-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    color: #555;
}

.animal-meta-item i {
    color: var(--color-main);
    font-size: 0.95rem;
}

.animal-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.animal-action-btn {
    flex: 1;
    padding: 10px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.3s;
    border: 2px solid;
}

.animal-action-btn.view {
    background: var(--color-main);
    color: white;
    border-color: var(--color-main);
}

.animal-action-btn.view:hover {
    background: white;
    color: var(--color-main);
}

.animal-action-btn.edit {
    background: #2196f3;
    color: white;
    border-color: #2196f3;
}

.animal-action-btn.edit:hover {
    background: white;
    color: #2196f3;
}

.animal-action-btn.archive {
    background: #f44336;
    color: white;
    border-color: #f44336;
}

.animal-action-btn.archive:hover {
    background: white;
    color: #f44336;
}

.animal-action-btn.delete {
    background: #9c27b0;
    color: white;
    border-color: #9c27b0;
}

.animal-action-btn.delete:hover {
    background: white;
    color: #9c27b0;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.empty-state i {
    font-size: 4rem;
    color: #ccc;
    margin-bottom: 20px;
}

.empty-state h3 {
    font-size: 1.8rem;
    color: #777;
    margin-bottom: 16px;
    font-family: var(--font-accent);
}

.empty-state p {
    font-size: 1.1rem;
    color: #999;
    margin-bottom: 24px;
}

.empty-state a {
    display: inline-block;
    padding: 12px 32px;
    background: var(--color-main);
    color: white;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s;
}

.empty-state a:hover {
    background: #137c72;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(24, 149, 137, 0.3);
}

/* ===== NEWS ===== */
.news {
    padding: 80px 0;
    background: taransparent;
	margin-top: 60px;
}

.news-list {
    display: grid;
    gap: 20px;
}

.news-item h3 {
    font-size: 1.1rem;
    margin: 16px 12px 8px;
    line-height: 1.3;
    text-align: left; /* или center — по желанию */
}

.news-item time {
    color: #777;
    font-size: 0.9rem;
}

.news-label {
    display: inline-block;
    margin-top: 6px;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    color: white;
}

.news-label.успех { background: #4caf50; }
.news-label.срочно { background: #f44336; }

/* ===== TEAM ===== */
.team {
    padding: 80px 0;
    background: #f9f9f9;
}

.team h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2rem;
    color: var(--color-main);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.team-member {
    text-align: center;
    transition: transform 0.3s ease;
}

.team-member:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

.member-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 16px;
    position: relative;
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.member-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.member-photo::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(255,255,255,0.2), rgba(0,0,0,0.1));
    z-index: 1;
}

.team-member:hover .member-photo {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.team-member h3 {
    margin: 0 0 8px;
    font-size: 1.2rem;
    color: var(--color-main);
    font-family: var(--font-accent);
}

.role {
    font-size: 0.9rem;
    color: var(--color-muted);
    margin: 0 0 8px;
}

.quote {
    font-style: italic;
    color: #555;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s, transform 0.3s;
    line-height: 1.4;
    max-width: 200px;
    margin: 0 auto;
}

.team-member:hover .quote {
    opacity: 1;
    transform: translateY(0);
}

/* ===== PARTNERS CAROUSEL ===== */
.partners {
    padding: 60px 0;
    background: white;
}

.partners h2 {
    text-align: center;
    margin-bottom: 30px;
}

.partner-carousel {
    overflow: hidden;
    position: relative;
    height: 80px; /* высота = max(60px логотип + отступы) */
}

.partner-track {
    display: flex;
    align-items: center;
    gap: 40px;
    width: max-content;
    animation: scrollPartners 20s linear infinite;
}

.partner-track:hover {
    animation-play-state: paused;
}

.partner-track img {
    height: 60px;
    object-fit: contain;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.partner-track img:hover {
    opacity: 1;
}

/* Анимация прокрутки */
@keyframes scrollPartners {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); } /* ← прокручиваем на половину ширины трека */
}

/* Мобильные устройства */
@media (max-width: 768px) {
    .partner-track {
        gap: 30px;
        animation-duration: 25s; /* медленнее */
    }

    .partner-track img {
        height: 50px;
    }
}

/* ===== MODAL ===== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.modal {
    background: white;
    padding: 30px;
    border-radius: 16px;
    max-width: 500px;
    width: 90%;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
}

/* ===== АДАПТИВ ===== */
@media (max-width: 768px) {
    .hero h1 { font-size: 2.2rem; }
    .hero-subtitle { font-size: 1rem; }
	.section-header { flex-direction: column; gap: 16px; }
    .stat-item { display: block; margin: 16px 0; }
}
/* ===== ОБЩИЕ КОНТЕЙНЕРЫ ===== */
.site-container {
    max-width: 1024px;
    margin: 0 auto;
    padding: 5px 20px;
}
.site-main h1 {
    max-width: 1024px;
    text-align: center;
    padding: 10px 10px;
}

.main-content {
    max-width: 760px;
    margin: 0 auto;
    padding: 0 20px;
}
.site-container-wide {
    max-width: 1024px;
    margin: 0 auto;
    padding: 0 20px; /* ← обязательно! */
}
.page-content h1 {
	text-align: center;
}
/* Кошачьи лапки только в основном контенте */
.article-content ul,
.main-content ul,
.site-container ul {
	list-style: none;
	padding-left: 0;
}

.article-content ul li,
.main-content ul li,
.site-container ul li {
	position: relative;
	padding-left: 28px; /* чуть больше отступ — под размер лапки */
	margin-bottom: 0.6em;
	line-height: 1.4; /* улучшает читаемость */
}

.article-content ul li::before,
.main-content ul li::before,
.site-container ul li::before {
	content: "🐾";
	position: absolute;
	left: 0;
	top: 0.20em; /* ← КЛЮЧЕВОЕ ИЗМЕНЕНИЕ: опускаем лапку ниже */
	font-size: 16px;
	line-height: 1;
}

/*	блоки внимания   */
/* === ЦИТАТЫ  === */
blockquote {
    position: relative;
    margin: 3rem 0;
    padding: 2.8rem 2rem 1.6rem;
    background: linear-gradient(135deg, #f0fffe 0%, #ffffff 100%);
    border: 1px solid var(--color-main, #189589);
    border-radius: 14px;
    text-align: center;
    font-style: italic;
    color: #2c3e50;
    line-height: 1.7;
    font-size: 1.15rem;
    font-weight: 500;
    box-shadow: 0 6px 18px rgba(24,149,137,0.08);
}

/* Круг */
blockquote::before {
    content: "";
    position: absolute;
    top: -24px;
    left: 50%;
    transform: translateX(-50%);
    width: 48px;
    height: 48px;
    background: #fff;
    border: 1px solid var(--color-main, #189589);
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(24,149,137,0.15);
    z-index: 1;
}

/* Кавычка */
blockquote::after {
    content: "“";
    position: absolute;
    top: -24px;
    left: 50%;
    transform: translateX(calc(-50% - 4px));
    width: 48px;
    height: 48px;

    font-family: Georgia, serif;
    font-size: 60px;
    font-weight: 700;
    color: var(--color-main, #189589);

    text-align: center;
    line-height: 75px;   /* ← ключ к идеальному вертикальному центру */
    z-index: 2;
}

/* Текст */
blockquote p {
    margin: 0;
    position: relative;
    z-index: 0;
}

/* Адаптив */
@media (max-width: 600px) {

    blockquote {
        padding: 2.2rem 1.5rem 1.2rem;
        font-size: 1rem;
        margin: 2rem 0;
    }

    blockquote::before,
    blockquote::after {
        width: 40px;
        height: 40px;
        top: -20px;
    }

    blockquote::after {
        font-size: 24px;
        line-height: 40px;
    }
}

/* Инлайн-цитаты */
.article-content q {
    font-style: italic;
    color: var(--color-main);
}

/* Специальные блоки */
.warning,
.info-block {
    padding: 1.2em 1.5em;
    margin: 1.5em 0;
    border-radius: 8px;
    font-size: 1rem;
}

.warning {
    background: #fff8e1;
    border: 1px solid #ffd54f;
    color: #000;
	 margin-top: 40px;
    clear: both;
}

.info-block {
    background: #e8f5e9;
    border: 1px solid #a5d6a7;
    color: #1b5e20;
}

.small-warning {
    color: #d32f2f;
    font-weight: bold;
    font-style: italic;
    font-size: 1.1rem;
}
.highlight {
    background-color: #fff8e1;
    border-left: 4px solid #ffc107;
    padding: 20px;
    margin: 25px 0;
    border-radius: 0 4px 4px 0;
    font-style: italic;
  }
  
/* Эпилог статей — маленький текст внизу */
div.epilogue {
    text-align: right;
    font-style: italic;
    font-size: 0.8rem;  /* базовый размер для всего эпилога */
    color: #666;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px dashed #ccc;
}

/* Если внутри есть <p> или <span>, они наследуют размер */
div.epilogue p,
div.epilogue span,
div.epilogue em,
div.epilogue strong {
    font-size: inherit;  /* наследуем 0.5rem от родителя */
    margin: 0;           /* убираем лишние отступы, если надо */
}

/* Универсальный блок: НАСТЯ иконка + текст */
/* Обёртка — центр страницы */
.support-wrap {
    display: flex;
    justify-content: center;
    width: 100%;
    margin: 30px 0;
}

/* Сам блок */
.support-block {
    display: flex;
    align-items: center; /* ВАЖНО */
    gap: 14px;

    padding: 14px 18px;
    max-width: 820px;
    width: fit-content;

    background: transparent;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.04);
}

/* Иконка */
.support-block img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}

/* Текст — без схлопываний */
.support-text {
    margin: 0;
    padding-top: 2px; /* лёгкий подъём */
    font-size: 15px;
    line-height: 1.4;
}

/* Мобилка */
@media (max-width: 600px) {
    .support-block {
        padding: 12px 16px;
    }

    .support-block img {
        width: 36px;
        height: 36px;
    }

    .support-text {
        font-size: 14px;
    }
}


/* ===== ТЕКСТОВЫЙ КОНТЕНТ (article) ===== */
.article-content {
	background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
	max-width: 750px;
    margin: 0 auto;
    padding: 20px 20px;
    font-family: var(--font-sans);
    color: var(--color-text);
    line-height: 1.7;
    font-size: 1.05rem;
}

.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4,
.article-content h5,
.article-content h6 {
    font-family: var(--font-accent);
    margin: 1.8em 0 1em;
    line-height: 1.2;
    color: var(--color-main);
}

.article-content h1 { font-size: 2.2rem; }
.article-content h2 { font-size: 1.8rem; }
.article-content h3 { font-size: 1.5rem; }
.article-content h4 { font-size: 1.25rem; }

.article-content p {
    margin: 0 0 1.2em;
}



/* Изображения и медиа */
.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin:  0;
}

.article-content figure {
    margin: 1.5em 0;
}

.article-content figcaption {
    text-align: center;
    font-size: 0.9rem;
    color: var(--color-muted);
    margin-top: 0.5em;
}

/* Списки */
.article-content ul,
.article-content ol {
    margin: 1.2em 0;
    padding-left: 1.5em;
}

.article-content li {
    margin-bottom: 0.5em;
}

/* Ссылки */
.article-content a {
    color: var(--color-main);
    text-decoration: underline;
    transition: color var(--transition);
}

.article-content a:hover {
    color: var(--color-accent);
    text-decoration: none;
}

/* Адаптивность */
@media (max-width: 768px) {
    .article-content {
        font-size: 1rem;
        padding: 0 15px;
    }

    .article-content h1 { font-size: 1.8rem; }
    .article-content h2 { font-size: 1.5rem; }
    .article-content h3 { font-size: 1.3rem; }

    .main-content {
        padding: 0 15px;
    }
}
/* ===== VOLUNTEER PAGE ===== */
.volunteer-page {
    padding: 0;
    
}

.volunteer-page h1 {
    text-align: center;
    margin-bottom: 32px;
}

.page-description {
    max-width: 1024px;
    margin: 0 auto 40px;
	padding: 25px 0;
    text-align: center;
	background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    margin-bottom: 30px;
}

/* Сетка */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin-top: 32px;
}

/* Универсальная карточка */
.card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

/* Изображение в карточке */
.card-image-wrapper {
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: #f8f9fa;
}

.card-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Контент карточки */
.card-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-content h2 {
    font-size: 1.25rem;
    margin: 0 0 12px;
    color: #2c3e50;
}

.card-content h2 a {
    text-decoration: none;
    color: inherit;
}

.card-content p {
    color: #555;
    line-height: 1.5;
    margin: 0 0 16px;
    flex: 1;
}



/* Адаптивность */
@media (max-width: 768px) {
    .cards-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 16px;
    }

    .volunteer-page {
        padding: 40px 0;
    }

    .volunteer-page h1 {
        font-size: 2rem;
    }
}
/* ===== POST FEATURED IMAGE ===== */
figcaption {
	padding-bottom: 20px;
}
.post-featured-image {
    margin: 2em 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

.post-featured-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    aspect-ratio: 16/9;
    transition: transform 0.3s ease;
}

.post-featured-image:hover img {
    transform: scale(1.02);
}

.post-featured-image figcaption {
    text-align: center;
    font-size: 0.9rem;
    color: var(--color-muted);
    margin-top: 0.5em;
}

/* ===== ARTICLE CONTENT ===== */
.article-content {
    font-family: var(--font-sans);
    color: var(--color-text);
    line-height: 1.7;
    font-size: 1.05rem;
}

.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4,
.article-content h5,
.article-content h6 {
    font-family: var(--font-accent);
    margin: 1.8em 0 1em;
    line-height: 1.2;
    color: var(--color-main);
}

.article-content h1 { font-size: 2.2rem; }
.article-content h2 { font-size: 1.8rem; }
.article-content h3 { font-size: 1.5rem; }
.article-content h4 { font-size: 1.25rem; }

.article-content p {
    margin: 0 0 1.2em;
}



.article-content a {
    color: var(--color-main);
    text-decoration: underline;
    transition: color var(--transition);
}

.article-content a:hover {
    color: var(--color-accent);
    text-decoration: none;
}

/* ===== POST META ===== */
.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin: -0.5em 0 2em;
    color: var(--color-muted);
    font-size: 0.95rem;
}

.post-meta i {
    margin-right: 4px;
    color: var(--color-main);
}

.post-categories a,
.post-tags a {
    color: var(--color-main);
    text-decoration: none;
}

.post-categories a:hover,
.post-tags a:hover {
    text-decoration: underline;
}

/* ===== TAGS ===== */
.post-tags {
    margin: 2em 0;
    padding-top: 1em;
    border-top: 1px solid #eee;
}

.tag-link {
    display: inline-block;
    margin: 0 8px 8px 0;
    padding: 4px 10px;
    background: #f0f8f7;
    border-radius: 4px;
    font-size: 0.9rem;
}

/* ===== NAVIGATION ===== */
.post-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 3em;
    padding-top: 2em;
    border-top: 1px solid #eee;
    font-weight: 600;
}

.post-navigation a {
    color: var(--color-main);
    text-decoration: none;
    max-width: 45%;
}

.post-navigation a:hover {
    color: var(--color-accent);
    text-decoration: underline;
}

/* ===== АДАПТИВНОСТЬ ===== */
@media (max-width: 768px) {
    .article-content {
        font-size: 1rem;
        padding: 0 15px;
    }

    .article-content h1 { font-size: 1.8rem; }
    .article-content h2 { font-size: 1.5rem; }
    .article-content h3 { font-size: 1.3rem; }

    .post-featured-image {
        margin: 1.5em 0;
    }

    .post-meta {
        font-size: 0.9rem;
    }

    .post-navigation {
        flex-direction: column;
        gap: 12px;
    }

    .post-navigation a {
        max-width: 100%;
    }
}
/* ===== ABOUT PAGE ===== */

.site-container-1024 {
    max-width: 1024px;
    margin: 0 auto;
    padding: 0 20px;
}

.about-page {
    padding: 60px 0;
    background: #fffdf5;
}

.about-page h1 {
    text-align: center;
    margin-bottom: 32px;
    font-size: 2.2rem;
}

.about-content {
    max-width: 1024px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

.osvv-section {
    margin: 60px 0;
}

.osvv-section h2 {
    text-align: center;
    margin-bottom: 24px;
    font-size: 1.8rem;
    color: var(--color-main);
}

.osvv-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin: 32px 0;
}

.about-card {
    background: white;
    padding: 24px;
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 12px;
    transition: box-shadow 0.3s ease;
}

.about-card:hover {
    box-shadow: 0 12px 28px rgba(0,0,0,0.12);
}
.card-icon {
    font-size: 2.8rem;
    color: var(--color-main);
    margin-bottom: 16px;
    line-height: 1;
}

.osvv-cards h3 {
    margin: 0 0 16px;
    color: var(--color-main);
    font-size: 1.3rem;
}



.principles {
    margin: 50px 0;
}

.principles h2 {
    text-align: center;
    margin-bottom: 24px;
    font-size: 1.8rem;
    color: var(--color-main);
}

.principles ul {
    max-width: 800px;
    margin: 0 auto;
    padding-left: 20px;
    font-size: 1.1rem;
    line-height: 1.8;
}

.principles li {
    margin-bottom: 12px;
}

.cta-box {
    text-align: center;
    padding: 40px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    margin-top: 50px;
}

.cta-box h2 {
    margin-bottom: 16px;
    color: var(--color-main);
}

/* ===== SOURCES / REFERENCES BLOCK ===== */
.sources-section {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

.sources-section h3 {
    text-align: center;
    color: var(--color-main);
    margin-bottom: 20px;
    font-size: 1.4rem;
    font-family: var(--font-accent);
}

.sources-section blockquote {
    font-style: italic;
    color: var(--color-muted);
    font-size: 1rem;
    line-height: 1.6;
    margin: 0 auto;
    max-width: 800px;
    text-align: center;
    padding: 0;
    border: none;
}

.sources-section p {
    text-align: center;
    font-size: 0.95rem;
    color: var(--color-muted);
    margin: 12px 0 0;
}
.sources-section ol li{
    text-align: center;
    font-size: 0.95rem;
    color: var(--color-muted);
    margin: 12px 0 0;
}

.sources-section a {
    color: var(--color-main);
    text-decoration: underline;
    transition: color var(--transition);
}

.sources-section a:hover {
    color: var(--color-accent);
    text-decoration: none;
}

@media (max-width: 768px) {
    .about-page h1 {
        font-size: 1.8rem;
    }
  @media (max-width: 768px) {
    .osvv-cards {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}
    .osvv-section h2,
    .principles h2 {
        font-size: 1.5rem;
    }

    .cta-box {
        padding: 24px;
    }
}

/* ===== ВАША ПОМОЩЬ — СТИЛИ ДЛЯ БЛОКОВ ===== */
.help-section {
	margin: 60px 0;
	padding: 30px 0;
	border-top: 1px solid #eee;
}

.help-section:first-child {
	border-top: none;
	margin-top: 30px;
}

.help-section h2 {
	color: var(--color-main);
	font-size: 1.8rem;
	margin-bottom: 24px;
	font-weight: 700;
	line-height: 1.3;
}

.help-section p {
	margin-bottom: 16px;
	line-height: 1.6;
}

.help-section ul {
	margin: 16px 0 24px 24px;
	line-height: 1.6;
}

.help-section li {
	margin-bottom: 8px;
}

.info-block {
	background: #f8f9fa;
	border-left: 4px solid var(--color-main);
	padding: 16px;
	margin: 24px 0;
	border-radius: 0 8px 8px 0;
}

.info-block p {
	margin: 0 0 12px 0;
}

.info-block ul {
	margin-top: 8px;
	margin-bottom: 0;
}

.cta-box {
	text-align: center;
	padding: 40px;
	background: #f9f9f9;
	border-radius: 12px;
	border: 1px solid #e0e0e0;
}
/* ===== SCROLL TO TOP BUTTON ===== */
#scroll-to-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--color-main);
    color: white;
    border: none;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    z-index: 100;
}

#scroll-to-top:hover {
    background: var(--color-accent);
    transform: translateY(0);
}

#scroll-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

@media (max-width: 768px) {
    #scroll-to-top {
        width: 44px;
        height: 44px;
        font-size: 20px;
        bottom: 16px;
        right: 16px;
    }
}
/* =========================
   GOOGLE MAP (ASPECT-RATIO)
   ========================= */

.google-map {
    width: 100%;
    max-width: 100%;
    margin: 40px auto;
    aspect-ratio: 16 / 7;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.google-map iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

/* мобильная пропорция */
@media (max-width: 768px) {
    .google-map {
        aspect-ratio: 4 / 5;
        border-radius: 0;
    }
}


/* ================= FOOTER ================= */
.site-footer {
	width: 100%;
}

/* --- TOP FOOTER --- */
.footer-main {
	width: 100%;
	height: 200px;
	background-image: url('assets/images/bgfooter.jpg');
	background-repeat: repeat;
	background-size: 250px 250px;
	display: flex;
	align-items: center;
}

.footer-container {
	max-width: 1024px;
	width: 100%;
	margin: 0 auto;
	padding: 0 20px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 100%;
}

.footer-col {
	flex: 1;
	height: 100%;
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 0 20px;
}

.footer-col:not(:last-child) {
	border-right: 1px solid rgba(255,255,255,0.25);
}

/* Logo */
.footer-logo img {
	width: 80px;
	height: 80px;
	border-radius: 50%;
	object-fit: cover;
}
/* Слоган рядом с логотипом */
.logo-slogan-wrapper {
	display: flex;
	align-items: center;
	gap: 16px;
	height: 100%;
}

.footer-slogan {
	color: #fff;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.3;
	text-align: left;
	white-space: nowrap;
}

/* Стиль для блока лицензии в футере */
.footer-license {
    margin-top: 15px; /* Отступ от слогана */
    line-height: 1.4;
}

.footer-license a {
    color: #888; /* Светло-серый цвет, чтобы не спорил с лого */
    text-decoration: none;
    font-size: 0.85rem; /* Шрифт чуть меньше основного */
    transition: color 0.3s ease;
    display: inline-block;
}

.footer-license a:hover {
    color: #fff; /* При наведении становится белым (или вашим акцентным цветом) */
    text-decoration: underline;
}

.footer-license small {
    font-weight: 400;
}

/* Text */
.footer-col h4 {
	color: #fff;
	text-align: center;
	font-size: 15px;
	margin-bottom: 6px;
}

.footer-col ul {
	list-style: none;
}

.footer-col li {
	margin: 3px 0;
}

.footer-col a {
	color: rgba(255,255,255,0.85);
	font-size: 14px;
	transition: color 0.3s ease;
}

.footer-col a:hover {
	color: #4ecdc4;
}

/* Social */
.footer-social {
	align-items: center;
	
}

.social-icons {
	display: flex;
	gap: 14px;
}

.social-icons a {
	color: #fff;
	font-size: 18px;
	margin-top: 10px;
	transition: color 0.3s ease;
}

.social-icons a:hover.fa-facebook-f { color: #1877f2; }
.social-icons a:hover.fa-instagram { color: #e1306c; }
.social-icons a:hover.fa-tiktok { color: #000; }
.social-icons a:hover.fa-youtube { color: #ff0000; }

/* --- BOTTOM FOOTER --- */
.footer-bottom {
	width: 100%;
	height: 30px;
	background: #262424;
	color: #aaa;
	font-size: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
}
.footer-bottom a {
	padding-left: 5px;
	color: #aaa;
}

@media (max-width: 768px) {

	/* HEADER */
	.site-header {
		height: auto;
		padding: 10px 0;
	}

	.header-container {
		flex-direction: column;
		gap: 12px;
	}

	.header-menu {
		order: 3;
	}

	/* FOOTER */
	.logo-slogan-wrapper {
		flex-direction: column;
		gap: 8px;
		justify-content: center;
	}

	.footer-slogan {
		white-space: normal;
		text-align: center;
		font-size: 14px;
	}
	.footer-main {
		height: auto;
		padding: 20px 0;
	}

	.footer-container {
		flex-direction: column;
		gap: 16px;
		text-align: center;
	}

	.footer-col {
		padding: 10px 0;
	}

	.footer-col:not(:last-child) {
		border-right: none;
		border-bottom: 1px solid rgba(255,255,255,0.2);
	}

	.footer-social {
		align-items: center;
	}

	.social-icons {
		justify-content: center;
	}
}
/*  статистика */
/* === Простой счётчик посещений === */
/* === Компактный счётчик посещений === */
.footer-counter {
    width: 100%;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: #ffffff;
    font-size: 14px;
    padding: 10px 0;
    text-align: center;
    margin: 0;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
}

.footer-counter .counter-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.footer-counter .counter-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.08);
    padding: 2px 4px;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.footer-counter .counter-item:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: scale(1.02);
}

.footer-counter .counter-icon {
    font-size: 16px;
    line-height: 1;
}

.footer-counter .counter-number {
    font-size: 18px;
    font-weight: 700;
    color: #4CAF50;
    min-width: 20px;
    text-align: center;
}

.footer-counter .counter-separator {
    font-size: 16px;
    color: #666666;
    margin: 0 8px;
}

.footer-counter .counter-label {
    font-size: 13px;
    color: #bbbbbb;
}

/* Адаптивность */
@media (max-width: 768px) {
    .footer-counter {
        padding: 8px 0;
    }
    
    .footer-counter .counter-item {
        padding: 6px 12px;
    }
    
    .footer-counter .counter-number {
        font-size: 16px;
    }
    
    .footer-counter .counter-icon {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .footer-counter {
        font-size: 12px;
        padding: 6px 0;
    }
    
    .footer-counter .counter-item {
        padding: 4px 10px;
        gap: 4px;
    }
    
    .footer-counter .counter-number {
        font-size: 14px;
    }
    
    .footer-counter .counter-separator {
        margin: 0 4px;
    }
}

/*	ПОЛНОШИРНЫЕ ИЗОБРАЖЕНИЯ		*/
.fullwidth-hero {
    width: 100%;
    height: 400px;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    margin: 0;
    padding: 0;
}
.hero-swans {
    background-image: url('/wp-content/themes/volunteerhelp/assets/images/swans.jpg');
}

.hero-dog {
    background-image: url('/wp-content/themes/volunteerhelp/assets/images/dog-top.webp');
}

.hero-help {
    background-image: url('/wp-content/themes/volunteerhelp/assets/images/you-help.jpg');
}

.hero-assistant {
    background-image: url('/wp-content/themes/volunteerhelp/assets/images/assistant.jpg');
}

.hero-clinic {
    background-image: url('/wp-content/themes/volunteerhelp/assets/images/clinic.webp');
}

.hero-volunteer {
    background-image: url('/wp-content/themes/volunteerhelp/assets/images/cat-dog.jpg');
}
/* планшеты */
@media (max-width: 1024px) {
    .fullwidth-hero {
        height: 300px;
    }
}

/* телефоны */
@media (max-width: 768px) {
    .fullwidth-hero {
        height: 180px;
        background-position: center;
    }
}

/* маленькие телефоны */
@media (max-width: 480px) {
    .fullwidth-hero {
        height: 140px;
    }
}
/* ===== ASSISTENT PAGE ===== */
.assistant-section {
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 24px;
    margin: 28px 0;
    background: #fafafa;
    transition: box-shadow 0.3s ease;
}

.assistant-section:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.assistant-section legend {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-main);
    padding: 0 12px;
    background: white;
    border-radius: 8px;
    margin-bottom: 16px;
    display: block;
    width: fit-content;
    font-family: var(--font-accent);
}

/* Контейнер для ссылок с иконкой */
.assistant-link-wrapper {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 6px; /* расстояние между ссылкой и иконкой */
    margin: 5px 0; /* отступы сверху и снизу */
}

/* Ссылка кнопка */
.assistant-link {
    display:flex;
    padding: 12px 20px;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    color: var(--color-main);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05rem;
    text-align: left;
    transition: all 0.2s ease;
    flex-grow: 1; /* чтобы занимала всё место слева */
    box-sizing: border-box;
	margin: 8px 0;
}

.assistant-link:hover {
    background: #f0f8f7;
    border-color: var(--color-main);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.08);
}

/* Иконка вопроса */
.video-help-icon {
    color: #0073aa;
    cursor: pointer;
    font-size: 1.2em;
    flex-shrink: 0; /* не сжимается */
    transition: color 0.2s;
}

.video-help-icon:hover {
    color: #005177;
}

/* Модалка */
#video-help-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

#video-help-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.75);
}

#video-help-content {
    position: relative;
    background: #fff;
    border-radius: 12px;
    max-width: 90%;
    max-height: 80vh;
    z-index: 1;
    box-shadow: 0 10px 30px rgba(0,0,0,0.35);
    overflow: hidden;
}

#video-help-content iframe {
    width: 100%;
    height: calc(min(100vw * 0.5625, 400px)); /* 16:9 с ограничением */
    display: block;
    border: none;
}

/* Кнопка закрытия — заметная и контрастная */
#video-help-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
    padding: 0;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

#video-help-close:hover {
    background-color: rgba(0, 0, 0, 0.9);
    transform: scale(1.05);
}

#video-help-close:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(24, 149, 137, 0.5);
}
/* ===== Адаптив ===== */
@media (max-width: 600px) {
    .assistant-link {
        font-size: 1rem;
        padding: 10px 16px;
    }

    #video-help-content iframe {
        height: calc(100vw * 0.5625); /* сохраняем 16:9 на мобильных */
    }
}


/* ========================================
COOKIE CONSENT — БЕЗ !IMPORTANT
======================================== */

/* Базовый стиль — скрыт по умолчанию */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #f5f9f8;
    border-top: 1px solid #d4e8e5;
    padding: 24px 20px 32px;
    z-index: 9999;
    display: none; /* ← Скрыт по умолчанию, без !important */
    box-shadow: 0 -6px 20px rgba(0,0,0,0.06);
}

/* Показываем только когда есть класс .active */
.cookie-consent.active {
    display: block; /* ← Показываем через класс */
}

/* Контейнер */
.cookie-content {
    max-width: 1024px;
    margin: 0 auto;
    text-align: center;
}

.cookie-content p {
    margin: 0 0 16px;
    color: #2c3e50;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Кнопки */
.cookie-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

/* Сообщение */
.cookie-message {
    margin-top: 12px;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 0.95rem;
    display: none;
}

.cookie-message.success {
    background: #e8f5e9;
    color: #1b5e20;
    border: 1px solid #a5d6a7;
    display: block;
}

.cookie-message.warning {
    background: #fff3e0;
    color: #e65100;
    border: 1px solid #ffcc80;
    display: block;
}

/* Ссылка на политику */
.cookie-policy-link {
    color: var(--color-main);
    text-decoration: underline;
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.cookie-policy-link:hover {
    color: var(--color-accent);
    text-decoration: none;
}

/* ===== COOKIE MODAL ===== */
.cookie-modal {
    position: fixed;
    inset: 0;
    display: none; /* ← Скрыта по умолчанию */
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
}

.cookie-modal.active {
    display: flex; /* ← Показываем через класс */
}

.cookie-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    cursor: pointer;
}

.cookie-modal-content {
    position: relative;
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    max-width: 520px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    z-index: 1;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.cookie-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: none;
    border: none;
    font-size: 28px;
    color: #666;
    cursor: pointer;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    line-height: 1;
}

.cookie-modal-close:hover {
    background: #f0f0f0;
    color: #333;
}

.cookie-modal h3 {
    margin: 0 0 16px;
    color: var(--color-main);
    font-family: var(--font-accent);
    font-size: 1.4rem;
}

.modal-description {
    color: #555;
    margin: 0 0 20px;
    line-height: 1.5;
}

.cookie-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.cookie-option {
    display: flex;
    gap: 12px;
    padding: 12px 16px;
    background: #f8f9fa;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.2s;
    align-items: flex-start;
}

.cookie-option:hover {
    background: #f0f4f3;
}

.cookie-option.required {
    opacity: 0.85;
    cursor: not-allowed;
}

.cookie-option input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--color-main);
}

.cookie-option.required input {
    cursor: not-allowed;
}

.option-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.option-info strong {
    color: #2c3e50;
    font-size: 0.95rem;
}

.option-info small {
    color: #777;
    font-size: 0.85rem;
    line-height: 1.4;
}

.cookie-modal-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.cookie-modal-footer {
    text-align: center;
    padding-top: 12px;
    border-top: 1px solid #eee;
}

.cookie-modal-footer .cookie-policy-link {
    display: block;
    margin-top: 8px;
}

/* Адаптив */
@media (max-width: 768px) {
    .cookie-consent {
        padding: 16px;
    }
    .cookie-buttons {
        flex-direction: column;
        align-items: center;
    }
    .cookie-consent .btn,
    .cookie-consent .btn-outline {
        width: 100%;
        max-width: 280px;
    }
    .cookie-modal-content {
        padding: 20px;
        margin: 10px;
    }
    .cookie-modal-actions {
        flex-direction: column;
    }
    .cookie-modal-actions .btn {
        width: 100%;
    }
}
/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: 50px;
    background-color: #2a9589; /* основной цвет кнопки */
    color: #fff;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.btn:hover,
.btn:focus {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.3);
}

/* ===== SMALL BUTTON ===== */
.btn-small {
    padding: 8px 18px;
    font-size: 0.9rem;
    border-radius: 50px;
    background-color: #2a9589;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-small:hover,
.btn-small:focus {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.25);
}

/* ===== OUTLINE BUTTON ===== */
.btn-outline {
    display: inline-block;
    padding: 10px 22px;
    border: 2px solid #2a9589;
    border-radius: 50px;
    background: transparent;
    color: #2a9589;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-outline:hover,
.btn-outline:focus {
    background-color: #fff;
    color: #189589;;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* ===== ADAPTIVE BUTTONS ===== */
@media (max-width: 768px) {
    .btn, .btn-small, .btn-outline {
        padding: 10px 20px;
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .btn, .btn-small, .btn-outline {
        width: 100%; /* кнопки на мобильниках растягиваются по ширине */
        text-align: center;
        padding: 10px 0;
        font-size: 0.9rem;
    }
}


/* ===== ЕДИНЫЙ СТИЛЬ ДЛЯ ФОРМ ===== */
.auth-form,
.volunteer-form {
    max-width: 500px;
    margin: 0 auto;
    background: #fff;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 1rem;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="number"] {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
	 box-sizing: border-box;
}

.form-group input:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.15);
}

.form-group small {
    display: block;
    margin-top: 6px;
    color: #777;
    font-size: 0.9rem;
}
.volunteer-form .form-group {
    margin-bottom: 24px;
}

.volunteer-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
}

.volunteer-form input[type="text"],
.volunteer-form input[type="email"],
.volunteer-form input[type="tel"],
.volunteer-form input[type="url"],
.volunteer-form select,
.volunteer-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    background: #fff;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.volunteer-form textarea {
    min-height: 120px;
    resize: vertical;
    box-sizing: border-box; /* ← дублируем на всякий случай */
}

.volunteer-form .form-hint {
    font-size: 0.9rem;
    color: #666;
    margin: 6px 0 12px;
}

.volunteer-form .form-hint code {
    background: #f0f0f0;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: monospace;
}

.volunteer-form .form-actions {
    display: flex;
    gap: 16px;
    margin-top: 24px;
    flex-wrap: wrap;
}

.volunteer-form .form-btn,
.volunteer-form .btn-outline {
    padding: 10px 24px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    flex: 1;
    min-width: 160px;
}

.volunteer-form .btn-outline {
    background: transparent;
    border: 2px solid #2a9589;
    color: #2a9589;
}

.volunteer-form .btn-outline:hover {
    background: #2a9589;
    color: white;
}

/* Чекбокс и ссылка в одной строке */
.form-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
}

.form-checkbox label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-weight: normal;
    cursor: pointer;
}

.form-checkbox input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.form-link a {
    color: #4CAF50;
    text-decoration: none;
    font-size: 0.95rem;
}

.form-link a:hover {
    text-decoration: underline;
}

/* ===== КНОПКИ В ФОРМАХ ===== */
.form-btn {
    display: inline-block;
    padding: 14px 32px;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    width: 100%;
}

.form-btn:hover {
    background: #45a049;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

/* ===== КНОПКИ НА ГЛАВНОЙ (и других страницах) ===== */
.main-btn {
    display: block;
    padding: 16px 30px;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    margin: 10px 0;
    width: 100%;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.main-btn:hover {
    background: #45a049;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}



/* Адаптив */
@media (max-width: 600px) {
    .auth-form,
    .volunteer-form {
        padding: 24px;
    }
    
    .form-row {
        flex-direction: column;
        align-items: flex-start;
    }
}
/* ===== СПИСОК ОБРАЩЕНИЙ ===== */
/* Обёртка для сообщений — чтобы не вылетали */
.petition-message-wrapper {
    margin: 1.5em 0;
}
ul.petition-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.petition-item {
    padding: 14px 20px;
    margin-bottom: 10px;
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    transition: all 0.2s;
}

.petition-item.active {
    border-left: 6px solid var(--color-main);
}

.petition-item.inactive {
    background: #f5f5f5;
    color: #777;
    border-left: 6px solid #ccc;
}

.petition-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.petition-link {
    text-decoration: none;
    font-weight: 600;
}

.petition-link.active {
    color: var(--color-main);
}

.petition-link.inactive {
    color: #555;
    cursor: default;
}

.petition-count {
    font-size: 0.95rem;
    color: var(--color-text);
    margin-left: 12px;
}

.petition-closed {
    font-style: italic;
    color: #999;
    margin-left: 10px;
}

/* ===== ПОДПИСИ ===== */
table.petition-signatures {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

table.petition-signatures th,
table.petition-signatures td {
    border: 1px solid var(--color-border);
    padding: 8px 12px;
    font-size: 0.95rem;
    text-align: left;
}

.petition-actions {
    margin: 20px 0;
}

.button {
    display: inline-block;
    padding: 10px 24px;
    background: var(--color-main);
    color: #fff;
    border-radius: 30px;
    text-decoration: none;
    transition: background 0.3s;
    margin-right: 10px;
}

.button:hover {
    background: var(--color-accent);
}

/* ===== АДАПТИВ ===== */
@media (max-width: 768px) {
    .petition-item {
        flex-direction: column;
        align-items: flex-start;
    }
    .petition-count {
        margin-left: 0;
        margin-top: 5px;
    }
    table.petition-signatures th,
    table.petition-signatures td {
        font-size: 0.85rem;
        padding: 6px 8px;
    }
}

/* ------------------ Экран (обычный режим) ------------------ */
.signature-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.btn-print,
.btn-download {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 8px;
    color: #fff;
    font-weight: bold;
    cursor: pointer;
}

.btn-print {
    background-color: #4CAF50;
}

.btn-download {
    background-color: #2196F3;
}

.signature-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 10pt;
    margin-top: 10px;
}

.signature-table th,
.signature-table td {
    border: 1px solid #000;
    padding: 4px;
    text-align: left;
}

.print-title {
    font-size: 14pt;
    margin-bottom: 10px;
}

.print-signature-count {
    margin-top: 8px;
    font-size: 10pt;
    font-weight: bold;
}

/* ------------------ Печать — надёжный метод ------------------ */
@media print {
  /* Скрываем всё */
  body * {
    visibility: hidden;
  }

  /* Показываем только область печати */
  .print-area,
  .print-area * {
    visibility: visible;
  }

  .print-area {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1cm;
    box-sizing: border-box;
    font-size: 10pt;
    background: white;
    color: black;
    line-height: 1.3;
    font-family: Arial, sans-serif;
  }

  .print-title {
    font-size: 14pt;
    font-weight: normal; /* ← Убираем жирность */
    margin: 0 0 8px 0;
    line-height: 1.2;
    text-align: center;
    color: #000;
    font-family: Arial, sans-serif;
  }

  .signature-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    border: 1px solid #000;
    font-size: 9pt;
    font-family: Arial, sans-serif;
  }

  .signature-table th,
  .signature-table td {
    border: 1px solid #000;
    padding: 3px 4px;
    text-align: left;
    word-wrap: break-word;
    vertical-align: top;
    font-family: Arial, sans-serif;
  }

  .print-signature-count {
    font-size: 10pt;
    font-weight: bold;
    margin: 10px 0 0 0;
    text-align: right;
    font-family: Arial, sans-serif;
  }

  /* Гарантируем отображение границ */
  * {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}
/* ================================
   ВОЛОНТЁРСКИЙ БАР
   ================================ */

/* сам бар */
#volunteer-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 32px;
    box-sizing: border-box;
    background: #1d2327;
    color: #fff;
    z-index: 99999;

    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;

    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI",
                 Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans",
                 "Helvetica Neue", sans-serif;
    font-size: 13px;
}

/* аватар */
#volunteer-bar img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
}

/* левая и правая части */
.volunteer-bar-left,
.volunteer-bar-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* кнопки */
.volunteer-btn {
    color: #fff;
    text-decoration: none;
    padding: 4px 10px;
    border-radius: 3px;
    background: #2271b1;
    line-height: 1;
    white-space: nowrap;
}

.volunteer-btn:hover {
    background: #135e96;
}

.volunteer-btn.logout {
    background: #8c2f2f;
}

.volunteer-btn.logout:hover {
    background: #6b2323;
}

/* ================================
   СМЕЩЕНИЕ ХЕДЕРА
   ================================ */

/* ТОЛЬКО волонтёр */
body.has-volunteer-bar .site-header {
    position: sticky; /* или fixed — как у тебя в теме */
    top: 32px;
    z-index: 9999;
}

/* админ + волонтёр */
body.admin-bar.has-volunteer-bar .site-header {
    top: 64px;
}


/*	ШЕЛТЕР  */
/* ===== СЕТКА ПЕРЕДЕРЖЕК ===== */
.shelters-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 24px;
}

.shelter-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    padding: 16px;
    position: relative;
}

.shelter-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.shelter-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 12px;
}

.shelter-card h3 {
    font-size: 1.1rem;
    margin: 0 0 8px;
    color: #2c3e50;
    font-weight: 700;
}

.shelter-card p {
    margin: 4px 0;
    font-size: 0.95rem;
    line-height: 1.4;
}

.shelter-card p strong {
    font-weight: 600;
    color: #555;
}

/* ===== ЦВЕТА ПО ТИПУ ===== */
.shelter-card.paid {
    border-left: 6px solid #4caf50;
}
.shelter-card.free {
    border-left: 6px solid #2196f3;
}
.shelter-card.black {
    border-left: 6px solid #f44336;
    background: #ffebee;
}

.shelter-card.black h3,
.shelter-card.black p {
    color: #b71c1c;
}

/* ===== СТАТУСЫ ===== */
.status {
    margin: 8px 0 0;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 4px;
    display: inline-block;
}

.status.has-places {
    background: #e8f5e9;
    color: #2e7d32;
}

.status.is-busy {
    background: #ffcdd2;
    color: #c62828;
}

/* ===== ЗАНЯТО (через класс) ===== */
.shelter-card.busy {
    opacity: 0.85;
}

/* ===== АДАПТИВНОСТЬ ===== */
@media (max-width: 768px) {
    .shelters-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .shelters-grid {
        grid-template-columns: 1fr;
    }
    .shelter-card img {
        height: 120px;
    }
}

/* ===== ФИЛЬТРЫ ===== */
.filter-form select,
.filter-form button {
    padding: 6px 12px;
    font-size: 0.95rem;
    border-radius: 4px;
    margin-right: 8px;
}

.filter-form button {
    background: #2a9589;
    color: white;
    border: none;
    cursor: pointer;
}

.filter-form button:hover {
    background: #1e7a6e;
}

/* ===== ПАГИНАЦИЯ ===== */
.pagination {
    margin-top: 32px;
    text-align: center;
}

.pagination ul {
    display: inline-flex;
    list-style: none;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
}

.pagination li {
    margin: 0;
}

.pagination a,
.pagination span {
    display: inline-block;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #555;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.2s;
}

.pagination a:hover {
    background: #f5f5f5;
    border-color: #ccc;
}

.pagination .current {
    background: #2a9589;
    color: white;
    border-color: #2a9589;
}

.pagination .page-numbers {
    background: #f5f5f5;
    color: #555;
}

.pagination .page-numbers.current {
    background: #2a9589;
    color: white;
}
.notice {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
}
.notice.success {
    background: #e8f5e9;
    border: 1px solid #a5d6a7;
    color: #1b5e20;
}
.notice.error {
    background: #ffebee;
    border: 1px solid #ef9a9a;
    color: #c62828;
}


/* === Каталог Instagram групп === */
.instagram-catalog h1 {
    margin-top: 0;
}
#instagram-filters {
    margin: 30px auto;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;   /* ⬅ центрируем кнопки */
    align-items: center;
    max-width: 1200px;
}

#instagram-filters .filter-btn {
    background: #fff;
    border: 1px solid var(--color-main);
    color: var(--color-main);
    padding: 7px 14px;
    cursor: pointer;
    border-radius: 999px;
    font-size: 14px;
    line-height: 1;
    transition: all .2s ease;
}

#instagram-filters .filter-btn:hover {
    background: var(--color-main);
    color: #fff;
}

#instagram-filters .filter-btn.active {
    background: var(--color-main);
    color: #fff;
    box-shadow: 0 4px 10px rgba(24,149,137,.25);
}

#instagram-groups-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 320px));
    gap: 20px;
    justify-content: center;   /* ⬅ центр всей сетки */
    margin: 30px auto;
    max-width: 1200px;
}
.instagram-catalog > p {
    opacity: 0.85;
    font-size: 16px;
	text-align: center;
    max-width: 800px;
    margin: 0 auto 20px;
}

.instagram-group-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 14px;
    background: #fafafa;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    max-width: 320px;
    width: 100%;
    box-sizing: border-box;
}
.instagram-group-handle {
    font-weight: bold;
    font-size: 16px;
    word-break: break-all;
}
.instagram-group-region {
    color: #555;
    font-size: 0.9em;
    margin: 6px 0;
}
.instagram-group-status {
    font-size: 0.85em;
}
.instagram-group-status.status-active {
    color: green;
}
.instagram-group-status.status-inactive {
    color: #aaa;
    text-decoration: line-through;
}
.instagram-open-link {
    display: inline-block;
    margin-top: 8px;
    padding: 5px 10px;
    background: var(--color-main);
    color: white !important;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.9em;
}
.instagram-open-link:hover {
    background: #137c72; /* или darken(var(--color-main)) */
    transform: translateY(-1px);
}
.catalog-cta {
    margin: 60px auto 20px; /* убрал слишком большой bottom */
    text-align: center;
    max-width: 700px;
    padding: 30px 20px;
    border-top: 1px solid #eee;
}


.catalog-cta p {
    font-size: 16px;
    margin-bottom: 20px;      /* расстояние до кнопки */
    opacity: 0.85;
}

.catalog-cta-btn {
    display: inline-flex;              /* важное изменение */
    align-items: center;               /* центр по вертикали */
    justify-content: center;           /* центр по горизонтали */
    padding: 12px 18px;                /* отступы сверху/снизу и слева/справа */
    background: var(--color-main);
    color: #fff !important;
    text-decoration: none;
    border-radius: 999px;
    font-size: 15px;
    line-height: 1;                    /* убираем лишние линейные отступы */
    transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
}


.catalog-cta-btn:hover {
    background: #137c72;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(24,149,137,.3);
}

@media (min-width: 768px) {
    .instagram-group-card {
        flex: 1 1 calc(50% - 16px);
    }
}
@media (min-width: 1024px) {
    .instagram-group-card {
        flex: 1 1 calc(33.333% - 16px);
    }
}

/* ========================================
   МЕМОРНАЛ ЖИВОТНЫХ
   ======================================== */
.memorial-page {
    padding: 60px 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #e8f5e9 100%);
    min-height: 100vh;
    box-sizing: border-box;
}

.memorial-header {
    text-align: center;
    max-width: 1024px;
    margin: 0 auto 60px;
    padding: 40px 20px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.memorial-header h1 {
    font-size: 2.8rem;
    color: #5D5044;
    margin-bottom: 20px;
    font-family: var(--font-accent);
    position: relative;
    display: inline-block;
}

.memorial-header h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--color-main);
    border-radius: 3px;
}

.memorial-epitaph {
    font-size: 1.3rem;
    line-height: 1.8;
    color: #555;
    font-style: italic;
    margin: 20px 0;
    padding: 20px;
    background: linear-gradient(135deg, #fff9e6 0%, #ffffff 100%);
    border-radius: 12px;
    border-left: 4px solid var(--color-main);
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.05);
}

.memorial-epitaph p {
    margin: 0;
    font-family: var(--font-accent);
}

.memorial-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    max-width: 1100px;
    width: 100%;
    margin: 0 auto 40px;
    padding: 0 20px;
    box-sizing: border-box;
}

.memorial-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.15),
        0 4px 15px rgba(0, 0, 0, 0.1);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.memorial-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 
        0 16px 40px rgba(0, 0, 0, 0.25),
        0 8px 25px rgba(0, 0, 0, 0.15);
}

.memorial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(245,247,250,0.9) 100%);
    z-index: 1;
    pointer-events: none;
}

.memorial-card-image-wrapper {
    height: 280px;
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, #e0f7fa 0%, #bbdefb 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.memorial-card-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    opacity: 0.95;
}

.memorial-card:hover .memorial-card-image-wrapper img {
    transform: scale(1.08);
    opacity: 1;
}

.memorial-card-content {
    padding: 28px;
    flex: 1;
    display: flex;
    flex-direction: column;
    z-index: 2;
    position: relative;
}

.memorial-card-name {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 12px;
    font-family: var(--font-accent);
    line-height: 1.2;
}

.memorial-card-age {
    display: inline-block;
    padding: 4px 12px;
    background: linear-gradient(135deg, #4caf50 0%, #2e7d32 100%);
    color: white;
    border-radius: 20px;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
}

.memorial-card-epitaph {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #555;
    margin-bottom: 20px;
    flex: 1;
    font-style: italic;
    font-family: var(--font-accent);
}

.memorial-card-date {
    font-size: 0.9rem;
    color: #999;
    text-align: right;
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid #f0f0f0;
}

.memorial-footer {
    text-align: center;
    max-width: 1024px;
    margin: 60px auto 0;
    padding: 50px 40px;
    background: linear-gradient(135deg, #fffaf0 0%, #f5f5f5 100%);
    border-radius: 20px;
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.12),
        inset 0 2px 10px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.08);
    position: relative;
}

.memorial-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--color-main), transparent);
    border-radius: 2px;
}

.memorial-footer::after {
    content: '🕊️';
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2rem;
    background: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.memorial-footer p {
    font-size: 1.5rem;
    line-height: 1.7;
    color: #4a4a4a;
    margin: 0;
    font-style: italic;
    font-family: var(--font-accent);
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 500;
}

.memorial-footer > p + p {
    margin-top: 25px;
    font-size: 1.1rem;
    color: #666;
    font-style: normal;
    line-height: 1.8;
    font-weight: 400;
}

.memorial-footer > p + p a {
    color: var(--color-main);
    text-decoration: none;
    font-weight: 600;
    position: relative;
    padding-bottom: 2px;
}

.memorial-footer > p + p a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--color-main);
    opacity: 0.3;
    transition: opacity 0.3s;
}

.memorial-footer > p + p a:hover::after {
    opacity: 1;
}

.memorial-empty {
    text-align: center;
    padding: 60px 20px;
    color: #999;
    font-size: 1.2rem;
    grid-column: 1 / -1;
}

.memorial-empty i {
    font-size: 3rem;
    margin-bottom: 20px;
    opacity: 0.3;
}
/*		АДМИНКА МЕМОРИАЛА   */
.memorial-admin-page {
    padding: 30px;
    background: linear-gradient(135deg, #f5f7fa 0%, #e8f5e9 100%);
    min-height: 100vh;
}

.memorial-admin-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--color-main);
}

.memorial-admin-header h1 {
    margin: 0 0 10px;
    color: #5D5044;
    font-size: 2rem;
    font-family: var(--font-accent);
}

.memorial-admin-header p {
    margin: 0;
    color: #555;
    font-size: 1.1rem;
}

.memorial-admin-grid {
    display: grid;
    gap: 20px;
}

.memorial-admin-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border-left: 4px solid var(--color-main);
    transition: transform 0.2s;
}

.memorial-admin-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.memorial-admin-card-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 12px;
}

.memorial-admin-card-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #2c3e50;
}

.memorial-admin-card-meta {
    display: flex;
    gap: 16px;
    font-size: 0.9rem;
    color: #777;
}

.memorial-admin-card-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.memorial-admin-card-field {
    margin-bottom: 12px;
}

.memorial-admin-card-field strong {
    color: var(--color-main);
    display: block;
    margin-bottom: 4px;
    font-size: 0.95rem;
}

.memorial-admin-card-field p {
    margin: 0;
    line-height: 1.5;
}

.memorial-admin-card-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.memorial-admin-card-actions {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #eee;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.memorial-admin-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
    font-size: 0.95rem;
}

.memorial-admin-btn-edit {
    background: #2196f3;
    color: white;
}

.memorial-admin-btn-edit:hover {
    background: #1976d2;
}

.memorial-admin-btn-delete {
    background: #f44336;
    color: white;
}

.memorial-admin-btn-delete:hover {
    background: #c62828;
}

.memorial-admin-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.memorial-admin-modal.active {
    display: flex;
}

.memorial-admin-modal-content {
    background: white;
    border-radius: 12px;
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 30px;
    position: relative;
}

.memorial-admin-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #777;
}

.memorial-admin-form-group {
    margin-bottom: 20px;
}

.memorial-admin-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
}

.memorial-admin-form-group input[type="text"],
.memorial-admin-form-group input[type="number"],
.memorial-admin-form-group input[type="date"],
.memorial-admin-form-group input[type="url"],
.memorial-admin-form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s;
}

.memorial-admin-form-group input:focus,
.memorial-admin-form-group textarea:focus {
    outline: none;
    border-color: var(--color-main);
    box-shadow: 0 0 0 3px rgba(24, 149, 137, 0.15);
}

.memorial-admin-form-group textarea {
    min-height: 100px;
    resize: vertical;
}

.memorial-admin-form-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    justify-content: flex-end;
}

.memorial-admin-form-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
}

.memorial-admin-form-btn-save {
    background: var(--color-main);
    color: white;
}

.memorial-admin-form-btn-cancel {
    background: #f5f5f5;
    color: #555;
}

.memorial-admin-empty {
    text-align: center;
    padding: 40px 20px;
    color: #999;
}

.memorial-admin-success,
.memorial-admin-error {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 600;
}

.memorial-admin-success {
    background: #e8f5e9;
    border: 2px solid #4caf50;
    color: #1b5e20;
}

.memorial-admin-error {
    background: #ffebee;
    border: 2px solid #f44336;
    color: #c62828;
}

@media (max-width: 768px) {
    .memorial-admin-page {
        padding: 20px;
    }
    
    .memorial-admin-card {
        padding: 15px;
    }
    
    .memorial-admin-card-title {
        font-size: 1.1rem;
    }
    
    .memorial-admin-card-actions {
        flex-direction: column;
    }
    
    .memorial-admin-btn {
        width: 100%;
    }
}


/* Адаптивность */
@media (max-width: 1000px) {
    .memorial-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .memorial-page {
        padding: 40px 0;
    }
    
    .memorial-header h1 {
        font-size: 2.2rem;
    }
    
    .memorial-epitaph {
        font-size: 1.1rem;
        padding: 15px;
    }
    
    .memorial-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .memorial-card-image-wrapper {
        height: 240px;
    }
    
    .memorial-card-name {
        font-size: 1.5rem;
    }
    
    .memorial-footer {
        padding: 35px 25px;
        margin-top: 40px;
    }
    
    .memorial-footer::after {
        font-size: 1.5rem;
        width: 40px;
        height: 40px;
    }
    
    .memorial-footer p {
        font-size: 1.3rem;
    }
    
    .memorial-footer > p + p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .memorial-card-image-wrapper {
        height: 200px;
    }
    
    .memorial-card-name {
        font-size: 1.4rem;
    }
    
    .memorial-card-epitaph {
        font-size: 1rem;
    }
}
/* ========================================
   ФОРМА ДОБАВЛЕНИЯ В МЕМОРНАЛ
   ======================================== */
.memorial-add-page {
    padding: 60px 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #e8f5e9 100%);
}

.memorial-add-container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.memorial-add-header {
    text-align: center;
    margin-bottom: 40px;
}

.memorial-add-header h1 {
    font-size: 2.2rem;
    color: #5D5044;
    margin-bottom: 12px;
    font-family: var(--font-accent);
}

.memorial-add-header p {
    color: #777;
    font-size: 1.1rem;
}

.memorial-form-group {
    margin-bottom: 24px;
}

.memorial-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
    font-size: 1rem;
}

.memorial-form-group input[type="text"],
.memorial-form-group input[type="number"],
.memorial-form-group input[type="date"],
.memorial-form-group input[type="url"],
.memorial-form-group textarea {
    width: 100%;
    padding: 14px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
    font-family: var(--font-sans);
}

.memorial-form-group input:focus,
.memorial-form-group textarea:focus {
    outline: none;
    border-color: var(--color-main);
    box-shadow: 0 0 0 3px rgba(24, 149, 137, 0.15);
}

.memorial-form-group textarea {
    min-height: 100px;
    resize: vertical;
}

.memorial-form-group .description {
    font-size: 0.9rem;
    color: #777;
    margin-top: 6px;
    display: block;
}

.memorial-form-actions {
    display: flex;
    gap: 16px;
    margin-top: 32px;
    justify-content: center;
    flex-wrap: wrap;
}

.memorial-form-btn {
    padding: 14px 32px;
    background: linear-gradient(135deg, var(--color-main) 0%, #137c72 100%);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    box-shadow: 0 4px 15px rgba(24, 149, 137, 0.3);
}

.memorial-form-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(24, 149, 137, 0.4);
}

.memorial-form-btn:active {
    transform: translateY(0);
}

.memorial-form-btn-secondary {
    background: #f5f5f5;
    color: #555;
}

.memorial-form-btn-secondary:hover {
    background: #e0e0e0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.memorial-success {
    background: #e8f5e9;
    border: 2px solid #4caf50;
    color: #1b5e20;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 24px;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 600;
}

.memorial-error {
    background: #ffebee;
    border: 2px solid #f44336;
    color: #c62828;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 24px;
}

.memorial-error ul {
    margin: 12px 0 0;
    padding-left: 20px;
}

.memorial-error li {
    margin-bottom: 8px;
}

.memorial-preview {
    margin-top: 24px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 12px;
    border: 1px dashed #ddd;
}

.memorial-preview h4 {
    margin-top: 0;
    margin-bottom: 16px;
    color: var(--color-main);
    font-size: 1.1rem;
}

.memorial-preview-image {
    max-width: 300px;
    margin: 0 auto;
    display: block;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
/* Адаптивность мемориала */
@media (max-width: 1000px) {
    .memorial-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .memorial-page {
        padding: 40px 0;
    }
    
    .memorial-header h1 {
        font-size: 2.2rem;
    }
    
    .memorial-epitaph {
        font-size: 1.1rem;
        padding: 15px;
    }
    
    .memorial-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .memorial-card-image-wrapper {
        height: 240px;
    }
    
    .memorial-card-name {
        font-size: 1.5rem;
    }
    
    .memorial-footer p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .memorial-card-image-wrapper {
        height: 200px;
    }
    
    .memorial-card-name {
        font-size: 1.4rem;
    }
    
    .memorial-card-epitaph {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .memorial-add-container {
        padding: 30px 20px;
    }
    
    .memorial-add-header h1 {
        font-size: 1.8rem;
    }
    
    .memorial-form-actions {
        flex-direction: column;
    }
    
    .memorial-form-btn {
        width: 100%;
    }
}



/* ========================================
   ОБРАТНАЯ СВЯЗЬ
   ======================================== */
.contact-page {
    padding: 60px 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #e8f5e9 100%);
}

.contact-container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.contact-header {
    text-align: center;
    margin-bottom: 40px;
}

.contact-header h1 {
    font-size: 2.2rem;
    color: #5D5044;
    margin-bottom: 12px;
    font-family: var(--font-accent);
}

.contact-header p {
    color: #777;
    font-size: 1.1rem;
}

.contact-form-group {
    margin-bottom: 24px;
}

.contact-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
    font-size: 1rem;
}

.contact-form-group input[type="text"],
.contact-form-group input[type="email"],
.contact-form-group input[type="tel"],
.contact-form-group input[type="number"],
.contact-form-group select,
.contact-form-group textarea {
    width: 100%;
    padding: 14px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
    font-family: var(--font-sans);
}

.contact-form-group input:focus,
.contact-form-group textarea:focus,
.contact-form-group select:focus {
    outline: none;
    border-color: var(--color-main);
    box-shadow: 0 0 0 3px rgba(24, 149, 137, 0.15);
}

.contact-form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.contact-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 8px;
}

.contact-checkbox input[type="checkbox"] {
    width: auto;
    margin: 0;
    margin-top: 4px;
}

.contact-captcha {
    background: #f9f9f9;
    padding: 16px;
    border-radius: 10px;
    border: 2px solid #e0e0e0;
}

.contact-captcha input[type="number"] {
    width: 120px;
    margin-top: 8px;
}

.contact-form-actions {
    display: flex;
    gap: 16px;
    margin-top: 32px;
    justify-content: center;
    flex-wrap: wrap;
}

.contact-form-btn {
    padding: 14px 32px;
    background: linear-gradient(135deg, var(--color-main) 0%, #137c72 100%);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    box-shadow: 0 4px 15px rgba(24, 149, 137, 0.3);
}

.contact-form-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(24, 149, 137, 0.4);
}

.contact-form-btn-secondary {
    background: #f5f5f5;
    color: #555;
    padding: 14px 32px;
    border: 2px solid #ddd;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    text-align: center;
}

.contact-form-btn-secondary:hover {
    background: #e0e0e0;
    border-color: #ccc;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.contact-success {
    background: #e8f5e9;
    border: 2px solid #4caf50;
    color: #1b5e20;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 24px;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.1);
}

.contact-success small {
    display: block;
    margin-top: 8px;
    font-size: 0.9rem;
    font-weight: normal;
    opacity: 0.8;
}

.contact-error {
    background: #ffebee;
    border: 2px solid #f44336;
    color: #c62828;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(244, 67, 54, 0.1);
}

.contact-error p {
    margin: 0;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .contact-container {
        padding: 30px 20px;
    }
    
    .contact-header h1 {
        font-size: 1.8rem;
    }
    
    .contact-form-actions {
        flex-direction: column;
    }
    
    .contact-form-btn,
    .contact-form-btn-secondary {
        width: 100%;
    }
}

/* ========================================
   ЖЕСТОКОЕ ОБРАЩЕНИЕ
   ======================================== */
.cruelty-report-page {
    padding: 60px 0;
    background: linear-gradient(135deg, #ffebee 0%, #ffcdd2 100%);
}

.cruelty-report-container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.cruelty-report-header {
    text-align: center;
    margin-bottom: 40px;
}

.cruelty-report-header h1 {
    font-size: 2.2rem;
    color: #f44336;
    margin-bottom: 12px;
    font-family: var(--font-accent);
}

.cruelty-report-header p {
    color: #777;
    font-size: 1.1rem;
}

.cruelty-report-form-group {
    margin-bottom: 24px;
}

.cruelty-report-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
    font-size: 1rem;
}

.cruelty-report-form-group input[type="text"],
.cruelty-report-form-group input[type="tel"],
.cruelty-report-form-group input[type="url"],
.cruelty-report-form-group input[type="date"],
.cruelty-report-form-group input[type="time"],
.cruelty-report-form-group input[type="number"],
.cruelty-report-form-group select,
.cruelty-report-form-group textarea {
    width: 100%;
    padding: 14px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
    font-family: var(--font-sans);
}

.cruelty-report-form-group input:focus,
.cruelty-report-form-group textarea:focus,
.cruelty-report-form-group select:focus {
    outline: none;
    border-color: #f44336;
    box-shadow: 0 0 0 3px rgba(244, 67, 54, 0.15);
}

.cruelty-report-form-group textarea {
    min-height: 140px;
    resize: vertical;
}

.cruelty-report-hint {
    font-size: 0.9rem;
    color: #666;
    margin-top: 8px;
    padding: 12px 16px;
    background: #fff8f8;
    border-radius: 8px;
    border-left: 3px solid #f44336;
    line-height: 1.6;
}

.cruelty-report-hint a {
    color: #f44336;
    text-decoration: underline;
    font-weight: 600;
}

.cruelty-report-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.cruelty-report-radio-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 12px;
}

.cruelty-report-radio {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 16px;
    background: #f9f9f9;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    border: 2px solid #e0e0e0;
}

.cruelty-report-radio:hover {
    background: #f5f5f5;
    border-color: #f44336;
}

.cruelty-report-radio input[type="radio"] {
    width: auto;
    margin: 4px 0 0 0;
    cursor: pointer;
}

.cruelty-report-radio span {
    font-size: 0.95rem;
    line-height: 1.4;
}

.cruelty-report-radio input[type="radio"]:checked + span {
    color: #f44336;
    font-weight: 600;
}

.cruelty-report-radio input[type="radio"]:checked ~ span {
    color: #f44336;
    font-weight: 600;
}

.cruelty-report-captcha {
    background: #fff8f8;
    padding: 16px;
    border-radius: 10px;
    border: 2px solid #ffcdd2;
}

.cruelty-report-captcha input[type="number"] {
    width: 120px;
    margin-top: 8px;
}

.cruelty-report-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 8px;
}

.cruelty-report-checkbox input[type="checkbox"] {
    width: auto;
    margin: 0;
    margin-top: 4px;
}

.cruelty-report-preview {
    margin-top: 24px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 12px;
    border: 1px dashed #ddd;
}

.cruelty-report-preview h4 {
    margin-top: 0;
    margin-bottom: 16px;
    color: #f44336;
    font-size: 1.1rem;
    font-family: var(--font-accent);
}

.cruelty-report-preview-image {
    max-width: 300px;
    margin: 0 auto;
    display: block;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: opacity 0.3s ease;
}

.cruelty-report-preview-image.loading {
    opacity: 0.5;
}

.cruelty-report-form-actions {
    display: flex;
    gap: 16px;
    margin-top: 32px;
    justify-content: center;
    flex-wrap: wrap;
}

.cruelty-report-form-btn {
    padding: 14px 32px;
    background: linear-gradient(135deg, #f44336 0%, #c62828 100%);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    box-shadow: 0 4px 15px rgba(244, 67, 54, 0.3);
}

.cruelty-report-form-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(244, 67, 54, 0.4);
}

.cruelty-report-form-btn-secondary {
    background: #f5f5f5;
    color: #555;
    padding: 14px 32px;
    border: 2px solid #ddd;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    text-align: center;
}

.cruelty-report-form-btn-secondary:hover {
    background: #e0e0e0;
    border-color: #ccc;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.cruelty-report-success {
    background: #e8f5e9;
    border: 2px solid #4caf50;
    color: #1b5e20;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 24px;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.1);
}

.cruelty-report-success small {
    display: block;
    margin-top: 8px;
    font-size: 0.9rem;
    font-weight: normal;
    opacity: 0.8;
}

.cruelty-report-error {
    background: #ffebee;
    border: 2px solid #f44336;
    color: #c62828;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(244, 67, 54, 0.1);
}

.cruelty-report-error p {
    margin: 0;
    line-height: 1.6;
}
.cruelty-evidence-item {
    margin-bottom: 12px;
    padding: 12px;
    background: #f9f9f9;
    border-radius: 8px;
    border-left: 3px solid #189589;
}

.cruelty-evidence-image img {
    max-width: 100%;
    height: auto;
    max-height: 300px;
    display: block;
    transition: transform 0.2s;
}

.cruelty-evidence-image img:hover {
    transform: scale(1.05);
}

.cruelty-evidence-video video {
    max-width: 100%;
    border-radius: 6px;
}

.cruelty-evidence-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-top: 8px;
}

.cruelty-evidence-actions a {
    font-size: 0.9rem;
}

.cruelty-evidence-actions span {
    color: #999;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .cruelty-report-container {
        padding: 30px 20px;
    }
    
    .cruelty-report-header h1 {
        font-size: 1.8rem;
    }
    
    .cruelty-report-form-row {
        grid-template-columns: 1fr;
    }
    
    .cruelty-report-form-actions {
        flex-direction: column;
    }
    
    .cruelty-report-form-btn,
    .cruelty-report-form-btn-secondary {
        width: 100%;
    }
}
/* Галерея фото в карточке */
.animal-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
  margin: 20px 0;
}
.animal-gallery img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.2s;
}
.animal-gallery img:hover {
  transform: scale(1.05);
}

/* Превью в форме */
.photos-preview img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
/*  TELEPHON	*/
a[href^="tel:"] {
    color: red;
}
a[href^="tel:"]:hover {
    color: darkred;
}
a[href^="tel:"]::before {
    content: "📞 ";
}

/* ========================================
   404 PAGE — CLEAN & MOBILE-FIRST
======================================== */

/* БАЗА */
.error-404 {
    position: relative;
    min-height: 100svh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* SAFARI FIX */
@supports (-webkit-touch-callout: none) {
    .error-404 {
        min-height: -webkit-fill-available;
    }
}

/* ВИДЕО */
.error-video-bg,
.error-video-bg video,
.error-video-overlay {
    position: absolute;
    inset: 0;
}

.error-video-bg {
    z-index: 1;
}

.error-video-bg video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.error-video-overlay {
    background: rgba(0,0,0,.65);
    z-index: 2;
}

/* КОНТЕНТ */
.error-content {
    position: relative;
    z-index: 3;
    width: 100%;
    padding: 40px 16px;
}

.error-container {
    max-width: 960px;
    margin: 0 auto;
    text-align: center;
    color: #fff;
}

/* 404 */
.error-number {
    font-size: clamp(4.5rem, 12vw, 9rem);
    font-weight: 800;
    color: #ffe4a3;
    text-shadow:
        0 0 10px rgba(255,228,163,.5),
        0 0 30px rgba(255,200,120,.35),
        0 6px 24px rgba(0,0,0,.7);
    line-height: 1;
    margin-bottom: 16px;
    animation: float404 3s ease-in-out infinite;
}

@keyframes float404 {
    0%,100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* ТЕКСТ */
.error-title {
    font-size: clamp(1.4rem, 4vw, 2.4rem);
    margin-bottom: 10px;
	color: var(--brand-accent, #f5b942);
    text-shadow: 0 6px 22px rgba(0,0,0,.65);
}

.error-text {
    font-size: 1rem;
    opacity: .9;
    margin-bottom: 28px;
}

/* ПОИСК */
.error-search-form {
    margin-bottom: 32px;
}

.error-search-wrapper {
    display: flex;
    gap: 8px;
    align-items: center;
    width: 100%;
    max-width: 640px;
    margin: 0 auto;
    padding: 8px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0,0,0,.35);
    box-sizing: border-box;
}

.error-search-wrapper i {
    display: none;
}

.error-search-input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 12px 14px;
    font-size: 1rem;
    color: #222;
    border-radius: 10px;
    -webkit-appearance: none;
}

.error-search-input:focus {
    outline: none;
}

.error-search-submit {
    min-width: 96px;
    padding: 12px 16px;
    border: none;
    border-radius: 10px;
    background: #189589;
    color: #fff;
    font-size: .95rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    -webkit-appearance: none;
}

.error-search-submit::before {
    content: "Найти";
}

.error-search-submit i {
    display: none;
}

/* РАЗДЕЛИТЕЛЬ */
.error-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 24px 0;
}

.error-divider::before,
.error-divider::after {
    content: "";
    width: 60px;
    height: 1px;
    background: rgba(255,255,255,.3);
}

.error-divider span {
    font-size: .8rem;
    letter-spacing: 2px;
    opacity: .7;
}

/* КНОПКИ */
.error-help-text {
    margin-bottom: 20px;
    font-size: 1rem;
    opacity: .85;
}

.error-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 22px;
}

.error-btn {
    width: 100%;
    padding: 13px 20px;
    background: rgba(255,255,255,.95);
    color: #222;
    border-radius: 999px;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-sizing: border-box;
}

/* НА ГЛАВНУЮ */
.error-home-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 22px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.4);
    color: #fff;
    text-decoration: none;
    font-size: .9rem;
}

/* =========================
   TABLET +
========================= */
@media (min-width: 768px) {

    .error-search-wrapper {
        padding: 10px 14px;
    }

    .error-search-submit {
        min-width: 120px;
    }

    .error-buttons {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
    }

    .error-btn {
        width: auto;
        padding: 14px 32px;
    }
}
/* ========================================
ЖИВОЙ ПОИСК - ПОДСКАЗКИ
======================================== */

.search-suggestions-container {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    margin-top: 10px;
    z-index: 100;
    max-height: 400px;
    overflow-y: auto;
    animation: slideDown 0.2s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.search-suggestions {
    list-style: none;
    margin: 0;
    padding: 0;
}

.search-suggestions li {
    border-bottom: 1px solid #eee;
}

.search-suggestions li:last-child {
    border-bottom: none;
}

.search-suggestions a {
    display: block;
    padding: 16px 20px;
    color: #262424;
    text-decoration: none;
    transition: all 0.3s ease;
}

.search-suggestions a:hover {
    background: #f8f9fa;
    padding-left: 24px;
}

.search-suggestions strong {
    display: block;
    font-size: 1.05rem;
    color: #189589;
    margin-bottom: 4px;
}

.search-suggestion-excerpt {
    display: block;
    font-size: 0.9rem;
    color: #777;
    line-height: 1.5;
}

.search-suggestions-empty {
    padding: 20px;
    text-align: center;
    color: #999;
    font-size: 0.95rem;
}

/* Мобильная версия подсказок */
@media (max-width: 768px) {
    .search-suggestions-container {
        position: fixed;
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        max-height: 50vh;
        border-radius: 20px 20px 0 0;
        margin-top: 0;
        box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.2);
    }
    
    .search-suggestions a {
        padding: 14px 16px;
    }
}

/* ========================================
КАТАЛОГ ВЕТКЛИНИК И АПТЕК
======================================== */

/* ===== СЕТКА КЛИНИК ===== */
.clinics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}



/* ===== НЕТ РЕЗУЛЬТАТОВ ===== */
.no-results {
    text-align: center;
    padding: 80px 20px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.no-results i {
    font-size: 4rem;
    color: var(--color-muted);
    margin-bottom: 24px;
    opacity: 0.3;
}

.no-results h2 {
    font-size: 2rem;
    color: var(--color-main);
    margin-bottom: 16px;
    font-family: var(--font-accent);
}

.no-results p {
    color: var(--color-muted);
    font-size: 1.1rem;
    margin-bottom: 24px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ========================================
АДАПТИВНОСТЬ
======================================== */
@media (max-width: 768px) {
    .clinics-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .pagination a,
    .pagination span {
        padding: 8px 14px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .clinics-grid {
        grid-template-columns: 1fr;
    }
}

/* Основная кнопка скачивания */
.download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    padding: 12px 20px;
    font-size: 16px;
    font-weight: 600;

    background-color: #1abc9c;   /* бирюзовый фон */
    color: #ffffff !important;              /* белый текст и иконка */
    text-decoration: none;
    border-radius: 8px;

    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
}

/* Hover: чуть темнее фон и лёгкая «качка» иконки */
.download-btn:hover {
    background-color: #16a085;
}

.download-btn i {
    font-size: 1.1em;
    display: inline-block;
    vertical-align: middle;
    transition: transform 0.2s ease;
}

.download-btn:hover i {
    transform: translateY(4px); /* анимация иконки */
}

/* Адаптивность для мобильных */
@media (max-width: 600px) {
    .download-btn {
        font-size: 14px;
        padding: 10px 16px;
    }
    .download-btn i {
        font-size: 1em;
    }
}

 /* Иконка Ассистента в админ-баре */
        #wpadminbar #wp-admin-bar-assistant-online .ab-icon {
            background: none !important;
            padding: 0 5px 0 0 !important;
        }
        
        #wpadminbar #wp-admin-bar-assistant-online .ab-icon::before {
            font-family: 'Font Awesome 5 Free' !important;
            font-weight: 900 !important;
            content: '\f007' !important; /* Иконка пользователя */
            font-size: 16px !important;
            color: #189589 !important;
            display: inline-block !important;
            vertical-align: middle !important;
            margin-top: -2px !important;
        }
        
        /* Счётчик онлайн */
        #wpadminbar #wp-admin-bar-assistant-online .assistant-online-count {
            display: inline-block;
            background: #ff4444;
            color: white;
            font-size: 10px;
            font-weight: bold;
            padding: 2px 6px;
            border-radius: 10px;
            margin-left: 6px;
            vertical-align: middle;
            min-width: 18px;
            text-align: center;
            box-shadow: 0 1px 2px rgba(0,0,0,0.2);
        }
        
        /* Hover эффект */
        #wpadminbar #wp-admin-bar-assistant-online:hover .assistant-online-count {
            background: #ff0000;
            transform: scale(1.1);
            transition: all 0.2s ease;
        }
        
        /* Мобильная версия */
        @media screen and (max-width: 782px) {
            #wpadminbar #wp-admin-bar-assistant-online .ab-icon {
                padding: 0 3px 0 0 !important;
            }
            
            #wpadminbar #wp-admin-bar-assistant-online .ab-label {
                display: none !important;
            }
            
            #wpadminbar #wp-admin-bar-assistant-online .assistant-online-count {
                margin-left: 3px;
                font-size: 9px;
                padding: 1px 4px;
            }
        }

/*	РЕЙТИНГ СТАТЕЙ	*/
.vh-rating {
   margin-top: 20px;
   display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 10px;
    text-align: center;
}

.vh-rating-title {
    width: 100%; /* заголовок на отдельной строке */
}

.vh-rating button {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap; /* запрещаем перенос внутри кнопки */
}
.vh-rating.voted button {
    opacity: 0.6;
    cursor: default;
    pointer-events: none;
}

.vh-rating.loading {
    opacity: 0.7;
}

/* ===================================================================
   СТРАНИЦА ИНСТРУКЦИИ ПО ОБРАЩЕНИЯМ (/instructions/)
   =================================================================== */

/* ----- ЗАГОЛОВОК СТРАНИЦЫ (ПО ЦЕНТРУ) ----- */
.instructions-header {
    text-align: center;
    margin-bottom: 40px;
}

.instructions-header .page-title {
    text-align: center;
    color: var(--color-main);
    font-size: 2.2rem;
    margin-bottom: 16px;
    font-family: var(--font-accent);
}

.instructions-header .page-description {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    color: #555;
    font-size: 1.15rem;
    line-height: 1.6;
}
/* ===============================
   HERO DESCRIPTION (WOW)
================================= */

.page-description-pro {
    max-width: 800px;
    margin: 10px auto 40px;
    padding: 24px 28px;
	text-align: center;
    font-size: 1.18rem;
    line-height: 1.65;
    color: #2c3e50;
}

/* ===============================
   MOBILE
================================= */

@media (max-width: 768px) {
    .page-description-pro {
        padding: 18px 16px;
        font-size: 1.05rem;
    }
}
/* ===============================
   QUICK NAV — ДЛЯ ПРОСТОГО HTML
================================= */

.quick-nav {
    background: linear-gradient(135deg, #e8f5e9 0%, #fff 100%);
    border: 2px solid var(--color-main);
    border-radius: 16px;
    padding: 20px;
    margin: 0 auto 40px;
    max-width: 800px;
    width: 100%;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    box-sizing: border-box;
}

.quick-nav-title {
    margin: 0 0 18px;
    color: var(--color-main);
    font-size: 1.3rem;
    font-weight: 600;
    text-align: center;
}

/* ===============================
   GRID
================================= */

.quick-nav-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 12px;
}

/* ===============================
   LINK = CARD
================================= */

.quick-nav-link {
    display: flex;
    align-items: center;
    gap: 10px;

    padding: 12px 14px;
    background: white;
    border: 2px solid var(--color-main);
    border-radius: 10px;

    color: var(--color-main);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;

    transition: all 0.25s ease;
    box-sizing: border-box;

    word-break: break-word;
    overflow-wrap: anywhere;
}



/* ===============================
   HOVER
================================= */

.quick-nav-link:hover {
    background: var(--color-main);
    color: white;

    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 20px rgba(24, 149, 137, 0.25);
}

.quick-nav-link:hover::before {
    transform: scale(1.2);
}

/* ===============================
   ACTIVE
================================= */

.quick-nav-link.active {
    background: var(--color-main);
    color: white;
}

/* ===============================
   MOBILE
================================= */


/* критично */
.quick-nav,
.quick-nav * {
    box-sizing: border-box;
}

/* защита от вылазов */
.instructions-content {
    overflow-x: hidden;
}
@media (max-width: 480px) {
    .quick-nav {
        padding: 16px;
    }

    .quick-nav-list {
        grid-template-columns: 1fr;
    }

    .quick-nav-link {
        font-size: 0.9rem;
        padding: 10px 12px;
    }
}


/* ----- БЛОК 5 ПРАВИЛ ----- */
.instructions-content .rules-block {
    background: linear-gradient(135deg, #e8f5e9 0%, #fff 100%);
    border: 2px solid var(--color-main);
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 40px;
}

.instructions-content .rules-block .section-title {
    color: var(--color-main);
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 1.8rem;
    text-align: center;
}

.instructions-content .rules-list {
    margin: 20px 0;
    padding-left: 30px;
    font-size: 1.1rem;
    line-height: 1.8;
}
.instruction-section {
	margin-top: 50px;
}

/* ----- ТАБЛИЦЫ (ОБЩИЕ СТИЛИ) ----- */
.instructions-content .info-table,
.instructions-content .mistakes-table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.instructions-content .info-table thead,
.instructions-content .mistakes-table thead {
    background: var(--color-main);
    color: white;
}

.instructions-content .info-table th,
.instructions-content .info-table td,
.instructions-content .mistakes-table th,
.instructions-content .mistakes-table td {
    padding: 14px 16px;
    border: 1px solid var(--color-border);
    text-align: left;
    vertical-align: top;
    font-size: 1rem;
    line-height: 1.5;
    box-sizing: border-box;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.instructions-content .info-table th,
.instructions-content .mistakes-table th {
    font-weight: 600;
    font-size: 1.05rem;
    color: white;
}

.instructions-content .info-table .cell-bold,
.instructions-content .mistakes-table .error-cell {
    font-weight: 600;
}

.instructions-content .info-table .alt-row,
.instructions-content .mistakes-table .alt-row {
    background: #f9f9f9;
}

.instructions-content .mistakes-table .highlight-row {
    background: #fff8e1;
    border-left: 4px solid #ffc107;
}

.instructions-content .mistakes-table .error-cell {
    color: #d32f2f;
    font-weight: 600;
}

.instructions-content .mistakes-table a {
    color: var(--color-main);
    text-decoration: none;
    font-weight: 600;
}

.instructions-content .mistakes-table a:hover {
    text-decoration: underline;
}

/* ----- ТАБЛИЦЫ — МОБИЛЬНЫЕ КАРТОЧКИ ----- */
@media (max-width: 768px) {
    .instructions-content .info-table,
    .instructions-content .mistakes-table {
        display: block;
        width: 100%;
    }

    .instructions-content .info-table thead,
    .instructions-content .mistakes-table thead {
        display: none;
    }

    .instructions-content .info-table tbody,
    .instructions-content .mistakes-table tbody {
        display: block;
        width: 100%;
    }

    .instructions-content .info-table tr,
    .instructions-content .mistakes-table tr {
        display: block;
        width: 100%;
        max-width: 100%;
        margin-bottom: 16px;
        padding: 16px;
        border: 1px solid var(--color-border);
        border-radius: 12px;
        background: white;
        box-shadow: 0 4px 12px rgba(0,0,0,0.06);
        box-sizing: border-box;
        overflow: hidden;
    }

    .instructions-content .info-table td,
    .instructions-content .mistakes-table td {
        display: block;
        width: 100%;
        padding: 10px 0;
        border: none;
        border-bottom: 1px solid #f0f0f0;
        font-size: 0.95rem;
        text-align: left;
        box-sizing: border-box;
    }

    .instructions-content .info-table td:last-child,
    .instructions-content .mistakes-table td:last-child {
        border-bottom: none;
    }

    .instructions-content .info-table td::before,
    .instructions-content .mistakes-table td::before {
        content: attr(data-label);
        display: block;
        font-weight: 600;
        color: var(--color-main);
        margin-bottom: 6px;
        font-size: 0.8rem;
        text-transform: uppercase;
        letter-spacing: 0.4px;
    }

    .instructions-content .mistakes-table .highlight-row {
        border-left: none;
        border-top: 4px solid #ffc107;
    }
}

@media (max-width: 480px) {
    .instructions-content .info-table tr,
    .instructions-content .mistakes-table tr {
        padding: 12px;
    }

    .instructions-content .info-table td,
    .instructions-content .mistakes-table td {
        font-size: 0.9rem;
        padding: 8px 0;
    }

    .instructions-content .info-table td::before,
    .instructions-content .mistakes-table td::before {
        font-size: 0.75rem;
    }
}

/* ----- ШАГИ АЛГОРИТМА ----- */
.instructions-content .steps-container {
    margin: 30px 0;
    counter-reset: step;
}

.instructions-content .step-item {
    position: relative;
    padding-left: 80px;
    margin-bottom: 40px;
    counter-increment: step;
}

.instructions-content .step-number {
    position: absolute;
    left: 0;
    top: 0;
    width: 60px;
    height: 60px;
    background: var(--color-main);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 700;
}

.instructions-content .step-item h3 {
    margin-top: 0;
    color: var(--color-main);
    margin-bottom: 16px;
}

.instructions-content .step-item ul,
.instructions-content .step-item ol {
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 16px;
}

.instructions-content .small-warning {
    color: #d32f2f;
    font-weight: bold;
    font-style: italic;
    margin-top: 12px;
    display: block;
}

/* ----- СЦЕНАРИИ В ШАГЕ 2 ----- */
.instructions-content .scenario-card {
    background: #f5f9f8;
    border: 2px solid var(--color-main);
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.instructions-content .scenario-card h4 {
    color: var(--color-main);
    margin-top: 0;
    margin-bottom: 12px;
    font-size: 1.2rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.instructions-content .scenario-card ul {
    margin: 10px 0;
    padding-left: 25px;
    line-height: 1.6;
    max-width: 100%;
    box-sizing: border-box;
}

.instructions-content .scenario-card li {
    margin-bottom: 8px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* ----- ИНФОРМАЦИОННЫЕ БЛОКИ ----- */
.instructions-content .info-block {
    background: linear-gradient(135deg, #e8f5e9 0%, #fff 100%);
    border: 2px solid var(--color-main);
    border-radius: 12px;
    padding: 24px;
    margin: 30px 0;
}

.instructions-content .info-block.info-success {
    background: #e8f5e9;
    border: 2px solid #4caf50;
}

.instructions-content .info-block.info-blue {
    background: linear-gradient(135deg, #e3f2fd 0%, #fff 100%);
    border: 2px solid #2196f3;
}

.instructions-content .info-block.info-yellow {
    background: #fff8e1;
    border-left: 4px solid #ffc107;
}

.instructions-content .info-block .info-block-title {
    margin-bottom: 15px;
}

.instructions-content .info-note {
    margin: 20px 0 0;
    padding: 15px;
    background: white;
    border-radius: 8px;
    font-style: italic;
    color: #555;
}

/* ----- ПРЕДУПРЕЖДЕНИЯ ----- */
.instructions-content .warning {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 20px;
    margin: 25px 0;
    border-radius: 0 8px 8px 0;
}

.instructions-content .warning.warning-danger {
    background: #ffebee;
    border-left: 4px solid #f44336;
}

.instructions-content .warning.warning-danger h4 {
    margin-top: 0;
    color: #c62828;
}

/* ----- ШАБЛОН ЗАПРОСА (MONOSPACE) ----- */
.instructions-content .template-box {
    background: white;
    border: 1px dashed var(--color-main);
    border-radius: 8px;
    padding: 16px;
    font-family: monospace;
    font-size: 0.9rem;
    line-height: 1.6;
    color: #2c3e50;
    overflow-x: auto;
    margin: 15px 0;
}

.instructions-content .template-note {
    font-style: italic;
    color: #555;
    font-size: 0.95rem;
    margin-top: 15px;
}

/* ----- ПРАВОВАЯ БАЗА ----- */
.instructions-content .legal-base {
    background: #f5f5f5;
    padding: 16px;
    border-radius: 8px;
    margin: 20px 0;
    border-left: 4px solid var(--color-main);
}

.instructions-content .legal-base ul {
    margin: 10px 0 0 20px;
    padding: 0;
}

.instructions-content .legal-base li {
    margin-bottom: 6px;
    line-height: 1.5;
}

/* ----- CTA BOX ----- */
.instructions-content .cta-box {
    text-align: center;
    padding: 20px;
    background: #e8f5e9;
    border-radius: 12px;
    margin: 20px 0;
}

.instructions-content .cta-box ul {
    list-style: none;
    padding-left: 0;
    margin: 10px 0;
}

.instructions-content .cta-box li {
    margin-bottom: 6px;
    line-height: 1.5;
}

/* ----- СЦЕНАРИИ В РАЗДЕЛЕ 3 ----- */
.instructions-content .scenario-block {
    background: white;
    border: 2px solid var(--color-main);
    border-radius: 16px;
    padding: 30px;
    margin: 30px 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.instructions-content .scenario-block h3 {
    color: var(--color-main);
    margin-top: 0;
    font-size: 1.6rem;
    margin-bottom: 16px;
}

.instructions-content .scenario-block ol {
    line-height: 1.8;
    padding-left: 25px;
    margin: 20px 0;
}

.instructions-content .scenario-block li {
    margin-bottom: 8px;
}

/* ----- СПИСКИ ССЫЛОК ----- */
.instructions-content .official-links,
.instructions-content .help-links {
    list-style: none;
    padding-left: 0;
    margin: 20px 0;
}

.instructions-content .official-links li,
.instructions-content .help-links li {
    padding-left: 0;
    margin-bottom: 12px;
    line-height: 1.6;
    font-size: 1.05rem;
}

.instructions-content .official-links li::before,
.instructions-content .help-links li::before {
    content: none;
}

.instructions-content .official-links a,
.instructions-content .help-links a {
    color: var(--color-main);
    font-weight: 600;
    text-decoration: none;
}

.instructions-content .official-links a:hover,
.instructions-content .help-links a:hover {
    text-decoration: underline;
}

/* ----- КАРТОЧКИ ТЕЛЕФОНОВ ----- */
.instructions-content .cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin: 30px 0;
}

.instructions-content .card-emergency .card-content {
    border-left: 4px solid #f44336;
    padding-left: 20px;
}

.instructions-content .card-gosinspect .card-content {
    border-left: 4px solid #4caf50;
    padding-left: 20px;
}

.instructions-content .card-police .card-content {
    border-left: 4px solid #2196f3;
    padding-left: 20px;
}

.instructions-content .phone-number {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 10px 0;
    line-height: 1.2;
}

.instructions-content .card-emergency .phone-number {
    color: #f44336;
}

.instructions-content .card-gosinspect .phone-number {
    color: #4caf50;
}

.instructions-content .card-police .phone-number {
    color: #2196f3;
}

.instructions-content .phone-desc {
    margin: 0;
    color: var(--color-muted);
    font-size: 0.95rem;
}

/* ----- КАРТОЧКИ С ИКОНКАМИ ----- */
.instructions-content .card-icon-top {
    text-align: center;
    padding: 24px 20px;
}

.instructions-content .card-icon-top .card-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
    display: block;
}

.instructions-content .card-icon-top h4 {
    text-align: center;
    margin: 0 0 12px;
    color: var(--color-main);
    font-size: 1.1rem;
}

.instructions-content .card-icon-top p {
    text-align: center;
    margin: 0;
    font-size: 1rem;
    color: #555;
}

/* ----- СКАЧИВАНИЕ ----- */
.instructions-content .download-section {
    text-align: center;
    padding: 40px;
    background: linear-gradient(135deg, #e8f5e9 0%, #fff 100%);
    border-radius: 16px;
    margin: 50px 0;
    border: 2px solid var(--color-main);
}

.instructions-content .download-section h3 {
    color: var(--color-main);
    margin-top: 0;
    font-size: 1.8rem;
    margin-bottom: 25px;
}

.instructions-content .download-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 25px;
}

.instructions-content .download-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: var(--color-main);
    color: white;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05rem;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(24, 149, 137, 0.3);
}

.instructions-content .download-btn:hover {
    background: #137c72;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(24, 149, 137, 0.4);
}

.instructions-content .download-btn.download-btn-orange {
    background: #ff9800;
    box-shadow: 0 4px 12px rgba(255, 152, 0, 0.3);
}

.instructions-content .download-btn.download-btn-orange:hover {
    background: #e68a00;
    box-shadow: 0 6px 16px rgba(255, 152, 0, 0.4);
}

/* ----- ФИНАЛЬНЫЙ CTA ----- */
.instructions-content .final-cta {
    text-align: center;
    padding: 40px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    margin: 50px 0;
}

.instructions-content .final-cta h3 {
    color: var(--color-main);
    margin-top: 0;
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.instructions-content .final-cta p {
    font-size: 1.1rem;
    color: #555;
    margin: 20px 0;
}

/* ----- ШОРТКОД И СОЦСЕТИ ----- */
.instructions-content .nastya-shortcode-wrapper {
    margin: 40px 0;
}

.instructions-content .social-share-wrapper {
    margin: 40px 0;
    text-align: center;
}

.instructions-content .social-share-title {
    font-weight: 600;
    margin-bottom: 15px;
    font-size: 16px;
    color: #333;
}

/* ----- КНОПКИ (ЦВЕТ ТЕКСТА) ----- */
.instructions-content .btn,
.instructions-content .btn-small,
.instructions-content .download-btn,
.instructions-content .final-cta .btn {
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.instructions-content .btn-danger {
    background: #f44336;
    color: #ffffff;
    border-color: #f44336;
}

.instructions-content .btn:hover,
.instructions-content .btn-small:hover,
.instructions-content .download-btn:hover,
.instructions-content .final-cta .btn:hover {
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

/* ----- АЛЬТЕРНАТИВНЫЙ СПИСОК ----- */
.instructions-content .alt-list {
    line-height: 1.8;
    padding-left: 20px;
}

/* ----- ЗАГОЛОВКИ РАЗДЕЛОВ ----- */
.instructions-content h2 {
    color: var(--color-main);
    font-size: 1.8rem;
    margin: 50px 0 30px;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--color-main);
}

.instructions-content h3 {
    color: var(--color-main);
    font-size: 1.4rem;
    margin: 30px 0 15px;
}

.instructions-content h4 {
    color: #2c3e50;
    font-size: 1.2rem;
    margin: 25px 0 12px;
}



/* ===================================================================
   АДАПТИВНОСТЬ
   =================================================================== */


@media (max-width: 768px) {
    
    .instructions-header .page-title {
        font-size: 1.8rem;
    }
    
    .instructions-header .page-description {
        font-size: 1.05rem;
    }
    
    .instructions-content .rules-block {
        padding: 24px;
    }
    
    .instructions-content .rules-list {
        font-size: 1rem;
        padding-left: 25px;
    }
    
    .instructions-content .step-item {
        padding-left: 70px;
    }
    
    .instructions-content .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    
    .instructions-content .scenario-block {
        padding: 24px;
        margin: 24px 0;
    }
    
    .instructions-content .download-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .instructions-content .download-btn {
        width: 100%;
        max-width: 400px;
        justify-content: center;
    }
    
    .instructions-content .phone-number {
        font-size: 1.5rem;
    }
    
    .instructions-content h2 {
        font-size: 1.5rem;
    }
    
    .instructions-content h3 {
        font-size: 1.2rem;
    }
    
    .instructions-content .cards-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .instructions-header .page-title {
        font-size: 1.6rem;
    }
    
    .instructions-content .step-item {
        padding-left: 60px;
    }
    
    .instructions-content .step-number {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }
    
    .instructions-content .scenario-block {
        padding: 20px;
        border-radius: 12px;
    }
    
    .instructions-content .download-btn {
        font-size: 0.95rem;
        padding: 12px 20px;
    }
}
.contacts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin-top: 25px;
}

.contact-card {
    background: #fff;
    border-radius: 14px;
    padding: 20px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border-top: 4px solid var(--color-main);
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}

.contact-card h3 {
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.contact-desc {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 15px;
}

.contact-item {
    font-size: 0.9rem;
    margin-bottom: 8px;
}

/* Цвета категорий */
.contact-card.police { border-color: #1976d2; }
.contact-card.gos { border-color: #2e7d32; }
.contact-card.eco { border-color: #388e3c; }
.contact-card.housing { border-color: #f57c00; }
.contact-card.prokuratura { border-color: #6a1b9a; }
.contact-card.help { border-color: #d32f2f; }

/* Мобилка */
@media (max-width: 768px) {
    .contact-card {
        padding: 16px;
    }
}
.practical-steps {
    list-style: none;
    counter-reset: step-counter;
}
.practical-steps li {
    position: relative;
    padding-left: 28px;
}
.practical-steps li::before {
    counter-increment: step-counter;
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 2px;
    width: 20px;
    height: 20px;
    background: #16a34a;
    color: white;
    border-radius: 50%;
    font-size: 0.75em;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
}
.practical-steps code {
    border-left: 3px solid #16a34a;
}
.small-note {
    font-style: normal;
}