/* Veil (page load) — reference home timings sitewide */
.ax-veil {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--ax-ink);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  animation: ax-veilOut 1.5s cubic-bezier(.72, 0, .24, 1) forwards;
  pointer-events: none;
}

.ax-veil__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  animation: ax-veilIn 1.5s ease forwards;
}

.ax-veil__logo {
  width: min(280px, 52vw);
  height: auto;
  display: block;
}

.ax-veil--caption .ax-veil__logo {
  width: min(230px, 44vw);
}

.ax-veil__caption {
  color: rgba(244, 241, 235, .5);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: .28em;
  text-transform: uppercase;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  min-height: 1.2em;
}

html.is-ax-fonts .ax-veil__caption {
  font-family: var(--ax-font);
}

@media (prefers-reduced-motion: reduce) {
  .ax-veil {
    animation: ax-veilOut 1ms linear forwards;
  }

  .ax-veil__inner {
    animation: none;
    opacity: 0;
  }
}

/* Instant cover on leave — kills mid-nav paint glitches (e.g. navy status strip on cards). */
.ax-depart-veil {
  position: fixed;
  inset: 0;
  z-index: 400;
  margin: 0;
  padding: 0;
  background: #141833;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.ax-depart-veil__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.ax-depart-veil__logo {
  width: min(230px, 44vw);
  height: auto;
  display: block;
}

.ax-depart-veil__caption {
  color: rgba(244, 241, 235, .5);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: .28em;
  text-transform: uppercase;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* ?? Topbar ?? */
[data-topbar] {
  position: relative;
  z-index: 118;
  background: var(--ax-ink);
  color: rgba(244,241,235,.5);
}

.ax-topbar__inner {
  max-width: var(--ax-maxw);
  margin: 0 auto;
  padding: 0 var(--ax-gutter);
  height: 42px;
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.ax-topbar__label {
  color: rgba(244,241,235,.42);
  letter-spacing: .2em;
}

.ax-topbar__sep {
  width: 1px;
  height: 11px;
  background: rgba(244,241,235,.2);
  display: block;
  flex: 0 0 auto;
}

.ax-topbar__brand {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--ax-paper);
}

.ax-site .ax-topbar__link,
.ax-topbar__link {
  color: rgba(244,241,235,.42);
  transition: color 280ms ease;
}

@media (hover: hover) and (pointer: fine) {
.ax-site .ax-topbar__link:hover,
.ax-topbar__link:hover {
  color: var(--ax-paper);
}
}



[data-clock] {
  margin-left: auto;
  color: rgba(244,241,235,.42);
  letter-spacing: .16em;
}

.ax-topbar__social {
  display: flex;
  align-items: center;
  gap: 7px;
  padding-left: 4px;
}

.ax-site .ax-topbar__social-link,
.ax-topbar__social-link {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.13);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(244,241,235,.66);
  transition: all 280ms ease;
  flex: 0 0 auto;
}

/* Lock social glyphs to a true square — never stretch with flex/img rules */
.ax-topbar__social-link .ax-social-icon,
.ax-menu__social-link .ax-social-icon,
.ax-footer__social-link .ax-social-icon {
  display: block;
  flex: 0 0 auto;
  aspect-ratio: 1;
  max-width: none;
  max-height: none;
  overflow: visible;
}

@media (hover: hover) and (pointer: fine) {
.ax-site .ax-topbar__social-link:hover,
.ax-topbar__social-link:hover {
  background: rgba(244,241,235,.14);
  color: var(--ax-paper);
  border-color: rgba(244,241,235,.4);
}
}



.ax-topbar__lang {
  position: relative;
  padding-left: 6px;
}

.ax-topbar__lang-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: 0;
  padding: 9px 0;
  cursor: pointer;
  color: rgba(244,241,235,.7);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
}

[data-chev] {
  transition: transform 320ms ease;
}

[data-panel="lang"] {
  display: none;
  position: absolute;
  right: -12px;
  top: calc(100% + 6px);
  width: 184px;
  flex-direction: column;
  padding: 8px;
  border-radius: var(--ax-radius);
  background: var(--ax-glass-dark-std-bg);
  background-image: linear-gradient(rgba(255,255,255,.09), rgba(255,255,255,0) 46%);
  backdrop-filter: var(--ax-glass-dark-std-blur);
  -webkit-backdrop-filter: var(--ax-glass-dark-std-blur);
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 22px 54px rgba(8,11,26,.42);
  animation: ax-softIn 300ms cubic-bezier(.16,1,.3,1) both;
}

