/* =========================================================
   HEADER – FULL WIDTH (BEZ KOMBINOWANIA)
========================================================= */

:root{
  --cew-kala-notice-height: 70px;
  --cew-kala-subheader-height: 52px;
}

.cew-kala-notice {
  width: 100%;
  height: var(--cew-kala-notice-height);
  background: #222;
  color: #fff;
  border-bottom: 2px solid #F2EEF2;
  position: relative;
  z-index: 10001;
}

.cew-kala-notice__inner {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0 16px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  column-gap: 12px;
}

.cew-kala-notice__content {
  grid-column: 2;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 24px;
  line-height: 1.2;
  font-weight: 500;
}

.cew-kala-notice__left {
  grid-column: 1;
}

.cew-kala-notice__right {
  grid-column: 3;
  justify-self: end;
}

.cew-kala-notice__content p {
  display: inline;
  margin: 0;
}

.cew-kala-notice__content a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.cew-kala-notice__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  line-height: 1;
  font-weight: 300;
  opacity: 0.65;
}

.cew-kala-notice__newsletter-btn {
  display: inline-block;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  text-transform: uppercase;
  letter-spacing: inherit;
  font-size: inherit;
  line-height: inherit;
  cursor: pointer;
  margin-left: 8px;
  text-decoration: underline;
  text-underline-offset: 0.18em;
  white-space: nowrap;
  vertical-align: baseline;
}

.cew-kala-newsletter-popup {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
  z-index: 12000;
}

.cew-kala-newsletter-popup[hidden] {
  display: none !important;
}

.cew-kala-newsletter-popup__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(0, 0, 0, 0.6);
  cursor: pointer;
}

.cew-kala-newsletter-popup__backdrop:hover,
.cew-kala-newsletter-popup__backdrop:focus,
.cew-kala-newsletter-popup__backdrop:active {
  background: rgba(0, 0, 0, 0.6);
}

.cew-kala-newsletter-popup__dialog {
  position: relative;
  width: auto;
  max-width: min(560px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  background: #ffffff;
  color: #1f1f1f;
  padding: 42px 32px 32px;
  box-sizing: border-box;
  overflow: auto;
  z-index: 1;
  text-align: center;
}

.cew-kala-newsletter-popup__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 28px;
  height: 28px;
  border: 0;
  background: transparent;
  color: #000000 !important;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.cew-kala-newsletter-popup__close:hover,
.cew-kala-newsletter-popup__close:focus,
.cew-kala-newsletter-popup__close:active {
  background: transparent !important;
  border: 0 !important;
  color: #000000 !important;
  box-shadow: none !important;
}

.cew-kala-newsletter-popup__title {
  margin: 0 0 12px;
  font-size: 24px;
  line-height: 1.2;
}

.cew-kala-newsletter-popup__text {
  margin: 0 0 16px;
  font-size: 16px;
  line-height: 1.5;
  text-transform: none;
  letter-spacing: 0;
}

.cew-kala-newsletter-popup__form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: center;
}

.cew-kala-newsletter-popup__input {
  flex: 1 1 auto;
  min-width: 0;
  height: 46px;
  border: 1px solid #d0d0d0;
  padding: 0 14px;
  font-size: 15px;
}

.cew-kala-newsletter-popup__submit {
  height: 46px;
  border: 1px solid #1f1f1f;
  background: #1f1f1f;
  color: #ffffff;
  padding: 0 24px;
  font-size: 13px;
  line-height: 1;
  white-space: nowrap;
  min-width: 132px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cew-kala-newsletter-popup__submit:disabled {
  opacity: 0.7;
  cursor: default;
}

.cew-kala-newsletter-popup__msg {
  margin: 2px 0 0;
  min-height: 18px;
  font-size: 13px;
  line-height: 1.35;
}

.cew-kala-newsletter-popup__msg.is-success {
  color: #0f7a36;
}

.cew-kala-newsletter-popup__msg.is-error {
  color: #c62828;
}

.cew-kala-subheader {
  width: 100%;
  height: var(--cew-kala-subheader-height);
  border-bottom: 0;
  background-color: #F2EEF2;
  color: #DD2978;
  --cew-kala-subheader-phone-pad-x: 18px;
  --cew-kala-subheader-group-pad-x: 26px;
  --cew-kala-subheader-group-gap: 16px;
  position: relative;
  z-index: 10000;
}

.cew-kala-subheader__inner {
  width: 100%;
  max-width: 1600px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 0 auto;
  padding: 0 12px;
}

.cew-kala-subheader__left,
.cew-kala-subheader__right {
  display: flex;
  align-items: center;
}

.cew-kala-subheader__left {
  gap: 0;
}

.cew-kala-subheader__item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  padding: 0;
}

