﻿/*
 * РџРѕСЂС‚Р°Р»: РѕР±С‰Р°СЏ СЃС‚СЂСѓРєС‚СѓСЂР° РіР»Р°РІРЅРѕР№ СЃС‚СЂР°РЅРёС†С‹.
 *
 * Р Р°Р·РјРµС‚РєР° РѕРґРЅР° РґР»СЏ РІСЃРµС… РґРёР·Р°Р№РЅРѕРІ (templates/_designs/_shared/home.php),
 * Р·РґРµСЃСЊ Р·Р°РґР°РЅС‹ СЃРµС‚РєРё, РєР°СЂС‚РѕС‡РєРё Рё СЃРѕСЃС‚РѕСЏРЅРёСЏ. Р”РёР·Р°Р№РЅ РїРµСЂРµРѕРїСЂРµРґРµР»СЏРµС‚ С‚РѕР»СЊРєРѕ
 * РїР°Р»РёС‚СЂСѓ, СЂР°РґРёСѓСЃС‹, С€СЂРёС„С‚ Рё РїР°СЂСѓ Р°РєС†РµРЅС‚РѕРІ РІ СЃРІРѕС‘Рј С„Р°Р№Р»Рµ.
 */

/* ---------- 1. Р’РµСЂС…РЅРёР№ Р±Р»РѕРє ---------- */
.hp-top {
    display: grid;
    grid-template-columns: minmax(0, 1.62fr) minmax(298px, 1fr);
    gap: 18px;
    margin-bottom: 20px;
}

.hp-hero,
.hp-wx,
.hp-panel,
.hp-service,
.hp-news-card,
.hp-card,
.hp-mini,
.hp-mail {
    background: var(--d-surface);
    border: 1px solid var(--d-line);
    border-radius: var(--d-radius);
}

.hp-hero {
    position: relative;
    overflow: hidden;
    padding: 32px;
    box-shadow: var(--d-shadow-m);
}
.hp-hero::after {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 3px;
    background: linear-gradient(90deg, var(--d-accent), transparent 72%);
    opacity: .9;
}

.hp-eyebrow {
    margin: 0 0 11px;
    font-size: 11.5px;
    letter-spacing: .13em;
    text-transform: uppercase;
    font-weight: 800;
    color: var(--d-accent);
}

.hp-hero h1 {
    margin: 0 0 12px;
    font-size: clamp(26px, 3.2vw, 40px);
    line-height: 1.09;
    letter-spacing: -0.033em;
    font-weight: 800;
    max-width: 22ch;
    color: var(--d-text);
}

.hp-hero-lead {
    margin: 0 0 22px;
    font-size: 15.5px;
    line-height: 1.55;
    color: var(--d-muted);
    max-width: 56ch;
}

.hp-search {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    padding: 6px 6px 6px 18px;
    background: var(--d-surface);
    border: 1px solid var(--d-line);
    border-radius: 999px;
    box-shadow: var(--d-shadow-s);
    transition: border-color .15s, box-shadow .15s;
}
.hp-search:focus-within {
    border-color: var(--d-accent);
    box-shadow: 0 0 0 4px var(--d-accent-soft);
}
.hp-search input[type="search"] {
    flex: 1 1 230px;
    min-width: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    font-size: 15px;
    padding: 9px 2px;
    outline: none;
}
.hp-search select {
    border: 0;
    border-left: 1px solid var(--d-line);
    background: transparent;
    color: var(--d-muted);
    font: inherit;
    font-size: 13.5px;
    padding: 4px 8px 4px 13px;
    border-radius: 0;
    cursor: pointer;
    max-width: 42%;
}
.hp-search > button {
    border: 0;
    border-radius: 999px;
    padding: 11px 24px;
    background: var(--d-accent);
    color: var(--d-accent-ink);
    font: inherit;
    font-size: 14.5px;
    font-weight: 700;
    cursor: pointer;
    transition: filter .15s, transform .1s;
}
.hp-search > button:hover { filter: brightness(1.07); }
.hp-search > button:active { transform: scale(.985); }

