/* Custom L2D header. This replaces the exported Tilda menu visually. */
:root {
  --l2d-bg: #0d1012;
  --l2d-panel: rgba(17, 20, 23, 0.94);
  --l2d-panel-solid: #111417;
  --l2d-line: rgba(255, 255, 255, 0.1);
  --l2d-text: #f7f8f8;
  --l2d-muted: rgba(247, 248, 248, 0.68);
  --l2d-accent: #04cab9;
  --l2d-accent-dark: #021f1d;
}

body.l2d-custom-header-ready #t-header,
body.l2d-custom-header-ready #rec809147002,
body.l2d-custom-header-ready #rec809147003,
body.l2d-custom-header-ready #rec817960448,
body.l2d-custom-header-ready #rec817960449 {
  display: none !important;
}

.l2d-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 99999;
  width: 100%;
  background: var(--l2d-panel);
  border-bottom: 1px solid var(--l2d-line);
  color: var(--l2d-text);
  font-family: var(--t-text-font, Arial, sans-serif);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

body.l2d-custom-header-ready {
  --l2d-header-height: 73px;
}

#ivy-reviews-widget {
  scroll-margin-top: calc(var(--l2d-header-height) + 24px);
}

.l2d-header * {
  box-sizing: border-box;
}

.l2d-header__bar {
  display: grid;
  grid-template-columns: auto minmax(420px, 1fr) auto;
  align-items: center;
  gap: 28px;
  max-width: 1360px;
  min-height: 72px;
  margin: 0 auto;
  padding: 0 28px;
}

.l2d-header__brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 190px;
  color: var(--l2d-text);
  text-decoration: none;
}

.l2d-header__logo {
  display: block;
  width: 158px;
  height: auto;
}

.l2d-header__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.l2d-header__item {
  position: relative;
}

.l2d-header__link,
.l2d-header__drop-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 13px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--l2d-text);
  font: 700 13px/1 var(--t-text-font, Arial, sans-serif);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease;
}

body.l2d-custom-header-ready .l2d-header__link,
body.l2d-custom-header-ready .l2d-header__drop-button,
body.l2d-custom-header-ready .l2d-header__dropdown a {
  color: #f7f8f8 !important;
}

.l2d-header__link:hover,
.l2d-header__link:focus-visible,
.l2d-header__drop-button:hover,
.l2d-header__drop-button:focus-visible {
  background: rgba(4, 202, 185, 0.12);
  color: var(--l2d-accent);
  outline: none;
}

body.l2d-custom-header-ready .l2d-header__link:hover,
body.l2d-custom-header-ready .l2d-header__link:focus-visible,
body.l2d-custom-header-ready .l2d-header__drop-button:hover,
body.l2d-custom-header-ready .l2d-header__drop-button:focus-visible,
body.l2d-custom-header-ready .l2d-header__dropdown a:hover,
body.l2d-custom-header-ready .l2d-header__dropdown a:focus-visible {
  color: #04cab9 !important;
}

.l2d-header__drop-button::after {
  content: "";
  width: 7px;
  height: 7px;
  margin-left: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}

.l2d-header__dropdown {
  position: absolute;
  left: 50%;
  top: calc(100% + 12px);
  min-width: 246px;
  padding: 8px;
  border: 1px solid var(--l2d-line);
  border-radius: 16px;
  background: var(--l2d-panel-solid);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.36);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 8px);
  transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s ease;
}

.l2d-header__item:hover .l2d-header__dropdown,
.l2d-header__item:focus-within .l2d-header__dropdown {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.l2d-header__dropdown a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 10px;
  color: var(--l2d-text);
  font-size: 15px;
  line-height: 1.2;
  text-decoration: none;
}

.l2d-header__dropdown a:hover,
.l2d-header__dropdown a:focus-visible {
  background: rgba(4, 202, 185, 0.12);
  color: var(--l2d-accent);
  outline: none;
}

.l2d-header__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.l2d-header__phone {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
  min-width: 172px;
  color: var(--l2d-muted);
  font-size: 12px;
  line-height: 1.15;
  text-decoration: none;
}

body.l2d-custom-header-ready .l2d-header__phone,
body.l2d-custom-header-ready .l2d-header__phone span {
  color: rgba(247, 248, 248, 0.68) !important;
}

.l2d-header__phone strong {
  color: var(--l2d-text);
  font-size: 18px;
  line-height: 1.1;
  font-weight: 800;
}

