/*
Theme Name: RemontChecklist Portal
Author: Senior Frontend Designer
Description: Концепция "Blueprint Grid": Асимметричный лейаут, акценты на интерактивных чек-листах и типографика "чертежного" стиля.
Version: 1.0.0
Text Domain: remontchecklist
*/

:root {
    /* Colors - Technical & Clean */
    --bg: #fdfdfd;
    --surface: #f1f3f5;
    --surface-dark: #1e1e1e;
    --primary: #2d5a27; /* Construction Green */
    --accent: #f39c12; /* Warning Orange */
    --text: #2c3e50;
    --text-muted: #7f8c8d;
    --border: #e9ecef;
    
    /* Spacing */
    --gap: 2rem;
    --header-height: 100px;
    --container-width: 1300px;
    
    /* Fonts */
    --font-display: 'Montserrat', sans-serif;
    --font-body: 'Inter', 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-family: var(--font-display); font-weight: 900; line-height: 1.1; color: var(--surface-dark); text-transform: uppercase; }

/* Header - Asymmetric Sidebar-Nav Design */
.site-header {
    height: var(--header-height);
    background: #fff;
    border-bottom: 3px solid var(--surface-dark);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 900;
    color: #fff;
    background: var(--surface-dark);
    padding: 0.8rem 2rem;
    clip-path: polygon(0 0, 100% 0, 90% 100%, 0% 100%);
    flex-shrink: 0;
}
.logo span { color: var(--accent); }

.main-nav ul { display: flex; gap: 3.5rem; }
.main-nav a { 
    font-weight: 800; 
    font-size: 0.85rem; 
    text-transform: uppercase;
    color: var(--text-muted);
    position: relative;
}
.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -10px; left: 0; width: 0; height: 3px;
    background: var(--accent);
    transition: 0.3s;
}
.main-nav a:hover::after, .main-nav .current-menu-item a::after { width: 100%; color: var(--surface-dark); }