.cew-kala-subheader__item--phone {
  padding: 0 var(--cew-kala-subheader-phone-pad-x);
}

.cew-kala-subheader__item--email {
  padding: 0 var(--cew-kala-subheader-group-pad-x);
  margin-left: 0;
}

.cew-kala-subheader__item i {
  font-size: 14px;
}

.cew-kala-subheader__item--phone + .cew-kala-subheader__item--phone {
  border-left: 2px solid rgba(221, 41, 120, 0.35);
}

.cew-kala-subheader__social {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 var(--cew-kala-subheader-group-pad-x);
  margin-left: 0;
}

.cew-kala-subheader__social a {
  color: inherit;
  text-decoration: none;
  font-size: 17px;
  line-height: 1;
}

.cew-kala-subheader__right {
  gap: 16px;
  padding: 0 26px;
}

.cew-kala-subheader__lang-label {
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
}

.cew-kala-subheader__lang-slot {
  min-width: 70px;
  min-height: 28px;
}

.cew-kala-header {
  position: relative;
  width: 100%;
  z-index: 9999;
}

.cew-kala-header__top-shell {
  width: 100%;
  background-color: #FCF5F8;
}

.cew-kala-header__overlay {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  z-index: 2;
}
/* Wysokość “pełnego tła” (logo + menu) */
:root{
  --kala-solid-header-h: 150px; /* dostrój: 140-170px */
}
.cew-kala-header__bc-wrap {
  min-height: 160px;
  background: linear-gradient(
    180deg,
    rgba(252, 245, 248, 1) 0%,
    rgba(252, 245, 248, 1) 35%,
    rgba(252, 245, 248, 0.75) 60%,
    rgba(252, 245, 248, 0.22) 78%,
    rgba(252, 245, 248, 0.10) 88%,
    rgba(252, 245, 248, 0.04) 95%,
    rgba(252, 245, 248, 0.00) 100%
  );
}

@media (max-width: 767px) {
  .cew-kala-header__bc-wrap {
    min-height: 40px;
  }
}

.cew-kala-header__bg{
  display: none;
}

/* 1) Jednolite tło od góry do końca menu */
/* .cew-kala-header__bg::before{
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--kala-solid-header-h);
  background: none !important;
} */

/* 2) Gradient zaczyna się DOPIERO pod menu */
/* .cew-kala-header__bg::after{
  content: "";
  position: absolute;
  top: var(--kala-solid-header-h);
  left: 0;
  width: 100%;
  height: 170px;
  background: linear-gradient(
    180deg,
    rgba(252, 245, 248, 1) 0%,
    rgba(252, 245, 248, 1) 35%,
    rgba(252, 245, 248, 0.75) 60%,
    rgba(252, 245, 248, 0.22) 78%,
    rgba(252, 245, 248, 0.10) 88%,
    rgba(252, 245, 248, 0.04) 95%,
    rgba(252, 245, 248, 0.00) 100%
  );
} */

/* =========================================================
   CONTENT – WĄSKI CONTAINER
========================================================= */

.cew-kala-header__inner {
  width: 100%;
  margin: 0 auto;
  padding: 0 0;
  position: relative;
}

.cew-kala-header__top,
.cew-kala-header__menu,
.cew-kala-header__breadcrumbs,
.cew-kala-header__page-title {
  width: 100%;
  max-width: 1600px;
  margin-left: auto;
  margin-right: auto;
}

/* =========================================================
   TOP ROW
========================================================= */

.cew-kala-header__top {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 18px 0 8px;
}

.cew-kala-header__left,
.cew-kala-header__right {
  display: flex;
  align-items: center;
  gap: 18px;
}

.cew-kala-header__left { justify-content: flex-start; }
.cew-kala-header__right { justify-content: flex-end; }

