/*
Theme Name: PayGrowth Portal
Author: Senior Frontend Designer
Description: Концепция "Career Ladder": Рост доходов, финансовая грамотность и карьерное планирование.
Version: 1.0.0
Text Domain: paygrowth
*/

:root {
    /* Colors - Career & Growth */
    --bg: #ffffff;
    --surface: #f8fafc;
    --surface-dark: #0f172a;
    --primary: #10b981; /* Growth Green */
    --primary-dim: rgba(16, 185, 129, 0.1);
    --accent: #6366f1; /* Career Indigo */
    --text: #1e293b;
    --text-muted: #64748b;
    --border: #e2e8f0;
    
    /* 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; 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 */
.site-header {
    height: var(--header-height);
    background: #fff;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    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.5rem;
    font-weight: 900;
    color: var(--surface-dark);
    flex-shrink: 0; /* По памятке */
    text-transform: uppercase;
}
.logo span { color: var(--primary); }

.main-nav ul { 
    display: flex; 
    gap: 3.5rem; /* По памятке */
}
.main-nav a { font-weight: 700; font-size: 0.85rem; 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: var(--surface-dark); border: none; padding: 0.7rem; cursor: pointer; border-radius: 4px; }
.hamburger { width: 22px; height: 2px; background: #fff; position: relative; display: block; }
.hamburger::before, .hamburger::after { content: ''; position: absolute; width: 22px; height: 2px; background: #fff; left: 0; transition: 0.3s; }
.hamburger::before { top: -7px; }
.hamburger::after { top: 7px; }

/* Hero - Option B: Inverted (Image Left, Text Right) */
.hero {
    padding: 8rem 0;
    background: radial-gradient(circle at 10% 10%, var(--primary-dim) 0%, transparent 40%);
    border-bottom: 1px solid var(--border);
}

.hero-inner {
    display: flex;
    align-items: center;
    flex-direction: row-reverse; /* Картинка слева, текст справа */
    gap: 6rem;
}

.hero-text { flex: 1.2; }
.hero-image { flex: 0.8; position: relative; }

.hero h1 { font-size: clamp(3rem, 7vw, 4.5rem); margin-bottom: 2rem; color: var(--surface-dark); }
.hero-desc { font-size: 1.3rem; color: var(--text-muted); line-height: 1.5; margin-bottom: 0; }

.hero-banner-img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 40px 80px rgba(0,0,0,0.1);
    transform: perspective(1000px) rotateY(-10deg);
    transition: 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.hero-image:hover .hero-banner-img {
    transform: perspective(1000px) rotateY(0deg);
}

/* Growth Cards */
.growth-section {
    padding: 4rem 0;
    margin-top: -4rem;
    position: relative;
    z-index: 10;
}

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

.growth-card {
    background: #fff;
    padding: 2.5rem;
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    transition: 0.3s;
    text-align: center;
}

.growth-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(16, 185, 129, 0.1);
}

.growth-icon { font-size: 2.5rem; margin-bottom: 1.5rem; display: block; }
.growth-card h3 { font-size: 1.15rem; margin-bottom: 1rem; color: var(--surface-dark); }
.growth-card p { font-size: 0.9rem; color: var(--text-muted); }

/* Accelerators Block */
.accelerators {
    padding: 8rem 0;
    background: var(--surface-dark);
    color: #fff;
}

.accel-header { margin-bottom: 5rem; text-align: center; }
.accel-header h2 { font-size: 2.5rem; margin-bottom: 1rem; }
.accel-header p { color: rgba(255,255,255,0.6); }

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

.accel-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.accel-num {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}

.accel-content h4 { font-size: 1.25rem; margin-bottom: 0.75rem; }
.accel-content p { color: rgba(255,255,255,0.5); font-size: 0.95rem; }

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

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

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

.card-img-wrap {
    width: 100%;
    aspect-ratio: 16/10;
    overflow: hidden;
    border-radius: 12px;
    margin-bottom: 2rem;
}

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

.card-meta { font-family: var(--font-mono); font-size: 0.7rem; color: var(--primary); font-weight: 700; margin-bottom: 1rem; display: block; }
.card-title { font-size: 1.6rem; margin-bottom: 1.5rem; color: var(--surface-dark); line-height: 1.2; }
.card-excerpt { color: var(--text-muted); font-size: 1rem; margin-bottom: 2rem; flex-grow: 1; }

.btn-growth {
    font-weight: 800;
    color: var(--surface-dark);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    padding: 0.8rem 1.5rem;
    background: var(--primary-dim);
    border-radius: 6px;
    transition: 0.3s;
    width: fit-content;
}

.btn-growth:hover { background: var(--primary); color: #fff; }

/* Pagination */
.pagination-container { padding-bottom: 8rem; }
.pagination-list { display: flex; justify-content: center; gap: 0.5rem; }
.pagination-item a, .pagination-item span {
    padding: 1rem 1.5rem;
    border: 1px solid var(--border);
    font-weight: 800;
    font-family: var(--font-mono);
}
.pagination-item.is-active span { background: var(--surface-dark); color: #fff; border-color: var(--surface-dark); }

/* Footer */
.site-footer {
    padding: 8rem 0 4rem;
    background: var(--surface);
    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.8rem; color: var(--primary); margin-bottom: 2.5rem; text-transform: uppercase; }
.footer-contact-item { margin-bottom: 2.5rem; }
.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-size: 1.15rem; font-weight: 700; color: var(--surface-dark); }

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

/* Mobile */
@media (max-width: 991px) {
    .hero-inner { flex-direction: column-reverse; text-align: center; }
    .hero-desc { margin: 0 auto; }
    .growth-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .accel-grid { grid-template-columns: 1fr; }
    .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .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.is-active ul { flex-direction: column; gap: 1.5rem; }
    .menu-toggle { display: block; }
}

@media (max-width: 640px) {
    .growth-grid { grid-template-columns: 1fr; }
    .post-grid { grid-template-columns: 1fr; }
    .footer-main { grid-template-columns: 1fr; }
    .hero h1 { font-size: 2.5rem; }
}
