/* iNSTALL SOUND Pro — homepage refinement v7
   Final visual tuning requested: proportionate hero subtitle and brighter blue feature cards.
   Dark equipment/service sections, QR lightbox, navigation and all other pages remain unchanged. */

/* AV СИСТЕМЫ: scale the complete line so its left and right edges align with SOUND Pro. */
#slider .isp-hero-subtitle {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: baseline !important;
  justify-content: space-between !important;
  box-sizing: border-box;
  width: calc(var(--isp-hero-title-size) * 5.58) !important;
  max-width: calc(100% - (var(--isp-hero-title-size) * 3.95)) !important;
  margin-top: 7px !important;
  margin-right: 0 !important;
  margin-bottom: 0 !important;
  margin-left: calc(var(--isp-hero-title-size) * 3.95) !important;
  padding: 0 !important;
  font-size: calc(var(--isp-hero-title-size) * .80) !important;
  font-weight: 650 !important;
  line-height: 1.06 !important;
  letter-spacing: .035em !important;
  white-space: nowrap !important;
}
#slider .isp-hero-subtitle__accent,
#slider .isp-hero-subtitle__rest {
  flex: 0 0 auto !important;
}

/* Three feature panels: richer sky-blue, still softened rather than neon.
   The darker sound/light, installation and restoration sections are deliberately untouched. */
#advantages-blocks .s-advantages-blocks-type-1__row,
#advantages-blocks-2 .s-advantages-blocks-type-1__row,
#advantages-blocks-3 .s-advantages-blocks-type-1__row {
  background: linear-gradient(145deg, #287ba6 0%, #2677a1 100%) !important;
  border: 1px solid rgba(173, 224, 255, .72) !important;
  box-shadow: 0 14px 32px rgba(0, 0, 0, .24), inset 0 1px 0 rgba(255, 255, 255, .14) !important;
}

/* Keep titles and descriptive text clearly readable on the brighter card surfaces. */
#advantages-blocks .s-advantages-blocks-type-1__row .s-advantages-blocks-type-1__title,
#advantages-blocks-2 .s-advantages-blocks-type-1__row .s-advantages-blocks-type-1__title,
#advantages-blocks-3 .s-advantages-blocks-type-1__row .s-advantages-blocks-type-1__title,
#advantages-blocks .s-advantages-blocks-type-1__row .s-advantages-blocks-type-1__title font,
#advantages-blocks-2 .s-advantages-blocks-type-1__row .s-advantages-blocks-type-1__title font,
#advantages-blocks-3 .s-advantages-blocks-type-1__row .s-advantages-blocks-type-1__title font {
  color: #f4faff !important;
}
#advantages-blocks .s-advantages-blocks-type-1__row .sb-font-p1,
#advantages-blocks-2 .s-advantages-blocks-type-1__row .sb-font-p1,
#advantages-blocks-3 .s-advantages-blocks-type-1__row .sb-font-p1,
#advantages-blocks .s-advantages-blocks-type-1__row .sb-font-p1 font,
#advantages-blocks-2 .s-advantages-blocks-type-1__row .sb-font-p1 font,
#advantages-blocks-3 .s-advantages-blocks-type-1__row .sb-font-p1 font {
  color: #edf7ff !important;
}

/* More polished hover state for these three brighter feature panels. */
@media (hover: hover) and (pointer: fine) {
  #advantages-blocks .s-advantages-blocks-type-1__row:hover,
  #advantages-blocks-2 .s-advantages-blocks-type-1__row:hover,
  #advantages-blocks-3 .s-advantages-blocks-type-1__row:hover {
    border-color: #c6edff !important;
    box-shadow: 0 18px 38px rgba(0, 0, 0, .3), 0 0 0 1px rgba(133, 207, 255, .2) !important;
  }
}

/* Tablet: keep the subtitle proportional to the reduced wordmark. */
@media (min-width: 640px) and (max-width: 959px) {
  #slider .isp-hero-subtitle {
    width: calc(var(--isp-hero-title-size) * 5.58) !important;
    max-width: calc(100% - (var(--isp-hero-title-size) * 3.65)) !important;
    margin-left: calc(var(--isp-hero-title-size) * 3.65) !important;
    margin-top: 6px !important;
    font-size: calc(var(--isp-hero-title-size) * .80) !important;
  }
}

/* Mobile: larger than the old caption, but safely contained within the hero. */
@media screen and (max-width: 639px) {
  #slider .isp-hero-subtitle {
    width: calc(var(--isp-hero-title-size) * 5.58) !important;
    max-width: calc(100% - (var(--isp-hero-title-size) * 3.65)) !important;
    margin-left: calc(var(--isp-hero-title-size) * 3.65) !important;
    margin-top: 5px !important;
    font-size: calc(var(--isp-hero-title-size) * .80) !important;
    letter-spacing: .015em !important;
  }
}

/* The original export stores body-copy colors inline; explicitly tune those on the blue panels. */
#advantages-blocks .s-advantages-blocks-type-1__row h4:not(.s-advantages-blocks-type-1__title),
#advantages-blocks-2 .s-advantages-blocks-type-1__row h4:not(.s-advantages-blocks-type-1__title),
#advantages-blocks-3 .s-advantages-blocks-type-1__row h4:not(.s-advantages-blocks-type-1__title),
#advantages-blocks .s-advantages-blocks-type-1__row h4:not(.s-advantages-blocks-type-1__title) font,
#advantages-blocks-2 .s-advantages-blocks-type-1__row h4:not(.s-advantages-blocks-type-1__title) font,
#advantages-blocks-3 .s-advantages-blocks-type-1__row h4:not(.s-advantages-blocks-type-1__title) font {
  color: #edf7ff !important;
}
