/* Header */
.bgn-site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  min-height: var(--bgn-header-height);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: #044c84;
  transition: background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

@media (max-width: 1024px) {
  .bgn-site-header {
    transform: translate3d(0, 0, 0);
    opacity: 1;
    transition: transform 340ms cubic-bezier(0.22, 1, 0.36, 1), opacity 220ms ease, background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
    will-change: transform;
  }

  .bgn-site-header.is-scroll-hidden {
    opacity: 0;
    pointer-events: none;
    transform: translate3d(0, calc(-100% - 2px), 0);
  }

  body.bgn-menu-open .bgn-site-header {
    opacity: 1;
    pointer-events: auto;
    transform: translate3d(0, 0, 0);
  }
}

.bgn-site-header.is-scrolled {
  border-bottom-color: rgba(254, 201, 49, 0.42);
  background: #075487;
  box-shadow: 0 12px 32px rgba(4, 76, 132, 0.1);
}

.bgn-site-header__inner {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.4vw, 34px);
  min-height: var(--bgn-header-height);
}

.bgn-site-header__brand {
  display: inline-flex;
  flex: 0 1 210px;
  align-items: center;
  min-width: 144px;
  min-height: 44px;
  color: var(--bgn-white);
}

.bgn-site-header__logo {
  width: auto;
  max-width: 210px;
  max-height: 54px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.bgn-site-header__logo--theme {
  filter: none;
}

.bgn-site-header__logo--mobile {
  display: none;
}

.bgn-site-header__brand-name {
  font-family: var(--bgn-font-family);
  font-size: clamp(1rem, 1.35vw, 1.22rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--bgn-white);
}

.bgn-site-header__nav {
  min-width: 0;
  margin-left: auto;
}

.bgn-site-header__nav-list,
.bgn-mobile-drawer__nav-list {
  padding: 0;
  margin: 0;
  list-style: none;
}

.bgn-site-header__nav-list {
  display: flex;
  align-items: center;
  gap: clamp(12px, 1.5vw, 22px);
}

.bgn-site-header__nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--bgn-white);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.045em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: color 180ms ease;
}

.bgn-site-header__nav-link::after {
  position: absolute;
  right: 58%;
  bottom: 7px;
  left: 0;
  height: 2px;
  border-radius: 0;
  background: var(--bgn-yellow);
  content: "";
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 220ms var(--bgn-ease);
}

.bgn-site-header__nav-link:hover,
.bgn-site-header__nav-link:focus-visible {
  color: var(--bgn-yellow);
}

.bgn-site-header__nav-link:hover::after,
.bgn-site-header__nav-link:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left center;
}

.bgn-site-header__actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
}

.bgn-site-header__action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 44px;
  padding: 8px 10px;
  border-radius: 4px;
  color: var(--bgn-white);
  font-size: 0.78rem;
  font-weight: 800;
  white-space: nowrap;
  transition: color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.bgn-site-header__action:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--bgn-yellow);
  transform: translateY(-1px);
}

.bgn-site-header__action--zalo {
  color: var(--bgn-white);
}

.bgn-site-header__action-icon {
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
}

.bgn-site-header__cta {
  min-height: 48px;
  padding-inline: 19px;
  font-size: 0.9rem;
  border-radius: 3px;
  background: var(--bgn-yellow);
  color: #063f70;
  box-shadow: none;
  text-transform: uppercase;
}

.bgn-site-header__cta:hover {
  background: #ffd64d;
  color: #063f70;
  box-shadow: none;
  transform: translateY(-1px);
}

.bgn-site-header__menu-button,
.bgn-mobile-drawer__close {
  display: none;
  align-items: center;
  justify-content: center;
  width: 46px;
  min-width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 4px;
  background: transparent;
  color: var(--bgn-white);
  cursor: pointer;
}

.bgn-site-header__menu-icon,
.bgn-mobile-drawer__close-icon {
  width: 24px;
  height: 24px;
}

/* Accessible mobile drawer */
.bgn-mobile-drawer[hidden] {
  display: none !important;
}

