.contact-body {
  margin: 0;
  color: #f4f0e8;
  background: #070909;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.contact-body a { color: inherit; text-decoration: none; }
.contact-body img { display: block; max-width: 100%; }

.contact-header {
  position: fixed;
  z-index: 40;
  top: 0;
  left: 0;
  right: 0;
  display: grid;
  grid-template-columns: 220px 1fr auto;
  align-items: center;
  gap: 30px;
  padding: 30px 48px 18px;
  background: linear-gradient(180deg, rgba(0, 0, 0, .74), rgba(0, 0, 0, 0));
}

.contact-nav {
  display: flex;
  justify-content: center;
  gap: clamp(18px, 2.2vw, 34px);
}

.contact-nav a {
  position: relative;
  padding: 10px 0;
  color: rgba(255,255,255,.86);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.6px;
  text-transform: uppercase;
}

.contact-nav a.active::after,
.contact-nav a:hover::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 34px;
  height: 2px;
  transform: translateX(-50%);
  background: #d0aa70;
  box-shadow: 0 0 14px rgba(208,170,112,.7);
}

.contact-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.contact-actions a {
  display: grid;
  min-height: 42px;
  place-items: center;
  padding: 0 26px;
  border: 1px solid rgba(255,255,255,.55);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.6px;
  text-transform: uppercase;
}

.contact-actions button,
.contact-menu {
  border: 0;
  color: #fff;
  background: transparent;
  font: inherit;
}

.contact-actions button {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.4px;
}

.contact-menu { display: none; }

.contact-hero {
  position: relative;
  min-height: 630px;
  overflow: hidden;
  background: #070909;
  border-bottom: 1px solid rgba(255,255,255,.12);
}

.contact-hero-media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0,0,0,.9), rgba(0,0,0,.48) 42%, rgba(0,0,0,.1)),
    url("/assets/b2b/contact-hero-factory.png") center right / cover no-repeat,
    url("/assets/b2b/about-hero-factory.png") center right / cover no-repeat;
  transform: scale(1.015);
  transform-origin: 72% 50%;
  animation: contactHeroDrift 20s ease-in-out infinite alternate;
  will-change: transform, filter;
}

@keyframes contactHeroDrift {
  from { transform: scale(1.015) translate3d(0, 0, 0); filter: saturate(.98) contrast(1.03); }
  to { transform: scale(1.04) translate3d(-8px, -5px, 0); filter: saturate(1.08) contrast(1.08); }
}

@supports (background-image: image-set(url("/assets/b2b/optimized/contact-hero-factory-1440.webp") 1x)) {
  .contact-hero-media {
    background:
      linear-gradient(90deg, rgba(0,0,0,.9), rgba(0,0,0,.48) 42%, rgba(0,0,0,.1)),
      image-set(url("/assets/b2b/optimized/contact-hero-factory-1440.webp") 1x, url("/assets/b2b/optimized/contact-hero-factory-1920.webp") 2x) center right / cover no-repeat,
      url("/assets/b2b/optimized/about-hero-factory-1920.webp") center right / cover no-repeat;
  }

  @media (max-width: 720px) {
    .contact-hero-media {
      background:
        linear-gradient(90deg, rgba(0,0,0,.9), rgba(0,0,0,.48) 42%, rgba(0,0,0,.1)),
        image-set(url("/assets/b2b/optimized/contact-hero-factory-960.webp") 1x, url("/assets/b2b/optimized/contact-hero-factory-1440.webp") 2x) center right / cover no-repeat,
        url("/assets/b2b/optimized/about-hero-factory-1440.webp") center right / cover no-repeat;
    }
  }
}

.contact-hero-copy {
  position: relative;
  z-index: 2;
  width: min(560px, calc(100% - 48px));
  padding: 168px 0 0 68px;
}

