/* iManage сайт — началният екран с три банера (сгради, затворени комплекси, фирми домоуправители).
   Слайдовете са един върху друг в една клетка на грида — височината е на най-високия, смяната е с плавно преливане.
   Без JS се вижда първият банер. */


.hs { padding-bottom: clamp(28px, 4vw, 44px); }
.hs__track { display: grid; }
.hs__slide {
    grid-area: 1 / 1;
    display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
    gap: clamp(28px, 5vw, 64px); align-items: center;
    opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity .7s var(--ease), visibility 0s linear .7s;
}
.hs__slide.is-active { opacity: 1; visibility: visible; pointer-events: auto; transition: opacity .7s var(--ease), visibility 0s; }

.hs__copy { min-width: 0; }
.hs__copy h1, .hs__title { color: #fff; font-size: clamp(2.1rem, 4.4vw, 3.4rem); text-wrap: balance; }
.hs__copy p { font-size: 1.15rem; max-width: 44ch; color: #b7cbe0; }
.hs__points { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: .92rem; font-weight: 600; color: #dbe6f2; }
.hs__points li { margin: 0; display: inline-flex; align-items: center; gap: 8px; }
.hs__points li::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--accent-500); flex-shrink: 0; }

/* Снимката: голяма рамка с един заоблен ъгъл повече — нашата форма, не кръг */
.hs__media {
    position: relative; margin: 0; min-width: 0;
    aspect-ratio: 16 / 11; max-width: 100%;
    border-radius: 26px 26px 26px 120px; overflow: hidden;
    box-shadow: 0 30px 70px rgba(3, 12, 26, .45);
    background: var(--brand-800);
}
.hs__media::after {   /* лека сянка отдолу — бялата карта винаги се чете */
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(180deg, transparent 55%, rgba(7, 26, 51, .45));
}
.hs__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hs__media--map img { object-position: 50% 60%; }

/* Плаващи карти върху снимката */
.hs__float {
    position: absolute; z-index: 2; display: grid; gap: 2px;
    background: #fff; color: var(--ink-soft); border-radius: 14px;
    padding: 11px 15px; font-size: .82rem; line-height: 1.3;
    box-shadow: 0 14px 34px rgba(3, 12, 26, .3);
    opacity: 0; transform: translateY(14px);
    transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.hs__float b { color: var(--brand-900); font-family: var(--font-head); font-weight: 800; }
.hs__float--a { left: 18px; bottom: 22px; }
.hs__float--a > b { font-size: 1.35rem; }
.hs__float--b { right: 18px; top: 18px; display: flex; align-items: center; gap: 8px; }
.hs__float--c { right: 18px; bottom: 22px; }
.hs__slide.is-active .hs__float { opacity: 1; transform: none; transition-delay: .45s; }
.hs__slide.is-active .hs__float--b { transition-delay: .8s; }
.hs__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--brand-600); flex-shrink: 0; }
.hs__dot--ok { background: #1e9e4a; }
.hs__brand { display: inline-flex; align-items: center; gap: 8px; color: var(--brand-900); font-family: var(--font-head); font-weight: 800; font-size: 1rem; }
.hs__brand i { width: 20px; height: 20px; border-radius: 6px; background: conic-gradient(from 210deg, var(--accent-500), #e0548a, var(--brand-600), var(--accent-500)); }

/* Банер 2 — сградите на комплекса се „отбелязват“ една след друга */
.hs__pin { position: absolute; z-index: 2; left: var(--x); top: var(--y); display: inline-flex; align-items: center; gap: 8px; opacity: 0; transform: translateY(8px); transition: opacity .45s var(--ease), transform .45s var(--ease); }
.hs__pin i { position: relative; width: 14px; height: 14px; border-radius: 50%; background: var(--accent-500); box-shadow: 0 0 0 4px rgba(245, 166, 35, .3); flex-shrink: 0; }
.hs__pin em { font-style: normal; font-size: .78rem; font-weight: 700; color: var(--brand-900); background: rgba(255, 255, 255, .94); padding: 5px 9px; border-radius: 999px; white-space: nowrap; box-shadow: 0 6px 16px rgba(3, 12, 26, .25); }
.hs__pin--alert i { background: #1e9e4a; box-shadow: 0 0 0 4px rgba(30, 158, 74, .3); }
.hs__slide.is-active .hs__pin { opacity: 1; transform: none; transition-delay: calc(.5s + var(--d)); }

/* Управление */
.hs__controls { display: flex; align-items: center; gap: 14px; margin-top: clamp(24px, 3.5vw, 36px); }
.hs__arrow { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid rgba(255, 255, 255, .35); background: transparent; color: #fff; transition: background .2s var(--ease), border-color .2s var(--ease); }
.hs__arrow:hover { background: rgba(255, 255, 255, .12); border-color: #fff; }
.hs__arrow svg { width: 20px; height: 20px; }
.hs__dots { display: flex; gap: 10px; flex-wrap: wrap; }
.hs__tab { display: grid; gap: 7px; min-width: 96px; padding: 4px 0; border: 0; background: none; color: #8ea6c2; font-size: .85rem; font-weight: 600; text-align: left; }
.hs__tab i { display: block; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .18); overflow: hidden; position: relative; }
.hs__tab i::after { content: ''; position: absolute; inset: 0; background: var(--accent-500); transform: scaleX(0); transform-origin: left; }
.hs__tab.is-active { color: #fff; }
.hs__tab.is-active i::after { transform: scaleX(1); }
.hs.is-playing .hs__tab.is-active i::after { animation: hs-progress var(--hs-interval, 7s) linear forwards; }
.hs.is-paused .hs__tab.is-active i::after { animation-play-state: paused; }
@keyframes hs-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }

@media (prefers-reduced-motion: no-preference) {
    .hs__slide.is-active .hs__media img { animation: hs-drift 14s ease-out both; }
    .hs__slide.is-active .hs__media--map img { animation: hs-fly 16s ease-out both; }
    .hs__slide.is-active .hs__pin i::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid currentColor; color: var(--accent-500); animation: hs-ping 2.2s ease-out infinite; }
    .hs__slide.is-active .hs__pin--alert i::after { color: #1e9e4a; }
}
@keyframes hs-drift { from { transform: scale(1.08); } to { transform: scale(1); } }
@keyframes hs-fly { from { transform: scale(1.18) translate(3%, 2%); } to { transform: scale(1.02) translate(0, 0); } }
@keyframes hs-ping { from { transform: scale(.6); opacity: .9; } to { transform: scale(2.2); opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
    .hs__slide, .hs__float, .hs__pin { transition: none; }
}

@media (max-width: 960px) {
    .hs__slide { grid-template-columns: 1fr; align-items: start; }
    .hs__media { aspect-ratio: 16 / 10; border-radius: 22px 22px 22px 70px; order: -1; }
}
@media (max-width: 560px) {
    .hs__copy p { font-size: 1.02rem; }
    .hs__float { font-size: .74rem; padding: 8px 11px; }
    .hs__float--a > b { font-size: 1.1rem; }
    .hs__pin em { display: none; }
    .hs__tab { min-width: 70px; }
    .hs__arrow { display: none; }
}