.hp-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
    margin-top: 15px;
    font-size: 13px;
    color: var(--d-muted);
}
.hp-tags a {
    padding: 5px 12px;
    border-radius: 999px;
    background: var(--d-accent-soft);
    color: var(--d-accent);
    text-decoration: none;
    font-weight: 600;
    transition: background .15s, color .15s;
}
.hp-tags a:hover { background: var(--d-accent); color: var(--d-accent-ink); }

/* РџРѕРіРѕРґР° */
.hp-wx {
    display: flex;
    flex-direction: column;
    gap: 13px;
    padding: 24px;
    box-shadow: var(--d-shadow-s);
}
.hp-wx-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 8px;
    font-size: 13.5px;
    font-weight: 600;
}
.hp-wx-head a {
    color: var(--d-accent);
    text-decoration: none;
    font-size: 13px;
    white-space: nowrap;
}
.hp-wx-head a:hover { color: var(--d-accent); }
.hp-wx-now { display: flex; align-items: center; gap: 12px; }
.hp-wx-icon { font-size: 40px; line-height: 1; }
.hp-wx-now strong {
    font-size: 44px;
    font-weight: 800;
    letter-spacing: -0.05em;
    line-height: .95;
    color: var(--d-text);
}
.hp-wx-desc { display: flex; flex-direction: column; font-size: 14px; line-height: 1.35; }
.hp-wx-desc small { color: var(--d-muted); font-size: 12.5px; }

.hp-wx-days {
    list-style: none;
    margin: 0;
    padding: 13px 0 0;
    border-top: 1px solid var(--d-line);
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
}
.hp-wx-days li {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 9px 4px;
    border-radius: var(--d-radius-s);
    background: var(--d-surface-2);
    font-size: 12px;
    color: var(--d-muted);
    transition: background .15s;
}
.hp-wx-days li:hover { background: var(--d-accent-soft); }
.hp-wx-days b { color: var(--d-text); font-size: 14px; font-weight: 700; }
.hp-wx-days b small { color: var(--d-muted); font-weight: 500; margin-left: 4px; font-size: 12px; }
.hp-wx-facts {
    list-style: none;
    margin: auto 0 0;
    padding: 11px 0 0;
    border-top: 1px solid var(--d-line);
    display: flex;
    flex-wrap: wrap;
    gap: 13px;
    font-size: 12.5px;
    color: var(--d-muted);
}

/* РЎСЃС‹Р»РєРё Р±РµР· РїРѕРґС‡С‘СЂРєРёРІР°РЅРёСЏ */
.d-main a { text-decoration: none; }

