/* Общие стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #e05a89;
    --primary-dark: #c44570;
    --secondary-color: #c44569;
    --accent-color: #f0a500;
    --text-dark: #e8e8e8;
    --text-light: #a0a0a0;
    --bg-dark: #0d0d0d;
    --bg-card: #1a1a1a;
    --bg-card-hover: #222222;
    --bg-header: #141414;
    --bg-footer: #0a0a0a;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.5);
    --border-radius: 16px;
    --transition: all 0.3s ease;
}

body {
    font-family: 'Roboto', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background: var(--bg-dark);
}

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

/* Шапка */
.header {
    background: var(--bg-header);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
    border-bottom: 1px solid #2a2a2a;
}

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

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

.logo-icon {
    font-size: 2.5rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.logo h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav {
    display: flex;
    gap: 30px;
}

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 25px;
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    background: var(--primary-color);
    color: white;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    border-radius: 3px;
    transition: var(--transition);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    border-radius: 3px;
    transition: var(--transition);
}

/* Главная страница - Hero */
.hero {
    background: linear-gradient(135deg, rgba(15, 15, 20, 0.92), rgba(25, 20, 35, 0.88)),
                url('https://images.unsplash.com/photo-1514888286974-6c03e2ca1dba?w=1920&q=80');
    background-size: cover;
    background-position: center;
    padding: 120px 20px;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid #2a2a2a;
}

.hero::before {
    content: '🐾';
    position: absolute;
    font-size: 300px;
    opacity: 0.1;
    top: -50px;
    right: -50px;
    transform: rotate(-15deg);
}

.hero-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 30px;
    opacity: 0.95;
}

/* Кнопки */
.btn {
    padding: 14px 35px;
    border: none;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: var(--accent-color);
    color: var(--text-dark);
}

.btn-primary:hover {
    background: #e6a800;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(248, 181, 0, 0.4);
}

.btn-back {
    background: var(--bg-card);
    color: var(--text-dark);
    padding: 10px 25px;
    border: 2px solid var(--primary-color);
    border-radius: 25px;
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
    margin-bottom: 30px;
}

.btn-back:hover {
    background: var(--primary-color);
    color: white;
}

/* Секции */
.section-title,
.page-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    text-align: center;
    margin: 60px 0 40px;
    color: var(--text-dark);
}

/* Карточки статей */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.article-card {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
    border: 1px solid #2a2a2a;
}

.article-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    background: var(--bg-card-hover);
    border-color: #333;
}

.article-image {
    height: 220px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.article-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.3));
}

.article-content-preview {
    padding: 25px;
}

.article-category {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 15px;
    letter-spacing: 0.5px;
}

.article-content-preview h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.article-content-preview p {
    color: var(--text-light);
    line-height: 1.7;
}

/* Категории */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 60px;
}

.category-card {
    background: var(--bg-card);
    padding: 35px 25px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
    border: 1px solid #2a2a2a;
}

.category-card:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-hover);
    background: var(--bg-card-hover);
    border-color: #333;
}

.category-icon {
    font-size: 3.5rem;
    margin-bottom: 15px;
}

.category-card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.category-card p {
    color: var(--text-light);
}

/* Интересные факты */
.facts-slider {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    padding: 40px;
    box-shadow: var(--shadow);
    margin-bottom: 60px;
    min-height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #2a2a2a;
}

.fact-item {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-dark);
    animation: fadeIn 0.5s ease;
}

.fact-item .fact-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Фильтры */
.filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 40px;
}

.filter-btn {
    padding: 10px 25px;
    border: 2px solid var(--primary-color);
    background: var(--bg-card);
    color: var(--primary-color);
    border-radius: 25px;
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-color);
    color: white;
}

/* Страница пород */
.breeds-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.breed-card {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
    border: 1px solid #2a2a2a;
}

.breed-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    background: var(--bg-card-hover);
    border-color: #333;
}

