:root {
    --bg-color: #0b132b;
    --card-bg: rgba(28, 37, 65, 0.7);
    --accent-blue: #3a506b;
    --neon-cyan: #5bc0be;
    --neon-yellow: #f9d423;
    --text-color: #ffffff;
    --accent: #5bc0be;
    --bg: #0b132b;
    --glass: rgba(255, 255, 255, 0.05);
}

body {
    background: radial-gradient(circle at center, #1c2541 0%, #0b132b 100%);
    color: var(--text-color);
    font-family: 'Segoe UI', Roboto, sans-serif;
    margin: 0;
    padding: 20px;
    line-height: 1.6;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
}

header {
    text-align: center;
    margin-bottom: 50px;
    border-bottom: 2px solid var(--accent-blue);
    padding-bottom: 20px;
}

h1 {
    text-transform: uppercase;
    letter-spacing: 3px;
    text-shadow: 0 0 10px var(--neon-cyan);
    color: var(--neon-cyan);
}

/* Стиль основной статьи */
.featured-article {
    background: var(--card-bg);
    border: 1px solid var(--neon-cyan);
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 50px;
    backdrop-filter: blur(10px);
    box-shadow: 0 0 30px rgba(91, 192, 190, 0.1);
}

.article-header {
    border-left: 4px solid var(--neon-yellow);
    padding-left: 20px;
    margin-bottom: 30px;
}

.featured-article h2 {
    color: var(--neon-cyan);
    text-transform: uppercase;
    margin-top: 30px;
}

.featured-article ul {
    list-style: none;
    padding: 0;
}

.featured-article ul li {
    margin-bottom: 15px;
    padding-left: 25px;
    position: relative;
}

.featured-article ul li::before {
    content: "➤";
    position: absolute;
    left: 0;
    color: var(--neon-yellow);
}

.featured-article a {
    color: var(--neon-cyan);
    text-decoration: none;
    border-bottom: 1px dashed var(--neon-cyan);
}

.featured-article a:hover {
    color: var(--neon-yellow);
    border-color: var(--neon-yellow);
}

.summary-box {
    background: rgba(91, 192, 190, 0.1);
    border-radius: 10px;
    padding: 20px;
    margin-top: 40px;
    border: 1px solid var(--accent-blue);
}

.summary-box h4 {
    margin-top: 0;
    color: var(--neon-yellow);
    text-transform: uppercase;
}

/* Пагинация */
.pagination {
    text-align: center;
    margin-top: 30px;
    padding-bottom: 50px;
}

.page-link {
    color: var(--text-color);
    padding: 10px 15px;
    text-decoration: none;
    border: 1px solid var(--accent-blue);
    margin: 0 5px;
    border-radius: 5px;
    transition: 0.3s;
}

.page-link:hover, .page-link.active {
    border-color: var(--neon-cyan);
    background: rgba(91, 192, 190, 0.1);
    box-shadow: 0 0 10px var(--neon-cyan);
}

/* Сетка блога */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

/* Карточка статьи */
.post-card {
    background: var(--card-bg);
    border: 1px solid var(--accent-blue);
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    backdrop-filter: blur(5px);
    display: flex;
    flex-direction: column;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 20px rgba(91, 192, 190, 0.3);
    border-color: var(--neon-cyan);
}

.post-image {
    width: 100%;
    height: 180px;
    background: linear-gradient(45deg, #1c2541, #3a506b);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
}

.post-content {
    padding: 20px;
    flex-grow: 1;

    position: relative; /* Обязательно для позиционирования потомка */
    padding-bottom: 40px; /* Размер, превышающий высоту ссылки */
}

.post-tag {
    color: var(--neon-yellow);
    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: bold;
    margin-bottom: 10px;
    display: block;
}

.post-title {
    font-size: 1.4rem;
    margin: 0 0 15px 0;
    color: #fff;
}

.post-excerpt {
    font-size: 0.9rem;
    color: #bdc3c7;
    line-height: 1.5;
    margin-bottom: 20px;
}

.read-more {
    display: inline-block;
    padding: 10px 20px;
    background: transparent;
    border: 1px solid var(--neon-cyan);
    color: var(--neon-cyan);
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: 0.3s;
    text-align: center;

    position: absolute;
    bottom: 10px; /* Прижимает к нижней границе */
}

.read-more:hover {
    background: var(--neon-cyan);
    color: var(--bg-color);
    box-shadow: 0 0 10px var(--neon-cyan);
}

.article-date {
    color: var(--neon-yellow);
    font-size: 0.9rem;
    margin: 10px 0 20px 0;
    text-transform: uppercase;
}

/* ВИДЕО-БАННЕР 16:9 */
.hero {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
}

.video-banner {
    display: block;
    position: relative;
    width: 100%;
    /* Фиксируем пропорции 16 к 9 */
    aspect-ratio: 16 / 9;
    border-radius: 25px;
    overflow: hidden;
    border: 1px solid rgba(0, 255, 136, 0.3);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8);
    text-decoration: none;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.video-banner:hover {
    transform: scale(1.02);
    border-color: var(--accent);
    box-shadow: 0 0 40px rgba(0, 255, 136, 0.3);
}

.video-banner video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7);
    transition: filter 0.4s;
}

.video-banner:hover video {
    filter: brightness(0.9);
}

.banner-info {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: clamp(20px, 5%, 60px);
    background: linear-gradient(to top, rgba(5, 5, 10, 0.95), transparent 60%);
}

.btn-play {
    background: var(--accent);
    color: #000;
    padding: 12px 35px;
    border-radius: 50px;
    display: inline-block;
    width: fit-content;
    font-weight: 900;
    text-transform: uppercase;
    box-shadow: 0 0 20px var(--accent);
    margin-bottom: 15px;
    font-size: clamp(0.8rem, 2vw, 1.1rem);
}

.banner-title {
    font-size: clamp(1.2rem, 4vw, 2.5rem);
    margin: 0;
    font-weight: 900;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

/* МОДАЛЬНОЕ ОКНО */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal-body {
    background: #0a0a1a;
    padding: 40px;
    border-radius: 25px;
    max-width: 500px;
    width: 100%;
    border: 1px solid var(--accent);
    position: relative;
}