/*
Theme Name: GeneratePress Child
Template: generatepress
Description: Дочерняя тема для сайта о животных
Version: 1.0
*/

/* ================================================================
   1. ГЛОБАЛЬНЫЕ ПЕРЕМЕННЫЕ (CSS-переменные)
   ================================================================ */
:root {
    --cream: #fdfaf5;
    --white: #ffffff;
    --sage: #4a6741;
    --terracotta: #e07a3d;
    --terracotta-hover: #c96a32;
    --text-dark: #2f3e2c;
    --text-muted: #5c5c5c;
    --border-light: #f0e8da;
    --shadow-sm: 0 4px 15px rgba(0, 0, 0, 0.03);
    --shadow-md: 0 8px 25px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 15px 30px rgba(0, 0, 0, 0.07);
    --radius-sm: 12px;
    --radius-md: 18px;
    --radius-lg: 24px;
    --transition: 0.25s ease;
}

/* ================================================================
   2. СБРОС И БАЗОВЫЕ СТИЛИ
   ================================================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Georgia', 'Times New Roman', serif;
    background-color: var(--cream);
    color: #3b3b3b;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ================================================================
   3. ТИПОГРАФИКА
   ================================================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Segoe UI', 'Arial', sans-serif;
    color: var(--text-dark);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }

p {
    margin-bottom: 1rem;
}

a {
    color: var(--terracotta);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--terracotta-hover);
}

/* ================================================================
   4. ЗАГОЛОВКИ СЕКЦИЙ
   ================================================================ */
.section-title {
    font-family: 'Segoe UI', 'Arial', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: var(--text-dark);
    text-align: center;
    margin: 30px 0 10px;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--terracotta);
    display: inline-block;
    letter-spacing: -0.3px;
}

.section-subtitle {
    text-align: center;
    color: #6b5a4a;
    font-size: 18px;
    margin-bottom: 30px;
}

.section-title-icon {
    width: 28px;
    height: 28px;
    object-fit: contain;
    vertical-align: middle;
    margin-right: 8px;
}

/* ================================================================
   5. ШАПКА САЙТА (HEADER)
   ================================================================ */
.site-header {
    background-color: var(--white);
    padding: 14px 0;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border-light);
}

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

.logo {
    font-family: 'Segoe UI', 'Arial', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: var(--sage);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.logo span {
    background-color: var(--terracotta);
    color: white;
    font-size: 13px;
    padding: 3px 12px;
    border-radius: 20px;
    letter-spacing: 0.4px;
    font-weight: 600;
}

.main-nav {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
}

.main-nav ul {
    display: flex;
    gap: 20px;
    list-style: none;
    flex-wrap: wrap;
}

.main-nav a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    font-family: 'Segoe UI', 'Arial', sans-serif;
    font-size: 18px;
    padding: 6px 0;
    border-bottom: 2px solid transparent;
    transition: color var(--transition), border-color var(--transition);
    white-space: nowrap;
}

.main-nav a:hover {
    color: var(--terracotta);
    border-bottom-color: var(--terracotta);
}

.nav-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 22px;
    text-decoration: none;
    font-weight: 700;
    font-size: 17px;
    transition: all 0.3s ease;
}

.nav-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.nav-card-icon img {
    width: 28px;
    height: 28px;
    object-fit: contain;
    display: block;
}

.nav-card-text {
    white-space: nowrap;
}

.header-search {
    display: flex;
    align-items: center;
    width: 25%;
    min-width: 200px;
    background: #f5f0e8;
    border-radius: 14px;
    overflow: hidden;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.header-search:focus-within {
    border-color: #d6c4ae;
    background: #fff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.header-search input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 12px 16px;
    font-size: 15px;
    color: #4a3a2a;
    outline: none;
    min-width: 0;
}

.header-search input::placeholder {
    color: #b8a894;
    font-style: italic;
}

.header-search button {
    background: #e0d0bc;
    border: none;
    padding: 12px 16px;
    cursor: pointer;
    font-size: 18px;
    transition: background 0.2s;
    flex-shrink: 0;
}

.header-search button:hover {
    background: #d4c0a8;
}

.search-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
    display: block;
}

/* ================================================================
   6. HERO-БЛОК (ГЛАВНАЯ СТРАНИЦА)
   ================================================================ */
.hero {
    background-image: url('/wp-content/uploads/2026/07/banner-2-1.jpg');
    background-size: cover;
    background-position: center 35%;
    border-radius: var(--radius-lg);
    margin: 32px 0 44px;
    padding: 70px 60px;
    color: white;
    min-height: 380px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: #c4b19c;
}

.hero h1 {
    font-size: 46px;
    font-weight: 700;
    margin-bottom: 14px;
    max-width: 600px;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
    line-height: 1.2;
    letter-spacing: -0.5px;
    color: white;
}

.hero p {
    font-size: 19px;
    max-width: 500px;
    margin-bottom: 30px;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
    font-style: italic;
}

/* ================================================================
   7. HERO-БЛОК ДЛЯ РАЗДЕЛОВ
   ================================================================ */
.dogs-hero {
    position: relative;
    width: 100%;
    height: 350px;
    margin-bottom: 40px;
    background-size: cover;
    background-position: center;
}

.dogs-hero-overlay {
    background: rgba(0, 0, 0, 0.45);
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
}

.dogs-hero-overlay h1 {
    font-size: 42px;
    margin-bottom: 10px;
    color: #fff;
}

.dogs-hero-overlay p {
    font-size: 18px;
    opacity: 0.9;
}

/* ================================================================
   8. КНОПКИ
   ================================================================ */
.cta-btn,
.btn {
    background-color: var(--terracotta);
    color: white;
    padding: 15px 34px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    font-family: 'Segoe UI', sans-serif;
    font-size: 16px;
    display: inline-block;
    transition: all var(--transition);
    box-shadow: 0 8px 20px rgba(224, 122, 61, 0.4);
    border: none;
    cursor: pointer;
}

