/* ===== ГЛОБАЛЬНЫЕ СТИЛИ ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Roboto, system-ui, sans-serif;
}

body {
    background-color: #f4f6f9;
    color: #1e293b;
    line-height: 1.6;
}

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

a {
    text-decoration: none;
    color: inherit;
}

/* ===== ШАПКА ===== */
header {
    background: linear-gradient(135deg, #0b1a33, #1a365d);
    color: white;
    padding: 20px 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo h1 {
    font-size: 1.9rem;
    font-weight: 700;
    letter-spacing: 1px;
}
.logo h1 span {
    color: #facc15;
}
.logo small {
    display: block;
    font-size: 0.75rem;
    font-weight: 300;
    opacity: 0.8;
    letter-spacing: 2px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 25px;
}

.date-time {
    font-size: 0.9rem;
    background: rgba(255,255,255,0.08);
    padding: 8px 18px;
    border-radius: 40px;
    border: 1px solid rgba(255,255,255,0.1);
}

.social-icons a {
    color: #e2e8f0;
    margin-left: 12px;
    font-size: 1.2rem;
    transition: 0.2s;
}
.social-icons a:hover {
    color: #facc15;
    transform: scale(1.1);
}

/* ===== НАВИГАЦИЯ ===== */
nav {
    background: white;
    border-bottom: 2px solid #e2e8f0;
    padding: 0 20px;
    position: sticky;
    top: 80px;
    z-index: 99;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.nav-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 8px;
    flex-wrap: wrap;
    padding: 10px 0;
}

.nav-links li a {
    display: block;
    padding: 8px 18px;
    color: #1e293b;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 40px;
    transition: 0.2s;
}
.nav-links li a:hover,
.nav-links li a.active {
    background: #1a365d;
    color: white;
}

.nav-search form {
    display: flex;
    align-items: center;
    background: #f1f5f9;
    border-radius: 40px;
    padding: 5px 15px;
}
.nav-search input {
    border: none;
    background: transparent;
    padding: 8px 5px;
    outline: none;
    font-size: 0.9rem;
    width: 160px;
}
.nav-search button {
    background: none;
    border: none;
    color: #475569;
    cursor: pointer;
    font-size: 1rem;
}

/* ===== ОСНОВНАЯ СЕТКА ===== */
.main-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin: 30px 0;
}

/* ===== ГЛАВНАЯ НОВОСТЬ ===== */
.featured-news {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.05);
}

.featured-img {
    width: 100%;
    height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
    position: relative;
}
.featured-img i {
    opacity: 0.6;
}
.featured-img .tag {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: #dc2626;
    padding: 6px 18px;
    border-radius: 40px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.featured-content {
    padding: 25px;
}
.featured-content h2 {
    font-size: 1.8rem;
    margin-bottom: 12px;
    line-height: 1.3;
}
.featured-content .meta {
    color: #64748b;
    font-size: 0.9rem;
    margin-bottom: 15px;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}
.featured-content .meta i {
    margin-right: 6px;
}
.featured-content p {
    color: #334155;
    margin-bottom: 20px;
    font-size: 1.05rem;
}

.btn {
    display: inline-block;
    background: #1a365d;
    color: white;
    padding: 10px 28px;
    border-radius: 40px;
    font-weight: 600;
    transition: 0.2s;
    border: none;
    cursor: pointer;
}
.btn:hover {
    background: #0b1a33;
    transform: scale(1.02);
}

/* ===== САЙДБАР ===== */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.sidebar-card {
    background: white;
    border-radius: 20px;
    padding: 22px 20px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.05);
}

.sidebar-card h3 {
    font-size: 1.2rem;
    border-bottom: 3px solid #e2e8f0;
    padding-bottom: 10px;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.sidebar-card h3 i {
    color: #1a365d;
}

.news-item {
    display: flex;
    gap: 15px;
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f9;
}
.news-item:last-child {
    border-bottom: none;
}
.news-item .num {
    font-weight: 700;
    color: #94a3b8;
    font-size: 1.3rem;
    width: 28px;
}
.news-item .text {
    flex: 1;
}
.news-item .text a {
    font-weight: 500;
    transition: 0.15s;
}
.news-item .text a:hover {
    color: #1a365d;
}
.news-item .text .time {
    display: block;
    font-size: 0.75rem;
    color: #94a3b8;
    margin-top: 4px;
}

/* ===== АНАЛИТИКА ===== */
.analytics-section {
    margin: 40px 0;
}

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

.analytics-card {
    background: white;
    border-radius: 20px;
    padding: 22px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.05);
    transition: 0.2s;
    border-left: 6px solid #1a365d;
}
.analytics-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(0,0,0,0.08);
}
.analytics-card h4 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}
.analytics-card .source {
    font-size: 0.8rem;
    color: #64748b;
    margin-bottom: 10px;
}
.analytics-card p {
    color: #334155;
    font-size: 0.95rem;
}

/* ===== ПОДВАЛ ===== */
footer {
    background: #0b1a33;
    color: #cbd5e1;
    padding: 40px 0 25px;
    margin-top: 40px;
}

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

.footer-grid h4 {
    color: white;
    margin-bottom: 15px;
    font-size: 1.1rem;
}
.footer-grid ul {
    list-style: none;
}
.footer-grid ul li {
    margin-bottom: 8px;
}
.footer-grid ul li a {
    color: #cbd5e1;
    transition: 0.2s;
}
.footer-grid ul li a:hover {
    color: #facc15;
}

.footer-bottom {
    border-top: 1px solid #1e293b;
    padding-top: 20px;
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.7;
}

/* ===== АДАПТИВ ===== */
@media (max-width: 850px) {
    .main-grid {
        grid-template-columns: 1fr;
    }
    .header-flex {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
    .header-right {
        justify-content: center;
        flex-wrap: wrap;
    }
    .nav-flex {
        flex-direction: column;
        align-items: stretch;
    }
    .nav-search form {
        width: 100%;
        margin-bottom: 10px;
    }
    .nav-search input {
        width: 100%;
    }
    .featured-content h2 {
        font-size: 1.4rem;
    }
}

@media (max-width: 480px) {
    .logo h1 { font-size: 1.5rem; }
    .date-time { font-size: 0.7rem; padding: 4px 12px; }
    .featured-img { height: 180px; }
    .featured-img i { font-size: 3rem; }
}