﻿:root {
    --primary: #1877f2;
    --text: #242424;
    --bg-light: #f8f8f8;
    --border: #ddd;
    --font-head: 'Georgia', serif;
    --font-body: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

/* RESET & BASE */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: var(--font-body); color: var(--text); line-height: 1.6; background: #fff; }
a { text-decoration: none; color: inherit; transition: 0.2s; }
img { max-width: 100%; display: block; height: auto; }
.container { max-width: 1000px; margin: 0 auto; padding: 0 15px; }

/* HEADER */
header { background: #fff; border-bottom: 1px solid #eee; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
.header__head { display: flex; justify-content: space-between; align-items: center; padding: 15px 0; border-bottom: 1px solid #f0f0f0; }
.logo { display: flex; align-items: center; gap: 10px; font-size: 28px; font-weight: 700; color: #000; font-family: var(--font-head); }
.logo img { width: 40px; }
.logo__title { color: #1877f2; }

.nav-menu ul { display: flex; list-style: none; gap: 20px; }
.nav-menu a { font-size: 14px; font-weight: 700; color: #333; text-transform: uppercase; }
.nav-menu a:hover { color: var(--primary); }

.header__body { padding: 30px 0; text-align: left; }
.header__category { display: inline-block; background: #242424; color: #1877f2; padding: 5px 10px; font-size: 14px; font-weight: bold; text-transform: uppercase; margin-bottom: 15px; }
h1 { font-family: var(--font-head); font-size: 2.8rem; line-height: 1.1; margin-bottom: 20px; color: #000; }

.article-meta { display: flex; gap: 15px; color: #777; font-size: 0.9rem; margin-bottom: 20px; border-bottom: 1px solid #eee; padding-bottom: 15px; }
.meta-cat { color: var(--primary); font-weight: bold; text-transform: uppercase; }

/* CONTENT */
.content { padding-bottom: 50px; }
.content p { margin-bottom: 20px; font-size: 1.15rem; line-height: 1.7; color: #333; }
.content b { font-weight: 700; }
.content a { color: var(--primary); font-weight: bold; text-decoration: underline; }

h2 { font-family: var(--font-head); font-size: 1.8rem; margin: 40px 0 20px; color: #000; line-height: 1.3; }

.editorial-note { 
    background: #f0f4f8; 
    border-left: 5px solid var(--primary); 
    padding: 20px; 
    font-style: italic; 
    margin: 30px 0; 
    color: #444; 
}

.img-caption { font-size: 0.85rem; color: #888; margin-top: 5px; text-align: center; }

/* BUTTONS & CTA */
.cta-box { background: #f8f9fa; padding: 30px; border: 2px dashed var(--primary); text-align: center; margin: 40px 0; border-radius: 8px; }
.btn { 
    display: flex;               /* Включаем Flexbox для выравнивания */
    justify-content: center;     /* Выравнивание по центру горизонтально */
    align-items: center;         /* Выравнивание по центру вертикально */
    text-align: center;          /* На случай, если текст будет в две строки */
    
    width: 100%; 
    max-width: 400px; 
    margin: 20px auto; 
    background: var(--primary); 
    color: #fff !important; 
    padding: 18px; 
    font-size: 1.4rem; 
    font-weight: 700; 
    text-transform: uppercase; 
    border-radius: 5px; 
    box-shadow: 0 5px 15px rgba(24, 119, 242, 0.4);
    text-decoration: none;
    line-height: 1.2;            /* Убираем лишние отступы между строк */
}
.btn:hover { background: #145dbf; transform: scale(1.02); }

/* FORM PAGE STYLE */
.form-wrapper { max-width: 500px; margin: 50px auto; background: #fff; padding: 40px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); border-radius: 10px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: bold; color: #333; }
.form-group input { width: 100%; padding: 15px; border: 1px solid #ccc; border-radius: 5px; font-size: 1rem; }
.form-group input:focus { border-color: var(--primary); outline: none; }

.success-message { display: none; text-align: center; background: #d4edda; color: #155724; padding: 20px; border-radius: 5px; margin-bottom: 20px; }

/* FOOTER */
footer { background: #242424; color: #fff; padding: 40px 0; text-align: center; font-size: 0.9rem; margin-top: 50px; }
.footer-text { opacity: 0.7; max-width: 800px; margin: 0 auto 20px; line-height: 1.5; }
.footer-links a { color: #fff; margin: 0 10px; opacity: 0.8; }

/* MOBILE */
@media (max-width: 768px) {
    .nav-menu { display: none; }
    h1 { font-size: 2rem; }
    .header__head { justify-content: center; }
}