body.l2d-custom-header-ready .l2d-header__phone strong {
  color: #f7f8f8 !important;
}

.l2d-header__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--l2d-accent);
  color: var(--l2d-accent-dark);
  font-size: 14px;
  line-height: 1;
  font-weight: 800;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 0 12px 28px rgba(4, 202, 185, 0.24);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

body.l2d-custom-header-ready .l2d-header__cta {
  color: #021f1d !important;
}

.l2d-header__cta:hover,
.l2d-header__cta:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 16px 34px rgba(4, 202, 185, 0.32);
  outline: none;
}

.l2d-header__social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--l2d-line);
  border-radius: 50%;
  color: var(--l2d-text);
  text-decoration: none;
}

.l2d-header__social svg {
  display: block;
}

.l2d-header__burger {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--l2d-line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  color: var(--l2d-accent);
  cursor: pointer;
}

.l2d-header__burger span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  border-radius: 999px;
  background: currentColor;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.l2d-header.is-open .l2d-header__burger span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.l2d-header.is-open .l2d-header__burger span:nth-child(2) {
  opacity: 0;
}

.l2d-header.is-open .l2d-header__burger span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.l2d-header__mobile {
  display: none;
  min-height: calc(100vh - 68px);
  border-top: 1px solid var(--l2d-line);
  background: var(--l2d-panel-solid);
  overflow-y: auto;
}

.l2d-header__mobile-inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 16px 22px 24px;
}

.l2d-header__mobile-group {
  padding: 10px 0;
  border-bottom: 1px solid var(--l2d-line);
}

.l2d-header__mobile-title {
  margin: 0 0 10px;
  color: var(--l2d-muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.l2d-header__mobile .l2d-header__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 42px;
  padding: 0 2px;
  color: var(--l2d-text);
  font-size: 17px;
  line-height: 1.2;
  font-weight: 650;
  letter-spacing: 0;
  text-decoration: none;
  text-transform: none;
}

.l2d-header__mobile .l2d-header__link + .l2d-header__link {
  margin-top: 2px;
}

.l2d-header__mobile .l2d-header__link::after {
  content: "";
  width: 8px;
  height: 8px;
  border-top: 2px solid rgba(255, 255, 255, 0.34);
  border-right: 2px solid rgba(255, 255, 255, 0.34);
  transform: rotate(45deg);
}

.l2d-header__mobile .l2d-header__phone {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  min-height: auto;
  margin-top: 16px;
  padding: 14px 16px;
  border: 1px solid var(--l2d-line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--l2d-muted);
  text-decoration: none;
}

.l2d-header__mobile .l2d-header__phone::after {
  display: none;
}

.l2d-header__mobile .l2d-header__phone strong {
  margin-top: 4px;
  font-size: 19px;
}

.l2d-header__mobile .l2d-header__cta {
  width: 100%;
  margin-top: 14px;
  min-height: 50px;
  font-size: 15px;
  padding: 0 18px;
  justify-content: center;
  color: var(--l2d-accent-dark);
  text-align: center;
}

@media screen and (max-width: 1220px) {
  .l2d-header__bar {
    grid-template-columns: auto 1fr auto;
    gap: 18px;
    padding: 0 20px;
  }

  .l2d-header__logo {
    width: 144px;
  }

  .l2d-header__link,
  .l2d-header__drop-button {
    padding: 0 9px;
    font-size: 12px;
  }

  .l2d-header__phone {
    display: none;
  }
}

@media screen and (max-width: 980px) {
  body.l2d-mobile-menu-open {
    position: fixed;
    width: 100%;
    height: 100%;
    overflow: hidden;
  }

  body.l2d-custom-header-ready {
    --l2d-header-height: 70px;
  }

  .l2d-header__bar {
    display: flex;
    min-height: 68px;
    padding: 0 20px;
  }

  .l2d-header__brand {
    min-width: 0;
    margin-right: auto;
  }

  .l2d-header__logo {
    width: 52px;
  }

  .l2d-header__nav,
  .l2d-header__phone,
  .l2d-header__actions .l2d-header__social,
  .l2d-header__actions > .l2d-header__cta {
    display: none;
  }

  .l2d-header__burger {
    display: inline-block;
  }

  .l2d-header.is-open {
    display: flex;
    flex-direction: column;
    height: 100dvh;
  }

  .l2d-header.is-open .l2d-header__mobile {
    display: block;
    flex: 1 1 auto;
    min-height: 0;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
  }
}
