/* ═══════════════════════════════════════════════════════════════
   HEADER — sticky header, brand, nav, burger
   ═══════════════════════════════════════════════════════════════ */

:root {
  --header-h: 92px;
}

/* ── Header ─────────────────────────────────────────────────── */
.header {
  position: fixed;
  top: 0;
  z-index: 50;
  background: transparent;
  transition: background-color .25s cubic-bezier(.4,0,.2,1),
              box-shadow .25s cubic-bezier(.4,0,.2,1),
              border-color .25s cubic-bezier(.4,0,.2,1);
  border-bottom: 1px solid transparent;
  
  width: 100%;
}

.header__inner::before {
  display: block;
  content: '';
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  position: absolute;
  background: #C9B49A;
  filter: blur(46.4px);
  z-index: 0;
  transition: opacity .25s cubic-bezier(.4,0,.2,1);;
}

.header.is-scrolled {
  background: rgba(247, 244, 239, .94);
  backdrop-filter: blur(10px);
  border-bottom-color: rgba(201, 180, 154, .35);
  box-shadow: 0 2px 16px rgba(0,0,0,.06);
}

.header.is-scrolled .header__inner::before {
  opacity: 0;
}

.header__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  min-height: var(--header-h);
  padding-block: 10px;
}

/* ── Brand ──────────────────────────────────────────────────── */
.brand {
  display: flex;
  flex-direction: column;
  gap: 20px;
  line-height: 1;
  position: relative;
  z-index: 2;
}

.brand__name {
  font-family: "Onest", sans-serif;
  font-weight: 700;
  font-size: 26px;
  line-height: 100%;
  letter-spacing: -.02em;
  color: var(--primary-font);
  display: flex;
}

.brand__name span:nth-child(1) {
  color: var(--accent);
}
.brand__name span:nth-child(2) {
  color: var(--accent-2);
}
.brand__name span:nth-child(3) {
  color: var(--primary-dark);
}

.brand__name-accent { color: var(--accent); }

.brand__tagline {
  font-size: 14px;
  color: var(--primary-dark);
  letter-spacing: -.01em;
}

.nav {
  position: relative;
  z-index: 2;
}

/* ── Navigation ─────────────────────────────────────────────── */
.nav__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.nav__link {
  color: var(--primary-dark);
  transition: color .2s;
  position: relative;
}

.nav__link:hover { color: var(--accent); }

.burger {
  cursor: pointer;
}

/* ── Header contact zone ────────────────────────────────────── */
.header__contact {
  display: flex;
  align-items: center;
  gap: 14px;
  position: relative;
  z-index: 2;
}

.header__phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "Onest", sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: var(--primary-font);
  white-space: nowrap;
}

.header__phone .icon { color: var(--primary-font); }

.header__cta { min-height: 44px; padding: 0 22px; font-size: 15px; }

.header__socials {
  display: flex;
  align-items: center;
  gap: 8px;
}
.header__social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--surface);
  transition: background .2s, transform .2s;
}
.header__social-link:hover { background: var(--accent); transform: scale(1.1); }
.header__social-link img { width: 20px; height: 20px; object-fit: contain; }

/* ── Burger ─────────────────────────────────────────────────── */
.burger {
  display: none;
  width: 44px;
  height: 44px;
  flex-direction: column;
  gap: 5px;
  align-items: center;
  justify-content: center;
}

.burger__line {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--primary-font);
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 1180px) {
  .nav__list { gap: 16px; }
  .nav__link { font-size: 14px; }
  .header__phone { display: none; }
}

@media (max-width: 980px) {
  :root { --header-h: 72px; }

  .header__inner { grid-template-columns: 1fr auto; }
  .nav { display: none; }
  .header__phone span { display: none; }
  .header__phone { padding: 8px; }
  .header__cta { display: none; }
  .header__socials { display: none; }
  .burger { display: inline-flex; }
}

@media (max-width: 640px) {
  .brand {
    gap: 10px;
  }
  .header__inner { gap: 12px; }
  .brand__name { font-size: 16px; }
  .brand__tagline { font-size: 13px; }
}