.contact-hero-copy p,
.contact-form-card p,
.contact-info-card p,
.offices-section > p {
  margin: 0 0 22px;
  color: #d0aa70;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.contact-hero-copy h1 {
  margin: 0;
  font-size: clamp(46px, 4vw, 72px);
  font-weight: 300;
  line-height: 1.14;
}

.contact-hero-copy > span {
  display: block;
  margin-top: 28px;
  color: rgba(244,240,232,.74);
  font-size: 15px;
  line-height: 1.9;
}

.contact-hero-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin-top: 58px;
}

.contact-hero-points article {
  padding: 0 26px;
  border-left: 1px solid rgba(255,255,255,.16);
}

.contact-hero-points article:first-child {
  padding-left: 0;
  border-left: 0;
}

.contact-hero-points i {
  display: block;
  margin-bottom: 20px;
  color: #fff;
  font-size: 30px;
  font-style: normal;
}

.contact-hero-points strong,
.contact-hero-points small {
  display: block;
}

.contact-hero-points strong {
  font-size: 14px;
  font-weight: 500;
}

.contact-hero-points small {
  margin-top: 10px;
  color: rgba(255,255,255,.62);
  line-height: 1.6;
}

.live-chat-card {
  position: absolute;
  z-index: 3;
  right: 70px;
  top: 290px;
  width: 330px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 8px;
  background: rgba(22,24,24,.94);
  box-shadow: 0 28px 80px rgba(0,0,0,.45);
  backdrop-filter: blur(18px);
}

.chat-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 20px 20px 16px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.chat-heading h2 {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 500;
}

.chat-heading p {
  margin: 0;
  color: rgba(255,255,255,.65);
  font-size: 12px;
}

.chat-heading p span {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 6px;
  border-radius: 50%;
  background: #37d36b;
}

.chat-heading button {
  border: 0;
  color: #fff;
  background: transparent;
  font-size: 24px;
}

.chat-box {
  position: relative;
  max-height: 520px;
  overflow-y: auto;
  padding: 18px 20px 20px;
}

.message-row,
.support-message {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 14px;
  margin-bottom: 18px;
}

.avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 34%, #f1c2aa 0 16%, transparent 17%),
    radial-gradient(circle at 50% 62%, #f6d6c2 0 26%, transparent 27%),
    linear-gradient(135deg, #8fa5b5, #d7c0ad);
}

.message-row strong,
.message-row small {
  display: block;
}

.message-row small,
.message-row time,
.support-message time,
.user-message time {
  color: rgba(255,255,255,.46);
  font-size: 11px;
}

.message-bubble {
  display: inline-block;
  margin: 18px 0 8px;
  padding: 13px 15px;
  border-radius: 8px;
  color: rgba(255,255,255,.86);
  background: rgba(255,255,255,.08);
  font-size: 13px;
  line-height: 1.55;
}

.quick-questions {
  display: grid;
  gap: 10px;
  margin: 16px 0 22px;
}

.quick-questions button {
  justify-self: start;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid rgba(255,255,255,.22);
  color: #fff;
  background: transparent;
  font-size: 12px;
}

.user-message {
  display: grid;
  justify-items: end;
  gap: 6px;
  margin: 12px 0;
}

.user-message > span {
  max-width: 78%;
  padding: 12px 14px;
  border-radius: 8px;
  color: #111;
  background: #d0aa70;
  font-size: 13px;
}

.chat-status {
  margin: 10px 0;
  color: rgba(255,255,255,.62);
  font-size: 12px;
  text-align: center;
}

.chat-status.error { color: #ffb7aa; }

.chat-input {
  display: grid;
  grid-template-columns: 1fr 28px 28px 28px;
  gap: 6px;
  align-items: center;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,.1);
}

.chat-input input {
  min-width: 0;
  border: 0;
  color: #fff;
  background: transparent;
  outline: none;
}

.chat-input button {
  border: 0;
  color: rgba(255,255,255,.68);
  background: transparent;
}

.chat-attachment-preview {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 10px 0;
  padding: 8px;
  border: 1px solid rgba(255,255,255,.14);
}

.chat-attachment-preview img {
  width: 42px;
  height: 42px;
  object-fit: cover;
}

.chat-attachment-preview button {
  margin-left: auto;
}

.chat-message-image {
  display: block;
  margin-top: 8px;
}

.chat-message-image img {
  display: block;
  width: min(148px, 100%);
  max-height: 148px;
  object-fit: cover;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.06);
}

