/* =============================================
   HEADER — КРОНОВЪ
   Единый стиль шапки для всех страниц сайта.
   Подключается: <link rel="stylesheet" href="header/header.css">
   ============================================= */

/* --- Sticky header bar --- */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(30,20,16,.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(212,184,150,.1);
  transition: all .3s;
}

.header-inner {
  max-width: var(--max-w, 1200px);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 18px;
  justify-content: space-between;
  height: 64px;
}

/* --- Logo --- */
.header-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}
.header-logo svg { width: 32px; height: 32px; }
.header-logo-text {
  font-family: var(--font-display, 'Playfair Display', Georgia, serif);
  font-size: 18px;
  color: var(--c-sand, #D4B896);
  letter-spacing: 3px;
}

/* --- Navigation links --- */
.header-nav {
  display: flex;
  gap: 28px;
  align-items: center;
}
.header-nav a {
  font-size: 13px;
  font-weight: 500;
  color: var(--c-sand, #D4B896);
  letter-spacing: 0.5px;
  opacity: .7;
  transition: opacity .3s;
  text-decoration: none;
}
.header-nav a:hover { opacity: 1; }

/* --- CTA button in header --- */
.header-cta {
  padding: 10px 24px !important;
  background: var(--c-bordo, #7A2E38) !important;
  color: var(--c-white, #FFFFFF) !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  border-radius: 4px;
  opacity: 1 !important;
  transition: background .3s;
}
.header-cta:hover { background: #8E3542 !important; }

/* --- Burger (mobile) --- */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}
.burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--c-sand, #D4B896);
  border-radius: 2px;
  transition: all .3s;
}

/* --- Always-visible phone (Алёна) --- */
.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 6px 16px 6px 8px;
  margin-left: 18px;
  background: rgba(184,150,90,.10);
  border: 1px solid rgba(184,150,90,.35);
  border-radius: 30px;
  color: var(--c-cream, #F2EBE0);
  text-decoration: none;
  transition: background .25s, border-color .25s, transform .2s;
  flex-shrink: 0;
}
.header-phone:hover {
  background: rgba(184,150,90,.22);
  border-color: var(--c-bronze, #B8965A);
  transform: translateY(-1px);
}
.header-phone-ring {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--c-bordo, #7A2E38);
  color: var(--c-cream, #F2EBE0);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  animation: hp-ring 3.4s ease-in-out infinite;
}
@keyframes hp-ring {
  0%, 88%, 100% { transform: rotate(0); }
  90% { transform: rotate(-15deg); }
  92% { transform: rotate(15deg); }
  94% { transform: rotate(-10deg); }
  96% { transform: rotate(8deg); }
  98% { transform: rotate(-4deg); }
}
.header-phone-text { display: flex; flex-direction: column; line-height: 1.15; }
.header-phone-num {
  font-family: var(--font-body, 'Montserrat', sans-serif);
  font-size: 14px; font-weight: 700;
  color: var(--c-cream, #F2EBE0);
  letter-spacing: 0.3px; white-space: nowrap;
}
.header-phone-name {
  font-size: 10px;
  color: var(--c-bronze, #B8965A);
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 500;
  white-space: nowrap;
}

/* --- Add structural flex sizing so nav doesn't push phone offscreen --- */
.header-logo { flex-shrink: 0; }
.header-phone { flex-shrink: 0; }
.header-nav { flex: 0 1 auto; min-width: 0; }

/* --- Mobile menu (бургер появляется раньше: на 1024px чтобы освободить место для телефона) --- */
@media (max-width: 1280px) {
  .header-nav { display: none; }
  .burger { display: flex; }
  .header-nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px; left: 0; right: 0;
    background: rgba(30,20,16,.98);
    padding: 24px;
    border-bottom: 1px solid rgba(212,184,150,.1);
    gap: 14px;
  }
  .header-nav.open a { padding: 8px 0; }
}
/* old breakpoint kept for compactness on phones */
@media (max-width: 768px) {
  .header-nav { display: none; }
  .burger { display: flex; }
  .header-nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px; left: 0; right: 0;
    background: rgba(30,20,16,.98);
    padding: 24px;
    border-bottom: 1px solid rgba(212,184,150,.1);
  }
  .header-phone { margin-left: 0; padding: 5px 12px 5px 6px; gap: 8px; }
  .header-phone-ring { width: 30px; height: 30px; }
  .header-phone-num { font-size: 13px; }
  .header-phone-name { display: none; }
}
@media (max-width: 380px) {
  .header-phone-text { display: none; }
  .header-phone { padding: 4px; }
}

/* Sticky-bar Viber button */
.sticky-viber { background: #7360F2; color: var(--c-white, #FFFFFF); }

/* --- Sticky mobile bar (call + WhatsApp) --- */
.sticky-bar {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 999;
  background: var(--c-dark, #1E1410);
  border-top: 1px solid rgba(212,184,150,.1);
  padding: 10px 16px;
}
.sticky-bar-inner {
  display: flex;
  gap: 10px;
}
.sticky-bar a {
  flex: 1;
  padding: 14px;
  text-align: center;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}
.sticky-call { background: var(--c-bordo, #7A2E38); color: var(--c-white, #FFF); }
.sticky-wa   { background: #25D366; color: var(--c-white, #FFF); }

@media (max-width: 768px) {
  .sticky-bar { display: block; }
  body { padding-bottom: 76px; }
}
