/*
Theme Name: Busines Camp Theme
Description: Информационный портал о бизнес-кредитах и займах.
Version: 1.0
*/

:root {
    --primary: #1B4332;
    --secondary: #D4A373;
    --accent: #E76F51;
    --bg: #F4F1DE;
    --text: #2d2a24;
    --border: #d4cfc0;
    --section-pad: clamp(4rem, 8vw, 8rem);
    --white: #ffffff;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { overflow-x: hidden; }
body { font-family: 'Open Sans', sans-serif; color: var(--text); line-height: 1.7; background: var(--bg); display: flex; flex-direction: column; min-height: 100vh; }
h1, h2, h3, h4 { font-family: 'Oswald', sans-serif; color: var(--primary); font-weight: 600; text-transform: uppercase; letter-spacing: 0.02em; }
img { max-width: 100%; height: auto; display: block; border-radius: 0; }
a { color: var(--accent); text-decoration: none; transition: 0.3s; }

.container { width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* D-E Accent border-left */
.accent-border { border-left: 5px solid var(--accent); }

/* Header N-D */
.site-header { background: var(--white); border-bottom: 1px solid var(--border); position: relative; z-index: 1000; padding: 2rem 0 0; text-align: center; }
.header-inner { display: flex; flex-direction: column; align-items: center; gap: 1.5rem; }
.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: clamp(1.5rem, 5vw, 2.5rem);
    font-weight: 700;
    color: var(--primary);
    white-space: nowrap;
    min-height: 1em;
    min-width: 100px;
}
.logo span { color: var(--accent); }

.main-nav { width: 100%; border-top: 1px solid var(--border); padding: 1rem 0; }
.main-nav ul { display: flex; list-style: none; gap: clamp(1.5rem, 3vw, 3.5rem); margin: 0; padding: 0; justify-content: center; flex-wrap: wrap; }
.main-nav a { font-weight: 600; font-size: 0.95rem; color: var(--text); text-transform: uppercase; letter-spacing: 0.05em; }
.main-nav a:hover { color: var(--accent); }

.nav-toggle { display: none; }

@media (max-width: 768px) {
    .site-header { padding: 1rem 0; }
    .header-inner { flex-direction: row; justify-content: space-between; padding: 0 20px; gap: 1rem; }
    .logo { font-size: clamp(0.75rem, 4vw, 1.3rem); }
    .main-nav {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: var(--white);
        z-index: 2000;
        transform: translateY(-100%);
        transition: transform 0.4s ease;
        visibility: hidden;
        padding-top: 80px;
        border-top: none;
    }
    body.menu-open .main-nav { transform: translateY(0); visibility: visible; }
    .main-nav ul { flex-direction: column; padding: 20px; gap: 1.5rem; align-items: center; }

    .nav-toggle {
        display: block;
        flex-shrink: 0;
        z-index: 2100;
        background: none;
        border: none;
        width: 30px;
        height: 20px;
        position: relative;
        cursor: pointer;
    }
    .hamburger, .hamburger::before, .hamburger::after {
        content: '';
        display: block;
        width: 100%;
        height: 2px;
        background: var(--primary);
        position: absolute;
        transition: 0.3s;
    }
    .hamburger { top: 50%; transform: translateY(-50%); }
    .hamburger::before { top: -8px; }
    .hamburger::after { bottom: -8px; }
}

.site-main { flex: 1; }

/* Hero H-B split 50/50 */
.hero-section { background: var(--bg); overflow: hidden; }
.hero-section-inner { display: flex; min-height: clamp(400px, 50vh, 560px); }
.hero-content-wrap { flex: 1; display: flex; align-items: center; padding: var(--section-pad) 5%; min-width: 0; }
.hero-content h1 {
    font-size: clamp(1.8rem, 5vw, 3.2rem);
    margin-bottom: 1.5rem;
    word-break: break-word;
    line-height: 1.1;
}
.hero-content p { font-size: clamp(1rem, 2vw, 1.15rem); font-family: 'Open Sans', sans-serif; text-transform: none; }
.hero-image-wrap { flex: 1; min-height: 300px; position: relative; overflow: hidden; min-width: 0; }
.hero-image-wrap img { position: absolute; width: 100%; height: 100%; object-fit: cover; border-radius: 0; }

@media (max-width: 768px) {
    .hero-section-inner { flex-direction: column; }
    .hero-image-wrap { min-height: 280px; }
}

/* F-A Full-width alternating strips V-C thin lines */
.features-section { display: flex; flex-direction: column; border-bottom: 1px solid var(--border); }
.feature-strip { padding: clamp(2.5rem, 5vw, 4rem) 0; border-bottom: 1px solid var(--border); }
.feature-strip:last-child { border-bottom: none; }
.feature-strip:nth-child(odd) { background: var(--white); }
.feature-strip:nth-child(even) { background: rgba(27, 67, 50, 0.06); }
.feature-strip-inner { max-width: 800px; }
.feature-strip h3 { font-size: clamp(1.3rem, 3vw, 1.8rem); margin-bottom: 0.75rem; }
.feature-strip p { font-size: 1.05rem; font-family: 'Open Sans', sans-serif; text-transform: none; font-weight: 400; }

/* U-F Manifest */
.manifesto-section { padding: var(--section-pad) 0; background: var(--white); border-bottom: 1px solid var(--border); }
.manifesto-inner { max-width: 800px; margin: 0 auto; padding-left: clamp(1rem, 3vw, 2rem); }
.manifesto-inner h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); margin-bottom: 1.5rem; }
.manifesto-inner p { font-size: 1.1rem; margin-bottom: 1.25rem; font-family: 'Open Sans', sans-serif; text-transform: none; font-weight: 400; }