/* ---------- 2. РЎРµСЂРІРёСЃС‹: СЃС‚СЂРѕРіР°СЏ СЃРµС‚РєР° Р±РµР· СѓРєСЂР°С€РµРЅРёР№ ---------- */
.hp-services {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0;
    margin-bottom: 22px;
    border: 1px solid var(--d-line);
    border-radius: var(--d-radius);
    overflow: hidden;
    background: var(--d-surface);
}
.hp-service {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 18px;
    text-decoration: none;
    border-left: 1px solid var(--d-line);
    background: transparent;
    box-shadow: none;
    transition: background .16s, color .16s;
}
.hp-service:first-child { border-left: 0; }
.hp-service::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background: var(--d-accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .22s var(--d-ease);
}
.hp-service:hover {
    background: var(--d-surface-2);
    transform: none;
    box-shadow: none;
    border-color: var(--d-line);
}
.hp-service:hover::after { transform: scaleX(1); }
.hp-service-icon {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    color: var(--d-muted);
    font-size: 22px;
    transition: color .16s;
}
.hp-service:hover .hp-service-icon { color: var(--d-accent); }
.hp-service-icon svg { width: 1em; height: 1em; display: block; }
.hp-service-text {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}
.hp-service-title {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: -0.005em;
    color: var(--d-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.hp-service-meta {
    font-size: 11.5px;
    color: var(--d-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ---------- Р—Р°РіРѕР»РѕРІРєРё СЃРµРєС†РёР№ ---------- */
.hp-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}
.hp-head h2 {
    margin: 0;
    font-size: clamp(18px, 2.1vw, 22px);
    font-weight: 800;
    letter-spacing: -0.022em;
    color: var(--d-text);
}
.hp-head a {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--d-accent);
    text-decoration: none;
    white-space: nowrap;
}
.hp-head a:hover { filter: brightness(.82); }

.hp-muted { color: var(--d-muted); font-size: 14px; }
.hp-meta { font-size: 12.5px; color: var(--d-muted); }
.hp-chip {
    display: inline-flex;
    align-self: flex-start;
    padding: 3px 10px;
    border-radius: 999px;
    background: var(--d-accent-soft);
    color: var(--d-accent);
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .01em;
}

/* Р—Р°РіР»СѓС€РєР° РІРјРµСЃС‚Рѕ С„РѕС‚Рѕ */
.hp-ph {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    height: 100%;
    background: linear-gradient(150deg, var(--d-surface-2), var(--d-accent-soft));
    color: var(--d-accent);
}
.hp-ph b { font-size: 30px; font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.hp-ph span { font-size: 11.5px; font-weight: 600; color: var(--d-muted); }
.hp-ph-news b { font-size: 40px; }

/* ---------- 3. РќРѕРІРѕСЃС‚Рё ---------- */
.hp-news { margin-bottom: 20px; }

.hp-news-lead {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: 0;
    overflow: hidden;
    text-decoration: none;
    background: var(--d-surface);
    border: 1px solid var(--d-line);
    border-radius: var(--d-radius);
    box-shadow: var(--d-shadow-s);
    margin-bottom: 14px;
    transition: border-color .18s, box-shadow .18s;
}
.hp-news-lead:hover { border-color: var(--d-accent); box-shadow: var(--d-shadow-m); }
.hp-news-lead-img {
    display: block;
    min-height: 300px;
    overflow: hidden;
    background: var(--d-surface-2);
}
.hp-news-lead-img img {
    width: 100%;
    height: 100%;
    min-height: 300px;
    object-fit: cover;
    transition: transform .4s var(--d-ease);
}
.hp-news-lead:hover .hp-news-lead-img img { transform: scale(1.03); }

.hp-news-lead-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    justify-content: center;
    padding: 28px 30px;
}
.hp-news-lead-body strong {
    font-size: clamp(20px, 2.4vw, 27px);
    line-height: 1.16;
    letter-spacing: -0.028em;
    font-weight: 800;
    color: var(--d-text);
    transition: color .15s;
}
.hp-news-lead:hover .hp-news-lead-body strong { color: var(--d-accent); }
.hp-news-lead-text {
    font-size: 14.5px;
    line-height: 1.6;
    color: var(--d-muted);
}

.hp-news-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}
.hp-news-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px;
    text-decoration: none;
    box-shadow: var(--d-shadow-s);
    transition: transform .18s var(--d-ease), border-color .18s, box-shadow .18s;
}
.hp-news-card:hover {
    transform: translateY(-3px);
    border-color: var(--d-accent);
    box-shadow: var(--d-shadow-m);
}
.hp-news-card-img {
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: var(--d-radius-s);
    background: var(--d-surface-2);
}
.hp-news-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s var(--d-ease);
}
.hp-news-card:hover .hp-news-card-img img { transform: scale(1.04); }
.hp-news-card strong {
    font-size: 14.5px;
    line-height: 1.36;
    font-weight: 700;
    color: var(--d-text);
}
.hp-news-card:hover strong { color: var(--d-accent); }

