/*
Theme Name: Dream Theme
Theme URI: https://center-dream.by
Author: Alex Protasov
Description: Custom clean theme for Dog Shelter "Мечта"
Version: 1.1
Text Domain: dream-theme
*/

/* ==============================
   1. БАЗОВЫЕ СТИЛИ (ORIGINAL)
   ============================== */

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #FAFAFA;
    color: #333;
    /* Чтобы при открытом меню сайт не скроллился */
    overflow-x: hidden; 
}
body.menu-open {
    overflow: hidden;
}

a {
    color: #1971c2;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

/* ==============================
   2. ШАПКА (HEADER)
   ============================== */

.site-header {
    background: #ffffff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 1000; /* Поднял z-index для мобильного меню */
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    z-index: 1001; /* Логотип поверх меню */
}

.logo-img {
    height: 60px;
    width: auto;
}

.site-title-text {
    font-weight: 800;
    font-size: 22px;
    letter-spacing: 0.04em;
    color: #000;
}

.site-subtitle-text {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #777;
}

/* Обертка для меню и кнопки (Desktop) - добавлена для группировки */
.header-actions-wrapper {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Меню */

.main-nav ul {
    margin: 0;
    padding: 0;
    display: flex;
    gap: 20px;
    list-style: none;
    align-items: center;
}

.main-nav a {
    color: #222;
    font-size: 16px;
    font-weight: 600;
    position: relative;
    padding: 5px 0;
}

/* ЭТО НОВОЕ ПРАВИЛО УБИРАЕТ ТЕМНУЮ ПОЛОСУ */
.main-nav a:hover {
    text-decoration: none; 
}

.main-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 2px;
    background: #FFA623;
    transition: width 0.2s ease;
}

.main-nav a:hover::after {
    width: 100%;
}

/* Кнопка доната */
.donate-btn {
    background: #FFA623;
    padding: 9px 18px;
    border-radius: 999px;
    color: #fff;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease;
    white-space: nowrap;
}

.donate-btn:hover {
    background: #ff8a00;
    text-decoration: none;
    transform: translateY(-1px);
}

/* --- СТИЛИ ДЛЯ БУРГЕРА (МОБИЛЬНОЕ МЕНЮ) --- */
.menu-toggle {
    display: none; /* Скрыт на ПК */
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    width: 26px;
    height: 3px;
    background: #333;
    margin: 5px 0;
    transition: 0.3s;
    border-radius: 2px;
}

/* Анимация крестика при открытии */
.menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 6px); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -6px); }


/* ==============================
   3. FOOTER (ORIGINAL + FIXES)
   ============================== */

.site-footer {
    background: #222;
    color: #eee;
    margin-top: 50px;
    padding: 40px 0 20px;
    font-size: 14px;
}

.footer-inner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 40px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-col h3 {
    font-size: 20px;
    margin-bottom: 12px;
    margin-top: 0;
    color: #fff;
}

.footer-col p {
    line-height: 1.6;
    margin-bottom: 14px;
}

.site-footer a {
    color: #FFA623;
    text-decoration: none;
}
.site-footer a:hover {
    text-decoration: underline;
}

/* Кнопка помочь в футере */
.footer-donate-btn {
    display: inline-block;
    background: #FFA623;
    color: #222 !important;
    padding: 10px 22px;
    border-radius: 999px;
    margin-top: 10px;
    font-weight: 700;
    text-decoration: none !important;
}
.footer-donate-btn:hover {
    background: #ff8a00;
}

/* Соцсети в футере */
.footer-social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.footer-social-links .social {
    padding: 8px 12px;
    border-radius: 6px;
    text-align: center;
    font-weight: 600;
    color: #fff !important;
    font-size: 13px;
    text-decoration: none;
}

