.how-link {
    display: block;
    margin-top: 12px;
    font-size: 12px;
    color: #9ca3af; /* серый */
    text-decoration: none;
    text-align: left;
    padding: 0 0 4px 4px;
}

.how-link:hover {
    text-decoration: underline;
}

#top-tabs {
    scroll-margin-top: 20px;
}

* {
    box-sizing: border-box;
}

html {
    font-size: 16px;
}

body {
    font-family: Arial, sans-serif;
    background: #ffffff;
    color: #111827;
    margin: 0;
    padding: 0;
}

.page {
    padding: 16px;
}

h1 {
    font-size: 18px;
}

.subtitle {
    /* margin: 0 0 22px; */
    color: #6b7280;
    font-size: 15px;
    line-height: 1.4;
}

.tabs {
    display: flex;
    grid-template-columns: 1fr;
    gap: 8px;
    margin-bottom: 0;
    padding-bottom: 0;
}

.tab {
    padding: 13px 14px;
    cursor: pointer;
    border: 1px solid #c0c0c0;
    border-radius: 999px;
    background: #ffffff;
    color: #6b7280;
    font-size: 15px;
    font-weight: 700;
    text-align: center;
    flex: 1;
    line-height: 1.4;
    white-space: nowrap;
}

.tab.active:nth-child(1) {
    background: #059669;
    color: #ffffff;
    border-color: #059669;
    box-shadow: 0 4px 10px rgba(5, 150, 105, 0.25);
}

.tab.active:nth-child(2) {
    background: #2f80ed;
    /* голубой фон */
    color: #ffffff;
    /* белый текст */
    border-color: #2f80ed;
    box-shadow: 0 4px 10px rgba(47, 128, 237, 0.25);
}

.tab.active:nth-child(3) {
    background: #f97316;
    /* оранжевый */
    color: #ffffff;
    border-color: #f97316;
    box-shadow: 0 4px 10px rgba(249, 115, 22, 0.25);
}

.content {
    display: none;
}

.content.active {
    display: block;
}

.item {
    padding: 9px 0 18px;
}

.item-title {
    margin: 2px 0 2px;
    font-size: 18px;
    line-height: 1.35;
    font-weight: 600;
    color: #333333;
}

.item-text {
    margin: 4px 0 4px;
    color: #555555;
    font-size: 16px;
    line-height: 1.55;
}

.badge {
    display: inline-block;
    margin-bottom: 2px;
    font-weight: 500;
    font-size: 12px;
    border-radius: 999px;
}

.badge-today {
    color: #059669;
}

.badge-ai {
    color: #2f80ed;
}

.badge-future {
    color: #f97316;
}

.date {
    display: inline-block;
    margin: 2px 0 4px;
    color: #9ca3af;
    font-size: 13px;
    font-weight: 400;
}

.actions {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: center;
    margin-top: 2px;
}

.read-more,
.source-link,
.source-muted {
    font-size: 14px;
    font-weight: 400;
    color: #9ca3af;
    text-decoration: none;
}

.read-more {
    cursor: pointer;
}

.hero {
    margin: 0;
    padding: 0;
}

.hero img {
    display: block;
    width: 100%;
    height: auto;
    margin: 0;
}

.orange {
    color: #f97316;
    /* тот же оранжевый */
}

.green {
    color: #059669;
}

.violet {
    color: #7c3aed;
}

.note {
    text-align: right;
    padding-right: 6px;
    font-size: 10px;
    color: #666666;
}

.title-main {
    color: #333333;
}

@media (min-width: 700px) {
    body {
        max-width: 920px;
        margin: 40px auto;
        padding: 20px;
    }

    .page {
        padding: 32px;
    }

    .tabs {
        display: flex;
        flex-direction: row;
    }

    .tab {
        width: auto;
        padding: 10px 16px;
        font-size: 14px;
    }
}
