.hero-studio {
  background: #fafafa;
  color: var(--ink);
  height: 760px;
  min-height: 640px;
  max-height: calc(100svh - 160px);
}
.hero-studio .hero-image { object-position: center 32%; }
.hero-studio .hero-content {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 64px;
  padding-top: 58px;
}
.hero-studio .hero-kicker { color: #67776c; font-size: 10px; font-weight: 550; }
.hero-studio h1 {
  font-size: 54px;
  line-height: 1.16;
  font-weight: 450;
  margin-top: 20px;
  max-width: 740px;
}
.hero-studio h1 em { color: #688273; }
.hero-studio .hero-offer { padding-top: 42px; max-width: 352px; justify-self: end; }
.hero-studio .hero-offer > p:not(.hero-assurance) { font-size: 14px; line-height: 1.85; color: #617066; }
.hero-studio .hero-offer strong { font-weight: 600; color: var(--ink); }
.hero-studio .hero-actions { margin-top: 24px; }
.hero-studio .hero-offer-minimal .hero-actions { margin-top: 0; }
.hero-studio .hero-actions .btn { min-width: 190px; min-height: 46px; font-size: 13px; }
.hero-studio .hero-assurance {
  display: block;
  margin-top: 14px;
  font-size: 10px;
  line-height: 1.6;
  color: #66766c;
}
.hero-studio .hero-bottom { bottom: 24px; color: #5b6a60; }
.hero-studio .hero-secondary { font-size: 11px; color: var(--ink); }
.hero-studio .hero-car-caption { font-size: 9px; line-height: 1.6; }
@media (min-width: 1600px) {
  .hero-studio { height: 800px; }
  .hero-studio .hero-content { padding-top: 56px; }
  .hero-studio h1 { font-size: 56px; }
  .hero-studio .hero-image { max-width: 1920px; margin-inline: auto; object-position: center 51%; }
}
@media (min-width: 1101px) and (max-height: 850px) {
  .hero-studio .hero-image { max-width: 1600px; margin-inline: auto; object-position: center 48%; }
  .hero-studio .hero-content { padding-top: 44px; }
}
@media (min-width: 2200px) {
  .hero-studio { height: 920px; }
  .hero-studio .hero-image { max-width: none; object-position: center 60%; }
  .hero-studio .hero-content { padding-top: 24px; }
  .hero-studio h1 { font-size: 50px; }
  .hero-studio .hero-offer { padding-top: 14px; }
}
@media (max-width: 1100px) {
  .hero-studio { height: 720px; }
  .hero-studio .hero-content { gap: 40px; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); }
  .hero-studio h1 { font-size: 43px; }
  .hero-studio .hero-offer { max-width: 320px; padding-top: 34px; }
  .hero-studio .hero-image { object-position: center 16%; }
  .hero-studio .hero-offer > p:not(.hero-assurance) { font-size: 13px; }
}
@media (min-width: 1101px) and (max-width: 1200px) {
  .hero-studio h1 { font-size: 46px; }
}
@media (max-width: 900px) {
  .hero-studio { height: 720px; min-height: 0; max-height: none; }
  .hero-studio .hero-content { grid-template-columns: minmax(0, 1fr); gap: 22px; padding-top: 44px; }
  .hero-studio h1 { font-size: 44px; }
  .hero-studio .hero-offer { justify-self: start; padding-top: 0; max-width: 440px; }
  .hero-studio .hero-offer > p:not(.hero-assurance) { font-size: 14px; max-width: 430px; }
  .hero-studio .hero-image { height: 410px; inset: auto 0 52px; object-position: center 42%; mask-image: linear-gradient(to bottom, transparent, #000 40px); }
  .hero-studio .hero-content { z-index: 1; }
  .hero-studio .hero-actions { margin-top: 20px; }
  .hero-studio .hero-bottom { bottom: 24px; }
}
@media (max-width: 800px) {
  .hero-studio { height: 770px; }
  .hero-studio .hero-image { object-position: center 59%; }
}
@media (max-width: 540px) {
  .hero-studio { height: 650px; }
  .hero-studio .hero-content { padding-top: 36px; gap: 21px; }
  .hero-studio .hero-kicker { font-size: 9px; }
  .hero-studio h1 { font-size: 33px; line-height: 1.22; margin-top: 18px; }
  .hero-studio .hero-offer > p:not(.hero-assurance) { font-size: 13px; line-height: 1.85; max-width: 340px; }
  .hero-studio .hero-actions { align-items: flex-start; margin-top: 21px; max-width: none; }
  .hero-studio .hero-actions .btn { min-height: 46px; min-width: 186px; }
  .hero-studio .hero-assurance { margin-top: 12px; font-size: 9px; }
  .hero-studio .hero-image { height: 310px; bottom: 50px; object-position: center 56%; }
  .hero-studio .hero-bottom { gap: 16px; bottom: 23px; }
  .hero-studio .hero-car-caption { font-size: 8px; }
  .hero-studio .hero-secondary { font-size: 10px; }
}
@media (max-width: 360px) {
  .hero-studio h1 { font-size: 30px; }
  .hero-studio .hero-image { height: 275px; }
}

/* Reserve the first viewport for the hero and the complete brand strip. */
@media (min-width: 901px) {
  .hero-studio { height: min(680px, calc(100svh - 220px)); min-height: 0; max-height: none; }
  .hero-studio .hero-content { padding-top: 32px; }
  .hero-studio h1 { font-size: 50px; }
  .hero-studio .hero-offer { padding-top: 28px; }
  .hero-studio .hero-image {
    width: min(100%, 1500px, calc((100svh - 220px) * 2));
    max-width: none;
    margin-inline: auto;
    object-position: center 55%;
    mask-image: linear-gradient(to right, transparent, #000 40px, #000 calc(100% - 40px), transparent);
  }

  /* The Polish headline needs three lines. Give it a dedicated clear area above
     the car instead of letting the final line fall across the rear wing. */
  html[lang="pl"] body.home .hero-studio { height: 720px; }
  html[lang="pl"] body.home .hero-studio .hero-content { padding-top: 24px; }
  html[lang="pl"] body.home .hero-studio h1 {
    font-size: 47px;
    line-height: 1.1;
    margin-top: 16px;
  }
}
@media (min-width: 901px) and (max-width: 1200px) {
  .hero-studio h1 { font-size: 43px; }
}
@media (max-width: 900px) {
  .hero-studio { display: flex; flex-direction: column; height: auto; min-height: 0; max-height: none; }
  .hero-studio .hero-content { order: 0; width: 100%; position: relative; padding-top: 24px; gap: 16px; }
  .hero-studio h1 { margin-top: 16px; }
  .hero-studio .hero-actions { margin-top: 16px; }
  .hero-studio .hero-assurance { margin-top: 10px; }
  .hero-studio .hero-image {
    order: 1;
    position: relative;
    inset: auto;
    width: 100%;
    height: auto;
    aspect-ratio: 100 / 34;
    margin: 12px 0 0;
    object-position: center 68%;
    flex: none;
    mask-image: linear-gradient(to bottom, transparent, #000 12px, #000 calc(100% - 12px), transparent);
  }
  .hero-studio .hero-bottom { order: 2; position: relative; inset: auto; width: 100%; padding-block: 14px; }
}
@media (min-width: 541px) and (max-width: 900px) {
  .hero-studio .hero-content { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 24px; align-items: start; }
  .hero-studio h1 { font-size: 36px; line-height: 1.16; margin-top: 14px; }
  .hero-studio .hero-offer > p:not(.hero-assurance) { font-size: 13px; line-height: 1.7; }
  .brand-band > .wrap { padding-block: 24px; }
  .brand-band .brand-names { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px; }
}
@media (max-width: 540px) {
  .hero-studio .hero-content { padding-top: 24px; gap: 14px; }
  .hero-studio h1 { margin-top: 14px; }
  .hero-studio .hero-offer > p:not(.hero-assurance) { font-size: 12px; line-height: 1.65; }
  .hero-studio .hero-actions { margin-top: 14px; }
}
@media (max-width: 360px) {
  .hero-studio + .brand-band > .wrap { padding-block: 12px; }
}
