/* ============================================
   Блог «Стена» — стили для статей
   ============================================ */
* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    background: #12141a;
    color: #d8dae0;
    line-height: 1.7;
    min-height: 100vh;
}
.container {
    max-width: 760px;
    margin: 0 auto;
    padding: 40px 20px 80px;
}
.back-link {
    display: inline-block;
    color: #7d7f8a;
    text-decoration: none;
    font-size: 14px;
    margin-bottom: 24px;
    transition: color 0.15s;
}
.back-link:hover { color: #d8dae0; }
h1 {
    font-size: 32px;
    font-weight: 800;
    margin: 0 0 16px;
    color: #e8eaf0;
    line-height: 1.25;
}
h2 {
    font-size: 22px;
    font-weight: 700;
    margin: 32px 0 12px;
    color: #e8eaf0;
    line-height: 1.3;
}
h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 24px 0 8px;
    color: #b8bac4;
}
p, li {
    font-size: 16px;
    margin: 12px 0;
    color: #c8cacd;
}
ul, ol {
    padding-left: 24px;
    margin: 12px 0;
}
li { margin: 8px 0; }
strong { color: #e8eaf0; }
a { color: #8ba5e8; text-decoration: none; }
a:hover { text-decoration: underline; }

/* ============================================
   CTA-баннеры (обязательные в каждой статье)
   ============================================ */
.cta-banner {
    background: linear-gradient(135deg, #1a2a4a 0%, #2a1a4a 100%);
    border: 1px solid #4a6ee0;
    border-radius: 14px;
    padding: 24px 28px;
    margin: 24px 0;
    text-align: center;
}
.cta-banner__title {
    font-size: 20px;
    font-weight: 700;
    color: #e8eaf0;
    margin: 0 0 8px;
}
.cta-banner__text {
    font-size: 14px;
    color: #a8b8e8;
    margin: 0 0 16px;
}
.cta-banner__btn {
    display: inline-block;
    background: #4a6ee0;
    color: #fff;
    text-decoration: none;
    padding: 14px 32px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    transition: background 0.15s, transform 0.15s;
}
.cta-banner__btn:hover {
    background: #5a7ef0;
    transform: translateY(-2px);
    text-decoration: none;
}

/* CTA в середине и конце — проще */
.cta-inline {
    background: #1a1c24;
    border: 1px solid #262932;
    border-radius: 10px;
    padding: 20px 24px;
    margin: 28px 0;
    text-align: center;
}
.cta-inline__btn {
    display: inline-block;
    background: #4a6ee0;
    color: #fff;
    text-decoration: none;
    padding: 12px 28px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    transition: background 0.15s;
}
.cta-inline__btn:hover { background: #5a7ef0; text-decoration: none; }

/* ============================================
   Таблицы сравнения
   ============================================ */
.table-wrap {
    overflow-x: auto;
    margin: 20px 0;
    border-radius: 10px;
    border: 1px solid #262932;
}
table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    background: #1a1c24;
}
th, td {
    padding: 12px 14px;
    text-align: left;
    border-bottom: 1px solid #262932;
    color: #c8cacd;
}
th {
    background: #12141a;
    color: #e8eaf0;
    font-weight: 600;
    font-size: 13px;
}
tr:last-child td { border-bottom: none; }
tr:hover td { background: #1e2230; }

/* ============================================
   FAQ-блок в статье
   ============================================ */
.faq {
    margin: 32px 0;
}
.faq details {
    background: #1a1c24;
    border: 1px solid #262932;
    border-radius: 10px;
    margin-bottom: 10px;
    padding: 16px 20px;
    transition: border-color 0.15s;
}
.faq details:hover { border-color: #3a3d48; }
.faq summary {
    cursor: pointer;
    font-weight: 600;
    color: #8ba5e8;
    list-style: none;
    font-size: 15px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before {
    content: '▸ ';
    color: #6c6e78;
    margin-right: 4px;
    display: inline-block;
    transition: transform 0.2s;
}
.faq details[open] summary::before { transform: rotate(90deg); }
.faq details p {
    margin: 12px 0 0;
    font-size: 14px;
    color: #b8bac4;
}

/* ============================================
   «Читайте также»
   ============================================ */
.read-more {
    margin: 40px 0;
    padding: 24px;
    background: #1a1c24;
    border: 1px solid #262932;
    border-radius: 12px;
}
.read-more h3 {
    margin: 0 0 16px;
    font-size: 16px;
    color: #e8eaf0;
}
.read-more ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.read-more li {
    margin: 10px 0;
    padding-left: 20px;
    position: relative;
}
.read-more li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: #4a6ee0;
    font-weight: 700;
}
.read-more a {
    color: #8ba5e8;
    font-size: 15px;
}

/* ============================================
   Футер статьи
   ============================================ */
.article-footer {
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid #262932;
    font-size: 13px;
    color: #6c6e78;
    text-align: center;
}
.article-footer a { color: #8a8f9a; }

/* ============================================
   Оглавление блога
   ============================================ */
.blog-index h1 {
    text-align: center;
    margin-bottom: 8px;
}
.blog-index .subtitle {
    text-align: center;
    color: #7d7f8a;
    margin: 0 0 40px;
    font-size: 15px;
}
.blog-category {
    margin: 32px 0;
}
.blog-category h2 {
    font-size: 20px;
    margin: 0 0 16px;
    color: #8ba5e8;
    border-bottom: 1px solid #262932;
    padding-bottom: 8px;
}
.blog-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.blog-list li {
    margin: 8px 0;
    padding-left: 20px;
    position: relative;
}
.blog-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: #4a6ee0;
    font-weight: 700;
}
.blog-list a {
    color: #c8cacd;
    font-size: 15px;
    transition: color 0.15s;
}
.blog-list a:hover { color: #8ba5e8; text-decoration: none; }

@media (max-width: 720px) {
    h1 { font-size: 26px; }
    h2 { font-size: 20px; }
    p, li { font-size: 15px; }
    .container { padding: 24px 16px 60px; }
}