:root {
    --primary: #8B9DC3;
    --primary-light: #A7B8D6;
    --secondary: #DFE3EE;
    --accent: #6C7A89;
    --text: #2C3E50;
    --text-light: #7F8C8D;
    --background: #F8F9FA;
    --white: #FFFFFF;
    --border: #E1E8ED;
}

/* Базовые стили */
body {
    font-family: 'Source Sans Pro', sans-serif;
    color: var(--text);
    background-color: var(--background);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    color: var(--text);
}

/* Шапка */
.site-header {
    background: var(--white);
    border-bottom: 1px solid var(--border);
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

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

.site-title {
    font-size: 1.8rem;
    font-weight: 600;
    margin: 0;
    color: var(--text);
}

.site-subtitle {
    font-size: 0.9rem;
    color: var(--text-light);
    margin: 0;
}

.social-links {
    display: flex;
    gap: 20px;
}

.social-link {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.social-link:hover {
    color: var(--primary);
}

/* Навигация */
.main-navigation {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 0;
}

/* Карусель */
.projects-carousel {
    background: linear-gradient(135deg, var(--primary-light), var(--secondary));
    padding: 40px 0;
}

.carousel-content {
    padding: 20px;
}

.carousel-badge {
    background: var(--primary);
    color: var(--white);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.carousel-title {
    font-size: 2.2rem;
    margin: 15px 0;
    color: var(--text);
}

.carousel-text {
    font-size: 1.1rem;
    color: var(--text);
    margin-bottom: 25px;
    opacity: 0.9;
}

.carousel-image {
    height: 300px;
    background: var(--white);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder-content {
    text-align: center;
}

.placeholder-content span {
    font-size: 4rem;
    display: block;
    margin-bottom: 10px;
}

.carousel-control-prev,
.carousel-control-next {
    width: 50px;
    height: 50px;
    background: var(--white);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.8;
}

/* Секции */
.section-header {
    display: flex;
    justify-content: between;
    align-items: center;
    margin-bottom: 30px;
    border-bottom: 2px solid var(--border);
    padding-bottom: 15px;
}

.section-title {
    font-size: 1.5rem;
    margin: 0;
}

.section-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

/* Карточки статей */
.posts-grid {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.post-card {
    background: var(--white);
    padding: 25px;
    border-radius: 12px;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.post-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.post-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 10px;
    font-size: 0.85rem;
}

.post-date {
    color: var(--text-light);
}

.post-category {
    color: var(--primary);
    font-weight: 500;
}

.post-title {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.post-title a {
    color: var(--text);
    text-decoration: none;
}

.post-title a:hover {
    color: var(--primary);
}

.post-excerpt {
    color: var(--text-light);
    margin-bottom: 15px;
}

.post-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
}

.post-author {
    color: var(--text-light);
}

.read-more {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

/* Виджеты */
.about-widget,
.categories-widget {
    background: var(--white);
    border-radius: 12px;
    border: 1px solid var(--border);
    overflow: hidden;
}

.widget-header {
    background: var(--primary-light);
    color: var(--white);
    padding: 15px 20px;
    margin: 0;
}

.widget-header h3 {
    margin: 0;
    font-size: 1.1rem;
}

.widget-content {
    padding: 20px;
}

.stats {
    display: flex;
    gap: 20px;
    margin-top: 15px;
}

.stat-item {
    text-align: center;
}

.stat-item strong {
    display: block;
    font-size: 1.5rem;
    color: var(--primary);
}

.stat-item span {
    font-size: 0.8rem;
    color: var(--text-light);
}

.categories-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.categories-list li {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
}

.categories-list li:last-child {
    border-bottom: none;
}

.categories-list a {
    color: var(--text);
    text-decoration: none;
}

.categories-list a:hover {
    color: var(--primary);
}

/* Подвал */
.site-footer {
    background: var(--white);
    border-top: 1px solid var(--border);
    margin-top: 50px;
    padding: 40px 0 20px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.footer-logo-img {
    width: 40px;
    height: 40px;
    border-radius: 6px;
}

.footer-text {
    color: var(--text-light);
    font-size: 0.9rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    padding: 5px 0;
    color: var(--text-light);
}

.subscribe-form .input-group {
    border-radius: 8px;
    overflow: hidden;
}

.btn-subscribe {
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 0 15px;
}

.footer-bottom {
    text-align: center;
    color: var(--text-light);
    font-size: 0.9rem;
    margin-top: 20px;
}

/* Адаптивность */
@media (max-width: 768px) {
    .logo-section {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .carousel-title {
        font-size: 1.5rem;
    }
    
    .section-header {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}

/* Стили для заглушек */
.placeholder-section {
    background: var(--white);
    padding: 60px 40px;
    border-radius: 12px;
    border: 2px dashed var(--border);
    text-align: center;
    margin: 40px 0;
}

.placeholder-section h3 {
    color: var(--text-light);
    margin-bottom: 15px;
}

.placeholder-section p {
    color: var(--text-light);
    font-size: 1.1rem;
}

/* Заголовки страниц */
.page-header {
    text-align: center;
    margin: 40px 0;
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.page-header .lead {
    font-size: 1.2rem;
    color: var(--text-light);
}

/* Карточки аутентификации */
.auth-card {
    background: var(--white);
    padding: 40px;
    border-radius: 12px;
    border: 1px solid var(--border);
    margin: 40px 0;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

/* Герой секция для электроники */
.hero-section {
    background: linear-gradient(135deg, var(--primary-light), #C8D6E5);
    padding: 80px 0;
    color: var(--text);
}

.hero-badge {
    background: var(--primary);
    color: var(--white);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 20px;
    display: inline-block;
}

.hero-title {
    font-size: 3rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text);
}

.hero-text {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
    line-height: 1.6;
}

.hero-features {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.feature-tag {
    background: rgba(255,255,255,0.3);
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.85rem;
    border: 1px solid rgba(255,255,255,0.5);
}

/* Плата для героя */
.electronics-placeholder {
    background: #2C3E50;
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    color: var(--white);
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.pcb-board {
    width: 200px;
    height: 150px;
    background: #34495E;
    border-radius: 8px;
    position: relative;
    margin-bottom: 20px;
}

.component {
    position: absolute;
    background: #16A085;
    border-radius: 4px;
}

.component.cpu {
    width: 40px;
    height: 40px;
    top: 20px;
    left: 30px;
    background: #E74C3C;
}

.component.resistor {
    width: 60px;
    height: 8px;
    top: 80px;
    left: 50px;
    background: #F39C12;
}

.component.capacitor {
    width: 20px;
    height: 30px;
    top: 40px;
    left: 120px;
    background: #3498DB;
}

.trace {
    position: absolute;
    background: #7F8C8D;
    height: 4px;
    width: 80px;
    top: 40px;
    left: 70px;
}

/* Секция проектов */
.projects-section {
    padding: 80px 0;
    background: var(--white);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.project-card {
    background: var(--white);
    border-radius: 12px;
    border: 1px solid var(--border);
    overflow: hidden;
    transition: all 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.project-image {
    height: 200px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hardware-project {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.pcb-project {
    background: linear-gradient(135deg, #f093fb, #f5576c);
}

.embedded-project {
    background: linear-gradient(135deg, #4facfe, #00f2fe);
}

.project-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255,255,255,0.2);
    color: var(--white);
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    backdrop-filter: blur(10px);
}

.project-content {
    padding: 25px;
}

.project-content h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--text);
}

.project-content p {
    color: var(--text-light);
    margin-bottom: 15px;
    line-height: 1.5;
}

.project-tech {
    display: flex;
    gap: 8px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.project-tech span {
    background: var(--secondary);
    color: var(--text);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

.project-date {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Технологии */
.tech-section {
    padding: 80px 0;
    background: var(--background);
}

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

.tech-item {
    text-align: center;
    padding: 30px 20px;
    background: var(--white);
    border-radius: 12px;
    border: 1px solid var(--border);
    transition: transform 0.3s ease;
}

.tech-item:hover {
    transform: translateY(-3px);
}

.tech-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    display: block;
}

.tech-item h4 {
    margin-bottom: 15px;
    color: var(--text);
}

.tech-item p {
    color: var(--text-light);
    line-height: 1.5;
}

/* Блог секция */
.blog-section {
    padding: 80px 0;
    background: var(--white);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.blog-card {
    background: var(--white);
    padding: 25px;
    border-radius: 12px;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.blog-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 0.85rem;
}

.blog-date {
    color: var(--text-light);
}

.blog-category {
    color: var(--primary);
    font-weight: 500;
}

.blog-title {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.blog-title a {
    color: var(--text);
    text-decoration: none;
}

.blog-title a:hover {
    color: var(--primary);
}

.blog-excerpt {
    color: var(--text-light);
    margin-bottom: 15px;
    line-height: 1.5;
}

.blog-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.blog-tag {
    background: var(--secondary);
    color: var(--text);
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 0.75rem;
}

/* Процесс разработки */
.process-section {
    padding: 80px 0;
    background: var(--background);
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.process-step {
    text-align: center;
    padding: 30px 20px;
}

.step-number {
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0 auto 20px;
}

.process-step h4 {
    margin-bottom: 15px;
    color: var(--text);
}

.process-step p {
    color: var(--text-light);
    line-height: 1.5;
}

/* Адаптивность */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.2rem;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .tech-grid {
        grid-template-columns: 1fr;
    }
    
    .process-steps {
        grid-template-columns: 1fr;
    }
}

/* Стили для страницы статей */
.page-header {
    text-align: center;
    margin: 40px 0 60px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--border);
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--text);
}

.page-header .lead {
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* Карточки статей */
.articles-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.article-card {
    background: var(--white);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.article-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.article-header {
    margin-bottom: 15px;
}

.article-title {
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.article-title a {
    color: var(--text);
    text-decoration: none;
}

.article-title a:hover {
    color: var(--primary);
}

.article-meta {
    display: flex;
    gap: 20px;
    font-size: 0.9rem;
    color: var(--text-light);
}

.article-excerpt {
    margin-bottom: 20px;
    line-height: 1.6;
    color: var(--text);
}

.article-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.article-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tag {
    background: var(--secondary);
    color: var(--text);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

.read-more {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    white-space: nowrap;
}

/* Состояние пустого списка */
.empty-articles {
    text-align: center;
    padding: 60px 40px;
    background: var(--white);
    border-radius: 12px;
    border: 2px dashed var(--border);
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.empty-articles h3 {
    color: var(--text-light);
    margin-bottom: 10px;
}

.empty-articles p {
    color: var(--text-light);
}

/* Пагинация */
.pagination-wrapper {
    margin-top: 50px;
    display: flex;
    justify-content: center;
}

.pagination {
    display: flex;
    gap: 5px;
}

.page-link {
    padding: 8px 16px;
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text);
    text-decoration: none;
    transition: all 0.3s ease;
}

.page-link:hover {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.page-item.active .page-link {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.page-item.disabled .page-link {
    background: var(--background);
    color: var(--text-light);
    cursor: not-allowed;
}

/* Боковая панель */
.sidebar-widget {
    background: var(--white);
    padding: 25px;
    border-radius: 12px;
    border: 1px solid var(--border);
    margin-bottom: 30px;
}

.widget-title {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--text);
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary);
}

/* Категории */
.categories-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-link {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    color: var(--text);
    text-decoration: none;
    border-bottom: 1px solid var(--border);
    transition: color 0.3s ease;
}

.category-link:hover {
    color: var(--primary);
}

.category-link:last-child {
    border-bottom: none;
}

.count {
    background: var(--primary);
    color: var(--white);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.8rem;
}

/* Облако тегов */
.tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tags-cloud .tag {
    background: var(--secondary);
    color: var(--text);
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.tags-cloud .tag:hover {
    background: var(--primary);
    color: var(--white);
}

/* Последние проекты */
.recent-projects {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.recent-project {
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border);
}

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

.recent-project h4 {
    margin-bottom: 8px;
    font-size: 1rem;
}

.recent-project h4 a {
    color: var(--text);
    text-decoration: none;
}

.recent-project h4 a:hover {
    color: var(--primary);
}

.recent-project p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.4;
}

/* Детальная страница статьи */
.article-detail {
    max-width: 800px;
    margin: 0 auto;
}

.breadcrumb {
    margin-bottom: 30px;
    font-size: 0.9rem;
}

.breadcrumb a {
    color: var(--primary);
    text-decoration: none;
}

.breadcrumb span {
    color: var(--text-light);
}

.article-detail .article-title {
    font-size: 2.2rem;
    margin-bottom: 20px;
    line-height: 1.3;
}

.article-detail .article-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
    padding: 20px;
    background: var(--background);
    border-radius: 8px;
}

.meta-item {
    display: flex;
    flex-direction: column;
}

.label {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-bottom: 4px;
}

.value {
    font-weight: 500;
    color: var(--text);
}

.article-image {
    margin: 30px 0;
}

.image-placeholder {
    background: var(--secondary);
    padding: 60px 40px;
    border-radius: 12px;
    text-align: center;
    color: var(--text-light);
}

.image-placeholder span {
    font-size: 3rem;
    display: block;
    margin-bottom: 10px;
}

.article-content {
    line-height: 1.7;
    font-size: 1.1rem;
}

.content-body {
    margin-bottom: 40px;
}

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

.tech-specs {
    background: var(--background);
    padding: 25px;
    border-radius: 12px;
    margin: 40px 0;
}

.tech-specs h3 {
    margin-bottom: 20px;
    color: var(--text);
}

.specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.spec-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}

.spec-item:last-child {
    border-bottom: none;
}

.article-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 40px 0;
}

.share-article {
    text-align: center;
    padding: 30px;
    background: var(--background);
    border-radius: 12px;
    margin-top: 40px;
}

.share-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 15px;
}

.share-btn {
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.share-btn:hover {
    background: var(--primary-light);
}

/* Адаптивность */
@media (max-width: 768px) {
    .article-meta {
        flex-direction: column;
        gap: 10px;
    }
    
    .article-footer {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .article-navigation {
        grid-template-columns: 1fr;
    }
    
    .specs-grid {
        grid-template-columns: 1fr;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .article-detail .article-title {
        font-size: 1.8rem;
    }
}

/* Стили для форм аутентификации */
.auth-card {
    background: var(--white);
    padding: 40px;
    border-radius: 12px;
    border: 1px solid var(--border);
    margin: 50px 0;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-header h2 {
    color: var(--text);
    margin-bottom: 10px;
    font-size: 1.8rem;
}

.auth-header p {
    color: var(--text-light);
}

.auth-footer {
    text-align: center;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.auth-footer p {
    margin: 0;
    color: var(--text-light);
}

.auth-footer a {
    color: var(--primary);
    font-weight: 500;
}

/* Формы */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text);
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(139, 157, 195, 0.1);
}

.form-text {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: var(--text-light);
}

/* Опции формы */
.form-options {
    margin-bottom: 1.5rem;
}

.form-check {
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-check-input {
    margin: 0;
}

.form-check-label {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text);
}

/* Выпадающее меню */
.dropdown-menu {
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    padding: 8px;
}

.dropdown-item {
    padding: 8px 12px;
    border-radius: 4px;
    color: var(--text);
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.dropdown-item:hover {
    background: var(--secondary);
    color: var(--text);
}

.dropdown-divider {
    margin: 8px 0;
    border-color: var(--border);
}

/* Адаптивность для форм */
@media (max-width: 576px) {
    .auth-card {
        padding: 30px 20px;
        margin: 30px 0;
    }
    
    .auth-header h2 {
        font-size: 1.5rem;
    }
}

/* Навигация с Bootstrap */
/* Кнопка бургер-меню */
.navbar-toggler {
    border: 1px solid var(--border);
    padding: 4px 8px;
}

.navbar-toggler:focus {
    box-shadow: none;
    border-color: var(--primary);
}

.navbar-toggler-icon {
    color: var(--text);
    font-size: 1.2rem;
}
.navbar-nav .nav-link {
    color: var(--text) !important;
    font-weight: 500;
    padding: 15px 20px !important;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
    background: var(--secondary);
    color: var(--primary) !important;
    border-bottom-color: var(--primary);
}

.navbar-nav .nav-link.active {
    background: var(--secondary);
    color: var(--primary) !important;
    border-bottom-color: var(--primary);
}


.dropdown-menu {
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    padding: 8px;
}

.dropdown-item {
    padding: 8px 12px;
    border-radius: 4px;
    color: var(--text);
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.dropdown-item:hover {
    background: var(--secondary);
    color: var(--text);
}

.dropdown-divider {
    margin: 8px 0;
    border-color: var(--border);
}

/* Адаптивность для навигации */
@media (max-width: 991.98px) {
    .navbar-collapse {
        margin-top: 15px;
    }
    
    .navbar-nav .nav-link {
        border-bottom: none !important;
        border-left: 3px solid transparent;
        padding: 12px 15px !important;
    }
    
    .navbar-nav .nav-link:hover,
    .navbar-nav .nav-link:focus,
    .navbar-nav .nav-link.active {
        border-left-color: var(--primary);
        border-bottom-color: transparent;
    }
    
    .dropdown-menu {
        border: none;
        box-shadow: none;
        background: var(--background);
    }
    
    .navbar-nav .dropdown-menu {
        position: static !important;
        transform: none !important;
    }
}

@media (min-width: 992px) {
    .navbar-nav .nav-item {
        margin: 0 2px;
    }
    
    .navbar-nav .nav-link {
        border-radius: 4px 4px 0 0;
    }
}

/* Стили для изображений статей */
.article-image img {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: cover;
}

/* Категории в статьях */
.category-tag {
    background: var(--primary);
    color: var(--white);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    margin-right: 5px;
}

/* Навигация по статьям */
.article-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 40px 0;
}

.nav-link {
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: 8px;
    text-decoration: none;
    color: var(--text);
    transition: all 0.3s ease;
    display: block;
}

.nav-link:hover {
    border-color: var(--primary);
    background: var(--background);
    transform: translateY(-2px);
}

.nav-link.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: var(--background);
}

.nav-link span {
    display: block;
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 5px;
}

.nav-link strong {
    font-weight: 500;
}

/* Кнопки поделиться */
.share-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 15px;
}

.share-btn {
    background: var(--primary);
    color: var(--white);
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.3s ease;
}

.share-btn:hover {
    background: var(--primary-light);
    color: var(--white);
}

/* Боковая панель в статьях */
.recent-post {
    padding-bottom: 15px;
    margin-bottom: 15px;
    border-bottom: 1px solid var(--border);
}

.recent-post:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.recent-post h5 {
    margin-bottom: 5px;
    font-size: 0.95rem;
}

.recent-post h5 a {
    color: var(--text);
    text-decoration: none;
}

.recent-post h5 a:hover {
    color: var(--primary);
}

/* Стили для проектов */
.project-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border);
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.project-status {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 1;
}

.project-technologies {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.technology-badge {
    background: var(--secondary);
    color: var(--text);
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    margin: 2px;
}

.project-links {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.project-technologies-section {
    background: var(--background);
    padding: 20px;
    border-radius: 8px;
    margin: 30px 0;
}

.technologies-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.projects-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

/* Адаптивность для проектов */
@media (max-width: 768px) {
    .project-links {
        flex-direction: column;
    }
    
    .project-links .btn {
        width: 100%;
        text-align: center;
    }
    
    .projects-filters .btn-group {
        flex-wrap: wrap;
    }
}