/*
Theme Name: PBMSK Reviews
Author: Senior Frontend Designer
Description: Концепция "Review Hub": Глубокий анализ, индустриальная точность и доверие.
Version: 1.8.0
Text Domain: pbmsk
*/

:root {
    /* Colors - Deep Industrial Review */
    --bg: #0a0c10;
    --surface: #12151c;
    --surface-light: #1a1e26;
    --primary: #3b82f6; /* Trust Blue */
    --primary-dim: rgba(59, 130, 246, 0.1);
    --accent: #10b981; /* Success Green */
    --text: #f1f5f9;
    --text-muted: #94a3b8;
    --border: #262c36;
    
    /* Spacing */
    --gap: 2rem;
    --header-height: 80px;
    --container-width: 1320px;
    
    /* Fonts */
    --font-display: 'Syne', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'IBM Plex Mono', monospace;
}

/* 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 { max-width: var(--container-width); margin: 0 auto; padding: 0 var(--gap); }

/* Typography */
h1, h2, h3 { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; line-height: 1.1; letter-spacing: -0.02em; }
.text-mono { font-family: var(--font-mono); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; }

/* Header - Rigid Grid Nav */
.site-header {
    height: var(--header-height);
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 4rem;
}

.logo {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 900;
    letter-spacing: -1px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.logo span { color: var(--primary); }

.main-nav { flex-grow: 1; display: flex; justify-content: flex-end; }
.main-nav ul { display: flex; gap: 3.5rem; }
.main-nav a { font-family: var(--font-mono); font-size: 0.8rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; }
.main-nav a:hover, .main-nav .current-menu-item a { color: var(--primary); }

.menu-toggle { display: none; background: none; border: 1px solid var(--border); padding: 0.5rem; cursor: pointer; border-radius: 4px; }
.hamburger { width: 20px; height: 2px; background: var(--text); position: relative; display: block; }
.hamburger::before, .hamburger::after { content: ''; position: absolute; width: 20px; height: 2px; background: var(--text); left: 0; transition: 0.3s; }
.hamburger::before { top: -6px; }
.hamburger::after { top: 6px; }

.menu-toggle.is-active .hamburger { background: transparent; }
.menu-toggle.is-active .hamburger::before { transform: rotate(45deg); top: 0; }
.menu-toggle.is-active .hamburger::after { transform: rotate(-45deg); top: 0; }

/* Hero - Industrial Impact */
.hero {
    padding: calc(var(--header-height) + 6rem) 0 8rem;
    background: radial-gradient(circle at 90% 10%, var(--primary-dim) 0%, transparent 40%);
    border-bottom: 1px solid var(--border);
}

.hero-inner { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 4rem; align-items: center; }
.hero h1 { font-size: clamp(3rem, 8vw, 6rem); margin-bottom: 2.5rem; }
.hero-desc { font-size: 1.4rem; color: var(--text-muted); max-width: 650px; line-height: 1.4; }

.hero-banner-img {
    width: 100%;
    border-radius: 12px;
    border: 1px solid var(--border);
    box-shadow: 0 30px 60px rgba(0,0,0,0.5);
    transition: transform 0.5s;
}

/* Review Grid */
.section-header {
    padding: 6rem 0 3rem;
    border-bottom: 1px solid var(--border);
    margin-bottom: 4rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.section-header h2 { font-size: 2.5rem; }

.post-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 3rem;
    padding-bottom: 8rem;
}

.post-card {
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--border);
    position: relative;
    min-width: 0;
}

.card-img-wrap {
    aspect-ratio: 16/10;
    overflow: hidden;
    border-bottom: 1px solid var(--border);
}

.card-img { width: 100%; height: 100%; object-fit: cover; transition: 0.6s; filter: grayscale(0.5); }
.post-card:hover .card-img { transform: scale(1.05); filter: grayscale(0); }

.card-body { padding: 2.5rem; flex-grow: 1; display: flex; flex-direction: column; }
.card-category { color: var(--primary); font-family: var(--font-mono); font-size: 0.75rem; margin-bottom: 1rem; display: block; }
.card-title { font-size: 1.6rem; margin-bottom: 1.5rem; text-transform: none; line-height: 1.2; font-weight: 700; }
.card-excerpt { color: var(--text-muted); font-size: 1rem; margin-bottom: 2.5rem; flex-grow: 1; }

.btn-pbmsk {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text);
    padding: 1rem 0;
    border-top: 1px solid var(--border);
    width: 100%;
    margin-top: auto;
}

.btn-pbmsk:hover { color: var(--primary); }

/* Feature Blocks */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    margin-bottom: 6rem;
}

.feature-item {
    background: var(--bg);
    padding: 3rem 2rem;
}

.feature-item h3 { font-size: 0.9rem; margin-bottom: 1rem; color: var(--primary); }
.feature-item p { font-size: 0.85rem; color: var(--text-muted); }

/* Pagination */
.pagination-container { padding-bottom: 8rem; }
.pagination-list { display: flex; justify-content: center; gap: 0.5rem; }
.pagination-item a, .pagination-item span {
    width: 50px; height: 50px;
    display: flex; align-items: center; justify-content: center;
    border: 1px solid var(--border);
    font-family: var(--font-mono);
}
.pagination-item.is-active span { background: var(--primary); color: #fff; border-color: var(--primary); }

/* Footer */
.site-footer {
    background: var(--surface);
    padding: 8rem 0 4rem;
    border-top: 1px solid var(--border);
}

.footer-main {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 4rem;
    margin-bottom: 6rem;
}

.footer-col h4 { font-family: var(--font-mono); font-size: 0.75rem; color: var(--primary); margin-bottom: 2rem; letter-spacing: 0.2em; }
.footer-contact-item { margin-bottom: 2rem; }
.footer-contact-item label { display: block; font-size: 0.65rem; color: var(--text-muted); text-transform: uppercase; margin-bottom: 0.5rem; }
.footer-contact-item span { font-size: 1.1rem; }

.footer-bottom {
    padding-top: 3rem;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* Mobile Adjustments */
@media (max-width: 991px) {
    .header-inner { gap: 2rem; }
    .main-nav { display: none; }
    .main-nav.is-active { 
        display: block; 
        position: absolute; top: 100%; left: 0; width: 100%; 
        background: var(--surface); padding: 2rem; border-bottom: 1px solid var(--border);
    }
    .menu-toggle { display: block; }
    .hero-inner { grid-template-columns: 1fr; gap: 3rem; }
    .hero h1 { font-size: 3rem; }
}

@media (max-width: 640px) {
    .post-grid { grid-template-columns: 1fr; }
    .feature-grid { grid-template-columns: 1fr; }
    .footer-main { grid-template-columns: 1fr; }
}

/* Single Content */
.page-content { max-width: 840px; margin: 0 auto; padding: calc(var(--header-height) + 4rem) 0 8rem; }
.content { font-size: 1.15rem; line-height: 1.8; }
.content h2, .content h3 { margin: 3rem 0 1.5rem; color: var(--primary); }
.content p { margin-bottom: 1.5rem; }
.post-meta-single { margin-bottom: 3rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--border); color: var(--primary); }
.post-featured-image { margin-bottom: 4rem; border-radius: 12px; overflow: hidden; border: 1px solid var(--border); }
