/* Photographs blend into the white page without a rectangular frame. */
.main__image > img,
img[src*="/generated/"],
.photo-soft {
  display: block;
  max-width: 100%;
  height: auto;
  background: #fff;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent), linear-gradient(to bottom, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent), linear-gradient(to bottom, transparent, #000 8%, #000 92%, transparent);
  mask-composite: intersect;
}
.main__image { background: #fff; min-width: 0; grid-template-columns: minmax(0, 1fr) minmax(0, 3fr); }
.main__image > img { width: 100%; min-width: 0; }
.main__form { width: 100%; min-width: 0; }
.main__form_select, .main__form .form__inp, .main__form .form__btn { min-width: 0; max-width: 100%; }
.sotrudniki_elem > .-img img { width: 100%; height: 400px; object-fit: contain; }
.vyezd__content { gap: clamp(24px, 4vw, 64px); align-items: start; }
.vyezd__text.delivery-geography { max-height: none; overflow: visible; min-width: 0; }
.delivery-geography__intro { grid-column: 1 / -1; line-height: 1.5; margin: 0 0 12px; }
.delivery-geography__place { margin: 0; line-height: 1.45; overflow-wrap: anywhere; }
.delivery-geography__place a { text-decoration: underline; text-underline-offset: 3px; }
.delivery-geography__map { font-size: 13px; white-space: nowrap; }
.delivery-geography__note { grid-column: 1 / -1; margin: 16px 0 0; line-height: 1.5; color: #555; }
@media (max-width: 1000px) {
  .main__image { grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 24px; }
  .vyezd__content { flex-direction: column; align-items: stretch; }
  .vyezd__img { width: 100%; max-width: 520px; margin: 0 auto; }
  .vyezd__text.delivery-geography { width: 100%; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
  .vyezd__text.delivery-geography { grid-template-columns: minmax(0, 1fr); }
}

/* Mobile layout corrections, 2026-11-23. */
.portfolio_slider { min-width: 0; max-width: 100%; }
.portfolio_slider_elem img { max-width: 100%; height: auto; }
[id] { scroll-margin-top: 72px; }
@media (max-width: 767px) {
  html, body { overflow-x: clip; }
  .portfolio_slider { width: 100%; }
  .akcii__content { min-width: 0; max-width: 100%; }
  .cookie-note {
    box-sizing: border-box;
    left: 8px;
    right: 8px;
    bottom: calc(56px + env(safe-area-inset-bottom, 0px));
    transform: none;
    width: auto;
    max-width: none;
    max-height: calc(100vh - 88px - env(safe-area-inset-bottom, 0px));
    max-height: calc(100dvh - 88px - env(safe-area-inset-bottom, 0px));
    overflow-y: auto;
    padding: 14px 16px;
    gap: 12px;
  }
  .cookie-note p { min-width: 0; flex-basis: 100%; overflow-wrap: anywhere; }
  .cookie-note__btn { width: 100%; min-width: 0; }
}
