/* АВТОЗАМ — независимые точечные улучшения, 17.11.2026 */
html { scroll-behavior: smooth; }
#catalog { scroll-margin-top: 108px; }
/* Ensure the approved hero photo touches both sides of its frame. */
.hero-visual .hero-picture, .hero-picture { display: block; width: 100%; height: auto; object-fit: cover; object-position: center; }
.az-tg-overlay { position:fixed; inset:0; background:rgba(2,9,17,.74); z-index:2200; display:flex; align-items:center; justify-content:center; padding:20px; opacity:0; transition:opacity .2s ease; }
.az-tg-overlay[hidden] { display:none!important; }
.az-tg-overlay.az-tg-visible {opacity:1}
.az-tg-dialog { width:min(750px,100%); background:#0c1b2c; color:#eef3f8; border:1px solid #41536a; border-radius:18px; display:grid; grid-template-columns:minmax(230px, 0.92fr) 1fr; position:relative; overflow:hidden; box-shadow:0 25px 80px rgba(0,0,0,.55); }
.az-tg-media { width:100%; min-height:360px; background:#0d1c29; }
.az-tg-media img {display:block; width:100%; height:100%; object-fit:cover; object-position:center; }
.az-tg-content {display:flex; flex-direction:column; gap:14px; padding:48px 34px 36px; justify-content:center;}
.az-tg-tag {color:#f79c2e; font-weight:850; letter-spacing:1.5px; font-size:11px; text-transform:uppercase}
.az-tg-dialog h2 {font-size:clamp(24px,3vw,34px); line-height:1.15; letter-spacing:-1px; margin:0}
.az-tg-dialog p {line-height:1.65;color:#bbcad9;font-size:14px; margin:0}
.az-tg-cta {display:inline-flex; align-items:center; justify-content:center; background:#ff9c2b; color:#0b1520; font-weight:850; border-radius:10px; padding:15px 17px; font-size:14px; text-align:center; text-decoration:none; min-height:48px}
.az-tg-cta:hover {background:#ffae47}
.az-tg-close { position:absolute; top:12px; right:12px; width:36px; height:36px; border:1px solid #ffffff45; border-radius:50%; background:#081522e6; color:#fff; font-size:24px; line-height:1; cursor:pointer; z-index:2; }
.az-tg-disclaimer {font-size:11px!important;color:#91a2b5!important}
@media (max-width:620px) { .az-tg-dialog {width:min(420px,100%);grid-template-columns:1fr} .az-tg-media {min-height:0;height:210px}.az-tg-content {padding:22px 22px 25px;gap:10px}.az-tg-dialog h2 {font-size:25px}.az-tg-overlay {padding:13px} }
@media (prefers-reduced-motion:reduce){.az-tg-overlay{transition:none}html{scroll-behavior:auto}}

.az-tg-dialog { max-height:calc(100dvh - 26px); overflow:auto; }

/* Keep the gallery's thumbnail strip inside the card on narrow screens. */
.detailgrid > * { min-width: 0; }
.detailgrid .thumbs { max-width: 100%; overflow-x: auto; }
@media (max-width: 480px) {
  .catalogtools { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); }
  .catalogtools > * { min-width: 0; }
  .catalogtools .select { width: 100%; text-overflow: ellipsis; }
}
