/*
Theme Name: BuildStep Portal
Author: Senior Frontend Designer
Description: Концепция "Blueprint & Progress": Пошаговое руководство, четкие линии и техническая точность.
Version: 1.0.0
Text Domain: buildstep
*/

:root {
    /* Colors - Technical & Clean */
    --bg: #ffffff;
    --surface: #f1f5f9;
    --surface-dark: #0f172a;
    --primary: #0ea5e9; /* Blueprint Blue */
    --primary-dim: rgba(14, 165, 233, 0.1);
    --accent: #6366f1;
    --text: #1e293b;
    --text-muted: #64748b;
    --border: #e2e8f0;
    
    /* Spacing */
    --gap: 2rem;
    --header-height: 100px;
    --container-width: 1400px;
    
    /* Fonts */
    --font-display: 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'JetBrains 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;
}
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-weight: 900; line-height: 1; letter-spacing: -0.04em; text-transform: uppercase; }
.text-mono { font-family: var(--font-mono); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.2em; }

/* Header - Split Layout */
.site-header {
    height: var(--header-height);
    background: #fff;
    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%;
}

.logo {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--surface-dark);
    letter-spacing: -1px;
}
.logo span { color: var(--primary); }

.main-nav ul { display: flex; gap: 4rem; }
.main-nav a { 
    font-weight: 600; 
    font-size: 0.85rem; 
    text-transform: uppercase; 
    color: var(--text-muted);
    position: relative;
    padding: 0.5rem 0;
}
.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; width: 0; height: 2px;
    background: var(--primary);
    transition: 0.3s;
}
.main-nav a:hover::after, .main-nav .current-menu-item a::after { width: 100%; }
.main-nav a:hover { color: var(--text); }

.menu-toggle { display: none; background: none; border: none; cursor: pointer; padding: 10px; }
.hamburger { width: 30px; height: 2px; background: var(--text); display: block; position: relative; }
.hamburger::before, .hamburger::after { content: ''; position: absolute; width: 100%; height: 2px; background: var(--text); left: 0; transition: 0.3s; }
.hamburger::before { top: -10px; }
.hamburger::after { top: 10px; }

/* Hero - Option D: Split 50/50 */
.hero {
    display: flex;
    min-height: 80vh;
    border-bottom: 1px solid var(--border);
}

.hero-text-side {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 10% var(--gap);
    border-right: 1px solid var(--border);
}

.hero-image-side {
    flex: 1;
    background: var(--surface-dark);
    position: relative;
    overflow: hidden;
}

.hero-image-side img {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    object-fit: cover;
    opacity: 0.6;
    filter: brightness(0.8) contrast(1.2);
}

.hero h1 { font-size: clamp(3rem, 10vw, 6rem); margin-bottom: 2rem; color: var(--surface-dark); }
.hero-desc { font-size: 1.25rem; color: var(--text-muted); max-width: 500px; margin-bottom: 3rem; }

/* Step Roadmap */
.roadmap {
    padding: 8rem 0;
    background: var(--surface);
}

.roadmap-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--border);
}

.step-card {
    background: #fff;
    padding: 4rem 2.5rem;
    position: relative;
    transition: 0.4s;
}

.step-number {
    font-family: var(--font-mono);
    font-size: 5rem;
    font-weight: 900;
    color: var(--surface);
    position: absolute;
    top: 1rem; right: 1rem;
    line-height: 1;
    z-index: 1;
}

.step-card h3 { position: relative; z-index: 2; margin-bottom: 1.5rem; font-size: 1.25rem; }
.step-card p { position: relative; z-index: 2; font-size: 0.95rem; color: var(--text-muted); }

.step-card:hover { background: var(--primary); color: #fff; }
.step-card:hover p { color: rgba(255,255,255,0.8); }
.step-card:hover .step-number { color: rgba(255,255,255,0.1); }

/* Analysis Block */
.analysis-section { padding: 10rem 0; }
.analysis-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: var(--surface-dark);
    color: #fff;
    border-radius: 0;
    overflow: hidden;
}
.analysis-content { padding: 6rem; }
.analysis-content h2 { margin-bottom: 2rem; color: var(--primary); }
.error-list { list-style: none; }
.error-item { 
    padding: 1.5rem 0; 
    border-bottom: 1px solid rgba(255,255,255,0.1); 
    display: flex;
    gap: 1.5rem;
    align-items: center;
}
.error-item:last-child { border-bottom: none; }
.error-icon { color: #ef4444; font-weight: 900; font-family: var(--font-mono); }

/* Post Grid - Standard but clean */
.section-header {
    padding: 6rem 0 3rem;
    border-bottom: 1px solid var(--border);
    margin-bottom: 4rem;
    display: flex;
    align-items: flex-end;
    gap: 2rem;
}

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

.post-card {
    display: flex;
    flex-direction: column;
}

.card-img-wrap {
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
    margin-bottom: 2rem;
}

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

.card-meta { display: flex; gap: 1rem; margin-bottom: 1rem; font-family: var(--font-mono); font-size: 0.75rem; color: var(--primary); }
.card-title { font-size: 1.5rem; margin-bottom: 1rem; line-height: 1.2; }
.card-excerpt { font-size: 0.95rem; color: var(--text-muted); margin-bottom: 2rem; flex-grow: 1; }

.btn-step {
    padding: 1rem 2rem;
    background: var(--surface-dark);
    color: #fff;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
    width: fit-content;
}
.btn-step:hover { background: var(--primary); }

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

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

.footer-col h4 { margin-bottom: 2rem; font-size: 0.85rem; color: var(--surface-dark); }
.footer-contact-item { margin-bottom: 2rem; }
.footer-contact-item label { display: block; font-size: 0.7rem; color: var(--text-muted); text-transform: uppercase; margin-bottom: 0.5rem; }
.footer-contact-item span { font-weight: 700; }

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

/* Mobile */
@media (max-width: 1024px) {
    .hero { flex-direction: column; }
    .hero-text-side { padding: 5rem var(--gap); border-right: none; border-bottom: 1px solid var(--border); }
    .hero-image-side { height: 400px; }
    .roadmap-grid { grid-template-columns: repeat(2, 1fr); }
    .post-grid { grid-template-columns: repeat(2, 1fr); }
    .analysis-card { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .main-nav { display: none; }
    .main-nav.is-active {
        display: block; position: absolute; top: 100%; left: 0; width: 100%;
        background: #fff; padding: 2rem; border-bottom: 1px solid var(--border);
    }
    .main-nav ul { flex-direction: column; gap: 1.5rem; }
    .menu-toggle { display: block; }
    .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    .roadmap-grid { grid-template-columns: 1fr; }
    .post-grid { grid-template-columns: 1fr; }
    .hero h1 { font-size: 3rem; }
    .analysis-content { padding: 3rem 1.5rem; }
}
