/* Homepage hero only. Other sections and inner-page headers retain their styles. */
.homepage { background: #070707; }
.homepage .hero {
  --hero-accent: #05bd72;
  --hero-text: #f0f6f5;
  --hero-gutter: clamp(20px, 7.5vw, 180px);
  --hero-copy-offset: clamp(18px, 3.8vh, 60px);
  --hero-mask-edge: min(85%, calc(var(--hero-gutter) + 740px));
  --hero-backdrop: #000;
  --hero-backdrop-rgb: 0,0,0;
  --hero-fade-rgb: 7,7,7;
  --hero-grid-rgb: 0,0,0;
  position: relative;
  display: flex;
  flex-direction: column;
  height: 90vh;
  height: 90dvh;
  min-height: 0;
  overflow: hidden;
  background: var(--hero-backdrop);
  color: var(--hero-text);
}
.homepage .hero .hero-shade { background: var(--hero-backdrop); filter: none; }
.homepage .hero .hero-shade video {
  /* Keep the repair on the right; retain vertical overscan and the raised framing. */
  position: absolute;
  top: -20%;
  left: 28%;
  width: 74%;
  height: 120%;
  object-fit: cover;
  object-position: center;
  filter: brightness(.78) saturate(.9);
  opacity: 1;
}
.homepage .hero .hero-shade::after {
  background: linear-gradient(98deg, var(--hero-backdrop) 0%, var(--hero-backdrop) var(--hero-mask-edge), rgba(var(--hero-backdrop-rgb),.94) calc(var(--hero-mask-edge) + 7%), rgba(var(--hero-backdrop-rgb),.35) calc(var(--hero-mask-edge) + 24%), rgba(var(--hero-backdrop-rgb),.2) 100%);
  backdrop-filter: none;
}
.homepage .hero .hero-media-grid {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background-image: linear-gradient(90deg,rgba(var(--hero-grid-rgb),.02) .5px,transparent .5px),linear-gradient(0deg,rgba(var(--hero-grid-rgb),.02) .5px,transparent .5px);
  background-size: 4px 4px;
}
.homepage .hero .hero-grid-warp { position: absolute; top: 0; left: 0; pointer-events: none; }
.homepage .hero .site-header {
  flex: 0 0 auto;
  background: rgba(15,15,15,.82);
  border-bottom: 1px solid rgba(219,231,223,.1);
}
.homepage .hero .header-inner {
  width: calc(100% - var(--hero-gutter) * 2);
  max-width: 1720px;
  min-height: 68px;
  margin-inline: auto;
  padding: 10px 0;
  gap: 30px;
}
.homepage .hero .brand {
  flex: 0 0 auto;
  flex-direction: row;
  width: auto;
  gap: 9px;
  margin: 0 auto 0 0;
  align-items: center;
  text-align: left;
}
.homepage .hero .brand-elephant {
  width: 48px;
  height: 36px;
  margin: 0;
}
.homepage .hero .brand span {
  font-size: 14px;
  font-weight: 700;
  font-style: normal;
  letter-spacing: -.3px;
  text-shadow: none;
  color: #ffffff;
}
.homepage .hero .site-header nav {
  flex: 0 1 auto;
  justify-content: flex-end;
  gap: clamp(18px, 2.2vw, 38px);
}
.homepage .hero .site-header nav a {
  padding: 12px 0;
  font-size: 14px;
  font-weight: 600;
  color: #f1f7f6;
}
.homepage .hero .site-header nav a:hover,
.homepage .hero .site-header nav a.active { color: #05bd72; }
.homepage .hero .languages {
  gap: 1px;
  padding: 3px;
  border: 1px solid rgba(221,234,225,.12);
  border-radius: 7px;
  font-size: 11px;
}
.homepage .hero .languages a {
  padding: 6px;
  color: #bcbcbc;
  border-radius: 4px;
}
.homepage .hero .languages a[aria-current] {
  color: #eafffa;
  background: rgba(5,189,114,.16);
}
.homepage .hero .hero-content {
  width: calc(100% - var(--hero-gutter) * 2);
  max-width: 1720px;
  flex: 1 1 auto;
  min-height: 0;
  margin-inline: auto;
  padding: clamp(34px, 5.5vh, 82px) 0 32px;
  overflow: visible;
}
.homepage .hero .hero-copy { width: min(100%, 960px); margin-top: var(--hero-copy-offset); }
.homepage .hero h1 {
  max-width: 960px;
  color: #fffaf7;
  --hero-title-base: clamp(42px, 4.3vw, 84px);
  /* Increase the previous responsive title by 5% (.935 * 1.05). */
  font-size: calc(var(--hero-title-base) * .98175);
  font-weight: 700;
  line-height: 1.03;
  letter-spacing: -.045em;
  text-transform: uppercase;
  text-wrap: balance;
}
.homepage .hero h1>span { display: block; white-space: nowrap; }
.homepage .hero h1 .hero-problem {
  color: #f14b4b;
  text-shadow: 0 0 18px rgba(241,75,75,.12), 0 0 3px rgba(241,75,75,.1);
  /* Explicitly requested motion, including when OS animations are disabled. */
  animation: hero-problem-glow 5.6s ease-in-out infinite !important;
  width: max-content;
  max-width: 100%;
}
@keyframes hero-problem-glow {
  0%, 100% { text-shadow: 0 0 18px rgba(241,75,75,.12), 0 0 3px rgba(241,75,75,.1); }
  50% { text-shadow: 0 0 24px rgba(241,75,75,.2), 0 0 4px rgba(241,75,75,.14); }
}
.homepage .hero::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  transform: translateY(5%);
  /* Start lower, concentrating the curved fade near the section boundary. */
  height: clamp(54px, 6vh, 90px);
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 72% 135% at 50% 135%, rgb(var(--hero-fade-rgb)) 35%, rgba(var(--hero-fade-rgb),.98) 48%, rgba(var(--hero-fade-rgb),.82) 64%, rgba(var(--hero-fade-rgb),0) 88%), linear-gradient(180deg, transparent 62%, rgba(var(--hero-fade-rgb),.5) 83%, rgb(var(--hero-fade-rgb)) 100%);
}
.homepage .hero .hero-description {
  max-width: 620px;
  margin: clamp(20px, 2.7vh, 32px) 0 0;
  color: #d4d4d4;
  font-size: clamp(16px, 1.25vw, 21px);
  line-height: 1.55;
  font-weight: 400;
}
.homepage .hero .hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: clamp(24px, 3.7vh, 40px);
}
.homepage .hero .hero-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  min-height: 52px;
  padding: 13px 24px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 15px;
  line-height: 1.2;
  font-weight: 600;
  font-style: normal;
  letter-spacing: 0;
  transition: background .2s, border-color .2s, transform .2s;
}
.homepage .hero .hero-button svg { width: 18px; height: 18px; flex: none; transition: transform .2s ease; }
.homepage .repair-choice {
  --choice-background: #191919;
  --choice-text: #f6f6f6;
  --choice-border: #ffffff2b;
  --choice-green: #83e7b8;
  --choice-red: #ff9aa2;
  width: min(460px, calc(100% - 36px));
  padding: 26px;
  border: 1px solid var(--choice-border);
  border-radius: 18px;
  background: var(--choice-background);
  color: var(--choice-text);
  box-shadow: 0 16px 60px #0006;
}
.homepage .repair-choice::backdrop { background: #0009; backdrop-filter: blur(5px); }
.homepage .repair-choice h2 { margin: 0 34px 20px 0; font-size: clamp(20px, 5vw, 25px); }
.homepage .repair-choice-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  font-size: 24px;
}
.homepage .repair-choice-close:hover { background: var(--choice-border); }
.homepage .repair-choice-actions { display: grid; gap: 10px; }
.homepage .repair-choice-actions a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 48px;
  padding: 11px 14px;
  border: 1px solid var(--choice-border);
  border-radius: 10px;
  color: var(--choice-green);
  font-weight: 600;
}
.homepage .repair-choice-actions a + a { color: var(--choice-red); }
.homepage .repair-choice-actions a:hover { border-color: currentColor; }
.homepage .repair-choice :is(a,button):focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
html[data-theme=light] .homepage .repair-choice {
  --choice-background: #f6f7f5;
  --choice-text: #17211d;
  --choice-border: #17211d30;
  --choice-green: #08744c;
  --choice-red: #a32d3b;
}
.homepage .hero .hero-button:hover svg { transform: translateX(3px); }
.homepage .hero :is(.hero-button,.hero-contact-card):focus-visible { outline: 2px solid #05bd72; outline-offset: 4px; }
.homepage .hero .hero-button-primary {
  color: #eafff3;
  background: rgba(0,100,63,.64);
  border-color: rgba(13,190,122,.5);
}
.homepage .hero .hero-button-primary:hover {
  background: rgba(0,113,70,.72);
  border-color: rgba(13,190,122,.68);
}
.homepage .hero .hero-button-secondary {
  color: #f2f2f2;
  background: rgba(12,12,12,.48);
  border-color: rgba(255,255,255,.24);
}
.homepage .hero .hero-button-secondary:hover {
  background: rgba(20,20,20,.58);
  border-color: rgba(255,255,255,.42);
}
.homepage .hero .hero-button-partners {
  color: #f5f5f5;
  background: rgba(12,12,12,.48);
  border-color: rgba(255,255,255,.32);
}
.homepage .hero .hero-button-partners:hover {
  background: rgba(16,16,16,.65);
  border-color: rgba(255,255,255,.55);
}
.homepage .hero .hero-contacts { margin-top: clamp(24px, 3.2vh, 38px); }
.homepage .hero .hero-contacts h2 {
  margin: 0 0 10px;
  text-align: left;
  font-size: 12px;
  line-height: 1.2;
  font-weight: 500;
  letter-spacing: .02em;
  color: #b8b8b8;
}
.homepage .hero .hero-contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9.2px;
  max-width: 552px;
}
.homepage .hero .hero-contact-card {
  display: flex;
  align-items: center;
  gap: 11.5px;
  min-width: 0;
  min-height: 55.2px;
  padding: 10.35px 16.1px;
  background: rgba(12,12,12,.48);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 10.35px;
  transition: border-color .2s, background .2s;
}
.homepage .hero .hero-contact-icon {
  width: 20.7px;
  height: 20.7px;
  flex: none;
  color: #05bd72;
}
.homepage .hero .hero-contact-card>span { min-width: 0; }
.homepage .hero .hero-contact-label {
  display: block;
  margin-bottom: 3.45px;
  font-size: 11.5px;
  font-weight: 400;
  color: #a8a8a8;
}
.homepage .hero .hero-contact-value {
  display: block;
  font-size: 14.95px;
  font-weight: 500;
  line-height: 1.3;
  color: #f2f2f2;
  overflow-wrap: anywhere;
  -webkit-user-select: text;
  user-select: text;
  cursor: text;
}
.homepage .hero .hero-contact-text { flex: 1; }
.homepage .hero .hero-contact-copy { display: inline-flex; flex: none; align-items: center; justify-content: center; align-self: center; width: 32px; height: 32px; padding: 5px; margin-inline-end: -4px; border: 0; border-radius: 6px; background: transparent; color: #aaa; }
.homepage .hero .hero-contact-copy svg { width: 18px; height: 18px; }
.homepage .hero .hero-contact-copy:hover { color: #fff; background: #ffffff0a; }
.homepage .hero .hero-contact-copy[data-copied=true] { color: #0cc982; }
@media (max-width: 1100px) {
  .homepage .hero { --hero-gutter: clamp(24px, 5vw, 64px); }
  .homepage .hero .site-header nav {
    position: absolute;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    top: 100%;
    left: 0;
    width: 100%;
    padding: 14px var(--hero-gutter) 20px;
    border: 1px solid #128c5555;
    background: #111111fa;
  }
  .homepage .hero .site-header.menu-open nav { display: flex; }
  .homepage .hero .site-header nav a { padding: 13px 0; font-size: 15px; }
  .homepage .hero .menu-toggle {
    display: flex;
    flex-direction: column;
    flex: none;
    gap: 5px;
    order: 3;
    width: 36px;
    padding: 9px 7px;
    border: 1px solid #12ac6955;
    border-radius: 6px;
    background: transparent;
  }
  .homepage .hero .menu-toggle span { width: 100%; height: 1px; background: #e0fff5; }
  .homepage .hero .header-inner { gap: 16px; }
  .homepage .hero .hero-copy { max-width: 690px; }
  .homepage .hero h1 { --hero-title-base: clamp(42px, 5.5vw, 64px); }
  .homepage .hero .hero-description { max-width: 560px; font-size: 18px; }
}
@media (max-width: 650px) {
  .homepage .hero { --hero-gutter: 24px; }
  .homepage .hero .header-inner { min-height: 60px; padding: 9px 0; gap: 11px; }
  .homepage .hero .brand { gap: 6px; }
  .homepage .hero .brand-elephant { width: 34px; height: 27px; }
  .homepage .hero .brand span { font-size: 11px; letter-spacing: -.35px; }
  .homepage .hero .languages { font-size: 10px; padding: 2px; }
  .homepage .hero .languages a { padding: 5px; }
  .homepage .hero .menu-toggle { width: 31px; padding: 8px 6px; }
  .homepage .hero .hero-content { padding-top: clamp(28px, 5vh, 48px); padding-bottom: 24px; }
  .homepage .hero h1 { --hero-title-base: clamp(34px, 8.7vw, 50px); line-height: 1.08; letter-spacing: -.045em; }
  .homepage .hero .hero-description { font-size: 16px; line-height: 1.6; margin-top: 22px; }
  .homepage .hero .hero-actions { gap: 10px; margin-top: 26px; flex-wrap: nowrap; }
  .homepage .hero .hero-button { flex: 1 1 auto; gap: 12px; min-height: 48px; padding: 12px 15px; font-size: 13px; }
  .homepage .hero .hero-button svg { width: 15px; height: 15px; }
  .homepage .hero .hero-contacts { margin-top: 34px; }
  .homepage .hero .hero-contacts h2 { font-size: 13px; margin-bottom: 12px; }
  .homepage .hero .hero-contact-grid { gap: 11.5px; }
  .homepage .hero .hero-contact-card { padding: 10.35px 12.65px; min-height: 55.2px; }
  .homepage .hero .hero-contact-icon { display: none; }
  .homepage .hero .hero-contact-label { font-size: 11.5px; }
  .homepage .hero .hero-contact-value { font-size: 13.8px; }
  .homepage .hero .hero-shade::after { background: linear-gradient(98deg,var(--hero-backdrop) 0%,var(--hero-backdrop) 85%,rgba(var(--hero-backdrop-rgb),.92) 100%); }
}
@media (max-width: 360px) {
  .homepage .hero { --hero-gutter: 18px; }
  .homepage .hero .header-inner { gap: 8px; }
  .homepage .hero .brand span { font-size: 10px; }
  .homepage .hero .brand-elephant { width: 30px; height: 24px; }
  .homepage .hero h1 { --hero-title-base: 31px; }
  .homepage .hero .hero-button { padding-inline: 12px; gap: 8px; font-size: 12px; }
  .homepage .hero .hero-contact-card { padding-inline: 11.5px; }
  .homepage .hero .hero-contact-value { font-size: 12.65px; }
}
@media (max-height: 760px) {
  .homepage .hero .hero-content { padding-top: 28px; }
  .homepage .hero h1 { --hero-title-base: clamp(32px, min(4.3vw, 7.8vh), 64px); }
  .homepage .hero .hero-description { font-size: clamp(14px, 2.4vh, 18px); line-height: 1.5; margin-top: 18px; }
  .homepage .hero .hero-actions { margin-top: 22px; }
  .homepage .hero .hero-contacts { margin-top: 26px; }
}
@media (max-height: 600px) and (min-width: 651px) {
  .homepage .hero .header-inner { min-height: 54px; padding-block: 7px; }
  .homepage .hero .hero-content { padding-top: 22px; padding-bottom: 24px; }
  .homepage .hero .hero-copy { max-width: 850px; }
  .homepage .hero h1 { --hero-title-base: 36px; max-width: 850px; }
  .homepage .hero .hero-description { max-width: 720px; margin-top: 14px; font-size: 15px; }
  .homepage .hero .hero-actions { margin-top: 18px; }
  .homepage .hero .hero-button { min-height: 44px; padding-block: 10px; }
  .homepage .hero .hero-contacts { margin-top: 22px; }
  .homepage .hero .hero-contact-card { padding-block: 13.8px; }
}
@media (prefers-reduced-motion: reduce) {
  .homepage .hero .hero-button:hover { transform: none; }
}
@media (max-height: 540px) and (max-width: 650px) {
  .homepage .hero .header-inner { min-height: 56px; padding-block: 7px; }
  .homepage .hero .hero-content { padding-top: 18px; padding-bottom: 24px; }
  .homepage .hero h1 { --hero-title-base: 28px; line-height: 1.05; }
  .homepage .hero .hero-description { margin-top: 12px; font-size: 13px; line-height: 1.45; }
  .homepage .hero .hero-actions { margin-top: 16px; }
  .homepage .hero .hero-button { min-height: 42px; padding-block: 10px; font-size: 12px; }
  .homepage .hero .hero-contacts { margin-top: 20px; }
  .homepage .hero .hero-contacts h2 { margin-bottom: 8px; font-size: 12px; }
  .homepage .hero .hero-contact-card { min-height: 50.6px; padding-block: 9.2px; }
  .homepage .hero .hero-contact-value { font-size: 12.65px; }
}
@media (max-height: 480px) and (min-width: 651px) {
  .homepage .hero .hero-content { padding-top: 18px; padding-bottom: 24px; }
  .homepage .hero .hero-copy {
    display: grid;
    grid-template-columns: minmax(0,1fr) minmax(205px,.7fr);
    column-gap: 28px;
    align-items: start;
    width: 100%;
    max-width: 100%;
  }
  .homepage .hero h1 { grid-column: 1; --hero-title-base: clamp(28px,3.8vw,36px); }
  .homepage .hero .hero-description { grid-column: 1; margin-top: 12px; font-size: 13px; line-height: 1.45; }
  .homepage .hero .hero-actions { grid-column: 1; flex-wrap: nowrap; gap: 10px; margin-top: 16px; }
  .homepage .hero .hero-button { padding: 10px 14px; min-height: 42px; font-size: 12px; gap: 12px; }
  .homepage .hero .hero-button svg { width: 15px; height: 15px; }
  .homepage .hero .hero-contacts { grid-column: 2; grid-row: 1 / span 3; margin-top: 4px; }
  .homepage .hero .hero-contact-grid { grid-template-columns: 1fr; gap: 11.5px; }
  .homepage .hero .hero-contact-card { min-height: 55.2px; padding: 10.35px 13.8px; gap: 9.2px; }
  .homepage .hero .hero-contact-value { font-size: 13.8px; }
}

/* Left-aligned partner strip. */
.homepage .hero .hero-content {
  position: relative;
  z-index: 1;
  padding-bottom: 24px;
}
.homepage .hero .hero-partners {
  margin-top: clamp(28px, 4vh, 52px);
  padding-top: 22px;
  /* Reserve a little space below the logos to lift the entire partner strip. */
  padding-bottom: clamp(8px, 1.4vh, 20px);
  border-top: 1px solid rgba(255,255,255,.12);
  width: 100%;
  max-width: 1500px;
}
.homepage .hero .hero-partners h2 {
  margin: 0 0 24px;
  text-align: left;
  font-size: 14px;
  line-height: 1.2;
  font-weight: 500;
  letter-spacing: .02em;
  color: #b8b8b8;
}
.homepage .hero .hero-partner-logos {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: clamp(28px, 4.2vw, 86px);
  overflow-x: auto;
  padding: 2px 2px 6px;
  scrollbar-width: none;
}
.homepage .hero .hero-partner-logos::-webkit-scrollbar { display: none; }
.homepage .hero .hero-partner-logos > span {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex: 0 0 auto;
  min-height: 44px;
  opacity: .85;
}
.homepage .hero .hero-partner-logos img {
  width: clamp(70px, 7.3vw, 148px);
  height: 44px;
  object-fit: contain;
  object-position: left center;
  filter: brightness(0) invert(1);
}
.homepage .hero .hero-partner-logos [data-partner="bakun"] img,
.homepage .hero .hero-partner-logos [data-partner="елма"] img {
  filter: grayscale(1) invert(1) brightness(2.2);
  mix-blend-mode: screen;
}
@media (min-width: 1800px) and (min-height: 950px) {
  .homepage .hero .hero-description { font-size: 24px; max-width: 720px; }
  .homepage .hero .hero-button { font-size: 17px; padding: 16px 30px; min-height: 58px; }
  .homepage .hero .hero-contact-grid { max-width: 598px; }
  .homepage .hero .hero-contact-card { padding: 11.5px 18.4px; }
  .homepage .hero .hero-contact-label { font-size: 11.5px; }
  .homepage .hero .hero-contact-value { font-size: 16.1px; }
  .homepage .hero .hero-contacts h2 { font-size: 12px; }
  .homepage .hero .hero-partners h2 { font-size: 14px; }
  .homepage .hero .hero-partner-logos img { height: 52px; }
}
@media (max-height: 1000px) {
  .homepage .hero .hero-content { padding-top: 30px; }
  .homepage .hero .hero-description { margin-top: 20px; }
  .homepage .hero .hero-contacts { margin-top: 28px; }
  .homepage .hero .hero-partners { margin-top: 28px; padding-top: 18px; }
  .homepage .hero .hero-partners h2 { margin-bottom: 18px; }
  .homepage .hero .hero-partner-logos img { height: 36px; }
}
@media (max-height: 800px) {
  .homepage .hero .hero-content { padding-top: 24px; padding-bottom: 24px; }
  .homepage .hero .hero-description { margin-top: 16px; }
  .homepage .hero .hero-actions { margin-top: 20px; }
  .homepage .hero .hero-contacts { margin-top: 18px; }
  .homepage .hero .hero-contacts h2 { margin-bottom: 10px; }
  .homepage .hero .hero-contact-card { padding-block: 9.2px; }
  .homepage .hero .hero-partners { margin-top: 18px; padding-top: 10px; }
  .homepage .hero .hero-partners h2 { font-size: 12px; margin-bottom: 8px; }
  .homepage .hero .hero-partner-logos > span { min-height: 32px; }
  .homepage .hero .hero-partner-logos img { height: 30px; }
}
@media (max-width: 650px) {
  .homepage .hero .hero-content { padding-top: 26px; padding-bottom: 24px; }
  .homepage .hero .hero-partners { margin-top: 26px; padding-top: 16px; }
  .homepage .hero .hero-partners h2 { font-size: 12px; margin-bottom: 14px; }
  .homepage .hero .hero-partner-logos { gap: 28px; }
  .homepage .hero .hero-partner-logos > span { min-height: 28px; }
  .homepage .hero .hero-partner-logos img { width: 76px; height: 28px; }
}
@media (max-height: 620px) and (max-width: 650px) {
  .homepage .hero .hero-content { padding-top: 16px; padding-bottom: 24px; }
  .homepage .hero .hero-description { margin-top: 12px; font-size: 13px; line-height: 1.45; }
  .homepage .hero .hero-actions { margin-top: 16px; }
  .homepage .hero .hero-button { min-height: 42px; padding-block: 10px; }
  .homepage .hero .hero-contacts { margin-top: 18px; }
  .homepage .hero .hero-contacts h2 { font-size: 12px; margin-bottom: 8px; }
  .homepage .hero .hero-contact-card { min-height: 62.1px; padding-block: 11.5px; }
  .homepage .hero .hero-partners { margin-top: 18px; padding-top: 12px; }
  .homepage .hero .hero-partners h2 { margin-bottom: 10px; font-size: 11px; }
  .homepage .hero .hero-partner-logos > span { min-height: 24px; }
  .homepage .hero .hero-partner-logos img { height: 24px; width: 66px; }
}
@media (max-height: 480px) and (min-width: 651px) {
  .homepage .hero .hero-content { padding-top: 14px; padding-bottom: 24px; }
  .homepage .hero .hero-contacts { grid-row: 1 / span 4; margin-top: 4px; }
  .homepage .hero .hero-partners { margin-top: 18px; padding-top: 12px; }
  .homepage .hero .hero-partners h2 { margin-bottom: 10px; font-size: 11px; }
  .homepage .hero .hero-partner-logos img { height: 24px; width: 66px; }
  .homepage .hero .hero-partner-logos > span { min-height: 24px; }
}
@media (prefers-reduced-motion: reduce) {
}

/* Keep the hero as one screen, with partners anchored to the content edge. */
.homepage .hero .hero-content {
  display: flex;
  flex-direction: column;
  gap: clamp(22px, 3.5vh, 48px);
  overflow: visible;
  padding-bottom: clamp(24px, 4vh, 56px);
}
.homepage .hero .hero-copy { flex: 0 0 auto; }
.homepage .hero .hero-partners { flex: 0 0 auto; margin-top: auto; }
@media (min-height: 700px) {
  .homepage .hero .hero-partners { margin-bottom: 3vh; }
}
@media (max-height: 620px) {
  .homepage .hero .hero-content { gap: 16px; padding-bottom: 16px; }
  .homepage .hero .hero-partners { padding-bottom: 0; }
}
@media (max-height: 520px) and (max-width: 650px) {
  .homepage .hero .hero-content { gap: 12px; padding-top: 12px; padding-bottom: 12px; }
  .homepage .hero .hero-description { font-size: 12.5px; line-height: 1.4; margin-top: 10px; }
  .homepage .hero .hero-actions { margin-top: 12px; }
  .homepage .hero .hero-contacts { margin-top: 14px; }
  .homepage .hero .hero-contact-card { min-height: 52.9px; padding-block: 9.2px; }
  .homepage .hero .hero-partners { padding-top: 8px; }
  .homepage .hero .hero-partners h2 { margin-bottom: 8px; }
}
@media (max-height: 480px) and (min-width: 651px) {
  .homepage .hero .hero-contacts { grid-row: 1 / span 3; }
  .homepage .hero .hero-content { gap: 12px; }
  .homepage .hero .hero-partners { padding-top: 8px; }
  .homepage .hero .hero-partners h2 { margin-bottom: 8px; }
}

/* Keep all hero content visible within the shorter, 90vh composition. */
@media (max-height: 800px) {
  .homepage .hero .hero-content { padding-top: 18px; padding-bottom: 20px; gap: 16px; }
  .homepage .hero .hero-description { margin-top: 12px; }
  .homepage .hero .hero-actions { margin-top: 16px; }
  .homepage .hero .hero-contacts { margin-top: 14px; }
}
@media (max-height: 620px) and (max-width: 650px) {
  .homepage .hero .hero-content { padding-top: 12px; padding-bottom: 12px; gap: 10px; }
  .homepage .hero .hero-description { font-size: 12px; line-height: 1.4; margin-top: 10px; }
  .homepage .hero .hero-actions { margin-top: 12px; }
  .homepage .hero .hero-button { min-height: 38px; padding-block: 8px; }
  .homepage .hero .hero-contacts { margin-top: 10px; }
  .homepage .hero .hero-contacts h2 { margin-bottom: 6px; font-size: 10px; }
  .homepage .hero .hero-contact-card { min-height: 48.3px; padding-block: 8.05px; }
  .homepage .hero .hero-partners { display: flex; align-items: center; gap: 15px; padding-top: 8px; }
  .homepage .hero .hero-partners h2 { flex: none; max-width: 55px; margin: 0; font-size: 10px; line-height: 1.4; }
  .homepage .hero .hero-partner-logos { min-width: 0; flex: 1; }
}
@media (max-height: 520px) and (max-width: 650px) {
  .homepage .hero .header-inner { min-height: 50px; padding-block: 5px; }
  .homepage .hero .hero-content { padding-top: 9px; padding-bottom: 10px; gap: 8px; }
  .homepage .hero .hero-contact-card { min-height: 46px; }
}
@media (max-height: 480px) and (min-width: 651px) {
  .homepage .hero .hero-content { padding-top: 12px; padding-bottom: 12px; gap: 10px; }
  .homepage .hero .hero-copy { grid-template-columns: minmax(170px,.85fr) minmax(190px,1.1fr) minmax(150px,.8fr); column-gap: 20px; }
  .homepage .hero h1 { grid-column: 1; grid-row: 1 / span 2; --hero-title-base: 26px; }
  .homepage .hero .hero-description { grid-column: 2; grid-row: 1; margin-top: 0; font-size: 12px; }
  .homepage .hero .hero-actions { grid-column: 2; grid-row: 2; margin-top: 12px; flex-wrap: wrap; gap: 7px; }
  .homepage .hero .hero-button { min-height: 34px; font-size: 11px; padding: 8px 10px; gap: 8px; }
  .homepage .hero .hero-contacts { grid-column: 3; grid-row: 1 / span 2; margin-top: 0; }
  .homepage .hero .hero-contact-icon { display: none; }
  .homepage .hero .hero-contact-grid { gap: 9.2px; }
  .homepage .hero .hero-contact-card { min-height: 50.6px; padding: 8.05px 11.5px; }
  .homepage .hero .hero-contact-value { font-size: 12.65px; }
  .homepage .hero .hero-partners { padding-top: 8px; }
}

/* Full HD and desktop windows with browser chrome need a smaller vertical rhythm.
   The tall 2560×1440 composition above remains unchanged. */
@media (min-width:1101px) and (min-height:481px) and (max-height:1100px) {
  .homepage .hero .hero-content { padding-top: clamp(16px,3vh,32px); padding-bottom: 24px; gap: 16px; }
  .homepage .hero h1 { --hero-title-base: clamp(44px,min(4vw,6.8vh),72px); }
  .homepage .hero .hero-description { max-width: 720px; margin-top: 16px; font-size: clamp(16px,1.15vw,20px); line-height: 1.5; }
  .homepage .hero .hero-actions { margin-top: 22px; }
  .homepage .hero .hero-button { min-height: 50px; padding: 13px 24px; font-size: 15px; }
  .homepage .hero .hero-contacts { margin-top: 20px; }
  .homepage .hero .hero-contacts h2 { font-size: 12px; margin-bottom: 8px; }
  .homepage .hero .hero-contact-grid { max-width: 552px; }
  .homepage .hero .hero-contact-card { padding: 9.2px 16.1px; }
  .homepage .hero .hero-contact-label { font-size: 11.5px; }
  .homepage .hero .hero-contact-value { font-size: 14.95px; }
  .homepage .hero .hero-partners { padding-top: 12px; margin-bottom: clamp(12px,2vh,22px); }
  .homepage .hero .hero-partners h2 { font-size: 12px; margin-bottom: 10px; }
  .homepage .hero .hero-partner-logos { gap: clamp(24px,3.2vw,60px); }
  .homepage .hero .hero-partner-logos > span { min-height: 36px; }
  .homepage .hero .hero-partner-logos img { width: clamp(76px,6.4vw,128px); height: 36px; }
}
@media (min-width:1101px) and (min-height:481px) and (max-height:800px) {
  .homepage .hero .hero-content { padding-top: 16px; padding-bottom: 16px; gap: 12px; }
  .homepage .hero h1 { --hero-title-base: clamp(38px,6.2vh,50px); }
  .homepage .hero .hero-description { margin-top: 12px; font-size: 16px; line-height: 1.45; }
  .homepage .hero .hero-actions { margin-top: 16px; }
  .homepage .hero .hero-button { min-height: 44px; padding: 10px 20px; font-size: 14px; }
  .homepage .hero .hero-contacts { margin-top: 14px; }
  .homepage .hero .hero-contacts h2 { font-size: 12px; margin-bottom: 6px; }
  .homepage .hero .hero-contact-card { padding-block: 9.2px; }
  .homepage .hero .hero-contact-value { font-size: 13.8px; }
  .homepage .hero .hero-partners { margin-bottom: 0; padding-top: 8px; }
  .homepage .hero .hero-partners h2 { margin-bottom: 8px; }
  .homepage .hero .hero-partner-logos > span { min-height: 28px; }
  .homepage .hero .hero-partner-logos img { height: 28px; }
}
@media (min-width:1101px) and (min-height:481px) and (max-height:600px) {
  .homepage .hero .hero-copy { display: grid; grid-template-columns: minmax(260px,.9fr) minmax(0,1.1fr); column-gap: 32px; }
  .homepage .hero h1 { grid-column: 1; grid-row: 1 / span 3; }
  .homepage .hero .hero-description { grid-column: 2; grid-row: 1; margin-top: 0; font-size: 15px; }
  .homepage .hero .hero-actions { grid-column: 2; grid-row: 2; margin-top: 12px; gap: 8px; }
  .homepage .hero .hero-button { min-height: 40px; padding: 9px 16px; font-size: 12px; }
  .homepage .hero .hero-contacts { grid-column: 2; grid-row: 3; margin-top: 12px; }
  .homepage .hero .hero-contact-card { padding-inline: 13.8px; gap: 11.5px; }
  .homepage .hero .hero-contact-value { font-size: 13.8px; }
}
@media (prefers-reduced-motion: reduce) {
  .homepage .hero :is(.hero-button,.hero-button svg,.hero-contact-card) { transition: none; }
  .homepage .hero .hero-button:hover svg { transform: none; }
}

.homepage .hero-controls {
  position: absolute;
  z-index: 4;
  top: calc(var(--site-header-height) + 16px);
  right: max(var(--hero-gutter), calc((100% - 1720px) / 2));
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: calc(100% - var(--hero-gutter) * 2);
}
.homepage .hero-style-switch {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 3px;
  padding: 3px;
  border: 1px solid #ffffff20;
  border-radius: 10px;
  background: rgba(22,22,22,.68);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
.homepage .hero-style-switch button {
  min-height: 30px;
  padding: 7px 12px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: #aaa;
  font-size: 11px;
  line-height: 1.2;
  transition: color .2s, background .2s;
}
.homepage .hero-style-switch button:hover { color: #fff; }
.homepage .hero-style-switch button[aria-pressed=true] { color: #fff; background: #ffffff12; border-color: #ffffff0e; }

@media (max-width:650px) {
  .homepage .hero .hero-content { padding-top: 60px; }
  .homepage .hero-controls { top: calc(var(--site-header-height) + 10px); gap: 6px; }
  .homepage .hero-style-switch button { min-height: 28px; padding: 6px 8px; font-size: 10px; }
}
@media (max-width:550px) {
  .homepage .hero .hero-content { padding-top: 86px; }
}
/* Use the free space above the copy, bringing contacts closer to the anchored partners. */
@media (max-height:800px) {
  .homepage .hero { --hero-copy-offset: clamp(6px,1.5vh,12px); }
}
@media (max-height:620px) {
  .homepage .hero { --hero-copy-offset: 6px; }
}
@media (max-height:480px) {
  .homepage .hero { --hero-copy-offset: 0px; }
}
@media (prefers-reduced-motion: reduce) {
  .homepage .hero-style-switch button { transition: none; }
}
@media(max-width:360px) {
  .homepage .hero-controls { flex-direction: column; align-items: flex-end; }
  .homepage .hero .hero-content { padding-top: 94px; }
}
@media(max-height:480px) and (min-width:651px) {
  .homepage .hero .hero-content { padding-top: 60px; }
}

.homepage .hero[data-repair-lookup=true] {
  height: auto;
  min-height: 90vh;
  min-height: 90dvh;
}
.homepage .hero:not([data-repair-lookup=true]) .hero-repair-lookup,
.homepage .hero[data-repair-lookup=true] .hero-contacts:not(.hero-repair-lookup) {
  display: none;
}
.homepage .hero .hero-repair-lookup {
  width: min(100%, 510px);
  min-width: 0;
  color: var(--hero-text);
}
.hero-repair-form, .hero-repair-contacts {
  display: flex;
  align-items: center;
  gap: 8px 14px;
}
.hero-repair-contacts { flex-wrap: wrap; }
.homepage .hero .hero-repair-lookup h2 {
  margin: 0;
  color: var(--hero-text);
  font-size: clamp(15px, 1.2vw, 20px);
  text-transform: none;
  letter-spacing: 0;
}
.hero-repair-form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid color-mix(in srgb, var(--hero-text) 26%, transparent);
  border-radius: 8px;
  background: color-mix(in srgb, var(--hero-backdrop) 72%, transparent);
  color: var(--hero-text);
  padding: 7px 10px;
  font: 600 12px/1.3 Arial, sans-serif;
}
.hero-repair-heading { position: relative; display: flex; align-items: center; gap: 8px; margin-bottom: 5px; }
.homepage .hero .hero-repair-heading h2 { margin: 0; }
.hero-repair-info button {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  padding: 0;
  border: 1px solid #ffffff42;
  border-radius: 50%;
  background: #181818b0;
  color: #eee;
  font-size: 12px;
}
.hero-repair-info [role=tooltip] {
  position: absolute;
  z-index: 3;
  top: 100%;
  left: 0;
  width: min(280px,100%);
  padding: 10px 12px;
  border: 1px solid #ffffff36;
  border-radius: 8px;
  background: #202020;
  color: #f5f5f5;
  font-size: 13px;
  line-height: 1.4;
  visibility: hidden;
}
.hero-repair-info:is(:hover,:focus-within) [role=tooltip] { visibility: visible; }
.hero-repair-form button:hover { border-color: var(--hero-accent); }
#hero-repair-hint {
  margin: 6px 0 10px;
  color: var(--hero-text);
  font-size: 12px;
  line-height: 1.45;
  opacity: .82;
}
.homepage .hero .hero-repair-form input[name=applicationNumber] {
  flex: 1;
  min-width: 0;
  width: 100%;
  min-height: 40px;
  border: 1px solid color-mix(in srgb, var(--hero-text) 26%, transparent);
  border-radius: 8px;
  padding: 8px 11px;
  background: color-mix(in srgb, var(--hero-backdrop) 78%, transparent);
  color: var(--hero-text);
  font: 400 16px/1.25 Arial, sans-serif;
}
.hero-repair-form { gap: 8px; }
.hero-repair-form button { min-height: 40px; }
.hero-repair-contact-hint { margin: 9px 0 3px; font-size: 12px; line-height: 1.4; opacity: .82; }
.hero-repair-contacts { margin: 0; font-size: 12px; line-height: 1.4; }
.hero-repair-contacts a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.hero-repair-lookup :is(a,button,input):focus-visible { outline: 2px solid var(--hero-accent); outline-offset: 3px; }
