/*
Theme Name: Приют "Человек собаке друг"
Theme URI: https://xn--80abcgecbc6bcf0bd7ai3b3c.xn--p1ai/
Author: Ваше имя
Author URI: https://ваш-сайт.ru
Description: Современная тема для приюта животных
Version: 1.0.0
License: GPL v2 or later
Text Domain: pet-shelter
*/

/* ==================== ОСНОВНЫЕ СТИЛИ ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #fffbf5 0%, #fff7ed 100%);
    color: #3d3224;
    scroll-behavior: smooth;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px;
}

/* ==================== ШАПКА ==================== */
header {
    background: rgba(255, 252, 245, 0.98);
    backdrop-filter: blur(8px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid #fff0e0;
}

.top-bar {
    background: #fff9f0;
    padding: 10px 0;
    font-size: 0.85rem;
    border-bottom: 1px solid #ffe6d0;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.contact-info {
    display: flex;
    gap: 28px;
    flex-wrap: wrap;
}

.contact-info span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #8b7355;
}

.contact-info i {
    color: #e6a06b;
}

.social-icons {
    display: flex;
    gap: 20px;
}

.social-icons a {
    color: #c7ad88;
    transition: 0.2s;
    font-size: 1rem;
}

.social-icons a:hover {
    color: #e68a3e;
    transform: translateY(-2px);
}

.main-nav {
    padding: 14px 0;
}

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

.logo h1 {
    font-size: 1.7rem;
    font-weight: 800;
    background: linear-gradient(135deg, #d6893a, #b45f2a);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

.logo p {
    font-size: 0.7rem;
    color: #c99b6b;
}

.nav-links {
    display: flex;
    gap: 28px;
    list-style: none;
    align-items: center;
    flex-wrap: wrap;
}

.nav-links a {
    text-decoration: none;
    font-weight: 500;
    color: #6b543a;
    transition: 0.2s;
    font-size: 0.95rem;
}

.nav-links a:hover {
    color: #e68a3e;
}

.stats-block {
    display: flex;
    gap: 18px;
    background: #fffaf2;
    padding: 6px 20px;
    border-radius: 60px;
    align-items: center;
    border: 1px solid #ffefdf;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #896e4b;
    border-right: 1px solid #ffe0ca;
    padding-right: 18px;
}

.stat-item:last-child {
    border-right: none;
    padding-right: 0;
}

.stat-number {
    font-size: 1.2rem;
    font-weight: 800;
    color: #e68a3e;
}

.donate-header-btn {
    background: #f5cfaa;
    color: #a45d2a !important;
    padding: 8px 22px;
    border-radius: 40px;
    transition: 0.2s;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.donate-header-btn:hover {
    background: #e6b686;
    transform: scale(1.02);
}

/* ==================== HERO СЕКЦИЯ ==================== */
.hero {
    background: linear-gradient(120deg, #fff5ea, #ffefdf);
    border-radius: 0 0 56px 56px;
    padding: 50px 0 60px;
    margin-bottom: 48px;
}

.hero .container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.hero-text {
    flex: 1;
}

.hero-text h2 {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    color: #5e3e22;
}

.hero-text p {
    font-size: 1.15rem;
    margin: 24px 0;
    color: #8f6e48;
}

.hero-btn {
    background: #e6a06b;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 48px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s;
    display: inline-block;
    text-decoration: none;
}

.hero-btn:hover {
    background: #d4803a;
    transform: translateY(-3px);
}

.hero-image {
    flex: 0.8;
    text-align: center;
}

.hero-single-image {
    border-radius: 48px;
    overflow: hidden;
    box-shadow: 0 20px 35px -12px rgba(0, 0, 0, 0.15);
    background-color: #f5e7d6;
}

.hero-single-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    aspect-ratio: 4 / 3;
}

/* ==================== СЕТКИ КАРТОЧЕК ==================== */
.card-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.help-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* ==================== КАРТОЧКИ ЖИВОТНЫХ ==================== */
.pet-card {
    background: white;
    border-radius: 32px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.04);
    border: 1px solid #f9ecd9;
    cursor: pointer;
}

.pet-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 30px -12px rgba(0, 0, 0, 0.12);
}

.card-img {
    height: 240px;
    background-size: contain !important;
    background-repeat: no-repeat;
    background-position: center;
    background-color: #f5e7d6;
    position: relative;
}

.card-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: #fff2e4;
    color: #c07238;
    padding: 4px 12px;
    border-radius: 60px;
    font-weight: 600;
    font-size: 0.75rem;
    z-index: 5;
}

.card-content {
    padding: 22px 20px 24px;
}

.card-content h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.pet-meta {
    display: flex;
    gap: 12px;
    margin: 12px 0;
    font-size: 0.8rem;
    color: #c69260;
    flex-wrap: wrap;
}

.adopt-link {
    margin-top: 16px;
    display: inline-block;
    font-weight: 600;
    color: #e68a3e;
    text-decoration: none;
    cursor: pointer;
}

