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

:root {
    --bg: #0b0c0c;
    --fg: #f2f2f2;
    --muted: #a0a0a0;
    --accent: #bb1919;
    --accent-hover: #cc2222;
    --card: #1b1c1c;
    --border: #2a2a2a;
    --radius: 12px;
    --radius-lg: 16px;
    --shadow: 0 4px 20px rgba(0,0,0,0.3);
    --shadow-lg: 0 8px 40px rgba(0,0,0,0.5);
    --transition: all 0.3s ease;
    --transition-slow: all 0.5s ease;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Inter, Arial, 'Noto Sans', sans-serif;
    background: var(--bg);
    color: var(--fg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

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

/* ===== HEADER ===== */
.site-header {
    border-bottom: 1px solid var(--border);
    background: #111;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    flex-wrap: wrap;
    gap: 8px;
}

.brand {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.brand-block {
    background: var(--accent);
    padding: 5px 12px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 1.1rem;
    border-radius: 6px;
    transition: var(--transition);
}

.brand-block:hover {
    transform: scale(1.02);
}

.brand-sub {
    color: var(--muted);
    font-weight: 700;
    text-transform: lowercase;
    font-size: 1rem;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.subscribe-btn,
.contact-btn {
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.subscribe-btn {
    background: var(--accent);
    color: #fff;
    border: none;
}
.subscribe-btn:hover {
    background: var(--accent-hover);
    transform: scale(1.03);
    box-shadow: 0 4px 15px rgba(187,25,25,0.4);
}

.subscribe-btn img {
    width: 20px;
    height: 20px;
    border-radius: 4px;
}

.animated-contact {
    position: relative;
    background: transparent;
    color: var(--fg);
    border: 1px solid var(--border);
    animation: contactPulse 2.5s ease-in-out infinite;
}
.animated-contact:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    animation: none;
}
@keyframes contactPulse {
    0% { box-shadow: 0 0 0 0 rgba(187,25,25,0.3); }
    50% { box-shadow: 0 0 0 6px rgba(187,25,25,0); }
    100% { box-shadow: 0 0 0 0 rgba(187,25,25,0); }
}

.contact-btn {
    background: transparent;
    color: var(--fg);
    border: 1px solid var(--border);
}
.contact-btn:hover {
    background: var(--card);
    border-color: var(--muted);
}

/* ===== SEARCH ===== */
.search-wrapper {
    position: relative;
    max-width: 540px;
    margin: 0 auto;
}

.search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted);
    pointer-events: none;
}

.header-search input {
    width: 100%;
    padding: 10px 16px 10px 44px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: #0f0f0f;
    color: var(--fg);
    outline: none;
    font-size: 0.95rem;
    transition: var(--transition);
}
.header-search input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(187,25,25,0.12);
}
.header-search input::placeholder {
    color: var(--muted);
}

/* ===== NAV ===== */
.nav {
    border-top: 1px solid var(--border);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.nav::-webkit-scrollbar { display: none; }

.nav-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 6px 0;
    flex-wrap: wrap;
}

.tab-btn {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--muted);
    padding: 6px 14px;
    border-radius: 999px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 500;
    transition: var(--transition);
    white-space: nowrap;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.tab-btn:hover {
    color: var(--fg);
    border-color: var(--muted);
    transform: translateY(-1px);
}
.tab-btn.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.category-select {
    display: none;
    background: var(--card);
    color: var(--fg);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 6px 14px;
    font-size: 0.8rem;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23a0a0a0' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 30px;
}

/* ===== МОБИЛЬНАЯ АДАПТАЦИЯ ===== */
@media (max-width: 768px) {
    .header-top {
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
    }
    .brand {
        justify-content: center;
    }
    .brand-block {
        font-size: 0.95rem;
        padding: 4px 10px;
    }
    .brand-sub {
        font-size: 0.85rem;
    }
    .header-actions {
        justify-content: center;
        gap: 4px;
    }
    .subscribe-btn, .contact-btn {
        font-size: 0.7rem;
        padding: 4px 10px;
    }
    .subscribe-btn img {
        width: 16px;
        height: 16px;
    }
    .search-wrapper {
        max-width: 100%;
    }
    .header-search input {
        padding: 8px 12px 8px 36px;
        font-size: 0.85rem;
    }
    .search-icon {
        left: 10px;
        width: 16px;
        height: 16px;
    }

    .nav-row {
        justify-content: flex-start;
        flex-wrap: nowrap;
        gap: 4px;
        padding: 4px 0;
    }
    .tab-btn {
        font-size: 0.7rem;
        padding: 4px 10px;
    }
    .tab-btn[data-tab="politics"],
    .tab-btn[data-tab="economy"],
    .tab-btn[data-tab="society"],
    .tab-btn[data-tab="tech"],
    .tab-btn[data-tab="sport"],
    .tab-btn[data-tab="weather"] {
        display: none;
    }
    .category-select {
        display: inline-block;
        font-size: 0.7rem;
        padding: 4px 10px;
        padding-right: 28px;
        min-width: 100px;
    }
    .news-ticker {
        padding: 8px 0 4px;
        margin-bottom: 8px;
    }
    .ticker-text {
        font-size: 0.85rem;
    }
    .back-btn-main {
        font-size: 0.8rem;
        padding: 6px 14px;
    }
}

@media (min-width: 769px) {
    .category-select {
        display: none !important;
    }
}

/* ===== NEWS TICKER ===== */
.news-ticker {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 0 6px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 12px;
}

.ticker-icon {
    font-size: 1.2rem;
    color: var(--accent);
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.9); }
}