.bgn-mobile-drawer {
  position: fixed;
  z-index: 1100;
  inset: 0;
  display: grid;
  grid-template-columns: 1fr minmax(280px, min(88vw, 410px));
}

.bgn-mobile-drawer__backdrop {
  grid-column: 1 / -1;
  grid-row: 1;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: rgba(6, 27, 45, 0.58);
  cursor: pointer;
  animation: bgn-drawer-backdrop-in 220ms ease both;
}

.bgn-mobile-drawer__panel {
  position: relative;
  z-index: 1;
  grid-column: 2;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 20px;
  background: var(--bgn-white);
  box-shadow: 0 12px 32px rgba(4, 76, 132, 0.1);
  animation: bgn-drawer-panel-in 220ms var(--bgn-ease) both;
}

.bgn-mobile-drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 52px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--bgn-border);
}

.bgn-mobile-drawer__title {
  color: var(--bgn-navy);
  font-family: var(--bgn-font-family);
  font-size: 1.06rem;
  font-weight: 800;
  line-height: 1.25;
}

.bgn-mobile-drawer__close {
  display: inline-flex;
  flex: 0 0 46px;
  border-color: var(--bgn-border);
  background: var(--bgn-white);
  color: #063f70;
}

.bgn-mobile-drawer__nav {
  padding-block: 24px;
}

.bgn-mobile-drawer__nav-item + .bgn-mobile-drawer__nav-item {
  border-top: 1px solid var(--bgn-border);
}

.bgn-mobile-drawer__nav-link {
  display: flex;
  align-items: center;
  min-height: 54px;
  color: #063f70;
  font-size: 0.94rem;
  font-weight: 750;
  letter-spacing: 0.035em;
  text-transform: uppercase;
  transition: color 180ms ease, padding-left 180ms ease;
}

.bgn-mobile-drawer__nav-link:hover,
.bgn-mobile-drawer__nav-link:focus-visible {
  padding-left: 6px;
  color: #044c84;
}

.bgn-mobile-drawer__actions {
  display: grid;
  gap: 10px;
  margin-top: auto;
  padding-top: 24px;
}

.bgn-mobile-drawer__action {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 11px 16px;
  border: 1px solid rgba(4, 76, 132, 0.2);
  border-radius: 4px;
  background: var(--bgn-white);
  color: var(--bgn-blue);
  font-weight: 800;
}

.bgn-mobile-drawer__action--zalo {
  border-color: rgba(4, 76, 132, 0.28);
  color: #044c84;
}

.bgn-mobile-drawer__action-icon {
  width: 20px;
  height: 20px;
}

.bgn-mobile-drawer__cta {
  width: 100%;
  border-radius: 4px;
  background: var(--bgn-yellow);
  color: #063f70;
  box-shadow: none;
}

.bgn-mobile-drawer__cta:hover {
  background: #ffd64d;
  color: #063f70;
  box-shadow: none;
  transform: translateY(-1px);
}

@keyframes bgn-drawer-backdrop-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes bgn-drawer-panel-in {
  from { transform: translate3d(100%, 0, 0); }
  to { transform: translate3d(0, 0, 0); }
}

/* Footer */
.bgn-site-footer {
  position: relative;
  overflow: hidden;
  border-top: 2px solid var(--bgn-yellow);
  background: #063f70;
  color: rgba(255, 255, 255, 0.76);
}

.bgn-site-footer__main {
  display: grid;
  grid-template-columns: minmax(250px, 1.4fr) repeat(3, minmax(150px, 1fr));
  gap: clamp(26px, 3vw, 46px);
  padding-block: 54px 42px;
}

.bgn-site-footer__brand-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--bgn-white);
}

