:root {
  --rff-purple: #9b1b82;
  --rff-purple-dark: #5e1758;
  --rff-purple-soft: #f7e8f4;
  --rff-white: #ffffff;
  --rff-ink: #211522;
  --rff-muted: #6f6171;
  --rff-line: rgba(155, 27, 130, 0.16);
  --rff-shadow: 0 18px 50px rgba(94, 23, 88, 0.14);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 115px;
}


.rff-header,
.rff-header * {
  box-sizing: border-box;
}


.rff-header .screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.rff-header {
  position: fixed;
  top: 18px;
  left: 0;
  right: 0;
  z-index: 999999;
  width: 100%;
  padding: 0 22px;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  pointer-events: none;
}

.admin-bar .rff-header {
  top: 50px;
  z-index: 9998;
}

body.admin-bar #wpadminbar {
  z-index: 100000;
}

.rff-bar {
  width: min(1500px, 100%);
  min-height: 78px;
  margin: 0 auto;
  padding: 12px 16px 12px 20px;
  display: grid;
  grid-template-columns: auto 1fr auto auto auto;
  align-items: center;
  gap: 24px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: var(--rff-shadow);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  pointer-events: auto;
  transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.rff-header.rff-scrolled .rff-bar {
  background: rgba(255, 255, 255, 0.96);
  border-color: var(--rff-line);
  box-shadow: 0 20px 60px rgba(94, 23, 88, 0.18);
}

.rff-logo {
  display: inline-flex;
  align-items: center;
  width: 200px;
  max-width: 24vw;
  text-decoration: none !important;
  border: 0 !important;
  box-shadow: none !important;
}

.rff-logo img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 43px;
  object-fit: contain;
}

.rff-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.rff-nav a,
.rff-mobile a,
.rff-language a {
  color: var(--rff-ink);
  text-decoration: none !important;
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
  border: 0 !important;
  box-shadow: none !important;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.rff-nav a {
  padding: 14px 15px;
  border-radius: 999px;
}

.rff-language {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.rff-language-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 58px;
  min-height: 42px;
  padding: 0 10px;
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  border-radius: 999px;
  background: rgba(155, 27, 130, 0.08);
  color: var(--rff-ink);
  cursor: pointer;
  box-shadow: none;
  transition: background 0.2s ease, transform 0.2s ease;
}

.rff-language-toggle:hover,
.rff-language-toggle:focus-visible,
.rff-language.rff-language-open .rff-language-toggle {
  background: var(--rff-purple);
  transform: translateY(-1px);
}

.rff-language-flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}

.rff-language-flag img {
  display: block;
  width: 22px;
  height: auto;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(33, 21, 34, 0.1);
}

.rff-language-caret {
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid var(--rff-ink);
  transition: transform 0.2s ease, border-top-color 0.2s ease;
}

.rff-language-toggle:hover .rff-language-caret,
.rff-language-toggle:focus-visible .rff-language-caret,
.rff-language.rff-language-open .rff-language-caret {
  border-top-color: var(--rff-white);
}

.rff-language.rff-language-open .rff-language-caret {
  transform: rotate(180deg);
}

.rff-language-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 20;
  display: grid;
  gap: 6px;
  min-width: 58px;
  margin: 0;
  padding: 7px;
  list-style: none;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid var(--rff-line);
  box-shadow: 0 18px 45px rgba(94, 23, 88, 0.16);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px) scale(0.98);
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
}

.rff-language.rff-language-open .rff-language-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.rff-language-item {
  display: block;
  margin: 0;
  padding: 0;
}

.rff-language-item a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  min-height: 40px;
  padding: 0;
  border-radius: 14px;
  color: var(--rff-ink);
  text-decoration: none !important;
  border: 0 !important;
  box-shadow: none !important;
  transition: background 0.2s ease, transform 0.2s ease;
}

.rff-language-item.current-lang a,
.rff-language-item a:hover,
.rff-language-item a:focus {
  background: rgba(155, 27, 130, 0.1);
  transform: translateY(-1px);
}

.rff-language--mobile,
.rff-language--mobile-top {
  display: none;
}


.rff-nav a:hover,
.rff-nav a:focus {
  color: var(--rff-purple);
  background: rgba(155, 27, 130, 0.08);
}

.rff-buy,
.rff-mobile-buy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  color: var(--rff-white) !important;
  background: var(--rff-purple);
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
  text-decoration: none !important;
  white-space: nowrap;
  box-shadow: 0 14px 30px rgba(155, 27, 130, 0.25) !important;
  border: 0 !important;
  transition: transform 0.22s ease, background 0.22s ease, box-shadow 0.22s ease;
}

