/*
Theme Name: ProduktGid
Theme URI: https://полезноенеполезное.рф
Author: ProduktGid Team
Description: Кастомная тема для сайта о пользе и вреде продуктов питания
Version: 2.0.0
*/
html, body {
    background: #ffffff !important;
    color-scheme: light;
}
:root {
    /* Тёмная основа */
    --bg-primary: #1a1a1a;
    --bg-secondary: #242424;
    --bg-card: #2a2a2a;
    --bg-hover: #333333;
    
    /* Текст */
    --text-primary: #f5f5f5;
    --text-secondary: #a0a0a0;
    --text-muted: #666666;
    
    /* Границы */
    --border-color: #333333;
    --border-light: #404040;
    
    /* Акценты */
    --accent-green: #4ade80;
    --accent-green-dark: #22c55e;
    --accent-red: #f87171;
    --accent-red-dark: #ef4444;
    --accent-orange: #fb923c;
    --accent-blue: #60a5fa;
    
    /* Шрифты */
    --font-main: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    
    /* Размеры */
    --spacing-xs: 8px;
    --spacing-sm: 16px;
    --spacing-md: 24px;
    --spacing-lg: 40px;
    --spacing-xl: 64px;
    
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 16px;
    
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.4);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-main);
    font-size: 18px;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-primary);
    -webkit-font-smoothing: antialiased;
}

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

a {
    color: var(--accent-blue);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--accent-green);
}

h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
}

h1 { font-size: 42px; }
h2 { font-size: 32px; }
h3 { font-size: 24px; }

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

/* ШАПКА */
.site-header {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    padding: 20px 0;
}

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

.site-title a {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
}

.main-menu {
    display: flex;
    list-style: none;
    gap: 24px;
}

.main-menu a {
    color: var(--text-secondary);
    font-weight: 500;
}

.main-menu a:hover {
    color: var(--text-primary);
}

/* HERO */
.hero {
    padding: 80px 0;
    text-align: center;
}

.hero h1 {
    margin-bottom: var(--spacing-md);
}

.hero-subtitle {
    font-size: 20px;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 16px;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
}

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

.btn-primary:hover {
    background: var(--accent-green);
    color: #1a1a1a;
}

.btn-secondary {
    background: var(--accent-orange);
    color: #1a1a1a;
}

.btn-secondary:hover {
    background: #f59e0b;
}

/* КАТЕГОРИИ */
.categories-section {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.category-card {
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 32px 20px;
    text-align: center;
    transition: all 0.2s;
}

.category-card:hover {
    border-color: var(--accent-green);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.category-icon {
    font-size: 48px;
    margin-bottom: 12px;
}

.category-name {
    font-size: 18px;
    color: var(--text-primary);
}

/* ПРОДУКТЫ */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    padding: 40px 0;
}

.product-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px;
    transition: all 0.2s;
}

.product-card:hover {
    border-color: var(--accent-blue);
    box-shadow: var(--shadow-md);
}

.product-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
}

.product-card .verdict {
    display: inline-block;
    background: var(--accent-green-dark);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

/* ПОДВАЛ */
.site-footer {
    background: var(--bg-secondary);
    padding: 60px 0 20px;
    margin-top: 80px;
    border-top: 1px solid var(--border-color);
}

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

.footer-col h4 {
    color: var(--text-primary);
    margin-bottom: 16px;
}

.footer-col p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
}

.disclaimer {
    margin-top: 8px;
    font-size: 13px;
    color: var(--text-muted);
}

/* АДАПТИВНОСТЬ */
@media (max-width: 768px) {
    h1 { font-size: 32px; }
    h2 { font-size: 26px; }
    
    .hero { padding: 40px 0; }
    
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
}