/* Unified site header — scoped to .kv-header / .kv-drawer. */

:root {
  --kv-header-ivory: #f7f5f0;
  --kv-header-ink: #1c1b17;
  --kv-header-sticky: #1a1916;
  --kv-header-sticky-bg: rgba(26, 25, 22, 0.96);
  --kv-z-header: 100;
  --kv-z-drawer-backdrop: 900;
  --kv-z-drawer: 2000;
}

body.kv-header-on #masthead,
body.kv-header-on .ka-header {
  display: none !important;
}

.kv-header-spacer {
  height: 88px;
  flex-shrink: 0;
}

.kv-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--kv-z-header);
  height: 88px;
  box-sizing: border-box;
  font-family: "room", "Inter", sans-serif;
  transition:
    background-color 320ms ease,
    height 320ms ease,
    color 320ms ease,
    box-shadow 320ms ease,
    border-color 320ms ease;
}

.kv-header__inner {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 56px;
  box-sizing: border-box;
}

.kv-header__burger {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-left: -8px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  text-decoration: none;
}

.kv-header__burger:hover {
  opacity: 0.82;
}

.kv-header__burger:focus-visible,
.kv-header__cta:focus-visible,
.kv-header__logo:focus-visible {
  outline: 1px solid currentColor;
  outline-offset: 4px;
}

.kv-header__burger svg {
  display: block;
  width: 22px;
  height: 15px;
}

.kv-header__logo {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.kv-header__logo img {
  display: block;
  width: 186px;
  height: auto;
  max-width: min(46vw, 210px);
  transition: width 320ms ease, filter 320ms ease, opacity 320ms ease;
}

.kv-header__cta {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 10px 22px;
  border: 1px solid currentColor;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font-family: "room", sans-serif;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 280ms ease, color 280ms ease, border-color 280ms ease;
}

.kv-header__cta-short {
  display: none;
}

.kv-header--overlay {
  background: transparent;
  color: #f7f5f0;
}

.kv-header--overlay .kv-header__logo img {
  filter: brightness(0) invert(1);
}

.kv-header--overlay .kv-header__cta {
  border-color: rgba(255, 255, 255, 0.45);
  color: rgba(255, 255, 255, 0.94);
}

.kv-header--overlay .kv-header__cta:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.8);
}

.kv-header--light {
  background: var(--kv-header-ivory);
  color: var(--kv-header-ink);
  border-bottom: 1px solid rgba(28, 27, 23, 0.08);
}

.kv-header--light .kv-header__logo img {
  filter: none;
}

.kv-header--light .kv-header__cta {
  border-color: rgba(28, 27, 23, 0.55);
  color: var(--kv-header-ink);
}

.kv-header--light .kv-header__cta:hover {
  background: rgba(28, 27, 23, 0.06);
  border-color: var(--kv-header-ink);
}

.kv-header.is-sticky {
  height: 64px;
  background: var(--kv-header-sticky-bg);
  color: #f7f5f0;
  border-bottom: 0;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.kv-header.is-sticky .kv-header__logo img {
  width: 158px;
  filter: brightness(0) invert(1);
}

.kv-header.is-sticky .kv-header__cta {
  min-height: 36px;
  padding: 8px 18px;
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff;
  background: transparent;
}

.kv-header.is-sticky .kv-header__cta:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.8);
}

.kv-header-sentinel {
  position: relative;
  width: 1px;
  height: 110px;
  margin-bottom: -110px;
  pointer-events: none;
  visibility: hidden;
}

/* Drawer */
.kv-drawer {
  position: fixed;
  inset: 0;
  z-index: var(--kv-z-drawer);
  display: none;
  pointer-events: none;
  isolation: isolate;
}

.kv-drawer[hidden] {
  display: none !important;
}

.kv-drawer.is-open {
  display: block;
  pointer-events: auto;
}

.kv-drawer__backdrop {
  position: absolute;
  inset: 0;
  z-index: var(--kv-z-drawer-backdrop);
  background: rgba(20, 18, 16, 0.55);
  border: 0;
  padding: 0;
  cursor: pointer;
}

.kv-drawer__panel {
  position: relative;
  z-index: var(--kv-z-drawer);
  width: min(420px, 92vw);
  height: 100%;
  overflow: auto;
  background: #f7f5f0;
  color: #1c1b17;
  padding: 28px 36px 48px;
  box-sizing: border-box;
  font-family: "room", "Inter", sans-serif;
}

.kv-drawer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}

.kv-drawer__kicker {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(28, 27, 23, 0.55);
}

.kv-drawer__close {
  width: 44px;
  height: 44px;
  margin-right: -10px;
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.kv-drawer__close:focus-visible {
  outline: 1px solid currentColor;
  outline-offset: 3px;
}

.kv-drawer nav + nav {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid rgba(28, 27, 23, 0.12);
}

.kv-drawer h2 {
  margin: 0 0 12px;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(28, 27, 23, 0.45);
}

.kv-drawer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.kv-drawer li + li {
  margin-top: 8px;
}

.kv-drawer a {
  color: inherit;
  text-decoration: none;
  font-size: 16px;
  font-weight: 300;
  line-height: 1.4;
}

.kv-drawer a:hover {
  opacity: 0.7;
}

.kv-drawer__socials {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 8px 0 16px;
}

.kv-drawer__socials a {
  display: inline-flex;
  color: #1c1b17;
}

.kv-drawer__contacts a {
  display: block;
  margin-top: 8px;
  font-size: 15px;
}

body.kv-drawer-open {
  overflow: hidden;
}

body.kv-drawer-open .kv-header {
  z-index: var(--kv-z-header);
}

.kv-header.is-menu-open {
  pointer-events: none;
}

.kv-header.is-menu-open .kv-header__burger {
  pointer-events: auto;
}

@media (max-width: 1100px) {
  .kv-header__inner {
    padding: 0 32px;
  }

  .kv-header__logo img {
    width: 168px;
  }

  .kv-header.is-sticky .kv-header__logo img {
    width: 148px;
  }
}

@media (max-width: 768px) {
  .kv-header,
  .kv-header-spacer {
    height: 68px;
  }

  .kv-header.is-sticky {
    height: 58px;
  }

  .kv-header__inner {
    padding: 0 20px;
  }

  .kv-header__logo img {
    width: 132px;
  }

  .kv-header.is-sticky .kv-header__logo img {
    width: 120px;
  }

  .kv-header__cta {
    min-height: 34px;
    padding: 8px 12px;
    font-size: 11px;
  }
}

@media (max-width: 520px) {
  .kv-header__cta-full {
    display: none;
  }

  .kv-header__cta-short {
    display: inline;
  }

  .kv-header__logo img {
    width: 124px;
  }

  .kv-header.is-sticky .kv-header__logo img {
    width: 112px;
  }
}

@media (max-width: 360px) {
  .kv-header__cta {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .kv-header,
  .kv-header__logo img,
  .kv-header__cta {
    transition: none;
  }
}