/* Posts C-C Overlay grid */
.posts-section { padding: var(--section-pad) 0; border-top: 1px solid var(--border); }
.section-title { font-size: clamp(1.8rem, 4vw, 2.5rem); margin-bottom: 3rem; text-align: center; }
.posts-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.post-card {
    position: relative;
    height: clamp(250px, 35vw, 380px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    border: 1px solid var(--border);
    min-width: 0;
    transition: 0.3s;
}
.post-card:hover { transform: translateY(-4px); }
.post-card .thumb { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1; }
.post-card .thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.post-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(27, 43, 32, 0.92) 0%, rgba(27, 43, 32, 0.45) 55%, transparent 100%);
    z-index: 2;
    pointer-events: none;
}
.post-card-content { position: relative; z-index: 3; padding: 1.5rem; }
.post-category { font-size: 0.75rem; font-weight: 700; color: var(--secondary); margin-bottom: 0.5rem; display: block; text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6); text-transform: uppercase; }
.post-card-content h3 {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    word-break: break-word;
    line-height: 1.3;
}
.btn-read {
    display: inline-block;
    color: var(--secondary);
    font-weight: 700;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6);
    font-family: 'Open Sans', sans-serif;
    text-transform: none;
}
.btn-read::after { content: ' →'; }

@media (max-width: 1024px) { .posts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 768px) { .posts-grid { grid-template-columns: minmax(0, 1fr); } }

.all-posts-action { text-align: center; margin-top: 3rem; }
.btn-primary {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--primary);
    color: var(--white);
    font-weight: 700;
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: 0.3s;
}
.btn-primary:hover { background: var(--accent); color: var(--white); }

/* Pagination */
.pagination { display: flex; justify-content: center; align-items: center; gap: 1rem; margin: 5rem 0; flex-wrap: wrap; }
.pagination .page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 45px;
    height: 45px;
    padding: 0 8px;
    text-decoration: none;
    font-weight: 700;
    border: 1px solid var(--border);
    transition: 0.3s;
    color: var(--primary);
    background: var(--white);
}
.pagination .page-numbers.current { background: var(--primary); color: var(--white); border-color: var(--primary); }
.pagination .page-numbers.dots { border: none; background: transparent; cursor: default; }
.pagination .page-numbers:hover:not(.current):not(.dots) { background: var(--bg); }

