/* =========================================================
   MELETEA — BLOCK 1: HEADER
   ========================================================= */

.mlta-header,
.mlta-header * {
  box-sizing: border-box;
}

.mlta-header {
  position: relative;
  z-index: 1000;
  width: 100%;
  margin: 0;
  background: #ffffff;
  border-bottom: 1px solid rgba(7, 48, 38, 0.04);
  font-family: Arial, Helvetica, sans-serif;
}

.mlta-header__inner {
  width: min(100% - 64px, 1760px);
  min-height: 108px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 42px;
}

.mlta-header__logo {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.mlta-header__logo img {
  display: block;
  width: 226px;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.mlta-header__content {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(40px, 5vw, 96px);
}

.mlta-header__nav {
  display: flex;
  align-items: center;
}

.mlta-header__nav ul {
  display: flex;
  align-items: center;
  gap: clamp(35px, 3.2vw, 68px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.mlta-header__nav-item {
  margin: 0;
  padding: 0;
}

.mlta-header__nav-item a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 16px 0;
  color: #111713;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition:
    color 180ms ease,
    opacity 180ms ease;
}

.mlta-header__nav-item a:hover,
.mlta-header__nav-item a:focus-visible {
  color: #073f32;
}

.mlta-header__nav-item--dropdown svg {
  margin-top: 1px;
  transition: transform 180ms ease;
}

.mlta-header__nav-item--dropdown a:hover svg {
  transform: translateY(1px);
}

.mlta-header__actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 18px;
}

.mlta-header__button {
  min-height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  padding: 0 25px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.mlta-header__button--primary {
  min-width: 217px;
  color: #ffffff;
  background: #063b2f;
  border: 1px solid #063b2f;
}

.mlta-header__button--primary:hover,
.mlta-header__button--primary:focus-visible {
  color: #ffffff;
  background: #0a4a3b;
  border-color: #0a4a3b;
  transform: translateY(-1px);
}

.mlta-header__button--secondary {
  min-width: 207px;
  color: #151b18;
  background: #ffffff;
  border: 1px solid #9ca5a0;
}

.mlta-header__button--secondary:hover,
.mlta-header__button--secondary:focus-visible {
  color: #063b2f;
  background: #f6f8f7;
  border-color: #063b2f;
  transform: translateY(-1px);
}

.mlta-header__whatsapp,
.mlta-header__calendar {
  flex: 0 0 auto;
}

.mlta-header__toggle,
.mlta-header__burger {
  display: none;
}

/* Medium desktop */
@media (max-width: 1450px) {
  .mlta-header__inner {
    width: min(100% - 40px, 1320px);
    gap: 28px;
  }

  .mlta-header__logo img {
    width: 190px;
  }

  .mlta-header__content {
    gap: 34px;
  }

  .mlta-header__nav ul {
    gap: 28px;
  }

  .mlta-header__button {
    min-height: 52px;
    padding-inline: 18px;
  }

  .mlta-header__button--primary,
  .mlta-header__button--secondary {
    min-width: auto;
  }
}

/* Tablet and mobile navigation */
@media (max-width: 1100px) {
  .mlta-header__inner {
    position: relative;
    width: min(100% - 36px, 960px);
    min-height: 88px;
    justify-content: space-between;
  }

  .mlta-header__logo img {
    width: 185px;
  }

  .mlta-header__burger {
    width: 44px;
    height: 44px;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    border: 1px solid #a9b1ad;
    border-radius: 6px;
    cursor: pointer;
  }

  .mlta-header__burger span {
    width: 21px;
    height: 2px;
    display: block;
    background: #073b30;
    border-radius: 10px;
    transition:
      transform 180ms ease,
      opacity 180ms ease;
  }

  .mlta-header__content {
    position: absolute;
    top: calc(100% - 1px);
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
    padding: 28px;
    background: #ffffff;
    border-top: 1px solid #edf0ee;
    box-shadow: 0 18px 35px rgba(8, 43, 34, 0.12);
  }

  .mlta-header__toggle:checked ~ .mlta-header__content {
    display: flex;
  }

  .mlta-header__toggle:checked + .mlta-header__burger span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .mlta-header__toggle:checked + .mlta-header__burger span:nth-child(2) {
    opacity: 0;
  }

  .mlta-header__toggle:checked + .mlta-header__burger span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .mlta-header__nav,
  .mlta-header__nav ul {
    width: 100%;
  }

  .mlta-header__nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .mlta-header__nav-item a {
    width: 100%;
    justify-content: space-between;
    padding: 15px 2px;
    border-bottom: 1px solid #edf0ee;
    font-size: 15px;
  }

  .mlta-header__actions {
    width: 100%;
  }

  .mlta-header__button {
    flex: 1 1 50%;
  }
}

@media (max-width: 620px) {
  .mlta-header__inner {
    width: calc(100% - 28px);
    min-height: 78px;
  }

  .mlta-header__logo img {
    width: 158px;
  }

  .mlta-header__content {
    padding: 22px 18px 24px;
  }

  .mlta-header__actions {
    flex-direction: column;
  }

  .mlta-header__button {
    width: 100%;
    min-height: 54px;
  }
}