.emoji-panel {
  position: absolute;
  z-index: 5;
  display: grid;
  grid-template-columns: repeat(6, 28px);
  gap: 4px;
  padding: 8px;
  background: #111;
  border: 1px solid rgba(255,255,255,.18);
}

.contact-form-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 22px;
  padding: 34px 62px 28px;
  background: #0b0f10;
}

.contact-form-card,
.contact-info-card {
  border: 1px solid rgba(255,255,255,.14);
  background: linear-gradient(145deg, rgba(255,255,255,.045), rgba(255,255,255,.025));
  padding: 28px;
}

.contact-form-card > span {
  display: block;
  margin-bottom: 24px;
  color: rgba(255,255,255,.68);
  font-size: 14px;
}

.contact-form-card input,
.contact-form-card select,
.contact-form-card textarea,
.newsletter-form input {
  width: 100%;
  border: 1px solid rgba(255,255,255,.16);
  color: #fff;
  background: rgba(255,255,255,.035);
  padding: 14px 16px;
  outline: none;
}

.form-grid.two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.contact-form-card {
  display: grid;
  gap: 14px;
}

.contact-form-card button,
.contact-project-cta a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: start;
  min-height: 46px;
  padding: 0 28px;
  border: 0;
  color: #16120d;
  background: #d0aa70;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.7px;
  text-transform: uppercase;
}

.contact-form-status {
  min-height: 18px;
  color: rgba(255,255,255,.64);
  font-size: 13px;
}

.contact-form-status.success { color: #9be0b0; }
.contact-form-status.error { color: #ffb7aa; }

.contact-info-card article {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 16px;
  padding: 22px 0;
  border-bottom: 1px solid rgba(255,255,255,.1);
}

.contact-info-card i {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid #d0aa70;
  color: #d0aa70;
  font-style: normal;
}

.contact-info-card strong,
.contact-info-card span {
  display: block;
}

.contact-info-card span {
  margin-top: 6px;
  color: rgba(255,255,255,.68);
  line-height: 1.6;
}

.offices-section {
  padding: 0 62px 34px;
  background: #0b0f10;
}

.offices-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
}

.factory-office {
  grid-column: span 3;
}

.office-card {
  grid-column: span 1;
}

.contact-map-card {
  grid-column: span 3;
  grid-row: span 2;
  min-height: 300px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.1);
  background:
    linear-gradient(90deg, rgba(10,14,15,.28), rgba(10,14,15,.44)),
    url("/assets/b2b/contact-map.png") right center / cover no-repeat,
    url("/assets/b2b/solutions-map.png") center / cover no-repeat;
  transition: filter .7s ease, transform .7s ease, box-shadow .7s ease;
  will-change: transform, filter;
}

.contact-map-card::after,
.factory-office::before,
.office-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, transparent 0 42%, rgba(255,255,255,.26) 49%, rgba(208,170,112,.18) 52%, transparent 64%),
    radial-gradient(circle at 84% 8%, rgba(208,170,112,.16), transparent 12rem);
  opacity: 0;
  transform: translateX(-42%) skewX(-12deg);
  transition: opacity .45s ease, transform .78s ease;
  pointer-events: none;
}

.contact-map-card:hover::after,
.factory-office:hover::before,
.office-card:hover .office-image::after {
  opacity: 1;
  transform: translateX(42%) skewX(-12deg);
}