[data-panel="lang"].is-open {
  display: flex;
}

.ax-topbar__lang-opt {
  display: flex;
  align-items: center;
  gap: 11px;
  background: transparent;
  border: 0;
  border-radius: 12px;
  padding: 11px 12px;
  cursor: pointer;
  color: var(--ax-paper);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  transition: background 280ms ease;
  width: 100%;
  text-align: left;
}

@media (hover: hover) and (pointer: fine) {
.ax-topbar__lang-opt:hover {
  background: rgba(255,255,255,.08);
}
}


.ax-topbar__lang-opt.is-active {
  color: var(--ax-paper);
}

.ax-topbar__lang-opt:not(.is-active) {
  color: rgba(244,241,235,.6);
}

.ax-mark-x {
  width: 9px;
  height: 7.2px;
  flex: 0 0 auto;
  display: block;
  fill: var(--ax-steel);
}

/* ?? Nav ?? */
[data-navhead] {
  position: fixed;
  top: 42px;
  left: 0;
  right: 0;
  z-index: 100;
  transition: transform 520ms cubic-bezier(.16,1,.3,1);
}

/* Peek: subpages (body.ax-nav-peek) hide on scroll-down — all viewports. Home excluded.
 * Nav is fixed at top:42px (under topbar) — hide must clear that offset too, or a strip stays visible. */
body.ax-nav-peek [data-navhead] {
  transition: transform 520ms cubic-bezier(0.16, 1, 0.3, 1);
}

body.ax-nav-peek [data-navhead].is-nav-hidden {
  transform: translateY(calc(-100% - 42px - 12px));
}

@media (prefers-reduced-motion: reduce) {
  [data-navhead] {
    transition: none;
  }
  body.ax-nav-peek [data-navhead].is-nav-hidden {
    transform: none;
  }
}

[data-navwrap] {
  padding: 18px var(--ax-gutter) 0;
  transition: padding 520ms ease;
}

[data-navwrap].is-scrolled {
  padding-top: 10px;
}

[data-navbar] {
  max-width: var(--ax-maxw);
  margin: 0 auto;
  height: 64px;
  padding: 0 10px 0 clamp(20px, 2vw, 32px);
  display: flex;
  align-items: center;
  gap: clamp(12px, 1.6vw, 22px);
  border-radius: var(--ax-radius);
  background: var(--ax-glass-nav-bg);
  background-image: linear-gradient(rgba(255,255,255,.07), rgba(255,255,255,0) 44%);
  backdrop-filter: var(--ax-glass-nav-blur);
  -webkit-backdrop-filter: var(--ax-glass-nav-blur);
  border: 1px solid rgba(255,255,255,.11);
  opacity: 0;
  animation: ax-glassIn 1s cubic-bezier(.16, 1, .3, 1) 1.05s forwards;
  transition: background 520ms ease, border-color 520ms ease, box-shadow 520ms ease, max-width 520ms ease;
}

@media (prefers-reduced-motion: reduce) {
  [data-navbar] {
    animation: none;
    opacity: 1;
  }
}

[data-navbar].is-light {
  background: var(--ax-glass-light-bg);
  backdrop-filter: var(--ax-glass-light-blur);
  -webkit-backdrop-filter: var(--ax-glass-light-blur);
  border-color: rgba(53,59,102,.1);
}

[data-navbar].is-scrolled {
  max-width: 1560px;
}

.ax-nav__logo {
  display: block;
  position: relative;
  width: clamp(112px, 9.6vw, 142px);
  height: 31px;
  flex: 0 0 auto;
}

.ax-nav__logo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: left center;
  transition: opacity 520ms ease;
}

[data-logo-dark] {
  opacity: 0;
}

.ax-nav__actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: clamp(8px, 1vw, 14px);
}

.ax-site [data-navink] {
  background: none;
  border: 0;
  border-radius: 10px;
  padding: 13px 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 11px;
  font-family: var(--ax-font);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #F4F1EB; /* reference: color:#F4F1EB - full paper, no opacity */
  transition: color 520ms ease, background 320ms ease;
}

