/* ===== RESET & БАЗОВЫЕ СТИЛИ ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #f5f7fb;
    color: #1e293b;
    line-height: 1.5;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== HEADER ===== */
.site-header {
    background: #ffffff;
    border-bottom: 1px solid #e9edf2;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(8px);
    background-color: rgba(255, 255, 255, 0.96);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    padding: 12px 0;
    gap: 16px;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo {
    font-size: 26px;
    font-weight: 800;
    background: linear-gradient(135deg, #1e2a3e, #0f172a);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: -0.5px;
}

.logo i {
    background: none;
    -webkit-background-clip: unset;
    color: #f97316;
    margin-right: 6px;
}

.tagline {
    font-size: 13px;
    background: #f1f5f9;
    padding: 4px 10px;
    border-radius: 40px;
    color: #475569;
    font-weight: 500;
}

.main-nav ul {
    display: flex;
    gap: 28px;
    list-style: none;
}

.main-nav a {
    text-decoration: none;
    font-weight: 500;
    color: #334155;
    transition: 0.2s;
    font-size: 15px;
}

.main-nav a:hover,
.main-nav .active {
    color: #f97316;
}

.header-actions {
    display: flex;
    gap: 18px;
    align-items: center;
}

.header-actions i {
    font-size: 20px;
    color: #475569;
    cursor: pointer;
    transition: 0.2s;
}

.header-actions i:hover {
    color: #f97316;
}

/* ===== ОСНОВНАЯ СЕТКА ===== */
.two-columns {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 40px;
    margin: 36px 0 60px;
}

/* ===== КАРТОЧКА ПОСТА ===== */
.post-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 24px 28px;
    margin-bottom: 28px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.03), 0 4px 12px rgba(0,0,0,0.02);
    transition: all 0.2s ease;
    border: 1px solid #edf2f7;
}

.post-image {
    text-align: center;
    overflow: hidden;
}

.post-image img {
    max-width: 100%;
    height: auto;
    display: inline-block;
}

.post-card:hover {
    border-color: #e2e8f0;
    box-shadow: 0 8px 20px rgba(0,0,0,0.05);
}