.cta-btn:hover,
.btn:hover {
    background-color: var(--terracotta-hover);
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(224, 122, 61, 0.5);
    color: white;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--terracotta);
    color: var(--terracotta);
    padding: 12px 28px;
    border-radius: 25px;
    font-weight: 700;
    font-family: 'Segoe UI', sans-serif;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    display: inline-block;
    box-shadow: none;
}

.btn-outline:hover {
    background: var(--terracotta);
    color: white;
}

.full-list-btn {
    display: inline-block;
    padding: 14px 32px;
    background: #f0e6d8;
    color: #4a3a2a;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.2s;
}

.full-list-btn:hover {
    background: #e0d0bc;
    transform: translateY(-1px);
}

.full-list-icon {
    width: 18px;
    height: 18px;
    object-fit: contain;
    vertical-align: middle;
    margin-right: 6px;
}

/* ================================================================
   9. СЕТКА КАТЕГОРИЙ (ГЛАВНАЯ СТРАНИЦА)
   ================================================================ */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
    margin-bottom: 60px;
}

.category-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    border: 1px solid var(--border-light);
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
}

.category-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.category-card-main {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 32px 28px 20px;
    text-decoration: none;
    color: inherit;
    transition: background var(--transition);
    flex: 1;
}

.category-card--cats .category-card-main:hover { background: #fdf8f4; }
.category-card--dogs .category-card-main:hover { background: #f8faf6; }

.category-card-icon { flex-shrink: 0; }
.category-card-icon img { width: 72px; height: 72px; object-fit: contain; display: block; }

.category-card-info { flex: 1; min-width: 0; }
.category-card-info h3 { font-size: 26px; font-weight: 700; color: var(--text-dark); margin: 0 0 6px; }
.category-card-info p { font-size: 16px; color: var(--text-muted); margin: 0; line-height: 1.4; }

.category-card-arrow {
    flex-shrink: 0;
    font-size: 26px;
    color: var(--terracotta);
    opacity: 0;
    transition: all var(--transition);
    font-weight: 700;
}

.category-card:hover .category-card-arrow { opacity: 1; transform: translateX(6px); }

.category-card-subs {
    padding: 0 28px 28px;
    border-top: 2px solid var(--border-light);
    margin: 0 28px;
    padding-top: 20px;
}

.subs-label { font-size: 14px; color: #8b7a6a; display: block; margin-bottom: 14px; font-weight: 600; }
.subs-icon { width: 28px; height: 28px; object-fit: contain; vertical-align: middle; margin-right: 4px; }

.subs-tags--two-cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.subs-tags--two-cols a {
    display: block; padding: 14px 16px; border-radius: 14px;
    font-size: 15px; font-weight: 700; text-decoration: none;
    font-family: 'Segoe UI', sans-serif; transition: all var(--transition); text-align: center;
}

.category-card--cats .subs-tags--two-cols a {
    background: #fdf6f0; color: var(--terracotta); border: 2px solid #f0d8c8;
}
.category-card--cats .subs-tags--two-cols a:hover {
    background: var(--terracotta); color: white; border-color: var(--terracotta);
    transform: translateY(-2px); box-shadow: 0 4px 12px rgba(224, 122, 61, 0.25);
}

.category-card--dogs .subs-tags--two-cols a {
    background: #f0f6ed; color: var(--sage); border: 2px solid #c8dcc8;
}
.category-card--dogs .subs-tags--two-cols a:hover {
    background: var(--sage); color: white; border-color: var(--sage);
    transform: translateY(-2px); box-shadow: 0 4px 12px rgba(74, 103, 65, 0.25);
}

/* ================================================================
   10. ВКЛАДКИ ПОДРУБРИК + АЛФАВИТНЫЕ СПИСКИ
   ================================================================ */
.subcat-tabs-wrapper { margin-bottom: 60px; }

.subcat-tabs {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
    margin-bottom: 24px;
}

.subcat-tab {
    padding: 4px 22px;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 700;
    font-family: 'Segoe UI', sans-serif;
    background: var(--white);
    color: var(--text-dark);
    border: 2px solid var(--border-light);
    cursor: pointer;
    transition: all var(--transition);
    width: 100%;
    text-align: center;
}

.subcat-tab:hover { border-color: var(--terracotta); background: #fef7f0; }
.subcat-tab.active { background: var(--terracotta); color: white; border-color: var(--terracotta); }

.subcat-panel {
    display: none;
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
}
.subcat-panel.active { display: block; }

.subcat-panel-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 20px; }

.subcat-panel-btn {
    display: block; padding: 12px 14px; border-radius: 14px;
    font-size: 14px; font-weight: 600; font-family: 'Segoe UI', sans-serif;
    text-decoration: none; text-align: center;
    background: #f0f6ed; color: var(--sage); border: 2px solid #d0dcd0;
    transition: all var(--transition);
}

.subcat-panel-btn:hover {
    background: var(--sage); color: white; border-color: var(--sage);
    transform: translateY(-2px); box-shadow: 0 4px 12px rgba(74, 103, 65, 0.2);
}

/* Чередование цветов */
.subcat-panel-btn--level2 {
    background: #f0f6ed; color: var(--sage); border: 2px solid #d0dcd0;
    padding: 10px 14px; font-size: 14px;
}
.subcat-panel-btn--level2:hover { background: var(--sage); color: white; border-color: var(--sage); }

.subcat-panel-btn--level3 {
    background: #fef7f0 !important; color: var(--terracotta) !important;
    border: 2px solid #f0d8c8 !important; padding: 8px 12px; font-size: 13px;
}
.subcat-panel-btn--level3:hover {
    background: var(--terracotta) !important; color: white !important; border-color: var(--terracotta) !important;
}
.subcat-panel-btn--level3.active {
    background: var(--terracotta-hover) !important; color: white !important; border-color: var(--terracotta-hover) !important;
}

.subcat-panel-btn--classification {
    background: #faf7f2; color: #8b7a6a; border: 2px solid #e8d9c8;
    font-size: 15px; padding: 10px 14px;
}
.subcat-panel-btn--classification:hover {
    background: #f0e6d8; color: #6b5a4a; border-color: #c4a882;
    transform: translateY(-1px); box-shadow: none;
}

.subcat-classification .subcat-panel-btn--classification {
    background: #f0f6ed; color: var(--sage); border: 2px solid #d0dcd0;
    padding: 8px 12px; font-size: 13px;
}
.subcat-classification .subcat-panel-btn--classification:hover {
    background: var(--sage); color: white; border-color: var(--sage);
}

.subcat-panel-empty { text-align: center; color: var(--text-muted); font-size: 15px; margin-bottom: 20px; }

.subcat-panel-all {
    display: inline-block; color: var(--terracotta); font-weight: 700;
    font-family: 'Segoe UI', sans-serif; text-decoration: none;
    font-size: 14px; transition: color var(--transition);
}
.subcat-panel-all:hover { color: var(--terracotta-hover); }

.subcat-section-title {
    font-size: 16px; font-weight: 700; color: var(--text-dark);
    margin: 24px 0 12px; text-transform: uppercase;
    letter-spacing: 0.5px; text-align: center;
}

.subcat-subpanel { margin-top: 12px; padding-top: 12px; border-top: 2px solid var(--border-light); }
.subcat-subpanel .subcat-panel-grid { margin-bottom: 0; }
.subcat-classification { margin-top: 12px; padding-top: 12px; border-top: 2px solid var(--border-light); }

/* Ссылки в алфавитных списках */
.disease-link {
    display: block; padding: 8px 12px; border-radius: 8px;
    font-size: 14px; font-weight: 500; font-family: 'Segoe UI', sans-serif;
    text-decoration: none; color: var(--text-dark); transition: all var(--transition);
}
.disease-link:hover { background: #fef0e5; color: var(--terracotta); }

/* ================================================================
   11. КАРУСЕЛЬ СТАТЕЙ
   ================================================================ */
.articles-carousel-wrapper { margin-bottom: 60px; overflow: hidden; }

.articles-carousel {
    display: flex; gap: 24px; overflow-x: auto;
    scroll-snap-type: x mandatory; scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch; padding: 10px 0 20px;
    padding-right: calc((100% - (3 * 340px + 2 * 24px)) / 2);
    scrollbar-color: var(--terracotta) #f0e8da; scrollbar-width: thin;
}

.articles-carousel::-webkit-scrollbar { height: 8px; }
.articles-carousel::-webkit-scrollbar-track { background: #f0e8da; border-radius: 10px; }
.articles-carousel::-webkit-scrollbar-thumb { background: var(--terracotta); border-radius: 10px; }

.article-carousel-card {
    flex: 0 0 340px; scroll-snap-align: start;
    border-radius: var(--radius-lg); overflow: hidden;
    box-shadow: var(--shadow-md); transition: all var(--transition);
}
.article-carousel-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

.article-carousel-link { text-decoration: none; color: inherit; display: block; }

.article-carousel-img {
    height: 280px; background-size: cover; background-position: center;
    position: relative; display: flex; flex-direction: column; justify-content: flex-end;
}

.article-carousel-overlay {
    background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.1) 60%, transparent 100%);
    padding: 50px 20px 22px; color: white; z-index: 1;
}

.article-carousel-title {
    font-family: 'Segoe UI', sans-serif; font-size: 18px; font-weight: 700;
    color: white; margin: 0; line-height: 1.3; text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}

/* ================================================================
   12. ПЛИТКА СТАТЕЙ
   ================================================================ */
.articles-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 60px; }

.article-grid-card {
    background: var(--white); border-radius: var(--radius-lg); overflow: hidden;
    box-shadow: var(--shadow-md); transition: all var(--transition); border: 1px solid var(--border-light);
}
.article-grid-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.article-grid-card a { text-decoration: none; color: inherit; display: block; }

.article-grid-img { height: 200px; background-size: cover; background-position: center; }

.article-grid-text {
    padding: 16px 18px; font-family: 'Georgia', serif;
    font-size: 15px; font-weight: 600; color: var(--text-dark); line-height: 1.4;
}

/* ================================================================
   13. КАЛЬКУЛЯТОР + ВЕТСПРАВОЧНИК
   ================================================================ */
.calc-vet-row {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 28px; margin-bottom: 60px; align-items: stretch;
}
.calc-vet-col--calc, .calc-vet-col--vet { display: flex; flex-direction: column; }
.calculator-block--compact, .vet-block--compact { flex: 1; }
.calc-vet-col--calc .section-title, .calc-vet-col--vet .section-title {
    display: block; text-align: center; margin: 0 0 20px; font-size: 24px;
}

/* Калькулятор */
.calculator-block--compact {
    flex-direction: column; padding: 16px 20px; gap: 10px;
    border-radius: var(--radius-lg); background: var(--white);
    box-shadow: var(--shadow-md); border: 2px solid #c8dcc8;
}

.calculator-block--compact .calc-form { min-width: 0; }
.calculator-block--compact .calc-form label {
    display: block; font-family: 'Segoe UI', sans-serif;
    font-weight: 600; font-size: 12px; margin-bottom: 2px; color: var(--sage);
}
.calculator-block--compact .calc-form input,
.calculator-block--compact .calc-form select {
    width: 100%; padding: 8px 12px; border-radius: 10px;
    border: 2px solid var(--border-light); margin-bottom: 8px;
    font-size: 14px; background: #fdfaf5;
    font-family: 'Segoe UI', sans-serif; transition: border-color var(--transition);
}
.calculator-block--compact .calc-form input:focus,
.calculator-block--compact .calc-form select:focus {
    outline: none; border-color: var(--sage);
    box-shadow: 0 0 0 3px rgba(74, 103, 65, 0.06);
}
.calculator-block--compact .calc-result {
    min-width: 0; background: #f0f6ed; padding: 14px 16px;
    border-radius: var(--radius-md); text-align: center; font-family: 'Segoe UI', sans-serif;
}
.calculator-block--compact .big-number { font-size: 28px; font-weight: 700; color: var(--sage); }

/* Ветсправочник */
.vet-block--compact {
    padding: 24px; min-height: auto; background: var(--white);
    border-radius: var(--radius-lg); box-shadow: var(--shadow-md); border: 1px solid var(--border-light);
}

.vet-body-parts { display: flex; flex-direction: column; gap: 20px; width: 100%; }
.vet-parts-group { display: flex; flex-direction: column; gap: 10px; }
.vet-parts-label {
    font-size: 13px; color: #8b7a6a; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.5px;
}
.vet-parts-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.vet-parts-grid--two { grid-template-columns: repeat(2, 1fr); }

.vet-part-btn {
    display: block; padding: 10px 14px; border-radius: 12px;
    font-size: 13px; font-weight: 600; font-family: 'Segoe UI', sans-serif;
    text-decoration: none; text-align: center;
    background: #fdfaf5; color: var(--text-dark); border: 2px solid var(--border-light);
    transition: all var(--transition);
}
.vet-part-btn:hover {
    background: var(--terracotta); color: white; border-color: var(--terracotta); transform: translateY(-1px);
}
.vet-part-btn--accent { background: #fef7f0; border-color: #f0d8c8; color: var(--terracotta); }
.vet-part-btn--accent:hover { background: var(--terracotta); color: white; }

.vet-all-btn {
    display: inline-block; margin-top: 16px; padding: 10px 24px;
    border-radius: 10px; font-size: 14px; font-weight: 600;
    font-family: 'Segoe UI', sans-serif; text-decoration: none;
    background: #f0e6d8; color: #4a3a2a; transition: all 0.2s; text-align: center;
}
.vet-all-btn:hover { background: #e0d0bc; transform: translateY(-1px); }

/* Меню питомца */
.pet-type-list { list-style: none; display: flex; flex-direction: row; gap: 10px; }

.pet-type-list li {
    display: flex; align-items: center; gap: 8px; padding: 10px 16px;
    border-radius: 14px; cursor: pointer; font-family: 'Segoe UI', sans-serif;
    font-weight: 700; font-size: 14px; transition: all var(--transition);
    background: #fdfaf5; border: 2px solid transparent; color: var(--text-dark);
    user-select: none; flex: 1; justify-content: center;
}
.pet-type-list li:hover { background: #fef0e5; border-color: var(--terracotta); }
.pet-type-list li.active {
    background: var(--terracotta); color: white; border-color: var(--terracotta);
    box-shadow: 0 4px 16px rgba(224, 122, 61, 0.3);
}

.pet-type-icon {
    flex-shrink: 0; width: 28px; height: 28px;
    display: flex; align-items: center; justify-content: center;
    background: white; border-radius: 8px; padding: 3px;
}
.pet-type-icon img { width: 100%; height: 100%; object-fit: contain; }
.pet-type-list li.active .pet-type-icon { background: rgba(255, 255, 255, 0.25); }

/* ================================================================
   14. БЛОК «ВОПРОС-ОТВЕТ»
   ================================================================ */
.qa-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 60px; }

.qa-card {
    background: #f0f6ed; padding: 18px 16px; border-radius: var(--radius-md);
    transition: all var(--transition); border: 2px solid #d8e8d4;
    font-family: 'Segoe UI', sans-serif; font-size: 14px; font-weight: 600;
    color: var(--text-dark); display: flex; align-items: flex-start;
    gap: 10px; line-height: 1.4; text-decoration: none; cursor: pointer;
}
.qa-card:hover {
    background: var(--sage); color: white; border-color: var(--sage);
    transform: translateY(-3px); box-shadow: 0 6px 18px rgba(74, 103, 65, 0.2);
}
.qa-card:hover .qa-icon { transform: scale(1.2); }
.qa-icon { flex-shrink: 0; transition: transform var(--transition); }
.qa-icon-img { width: 24px; height: 24px; object-fit: contain; display: block; }
.qa-text { flex: 1; }

/* ================================================================
   15. ПОДВАЛ
   ================================================================ */
.site-footer {
    background-color: #2f3e2c; color: #f0e6d2;
    padding: 35px 0 20px; margin-top: 20px; border-radius: 30px 30px 0 0;
}

.footer-columns { display: grid; grid-template-columns: 1fr 1fr 1.2fr; gap: 30px; margin-bottom: 20px; }

.footer-col h4 {
    color: var(--terracotta); font-family: 'Segoe UI', sans-serif;
    margin-bottom: 18px; font-size: 18px; font-weight: 700;
}
.footer-col p, .footer-col a {
    color: #ddd2bd; text-decoration: none; font-size: 14px;
    display: block; margin-bottom: 9px; transition: color var(--transition);
}
.footer-col a:hover { color: white; }

.subscribe-form { display: flex; gap: 8px; flex-wrap: wrap; }
.subscribe-form input {
    padding: 12px 18px; border-radius: 25px; border: none;
    flex: 1; min-width: 160px; font-family: 'Segoe UI', sans-serif;
}
.subscribe-form button {
    background: var(--terracotta); border: none; padding: 12px 22px;
    border-radius: 25px; color: white; font-weight: 700; cursor: pointer;
    font-family: 'Segoe UI', sans-serif; transition: background var(--transition);
}
.subscribe-form button:hover { background: var(--terracotta-hover); }

/* ================================================================
   16. БЛОГ
   ================================================================ */
.blog-masonry-row:first-child { margin-top: 40px; }

.blog-hero {
    background: linear-gradient(135deg, #f5ebe0 0%, #e8f0e8 100%);
    padding: 50px 20px; text-align: center; margin-bottom: 40px;
    border-radius: 0 0 30px 30px;
}
.blog-hero h1 { font-size: 38px; color: var(--text-dark); margin-bottom: 8px; }
.blog-hero p { font-size: 17px; color: var(--text-muted); margin: 0; }

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

.blog-card--hero-style {
    border-radius: var(--radius-lg); overflow: hidden;
    box-shadow: var(--shadow-md); transition: all var(--transition);
}
.blog-card--hero-style:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.blog-card--hero-style .blog-card-img {
    height: 280px; background-size: cover; background-position: center;
    position: relative; display: flex; flex-direction: column; justify-content: flex-end;
}
.blog-card--hero-style .blog-card-overlay {
    background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.1) 60%, transparent 100%);
    padding: 50px 20px 22px; color: white; z-index: 1;
}
.blog-card--hero-style .blog-card-title {
    font-size: 18px; font-weight: 700; color: white; margin: 0;
    line-height: 1.3; text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}

.blog-pagination { text-align: center; margin-bottom: 60px; }
.blog-pagination a, .blog-pagination span {
    display: inline-block; padding: 10px 16px; margin: 0 4px;
    border-radius: 10px; font-family: 'Segoe UI', sans-serif;
    font-weight: 600; font-size: 15px; text-decoration: none;
    background: var(--white); color: var(--text-dark); border: 1px solid var(--border-light);
    transition: all var(--transition);
}
.blog-pagination a:hover { background: var(--terracotta); color: white; border-color: var(--terracotta); }
.blog-pagination .current { background: var(--terracotta); color: white; border-color: var(--terracotta); }
.blog-empty { text-align: center; font-size: 18px; color: var(--text-muted); padding: 60px 0; }

/* ================================================================
   17. КАТАЛОГ ПОРОД ПО АЛФАВИТУ
   ================================================================ */
.breed-search {
    display: flex; align-items: center; max-width: 400px; margin: 0 auto 24px;
    background: #f5f0e8; border-radius: 14px; overflow: hidden;
    border: 2px solid transparent; transition: all 0.3s ease;
}
.breed-search:focus-within { border-color: #d6c4ae; background: #fff; box-shadow: 0 4px 16px rgba(0,0,0,0.06); }
.breed-search input {
    flex: 1; border: none; background: transparent; padding: 12px 16px;
    font-size: 15px; color: #4a3a2a; outline: none; min-width: 0;
}
.breed-search input::placeholder { color: #b8a894; font-style: italic; }
.breed-search button {
    background: #e0d0bc; border: none; padding: 12px 16px;
    cursor: pointer; font-size: 18px; transition: background 0.2s; flex-shrink: 0;
}
.breed-search button:hover { background: #d4c0a8; }

.breed-alphabet {
    display: flex; flex-wrap: wrap; gap: 6px; justify-content: center;
    margin-bottom: 36px; position: sticky; top: 80px; z-index: 10;
    background: var(--cream); padding: 10px 0;
}
.breed-alphabet-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 38px; height: 38px; border-radius: 10px; font-size: 15px;
    font-weight: 700; font-family: 'Segoe UI', sans-serif; text-decoration: none;
    background: var(--white); color: var(--text-dark); border: 2px solid var(--border-light);
    transition: all var(--transition);
}
.breed-alphabet-btn:hover { background: var(--sage); color: white; border-color: var(--sage); }
.breed-alphabet-btn.empty { opacity: 0.3; pointer-events: none; }

.breed-catalog-section { margin-bottom: 36px; }
.breed-catalog-letter {
    font-size: 24px; font-weight: 700; color: var(--sage);
    margin-bottom: 16px; padding-bottom: 8px;
    border-bottom: 3px solid var(--border-light); scroll-margin-top: 140px;
}

.breed-catalog-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }

.breed-card {
    border-radius: var(--radius-lg); overflow: hidden;
    box-shadow: var(--shadow-md); transition: all var(--transition);
    text-decoration: none; color: inherit; display: block;
}
.breed-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.breed-card-img {
    height: 220px; background-size: cover; background-position: center;
    position: relative; display: flex; flex-direction: column; justify-content: flex-end;
}
.breed-card-overlay {
    background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.1) 60%, transparent 100%);
    padding: 40px 16px 18px; color: white; z-index: 1;
}
.breed-card-title {
    font-size: 16px; font-weight: 700; color: white; margin: 0;
    line-height: 1.3; text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}

/* ================================================================
   18. ГИПОАЛЛЕРГЕННЫЕ ПОРОДЫ
   ================================================================ */
.hypo-featured-grid, .hypo-posts-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 50px; }

/* ================================================================
   19. ШАБЛОН ЗАПИСИ
   ================================================================ */
.single-article { max-width: 800px; margin: 0 auto; padding: 20px 0 60px; }
.single-header { margin-bottom: 32px; }

.single-title {
    font-size: 32px; font-weight: 700; color: var(--text-dark);
    line-height: 1.3; text-align: left; padding-bottom: 10px;
    border-bottom: 3px solid var(--terracotta); display: inline-block;
    letter-spacing: -0.3px; margin-bottom: 15px;
}

.single-thumbnail { margin-top: 0; margin-bottom: 24px; }
.single-thumbnail-img { max-width: 100%; height: auto; border-radius: 8px; }

.single-content { font-family: 'Georgia', 'Times New Roman', serif; font-size: 18px; line-height: 1.8; color: #3b3b3b; }
.single-content h2 { font-size: 24px; font-weight: 700; color: var(--sage); margin: 40px 0 16px; border-bottom: none; padding: 0; display: block; text-align: left; }
.single-content h3 { font-size: 20px; font-weight: 700; color: var(--sage); margin: 30px 0 12px; }
.single-content a { color: var(--sage); text-decoration: underline; text-underline-offset: 3px; }
.single-content a:hover { color: #3d5635; }

.single-content ul { list-style: none; padding-left: 0; margin: 16px 0; }
.single-content ul li { position: relative; padding-left: 28px; margin-bottom: 10px; }
.single-content ul li::before {
    content: ''; position: absolute; left: 0; top: 4px; width: 18px; height: 18px;
    background-image: url('/wp-content/uploads/2026/07/ok.png');
    background-size: contain; background-repeat: no-repeat; background-position: center;
}

.single-tags {
    margin-top: 40px; padding-top: 20px; border-top: 2px solid var(--border-light);
    display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
}
.single-tags-label { font-size: 14px; font-weight: 700; color: var(--text-muted); }
.single-tag {
    display: inline-block; padding: 6px 14px; background: #f0f6ed;
    color: var(--sage); border-radius: 20px; font-size: 13px; font-weight: 600;
    font-family: 'Segoe UI', sans-serif; text-decoration: none; transition: all var(--transition);
}
.single-tag:hover { background: var(--sage); color: white; }

.single-related { margin-top: 40px; }
.single-related-title {
    font-size: 22px; font-weight: 700; color: var(--text-dark);
    margin-bottom: 20px; display: flex; align-items: center; gap: 8px;
}
.single-related-list { display: flex; flex-direction: column; gap: 12px; }

.related-item {
    display: flex; gap: 16px; text-decoration: none; color: inherit;
    background: var(--white); border-radius: var(--radius-sm); overflow: hidden;
    box-shadow: var(--shadow-sm); transition: all var(--transition); border: 1px solid var(--border-light);
}
.related-item:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.related-item-thumb { width: 140px; min-height: 90px; background-size: cover; background-position: center; flex-shrink: 0; }
.related-item-text { padding: 14px; display: flex; align-items: center; }
.related-item-text h3 { font-size: 16px; font-weight: 600; color: var(--text-dark); margin: 0; line-height: 1.3; }

/* ================================================================
   20. СТРАНИЦА МЕТОК
   ================================================================ */
.tag-posts-list { display: flex; flex-direction: column; gap: 14px; margin-bottom: 40px; }

.tag-post-item {
    display: flex; gap: 16px; text-decoration: none; color: inherit;
    background: var(--white); border-radius: var(--radius-sm); overflow: hidden;
    box-shadow: var(--shadow-sm); transition: all var(--transition); border: 1px solid var(--border-light);
}
.tag-post-item:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.tag-post-thumb { width: 140px; min-height: 100px; background-size: cover; background-position: center; flex-shrink: 0; }
.tag-post-text { padding: 14px; display: flex; flex-direction: column; justify-content: center; }
.tag-post-text h3 { font-size: 16px; font-weight: 600; color: var(--text-dark); margin: 0 0 6px; line-height: 1.3; }
.tag-post-date { font-size: 13px; color: var(--text-muted); }

/* ================================================================
   21. СТРАНИЦА КАЛЬКУЛЯТОРА
   ================================================================ */
.calculator-page-block {
    display: grid; grid-template-columns: 1fr 1fr; gap: 30px;
    max-width: 800px; margin: 30px auto; background: var(--white);
    border-radius: var(--radius-lg); padding: 28px;
    box-shadow: var(--shadow-md); border: 2px solid #c8dcc8;
}

.calc-form--page label {
    display: block; font-family: 'Segoe UI', sans-serif;
    font-weight: 600; font-size: 14px; margin-bottom: 4px; color: var(--sage);
}
.calc-form--page input,
.calc-form--page select {
    width: 100%; padding: 10px 14px; border-radius: 12px;
    border: 2px solid var(--border-light); margin-bottom: 14px;
    font-size: 15px; background: #fdfaf5;
    font-family: 'Segoe UI', sans-serif; transition: border-color var(--transition);
}
.calc-form--page input:focus,
.calc-form--page select:focus {
    outline: none; border-color: var(--sage);
    box-shadow: 0 0 0 3px rgba(74, 103, 65, 0.1);
}

.calc-result--page {
    background: #f0f6ed; padding: 24px; border-radius: var(--radius-md);
    text-align: center; font-family: 'Segoe UI', sans-serif;
    display: flex; flex-direction: column; justify-content: center;
}

/* ================================================================
   22. ХЛЕБНЫЕ КРОШКИ
   ================================================================ */
.breadcrumbs {
    padding-top: 28px; margin-bottom: 14px; font-family: 'Segoe UI', sans-serif;
    font-size: 14px; color: var(--text-muted);
}
.breadcrumbs a { color: var(--terracotta); text-decoration: none; font-weight: 500; }
.breadcrumbs a:hover { color: var(--terracotta-hover); text-decoration: underline; }
.breadcrumbs-sep { color: #d6c4ae; margin: 0 8px; }
.breadcrumbs-current { color: var(--text-dark); font-weight: 600; }

/* ================================================================
   23. ПОРОДЫ ПО РАЗМЕРУ
   ================================================================ */
.size-breeds-list { display: flex; flex-direction: column; gap: 24px; }
.size-breeds-letter-group { border-left: 3px solid var(--border-light); padding-left: 16px; }
.size-breeds-letter { font-size: 20px; font-weight: 700; color: var(--sage); margin-bottom: 10px; }
.size-breeds-columns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.size-breed-link {
    display: block; padding: 8px 12px; border-radius: 8px;
    font-size: 14px; font-weight: 500; font-family: 'Segoe UI', sans-serif;
    text-decoration: none; color: var(--text-dark); transition: all var(--transition);
}
.size-breed-link:hover { background: #f0f6ed; color: var(--sage); }

/* ================================================================
   24. ПРЕВЬЮ ФОТО
   ================================================================ */
.breed-preview {
    position: fixed; z-index: 999; pointer-events: none;
    opacity: 0; transition: opacity 0.2s; border-radius: var(--radius-md);
    overflow: hidden; box-shadow: var(--shadow-lg); width: 200px; height: 150px;
}
.breed-preview.visible { opacity: 1; }
.breed-preview img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ================================================================
   25. СПИСОК ГИПОАЛЛЕРГЕННЫХ ПОРОД
   ================================================================ */
.hypo-breeds-list { margin-bottom: 40px; }
.hypo-breeds-grid { display: grid; gap: 6px; }
.hypo-breed-link {
    display: block; padding: 8px 12px; border-radius: 8px;
    font-size: 14px; font-weight: 500; font-family: 'Segoe UI', sans-serif;
    text-decoration: none; color: var(--text-dark); transition: all var(--transition);
}
.hypo-breed-link:hover { background: #fef0e5; color: var(--terracotta); }
.hypo-breeds-col { display: flex; flex-direction: column; gap: 6px; }

/* ================================================================
   26. АСИММЕТРИЧНАЯ СЕТКА БЛОГА
   ================================================================ */
.blog-block-title { font-size: 22px; font-weight: 700; color: var(--text-dark); margin-bottom: 18px; }
.blog-block-more {
    display: inline-block; margin-top: 14px; font-size: 14px;
    font-weight: 600; color: var(--terracotta); text-decoration: none;
    font-family: 'Segoe UI', sans-serif;
}
.blog-block-more:hover { color: var(--terracotta-hover); }

.blog-masonry-row { display: grid; gap: 28px; margin-bottom: 50px; grid-template-columns: 2fr 1fr; }
.blog-masonry-row--three { grid-template-columns: 1fr 1fr 1fr; }
.blog-masonry-col--wide, .blog-masonry-col--narrow, .blog-masonry-col--equal { min-width: 0; }

.blog-list-wide { display: flex; flex-direction: column; gap: 14px; }
.blog-list-item {
    display: flex; gap: 16px; text-decoration: none; color: inherit;
    background: var(--white); border-radius: var(--radius-sm); overflow: hidden;
    box-shadow: var(--shadow-sm); transition: all var(--transition); border: 1px solid var(--border-light);
}
.blog-list-item:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.blog-list-thumb { width: 140px; min-height: 100px; background-size: cover; background-position: center; flex-shrink: 0; }
.blog-list-text { padding: 14px; display: flex; flex-direction: column; justify-content: center; }
.blog-list-text h3 { font-size: 16px; font-weight: 600; color: var(--text-dark); margin: 4px 0; line-height: 1.3; }
.blog-list-cat { font-size: 11px; color: var(--terracotta); font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }
.blog-list-date { font-size: 12px; color: var(--text-muted); }

.blog-featured-card { margin-bottom: 16px; }
.blog-featured-link { text-decoration: none; color: inherit; display: block; }
.blog-featured-img {
    height: 320px; background-size: cover; background-position: center;
    border-radius: var(--radius-md); position: relative; overflow: hidden;
    display: flex; align-items: flex-end;
}
.blog-featured-img--small { height: 180px; }
.blog-featured-overlay {
    background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.1) 60%, transparent 100%);
    padding: 40px 20px 22px; color: white; width: 100%;
}
.blog-featured-overlay h3 { font-size: 18px; font-weight: 700; color: white; margin: 6px 0 0; line-height: 1.3; }
.blog-featured-label { font-size: 12px; font-weight: 700; background: var(--terracotta); padding: 4px 12px; border-radius: 15px; }

.blog-list-compact { display: flex; flex-direction: column; gap: 8px; }
.blog-list-compact-item {
    display: flex; justify-content: space-between; align-items: center;
    padding: 10px 14px; background: #faf7f2; border-radius: 10px;
    text-decoration: none; color: var(--text-dark); font-size: 14px; font-weight: 500;
    transition: all var(--transition);
}
.blog-list-compact-item:hover { background: #f0e6d8; }
.blog-list-compact-item span { font-size: 12px; color: var(--text-muted); flex-shrink: 0; margin-left: 10px; }

/* Скрываем мобильную версию карточек на ПК */
.article-carousel-link--mobile {
    display: none;
}

/* Скрывать шапку при скролле вниз (только М) */
@media (max-width: 600px) {
    .site-header {
        transition: transform 0.3s ease;
    }
    .site-header.hide {
        transform: translateY(-100%);
    }
}
/* ================================================================
   27. АДАПТИВНОСТЬ (MEDIA QUERIES)
   ================================================================ */

/* Планшеты (до 900px) */
@media (max-width: 900px) {
    .header-search { width: 100%; order: 4; min-width: 0; }

    .categories-grid { grid-template-columns: 1fr; }
    .category-card-main { gap: 16px; padding: 24px 20px 16px; }
    .category-card-icon img { width: 56px; height: 56px; }
    .category-card-info h3 { font-size: 22px; }
    .category-card-info p { font-size: 15px; }
    .category-card-subs { margin: 0 20px; padding: 0 20px 22px; }
    .subs-tags--two-cols a { font-size: 14px; padding: 12px 14px; }

    .blog-grid { grid-template-columns: repeat(2, 1fr); }
    .blog-masonry-row { grid-template-columns: 1fr; }
    .blog-masonry-row--three { grid-template-columns: 1fr 1fr; }
    .blog-list-thumb { width: 100px; }

    .articles-carousel-card { flex: 0 0 300px; }
    .articles-carousel-title { font-size: 16px; }

    .breed-catalog-grid { grid-template-columns: repeat(3, 1fr); }
    .hypo-featured-grid, .hypo-posts-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Телефоны (до 600px) */
@media (max-width: 600px) {
    .header-inner { flex-direction: column; align-items: flex-start; }

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

    .blog-grid { grid-template-columns: 1fr; }
    .blog-masonry-row--three { grid-template-columns: 1fr; }
    .blog-list-thumb { width: 80px; }
    .blog-featured-img { height: 220px; }

    .breed-catalog-grid { grid-template-columns: repeat(2, 1fr); }
    .breed-alphabet-btn { width: 32px; height: 32px; font-size: 13px; }
    .breed-card-img { height: 180px; }

    .hypo-featured-grid, .hypo-posts-grid { grid-template-columns: 1fr; }

    .calculator-page-block { grid-template-columns: 1fr; }
    .calc-vet-row { grid-template-columns: 1fr; }
    .calculator-block--compact, .vet-block--compact { flex: none; }

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

    .single-title { font-size: 26px; }
    .single-content { font-size: 16px; }
    .related-item-thumb { width: 100px; }

    .size-breeds-columns { grid-template-columns: repeat(2, 1fr); }
    .hypo-breeds-grid { grid-template-columns: repeat(2, 1fr) !important; }
    /* Типографика — М */
    h1 {
        font-size: 1.4rem;
    }
    h2 {
        font-size: 1.15rem;
    }
    h3 {
        font-size: 1rem;
    }
    .section-title {
        font-size: 17px;
        margin: 16px 0 6px;
        padding-bottom: 4px;
        border-bottom-width: 2px;
    }
    .section-title-icon {
        width: 18px;
        height: 18px;
    }
    p {
        font-size: 14px;
    }
    .container {
        padding: 0 14px;
    }
    h1, h2, h3, .section-title {
        word-break: break-word;
        hyphens: auto;
    }
	
    /* Скрыть Кошки и Собаки */
    .main-nav .nav-card:nth-child(1),
    .main-nav .nav-card:nth-child(2) {
        display: none;
    }

    /* Порядок: логотип → поиск → кнопки */
    .header-inner {
        display: flex;
        flex-direction: column;
    }
    .logo { order: 1; }
    .header-search { order: 2; width: 100%; }
    .main-nav { order: 3; width: 100%; justify-content: center; }

    /* Отступ для кнопок разделов */
    .category-card-subs {
        margin-top: 16px;
        padding-top: 16px;
    }

    /* Последние статьи — М */
    .articles-carousel {
        display: flex;
        flex-direction: column;
        gap: 12px;
        overflow-x: visible;
        padding: 0 !important;
    }
    .articles-carousel-card {
        width: 100%;
        background: transparent;
        border: none;
        box-shadow: none;
        overflow: visible;
        border-radius: 0;
    }
    .articles-carousel-card:nth-child(n+6) {
        display: none;
    }
    .article-carousel-link--pc {
        display: none !important;
        height: 0 !important;
        min-height: 0 !important;
        max-height: 0 !important;
        overflow: hidden !important;
        position: absolute !important;
        visibility: hidden !important;
    }
    .article-carousel-link--mobile {
        display: flex !important;
    }

    .articles-carousel-wrapper .article-carousel-card {
        flex-basis: auto !important;
        height: auto !important;
        min-height: 0 !important;
    }
	
	    /* Особенности породы — М: скрыть все карточки начиная с 4-й */
    .articles-carousel-wrapper:nth-of-type(2) .articles-carousel-card:nth-child(n+4) {
        display: none;
    }
	
    /* Кнопка "Смотреть все" */
    .mobile-blog-btn {
        display: block !important;
        text-align: center;
        margin-top: 20px;
        margin-bottom: 40px;
    }

	    /* Кнопки пород под особенностями — в одну строку */
    .full-list-btn {
        display: inline-block;
        padding: 10px 16px;
        font-size: 13px;
        margin: 4px !important;
        white-space: nowrap;
    }
    .full-list-icon {
        width: 16px;
        height: 16px;
        margin-right: 4px;
    }
	
    /* Мобильный баннер */
    .hero {
        background-image: url('/wp-content/uploads/2026/07/banner-mini-1.png');
        min-height: 250px;
        padding: 40px 24px;
        background-size: cover;
        background-position: center;
    }
    .hero h1 { font-size: 28px; }
    .hero p { font-size: 16px; }

    /* Футер — М */
    .footer-columns {
        grid-template-columns: 1fr 1fr;
        gap: 16px 20px;
    }
    .footer-col:first-child {
        grid-column: 1 / -1;
        text-align: center;
    }
    .footer-col h4 {
        font-size: 15px;
        margin-bottom: 10px;
    }
    .footer-col p {
        font-size: 12px;
        padding: 0;
        margin-bottom: 0;
    }
    .footer-col a {
        font-size: 12px;
        display: flex;
        align-items: center;
        gap: 4px;
        margin-bottom: 6px;
    }
    .footer-col .full-list-icon {
        width: 14px;
        height: 14px;
        margin-right: 4px;
    }
    .copyright {
        text-align: center;
        font-size: 11px;
        padding: 0;
    }
    .footer-columns {
        margin-bottom: 12px;
    }
    .site-footer hr {
        margin: 8px 0;
    }
    .site-footer {
        padding: 20px 0 12px;
    }

    /* 404 — М */
    .error404 .container > div {
        padding: 40px 16px !important;
    }
    .error404 h1 {
        font-size: 1.6rem !important;
    }
    .error404 > div > p {
        font-size: 15px !important;
        margin-bottom: 20px !important;
    }
    .error404 .section-title {
        font-size: 16px !important;
    }
    .error404 .categories-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
    .error404 .category-card h3 {
        font-size: 15px !important;
    }
    .error404 .category-card p {
        font-size: 12px !important;
    }

    .error404 .category-card h3 {
        font-size: 15px !important;
        font-weight: 700;
    }
    .error404 .category-card {
        padding: 16px 12px !important;
    }
    .error404 .category-card .category-card-icon img {
        width: 48px;
        height: 48px;
    }
    .error404 .category-card {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding: 20px 12px !important;
        text-align: center;
    }
    .error404 .category-card .category-card-icon {
        margin-bottom: 8px;
    }
    .error404 .category-card .category-card-icon img {
        width: 48px;
        height: 48px;
    }
    .error404 .category-card h3 {
        margin: 0 0 4px !important;
    }
    .error404 .category-card p {
        margin: 0;
    }

	    /* Универсальный шаблон рубрик — М */
    .breadcrumbs {
        font-size: 12px;
        padding-top: 16px;
    }
    .subcat-tabs {
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
    }
    .subcat-tab {
        font-size: 12px;
        padding: 8px 6px;
        border-radius: 10px;
    }
    .subcat-panel {
        padding: 16px;
    }
    .subcat-panel-grid {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
    .subcat-panel-btn {
        font-size: 12px;
        padding: 8px 10px;
        border-radius: 10px;
    }
    .subcat-panel-btn--level2 {
        font-size: 12px;
        padding: 8px 10px;
    }
    .subcat-panel-btn--level3 {
        font-size: 11px !important;
        padding: 6px 8px !important;
    }
    .subcat-preview-title {
        font-size: 16px;
    }
    .articles-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
    .article-grid-img {
        height: 140px;
    }
    .article-grid-text {
        font-size: 13px;
        padding: 10px 12px;
    }
    .blog-masonry-row {
        grid-template-columns: 1fr !important;
        gap: 16px;
    }
    .blog-masonry-row--three {
        grid-template-columns: 1fr 1fr !important;
        gap: 12px;
    }
    .blog-featured-img {
        height: 200px;
    }
    .blog-featured-img--small {
        height: 140px;
    }
    .blog-featured-overlay h3 {
        font-size: 14px;
    }
    .blog-list-item {
        gap: 12px;
    }
    .blog-list-thumb {
        width: 100px;
        min-height: 70px;
    }
    .blog-list-text h3 {
        font-size: 14px;
    }
    .blog-list-date {
        font-size: 11px;
    }
	
	
	
}
/* Маленькие телефоны (до 480px) */
@media (max-width: 480px) {
    .size-breeds-columns { grid-template-columns: 1fr; }
    .hypo-breeds-grid { grid-template-columns: 1fr !important; }
}