@media (hover: hover) and (pointer: fine) {
.ax-site [data-navink]:hover {
  background: rgba(255,255,255,.1);
}
}


.ax-site [data-navink].is-light {
  color: #353B66; /* reference onScroll: #353B66 */
}

@media (hover: hover) and (pointer: fine) {
.ax-site [data-navink].is-light:hover {
  background: rgba(53,59,102,.06);
}
}


.ax-nav__burger {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 20px;
}

.ax-nav__burger span {
  height: 1px;
  background: currentColor;
  display: block;
}

.ax-nav__burger span:last-child {
  width: 60%;
}

/* Nav CTA - default (over dark hero) = filled ecru per reference onScroll when y < 0.86vh.
 * Light-nav state = filled navy. Hover/focus mirror reference style-hover + navy/steel. */
.ax-site [data-navcta] {
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #141833;
  background: rgba(244, 241, 235, .92);
  border: 1px solid rgba(244, 241, 235, .92);
  border-radius: 10px;
  padding: 13px 22px;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  transition: background 380ms ease, color 380ms ease, border-color 380ms ease;
}

@media (hover: hover) and (pointer: fine) {
.ax-site [data-navcta]:hover {
  background: #353B66;
  color: #F4F1EB;
  border-color: #353B66;
  outline: none;
}
}
.ax-site [data-navcta]:focus-visible {
  background: #353B66;
  color: #F4F1EB;
  border-color: #353B66;
  outline: none;
}

.ax-site [data-navcta].is-light {
  background: #353B66;
  color: #F4F1EB;
  border-color: #353B66;
}

@media (hover: hover) and (pointer: fine) {
.ax-site [data-navcta].is-light:hover {
  background: #86A0C6;
  border-color: #86A0C6;
  color: #F4F1EB;
}
}
.ax-site [data-navcta].is-light:focus-visible {
  background: #86A0C6;
  border-color: #86A0C6;
  color: #F4F1EB;
}

/* ?? Menu overlay ?? */
[data-menu] {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: none;
  background: var(--ax-glass-overlay-bg);
  backdrop-filter: var(--ax-glass-overlay-blur);
  -webkit-backdrop-filter: var(--ax-glass-overlay-blur);
  color: var(--ax-paper);
  flex-direction: column;
}

[data-menu].is-open {
  display: flex;
  animation: ax-softIn 560ms cubic-bezier(.16,1,.3,1) both;
}

.ax-menu__head {
  border-bottom: 1px solid rgba(244,241,235,.16);
}

.ax-menu__head-inner {
  max-width: var(--ax-maxw);
  margin: 0 auto;
  padding: 0 var(--ax-gutter);
  height: 108px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ax-menu__head-logo {
  width: clamp(148px, 13vw, 196px);
}

.ax-menu__close {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ax-paper);
  display: flex;
  align-items: center;
  gap: 12px;
}

.ax-menu__close-x {
  font-size: 15px;
  line-height: 1;
}

.ax-menu__body {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: clamp(28px, 5vw, 90px);
  max-width: var(--ax-maxw);
  width: 100%;
  margin: 0 auto;
  padding: clamp(32px, 6vh, 72px) var(--ax-gutter);
  overflow-y: auto;
}

.ax-menu__nav {
  display: flex;
  flex-direction: column;
}

/* Pozycja menu: link + chevron w jednym wierszu; obramowanie należy do wiersza. */
.ax-menu__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid rgba(244, 241, 235, 0.18);
}

.ax-menu__item--has-sub {
  cursor: pointer;
}

.ax-menu__item:first-child {
  border-top: 0;
}

.ax-menu__nav > .ax-menu__item:last-child {
  border-bottom: 1px solid rgba(244, 241, 235, 0.18);
}

.ax-menu__link {
  color: var(--ax-paper);
  display: flex;
  align-items: baseline;
  gap: 20px;
  flex: 1 1 auto;
  min-width: 0;
  padding: clamp(12px, 1.6vh, 19px) 0;
  font-family: var(--ax-font);
  font-weight: 300;
  font-size: clamp(24px, 2.9vw, 38px);
  letter-spacing: -.02em;
  line-height: 1.06;
  transition: color 620ms ease;
}