.post-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    flex-wrap: wrap;
    gap: 10px;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.avatar {
    width: 42px;
    height: 42px;
    background: linear-gradient(145deg, #f97316, #ea580c);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 18px;
}

.author-name {
    font-weight: 700;
    color: #0f172a;
}

.post-time {
    font-size: 13px;
    color: #64748b;
}

.post-rating {
    background: #f8fafc;
    padding: 6px 12px;
    border-radius: 40px;
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.post-rating i {
    color: #f97316;
    cursor: pointer;
}

.post-title {
    font-size: 22px;
    font-weight: 700;
    margin: 12px 0 12px 0;
    line-height: 1.35;
}

.post-title a {
    text-decoration: none;
    color: #0f172a;
    transition: 0.2s;
}

.post-title a:hover {
    color: #f97316;
}

.post-text {
    color: #334155;
    margin: 12px 0 18px;
    font-size: 16px;
    line-height: 1.5;
    word-break: break-word;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0 16px;
}

.tag {
    background: #f1f5f9;
    padding: 4px 12px;
    border-radius: 40px;
    font-size: 12px;
    font-weight: 500;
    color: #1e293b;
    text-decoration: none;
    transition: 0.1s;
}

.tag:hover {
    background: #e2e8f0;
}

.post-footer {
    display: flex;
    gap: 28px;
    margin-top: 20px;
    border-top: 1px solid #ecf3fa;
    padding-top: 16px;
}

.post-footer span {
    font-size: 14px;
    color: #5b6e8c;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: 0.2s;
}

.post-footer span:hover {
    color: #f97316;
}

/* ===== САЙДБАР ===== */
.sidebar {
    position: sticky;
    top: 90px;
}

.sidebar-widget {
    background: #fff;
    border-radius: 20px;
    padding: 22px;
    margin-bottom: 28px;
    border: 1px solid #edf2f7;
}

.widget-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-left: 3px solid #f97316;
    padding-left: 12px;
}

.community-rules {
    list-style: none;
}

.community-rules li {
    margin-bottom: 12px;
    font-size: 14px;
    display: flex;
    gap: 10px;
    color: #2c3e50;
}

.community-rules i {
    color: #f97316;
    width: 20px;
}

.subscribe-box {
    background: linear-gradient(145deg, #fff7ed, #ffedd5);
    border-radius: 20px;
    text-align: center;
}

.subscribe-box input {
    width: 100%;
    padding: 12px;
    border: 1px solid #fed7aa;
    border-radius: 60px;
    margin: 12px 0;
    font-size: 14px;
    outline: none;
}

.subscribe-box input:focus {
    border-color: #f97316;
}

.btn-subscribe {
    background: #f97316;
    color: white;
    border: none;
    width: 100%;
    padding: 10px;
    border-radius: 40px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}

.btn-subscribe:hover {
    background: #ea580c;
}

.top-authors {
    list-style: none;
}

.top-authors li {
    display: flex;
    justify-content: space-between;
    margin-bottom: 14px;
    font-size: 14px;
    font-weight: 500;
}

.top-authors li span:first-child {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ===== ПАГИНАЦИЯ ===== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 48px 0 60px;
}

.pagination a {
    background: white;
    padding: 8px 16px;
    border-radius: 40px;
    text-decoration: none;
    color: #1f2937;
    font-weight: 500;
    border: 1px solid #e2e8f0;
    transition: 0.2s;
}

.pagination a:hover {
    background: #f97316;
    color: white;
    border-color: #f97316;
}

/* ===== ФУТЕР ===== */
.footer {
    border-top: 1px solid #e2e8f0;
    background: white;
    padding: 32px 0;
    margin-top: 20px;
    font-size: 13px;
    color: #5b6e8c;
    text-align: center;
}

/* ===== АДАПТИВНОСТЬ ===== */
@media (max-width: 820px) {
    .two-columns {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        position: static;
    }
    
    .header-inner {
        flex-direction: column;
        align-items: stretch;
    }
    
    .main-nav ul {
        justify-content: center;
        flex-wrap: wrap;
        gap: 16px;
    }
    
    .post-card {
        padding: 18px;
    }
    
    .post-title {
        font-size: 18px;
    }
    
    .post-text {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .post-footer {
        flex-wrap: wrap;
        gap: 16px;
    }
    
    .header-actions {
        justify-content: center;
    }
}
/* ===== ФОРМА ВХОДА ===== */
.login-widget {
    background: linear-gradient(145deg, #fff, #fef9f0);
}

.login-form .form-group {
    margin-bottom: 16px;
}

.login-form label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 6px;
    color: #334155;
}

.login-form input[type="text"],
.login-form input[type="password"] {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-size: 14px;
    transition: all 0.2s;
    background: #fff;
}

.login-form input:focus {
    outline: none;
    border-color: #f97316;
    box-shadow: 0 0 0 3px rgba(249,115,22,0.1);
}

.remember {
    display: flex;
    align-items: center;
}

.remember label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 13px;
    font-weight: normal;
}

.remember input {
    width: auto;
    margin: 0;
}

.btn-login {
    width: 100%;
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: white;
    border: none;
    padding: 12px;
    border-radius: 40px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(249,115,22,0.3);
}

.login-links {
    display: flex;
    justify-content: space-between;
    margin: 16px 0;
    font-size: 13px;
}

.login-links a {
    color: #f97316;
    text-decoration: none;
    transition: 0.2s;
}

.login-links a:hover {
    text-decoration: underline;
}

.social-auth {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #edf2f7;
}

.social-auth-divider {
    text-align: center;
    font-size: 12px;
    color: #94a3b8;
    margin-bottom: 16px;
    position: relative;
}

.social-auth-divider::before,
.social-auth-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 30%;
    height: 1px;
    background: #e2e8f0;
}

.social-auth-divider::before {
    left: 0;
}

.social-auth-divider::after {
    right: 0;
}

.social-buttons {
    display: flex;
    gap: 12px;
}

.social-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px;
    border-radius: 40px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
    border: 1px solid #e2e8f0;
    background: #fff;
}

