/* MorozMusic — фотогалереи (MMG). Desktop: rem (1rem = 1px при 1920), mobile <=768: px */
.mmg { --mmg-red:#FF1F1F; --mmg-red-h:#E51414; --mmg-dark:#282828; --mmg-muted:#8A8A8A; --mmg-gray:#F2F2F2;
  font-family:"Inter",Arial,sans-serif; letter-spacing:0; color:var(--mmg-dark); box-sizing:border-box; margin:80rem 0 0; clear:both; }
.mmg *, .mmg *::before, .mmg *::after { box-sizing:border-box; }
.mmg a { text-decoration:none; color:inherit; }
.mmg img { display:block; width:100%; height:100%; object-fit:cover; }
.mmg svg { width:22rem; height:22rem; flex:none; }
.mmg__head { display:flex; align-items:flex-end; justify-content:space-between; gap:24rem; margin-bottom:36rem; }
.mmg .mmg__title { margin:0; padding:0; font-size:35rem; line-height:1.2; font-weight:700; color:var(--mmg-dark); }
.mmg .mmg__lead { margin:8rem 0 0; font-size:16rem; line-height:1.2; color:var(--mmg-muted); }
.mmg .mmg__btn { display:inline-flex; align-items:center; gap:10rem; padding:16rem 28rem; border:0; border-radius:11rem; background:var(--mmg-red);
  color:#fff; font:500 16rem/1.2 "Inter",Arial,sans-serif; cursor:pointer; white-space:nowrap; transition:background .2s; }
.mmg .mmg__btn:hover { background:var(--mmg-red-h); }
.mmg .mmg__btn svg { width:18rem; height:18rem; }
.mmg-ph { position:relative; display:block; overflow:hidden; border-radius:24rem; background:#e9e9e9; cursor:zoom-in; }
.mmg-ph img { transition:transform .5s ease; }
.mmg-ph:hover img { transform:scale(1.04); }

/* мозаика */
.mmg-mosaic { display:grid; grid-template-columns:1fr 1fr; gap:12rem; height:612rem; }
.mmg-mosaic--n1 { grid-template-columns:1fr; }
.mmg-mosaic__grid { display:grid; grid-template-columns:1fr 1fr; grid-template-rows:1fr 1fr; gap:12rem; min-height:0; }
.mmg-mosaic--n2 .mmg-mosaic__grid { grid-template-columns:1fr; grid-template-rows:1fr; }
.mmg-mosaic--n3 .mmg-mosaic__grid { grid-template-columns:1fr; }
.mmg-cap { position:absolute; left:20rem; bottom:20rem; max-width:calc(100% - 40rem); padding:8rem 14rem; border-radius:10rem; background:rgba(255,255,255,.92);
  font-size:14rem; font-weight:500; line-height:1.2; color:var(--mmg-dark); }
.mmg-zoom { position:absolute; top:20rem; right:20rem; display:flex; align-items:center; justify-content:center; width:38rem; height:38rem;
  border-radius:11rem; background:rgba(255,255,255,.92); color:var(--mmg-dark); }
.mmg-zoom svg { width:18rem; height:18rem; }
.mmg-more { position:absolute; inset:0; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:4rem;
  background:rgba(20,20,20,.6); color:#fff; font-size:16rem; font-weight:500; }
.mmg-more b { font-size:40rem; line-height:1.2; font-weight:700; }

/* слайдер */
.mmg--slider { padding:44rem 41rem; border-radius:28rem; background:var(--mmg-gray); overflow:hidden; }
.mmg--slider .mmg__head { margin-bottom:32rem; }
.mmg__arrows { display:flex; gap:10rem; }
.mmg .mmg__arrow { display:flex; align-items:center; justify-content:center; width:52rem; height:52rem; padding:0; border:0; border-radius:11rem;
  background:var(--mmg-red); color:#fff; cursor:pointer; transition:background .2s; }
.mmg .mmg__arrow:hover:not(:disabled) { background:var(--mmg-red-h); }
.mmg .mmg__arrow:disabled { background:#fff; color:#AFAFAF; cursor:default; }
.mmg-track { display:flex; gap:20rem; overflow-x:auto; scroll-snap-type:x mandatory; scroll-behavior:smooth; scrollbar-width:none; }
.mmg-track::-webkit-scrollbar { display:none; }
.mmg-slide { flex:0 0 280rem; scroll-snap-align:start; display:flex; flex-direction:column; gap:12rem; cursor:zoom-in; }
.mmg-slide__ph { display:block; height:250rem; border-radius:20rem; overflow:hidden; background:#e4e4e4; }
.mmg-slide__ph img { transition:transform .5s ease; }
.mmg-slide:hover .mmg-slide__ph img { transform:scale(1.04); }
.mmg-slide__cap { font-size:15rem; font-weight:500; line-height:1.2; }
.mmg-dots { display:none; }
.mmg--static .mmg__arrows { visibility:hidden; }

/* портфолио */
.mmg--portfolio .mmg__head { margin-bottom:28rem; }
.mmg-tabs { display:flex; flex-wrap:wrap; gap:10rem; margin-bottom:28rem; }
.mmg .mmg-tab { margin:0; padding:12rem 20rem; border:0; border-radius:11rem; background:var(--mmg-gray); color:var(--mmg-dark);
  font:500 15rem/1.2 "Inter",Arial,sans-serif; cursor:pointer; transition:background .2s,color .2s; }
.mmg .mmg-tab:hover { background:#e6e6e6; }
.mmg .mmg-tab.is-active { background:var(--mmg-dark); color:#fff; }
.mmg-pf { display:grid; grid-template-columns:repeat(3,1fr); gap:12rem; }
.mmg-card { position:relative; display:block; height:300rem; border-radius:24rem; overflow:hidden; background:#ddd; cursor:zoom-in; }
.mmg-card.is-wide { grid-column:span 2; height:440rem; }
.mmg-card.is-tall { height:440rem; }
.mmg-card.is-hidden { display:none; }
.mmg-card img { position:absolute; inset:0; transition:transform .5s ease; }
.mmg-card:hover img { transform:scale(1.04); }
.mmg-card__grad { position:absolute; inset:0; background:linear-gradient(180deg,rgba(0,0,0,0) 45%,rgba(0,0,0,.75) 100%); }
.mmg-card__info { position:absolute; left:28rem; right:28rem; bottom:28rem; display:flex; flex-direction:column; align-items:flex-start; gap:10rem; }
.mmg-card__tag { padding:5rem 10rem; border-radius:8rem; background:#fff; color:var(--mmg-dark); font-size:12rem; font-weight:600; line-height:1.25; }
.mmg-card__title { color:#fff; font-size:20rem; font-weight:700; line-height:1.2; overflow-wrap:anywhere; hyphens:auto; display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; }
.mmg-card.is-wide .mmg-card__title { font-size:26rem; }
.mmg-card__count { position:absolute; top:20rem; right:20rem; padding:6rem 12rem; border-radius:8rem; background:rgba(20,20,20,.7); color:#fff; font-size:13rem; font-weight:600; }
.mmg-more-wrap { display:flex; justify-content:center; margin-top:28rem; }
.mmg .mmg-more-btn { padding:16rem 40rem; border:1.5rem solid var(--mmg-red); border-radius:11rem; background:transparent; color:var(--mmg-red);
  font:500 16rem/1.2 "Inter",Arial,sans-serif; cursor:pointer; transition:background .2s,color .2s; }
.mmg .mmg-more-btn:hover { background:var(--mmg-red); color:#fff; }
.mmg-more-wrap.is-done { display:none; }

/* галерея новости */
.mmg--news { margin:40rem 0; padding:32rem; border-radius:28rem; background:var(--mmg-gray); clear:both; }
.mmg-news__head { display:flex; align-items:baseline; justify-content:space-between; gap:16rem; margin-bottom:20rem; }
.mmg .mmg-news__title { margin:0; padding:0; font-size:28rem; line-height:1.2; font-weight:700; color:var(--mmg-dark); }
.mmg-news__num { font-size:15rem; font-weight:500; color:var(--mmg-muted); white-space:nowrap; }
.mmg-news__main { position:relative; border-radius:20rem; overflow:hidden; background:#ddd; aspect-ratio:796/448; }
.mmg-news__track { display:flex; height:100%; overflow-x:auto; scroll-snap-type:x mandatory; scroll-behavior:smooth; scrollbar-width:none; }
.mmg-news__track::-webkit-scrollbar { display:none; }
.mmg-news__slide { flex:0 0 100%; height:100%; scroll-snap-align:start; cursor:zoom-in; }
.mmg .mmg-news__arrow { position:absolute; top:50%; transform:translateY(-50%); display:flex; align-items:center; justify-content:center; width:52rem; height:52rem;
  padding:0; border:0; border-radius:50%; background:rgba(255,255,255,.92); color:var(--mmg-dark); cursor:pointer; transition:opacity .2s; }
.mmg .mmg-news__arrow--prev { left:20rem; } .mmg .mmg-news__arrow--next { right:20rem; }
.mmg .mmg-news__arrow:disabled { opacity:0; pointer-events:none; }
.mmg-news__counter { position:absolute; left:20rem; bottom:20rem; padding:6rem 12rem; border-radius:8rem; background:rgba(20,20,20,.7); color:#fff; font-size:14rem; font-weight:600; }
.mmg .mmg-news__full { position:absolute; top:20rem; right:20rem; display:flex; align-items:center; gap:6rem; padding:8rem 12rem; border:0; border-radius:10rem;
  background:rgba(255,255,255,.92); color:var(--mmg-dark); font:500 13rem/1.2 "Inter",Arial,sans-serif; cursor:pointer; }
.mmg .mmg-news__full svg { width:16rem; height:16rem; }
.mmg .mmg-news__cap { min-height:18rem; margin:20rem 0 0; font-size:15rem; line-height:1.4; color:var(--mmg-muted); }
.mmg .mmg-news__cap:empty { display:none; }
.mmg-news__thumbs { display:grid; grid-template-columns:repeat(6,1fr); gap:10rem; margin-top:20rem; }
.mmg .mmg-news__thumb { position:relative; height:84rem; padding:0; border:3rem solid transparent; border-radius:12rem; overflow:hidden; background:#ddd; cursor:pointer; opacity:.75; transition:opacity .2s,border-color .2s; }
.mmg .mmg-news__thumb:nth-child(n+7) { display:none; }
.mmg .mmg-news__thumb.is-active { border-color:var(--mmg-red); opacity:1; }
.mmg .mmg-news__thumb:hover { opacity:1; }
.mmg-news__plus { position:absolute; inset:0; display:flex; align-items:center; justify-content:center; background:rgba(20,20,20,.6); color:#fff; font-size:20rem; font-weight:700; }

/* полноэкранный просмотр */
.mmg-lb { position:fixed; inset:0; z-index:10050; display:flex; flex-direction:column; background:#111; color:#fff;
  font-family:"Inter",Arial,sans-serif; opacity:0; transition:opacity .2s; }
.mmg-lb[hidden] { display:none; }
.mmg-lb.is-open { opacity:1; }
.mmg-lb *, .mmg-lb *::before, .mmg-lb *::after { box-sizing:border-box; }
.mmg-lb svg { width:24rem; height:24rem; }
.mmg-lb__top { position:relative; display:flex; align-items:center; justify-content:space-between; height:104rem; padding:0 48rem; flex:none; }
.mmg-lb__count { font-size:18rem; font-weight:600; }
.mmg-lb__title { position:absolute; left:50%; transform:translateX(-50%); max-width:60%; overflow:hidden; white-space:nowrap; text-overflow:ellipsis;
  font-size:18rem; font-weight:500; color:rgba(255,255,255,.7); }
.mmg-lb button { font-family:inherit; }
.mmg-lb .mmg-lb__close, .mmg-lb .mmg-lb__arrow { display:flex; align-items:center; justify-content:center; padding:0; border:0; border-radius:50%;
  background:rgba(255,255,255,.12); color:#fff; cursor:pointer; transition:background .2s; }
.mmg-lb .mmg-lb__close:hover, .mmg-lb .mmg-lb__arrow:hover { background:rgba(255,255,255,.24); }
.mmg-lb .mmg-lb__close { width:52rem; height:52rem; }
.mmg-lb__stage { position:relative; flex:1; min-height:0; }
.mmg-lb__track { display:flex; height:100%; overflow-x:auto; scroll-snap-type:x mandatory; scrollbar-width:none; }
.mmg-lb__track::-webkit-scrollbar { display:none; }
.mmg-lb__slide { flex:0 0 100%; height:100%; display:flex; align-items:center; justify-content:center; padding:0 270rem; scroll-snap-align:center; }
.mmg-lb__slide img { max-width:100%; max-height:100%; border-radius:16rem; object-fit:contain; user-select:none; }
.mmg-lb .mmg-lb__arrow { position:absolute; top:50%; transform:translateY(-50%); width:64rem; height:64rem; }
.mmg-lb .mmg-lb__arrow--prev { left:48rem; } .mmg-lb .mmg-lb__arrow--next { right:48rem; }
.mmg-lb .mmg-lb__arrow:disabled { opacity:.25; cursor:default; }
.mmg-lb__cap { min-height:19rem; margin:20rem auto 0; max-width:900rem; padding:0 20rem; text-align:center; font-size:16rem; line-height:1.3; color:rgba(255,255,255,.75); flex:none; }
.mmg-lb__hint { display:none; }
.mmg-lb__thumbs { display:flex; justify-content:center; gap:10rem; margin:24rem auto 56rem; padding:0 20rem; max-width:100%; overflow-x:auto; scrollbar-width:none; flex:none; }
.mmg-lb__thumbs::-webkit-scrollbar { display:none; }
.mmg-lb .mmg-lb__thumb { flex:0 0 96rem; height:64rem; padding:0; border:2rem solid transparent; border-radius:10rem; overflow:hidden; background:#333; opacity:.5; cursor:pointer; transition:opacity .2s; }
.mmg-lb .mmg-lb__thumb img { width:100%; height:100%; object-fit:cover; display:block; }
.mmg-lb .mmg-lb__thumb.is-active { border-color:#FF1F1F; opacity:1; }
.mmg-lb--single .mmg-lb__arrow, .mmg-lb--single .mmg-lb__thumbs, .mmg-lb--single .mmg-lb__count { visibility:hidden; }
html.mmg-lock, html.mmg-lock body { overflow:hidden; }

@media (max-width:768px) {
  .mmg { margin:40px 0 0; }
  .mmg svg { width:20px; height:20px; }
  .mmg__head { flex-direction:column; align-items:flex-start; gap:12px; margin-bottom:16px; }
  .mmg .mmg__title { font-size:22px; }
  .mmg .mmg__lead { margin-top:4px; font-size:13px; }
  .mmg .mmg__btn { order:3; display:none; }
  .mmg-ph { border-radius:16px; }
  .mmg-mosaic { grid-template-columns:1fr; gap:10px; height:auto; }
  .mmg-mosaic__big { height:240px; }
  .mmg-mosaic__grid { gap:10px; grid-auto-rows:150px; grid-template-rows:none; }
  .mmg-mosaic--n2 .mmg-mosaic__grid, .mmg-mosaic--n3 .mmg-mosaic__grid { grid-template-columns:1fr 1fr; }
  .mmg-cap { left:12px; bottom:12px; padding:6px 10px; font-size:12px; border-radius:8px; max-width:calc(100% - 24px); }
  .mmg-zoom { top:12px; right:12px; width:30px; height:30px; border-radius:9px; }
  .mmg-zoom svg { width:15px; height:15px; }
  .mmg-more { font-size:13px; } .mmg-more b { font-size:28px; }
  .mmg--slider { padding:20px 0 16px; border-radius:20px; }
  .mmg--slider .mmg__head { padding:0 16px; margin-bottom:16px; }
  .mmg__arrows { display:none; }
  .mmg-track { gap:10px; padding:0 16px; scroll-padding:0 16px; }
  .mmg-slide { flex-basis:240px; gap:8px; }
  .mmg-slide__ph { height:180px; border-radius:14px; }
  .mmg-slide__cap { font-size:13px; }
  .mmg-dots { display:flex; gap:6px; padding:16px 16px 0; }
  .mmg-dots i { width:6px; height:6px; border-radius:3px; background:#D0D0D0; transition:width .2s,background .2s; }
  .mmg-dots i.is-active { width:18px; background:var(--mmg-red); }
  .mmg-tabs { flex-wrap:nowrap; gap:8px; margin:0 -18px 16px; padding:0 18px; overflow-x:auto; scrollbar-width:none; }
  .mmg-tabs::-webkit-scrollbar { display:none; }
  .mmg .mmg-tab { flex:none; padding:9px 14px; border-radius:10px; font-size:13px; }
  .mmg-pf { grid-template-columns:1fr 1fr; gap:10px; }
  .mmg-card, .mmg-card.is-tall { height:157px; border-radius:16px; }
  .mmg-card.is-wide { grid-column:span 2; height:220px; }
  .mmg-card__info { left:10px; right:10px; bottom:10px; gap:6px; }
  .mmg-card__tag { display:none; }
  .mmg-card.is-wide .mmg-card__tag { display:block; padding:4px 8px; border-radius:6px; font-size:11px; }
  .mmg-card__title { font-size:13px; }
  .mmg-card.is-wide .mmg-card__info { left:16px; right:16px; bottom:16px; }
  .mmg-card.is-wide .mmg-card__title { font-size:18px; }
  .mmg-card__count { top:10px; right:10px; padding:4px 8px; font-size:11px; border-radius:6px; }
  .mmg-more-wrap { margin-top:16px; }
  .mmg .mmg-more-btn { width:100%; padding:15px; border-width:1.5px; border-radius:12px; font-size:16px; }
  .mmg--news { margin:24px 0; padding:16px; border-radius:20px; }
  .mmg-news__head { margin-bottom:12px; }
  .mmg .mmg-news__title { font-size:20px; }
  .mmg-news__num { font-size:13px; }
  .mmg-news__main { border-radius:14px; aspect-ratio:292/200; }
  .mmg .mmg-news__arrow { display:none; }
  .mmg-news__counter { left:12px; bottom:12px; padding:5px 10px; font-size:12px; border-radius:7px; }
  .mmg .mmg-news__full { top:12px; right:12px; padding:7px; border-radius:9px; }
  .mmg .mmg-news__full span { display:none; }
  .mmg .mmg-news__cap { margin-top:12px; font-size:13px; }
  .mmg-news__thumbs { display:flex; gap:8px; margin:12px -16px 0; padding:0 16px; overflow-x:auto; scrollbar-width:none; }
  .mmg-news__thumbs::-webkit-scrollbar { display:none; }
  .mmg .mmg-news__thumb { flex:0 0 64px; height:48px; border-width:2px; border-radius:9px; }
  .mmg .mmg-news__thumb:nth-child(n+7) { display:block; }
  .mmg-news__plus { display:none; }
  .mmg-lb { background:#000; }
  .mmg-lb svg { width:20px; height:20px; }
  .mmg-lb__top { height:84px; padding:0 18px; }
  .mmg-lb__count { font-size:15px; }
  .mmg-lb__title { display:none; }
  .mmg-lb .mmg-lb__close { width:40px; height:40px; }
  .mmg-lb__slide { padding:0; }
  .mmg-lb__slide img { border-radius:0; }
  .mmg-lb .mmg-lb__arrow { display:none; }
  .mmg-lb__cap { margin-top:16px; font-size:14px; padding:0 18px; }
  .mmg-lb__hint { display:block; margin:12px 0 0; text-align:center; font-size:12px; font-weight:500; color:rgba(255,255,255,.45); }
  .mmg-lb__thumbs { justify-content:flex-start; gap:8px; margin:16px 0 40px; padding:0 24px; }
  .mmg-lb .mmg-lb__thumb { flex-basis:56px; height:42px; border-radius:8px; }
}

/* v1.2: фото со ссылкой */
.mmg [data-mmg-link] { cursor:pointer; }
.mmg-lb__link { display:block; width:max-content; margin:12rem auto 0; padding:10rem 20rem; border-radius:10rem; background:#FF1F1F; color:#fff !important;
  font-size:15rem; font-weight:500; text-decoration:none; flex:none; }
.mmg-lb__link[hidden] { display:none; }
.mmg-lb__link:hover { background:#E51414; }
@media (max-width:768px) { .mmg-lb__link { margin-top:10px; padding:9px 16px; border-radius:9px; font-size:14px; } }

/* v1.3: блок в разделе каталога «Наши проекты» */
.mmg-cat { grid-column:1/-1; min-width:0; }
.mmg-cat .mmg { margin:48rem 0 40rem; }
@media (max-width:768px) { .mmg-cat .mmg { margin:28px 0 24px; } }

/* v1.4: отступ до футера, когда галерея — последний блок страницы */
.mmg--slider, .mmg--portfolio { margin-bottom:120rem; }
.mmg-cat .mmg { margin:48rem 0 40rem; }
@media (max-width:768px) {
  .mmg--slider, .mmg--portfolio { margin-bottom:60px; }
  .mmg-cat .mmg { margin:28px 0 24px; }
}

/* v1.5 GAP: отступ до футера теперь задаёт общий контейнер страницы */
.mmg--slider, .mmg--portfolio { margin-bottom:0; }
