:root {
    --drone-blue: #8bbcdc;
    --robot-gold: #ddb537;
    --dark-bg: #2c3e50;
    --light-bg: #f8f9fa;
    --border-color: #e1e5eb;
    --text-dark: #333;
    --text-light: #666;
    --success: #28a745;
    --shadow: 0 5px 20px rgba(0,0,0,0.08);

    --radius: 8px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #f8fafc;
    color: #0f172a;
    line-height: 1.6;
}

.profile-avatar {
    width: 60px;
    height: 60px;
}

/* Навигация */
.navbar {
    background: var(--dark-bg);
    border-bottom: 1px solid rgba(255, 179, 0, 0.2);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5em;
    font-weight: 700;
    color: #0f172a;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo i {
    color: #3b82f6;
}

.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
}

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

.nav-links a:hover {
    color: #3b82f6;
}

.nav-links a.active {
    color: #3b82f6;
}

.subscribe-btn {
    background: #0f172a;
    color: white !important;
    padding: 10px 20px;
    border-radius: 100px;
    font-size: 0.9em;
}

.subscribe-btn:hover {
    background: #1e293b;
    color: white !important;
}

/* ========== СТИЛЬ 1: КАРТОЧКИ С ИКОНКАМИ ========== */
.components-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 24px;
    margin-bottom: 50px;
}

.component-card {
    background: white;
    border-radius: 20px;
    padding: 24px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.component-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    border-color: #2563eb;
}

.component-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #2563eb, #60a5fa);
    opacity: 0;
    transition: opacity 0.3s;
}

.component-card:hover::before {
    opacity: 1;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
}

.card-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #2563eb10, #60a5fa10);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #2563eb;
    border: 1px solid #e2e8f0;
}

.card-title {
    flex: 1;
}

.card-title h3 {
    font-size: 1.2em;
    font-weight: 700;
    margin-bottom: 6px;
    color: #0f172a;
}

.card-category {
    font-size: 0.8em;
    color: #2563eb;
    background: #e0f2fe;
    padding: 4px 10px;
    border-radius: 100px;
    display: inline-block;
    font-weight: 500;
}

.card-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
    padding: 12px 0;
    border-top: 1px dashed #e2e8f0;
    border-bottom: 1px dashed #e2e8f0;
}

.spec-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85em;
    color: #475569;
}

.spec-item i {
    color: #2563eb;
    font-size: 0.9em;
    width: 16px;
}

.card-description {
    color: #475569;
    font-size: 0.9em;
    line-height: 1.5;
    margin-bottom: 20px;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-price {
    font-weight: 700;
    font-size: 1.3em;
    color: #0f172a;
}

.card-price small {
    font-size: 0.7em;
    font-weight: 400;
    color: #64748b;
}

.card-link {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9em;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 100px;
    background: #e0f2fe;
    transition: all 0.2s;
}

.card-link:hover {
    background: #2563eb;
    color: white;
}

/* Основной контейнер */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 24px;
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
}

/* Основной контент */
.article-main {
    background: white;
    border-radius: 24px;
    padding: 40px;
    border: 1px solid #e2e8f0;
}

/* Хлебные крошки */
.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
    color: #64748b;
    font-size: 0.9em;
}

