/* Festival — шапка: верхняя полоса, липкая шапка, мега-меню каталога */

/* overflow:hidden у .site ломает position:sticky; clip режет так же, но без контейнера прокрутки */
#page.site { overflow: clip; }

/* ---------- Верхняя полоса (ПК) ---------- */
.super-header.fs-topbar {
  background: #d6336c !important;
  border: 0;
  padding: 0;
  color: #fff;
  font-size: 13px;
  line-height: 1.3;
}
.fs-topbar__inner {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 20px;
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  box-sizing: border-box;
}
.fs-topbar__info { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.fs-topbar__item { display: inline-flex; align-items: center; gap: 7px; }
.fs-topbar__item .fa,
.fs-topbar__item svg { opacity: .85; }
.fs-topbar__menu { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; }
.fs-topbar__menu li { margin: 0; padding: 0; }
.super-header.fs-topbar a { color: #fff; text-decoration: none; }
.super-header.fs-topbar a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Липкая шапка ---------- */
#masthead.fs-hdr {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 900;
  display: block;
  margin: 0 0 24px;
  padding: 0;
  background: #fff;
  border-bottom: 1px solid #f0e0e6;
  text-align: left;
  transition: box-shadow .2s ease;
}
body.admin-bar #masthead.fs-hdr { top: 32px; }
#masthead.fs-hdr.is-stuck { box-shadow: 0 8px 24px rgba(214, 51, 108, .10); }

.fs-hdr__inner {
  max-width: 1300px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-sizing: border-box;
  transition: padding .2s ease;
}
.fs-hdr__logo { flex: 0 0 auto; display: block; line-height: 0; }
.fs-hdr__logo img { display: block; height: 52px; width: auto; transition: height .2s ease; }
.fs-hdr.is-stuck .fs-hdr__inner { padding-top: 8px; padding-bottom: 8px; }
.fs-hdr.is-stuck .fs-hdr__logo img { height: 42px; }

.fs-hdr__catalog {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 46px;
  margin: 0;
  padding: 0 20px;
  border: 0;
  border-radius: 12px;
  background: #d6336c;
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  transition: background-color .2s ease;
}
.fs-hdr__catalog:hover,
.fs-hdr__catalog[aria-expanded="true"] { background: #b92a5c; }
.fs-hdr__catalog:focus { outline: 0; box-shadow: none; border: 0; }
.fs-hdr__catalog:focus-visible { outline: 3px solid rgba(214, 51, 108, .35); outline-offset: 2px; }
.fs-hdr__burger { position: relative; width: 18px; height: 14px; display: inline-block; }
.fs-hdr__burger i {
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform .2s ease, opacity .2s ease, top .2s ease;
}
.fs-hdr__burger i:nth-child(1) { top: 0; }
.fs-hdr__burger i:nth-child(2) { top: 6px; }
.fs-hdr__burger i:nth-child(3) { top: 12px; }
.fs-hdr__catalog[aria-expanded="true"] .fs-hdr__burger i:nth-child(1) { top: 6px; transform: rotate(45deg); }
.fs-hdr__catalog[aria-expanded="true"] .fs-hdr__burger i:nth-child(2) { opacity: 0; }
.fs-hdr__catalog[aria-expanded="true"] .fs-hdr__burger i:nth-child(3) { top: 6px; transform: rotate(-45deg); }

.fs-hdr__search { position: relative; flex: 1 1 auto; min-width: 180px; margin: 0; }
.fs-hdr__search input[type="search"] {
  width: 100%;
  height: 46px;
  margin: 0;
  padding: 0 48px 0 16px;
  border: 1px solid #f0e0e6;
  border-radius: 12px;
  background: #fffaf3;
  box-shadow: none;
  box-sizing: border-box;
  color: #2b2b2b;
  font-family: inherit;
  font-size: 14px;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.fs-hdr__search input[type="search"]::placeholder { color: #9a8a90; }
.fs-hdr__search input[type="search"]:focus {
  outline: 0;
  border-color: #d6336c;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(214, 51, 108, .12);
}
.fs-hdr__search button {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 38px;
  height: 38px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #d6336c;
  font-size: 16px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.fs-hdr__search button:hover { background: #fff0f6; }

.fs-hdr__ms { display: flex; align-items: center; gap: 6px; flex: 0 0 auto; }
.fs-ms {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff0f6;
  color: #d6336c;
  font-size: 19px;
  line-height: 1;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease;
}
.fs-ms:hover { transform: translateY(-1px); box-shadow: 0 4px 10px rgba(214, 51, 108, .15); }
.fs-ms--wa { background: #eafaf0; color: #25d366; }
.fs-ms--tg { background: #e8f5fc; color: #229ed9; }
.fs-ms img { width: 22px; height: 22px; object-fit: contain; display: block; }

.fs-hdr__phone { flex: 0 0 auto; display: flex; flex-direction: column; align-items: flex-start; line-height: 1.2; }
.fs-hdr__tel { color: #2b2b2b; font-size: 16px; font-weight: 600; white-space: nowrap; text-decoration: none; }
.fs-hdr__tel:hover { color: #d6336c; }
.fs-hdr__call {
  margin: 3px 0 0;
  padding: 0;
  border: 0;
  border-bottom: 1px dashed currentColor;
  background: none;
  color: #d6336c;
  font-family: inherit;
  font-size: 12.5px;
  line-height: 1.2;
  cursor: pointer;
}
.fs-hdr__call:hover { color: #b92a5c; }

.fs-hdr__tools { flex: 0 0 auto; display: flex; align-items: center; gap: 6px; }
.fs-hdr__tools .header-cart { position: relative; top: auto; right: auto; margin: 0; }
.fs-hdr__tools .header-favorite,
.fs-hdr__tools .header-customer-account,
.fs-hdr__tools .header-cart__link {
  position: relative;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  border: 1px solid #f0e0e6;
  border-radius: 12px;
  background: #fffaf3;
  color: #2b2b2b;
  font-size: 15px;
  box-sizing: border-box;
  text-decoration: none;
  transition: border-color .2s ease, background-color .2s ease;
}
.fs-hdr__tools .header-favorite:hover,
.fs-hdr__tools .header-customer-account:hover,
.fs-hdr__tools .header-cart__link:hover { border-color: #d6336c; background: #fff0f6; }
.fs-hdr__tools .header-favorite:before,
.fs-hdr__tools .header-customer-account:before,
.fs-hdr__tools .header-cart__link-ico:after { vertical-align: middle; color: #2b2b2b; }
.fs-hdr__tools .header-customer-account__text { display: none !important; }
.fs-hdr__tools .header-favorite:hover:before,
.fs-hdr__tools .header-customer-account:hover:before { color: #d6336c; }
.fs-hdr__tools .header-cart .header-cart__link { background: #d6336c; border-color: #d6336c; }
.fs-hdr__tools .header-cart .header-cart__link .header-cart__link-ico:after,
.fs-hdr__tools .header-cart .header-cart__link:hover .header-cart__link-ico:after { color: #fff; }
.fs-hdr__tools .header-cart .header-cart__link:hover { background: #b92a5c; border-color: #b92a5c; }
.fs-hdr__tools .header-favorite sup,
.fs-hdr__tools .header-cart__link sup {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 18px;
  height: 18px;
  margin: 0;
  padding: 0 4px;
  border: 2px solid #fff;
  border-radius: 10px;
  background: #2b2b2b;
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  line-height: 14px;
  text-align: center;
  box-sizing: border-box;
}
.fs-hdr__tools .header-favorite sup { background: #d6336c; }

/* Лента меню */
#masthead .fs-hdr__nav {
  margin: 0;
  padding: 0;
  border-top: 1px solid #f0e0e6;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
}
#masthead .fs-hdr__nav-inner {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 20px;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  box-sizing: border-box;
}
#masthead .fs-hdr__nav #header_menu { margin: 0 -12px; flex-wrap: nowrap; }
#masthead .fs-hdr__nav #header_menu > li > a,
#masthead .fs-hdr__nav #header_menu > li > span {
  display: block;
  padding: 12px;
  color: #2b2b2b;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  white-space: nowrap;
}
#masthead .fs-hdr__nav #header_menu > li > a:hover,
#masthead .fs-hdr__nav #header_menu > li.current-menu-item > a,
#masthead .fs-hdr__nav #header_menu > li > span { color: #d6336c; }
#masthead .fs-hdr__nav .sub-menu { border: 1px solid #f0e0e6; border-radius: 12px; overflow: hidden; }
.fs-hdr.is-stuck .fs-hdr__nav { display: none; }

/* ---------- Мега-меню ---------- */
.fs-mega {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 5;
  background: #fff;
  border-top: 1px solid #f0e0e6;
  box-shadow: 0 24px 40px rgba(43, 15, 27, .12);
  max-height: calc(100vh - 140px);
  overflow-y: auto;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity .18s ease, transform .18s ease;
}
.fs-mega.is-open { opacity: 1; transform: none; }
.fs-mega-backdrop {
  position: fixed;
  inset: 0;
  z-index: 899;
  background: rgba(43, 15, 27, .35);
  opacity: 0;
  transition: opacity .18s ease;
}
.fs-mega-backdrop.is-open { opacity: 1; }
.fs-mega__inner {
  max-width: 1300px;
  margin: 0 auto;
  padding: 28px 20px 30px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 270px;
  gap: 32px;
  box-sizing: border-box;
}
.fs-mega__cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.fs-mega__title {
  margin: 0 0 10px;
  color: #d6336c;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.fs-mega__title a { color: inherit; text-decoration: none; }
.fs-mega__title a:hover { text-decoration: underline; text-underline-offset: 3px; }
.fs-mega__list { list-style: none; margin: 0; padding: 0; }
.fs-mega__list li { margin: 0; padding: 0; }
.fs-mega__list a {
  display: block;
  padding: 6px 0;
  color: #2b2b2b;
  font-size: 14.5px;
  line-height: 1.3;
  text-decoration: none;
  transition: color .15s ease, transform .15s ease;
}
.fs-mega__list a:hover { color: #d6336c; transform: translateX(3px); }
.fs-mega__side { display: flex; flex-direction: column; gap: 12px; }
.fs-mega__quiz {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 22px;
  border: 1px solid #f0e0e6;
  border-radius: 12px;
  background: linear-gradient(135deg, #fff0f6 0%, #fffaf3 100%);
  color: #2b2b2b;
  text-decoration: none;
}
.fs-mega__quiz-kicker { color: #8a7a80; font-size: 13px; }
.fs-mega__quiz-title { font-size: 19px; font-weight: 600; line-height: 1.25; }
.fs-mega__quiz-btn {
  margin-top: 6px;
  padding: 10px 16px;
  border-radius: 12px;
  background: #d6336c;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
}
.fs-mega__quiz:hover .fs-mega__quiz-btn { background: #b92a5c; }
.fs-mega__all {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 16px;
  border: 1px solid #f0e0e6;
  border-radius: 12px;
  color: #d6336c;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}
.fs-mega__all:hover { background: #fff0f6; }

@media (max-width: 1200px) {
  .fs-hdr__inner { gap: 12px; }
  .fs-hdr__ms { display: none; }
  .fs-mega__inner { grid-template-columns: 1fr; }
  .fs-mega__side { flex-direction: row; }
  .fs-mega__quiz { flex: 1 1 auto; }
}
@media (max-width: 1000px) {
  .fs-hdr__phone { display: none; }
  .fs-mega__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- Мобильная шапка ---------- */
#masthead.fs-hdr--mob { margin: 0; }
.fs-hdr--mob .fs-hdr__row {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 62px;
  padding: 0 10px 0 56px;
  box-sizing: border-box;
}
.fs-hdr--mob .fs-hdr__logo { flex: 0 1 auto; min-width: 0; }
.fs-hdr--mob .fs-hdr__logo img,
.fs-hdr--mob.is-stuck .fs-hdr__logo img,
.fs-hdr--mob .is-stuck .fs-hdr__logo img { height: 30px; width: auto; max-width: 100%; }
.fs-hdr__acts { margin-left: auto; display: flex; align-items: center; gap: 4px; flex: 0 0 auto; }
.fs-hdr--mob .fs-hdr__ms { display: flex; gap: 4px; }
.fs-hdr__ico,
.fs-hdr--mob .fs-ms {
  width: 34px;
  height: 34px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff0f6;
  color: #d6336c;
  font-size: 16px;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
}
.fs-hdr--mob .fs-ms { font-size: 18px; }
.fs-hdr--mob .fs-ms--wa { background: #eafaf0; color: #25d366; }
.fs-hdr--mob .fs-ms--tg { background: #e8f5fc; color: #229ed9; }
.fs-hdr--mob .fs-ms img { width: 20px; height: 20px; }
.fs-hdr__ico[aria-expanded="true"] { background: #d6336c; color: #fff; }
.fs-hdr__msearch { padding: 0 10px 10px; }
.fs-hdr__msearch .fs-hdr__search input[type="search"] { height: 42px; font-size: 16px; }
.fs-hdr__msearch .fs-hdr__search button { top: 2px; }

body.fs-is-mobile #masthead + .top-menu { margin-bottom: 10px; }
/* Полоски RMP сидят в верхней части кнопки, поэтому кнопка ниже центра строки на 6px. */
body.fs-is-mobile .rmp_menu_trigger { position: fixed !important; top: 18px !important; }
body.fs-is-mobile.admin-bar .rmp_menu_trigger { top: 64px !important; }

@media (max-width: 782px) {
  body.admin-bar #masthead.fs-hdr { top: 46px; }
}
@media (max-width: 600px) {
  body.admin-bar #masthead.fs-hdr { top: 0; }
  body.fs-is-mobile.admin-bar .rmp_menu_trigger { top: 18px !important; }
}
@media (max-width: 380px) {
  .fs-hdr--mob .fs-ms--max { display: none; }
}

/* Нижнее мобильное меню */
@media (max-width: 991px) {
  #bottom-menu.fs-bnav {
    left: 0;
    right: 0;
    width: auto;
    height: auto;
    min-height: 62px;
    align-items: stretch;
    padding: 0 6px env(safe-area-inset-bottom);
    background: #fff;
    border: 1px solid #f0c9d8;
    border-bottom: 0;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -4px 18px rgba(214, 51, 108, 0.1);
    box-sizing: border-box;
  }
  #bottom-menu.fs-bnav > a {
    flex: 1 1 20%;
    justify-content: center;
    gap: 4px;
    min-width: 0;
    padding: 8px 2px;
    color: #222;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  #bottom-menu.fs-bnav > a img {
    display: block;
    width: 24px;
    height: 24px;
    object-fit: contain;
    transition: transform .15s ease;
  }
  #bottom-menu.fs-bnav > a span {
    font-family: inherit;
    font-size: 12px;
    line-height: 1.2;
    white-space: nowrap;
  }
  #bottom-menu.fs-bnav > a:active img { transform: scale(.9); }
  #bottom-menu.fs-bnav > a.fs-bnav__home img { width: 26px; height: 36px; }
}
@media (max-width: 340px) {
  #bottom-menu.fs-bnav > a span { font-size: 11px; }
}
