/* ====================================================
   QARAMEDIA — HOME PAGE (white bg, refined)
   site/home.css
   ==================================================== */

/* ---- Бейджи категорий ---- */
.badge {
    display: inline-block;
    font-family: var(--font-head);
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--red);
    margin-bottom: 7px;
}
.badge-onmedia {
    color: #fff;
    background: var(--red);
    padding: 4px 9px;
    border-radius: 4px;
    margin-bottom: 12px;
}

/* ---- Заголовки секций (IBM Plex, крупнее) ---- */
.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
}
.section-title {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 27px;
    color: var(--ink);
    margin: 0;
    letter-spacing: -0.02em;
    padding-left: 15px;
    position: relative;
}
.section-title::before {
    content: '';
    position: absolute;
    left: 0; top: 4px; bottom: 4px;
    width: 4px;
    border-radius: 3px;
    background: var(--red);
}
.section-more {
    font-family: var(--font-head);
    font-size: 13px;
    font-weight: 500;
    color: var(--muted);
    transition: color .15s ease;
    white-space: nowrap;
}
.section-more:hover { color: var(--red); }

/* ============================================================
   ВЕРХНИЙ БЛОК
   ============================================================ */
.home-top {
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    gap: 22px;
    margin-bottom: 56px;
    padding: 8px 0 0 0;
}

/* HERO */
.hero-card {
    display: block;
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    background: var(--ink);
}
.hero-media {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 470px;
}
.hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .7s cubic-bezier(.2,.6,.2,1);
}
.hero-card:hover .hero-media img { transform: scale(1.04); }
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(16,15,15,.92) 0%, rgba(16,15,15,.45) 40%, rgba(16,15,15,.05) 74%);
}

/* теги сверху-слева */
.hero-tags-top {
    position: absolute;
    top: 20px; left: 22px; right: 22px;
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}
.hero-tag {
    font-family: var(--font-head);
    font-size: 11.5px;
    font-weight: 500;
    color: #fff;
    background: rgba(255,255,255,.16);
    backdrop-filter: blur(4px);
    padding: 4px 10px;
    border-radius: 20px;
}

.hero-content {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    padding: 32px 34px;
}
.hero-title {
    font-family: var(--font-head);
    font-weight: 700;
    color: #fff;
    margin: 0;
    letter-spacing: -0.02em;
    text-shadow: 0 1px 16px rgba(0,0,0,.35);
}
.hero-title-lg { font-size: 34px; line-height: 1.14; }
.hero-title-md { font-size: 28px; line-height: 1.18; }
.hero-title-sm { font-size: 23px; line-height: 1.24; }

/* дата под title + signature справа */
.hero-foot {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 14px;
    margin-top: 14px;
}
.hero-date {
    font-family: var(--font-head);
    font-size: 13px;
    font-weight: 500;
    color: rgba(255,255,255,.78);
}
.hero-sign {
    font-family: var(--font-body);
    font-style: italic;
    font-size: 11.5px;
    color: rgba(255,255,255,.6);
    text-align: right;
}

/* ПРАВАЯ СЕТКА 2×3 — фото 4/3, разделение */
.home-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 1fr;
    gap: 22px 18px;
}
.grid-card {
    display: flex;
    flex-direction: column;
}
.grid-media {
    aspect-ratio: 16/10;
    background: var(--warm-2);
    overflow: hidden;
    border-radius: var(--radius);
}
.grid-media img {
    width: 100%; height: 100%;
    object-fit: cover; display: block;
    transition: transform .5s ease;
}
.grid-card:hover .grid-media img { transform: scale(1.05); }
.grid-body {
    padding: 12px 2px 0;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.grid-title {
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 15px;
    line-height: 1.36;
    color: var(--ink);
    margin: 0 0 8px;
    transition: color .15s ease;
}
.grid-card:hover .grid-title { color: var(--red); }
.grid-date {
    font-family: var(--font-head);
    font-size: 12px;
    color: var(--muted);
    margin-top: auto;
    padding-top: 8px;
    border-top: 1px solid var(--warm-2);
}

/* ============================================================
   СРЕДНИЙ БЛОК — больше воздуха, разделитель между колонками
   ============================================================ */
.home-mid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 36px;
    margin-bottom: 56px;
    padding-top: 16px;
}
/* вертикальный разделитель между лентой и спецпроектами */
.mid-features {
    align-self: stretch;
    padding-left: 36px;
    border-left: 1px solid var(--border);
    /* margin-left: -28px; */
}