/* ---------- 4. РћР±СЉСЏРІР»РµРЅРёСЏ ---------- */
.hp-listings { margin-bottom: 20px; }
.hp-cards {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}
.hp-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 11px;
    text-decoration: none;
    box-shadow: var(--d-shadow-s);
    transition: transform .18s var(--d-ease), border-color .18s, box-shadow .18s;
}
.hp-card:hover {
    transform: translateY(-3px);
    border-color: var(--d-accent);
    box-shadow: var(--d-shadow-m);
}
.hp-card-img {
    position: relative;
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: var(--d-radius-s);
    background: var(--d-surface-2);
}
.hp-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s var(--d-ease);
}
.hp-card:hover .hp-card-img img { transform: scale(1.05); }
.hp-card-cat {
    position: absolute;
    left: 8px;
    top: 8px;
    padding: 3px 9px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .94);
    color: #101418;
    font-size: 11px;
    font-weight: 700;
    backdrop-filter: blur(6px);
}
.hp-card-price {
    font-size: 16px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--d-text);
}
.hp-card-title {
    font-size: 14px;
    line-height: 1.36;
    font-weight: 600;
    color: var(--d-text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.hp-card:hover .hp-card-title { color: var(--d-accent); }

/* ---------- 5. РџРѕС‡С‚Р° ---------- */
.hp-mail {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: 30px;
    padding: 32px;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--d-shadow-m);
    background:
        radial-gradient(620px 280px at 100% 0%, var(--d-accent-soft), transparent 72%),
        var(--d-surface);
}
.hp-mail-main { position: relative; min-width: 0; }
.hp-mail h2 {
    margin: 0 0 12px;
    font-size: clamp(21px, 2.5vw, 28px);
    line-height: 1.16;
    letter-spacing: -0.028em;
    font-weight: 800;
    color: var(--d-text);
}
.hp-mail-domain { color: var(--d-accent); white-space: nowrap; }
.hp-mail-lead {
    margin: 0 0 18px;
    font-size: 15px;
    line-height: 1.6;
    color: var(--d-muted);
    max-width: 52ch;
}
.hp-mail-own {
    margin: 0 0 14px;
    display: inline-block;
    padding: 11px 16px;
    border-radius: var(--d-radius-s);
    background: var(--d-accent-soft);
    color: var(--d-accent);
    font-weight: 800;
    font-size: 15.5px;
    word-break: break-all;
}
.hp-mail-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.hp-mail-hint { font-size: 12.5px; color: var(--d-muted); }

.hp-mail-pick {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}
.hp-mail-pick input {
    flex: 1 1 150px;
    min-width: 0;
    padding: 11px 15px;
    border: 1px solid var(--d-line);
    border-radius: 999px;
    background: var(--d-surface);
    color: inherit;
    font: inherit;
    font-size: 15px;
}
.hp-mail-pick input:focus {
    outline: none;
    border-color: var(--d-accent);
    box-shadow: 0 0 0 3px var(--d-accent-soft);
}
.hp-mail-at {
    font-weight: 700;
    font-size: 14.5px;
    color: var(--d-muted);
    white-space: nowrap;
}
.hp-mail-note { margin: 0; font-size: 12.5px; color: var(--d-muted); }

.hp-mail-benefits {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    align-content: start;
}
.hp-mail-benefits li {
    display: flex;
    gap: 11px;
    padding: 13px;
    border-radius: var(--d-radius-s);
    background: var(--d-surface-2);
    border: 1px solid var(--d-line);
}
.hp-mail-ico {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 9px;
    background: var(--d-accent-soft);
    color: var(--d-accent);
    font-size: 15px;
}
.hp-mail-benefits b { display: block; font-size: 13.5px; font-weight: 700; line-height: 1.3; }
.hp-mail-benefits small { display: block; margin-top: 2px; font-size: 12px; line-height: 1.4; color: var(--d-muted); }

.hp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 11px 20px;
    border-radius: 999px;
    border: 1px solid var(--d-line);
    background: transparent;
    color: var(--d-text);
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
    transition: border-color .15s, color .15s, background .15s, filter .15s;
}
.hp-btn:hover { border-color: var(--d-accent); color: var(--d-accent); }
.hp-btn-primary {
    background: var(--d-accent);
    border-color: var(--d-accent);
    color: var(--d-accent-ink);
}
.hp-btn-primary:hover { filter: brightness(1.07); color: var(--d-accent-ink); }
.hp-btn-row { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- 6. Р”РІРµ РєРѕР»РѕРЅРєРё ---------- */
.hp-duo {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 20px;
}
.hp-duo-7-5 { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.hp-duo-8-4 { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); }

.hp-panel {
    padding: 22px;
    min-width: 0;
    box-shadow: var(--d-shadow-s);
}

.hp-chips { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 14px; }
.hp-chips a {
    padding: 5px 13px;
    border-radius: 999px;
    background: var(--d-surface-2);
    border: 1px solid transparent;
    color: var(--d-muted);
    font-size: 12.5px;
    font-weight: 600;
    text-decoration: none;
    transition: background .15s, color .15s, border-color .15s;
}
.hp-chips a:hover { background: var(--d-accent-soft); color: var(--d-accent); border-color: var(--d-accent-soft); }

.hp-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.hp-filter input,
.hp-filter select {
    flex: 1 1 118px;
    min-width: 0;
    padding: 9px 14px;
    border: 1px solid var(--d-line);
    border-radius: 999px;
    background: var(--d-surface-2);
    color: inherit;
    font: inherit;
    font-size: 13.5px;
    transition: border-color .15s, background .15s;
}
.hp-filter input:focus,
.hp-filter select:focus {
    outline: none;
    border-color: var(--d-accent);
    background: var(--d-surface);
}
.hp-filter button {
    border: 0;
    border-radius: 999px;
    padding: 9px 19px;
    background: var(--d-accent);
    color: var(--d-accent-ink);
    font: inherit;
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
    transition: filter .15s;
}
.hp-filter button:hover { filter: brightness(1.07); }

/* РњРёРЅРё-РєР°СЂС‚РѕС‡РєРё СЃ С„РѕС‚Рѕ */
.hp-mini-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}
.hp-mini {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 9px;
    text-decoration: none;
    box-shadow: var(--d-shadow-s);
    transition: transform .18s var(--d-ease), border-color .18s, box-shadow .18s;
}
.hp-mini:hover {
    transform: translateY(-2px);
    border-color: var(--d-accent);
    box-shadow: var(--d-shadow-m);
}
.hp-mini-img {
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: var(--d-radius-s);
    background: var(--d-surface-2);
}
.hp-mini-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s var(--d-ease);
}
.hp-mini:hover .hp-mini-img img { transform: scale(1.05); }
.hp-mini-price {
    font-size: 14.5px;
    font-weight: 800;
    letter-spacing: -0.015em;
    color: var(--d-text);
}
.hp-mini-title {
    font-size: 13px;
    line-height: 1.34;
    color: var(--d-text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.hp-mini:hover .hp-mini-title { color: var(--d-accent); }

/* РЎРїСЂР°РІРѕС‡РЅРёРє */
.hp-guide { list-style: none; margin: 0; padding: 0; }
.hp-guide li {
    display: grid;
    grid-template-columns: 26px minmax(0, 1fr) auto;
    gap: 2px 11px;
    align-items: baseline;
    padding: 10px 0;
    border-top: 1px solid var(--d-line);
}
.hp-guide li:first-child { border-top: 0; padding-top: 0; }
.hp-guide-icon { grid-row: span 2; font-size: 17px; line-height: 1.4; }
.hp-guide-main { min-width: 0; }
.hp-guide-main b { display: block; font-size: 14px; font-weight: 600; }
.hp-guide-main small { display: block; font-size: 12.5px; color: var(--d-muted); }
.hp-guide-phone {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--d-accent);
    text-decoration: none;
    white-space: nowrap;
}
.hp-guide-phone:hover { color: var(--d-accent); }

/* РЎСЃС‹Р»РєРё Рё СЃРїРёСЃРєРё */
.hp-links { list-style: none; margin: 0; padding: 0; }
.hp-links li { padding: 9px 0; border-top: 1px solid var(--d-line); }
.hp-links li:first-child { border-top: 0; padding-top: 0; }
.hp-links a {
    display: block;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    color: var(--d-text);
    transition: color .15s;
}
.hp-links a:hover { color: var(--d-accent); }
.hp-links small { display: block; margin-top: 1px; font-size: 12px; color: var(--d-muted); }

/* РРіСЂС‹ */
.hp-games {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
    gap: 11px;
}
.hp-games a { display: flex; flex-direction: column; gap: 6px; text-decoration: none; }
.hp-game-img {
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: var(--d-radius-s);
    background: var(--d-surface-2);
}
.hp-game-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s var(--d-ease);
}
.hp-games a:hover .hp-game-img img { transform: scale(1.05); }
.hp-games a:hover .hp-game-img { box-shadow: var(--d-shadow-m); }
.hp-games b { font-size: 12.5px; font-weight: 600; line-height: 1.3; color: var(--d-text); }

