/* ── HOME PAGE ───────────────────────────────────────────── */
.home-page { min-height: 100vh; }

.home-wrap {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 28px 80px;
}

/* ── HERO ────────────────────────────────────────────────── */
.home-hero {
    padding: 72px 0 56px;
    text-align: center;
    max-width: 680px;
    margin: 0 auto;
}
.hero-eyebrow { color: var(--blurple-2); }
.hero-title {
    font-size: 42px;
    font-weight: 800;
    letter-spacing: -.03em;
    line-height: 1.06;
    margin: 14px 0 12px;
}
.hero-sub {
    color: var(--fg-2);
    font-size: 15.5px;
    line-height: 1.55;
    margin: 0 auto 28px;
    max-width: 54ch;
}
.hero-sub b { color: var(--fg); font-weight: 600; }

/* ── HERO SEARCH ─────────────────────────────────────────── */
.hero-search {
    position: relative;
    max-width: 560px;
    margin: 0 auto;
}
.hero-search__inner {
    display: flex;
    align-items: center;
    gap: 11px;
    height: 54px;
    padding: 0 18px;
    background: var(--bg-2);
    border: 1px solid var(--line-strong);
    border-radius: 14px;
    transition: border-color .15s;
}
.hero-search__inner:focus-within { border-color: var(--blurple); }
.hero-search__icon { color: var(--fg-3); flex-shrink: 0; }
.hero-search__input {
    flex: 1;
    background: none;
    border: 0;
    outline: 0;
    color: var(--fg);
    font-family: var(--font-ui);
    font-size: 15.5px;
    min-width: 0;
}
.hero-search__input::placeholder { color: var(--fg-3); }
.hero-search__kbd {
    font-family: var(--font-mono);
    font-size: 10.5px;
    color: var(--fg-3);
    border: 1px solid var(--line-strong);
    border-radius: 5px;
    padding: 3px 6px;
    flex-shrink: 0;
}

/* Search suggestions */
.hero-search__sugg {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: var(--surface);
    border: 1px solid var(--line-strong);
    border-radius: 12px;
    overflow: hidden;
    z-index: 30;
    box-shadow: 0 16px 40px -12px rgba(0,0,0,.55);
    text-align: left;
}
.hs-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    cursor: pointer;
    transition: background .12s;
    color: var(--fg);
    text-decoration: none;
}
.hs-row:hover { background: var(--surface-2); }
.hs-row img { width: 46px; height: 28px; object-fit: cover; border-radius: 5px; flex-shrink: 0; }
.hs-name { font-size: 14px; font-weight: 600; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hs-price { font-family: var(--font-mono); font-size: 13px; font-weight: 700; white-space: nowrap; }

/* Quick chips */
.hero-quick {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
    flex-wrap: wrap;
}
.hero-quick__label { color: var(--fg-3); font-size: 12.5px; align-self: center; }
.hero-quick__chip {
    font-size: 12.5px;
    color: var(--fg-2);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 5px 12px;
    font-weight: 500;
    white-space: nowrap;
    transition: border-color .14s, color .14s, background .14s;
}
.hero-quick__chip:hover { color: var(--fg); border-color: var(--line-strong); background: var(--surface-2); }

/* ── SECTIONS ────────────────────────────────────────────── */
.home-section { margin-top: 46px; }
.home-section--narrow { max-width: none; }

.home-section__hdr {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-bottom: 16px;
}
.home-section__icon {
    width: 26px;
    height: 26px;
    border-radius: 7px;
    background: var(--surface-2);
    display: grid;
    place-items: center;
    color: var(--fg-2);
    flex-shrink: 0;
}
.home-section__hdr h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -.01em;
    white-space: nowrap;
}
.home-section__more {
    margin-left: auto;
    font-size: 13px;
    color: var(--fg-3);
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}
.home-section__more:hover { color: var(--fg); }

/* ── GAME GRID ───────────────────────────────────────────── */
.hgame-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}
.hgame-grid--cards { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 1080px) { .hgame-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px)  { .hgame-grid { grid-template-columns: repeat(2, 1fr); } }

/* ── GAME CARD (gcard) — одинаковые классы с каталогом ───── */
.gcard {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    overflow: hidden;
    display: block;
    text-decoration: none;
    color: var(--fg);
    transition: transform .15s, border-color .15s;
}
.gcard:hover { transform: translateY(-3px); border-color: var(--line-strong); }

