.yc-menu-nav__list {
  /* Positioning context for .yc-menu-panel is now .header-nav-bar__container
     (position: relative, see _header-nav.scss) — the nav bar is its own
     full-width strip below Main Row, not inline in .header-bottom__row. */
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
  flex-wrap: wrap;
}

.yc-menu-nav__item {
  position: static;
  padding: 0;
}

.yc-menu-nav__item:hover {
  background: rgba(255, 255, 255, 0.08);
}

.yc-menu-nav__link {
  display: block;
  padding: 16px 20px 14px;
  color: #fff;
  font-family: "Inter", sans-serif;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
}

.yc-menu-nav__trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 20px 14px;
  background: none;
  color: #fff;
  font-family: "Inter", sans-serif;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  white-space: nowrap;
}

/* Mega panel */

.yc-menu-panel {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1000;
  display: flex;
  align-items: stretch;
  background: #fff;
  border: 1px solid var(--yc-border-default, #e6e9e5);
  border-top: none;
  border-radius: 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.yc-menu-panel[hidden] {
  display: none;
}

.yc-menu-panel__col {
  padding: 24px 32px;
}

.yc-menu-panel__col + .yc-menu-panel__col {
  border-left: 1px solid var(--yc-border-default, #e6e9e5);
}

/* No fixed sidebar width — with the level-3/banner columns only rendered
   when a level-2 item actually has that content (see menu.tpl), this column
   is normally the panel's only child, so it fills the full width as a
   flowing multi-column grid instead of a narrow list. */
.yc-menu-panel__col--level2 {
  flex: 1 1 auto;
}

.yc-menu-panel__col--level3 {
  width: 300px;
  flex: 0 0 300px;
}

.yc-menu-panel__col--level2 ul,
.yc-menu-panel__col--level3 ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.yc-menu-panel__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  column-gap: 40px;
  row-gap: 20px;
}

.yc-menu-panel__level2-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.yc-menu-panel__level2-item i:first-child {
  width: 18px;
  text-align: center;
  color: var(--yc-text-primary, #17332d);
}

.yc-menu-panel__level2-item a {
  flex: 1;
  color: var(--yc-text-primary, #17332d);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  text-decoration: none;
}

.yc-menu-panel__level2-item.is-active a,
.yc-menu-panel__level2-item:hover a,
.yc-menu-panel__level2-item.is-active i:first-child,
.yc-menu-panel__level2-item:hover i:first-child {
  color: var(--yc-green-primary, #103d30);
}

.yc-menu-panel__level3-title {
  margin: 0 0 16px;
  font-size: 18px;
  font-weight: 700;
  color: var(--yc-text-primary, #17332d);
}

.yc-menu-panel__col--level3 li {
  margin-bottom: 14px;
}

/* :not(.yc-menu-panel__cta) — this column also contains the "See all X" CTA (an <a> too), which
   now carries its own .btn.btn-primary classes for its color/hover/focus. Without this exclusion,
   `.yc-menu-panel__col--level3 a:hover` (one class + one element + :hover) still outranks
   .btn-primary's own hover rule on pure specificity regardless of which classes are on the CTA
   element, because of the extra bare-element `a` in this selector — that's what caused the "text
   turns invisible on hover" bug (white button text got overridden to this same red as the
   button's own background). Scoping the exclusion here, at the source of the over-broad match,
   instead of trying to out-specificity it from the button's side again. */
.yc-menu-panel__col--level3 a:not(.yc-menu-panel__cta) {
  color: var(--yc-text-primary, #17332d);
  font-size: 14px;
  text-decoration: none;
}

.yc-menu-panel__col--level3 a:not(.yc-menu-panel__cta):hover {
  color: var(--yc-green-primary, #103d30);
}

/* Layout only — color/background/hover/focus come from the .btn.btn-primary classes added
   alongside this one in menu.tpl. */
.yc-menu-panel__cta {
  width: 100%;
  margin-top: 16px;
  font-size: 14px;
}

.yc-menu-panel__col--level3[hidden],
.yc-menu-panel__col--banner[hidden] {
  display: none;
}

.yc-menu-panel__col--banner {
  position: relative;
  flex: 1;
  min-width: 320px;
  min-height: 260px;
  padding: 0;
  overflow: hidden;
}

/* position: absolute (not a normal-flow width/height:100% block) is load
   bearing here, not just "no letterboxing": with the image in normal flow,
   its height:100% can't resolve against the column's indeterminate height,
   so browsers fall back to the image's OWN intrinsic aspect ratio (natural
   upload dimensions, e.g. a 5184x3456 photo ≈ 1.5:1) combined with its
   resolved width to size it — which was overriding min-height above and
   blowing the whole dropdown out to 400-700px+ depending on the photo. Taking
   the image out of flow entirely removes it from that sizing calculation,
   so the column (and thus the whole panel, via align-items: stretch) is
   sized by min-height/content again, not by whatever photo happens to be
   uploaded.
   object-fit: contain (not cover) — user wants the full photo visible
   rather than cropped to fill the box, even if that leaves empty space
   (the column's own background-color) on the sides or top/bottom. */
.yc-menu-panel__banner-image {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.yc-menu-panel__banner-text {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
  padding: 28px;
  color: #fff;
}

.yc-menu-panel__banner-title {
  margin: 0 0 6px;
  font-size: 24px;
  font-weight: 700;
}

.yc-menu-panel__banner-subtitle {
  margin: 0 0 20px;
  font-size: 14px;
  opacity: 0.9;
}

.yc-menu-panel__banner-features {
  list-style: none;
  margin: 0;
  padding: 0;
}

.yc-menu-panel__banner-features li {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 14px;
  font-weight: 500;
}

.yc-menu-panel__banner-features i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--yc-green-primary, #103d30);
  font-size: 11px;
}

/* Below 992px the desktop hover nav is replaced entirely by the
   .yc-mobile-menu offcanvas below (opened via .yc-mobile-menu-trigger in
   header.tpl) — this rule is the ONLY thing that changes at this
   breakpoint, so nothing above it (desktop) is affected. */
@media (max-width: 992px) {
  .yc-menu-nav {
    display: none;
  }
}

/* Mobile menu trigger (header.tpl hamburger button, Figma nodes 196:5/
   198:98) — only ever visible on mobile, via Bootstrap's d-md-none on its
   wrapper in header.tpl; this is just the 3-bar icon styling. */
.yc-mobile-menu-trigger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 20px;
  height: 20px;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
}

.yc-mobile-menu-trigger__bar {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--yc-text-primary, #17332d);
  border-radius: 0;
}

/* Mobile menu offcanvas (Figma "Rozwinięte menu - Mobile", nodes 196:2/
   198:95) — pure drill-down, one level per screen: the level-1 screen is
   ONLY level-1 rows, tapping a with-children row pushes its own level-2
   screen (back bar + title + level-2 list + banner), and a level-2 row
   with children pushes a level-3 screen (back bar + title + level-3 list +
   CTA) the same way — no in-place accordion. */
.yc-mobile-menu {
  background-color: #e6e9e5; 
  width: 100%;
  max-width: 420px;
}

.yc-mobile-menu__body {
  position: relative;
  padding: 0;
}

/* White, not the usual dark header color — it always sits on top of a red
   bar (the level-1 screen's own .yc-mobile-menu__top-bar below, or a
   level-2/3 screen's .yc-mobile-menu__back-bar), never on plain white. */
.yc-mobile-menu__close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 10;
  width: 32px;
  height: 32px;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

/* Level-1 screen's own header bar — same look as .yc-mobile-menu__back-bar
   on the screens below it, just static (no back chevron, nothing to go
   back to from the root). */
.yc-mobile-menu__top-bar {
  padding: 14px 16px;
  background: var(--yc-green-primary, #103d30);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
}

.yc-mobile-menu__screen {
  display: none;
}

.yc-mobile-menu__screen.is-active {
  display: block;
}

.yc-mobile-menu__list {
  list-style: none;
  margin: 0;
  padding: 16px;
}

.yc-mobile-menu__item + .yc-mobile-menu__item {
  margin-top: 4px;
}

.yc-mobile-menu__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px;
  color: var(--yc-text-primary, #17332d);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  border-radius: 0;
}

.yc-mobile-menu__row:hover {
  background: #f7f8fa;
}

.yc-mobile-menu__chevron-right,
.yc-mobile-menu__chevron-left {
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  border-right: 1.5px solid var(--yc-text-subtle, #8c918c);
  border-bottom: 1.5px solid var(--yc-text-subtle, #8c918c);
}

.yc-mobile-menu__chevron-right {
  transform: rotate(-45deg);
}

.yc-mobile-menu__chevron-left {
  transform: rotate(135deg);
  border-color: #fff;
}

.yc-mobile-menu__banner {
  margin: 4px 0 0;
  background: var(--yc-text-primary, #17332d);
  border-radius: 0;
  overflow: hidden;
}

.yc-mobile-menu__banner-image {
  display: block;
  width: 100%;
  height: auto;
}

.yc-mobile-menu__banner-text {
  padding: 20px;
  color: #fff;
}

.yc-mobile-menu__banner-title {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 700;
}

.yc-mobile-menu__banner-subtitle {
  margin: 0 0 12px;
  font-size: 13px;
  opacity: 0.9;
}

.yc-mobile-menu__banner-features {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
}

.yc-mobile-menu__banner-features li {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  font-size: 13px;
}

.yc-mobile-menu__banner-features i {
  color: var(--yc-green-primary, #103d30);
}

.yc-mobile-menu__banner-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 16px 16px;
  padding: 10px 16px;
  background: var(--yc-green-primary, #103d30);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 0;
}

.yc-mobile-menu__banner-cta .yc-mobile-menu__chevron-right {
  border-color: #fff;
}

/* Level-2 and level-3 drill-down screens share this back bar/title/list
   layout — only the root level-1 screen looks different (no back bar). */
.yc-mobile-menu__back-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 14px 16px;
  background: var(--yc-green-primary, #103d30);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  text-align: left;
  border: none;
  cursor: pointer;
}

.yc-mobile-menu__title {
  margin: 16px 16px 4px;
  font-size: 22px;
  font-weight: 700;
  color: var(--yc-text-primary, #17332d);
}

.yc-mobile-menu__screen--level2 .yc-mobile-menu__list,
.yc-mobile-menu__screen--level3 .yc-mobile-menu__list {
  padding: 4px 16px 16px;
}

.yc-mobile-menu__cta,
.yc-mobile-menu__cta:hover,
.yc-mobile-menu__cta:visited {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 8px 16px 16px;
  padding: 16px;
  background: var(--yc-green-primary, #103d30);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  border-radius: 0;
}

.yc-mobile-menu__cta i,
.yc-mobile-menu__cta .yc-mobile-menu__chevron-right {
  color: #fff;
  border-color: #fff;
}
