/* Partner-facing shell. Loaded last so the catalogue and vehicle dialogs keep
   their existing behavior while the public-facing chrome stays brand-neutral. */

body {
  padding-top: 68px;
}

.partner-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1200;
  width: 100%;
  height: 68px;
  min-height: 68px;
  padding: 0 max(24px, calc((100vw - 1680px) / 2));
  gap: 28px;
  background: rgba(9, 18, 39, .975);
  border-bottom: 1px solid rgba(255, 255, 255, .09);
  box-shadow: 0 8px 28px rgba(7, 14, 30, .14);
  backdrop-filter: blur(18px);
}

.partner-brand {
  position: relative;
  min-width: 230px;
  padding-left: 17px;
  display: grid;
  gap: 3px;
  color: #fff;
  text-decoration: none;
}

.partner-brand::before {
  content: "";
  position: absolute;
  inset: 2px auto 2px 0;
  width: 3px;
  background: #e8223a;
  border-radius: 999px;
  box-shadow: 0 0 18px rgba(232, 34, 58, .3);
}

.partner-brand span,
.partner-footer-title span {
  color: rgba(255, 255, 255, .5);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 1.45px;
  line-height: 1;
  text-transform: uppercase;
}

.partner-brand strong,
.partner-footer-title strong {
  font-size: 16px;
  font-weight: 750;
  letter-spacing: -.35px;
  line-height: 1.15;
}

.partner-contacts {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.partner-contacts-copy {
  margin-right: 8px;
  display: grid;
  gap: 3px;
  text-align: right;
}

.partner-contacts-copy small {
  color: rgba(255, 255, 255, .46);
  font-size: 8px;
}

.partner-contacts-copy strong {
  color: rgba(255, 255, 255, .86);
  font-size: 10px;
  font-weight: 600;
}

.partner-contact {
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: rgba(255, 255, 255, .94);
  background: rgba(255, 255, 255, .055);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 12px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .045);
  transition: background-color .2s ease, border-color .2s ease, transform .2s ease;
}

.partner-contact:hover {
  background: rgba(255, 255, 255, .11);
  border-color: rgba(255, 255, 255, .28);
  transform: translateY(-1px);
}

.partner-contact:focus-visible {
  outline: 2px solid rgba(255, 255, 255, .72);
  outline-offset: 3px;
}

.partner-contact:disabled {
  opacity: 1;
  cursor: not-allowed;
}

.partner-contact:disabled:hover {
  background: rgba(255, 255, 255, .055);
  border-color: rgba(255, 255, 255, .16);
  transform: none;
}

.partner-contact-phone {
  padding: 0 14px;
  font-size: 10px;
  font-weight: 700;
}

.partner-contact-phone svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.partner-contact-icon {
  width: 40px;
  padding: 0;
}

.partner-contact-icon img {
  width: 21px;
  height: 21px;
  object-fit: contain;
  opacity: .92;
}

/* The partner catalogue does not collect visitor data. Until the final
   manager contacts are approved, every contact control is a safe placeholder. */
.detail-lead-card {
  margin-bottom: 18px;
  padding: 14px 16px 12px;
}

.detail-contact-call {
  justify-content: center;
  gap: 10px;
  box-shadow: none;
}

