/* Общие строки subgrid выравнивают кнопки по самому длинному тексту карусели. */
.hero-banner-track { display: grid; grid-auto-flow: column; grid-auto-columns: 100%; grid-template-rows: auto auto auto; }
.hero-banner { position: relative; overflow: hidden; display: grid; grid-template-rows: auto auto auto; background: radial-gradient(ellipse at calc(50% + 400px) 55%, #163b5b 0, #10243c 32%, #0c1c31 72%); color: #fff; }
.hero-banner-track > .hero-banner { grid-row: 1 / 4; grid-template-rows: subgrid; }
.hero-banner__inner { position: relative; display: grid; grid-row: 1 / 4; grid-template-rows: subgrid; row-gap: 24px; width: 100%; min-width: 0; max-width: 1280px; margin: 0 auto; min-height: 540px; padding: 80px 32px 88px; }
.hero-banner__content { display: contents; }
.hero-banner__title { grid-row: 1; align-self: end; max-width: 672px; margin: 0; font-size: 36px; font-weight: 800; line-height: 1.15; letter-spacing: -.025em; overflow-wrap: anywhere; }
.hero-banner__subtitle { grid-row: 2; align-self: start; max-width: 540px; margin: 0; font-size: 18px; line-height: 1.55; color: #dce9fa; }
.hero-banner__actions { grid-row: 3; align-self: start; display: flex; flex-wrap: wrap; gap: 14px; }
.hero-banner__button { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 14px 22px; border: 1px solid transparent; border-radius: 8px; font-size: 16px; font-weight: 600; line-height: 1.5; text-decoration: none; transition: background-color .15s; }
.hero-banner__button--primary { background: #2563eb; color: #fff; }
.hero-banner__button--primary:hover { background: #1d4ed8; }
.hero-banner__button--secondary { border-color: #9cb1cc; background: rgba(16,35,63,.6); color: #fff; }
.hero-banner__button--secondary:hover { background: #263f61; }
.hero-banner__button:focus-visible { outline: 3px solid #facc15; outline-offset: 4px; }
/* Фотографические баннеры мягко растворяются в общем фоне, без прямоугольных краёв. */
.hero-banner__image { position: absolute; top: 0; left: 50%; width: auto; max-width: min(100%, 1920px); height: 100%; transform: translateX(-50%); object-fit: contain; object-position: center; mask-image: linear-gradient(90deg, transparent, #000 18%, #000 80%, transparent); }
/* Иллюстрация имеет собственный alpha-канал; её масштаб не зависит от ширины монитора. */
.ai-banner__artwork { position: absolute; inset: 0; max-width: 1280px; margin: 0 auto; pointer-events: none; }
.ai-banner__illustration { position: absolute; left: 48%; bottom: 8px; width: min(720px, 56vw); height: calc(100% - 24px); object-fit: contain; object-position: center bottom; }
@media (min-width: 768px) {
    .hero-banner__title { font-size: 48px; }
    .ai-banner .hero-banner__title { max-width: 48%; }
    .hero-banner__subtitle { font-size: 20px; }
    .ai-banner .hero-banner__subtitle { max-width: 44%; }
}
@media (min-width: 1024px) { .hero-banner__title { font-size: 60px; } }
@media (max-width: 767px) {
    .hero-banner__title { font-size: 28px; }
    .hero-banner__subtitle { font-size: 16px; line-height: 1.5; }
    /* Изображения служат фоном; нижний отступ оставлен только для навигации. */
    .hero-banner__inner { min-height: 360px; padding: 32px 16px 72px; row-gap: 16px; }
    .hero-banner__actions { gap: 8px; }
    .hero-banner__button { min-height: 44px; padding: 10px 8px; font-size: 13px; }
    .hero-banner__image { top: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% center; mask-image: linear-gradient(90deg, transparent, #000 45%, #000); }
    .ai-banner__illustration { left: auto; right: 0; transform: translateY(-28px); width: min(100%, 480px); height: 100%; bottom: 0; object-position: right center; }
    .ai-banner__artwork::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(12,28,49,.9), rgba(12,28,49,.74) 55%, rgba(12,28,49,.65)); }
    .hero-banner .hero-banner__shade { background: linear-gradient(90deg, rgba(12,28,49,.92), rgba(12,28,49,.8) 55%, rgba(12,28,49,.7)); }
    .hero-banner__title, .hero-banner__subtitle { text-shadow: 0 2px 8px rgba(0,0,0,.4); }
}
@media (prefers-reduced-motion: reduce) { .hero-banner__button { transition: none; } }
