/* Header-only overrides. Existing desktop/mobile logo sizing stays in style.css. */
.page.front > .front-feedback-spacer {
  height: clamp(32px, 5vw, 64px);
}
#header .region-header {
  flex: 1;
  min-width: 0;
  max-width: none;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(165px, .8fr);
  grid-template-areas:
    "i1 i2 max"
    "i3 i4 i5";
}
#header .region-header > * {
  min-width: 0;
}
#header .header-max-link {
  grid-area: max;
  justify-self: end;
  display: inline-block;
  padding: 10px 18px;
  border-radius: 3px;
  color: #fff;
  background: linear-gradient(110deg, #3355ee 0%, #5533ee 66.2%, #9933dd 100%);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.4;
  text-decoration: none;
  white-space: nowrap;
}
#header .header-max-link:is(:hover, :focus-visible) {
  color: #fff;
  background: linear-gradient(110deg, #2946d6 0%, #4929d4 66.2%, #8526c5 100%);
}
#header .header-max-link:focus-visible {
  outline: 2px solid #3355ee;
  outline-offset: 3px;
}
#header #block-vesta-theme-averageratingblock {
  justify-self: end;
}
@media screen and (max-width: 991px) {
  #header .header-mobile-block .block-average-rating-block {
    display: none;
  }
  #header #block-vesta-theme-mobile-header-content > .field {
    flex-wrap: wrap;
  }
  #header .btn-mobile-max {
    background-image: url('/sites/default/files/socials/max-messenger.png');
    background-size: 30px 30px;
  }
  #header .header-mobile-phone {
    flex: 0 0 100%;
    display: block;
    color: var(--color-main);
    font-size: 16px;
    font-weight: 800;
    line-height: 24px;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
  }
  /* Phone row adds 29px; hiding the mobile rating removes 24px. */
  .mm-page {
    padding-top: calc(69px + 2em) !important;
  }
}

@media screen and (min-width: 992px) {
  #header .region-header {
    margin-bottom: 20px;
  }
}