/* ==================== КАРТОЧКИ ПОМОЩИ ==================== */
.help-card {
    background: white;
    border-radius: 32px;
    padding: 32px 24px;
    text-align: center;
    transition: 0.2s;
    border: 1px solid #ffebdb;
}

.help-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.05);
}

.help-icon {
    font-size: 2.5rem;
    color: #e6a06b;
    margin-bottom: 20px;
}

.help-card h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
    color: #5a3e26;
}

.help-card p {
    color: #8e7357;
    line-height: 1.5;
    margin-bottom: 20px;
}

.help-btn {
    background: #f5e2cf;
    color: #b26730;
    padding: 10px 24px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: 0.2s;
    cursor: pointer;
    border: none;
}

.help-btn:hover {
    background: #e6a06b;
    color: white;
    transform: translateY(-2px);
}

/* ==================== КАРТОЧКИ НОВОСТЕЙ ==================== */
.news-card {
    background: white;
    border-radius: 28px;
    overflow: hidden;
    transition: 0.2s;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
    cursor: pointer;
}

.news-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 30px -12px rgba(0, 0, 0, 0.12);
}

.news-img {
    height: 180px;
    background-size: cover !important;
    background-repeat: no-repeat;
    background-position: center;
    background-color: #f5e7d6;
}

.news-content {
    padding: 20px;
}

.news-date {
    color: #c99a6a;
    font-size: 0.75rem;
    display: block;
    margin-bottom: 8px;
}

.news-content h4 {
    font-size: 1.2rem;
    margin-bottom: 12px;
    color: #5e3e22;
}

.news-content p {
    color: #8e7357;
    line-height: 1.5;
    margin-bottom: 12px;
}

/* ==================== СЕКЦИИ ==================== */
section {
    margin: 70px 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

.section-header h2 {
    font-size: 2.2rem;
    font-weight: 800;
    border-left: 7px solid #e6822b;
    padding-left: 18px;
    color: #2e241a;
}

.view-all {
    color: #e6822b;
    font-weight: 600;
    text-decoration: none;
}

.help-section {
    background: linear-gradient(135deg, #fff6ed, #fff0e2);
    border-radius: 48px;
    padding: 48px 40px;
    margin: 70px 0;
}

/* ==================== ФУТЕР ==================== */
footer {
    background: #fcf6ed;
    color: #7b6246;
    padding: 48px 0 24px;
    margin-top: 50px;
    border-top: 1px solid #ffe0ca;
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-col h4 {
    font-weight: 600;
    margin-bottom: 16px;
    color: #a56f3e;
}

.footer-col p,
.footer-col a {
    color: #8e7357;
    text-decoration: none;
    line-height: 1.6;
}

.footer-col a:hover {
    color: #e68a3e;
}

.copyright {
    text-align: center;
    margin-top: 48px;
    font-size: 0.8rem;
    border-top: 1px solid #ffe2cd;
    padding-top: 24px;
}

/* ==================== ПАГИНАЦИЯ ==================== */
.pagination {
    text-align: center;
    margin: 40px 0;
}

.pagination .page-numbers {
    display: inline-block;
    padding: 8px 14px;
    margin: 0 4px;
    border-radius: 8px;
    background: white;
    color: #6b543a;
    text-decoration: none;
    border: 1px solid #ffefdf;
}

.pagination .page-numbers.current {
    background: #e6a06b;
    color: white;
    border-color: #e6a06b;
}

/* ==================== АДАПТИВНОСТЬ ==================== */
@media (max-width: 1024px) {
    .card-grid,
    .help-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    header {
        position: relative !important;
    }
    
    .navbar {
        flex-direction: column;
        align-items: stretch;
    }
    
    .stats-block {
        justify-content: center;
        flex-wrap: wrap;
        width: 100%;
    }
    
    .hero-text h2 {
        font-size: 2rem;
    }
    
    .hero .container {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-image {
        width: 100%;
    }
    
    .container {
        padding: 0 24px;
    }
    
    .card-grid,
    .help-grid {
        gap: 20px;
    }
    
    .card-img {
        height: 180px;
    }
    
    .hero-single-image {
        border-radius: 32px;
    }
    
    .help-section {
        padding: 32px 24px;
    }
    
    .footer-grid {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .card-grid,
    .help-grid,
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-text h2 {
        font-size: 1.8rem;
    }
    
    .hero-text p {
        font-size: 1rem;
    }
    
    .section-header h2 {
        font-size: 1.5rem;
    }
    
    .hero-single-image {
        border-radius: 24px;
    }
    
    .section-header {
        flex-direction: column;
        gap: 10px;
    }
    
    .help-card {
        padding: 24px 20px;
    }
}

/* ==================== АНИМАЦИИ ==================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.pet-card,
.news-card,
.help-card {
    animation: fadeInUp 0.6s ease-out forwards;
}

/* ==================== ОСТАЛЬНЫЕ СТИЛИ ==================== */
img {
    max-width: 100%;
    height: auto;
}

.no-pets,
.no-news {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 32px;
    color: #8e7357;
    font-size: 1.1rem;
    grid-column: 1 / -1;
}