/* ЛЕНТА «ГЛАВНЫЕ НОВОСТИ» */
.feed-list { display: flex; flex-direction: column; }
.feed-item {
    display: block;
    padding: 24px 0;
    border-bottom: 1px solid var(--border);
}
.feed-item:first-child { padding-top: 2px; }
.feed-item:last-child { border-bottom: none; }
.feed-title {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 21px;
    line-height: 1.28;
    color: var(--ink);
    margin: 0 0 8px;
    transition: color .15s ease;
    letter-spacing: -0.015em;
}
.feed-item:hover .feed-title { color: var(--red); }
.feed-excerpt {
    font-family: var(--font-body);
    font-size: 15.5px;
    line-height: 1.62;
    color: var(--secondary);
    margin: 0 0 12px;
}
.feed-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
}
.feed-date {
    font-family: var(--font-head);
    font-size: 12.5px;
    color: var(--muted);
    white-space: nowrap;
}
/* теги: красный текст, без фона */
.feed-tags { display: inline-flex; flex-wrap: wrap; gap: 12px; }
.feed-tag {
    font-family: var(--font-head);
    font-size: 12.5px;
    font-weight: 600;
    color: var(--red);
    transition: opacity .15s ease;
}
.feed-tag:hover { opacity: .65; }
.feed-empty { padding: 24px 0; color: var(--muted); font-size: 14px; }

/* СПЕЦПРОЕКТЫ */
.features-list { display: flex; flex-direction: column; gap: 20px; }
.feature-card {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0 0 18px 0;
    border-bottom: 1px solid var(--border);
}
.feature-card:first-child { padding-top: 2px; }
.feature-card:last-child { border-bottom: none; }
.feature-media {
    width: 100%;
    aspect-ratio: 16/11;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--warm-2);
    flex-shrink: 0;
}
.feature-media img {
    width: 100%; height: 100%;
    object-fit: cover; display: block;
    transition: transform .5s ease;
}
.feature-card:hover .feature-media img { transform: scale(1.06); }
.feature-noimg { width: 100%; height: 100%; background: var(--warm-2); }
.feature-body {
    padding: 10px 2px 0;
    display: flex;
    flex-direction: column;
}
.feature-title {
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 15px;
    line-height: 1.34;
    color: var(--ink);
    margin: 0 0 7px;
    transition: color .15s ease;
}
.feature-card:hover .feature-title { color: var(--red); }
.feature-date {
    font-family: var(--font-head);
    font-size: 12px;
    color: var(--muted);
}

/* ============================================================
   АДАПТИВ
   ============================================================ */
@media (max-width: 1080px) {
    .home-top { grid-template-columns: 1fr; gap: 20px; }
    .hero-media { min-height: 400px; }
    .home-grid { grid-template-columns: repeat(3, 1fr); }
    .home-mid { grid-template-columns: 1fr; gap: 44px; }
    /* на узких экранах вертикальный разделитель → горизонтальный сверху */
    .mid-features {
        padding-left: 0;
        border-left: none;
        margin-left: 0;
        border-top: 1px solid var(--border);
        padding-top: 36px;
    }
}

@media (max-width: 767px) {
    .home-top { margin-bottom: 40px; }
    .hero-title-lg { font-size: 24px; }
    .hero-title-md { font-size: 22px; }
    .hero-title-sm { font-size: 20px; }
    .hero-media { min-height: 450px; }
    .hero-content { padding: 22px; }

    .home-grid { grid-template-columns: repeat(2, 1fr); gap: 18px 14px; }

    .section-title { font-size: 22px; }
    .feed-title { font-size: 18px; }
    .feed-excerpt { font-size: 14.5px; }
}

@media (max-width: 440px) {
    .home-grid { grid-template-columns: 1fr 1fr; }
    .grid-title { font-size: 13.5px; }
}
/* public/assets/site/css/home.css */