 /* --- Основные стили и сброс --- */
 :root {
     --primary-color: #2563eb;
     /* Синий акцент */
     --secondary-color: #1e293b;
     /* Темный текст */
     --bg-color: #f8fafc;
     /* Светлый фон */
     --card-bg: #ffffff;
     --text-gray: #64748b;
     --border-radius: 12px;
 }

 * {
     box-sizing: border-box;
     margin: 0;
     padding: 0;
 }

 body {
     font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
     background-color: var(--bg-color);
     color: var(--secondary-color);
     line-height: 1.6;
 }

 a {
     text-decoration: none;
     color: inherit;
     transition: 0.3s;
 }

 ul {
     list-style: none;
 }

 /* --- Контейнер --- */
 .container {
     max-width: 1200px;
     margin: 0 auto;
     padding: 0 20px;
 }

 /* --- Шапка (Header) --- */
 header {
     background-color: var(--card-bg);
     border-bottom: 1px solid #e2e8f0;
     padding: 1rem 0;
     position: sticky;
     /*position: relative;*/
     top: 0;
     z-index: 100;
     /*z-index: 10;*/
 }

 .nav-wrapper {
     display: flex;
     justify-content: space-between;
     align-items: center;
 }

 .logo {
     font-size: 1.5rem;
     font-weight: 800;
     color: var(--primary-color);
     letter-spacing: -1px;
 }

 .logo span {
     color: var(--secondary-color);
 }

 nav ul {
     display: flex;
     gap: 20px;
 }

 nav a:hover {
     color: var(--primary-color);
 }

 .btn-subscribe {
     background-color: var(--primary-color);
     color: white;
     padding: 8px 16px;
     border-radius: 6px;
     font-weight: 600;
 }

 .btn-subscribe:hover {
     background-color: #1d4ed8;
 }

 /* --- Hero Секция (Главная новость) --- */
 .hero {
     margin: 40px 0;
 }

 .hero-card {
     background-color: var(--card-bg);
     border-radius: var(--border-radius);
     overflow: hidden;
     display: grid;
     grid-template-columns: 1fr 1fr;
     box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
 }

 .hero-image {
     background-color: #cbd5e1;
     min-height: 300px;
     background-image: url('/pictures/news/190226/hacker.webp');
     background-size: cover;
     background-position: center;
 }

 .hero-content {
     padding: 40px;
     display: flex;
     flex-direction: column;
     justify-content: center;
 }

 .tag {
     display: inline-block;
     background-color: #dbeafe;
     color: var(--primary-color);
     padding: 4px 10px;
     border-radius: 4px;
     font-size: 0.8rem;
     font-weight: 600;
     margin-bottom: 15px;
     width: fit-content;
 }

 .hero-title {
     font-size: 2.5rem;
     margin-bottom: 15px;
     line-height: 1.2;
 }

 .hero-excerpt {
     color: var(--text-gray);
     margin-bottom: 25px;
     font-size: 1.1rem;
 }

 /* --- Сетка контента --- */
 .content-grid {
     display: grid;
     grid-template-columns: 2fr 1fr;
     /* 2 части контент, 1 часть сайдбар */
     gap: 40px;
     margin-bottom: 60px;
 }

 /* --- Статьи --- */
 .section-title {
     font-size: 1.5rem;
     margin-bottom: 20px;
     border-left: 4px solid var(--primary-color);
     padding-left: 15px;
 }

 .article-card {
     background-color: var(--card-bg);
     border-radius: var(--border-radius);
     padding: 25px;
     margin-bottom: 25px;
     display: flex;
     gap: 20px;
     box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
     transition: transform 0.2s;
 }

 .article-card:hover {
     transform: translateY(-3px);
     box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
 }

 .article-thumb {
     width: 200px;
     height: 140px;
     border-radius: 8px;
     background-color: #e2e8f0;
     flex-shrink: 0;
     object-fit: cover;
 }

 .article-info h3 {
     font-size: 1.25rem;
     margin-bottom: 10px;
 }

 .article-meta {
     font-size: 0.85rem;
     color: var(--text-gray);
     margin-bottom: 10px;
 }

 .read-more {
     color: var(--primary-color);
     font-weight: 600;
     font-size: 0.9rem;
 }

 /* --- Сайдбар --- */
 .sidebar-widget {
     background-color: var(--card-bg);
     padding: 25px;
     border-radius: var(--border-radius);
     margin-bottom: 30px;
     box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
 }

 .widget-title {
     font-size: 1.1rem;
     margin-bottom: 15px;
     font-weight: 700;
 }

 .category-list li {
     border-bottom: 1px solid #f1f5f9;
     padding: 10px 0;
 }

 .category-list li:last-child {
     border-bottom: none;
 }

 .category-list a {
     display: flex;
     justify-content: space-between;
     color: var(--text-gray);
 }

 .category-list a:hover {
     color: var(--primary-color);
 }

 .newsletter-input {
     width: 100%;
     padding: 10px;
     border: 1px solid #cbd5e1;
     border-radius: 6px;
     margin-bottom: 10px;
 }

 .btn-full {
     width: 100%;
     padding: 10px;
     background-color: var(--secondary-color);
     color: white;
     border: none;
     border-radius: 6px;
     cursor: pointer;
 }

 /* --- Футер --- */
 footer {
     background-color: var(--secondary-color);
     color: white;
     padding: 40px 0;
     text-align: center;
 }

 .footer-links {
     display: flex;
     justify-content: center;
     gap: 20px;
     margin-bottom: 20px;
 }

 .footer-links a {
     color: #94a3b8;
 }

 .footer-links a:hover {
     color: white;
 }

 /* --- Адаптивность (Mobile) --- */
 @media (max-width: 768px) {
     .hero-card {
         grid-template-columns: 1fr;
     }

     .hero-image {
         height: 200px;
     }

     .content-grid {
         grid-template-columns: 1fr;
     }

     .article-card {
         flex-direction: column;
     }

     .article-thumb {
         width: 100%;
         height: 180px;
     }

     .nav-wrapper {
         flex-direction: column;
         gap: 15px;
     }
 }
 /* Стили для логотипа в шапке */