.contact-map-card:hover {
  filter: saturate(1.08) contrast(1.08);
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 30px 70px rgba(0,0,0,.32), 0 0 0 1px rgba(208,170,112,.1);
}

@supports (background-image: image-set(url("/assets/b2b/optimized/contact-map-1200.webp") 1x)) {
  .contact-map-card {
    background:
      linear-gradient(90deg, rgba(10,14,15,.28), rgba(10,14,15,.44)),
      image-set(url("/assets/b2b/optimized/contact-map-768.webp") 1x, url("/assets/b2b/optimized/contact-map-1200.webp") 2x) right center / cover no-repeat,
      image-set(url("/assets/b2b/optimized/solutions-map-768.webp") 1x, url("/assets/b2b/optimized/solutions-map-1200.webp") 2x) center / cover no-repeat;
  }
}

.factory-office,
.office-card {
  border: 1px solid rgba(255,255,255,.1);
  background: #151819;
}

.factory-office {
  position: relative;
  min-height: 190px;
  overflow: hidden;
  transition: transform .34s ease, border-color .34s ease, box-shadow .34s ease;
}

.factory-office .office-image {
  position: absolute;
  inset: 0;
  transition: filter .7s ease, transform .7s ease;
  will-change: transform, filter;
}

.factory-office::before {
  z-index: 1;
}

.factory-office::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(90deg, rgba(0,0,0,.72), rgba(0,0,0,.12));
}

.factory-office > div:last-child {
  position: relative;
  z-index: 3;
  width: 280px;
  padding: 34px 28px;
}

.office-image {
  position: relative;
  height: 160px;
  background-image: url("/assets/b2b/contact-offices.png");
  background-size: cover;
  overflow: hidden;
  filter: saturate(.92) contrast(1.03);
  transition: filter .7s ease, transform .7s ease;
  will-change: transform, filter;
}

.factory-crop { background-image: url("/assets/b2b/contact-office-factory.png"); background-position: 6% center; }
.europe-crop { background-position: 28% center; }
.north-crop { background-position: 50% center; }
.asia-crop { background-position: 72% center; }

@supports (background-image: image-set(url("/assets/b2b/optimized/contact-offices-768.webp") 1x)) {
  .office-image {
    background-image: image-set(url("/assets/b2b/optimized/contact-offices-480.webp") 1x, url("/assets/b2b/optimized/contact-offices-768.webp") 2x);
  }

  .factory-crop {
    background-image: image-set(url("/assets/b2b/optimized/contact-office-factory-480.webp") 1x, url("/assets/b2b/optimized/contact-office-factory-768.webp") 2x);
  }
}

.office-card div:last-child {
  padding: 18px;
}

.office-card {
  overflow: hidden;
  transition: transform .34s ease, border-color .34s ease, box-shadow .34s ease;
}

.office-card:hover,
.factory-office:hover {
  transform: translateY(-6px);
  border-color: rgba(208,170,112,.55);
  box-shadow: 0 30px 70px rgba(0,0,0,.28), 0 0 0 1px rgba(208,170,112,.1);
}

.office-card:hover .office-image,
.factory-office:hover .office-image {
  filter: saturate(1.08) contrast(1.08);
  transform: scale(1.045);
}

@media (prefers-reduced-motion: reduce) {
  .contact-hero-media,
  .contact-map-card,
  .factory-office,
  .office-card,
  .office-image {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }

  .contact-map-card::after,
  .factory-office::before,
  .office-image::after {
    display: none;
  }
}

.factory-office h2,
.office-card h3 {
  margin: 0 0 18px;
  font-weight: 400;
}

.factory-office span,
.office-card span {
  color: rgba(255,255,255,.68);
  line-height: 1.7;
}

.factory-office a {
  display: inline-block;
  margin-top: 24px;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.6px;
  text-transform: uppercase;
}

.map-pin {
  position: absolute;
  right: 54px;
  top: 42%;
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 16px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(11,13,13,.9);
}