.ax-menu__toggle {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(244, 241, 235, 0.2);
  border-radius: 50%;
  background: none;
  color: rgba(244, 241, 235, 0.75);
  cursor: pointer;
  transition: background 320ms ease, border-color 320ms ease, color 320ms ease;
}

/* Domyślny pierścień focusu przeglądarki wypadał obcy w tej palecie. */
.ax-menu__toggle:focus-visible {
  outline: none;
  border-color: var(--ax-steel);
  box-shadow: 0 0 0 3px rgba(134, 160, 198, 0.28);
}

.ax-menu__chev {
  transition: transform 420ms cubic-bezier(0.16, 1, 0.3, 1);
}

.ax-menu__toggle[aria-expanded="true"] .ax-menu__chev {
  transform: rotate(180deg);
}

.ax-menu__toggle[aria-expanded="true"] {
  background: rgba(244, 241, 235, 0.1);
  border-color: rgba(244, 241, 235, 0.4);
}

@media (hover: hover) and (pointer: fine) {
  .ax-menu__toggle:hover {
    border-color: var(--ax-steel);
    color: var(--ax-steel);
  }
}

/*
 * Podmenu: grid 0fr→1fr zamiast max-height. Animowanie max-height z easingiem
 * transformowym (0.16, 1, 0.3, 1) zamykało gałąź w pierwszych ~20% czasu
 * i zostawiało resztę jako „przycięcie”. 0fr/1fr interpoluje się równo.
 */
.ax-menu__sub {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows 400ms cubic-bezier(0.4, 0, 0.2, 1), opacity 280ms ease;
}

@media (max-width: 900px) {
  .ax-menu__sub {
    transition-duration: 360ms, 240ms;
  }
}

.ax-menu__sub[hidden] {
  display: none;
}

.ax-menu__sub.is-open {
  grid-template-rows: 1fr;
  opacity: 1;
}

.ax-menu__sub-inner {
  position: relative;
  overflow: hidden;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: clamp(10px, 1.2vh, 15px);
  padding-bottom: clamp(20px, 2.6vh, 32px);
}

/* Pionowa prowadnica spina gałąź w jedną całość. */
.ax-menu__sub-inner::before {
  content: "";
  position: absolute;
  top: clamp(10px, 1.2vh, 15px);
  bottom: clamp(20px, 2.6vh, 32px);
  left: 5px;
  width: 1px;
  background: linear-gradient(to bottom, rgba(244, 241, 235, 0.26), rgba(244, 241, 235, 0.04));
}

.ax-menu__link--child {
  align-items: center;
  gap: 0;
  border-top: 0;
  padding: clamp(8px, 1.1vh, 13px) 0 clamp(8px, 1.1vh, 13px) 5px;
  font-size: clamp(16px, 1.5vw, 21px);
  font-weight: 300;
  letter-spacing: -0.012em;
  color: rgba(244, 241, 235, 0.62);
  transition: color 380ms ease, transform 460ms cubic-bezier(0.16, 1, 0.3, 1);
}

.ax-menu__link--child::before {
  content: "";
  flex: 0 0 auto;
  align-self: center;
  width: clamp(16px, 1.8vw, 26px);
  height: 1px;
  margin-right: clamp(12px, 1.2vw, 18px);
  background: rgba(244, 241, 235, 0.32);
  transition: width 460ms cubic-bezier(0.16, 1, 0.3, 1), background 380ms ease;
}

@media (hover: hover) and (pointer: fine) {
  .ax-menu__link--child:hover {
    color: var(--ax-paper);
  }

  .ax-menu__link--child:hover::before {
    width: clamp(24px, 2.6vw, 38px);
    background: var(--ax-steel);
  }
}

/* Otwarta gałąź: nazwa nadrzędna zostaje wyróżniona. */
.ax-menu__item.is-open .ax-menu__num {
  color: var(--ax-steel-light);
}

@media (hover: hover) and (pointer: fine) {
.ax-menu__link:hover {
  color: var(--ax-steel);
}
}


.ax-menu__num {
  font-size: 10px;
  letter-spacing: .2em;
  color: var(--ax-steel);
  font-weight: 500;
}

.ax-menu__aside {
  display: flex;
  flex-direction: column;
  justify-content: flex-start; /* top-align with nav list */
  gap: 18px;
  align-self: start;
}

