:root {
  --green: #27ae60;
  --text: #1a1a1a;
  --text-muted: #777;
  --border: #e8e8e8;
  --header-h: 70px;
  --font: "Montserrat", sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  height: auto;
  min-height: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--font);
  background: #fff;
  color: var(--text);
}

img,
svg,
video {
  max-width: 100%;
}

button,
input,
textarea,
select {
  min-width: 0;
}

#navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
}

.site-header {
  width: 100%;
  background: #fff;
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s;
}

.site-header.scrolled {
  box-shadow: 0 2px 18px rgba(0, 0, 0, 0.07);
}

.header-inner {
  padding: 0 40px;
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 40px;
}

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

.logo-img {
  height: 48px;
  width: auto;
  object-fit: contain;
  display: block;
  transition: opacity 0.2s;
}

.logo-img:hover {
  opacity: 0.85;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  flex: 1;
  justify-content: center;
}

.nav-link {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  text-decoration: none;
  position: relative;
  padding-bottom: 2px;
  transition: color 0.2s;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--green);
  transition: width 0.25s;
}

.nav-link:hover {
  color: var(--green);
}
.nav-link:hover::after {
  width: 100%;
}
.nav-link.active {
  color: var(--green);
}
.nav-link.active::after {
  width: 100%;
}

.nav-icons {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-shrink: 0;
  margin-left: auto;
}

.icon-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: color 0.2s;
  position: relative;
}

.icon-btn svg {
  width: 20px;
  height: 20px;
}

.icon-btn:hover {
  color: var(--green);
}

.badge {
  position: absolute;
  top: -7px;
  right: -9px;
  background: var(--green);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
}

.search-bar {
  background: #fff;
  border-top: 1px solid var(--border);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.search-bar.open {
  max-height: 64px;
}

.search-inner {
  max-width: 560px;
  margin: 10px auto;
  padding: 8px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1.5px solid var(--border);
  border-radius: 40px;
}

.search-inner svg {
  width: 17px;
  height: 17px;
  color: var(--text-muted);
  flex-shrink: 0;
}

.search-inner input {
  flex: 1;
  border: none;
  outline: none;
  font-family: var(--font);
  font-size: 13px;
  color: var(--text);
  background: transparent;
}

.search-inner input::placeholder {
  color: var(--text-muted);
}

.search-close {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 13px;
  line-height: 1;
  transition: color 0.2s;
}

.search-close:hover {
  color: var(--text);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  flex-shrink: 0;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text);
  transition: all 0.3s;
  transform-origin: center;
}

.hamburger.open span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.hamburger.open span:nth-child(2) {
  opacity: 0;
}
.hamburger.open span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

.mobile-menu {
  display: none;
  flex-direction: column;
  background: #fff;
  border-left: 1px solid var(--border);
  position: fixed;
  top: 0;
  right: 0;
  width: min(280px, 86vw);
  height: 100vh;
  z-index: 1001;
  box-shadow: -8px 0 32px rgba(0, 0, 0, 0.12);
  padding-top: var(--header-h);
  transform: translateX(100%);
  transition: transform 0.35s ease;
  overflow-y: auto;
}

.mobile-menu.open {
  transform: translateX(0);
}

.mobile-link {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--text);
  text-decoration: none;
  padding: 14px 32px;
  border-bottom: 1px solid var(--border);
  transition: color 0.2s, background 0.2s;
}

.mobile-link:hover {
  color: var(--green);
  background: #f9f9f9;
}

.phone-popup {
  position: fixed;
  bottom: 32px;
  left: 32px;
  z-index: 9999;
  transform: translateY(120px);
  opacity: 0;
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.4s ease;
}

.phone-popup.show {
  transform: translateY(0);
  opacity: 1;
}

.phone-popup-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #fff;
  border-radius: 60px;
  padding: 14px 20px 14px 14px;
  box-shadow: 0 8px 32px rgba(233, 30, 140, 0.2), 0 2px 8px rgba(0, 0, 0, 0.08);
  border: 1.5px solid rgba(233, 30, 140, 0.15);
}

.phone-icon {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, #e91e8c, #c2185b);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  animation: ring 2.5s ease-in-out infinite;
}

@keyframes ring {
  0%, 100% { transform: rotate(0deg); }
  10% { transform: rotate(-12deg); }
  20% { transform: rotate(12deg); }
  30% { transform: rotate(-8deg); }
  40% { transform: rotate(8deg); }
  50% { transform: rotate(0deg); }
}

.phone-icon svg {
  width: 18px;
  height: 18px;
  stroke: #fff;
}

.phone-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.phone-label {
  font-family: "Montserrat", sans-serif;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: #e91e8c;
  text-transform: uppercase;
}

.phone-number {
  font-family: "Montserrat", sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #1a1a1a;
  text-decoration: none;
  letter-spacing: 0.03em;
  transition: color 0.2s;
}

.phone-number:hover {
  color: #e91e8c;
}

.phone-close {
  background: none;
  border: none;
  color: #bbb;
  cursor: pointer;
  font-size: 13px;
  padding: 0 0 0 6px;
  line-height: 1;
  transition: color 0.2s;
  flex-shrink: 0;
}

.phone-close:hover {
  color: #e91e8c;
}

@media (max-width: 900px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .mobile-menu { display: flex; }
  .header-inner { gap: 12px; padding: 0 20px; }
  .logo-img { height: 40px; }
}

@media (max-width: 480px) {
  .header-inner { padding: 0 14px; gap: 8px; }
  .logo-img { height: 34px; }
  .nav-icons { gap: 10px; }
  .icon-btn svg { width: 17px; height: 17px; }
  .search-inner {
    margin: 8px 12px;
    padding: 8px 14px;
  }
  .phone-popup {
    left: 10px;
    bottom: 16px;
    max-width: calc(100vw - 88px);
  }
  .phone-popup-inner {
    gap: 8px;
    padding: 9px 11px 9px 9px;
  }
  .phone-icon {
    width: 34px;
    height: 34px;
  }
  .phone-number {
    font-size: 12px;
    white-space: nowrap;
  }
}