.ticker-text {
    color: var(--fg);
    font-weight: 600;
    font-size: 0.95rem;
}

/* ===== LOADING SPINNER ===== */
.loading-spinner {
    text-align: center;
    padding: 50px 0;
    color: var(--muted);
}
.spinner {
    width: 40px;
    height: 40px;
    margin: 0 auto 12px;
    border: 3px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ===== ПОЛНОЭКРАННЫЙ ОВЕРЛЕЙ ДЛЯ СТАТЬИ ===== */
.article-loader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(11, 12, 12, 0.92);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: fadeInOverlay 0.3s ease;
}
@keyframes fadeInOverlay {
    from { opacity: 0; }
    to { opacity: 1; }
}
.article-loader-content {
    text-align: center;
    color: var(--fg);
}
.article-loader-content .spinner {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    border: 4px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
.article-loader-content span {
    font-size: 1.2rem;
    color: var(--muted);
}

/* ===== LEAD GRID ===== */
.lead-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 16px;
    margin: 16px 0 8px;
}
@media (max-width: 900px) {
    .lead-grid { grid-template-columns: 1fr; gap: 14px; }
}

/* ===== CARDS ===== */
.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}
.card:hover {
    border-color: var(--muted);
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.card .image-wrapper {
    position: relative;
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #1a1a2e, #16213e, #0f3460);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.card .image-wrapper .placeholder-text {
    color: rgba(255,255,255,0.5);
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-align: center;
    line-height: 1.3;
}
.card .image-wrapper .placeholder-text small {
    display: block;
    font-size: 0.65rem;
    font-weight: 400;
    opacity: 0.5;
    margin-top: 4px;
}
.card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: #0d0d0d;
}
@media (max-width: 600px) {
    .card .image-wrapper { height: 160px; }
    .card img { height: 160px; }
}

.card .content {
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}
.card h3 {
    margin: 0;
    font-size: 1.2rem;
    line-height: 1.3;
    transition: var(--transition);
}
.card h3:hover { color: var(--accent); }
.card .card-excerpt {
    margin: 0;
    color: var(--muted);
    font-size: 0.9rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}
