/* AutoDoc /market/show — mobile marketplace-style detail page, HF7.3.7.
   Desktop layout remains unchanged. Only <=767.98px is redesigned. */
.av-showMobileHero,
.av-showMobileDock,
.av-showMobileSpecsTitle,
.av-showMobileGalleryTools{
  display:none;
}

@media (max-width:767.98px){
  .av-showDrom{
    display:flex;
    flex-direction:column;
    gap:14px;
    padding:0 0 122px;
    margin:0;
    overflow-x:visible;
  }

  .av-showDrom__breadcrumb{
    order:0;
    margin:0 0 -2px;
    font-size:12px;
    line-height:1.35;
    flex-wrap:wrap;
  }

  .av-showDrom__preview{order:0;}
  .av-showDrom__head{display:none;}
  .av-showDrom__layout,
  .av-showDrom__main,
  .av-showDrom__side{display:contents;}

  .av-showDromGallery,
  .av-showMobileHero,
  .av-showDromInfo,
  .av-showDromSeller,
  .av-showSimilar{
    background:#fff;
    border:1px solid #e7edf7;
    border-radius:24px;
    box-shadow:0 14px 34px rgba(15,23,42,.05);
  }

  .av-showDromGallery{
    order:1;
    min-width:0;
    padding:6px 6px 6px;
    overflow:hidden;
    border-radius:16px;
  }

  .av-showDromGallery__stage{
    position:relative;
  }

  .av-showDromGallery__main{
    aspect-ratio:16/9;
    border-radius:18px;
    background:#edf3f9;
    overflow:hidden;
  }

  .av-showDromGallery__main img{
    object-fit:cover;
    object-position:center;
  }

  .av-showDromGallery__countBadge{
    position:absolute;
    top:14px;
    left:14px;
    bottom:auto;
    right:auto;
    padding:8px 14px;
    border-radius:999px;
    background:linear-gradient(135deg,#5b6ff5 0%,#4258dc 100%);
    border:0;
    box-shadow:0 8px 18px rgba(59,89,213,.24);
    color:#fff;
    font-size:14px;
    line-height:1;
    font-weight:800;
    letter-spacing:-.01em;
  }

  .av-showMobileGalleryTools{
    position:absolute;
    top:12px;
    right:12px;
    display:flex;
    gap:10px;
    z-index:3;
  }

  .av-showMobileGalleryTools__btn{
    width:40px;
    height:40px;
    border:0;
    border-radius:15px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    background:rgba(255,255,255,.94);
    color:#18243f;
    box-shadow:0 10px 26px rgba(15,23,42,.12);
    font-size:20px;
  }

  .av-showMobileGalleryTools__btn.is-active{
    color:#e35d7c;
  }

  .av-showDromGallery__thumbs{
    display:flex;
    gap:8px;
    margin:8px 0 0;
    padding:0 1px;
    overflow-x:auto;
    scrollbar-width:none;
    background:transparent;
  }
  .av-showDromGallery__thumbs::-webkit-scrollbar{display:none;}

  .av-showDromGallery__thumb{
    flex:0 0 66px;
    padding:0;
    border:2px solid transparent;
    border-radius:14px;
    background:#eef4fb;
    overflow:hidden;
    box-shadow:none;
  }

  .av-showDromGallery__thumb.is-active{
    border-color:#2e63ea;
    box-shadow:0 0 0 3px rgba(46,99,234,.12);
  }

  .av-showDromGallery__thumb img{
    aspect-ratio:1/1;
    object-fit:cover;
  }

  .av-showMobileHero{
    display:block;
    order:2;
    padding:18px 18px 16px;
  }

  .av-showMobileHero__top{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:12px;
    margin-bottom:8px;
  }

  .av-showMobileHero__price{
    color:#0f1f3b;
    font-size:clamp(28px,8.4vw,38px);
    line-height:1.02;
    font-weight:900;
    letter-spacing:-.045em;
    font-variant-numeric:tabular-nums;
  }

  .av-showMobileHero__badge{
    display:inline-flex;
    align-items:center;
    gap:7px;
    padding:9px 12px;
    border-radius:999px;
    background:#eef2ff;
    color:#2a59e4;
    font-size:13px;
    line-height:1;
    font-weight:700;
    white-space:nowrap;
  }

  .av-showMobileHero__title{
    margin:0;
    color:#132443;
    font-size:22px;
    line-height:1.18;
    font-weight:850;
    letter-spacing:-.03em;
    overflow-wrap:anywhere;
  }

  .av-showMobileHero__meta{
    display:flex;
    flex-wrap:wrap;
    gap:9px 14px;
    margin:10px 0 14px;
    color:#657790;
    font-size:13px;
    line-height:1.25;
  }

  .av-showMobileHero__meta span{
    display:inline-flex;
    align-items:center;
    gap:6px;
  }

  .av-showMobileHero__meta i{
    color:#90a1bc;
  }

  .av-showMobileHero__facts{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:10px;
  }

  .av-showMobileHero__factCard{
    min-height:88px;
    padding:14px 12px;
    border:1px solid #e7edf7;
    border-radius:18px;
    background:#f8fafe;
    display:flex;
    flex-direction:column;
    justify-content:flex-start;
    gap:6px;
  }

  .av-showMobileHero__factCard span{
    color:#7e90a8;
    font-size:12px;
    line-height:1.15;
  }

  .av-showMobileHero__factCard strong{
    color:#11223f;
    font-size:20px;
    line-height:1.05;
    font-weight:800;
    letter-spacing:-.02em;
    overflow-wrap:anywhere;
  }

  .av-showMobileHero__factCard em{
    color:#2d9a52;
    font-style:normal;
    font-size:13px;
    line-height:1.1;
    font-weight:700;
  }

  .av-showDromInfo{
    order:3;
    padding:18px;
  }

  .av-showDromInfo__priceRow,
  .av-showDromInfo__chips{display:none;}

  .av-showMobileSpecsTitle{
    display:block;
    margin:0 0 14px;
    color:#14243f;
    font-size:18px;
    line-height:1.2;
    font-weight:850;
    letter-spacing:-.02em;
  }

  .av-showDromSpecs{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:10px;
  }

  .av-showDromSpecs__row{
    min-height:92px;
    display:flex;
    flex-direction:column;
    align-items:flex-start;
    justify-content:flex-start;
    gap:8px;
    padding:15px 13px;
    border:1px solid #e7edf7;
    border-radius:18px;
    background:#f8fafe;
  }

  .av-showDromSpecs__row:last-child{border-bottom:1px solid #e7edf7;}

  .av-showDromSpecs__row span{
    color:#8192aa;
    font-size:12px;
    line-height:1.15;
  }

  .av-showDromSpecs__row strong{
    color:#10213f;
    font-size:15px;
    line-height:1.22;
    font-weight:800;
    text-align:left;
    overflow-wrap:anywhere;
  }

  .av-showDromDescription{
    margin-top:16px;
    padding-top:16px;
    border-top:1px solid #edf1f7;
    color:#23344f;
    line-height:1.6;
    font-size:14px;
  }

  .av-showDromDescription .av-showDrom__sectionTitle{
    margin-bottom:8px;
    color:#22334f;
    font-size:16px;
    font-weight:800;
  }

  .av-showDromSeller{
    order:4;
    padding:18px;
  }

  .av-showDromSeller__top{
    align-items:flex-start;
    gap:12px;
    margin-bottom:14px;
  }

  .av-showDrom__sectionTitle{
    color:#667a94;
    font-size:14px;
    font-weight:700;
  }

  .av-showDromSeller__name,
  .av-showDromSeller__top strong{
    display:block;
    margin-top:4px;
    color:#10213f;
    font-size:18px;
    line-height:1.18;
    font-weight:850;
    text-decoration:none;
  }

  .av-showDromSeller__type{
    margin-top:4px;
    color:#6f839d;
    font-size:14px;
    line-height:1.2;
  }

  .av-showDromSeller__avatar{
    flex:0 0 48px;
    width:48px;
    height:48px;
    border-radius:50%;
    font-size:22px;
  }

  .av-showDromSeller__badge{
    margin-bottom:14px;
  }

  .av-showDromSeller__facts{
    gap:0;
    margin-bottom:14px;
  }

  .av-showDromSeller__facts div{
    padding:12px 0;
    border-bottom:1px solid #edf1f7;
    display:grid;
    grid-template-columns:minmax(0,1fr) auto;
    gap:8px;
    align-items:center;
  }

  .av-showDromSeller__facts div:last-child{border-bottom:0;}

  .av-showDromSeller__facts span{
    color:#7487a1;
    font-size:14px;
  }

  .av-showDromSeller__facts strong{
    color:#132340;
    font-size:14px;
    text-align:right;
    font-weight:700;
  }

  .av-showDromContact{
    gap:12px;
  }

  .av-showDromPhone{
    font-size:18px;
    line-height:1.15;
    font-weight:850;
    letter-spacing:-.02em;
    color:#101f3b;
  }

  .av-showDromPrimary{
    min-height:52px;
    border-radius:16px;
    font-size:16px;
    font-weight:800;
  }

  .av-showDromNote{
    font-size:14px;
  }

  .av-showDrom__links{
    order:5;
    display:grid;
    grid-template-columns:1fr;
    gap:10px;
    margin:0;
    padding:2px 4px 0;
  }

  .av-showDrom__textAction{
    min-height:48px;
    justify-content:flex-start;
    padding:14px 16px;
    border:1px solid #e7edf7;
    border-radius:16px;
    background:#fff;
    color:#295fe9;
    font-size:16px;
    font-weight:700;
  }

  .av-showDrom__textAction i{
    font-size:18px;
  }

  .av-showDrom__textAction.is-active{
    color:#1f4fd1;
    background:#f8fbff;
  }

  .av-showSimilar{order:6;}

  .av-showMobileDock{
    position:fixed;
    z-index:2250;
    left:0;
    right:0;
    bottom:calc(66px + env(safe-area-inset-bottom));
    display:flex;
    align-items:center;
    gap:12px;
    padding:12px max(14px,env(safe-area-inset-left)) 12px max(14px,env(safe-area-inset-right));
    background:rgba(255,255,255,.97);
    border-top:1px solid #e7edf7;
    box-shadow:0 -12px 30px rgba(15,23,42,.08);
    backdrop-filter:blur(18px);
    -webkit-backdrop-filter:blur(18px);
  }

  .av-showMobileDock__price{
    min-width:0;
    color:#10203a;
    font-size:17px;
    line-height:1.06;
    font-weight:900;
    letter-spacing:-.025em;
    white-space:nowrap;
  }

  .av-showMobileDock__price small{
    display:block;
    margin-top:4px;
    color:#8a99ae;
    font-size:11px;
    font-weight:500;
    letter-spacing:0;
  }

  .av-showMobileDock__call{
    flex:1;
    min-width:0;
    min-height:50px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:9px;
    padding:10px 14px;
    border:0;
    border-radius:16px;
    background:linear-gradient(135deg,#2f66ed 0%,#2757e2 100%);
    color:#fff;
    font-size:16px;
    font-weight:800;
    text-align:center;
    text-decoration:none;
    box-shadow:0 10px 24px rgba(37,99,235,.22);
  }

  .av-showMobileDock__call:active,
  .av-showMobileDock__call:hover{
    color:#fff;
    background:linear-gradient(135deg,#295fe9 0%,#1e4fd3 100%);
  }

  body.modal-open .av-showMobileDock,
  body.av-mobile-menu-open .av-showMobileDock{display:none;}
}

@media (max-width:389.98px){
  .av-showDromGallery{padding:7px 7px 9px;border-radius:20px;}
  .av-showDromGallery__main{border-radius:16px;}
  .av-showDromGallery__thumb{flex-basis:60px;}
  .av-showMobileHero,
  .av-showDromInfo,
  .av-showDromSeller{padding:16px 15px;}
  .av-showMobileHero__price{font-size:30px;}
  .av-showMobileHero__facts,
  .av-showDromSpecs{gap:8px;}
  .av-showMobileHero__factCard,
  .av-showDromSpecs__row{padding:13px 11px; border-radius:16px;}
  .av-showMobileDock__price{font-size:15px;}
  .av-showMobileDock__call{font-size:14px;}
}


/* HF7.3.8 — mobile density, gallery counter, and single-price CTA fix.
   The base selector `.av-showDromGallery__main span` is more specific than
   `.av-showDromGallery__countBadge`; four insets previously stretched it. */
@media (max-width:767.98px){
  .av-showDromGallery__main > .av-showDromGallery__countBadge{
    position:absolute;
    top:12px;
    left:12px;
    right:auto;
    bottom:auto;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:max-content;
    height:auto;
    max-width:calc(100% - 24px);
    padding:7px 11px;
    border-radius:999px;
    background:rgba(38,60,121,.82);
    color:#fff;
    font-size:12px;
    font-weight:750;
    line-height:1.1;
    white-space:nowrap;
    backdrop-filter:blur(6px);
  }

  .av-showMobileHero__price{font-size:28px;}
  .av-showMobileHero__title{font-size:19px;line-height:1.23;}
  .av-showMobileHero__badge{font-size:11px;padding:7px 9px;}
  .av-showMobileHero__facts{gap:8px;}
  .av-showMobileHero__factCard{
    min-height:64px;
    padding:10px 11px;
    gap:4px;
    border-radius:13px;
  }
  .av-showMobileHero__factCard span{font-size:11px;line-height:1.1;}
  .av-showMobileHero__factCard strong{font-size:14px;line-height:1.17;font-weight:750;}
  .av-showMobileHero__factCard em{font-size:11px;line-height:1.1;}

  .av-showMobileSpecsTitle{font-size:16px;margin-bottom:8px;}
  .av-showDromInfo .av-showDromSpecs{display:block;}
  .av-showDromInfo .av-showDromSpecs__row{
    display:flex;
    flex-direction:row;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    min-height:0;
    padding:10px 0;
    border:0;
    border-bottom:1px solid #e9eef6;
    border-radius:0;
    background:transparent;
  }
  .av-showDromInfo .av-showDromSpecs__row:last-child{border-bottom:0;}
  .av-showDromInfo .av-showDromSpecs__row span{
    color:#7889a2;
    font-size:13px;
    line-height:1.25;
  }
  .av-showDromInfo .av-showDromSpecs__row strong{
    max-width:65%;
    color:#172641;
    font-size:13px;
    font-weight:700;
    line-height:1.3;
    text-align:right;
    overflow-wrap:anywhere;
  }
}
@media (max-width:389.98px){
  .av-showMobileHero__price{font-size:26px;}
  .av-showMobileHero__title{font-size:18px;}
  .av-showMobileHero__factCard{padding:9px 10px;}
  .av-showMobileHero__factCard strong{font-size:13px;}
}

/* HF7.3.9 — price in sticky contact bar only, at a restrained larger size. */
@media (max-width:767.98px){
  .av-showMobileHero__badgeRow{margin-top:9px;}
  .av-showMobileDock{padding:9px max(14px,env(safe-area-inset-left)) 9px max(14px,env(safe-area-inset-right));}
  .av-showMobileDock__price{flex:0 0 auto;font-size:19px;line-height:1.12;}
  .av-showMobileDock__price small{font-size:10px;}
  .av-showMobileDock__call{flex:1 1 auto;min-width:0;min-height:48px;font-size:14px;}
}
@media (max-width:389.98px){
  .av-showMobileDock__price{font-size:17px;}
  .av-showMobileDock__call{font-size:13px;padding-inline:9px;}
}

/* HF7.3.10 — mobile contact dock: price is primary, action is secondary.
   Only the visual hierarchy changes; the original phone reveal/tel handlers remain. */
@media (max-width:767.98px){
  .av-showMobileDock{
    gap:12px;
    padding:9px max(13px,env(safe-area-inset-left)) 9px max(13px,env(safe-area-inset-right));
    background:#fff;
    box-shadow:0 -5px 17px rgba(15,23,42,.045);
  }
  .av-showMobileDock__price{
    flex:1 1 auto;
    font-size:22px;
    line-height:1.15;
    font-weight:850;
    color:#111e36;
    letter-spacing:-.035em;
  }
  .av-showMobileDock__price small{display:none;}
  .av-showMobileDock__call{
    box-sizing:border-box;
    flex:0 0 auto;
    width:auto;
    min-height:40px;
    padding:8px 13px;
    gap:6px;
    border:1px solid #d2def7;
    border-radius:12px;
    background:#edf3ff;
    color:#2a55b8;
    font-size:13px;
    font-weight:700;
    box-shadow:none;
    text-decoration:none;
  }
  .av-showMobileDock__call:hover,
  .av-showMobileDock__call:active{
    background:#e4edff;
    color:#204aa9;
  }
}
@media (max-width:360px){
  .av-showMobileDock{gap:8px;padding-inline:10px;}
  .av-showMobileDock__price{font-size:20px;}
  .av-showMobileDock__call{font-size:12px;padding-inline:10px;}
}


/* HF7.3.11 — mobile gallery proportions and density.
   Make the gallery less bulky, keep more of the car in frame, and lighten the nested-card feel. */
@media (max-width:767.98px){
  .av-showDromGallery,
  .av-showMobileHero,
  .av-showDromInfo,
  .av-showDromSeller,
  .av-showSimilar{
    box-shadow:0 10px 24px rgba(15,23,42,.045);
  }

  .av-showDromGallery__thumb img{
    display:block;
    width:100%;
  }
}
@media (max-width:389.98px){
  .av-showMobileGalleryTools{gap:8px;}
  .av-showMobileGalleryTools__btn{width:38px;height:38px;}
}


/* HF7.3.12 — mobile gallery concept v2: 16:9 hero, less chrome, no thumb strip on first screen. */
@media (max-width: 767.98px){
  .av-showDromGallery{
    padding:4px 4px 2px;
    border-radius:18px;
    box-shadow:none;
  }

  .av-showDromGallery__main{
    aspect-ratio:16 / 9;
    border-radius:16px;
  }

  .av-showDromGallery__main img{
    object-fit:cover;
    object-position:center center;
  }

  .av-showDromGallery__thumbs{
    display:none;
  }

  .av-showMobileGalleryTools{
    top:10px;
    right:10px;
    gap:8px;
  }

  .av-showMobileGalleryTools__btn{
    width:38px;
    height:38px;
    box-shadow:0 10px 24px rgba(15,23,42,.10);
  }

  .av-showGalleryCount{
    top:10px;
    left:10px;
    padding:6px 12px;
    font-size:15px;
    min-width:56px;
  }

  .av-showMobileHero{
    margin-top:10px;
    padding-top:18px;
  }

  .av-showMobileHero__title{
    margin-bottom:10px;
  }
}

@media (max-width: 389.98px){
  .av-showDromGallery{
    padding:4px 4px 1px;
    border-radius:16px;
  }

  .av-showDromGallery__main{
    border-radius:14px;
  }

  .av-showMobileGalleryTools__btn{
    width:36px;
    height:36px;
  }

  .av-showGalleryCount{
    padding:5px 11px;
    font-size:14px;
  }
}


/* HF7.3.13 — full-bleed mobile gallery (Ozon-style). Keep 16:9,
   the existing swipe, lightbox, favorite/share tools and sticky price unchanged.
   The page content has 10px gutters at <=575px and 12px at 576–767px. */
@media (max-width:767.98px){
  .av-showDrom{
    overflow-x:visible;
  }
  .av-showDromGallery{
    box-sizing:border-box;
    flex-shrink:0;
    align-self:stretch;
    width:calc(100% + 24px);
    max-width:none;
    margin-left:-12px;
    margin-right:-12px;
    padding:0;
    border:0;
    border-radius:0;
    background:transparent;
    box-shadow:none;
    overflow:visible;
  }
  .av-showDromGallery__stage{
    width:100%;
  }
  .av-showDromGallery__main{
    display:block;
    width:100%;
    aspect-ratio:16/9;
    border-radius:0;
    overflow:hidden;
    background:#edf3f9;
  }
  .av-showDromGallery__main img{
    width:100%;
    height:100%;
    object-fit:cover;
    object-position:center;
  }
  .av-showMobileGalleryTools{
    top:12px;
    right:12px;
  }
  .av-showDromGallery__main > .av-showDromGallery__countBadge{
    top:12px;
    left:12px;
  }
  .av-showMobileHero{
    margin-top:0;
  }
}
@media (max-width:575.98px){
  .av-showDromGallery{
    width:calc(100% + 20px);
    margin-left:-10px;
    margin-right:-10px;
  }
}


/* HF7.3.14 — mobile gallery navigation: back button and photo count in one row.
   Breadcrumbs remain in HTML for desktop; the existing lightbox and CTA are unchanged. */
.av-showMobileBack{display:none;}
@media (max-width:767.98px){
  .av-showDrom__breadcrumb{display:none;}
  .av-showMobileBack{
    position:absolute;
    z-index:4;
    top:12px;
    left:12px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:38px;
    height:38px;
    border-radius:50%;
    border:1px solid rgba(230,235,246,.8);
    background:rgba(255,255,255,.95);
    box-shadow:0 6px 18px rgba(15,23,42,.12);
    color:#14243f;
    font-size:21px;
    text-decoration:none;
    -webkit-tap-highlight-color:transparent;
  }
  .av-showMobileBack:hover,.av-showMobileBack:focus-visible{
    color:#2454c2;
    background:#fff;
  }
  .av-showMobileBack:focus-visible{
    outline:2px solid #295fe9;
    outline-offset:2px;
  }
  .av-showDromGallery__main > .av-showDromGallery__countBadge{
    left:58px;
    top:17px;
    bottom:auto;
    right:auto;
    height:auto;
    min-height:27px;
    min-width:0;
    padding:6px 10px;
    font-size:12px;
    line-height:15px;
    white-space:nowrap;
  }
}
@media (max-width:360px){
  .av-showMobileBack{width:36px;height:36px;}
  .av-showDromGallery__main > .av-showDromGallery__countBadge{
    left:56px;
    top:16px;
  }
}


/* HF7.3.15 — calmer gallery controls, taller mobile photo, no header/photo gap.
   This stylesheet is loaded only for /market/show. Desktop is unaffected. */
@media (max-width:767.98px){
  .av-main-content{padding-top:0;}

  .av-showDromGallery__main{
    aspect-ratio:3 / 2;
  }

  /* Keep the image as an immersive edge-to-edge photo; full image remains
     available in the existing lightbox. */
  .av-showDromGallery__main img{
    object-fit:cover;
    object-position:center;
  }

  .av-showMobileBack{
    top:10px;
    left:10px;
    width:38px;
    height:38px;
    border:1px solid rgba(255,255,255,.58);
    background:rgba(255,255,255,.87);
    box-shadow:0 2px 8px rgba(15,23,42,.075);
    color:#23334d;
    font-size:17px;
    backdrop-filter:blur(5px);
  }
  .av-showMobileGalleryTools{
    top:10px;
    right:10px;
    gap:7px;
  }
  .av-showMobileGalleryTools__btn{
    width:38px;
    height:38px;
    border:1px solid rgba(255,255,255,.58);
    border-radius:50%;
    background:rgba(255,255,255,.87);
    box-shadow:0 2px 8px rgba(15,23,42,.075);
    color:#263751;
    font-size:17px;
    backdrop-filter:blur(5px);
  }
  .av-showDromGallery__main > .av-showDromGallery__countBadge{
    top:16px;
    left:54px;
    min-height:0;
    padding:5px 9px;
    font-size:11px;
    font-weight:650;
    line-height:14px;
    background:rgba(15,23,42,.55);
    backdrop-filter:blur(5px);
  }
}
@media (max-width:360px){
  .av-showMobileBack{width:36px;height:36px;left:9px;top:9px;}
  .av-showMobileGalleryTools{top:9px;right:9px;gap:6px;}
  .av-showMobileGalleryTools__btn{width:36px;height:36px;}
  .av-showDromGallery__main > .av-showDromGallery__countBadge{left:51px;top:14px;}
}


/* HF7.3.16 — mobile full-width page sections.
   Keeps the approved 3:2 edge-to-edge gallery and the 7.3.10 price/contact dock.
   Split existing detail/description content without duplicating any data. */
@media (max-width:767.98px){
  .av-showDrom{
    gap:0;
    padding-bottom:122px;
  }

  /* The outer info section has two independent visual sections on mobile.
     It remains a regular container on desktop. */
  .av-showDromInfo{display:contents;}

  .av-showMobileHero,
  .av-showDromInfo__details,
  .av-showDromDescription,
  .av-showDromSeller,
  .av-showDrom__links,
  .av-showSimilar{
    box-sizing:border-box;
    flex-shrink:0;
    align-self:stretch;
    width:calc(100% + 24px);
    max-width:none;
    margin-left:-12px;
    margin-right:-12px;
    margin-bottom:0;
    border:0;
    border-top:8px solid #edf2f8;
    border-radius:0;
    background:#fff;
    box-shadow:none;
  }

  .av-showMobileHero{
    order:2;
    margin-top:0;
    padding:19px 18px 21px;
  }
  .av-showDromInfo__details{
    order:3;
    padding:19px 18px 20px;
  }
  .av-showDromDescription{
    order:4;
    margin-top:0;
    padding:20px 18px 22px;
    font-size:14px;
    line-height:1.6;
  }
  .av-showDromDescription .av-showDrom__sectionTitle{
    margin-bottom:10px;
    color:#172642;
    font-size:16px;
    font-weight:800;
  }
  .av-showDromSeller{
    order:5;
    padding:19px 18px 22px;
  }
  .av-showDrom__links{
    order:6;
    display:grid;
    grid-template-columns:1fr;
    gap:2px;
    margin-top:0;
    padding:10px 18px 18px;
  }
  .av-showDrom__textAction{
    border:0;
    border-radius:0;
    min-height:46px;
    padding:12px 0;
    background:transparent;
  }
  .av-showSimilar{
    order:7;
    margin-top:0;
    padding:20px 18px 24px;
  }

  /* Keep the spec rows and chips in the approved HF7.3.15 appearance. */
}

@media (max-width:575.98px){
  .av-showMobileHero,
  .av-showDromInfo__details,
  .av-showDromDescription,
  .av-showDromSeller,
  .av-showDrom__links,
  .av-showSimilar{
    width:calc(100% + 20px);
    margin-left:-10px;
    margin-right:-10px;
  }
}

@media (max-width:389.98px){
  .av-showMobileHero,
  .av-showDromInfo__details,
  .av-showDromDescription,
  .av-showDromSeller{padding-left:16px;padding-right:16px;}
  .av-showDrom__links{padding-left:16px;padding-right:16px;}
  .av-showSimilar{padding-left:16px;padding-right:16px;}
}


/* HF7.3.17 — marketplace mobile cleanup. Gallery and fixed price dock unchanged. */
.av-showMobileSellerStrip{display:none;}
@media (max-width:767.98px){
  /* Only one effective bottom gap, instead of stacking the layout's 96px and card's 122px. */
  .av-showDrom{padding-bottom:16px;}
  .av-main-content{padding-bottom:48px;}

  /* Full specs remain accessible on desktop; mobile omits values already in summary tiles. */
  .av-showDromInfo .av-showDromSpecs__row.av-showDromSpecs__row--mobileRepeated{
    display:none;
  }
  .av-showDromInfo__details{padding-top:17px;padding-bottom:17px;}

  /* One primary contact action in the approved sticky bar; underlying button is
     intentionally retained for its existing CSRF-protected reveal handler. */
  .av-showDromSeller__top,
  .av-showDromSeller__badge,
  .av-showDromSeller__facts,
  .av-showDromSeller .av-showDromContact[data-has-phone="1"]{
    display:none;
  }

  .av-showDromSeller{
    padding:0;
    min-height:0;
  }
  .av-showMobileSellerStrip{
    display:flex;
    align-items:center;
    gap:13px;
    padding:18px;
    min-height:90px;
    width:100%;
    background:#fff;
    color:#14233f;
    text-decoration:none;
    -webkit-tap-highlight-color:transparent;
  }
  a.av-showMobileSellerStrip:hover,
  a.av-showMobileSellerStrip:focus-visible{color:#14233f;background:#f9fbff;}
  a.av-showMobileSellerStrip:focus-visible{outline:2px solid #2c65e8;outline-offset:-2px;}
  .av-showMobileSellerStrip__avatar{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    flex:0 0 46px;
    width:46px;height:46px;
    border-radius:50%;
    background:#edf2ff;
    color:#4f46e5;
    font-size:19px;
    font-weight:800;
  }
  .av-showMobileSellerStrip__content{
    display:flex;
    flex-direction:column;
    gap:3px;
    flex:1 1 auto;
    min-width:0;
  }
  .av-showMobileSellerStrip__eyebrow{color:#8898ad;font-size:11px;line-height:1.15;}
  .av-showMobileSellerStrip__name{
    color:#14233f;
    font-size:16px;
    line-height:1.25;
    font-weight:800;
    overflow-wrap:anywhere;
  }
  .av-showMobileSellerStrip__meta{color:#6c7c93;font-size:12px;line-height:1.3;overflow-wrap:anywhere;}
  .av-showMobileSellerStrip__arrow{color:#a3b2c6;flex:0 0 auto;font-size:15px;}
  .av-showDromSeller .av-showDromContact[data-has-phone="0"]{
    display:block;
    margin:0;
    padding:0 18px 14px;
  }
  .av-showDromSeller .av-showDromContact[data-has-phone="0"] .av-showDromNote{
    padding:0;
    background:transparent;
  }

  /* Favorite and share are already available over the photo. Keep reporting. */
  .av-showDrom__textAction:not(.av-showDrom__textAction--report){display:none;}
  .av-showDrom__links{
    padding:8px 18px;
    gap:0;
  }
  .av-showDrom__textAction--report{
    min-height:36px;
    padding:5px 0;
    color:#72829b;
    font-size:13px;
    font-weight:600;
    gap:8px;
  }
  .av-showDrom__textAction--report i{font-size:15px;}

  /* Compact related listings; source photos are untouched. */
  .av-showSimilar{padding-top:16px;padding-bottom:20px;}
  .av-showSimilar__grid{gap:10px;}
  .av-showSimilarCard{border-radius:12px;box-shadow:none;padding-bottom:10px;}
  .av-showSimilarCard img{aspect-ratio:5 / 4;object-fit:cover;}
  .av-showSimilarCard span,
  .av-showSimilarCard strong,
  .av-showSimilarCard em{margin-left:9px;margin-right:9px;}
  .av-showSimilarCard span{margin-top:7px;font-size:12px;line-height:1.32;}
  .av-showSimilarCard strong{margin-top:4px;font-size:14px;line-height:1.2;}
  .av-showSimilarCard em{font-size:12px;}
}
@media (max-width:389.98px){
  .av-showMobileSellerStrip{padding:16px;gap:11px;}
  .av-showDrom__links{padding-left:16px;padding-right:16px;}
}


/* HF7.3.18 — one compact disclosure for the full spec list.
   Existing desktop table stays fully visible. JS adds the collapsible marker
   after it starts, so without JS the details are still readable. */
.av-showMobileSpecsToggle{display:none;}
@media (max-width:767.98px){
  .av-showMobileSpecsToggle.is-ready{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    width:100%;
    min-height:44px;
    margin-top:13px;
    padding:11px 0 0;
    border:0;
    border-top:1px solid #e9eef5;
    border-radius:0;
    background:transparent;
    color:#2e5cbe;
    font-size:14px;
    font-weight:750;
    line-height:1.3;
    text-align:left;
    cursor:pointer;
  }
  .av-showMobileSpecsToggle i{
    flex:0 0 auto;
    transition:transform .18s ease;
    font-size:14px;
  }
  .av-showMobileSpecsToggle[aria-expanded="true"] i{transform:rotate(180deg);}
  .av-showMobileSpecsToggle:focus-visible{
    outline:2px solid #2e65ed;
    outline-offset:3px;
    border-radius:4px;
  }

  /* The expanded list occupies its own full-width section below summary. */
  .av-showDromInfo__details.av-showDromInfo__details--collapsible:not(.is-expanded){
    display:none;
  }
  .av-showDromInfo__details.av-showDromInfo__details--collapsible.is-expanded{
    display:block;
  }
  /* The disclosure itself already says "Все характеристики". */
  .av-showDromInfo__details.is-expanded .av-showMobileSpecsTitle{
    display:none;
  }
  .av-showDromInfo .av-showDromInfo__details.is-expanded .av-showDromSpecs__row.av-showDromSpecs__row--mobileRepeated{
    display:flex;
  }

  /* Previously the 16px show-page gap and 48px app-content gap stacked up
     into a large pale strip between similar listings and the legal footer.
     The existing legal footer has its own mobile bottom safe area. */
  .av-showDrom{padding-bottom:0;}
  .av-main-content{padding-bottom:0;}
}
