/*
Theme Name: DebtClear Portal
Author: Senior Frontend Designer
Description: Концепция "Professional Relief": Надежда, законность и избавление от долговой нагрузки.
Version: 1.0.0
Text Domain: debtclear
*/

:root {
    /* Colors - Legal Trust & Hope */
    --bg: #ffffff;
    --surface: #f1f5f9;
    --surface-dark: #0f172a;
    --primary: #0284c7; /* Relief Blue */
    --primary-dim: rgba(2, 132, 199, 0.1);
    --accent: #e11d48; /* Urgency Red */
    --text: #1e293b;
    --text-muted: #64748b;
    --border: #e2e8f0;
    
    /* Spacing */
    --gap: 2rem;
    --header-height: 80px;
    --container-width: 1200px;
    
    /* 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 - Safe & Dynamic */
.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;
}

.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; }

.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 - Option C: Full Width Floating */
.hero {
    padding: 8rem 0 0;
    background: linear-gradient(to bottom, var(--surface) 0%, #ffffff 100%);
    text-align: center;
    overflow: hidden;
}

.hero-text {
    max-width: 900px;
    margin: 0 auto 4rem;
}

.hero h1 { font-size: clamp(2.5rem, 8vw, 5rem); margin-bottom: 2rem; color: var(--surface-dark); }
.hero-desc { font-size: 1.4rem; color: var(--text-muted); line-height: 1.4; }

.hero-image-wrap {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    padding: 0 2rem;
}

.hero-banner-img {
    width: 100%;
    border-radius: 30px 30px 0 0;
    box-shadow: 0 -20px 60px -15px rgba(0,0,0,0.1);
    transform: translateY(40px);
    transition: transform 0.8s cubic-bezier(0.2, 1, 0.3, 1);
}

.hero-image-wrap:hover .hero-banner-img {
    transform: translateY(10px);
}

/* Action Grid */
.action-grid {
    padding: 6rem 0;
    background: #fff;
}

.action-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.action-card {
    padding: 3rem;
    border-radius: 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    transition: 0.3s;
}

.action-card:hover {
    background: #fff;
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
}

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

/* Process Section */
.process-section {
    padding: 8rem 0;
    background: var(--surface-dark);
    color: #fff;
}

.process-header { margin-bottom: 6rem; text-align: center; }
.process-header h2 { font-size: 3rem; margin-bottom: 1.5rem; }
.process-header p { color: rgba(255,255,255,0.6); font-size: 1.2rem; }

.process-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
}

.step {
    position: relative;
}

.step-num {
    font-family: var(--font-display);
    font-size: 4rem;
    font-weight: 900;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 1.5rem;
    opacity: 0.5;
}

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

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

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

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

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

.card-meta { margin-bottom: 1rem; color: var(--primary); font-family: var(--font-mono); font-size: 0.75rem; font-weight: 700; }
.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-debt {
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.8rem;
    padding: 0.8rem 1.5rem;
    border: 2px solid var(--surface-dark);
    display: inline-block;
    transition: 0.3s;
    width: fit-content;
}

.btn-debt:hover { background: var(--surface-dark); 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: 2rem; text-transform: uppercase; }
.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-size: 1.2rem; 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) {
    .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; }
    .action-cards { grid-template-columns: 1fr; }
    .process-steps { grid-template-columns: repeat(2, 1fr); }
    .post-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-main { grid-template-columns: 1fr; }
}

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