/* PATCH-4 inner hero: proto-carousel style — centered photo, dark compact caption, no white plate */
.ain-hero .v3car{padding:0 14px!important;overflow:visible!important;scroll-snap-type:none!important;justify-content:center}
.ain-hero .v3car>.v3sl:only-child,.ain-hero .v3sl{flex:0 0 100%!important;max-width:100%;margin:0 auto;height:300px}
html.d .ain-hero .v3car{padding-inline:32px!important}
html.d .ain-hero .v3sl{height:380px}
.ain-hero .v3sl img{width:100%;height:100%;object-fit:cover}
.ain-hero .v3sl-t{position:absolute!important;inset:auto 0 0 0!important;max-height:35%;overflow:hidden;
 background:linear-gradient(to top,rgba(6,10,18,.92) 0,rgba(6,10,18,.72) 70%,rgba(6,10,18,0) 100%)!important;
 box-shadow:none!important;border-radius:0!important;padding:22px 16px 12px!important;gap:4px!important;color:#fff!important;backdrop-filter:none!important;
 display:flex;flex-direction:column;justify-content:flex-end}
.ain-hero .v3sl-t .v3badge{align-self:flex-start;font-size:11px!important;line-height:1.2;padding:3px 9px!important;border-radius:99px;white-space:nowrap;max-width:100%;overflow:hidden;text-overflow:ellipsis}
.ain-hero .v3sl-t .v3h1,.ain-hero .v3sl-t h1{color:#fff!important;font-size:20px!important;line-height:1.2!important;margin:0!important;
 display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;text-shadow:0 1px 3px rgba(0,0,0,.6)}
html.d .ain-hero .v3sl-t .v3h1{font-size:28px!important}
.ain-hero .v3sl-t small{display:none!important}
.ain-hero .v3sl-t em{color:#ffd54a!important;font-size:13.5px!important;font-style:normal;font-weight:800}
.ain-hero-desc{margin:10px auto 0;padding:0 14px;color:var(--muted,#9aa4b8);font-size:14px;line-height:1.5;max-width:1176px;box-sizing:border-box}
html.d .ain-hero-desc{padding-inline:max(32px,calc((100% - 1176px)/2));max-width:none}
.ain-hero .v3sl-t{padding:8px 14px 10px!important;gap:3px!important;background:linear-gradient(to top,rgba(6,10,18,.94) 0,rgba(6,10,18,.8) 75%,rgba(6,10,18,.35) 100%)!important}
.ain-hero .v3sl::after{content:"";position:absolute;inset:auto 0 35% 0;height:40px;background:linear-gradient(to top,rgba(6,10,18,.35),rgba(6,10,18,0));pointer-events:none}
.ain-hero .v3sl-t .v3h1,.ain-hero .v3sl-t h1{font-size:18px!important;line-height:1.15!important}
.ain-hero .v3sl-t .v3badge{font-size:11px!important;padding:2px 8px!important}
.ain-hero .v3sl-t em{font-size:13px!important;line-height:1.2!important}
.ain-hero .v3sl-t{max-height:none!important}
.ain-hero .v3sl-t .v3h1,.ain-hero .v3sl-t h1{font-size:17px!important;line-height:1.2!important;padding-bottom:1px}
html.d .ain-hero .v3sl-t .v3h1{font-size:24px!important}
.ain-hero .v3sl{height:320px!important}html.d .ain-hero .v3sl{height:380px!important}

/* 24.10: баннер прайса — компактная высота (перекрывает proto_match) */
html:not(:has(link[href*="games/games.css"])):not([data-arena-slug^="game"]) .ain-hero .v3sl{
  block-size:300px!important;height:300px!important;aspect-ratio:auto!important;overflow:hidden!important;
}
html:not(:has(link[href*="games/games.css"])):not([data-arena-slug^="game"]) .ain-hero .v3sl > img.ph{
  block-size:100%!important;height:100%!important;inline-size:100%!important;object-fit:cover!important;object-position:center 45%!important;
}
@media(max-width:520px){
  html:not(:has(link[href*="games/games.css"])):not([data-arena-slug^="game"]) .ain-hero .v3sl{block-size:190px!important;height:190px!important}
}

/* Логотипы брендов в шапке страниц моделей: не растягивать на всю карточку */
.v3sl img[src*="/assets/brands/"],
.v3sl img[src*="../assets/brands/"],
.ain-hero img[src*="brands/"]{
  width:auto;height:auto;max-width:56%;max-height:44%;
  object-fit:contain;position:absolute;inset:0;margin:auto;filter:none
}
@media (max-width:640px){
  .v3sl img[src*="brands/"],.ain-hero img[src*="brands/"]{max-width:64%;max-height:40%}
}


/* PCONE FIX 25.10.2026: hero на странице цен — блок текста сжимался в 64px и текст «валился» вертикально.
   Причина: proto_match ставит position:static!important, элемент становится flex-item и сжимается. */
html:not(:has(link[href*="games/games.css"])):not([data-arena-slug^="game"]) .ain-hero .v3sl-t{
  position:absolute!important; inset:auto 0 0 0!important;
  width:auto!important; flex:0 0 auto!important; max-width:none!important;
}


/* PCONE 25.10.2026: на широких экранах блоки услуг были зажаты в 1176/1130 px — используем ширину */
@media (min-width:1300px){
  html:not(:has(link[href*="games/games.css"])):not([data-arena-slug^="game"]):not([data-arena-slug^="gta"]) .ain :is(.ap-sec,.faq.sec,.ap-final,.ap-cards,.ap-seo){
    max-width:1600px!important;
  }
}