.bgn-site-footer__logo {
  width: auto;
  max-width: 220px;
  max-height: 60px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.bgn-site-footer__brand-name {
  font-family: var(--bgn-font-family);
  font-size: 1.28rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.bgn-site-footer__summary {
  max-width: 390px;
  margin: 20px 0 0;
}

.bgn-site-footer__social-link,
.bgn-site-footer__contact-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 700;
  transition: color 180ms ease, transform 180ms ease;
}

.bgn-site-footer__social-link {
  margin-top: 14px;
  padding-right: 12px;
}

.bgn-site-footer__social-link:hover,
.bgn-site-footer__contact-link:hover,
.bgn-site-footer__nav-link:hover,
.bgn-site-footer__policy-list a:hover {
  color: var(--bgn-yellow);
}

.bgn-site-footer__social-link:hover,
.bgn-site-footer__contact-link:hover {
  transform: translateX(2px);
}

.bgn-site-footer__social-icon,
.bgn-site-footer__contact-icon {
  width: 20px;
  height: 20px;
  color: var(--bgn-yellow);
}

.bgn-site-footer__heading {
  margin-bottom: 18px;
  color: var(--bgn-white);
  font-size: 1rem;
  letter-spacing: -0.01em;
}

.bgn-site-footer__address {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 9px;
  color: inherit;
  font-style: normal;
}

.bgn-site-footer__address-line {
  display: block;
  margin-bottom: 4px;
}

.bgn-site-footer__company-name {
  margin-bottom: 10px;
  color: var(--bgn-white);
  font-weight: 750;
}

.bgn-site-footer__legal-line {
  margin-bottom: 9px;
}

.bgn-site-footer__legal-line span,
.bgn-site-footer__working-hours > span {
  color: rgba(255, 255, 255, 0.92);
  font-weight: 700;
}

.bgn-site-footer__working-hours p {
  margin: 5px 0 0;
}

.bgn-site-footer__nav-list,
.bgn-site-footer__policy-list {
  padding: 0;
  margin: 0;
  list-style: none;
}

.bgn-site-footer__nav-list {
  display: grid;
  gap: 4px;
}

.bgn-site-footer__nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: rgba(255, 255, 255, 0.84);
  font-weight: 700;
  transition: color 180ms ease;
}

.bgn-site-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  background: #063f70;
}

.bgn-site-footer__bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 68px;
  padding-block: 14px;
}

.bgn-site-footer__copyright {
  margin: 0;
  font-size: 0.9rem;
}

.bgn-site-footer__policy-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 22px;
}

.bgn-site-footer__policy-list a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.88rem;
  font-weight: 650;
  transition: color 180ms ease;
}

/* Mobile sticky conversion actions */
.bgn-mobile-actions {
  display: none;
}