/* РљСѓСЂСЃС‹ */
.hp-rates { list-style: none; margin: 0; padding: 0; }
.hp-rates li {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: baseline;
    padding: 9px 0;
    border-top: 1px solid var(--d-line);
}
.hp-rates li:first-child { border-top: 0; padding-top: 0; }
.hp-rates b { font-size: 13px; font-weight: 800; letter-spacing: .02em; color: var(--d-text); }
.hp-rates span { font-size: 14px; font-weight: 600; color: var(--d-text); }
.hp-rates small { font-size: 12.5px; font-weight: 700; color: var(--d-muted); }
.hp-rates small.up { color: #c0392b; }
.hp-rates small.down { color: #0d8a56; }

/* Р“РѕСЂРѕРґР° */
.hp-cities {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(126px, 1fr));
    gap: 8px;
}
.hp-cities a {
    display: flex;
    flex-direction: column;
    gap: 1px;
    padding: 10px 12px;
    border: 1px solid var(--d-line);
    border-radius: var(--d-radius-s);
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--d-text);
    transition: border-color .15s, background .15s, transform .12s;
}
.hp-cities a:hover {
    border-color: var(--d-accent);
    background: var(--d-accent-soft);
    transform: translateY(-1px);
}
.hp-cities small { font-size: 11.5px; color: var(--d-muted); font-weight: 400; }

