.site-footer {
  padding: 28px 0 12px;
  background: #fff
}

.floating-contact {
  position: fixed;
  z-index: 90;
  right: clamp(14px, 2vw, 28px);
  bottom: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  pointer-events: none
}

.floating-contact__button {
  position: relative;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  pointer-events: auto;
  transition: transform .3s cubic-bezier(.16, 1, .3, 1), filter .3s ease
}

.floating-contact__button:not(.floating-contact__button--top) {
  filter: drop-shadow(0 6px 14px rgba(20, 32, 60, .16))
}

.floating-contact__button img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain
}

.floating-contact__button:not(.floating-contact__button--top):hover,
.floating-contact__button:not(.floating-contact__button--top):focus-visible {
  transform: translateY(-3px) scale(1.06);
  filter: drop-shadow(0 10px 18px rgba(20, 32, 60, .24))
}

.floating-contact__button:focus-visible {
  outline: 3px solid rgba(244, 118, 43, .42);
  outline-offset: 4px
}

.floating-contact__tooltip {
  position: absolute;
  top: 50%;
  right: calc(100% + 12px);
  padding: 7px 11px;
  border-radius: 8px;
  background: #202020;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translate(7px, -50%);
  transition: opacity .2s ease, transform .25s ease
}

.floating-contact__tooltip::after {
  position: absolute;
  top: 50%;
  left: 100%;
  border: 5px solid transparent;
  border-left-color: #202020;
  content: "";
  transform: translateY(-50%)
}

.floating-contact__button:hover .floating-contact__tooltip,
.floating-contact__button:focus-visible .floating-contact__tooltip {
  opacity: 1;
  transform: translate(0, -50%)
}

.floating-contact__button--top {
  position: absolute;
  bottom: calc(100% + 12px);
  left: 50%;
  width: 52px;
  height: 52px;
  padding: 0;
  background: linear-gradient(135deg, #f2722b 0%, #e25820 100%);
  border: none;
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(226, 88, 32, .32), 0 2px 6px rgba(0, 0, 0, .06);
  filter: none;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-50%, 10px) scale(.88);
  transition: opacity .28s cubic-bezier(.16, 1, .3, 1), transform .28s cubic-bezier(.16, 1, .3, 1), visibility .28s ease, background .22s ease, box-shadow .22s ease
}

.floating-contact__button--top.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0) scale(1)
}

.floating-contact__button--top.is-visible:hover,
.floating-contact__button--top.is-visible:focus-visible {
  background: linear-gradient(135deg, #f77d38 0%, #d84e16 100%);
  color: #fff;
  box-shadow: 0 10px 22px rgba(226, 88, 32, .45), 0 3px 8px rgba(0, 0, 0, .1);
  transform: translate(-50%, -3px) scale(1.06)
}

.floating-contact__button--top:active {
  transform: translate(-50%, -1px) scale(.98)
}

.floating-contact__top-icon {
  display: block;
  width: 22px;
  height: 22px;
  stroke: #fff;
  transition: transform .22s ease
}

.floating-contact__button--top:hover .floating-contact__top-icon {
  transform: translateY(-2px)
}

.site-footer__panel {
  position: relative;
  width: calc(100% - 32px);
  min-height: 250px;
  margin-inline: auto;
  padding-bottom: 40px;
  overflow: hidden;
  background: var(--color-primary);
  color: #fff;
  border-radius: 9px
}

.site-footer__inner {
  display: grid;
  grid-template-columns: minmax(230px, 1.35fr) repeat(3, minmax(145px, 1fr));
  align-items: start;
  gap: clamp(36px, 5vw, 82px);
  padding: 48px 36px 28px;
  background: transparent
}

.site-footer__brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  min-width: 0
}

.site-footer__brand>a:first-child {
  display: block;
  line-height: 0
}

.site-footer__brand>a:first-child img {
  width: 150px;
  height: auto;
  max-height: 78px;
  object-fit: contain
}

.site-footer__brand .site-footer__button {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: max-content;
  min-width: 220px;
  min-height: 52px;
  margin: 0;
  padding: 12px 28px;
  overflow: hidden;
  border-radius: 999px;
  background: #fff7df;
  color: #b53d17;
  font-size: 15px;
  font-weight: 800 !important;
  line-height: 1.2;
  box-shadow: 0 7px 18px rgba(106, 36, 12, .22);
  transform: translateZ(0);
  transition: transform .4s cubic-bezier(.16, 1, .3, 1), color .35s ease, box-shadow .4s ease
}

.site-footer__brand .site-footer__button:hover,
.site-footer__brand .site-footer__button:focus-visible {
  background: #fff7df;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(106, 36, 12, .3)
}

.site-footer__button-text {
  position: relative;
  z-index: 2;
  display: block;
  line-height: 1;
  white-space: nowrap;
  transform: translateZ(0)
}

