.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(248, 249, 250, 0.98);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
}

@supports (backdrop-filter: blur(10px)) {
  .header {
    backdrop-filter: blur(10px);
  }
}

@media (max-width: 768px) {
  .header {
    backdrop-filter: none;
  }
}

.nav {
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.brand-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo-img {
  height: 90px;
  max-height: 90px;
  width: auto;
  max-width: 320px;
  display: block;
  object-fit: contain;
}

.menu {
  display: flex;
  gap: 24px;
  align-items: center;
}

.menu a {
  font-size: 15px;
  text-decoration: none;
  color: #2f3a46;
  font-weight: 500;
  position: relative;
  padding: 8px 14px;
  border-radius: 999px;
}

.menu a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: #146c43;
  transition: width 0.2s ease;
}

.menu a:hover::after {
  width: 100%;
}

.menu a:hover {
  background: #146c43;
  color: #ffffff;
}

.social-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.social-links a {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid #d1d5db;
  color: #000000;
  background: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.18s ease;
}

.social-links a:nth-child(1),
.social-links a:nth-child(2),
.social-links a:nth-child(3) {
  background: #ffffff;
}

.social-links a:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.25);
}

.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid #d1d5db;
  background: #fff;
  padding: 0;
  line-height: 0;
  overflow: visible;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  position: relative;
}

.menu-toggle span {
  position: absolute;
  left: 50%;
  top: 50%;
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: #111827;
  transition: transform 0.2s ease, opacity 0.2s ease;
  transform-origin: center;
  will-change: transform;
  backface-visibility: hidden;
  transform: translate3d(-50%, -50%, 0);
}

.menu-toggle span:nth-child(1) {
  transform: translate3d(-50%, calc(-50% - 6px), 0);
}

.menu-toggle span:nth-child(2) {
  transform: translate3d(-50%, -50%, 0);
}

.menu-toggle span:nth-child(3) {
  transform: translate3d(-50%, calc(-50% + 6px), 0);
}

.menu-toggle.open span:nth-child(1) {
  transform: translate3d(-50%, -50%, 0) rotate(45deg);
}

.menu-toggle.open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.open span:nth-child(3) {
  transform: translate3d(-50%, -50%, 0) rotate(-45deg);
}

main {
  padding-top: var(--header-height);
}

@media (max-width: 768px) {
  :root {
    --header-height: 84px;
    --scroll-offset: 108px;
  }

  .nav {
    height: auto;
    min-height: var(--header-height);
    padding: 12px 20px;
  }

  .brand-block {
    gap: 2px;
  }

  .logo-img {
    height: 52px;
    max-height: 52px;
    max-width: 200px;
  }

  .menu {
    position: absolute;
    left: 0;
    right: 0;
    top: var(--header-height);
    background: #ffffff;
    flex-direction: column;
    gap: 8px;
    padding: 10px 16px 12px;
    border-bottom: 1px solid #e5e7eb;
    transform: translateY(-110%);
    opacity: 0;
    pointer-events: none;
    transition: 0.2s ease;
  }

  .menu a {
    width: 100%;
    font-size: 14px;
    padding: 6px 10px;
    text-align: center;
  }

  .menu.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .menu-toggle {
    display: flex;
    width: 44px;
    height: 44px;
  }

  .menu-toggle span {
    width: 20px;
  }

  .social-links {
    display: none;
  }

  main {
    padding-top: var(--header-height);
  }
}
