/*
Theme Name: BuyCar Check - Professional Buying Guide
Author: PBN Creative
Description: Чистый, аналитический дизайн для портала о покупке авто. Акцент на проверке, чек-листах и безопасности сделки.
Version: 1.0.0
*/

:root {
    /* Colors - Analytical & Safe */
    --bg: #ffffff;
    --surface: #f0f7f4; /* Very Light Mint */
    --surface-dark: #1b4332; /* Deep Jungle Green */
    --primary: #2d6a4f; /* Forest Green */
    --secondary: #52b788; /* Soft Green */
    --accent: #ff9f1c; /* Alert Orange for focus */
    --text: #081c15;
    --text-muted: #40916c;
    --border: #d8f3dc;
    
    /* Spacing */
    --gap: 2.5rem;
    --header-height: 90px;
    --container-width: 1140px;
    
    /* Fonts */
    --font-display: 'Inter', system-ui, sans-serif;
    --font-body: 'Inter', system-ui, sans-serif;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { 
    background-color: var(--bg); 
    color: var(--text); 
    font-family: var(--font-body); 
    line-height: 1.6; 
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
a { color: inherit; text-decoration: none; transition: 0.3s; }
ul { list-style: none; }

.container { 
    width: 100%;
    max-width: var(--container-width); 
    margin: 0 auto; 
    padding: 0 var(--gap); 
}

/* Typography */
h1, h2, h3 { font-weight: 900; line-height: 1.1; letter-spacing: -0.04em; color: var(--surface-dark); }

/* Header - Modern Minimalist */
.site-header {
    height: var(--header-height);
    background: #fff;
    border-bottom: 2px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    font-size: 1.5rem;
    font-weight: 950;
    text-transform: uppercase;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.logo span { color: var(--text); }
.logo::before {
    content: '✓';
    width: 32px; height: 32px;
    background: var(--primary);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    border-radius: 8px;
    font-size: 1.2rem;
}

.main-nav ul { display: flex; gap: 3rem; }
.main-nav a { 
    font-weight: 700; 
    font-size: 0.85rem; 
    text-transform: uppercase;
    color: var(--text-muted);
}
.main-nav a:hover, .main-nav .current-menu-item a { color: var(--primary); }

.menu-toggle { display: none; background: var(--primary); color: #fff; border: none; padding: 0.8rem; cursor: pointer; border-radius: 6px; }
.hamburger { width: 20px; height: 2px; background: currentColor; position: relative; display: block; }
.hamburger::before, .hamburger::after { content: ''; position: absolute; width: 100%; height: 2px; background: currentColor; left: 0; transition: 0.3s; }
.hamburger::before { top: -6px; }
.hamburger::after { top: 6px; }

/* Hero - Option C: Full Height Centered / Floating Info */
.hero {
    padding: 12rem 0;
    background: var(--surface);
    position: relative;
    overflow: hidden;
    text-align: center;
}

.hero-content { position: relative; z-index: 2; max-width: 800px; margin: 0 auto; }
.hero-label {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    background: var(--primary);
    color: #fff;
    font-weight: 900;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 2.5rem;
    border-radius: 50px;
}

.hero h1 { font-size: clamp(2.8rem, 6vw, 5rem); margin-bottom: 3rem; }
.hero h1 span { color: var(--secondary); }
.hero-desc { font-size: 1.25rem; color: var(--text-muted); margin-bottom: 5rem; }

.btn-start {
    background: var(--surface-dark);
    color: #fff;
    padding: 1.5rem 4rem;
    font-weight: 900;
    text-transform: uppercase;
    font-size: 0.9rem;
    border-radius: 12px;
    display: inline-block;
    transition: 0.4s;
    border: none;
}
.btn-start:hover { background: var(--primary); transform: translateY(-5px); box-shadow: 0 20px 40px rgba(45, 106, 79, 0.2); }

/* Analysis Categories */
.analysis-section { padding: 10rem 0; background: #fff; }
.analysis-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2.5rem;
}
.analysis-card {
    padding: 3.5rem 2.5rem;
    background: var(--bg);
    border: 2px solid var(--border);
    border-radius: 24px;
    transition: 0.3s;
}
.analysis-card:hover { border-color: var(--primary); transform: translateY(-8px); }
.analysis-card h3 { font-size: 1.25rem; margin-bottom: 1.5rem; }
.analysis-card p { font-size: 0.9rem; color: var(--text-muted); }

/* Risk Block */
.risk-block {
    padding: 8rem 0;
    background: var(--surface-dark);
    color: #fff;
}
.risk-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.risk-inner h2 { color: #fff; font-size: 3rem; margin-bottom: 3rem; }
.risk-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4rem;
    max-width: 1000px;
}
.risk-item h4 { color: var(--accent); margin-bottom: 1rem; font-size: 1.1rem; }
.risk-item p { opacity: 0.7; font-size: 0.95rem; }

/* Post Grid */
.posts-section { padding: 10rem 0; }
.post-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4rem;
    padding-bottom: 8rem;
}

.post-card { display: flex; flex-direction: column; }
.card-img-wrap {
    aspect-ratio: 16/9;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 2.5rem;
    background: var(--surface);
}
.card-img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }
.post-card:hover .card-img { transform: scale(1.08); }

.card-title { font-size: 1.55rem; margin-bottom: 1.5rem; line-height: 1.25; }
.card-excerpt { font-size: 1rem; color: var(--text-muted); margin-bottom: 2.5rem; flex-grow: 1; }
.btn-more {
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.8rem;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
}
.btn-more::after { content: ''; width: 25px; height: 2px; background: var(--secondary); transition: 0.3s; }
.post-card:hover .btn-more::after { width: 45px; background: var(--primary); }

/* Single Content Styles */
.single-post-header { padding: 8rem 0; background: var(--surface); text-align: center; border-bottom: 1px solid var(--border); }
.single-post-header h1 { font-size: 3.5rem; max-width: 900px; margin: 0 auto; }
.breadcrumbs { justify-content: center; margin-bottom: 3rem; font-weight: 800; color: var(--text-muted); text-transform: uppercase; font-size: 0.75rem; letter-spacing: 0.1em; }
.breadcrumbs .sep { margin: 0 1rem; color: var(--primary); }

.single-post-layout { max-width: 850px; margin: 6rem auto 10rem; }
.post-content-body { font-size: 1.15rem; line-height: 1.85; color: var(--text); }
.post-content-body h2 { font-size: 2.2rem; margin: 4.5rem 0 2rem; color: var(--primary); }

.post-content-body li { 
    list-style: none;
    margin-bottom: 1.2rem; 
    padding: 1.5rem 2.5rem 1.5rem 5rem;
    background: #fff;
    border: 2px solid var(--border);
    position: relative;
    border-radius: 16px;
    transition: 0.3s;
}
.post-content-body li::before {
    content: '✓';
    position: absolute;
    left: 1.5rem; top: 1.5rem;
    width: 2rem; height: 2rem;
    background: var(--surface);
    color: var(--primary);
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    font-weight: 900;
}
.post-content-body li:hover { border-color: var(--primary); transform: translateX(5px); }

/* Pagination */
.pagination-container { margin: 6rem 0; display: flex; justify-content: center; }
.pagination-list { display: flex; gap: 0.8rem; }
.pagination-item a, .pagination-item span {
    width: 60px; height: 60px;
    display: flex; align-items: center; justify-content: center;
    border: 2px solid var(--border);
    border-radius: 12px;
    font-weight: 800;
}
.pagination-item.is-active span { background: var(--primary); color: #fff; border-color: var(--primary); }

/* Footer */
.site-footer {
    padding: 8rem 0 4rem;
    background: var(--surface-dark);
    color: #fff;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 8rem;
    margin-bottom: 8rem;
}
.footer-col h4 { font-size: 0.9rem; color: var(--secondary); text-transform: uppercase; margin-bottom: 3.5rem; letter-spacing: 0.1em; }
.footer-links li { margin-bottom: 1.5rem; }
.footer-links a { color: rgba(255,255,255,0.4); font-weight: 600; }
.footer-links a:hover { color: #fff; }

.footer-bottom {
    padding-top: 3rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.3);
}

/* Mobile */
@media (max-width: 1024px) {
    .main-nav { display: none; }
    .main-nav.is-active {
        display: block; position: fixed; top: var(--header-height); left: 0; width: 100%; height: 100vh;
        background: #fff; padding: 4rem 0; z-index: 999;
    }
    .main-nav.is-active ul { flex-direction: column; align-items: center; gap: 2.5rem; }
    .menu-toggle { display: block; }
    .analysis-grid { grid-template-columns: repeat(2, 1fr); }
    .risk-list { grid-template-columns: 1fr; gap: 3rem; }
}

@media (max-width: 768px) {
    .analysis-grid { grid-template-columns: 1fr; }
    .post-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 4rem; }
}
