/* Повод Инфо - B2B Business Theme */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;800&family=Roboto:wght@400;500;700&display=swap');

:root {
    --bg-main: #ffffff;
    --bg-alt: #f8f9fa;
    --primary: #003366;     /* Глубокий синий */
    --primary-light: #00509e;
    --accent: #ffb703;      /* Индустриальный желто-оранжевый */
    --text-main: #212529;
    --text-muted: #6c757d;
    --border: #dee2e6;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Roboto', sans-serif;
    --container: 1200px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body { background-color: var(--bg-alt); color: var(--text-main); font-family: var(--font-body); line-height: 1.7; display: flex; flex-direction: column; min-height: 100vh; }
a { text-decoration: none; color: inherit; transition: color 0.2s, background 0.2s; }
img { max-width: 100%; height: auto; display: block; border-radius: 4px; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }

/* Header */
header { background-color: var(--primary); color: #fff; position: sticky; top: 0; z-index: 1000; box-shadow: 0 2px 10px rgba(0,0,0,0.1); }
.header-top { display: flex; justify-content: space-between; align-items: center; padding: 20px 0; border-bottom: 1px solid rgba(255,255,255,0.1); }
.logo { font-family: var(--font-heading); font-size: 2rem; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; color: #fff; }
.logo span { color: var(--accent); }

.nav-main { display: flex; gap: 30px; padding: 15px 0; }
.nav-main a { font-family: var(--font-heading); font-size: 0.95rem; font-weight: 600; text-transform: uppercase; color: rgba(255,255,255,0.8); letter-spacing: 0.5px; }
.nav-main a:hover, .nav-main a.active { color: var(--accent); }

/* Buttons */
.btn { display: inline-block; background: var(--primary); color: #fff; font-family: var(--font-heading); padding: 12px 24px; font-weight: 600; text-transform: uppercase; font-size: 0.9rem; border-radius: 4px; border: none; cursor: pointer; transition: all 0.2s; text-align: center; }
.btn:hover { background: var(--primary-light); color: #fff; }
.btn-accent { background: var(--accent); color: var(--primary); }
.btn-accent:hover { background: #e09e00; color: var(--primary); }

/* Layout Grid (Magazine) */
.mag-layout { display: grid; grid-template-columns: 2fr 1fr; gap: 40px; margin: 40px 0; }
.section-header { font-family: var(--font-heading); font-size: 1.8rem; font-weight: 800; text-transform: uppercase; border-bottom: 3px solid var(--primary); padding-bottom: 10px; margin-bottom: 30px; color: var(--primary); }

/* Featured Article */
.featured-article { background: var(--bg-main); border: 1px solid var(--border); border-radius: 8px; overflow: hidden; box-shadow: 0 4px 6px rgba(0,0,0,0.05); }
.featured-img-wrap { overflow: hidden; }
.featured-img { width: 100%; height: 450px; object-fit: cover; transition: transform 0.5s; }
.featured-article:hover .featured-img { transform: scale(1.02); }
.featured-content { padding: 30px; }
.tag { display: inline-block; background: var(--primary-light); color: #fff; font-family: var(--font-heading); font-weight: 600; padding: 4px 12px; text-transform: uppercase; font-size: 0.75rem; border-radius: 20px; margin-bottom: 15px; }
.tag.accent { background: var(--accent); color: var(--primary); }
.featured-title { font-family: var(--font-heading); font-size: 2.2rem; font-weight: 800; line-height: 1.2; margin-bottom: 15px; color: var(--primary); }

/* Sidebar List */
.sidebar-list { background: var(--bg-main); border: 1px solid var(--border); border-radius: 8px; padding: 25px; box-shadow: 0 4px 6px rgba(0,0,0,0.05); }
.sidebar-item { border-bottom: 1px solid var(--border); padding: 15px 0; display: flex; gap: 15px; align-items: flex-start; }
.sidebar-item:last-child { border-bottom: none; }
.sidebar-item img { width: 90px; height: 90px; object-fit: cover; border-radius: 4px; }
.sidebar-item-content h4 { font-family: var(--font-heading); font-size: 1.1rem; font-weight: 600; line-height: 1.3; color: var(--primary); margin-top: 5px; }
.sidebar-item-content h4:hover { color: var(--primary-light); }

/* Standard Grid */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-bottom: 60px; }
.news-card { background: var(--bg-main); border: 1px solid var(--border); border-radius: 8px; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 4px 6px rgba(0,0,0,0.05); transition: box-shadow 0.3s, transform 0.3s; }
.news-card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.1); }
.news-card img { width: 100%; height: 200px; object-fit: cover; }
.news-card-content { padding: 20px; flex-grow: 1; display: flex; flex-direction: column; }
.news-card h3 { font-family: var(--font-heading); font-size: 1.3rem; font-weight: 800; line-height: 1.3; margin-bottom: 10px; color: var(--primary); }
.news-card p { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 15px; flex-grow: 1; }

/* SEO Blocks */
.seo-section { background: var(--bg-main); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 60px 0; margin: 40px 0; }
.seo-block { margin-bottom: 40px; }
.seo-block h2 { font-family: var(--font-heading); font-size: 2rem; font-weight: 800; margin-bottom: 20px; color: var(--primary); }
.seo-block h3 { font-family: var(--font-heading); font-size: 1.4rem; font-weight: 600; margin: 30px 0 15px; color: var(--primary-light); }
.seo-block p { font-size: 1.05rem; color: var(--text-main); margin-bottom: 15px; }

/* Article Page */
.article-page { background: var(--bg-main); padding: 50px; border: 1px solid var(--border); border-radius: 8px; margin: 40px auto; max-width: 900px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); }
.article-header { text-align: center; margin-bottom: 40px; }
.article-header h1 { font-family: var(--font-heading); font-size: 2.8rem; font-weight: 800; line-height: 1.2; margin: 15px 0; color: var(--primary); }
.article-meta { color: var(--text-muted); font-size: 0.95rem; font-weight: 500; text-transform: uppercase; letter-spacing: 1px; }
.article-hero { width: 100%; height: 450px; object-fit: cover; border-radius: 8px; margin-bottom: 40px; }
.article-body h2 { font-family: var(--font-heading); font-size: 1.8rem; font-weight: 800; margin: 40px 0 20px; color: var(--primary); border-bottom: 2px solid var(--border); padding-bottom: 10px; }
.article-body h3 { font-family: var(--font-heading); font-size: 1.4rem; font-weight: 600; margin: 30px 0 15px; color: var(--primary-light); }
.article-body p { font-size: 1.1rem; color: var(--text-main); margin-bottom: 20px; }
.article-body ul, .article-body ol { padding-left: 20px; margin-bottom: 20px; font-size: 1.1rem; }
.article-body li { margin-bottom: 10px; }
.highlight-box { background: rgba(0, 51, 102, 0.05); border-left: 4px solid var(--primary); padding: 20px; border-radius: 0 8px 8px 0; margin: 30px 0; font-style: italic; }

/* Forms */
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-family: var(--font-heading); font-weight: 600; margin-bottom: 8px; color: var(--primary); }
.form-control { width: 100%; padding: 15px; border: 1px solid var(--border); border-radius: 4px; font-family: var(--font-body); font-size: 1rem; background: var(--bg-alt); }
.form-control:focus { outline: none; border-color: var(--primary); background: #fff; }

/* Footer */
footer { background: var(--primary); color: #fff; padding: 50px 0 30px; margin-top: auto; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 30px; margin-bottom: 30px; }
.footer-links a { margin-left: 25px; font-family: var(--font-heading); font-weight: 600; font-size: 0.9rem; text-transform: uppercase; color: rgba(255,255,255,0.7); }
.footer-links a:hover { color: var(--accent); }
.copyright { text-align: center; color: rgba(255,255,255,0.5); font-size: 0.9rem; }

/* Mobile */
@media (max-width: 900px) {
    .mag-layout { grid-template-columns: 1fr; }
    .news-grid { grid-template-columns: 1fr; }
    .nav-main { display: none; } 
    .article-page { padding: 30px 20px; }
    .article-header h1 { font-size: 2rem; }
    .footer-inner { flex-direction: column; gap: 20px; }
}