.ax-menu__card {
  border-radius: var(--ax-radius);
  background: rgba(244,241,235,.1);
  border: 1px solid rgba(244,241,235,.2);
  backdrop-filter: var(--ax-glass-card-blur);
  -webkit-backdrop-filter: var(--ax-glass-card-blur);
  padding: clamp(18px, 2.2vw, 28px);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ax-menu__card-label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(244,241,235,.5);
  margin-bottom: 2px;
}

.ax-menu__phone {
  font-family: var(--ax-font);
  font-weight: 300;
  font-size: clamp(28px, 2.8vw, 40px);
  letter-spacing: -.02em;
  color: var(--ax-paper);
  outline: none;
  /* Reference menu card: no tabular-nums (normal); footer/contact use tabular. */
}

@media (hover: hover) and (pointer: fine) {
.ax-menu__phone:hover {
  color: var(--ax-steel);
  outline: none;
}
}
.ax-menu__phone:focus-visible {
  color: var(--ax-steel);
  outline: none;
}

.ax-menu__phone:focus-visible {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.ax-menu__email {
  color: var(--ax-steel);
  font-size: 15.5px;
  outline: none;
}

@media (hover: hover) and (pointer: fine) {
.ax-menu__email:hover {
  color: var(--ax-paper);
  outline: none;
}
}
.ax-menu__email:focus-visible {
  color: var(--ax-paper);
  outline: none;
}

.ax-menu__email:focus-visible {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.ax-menu__hours {
  color: rgba(244,241,235,.5);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  margin-top: 4px;
}

.ax-menu__address {
  color: rgba(244,241,235,.5);
  font-size: 14.5px;
  margin-top: 2px;
  white-space: nowrap;
}

@media (max-width: 900px) {
  .ax-menu__address {
    white-space: normal;
  }

  .ax-menu__card {
    gap: 4px;
    padding: 16px 16px 14px;
  }

  .ax-menu__phone {
    font-size: clamp(22px, 5.6vw, 28px);
    line-height: 1.05;
  }

  .ax-menu__hours,
  .ax-menu__address {
    margin-top: 0;
  }
}

[data-menu-extra] {
  display: none;
  flex-direction: column;
  gap: 14px;
  border-top: 1px solid rgba(244,241,235,.16);
  padding-top: 18px;
}

.ax-menu__extra-label {
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(244,241,235,.42);
}

/* Group company wordmarks (mobile menu extra) */
.ax-menu__group-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 22px;
}

.ax-menu__group-logo {
  display: block;
  opacity: 0.72;
  transition: opacity 320ms ease;
  min-height: 0 !important; /* beat [data-menu] a touch-target stretch */
  align-items: flex-start;
}

.ax-menu__group-logo:hover {
  opacity: 1;
}

.ax-menu__group-logo img {
  display: block;
  width: clamp(108px, 28vw, 132px);
  height: auto;
}

/* Language — full-width expandable list (flag circle + name) */
.ax-menu__lang {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
}

.ax-menu__lang-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 48px;
  margin: 0;
  padding: 0 16px;
  border: 1px solid rgba(244, 241, 235, 0.24);
  border-radius: 14px;
  background: rgba(13, 17, 38, 0.92);
  color: var(--ax-paper);
  font: inherit;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 280ms ease, border-color 280ms ease;
}

.ax-menu__lang-trigger[aria-expanded="true"],
.ax-menu__lang:has([data-panel="menu-lang"].is-open) .ax-menu__lang-trigger {
  border-color: rgba(244, 241, 235, 0.36);
  background: rgba(13, 17, 38, 0.96);
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.ax-menu__lang-current {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}

.ax-menu__lang-current svg,
.ax-menu__lang-opt svg {
  flex: 0 0 auto;
  display: block;
  width: 18px;
  height: 18px;
}

.ax-menu__lang-trigger [data-chev] {
  flex: 0 0 auto;
  opacity: 0.7;
  transition: transform 320ms ease;
}

.ax-menu__lang-trigger[aria-expanded="true"] [data-chev],
[data-drop][aria-expanded="true"] [data-chev] {
  transform: rotate(180deg);
}

.ax-menu__lang-panel {
  display: none;
  flex-direction: column;
  width: 100%;
  padding: 6px;
  border: 1px solid rgba(244, 241, 235, 0.24);
  border-top: 0;
  border-radius: 0 0 14px 14px;
  background: rgba(13, 17, 38, 0.96);
  background-image: linear-gradient(rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0) 46%);
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
}

