/* ============================================================
   HEADER — .site-header, shared by index.html and about.html.
   No !important here: the old styles.css .site-header (z-index:200)
   this used to have to fight is no longer loaded on these pages.
   ============================================================ */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 500;
  display: flex; align-items: center; justify-content: space-between;
  /* зазор больше внутренних 36px у .site-header__actions: со space-between
     меню и блок действий сходились вплотную, и кнопка версии для
     слабовидящих прилипала к пункту «Отзывы» */
  gap: clamp(32px, 4vw, 72px);
  --header-pad: var(--gutter);
  padding: 24px var(--header-pad); flex-shrink: 0;
}
/* нижняя граница поднята: на 1200px логотип упирался в 24px и терялся */
.site-header__logo { flex-shrink: 0; }
.site-header__logo img { height: clamp(29px, 2.4vw, 36px); width: auto; }
.site-header__nav { display: flex; gap: clamp(18px, 2.5vw, 48px); }
.site-header__nav a {
  font-size: clamp(14px, 0.94vw, 18px); font-weight: 400; color: var(--c-text);
  letter-spacing: -0.04em; text-decoration: none; font-style: normal; white-space: nowrap;
  transition: opacity 0.2s;
}
.site-header__nav a:hover { opacity: 0.7; }
.site-header__actions { display: flex; align-items: center; gap: 36px; }
.site-header__connect { position: relative; }
.site-header__contact {
  display: flex; align-items: center; gap: 10px;
  font-size: clamp(14px, 0.94vw, 18px); font-weight: 400; color: var(--c-text);
  letter-spacing: -0.04em; text-decoration: none; white-space: nowrap; transition: opacity 0.2s;
  background: none; border: none; cursor: pointer; font-family: var(--f);
}
.site-header__contact:hover { opacity: 0.7; }
.site-header__contact svg { width: 8px; height: 5px; flex-shrink: 0; transition: transform 0.25s ease; }
.site-header__connect:hover .site-header__contact svg,
.site-header__connect:focus-within .site-header__contact svg,
.site-header__connect.is-open .site-header__contact svg { transform: rotate(180deg); }
.site-header__connect-panel {
  position: absolute; top: calc(100% + 18px); right: 0;
  background: var(--c-bg); border: 1px solid rgba(48,54,46,0.1);
  border-radius: 14px; box-shadow: 0 24px 64px rgba(16,47,39,0.18);
  padding: 12px; min-width: 240px; display: flex; flex-direction: column; gap: 2px;
  opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(-6px);
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s; z-index: 400;
}
.site-header__connect:hover .site-header__connect-panel,
.site-header__connect:focus-within .site-header__connect-panel,
.site-header__connect.is-open .site-header__connect-panel { opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0); }
.site-header__connect-item {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 8px;
  font-size: 14.5px; font-weight: 500; color: var(--c-text); text-decoration: none; transition: background 0.15s ease;
}
.site-header__connect-item:hover { background: rgba(119,114,71,0.08); color: var(--c-accent); }
.site-header__connect-item svg { width: 20px; height: 20px; flex-shrink: 0; }
.site-header__cta { padding: 12px clamp(24px, 2.19vw, 42px); font-size: clamp(14px, 0.94vw, 18px); font-weight: 400; letter-spacing: -0.04em; background: var(--c-accent); color: #fff; border-color: var(--c-accent); box-shadow: none; }
/* Specificity-boosted selector needed: buttons.css's .pill-btn (transparent
   bg, ink text, 1.5px border) loads AFTER this file on every page, so at
   equal specificity it silently wins the cascade tie and the fill never
   shows — confirmed sitewide (services.html has the same bug), not just
   here. Repeating the class forces this rule to win without touching the
   site's load order. border-radius already used this trick; background/
   color/border needed it too. */
.site-header .site-header__cta.site-header__cta {
  border-radius: 6px !important;
  background: var(--c-accent) !important;
  color: #fff !important;
  border-color: var(--c-accent) !important;
}
/* !important still needed: responsive.css (still loaded, shared with 28 other
   pages) sets a global, unconditional .pill-btn{border-radius:10px!important}
   ("premium button shape") that site-header__cta must keep overriding. */
.site-header__cta:hover,
.site-header .site-header__cta.site-header__cta:hover {
  background: #6A7C64 !important; border-color: #6A7C64 !important; color: #fff !important; box-shadow: none;
}

/* полные поля страницы шапка перестаёт вмещать раньше остальных
   секций: меню из семи пунктов плюс блок действий шире, чем
   остаётся места, и логотип схлопывался в ноль */
@media (max-width: 1439px) {
  .site-header { --header-pad: clamp(20px, 5vw, 88px); gap: clamp(24px, 2.6vw, 40px); }
  .site-header__nav { gap: clamp(14px, 1.8vw, 30px); }
}
/* последние ширины перед гамбургером (десктопное меню живёт до 1024px):
   здесь семь пунктов и кнопка «Записаться» помещаются впритык */
@media (max-width: 1100px) {
  .site-header { --header-pad: clamp(20px, 3.2vw, 44px); gap: 20px; }
  .site-header__nav { gap: clamp(12px, 1.3vw, 18px); }
  .site-header__actions { gap: 22px; }
}