/* РљРѕРЅС‚Р°РєС‚С‹ */
.hp-contact-list { list-style: none; margin: 0 0 14px; padding: 0; }
.hp-contact-list li { padding: 8px 0; border-top: 1px solid var(--d-line); }
.hp-contact-list li:first-child { border-top: 0; padding-top: 0; }
.hp-contact-list a { font-size: 14px; text-decoration: none; color: var(--d-text); }
.hp-contact-list a:hover { color: var(--d-accent); }

/* ---------- РђРґР°РїС‚РёРІ ---------- */
@media (max-width: 1180px) {
    .hp-services { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .hp-news-grid,
    .hp-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hp-mini-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 980px) {
    .hp-top { grid-template-columns: minmax(0, 1fr); }
    .hp-hero { padding: 24px; }
    .hp-search { border-radius: var(--d-radius); padding-left: 16px; }
    .hp-search select { flex: 1 1 100%; border-left: 0; border-top: 1px solid var(--d-line); padding: 8px 2px; max-width: none; }
    .hp-search > button { flex: 1 1 100%; }
    .hp-news-lead { grid-template-columns: minmax(0, 1fr); }
    .hp-news-lead-img { min-height: 200px; }
    .hp-news-lead-img img { min-height: 200px; }
    .hp-news-lead-body { padding: 20px; }
    .hp-mail { grid-template-columns: minmax(0, 1fr); gap: 20px; padding: 24px; }
    .hp-duo,
    .hp-duo-7-5,
    .hp-duo-8-4 { grid-template-columns: minmax(0, 1fr); }
    .hp-mini-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
    .hp-hero { padding: 19px 16px; }
    .hp-hero h1 { font-size: 23px; max-width: none; }
    .hp-hero-lead { font-size: 14.5px; margin-bottom: 17px; }
    .hp-services { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .hp-service { padding: 13px; }
    .hp-news-grid,
    .hp-cards { gap: 10px; }
    .hp-news-card { padding: 9px; }
    .hp-card { padding: 9px; }
    .hp-card-price { font-size: 14.5px; }
    .hp-panel { padding: 16px; }
    .hp-mail { padding: 18px 16px; }
    .hp-mail-benefits { grid-template-columns: minmax(0, 1fr); }
    .hp-mail-pick { gap: 7px; }
    .hp-mail-pick input { flex: 1 1 100%; }
    .hp-mail-pick .hp-btn-primary { flex: 1 1 100%; }
    .hp-mail-at { display: none; }
    .hp-mini-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hp-wx-now strong { font-size: 38px; }
    .hp-wx-icon { font-size: 33px; }
    .hp-cities { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hp-games { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 380px) {
    .hp-cards,
    .hp-news-grid { grid-template-columns: minmax(0, 1fr); }
    .hp-mini-cards { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- РЎС‚СЂРѕРєР° В«РЎРµР№С‡Р°СЃВ» ---------- */
.hp-ticker {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    padding: 8px 12px;
    background: var(--d-surface);
    border: 1px solid var(--d-line);
    border-radius: var(--d-radius-s);
    font-size: 13px;
    overflow: hidden;
}
.hp-ticker-live {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex: 0 0 auto;
    padding: 3px 10px 3px 8px;
    border-radius: 999px;
    background: var(--d-accent-soft);
    color: var(--d-accent);
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}
.hp-ticker-live i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    animation: hp-pulse 1.8s ease-in-out infinite;
}
@keyframes hp-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: .35; transform: scale(.82); }
}
.hp-ticker-list {
    display: flex;
    align-items: center;
    gap: 0;
    list-style: none;
    margin: 0;
    padding: 0;
    flex: 1 1 auto;
    min-width: 0;
    overflow-x: auto;
    scrollbar-width: none;
}
.hp-ticker-list::-webkit-scrollbar { display: none; }
.hp-ticker-list li {
    flex: 0 0 auto;
    max-width: 34ch;
    padding: 0 14px;
    border-left: 1px solid var(--d-line);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.hp-ticker-list li a {
    text-decoration: none;
    color: var(--d-text);
    font-size: 13px;
}
.hp-ticker-list li a:hover { color: var(--d-accent); }
.hp-ticker-list li b {
    margin-right: 6px;
    color: var(--d-accent);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.hp-ticker-all {
    flex: 0 0 auto;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--d-accent);
    text-decoration: none;
    white-space: nowrap;
}
.hp-ticker-all:hover { filter: brightness(.82); }

/* ---------- Р СѓР±СЂРёРєРё РЅРѕРІРѕСЃС‚РµР№ ---------- */
.hp-rubrics {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: -4px 0 14px;
}
.hp-rubrics a {
    padding: 5px 12px;
    border-radius: 999px;
    border: 1px solid var(--d-line);
    color: var(--d-muted);
    font-size: 12.5px;
    font-weight: 600;
    text-decoration: none;
    transition: border-color .15s, color .15s, background .15s;
}
.hp-rubrics a:hover {
    border-color: var(--d-accent);
    color: var(--d-accent);
    background: var(--d-accent-soft);
}

/* ---------- Р Р°Р±РѕС‚Р° ---------- */
.hp-jobs { list-style: none; margin: 0; padding: 0; }
.hp-jobs li {
    display: flex;
    align-items: baseline;
    gap: 14px;
    padding: 11px 0;
    border-top: 1px solid var(--d-line);
}
.hp-jobs li:first-child { border-top: 0; padding-top: 0; }
.hp-jobs li > a {
    flex: 1 1 auto;
    min-width: 0;
    text-decoration: none;
}
.hp-jobs li > a b {
    display: block;
    font-size: 14.5px;
    font-weight: 600;
    line-height: 1.35;
    color: var(--d-text);
}
.hp-jobs li > a:hover b { color: var(--d-accent); }
.hp-jobs li small {
    display: block;
    margin-top: 2px;
    font-size: 12.5px;
    color: var(--d-muted);
}
.hp-jobs-pay {
    flex: 0 0 auto;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: -0.015em;
    white-space: nowrap;
    color: var(--d-text);
}

/* ---------- РђС„РёС€Р° ---------- */
.hp-films {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}
.hp-film {
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-decoration: none;
}
.hp-film-poster {
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    border-radius: var(--d-radius-s);
    background: var(--d-surface-2);
    border: 1px solid var(--d-line);
}
.hp-film-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s var(--d-ease);
}
.hp-film:hover .hp-film-poster img { transform: scale(1.04); }
.hp-film b {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.32;
    color: var(--d-text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.hp-film:hover b { color: var(--d-accent); }
.hp-film small {
    font-size: 11.5px;
    color: var(--d-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 980px) {
    .hp-ticker { flex-wrap: nowrap; }
    .hp-ticker-list li { max-width: 26ch; }
}
@media (max-width: 640px) {
    .hp-ticker { gap: 8px; padding: 7px 10px; }
    .hp-ticker-list li { padding: 0 10px; max-width: 30ch; }
    .hp-ticker-all { display: none; }
    .hp-films { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
    .hp-film b { font-size: 12px; }
    .hp-jobs-pay { font-size: 13px; }
}

/* ---------- РќРѕРІРѕСЃС‚Рё: РєРѕРјРїР°РєС‚РЅРѕ, СЃ РєР°СЂС‚РёРЅРєР°РјРё ---------- */
.hp-news-lead {
    grid-template-columns: 240px minmax(0, 1fr);
    margin-bottom: 10px;
}
.hp-news-lead-img,
.hp-news-lead-img img { min-height: 168px; }
.hp-news-lead-body { padding: 16px 20px; gap: 7px; }
.hp-news-lead-body strong { font-size: clamp(17px, 2vw, 22px); line-height: 1.2; }
.hp-news-lead-text { display: none; }

.hp-news-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}
.hp-news-card {
    display: grid;
    grid-template-columns: 108px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 8px;
}
.hp-news-card-img {
    aspect-ratio: 4 / 3;
    border-radius: var(--d-radius-s);
}
.hp-news-card-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}
.hp-news-card-rubric {
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: var(--d-accent);
}
.hp-news-card strong {
    font-size: 13.5px;
    line-height: 1.34;
    font-weight: 600;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.hp-news-card .hp-meta { font-size: 11.5px; }

/* ---------- РљСѓСЂСЃ Р¦Р‘ ---------- */
.hp-rates-date {
    font-size: 11.5px;
    color: var(--d-muted);
    white-space: nowrap;
}
.hp-rates li {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr) 76px;
    gap: 10px;
    align-items: baseline;
}
.hp-rate-price {
    font-variant-numeric: tabular-nums;
    font-weight: 600;
}
.hp-rate-delta {
    justify-self: end;
    font-size: 12px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
.hp-rate-delta.up { color: #c0392b; }
.hp-rate-delta.down { color: #0d8a56; }
.hp-rate-delta.flat { color: var(--d-muted); }

@media (max-width: 980px) {
    .hp-news-lead { grid-template-columns: 200px minmax(0, 1fr); }
}
@media (max-width: 640px) {
    .hp-news-lead { grid-template-columns: minmax(0, 1fr); }
    .hp-news-lead-img, .hp-news-lead-img img { min-height: 190px; }
    .hp-news-grid { grid-template-columns: minmax(0, 1fr); }
    .hp-news-card { grid-template-columns: 96px minmax(0, 1fr); }
}
