/* HEADER */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  width: 100%;
  padding: 10px 0;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(18px);
  transform: translateY(-110%);
  opacity: 0;
  pointer-events: none;
  transition:
    transform 0.35s ease,
    opacity 0.35s ease,
    padding var(--transition),
    background var(--transition),
    box-shadow var(--transition);
}

.site-header.header-visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.site-header.scrolled {
  padding: 7px 0;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.header-logo {
  position: relative;
  display: flex;
  align-items: center;
  width: 150px;
  height: 42px;
  flex-shrink: 0;
  text-decoration: none;
}

.header-logo img {
  position: absolute;
  left: 0;
  top: 50%;
  height: 72px;
  width: auto;
  max-width: none;
  object-fit: contain;
  transform: translateY(-50%);
}

.header-nav {
  display: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.header-phone {
  display: none;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  background: #111111;
  color: #ffffff;
  text-decoration: none;
  font-size: 0.82rem;
  line-height: 1;
  font-weight: 850;
  white-space: nowrap;
  transition:
    background var(--transition),
    transform var(--transition);
}

.header-phone:hover {
  background: var(--accent);
  transform: translateY(-1px);
}

.phone-full {
  display: none;
}

.phone-short {
  display: inline;
}

.header-cta {
  display: none;
}

.header-menu-btn {
  min-height: 40px;
  padding: 0 12px 0 15px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #ffffff;
  color: #111111;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
  transition:
    transform var(--transition),
    border-color var(--transition),
    background var(--transition);
}

.header-menu-btn span {
  font-size: 0.82rem;
  line-height: 1;
  font-weight: 900;
}

.header-menu-btn i {
  width: 20px;
  height: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  font-style: normal;
}

.header-menu-btn b {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: #111111;
  transition: transform var(--transition);
}

.header-menu-btn.active b:first-child {
  transform: translateY(6px) rotate(45deg);
}

.header-menu-btn.active b:last-child {
  transform: translateY(-6px) rotate(-45deg);
}

/* MOBILE MENU */

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(0, 0, 0, 0.36);
  backdrop-filter: blur(10px);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}

.mobile-menu.active {
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu-panel {
  min-height: 100svh;
  padding: 96px var(--side-padding) 30px;
  background:
    radial-gradient(circle at top right, rgba(215, 25, 32, 0.1), transparent 36%),
    #ffffff;
  display: flex;
  flex-direction: column;
}

.mobile-menu-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--border);
}

.mobile-menu-top span {
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.mobile-menu-close {
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #f4f4f4;
  color: #111111;
  font-size: 0.82rem;
  font-weight: 850;
}

.mobile-menu-nav {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 32px 0;
}

.mobile-menu-nav a {
  color: #111111;
  text-decoration: none;
  font-size: clamp(2rem, 10vw, 3.8rem);
  line-height: 0.94;
  font-weight: 950;
  letter-spacing: -0.08em;
  text-transform: uppercase;
}

.mobile-menu-contacts {
  margin-top: auto;
  display: grid;
  gap: 10px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.mobile-menu-phone,
.mobile-menu-email {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 18px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 850;
}

.mobile-menu-phone {
  background: #111111;
  color: #ffffff;
}

.mobile-menu-email {
  background: #f2f2f2;
  color: rgba(17, 17, 17, 0.68);
}

.mobile-menu-cta {
  width: 100%;
}

body.menu-open {
  overflow: hidden;
}

@media (min-width: 520px) {
  .header-phone {
    display: inline-flex;
  }
}

@media (min-width: 720px) {
  .phone-full {
    display: inline;
  }

  .phone-short {
    display: none;
  }

  .header-phone {
    padding: 0 18px;
    font-size: 0.88rem;
  }
}

@media (min-width: 1120px) {
  .site-header {
    padding: 12px 0;
  }

  .site-header.scrolled {
    padding: 8px 0;
  }

  .header-logo {
    width: 210px;
    height: 54px;
  }

  .header-logo img {
    height: 104px;
  }

  .header-nav {
    display: flex;
    align-items: center;
    gap: 28px;
  }

  .header-nav a {
    position: relative;
    color: rgba(17, 17, 17, 0.68);
    text-decoration: none;
    font-size: 0.9rem;
    line-height: 1;
    font-weight: 800;
    transition: color var(--transition);
  }

  .header-nav a:hover {
    color: #111111;
  }

  .header-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 0;
    height: 2px;
    border-radius: 999px;
    background: var(--accent);
    transition: width var(--transition);
  }

  .header-nav a:hover::after {
    width: 100%;
  }

  .header-cta {
    display: inline-flex;
    min-height: 44px;
    padding: 0 20px;
    font-size: 0.88rem;
  }

  .header-menu-btn {
    display: none;
  }

  .mobile-menu {
    display: none;
  }
}

@media (max-width: 390px) {
  .header-logo {
    width: 132px;
  }

  .header-logo img {
    height: 66px;
  }

  .header-menu-btn {
    min-height: 38px;
    padding: 0 11px;
  }

  .header-menu-btn span {
    display: none;
  }
}