/* Single & archive */
.single-container, .archive-container { max-width: 900px; padding: var(--section-pad) 20px; margin: 0 auto; width: 100%; }
.archive-header { margin-bottom: 3rem; text-align: center; border-bottom: 1px solid var(--border); padding-bottom: 2rem; }
.archive-header h1 { font-size: clamp(1.8rem, 5vw, 3rem); word-break: break-word; }
.archive-desc { margin-top: 1rem; font-family: 'Open Sans', sans-serif; text-transform: none; }
.single-thumb { margin-bottom: 2.5rem; overflow: hidden; border: 1px solid var(--border); }
.single-header { margin-bottom: 2.5rem; text-align: center; border-bottom: 1px solid var(--border); padding-bottom: 2rem; }
.single-header h1 { font-size: clamp(1.8rem, 5vw, 3rem); margin-bottom: 1rem; word-break: break-word; line-height: 1.15; }
.post-meta { color: var(--accent); font-size: 0.95rem; font-family: 'Open Sans', sans-serif; text-transform: none; font-weight: 600; }
.post-content { line-height: 1.8; font-size: 1.15rem; font-family: 'Open Sans', sans-serif; text-transform: none; }
.post-content h2, .post-content h3 { margin-top: 3.5rem; margin-bottom: 1.5rem; word-break: break-word; color: var(--primary); }
.post-content p { margin-bottom: 1.5rem; }
.post-content ul, .post-content ol { margin-bottom: 1.5rem; padding-left: 2rem; }
.post-content li { margin-bottom: 0.5rem; }
.post-content table { width: 100%; border-collapse: collapse; margin-bottom: 1.5rem; background: var(--white); border: 1px solid var(--border); }
.post-content th, .post-content td { border: 1px solid var(--border); padding: 1rem; text-align: left; }
.post-content th { background: var(--bg); font-weight: 700; color: var(--primary); }

/* 404 */
.not-found-container { text-align: center; padding: var(--section-pad) 20px; min-height: 50vh; display: flex; flex-direction: column; align-items: center; justify-content: center; max-width: 600px; margin: 0 auto; }
.not-found-code { font-size: clamp(3rem, 10vw, 6rem); color: var(--primary); margin-bottom: 1rem; }
.not-found-title { margin-bottom: 1rem; font-size: clamp(1.5rem, 4vw, 2rem); }
.not-found-text { margin-bottom: 2rem; font-family: 'Open Sans', sans-serif; text-transform: none; }

/* Footer FT-B */
.site-footer { background: var(--white); border-top: 1px solid var(--border); padding: var(--section-pad) 0; margin-top: auto; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); }
.footer-logo { font-size: clamp(1.2rem, 7vw, 2rem); font-weight: 700; overflow-wrap: anywhere; margin-bottom: 1rem; color: var(--primary); }
.footer-desc { max-width: 100%; overflow-wrap: break-word; font-size: 0.95rem; font-family: 'Open Sans', sans-serif; text-transform: none; font-weight: 400; }
.footer-col h4 { font-size: 1rem; margin-bottom: 1rem; }
.footer-col ul { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.footer-col li { margin-bottom: 0.6rem; border-bottom: 1px solid var(--border); padding-bottom: 0.6rem; }
.footer-col a { color: var(--text); font-weight: 500; font-family: 'Open Sans', sans-serif; text-transform: none; }
.footer-col a:hover { color: var(--accent); }
.footer-contacts p { margin-bottom: 0.5rem; max-width: 100%; overflow-wrap: break-word; font-size: 0.95rem; font-family: 'Open Sans', sans-serif; text-transform: none; }

@media (max-width: 768px) {
    .footer-grid { grid-template-columns: 1fr; }
}
