
/* =============================================
   FIRST GADGET BLOG CSS — CLEAN v4.0
   ============================================= */

/* 1. ФИКС ШИРИНЫ КОНТЕНТА (главная проблема >1200px) */
.t-feed__post-popup__content {
    max-width: 760px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding: 0 20px !important;
    box-sizing: border-box !important;
    width: 100% !important;
}

/* 2. БЕЙДЖИК */
.t-feed__post-popup__date-parts-wrapper {
    display: flex !important;
    justify-content: center !important;
    width: 100% !important;
    margin-bottom: 10px !important;
    margin-top: -10px !important;
}
.t-feed__post-popup__tag {
    margin: 0 !important;
    display: inline-block !important;
    background-color: #FFC15B !important;
    color: #000000 !important;
    padding: 6px 14px !important;
    border-radius: 6px !important;
    font-weight: 700 !important;
    font-size: 12px !important;
    text-transform: uppercase !important;
    letter-spacing: 1.5px !important;
}

/* 3. ЗАГОЛОВОК СТАТЬИ */
.t-feed__post-popup__title {
    font-size: 42px !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
    text-align: center !important;
}
@media (max-width: 640px) {
    .t-feed__post-popup__title {
        font-size: 28px !important;
        text-align: left !important;
    }
    .t-feed__post-popup__date-parts-wrapper {
        justify-content: flex-start !important;
    }
}

/* 4. ОСНОВНОЙ ТЕКСТ */
.t-feed__post-popup__content .t-redactor__text {
    font-size: 19px !important;
    line-height: 1.7 !important;
}

@media (max-width: 640px) {
    .t-feed__post-popup__content .t-redactor__text {
        font-size: 17px !important;
    }
}

/* 5. ВСТУПЛЕНИЕ */
.t-feed__post-popup__content .t-redactor__preface {
    font-size: 21px !important;
    font-weight: 500 !important;
    line-height: 1.6 !important;
}

/* 6. ЦИТАТА */
.t-feed__post-popup__content .t-redactor__quote {
    font-size: 18px !important;
    border-left: 4px solid #FFC15B !important;
    padding-left: 20px !important;
    margin-bottom: 16px !important; /* расстояние между абзацами */
}

/* 7. БЛОК АВТОРА */
.t-feed__post-popup__author-wrapper,
.js-feed-post-author {
    display: flex !important;
    align-items: center !important;
    gap: 16px !important;
    max-width: 720px !important;
    margin: 48px auto 0 !important;
    padding: 24px !important;
    background: #f7f7f7 !important;
    border-radius: 16px !important;
    box-sizing: border-box !important;
}
.t-feed__post-popup__author-photo,
.t-feed__post-popup__author-wrapper img {
    width: 64px !important;
    height: 64px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    flex-shrink: 0 !important;
}
.t-feed__post-popup__author-name {
    font-size: 16px !important;
    font-weight: 700 !important;
    display: block !important;
}
.t-feed__post-popup__author-descr {
    font-size: 14px !important;
    color: #666 !important;
    display: block !important;
}
.t-feed__post-popup__author-social a {
    font-size: 13px !important;
    color: #FFC15B !important;
    font-weight: 600 !important;
    text-decoration: none !important;
}

/* 8. SEE ALSO */
.t-feed__post-popup__relevants {
    max-width: 1200px !important;
    margin: 60px auto 0 !important;
    background-color: #f7f7f7 !important;
    padding: 60px 40px !important;
    border-radius: 24px !important;
    box-sizing: border-box !important;
}
.t-feed__post-popup__relevants-title {
    font-size: 24px !important;
    font-weight: 800 !important;
    text-align: center !important;
    margin-bottom: 40px !important;
}
.t-feed__post-popup__relevants-wrapper {
    display: flex !important;
    justify-content: center !important;
    flex-wrap: wrap !important;
    gap: 30px !important;
}
.t-feed__post-popup__relevants-item {
    width: calc(33.333% - 20px) !important;
    max-width: 360px !important;
}

@media (max-width: 960px) {
    .t-feed__post-popup__relevants-item { width: calc(50% - 15px) !important; }
}

@media (max-width: 640px) {
    .t-feed__post-popup__relevants {
        padding: 40px 0 !important;
        border-radius: 16px !important;
    }
    .t-feed__post-popup__relevants-wrapper {
        display: block !important;
        padding: 0 20px !important;
    }
    .t-feed__post-popup__relevants-item {
        width: 100% !important;
        margin-bottom: 30px !important;
    }
}
.t-feed__post-popup__relevants-bgimg {
    width: 100% !important;
    padding-bottom: 66% !important;
    background-size: cover !important;
    background-position: center !important;
    border-radius: 16px !important;
    display: block !important;
    height: 0 !important;
    transition: transform 0.3s ease !important;
}
.t-feed__post-popup__relevants-item:hover .t-feed__post-popup__relevants-bgimg {
    transform: translateY(-5px);
}
.t-feed__post-popup__relevants-item-title {
    font-size: 18px !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    margin-top: 15px !important;
    display: block !important;
}
.t-feed__post-popup__relevants-item-descr {
    font-size: 15px !important;
    color: #666 !important;
    margin-top: 5px !important;
}
.t-feed__post-popup__relevants-date { display: none !important; }

/* 9. КНОПКИ ФИЛЬТРА */
.t-feed__parts-switch-btn { font-weight: 700 !important; }

/* МОБИЛЬНЫЙ: отступы текста по бокам */

@media (max-width: 640px) {
    .t-feed__post-popup__content .t-redactor__text {
        padding: 0 10px !important;
    }
}

/* СОЦСЕТИ АВТОРА */
.t-feed__post-popup__author-social {
    display: flex !important;
    gap: 10px !important;
    margin-top: 8px !important;
}


/* МОБИЛЬНЫЙ: сброс всех сдвигов, всё по одной линии */

@media (max-width: 960px) {
    .t-feed__post-popup__content {
        padding: 0 16px !important;
    }
    .t-feed__post-popup__content h2,
    .t-feed__post-popup__content h3,
    .t-feed__post-popup__content h4,
    .t-feed__post-popup__content .t-redactor__title,
    .t-feed__post-popup__content .t-redactor__text,
    .t-feed__post-popup__content .t-redactor__preface,
    .t-feed__post-popup__content .t-redactor__quote,
    .t-feed__post-popup__content figure,
    .t-feed__post-popup__content img,
    .t-feed__post-popup__content .t-redactor__image,
    .t-feed__post-popup__content table,
    .t-feed__post-popup__content .t-table__viewport,
    .t-feed__post-popup__content .t-table__wrapper,
    .t-feed__post-popup__content ol,
    .t-feed__post-popup__content ul {
        max-width: 100% !important;
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        box-sizing: border-box !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    /* Списки — оставляем отступ только для маркеров */
    .t-feed__post-popup__content ol,
    .t-feed__post-popup__content ul {
        padding-left: 22px !important;
    }
}

/* ОТСТУПЫ НАД ПОДЗАГОЛОВКАМИ */
.t-feed__post-popup__content h2 {
    margin-top: 48px !important;
}

.t-feed__post-popup__content h3 {
    margin-top: 36px !important;
}



/* ЦИТАТА НА МОБИЛЬНОМ */

@media (max-width: 960px) {
    .t-feed__post-popup__content .t-redactor__quote {
        font-size: 18px !important;  /* как обычный текст */
        font-style: normal !important;
        padding-left: 22px !important; /* отступ от черты */
        margin-bottom: 16px !important; /* расстояние между абзацами */
    }
}