.detail-contact-call > svg {
  position: static;
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.detail-contact-call:disabled {
  opacity: 1;
  cursor: not-allowed;
}

.detail-contact-call:disabled:hover {
  background: var(--green);
  box-shadow: none;
  transform: none;
}

.detail-contact-channels {
  margin-top: 11px;
  padding: 0 8px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.detail-contact-channels button {
  position: relative;
  min-width: 0;
  min-height: 30px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: #344056;
  background: rgba(12, 21, 44, .025);
  border: 0;
  border-radius: 999px;
  box-shadow: none;
  font: inherit;
  font-size: 10px;
  font-weight: 700;
  opacity: 1;
  cursor: help;
  transition: color .16s ease, background-color .16s ease, transform .16s ease;
}

.detail-contact-channels button::after {
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: calc(100% + 7px);
  padding: 6px 9px;
  color: #fff;
  background: #111b32;
  border-radius: 7px;
  box-shadow: 0 8px 20px rgba(12, 21, 44, .16);
  content: attr(data-tooltip);
  font-size: 9px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 4px);
  transition: opacity .14s ease, transform .14s ease;
}

.detail-contact-channels button:hover {
  color: #0c152c;
  background: rgba(12, 21, 44, .055);
  border-radius: 999px;
  transform: translateY(-1px);
}

.detail-contact-channels button:hover::after {
  opacity: 1;
  transform: translate(-50%, 0);
}

.detail-contact-channels img {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  object-fit: contain;
  filter: brightness(0) saturate(100%) invert(11%) sepia(21%) saturate(1664%) hue-rotate(184deg) brightness(89%) contrast(96%);
  opacity: 1;
}

.detail-contact-channels span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hero {
  min-height: 540px;
  padding-top: 64px;
  padding-bottom: 64px;
  background: linear-gradient(118deg, #fff 0%, #fff 47%, #f1f3f6 47%, #e5e8ed 100%);
}

.hero-copy {
  max-width: 620px;
}

.eyebrow {
  margin-bottom: 16px;
  font-size: 11px;
  letter-spacing: 1.7px;
}

.hero h1 {
  max-width: 610px;
  font-size: clamp(42px, 4.35vw, 68px);
  line-height: 1.02;
  letter-spacing: -3.2px;
}

.hero h1 em {
  display: block;
  font-weight: 750;
}

.hero-text {
  max-width: 585px;
  margin-top: 25px;
  color: #697387;
  font-size: 14px;
  line-height: 1.75;
}

.hero-button {
  min-height: 52px;
  margin-top: 29px;
  padding: 0 20px;
  gap: 26px;
  border: 1px solid rgba(192, 20, 42, .24);
  border-radius: 11px;
  box-shadow: 0 12px 26px rgba(226, 34, 54, .14);
  transition: background-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.hero-button:hover {
  opacity: 1;
  background: #d91e34;
  box-shadow: 0 15px 32px rgba(226, 34, 54, .2);
  transform: translateY(-2px);
}

.hero-visual > img {
  width: min(755px, 62vw);
  max-height: 440px;
  filter: drop-shadow(0 30px 30px rgba(12, 21, 44, .2));
}

.hero-stamp {
  top: 18px;
  right: 8px;
}

.catalog {
  padding-top: 54px;
}

.site-footer {
  min-height: 126px;
  padding: 30px max(24px, calc((100vw - 1680px) / 2));
  display: grid;
  grid-template-columns: minmax(210px, .8fr) minmax(280px, 1.4fr) auto;
  align-items: center;
  gap: 34px;
  color: rgba(255, 255, 255, .58);
  background: #091227;
  border-top: 1px solid rgba(255, 255, 255, .08);
}

.partner-footer-title {
  display: grid;
  gap: 6px;
  color: #fff;
}

.site-footer p {
  margin: 0;
  font-size: 11px;
  line-height: 1.65;
}

.partner-footer-note {
  display: inline-flex;
  align-items: center;
  color: rgba(255, 255, 255, .74);
  font-size: 10px;
  font-weight: 600;
  white-space: nowrap;
}

@media (max-width: 900px) {
  .partner-contacts-copy {
    display: none;
  }

  .hero {
    padding-top: 48px;
    padding-bottom: 26px;
  }

  .hero-copy {
    max-width: 680px;
  }

  .hero h1 em {
    display: inline;
  }

  .site-footer {
    grid-template-columns: 1fr 1.35fr;
  }

  .partner-footer-note {
    grid-column: 1 / -1;
  }
}

@media (max-width: 600px) {
  .detail-lead-card {
    margin-bottom: 14px;
    padding: 11px 12px 10px;
  }

  html {
    scroll-padding-top: calc(60px + env(safe-area-inset-top));
  }

  body {
    padding-top: calc(60px + env(safe-area-inset-top));
  }

  .partner-header {
    height: calc(60px + env(safe-area-inset-top));
    min-height: calc(60px + env(safe-area-inset-top));
    padding: env(safe-area-inset-top) 10px 0;
    display: flex;
    gap: 0;
    overflow: hidden;
  }

  .partner-brand {
    width: 126px;
    min-width: 0;
    max-width: 126px;
    padding-left: 10px;
    gap: 2px;
  }

  .partner-brand::before {
    width: 2px;
  }

  .partner-brand span {
    font-size: 6px;
    letter-spacing: .85px;
  }

  .partner-brand strong {
    font-size: 11px;
    line-height: 1.08;
  }

  .partner-contacts {
    position: absolute;
    right: 10px;
    bottom: 13px;
    width: auto;
    min-width: 0;
    margin-left: 0;
    display: grid;
    grid-template-columns: repeat(4, 34px);
    justify-content: flex-end;
    gap: 5px;
  }

  .partner-contact,
  .partner-contact-icon {
    width: 34px;
    height: 34px;
    padding: 0;
    flex: 0 0 34px;
    border-radius: 10px;
  }

  .partner-contact-phone span {
    display: none;
  }

  .partner-contact-phone svg {
    width: 16px;
    height: 16px;
  }

  .partner-contact-icon img {
    width: 18px;
    height: 18px;
  }

  .detail-contact-call {
    gap: 8px;
  }

  .detail-contact-call > svg {
    width: 15px;
    height: 15px;
  }

  .detail-contact-channels {
    margin-top: 8px;
    padding: 0 2px;
    gap: 7px;
  }

  .detail-contact-channels button {
    min-height: 28px;
    padding: 0 5px;
    gap: 5px;
    font-size: 8.75px;
  }

  .detail-contact-channels button::after {
    display: none;
  }

  .detail-contact-channels img {
    width: 18px;
    height: 18px;
    flex-basis: 18px;
  }

  .hero {
    width: 100%;
    max-width: 100vw;
    min-height: auto;
    padding: 28px 15px 12px;
    display: block;
    gap: 6px;
    background:
      radial-gradient(circle at 76% 67%, rgba(255, 255, 255, .82), transparent 29%),
      linear-gradient(160deg, #fff 0 61%, #e7eaf0 61%);
  }

  .hero-copy,
  .hero-visual {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .eyebrow {
    margin-bottom: 10px;
    font-size: 8px;
    letter-spacing: 1.25px;
  }

  .hero h1 {
    font-size: clamp(30px, 9.1vw, 38px);
    line-height: 1.02;
    letter-spacing: -1.65px;
  }

  .hero h1 em {
    display: inline;
  }

  .hero-text {
    margin-top: 14px;
    font-size: 11.5px;
    line-height: 1.52;
  }

  .hero-visual {
    position: relative;
    min-height: 210px;
  }

  .hero-visual > img {
    width: 122%;
    max-width: 440px;
    max-height: 230px;
    filter: drop-shadow(0 16px 18px rgba(12, 21, 44, .16));
  }

  .hero-stamp {
    top: auto;
    right: 0;
    bottom: 10px;
    width: auto;
    height: auto;
    min-width: 70px;
    min-height: 30px;
  }

  .hero-button-mobile {
    width: 100%;
    max-width: 100%;
    min-height: 45px;
    margin-top: 2px;
    box-shadow: none;
  }

  .catalog {
    padding-top: 34px;
  }

  .site-footer {
    min-height: 0;
    padding: 26px 16px calc(28px + env(safe-area-inset-bottom));
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .partner-footer-note {
    grid-column: auto;
  }
}

@media (max-width: 360px) {
  .partner-brand {
    width: 104px;
    max-width: 104px;
  }

  .partner-brand strong {
    font-size: 10px;
  }

  .partner-contact,
  .partner-contact-icon {
    width: 31px;
    height: 31px;
    flex-basis: 31px;
    border-radius: 9px;
  }

  .partner-contacts {
    grid-template-columns: repeat(4, 31px);
    gap: 4px;
  }

  .hero h1 {
    font-size: 29px;
  }
}