@media (min-width: 1025px) {
  body.bgn-landing-page.has-bgn-mobile-actions {
    padding-bottom: 108px;
  }

  .bgn-mobile-actions {
    position: fixed;
    z-index: 1200;
    left: 50%;
    bottom: 22px;
    display: grid;
    grid-auto-columns: minmax(0, 1fr);
    grid-auto-flow: column;
    width: min(620px, calc(100% - 48px));
    min-height: 78px;
    padding: 8px 12px;
    overflow: visible;
    border: 1px solid rgba(27, 27, 27, 0.12);
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 20px 56px rgba(27, 27, 27, 0.17), 0 3px 12px rgba(27, 27, 27, 0.07);
    opacity: 0;
    pointer-events: none;
    transform: translate3d(-50%, calc(100% + 40px), 0);
    transition: opacity 220ms ease, transform 280ms var(--bgn-ease);
    backdrop-filter: blur(12px);
  }

  .bgn-mobile-actions.is-visible:not(.is-keyboard-hidden) {
    opacity: 1;
    pointer-events: auto;
    transform: translate3d(-50%, 0, 0);
  }

  body.bgn-menu-open .bgn-mobile-actions.is-visible {
    opacity: 0;
    pointer-events: none;
    transform: translate3d(-50%, calc(100% + 40px), 0);
  }

  .bgn-mobile-actions__item {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    height: 62px;
    padding: 4px 8px;
    border: 0;
    border-radius: 21px;
    background: transparent;
    color: #253445;
    font: inherit;
    line-height: 1;
    text-align: center;
    text-decoration: none;
    appearance: none;
    cursor: pointer;
    transition: color 180ms ease, background-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
  }

  .bgn-mobile-actions__item strong {
    display: block;
    max-width: 100%;
    overflow: hidden;
    color: currentColor;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.15;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .bgn-mobile-actions__icon-shell {
    display: grid;
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
    place-items: center;
    border-radius: 50%;
    color: currentColor;
    font-size: 14px;
    font-weight: 850;
    line-height: 1;
  }

  .bgn-mobile-actions__icon {
    width: 24px;
    height: 24px;
  }

  .bgn-mobile-actions__item--phone {
    color: #20784c;
  }

  .bgn-mobile-actions__item--phone .bgn-mobile-actions__icon-shell {
    background: rgba(32, 120, 76, 0.1);
  }

  .bgn-mobile-actions__item--zalo {
    color: #0768df;
  }

  .bgn-mobile-actions__icon-shell--zalo {
    background: rgba(7, 104, 223, 0.1);
  }

  .bgn-mobile-actions__item--quote {
    background: var(--bgn-yellow);
    color: #063f70;
    box-shadow: 0 8px 20px rgba(255, 196, 31, 0.32);
  }

  .bgn-mobile-actions__item:hover,
  .bgn-mobile-actions__item:focus-visible {
    color: #044c84;
    background-color: rgba(4, 76, 132, 0.07);
  }

  .bgn-mobile-actions__item--quote:hover,
  .bgn-mobile-actions__item--quote:focus-visible {
    background-color: var(--bgn-yellow);
    color: #063f70;
    box-shadow: 0 10px 24px rgba(255, 196, 31, 0.36);
    transform: translateY(-1px);
  }

  .bgn-mobile-actions__item:focus-visible {
    outline: 2px solid #044c84;
    outline-offset: 1px;
  }
}

/* Project gallery */
.bgn-gallery {
  overflow: hidden;
  background: var(--bgn-surface);
}

.bgn-gallery__filters {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: -16px 0 34px;
}

.bgn-gallery__filter {
  min-height: 44px;
  padding: 9px 15px;
  border: 1px solid var(--bgn-border);
  border-radius: 4px;
  background: var(--bgn-white);
  color: var(--bgn-muted);
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.2;
  cursor: pointer;
  box-shadow: none;
  transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.bgn-gallery__filter:hover {
  border-color: rgba(4, 76, 132, 0.46);
  color: var(--bgn-blue);
  transform: translateY(-1px);
}

.bgn-gallery__filter.is-active,
.bgn-gallery__filter[aria-pressed="true"] {
  border-color: #044c84;
  background: #044c84;
  color: var(--bgn-yellow);
  box-shadow: none;
}

.bgn-gallery__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.bgn-gallery-card {
  position: relative;
  aspect-ratio: 1;
  min-width: 0;
  overflow: hidden;
  margin: 0;
  border-radius: 10px;
  background: #063f70;
  box-shadow: 0 12px 32px rgba(4, 76, 132, 0.1);
  isolation: isolate;
  animation: bgn-gallery-card-in 220ms var(--bgn-ease) both;
}

.bgn-gallery-card[hidden] {
  display: none;
}

.bgn-gallery-card__media,
.bgn-gallery-card__open,
.bgn-gallery-card__image {
  width: 100%;
  height: 100%;
}

.bgn-gallery-card__media {
  position: absolute;
  inset: 0;
}

.bgn-gallery-card__open {
  display: block;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: zoom-in;
}

.bgn-gallery-card__image {
  object-fit: cover;
  transition: transform 280ms var(--bgn-ease), filter 220ms ease;
}

.bgn-gallery-card__caption {
  position: absolute;
  z-index: 1;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  min-height: 42%;
  padding: 42px 18px 17px;
  background: linear-gradient(to top, rgba(4, 24, 40, 0.92), rgba(4, 24, 40, 0));
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.78rem;
  line-height: 1.35;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 220ms ease, transform 220ms var(--bgn-ease);
}

.bgn-gallery-card__title {
  flex-basis: 100%;
  color: var(--bgn-white);
  font-size: 0.96rem;
  font-weight: 800;
}

.bgn-gallery-card__technique,
.bgn-gallery-card__customer {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.09);
}

.bgn-gallery-card:hover .bgn-gallery-card__image,
.bgn-gallery-card:focus-within .bgn-gallery-card__image {
  filter: saturate(1.05) contrast(1.02);
  transform: scale(1.025);
}

.bgn-gallery-card:hover .bgn-gallery-card__caption,
.bgn-gallery-card:focus-within .bgn-gallery-card__caption {
  opacity: 1;
  transform: translateY(0);
}

.bgn-gallery__action {
  display: flex;
  justify-content: center;
  margin-top: 42px;
}

.bgn-gallery__cta {
  border-radius: 4px;
  background: #044c84;
  color: var(--bgn-white);
  box-shadow: none;
}

.bgn-gallery__cta:hover {
  background: #063f70;
  box-shadow: none;
  transform: translateY(-1px);
}

.bgn-gallery-lightbox {
  width: min(1100px, calc(100vw - 48px));
  max-width: none;
  max-height: calc(100dvh - 48px);
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--bgn-white);
}

