@layer controller {
  
}

@media (max-width: 800px){

  html[data-page="region"] .page{
    padding-top: 10px;
  }

  html[data-page="region"] .main{
    display: flex;
    flex-direction: column;
    gap: 12px;
    height: auto !important;
    min-height: 0;
  }

  /* 1) Карта сверху — 40% экрана */
  html[data-page="region"] .left.map-section{
    flex: 0 0 auto !important;
    width: 100% !important;
    margin: 0 !important;
    overflow: hidden;
    border-radius: 16px;
    background: #000;
  }

  html[data-page="region"] .left.map-section #map{
    width: 100%;
    height: 40svh !important;
    min-height: 220px;
    max-height: 380px;
    border-radius: 16px;
    overflow: hidden;
  }

  html[data-page="region"] .right{
    width: 100% !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow: visible;
  }

  html[data-page="region"] .right > .top,
  html[data-page="region"] .right > .bottom{
    margin: 0 !important;
    padding: 0 !important;
  }

  /* Описание */
  html[data-page="region"] .right .top .wrap.top-sections{
    border-radius: 12px;
    padding: 12px;
  }

  html[data-page="region"] .right .section-title{
    margin: 0 0 8px;
    font-size: 22px;
    line-height: 1.05;
  }

  html[data-page="region"] .right .section-text{
    font-size: 14px;
    line-height: 1.5;
    max-height: none !important;
    overflow: visible !important;
  }

  html[data-page="region"] aside{
    order: 0;
    flex: 0 0 auto !important;
    width: 100%;
    max-height: none !important;
    height: auto !important;
    overflow: visible !important;
    margin: 0 12px !important;
  }

  html[data-page="region"] aside > div,
  html[data-page="region"] aside > div > div{
    height: auto !important;
    max-height: none !important;
  }

  html[data-page="region"] aside .gallery-card{
    margin: 0;
  }

  html[data-page="region"] .right > .bottom .wrap.middle{
    border-radius: 12px;
    min-height: 96px;
  }

  html[data-page="region"] .right > .bottom{
    padding-bottom: calc(var(--mob-tabbar-h) + env(safe-area-inset-bottom) + 8px);
  }