.header-logo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    margin-left: 10px;
    vertical-align: middle;
    border: 2px solid var(--primary-color);
    transition: transform 0.3s;
}

.header-logo:hover {
    transform: scale(1.1);
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
    .header-logo {
        width: 30px;
        height: 30px;
    }
}
/* ========== СТРАНИЦА СТАТЬИ ========== */

/* Хлебные крошки */
.breadcrumb {
    padding: 20px 0;
    font-size: 0.9rem;
    color: var(--text-gray);
}

.breadcrumb a {
    color: var(--primary-color);
    transition: 0.3s;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb span {
    color: var(--secondary-color);
}

/* Полная статья */
.article-full {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 40px;
    margin: 0 auto 60px;
    max-width: 900px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.article-header {
    margin-bottom: 30px;
}

.tag-large {
    font-size: 0.9rem;
    padding: 6px 14px;
    margin-bottom: 20px;
}

.article-full-title {
    font-size: 2.2rem;
    line-height: 1.3;
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.article-meta-large {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    color: var(--text-gray);
    font-size: 0.9rem;
    padding-bottom: 20px;
    border-bottom: 1px solid #e2e8f0;
}

.article-meta-large span {
    display: flex;
    align-items: center;
}

/* Изображение статьи */
.article-featured-image {
    margin: 30px 0;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.article-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

.image-caption {
    background-color: #f1f5f9;
    padding: 12px 20px;
    font-size: 0.85rem;
    color: var(--text-gray);
    text-align: center;
    font-style: italic;
}

/* Контент статьи */
.article-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--secondary-color);
}

.article-content p {
    margin-bottom: 20px;
}

.lead {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--secondary-color);
    padding: 20px 0;
    border-bottom: 2px solid #e2e8f0;
    margin-bottom: 30px;
}

.article-content h2 {
    font-size: 1.6rem;
    margin: 40px 0 20px;
    color: var(--secondary-color);
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
}

.article-content h3 {
    font-size: 1.3rem;
    margin: 30px 0 15px;
    color: var(--secondary-color);
}

.article-content strong {
    color: var(--primary-color);
    font-weight: 600;
}

/* Списки */
.feature-list {
    list-style: none;
    padding-left: 0;
    margin: 20px 0;
}

.feature-list li {
    padding: 10px 0 10px 35px;
    position: relative;
    border-bottom: 1px solid #f1f5f9;
}

.feature-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.2rem;
}