.bgn-gallery-lightbox::backdrop {
  background: rgba(2, 15, 27, 0.9);
}

.bgn-gallery-lightbox[open] {
  animation: bgn-gallery-lightbox-in 220ms var(--bgn-ease) both;
}

.bgn-gallery-lightbox__figure {
  display: grid;
  place-items: center;
  min-height: min(76dvh, 760px);
  overflow: hidden;
  margin: 0;
  border-radius: 8px;
  background: #061a2b;
  box-shadow: 0 12px 32px rgba(4, 76, 132, 0.1);
}

.bgn-gallery-lightbox__image {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 78dvh;
  margin: auto;
  object-fit: contain;
}

.bgn-gallery-lightbox__caption {
  position: absolute;
  right: 20px;
  bottom: 16px;
  left: 20px;
  padding: 24px 16px 12px;
  background: linear-gradient(to top, rgba(2, 15, 27, 0.86), transparent);
  color: rgba(255, 255, 255, 0.9);
  text-align: center;
  pointer-events: none;
}

.bgn-gallery-lightbox__close,
.bgn-gallery-lightbox__previous,
.bgn-gallery-lightbox__next {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 4px;
  background: #063f70;
  color: var(--bgn-white);
  cursor: pointer;
  box-shadow: 0 12px 32px rgba(4, 76, 132, 0.1);
  transition: background-color 180ms ease, color 180ms ease;
}

.bgn-gallery-lightbox__close:hover,
.bgn-gallery-lightbox__previous:hover,
.bgn-gallery-lightbox__next:hover {
  background: var(--bgn-orange);
}

.bgn-gallery-lightbox__close {
  top: -18px;
  right: -18px;
}

.bgn-gallery-lightbox__previous,
.bgn-gallery-lightbox__next {
  top: 50%;
  transform: translateY(-50%);
}

.bgn-gallery-lightbox__previous:hover,
.bgn-gallery-lightbox__next:hover {
  transform: translateY(-50%);
}

.bgn-gallery-lightbox__previous {
  left: -24px;
}

.bgn-gallery-lightbox__previous .bgn-gallery-lightbox__control-icon {
  transform: rotate(180deg);
}

.bgn-gallery-lightbox__next {
  right: -24px;
}

.bgn-gallery-lightbox__control-icon {
  width: 22px;
  height: 22px;
}