.meta {
    display: flex;
    gap: 8px;
    align-items: center;
    color: var(--muted);
    font-size: 0.75rem;
    flex-wrap: wrap;
    padding-top: 8px;
    border-top: 1px solid var(--border);
}
.meta .source-local { color: var(--accent); font-weight: 600; }
.meta .source-rss { color: #4a9eff; font-weight: 500; }

/* ===== REACTIONS ===== */
.card-reactions {
    display: flex;
    gap: 12px;
    padding: 8px 16px 12px;
    border-top: 1px solid var(--border);
    margin-top: 4px;
}
.reaction-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 4px 12px;
    color: var(--muted);
    cursor: pointer;
    font-size: 0.8rem;
    font-family: inherit;
    transition: var(--transition);
}
.reaction-btn:hover {
    border-color: var(--muted);
    color: var(--fg);
    transform: scale(1.05);
}
.reaction-btn.liked {
    border-color: #4a9eff;
    color: #4a9eff;
}
.reaction-btn.disliked {
    border-color: #ff6b6b;
    color: #ff6b6b;
}
.reaction-btn .count {
    font-weight: 600;
    font-size: 0.75rem;
}
.discuss-btn-card {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 999px;
    padding: 4px 14px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
}
.discuss-btn-card:hover {
    background: var(--accent-hover);
    transform: scale(1.05);
}

/* ===== LIST ===== */
.list {
    list-style: none;
    padding: 0;
    margin: 8px 0 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}
@media (max-width: 768px) {
    .list { grid-template-columns: 1fr; gap: 12px; }
}

.item {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 12px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    padding: 10px;
    transition: var(--transition);
}
.item:hover {
    border-color: var(--muted);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.item .image-wrapper {
    position: relative;
    width: 100%;
    height: 110px;
    border-radius: 8px;
    background: linear-gradient(135deg, #1a1a2e, #16213e, #0f3460);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.item .image-wrapper .placeholder-text {
    color: rgba(255,255,255,0.4);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    text-align: center;
    line-height: 1.2;
    letter-spacing: 0.5px;
}
.item .image-wrapper .placeholder-text small {
    display: block;
    font-size: 0.5rem;
    font-weight: 400;
    opacity: 0.5;
}
.item img {
    width: 100%;
    height: 110px;
    object-fit: cover;
    border-radius: 8px;
    background: #0d0d0d;
}
@media (max-width: 480px) {
    .item { grid-template-columns: 1fr; gap: 8px; padding: 8px; }
    .item .image-wrapper { height: 140px; }
    .item img { height: 140px; }
}
.item h4 {
    margin: 0 0 4px;
    font-size: 0.95rem;
    line-height: 1.3;
    transition: var(--transition);
}
.item h4:hover { color: var(--accent); }
.item .item-excerpt {
    margin: 0;
    color: var(--muted);
    font-size: 0.85rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.item .meta { padding-top: 4px; }

.item .item-reactions {
    display: flex;
    gap: 8px;
    padding-top: 6px;
    flex-wrap: wrap;
    align-items: center;
}
.item .item-reactions .reaction-btn {
    padding: 2px 10px;
    font-size: 0.7rem;
}
.item .item-reactions .discuss-btn-card {
    padding: 2px 10px;
    font-size: 0.65rem;
}

/* ===== ARTICLE PAGE ===== */
.article-page {
    max-width: 720px;
    margin: 20px auto;
    padding: 0 16px 40px;
}
.article-page .back-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--muted);
    padding: 6px 14px;
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 0.85rem;
    margin-bottom: 16px;
    transition: var(--transition);
}
.article-page .back-btn:hover {
    color: var(--fg);
    border-color: var(--muted);
    transform: translateX(-3px);
}
.article-page h1 {
    font-size: 2rem;
    line-height: 1.2;
    margin-bottom: 12px;
}
@media (max-width: 600px) {
    .article-page h1 { font-size: 1.5rem; }
}
.article-page .article-meta {
    color: var(--muted);
    font-size: 0.85rem;
    margin-bottom: 16px;
}
.article-page .article-meta a {
    color: var(--accent);
}
.article-page .article-meta a:hover { text-decoration: underline; }
.article-page img {
    width: 100%;
    max-height: 380px;
    object-fit: cover;
    border-radius: var(--radius);
    margin: 12px 0;
}
.article-page .article-content {
    font-size: 1rem;
    line-height: 1.7;
    white-space: pre-wrap;
    color: #e8e8e8;
}
.article-page .article-source {
    background: var(--card);
    border-left: 4px solid var(--accent);
    padding: 14px 18px;
    border-radius: var(--radius);
    margin: 16px 0;
}
.article-page .article-source a {
    color: var(--accent);
    font-weight: 600;
}
.article-page .article-source a:hover { text-decoration: underline; }
.article-page .telegram-note {
    background: var(--card);
    border: 1px solid var(--border);
    padding: 16px 20px;
    border-radius: var(--radius);
    margin: 20px 0;
    text-align: center;
}
.article-page .telegram-note a {
    color: var(--accent);
    font-weight: 600;
}
.article-page .telegram-note a:hover { text-decoration: underline; }
.article-page .telegram-note .btn-subscribe-article {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    padding: 8px 24px;
    border-radius: 999px;
    margin-top: 8px;
    font-weight: 600;
    transition: var(--transition);
}
.article-page .telegram-note .btn-subscribe-article:hover {
    background: var(--accent-hover);
    transform: scale(1.02);
}

.article-page .discuss-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--accent);
    color: #fff;
    padding: 10px 28px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}