.breadcrumbs a {
    color: #3b82f6;
    text-decoration: none;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

/* Мета-информация */
.article-meta {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

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

.author-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 1.2em;
}

.author-info {
    display: flex;
    flex-direction: column;
}

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

.post-date {
    color: #64748b;
    font-size: 0.9em;
    display: flex;
    align-items: center;
    gap: 4px;
}

.reading-time {
    color: #64748b;
    font-size: 0.9em;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Заголовок */
.article-title {
    font-size: 2.5em;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 24px;
    color: #0f172a;
    letter-spacing: -0.02em;
}

.article-link {
    color: #3b82f6;
    text-decoration: none;
}

.article-description-sm {
    margin-bottom: 12px;
    color: #64748b;
    font-size: 0.85em;
    text-align: left;
}

/* Основное изображение */
.featured-image {
    margin-bottom: 32px;
    border-radius: 16px;
    overflow: hidden;
}

.featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

.image-caption {
    margin-top: 8px;
    color: #64748b;
    font-size: 0.85em;
    text-align: center;
}

/* Содержание статьи */
.article-content {
    color: #334155;
    font-size: 1.1em;
}

.article-content h2 {
    font-size: 1.8em;
    font-weight: 700;
    margin: 40px 0 16px;
    color: #0f172a;
}

.article-content h3 {
    font-size: 1.4em;
    font-weight: 600;
    margin: 16px 0 12px;
    color: #0f172a;
}

.article-content p {
    margin-bottom: 20px;
}

.article-content ul, 
.article-content ol {
    margin-bottom: 20px;
    padding-left: 24px;
}

.article-content li {
    margin-bottom: 8px;
}

.article-content code {
    background: #f1f5f9;
    border-radius: 6px;
    font-size: 0.9em;
    color: #3b82f6;
}

.article-content pre {
    background: #0f172a;
    color: #e2e8f0;
    border-radius: 12px;
    overflow-x: auto;
    margin-bottom: 20px;
    font-size: 0.9em;
    line-height: 1.5;
}

.article-content pre code {
    background: none;
    color: #e2e8f0;
    padding: 0;
}

/* Блок информации */
.info-box {
    background: #f0f9ff;
    border-left: 4px solid #3b82f6;
    padding: 24px;
    border-radius: 12px;
    margin: 32px 0;
}

.info-box h4 {
    color: #0f172a;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-box p {
    margin-bottom: 0;
}

/* Шаринг */
.share-section {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.share-title {
    font-weight: 600;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 8px;
}

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

.share-btn {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #334155;
    text-decoration: none;
    transition: all 0.2s;
}

.share-btn:hover {
    background: #3b82f6;
    color: white;
    transform: translateY(-2px);
}

/* Сайдбар */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

/* Автор виджет */
.author-card {
    background: white;
    border-radius: 20px;
    padding: 28px;
    border: 1px solid #e2e8f0;
    text-align: center;
}

.author-card .author-avatar {
    width: 80px;
    height: 80px;
    margin: 0 auto 16px;
    font-size: 1.8em;
}

.author-card h3 {
    font-size: 1.2em;
    margin-bottom: 8px;
}

.author-bio {
    color: #475569;
    margin-bottom: 20px;
    font-size: 0.95em;
}

.author-stats {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
    padding: 16px 0;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}

.stat {
    text-align: center;
}

.stat-value {
    font-weight: 700;
    color: #0f172a;
}

.stat-label {
    font-size: 0.8em;
    color: #64748b;
}

/* Похожие статьи */
.related-posts {
    background: white;
    border-radius: 20px;
    padding: 28px;
    border: 1px solid #e2e8f0;
}

.related-title {
    font-size: 1.1em;
    font-weight: 600;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #0f172a;
}

.related-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.related-item {
    display: flex;
    gap: 12px;
    text-decoration: none;
    color: inherit;
    padding: 12px;
    border-radius: 12px;
    transition: background 0.2s;
}

.related-item:hover {
    background: #f8fafc;
}

.related-item img {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
}

.related-item h4 {
    font-size: 0.95em;
    font-weight: 600;
    margin-bottom: 4px;
    color: #0f172a;
}

.related-item .tag-small {
    font-size: 0.75em;
    color: #3b82f6;
}

/* Комментарии */
.comments-section {
    background: white;
    border-radius: 20px;
    padding: 40px;
    border: 1px solid #e2e8f0;
}

.comments-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    flex-wrap: wrap;
    gap: 16px;
}

.comments-title {
    font-size: 1.3em;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.comment-count {
    background: #f1f5f9;
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 0.85em;
    color: #334155;
}

/* Форма комментария */
.comment-form {
    margin-bottom: 40px;
}

.comment-form textarea {
    width: 100%;
    padding: 16px;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 0.95em;
    resize: vertical;
    min-height: 120px;
    margin-bottom: 16px;
    transition: border-color 0.2s;
}

.comment-form textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.comment-form button {
    padding: 12px 24px;
    background: #0f172a;
    color: white;
    border: none;
    border-radius: 100px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.comment-form button:hover {
    background: #1e293b;
}

/* Список комментариев */
.comments-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.comment {
    display: flex;
    gap: 16px;
    padding-bottom: 24px;
    border-bottom: 1px solid #f1f5f9;
}

.comment:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.comment-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: #475569;
    flex-shrink: 0;
}

.comment-content {
    flex: 1;
}

.comment-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.comment-author {
    font-weight: 600;
    color: #212529;
}

.comment-date {
    font-size: 0.85em;
    color: #64748b;
}

.comment-text {
    color: #334155;
    margin-bottom: 12px;
    line-height: 1.6;
}

.comment-actions {
    display: flex;
    gap: 16px;
}

.comment-action {
    color: #64748b;
    font-size: 0.9em;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s;
    cursor: pointer;
}

.comment-action:hover {
    color: #3b82f6;
}

/* Ответы на комментарии */
.comment-replies {
    margin-left: 64px;
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Футер */
footer {
    background: var(--dark-bg);
    color: rgba(255, 255, 255, 0.8);
    padding: 60px 0 30px;
    margin-top: 80px;
}

.footer-container {
    max-width: 1200px;
    padding: 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-title {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.footer-column h4 {
    color: var(--light-bg);
}

.footer-column a, .footer-column div {
    color: rgba(255, 255, 255, 0.7);
}

.footer-column a:hover {
    color: var(--light-bg);
}

/* Адаптивность */
@media (max-width: 1024px) {
    .container {
        grid-template-columns: 1fr;
    }
    
    .footer-container {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-container {
        flex-direction: unset;
        padding: 0 10px;
        gap: 16px;
    }
    
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .article-main {
        padding: 24px;
    }
    
    .article-title {
        font-size: 1.8em;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
    }
    
    .comment-replies {
        margin-left: 32px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 20px 8px;
    }
    
    .article-main,
    .comments-section {
        padding: 20px;
    }
    
    .article-meta {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .share-section {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Прогресс чтения */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: #3b82f6;
    z-index: 1001;
    transition: width 0.1s;
}
