:root {
  --fleur-menu-size: 72px;
  --fleur-green: #062f25;
  --fleur-green-2: #0d3d30;
  --fleur-gold: #d7b878;
  --fleur-cream: #fff7e8;
}

html,
body {
  overflow-x: hidden !important;
}

body {
  padding-left: var(--fleur-menu-size) !important;
}

.fleur-sidebar,
.fleur-sidebar *,
.fleur-auth-choice,
.fleur-auth-choice * {
  box-sizing: border-box;
}

.fleur-sidebar {
  position: fixed;
  left: 0;
  top: 0;
  width: var(--fleur-menu-size);
  height: 100vh;
  z-index: 999999;
  background:
    radial-gradient(circle at 50% 0%, rgba(215, 184, 120, 0.22), transparent 34%),
    linear-gradient(180deg, var(--fleur-green-2) 0%, var(--fleur-green) 100%);
  color: var(--fleur-cream);
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
  box-shadow: 12px 0 34px rgba(0, 0, 0, 0.14);
}

.fleur-logo-link {
  width: 100%;
  height: 74px;
  flex: 0 0 74px;
  padding-top: 13px;
  text-decoration: none;
  color: var(--fleur-cream);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.fleur-logo-round {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 1px solid rgba(215, 184, 120, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: rgba(215, 184, 120, 0.08);
  color: var(--fleur-gold);
  font-weight: 800;
  font-size: 15px;
}

.fleur-logo-img {
  width: 116%;
  height: 116%;
  object-fit: cover;
  display: block;
  transform: scale(1.08);
}

.fleur-logo-fallback {
  display: none;
}

.fleur-logo-text {
  display: none;
}

.fleur-menu-strip {
  position: absolute;
  left: 50%;
  top: 40%;
  width: 620px;
  transform: translate(-50%, -50%) rotate(-90deg);
  transform-origin: center center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.fleur-menu-brand {
  position: relative;
  width: 100%;
  text-align: center;
  color: var(--fleur-gold);
  font-family: TildaSans, Arial, sans-serif;
  font-size: 12px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0.055em;
  text-transform: uppercase;
  opacity: 0.98;
  text-shadow:
    0 1px 8px rgba(0, 0, 0, 0.22),
    0 0 16px rgba(215, 184, 120, 0.14);
  pointer-events: none;
  transform: translateX(55px);
}

.fleur-menu-brand::before,
.fleur-menu-brand::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 34px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(215, 184, 120, 0.72), transparent);
  transform: translateY(-50%);
}

.fleur-menu-brand::before {
  left: calc(50% - 155px);
}

.fleur-menu-brand::after {
  right: calc(50% - 155px);
}

.fleur-nav {
  width: auto;
  margin-top: 0;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 22px;
}

.fleur-nav a,
.fleur-account-link {
  position: relative;
  width: auto;
  min-height: 34px;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(255, 247, 232, 0.76);
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: TildaSans, Arial, sans-serif;
  font-size: 12px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0.02em;
  transition: 0.18s ease;
  cursor: pointer;
  margin-top: 0;
}

.fleur-nav a span,
.fleur-account-link span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  max-width: 128px;
  padding: 8px 12px;
  line-height: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  border: 1px solid rgba(215, 184, 120, 0.72);
  border-radius: 999px;
  color: #fff7e8;
  background: rgba(215, 184, 120, 0.10);
  box-shadow: inset 0 0 0 1px rgba(255, 247, 232, 0.08);
}

.fleur-nav a:hover,
.fleur-nav a.active,
.fleur-account-link:hover,
.fleur-account-link.active {
  color: var(--fleur-cream);
}