.menu-toggle { display: none; background: var(--surface-dark); color: #fff; border: none; padding: 1rem; cursor: pointer; border-radius: 4px; }
.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 B: Image Left (with Mask), Text Right */
.hero {
    padding: 8rem 0;
    background: var(--surface);
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 8rem;
    align-items: center;
}

.hero-image-wrap {
    position: relative;
}
.hero-image {
    width: 100%;
    aspect-ratio: 1/1;
    background: url('banner.png') center/cover;
    clip-path: polygon(10% 0, 100% 0, 90% 100%, 0% 100%);
    box-shadow: -20px 20px 0 var(--accent);
    filter: contrast(1.1);
}

.hero-content { position: relative; }
.hero h1 { font-size: clamp(3rem, 6vw, 4.5rem); margin-bottom: 2.5rem; }
.hero h1 span { color: var(--accent); background: var(--surface-dark); padding: 0 1rem; }
.hero-desc { font-size: 1.2rem; color: var(--text-muted); margin-bottom: 4rem; max-width: 550px; }

.btn-checklist {
    background: var(--primary);
    color: #fff;
    padding: 1.5rem 3.5rem;
    font-weight: 900;
    text-transform: uppercase;
    font-size: 0.9rem;
    display: inline-block;
    border-radius: 4px;
    box-shadow: 10px 10px 0 var(--surface-dark);
}
.btn-checklist:hover { transform: translate(-5px, -5px); box-shadow: 15px 15px 0 var(--accent); }

/* Checklist Categories */
.checklist-nav { padding: 10rem 0; background: #fff; }
.checklist-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 3rem;
}

.checklist-card {
    padding: 3rem;
    background: var(--surface);
    border: 1px solid var(--border);
    transition: 0.3s;
    min-width: 0;
}
.checklist-card:hover { transform: translateY(-10px); background: #fff; border-color: var(--accent); box-shadow: 0 20px 40px rgba(0,0,0,0.05); }
.checklist-num { font-size: 0.8rem; font-weight: 800; color: var(--accent); margin-bottom: 2rem; display: block; }
.checklist-card h3 { font-size: 1.2rem; margin-bottom: 1rem; }

/* Post Grid */
.section-header {
    margin-bottom: 5rem;
    padding-bottom: 2rem;
    border-bottom: 5px solid var(--surface-dark);
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

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

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

.card-img-wrap {
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
}
.card-img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }
.post-card:hover .card-img { transform: scale(1.1); }

.card-body { padding: 2.5rem; flex-grow: 1; display: flex; flex-direction: column; }
.card-meta { font-size: 0.75rem; font-weight: 800; color: var(--accent); margin-bottom: 1.5rem; text-transform: uppercase; }
.card-title { font-size: 1.5rem; margin-bottom: 1.5rem; }
.card-excerpt { font-size: 0.95rem; color: var(--text-muted); margin-bottom: 3rem; flex-grow: 1; }

.btn-read {
    font-weight: 900;
    text-transform: uppercase;
    font-size: 0.85rem;
    color: var(--primary);
    border-bottom: 3px solid var(--accent);
    padding-bottom: 0.3rem;
    width: fit-content;
}

/* Single Page & Post Styles */
.single-post-header { padding: 8rem 0; background: var(--surface-dark); color: #fff; text-align: left; }
.single-post-header h1 { color: #fff; font-size: 3.5rem; }
.breadcrumbs { justify-content: flex-start; margin-bottom: 2rem; color: rgba(255,255,255,0.4); }
.breadcrumbs a:hover { color: var(--accent); }

.single-post-layout { max-width: 900px; margin: 0 auto 10rem; }
.post-content-body { font-size: 1.15rem; line-height: 1.8; color: var(--text); }
.post-content-body h2 { font-size: 2.6rem; margin: 6rem 0 3rem; border-bottom: 6px solid var(--accent); display: inline-block; padding-bottom: 0.5rem; border-left: none; padding-left: 0; }
.post-content-body p { margin-bottom: 2.5rem; font-size: 1.15rem; color: #444; }

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

/* Pagination */
.pagination-container { margin: 6rem 0; display: flex; justify-content: center; }
.pagination-list { display: flex; gap: 1rem; }
.pagination-item a, .pagination-item span {
    width: 50px; height: 50px;
    background: var(--surface-dark);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-weight: 900;
}
.pagination-item.is-active span { background: var(--accent); color: var(--surface-dark); }

/* Footer */
.site-footer {
    padding: 10rem 0 5rem;
    background: var(--surface-dark);
    color: #fff;
}

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

.footer-col h4 { font-size: 0.8rem; color: var(--accent); text-transform: uppercase; margin-bottom: 3rem; }
.footer-links li { margin-bottom: 1.2rem; }
.footer-links a { color: rgba(255,255,255,0.5); font-weight: 700; }
.footer-links a:hover { color: #fff; padding-left: 10px; }

.footer-contact-item { margin-bottom: 3rem; }
.footer-contact-item label { display: block; font-size: 0.65rem; color: rgba(255,255,255,0.3); text-transform: uppercase; margin-bottom: 0.5rem; }
.footer-contact-item span { font-size: 1.2rem; font-weight: 800; }

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

/* Mobile */
@media (max-width: 1024px) {
    .header-inner { gap: 2rem; }
    .main-nav { display: none; }
    .main-nav.is-active {
        display: block; position: fixed; top: var(--header-height); left: 0; width: 100%;
        background: #fff; padding: 3rem; z-index: 999; border-bottom: 5px solid var(--surface-dark);
    }
    .main-nav.is-active ul { flex-direction: column; gap: 2rem; align-items: center; }
    .menu-toggle { display: block; }
    .hero-grid { grid-template-columns: 1fr; gap: 4rem; text-align: center; }
    .hero-image-wrap { order: -1; }
    .checklist-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .checklist-grid { grid-template-columns: 1fr; }
    .post-grid { grid-template-columns: 1fr; }
    .hero h1 { font-size: 3rem; }
}