.article-page .discuss-btn:hover {
    background: var(--accent-hover);
    transform: scale(1.03);
    box-shadow: 0 4px 20px rgba(187,25,25,0.4);
}

/* ===== КНОПКА "НА ГЛАВНУЮ" ===== */
.back-btn-main {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: var(--accent);
    color: #fff;
    border-radius: 999px;
    border: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
}
.back-btn-main:hover {
    background: var(--accent-hover);
    transform: scale(1.02);
}
.back-btn-main svg {
    stroke: #fff;
}

/* ===== FOOTER ===== */
.site-footer {
    border-top: 1px solid var(--border);
    color: var(--muted);
    padding: 16px 0;
    text-align: center;
    font-size: 0.8rem;
}
.site-footer a { color: var(--fg); }
.site-footer a:hover { color: var(--accent); }
.site-footer p { margin-bottom: 4px; }

/* ===== MODAL ===== */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}
@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}
.modal-box {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    max-width: 380px;
    width: 90%;
    text-align: center;
    position: relative;
    box-shadow: var(--shadow-lg);
}
.modal-close {
    position: absolute;
    top: 10px; right: 14px;
    background: none;
    border: none;
    color: var(--muted);
    font-size: 1.6rem;
    cursor: pointer;
    transition: var(--transition);
}
.modal-close:hover {
    color: var(--fg);
    transform: rotate(90deg);
}
.modal-icon { font-size: 3rem; margin-bottom: 8px; }
.modal-box h3 { font-size: 1.2rem; margin-bottom: 6px; }
.modal-box p { color: var(--muted); font-size: 0.9rem; margin-bottom: 16px; }
.modal-btn {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    padding: 10px 28px;
    border-radius: 999px;
    font-weight: 600;
    transition: var(--transition);
    font-size: 0.95rem;
}
.modal-btn:hover {
    background: var(--accent-hover);
    transform: scale(1.02);
}
.modal-hint {
    display: block;
    color: var(--muted);
    font-size: 0.65rem;
    margin-top: 10px;
}