.cew-kala-header__center {
  display: flex;
  justify-content: center;
}

.cew-kala-header__logo {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}

.cew-kala-header__logo img {
  display: block;
  width: 120px;
  min-width: 120px;
  max-width: 120px;
  height: auto;
}

.cew-kala-header__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.cew-kala-header__icon i,
.cew-kala-header__icon svg {
  width: 22px;
  height: 22px;
}

.cew-kala-header__icon--account {
  display: inline-flex;
}

.cew-kala-header__menu-toggle {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.cew-kala-header__burger {
  display: none;
  width: 32px;
  height: 32px;
  border: 0;
  padding: 0;
  margin-left: 8px;
  background: transparent;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
}

.cew-kala-header__burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.cew-kala-header__badge {
  position: absolute;
  top: -8px;
  right: -10px;
  min-width: 18px;
  height: 18px;
  line-height: 18px;
  font-size: 11px;
  border-radius: 999px;
  color: #fff;
  text-align: center;
}

.cew-kala-header__label {
  text-transform: uppercase;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-decoration: none;
}

/* =========================================================
   MENU – JAK NA SCREENIE
========================================================= */

.cew-kala-header__menu {
  display: flex;
  justify-content: center;
  padding: 10px 0 18px;
}

/* Reset UL */
.cew-kala-header__menu ul,
.dt-primary-nav {
  list-style: none;
  margin: 0;
  padding: 0;
}

.cew-kala-header__menu li,
.dt-primary-nav li {
  position: relative;
}

/* Główne menu */
.cew-kala-header__menu > ul,
.cew-kala-header__menu > div > ul {
  display: flex;
  gap: 34px;
}

@media (max-width: 1540px) {
  .cew-kala-header__menu > ul,
  .cew-kala-header__menu > div > ul {
    gap: 5px;
  }
}

/* Linki */
.cew-kala-header__menu > ul > li > a,
.cew-kala-header__menu > div > ul > li > a {
  text-transform: uppercase;
  font-weight: 900;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-decoration: none;
  position: relative;
  padding: 6px 0;
}

.dt-primary-nav > li > a {
  position: relative;
  display: inline-block;
  padding: 10px 16px;
}

/* underline */
.cew-kala-header__menu > ul > li > a::after,
.cew-kala-header__menu > div > ul > li > a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  background: currentColor;
  opacity: 0;
  transition: 0.2s;
}

.cew-kala-header__menu li:hover > a::after {
  opacity: 1;
}

.cew-kala-header__menu-account {
  display: none;
}

/* caret for items with children (menu-item) */
.cew-kala-header__menu .menu-item-has-children > a,
.dt-primary-nav .menu-item-has-children > a {
  padding-right: 26px;
}

.cew-kala-header__menu .menu-item-has-children > a::before,
.dt-primary-nav .menu-item-has-children > a::before {
  content: "";
  position: absolute;
  right: 6px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-90%) rotate(45deg);
  transform-origin: 50% 50%;
  transition: transform 0.2s ease, opacity 0.2s ease;
  opacity: 0.7;
}

.cew-kala-header__menu .menu-item-has-children:hover > a::before,
.cew-kala-header__menu .menu-item-has-children:focus-within > a::before,
.dt-primary-nav .menu-item-has-children:hover > a::before,
.dt-primary-nav .menu-item-has-children:focus-within > a::before {
  transform: translateY(-50%) rotate(225deg);
  opacity: 1;
}

/* =========================================================
   SUBMENU
========================================================= */

.cew-kala-header__menu ul ul,
.dt-primary-nav .sub-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(0);
  min-width: 320px;
  background: #fff;
  padding: 10px 0;
  opacity: 0;
  visibility: hidden;
  transition: 0.2s;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  z-index: 20;
}

.cew-kala-header__menu ul ul ul,
.dt-primary-nav .sub-menu .sub-menu {
  top: 0;
  left: calc(100% + 14px);
  transform: translateX(12px) translateY(0);
}

.cew-kala-header__menu li:hover > ul,
.cew-kala-header__menu li:focus-within > ul,
.dt-primary-nav li:hover > .sub-menu,
.dt-primary-nav li:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.cew-kala-header__menu ul ul li:hover > ul,
.cew-kala-header__menu ul ul li:focus-within > ul,
.dt-primary-nav .sub-menu li:hover > .sub-menu,
.dt-primary-nav .sub-menu li:focus-within > .sub-menu {
  transform: translateX(0) translateY(0);
}

