
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, sans-serif;
    background-color: #ffffff;
    color: #1f2937;
    line-height: 1.5;
    scroll-behavior: smooth;
}

/* Контейнеры */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.content-width {
    max-width: 720px;
    margin: 0 auto;
}

/* Цвета бренда */
:root {
    --brand-primary: #c639b5;
    --brand-light: #fea4f5;
    --gray-dark: #1f2937;
    --gray-meta: #6b7280;
    --border-light: #e5e7eb;
    --bg-soft: #fafafa;
}



/* Заголовки */
h1 {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
    color: var(--gray-dark);
}

h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 2rem 0 1rem;
    color: var(--brand-primary);
    border-left: 4px solid var(--brand-primary);
    padding-left: 1rem;
}

h3 {
    font-size: 1.35rem;
    font-weight: 600;
    margin: 1.5rem 0 0.75rem;
    color: #111827;
}

/* Хедер и навигация */
.site-header {
    border-bottom: 1px solid var(--border-light);
    background: white;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(2px);
    background-color: rgba(255,255,255,0.96);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    flex-wrap: wrap;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--brand-primary);
    letter-spacing: -0.02em;
}

.nav-menu {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-menu a {
    color: #1f2937;
    font-weight: 500;
}

.nav-menu a:hover {
    color: var(--brand-primary);
    text-decoration: none;
}

.burger {
    display: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--brand-primary);
    background: none;
    border: none;
}

/* breadcrumbs */
.breadcrumbs {
    margin: 1.5rem 0 1rem;
    font-size: 0.85rem;
    color: var(--gray-meta);
}

.breadcrumbs a {
    color: var(--brand-primary);
}

/* мета-информация */
.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin: 1rem 0 1.5rem;
    font-size: 0.9rem;
    color: var(--gray-meta);
    align-items: center;
}

.badge-category {
    background: var(--brand-light);
    color: var(--brand-primary);
    padding: 0.2rem 0.8rem;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.8rem;
}

.lead {
    font-size: 1.2rem;
    color: #374151;
    border-left: 3px solid var(--brand-primary);
    padding-left: 1.2rem;
    margin: 1.5rem 0;
    font-weight: 400;
    line-height: 1.4;
}

/* главное изображение */
.featured-image {
    margin: 2rem 0;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 12px 24px -12px rgba(0,0,0,0.2);
}

.featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

.caption {
    font-size: 0.8rem;
    color: var(--gray-meta);
    text-align: center;
    margin-top: 0.5rem;
}

/* тело статьи */
.article-body {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #1f2937;
}

.article-body p {
    margin-bottom: 1.2rem;
}

.article-body ul, .article-body ol {
    margin: 1rem 0 1.5rem 1.8rem;
}

.article-body li {
    margin-bottom: 0.5rem;
}

/* кастомные маркеры списка */
.custom-list {
    list-style: none;
    padding-left: 0;
}
.custom-list li {
    padding-left: 1.5rem;
    position: relative;
    margin-bottom: 0.6rem;
}

blockquote {
    background: var(--brand-light);
    border-left: 5px solid var(--brand-primary);
    padding: 1.2rem 1.8rem;
    margin: 1.8rem 0;
    font-style: italic;
    border-radius: 1rem;
    color: #2d2a2a;
}

/* блок поделиться */
.share-block {
    margin: 2.5rem 0;
    padding: 1rem 0;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

.share-label {
    font-weight: 600;
    margin-right: 0.5rem;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #f3f4f6;
    color: #1f2937;
    transition: 0.2s;
}

.social-icon:hover {
    background: var(--brand-primary);
    color: white;
    transform: translateY(-2px);
}

/* автор */
.author-card {
    display: flex;
    gap: 1.5rem;
    background: var(--bg-soft);
    padding: 1.5rem;
    border-radius: 1.5rem;
    margin: 2rem 0;
    align-items: center;
    flex-wrap: wrap;
}

.avatar {
    width: 80px;
    height: 80px;
    background: var(--brand-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--brand-primary);
}

/* похожие статьи */
.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin: 2rem 0;
}

.related-card {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: transform 0.2s, box-shadow 0.2s;
}

.related-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -12px rgba(0,0,0,0.1);
}

.related-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.related-content {
    padding: 1rem;
}

.related-category {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--brand-primary);
    background: var(--brand-light);
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
}

.related-title {
    font-weight: 700;
    margin: 0.6rem 0;
    font-size: 1rem;
}

/* комментарии */
.comments-section {
    margin: 3rem 0;
}

.comment-form {
    background: var(--bg-soft);
    padding: 1.5rem;
    border-radius: 1.5rem;
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1rem;
}

input, textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--border-light);
    border-radius: 0.8rem;
    font-family: inherit;
}



.comment-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.8rem;
}

.comment-avatar {
    width: 44px;
    height: 44px;
    min-width: 44px;
    background: var(--brand-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: var(--brand-primary);
}

/* кнопка наверх */
.scroll-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--brand-primary);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: 0.2s;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    z-index: 99;
}

.scroll-top.show {
    opacity: 1;
    visibility: visible;
}

/* футер */
footer {
    background: #fafafa;
    border-top: 1px solid var(--border-light);
    padding: 2rem 0;
    margin-top: 3rem;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: center;
}

/* адаптивность */
@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
    h1 {
        font-size: 1.8rem;
    }
    .nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        background: white;
        padding: 1rem 0;
        gap: 1rem;
    }
    .nav-menu.active {
        display: flex;
    }
    .burger {
        display: block;
    }
    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .author-card {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 640px) {
    .related-grid {
        grid-template-columns: 1fr;
    }
    .article-meta {
        gap: 0.8rem;
    }
}