.rff-buy:hover,
.rff-buy:focus,
.rff-mobile-buy:hover,
.rff-mobile-buy:focus {
  transform: translateY(-2px);
  background: var(--rff-purple-dark);
  color: var(--rff-white) !important;
  box-shadow: 0 18px 38px rgba(155, 27, 130, 0.34) !important;
}

.rff-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 106px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--rff-purple) 0%, var(--rff-purple-dark) 100%);
  color: var(--rff-white);
  cursor: pointer;
  padding: 0 15px 0 17px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 14px 32px rgba(155, 27, 130, 0.28);
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.rff-toggle::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0) 48%);
  pointer-events: none;
}

.rff-toggle:hover,
.rff-toggle:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(155, 27, 130, 0.36);
}

.rff-toggle-text {
  position: relative;
  z-index: 2;
  display: inline-flex;
  color: var(--rff-white);
  font-size: 12px;
  font-weight: 950;
  line-height: 1;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.rff-toggle-icon {
  position: relative;
  z-index: 2;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

.rff-toggle-icon span {
  position: absolute;
  display: block;
  width: 13px;
  height: 2px;
  border-radius: 99px;
  background: var(--rff-white);
  transition: transform 0.22s ease;
}

.rff-toggle-icon span:nth-child(1) {
  transform: translateY(-4px);
}

.rff-toggle-icon span:nth-child(2) {
  transform: translateY(4px);
}

.rff-header.rff-open .rff-toggle {
  background: linear-gradient(135deg, var(--rff-ink) 0%, var(--rff-purple-dark) 100%);
}

.rff-header.rff-open .rff-toggle-icon span:nth-child(1) {
  transform: rotate(45deg);
}

.rff-header.rff-open .rff-toggle-icon span:nth-child(2) {
  transform: rotate(-45deg);
}

.rff-mobile {
  width: min(1500px, 100%);
  margin: 10px auto 0;
  padding: 12px;
  display: none;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--rff-line);
  box-shadow: 0 20px 55px rgba(94, 23, 88, 0.14);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  pointer-events: auto;
}

.rff-mobile a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  padding: 0 16px;
  border-radius: 18px;
}

.rff-mobile a:hover,
.rff-mobile a:focus {
  color: var(--rff-purple);
  background: rgba(155, 27, 130, 0.08);
}

.rff-mobile .rff-mobile-buy {
  margin-top: 8px;
  color: var(--rff-white) !important;
}

@keyframes rffMenuIn {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 1100px) {
  .rff-logo {
    width: 176px;
  }

  .rff-nav a {
    padding: 13px 11px;
    font-size: 14px;
  }
}

@media (max-width: 920px) {
  html {
    scroll-padding-top: 105px;
  }


  .rff-header {
    top: 12px;
    padding: 0 14px;
  }

  .rff-bar {
    min-height: 70px;
    grid-template-columns: auto 1fr auto auto;
    gap: 10px;
    padding: 10px 12px 10px 16px;
    border-radius: 28px;
  }

  .rff-logo {
    width: 168px;
    max-width: 52vw;
  }

  .rff-nav,
  .rff-buy,
  .rff-language--desktop {
    display: none;
  }

  .rff-language--mobile-top {
    display: inline-flex;
    justify-self: end;
  }

  .rff-language--mobile-top .rff-language-toggle {
    width: 54px;
    min-height: 46px;
  }

  .rff-toggle {
    display: inline-flex;
    justify-self: end;
  }

  .rff-header.rff-open .rff-mobile {
    display: grid;
    gap: 4px;
    animation: rffMenuIn 0.22s ease both;
  }

  .rff-language--mobile {
    display: inline-flex;
    justify-content: flex-start;
    justify-self: start;
    padding: 8px 4px 4px;
  }

  .rff-language--mobile .rff-language-menu {
    left: 4px;
    right: auto;
  }
}

@media (max-width: 480px) {
  html {
    scroll-padding-top: 96px;
  }


  .rff-header {
    padding: 0 10px;
  }

  .rff-bar {
    min-height: 66px;
    border-radius: 24px;
  }

  .rff-logo {
    width: 144px;
    max-width: 40vw;
  }

  .rff-logo img {
    max-height: 37px;
  }

  .rff-language--mobile-top .rff-language-toggle {
    width: 48px;
    min-height: 44px;
    padding: 0 8px;
  }

  .rff-language--mobile-top .rff-language-caret {
    display: none;
  }

  .rff-toggle {
    min-width: 48px;
    width: 48px;
    height: 44px;
    padding: 0;
    gap: 0;
  }

  .rff-toggle-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
}

@media (max-width: 782px) {
  .admin-bar .rff-header {
    top: 58px;
  }
}

.rff-language-flag-img {
  display: block;
  width: 24px;
  height: 16px;
  object-fit: cover;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(33, 21, 34, 0.12);
}

.rff-language-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  min-height: 16px;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
}