.ax-menu__lang-panel.is-open {
  display: flex;
}

.ax-menu__lang-opt {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  min-height: 44px;
  margin: 0;
  padding: 10px 12px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: rgba(244, 241, 235, 0.62);
  font: inherit;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: left;
  cursor: pointer;
  transition: background 280ms ease, color 280ms ease;
}

.ax-menu__lang-opt.is-active {
  color: var(--ax-paper);
  background: rgba(244, 241, 235, 0.1);
}

@media (hover: hover) and (pointer: fine) {
  .ax-menu__lang-opt:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--ax-paper);
  }
}

.ax-menu__social {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 4px; /* slight air under contact card */
}

.ax-site .ax-menu__social-link,
.ax-menu__social-link {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(244, 241, 235, 0.66);
  transition: all 320ms ease;
  flex: 0 0 auto;
  min-height: 0 !important; /* beat [data-menu] a touch stretch */
}

@media (hover: hover) and (pointer: fine) {
.ax-site .ax-menu__social-link:hover,
.ax-menu__social-link:hover {
  background: rgba(244, 241, 235, 0.14);
  color: var(--ax-paper);
  border-color: rgba(244, 241, 235, 0.42);
}
}


/* ?? Footer ?? */
.ax-footer {
  position: relative;
  background: var(--ax-ink);
  color: var(--ax-paper);
  padding: clamp(48px, 5.6vw, 94px) 0 0;
}

.ax-footer__accent {
  position: absolute;
  left: 50%;
  top: -5px;
  transform: translateX(-50%);
  width: 80%;
  height: 10px;
  background: var(--ax-steel);
  display: block;
  pointer-events: none;
  z-index: 2;
}

/* W23-B11 — steel accent peeking above footer read as stray blue bar on mobile */
@media (max-width: 900px) {
  .ax-footer__accent {
    display: none;
  }
}

.ax-footer__inner {
  position: relative;
  max-width: var(--ax-maxw);
  margin: 0 auto;
  padding: 0 var(--ax-gutter);
}

.ax-footer__watermark {
  position: absolute;
  right: 0;
  bottom: clamp(14px, 1.6vw, 26px);
  width: min(860px, 56%);
  height: auto;
  display: block;
  opacity: .12;
  pointer-events: none;
  fill: #86A0C6; /* reference: fill="#86A0C6" - steel, not white */
  fill-rule: evenodd;
  z-index: 0;
  overflow: visible;
}

.ax-footer__grid {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(24px, 3.4vw, 64px);
  align-items: start;
  padding-bottom: clamp(34px, 4vw, 60px);
}

.ax-footer__grid > :not(.ax-footer__watermark) {
  position: relative;
  z-index: 1;
}

.ax-footer__brand-col {
  display: flex;
  flex-direction: column;
  gap: clamp(20px, 2.4vw, 34px);
}

.ax-footer__logo {
  width: clamp(180px, 17vw, 250px);
  display: block;
}

.ax-footer__tagline {
  font-weight: 300;
  font-size: clamp(22px, 2.2vw, 34px);
  line-height: 1.08;
  letter-spacing: -.028em;
  max-width: 22ch;
}

.ax-footer__contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Higher specificity than `.ax-site a` (navy) - reference: phone #F4F1EB, email #86A0C6 */
.ax-site .ax-footer__phone {
  color: #F4F1EB;
  font-weight: 300;
  font-size: clamp(26px, 2.8vw, 44px);
  line-height: 1;
  letter-spacing: -.035em;
  font-variant-numeric: tabular-nums;
}

@media (hover: hover) and (pointer: fine) {
.ax-site .ax-footer__phone:hover {
  color: #86A0C6;
  outline: none;
}
}
.ax-site .ax-footer__phone:focus-visible {
  color: #86A0C6;
  outline: none;
}

