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

/* Skip-link для доступности */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #0d6efd;
    color: #fff;
    padding: 8px 16px;
    z-index: 2000;
    text-decoration: none;
    border-radius: 0 0 4px 0;
}
.skip-link:focus {
    top: 0;
}

/* Hero */
.hero {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

/* News items */
.news-item a:hover h3 {
    color: #0d6efd;
}

/* Markdown content */
.news-content h1 { font-size: 1.75rem; margin-top: 1.5rem; margin-bottom: 1rem; }
.news-content h2 { font-size: 1.5rem; margin-top: 1.25rem; margin-bottom: 0.75rem; }
.news-content h3 { font-size: 1.25rem; margin-top: 1rem; margin-bottom: 0.5rem; }
.news-content p { margin-bottom: 1rem; line-height: 1.7; }
.news-content ul, .news-content ol { margin-bottom: 1rem; padding-left: 2rem; }
.news-content li { margin-bottom: 0.5rem; }
.news-content blockquote {
    border-left: 4px solid #0d6efd;
    padding-left: 1rem;
    color: #6c757d;
    font-style: italic;
    margin-bottom: 1rem;
}
.news-content code {
    background: #f8f9fa;
    padding: 0.15rem 0.4rem;
    border-radius: 3px;
    font-size: 0.9em;
}
.news-content pre {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 4px;
    overflow-x: auto;
    margin-bottom: 1rem;
}
.news-content pre code {
    background: none;
    padding: 0;
}
.news-content table {
    width: 100%;
    margin-bottom: 1rem;
    border-collapse: collapse;
}
.news-content th, .news-content td {
    border: 1px solid #dee2e6;
    padding: 0.5rem;
}
.news-content th {
    background: #f8f9fa;
}

/* Портфолио карточки */
.card-img-top {
    transition: transform 0.2s;
}
.card:hover .card-img-top {
    transform: scale(1.02);
}

/* Контрастность для WCAG AA */
.btn-outline-secondary {
    --bs-btn-color: #495057;
    --bs-btn-border-color: #6c757d;
}

/* Cookie */

#cookie_note{
    display: none;
    position: fixed;
    bottom: 15px;
    left: 50%;
    max-width: 90%;
    transform: translateX(-50%);
    padding: 20px;
    background-color: white;
    border-radius: 4px;
    box-shadow: 2px 3px 10px rgba(0, 0, 0, 0.4);
}

#cookie_note p{
    margin: 0;
    font-size: 0.7rem;
    text-align: left;
    color: black;
}

.cookie_accept{
    width:20%;
}
@media (min-width: 576px){
    #cookie_note.show{
        display: flex;
    }
}

@media (max-width: 575px){
    #cookie_note.show{
        display: block;
        text-align: left;
    }
}
