/*
Theme Name: NalogProfi
Author: Senior Frontend Designer
Description: Концепция "Clean Balance": Профессионализм, прозрачность и точность в налогах.
Version: 1.4.0
Text Domain: nalogprofi
*/

:root {
    /* Colors - Clean & Trusted */
    --bg: #ffffff;
    --surface: #f4f7f6; /* Mint-tinted gray */
    --surface-dark: #1a1c1d;
    --primary: #00a878; /* Tax Pro Green */
    --primary-dim: rgba(0, 168, 120, 0.1);
    --accent: #2c3e50; /* Deep Slate */
    --text: #1a1c1d;
    --text-muted: #5a6c7d;
    --border: #e0e6e8;
    
    /* Spacing */
    --gap: 1.5rem;
    --header-height: 80px;
    --container-width: 1200px;
    
    /* Fonts */
    --font-display: 'Inter', sans-serif; /* Clean professional sans */
    --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.5; 
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; transition: 0.2s ease; }

/* Grid System */
.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; letter-spacing: -0.02em; line-height: 1.1; }
.text-mono { font-family: var(--font-mono); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; }

/* Header - Split Professional */
.site-header {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid var(--primary);
    z-index: 1000;
    height: var(--header-height);
    display: flex;
    align-items: center;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 3rem; /* Отступ между лого и меню */
}

.logo {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--accent);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
    text-transform: uppercase;
}

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

.main-nav {
    flex-grow: 1;
}

.main-nav ul { 
    display: flex; 
    gap: 3rem; 
    justify-content: flex-end;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-nav li {
    position: relative;
    list-style: none !important;
}

.main-nav li::before {
    display: none !important; /* Убираем возможные точки от WP тем */
}

.main-nav a { 
    font-size: 0.85rem; 
    font-weight: 800; 
    color: var(--accent); 
    text-transform: uppercase;
    white-space: nowrap;
    letter-spacing: 0.05em;
}

.main-nav a:hover, .main-nav .current-menu-item a { color: var(--primary); }

/* Hero - Clear Focus */
.hero {
    padding: 0;
    background-color: var(--surface);
    border-bottom: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.hero-inner-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 550px;
    gap: 4rem;
}

.hero-text {
    flex: 1;
    padding: 4rem 0;
    z-index: 2;
}

.hero-image {
    flex: 1.2;
    height: 550px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 4px;
    box-shadow: -20px 20px 60px rgba(0,0,0,0.1);
}

.banner-placeholder {
    width: 100%;
    height: 400px;
    background: var(--surface);
    border: 2px dashed var(--border);
}

@media (max-width: 991px) {
    .hero-inner-content { grid-template-columns: 1fr; }
    .hero-image { display: none; }
    .hero-text { padding: 4rem 0; }
}

/* Tax Highlights - Practical Grid */
.tax-highlights {
    margin-top: -3rem;
    position: relative;
    z-index: 10;
}

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

.highlight-card {
    background: #fff;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border-radius: 4px;
    border-bottom: 3px solid var(--border);
    transition: transform 0.3s;
}

.highlight-card:hover { transform: translateY(-5px); border-bottom-color: var(--primary); }
.highlight-icon { font-size: 1.5rem; margin-bottom: 1rem; display: block; }
.highlight-title { font-size: 0.95rem; font-weight: 700; color: var(--accent); }

/* Post Grid - Standard Clean */
.section-header {
    padding: 6rem 0 3rem;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.section-header h2 { font-size: 2rem; white-space: nowrap; }
.section-line { height: 2px; background: var(--border); width: 100%; }

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

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

.card-img-wrap {
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 1.5rem;
    background: var(--surface);
}

.card-img { width: 100%; height: 100%; object-fit: cover; }

.card-category {
    background: var(--primary-dim);
    color: var(--primary);
    padding: 0.25rem 0.75rem;
    font-size: 0.7rem;
    font-weight: 700;
    width: fit-content;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.card-title { font-size: 1.35rem; margin-bottom: 1rem; line-height: 1.3; text-transform: none; }
.card-excerpt { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 1.5rem; flex-grow: 1; }

.btn-profi {
    padding: 0.8rem 1.5rem;
    background: var(--accent);
    color: #fff;
    font-weight: 700;
    font-size: 0.85rem;
    text-align: center;
    border-radius: 4px;
}

.btn-profi:hover { background: var(--primary); }

/* Pagination */
.pagination-container { padding-bottom: 6rem; }
.pagination-list { display: flex; justify-content: center; gap: 0.5rem; }
.pagination-item a, .pagination-item span {
    padding: 0.6rem 1rem;
    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 {
    background: var(--surface-dark);
    color: #fff;
    padding: 5rem 0 3rem;
}

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

.footer-col h4 { color: var(--primary); margin-bottom: 1.5rem; font-size: 0.8rem; text-transform: uppercase; }
.footer-contact-item { margin-bottom: 1.5rem; }
.footer-contact-item label { display: block; color: var(--text-muted); font-size: 0.7rem; margin-bottom: 0.2rem; }
.footer-contact-item span { font-size: 1rem; }

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

/* Mobile */
.menu-toggle { display: none; background: var(--primary); color: #fff; border: none; padding: 0.5rem 1rem; font-weight: 700; }

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

@media (max-width: 768px) {
    .main-nav { display: none; }
    .menu-toggle { display: block; }
    .highlights-grid { grid-template-columns: 1fr; }
    .post-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
}

/* Single Content */
.page-content { max-width: 800px; margin: 0 auto; padding: 4rem 0 8rem; }
.content { font-size: 1.15rem; line-height: 1.6; color: #2c3e50; }
.content h2, .content h3 { margin: 2.5rem 0 1rem; color: var(--accent); }
.content p { margin-bottom: 1.5rem; }
.post-meta-single { margin-bottom: 2rem; color: var(--primary); font-weight: 700; border-bottom: 1px solid var(--border); padding-bottom: 1rem; }
.post-featured-image { margin-bottom: 3rem; border-radius: 8px; overflow: hidden; }
.post-featured-image img { width: 100%; }
