/* ============================================
   HEADER — fixed, backdrop-blur, vintage stamp brand
   ============================================ */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--surface-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--accent-line-mid);
}

.header_inner {
  max-width: 1600px;
  margin: 0 auto;
  padding: 1.4rem var(--main-padding);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

/* ===== Logo — vintage stamp + wordmark with italic country ===== */
.header_logo {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  font-family: "Albert Sans", sans-serif;
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.01em;
}

.header_logo > i {
  position: relative;
  display: inline-block;
  width: 2.4rem;
  height: 2.4rem;
  border: 1.5px solid var(--accent);
  border-radius: 50%;
  background: transparent;
  flex-shrink: 0;
}

.header_logo > i::before {
  content: "";
  position: absolute;
  inset: 3px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  opacity: 0.6;
}

.header_logo > i::after {
  content: "1x";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Fraunces", Georgia, serif;
  font-style: italic;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.05em;
}

.header_logo > span {
  font-family: "Fraunces", Georgia, serif;
  font-style: italic;
  font-weight: 500;
  color: var(--accent-2);
  margin-left: 0.15rem;
}

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

.header_logo:hover > i {
  box-shadow: 0 0 14px var(--accent-glow);
}

/* ===== Nav ===== WP wp_nav_menu обёртка: .header_nav > div > ul > li > a */
.header_nav > div > ul {
  display: flex;
  align-items: center;
  gap: 2.6rem;
}

.header_nav > div > ul > li > a {
  font-size: 1.02rem;
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
  padding: 0.3rem 0;
  letter-spacing: 0.02em;
}

.header_nav > div > ul > li > a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.25rem;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.25s ease;
  box-shadow: 0 0 8px var(--accent);
}

.header_nav > div > ul > li > a:hover {
  color: var(--accent);
}

.header_nav > div > ul > li > a:hover::after {
  width: 100%;
}

/* ===== CTA — pill capsule ===== */
.header_cta_big {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  font-size: 1rem;
  font-weight: 700;
  font-family: "Albert Sans", sans-serif;
  color: var(--on-accent);
  background: var(--accent);
  border-radius: var(--radius-full);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  box-shadow: inset 0 0 0 1px rgba(244, 233, 214, 0.15), 0 4px 12px rgba(0, 0, 0, 0.3);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    background 0.25s ease;
}

.header_cta_big:hover {
  background: var(--accent-bright);
  color: var(--on-accent);
  transform: translateY(-2px);
  box-shadow: inset 0 0 0 1px rgba(244, 233, 214, 0.22), 0 0 30px var(--accent-glow-strong);
}

/* ===== Burger ===== */
.header_burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 0.5rem;
  width: 5rem;
  height: 5rem;
  padding: 0 1rem;
  background: transparent;
  border: 1px solid var(--accent-border);
  border-radius: var(--radius-full);
  cursor: pointer;
}

.header_burger > span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

/* ===== Mobile menu (hidden on desktop) ===== */
.header_mobile {
  display: none;
  flex-direction: column;
  gap: 0.8rem;
  padding: 2rem var(--main-padding);
  background: var(--surface-bg-strong);
  border-top: 1px solid var(--accent-line-soft);
}

/* WP wp_nav_menu nav-ссылки: .header_mobile > div > ul > li > a */
.header_mobile > div > ul > li > a {
  font-size: 3.4rem;
  font-weight: 600;
  color: var(--text);
  padding: 1.2rem 0;
  border-bottom: 1px solid var(--accent-line);
  display: block;
}

.header_mobile > div > ul > li:last-child > a {
  border-bottom: none;
}

/* ============================================
   Mobile — ≤1024px
   ============================================ */
@media (max-width: 1024px) {
  .header_inner {
    padding: 2rem var(--main-padding);
  }

  .header_logo {
    font-size: 5.6rem;
    gap: 2rem;
  }

  .header_logo > i {
    width: 8rem;
    height: 8rem;
    border-width: 2px;
  }

  .header_logo > i::before {
    inset: 6px;
    border-width: 1.5px;
  }

  .header_logo > i::after {
    font-size: 3.2rem;
  }

  .header_nav {
    display: none;
  }

  .header_cta_big {
    display: none;
  }

  .header_burger {
    display: flex;
    width: 14rem;
    height: 14rem;
    gap: 1.4rem;
    padding: 0 3rem;
  }

  .header_burger > span {
    height: 4px;
  }

  /* ===== Mobile CTA — bright filled pill ===== */
  .header_mobile > a.header_mobile_cta {
    margin-top: 1.6rem;
    padding: 2.4rem 2rem;
    color: var(--on-accent);
    background: var(--accent);
    border-radius: var(--radius-full);
    border-bottom: none;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    font-weight: 800;
    font-size: 4rem;
    box-shadow: inset 0 0 0 2px rgba(244, 233, 214, 0.2), 0 0 28px var(--accent-glow-strong);
    transition:
      background 0.25s ease,
      box-shadow 0.25s ease;
  }

  .header_mobile > a.header_mobile_cta:hover,
  .header_mobile > a.header_mobile_cta:active {
    background: var(--accent-bright);
    color: var(--on-accent);
    box-shadow: inset 0 0 0 2px rgba(244, 233, 214, 0.28), 0 0 36px var(--accent-glow-bright);
  }
}
