/* Единый site-header BeautyV для модулей вне WordPress. */
.site-header--static {
  --sh-ink: #141413;
  --sh-muted: #727271;
  --sh-tiffany: #5ec7c2;
  --sh-tiffany-dark: #3fa89f;
  --sh-gold-a: #d4af37;
  --sh-gold-b: #f5e5a3;
  --sh-header-h: 64px;
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  box-shadow: 0 1px 0 rgba(15, 23, 42, .04), 0 12px 32px -10px rgba(15, 23, 42, .14);
  font-family: "Manrope", "Montserrat", system-ui, sans-serif;
  color: var(--sh-ink);
  text-align: left;
}
.site-header--static *, .site-header--static *::before, .site-header--static *::after { box-sizing: border-box; }
.site-header--static .site-header__container { width: min(1506px, calc(100% - 32px)); margin-inline: auto; }
.site-header--static .site-header__row { display: flex; align-items: center; gap: 16px; min-height: var(--sh-header-h); }
.site-header--static .site-header__logo { display: flex; align-items: center; flex-shrink: 0; text-decoration: none; }
.site-header--static .site-header__logo-img { display: block; width: auto; height: 44px; max-width: min(112px, 32vw); object-fit: contain; border: 0; box-shadow: none; }
.site-header--static .site-header__nav { display: none; flex: 1; justify-content: center; min-width: 0; }
.site-header--static .site-header__list { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 2px; margin: 0; padding: 0; list-style: none; }
.site-header--static .site-header__item { margin: 0; padding: 0; }
.site-header--static .site-header__link { display: inline-block; padding: 10px 11px; color: var(--sh-muted); font-size: 14px; font-weight: 500; line-height: 1.35; letter-spacing: .01em; text-decoration: none; border-radius: 8px; transition: color .2s, background .2s; }
.site-header--static .site-header__link:hover { color: var(--sh-tiffany); background: rgba(94,199,194,.08); }
.site-header--static .site-header__link--active { color: var(--sh-tiffany); font-weight: 600; }
.site-header--static .site-header__toolbar { display: none; align-items: center; gap: 18px; flex-shrink: 0; }
.site-header--static .site-header__phone { display: inline-flex; align-items: center; gap: 7px; color: var(--sh-muted); font-size: 13px; font-weight: 500; text-decoration: none; white-space: nowrap; transition: color .2s; }
.site-header--static .site-header__phone:hover { color: var(--sh-tiffany); }
.site-header--static .site-header__phone-icon { flex-shrink: 0; width: 18px; height: 18px; color: var(--sh-muted); }
.site-header--static .site-header__cta { display: inline-flex; align-items: center; justify-content: center; padding: 10px 20px; border: 0; border-radius: 40px; background: linear-gradient(135deg, var(--sh-gold-a), var(--sh-gold-b)); color: #1a1a1a; font-size: 14px; font-weight: 700; line-height: 1.2; text-decoration: none; white-space: nowrap; box-shadow: 0 3px 14px rgba(24,18,0,.22); transition: transform .2s, box-shadow .2s, background .2s; }
.site-header--static .site-header__cta:hover { transform: scale(1.05) translateY(-2px); background: linear-gradient(135deg, #e5c04a, #fff0b8); box-shadow: 0 6px 22px rgba(24,18,0,.28); }
.site-header--static .site-header__cta:active { transform: none; filter: brightness(.96); }
.site-header--static .site-header__mobile-bar { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.site-header--static .site-header__phone-link { display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; color: var(--sh-muted); }
.site-header--static .site-header__phone-link svg { width: 22px; height: 22px; }
.site-header--static .site-header__cta--compact { padding: 9px 14px; font-size: 12px; }
.site-header--static .site-header__burger { display: grid; place-items: center; width: 38px; height: 38px; padding: 0; border: 0; background: transparent; color: var(--sh-ink); }
.site-header--static .site-header__burger svg { width: 24px; height: 24px; }
.site-header--static .site-header__panel { display: none; position: fixed; top: var(--sh-header-h); left: 0; right: 0; z-index: 99; max-height: calc(100vh - var(--sh-header-h)); overflow-y: auto; background: #fff; box-shadow: 0 12px 32px rgba(0,0,0,.08); }
.site-header--static .site-header__panel.is-open { display: block; }
.site-header--static .site-header__mobile-nav { padding: 14px 20px 26px; }
.site-header--static .site-header__mobile-top { display: flex; justify-content: flex-end; padding-bottom: 8px; }
.site-header--static .site-header__mobile-close { display: grid; place-items: center; width: 38px; height: 38px; padding: 0; border: 0; background: transparent; color: var(--sh-ink); }
.site-header--static .site-header__mobile-close svg { width: 22px; height: 22px; }
.site-header--static .site-header__mobile-list { margin: 0; padding: 0; list-style: none; }
.site-header--static .site-header__mobile-link { display: block; padding: 12px 4px; border-bottom: 1px solid rgba(16,16,16,.08); color: var(--sh-ink); font-size: 15px; text-decoration: none; }
.site-header--static .site-header__mobile-link:hover, .site-header--static .site-header__mobile-link--active { color: var(--sh-tiffany); }
.site-header--static .visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@media (min-width: 1024px) {
  .site-header--static { --sh-header-h: 80px; }
  .site-header--static .site-header__row { gap: 24px; }
  .site-header--static .site-header__logo-img { height: 62px; max-width: 180px; }
  .site-header--static .site-header__nav { display: flex; }
  .site-header--static .site-header__toolbar { display: flex; }
  .site-header--static .site-header__mobile-bar { display: none; }
  .site-header--static .site-header__panel { display: none !important; }
  .site-header--static .site-header__link { padding-inline: 10px; font-size: 14px; }
}
@media (min-width: 1280px) {
  .site-header--static .site-header__link { padding-inline: 14px; font-size: 15px; }
}
@media (max-width: 1023px) {
  .site-header--static .site-header__panel.is-open { display: block; }
}
html.sh-menu-open, html.sh-menu-open body { overflow: hidden; }
/* Blog dropdown */
.site-header--static .site-header__item--dropdown { position: relative; }
.site-header--static .site-header__link--dropdown { display: inline-flex; align-items: center; gap: 4px; }
.site-header--static .site-header__dropdown-chevron { display: inline-block; width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 5px solid currentColor; opacity: .45; transition: transform .2s, opacity .2s; }
.site-header--static .site-header__item--dropdown:hover .site-header__dropdown-chevron,
.site-header--static .site-header__item--dropdown:focus-within .site-header__dropdown-chevron { transform: rotate(180deg); opacity: .75; }
.site-header--static .site-header__dropdown { position: absolute; left: 50%; top: calc(100% - 2px); z-index: 110; min-width: 260px; padding: 10px 0; background: #fff; border-radius: 12px; box-shadow: 0 12px 40px rgba(0,0,0,.12), 0 0 0 1px rgba(94,199,194,.12); opacity: 0; visibility: hidden; transform: translate(-50%, 6px); transition: opacity .2s, visibility .2s, transform .2s; pointer-events: none; }
.site-header--static .site-header__item--dropdown:hover .site-header__dropdown,
.site-header--static .site-header__item--dropdown:focus-within .site-header__dropdown { opacity: 1; visibility: visible; transform: translate(-50%, 0); pointer-events: auto; }
.site-header--static .site-header__dropdown-list { margin: 0; padding: 0; list-style: none; }
.site-header--static .site-header__dropdown-link { display: block; padding: 9px 18px; color: var(--sh-muted); font-size: 14px; text-decoration: none; transition: color .2s, background .2s; }
.site-header--static .site-header__dropdown-link:hover { color: var(--sh-tiffany); background: rgba(94,199,194,.08); }
@media (max-width: 1023px) {
  .site-header--static .site-header__dropdown { display: none; }
  .site-header--static .site-header__dropdown-chevron { display: none; }
}
.site-header--static .site-header__mobile-group { border-bottom: 1px solid rgba(16,16,16,.08); }
.site-header--static .site-header__mobile-group > summary { display: flex; align-items: center; justify-content: space-between; cursor: pointer; list-style: none; }
.site-header--static .site-header__mobile-group > summary::-webkit-details-marker { display: none; }
.site-header--static .site-header__mobile-group > summary::after { content: ""; width: 9px; height: 9px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); opacity: .55; }
.site-header--static .site-header__mobile-group[open] > summary::after { transform: rotate(225deg); margin-top: 4px; }
.site-header--static .site-header__mobile-sublist { margin: 0; padding: 2px 0 10px 14px; list-style: none; }
.site-header--static .site-header__mobile-sublink { display: block; padding: 9px 4px; color: var(--sh-muted); font-size: 14px; text-decoration: none; }
.site-header--static .site-header__mobile-sublink:hover { color: var(--sh-tiffany); }

/* Переключатель светлой / тёмной темы */
.site-header--static .site-header__theme {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.site-header--static .site-header__theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(94, 199, 194, 0.22);
  border-radius: 12px;
  background: rgba(94, 199, 194, 0.08);
  color: #727271;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .15s ease;
}
.site-header--static .site-header__theme-toggle:hover {
  color: #5ec7c2;
  background: rgba(94, 199, 194, 0.14);
  border-color: rgba(94, 199, 194, 0.35);
}
.site-header--static .site-header__theme-toggle:active { transform: scale(.96); }
.site-header--static .site-header__theme-svg { display: block; }
.site-header--static .site-header__theme-svg--sun { display: none; }
html[data-theme="dark"] .site-header--static .site-header__theme-svg--moon { display: none; }
html[data-theme="dark"] .site-header--static .site-header__theme-svg--sun { display: block; }
html[data-theme="dark"] .site-header--static .site-header__theme-toggle {
  color: #e5e7eb;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.14);
}
html[data-theme="dark"] .site-header--static .site-header__theme-toggle:hover {
  color: #99f6e4;
  background: rgba(94, 199, 194, 0.15);
  border-color: rgba(94, 199, 194, 0.35);
}
.site-header--static .site-header__theme-toggle--mobile { display: none; }
@media (max-width: 1023px) {
  .site-header--static .site-header__theme-toggle { width: 38px; height: 38px; }
  .site-header--static .site-header__theme-toggle--mobile { display: inline-flex; }
}

/* Фирменный золотой вместо чёрных кнопок и активных фильтров */
.qa-filter.is-active,
.en-filter.is-active,
.pv-filter.is-active,
.chip.active,
.cm-hero__search button,
.qa-filter-search button,
.cm-cat:hover .cm-cat__arrow,
.pv-modal__top > span:first-child,
.pv-card__season,
.pv-winner-card__type,
.qa-avatars i,
.pv-avatars i,
.en-community__avatars span {
  background: linear-gradient(135deg, #d4af37 0%, #f5e5a3 100%) !important;
  color: #211a0d !important;
  border-color: #c6a24a !important;
  box-shadow: 0 6px 20px -12px rgba(198, 162, 74, .7) !important;
}
.qa-filter.is-active span,
.pv-filter.is-active span {
  background: rgba(33, 26, 13, .1) !important;
  color: #211a0d !important;
}
.cm-hero__search button:hover,
.qa-filter-search button:hover,
.cm-cat:hover .cm-cat__arrow {
  background: linear-gradient(135deg, #e5c04a 0%, #fff0b8 100%) !important;
}

/* Новое «Пространство BeautyV» в меню */
.site-header--static .site-header__item--new { position: relative; }
.site-header--static .site-header__link--new { color: #17251f; background: linear-gradient(120deg, rgba(94,199,194,.12), rgba(216,182,94,.16)); }
.site-header--static .site-header__link--new:hover { color: #0f6f69; background: linear-gradient(120deg, rgba(94,199,194,.2), rgba(216,182,94,.22)); }
.site-header--static .site-header__new-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 5px;
  padding: 2px 6px;
  border-radius: 999px;
  background: linear-gradient(135deg, #efd58e, #d8b65e);
  color: #3d2d08;
  font-size: 7px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: .04em;
  text-transform: uppercase;
  white-space: nowrap;
  animation: shNewBadgePulse 3s ease-in-out infinite;
}
.site-header--static .site-header__new-tip {
  position: absolute;
  left: 50%;
  top: calc(100% + 7px);
  z-index: 125;
  padding: 7px 10px;
  border-radius: 8px;
  background: #17251f;
  color: #f4fbf8;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
  box-shadow: 0 10px 24px -12px rgba(8,30,25,.65);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 4px);
  transition: opacity .2s ease, visibility .2s ease, transform .2s ease;
  pointer-events: none;
}
.site-header--static .site-header__new-tip::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 100%;
  border: 5px solid transparent;
  border-bottom-color: #17251f;
  transform: translateX(-50%);
}
.site-header--static .site-header__item--new:hover .site-header__new-tip,
.site-header--static .site-header__item--new:focus-within .site-header__new-tip { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.site-header--static .site-header__item--new .site-header__dropdown { top: calc(100% + 36px); }
@keyframes shNewBadgePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(216,182,94,.32); }
  50% { box-shadow: 0 0 0 5px rgba(216,182,94,0); }
}
@media (max-width: 1023px) {
  .site-header--static .site-header__new-tip { display: none; }
  .site-header--static .site-header__new-badge--mobile { font-size: 7px; margin-left: 5px; }
}
@media (prefers-reduced-motion: reduce) {
  .site-header--static .site-header__new-badge,
  .site-header--static .site-header__new-tip { animation: none !important; transition: none !important; }
}

/* Компактная подача нового пункта: бейдж не растягивает меню */
.site-header--static .site-header__link--new { position: relative; padding-right: 16px; white-space: nowrap; }
.site-header--static .site-header__link--new .site-header__new-badge {
  position: absolute;
  top: 2px;
  right: 1px;
  margin: 0;
  padding: 1px 4px;
  font-size: 6px;
  letter-spacing: .02em;
}
.site-header--static .site-header__new-badge--mobile { position: static; margin-left: 5px; padding: 2px 5px; font-size: 7px; }
@media (min-width: 1280px) {
  .site-header--static .site-header__link--new { padding-inline: 8px 16px; font-size: 13px; }
}
@media (max-width: 1279px) and (min-width: 1024px) {
  .site-header--static .site-header__link--new { font-size: 12px; padding-inline: 7px 15px; }
}

/* Компактное меню на средних десктопах, чтобы новый пункт не переносил «Контакты» */
@media (min-width: 1024px) and (max-width: 1399px) {
  .site-header--static .site-header__link { padding-inline: 8px; font-size: 13px; }
  .site-header--static .site-header__link--new { padding-inline: 7px 15px; font-size: 12.5px; }
  .site-header--static .site-header__toolbar { gap: 10px; }
  .site-header--static .site-header__cta { padding: 9px 14px; font-size: 13px; }
}

.site-header--static .site-header__new-short { display: none; }
@media (max-width: 1240px) and (min-width: 1024px) {
  .site-header--static .site-header__new-full { display: none; }
  .site-header--static .site-header__new-short { display: inline; }
}

@media (min-width: 1024px) and (max-width: 1240px) {
  .site-header--static .site-header__link { padding-inline: 5px; font-size: 12px; }
  .site-header--static .site-header__link--new { padding-inline: 5px 13px; font-size: 11.5px; }
  .site-header--static .site-header__cta { padding: 8px 12px; font-size: 12px; }
  .site-header--static .site-header__toolbar { gap: 7px; }
}

/* Ровная одна строка меню на широких экранах */
@media (min-width: 1024px) {
  .site-header--static .site-header__list { flex-wrap: nowrap; }
  .site-header--static .site-header__link { padding-inline: 9px; font-size: 13px; white-space: nowrap; }
  .site-header--static .site-header__link--new { padding-inline: 8px 16px; font-size: 12.5px; }
  .site-header--static .site-header__toolbar { gap: 12px; }
  .site-header--static .site-header__cta { padding: 9px 16px; font-size: 13px; }
}
@media (min-width: 1600px) {
  .site-header--static .site-header__link { padding-inline: 11px; font-size: 13.5px; }
  .site-header--static .site-header__link--new { padding-inline: 10px 17px; font-size: 13px; }
}
/* Светлый тултип вместо чёрного блока */
.site-header--static .site-header__new-tip {
  background: #fffdf8;
  color: #17251f;
  border: 1px solid #e7dcc4;
  box-shadow: 0 10px 26px -14px rgba(42,35,18,.45);
}
.site-header--static .site-header__new-tip::before { border-bottom-color: #fffdf8; }

/* Выпадающий список вплотную к пункту «Пространство BeautyV» */
.site-header--static .site-header__item--new .site-header__dropdown {
  top: calc(100% - 2px);
}
.site-header--static .site-header__item--new .site-header__dropdown::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -10px;
  height: 10px;
}
