* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Roboto, system-ui, -apple-system, sans-serif;
    background: linear-gradient(145deg, #0a0c0f 0%, #1a1e24 100%);
    color: #eef2f5;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.container {
    max-width: 1000px;
    width: 100%;
    margin: 0 auto;
}

header h1 {
    font-size: 2.8rem;
    font-weight: 500;
    letter-spacing: 4px;
    text-align: center;
    margin-bottom: 20px;
    text-shadow: 0 0 20px rgba(255, 70, 70, 0.4);
}

header h1 span {
    font-size: 1.2rem;
    color: #aaa;
    display: block;
    font-weight: 300;
    letter-spacing: 2px;
    margin-top: 5px;
}

.clock-wrapper {
    background: rgba(10, 15, 20, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 48px;
    padding: 30px 20px;
    margin-bottom: 30px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8), 0 0 0 2px #2a2e35 inset;
    border: 1px solid #4f5b66;
}

.clock-display {
    background-color: #0d1117;
    border-radius: 32px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 0 30px #ff4d4d20, inset 0 0 10px #000;
    text-align: center;
}

canvas {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    height: auto;
    background-color: #0a0c10;
    border-radius: 20px;
    filter: drop-shadow(0 0 8px #f33);
}

.trend-indicator {
    font-size: 28px;
    font-weight: 600;
    text-align: center;
    margin: 20px 0 10px;
    padding: 10px 20px;
    border-radius: 60px;
    background: #1e252d;
    display: inline-block;
    margin-left: auto;
    margin-right: auto;
    width: fit-content;
    box-shadow: 0 0 15px currentColor;
    transition: box-shadow 0.3s ease;
}

.trend-indicator.increasing {
    color: #ff5e5e;
    background: #3a1e1e;
    box-shadow: 0 0 20px #ff5e5e;
    animation: pulse 2s infinite;
}

.trend-indicator.decreasing {
    color: #6ef0a0;
    background: #1a3a2a;
    box-shadow: 0 0 20px #6ef0a0;
}

.trend-indicator.stable {
    color: #f0d06e;
    background: #3a3320;
    box-shadow: 0 0 20px #f0d06e;
}

@keyframes pulse {
    0% { box-shadow: 0 0 20px #ff5e5e; }
    50% { box-shadow: 0 0 35px #ff3b3b; }
    100% { box-shadow: 0 0 20px #ff5e5e; }
}

.last-updated {
    color: #9aa8b9;
    font-size: 15px;
    text-align: center;
    margin-bottom: 25px;
    background: #1c232b;
    padding: 8px 16px;
    border-radius: 40px;
    display: inline-block;
    margin-left: auto;
    margin-right: auto;
    width: fit-content;
    border: 1px solid #3a4450;
}

.factors {
    background: #1e2833;
    border-left: 6px solid #ff5e5e;
    border-radius: 20px;
    padding: 20px 25px;
    text-align: left;
    margin: 25px 0 10px;
    color: #dce5f0;
    font-size: 17px;
    box-shadow: 0 8px 20px #00000060;
}

.factors strong {
    color: #ffb5b5;
    display: block;
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.factors ul {
    list-style: none;
    padding-left: 8px;
}

.factors li {
    margin-bottom: 8px;
    position: relative;
    padding-left: 24px;
}

.factors li::before {
    content: "⚠️";
    position: absolute;
    left: 0;
    color: #ffb347;
    font-size: 14px;
}

.news-section {
    background: #1b222b;
    border-radius: 48px;
    padding: 30px;
    box-shadow: 0 15px 30px #00000080;
    border: 1px solid #394454;
}

.news-section h2 {
    font-size: 2rem;
    font-weight: 400;
    margin-bottom: 25px;
    border-bottom: 2px solid #ff4d4d40;
    padding-bottom: 12px;
    color: #f0c0a0;
    letter-spacing: 1px;
}

.news-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.news-item {
    background: #131b24;
    padding: 20px 25px;
    border-radius: 24px;
    border: 1px solid #2f3b48;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px #00000040;
}

.news-item:hover {
    border-color: #ff7b7b60;
    background: #1b2632;
    transform: translateY(-2px);
}

.news-title {
    font-size: 1.3rem;
    font-weight: 500;
    color: #ffcfb0;
    display: block;
    margin-bottom: 10px;
    line-height: 1.4;
}

.news-meta {
    font-size: 0.9rem;
    color: #8f9fb0;
    display: flex;
    gap: 20px;
    align-items: center;
}

.news-meta .source {
    background: #26313d;
    padding: 4px 12px;
    border-radius: 30px;
    color: #b0c6da;
}

.news-description {
    margin-top: 12px;
    color: #b6c8dd;
    font-size: 0.98rem;
    line-height: 1.6;
    border-top: 1px dashed #3f5062;
    padding-top: 15px;
}

.loading {
    text-align: center;
    padding: 50px;
    color: #8899b0;
    font-size: 1.2rem;
}

footer {
    margin-top: 50px;
    text-align: center;
    color: #6c7e96;
    font-size: 0.85rem;
    border-top: 1px solid #2d3846;
    padding-top: 25px;
}

.disclaimer {
    background: #1e283380;
    padding: 12px 25px;
    border-radius: 40px;
    display: inline-block;
    margin-bottom: 15px;
    backdrop-filter: blur(5px);
    font-size: 0.9rem;
}

.copyright {
    opacity: 0.6;
}

/* Новый цифровой дисплей */
.digital-display {
    font-family: 'VT323', 'Orbitron', 'Courier New', monospace;
    font-size: 8rem;
    font-weight: 400;
    color: #ff4d4d;
    text-shadow: 0 0 20px #ff4d4d, 0 0 40px #ff1a1a;
    background: #0a0c10;
    padding: 30px 20px;
    border-radius: 30px;
    display: inline-block;
    letter-spacing: 10px;
    line-height: 1;
    border: 2px solid #3a3f4a;
    box-shadow: 0 0 30px #ff000020, inset 0 0 10px #000;
    min-width: 400px;
    text-align: center;
}

/* Для мобильных */
@media (max-width: 600px) {
    .digital-display {
        font-size: 4rem;
        min-width: 250px;
        letter-spacing: 5px;
    }
}

/* Блок "О проекте" */
.about-section {
    background: #1b222b;
    border-radius: 48px;
    padding: 30px;
    margin-top: 30px;
    box-shadow: 0 15px 30px #00000080;
    border: 1px solid #394454;
}

.about-section h2 {
    font-size: 2rem;
    font-weight: 400;
    margin-bottom: 25px;
    border-bottom: 2px solid #ff4d4d40;
    padding-bottom: 12px;
    color: #f0c0a0;
    letter-spacing: 1px;
}

.about-section p {
    margin-bottom: 1.2em;
    line-height: 1.6;
    color: #d0e0f0;
    font-size: 1.05rem;
}

/* Блок FAQ */
.faq-section {
    background: #1b222b;
    border-radius: 48px;
    padding: 30px;
    margin-top: 30px;
    box-shadow: 0 15px 30px #00000080;
    border: 1px solid #394454;
}

.faq-section h2 {
    font-size: 2rem;
    font-weight: 400;
    margin-bottom: 25px;
    border-bottom: 2px solid #ff4d4d40;
    padding-bottom: 12px;
    color: #f0c0a0;
    letter-spacing: 1px;
}

.faq-section h3 {
    font-size: 1.4rem;
    font-weight: 500;
    color: #ffb0a0;
    margin: 20px 0 10px 0;
}

.faq-section p {
    margin-bottom: 1.2em;
    line-height: 1.6;
    color: #d0e0f0;
    font-size: 1rem;
    padding-left: 20px;
    border-left: 3px solid #ff4d4d40;
}

/* Адаптация для мобильных */
@media (max-width: 600px) {
    .about-section, .faq-section {
        padding: 20px;
        border-radius: 32px;
    }
    .about-section h2, .faq-section h2 {
        font-size: 1.6rem;
    }
    .faq-section h3 {
        font-size: 1.2rem;
    }
}

/* Ссылка на ВКонтакте */
.vk-link-container {
    text-align: center;
    margin: 30px 0 20px;
}

.vk-link {
    display: inline-block;
    background: #0077ff; /* официальный цвет ВК */
    color: #fff;
    padding: 12px 30px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.2rem;
    transition: background 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 15px rgba(0, 119, 255, 0.3);
}

.vk-link:hover {
    background: #005bb5;
    transform: scale(1.05);
}

.vk-icon {
    display: inline-block;
    background: white;
    color: #0077ff;
    width: 30px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    border-radius: 50%;
    margin-right: 10px;
    font-weight: bold;
    font-size: 1.3rem;
}