/*
Theme Name: MoneyMap Portal
Author: Senior Frontend Designer
Description: Концепция "Strategic Blueprint": Сочетание бизнес-эстетики и личной финансовой ясности.
Version: 1.0.0
Text Domain: moneymap
*/

:root {
    /* Colors - Business & Growth */
    --bg: #ffffff;
    --surface: #f8fafc;
    --surface-dark: #0f172a;
    --primary: #10b981; /* Emerald Growth */
    --primary-dim: rgba(16, 185, 129, 0.1);
    --accent: #3b82f6; /* Strategic Blue */
    --text: #1e293b;
    --text-muted: #64748b;
    --border: #e2e8f0;
    
    /* Spacing */
    --gap: 2rem;
    --header-height: 90px;
    --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 - Modern Business */
.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;
    display: flex;
    align-items: center;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 4rem; /* По памятке из MEMO.md */
}

.logo {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 900;
    letter-spacing: -1px;
    color: var(--surface-dark);
    flex-shrink: 0; /* По памятке из MEMO.md */
    text-transform: uppercase;
}

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

.main-nav ul { 
    display: flex; 
    gap: 3.5rem; /* По памятке из MEMO.md */
}
.main-nav a { font-weight: 700; font-size: 0.9rem; color: var(--text); text-transform: uppercase; }
.main-nav a:hover, .main-nav .current-menu-item a { color: var(--primary); }

.menu-toggle { display: none; background: var(--surface-dark); color: #fff; border: none; padding: 0.8rem; cursor: pointer; border-radius: 4px; }
.hamburger { width: 24px; height: 2px; background: #fff; position: relative; display: block; }
.hamburger::before, .hamburger::after { content: ''; position: absolute; width: 24px; height: 2px; background: #fff; left: 0; transition: 0.3s; }
.hamburger::before { top: -8px; }
.hamburger::after { top: 8px; }

.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 - Strategic Growth */
.hero {
    padding: 8rem 0;
    background: radial-gradient(circle at 100% 0%, var(--primary-dim) 0%, transparent 50%);
    border-bottom: 1px solid var(--border);
}

.hero-inner { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 6rem; align-items: center; }
.hero h1 { font-size: clamp(3rem, 7vw, 5rem); margin-bottom: 2rem; color: var(--surface-dark); }
.hero-desc { font-size: 1.4rem; color: var(--text-muted); max-width: 600px; margin-bottom: 3rem; }

.hero-banner-img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 40px 80px -20px rgba(15, 23, 42, 0.2);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Strategic Blocks */
.solution-blocks { margin-top: -5rem; margin-bottom: 6rem; }
.solution-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.solution-card {
    background: var(--surface-dark);
    color: #fff;
    padding: 4rem;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
}
.solution-card h3 { font-size: 2.2rem; margin-bottom: 1.5rem; position: relative; z-index: 2; }
.solution-card p { font-size: 1.1rem; opacity: 0.8; margin-bottom: 2rem; position: relative; z-index: 2; }
.solution-card::after {
    content: '';
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 150px;
    height: 150px;
    background: var(--primary);
    border-radius: 50%;
    opacity: 0.1;
}

/* NEW: Strategic Tools Block */
.strategic-tools {
    padding: 8rem 0;
    background: var(--surface);
    margin-bottom: 6rem;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.tools-header { text-align: center; margin-bottom: 5rem; }
.tools-header h2 { font-size: 2.5rem; margin-bottom: 1rem; }
.tools-header p { font-size: 1.2rem; color: var(--text-muted); }

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

.tool-card {
    background: #fff;
    padding: 3rem 2rem;
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    z-index: 1;
    text-align: center;
}

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

.tool-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    display: block;
}

.tool-card h4 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--surface-dark);
}

.tool-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
    border-radius: 12px 12px 0 0;
}

.tool-card:hover::before {
    transform: scaleX(1);
}

@media (max-width: 1024px) {
    .tools-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
    .tools-grid { grid-template-columns: 1fr; }
}

/* Post Grid */
.section-header {
    margin-bottom: 4rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}
.section-header h2 { font-size: 3rem; color: var(--surface-dark); }

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

.post-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    transition: transform 0.3s;
}

.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.8s; }
.post-card:hover .card-img { transform: scale(1.05); }

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

.btn-moneymap {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    font-weight: 800;
    font-size: 0.85rem;
    color: var(--surface-dark);
    padding: 1rem 0;
    border-top: 1px solid var(--border);
    transition: 0.3s;
}
.btn-moneymap:hover { color: var(--primary); padding-left: 10px; }

/* 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 {
    background: var(--surface-dark);
    color: #fff;
    padding: 8rem 0 4rem;
}

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

.footer-col h4 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.2em; color: var(--primary); margin-bottom: 2.5rem; }
.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.2rem; font-weight: 600; }

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

/* Mobile */
@media (max-width: 991px) {
    .hero-inner { grid-template-columns: 1fr; gap: 4rem; text-align: center; }
    .hero-desc { margin: 0 auto 3rem; }
    .solution-grid { grid-template-columns: 1fr; }
    .post-grid { grid-template-columns: repeat(2, 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; }
    .main-nav.is-active a { color: var(--text); }
    .menu-toggle { display: block; }
}

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

/* Single */
.page-content { max-width: 860px; margin: 0 auto; padding: 4rem 0 8rem; }
.content { font-size: 1.2rem; line-height: 1.8; color: #334155; }
.content h2, .content h3 { margin: 3rem 0 1.5rem; color: var(--surface-dark); }
.content p { margin-bottom: 1.5rem; }
.post-meta-single { margin-bottom: 2rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--border); color: var(--primary); font-weight: 700; }
.post-featured-image { margin-bottom: 4rem; border-radius: 12px; overflow: hidden; }