.site-footer__button-circle {
  position: absolute;
  z-index: 1;
  left: var(--circle-x, 50%);
  top: var(--circle-y, 50%);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #e95d24;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0);
  transform-origin: center;
  transition: transform .8s cubic-bezier(.16, 1, .3, 1);
  will-change: transform
}

.site-footer__button.is-circle-filled .site-footer__button-circle {
  transform: translate(-50%, -50%) scale(var(--circle-scale, 12))
}

.site-footer__inner>div:not(:first-child) {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 9px;
  min-width: 0
}

.site-footer__inner h2,
.site-footer__inner h3 {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.25
}

.site-footer__inner a {
  font-size: 15px;
  line-height: 1.35;
  transition: color .18s ease, transform .18s ease
}

.site-footer__inner>div:not(:first-child) a:hover,
.site-footer__inner>div:not(:first-child) a:focus-visible {
  color: #fff0a9;
  transform: translateX(3px)
}

.site-footer__copyright {
  position: absolute;
  right: 28px;
  bottom: 18px;
  margin: 0;
  text-align: right;
  color: rgba(255, 255, 255, .92);
  font-size: 11px;
  line-height: 1.3
}

@media(max-width:900px) {
  .site-footer__inner {
    grid-template-columns: 1.2fr repeat(3, 1fr);
    gap: 28px;
    padding-inline: 28px
  }

  .site-footer__inner a {
    font-size: 14px
  }
}

@media(max-width:767px) {
  .site-footer {
    padding: 18px 0 12px;
  }

  .site-footer__panel {
    width: calc(100% - 24px);
    border-radius: 18px;
    padding-bottom: 0;
  }

  .site-footer__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px 18px;
    padding: 28px 18px 20px;
  }

  .site-footer__brand {
    grid-column: 1 / -1;
    align-items: center;
    text-align: center;
    gap: 14px;
    width: 100%;
  }

  .site-footer__brand > a:first-child img {
    width: 130px;
    margin: 0 auto;
  }

  .site-footer__brand .site-footer__button {
    width: 100%;
    max-width: 290px;
    min-width: 0;
    min-height: 46px;
    padding: 10px 20px;
    font-size: 14px;
    margin: 0 auto;
  }

  .site-footer__brand::after {
    content: "";
    display: block;
    width: 100%;
    height: 1px;
    background: rgba(255, 255, 255, 0.2);
    margin-top: 4px;
  }

  /* Khám phá: Cột trái (chiếm hàng 2 & 3) */
  .site-footer__inner > div:nth-child(2) {
    grid-column: 1;
    grid-row: 2 / span 2;
  }

  /* Sản phẩm: Cột phải (hàng 2) */
  .site-footer__inner > div:nth-child(3) {
    grid-column: 2;
    grid-row: 2;
  }

  /* Đào tạo: Cột phải (hàng 3, nối tiếp dưới Sản phẩm) */
  .site-footer__inner > div:nth-child(4) {
    grid-column: 2;
    grid-row: 3;
  }

  .site-footer__inner h2,
  .site-footer__inner h3 {
    font-size: 14px;
    margin-bottom: 8px;
    color: #fff3c9;
    border-bottom: 1.5px solid rgba(255, 255, 255, 0.22);
    padding-bottom: 4px;
    display: inline-block;
    width: max-content;
  }

  .site-footer__inner a {
    font-size: 13px;
    line-height: 1.4;
    padding: 2px 0;
  }

  .site-footer__copyright {
    position: static;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
    margin: 0;
    padding: 14px 18px 18px;
    text-align: center;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.4;
  }
}

@media(max-width:480px) {
  .floating-contact {
    right: 10px;
    bottom: 20px;
    gap: 10px;
  }

  .floating-contact__button {
    width: 46px;
    height: 46px;
  }

  .floating-contact__button--top {
    width: 46px;
    height: 46px;
    bottom: calc(100% + 10px);
  }

  .floating-contact__top-icon {
    width: 20px;
    height: 20px;
  }

  .floating-contact__tooltip {
    display: none;
  }

  .site-footer {
    padding-top: 16px;
  }

  .site-footer__panel {
    width: calc(100% - 20px);
    border-radius: 16px;
  }

  .site-footer__inner {
    padding: 24px 16px 18px;
    gap: 20px 14px;
  }

  .site-footer__brand .site-footer__button {
    max-width: 100%;
    width: 100%;
  }

  .site-footer__inner a {
    font-size: 12.5px;
  }

  .site-footer__copyright {
    padding: 12px 14px 16px;
    font-size: 10.5px;
  }
}

@media(prefers-reduced-motion:reduce) {

  .floating-contact__button,
  .floating-contact__tooltip,
  .floating-contact__top-icon {
    transition: none
  }

  .site-footer__button-circle {
    display: none
  }

  .site-footer__brand .site-footer__button {
    transition: none
  }

  .site-footer__brand .site-footer__button:hover,
  .site-footer__brand .site-footer__button:focus-visible {
    background: #e95d24;
    color: #fff
  }
}