/* Главная: анонс ЮГИД.ленты. Тёмный блок с «телефоном» и открытками, mobile-first.
   Палитра — фирменные токены; марка города и билет — как в самой ленте. */

.yg-hl { position: relative; overflow: hidden; padding: 56px 0 44px; background:
    radial-gradient(60% 50% at 85% 20%, rgba(3, 105, 161, .55), transparent 70%),
    radial-gradient(40% 40% at 10% 90%, rgba(255, 193, 35, .14), transparent 70%),
    var(--yg-ink); color: #fff; font-family: var(--yg-font-body); }
.yg-hl__in { position: relative; display: grid; gap: 40px; }

/* Текст */
.yg-hl__eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 14px; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .08); font-size: 13px; font-weight: 800; color: var(--yg-sun); }
.yg-hl__live { width: 8px; height: 8px; border-radius: 50%; background: var(--yg-sun); box-shadow: 0 0 0 3px rgba(255, 193, 35, .25); }
.yg-hl__title { margin: 0 0 14px; font: 600 clamp(28px, 6.5vw, 40px)/1.12 var(--yg-font-head); color: #fff; letter-spacing: -.01em; }
.yg-hl__title > span { display: block; color: var(--yg-sun); }
.yg-hl__title i { display: inline-block; width: .22em; height: .22em; margin: 0 .04em; border-radius: 50%; background: #fff; vertical-align: .06em; }
.yg-hl__lead { margin: 0 0 24px; max-width: 520px; font-size: 16px; line-height: 1.6; color: rgba(255, 255, 255, .78); }

/* Преимущества: иконка в плашке + заголовок и строка пояснения; на телефоне в столбик, на ПК 2×2 */
.yg-hl__perks { display: grid; gap: 16px; margin: 0 0 28px; padding: 0; list-style: none; max-width: 600px; }
.yg-hl__perks li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; align-items: start; font-size: 14px; line-height: 1.5; color: rgba(255, 255, 255, .72); }
.yg-hl__perks b { display: block; margin-bottom: 2px; font-size: 15px; font-weight: 800; color: #fff; }
.yg-hl__perk-ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: rgba(255, 193, 35, .12); box-shadow: inset 0 0 0 1px rgba(255, 193, 35, .28); color: var(--yg-sun); }
.yg-hl__perk-ico svg { width: 22px; height: 22px; }

.yg-hl__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.yg-hl__ghost { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 6px; color: #fff; font-weight: 800; text-decoration: none; }
.yg-hl__ghost svg { width: 18px; height: 18px; color: var(--yg-sun); }
.yg-hl__ghost:hover { color: var(--yg-sun); }
.yg-hl__ghost:focus-visible, .yg-hl .yg-btn:focus-visible { outline: 3px solid var(--yg-sun); outline-offset: 3px; }

/* Марка города — как в ленте */
.yg-hl__stamp { position: absolute; top: 10px; left: 10px; z-index: 2; padding: 4px; transform: rotate(-4deg); background: radial-gradient(circle, transparent 2.3px, #fff 2.7px) -3.5px -3.5px / 7px 7px; filter: drop-shadow(0 2px 4px rgba(11, 46, 69, .35)); pointer-events: none; }
.yg-hl__stamp span { display: block; padding: 5px 8px 4px; background: var(--yg-sun); box-shadow: inset 0 0 0 1.5px var(--yg-ink), inset 0 0 0 3px var(--yg-sun); color: var(--yg-ink); font: 700 9.5px/1 var(--yg-font-head); letter-spacing: .02em; text-transform: uppercase; white-space: nowrap; }

/* Сцена: телефон и веер открыток */
.yg-hl__stage { position: relative; justify-self: center; width: min(100%, 300px); }
.yg-hl__phone { position: relative; z-index: 2; padding: 10px; border-radius: 42px; background: #0a2436; box-shadow: 0 0 0 2px rgba(255, 255, 255, .12), 0 40px 80px -30px rgba(0, 0, 0, .7); }
.yg-hl__screen { overflow: hidden; border-radius: 32px; background: var(--yg-sky-soft); color: var(--yg-ink); }
.yg-hl__bar { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px 8px; }
.yg-hl__bar b { font: 600 14px/1 var(--yg-font-head); color: var(--yg-sea); }
.yg-hl__bar b i { display: inline-block; width: 5px; height: 5px; margin: 0 1px; border-radius: 50%; background: var(--yg-sun); vertical-align: 1px; }
.yg-hl__bar span { padding: 4px 9px; border-radius: 999px; background: var(--yg-ink); color: #fff; font-size: 10px; font-weight: 800; }
.yg-hl__post { display: grid; gap: 8px; padding: 4px 10px 14px; }
.yg-hl__who { display: grid; grid-template-columns: 26px 1fr; grid-template-rows: auto auto; column-gap: 8px; align-items: center; }
.yg-hl__who span { grid-row: 1 / 3; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--yg-ink); color: var(--yg-sun); font-size: 11px; font-weight: 800; box-shadow: 0 0 0 1.5px #fff, 0 0 0 3px var(--yg-sun); }
.yg-hl__who b { font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.yg-hl__who small { font-size: 10px; color: var(--yg-muted); }
.yg-hl__pic { position: relative; padding: 4px; border-radius: 16px; background: #fff; box-shadow: 0 8px 20px -12px rgba(11, 46, 69, .5); }
.yg-hl__pic img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 12px; }
.yg-hl__heart { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.yg-hl__heart svg { width: 64px; height: 64px; fill: var(--yg-sun); stroke: #fff; stroke-width: 1; filter: drop-shadow(0 4px 12px rgba(11, 46, 69, .5)); animation: yg-hl-heart 4s cubic-bezier(.2, 0, 0, 1) 1.2s 2; opacity: 0; }
@keyframes yg-hl-heart { 0%, 62% { opacity: 0; transform: scale(.4); } 68% { opacity: 1; transform: scale(1.1); } 74% { transform: scale(.95); } 84% { opacity: 1; transform: scale(1); } 92%, 100% { opacity: 0; transform: scale(1.05) translateY(-8px); } }
.yg-hl__acts { display: flex; align-items: center; gap: 10px; padding: 0 2px; }
.yg-hl__acts svg { width: 18px; height: 18px; fill: none; stroke: var(--yg-ink); stroke-width: 1.75; }
.yg-hl__acts svg:first-child { fill: var(--yg-coral); stroke: var(--yg-coral); }
.yg-hl__acts small { margin-left: auto; font-size: 11px; font-weight: 800; }
.yg-hl__ticket { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 12px; background: var(--yg-ink); color: #fff; }
.yg-hl__ticket span { display: grid; min-width: 0; }
.yg-hl__ticket small { font-size: 9px; color: rgba(255, 255, 255, .6); }
.yg-hl__ticket b { font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.yg-hl__ticket em { padding: 4px 8px; border-radius: 999px; background: var(--yg-sun); color: var(--yg-ink); font-size: 10px; font-weight: 800; font-style: normal; white-space: nowrap; }

.yg-hl__card { display: none; }

/* Лента открыток вбок */
.yg-hl__strip { display: flex; gap: 12px; margin: 36px -12px 0; padding: 4px 12px 8px; list-style: none; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.yg-hl__strip::-webkit-scrollbar { display: none; }
.yg-hl__strip li { flex: none; width: 180px; scroll-snap-align: start; }
.yg-hl__mini { display: grid; gap: 8px; padding: 6px 6px 12px; border-radius: 20px; background: #fff; color: var(--yg-ink); text-decoration: none; transition: transform .25s cubic-bezier(.2, 0, 0, 1); }
.yg-hl__mini:hover { color: var(--yg-ink); transform: translateY(-4px) rotate(-.6deg); }
.yg-hl__mini:focus-visible { outline: 3px solid var(--yg-sun); outline-offset: 3px; }
.yg-hl__mini-pic { position: relative; display: block; }
.yg-hl__mini-pic img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 15px; background: var(--yg-sky); }
.yg-hl__many { position: absolute; top: 10px; right: 10px; color: #fff; filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .5)); }
.yg-hl__many svg { width: 18px; height: 18px; fill: #fff; }
.yg-hl__mini-who { display: flex; align-items: center; gap: 8px; padding: 0 6px; min-width: 0; }
.yg-hl__mini-who span { flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--yg-ink); color: var(--yg-sun); font-size: 11px; font-weight: 800; }
.yg-hl__mini-who b { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.yg-hl__mini-text { padding: 0 6px; font-size: 13px; line-height: 1.4; color: var(--yg-ink-soft); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.yg-hl__mini-meta { display: flex; align-items: center; gap: 4px 6px; padding: 0 6px; font-size: 12px; font-weight: 800; color: var(--yg-muted); }
.yg-hl__mini-meta svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.75; }
.yg-hl__mini-meta svg:not(:first-child) { margin-left: 6px; }
.yg-hl__more { display: grid; align-content: center; justify-items: start; gap: 6px; height: 100%; min-height: 220px; padding: 20px; border-radius: 20px; background: var(--yg-sun); color: var(--yg-ink); text-decoration: none; }
.yg-hl__more span { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--yg-ink); color: var(--yg-sun); }
.yg-hl__more span svg { width: 20px; height: 20px; }
.yg-hl__more b { font: 600 18px/1.2 var(--yg-font-head); }
.yg-hl__more small { font-size: 13px; color: var(--yg-ink-soft); }
.yg-hl__more:hover { color: var(--yg-ink); background: var(--yg-sun-dark); }
.yg-hl__more:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }

/* Телефон: без макета телефона (те же посты — в ленте открыток ниже), преимущества — 2×2 одними заголовками,
   кнопки — во всю ширину. Блок вдвое короче */
/* Планшет: тоже без макета телефона, преимущества — 2×2 с пояснениями */
@media (min-width: 768px) and (max-width: 991.98px) {
    .yg-hl__in { gap: 0; }
    .yg-hl__stage { display: none; }
    .yg-hl__perks { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 24px; max-width: none; }
    .yg-hl__strip { margin-top: 36px; }
}
@media (max-width: 767.98px) {
    .yg-hl { padding: 44px 0 36px; }
    .yg-hl__in { gap: 0; }
    .yg-hl__lead { margin-bottom: 20px; font-size: 15px; }
    .yg-hl__perks { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 22px; }
    .yg-hl__perks li { grid-template-columns: 1fr; gap: 10px; padding: 14px; border-radius: 16px; background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }
    .yg-hl__perks b { margin: 0; font-size: 14px; line-height: 1.3; }
    .yg-hl__perk-text { display: none; }
    .yg-hl__perk-ico { width: 36px; height: 36px; border-radius: 11px; }
    .yg-hl__perk-ico svg { width: 18px; height: 18px; }
    .yg-hl__cta { display: grid; gap: 4px; }
    .yg-hl__cta .yg-btn { justify-content: center; width: 100%; min-height: 52px; }
    .yg-hl__ghost { justify-content: center; }
    .yg-hl__stage { display: none; }
    .yg-hl__strip { margin-top: 28px; }
    .yg-hl__strip li { width: 160px; }
}

/* ПК: текст слева, сцена справа, веер открыток за телефоном */
@media (min-width: 992px) {
    .yg-hl { padding: 88px 0 64px; }
    .yg-hl__in { grid-template-columns: minmax(0, 1fr) 520px; align-items: center; gap: 40px; }
    .yg-hl__text { position: relative; z-index: 3; }
    .yg-hl__stage { width: 290px; justify-self: center; }
    .yg-hl__card { position: absolute; z-index: 1; top: 70px; display: block; width: 210px; padding: 6px 6px 26px; border-radius: 18px; background: #fff; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .7); transition: transform .4s cubic-bezier(.2, 0, 0, 1); }
    .yg-hl__card img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 13px; }
    .yg-hl__card--left { left: -118px; transform: rotate(-9deg); }
    .yg-hl__card--right { right: -118px; top: 120px; transform: rotate(8deg); }
    .yg-hl__stage:hover .yg-hl__card--left { transform: rotate(-12deg) translateX(-14px); }
    .yg-hl__stage:hover .yg-hl__card--right { transform: rotate(11deg) translateX(14px); }
    .yg-hl__perks { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 28px; margin-bottom: 32px; }
    /* Сетка из 5 открыток и «Вся лента» — без прокрутки вбок */
    .yg-hl__strip { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; margin: 56px 0 0; padding: 4px 0 8px; overflow: visible; }
    .yg-hl__strip li { width: auto; }
    .yg-hl__strip li:nth-child(6) { display: none; }
    .yg-hl__more { min-height: 0; }
}
@media (prefers-reduced-motion: reduce) {
    .yg-hl__heart svg { animation: none; }
    .yg-hl__mini, .yg-hl__card { transition: none; }
}