@keyframes bgn-gallery-card-in {
  from { opacity: 0; transform: scale(0.985); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes bgn-gallery-lightbox-in {
  from { opacity: 0; transform: translateY(12px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 1180px) and (min-width: 1025px) {
  .bgn-site-header__inner {
    gap: 14px;
  }

  .bgn-site-header__brand {
    flex-basis: 170px;
  }

  .bgn-site-header__logo {
    max-width: 170px;
  }

  .bgn-site-header__nav-list {
    gap: 10px;
  }

  .bgn-site-header__nav-link,
  .bgn-site-header__action,
  .bgn-site-header__cta {
    font-size: 0.78rem;
  }

  .bgn-site-header__action {
    padding-inline: 6px;
  }

  .bgn-site-header__cta {
    padding-inline: 13px;
  }
}

@media (max-width: 1024px) {
  .bgn-site-header__inner {
    justify-content: space-between;
  }

  .bgn-site-header__brand {
    flex-basis: auto;
    max-width: min(64vw, 230px);
  }

  .bgn-site-header__logo {
    max-width: min(52vw, 200px);
    max-height: 46px;
  }

  .bgn-site-header__logo--desktop:has(+ .bgn-site-header__logo--mobile) {
    display: none;
  }

  .bgn-site-header__logo--mobile {
    display: block;
  }

  .bgn-site-header__nav,
  .bgn-site-header__actions {
    display: none;
  }

  .bgn-site-header__menu-button {
    display: inline-flex;
    margin-left: auto;
  }

  .bgn-site-footer__main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bgn-gallery__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bgn-mobile-actions {
    position: fixed;
    z-index: 1200;
    left: 50%;
    bottom: calc(16px + env(safe-area-inset-bottom));
    display: grid;
    grid-auto-columns: minmax(0, 1fr);
    grid-auto-flow: column;
    width: min(520px, calc(100% - 32px));
    min-height: 74px;
    padding: 7px 10px;
    overflow: visible;
    border: 1px solid rgba(27, 27, 27, 0.12);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 18px 52px rgba(27, 27, 27, 0.16), 0 3px 10px rgba(27, 27, 27, 0.06);
    opacity: 0;
    pointer-events: none;
    transform: translate3d(-50%, calc(100% + 32px), 0);
    transition: opacity 220ms ease, transform 280ms var(--bgn-ease);
  }

  .bgn-mobile-actions.is-visible:not(.is-keyboard-hidden) {
    opacity: 1;
    pointer-events: auto;
    transform: translate3d(-50%, 0, 0);
  }

  body.bgn-menu-open .bgn-mobile-actions.is-visible {
    opacity: 0;
    pointer-events: none;
    transform: translate3d(-50%, calc(100% + 32px), 0);
  }

  .bgn-mobile-actions__item {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
    height: 58px;
    padding: 4px 2px 3px;
    border: 0;
    border-radius: 20px;
    background: transparent;
    color: #253445;
    font: inherit;
    line-height: 1;
    text-align: center;
    text-decoration: none;
    appearance: none;
    cursor: pointer;
    transition: color 180ms ease, background-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
  }

  .bgn-mobile-actions__item strong {
    display: block;
    max-width: 100%;
    overflow: hidden;
    color: currentColor;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.15;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .bgn-mobile-actions__icon-shell {
    display: grid;
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    place-items: center;
    border-radius: 50%;
    color: currentColor;
    font-size: 14px;
    font-weight: 850;
    line-height: 1;
  }

  .bgn-mobile-actions__icon {
    width: 23px;
    height: 23px;
  }

  .bgn-mobile-actions__item--phone {
    color: #20784c;
  }

  .bgn-mobile-actions__item--phone .bgn-mobile-actions__icon-shell {
    background: rgba(32, 120, 76, 0.1);
  }

  .bgn-mobile-actions__item--zalo {
    color: #0768df;
  }

  .bgn-mobile-actions__icon-shell--zalo {
    background: rgba(7, 104, 223, 0.1);
  }

  .bgn-mobile-actions__item--quote {
    background: var(--bgn-yellow);
    color: #063f70;
    box-shadow: 0 7px 18px rgba(255, 196, 31, 0.3);
  }

  .bgn-mobile-actions__item:hover,
  .bgn-mobile-actions__item:focus-visible {
    color: #044c84;
    background-color: rgba(4, 76, 132, 0.07);
  }

  .bgn-mobile-actions__item--quote:hover,
  .bgn-mobile-actions__item--quote:focus-visible {
    background-color: var(--bgn-yellow);
    color: #063f70;
    box-shadow: 0 9px 22px rgba(255, 196, 31, 0.34);
    transform: translateY(-1px);
  }

  .bgn-mobile-actions__item:focus-visible {
    outline: 2px solid #044c84;
    outline-offset: 1px;
  }
}

@media (max-width: 782px) {
  .admin-bar .bgn-site-header {
    top: 46px;
  }

  .admin-bar .bgn-mobile-drawer {
    top: 46px;
  }
}

@media (min-width: 783px) {
  .admin-bar .bgn-site-header {
    top: 32px;
  }

  .admin-bar .bgn-mobile-drawer {
    top: 32px;
  }
}

@media (max-width: 767px) {
  .bgn-site-header__logo--desktop:has(+ .bgn-site-header__logo--mobile) {
    display: none;
  }

  .bgn-mobile-drawer {
    grid-template-columns: minmax(0, 1fr) minmax(270px, 92vw);
  }

  .bgn-mobile-drawer__panel {
    padding: 16px;
  }

  .bgn-site-footer__main {
    grid-template-columns: 1fr;
    gap: 34px;
    padding-block: 54px 42px;
  }

  .bgn-site-footer__brand,
  .bgn-site-footer__contact,
  .bgn-site-footer__legal,
  .bgn-site-footer__nav {
    max-width: 520px;
  }

  .bgn-site-footer__bottom-inner {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    min-height: 98px;
  }

  .bgn-site-footer__policy-list {
    gap: 4px 18px;
  }

  .bgn-mobile-actions {
    bottom: calc(8px + env(safe-area-inset-bottom));
    width: min(430px, calc(100% - 18px));
    min-height: 68px;
    padding: 6px 8px;
    border-radius: 25px;
    box-shadow: 0 16px 42px rgba(27, 27, 27, 0.18), 0 2px 8px rgba(27, 27, 27, 0.07);
  }

  .bgn-mobile-actions__item {
    height: 54px;
    border-radius: 18px;
  }

  .bgn-mobile-actions__item strong {
    font-size: 10.5px;
  }

  .bgn-gallery__filters {
    justify-content: flex-start;
    flex-wrap: nowrap;
    margin-inline: -16px;
    padding: 3px 16px 8px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }

  .bgn-gallery__filters::-webkit-scrollbar {
    display: none;
  }

  .bgn-gallery__filter {
    flex: 0 0 auto;
    scroll-snap-align: start;
  }

  .bgn-gallery__grid {
    grid-template-columns: 1fr;
  }

  .bgn-gallery-card__caption {
    opacity: 1;
    transform: none;
  }

  .bgn-gallery__cta {
    width: 100%;
  }

  .bgn-gallery-lightbox {
    width: calc(100vw - 24px);
    max-height: calc(100dvh - 24px);
  }

  .bgn-gallery-lightbox__figure {
    min-height: 64dvh;
  }

  .bgn-gallery-lightbox__close {
    top: 8px;
    right: 8px;
  }

  .bgn-gallery-lightbox__previous {
    left: 8px;
  }

  .bgn-gallery-lightbox__next {
    right: 8px;
  }
}

@media (hover: none) {
  .bgn-gallery-card__caption {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bgn-site-header,
  .bgn-site-header *,
  .bgn-mobile-drawer *,
  .bgn-site-footer *,
  .bgn-mobile-actions,
  .bgn-mobile-actions *,
  .bgn-gallery *,
  .bgn-gallery-lightbox,
  .bgn-gallery-lightbox * {
    animation: none !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* The direction cue remains brief even when reduced motion is requested. */
@media (max-width: 1024px) and (prefers-reduced-motion: reduce) {
  html.bgn-reduced-motion .bgn-site-header {
    transition: transform 180ms ease, opacity 140ms ease !important;
  }
}
