/*
Theme Name: ProDomRus - Elite Construction
Author: PBN Design Team
Description: Премиальный дизайн для портала о строительстве домов. Акцент на надежности, экологичности и комплексном подходе "под ключ".
Version: 1.0.0
*/

:root {
    /* Colors - Nature & Stability */
    --bg: #fdfcf8;
    --surface: #ffffff;
    --surface-dark: #1a2f23; /* Forest Green */
    --primary: #2d5a43; /* Sage Green */
    --secondary: #8c6d46; /* Oak Brown */
    --accent: #d4af37; /* Gold Accent */
    --text: #2c3e50;
    --text-muted: #6b7a81;
    --border: #e3e8e5;
    
    /* Spacing */
    --gap: 2.5rem;
    --header-height: 110px;
    --container-width: 1240px;
    
    /* Fonts */
    --font-display: 'Georgia', serif;
    --font-body: 'Segoe UI', system-ui, -apple-system, 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.7; 
    -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: 700; line-height: 1.2; color: var(--surface-dark); }

/* Header - Floating Premium Header */
.site-header {
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--surface-dark);
    flex-shrink: 0;
}
.logo span { color: var(--primary); }

.main-nav ul { display: flex; gap: 3.5rem; }
.main-nav a { 
    font-weight: 600; 
    font-size: 0.95rem; 
    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: 1rem; cursor: pointer; }
.hamburger { width: 22px; 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: -7px; }
.hamburger::after { top: 7px; }

/* Hero - Option C: Centered Content with Minimalist Elements */
.hero {
    padding: 14rem 0 12rem;
    background: var(--surface-dark);
    color: #fff;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, rgba(45, 90, 67, 0.4) 0%, transparent 70%);
}

.hero-content { position: relative; z-index: 2; max-width: 900px; margin: 0 auto; }
.hero-tagline {
    display: inline-block;
    color: var(--accent);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    font-size: 0.85rem;
    margin-bottom: 2rem;
}

.hero h1 { font-size: clamp(3rem, 6vw, 5rem); margin-bottom: 3rem; color: #fff; }
.hero h1 span { color: var(--accent); font-style: italic; font-weight: 400; }
.hero-desc { font-size: 1.25rem; color: rgba(255,255,255,0.7); margin-bottom: 5rem; line-height: 1.5; }

.btn-hero {
    background: #fff;
    color: var(--surface-dark);
    padding: 1.8rem 4.5rem;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.9rem;
    display: inline-block;
    transition: 0.4s;
    border: none;
    letter-spacing: 0.1em;
}
.btn-hero:hover { background: var(--accent); color: #fff; transform: translateY(-5px); }

/* Services Grid */
.services-section { padding: 12rem 0; background: #fff; }
.section-title { text-align: center; margin-bottom: 8rem; }
.section-title h2 { font-size: 3.5rem; margin-bottom: 1.5rem; }
.section-title p { color: var(--text-muted); font-size: 1.1rem; }

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2rem;
}

.service-item {
    padding: 4rem 3rem;
    background: var(--bg);
    border: 1px solid var(--border);
    text-align: center;
    transition: 0.3s;
}
.service-item:hover { transform: translateY(-10px); background: var(--surface-dark); color: #fff; }
.service-item:hover h3 { color: #fff; }
.service-item h3 { font-size: 1.4rem; margin-bottom: 1.5rem; transition: 0.3s; }
.service-item p { font-size: 0.95rem; opacity: 0.8; }

/* Feature Section */
.feature-block {
    padding: 12rem 0;
    background: var(--surface-dark);
    color: #fff;
}
.feature-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8rem;
    align-items: center;
}
.feature-content h2 { color: #fff; font-size: 3rem; margin-bottom: 3rem; }
.feature-list li {
    margin-bottom: 3rem;
    display: flex;
    gap: 2.5rem;
}
.feature-num {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
}
.feature-text h4 { font-size: 1.3rem; margin-bottom: 0.8rem; }
.feature-text p { opacity: 0.6; font-size: 0.95rem; }

/* Post Cards */
.posts-section { padding: 12rem 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/10;
    overflow: hidden;
    margin-bottom: 3rem;
    background: var(--border);
}
.card-img { width: 100%; height: 100%; object-fit: cover; transition: 0.6s; }
.post-card:hover .card-img { transform: scale(1.05); }

.card-title { font-size: 1.8rem; margin-bottom: 2rem; line-height: 1.2; }
.card-excerpt { font-size: 1.05rem; color: var(--text-muted); margin-bottom: 3rem; flex-grow: 1; }
.btn-more {
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.8rem;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 1rem;
}
.btn-more::after { content: ''; width: 30px; height: 1px; background: currentColor; transition: 0.3s; }
.post-card:hover .btn-more::after { width: 50px; }

/* Single Content */
.single-post-header { padding: 12rem 0 8rem; background: var(--bg); text-align: center; border-bottom: 1px solid var(--border); }
.single-post-header h1 { font-size: 4.5rem; max-width: 1000px; margin: 0 auto; }
.breadcrumbs { justify-content: center; margin-bottom: 3rem; color: var(--text-muted); text-transform: uppercase; font-size: 0.8rem; letter-spacing: 0.2em; font-weight: 700; }
.breadcrumbs .sep { margin: 0 1.2rem; color: var(--accent); }

.single-post-layout { max-width: 900px; margin: 8rem auto 10rem; }
.post-content-body { font-size: 1.25rem; line-height: 1.9; color: var(--text); }
.post-content-body h2 { font-size: 2.8rem; margin: 6rem 0 2.5rem; text-align: center; }
.post-content-body p { margin-bottom: 2.5rem; }

.post-content-body li { 
    list-style: none;
    margin-bottom: 1.8rem; 
    padding: 2.5rem;
    border: 1px solid var(--border);
    position: relative;
    background: #fff;
}
.post-content-body li::before {
    content: '';
    position: absolute;
    top: 0; left: 0; bottom: 0;
    width: 6px;
    background: var(--primary);
}

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

/* Footer */
.site-footer {
    padding: 10rem 0 5rem;
    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-family: var(--font-display); font-size: 1.4rem; color: var(--accent); margin-bottom: 3.5rem; }
.footer-links li { margin-bottom: 1.5rem; }
.footer-links a { opacity: 0.5; font-weight: 500; }
.footer-links a:hover { opacity: 1; color: var(--accent); }

.footer-contact-item { margin-bottom: 4rem; }
.footer-contact-item label { display: block; font-size: 0.75rem; color: var(--accent); text-transform: uppercase; margin-bottom: 1rem; letter-spacing: 0.1em; }
.footer-contact-item span { font-size: 1.4rem; font-family: var(--font-display); }

.footer-bottom {
    padding-top: 4rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    opacity: 0.4;
}

/* 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: 3rem; }
    .main-nav.is-active a { color: var(--surface-dark); font-size: 1.5rem; }
    .menu-toggle { display: block; }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .feature-inner { grid-template-columns: 1fr; gap: 5rem; }
    .post-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .services-grid { grid-template-columns: 1fr; }
    .post-grid { grid-template-columns: 1fr; }
    .hero h1 { font-size: 3.2rem; }
    .footer-grid { grid-template-columns: 1fr; gap: 5rem; }
}