/* ===== AD TOAST ===== */
.ad-toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 14px 18px;
    max-width: 260px;
    width: calc(100% - 48px);
    box-shadow: var(--shadow-lg);
    z-index: 999;
    animation: slideInUp 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes slideInUp {
    from { opacity: 0; transform: translateY(40px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.ad-toast-close {
    position: absolute;
    top: 4px; right: 8px;
    background: none;
    border: none;
    color: var(--muted);
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
}
.ad-toast-close:hover {
    color: var(--fg);
    transform: rotate(90deg);
}
.ad-toast-content { text-align: left; }
.ad-toast-badge {
    display: inline-block;
    background: #333;
    color: var(--muted);
    font-size: 0.6rem;
    padding: 2px 10px;
    border-radius: 999px;
    text-transform: uppercase;
    margin-bottom: 4px;
}
.ad-toast-content p {
    margin: 4px 0 10px;
    font-size: 0.85rem;
}
.ad-toast-btn {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    padding: 4px 16px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 500;
    transition: var(--transition);
}
.ad-toast-btn:hover {
    background: var(--accent-hover);
    transform: scale(1.02);
}
@media (max-width: 480px) {
    .ad-toast {
        bottom: 16px;
        right: 12px;
        max-width: 180px;
        padding: 10px 14px;
    }
    .ad-toast-content p { font-size: 0.75rem; margin: 4px 0 8px; }
    .ad-toast-btn { font-size: 0.65rem; padding: 3px 12px; }
    .ad-toast-badge { font-size: 0.5rem; padding: 1px 8px; }
    .ad-toast-close { font-size: 1rem; top: 2px; right: 6px; }
}

/* ===== CONTACTS PAGE ===== */
.contacts-page-body .site-header {
    position: relative;
}
.contacts-page {
    padding: 30px 16px 50px;
}
.contacts-page h1 {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 24px;
}
@media (max-width: 600px) {
    .contacts-page h1 { font-size: 1.4rem; }
}
.contacts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    max-width: 700px;
    margin: 0 auto;
}
.contact-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px 16px;
    text-align: center;
    transition: var(--transition);
}
.contact-card:hover {
    border-color: var(--muted);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}
.contact-icon { font-size: 2rem; margin-bottom: 4px; }
.contact-card h3 { font-size: 1rem; margin-bottom: 4px; }
.contact-card a { color: var(--accent); font-weight: 500; }
.contact-card a:hover { text-decoration: underline; }
.contact-card p { color: var(--muted); font-size: 0.85rem; margin-top: 6px; }

/* ===== ПОГОДА ===== */
.weather-section {
    padding: 20px 0 30px;
}
.weather-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
@media (max-width: 600px) {
    .weather-grid { grid-template-columns: 1fr; }
}
.weather-main {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    text-align: center;
    grid-column: 1 / 3;
}
@media (max-width: 600px) {
    .weather-main { grid-column: 1; }
}
.weather-main .weather-icon {
    font-size: 4rem;
    margin-bottom: 8px;
}
.weather-main .temp {
    font-size: 3rem;
    font-weight: 700;
}
.weather-main .desc {
    color: var(--muted);
    font-size: 1.1rem;
}
.weather-main .details {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-top: 12px;
    color: var(--muted);
    font-size: 0.9rem;
    flex-wrap: wrap;
}
.weather-main .details span {
    display: flex;
    align-items: center;
    gap: 4px;
}
.weather-day {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    text-align: center;
    transition: var(--transition);
}
.weather-day:hover {
    border-color: var(--muted);
    transform: translateY(-2px);
}
.weather-day .day-icon { font-size: 2rem; }
.weather-day .day-temp { font-weight: 600; }
.weather-day .day-desc { color: var(--muted); font-size: 0.8rem; }
.weather-day .day-date { color: var(--muted); font-size: 0.75rem; margin-bottom: 4px; }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: var(--muted); }

/* ===== Скрытие элементов на странице статьи ===== */
.article-page .site-header,
.article-page .header-search,
.article-page .nav,
.article-page .news-ticker {
    display: none !important;
}

/* ===== УВЕДОМЛЕНИЕ О НОВОМ ПОЛЬЗОВАТЕЛЕ ===== */
.user-notification {
    position: fixed;
    bottom: 80px;
    right: 24px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 12px 16px;
    max-width: 280px;
    box-shadow: var(--shadow-lg);
    z-index: 998;
    animation: slideInUp 0.5s ease;
    font-size: 0.85rem;
}
.user-notification .notif-close {
    float: right;
    background: none;
    border: none;
    color: var(--muted);
    cursor: pointer;
    font-size: 1rem;
}
.user-notification .notif-close:hover { color: var(--fg); }