/* =====================================================
   ГЛАВНАЯ СТРАНИЦА — Political Feed
   Подключается после editorial.css и перекрывает его: там остаются шапка,
   поиск и окно статьи, здесь — всё, что ниже шапки, и подвал.
   Разметку собирает js/app.js, котировки — js/home-markets.js.

   Порядок: переменные → строка с датой → шапка → котировки → карточки →
   первый экран → блоки разделов → подвал → планшет и телефон.
   ===================================================== */

body.page-home {
    --hp-ink: #11151b;
    --hp-slate: #1b222c;            /* тёмные полосы: строка с датой, подвал */
    --hp-text: #3b424d;
    --hp-muted: #69717d;
    --hp-faint: #8d949e;
    --hp-line: #e1e3e7;
    --hp-paper: #f6f5f1;
    --hp-accent: #b3261e;           /* тот же, что на странице статьи (css/article.css) */
    --hp-accent-dark: #8c1c16;
    --hp-up: #0b7a4b;
    --hp-down: #c0271f;
    --hp-max: 1280px;
    --hp-gutter: 24px;
    --hp-serif: "Source Serif 4", Georgia, "Times New Roman", serif;
    --hp-sans: "Inter", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;

    /* Шапка, поиск и окно статьи из editorial.css берут цвета отсюда */
    --ed-ink: var(--hp-ink);
    --ed-muted: var(--hp-muted);
    --ed-border: var(--hp-line);
    --ed-red: var(--hp-accent);
    --ed-red-dark: var(--hp-accent-dark);
    --ed-max: var(--hp-max);
    --accent: var(--hp-accent);
    --accent-hover: var(--hp-accent-dark);

    color: var(--hp-ink);
    font-family: var(--hp-sans);
}

.hp-wrap {
    width: min(calc(100% - 2 * var(--hp-gutter)), var(--hp-max));
    margin-inline: auto;
}

body.page-home main.hp {
    width: 100%;
    padding: 0;
}

body.page-home [hidden] {
    display: none !important;
}

/* ---------------- СТРОКА С ДАТОЙ ---------------- */

.hp-topline {
    background: var(--hp-slate);
    color: #aeb6c2;
    font: 500 12px/1 var(--hp-sans);
}

.hp-topline__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 34px;
}

.hp-topline__date {
    color: #e9ecf1;
    letter-spacing: 0.01em;
}

.hp-topline__links {
    display: flex;
    align-items: center;
    gap: 22px;
}

.hp-topline__links a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 160ms ease;
}

.hp-topline__links a:hover {
    color: #fff;
}

/* ---------------- ШАПКА ---------------- */

body.page-home .header {
    border-bottom: 1px solid var(--hp-ink);
    background: rgba(255, 255, 255, 0.98);
}

body.page-home .header-inner {
    width: min(calc(100% - 2 * var(--hp-gutter)), var(--hp-max));
    min-height: 66px;
    gap: 40px;
}

body.page-home .logo img {
    width: auto;
    height: 40px;
    max-width: none;
}

body.page-home .nav {
    gap: 28px;
}

body.page-home .nav a {
    min-height: 66px;
    color: var(--hp-ink);
    font-size: 13.5px;
    font-weight: 600;
    letter-spacing: 0;
}

body.page-home .nav a:hover,
body.page-home .nav a[aria-current="page"] {
    color: var(--hp-accent);
    border-bottom-color: var(--hp-accent);
}

body.page-home .header-search {
    color: var(--hp-ink);
}

/* Поиск — на всю ширину колонки, как остальная страница */
body.page-home .search-section {
    width: min(calc(100% - 2 * var(--hp-gutter)), var(--hp-max));
    max-width: none;
    padding: 14px 0;
}

body.page-home .search-results {
    top: calc(100% - 10px);
    border-radius: 0;
}

body.page-home .search-result-category {
    padding: 0;
    border-radius: 0;
    background: none;
}

/* ---------------- СТРОКА КОТИРОВОК ---------------- */

