/* MontMari — раздел /drones/ + блок «Рядом с высоты» + кнопка «Все пролёты». */

/* --- общие мелочи --- */
.mm-drone-all-link {
    align-self: flex-end; white-space: nowrap;
    font-weight: 700; font-size: 14px; text-decoration: none;
    color: var(--mm-gold, #ad8b51);
}
.mm-drone-all-link:hover { color: #8a6d3c; text-decoration: underline; }

/* --- «Рядом с высоты» на странице места --- */
.mm-drone-near-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.mm-drone-near-head h2 { margin: 2px 0 0; }
.mm-drone-near-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.mm-drone-near-card { margin: 0; border: 1px solid #e7e9ec; border-radius: 12px; overflow: hidden; background: #fff; }
.mm-drone-near-card video { display: block; width: 100%; aspect-ratio: 16/10; object-fit: cover; background: #0b1626; }
.mm-drone-near-card figcaption { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 9px 11px 11px; }
.mm-drone-near-cap { font-size: 13px; color: #3f4a56; }
.mm-drone-near-km { flex: none; font-size: 12px; font-weight: 700; color: var(--mm-gold, #ad8b51); }

/* --- кнопка «Все N пролётов» в блоке ЖК --- */
.mm-cx-drone-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 12px; }
.mm-cx-drone-more {
    appearance: none; cursor: pointer;
    padding: 9px 18px; border-radius: 999px;
    border: 1px solid var(--mm-gold, #ad8b51); background: #fff;
    font: 700 13px/1 system-ui, -apple-system, "Segoe UI", sans-serif; color: #8a6d3c;
}
.mm-cx-drone-more:hover { background: var(--mm-gold, #ad8b51); color: #171911; }
.mm-cx-drone-thumb.is-more { display: none; }
.mm-cx-drone-thumbs.is-open .mm-cx-drone-thumb.is-more { display: block; }

/* --- хаб /drones/ --- */
.mm-drone-hub-hero { max-width: 1280px; margin: 0 auto; padding: clamp(26px, 4vw, 52px) clamp(18px, 4vw, 64px) 0; box-sizing: border-box; }
.mm-drone-hub-hero h1 { margin: 4px 0 10px; font-size: clamp(26px, 4vw, 40px); }
.mm-drone-hub-lead { max-width: 720px; color: #4a5560; margin: 0; font-size: 16px; line-height: 1.6; }
.mm-drone-hub-stats { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 0; padding: 0; list-style: none; }
.mm-drone-hub-stats li {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 7px 13px; border: 1px solid #e7e9ec; border-radius: 999px;
    background: #fff; font-size: 13px; color: #3f4a56;
}
.mm-drone-hub-stats b { color: #16202c; }

.mm-drone-hub-filters { max-width: 1280px; margin: 0 auto; padding: 22px clamp(18px, 4vw, 64px) 0; box-sizing: border-box; }
.mm-drone-hub-fgroup { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 10px; }
.mm-drone-hub-flabel { font: 800 11px/1 system-ui, sans-serif; letter-spacing: .1em; text-transform: uppercase; color: #8a939c; margin-right: 4px; }
.mm-drone-chip {
    appearance: none; cursor: pointer;
    padding: 8px 14px; border-radius: 999px;
    border: 1px solid #e0e3e7; background: #fff;
    font: 600 13px/1 system-ui, -apple-system, "Segoe UI", sans-serif; color: #3f4a56;
}
.mm-drone-chip:hover { border-color: var(--mm-gold, #ad8b51); }
.mm-drone-chip.is-on { background: #021738; border-color: #021738; color: #fff; }
.mm-drone-chip i { font-style: normal; opacity: .6; margin-left: 5px; }

.mm-drone-hub-grid {
    max-width: 1280px; margin: 0 auto; box-sizing: border-box;
    padding: 20px clamp(18px, 4vw, 64px) clamp(30px, 5vw, 60px);
    display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px;
}
.mm-drone-card {
    display: flex; flex-direction: column; text-align: left;
    border: 1px solid #e7e9ec; border-radius: 14px; overflow: hidden; background: #fff;
    transition: box-shadow .18s ease, transform .18s ease;
}
.mm-drone-card.is-hidden { display: none; }
.mm-drone-card:hover { box-shadow: 0 10px 26px rgba(2, 23, 56, .12); transform: translateY(-2px); }
.mm-drone-card-play { position: relative; display: block; width: 100%; padding: 0; border: 0; background: #0b1626; cursor: pointer; }
.mm-drone-card-play img { display: block; width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.mm-drone-card-play::after {
    content: ''; position: absolute; left: 50%; top: 50%; width: 44px; height: 44px; margin: -22px 0 0 -22px;
    border-radius: 999px; background: rgba(255, 255, 255, .92) url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23021738' d='M8 5.5v13l11-6.5z'/%3E%3C/svg%3E") no-repeat 55% 50%/16px 16px;
    box-shadow: 0 2px 10px rgba(2, 23, 56, .3); transition: transform .18s ease;
}
.mm-drone-card-play:hover::after { transform: scale(1.08); }
.mm-drone-card-dur {
    position: absolute; right: 8px; bottom: 8px;
    font: 700 11px/1 system-ui, sans-serif; color: #fff;
    background: rgba(2, 23, 56, .74); border-radius: 999px; padding: 3px 8px;
}
.mm-drone-card-badge {
    position: absolute; left: 8px; top: 8px;
    font: 700 10px/1 system-ui, sans-serif; letter-spacing: .06em; text-transform: uppercase;
    color: #171911; background: var(--mm-gold, #ad8b51); border-radius: 999px; padding: 4px 9px;
}
.mm-drone-card-b { padding: 11px 13px 13px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.mm-drone-card-cap { font-size: 14px; line-height: 1.4; color: #16202c; font-weight: 600; }
.mm-drone-card-links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 4px; }
.mm-drone-card-links a { font-size: 12px; color: #4a5560; text-decoration: none; border-bottom: 1px dotted #b9c0c7; }
.mm-drone-card-links a:hover { color: var(--mm-gold, #ad8b51); border-bottom-color: var(--mm-gold, #ad8b51); }
.mm-drone-hub-empty { grid-column: 1 / -1; padding: 40px 0; text-align: center; color: #6a747e; }

/* --- лайтбокс --- */
.mm-drone-lb {
    position: fixed; inset: 0; z-index: 100000; display: none;
    align-items: center; justify-content: center; padding: 20px;
    background: rgba(4, 12, 24, .88);
}
.mm-drone-lb.is-open { display: flex; }
.mm-drone-lb-box { position: relative; width: min(1080px, 100%); }
.mm-drone-lb video { display: block; width: 100%; max-height: 78vh; border-radius: 12px; background: #000; }
.mm-drone-lb-cap { margin-top: 10px; color: #e8ecf1; font-size: 14px; }
.mm-drone-lb-close {
    position: absolute; top: -14px; right: -8px; width: 38px; height: 38px;
    display: flex; align-items: center; justify-content: center;
    border: 0; border-radius: 999px; background: #fff; color: #021738;
    font: 700 20px/1 system-ui, sans-serif; cursor: pointer;
}
@media (max-width: 620px) {
    .mm-drone-lb-close { top: -46px; right: 0; }
}


/* --- v2: мобильные правки раздела /drones/ ------------------------------- */
@media (max-width: 620px) {
    .mm-drone-hub-fgroup { gap: 7px; }
    .mm-drone-chip {
        min-height: 44px;
        padding: 10px 14px;
        text-align: left;
        line-height: 1.25;
        font-size: 12.5px;
    }
    .mm-drone-hub-flabel { width: 100%; margin: 0 0 2px; }
    .mm-drone-hub-stats li { font-size: 12.5px; padding: 8px 12px; }
    .mm-cx-drone-more { min-height: 44px; }
}