.gcard .cov {
    position: relative;
    aspect-ratio: 460/215;
    background: var(--surface-2);
    overflow: hidden;
}
.gcard .cov img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gcard .cov .dbadge {
    position: absolute;
    top: 8px; right: 8px;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    color: var(--fg);
    background: rgba(30,31,34,.85);
    backdrop-filter: blur(4px);
    border-radius: 6px;
    padding: 3px 7px;
    white-space: nowrap;
}
.gcard .cov .lowbadge {
    position: absolute;
    bottom: 8px; right: 8px;
    display: block;
    line-height: 0;
}

/* ── GIFT CARD (hgame-card) ────────────────────────────── */
.hgame-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    overflow: hidden;
    display: block;
    text-decoration: none;
    color: var(--fg);
    transition: transform .15s, border-color .15s;
}
.hgame-card:hover { transform: translateY(-3px); border-color: var(--line-strong); }
.hgame-card__cover--card {
    aspect-ratio: 3/2;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface-2);
    position: relative;
    overflow: hidden;
}
.hgame-card__cover--card svg { width: 56px; height: 56px; opacity: .9; }
.hgame-card__cover-abbr {
    font-family: var(--font-mono);
    font-size: 20px;
    font-weight: 700;
    color: var(--fg-2);
}
.hgame-card__disc {
    position: absolute;
    top: 8px; right: 8px;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    color: var(--fg);
    background: rgba(30,31,34,.85);
    backdrop-filter: blur(4px);
    border-radius: 6px;
    padding: 3px 7px;
    white-space: nowrap;
}

/* ── CARD BODY (общее для gcard и hgame-card) ─────────── */
.gi-body { padding: 10px 12px 12px; }
.gcard .gn, .hgame-card .gn {
    font-size: 13.5px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 4px;
}
.gcard .gg {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 8px;
}
.gcard .gg-genre {
    font-size: 11px;
    color: var(--fg-3);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.gcard .gg-plats { display: flex; gap: 5px; flex-wrap: wrap; }
.gcard .plat {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-family: var(--font-mono);
    font-size: 9.5px;
    font-weight: 600;
    color: var(--fg-2);
    background: var(--neutral-bg);
    border-radius: 5px;
    padding: 2px 6px 2px 5px;
    white-space: nowrap;
}
.gcard .plat svg { width: 12px; height: 12px; display: block; flex-shrink: 0; }
.gcard .gp, .hgame-card .gp {
    display: flex;
    align-items: baseline;
    gap: 6px;
    flex-wrap: nowrap;
}
.gcard .gp .from, .hgame-card .gp .from { font-size: 10px; color: var(--fg-3); font-family: var(--font-mono); text-transform: uppercase; flex-shrink: 0; }
.gcard .gp .now, .hgame-card .gp .now { font-family: var(--font-mono); font-weight: 700; font-size: 15px; white-space: nowrap; flex-shrink: 0; }
.gcard .gp .old, .hgame-card .gp .old { font-family: var(--font-mono); font-size: 11.5px; color: var(--fg-3); text-decoration: line-through; white-space: nowrap; }
.gcard .gp .disc, .hgame-card .gp .disc { font-family: var(--font-mono); font-size: 10.5px; font-weight: 600; color: var(--fg-2); background: var(--neutral-bg); border-radius: 5px; padding: 1px 5px; white-space: nowrap; flex-shrink: 0; margin-left: auto; }

/* ── BLOG GRID ───────────────────────────────────────────── */
.hblog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}
@media (max-width: 860px) { .hblog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .hblog-grid { grid-template-columns: 1fr; } }

.hblog-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    overflow: hidden;
    display: block;
    text-decoration: none;
    color: var(--fg);
    transition: transform .15s, border-color .15s;
}
.hblog-card:hover { transform: translateY(-3px); border-color: var(--line-strong); }
.hblog-card__img { width: 100%; aspect-ratio: 16/8.4; object-fit: cover; display: block; }
.hblog-card__body { padding: 13px 15px 15px; }
.hblog-card__meta { margin-bottom: 7px; }
.hblog-card__cat {
    color: var(--blurple-2);
    font-size: 12px;
    font-weight: 600;
}
.hblog-card__title {
    font-size: 14.5px;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 7px;
}
.hblog-card__exc {
    color: var(--fg-2);
    font-size: 12.5px;
    line-height: 1.55;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 640px) {
    .home-wrap { padding: 0 16px 60px; }
    .home-hero { padding: 48px 0 36px; }
    .hero-title { font-size: 28px; }
    .hero-sub { font-size: 14px; }
    .hero-search__input { font-size: 14px; }
    .home-section__hdr h2 { font-size: 16px; }
}
