/* ═══════════════════════════════════════════════════════
   HEADER & NAV — Transparent, Quiet, Present
   ═══════════════════════════════════════════════════════ */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: all var(--duration-normal) var(--ease-gentle);
}

.site-header.scrolled {
  padding: 12px 0;
  background: rgba(10, 18, 32, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px);
}

/* Logo */
.header__logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--warm-ivory) !important;
  flex-shrink: 0;
}

.header__logo-mark {
  width: 110px;
  height: auto;
  display: block;
}

/* Nav */
.header__nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.header__nav-link {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.018em;
  color: rgba(245, 240, 232, 0.76) !important;
  text-decoration: none;
  transition: color var(--duration-normal) var(--ease-gentle), transform var(--duration-normal) var(--ease-gentle);
  position: relative;
  text-shadow: 0 0 10px rgba(212, 168, 83, 0.08);
}
.header__nav-link:hover,
.header__nav-link.active {
  color: rgba(245, 240, 232, 0.98) !important;
  transform: translateY(-1px);
}
.header__nav-link::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212, 168, 83, 0.72), transparent);
  transform: scaleX(0);
  opacity: 0.9;
  transition: transform var(--duration-normal) var(--ease-gentle), opacity var(--duration-normal) var(--ease-gentle);
}
.header__nav-link:hover::after,
.header__nav-link.active::after {
  transform: scaleX(1);
  opacity: 1;
}

.header__begin {
  margin-left: 14px;
  padding-left: 22px;
  position: relative;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.03em;
  color: var(--heart-glow) !important;
  text-decoration: none;
  text-shadow: 0 0 18px rgba(212, 168, 83, 0.22);
  transition: color var(--duration-normal) var(--ease-gentle), transform var(--duration-normal) var(--ease-gentle), text-shadow var(--duration-normal) var(--ease-gentle);
}

.header__begin::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 1px;
  height: 18px;
  transform: translateY(-50%);
  background: linear-gradient(180deg, rgba(245, 230, 200, 0.04), rgba(245, 230, 200, 0.3), rgba(245, 230, 200, 0.04));
}

.header__begin:hover {
  color: var(--heart-hover) !important;
  transform: translateY(-1px);
  text-shadow: 0 0 22px rgba(212, 168, 83, 0.3);
}

/* Mobile menu toggle */
.header__toggle {
  display: none;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  position: relative;
  z-index: 1001;
}

.header__toggle-bar {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--warm-ivory);
  margin: 5px auto;
  transition: all var(--duration-normal) var(--ease-gentle);
  border-radius: 1px;
}

.header__toggle.open .header__toggle-bar:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.header__toggle.open .header__toggle-bar:nth-child(2) { opacity: 0; }
.header__toggle.open .header__toggle-bar:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile nav */
@media (max-width: 768px) {
  .site-header.menu-open {
    bottom: 0;
    padding: 12px 0;
  }

  .site-header {
    padding: 12px 0;
  }

  .site-header.scrolled {
    padding: 8px 0;
    background: rgba(10, 18, 32, 0.92);
    border-bottom-color: rgba(255, 255, 255, 0.03);
  }

  .header__inner {
    padding: 0 18px;
  }

  .header__toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 13px;
    background: rgba(10, 18, 32, 0.92);
    border: 1px solid rgba(245, 230, 200, 0.14);
    box-shadow: 0 10px 24px rgba(10, 18, 32, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    -webkit-tap-highlight-color: transparent;
  }

  .header__toggle:hover,
  .header__toggle:focus,
  .header__toggle:focus-visible,
  .header__toggle:active,
  .header__toggle.open {
    background: rgba(10, 18, 32, 0.92);
    border-color: rgba(245, 230, 200, 0.14);
    box-shadow: 0 10px 24px rgba(10, 18, 32, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    outline: none;
  }

  .header__toggle::before,
  .header__toggle::after {
    content: "";
    position: absolute;
    left: 50%;
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: #f5f0e8;
    box-shadow: 0 0 10px rgba(245, 240, 232, 0.14);
    transform-origin: center;
    transition: transform var(--duration-normal) var(--ease-gentle), box-shadow var(--duration-normal) var(--ease-gentle);
  }

  .header__toggle::before {
    transform: translate(-50%, -6px);
  }

  .header__toggle::after {
    transform: translate(-50%, 6px);
    box-shadow: 0 -6px 0 #f5f0e8, 0 0 10px rgba(245, 240, 232, 0.14);
  }

  .header__toggle-bar {
    display: none !important;
  }

  .header__toggle.open::before {
    transform: translate(-50%, 0) rotate(45deg);
  }

  .header__toggle.open::after {
    transform: translate(-50%, 0) rotate(-45deg);
    box-shadow: none;
  }

  .header__nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: auto;
    height: 100dvh;
    min-height: 100dvh;
    max-height: 100dvh;
    z-index: 1000;
    display: flex;
    width: min(78vw, 286px);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    flex-wrap: nowrap;
    padding: 82px 22px 28px;
    gap: 0;
    background:
      radial-gradient(circle at top left, rgba(212, 168, 83, 0.1), transparent 34%),
      linear-gradient(180deg, rgba(15, 28, 45, 0.98), rgba(10, 18, 32, 0.99));
    border-left: 1px solid rgba(245, 230, 200, 0.08);
    box-shadow: -26px 0 60px rgba(10, 18, 32, 0.42);
    transform: translateX(100%);
    transition: transform var(--duration-normal) var(--ease-gentle);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }

  .header__nav.open { transform: translateX(0); }

  .header__nav-link {
    flex: 0 0 auto;
    padding: 13px 0;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: 0.01em;
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  }
  .header__nav-link::after { display: none; }

  .header__begin {
    flex: 0 0 auto;
    margin-left: 0;
    padding-left: 0;
    margin-top: 18px;
    width: 100%;
    text-align: center;
    min-height: 46px;
    padding: 14px 22px;
    font-size: 14px;
    border-radius: 999px;
    border: 1px solid rgba(212, 168, 83, 0.18);
    background: rgba(212, 168, 83, 0.08);
  }

  .header__begin::before {
    display: none;
  }
}

/* Mobile overlay */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 18, 32, 0.54);
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--duration-normal) var(--ease-gentle);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.nav-overlay.active {
  opacity: 1;
  pointer-events: all;
}

/* ── Cookie Consent ── */
.cookie-consent {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  z-index: 9998;
  background: linear-gradient(180deg, rgba(18, 32, 51, 0.96), rgba(10, 18, 32, 0.98));
  border: 1px solid rgba(245, 230, 200, 0.12);
  border-radius: var(--radius-card);
  padding: 20px 28px;
  max-width: 420px;
  width: calc(100% - 48px);
  text-align: center;
  box-shadow: var(--shadow-soft);
  transition: transform var(--duration-slow) var(--ease-gentle);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.cookie-consent.visible {
  transform: translateX(-50%) translateY(0);
}

.cookie-consent__text {
  font-size: 14px;
  color: rgba(245, 240, 232, 0.78);
  margin-bottom: 16px;
  line-height: 1.5;
}

.cookie-consent__actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}
