.tag-page {
    box-sizing: border-box;
    width: calc(100% - 30px);
    max-width: 1260px;
    min-height: 360px;
    margin: 24px auto 40px;
    padding: 24px;
    border-radius: 8px;
}

.tag-page__header {
    display: flex;
    align-items: baseline;
    gap: 14px;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid #2b2e34;
}

.tag-page__header h1 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    line-height: 1.4;
}

.tag-page__header p {
    margin: 0;
    color: #8f949d;
    font-size: 14px;
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 13px;
}

.tag-cloud a {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    box-sizing: border-box;
    padding: 8px 14px;
    border-radius: 5px;
    background: #df1d57;
    color: #fff;
    font-size: 15px;
    line-height: 22px;
    text-decoration: none;
    transition: background-color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.tag-cloud a:hover,
.tag-cloud a:focus {
    background: #f02b68;
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(223, 29, 87, .3);
}

.tag-cloud a:active {
    transform: translateY(0);
}

.tag-page__empty {
    padding: 70px 15px;
    color: #8f949d;
    font-size: 15px;
    text-align: center;
}

@media (max-width: 767px) {
    .tag-page {
        width: calc(100% - 20px);
        margin-top: 15px;
        padding: 16px 12px;
    }

    .tag-page__header {
        display: block;
        margin-bottom: 15px;
    }

    .tag-page__header h1 {
        font-size: 20px;
    }

    .tag-page__header p {
        margin-top: 4px;
    }

    .tag-cloud {
        gap: 8px;
    }

    .tag-cloud a {
        min-height: 34px;
        padding: 6px 11px;
        font-size: 14px;
    }
}