/* Информационные блоки */
.alert-box {
    background-color: #fef3c7;
    border-left: 4px solid #f59e0b;
    padding: 20px 25px;
    margin: 30px 0;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

.info-box {
    background-color: #dbeafe;
    border-left: 4px solid var(--primary-color);
    padding: 25px;
    margin: 30px 0;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

.info-box h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.info-box ul {
    margin: 0;
    padding-left: 20px;
}

.info-box li {
    margin-bottom: 8px;
}

.highlight-box {
    background-color: #d1fae5;
    border: 2px dashed #10b981;
    padding: 25px;
    margin: 30px 0;
    border-radius: var(--border-radius);
    text-align: center;
}

.highlight-box p {
    margin: 0;
    font-size: 1.1rem;
}

.tips-box {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 25px;
    margin: 30px 0;
    border-radius: var(--border-radius);
}

.tips-box h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.tips-box ol {
    padding-left: 20px;
    margin: 0;
}

.tips-box li {
    margin-bottom: 10px;
    line-height: 1.6;
}

/* Теги */
.article-tags {
    margin: 40px 0;
    padding: 20px 0;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}

.tags-label {
    font-weight: 600;
    margin-right: 10px;
    color: var(--secondary-color);
}

.tag-link {
    display: inline-block;
    background-color: #f1f5f9;
    color: var(--text-gray);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    margin: 5px 5px 5px 0;
    transition: 0.3s;
}

.tag-link:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Навигация статьи */
.article-navigation {
    margin-top: 40px;
    text-align: center;
}

.btn-back {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 12px 30px;
    border-radius: 6px;
    font-weight: 600;
    transition: 0.3s;
}

.btn-back:hover {
    background-color: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

/* Адаптивность */
@media (max-width: 768px) {
    .article-full {
        padding: 25px;
    }
    
    .article-full-title {
        font-size: 1.6rem;
    }
    
    .article-content {
        font-size: 1rem;
    }
    
    .article-meta-large {
        flex-direction: column;
        gap: 8px;
    }
}
/* ========== Иконка Telegram в кнопке ========== */
.btn-subscribe {
    display: inline-flex;
    align-items: center;
    gap: 8px; /* Отступ между текстом и иконкой */
}

.tg-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0; /* Чтобы иконка не сжималась */
    transition: transform 0.3s;
}

/* Анимация иконки при наведении на кнопку */
.btn-subscribe:hover .tg-icon {
    transform: scale(1.1);
}

/* Адаптив: на мобильных чуть меньше иконка */
@media (max-width: 480px) {
    .tg-icon {
        width: 16px;
        height: 16px;
    }
}
/* ========== СТРАНИЦА "ОБО МНЕ" ========== */
/*
.about-page {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 40px;
    margin: 0 auto 60px;
    max-width: 900px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}
*/
/* Убираем фиксированное позиционирование у всей страницы */
.about-page {
    position: relative !important;
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 40px;
    margin: 0 auto 60px;
    max-width: 900px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    z-index: 1;
}

/*
.about-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid #e2e8f0;
}
*/
/* Убираем фиксированное позиционирование у заголовка */
.about-header {
    position: relative !important; /* Было sticky/fixed - меняем на relative */
    top: auto !important; /* Сбрасываем привязку к верху */
    z-index: auto !important; /* Сбрасываем z-index */
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid #e2e8f0;
}

.about-title {
    font-size: 2rem;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.about-subtitle {
    color: var(--text-gray);
    font-size: 1.1rem;
}

/* Аватар */
.about-avatar {
    text-align: center;
    margin: 30px 0;
}

.avatar-placeholder {
    width: 150px;
    height: 150px;
    margin: 0 auto 15px;
    background: linear-gradient(135deg, var(--primary-color), #60a5fa);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 4px solid white;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
}

.avatar-initials {
    font-size: 3rem;
    font-weight: 800;
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.avatar-caption {
    font-size: 0.9rem;
    color: var(--text-gray);
    font-style: italic;
}
/* Обновляем стили для аватара с фото */
.avatar-with-photo {
    padding: 0;
    overflow: hidden;
}

.avatar-with-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Фото заполнит круг, сохраняя пропорции */
    display: block;
}

/* При наведении можно добавить эффект */
.avatar-with-photo:hover img {
    transform: scale(1.05);
    transition: transform 0.3s;
}

/* Контент */
.about-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--secondary-color);
}

.about-content p {
    margin-bottom: 20px;
}

.lead {
    font-size: 1.2rem;
    font-weight: 500;
    padding: 20px 0;
    border-bottom: 2px solid #e2e8f0;
    margin-bottom: 30px;
}

/* Сетка карточек */
.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin: 40px 0;
}

.about-card {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: var(--border-radius);
    padding: 25px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.about-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

.about-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 15px;
}

.about-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.about-card p {
    margin-bottom: 12px;
    font-size: 1rem;
}

/* Блок с названием блога */
.fun-fact-box {
    background: linear-gradient(135deg, #dbeafe, #ede9fe);
    border: 2px dashed var(--primary-color);
    border-radius: var(--border-radius);
    padding: 30px;
    margin: 40px 0;
    text-align: center;
}

.fun-fact-box h3 {
    margin-top: 0;
    margin-bottom: 25px;
    color: var(--secondary-color);
}

.name-explanation {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 25px;
}

.name-part {
    flex: 1;
    min-width: 150px;
    padding: 15px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.name-highlight {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.name-part p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-gray);
}

.name-arrow {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.name-punchline {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #10b981;
}

.punchline-text {
    margin: 0 0 10px 0;
    font-size: 1.1rem;
}

.punchline-text strong {
    color: var(--primary-color);
}

.punchline-sub {
    margin: 0;
    font-size: 0.95rem;
    color: var(--text-gray);
}

/* Цитата */
.about-quote {
    background-color: #f1f5f9;
    border-left: 4px solid var(--secondary-color);
    padding: 25px 30px;
    margin: 40px 0;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    font-style: italic;
}

.about-quote p {
    margin: 0;
    font-size: 1.1rem;
}

/* Призыв к действию */
.about-cta {
    text-align: center;
    padding: 30px;
    background-color: #f8fafc;
    border-radius: var(--border-radius);
    margin-top: 40px;
}

.about-cta h3 {
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-telegram {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #0088cc;
    color: white;
    padding: 12px 25px;
    border-radius: 6px;
    font-weight: 600;
    transition: 0.3s;
}

.btn-telegram:hover {
    background-color: #0077b5;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 136, 204, 0.3);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #e2e8f0;
    color: var(--secondary-color);
    padding: 12px 25px;
    border-radius: 6px;
    font-weight: 600;
    transition: 0.3s;
}

.btn-secondary:hover {
    background-color: #cbd5e1;
    transform: translateY(-2px);
}

/* Адаптивность */
@media (max-width: 768px) {
    .about-page {
        padding: 25px;
    }
    
    .about-title {
        font-size: 1.6rem;
    }
    
    .about-content {
        font-size: 1rem;
    }
    
    .name-explanation {
        flex-direction: column;
    }
    
    .name-arrow {
        transform: rotate(90deg);
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
}