.ax-site .ax-footer__phone:focus-visible {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.ax-site .ax-footer__email {
  font-size: 15.5px;
  color: #86A0C6;
}

@media (hover: hover) and (pointer: fine) {
.ax-site .ax-footer__email:hover {
  color: #F4F1EB;
  outline: none;
}
}
.ax-site .ax-footer__email:focus-visible {
  color: #F4F1EB;
  outline: none;
}

.ax-site .ax-footer__email:focus-visible {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.ax-site .ax-footer__col a {
  color: #F4F1EB;
  font-size: 14.5px;
}

@media (hover: hover) and (pointer: fine) {
.ax-site .ax-footer__col a:hover {
  color: #86A0C6;
}
}


.ax-footer__meta {
  font-size: 14.5px;
  color: rgba(244,241,235,.55);
  margin-top: 6px;
}

.ax-footer__cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: clamp(20px, 2.4vw, 40px);
}

.ax-footer__col-title {
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(244,241,235,.4);
  margin-bottom: 6px;
  display: block;
}

.ax-footer__col {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.ax-footer__group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(20px, 3vw, 54px);
  border-top: 1px solid rgba(244,241,235,.16);
  border-bottom: 1px solid rgba(244,241,235,.16);
  padding: clamp(20px, 2.4vw, 32px) 0;
}

.ax-footer__group-label {
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(244,241,235,.4);
  flex: 0 0 auto;
}

.ax-footer__group-logo {
  display: block;
  opacity: .5;
  transition: opacity 420ms ease;
}

@media (hover: hover) and (pointer: fine) {
.ax-footer__group-logo:hover {
  opacity: 1;
}
}


.ax-footer__group-logo img {
  width: clamp(104px, 8.4vw, 132px);
  display: block;
}

.ax-footer__social {
  margin-left: auto;
  display: flex;
  gap: 9px;
}

.ax-site .ax-footer__social-link,
.ax-footer__social-link {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.16);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(244,241,235,.66);
  transition: all 320ms ease;
  flex: 0 0 auto;
}

@media (hover: hover) and (pointer: fine) {
.ax-site .ax-footer__social-link:hover,
.ax-footer__social-link:hover {
  background: rgba(244,241,235,.14);
  color: var(--ax-paper);
  border-color: rgba(244,241,235,.42);
}
}



.ax-footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  padding-top: 22px;
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(244,241,235,.45);
  padding-bottom: 26px;
}

.ax-footer__legal-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.ax-footer__legal-links > span {
  display: inline-flex;
  align-items: center;
  line-height: 1;
  /* Middle-dot sits high in Silka caps — nudge to optical center */
  transform: translateY(0.08em);
}

.ax-site .ax-footer__legal-links a,
.ax-footer__legal-links a {
  color: rgba(244,241,235,.45);
}

@media (hover: hover) and (pointer: fine) {
.ax-site .ax-footer__legal-links a:hover,
.ax-footer__legal-links a:hover {
  color: var(--ax-paper);
}
}




/*
 * Phone display typography — one system, per-context tracking (reference).
 * - menu card: -.02em, no tabular
 * - footer / contact band: -.035em + tabular-nums
 * - giant page phones (Inwestycje / O nas): -.05em + tabular-nums
 * Mobile (≤900): reference audyt override
 *   a[href^=tel:][font-weight 300|200] → clamp(30px, 9.2vw, 58px)
 */
.ax-site .ax-phone--display,
.ax-site a.ax-footer__phone,
.ax-site a.ax-menu__phone {
  font-weight: 300;
  word-spacing: 0;
}

.ax-site .ax-phone--display {
  font-family: var(--ax-font);
  color: var(--ax-navy);
  font-size: clamp(26px, 2.6vw, 44px);
  line-height: 1;
  letter-spacing: -.035em;
  font-variant-numeric: tabular-nums;
}

.ax-site .ax-phone--giant {
  font-family: var(--ax-font);
  font-weight: 300;
  font-size: clamp(46px, 11vw, 190px);
  line-height: .86;
  letter-spacing: -.05em;
  font-variant-numeric: tabular-nums;
  word-spacing: 0;
  color: var(--ax-navy);
}

/* ?? Reveal ?? */
[data-reveal] {
  transition: opacity 1s cubic-bezier(.16,1,.3,1), transform 1s cubic-bezier(.16,1,.3,1);
}