.hp-ticker {
    border-bottom: 1px solid var(--hp-line);
    background: var(--hp-paper);
    font: 500 12.5px/1 var(--hp-sans);
}

.hp-ticker__inner {
    display: flex;
    align-items: stretch;
    min-height: 38px;
}

.hp-ticker__list {
    display: flex;
    flex: 1 1 auto;
    min-width: 0;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent);
    mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent);
}

.hp-ticker__list::-webkit-scrollbar {
    display: none;
}

.hp-tick {
    display: inline-flex;
    flex: none;
    align-items: center;
    gap: 7px;
    padding: 0 18px;
    border-right: 1px solid var(--hp-line);
    white-space: nowrap;
}

.hp-tick:first-child {
    padding-left: 0;
}

.hp-tick:last-child {
    border-right: 0;
    padding-right: 28px;
}

.hp-tick__name {
    color: var(--hp-muted);
    font-weight: 600;
}

.hp-tick__val {
    color: var(--hp-ink);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

a.hp-tick:hover .hp-tick__name {
    color: var(--hp-ink);
}

.hp-chg {
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.hp-chg--up { color: var(--hp-up); }
.hp-chg--down { color: var(--hp-down); }
.hp-chg--flat { color: var(--hp-faint); }

.hp-tick--skeleton::before {
    content: "";
    width: 96px;
    height: 10px;
    border-radius: 2px;
    background: #e6e5e0;
}

.hp-ticker__all {
    display: inline-flex;
    flex: none;
    align-items: center;
    padding-left: 18px;
    border-left: 1px solid var(--hp-line);
    color: var(--hp-ink);
    font-weight: 700;
    white-space: nowrap;
}

.hp-ticker__all::after,
.hp-head__link::after,
.hp-more::after,
.hp-map__go::after {
    content: "→";
    margin-left: 6px;
    transition: transform 160ms ease;
}

.hp-ticker__all:hover::after,
.hp-head__link:hover::after,
.hp-more:hover::after,
.hp-map:hover .hp-map__go::after {
    transform: translateX(3px);
}

.hp-ticker__all:hover {
    color: var(--hp-accent);
}

/* ---------------- КАРТОЧКА МАТЕРИАЛА ---------------- */

.hp-card {
    display: block;
    min-width: 0;
}

.hp-media {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: #eceef1;
}

.hp-media--empty {
    background: linear-gradient(135deg, #eff1f4, #e2e5ea);
}

.hp-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 500ms ease;
}

.hp-card:hover .hp-img {
    transform: scale(1.025);
}

.hp-card__body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    min-width: 0;
}

.hp-kicker {
    display: inline-block;
    color: var(--hp-accent);
    font: 800 11px/1.2 var(--hp-sans);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hp-labels {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 10px;
}

.hp-card__title {
    margin: 0;
    color: var(--hp-ink);
    font-family: var(--hp-serif);
    font-weight: 700;
    letter-spacing: -0.015em;
    text-wrap: balance;
    text-decoration: underline transparent;
    text-decoration-thickness: 0.06em;
    text-underline-offset: 0.16em;
    transition: text-decoration-color 160ms ease;
}

.hp-card:hover .hp-card__title {
    text-decoration-color: var(--hp-accent);
}

.hp-card__desc {
    margin: 0;
    color: var(--hp-text);
    font-size: 14px;
    line-height: 1.55;
}

.hp-date {
    display: block;
    color: var(--hp-faint);
    font: 500 12px/1.3 var(--hp-sans);
}

/* ---------------- ПЕРВЫЙ ЭКРАН ---------------- */

.hp-top {
    display: grid;
    grid-template-columns: minmax(0, 1.72fr) minmax(0, 1fr) minmax(0, 0.86fr);
    column-gap: 56px;
    padding-block: 28px 44px;
}

.hp-top__side,
.hp-feed {
    position: relative;
}

/* Линейки между колонками */
.hp-top__side::before,
.hp-feed::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: -28px;
    width: 1px;
    background: var(--hp-line);
}

/* Тема дня */
.hp-card--lead .hp-media {
    aspect-ratio: 16 / 9;
    margin-bottom: 18px;
}

.hp-card--lead .hp-card__body {
    gap: 12px;
}

.hp-card--lead .hp-card__title {
    font-size: clamp(30px, 3.05vw, 44px);
    line-height: 1.08;
    letter-spacing: -0.025em;
}

.hp-card--lead .hp-card__desc {
    max-width: 62ch;
    font-size: 17px;
}

/* Вторые по важности материалы */
.hp-top__side {
    display: flex;
    flex-direction: column;
}

.hp-card--side {
    padding: 18px 0;
    border-top: 1px solid var(--hp-line);
}

.hp-card--side:first-child {
    padding-top: 0;
    border-top: 0;
}

.hp-card--side:last-child {
    padding-bottom: 0;
}

.hp-card--side .hp-media {
    margin-bottom: 14px;
}

.hp-card--side .hp-card__title {
    font-size: 21px;
    line-height: 1.18;
}

.hp-card--side .hp-card__desc {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

/* Лента */
.hp-feed__head,
.hp-hist__label {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--hp-ink);
    color: var(--hp-ink);
    font: 800 12px/1 var(--hp-sans);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.hp-feed__head::before {
    content: "";
    width: 8px;
    height: 8px;
    background: var(--hp-accent);
}

.hp-feed__list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.hp-feed__item {
    display: block;
    padding: 13px 0;
    border-bottom: 1px solid var(--hp-line);
}

.hp-feed__meta {
    display: flex;
    align-items: baseline;
    gap: 9px;
    margin-bottom: 5px;
    font: 700 11.5px/1.2 var(--hp-sans);
}

.hp-feed__date {
    color: var(--hp-accent);
}

.hp-feed__cat {
    color: var(--hp-faint);
    font-size: 10px;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.hp-feed__title {
    display: block;
    color: var(--hp-ink);
    font: 600 15.5px/1.3 var(--hp-serif);
    transition: color 160ms ease;
}

.hp-feed__item:hover .hp-feed__title {
    color: var(--hp-accent-dark);
}

.hp-more {
    display: inline-flex;
    align-items: center;
    margin-top: 16px;
    color: var(--hp-ink);
    font: 700 12px/1 var(--hp-sans);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.hp-more:hover,
.hp-head__link:hover {
    color: var(--hp-accent);
}

/* ---------------- БЛОК РАЗДЕЛА ---------------- */

.hp-section {
    padding-bottom: 60px;
}

.hp-head {
    display: flex;
    align-items: baseline;
    gap: 18px;
    margin-bottom: 24px;
    padding-top: 14px;
    border-top: 3px solid var(--hp-ink);
}

.hp-head__title {
    margin: 0;
    color: var(--hp-ink);
    font: 700 30px/1.1 var(--hp-serif);
    letter-spacing: -0.02em;
}

.hp-head__title a:hover {
    color: var(--hp-accent);
}

.hp-head__sub {
    margin: 0;
    color: var(--hp-muted);
    font-size: 14px;
}

.hp-head__link {
    margin-left: auto;
    color: var(--hp-ink);
    font: 700 12px/1 var(--hp-sans);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    white-space: nowrap;
}

/* Один материал — широкая карточка, два — пара, три и больше — главный и список */
.hp-split {
    display: grid;
    gap: 32px 40px;
    align-items: start;
}

.hp-split[data-count="2"] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.hp-split[data-count="3"] {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
}

.hp-card--feature .hp-media {
    margin-bottom: 16px;
}

.hp-card--feature .hp-card__title {
    font-size: 25px;
    line-height: 1.15;
}

.hp-split[data-count="1"] .hp-card--feature,
.hp-eco__stories[data-count="1"] .hp-card--feature {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: 32px;
    align-items: center;
}

.hp-split[data-count="1"] .hp-media,
.hp-eco__stories[data-count="1"] .hp-media {
    margin-bottom: 0;
}

.hp-split[data-count="1"] .hp-card__title {
    font-size: 30px;
}

.hp-list {
    display: flex;
    flex-direction: column;
}

.hp-card--row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 132px;
    gap: 18px;
    align-items: start;
    padding: 18px 0;
    border-top: 1px solid var(--hp-line);
}

.hp-card--row:first-child {
    padding-top: 0;
    border-top: 0;
}

.hp-card--row .hp-media {
    order: 2;
    aspect-ratio: 4 / 3;
}

.hp-card--row .hp-card__title {
    font-size: 18.5px;
    line-height: 1.22;
}

/* ---------------- СВО ---------------- */

.hp-svo {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 40px;
}

.hp-map {
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    min-height: 340px;
    padding: 24px 24px 26px;
    overflow: hidden;
    background:
        radial-gradient(120% 80% at 100% 0%, #1c2c49 0%, transparent 62%),
        #0a111d;
    color: #e9eef7;
}

/* Сетка, как на карте: тает к нижнему левому углу */
.hp-map::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 30px 30px;
    -webkit-mask-image: radial-gradient(110% 90% at 100% 0%, #000 20%, transparent 78%);
    mask-image: radial-gradient(110% 90% at 100% 0%, #000 20%, transparent 78%);
}

.hp-map__rings {
    position: absolute;
    top: -64px;
    right: -64px;
    z-index: -1;
    width: 250px;
    height: 250px;
}

.hp-map__rings i {
    position: absolute;
    inset: 0;
    border: 1px solid rgba(255, 96, 82, 0.3);
    border-radius: 50%;
}

.hp-map__rings i:nth-child(2) { inset: 42px; border-color: rgba(255, 96, 82, 0.42); }
.hp-map__rings i:nth-child(3) { inset: 84px; border-color: rgba(255, 96, 82, 0.58); }

.hp-map__rings::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 10px;
    margin: -5px 0 0 -5px;
    border-radius: 50%;
    background: #ff4d40;
    box-shadow: 0 0 18px 4px rgba(255, 77, 64, 0.6);
}

.hp-map__label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #ff8a7e;
    font: 700 11px/1 var(--hp-sans);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.hp-map__title {
    margin-top: auto;
    color: #fff;
    font: 700 27px/1.1 var(--hp-serif);
    letter-spacing: -0.02em;
}

.hp-map__text {
    color: #a9b3c5;
    font-size: 14px;
    line-height: 1.5;
}

.hp-map__stat {
    color: #d3d9e5;
    font-size: 13px;
}

.hp-map__stat b {
    margin-right: 3px;
    color: #fff;
    font: 700 20px/1 var(--hp-serif);
}

.hp-map__go {
    display: inline-flex;
    align-items: center;
    margin-top: 8px;
    padding: 12px 16px;
    background: #fff;
    color: #0a111d;
    font: 700 12px/1 var(--hp-sans);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    transition: background 160ms ease;
}

.hp-map:hover .hp-map__go {
    background: #ffe4e0;
}

/* ---------------- ПОЛОСЫ НА ВСЮ ШИРИНУ ---------------- */

.hp-band {
    margin-bottom: 60px;
    padding-block: 44px 52px;
}

.hp-band .hp-head {
    padding-top: 16px;
}

/* Аналитика — тёмная, в одном ряду с шапкой раздела (css/analysis-hub.css) */
.hp-band--analysis {
    --img-backdrop: #f3f2ef;
    /* пометки «Анализ / Прогноз / Мнение автора» (css/pf-analytics.css) — светлые на тёмном */
    --pfa-accent: #c9d1ff;
    --pfa-forecast: #f4c35a;
    --pfa-opinion: #d3d9e6;

    background:
        radial-gradient(ellipse 55% 85% at 92% -20%, rgba(130, 140, 255, 0.16), transparent 62%),
        radial-gradient(ellipse 70% 90% at 4% 120%, rgba(40, 110, 200, 0.14), transparent 66%),
        #080c16;
    color: #eef1fa;
}

.hp-band--analysis .hp-head {
    border-top-color: #fff;
}

.hp-band--analysis .hp-head__title,
.hp-band--analysis .hp-head__link,
.hp-band--analysis .hp-card__title {
    color: #fff;
}

.hp-band--analysis .hp-head__title a:hover,
.hp-band--analysis .hp-head__link:hover {
    color: #c9d1ff;
}

.hp-band--analysis .hp-head__sub,
.hp-band--analysis .hp-card__desc {
    color: #a6b0c8;
}

.hp-band--analysis .hp-kicker {
    color: #9daaff;
}

.hp-band--analysis .hp-date {
    color: #74809c;
}

.hp-band--analysis .hp-media {
    background: #131a2b;
}

.hp-band--analysis .hp-card--row {
    border-top-color: rgba(160, 175, 255, 0.16);
}

.hp-band--analysis .hp-card:hover .hp-card__title {
    text-decoration-color: #9daaff;
}

/* Два разбора — карточки в строку: картинка слева, текст справа */
.hp-band--analysis .hp-split[data-count="2"] .hp-card--feature {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

.hp-band--analysis .hp-split[data-count="2"] .hp-media {
    margin-bottom: 0;
    aspect-ratio: 4 / 3;
}

.hp-band__note {
    margin: 30px 0 0;
    padding-top: 16px;
    border-top: 1px solid rgba(160, 175, 255, 0.16);
    color: #8792ad;
    font-size: 12.5px;
    line-height: 1.5;
}

body.page-home .hp-band__note a {
    color: #c9d1ff;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* ---------------- ЭКОНОМИКА ---------------- */

.hp-eco {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 40px;
    align-items: start;
}

.hp-eco--solo {
    grid-template-columns: minmax(0, 1fr);
}

.hp-eco__stories {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px;
    align-items: start;
}

.hp-eco__stories[data-count="1"] {
    grid-template-columns: minmax(0, 1fr);
}

.hp-eco__stories[data-count="3"] {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.hp-eco__stories[data-count="3"] .hp-card__title {
    font-size: 21px;
}

/* Табличка «Рынки» */
.hp-mk {
    padding: 20px 22px 22px;
    background: var(--hp-paper);
}

.hp-mk__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--hp-ink);
}

.hp-mk__title {
    margin: 0;
    color: var(--hp-ink);
    font: 800 12px/1 var(--hp-sans);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.hp-mk__time {
    color: var(--hp-faint);
    font-size: 11.5px;
}

.hp-mk__rows .hp-skeleton {
    margin: 18px 0;
}

.hp-mk__row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto 62px;
    gap: 12px;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #e3e1da;
}

.hp-mk__name {
    color: var(--hp-ink);
    font: 600 14px/1.25 var(--hp-sans);
}

.hp-mk__name small {
    display: block;
    margin-top: 2px;
    color: var(--hp-faint);
    font-size: 11px;
    font-weight: 500;
}

.hp-mk__val {
    color: var(--hp-ink);
    font: 700 14px/1 var(--hp-sans);
    font-variant-numeric: tabular-nums;
}

.hp-mk__row .hp-chg {
    font-size: 12.5px;
    text-align: right;
}

.hp-mk__row:hover .hp-mk__name {
    color: var(--hp-accent-dark);
}

/* ---------------- ДРУГИЕ МАТЕРИАЛЫ ---------------- */

.hp-card--river {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr) 216px;
    gap: 28px;
    align-items: start;
    padding: 22px 0;
    border-bottom: 1px solid var(--hp-line);
}

.hp-card--river:first-child {
    padding-top: 0;
}

.hp-river__date {
    padding-top: 1px;
    color: var(--hp-muted);
    font: 600 13px/1.3 var(--hp-sans);
}

.hp-card--river .hp-media {
    aspect-ratio: 3 / 2;
}

.hp-card--river .hp-card__title {
    font-size: 23px;
    line-height: 1.17;
}

.hp-card--river .hp-card__desc {
    max-width: 70ch;
}

body.page-home .load-more {
    width: auto;
    margin-top: 30px;
    padding: 13px 30px;
    border-color: var(--hp-ink);
    color: var(--hp-ink);
    transition: background 160ms ease, color 160ms ease;
}

/* ---------------- ИСТОРИЯ ---------------- */

/* Тёплая бумага и бордовый — палитра раздела «История» (css/history.css) */
.hp-band--history {
    margin-bottom: 0;
    background: #f3eee4;
    color: #2a2320;
}

.hp-band--history .hp-head,
.hp-band--history .hp-hist__label {
    border-color: #2a2320;
}

.hp-band--history .hp-head__title,
.hp-band--history .hp-head__link,
.hp-band--history .hp-hist__label {
    color: #2a2320;
}

.hp-band--history .hp-head__sub {
    color: #6b5d52;
}

.hp-band--history .hp-head__title a:hover,
.hp-band--history .hp-head__link:hover {
    color: #7f1d1d;
}

.hp-hist {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 44px;
    align-items: start;
}

.hp-hist__projects {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.hp-proj {
    position: relative;
    isolation: isolate;
    display: block;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    background: #2a2320;
}

.hp-proj__img {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 600ms ease;
}

.hp-proj:hover .hp-proj__img {
    transform: scale(1.04);
}

.hp-proj::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, rgba(20, 14, 10, 0.08) 28%, rgba(20, 14, 10, 0.9) 100%);
}

.hp-proj__body {
    position: absolute;
    right: 18px;
    bottom: 18px;
    left: 18px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    color: #fff;
}

.hp-proj__label {
    color: #f0d5c0;
    font: 700 11px/1 var(--hp-sans);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.hp-proj__title {
    font: 700 24px/1.1 var(--hp-serif);
    letter-spacing: -0.015em;
}

.hp-proj__count {
    color: rgba(255, 255, 255, 0.76);
    font: 500 12px/1.2 var(--hp-sans);
}

.hp-hist__list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.hp-hist__item {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 14px;
    align-items: baseline;
    padding: 14px 0;
    border-bottom: 1px solid #e0d3c0;
}

.hp-hist__year {
    color: #7f1d1d;
    font: 700 21px/1.2 var(--hp-serif);
    font-variant-numeric: tabular-nums;
}

.hp-hist__title {
    display: block;
    color: #2a2320;
    font: 600 17px/1.26 var(--hp-serif);
    transition: color 160ms ease;
}

.hp-hist__item:hover .hp-hist__title {
    color: #7f1d1d;
}

.hp-hist__meta {
    display: block;
    margin-top: 4px;
    color: #6b5d52;
    font: 500 12px/1.3 var(--hp-sans);
}

.hp-hist__item.is-today .hp-hist__meta {
    color: #7f1d1d;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

/* ---------------- РЕКЛАМНЫЕ МЕСТА ---------------- */

body.page-home .ad-slot {
    margin: 0 auto 56px;
}

/* ---------------- ПОДВАЛ ---------------- */

body.page-home .hp-footer {
    margin-top: 0;
    padding: 48px 0 26px;
    border-top: 0;
    background: var(--hp-ink);
    color: #c5cad3;
    text-align: left;
}

.hp-footer__top {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
    gap: 40px;
    padding-bottom: 36px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.13);
}

.hp-footer .hp-footer__logo {
    color: #fff;
    font: 600 29px/1 "Playfair Display", Georgia, serif;
    letter-spacing: -0.01em;
}

body.page-home .hp-footer .hp-footer__about {
    max-width: 34ch;
    margin: 14px 0 20px;
    color: #9aa2ae;
    font-size: 14px;
    line-height: 1.55;
}

.hp-footer .hp-footer__tg {
    display: inline-flex;
    align-items: center;
    padding: 10px 15px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    font: 600 13px/1 var(--hp-sans);
    transition: background 160ms ease, color 160ms ease;
}

.hp-footer .hp-footer__tg:hover {
    background: #fff;
    color: var(--hp-ink);
}

.hp-footer__col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 11px;
}

body.page-home .hp-footer .hp-footer__col h3 {
    margin: 0 0 5px;
    color: #7d8693;
    font: 800 11px/1 var(--hp-sans);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.hp-footer .hp-footer__col a {
    color: #d9dde4;
    font-size: 14px;
    line-height: 1.3;
    transition: color 160ms ease;
}

.hp-footer .hp-footer__col a:hover {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.hp-footer__bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px 32px;
    padding-top: 22px;
}

body.page-home .hp-footer .footer-copy,
body.page-home .hp-footer .footer-legal {
    flex: 0 1 auto;
    width: auto;
    margin: 0;
    color: #7d8693 !important;
    font-size: 12px !important;
    line-height: 1.6;
    opacity: 1;
}

/* ---------------- ЗАГЛУШКИ НА ВРЕМЯ ЗАГРУЗКИ ---------------- */

.hp-skeleton {
    display: block;
    margin-bottom: 14px;
    border-radius: 2px;
    background: linear-gradient(90deg, #eef0f2 25%, #f7f8f9 37%, #eef0f2 63%);
    background-size: 400% 100%;
    animation: hp-shimmer 1.4s ease infinite;
    list-style: none;
}

.hp-skeleton--media { aspect-ratio: 16 / 9; }
.hp-skeleton--title { height: 36px; }
.hp-skeleton--line { height: 14px; }
.hp-skeleton--w70 { width: 70%; }
.hp-skeleton--w30 { width: 30%; }

@keyframes hp-shimmer {
    from { background-position: 100% 50%; }
    to { background-position: 0 50%; }
}

/* =====================================================
   ПЛАНШЕТ
   ===================================================== */
@media (max-width: 1120px) {
    /* Лента уходит под главные материалы и встаёт в две колонки */
    .hp-top {
        grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
        column-gap: 48px;
        row-gap: 36px;
    }

    .hp-top__side::before {
        left: -24px;
    }

    .hp-feed {
        grid-column: 1 / -1;
    }

    .hp-feed::before {
        display: none;
    }

    .hp-feed__list {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 48px;
    }

    /* Карта и «Рынки» встают под материалы раздела */
    .hp-svo,
    .hp-eco,
    .hp-hist {
        grid-template-columns: minmax(0, 1fr);
        gap: 32px;
    }

    /* Разборам в строку уже тесно: картинка встаёт над текстом */
    .hp-band--analysis .hp-split[data-count="2"] .hp-card--feature {
        display: block;
    }

    .hp-band--analysis .hp-split[data-count="2"] .hp-media {
        margin-bottom: 16px;
        aspect-ratio: 16 / 10;
    }

    .hp-map {
        min-height: 0;
        padding-right: 200px;
    }

    .hp-map__title {
        margin-top: 8px;
    }

    .hp-mk__rows {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 40px;
    }

    .hp-footer__top {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .hp-footer__brand {
        grid-column: 1 / -1;
    }
}

/* =====================================================
   ТЕЛЕФОН
   ===================================================== */
@media (max-width: 768px) {
    body.page-home {
        --hp-gutter: 16px;
    }

    .hp-topline__extra {
        display: none !important;
    }

    .hp-topline__inner {
        min-height: 30px;
    }

    .hp-topline {
        font-size: 11.5px;
    }

    .hp-ticker__all {
        display: none;
    }

    .hp-ticker__list {
        margin-right: calc(-1 * var(--hp-gutter));
    }

    .hp-tick {
        padding: 0 14px;
    }

    /* Первый экран — в одну колонку */
    .hp-top {
        display: block;
        padding-block: 18px 36px;
    }

    .hp-top__side::before {
        display: none;
    }

    .hp-card--lead .hp-media {
        margin-bottom: 14px;
    }

    .hp-card--lead .hp-card__title {
        font-size: clamp(26px, 7.4vw, 34px);
        line-height: 1.1;
    }

    .hp-card--lead .hp-card__desc {
        font-size: 15.5px;
    }

    .hp-top__side {
        margin-top: 22px;
        padding-top: 22px;
        border-top: 1px solid var(--hp-line);
    }

    .hp-card--side .hp-card__title {
        font-size: 20px;
    }

    .hp-feed {
        margin-top: 32px;
    }

    .hp-feed__list {
        display: block;
    }

    /* Блоки разделов */
    .hp-section {
        padding-bottom: 44px;
    }

    .hp-head {
        flex-wrap: wrap;
        gap: 6px 14px;
        margin-bottom: 18px;
    }

    .hp-head__title {
        font-size: 26px;
    }

    .hp-head__sub {
        order: 3;
        flex-basis: 100%;
        font-size: 13px;
    }

    .hp-split[data-count],
    .hp-eco__stories[data-count] {
        grid-template-columns: minmax(0, 1fr);
        gap: 26px;
    }

    .hp-split[data-count="1"] .hp-card--feature,
    .hp-eco__stories[data-count="1"] .hp-card--feature {
        display: block;
    }

    .hp-split[data-count="1"] .hp-media,
    .hp-eco__stories[data-count="1"] .hp-media {
        margin-bottom: 14px;
        aspect-ratio: 16 / 10;
    }

    .hp-card--feature .hp-card__title,
    .hp-split[data-count="1"] .hp-card__title {
        font-size: 22px;
    }

    .hp-card--row {
        grid-template-columns: minmax(0, 1fr) 104px;
        gap: 14px;
    }

    .hp-card--row .hp-card__title {
        font-size: 17px;
    }

    .hp-map {
        min-height: 0;
        padding: 22px 20px 24px;
    }

    .hp-map__title {
        max-width: 11em;
        font-size: 24px;
    }

    .hp-band {
        margin-bottom: 44px;
        padding-block: 32px 38px;
    }

    .hp-band--history {
        margin-bottom: 0;
    }

    .hp-mk {
        padding: 18px 16px 20px;
    }

    .hp-mk__rows {
        display: block;
    }

    /* Остальные материалы: дата над заголовком, картинка справа */
    .hp-card--river {
        grid-template-columns: minmax(0, 1fr) 104px;
        gap: 6px 14px;
        padding: 18px 0;
    }

    .hp-river__date {
        grid-column: 1 / -1;
        font-size: 12px;
    }

    .hp-card--river .hp-media {
        aspect-ratio: 4 / 3;
    }

    .hp-card--river .hp-card__title {
        font-size: 18px;
        line-height: 1.22;
    }

    .hp-card--river .hp-card__desc {
        display: none;
    }

    body.page-home .load-more {
        width: 100%;
    }

    /* Спецпроекты листаются вбок */
    .hp-hist__projects {
        display: flex;
        gap: 12px;
        margin-inline: calc(-1 * var(--hp-gutter));
        padding-inline: var(--hp-gutter);
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
    }

    .hp-hist__projects::-webkit-scrollbar {
        display: none;
    }

    .hp-proj {
        flex: 0 0 62%;
        scroll-snap-align: center;
    }

    body.page-home .ad-slot {
        margin-bottom: 40px;
    }

    /* Подвал */
    body.page-home .hp-footer {
        padding: 36px 0 22px;
    }

    .hp-footer__top {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 30px 20px;
        padding-bottom: 28px;
    }

    .hp-footer__bottom {
        flex-direction: column;
        gap: 8px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hp-skeleton {
        animation: none;
    }

    .hp-card:hover .hp-img,
    .hp-proj:hover .hp-proj__img {
        transform: none;
    }
}
