/* Редакционный формат категории «Исследования» (category_id=40).
   Классы начинаются с rg-research-, чтобы не влиять на остальные новости. */

.rg-research-deck {
    position: relative;
    margin: 0 0 36px;
    padding: 30px 32px 28px;
    overflow: hidden;
    border: 1px solid rgba(18, 48, 111, .14);
    border-radius: 18px;
    background:
        radial-gradient(circle at 93% -10%, rgba(50, 90, 198, .17), transparent 34%),
        linear-gradient(145deg, #f8faff 0%, #fff 68%);
    box-shadow: 0 24px 70px rgba(14, 34, 76, .1);
}

.rg-research-deck::before {
    content: '';
    position: absolute;
    inset: 0 auto 0 0;
    width: 5px;
    background: linear-gradient(180deg, #f1b33b, #2649b6);
}

.rg-research-kicker {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 15px;
    color: #21449a;
    font: 800 12px/1.2 'Manrope', sans-serif;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.rg-research-kicker::before {
    content: '';
    width: 10px;
    height: 10px;
    transform: rotate(45deg);
    background: #f1b33b;
}

.prose-article .rg-research-deck p {
    max-width: 760px;
    margin: 0;
    color: #16243f;
    font-family: ui-serif, Georgia, 'Times New Roman', serif;
    font-size: clamp(20px, 2.25vw, 27px);
    line-height: 1.48;
    letter-spacing: -.018em;
}

.rg-research-byline {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    margin-top: 22px;
    color: #66728a;
    font: 600 13px/1.45 'Manrope', sans-serif;
}

.rg-research-byline span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.rg-research-byline span::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #7f96d3;
}

.rg-research-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin: 34px 0 42px;
}

.article-body .rg-research-stat {
    min-width: 0;
    margin: 0;
    padding: 20px 18px;
    border: 1px solid #dfe5f2;
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 12px 34px rgba(21, 42, 85, .08);
}

.article-body .rg-research-stat--accent {
    border-color: #f2c568;
    background: linear-gradient(145deg, #fff9e9, #fff);
}

.rg-research-stat strong {
    display: block;
    margin-bottom: 6px;
    color: #173b91;
    font: 800 clamp(25px, 3vw, 36px)/1 'Manrope', sans-serif;
    letter-spacing: -.045em;
}

.rg-research-stat--accent strong { color: #9a6400; }

.rg-research-stat span {
    display: block;
    color: #66728a;
    font: 650 12px/1.45 'Manrope', sans-serif;
}

.article-body .rg-research-figure {
    margin: 38px 0 44px;
    padding: 0;
    overflow: hidden;
    border: 1px solid #dce3f0;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 22px 58px rgba(13, 31, 67, .11);
}

.rg-research-figure a { display: block; }

.article-body .rg-research-figure img {
    display: block;
    width: 100%;
    height: auto;
    margin: 0;
    border: 0;
    border-radius: 0;
}

.article-body .rg-research-figure figcaption {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 14px 17px;
    color: #66728a;
    font: 600 12px/1.5 'Manrope', sans-serif;
    background: #f7f9fd;
    border-top: 1px solid #e2e7f1;
}

.rg-research-figure figcaption a {
    display: inline;
    color: #2149a8;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
}

.article-body .rg-research-callout {
    position: relative;
    margin: 38px 0;
    padding: 30px 34px 28px 40px;
    overflow: hidden;
    border-radius: 17px;
    color: #fff !important;
    background:
        radial-gradient(circle at 90% 0, rgba(88, 123, 229, .45), transparent 38%),
        #091a39 !important;
    box-shadow: 0 24px 54px rgba(7, 22, 52, .2);
}

.rg-research-callout::before {
    content: '“';
    position: absolute;
    top: -20px;
    left: 14px;
    color: rgba(241, 179, 59, .32);
    font: 800 118px/1 Georgia, serif;
}

.article-body .rg-research-callout p {
    position: relative;
    margin: 0 0 12px;
    color: #fff !important;
    font-family: ui-serif, Georgia, 'Times New Roman', serif;
    font-size: clamp(21px, 2.35vw, 29px);
    line-height: 1.42;
}

.rg-research-callout cite {
    position: relative;
    color: #aebfe8 !important;
    font: 700 12px/1.5 'Manrope', sans-serif;
    font-style: normal;
    letter-spacing: .04em;
}

.article-body .rg-research-method,
.article-body .rg-research-warning {
    margin: 30px 0;
    padding: 22px 24px;
    border-radius: 13px;
}

.article-body .rg-research-method {
    border: 1px solid #cfdaef;
    border-left: 5px solid #2649b6;
    background: #f3f6fc !important;
}

.article-body .rg-research-warning {
    border: 1px solid #f2d99f;
    border-left: 5px solid #e3a72f;
    background: #fffaee !important;
}

.article-body .rg-research-method strong,
.article-body .rg-research-warning strong {
    display: block;
    margin-bottom: 7px;
    color: #102344 !important;
    font: 800 16px/1.4 'Manrope', sans-serif;
}

.article-body .rg-research-method p,
.article-body .rg-research-warning p {
    margin: 0;
    color: #42506a !important;
    font-size: 15px;
    line-height: 1.65;
}

.rg-research-table-wrap {
    margin: 28px 0 40px;
    overflow-x: auto;
    border: 1px solid #dce3ef;
    border-radius: 14px;
    box-shadow: 0 16px 45px rgba(13, 31, 67, .08);
}

.prose-article table.rg-research-table {
    width: 100%;
    min-width: 670px;
    margin: 0;
    border: 0;
}

.prose-article .rg-research-table th,
.prose-article .rg-research-table td {
    padding: 15px 16px;
    border: 0;
    border-bottom: 1px solid #e5e9f2;
    text-align: left;
    vertical-align: middle;
}

.prose-article .rg-research-table thead th {
    background: #102b66 !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    font: 800 11px/1.35 'Manrope', sans-serif;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.prose-article .rg-research-table tbody tr:nth-child(even) { background: #f7f9fd; }
.prose-article .rg-research-table tbody tr:last-child td { border-bottom: 0; }
.prose-article .rg-research-table td { color: #344159; font-size: 14px; }
.prose-article .rg-research-table td strong { color: #152a53; }

.rg-research-forecast-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 13px;
    margin: 28px 0 38px;
}

.article-body .rg-research-forecast {
    margin: 0;
    padding: 22px 20px;
    border: 1px solid #dce3ef;
    border-radius: 15px;
    background: #fff;
}

.rg-research-forecast small {
    display: block;
    margin-bottom: 10px;
    color: #7a859b;
    font: 800 11px/1.3 'Manrope', sans-serif;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.rg-research-forecast strong {
    display: block;
    margin-bottom: 10px;
    color: #173b91;
    font: 800 25px/1.1 'Manrope', sans-serif;
}

.article-body .rg-research-forecast p {
    margin: 0;
    color: #5c6880;
    font-size: 13px;
    line-height: 1.55;
}

.article-body .rg-research-media-kit {
    position: relative;
    margin: 46px 0 36px;
    padding: 30px;
    overflow: hidden;
    border-radius: 18px;
    color: #fff !important;
    background: #0a1936 !important;
}

.rg-research-media-kit::after {
    content: '';
    position: absolute;
    right: -70px;
    bottom: -90px;
    width: 250px;
    height: 250px;
    border: 56px solid rgba(77, 111, 207, .19);
    border-radius: 50%;
}

.article-body .rg-research-media-kit h2 {
    position: relative;
    z-index: 1;
    margin-top: 0;
    color: #fff !important;
}

.article-body .rg-research-media-kit h2::after { background: #f1b33b; }

.article-body .rg-research-media-kit p,
.article-body .rg-research-media-kit li {
    position: relative;
    z-index: 1;
    color: #c5d0e8 !important;
}

.rg-research-downloads {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 20px;
}

/* Общие стили статей оформляют любой вложенный div как белую карточку.
   Сбрасываем их внутри медиакита, иначе белые ссылки теряются на белом фоне. */
.article-body .rg-research-media-kit > .rg-research-downloads {
    margin: 20px 0 0 !important;
    padding: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.article-body .rg-research-downloads a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 10px 15px;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 999px;
    color: #fff !important;
    background: rgba(255, 255, 255, .07);
    font: 800 12px/1.3 'Manrope', sans-serif;
    text-decoration: none;
    transition: background .2s ease, border-color .2s ease, transform .2s ease;
}

.article-body .rg-research-downloads a:first-child {
    border-color: #f1b33b;
    color: #0a1936 !important;
    background: #f1b33b;
}

.article-body .rg-research-downloads a:hover {
    transform: translateY(-1px);
    border-color: #f1b33b;
    background: rgba(241, 179, 59, .14);
}

.article-body .rg-research-downloads a:first-child:hover {
    color: #0a1936 !important;
    background: #ffc95e;
}

.article-body .rg-research-sources {
    margin: 36px 0;
    padding: 24px 26px;
    border-top: 1px solid #dce2ee;
    border-bottom: 1px solid #dce2ee;
    background: #fbfcfe;
}

.article-body .rg-research-sources h2 { margin-top: 0; }
.article-body .rg-research-sources li { margin-bottom: 8px; color: #4b5870; }
.article-body .rg-research-sources a { color: #2149a8; overflow-wrap: anywhere; }

@media (max-width: 920px) {
    .rg-research-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .rg-research-forecast-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    .article-page-title {
        max-width: 100%;
        font-size: clamp(25px, 7.35vw, 28px) !important;
        line-height: 1.12 !important;
        text-wrap: wrap;
        overflow-wrap: anywhere;
    }

    .rg-research-deck { padding: 24px 20px 22px 24px; border-radius: 14px; }
    .prose-article .rg-research-deck p { font-size: 20px; line-height: 1.48; }
    .rg-research-stat-grid { grid-template-columns: 1fr 1fr; gap: 9px; margin: 26px 0 34px; }
    .article-body .rg-research-stat { padding: 16px 14px; }
    .rg-research-stat strong { font-size: 26px; }
    .article-body .rg-research-figure { margin: 30px -4px 36px; border-radius: 12px; }
    .article-body .rg-research-figure figcaption { display: block; padding: 12px 14px; }
    .rg-research-figure figcaption a { display: inline-block; margin-top: 6px; }
    .article-body .rg-research-callout { padding: 26px 20px 24px 28px; border-radius: 14px; }
    .article-body .rg-research-callout p { font-size: 21px; }
    .article-body .rg-research-method,
    .article-body .rg-research-warning { padding: 19px 18px; }
    .article-body .rg-research-media-kit { padding: 24px 20px; border-radius: 14px; }
    .rg-research-downloads { display: grid; }
    .article-body .rg-research-downloads a { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
    .article-body .rg-research-downloads a { transition: none; }
}