.social.tg { background: #2AABEE; }
.social.tt { background: #000; }
.social.ig { background: linear-gradient(45deg, #F58529, #DD2A7B, #8134AF); }
.social.vk { background: #4C75A3; }
.social.yt { background: #FF0000; }

.footer-bottom {
    margin-top: 30px;
    padding-top: 15px;
    border-top: 1px solid rgba(255,255,255,0.2);
    opacity: 0.8;
    font-size: 14px;
    text-align: center;
}

/* ==============================
   4. ГЛАВНАЯ (HERO & SECTIONS)
   ============================== */

.hero {
    background: #FFF4D6;
    padding: 70px 0 60px;
}

.hero-inner {
    max-width: 720px;
    text-align: left;
}

.hero-title {
    font-size: 40px;
    font-weight: 800;
    margin: 0 0 12px;
    color: #000;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 19px;
    color: #444;
    margin: 0 0 24px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hero-btn-primary {
    background: #FFA623;
    color: #fff;
    padding: 12px 26px;
    border-radius: 999px;
    font-size: 17px;
    font-weight: 600;
}
.hero-btn-primary:hover { background: #ff8a00; text-decoration: none; }

.hero-btn-secondary {
    background: #fff;
    color: #333;
    padding: 12px 20px;
    border-radius: 999px;
    font-size: 16px;
    border: 1px solid #FFD28A;
}
.hero-btn-secondary:hover { background: #FFF0C2; text-decoration: none; }

/* БЛОК "Как помочь" */
.section { padding: 40px 0; }

.section-title {
    font-size: 32px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 24px;
}
.section-subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 28px;
    font-size: 18px;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 22px;
}

.card {
    background: #fff;
    padding: 20px;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    display: flex;
    flex-direction: column;
}
.card h3 { font-size: 20px; margin: 0 0 10px; }
.card p { margin: 0 0 15px; color: #555; flex-grow: 1; }
.card a { font-weight: 600; color: #FFA623; }

/* ==============================
   5. КАТАЛОГ СОБАК (ARCHIVE)
   ============================== */

.dogs-archive { padding: 40px 0; }
.dogs-archive-header { text-align: center; margin-bottom: 24px; }
.dogs-archive-title { font-size: 34px; font-weight: 800; margin: 0 0 8px; }
.dogs-archive-subtitle { color: #666; margin: 0; }

/* Фильтры */
.dog-filters { margin-bottom: 22px; }
.dog-filters .wpc-filters-main-wrap { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* Скрываем лишнее в Filter Everything */
.dog-filters .wpc-filters-open-button-container,
.dog-filters .wpc-widget-close-container,
.dog-filters .wpc-filters-widget-controls-container { display: none !important; }

.dog-filters .wpc-filters-section { min-width: 180px; }
.dog-filters select.wpc-filters-widget-select {
    width: 100%; padding: 6px 10px; border-radius: 8px; border: 1px solid #ccc; background: #fff;
}
.dog-filters .wpc-filter-layout-search-field .wpc-search-field {
    padding: 6px 10px; border-radius: 8px; border: 1px solid #ccc;
}

/* Сетка собак */
.dog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 22px;
}

.dog-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(0,0,0,0.08);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.dog-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 22px rgba(0,0,0,0.12);
}

.dog-card-link {
    color: inherit;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.dog-thumb img { width: 100%; height: 220px; object-fit: cover; }
.dog-card-body { padding: 14px 16px 16px; }
.dog-name { font-size: 20px; font-weight: 700; margin: 0 0 6px; }
.dog-card-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }

.dog-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    background: #f1f3f5;
    color: #333;
}

/* --- ВАШИ ОРИГИНАЛЬНЫЕ ЦВЕТА БЕЙДЖЕЙ --- */
.dog-dog_status-available { background: #d3f9d8; color: #2b8a3e; }
.dog-dog_status-recovery { background: #fff4e6; color: #d9480f; }
.dog-dog_status-socializing { background: #e7f5ff; color: #1c7ed6; }
.dog-dog_status-adopted { background: #f3f0ff; color: #5f3dc4; }

.dog-gender-male { background: #e7f5ff; color: #1864ab; }
.dog-gender-female { background: #fff0f6; color: #a61e4d; }

.dog-age-puppy       { background: #fff9db; color:#d9480f; }
.dog-age-adolescent  { background: #e3fafc; color:#0b7285; }
.dog-age-young       { background: #edf2ff; color:#364fc7; }
.dog-age-adult       { background: #dee2e6; color:#495057; }
.dog-age-senior      { background: #f8f0fc; color:#862e9c; }

.dog-size-small  { background:#e6fcf5; color:#087f5b; }
.dog-size-medium { background:#e7f5ff; color:#1c7ed6; }
.dog-size-large  { background:#fff3bf; color:#e67700; }

.pagination { margin-top: 26px; text-align: center; }


/* ==============================
   6. ОДИНОЧНАЯ СОБАКА (SINGLE)
   ============================== */

.dog-single { padding: 40px 0; }
.dog-single-header { margin-bottom: 16px; }
.dog-single-title { font-size: 40px; margin: 5px 0 10px; font-weight: 800; }
.dog-single-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 25px; }

/* Основная сетка: Фото слева, Текст справа */
.dog-single-layout {
    display: grid;
    grid-template-columns: 1.1fr 1fr; /* Фото чуть шире */
    gap: 40px;
    align-items: start;
}

/* Фото слева */
.dog-single-photo img { 
    width: 100%; 
    border-radius: 18px; 
    object-fit: cover; 
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

/* Правая колонка с информацией */
.dog-single-info {
    display: flex;
    flex-direction: column;
}

/* Блоки с текстом (История и Описание) */
.dog-block {
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 1px solid #eee; /* Линия разделитель */
}

.dog-block:last-of-type {
    border-bottom: none; /* У последнего блока линию убираем */
    padding-bottom: 10px;
}

.dog-block h2 {
    font-size: 24px;
    margin-top: 0;
    margin-bottom: 12px;
    font-weight: 800;
    color: #222;
}

/* Оформление текста внутри блоков */
.dog-text-content {
    font-size: 17px;
    line-height: 1.65;
    color: #444;
}
.dog-text-content p {
    margin-bottom: 15px;
}
.dog-text-content p:last-child {
    margin-bottom: 0;
}

/* Блок кнопок (Помочь) */
.dog-actions {
    margin-top: 10px;
    margin-bottom: 30px;
}

.dog-single-donate {
    display: inline-block;
    padding: 14px 32px;
    background: #FFA623;
    color: #fff;
    font-weight: 700;
    font-size: 16px;
    border-radius: 999px;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 4px 10px rgba(255, 166, 35, 0.3);
}

.dog-single-donate:hover { 
    background: #ff8a00; 
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(255, 166, 35, 0.4);
}

/* Поделиться */
.dog-share { 
    display: flex; 
    align-items: center; 
    gap: 10px; 
    flex-wrap: wrap; 
}
.dog-share-title { font-weight: 600; margin-right: 5px; color: #777; font-size: 14px; }
.share-btn {
    padding: 8px 16px; 
    border-radius: 8px; 
    color: #fff; 
    font-size: 14px; 
    font-weight: 600; 
    text-decoration: none; 
    display: inline-block; 
    transition: 0.2s;
}
.share-btn.tg { background: #2AABEE; }
.share-btn.vk { background: #4C75A3; }
.share-btn.wa { background: #25D366; }
.share-btn.fb { background: #1877F2; }
.share-btn:hover { transform: translateY(-2px); opacity: 0.95; }


/* ГАЛЕРЕЯ (Снизу) */
.dog-gallery { 
    margin-top: 60px; 
    border-top: 1px solid #eee;
    padding-top: 40px;
}
.dog-gallery h2 { 
    margin-top: 0; 
    margin-bottom: 25px; 
    font-size: 28px;
    font-weight: 800;
}

.dog-gallery-grid {
    display: grid;
    /* Картинки теперь покрупнее (минимум 200px) */
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); 
    gap: 20px;
}

.dog-gallery-item {
    display: block;
    overflow: hidden;
    border-radius: 12px;
}

.dog-gallery-item img { 
    width: 100%; 
    height: 200px; /* Фиксированная высота квадратов */
    object-fit: cover; 
    border-radius: 12px;
    transition: transform 0.4s ease;
}

/* Эффект увеличения при наведении */
.dog-gallery-item:hover img {
    transform: scale(1.05);
}

/* Хлебные крошки */
.breadcrumbs { font-size: 14px; margin-bottom: 15px; color: #777; }
.breadcrumbs a { color: #555; }
.breadcrumbs span { margin: 0 5px; opacity: 0.5; }

/* Похожие собаки (Related) */
.related-dogs { margin-top: 60px; }
.related-dogs h2 { margin-bottom: 25px; font-size: 28px; font-weight: 800; }
.related-dogs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 25px;
}
.related-dog-card {
    background: #fff; 
    border-radius: 16px; 
    padding: 15px; 
    text-align: center; 
    box-shadow: 0 4px 12px rgba(0,0,0,0.06); 
    text-decoration: none; 
    color: #222; 
    transition: 0.2s;
    display: block;
}
.related-dog-card:hover { 
    transform: translateY(-5px); 
    box-shadow: 0 12px 24px rgba(0,0,0,0.1); 
}
.related-dog-thumb { 
    border-radius: 12px; 
    width: 100%; 
    height: 180px; 
    object-fit: cover; 
    margin-bottom: 15px; 
}
.related-dog-name { font-weight: 700; font-size: 18px; margin: 0; }

/* ==============================
   7. СТРАНИЦЫ (ДОНАТ, КОНТАКТЫ)
   ============================== */

/* Donate Page */
.donate-page { max-width: 800px; margin: 0 auto; padding: 40px 0; }
.donate-hero { text-align: center; margin-bottom: 40px; }
.donate-hero h1 { font-size: 40px; font-weight: 800; margin-bottom: 12px; line-height: 1.2; }
.donate-hero p { font-size: 18px; color: #555; }

.donate-block { margin-bottom: 32px; }
.donate-block h2 { font-size: 26px; margin-bottom: 14px; }
.donate-box {
    background: #fff; padding: 20px 24px; border-radius: 14px; box-shadow: 0 4px 12px rgba(0,0,0,0.08); line-height: 1.6; font-size: 16px;
}
.copy-btn {
    margin-top: 12px; padding: 10px 20px; border-radius: 8px; border: none; background: #FFA623; color: #fff; font-weight: 600; cursor: pointer; transition: 0.2s;
}
.copy-btn:hover { background: #ff8a00; }
.donate-promo { margin-top: 40px; text-align: center; }
.donate-promo img { max-width: 100%; height: auto; border-radius: 18px; box-shadow: 0 4px 14px rgba(0,0,0,0.15); }

/* Pages Generic */
.page-wrapper { max-width: 800px; margin: 0 auto; padding: 40px 0; }
.page-title { font-size: 36px; font-weight: 800; margin-bottom: 20px; text-align: center; }
.page-content p { line-height: 1.68; margin-bottom: 18px; font-size: 17px; }
.page-content h2 { margin-top: 32px; margin-bottom: 14px; font-size: 26px; font-weight: 700; }

/* Contacts */
.contacts-page { max-width: 800px; margin: 0 auto; padding: 40px 0; }
.contacts-title { font-size: 36px; font-weight: 800; text-align: center; margin-bottom: 30px; }
.contacts-block h2 { font-size: 26px; margin-bottom: 16px; text-align: center; }
.contacts-box {
    background: #fff; padding: 22px 24px; border-radius: 16px; box-shadow: 0 4px 12px rgba(0,0,0,0.06); line-height: 1.7; font-size: 17px;
}
.contacts-box a { color: #FFA623; font-weight: 600; }
.contacts-socials { margin-top: 14px; display: flex; gap: 10px; flex-wrap: wrap; }

.social-btn {
    padding: 8px 14px; border-radius: 8px; color: #fff; text-decoration: none; font-weight: 600; transition: 0.2s;
}
.social-btn.tg { background: #2AABEE; }
.social-btn.ig { background: #E1306C; }
.social-btn.vk { background: #4C75A3; }
.social-btn.yt { background: #FF0000; }
.social-btn.tt { background: #000; }
.social-btn:hover { opacity: 0.9; transform: translateY(-2px); }
.map-link { font-weight: 600; color: #FFA623; }

/* История и подход */
.section.story, .section.story-extended {
    background: #fafafa; padding: 60px 0; border-top: 1px solid #eee; border-bottom: 1px solid #eee;
}
.section.story .container, .section.story-extended .container { max-width: 900px; }
.section.story p, .section.story-extended p { font-size: 18px; line-height: 1.6; margin-bottom: 18px; }
.section.story a, .section.story-extended a { color: #FFA623; text-decoration: none; }
.section.story a:hover, .section.story-extended a:hover { text-decoration: underline; }
.section + .section.story, .section.story + .section.story-extended { margin-top: -20px; }


/* ==============================
   8. ВАЖНЫЕ ИЗМЕНЕНИЯ (LAYOUTS)
   ============================== */

/* Layout Архива Собак (Две колонки) */
.dogs-archive-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 30px;
    align-items: start;
}
.dogs-filters-column {
    position: sticky;
    top: 90px;
    height: max-content;
}
.dogs-list-column { width: 100%; }

/* Чтобы фильтры были вертикально (восстановил ваше правило) */
.dog-filters .wpc-filters-main-wrap { display: block !important; }
.dog-filters .wpc-filters-section { margin-bottom: 16px; }
.dog-filters select, .dog-filters input[type=text] {
    width: 100% !important; padding: 7px 10px; border-radius: 8px; border: 1px solid #ccc;
}


/* =========================================
   📱 9. МОБИЛЬНАЯ АДАПТАЦИЯ (MOBILE)
   ========================================= */

@media (max-width: 900px) {
    /* Меняем Grid на Flex, чтобы использовать order */
    .dogs-archive-layout {
        display: flex;
        flex-direction: column;
    }

    /* 1. Список собак ставим ПЕРВЫМ */
    .dogs-list-column {
        width: 100%;
        order: 1;
    }

    /* 2. Фильтры ставим ВТОРЫМИ (вниз) */
    .dogs-filters-column {
        width: 100%;
        order: 2;
        position: static;
        margin-bottom: 20px;
        margin-top: 40px; /* Отступ сверху, чтобы отделить от последней собаки */
        padding-top: 20px;
        border-top: 1px solid #eee; /* Легкая линия-разделитель */
    }
    
    /* Собака одиночная: одна колонка */
    .dog-single-layout { grid-template-columns: 1fr; }
    .dog-single-title { font-size: 30px; }
}

@media (max-width: 768px) {
    
    /* --- HEADER (BURGER MENU) --- */
    .menu-toggle { display: block; }

    .header-actions-wrapper {
        position: fixed;
        top: 0;
        right: -100%; /* Спрятано справа */
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background: #fff;
        flex-direction: column;
        align-items: flex-start;
        padding: 80px 20px 20px;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        transition: right 0.3s ease;
        z-index: 1000;
        overflow-y: auto;
    }

    .header-actions-wrapper.active {
        right: 0; /* Выезжает */
    }

    .main-nav ul {
        flex-direction: column;
        width: 100%;
        gap: 0;
        align-items: flex-start;
    }

    .main-nav a {
        display: block;
        padding: 12px 0;
        font-size: 18px;
        border-bottom: 1px solid #eee;
        width: 100%;
    }
    .main-nav a::after { display: none; } /* Убираем подчеркивание при наведении на мобайле */

    .donate-btn {
        margin-top: 20px;
        width: 100%;
        text-align: center;
        padding: 14px;
    }

    /* Логотип поменьше */
    .logo-img { height: 45px; }
    .site-title-text { font-size: 18px; }
    
    /* --- HERO --- */
    .hero { padding: 40px 0; }
    .hero-title { font-size: 28px; text-align: center; }
    .hero-subtitle { font-size: 16px; text-align: center; }
    .hero-inner { max-width: 100%; }
    .hero-actions { justify-content: center; flex-direction: column; }
    .hero-btn-primary, .hero-btn-secondary { width: 100%; text-align: center; }

    /* --- СЕТКИ В 1 КОЛОНКУ --- */
    .cards-grid,
    .dog-grid,
    .related-dogs-grid {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }
	
	/* ИСПРАВЛЕНИЕ КАРТИНОК НА МОБИЛЬНОМ */
    .dog-thumb img {
        height: auto !important;   /* Отменяем фиксированную высоту 220px */
        aspect-ratio: 4/3;         /* Задаем красивые пропорции (ширина 4, высота 3) */
        object-position: top center; /* Всегда показывать верх картинки (голову), а не пузо */
    }

    /* --- СТРАНИЦЫ --- */
    .section-title, .page-title, .contacts-title { font-size: 26px; }
    .donate-hero h1 { font-size: 28px; }
    .donate-box, .contacts-box { padding: 15px; }

    /* --- FOOTER --- */
    .footer-inner { grid-template-columns: 1fr; text-align: center; }
    .footer-social-links { justify-content: center; }
    .footer-col { margin-bottom: 20px; border-bottom: 1px solid #333; padding-bottom: 20px; }
    .footer-col:last-child { border-bottom: none; margin-bottom: 0; }
    .footer-bottom .footer-inner { padding: 0; }
}

@media (max-width: 480px) {
    .dog-gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

/* =========================================
   Magnific Popup CSS (Анимация)
   ========================================= */

/* Затемнение фона */
.mfp-fade.mfp-bg {
    opacity: 0;
    transition: all 0.3s ease-out;
}
.mfp-fade.mfp-bg.mfp-ready {
    opacity: 0.8;
}
.mfp-fade.mfp-bg.mfp-removing {
    opacity: 0;
}

/* Контент (Картинка) */
.mfp-fade.mfp-wrap .mfp-content {
    opacity: 0;
    transition: all 0.3s ease-out;
}
.mfp-fade.mfp-wrap.mfp-ready .mfp-content {
    opacity: 1;
}
.mfp-fade.mfp-wrap.mfp-removing .mfp-content {
    opacity: 0;
}

/* Фикс курсора для ссылок */
.image-popup {
    cursor: zoom-in;
}

/* Фокусировка на верхней части фото (где обычно голова) */
.dog-thumb img, 
.dog-card img,
.dog-grid img {
    object-position: top center !important; 
}

/* Стили для нижней панели футера */
.footer-bottom .bottom-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap; /* Позволяет блокам переноситься на мобильных */
    gap: 20px;
    padding: 15px 0;
}

/* Ограничиваем высоту логотипов, чтобы они не были огромными */
.payment-logos-img {
    max-height: 35px; /* Подберите высоту по вкусу (30px - 40px обычно смотрятся лучше всего) */
    width: auto;
    display: block;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .footer-bottom .bottom-wrapper {
        flex-direction: column;
        text-align: center;
        justify-content: center;
    }
    
    .payment-logos-img {
        margin: 0 auto;
    }
}