/* Load after the original v15 stylesheet. */
html.shell-dialog-open {
  overflow: hidden;
}

.drawer.open {
  overflow-y: auto;
  overscroll-behavior-y: contain;
  z-index: 75; /* Keep the active menu above the cookie notice. */
}

.drawer > a,
.drawer > .ct {
  flex-shrink: 0;
}

.model .media button.ph {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  cursor: zoom-in;
}

.scroll {
  overflow-x: auto;
}

.lbcap:not(:empty) {
  width: fit-content;
  max-width: calc(100% - 2rem);
  margin: 0 auto;
  padding: .35rem .75rem;
  background: rgba(8, 7, 5, .86);
  color: var(--ink);
  overflow-wrap: anywhere;
}

@media (max-height: 560px) {
  .drawer .x {
    position: fixed;
    z-index: 1;
    background: var(--bg);
  }
}

/* ArcticSafe: карточки моделей в каталоге */
.as-landing #models .line {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    gap: clamp(16px, 2.2vw, 28px);
    padding: 0;
    border: 0;
    background: none;
    overflow: visible;
    scroll-snap-type: none;
}
.as-landing #models .line > a {
    display: block;
    padding: clamp(14px, 1.8vw, 26px) 10px 0;
    border: 1px solid var(--line);
    background: linear-gradient(0deg, #20170f, #000 32%);
}
.as-landing #models .line > a:hover,
.as-landing #models .line > a:focus-visible {
    border-color: var(--brass);
}
.as-landing #models .line img {
    width: 100%;
    height: clamp(180px, 25vw, 360px);
    object-fit: contain;
    object-position: center bottom;
}
.as-landing #models .line .lbl {
    padding: 14px 0 18px;
}
@media (max-width: 650px) {
    .as-landing #models .line {
        grid-template-columns: 1fr;
    }
    .as-landing #models .line img {
        height: min(54vw, 30svh, 230px);
    }
}