.map-pin i {
  color: #d0aa70;
  font-style: normal;
}

.map-pin strong,
.map-pin span {
  display: block;
}

.contact-project-cta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin: 0 62px 36px;
  padding: 24px 28px;
  border: 1px solid rgba(255,255,255,.14);
  background: #0b0f10;
}

.contact-project-cta div {
  display: flex;
  gap: 20px;
  align-items: center;
}

.contact-project-cta i {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  color: #d0aa70;
  border: 1px solid #d0aa70;
  font-style: normal;
}

.contact-project-cta strong,
.contact-project-cta small {
  display: block;
}

.contact-project-cta small {
  margin-top: 6px;
  color: rgba(255,255,255,.62);
}

.contact-project-cta a {
  color: #d0aa70;
  background: transparent;
  border: 1px solid #d0aa70;
}

.contact-footer {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr) 1.25fr;
  gap: 54px;
  padding: 42px 62px 0;
  background: #070909;
  border-top: 1px solid rgba(255,255,255,.12);
}

.footer-brand p,
.newsletter-form span,
.contact-footer nav a {
  color: rgba(255,255,255,.62);
  font-size: 13px;
  line-height: 1.8;
}

.social-row {
  display: flex;
  gap: 12px;
  margin-top: 22px;
}

.social-row span {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 50%;
  font-size: 11px;
}

.contact-footer nav,
.newsletter-form {
  display: grid;
  align-content: start;
  gap: 8px;
}

.contact-footer strong {
  margin-bottom: 8px;
  color: #fff;
  font-size: 12px;
  letter-spacing: 1.7px;
  text-transform: uppercase;
}

.newsletter-form label {
  display: grid;
  grid-template-columns: 1fr 42px;
  margin-top: 14px;
}

.newsletter-form button {
  border: 0;
  color: #fff;
  background: rgba(255,255,255,.14);
}

.footer-bottom {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  gap: 22px;
  margin-top: 34px;
  padding: 18px 0;
  border-top: 1px solid rgba(255,255,255,.1);
  color: rgba(255,255,255,.42);
  font-size: 12px;
}

@media (max-width: 1120px) {
  .contact-header {
    grid-template-columns: 180px auto auto;
    padding: 22px;
  }

  .contact-menu {
    display: inline-flex;
    flex-direction: column;
    gap: 5px;
    justify-self: end;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,.22);
  }

  .contact-menu span {
    width: 18px;
    height: 2px;
    background: #fff;
  }

  .contact-nav {
    position: fixed;
    display: none;
    flex-direction: column;
    top: 78px;
    left: 18px;
    right: 18px;
    padding: 18px;
    background: rgba(8,10,10,.98);
    border: 1px solid rgba(255,255,255,.14);
  }

  .contact-nav.open { display: flex; }

  .live-chat-card {
    position: relative;
    right: auto;
    top: auto;
    width: auto;
    margin: 30px 22px 0;
  }

  .contact-form-section,
  .offices-grid,
  .contact-footer {
    grid-template-columns: 1fr;
  }

  .factory-office,
  .office-card,
  .contact-map-card {
    grid-column: auto;
  }
}

@media (max-width: 720px) {
  .contact-header {
    grid-template-columns: 1fr auto;
    padding: 18px;
  }

  .contact-actions {
    grid-column: 1 / -1;
    justify-content: space-between;
  }

  .contact-hero-copy {
    width: auto;
    padding: 154px 22px 40px;
  }

  .contact-hero-points,
  .form-grid.two {
    grid-template-columns: 1fr;
  }

  .contact-hero-points article {
    padding: 18px 0;
    border-left: 0;
    border-top: 1px solid rgba(255,255,255,.16);
  }

  .contact-form-section,
  .offices-section,
  .contact-footer {
    padding-left: 22px;
    padding-right: 22px;
  }

  .contact-project-cta,
  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    margin-left: 22px;
    margin-right: 22px;
  }
}