.cew-kala-header__menu ul ul::before,
.dt-primary-nav .sub-menu::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 50%;
  width: 12px;
  height: 8px;
  background: #fff;
  clip-path: polygon(50% 0, 0 100%, 100% 100%);
  transform: translateX(-50%) translateY(6px);
  opacity: 0;
  transition: 0.2s;
  filter: drop-shadow(0 -2px 6px rgba(0,0,0,0.08));
  z-index: 21;
}

/* Remove top-level submenu pointer (triangle) */
.cew-kala-header__menu > ul > li > ul::before,
.cew-kala-header__menu > div > ul > li > ul::before,
.dt-primary-nav > li > .sub-menu::before {
  content: none;
  display: none;
}

.cew-kala-header__menu ul ul ul::before,
.dt-primary-nav .sub-menu .sub-menu::before {
  top: 16px;
  left: -8px;
  width: 8px;
  height: 12px;
  background: #fff;
  clip-path: polygon(0 50%, 100% 0, 100% 100%);
  filter: drop-shadow(-2px 0 6px rgba(0,0,0,0.08));
  transform: translateX(0) translateY(0);
}

.cew-kala-header__menu li:hover > ul::before,
.cew-kala-header__menu li:focus-within > ul::before,
.dt-primary-nav li:hover > .sub-menu::before,
.dt-primary-nav li:focus-within > .sub-menu::before {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.cew-kala-header__menu li:hover > ul ul::before,
.cew-kala-header__menu li:focus-within > ul ul::before,
.dt-primary-nav li:hover > .sub-menu .sub-menu::before,
.dt-primary-nav li:focus-within > .sub-menu .sub-menu::before {
  opacity: 1;
}

.cew-kala-header__menu ul li a {
  display: block;
  padding: 10px 16px;
  text-decoration: none;
  font-weight: 600;
}

.cew-kala-header__menu ul li.highlighted-items a {
  color: #FF3B93 !important;
}

/* =========================================================
   BREADCRUMBS
========================================================= */
.cew-kala-header .cew-kala-header__breadcrumbs, .cew-kala-header .cew-kala-header__page-title {
  text-align: center;
}
/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 1024px) {
  :root{
    --kala-header-top-h: 64px; /* wysokość górnego paska (mobile menu start) */
  }

  .cew-kala-notice {
    height: auto !important;
    min-height: 52px;
  }

  .cew-kala-notice__inner {
    grid-template-columns: 1fr auto auto;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .cew-kala-notice__content {
    text-align: left;
    font-size: 12px;
    letter-spacing: 0.05em;
    line-height: 1.35;
  }

  .cew-kala-notice__newsletter-btn {
    font-size: inherit;
  }

  .cew-kala-notice__close {
    right: 12px;
    font-size: 22px;
  }

  .cew-kala-newsletter-popup__dialog {
    width: min(520px, 100%);
    max-width: 100%;
    max-height: calc(100vh - 20px);
    padding: 40px 16px 16px;
  }

  .cew-kala-newsletter-popup__title {
    font-size: 20px;
  }

  .cew-kala-newsletter-popup__text {
    font-size: 14px;
  }

  .cew-kala-newsletter-popup__form {
    flex-direction: column;
  }

  .cew-kala-newsletter-popup__input,
  .cew-kala-newsletter-popup__submit {
    width: 100%;
  }

  .cew-kala-subheader {
    height: auto !important;
    min-height: 52px;
    padding: 8px 0;
  }

  .cew-kala-subheader__inner {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-align: center;
  }

  .cew-kala-subheader__left,
  .cew-kala-subheader__right {
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
  }

  .cew-kala-subheader__item,
  .cew-kala-subheader__social,
  .cew-kala-subheader__right {
    padding-left: 14px;
    padding-right: 14px;
  }

  .cew-kala-subheader__item--email,
  .cew-kala-subheader__social {
    margin-left: 0;
  }

  .cew-kala-subheader__item {
    font-size: 14px;
    gap: 6px;
  }

  .cew-kala-subheader__item i,
  .cew-kala-subheader__social a {
    font-size: 14px;
  }

  .cew-kala-subheader__lang-label {
    font-size: 14px;
  }

  body.wr-menu-open {
    overflow: hidden;
    height: 100vh;
  }
  .cew-kala-header__inner {
    /* padding: 0 16px; */
  }

  .cew-kala-header__logo img {
    width: 100px;
    min-width: 100px;
    max-width: 100px;
  }

  .cew-kala-header__label {
    display: none;
  }

  .cew-kala-header__icon--account {
    display: none;
  }

  .cew-kala-header__burger {
    display: inline-flex;
  }

  .cew-kala-header__menu {
    display: none;
    justify-content: flex-start;
    padding: 12px 0 18px;
    position: relative;
    background: #FCF5F8;
    border-top: 1px solid rgba(0,0,0,0.06);
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding-left: 30px !important;
    padding-right: 30px !important;
  }

  .cew-kala-header__menu::before {
    content: "";
    position: absolute;
    inset: 0;
    background: #FCF5F8;
    width: 100%;
    height: 100%;
    min-height: 100%;
    z-index: -1;
  }

  .cew-kala-header__menu-toggle:checked ~ .cew-kala-header__overlay .cew-kala-header__menu {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    top: var(--kala-header-top-h, 64px);
    bottom: 0;
    height: calc(100vh - var(--kala-header-top-h, 64px));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .cew-kala-header__menu > ul,
  .cew-kala-header__menu > div > ul {
    flex-direction: column;
    gap: 0;
    align-items: flex-start;
  }

  .cew-kala-header__menu > ul > li,
  .cew-kala-header__menu > div > ul > li {
    width: 100%;
  }

  .cew-kala-header__menu > ul > li > a,
  .cew-kala-header__menu > div > ul > li > a {
    width: 100%;
    padding: 12px 4px;
  }

  .cew-kala-header__menu .menu-item-has-children > a,
  .dt-primary-nav .menu-item-has-children > a {
    position: relative;
    display: block;
    padding-right: 26px;
  }

  .cew-kala-header__menu .menu-item-has-children > a::before,
  .dt-primary-nav .menu-item-has-children > a::before {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
  }

  .cew-kala-header__menu .menu-item-has-children.is-open > a::before,
  .dt-primary-nav .menu-item-has-children.is-open > a::before {
    transform: translateY(-50%) rotate(225deg) !important;
  }

  .cew-kala-header__menu .menu-item-has-children:hover > a::before,
  .cew-kala-header__menu .menu-item-has-children:focus-within > a::before,
  .dt-primary-nav .menu-item-has-children:hover > a::before,
  .dt-primary-nav .menu-item-has-children:focus-within > a::before {
    transform: translateY(-50%) rotate(45deg);
  }

  .cew-kala-header__menu-account {
    display: block;
    width: 100%;
    padding: 12px 4px;
    text-decoration: none;
  }

  .cew-kala-header__menu ul ul {
    position: static;
    display: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    min-width: 0;
    box-shadow: none;
    padding: 0 0 0 12px;
    background: transparent;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .cew-kala-header__menu ul ul ul {
    background: #ecd6de !important;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .dt-primary-nav .sub-menu {
    min-width: 0;
  }

  .cew-kala-header__menu ul ul ul,
  .dt-primary-nav .sub-menu .sub-menu {
    position: static;
    top: auto;
    left: auto;
    transform: none;
    padding-left: 8px;
  }

  .cew-kala-header__menu .sub-menu > li > a {
    padding: 8px 4px;
  }

  .cew-kala-header__menu .sub-menu .sub-menu > li > a {
    padding: 6px 4px;
  }

  .cew-kala-header__menu li.is-open > ul {
    display: block;
  }

  .cew-kala-header__menu ul ul::before {
    display: none;
  }
}

@media (max-width: 480px) {
  .cew-kala-newsletter-popup {
    padding: 10px;
  }

  .cew-kala-newsletter-popup__dialog {
    padding: 18px 14px 14px;
  }

  .cew-kala-newsletter-popup__title {
    font-size: 18px;
  }

  .cew-kala-newsletter-popup__text {
    font-size: 13px;
    line-height: 1.45;
  }
}