/* ?? Mobile chrome ?? */
@media (max-width: 900px) {
  [data-topbar] {
    display: none !important;
  }

  [data-menu-extra] {
    display: flex !important;
  }

  /* Fullscreen menu — tighten head + gap before first link */
  .ax-menu__head-inner {
    height: calc(64px + env(safe-area-inset-top, 0px));
    padding-top: env(safe-area-inset-top, 0px);
  }

  .ax-menu__head-logo {
    width: clamp(118px, 32vw, 138px);
  }

  .ax-menu__body {
    padding: 14px var(--ax-gutter) clamp(24px, 4vh, 40px);
  }

  [data-navhead] {
    top: 0 !important;
  }

  /* Mobile: no topbar offset — hide by own height only. */
  body.ax-nav-peek [data-navhead].is-nav-hidden {
    transform: translateY(calc(-100% - 12px));
  }

  /*
   * Watermark: right-aligned inside the guttered inner — never bleed past
   * the content edge (right:-6% + grid overflow:hidden clipped the D).
   */
  .ax-footer__watermark {
    width: min(78%, 328px) !important;
    max-width: none;
    left: auto !important;
    right: 0 !important;
    transform: none;
    bottom: 22px !important;
    opacity: 0.1;
    z-index: 0;
  }

  .ax-footer__grid {
    padding-bottom: clamp(56px, 14vw, 96px);
    gap: 22px;
  }

  .ax-footer__cols {
    gap: 18px 20px;
  }

  .ax-footer__col {
    gap: 0;
  }

  .ax-footer__col-title {
    margin-bottom: 2px;
  }

  /* Tighter footer nav — keep menu drawer hits at 40px */
  footer a,
  [data-menu] a {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
  }

  .ax-site .ax-footer__col a,
  .ax-footer__col a {
    min-height: 32px;
    padding: 5px 0;
  }

  /* Group logos under “Grupa Agrobex”, side by side */
  .ax-footer__group {
    gap: 14px 22px;
  }

  .ax-footer__group-label {
    flex: 1 0 100%;
  }

  .ax-footer__group-logo {
    flex: 0 0 auto;
  }

  .ax-footer__group-logo img {
    width: 112px;
  }

  .ax-footer__social {
    margin-left: 0;
    flex: 1 0 100%;
  }

  /* Legal links: don't stretch to 40px touch targets (lifts the · separator) */
  .ax-footer__legal-links a {
    min-height: 0;
    padding: 6px 0;
  }

  .ax-footer__legal {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  /* Coords + live clock — desktop legal row only */
  .ax-footer__legal [data-clock-2] {
    display: none;
  }

  /* Reference L105: a[href^=tel|mailto] min-height 44 — specificity (0,1,1) beats footer a (0,0,2). */
  a[href^="tel:"],
  a[href^="mailto:"] {
    min-height: 44px;
  }

  /*
   * Reference mobile audyt (Agrobex.dc.html L79):
   * a[href^=tel:][font-weight 300|200] { font-size: clamp(30px, 9.2vw, 58px) !important }
   * Tagline loses max-width: 22ch (L78).
   */
  .ax-site a.ax-footer__phone,
  .ax-site a.ax-menu__phone,
  .ax-site a.ax-phone--display {
    font-size: clamp(30px, 9.2vw, 58px) !important;
  }

  .ax-footer__tagline {
    max-width: none;
  }

  /*
   * W23-A3 — horizontal labels ≤900.
   * Keep mark+text eyebrows (units / ed-quote / manifest). Hide only the
   * vertical rail tick + orphan marks that don't reflow cleanly.
   */
  .ax-ed-quote__rail-line,
  .ax-divider__mark,
  .ax-process-steps__lead-mark,
  .ax-hero-onas__mark {
    display: none !important;
  }

  .ax-divider__rule--grow {
    display: none;
  }

  .ax-divider__row {
    justify-content: flex-start;
    gap: 12px;
  }

  .ax-divider__label {
    white-space: nowrap;
    text-align: left;
  }

  .ax-manifest__eyebrow,
  .ax-ed-quote__rail {
    writing-mode: horizontal-tb !important;
    white-space: normal !important;
    justify-self: start !important;
    order: 0 !important;
    padding: 0 0 14px !important;
  }

  .ax-manifest__inner,
  .ax-manifest__inner--onas {
    grid-template-columns: 1fr !important;
  }
}


@media (max-width: 639px) {
  .ax-site [data-navcta] {
    display: none !important;
  }
}