.social-btn i {
    font-size: 16px;
}

.yandex-btn {
    color: #000;
}

.yandex-btn:hover {
    background: #f5f5f5;
    border-color: #ccc;
}

.vk-btn {
    color: #0077ff;
}

.vk-btn:hover {
    background: #e8f0ff;
    border-color: #0077ff;
}

.login-error {
    background: #fee2e2;
    color: #dc2626;
    padding: 10px;
    border-radius: 12px;
    font-size: 13px;
    margin-bottom: 16px;
    text-align: center;
}

/* ===== СТРАНИЦА КАТЕГОРИЙ ===== */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 30px;
}

.category-card {
    background: #fff;
    border-radius: 20px;
    padding: 28px 20px;
    text-align: center;
    transition: all 0.3s;
    border: 1px solid #edf2f7;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    border-color: #f97316;
}

.category-card__icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.category-card__title {
    font-size: 20px;
    margin-bottom: 10px;
}

.category-card__title a {
    text-decoration: none;
    color: #2c3e50;
    transition: color 0.2s;
}

.category-card__title a:hover {
    color: #f97316;
}

.category-card__count {
    font-size: 14px;
    color: #7f8c8d;
    margin-bottom: 16px;
}

.category-card__link {
    display: inline-block;
    color: #f97316;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
}

/* ===== СТРАНИЦА БЛОГЕРОВ ===== */
.bloggers-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 30px;
}

.blogger-card {
    background: #fff;
    border-radius: 20px;
    padding: 24px;
    display: flex;
    gap: 24px;
    transition: all 0.3s;
    border: 1px solid #edf2f7;
    align-items: center;
}

.blogger-card:hover {
    transform: translateX(5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.05);
    border-color: #f97316;
}

.blogger-card__avatar {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #f97316, #ea580c);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: #fff;
    flex-shrink: 0;
}

.blogger-card__info {
    flex: 1;
}

.blogger-card__name {
    font-size: 22px;
    margin-bottom: 8px;
}

.blogger-card__name a {
    text-decoration: none;
    color: #2c3e50;
    transition: color 0.2s;
}

.blogger-card__name a:hover {
    color: #f97316;
}

.blogger-card__stats {
    display: flex;
    gap: 20px;
    margin-bottom: 12px;
    font-size: 14px;
    color: #7f8c8d;
}

.blogger-card__stats i {
    margin-right: 5px;
}

.blogger-card__bio {
    color: #5b6e8c;
    font-size: 14px;
    line-height: 1.5;
}

@media (max-width: 640px) {
    .blogger-card {
        flex-direction: column;
        text-align: center;
    }
    
    .blogger-card__stats {
        justify-content: center;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
    }
}
/* ===== СТРАНИЦА СТАТЬИ ===== */
.post-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 40px;
    margin: 40px 0 60px;
}

.post-full {
    background: #fff;
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.03), 0 4px 12px rgba(0,0,0,0.02);
    border: 1px solid #edf2f7;
}

.post-full__title {
    font-size: 36px;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 24px;
    color: #0f172a;
}

.post-full__meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    padding-bottom: 24px;
    margin-bottom: 24px;
    border-bottom: 1px solid #edf2f7;
}

.post-full__author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.post-full__author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    background: linear-gradient(135deg, #f97316, #ea580c);
    display: flex;
    align-items: center;
    justify-content: center;
}

.post-full__author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-full__author-avatar i {
    font-size: 28px;
    color: #fff;
}

.post-full__author-name {
    font-weight: 700;
    color: #0f172a;
}

.post-full__author-bio {
    font-size: 12px;
    color: #64748b;
}

.post-full__stats {
    display: flex;
    gap: 20px;
    font-size: 14px;
    color: #64748b;
}

.post-full__stats i {
    margin-right: 6px;
}

.post-full__image {
    margin: 24px 0 32px;
    border-radius: 20px;
    overflow: hidden;
}

.post-full__image img {
    width: 100%;
    height: auto;
    display: block;
}

.post-full__content {
    font-size: 18px;
    line-height: 1.8;
    color: #1e293b;
}