.breed-image {
    height: 200px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.breed-info {
    padding: 25px;
}

.breed-info h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.breed-info p {
    color: var(--text-light);
    margin-bottom: 15px;
}

.breed-traits {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.trait {
    background: #252525;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.85rem;
    color: var(--text-light);
    border: 1px solid #333;
}

/* Страница здоровья */
.health-tips {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.health-card {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid #2a2a2a;
}

.health-card:hover {
    box-shadow: var(--shadow-hover);
    background: var(--bg-card-hover);
    border-color: #333;
}

.health-card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.health-icon {
    font-size: 2.5rem;
}

.health-card h3 {
    font-size: 1.3rem;
    color: var(--text-dark);
}

.health-card ul {
    list-style: none;
    padding-left: 0;
}

.health-card li {
    padding: 10px 0;
    border-bottom: 1px solid #2a2a2a;
    color: var(--text-light);
    position: relative;
    padding-left: 25px;
}

.health-card li:last-child {
    border-bottom: none;
}

.health-card li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #00b894;
    font-weight: bold;
}

/* Просмотр статьи */
.article-content {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    padding: 50px;
    box-shadow: var(--shadow);
    margin-bottom: 60px;
    border: 1px solid #2a2a2a;
}

.article-content h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2.8rem;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.article-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    color: var(--text-light);
    flex-wrap: wrap;
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.article-body {
    font-size: 1.1rem;
    line-height: 1.9;
    color: var(--text-dark);
}

.article-body h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    margin: 40px 0 20px;
    color: var(--text-dark);
}

.article-body h3 {
    font-size: 1.5rem;
    margin: 30px 0 15px;
    color: var(--secondary-color);
}

.article-body p {
    margin-bottom: 20px;
}

.article-body ul,
.article-body ol {
    margin: 20px 0;
    padding-left: 30px;
}

.article-body li {
    margin-bottom: 12px;
}

.article-body blockquote {
    border-left: 4px solid var(--primary-color);
    padding: 20px 30px;
    margin: 30px 0;
    background: #1f1f1f;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    font-style: italic;
    color: var(--text-light);
}

/* О нас */
.about-content {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    padding: 50px;
    box-shadow: var(--shadow);
    margin-bottom: 60px;
    border: 1px solid #2a2a2a;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.about-text h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    margin: 35px 0 20px;
    color: var(--text-dark);
}

.about-text ul {
    margin: 20px 0;
    padding-left: 30px;
}

.about-text li {
    margin-bottom: 12px;
    font-size: 1.1rem;
}

.about-text a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.about-text a:hover {
    text-decoration: underline;
}

/* Подвал */
.footer {
    background: var(--bg-footer);
    color: white;
    padding: 50px 0 20px;
    margin-top: 80px;
    border-top: 1px solid #2a2a2a;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--accent-color);
}

.footer-section p,
.footer-section li {
    color: #b2bec3;
    margin-bottom: 10px;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section a {
    color: #b2bec3;
    text-decoration: none;
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #2a2a2a;
    color: #b2bec3;
}

.visitor-counter {
    margin-top: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 0.95rem;
    color: #636e72;
}

.counter-value {
    background: #252525;
    color: var(--primary-color);
    padding: 4px 14px;
    border-radius: 15px;
    font-weight: 600;
    font-size: 1rem;
    border: 1px solid #333;
    min-width: 60px;
    display: inline-block;
}

/* Скрытие/показ страниц */
.page {
    display: none;
    animation: fadeInPage 0.4s ease;
}

.page.active {
    display: block;
}

@keyframes fadeInPage {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Адаптивность */
@media (max-width: 768px) {
    .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-header);
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
        gap: 10px;
        border-bottom: 1px solid #2a2a2a;
    }

    .nav.active {
        display: flex;
    }

    .menu-toggle {
        display: flex;
    }

    .hero-content h2 {
        font-size: 2.2rem;
    }

    .hero-content p {
        font-size: 1.1rem;
    }

    .section-title,
    .page-title {
        font-size: 2rem;
    }

    .articles-grid {
        grid-template-columns: 1fr;
    }

    .breeds-grid {
        grid-template-columns: 1fr;
    }

    .article-content {
        padding: 30px 20px;
    }

    .article-content h1 {
        font-size: 2rem;
    }

    .about-content {
        padding: 30px 20px;
    }

    .health-tips {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .logo h1 {
        font-size: 1.5rem;
    }

    .hero {
        padding: 60px 20px;
    }

    .hero-content h2 {
        font-size: 1.8rem;
    }

    .btn {
        padding: 12px 25px;
        font-size: 1rem;
    }

    .categories-grid {
        grid-template-columns: 1fr;
    }
}

/* Скроллбар */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* Плавная прокрутка */
html {
    scroll-behavior: smooth;
}

/* ===== КНОПКА «ПОДЕЛИТЬСЯ» ===== */
.share-section {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid #2a2a2a;
}

.share-section h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.share-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    color: white;
}

.share-btn span {
    display: inline-block;
}

.share-vk {
    background: #4a76a8;
}

.share-vk:hover {
    background: #5181b8;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(74, 118, 168, 0.4);
}

.share-telegram {
    background: #0088cc;
}

.share-telegram:hover {
    background: #0099dd;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 136, 204, 0.4);
}

.share-whatsapp {
    background: #25d366;
}

.share-whatsapp:hover {
    background: #20bd5a;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.4);
}

.share-copy {
    background: #333;
    color: var(--text-dark);
}

.share-copy:hover {
    background: #444;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.share-notification {
    margin-top: 15px;
    padding: 10px 20px;
    background: #1f1f1f;
    border-radius: 10px;
    color: #25d366;
    font-weight: 500;
    opacity: 0;
    transition: opacity 0.3s ease;
    display: inline-block;
}

.share-notification.show {
    opacity: 1;
}

/* ===== КОММЕНТАРИИ ===== */
.comments-section {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid #2a2a2a;
}

.comments-section h3 {
    font-size: 1.5rem;
    margin-bottom: 25px;
    color: var(--text-dark);
}

.comments-count {
    color: var(--text-light);
    font-size: 1.1rem;
    font-weight: 400;
}

.comment-form {
    background: #1f1f1f;
    padding: 25px;
    border-radius: var(--border-radius);
    margin-bottom: 30px;
    border: 1px solid #2a2a2a;
}

.form-group {
    margin-bottom: 15px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    background: #141414;
    border: 1px solid #333;
    border-radius: 10px;
    color: var(--text-dark);
    font-size: 1rem;
    font-family: 'Roboto', sans-serif;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(224, 90, 137, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #666;
}

.btn-submit {
    margin-top: 5px;
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.comment-item {
    background: #1f1f1f;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #2a2a2a;
    transition: var(--transition);
}

.comment-item:hover {
    border-color: #333;
}

.comment-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.comment-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.comment-info {
    display: flex;
    flex-direction: column;
}

.comment-author {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 1rem;
}

.comment-date {
    font-size: 0.85rem;
    color: #666;
}

.comment-body {
    color: var(--text-light);
    line-height: 1.7;
    font-size: 1rem;
}

.no-comments {
    text-align: center;
    color: #666;
    padding: 30px;
    font-style: italic;
}