.fleur-nav a::before,
.fleur-account-link::before {
  content: "";
  position: absolute;
  left: 50%;
  top: auto;
  bottom: -8px;
  width: 24px;
  height: 3px;
  border-radius: 10px;
  background: linear-gradient(90deg, #ffe7a8 0%, var(--fleur-gold) 100%);
  transform: translateX(-50%) scaleX(0);
  opacity: 0;
  transition: 0.18s ease;
}

.fleur-nav a.active::before,
.fleur-account-link.active::before {
  transform: translateX(-50%) scaleX(1);
  opacity: 1;
}

.fleur-nav a.active::after,
.fleur-account-link.active::after {
  display: none;
}

.fleur-nav-separator {
  display: block;
  width: 1px;
  height: 34px;
  flex: 0 0 1px;
  margin: 0 2px;
  background: rgba(215, 184, 120, 0.38);
}

.fleur-account-link {
  margin-top: 0;
}

.fleur-account-link span {
  max-width: 128px;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 8px 5px;
  border: 1px solid rgba(215, 184, 120, 0.72);
  border-radius: 999px;
  color: #fff7e8;
  background: rgba(215, 184, 120, 0.10);
  box-shadow: inset 0 0 0 1px rgba(255, 247, 232, 0.08);
}

.fleur-account-link.is-logged span {
  color: #fff7e8;
  border-color: rgba(215, 184, 120, 0.92);
  background: rgba(215, 184, 120, 0.16);
}


.fleur-account-link:hover span,
.fleur-account-link.active span {
  color: #fff7e8;
  border-color: rgba(215, 184, 120, 1);
  background: rgba(215, 184, 120, 0.18);
  box-shadow:
    inset 0 0 0 1px rgba(255, 247, 232, 0.12),
    0 0 0 2px rgba(215, 184, 120, 0.08);
}

.fleur-auth-choice {
  position: fixed;
  z-index: 9999999;
  width: 276px;
  padding: 20px 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 18px 55px rgba(8, 40, 31, 0.20);
  color: #0b2f25;
  font-family: TildaSans, Arial, sans-serif;
}

.fleur-auth-choice-title {
  margin-bottom: 10px;
  font-size: 17px;
  line-height: 1.2;
  font-weight: 800;
  color: #08281f;
}

.fleur-auth-choice-text {
  margin-bottom: 16px;
  font-size: 13px;
  line-height: 1.55;
  color: rgba(16, 40, 32, 0.62);
}

.fleur-auth-choice-login,
.fleur-auth-choice-register {
  width: 100%;
  height: 46px;
  border-radius: 999px;
  font-family: TildaSans, Arial, sans-serif;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: 0.18s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.fleur-auth-choice-login {
  border: 0;
  color: #ffffff;
  background: linear-gradient(135deg, #0d3428 0%, #08281f 100%);
  box-shadow: 0 12px 28px rgba(8, 40, 31, 0.22);
}

.fleur-auth-choice-login:hover,
.fleur-auth-choice-register:hover {
  transform: translateY(-1px);
}

.fleur-auth-choice-register {
  margin-top: 10px;
  color: #0b2f25;
  border: 1px solid rgba(215, 184, 120, 0.62);
  background: linear-gradient(180deg, #fffaf0 0%, #fff5e6 100%);
}

/* Прячем только стандартный круглый ЛК справа сверху. Важно: не display:none, чтобы не ломать Tilda Members. */
.fleur-native-account-icon-hidden {
  opacity: 0 !important;
  pointer-events: none !important;
}

.fleur-sidebar,
.fleur-sidebar * {
  visibility: visible !important;
}



@media (min-width: 981px) {
  .fleur-nav a:not(.fleur-account-link) span {
    max-width: none !important;
    min-width: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  .fleur-account-link span {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 48px !important;
    padding: 8px 12px !important;
    border: 1px solid rgba(215, 184, 120, 0.72) !important;
    border-radius: 999px !important;
    background: rgba(215, 184, 120, 0.10) !important;
  }
}

@media (min-width: 981px) {
  body .tlk-userbar,
  body .tlk-userbar__popup,
  body .tlk-popup,
  body .tlk__popup,
  body .tilda-members-popup,
  body .t-members-popup {
    position: fixed !important;
    left: var(--fleur-members-popup-left, 98px) !important;
    right: auto !important;
    top: var(--fleur-members-popup-top, 520px) !important;
    bottom: auto !important;
    transform: none !important;
    margin-left: 0 !important;
    margin-top: 0 !important;
    z-index: 1000001 !important;
    max-width: calc(100vw - 116px) !important;
    transition: opacity .14s ease !important;
  }
}

@media (max-width: 980px) {
  body {
    padding-left: 0 !important;
    padding-top: 64px !important;
  }

  .fleur-sidebar {
    width: 100%;
    height: 64px;
    flex-direction: row;
    padding: 0 10px;
    overflow: hidden;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.14);
  }

  .fleur-logo-link {
    width: 48px;
    min-width: 48px;
    height: 64px;
    flex: 0 0 48px;
    padding-top: 0;
    gap: 0;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .fleur-logo-round {
    width: 38px;
    height: 38px;
  }

  .fleur-logo-text {
    display: none !important;
  }

  .fleur-menu-strip {
    position: static;
    left: auto;
    top: auto;
    width: auto;
    height: 64px;
    flex: 1;
    margin-left: 8px;
    transform: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    overflow: hidden;
  }

  .fleur-menu-brand {
    display: block !important;
    position: static;
    width: 100%;
    text-align: center;
    color: var(--fleur-cream);
    font-family: TildaSans, Arial, sans-serif;
    font-size: 9.2px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-transform: none;
    opacity: 0.96;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.18);
    pointer-events: none;
    transform: none;
  }

  .fleur-menu-brand::before,
  .fleur-menu-brand::after {
    display: none;
  }

  .fleur-nav {
    width: 100%;
    margin-top: 0;
    margin-left: 0;
    flex: 0 0 auto;
    height: 28px;
    flex-direction: row-reverse;
    align-items: center;
    justify-content: space-between;
    gap: 0;
  }

  .fleur-nav-separator {
    display: none;
  }

  .fleur-nav a,
  .fleur-account-link {
    width: auto;
    min-height: 28px;
    padding: 0 2px;
    font-size: 8.2px;
    letter-spacing: 0;
    margin-top: 0;
  }

  .fleur-nav a span,
  .fleur-account-link span {
    writing-mode: horizontal-tb;
    transform: none;
    white-space: nowrap;
  }

  .fleur-nav a::before,
  .fleur-account-link::before {
    left: 50%;
    top: auto;
    bottom: -4px;
    width: 20px;
    height: 3px;
    border-radius: 10px;
    transform: translateX(-50%) scaleX(0);
  }

  .fleur-nav a.active::before,
  .fleur-account-link.active::before {
    transform: translateX(-50%) scaleX(1);
  }

  .fleur-nav a.active::after,
  .fleur-account-link.active::after {
    display: none;
  }

  .fleur-account-link span {
    min-width: 34px;
    max-width: 38px;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 4px 7px;
    border: 1px solid rgba(215, 184, 120, 0.72);
    border-radius: 999px;
    color: #fff7e8;
    background: rgba(215, 184, 120, 0.10);
    box-shadow: inset 0 0 0 1px rgba(255, 247, 232, 0.08);
  }
}

@media (max-width: 360px) {
  .fleur-sidebar {
    padding: 0 6px;
  }

  .fleur-logo-link {
    width: 38px;
    min-width: 38px;
    flex-basis: 38px;
  }

  .fleur-logo-round {
    width: 34px;
    height: 34px;
  }

  .fleur-menu-strip {
    margin-left: 5px;
    gap: 4px;
  }

  .fleur-menu-brand {
    font-size: 8.6px;
  }

  .fleur-nav a,
  .fleur-account-link {
    font-size: 7.4px;
    padding: 0 1px;
  }

  .fleur-account-link span {
    max-width: 32px;
    padding: 4px 5px;
  }
}


/* FIX MOBILE ONLY LK */
@media (max-width: 980px) {
  .fleur-nav a:not(.fleur-account-link) span {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 0 !important;
    max-width: none !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    color: rgba(255, 247, 232, 0.82) !important;
    background: transparent !important;
    box-shadow: none !important;
    overflow: visible !important;
    text-overflow: clip !important;
  }

  .fleur-nav a:not(.fleur-account-link):hover span,
  .fleur-nav a:not(.fleur-account-link).active span {
    color: #fff7e8 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
  }

  .fleur-account-link span {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 34px !important;
    max-width: 38px !important;
    padding: 4px 7px !important;
    border: 1px solid rgba(215, 184, 120, 0.72) !important;
    border-radius: 999px !important;
    color: #fff7e8 !important;
    background: rgba(215, 184, 120, 0.10) !important;
    box-shadow: inset 0 0 0 1px rgba(255, 247, 232, 0.08) !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  .fleur-account-link:hover span,
  .fleur-account-link.active span,
  .fleur-account-link.is-logged span {
    color: #fff7e8 !important;
    border-color: rgba(215, 184, 120, 0.96) !important;
    background: rgba(215, 184, 120, 0.18) !important;
    box-shadow:
      inset 0 0 0 1px rgba(255, 247, 232, 0.12),
      0 0 0 2px rgba(215, 184, 120, 0.08) !important;
  }
}

@media (max-width: 360px) {
  .fleur-account-link span {
    min-width: 32px !important;
    max-width: 34px !important;
    padding: 4px 5px !important;
  }
}

/* ===== АКЦИИ В ГЛАВНОМ МЕНЮ: мобильная подгонка под дополнительный пункт ===== */
@media (max-width: 980px) {
  .fleur-menu-strip {
    margin-left: 6px !important;
  }

  .fleur-nav a,
  .fleur-account-link {
    font-size: 7.8px !important;
    padding-left: 1px !important;
    padding-right: 1px !important;
  }

  .fleur-account-link span {
    min-width: 32px !important;
    max-width: 36px !important;
    padding-left: 6px !important;
    padding-right: 6px !important;
  }
}

@media (max-width: 360px) {
  .fleur-nav a,
  .fleur-account-link {
    font-size: 6.9px !important;
  }

  .fleur-account-link span {
    min-width: 30px !important;
    max-width: 32px !important;
    padding-left: 4px !important;
    padding-right: 4px !important;
  }
}
