/* ===== ТИПОГРАФИКА ===== */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: #1a1a1a;
    background: #f8f9fa;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1.2rem;
    margin-top: 2rem;
    color: #0d0d0d;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1.5rem;
    color: #2d2d2d;
}

/* ===== СТАТЬИ ===== */
.content-post {
    background: #ffffff;
    padding: 3rem 2.5rem;
    margin-bottom: 2.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.content-post h1,
.content-post h2,
.content-post h3 {
    color: #111;
    border-left: 4px solid #0066cc;
    padding-left: 1rem;
    margin-top: 2.5rem;
}

.content-post p {
    margin-bottom: 1.8rem;
    line-height: 1.85;
    text-align: justify;
    color: #333;
}

.content-post p:first-of-type {
    font-size: 1.1rem;
    font-weight: 500;
    color: #1a1a1a;
}

.content-post img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin: 2rem 0;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

/* ===== КНОПКИ ===== */
.btn, button, input[type="submit"] {
    display: inline-block;
    padding: 12px 28px;
    background: linear-gradient(135deg, #0066cc 0%, #004a99 100%);
    color: #ffffff !important;
    text-decoration: none;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,102,204,0.3);
}

.btn:hover, button:hover, input[type="submit"]:hover {
    background: linear-gradient(135deg, #0052a3 0%, #003d7a 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,102,204,0.4);
    color: #fff !important;
}

.btn-secondary {
    background: linear-gradient(135deg, #6c757d 0%, #545b62 100%);
    box-shadow: 0 4px 12px rgba(108,117,125,0.3);
}

/* ===== ССЫЛКИ ===== */
a {
    color: #0066cc;
    text-decoration: none;
    transition: all 0.2s ease;
    font-weight: 500;
}

a:hover {
    color: #004a99;
    text-decoration: underline;
}

.content-post a {
    color: #0066cc;
    border-bottom: 2px solid transparent;
    transition: border-color 0.3s;
}

.content-post a:hover {
    border-bottom-color: #0066cc;
    text-decoration: none;
}

/* ===== СПИСКИ ===== */
ul, ol {
    margin-bottom: 2rem;
    padding-left: 2rem;
    color: #2d2d2d;
}

.content-post ul li,
.content-post ol li {
    margin-bottom: 0.8rem;
    line-height: 1.8;
    color: #333;
}

.content-post ul li {
    list-style-type: none;
    position: relative;
    padding-left: 1.5rem;
}

.content-post ul li:before {
    content: "▸";
    position: absolute;
    left: 0;
    color: #0066cc;
    font-weight: bold;
}

.content-post ol li {
    padding-left: 0.5rem;
}

/* ===== ТАБЛИЦЫ ===== */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border-radius: 8px;
    overflow: hidden;
}

th {
    background: linear-gradient(135deg, #0066cc 0%, #0052a3 100%);
    color: #ffffff !important;
    padding: 15px;
    text-align: left;
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

td {
    padding: 14px 15px;
    border-bottom: 1px solid #e9ecef;
    color: #2d2d2d;
}

tr:nth-child(even) {
    background-color: #f8f9fa;
}

tr:hover {
    background-color: #e3f2fd;
}

/* ===== ФОРМЫ ===== */
input[type="text"],
input[type="email"],
input[type="tel"],
textarea,
select {
    width: 100%;
    padding: 12px 16px;
    margin-bottom: 1.2rem;
    border: 2px solid #dee2e6;
    border-radius: 6px;
    font-size: 15px;
    transition: all 0.3s;
    background: #fff;
    color: #1a1a1a;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #0066cc;
    box-shadow: 0 0 0 3px rgba(0,102,204,0.1);
}

textarea {
    min-height: 150px;
    resize: vertical;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #1a1a1a;
}

/* ===== ЦИТАТЫ ===== */
blockquote {
    margin: 2rem 0;
    padding: 1.5rem 2rem;
    background: #f8f9fa;
    border-left: 5px solid #0066cc;
    font-style: italic;
    color: #2d2d2d;
    border-radius: 0 6px 6px 0;
}

blockquote p {
    margin-bottom: 0.5rem;
    color: #2d2d2d;
}

/* ===== КОД ===== */
code {
    background: #f4f4f4;
    padding: 3px 8px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    color: #e83e8c;
}

pre {
    background: #2d2d2d;
    color: #f8f9fa;
    padding: 1.5rem;
    border-radius: 6px;
    overflow-x: auto;
    margin: 2rem 0;
}

pre code {
    background: transparent;
    color: #f8f9fa;
    padding: 0;
}

/* ===== ОТСТУПЫ ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 4rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    color: #0d0d0d;
}

/* ===== КАРТОЧКИ ===== */
.card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    padding: 2rem;
    margin-bottom: 2rem;
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

/* ===== АДАПТИВНОСТЬ ===== */
@media (max-width: 1024px) {
    .content-post {
        padding: 2.5rem 2rem;
    }
    
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }
    h3 { font-size: 1.6rem; }
}

@media (max-width: 768px) {
    body {
        font-size: 15px;
    }
    
    .content-post {
        padding: 2rem 1.5rem;
    }
    
    h1 { font-size: 1.9rem; }
    h2 { font-size: 1.6rem; }
    h3 { font-size: 1.4rem; }
    
    table {
        font-size: 14px;
    }
    
    th, td {
        padding: 10px 8px;
    }
    
    .btn, button, input[type="submit"] {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    section {
        padding: 3rem 0;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 14px;
    }
    
    .content-post {
        padding: 1.5rem 1rem;
    }
    
    h1 { font-size: 1.6rem; }
    h2 { font-size: 1.4rem; }
    h3 { font-size: 1.2rem; }
    
    .content-post p {
        text-align: left;
    }
    
    ul, ol {
        padding-left: 1.5rem;
    }
    
    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}

/* ===== ДОПОЛНИТЕЛЬНЫЕ ЭЛЕМЕНТЫ ===== */
.highlight {
    background: linear-gradient(120deg, #fef3c7 0%, #fef3c7 100%);
    background-repeat: no-repeat;
    background-size: 100% 40%;
    background-position: 0 80%;
    font-weight: 600;
    color: #1a1a1a;
}

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

.p-1 { padding: 1rem; }
.p-2 { padding: 2rem; }
.p-3 { padding: 3rem; }

strong, b {
    font-weight: 700;
    color: #0d0d0d;
}

em, i {
    font-style: italic;
}

hr {
    border: none;
    height: 2px;
    background: linear-gradient(90deg, transparent, #0066cc, transparent);
    margin: 3rem 0;
}

.content-post hr {
    margin: 2.5rem 0;
}