.post-full__content h2 {
    font-size: 28px;
    margin: 32px 0 16px;
}

.post-full__content h3 {
    font-size: 24px;
    margin: 24px 0 12px;
}

.post-full__content p {
    margin-bottom: 20px;
}

.post-full__content img {
    max-width: 100%;
    border-radius: 12px;
    margin: 24px 0;
}

.post-full__content pre {
    background: #1e293b;
    color: #e2e8f0;
    padding: 20px;
    border-radius: 12px;
    overflow-x: auto;
    margin: 24px 0;
}

.post-full__tags {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin: 32px 0 24px;
    padding-top: 24px;
    border-top: 1px solid #edf2f7;
}

.tags-label {
    font-size: 14px;
    color: #64748b;
}

.post-full__actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    padding: 24px 0;
    border-top: 1px solid #edf2f7;
    border-bottom: 1px solid #edf2f7;
    margin-bottom: 32px;
}

.post-rating-large {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #f8fafc;
    padding: 8px 20px;
    border-radius: 60px;
}

.rating-btn {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #94a3b8;
    transition: 0.2s;
    padding: 8px;
}

.rating-btn:hover {
    color: #f97316;
}

.rating-value {
    font-size: 20px;
    font-weight: 700;
    color: #0f172a;
    min-width: 40px;
    text-align: center;
}

.post-share {
    display: flex;
    align-items: center;
    gap: 12px;
}

.share-label {
    font-size: 14px;
    color: #64748b;
}

.share-link {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f1f5f9;
    color: #475569;
    transition: 0.2s;
}

.share-link:hover {
    transform: translateY(-2px);
}

.share-link.telegram:hover {
    background: #26A5E4;
    color: #fff;
}

.share-link.twitter:hover {
    background: #1DA1F2;
    color: #fff;
}

.share-link.vk:hover {
    background: #0077FF;
    color: #fff;
}

.post-full__navigation {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin: 32px 0;
}

.post-full__navigation a {
    flex: 1;
    text-decoration: none;
    padding: 20px;
    background: #f8fafc;
    border-radius: 16px;
    transition: 0.2s;
    font-size: 14px;
    color: #64748b;
}

.post-full__navigation a:hover {
    background: #f1f5f9;
    color: #f97316;
}

.post-full__navigation a span {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: #0f172a;
    margin-top: 8px;
}

.post-full__related {
    margin: 48px 0;
}

.related-title {
    font-size: 24px;
    margin-bottom: 24px;
}

.related-posts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.post-card-small {
    display: flex;
    gap: 16px;
    padding: 16px;
    background: #f8fafc;
    border-radius: 16px;
    transition: 0.2s;
}

.post-card-small:hover {
    background: #f1f5f9;
    transform: translateY(-2px);
}

.post-card-small__image {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
}

.post-card-small__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-card-small__title {
    font-size: 16px;
    margin-bottom: 8px;
}

.post-card-small__title a {
    text-decoration: none;
    color: #0f172a;
}

.post-card-small__title a:hover {
    color: #f97316;
}

.post-card-small__meta {
    font-size: 12px;
    color: #94a3b8;
    display: flex;
    gap: 12px;
}

.post-full__comments {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid #edf2f7;
}

.comments-title {
    font-size: 24px;
    margin-bottom: 24px;
}

.comment-form {
    background: #f8fafc;
    padding: 24px;
    border-radius: 20px;
    margin-bottom: 32px;
}

.comment-form .form-group {
    margin-bottom: 16px;
}

.comment-form input,
.comment-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-family: inherit;
    font-size: 14px;
    transition: 0.2s;
}

.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: #f97316;
}

.btn-submit-comment {
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 40px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}

.btn-submit-comment:hover {
    transform: translateY(-2px);
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

@media (max-width: 768px) {
    .post-layout {
        grid-template-columns: 1fr;
    }
    
    .post-full {
        padding: 24px;
    }
    
    .post-full__title {
        font-size: 28px;
    }
    
    .post-full__meta {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .post-full__content {
        font-size: 16px;
    }
    
    .post-full__navigation {
        flex-direction: column;
    }
}