/* ==========================================================================
   Ogonek — Cennik
   ========================================================================== */

/* ---------- Hero ---------- */
.p-hero {
  padding-top: calc(var(--header-h) + clamp(2rem, 1rem + 3vw, 4rem));
  padding-bottom: clamp(2rem, 1.5rem + 2vw, 3.5rem);
}
.p-hero__grid {
  display: grid;
  gap: 1.5rem;
  align-items: end;
}
@media (min-width: 1024px) {
  .p-hero__grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 4rem;
  }
}
.p-hero__star {
  display: inline-block;
  margin-left: 0.04em;
  color: var(--pink-ink);
  font-size: 0.75em;
  line-height: 1;
  vertical-align: 0.35em;
  text-decoration: none;
  transition: transform 0.6s var(--ease-spring);
}
.p-hero__star:hover {
  transform: rotate(72deg) scale(1.25);
}
.p-hero__note {
  margin-top: 1rem;
  max-width: 52ch;
  font-size: 0.9rem;
  color: var(--ink-3);
}
.p-hero__note span {
  color: var(--pink-ink);
  font-weight: 800;
}
.p-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  margin-bottom: clamp(2rem, 1.5rem + 2vw, 3.5rem);
  padding: 0.75rem;
  border-radius: var(--r-xl);
  background: var(--surface);
  box-shadow: var(--sh-1);
}
.p-tools__search {
  flex: 1 1 300px;
  max-width: 520px;
}
.p-tools__search .input {
  background: var(--bg);
  border-color: transparent;
}
.p-tools__search .input:hover {
  border-color: var(--line-2);
}
.p-tools__species {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  min-width: 0;
  max-width: 100%;
}
.p-tools__species .label {
  color: var(--ink-3);
  flex: none;
}
.seg--wrap {
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
}
.seg--wrap::-webkit-scrollbar {
  display: none;
}
.seg--wrap .seg__btn {
  flex: none;
}
@media (max-width: 640px) {
  .p-tools {
    border-radius: var(--r-lg);
  }
  .p-tools__species {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    width: 100%;
  }
}

/* ---------- Cennik ---------- */
.plist {
  padding-bottom: var(--section-y);
}
.plist__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.5rem;
}
.pnav,
.pgroups {
  min-width: 0;
}
@media (min-width: 1024px) {
  .plist__grid {
    grid-template-columns: 250px minmax(0, 1fr);
    gap: clamp(3rem, 5vw, 5rem);
    align-items: start;
  }
  .pnav__sticky {
    position: sticky;
    top: calc(var(--header-h) + 1.5rem);
  }
}
.pnav__list {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.pnav__list a {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-height: 44px;
  padding: 0.55rem 0.85rem;
  border-radius: 12px;
  color: var(--ink-2);
  font-weight: 600;
  text-decoration: none;
  transition: background-color var(--d-2), color var(--d-2);
}
.pnav__list a:hover {
  background: var(--surface);
  color: var(--ink);
}
.pnav__list a.is-active {
  background: var(--ink);
  color: #fff;
}
.pnav__list a.is-active .icon {
  color: var(--lime);
}
.pnav__tip {
  display: flex;
  gap: 0.6rem;
  margin-top: 1.5rem;
  padding: 1rem;
  border: 1.5px dashed var(--line-2);
  border-radius: var(--r-md);
  font-size: 0.875rem;
  color: var(--ink-2);
}
.pnav__tip .icon {
  flex: none;
  margin-top: 0.1rem;
}
@media (max-width: 1023px) {
  body:has(.site-header:not(.is-hidden)) .pnav {
    top: var(--header-h);
  }
  .pnav {
    position: sticky;
    top: 0;
    transition: top 0.52s var(--ease-out);
    z-index: 5;
    margin-inline: calc(var(--gutter) * -1);
    padding: 0.6rem var(--gutter);
    background: rgba(242, 242, 238, 0.97);
    border-bottom: 1px solid var(--line);
  }
  .pnav__list {
    display: flex;
    gap: 0.4rem;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .pnav__list::-webkit-scrollbar {
    display: none;
  }
  .pnav__list a {
    flex: none;
    white-space: nowrap;
    background: var(--surface);
  }
  .pnav__tip {
    display: none;
  }
}

.pgroups {
  display: grid;
  gap: clamp(2.5rem, 2rem + 2vw, 3.5rem);
}
.plist__empty {
  padding: 1.5rem;
  border-radius: var(--r-md);
  background: var(--surface);
  color: var(--ink-2);
}
.plist__empty a {
  font-weight: 700;
  color: var(--ink);
}
/* na telefonie i tablecie pod nagłówkiem przykleja się pasek kategorii — kategoria ląduje pod nim */
@media (max-width: 1023px) {
  .pgroup {
    scroll-margin-top: 4.5rem;
  }
}
.pgroup.is-empty {
  display: none;
}
.pgroup__h {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding-bottom: 0.9rem;
  border-bottom: 2px solid var(--ink);
  font-size: clamp(1.6rem, 1.3rem + 1vw, 2.2rem);
}
.pgroup__h .icon {
  width: 0.95em;
  height: 0.95em;
}
.rows {
  margin: 0;
  padding: 0;
  list-style: none;
}
.row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 44px;
  grid-template-areas:
    "name name add"
    "dots price add";
  align-items: center;
  column-gap: 0.75rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
  transition: background-color var(--d-2);
}
.row.is-hidden {
  display: none;
}
.row.is-added {
  background: linear-gradient(90deg, rgba(201, 242, 61, 0.28), transparent 70%);
}
.row__name {
  grid-area: name;
  font-weight: 600;
  line-height: 1.35;
}
.row__name small {
  display: block;
  margin-top: 0.1rem;
  font-weight: 400;
  font-size: 0.875rem;
  color: var(--ink-3);
}
.row__dots {
  grid-area: dots;
  align-self: end;
  margin-bottom: 0.45em;
  border-bottom: 2px dotted rgba(20, 21, 26, 0.28);
}
.row__price {
  grid-area: price;
  font-weight: 750;
  white-space: nowrap;
}
.row__add {
  grid-area: add;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1.5px solid var(--line-2);
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  transition: background-color var(--d-2), border-color var(--d-2), transform 0.45s var(--ease-spring);
}
.row__add .icon {
  width: 18px;
  height: 18px;
  transition: transform 0.45s var(--ease-spring);
}
.row__add:hover {
  border-color: var(--ink);
}
.row__add:active {
  transform: scale(0.88);
}
.row__add[aria-pressed="true"] {
  background: var(--lime);
  border-color: var(--ink);
}
.row__add[aria-pressed="true"] .icon {
  transform: rotate(45deg);
}
.row__add--none {
  border: 0;
}
.row mark {
  background: var(--lime);
  color: inherit;
  border-radius: 3px;
  padding: 0 2px;
}
@media (min-width: 640px) {
  .row {
    grid-template-columns: minmax(0, auto) minmax(2rem, 1fr) auto 44px;
    grid-template-areas: "name dots price add";
    align-items: end;
    column-gap: 0.9rem;
  }
  .row__add {
    align-self: center;
  }
  .row__dots {
    margin-bottom: 0.4em;
  }
  .row__name {
    max-width: 34rem;
  }
}

/* ---------- Pakiety-bilety ---------- */
.tickets {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr));
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
/* cztery bilety w rzędzie dopiero na szerokich ekranach — na laptopach treść by się ściskała */
@media (min-width: 640px) {
  .tickets {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 1400px) {
  .tickets {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
.ticket {
  position: relative;
  filter: drop-shadow(0 18px 30px rgba(20, 21, 26, 0.12));
  transition: transform 0.6s var(--ease-spring), filter 0.4s;
}
.ticket:hover {
  transform: translateY(-6px) rotate(-0.8deg);
  filter: drop-shadow(0 26px 36px rgba(20, 21, 26, 0.2));
}
.ticket__card {
  --notches: radial-gradient(circle at 58px 0, #0000 11px, #000 11.5px) top / 100% 51% no-repeat,
    radial-gradient(circle at 58px 100%, #0000 11px, #000 11.5px) bottom / 100% 51% no-repeat;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  height: 100%;
  border-radius: var(--r-lg);
  background: var(--surface);
  -webkit-mask: var(--notches);
  mask: var(--notches);
}
.ticket--bitten .ticket__card {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='96'%3E%3Cg%3E%3Ccircle cx='96' cy='0' r='30'/%3E%3Ccircle cx='62' cy='6' r='11'/%3E%3Ccircle cx='67' cy='23' r='11.5'/%3E%3Ccircle cx='79' cy='35' r='11'/%3E%3Ccircle cx='93' cy='39' r='10'/%3E%3C/g%3E%3C/svg%3E") top right / 96px 96px no-repeat,
    var(--notches);
  -webkit-mask-composite: xor;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='96'%3E%3Cg%3E%3Ccircle cx='96' cy='0' r='30'/%3E%3Ccircle cx='62' cy='6' r='11'/%3E%3Ccircle cx='67' cy='23' r='11.5'/%3E%3Ccircle cx='79' cy='35' r='11'/%3E%3Ccircle cx='93' cy='39' r='10'/%3E%3C/g%3E%3C/svg%3E") top right / 96px 96px no-repeat,
    var(--notches);
  mask-composite: exclude, add;
}
.ticket__stub {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 1.4rem 0;
  border-right: 2px dashed rgba(20, 21, 26, 0.3);
  border-radius: var(--r-lg) 0 0 var(--r-lg);
  background: var(--tc);
}
.ticket__stub .label {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  letter-spacing: 0.22em;
}
.ticket__stub .icon {
  width: 26px;
  height: 26px;
}
.ticket__main {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding: 1.6rem 1.4rem 1.5rem;
}
.ticket h3 {
  font-size: 1.65rem;
  padding-right: 2rem;
}
.ticket__price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.2rem 0.6rem;
}
.ticket__price strong,
.ticket__price s {
  white-space: nowrap;
}
.ticket__price strong {
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 80%;
  font-size: 2.3rem;
  line-height: 1;
  letter-spacing: -0.02em;
}
.ticket__price s {
  color: var(--ink-3);
  font-weight: 600;
}
.ticket .ticks {
  font-size: 0.95rem;
}
.ticket__note {
  font-size: 0.85rem;
  color: var(--ink-3);
}
.ticket .link-arrow {
  align-self: flex-start;
  margin-top: auto;
}

/* ---------- Płatności ---------- */
.pay__box {
  display: grid;
  gap: 1.5rem;
  padding: clamp(1.5rem, 1rem + 2.4vw, 2.75rem);
  border-radius: var(--r-xl);
  background: var(--ink);
  color: #f4f4f0;
}
@media (min-width: 960px) {
  .pay__box {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 3rem;
  }
}
.pay__title {
  max-width: 11ch;
  font-size: clamp(1.7rem, 1.3rem + 1.2vw, 2.3rem);
  color: #fff;
}
.pay__list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.pay__list li {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1rem 1.1rem;
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.07);
  font-size: 0.875rem;
  color: rgba(244, 244, 240, 0.72);
}
.pay__list .icon {
  flex: none;
  width: 30px;
  height: 30px;
  color: var(--lime);
}
.pay__list strong {
  display: block;
  font-size: 1rem;
  color: #fff;
}

/* ---------- Wycena ---------- */
.estimate {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: var(--z-sticky);
  display: flex;
  flex-direction: column-reverse;
  width: min(380px, calc(100% - 40px));
  --focus: var(--lime);
}
.estimate.is-new {
  animation: est-in 0.7s var(--ease-spring);
}
@keyframes est-in {
  from {
    opacity: 0;
    transform: translateY(40px) scale(0.9);
  }
}
.estimate__bar {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  width: 100%;
  min-height: 62px;
  padding: 0.5rem 1rem 0.5rem 0.5rem;
  border: 0;
  border-radius: var(--r-pill);
  background: var(--ink);
  color: #fff;
  box-shadow: var(--sh-3);
  text-align: left;
}
.estimate__count {
  display: grid;
  place-items: center;
  min-width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--lime);
  color: var(--ink);
  font-weight: 800;
}
.estimate.is-bump .estimate__count {
  animation: bump 0.55s var(--ease-spring);
}
@keyframes bump {
  40% {
    transform: scale(1.3);
  }
}
.estimate__label {
  font-weight: 600;
}
.estimate__sum {
  margin-left: auto;
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 80%;
  font-size: 1.4rem;
}
.estimate__caret {
  transition: transform 0.45s var(--ease-spring);
}
.estimate__bar[aria-expanded="true"] .estimate__caret {
  transform: rotate(180deg);
}
.estimate__panel {
  margin-bottom: 0.6rem;
  padding: 1.25rem;
  border-radius: var(--r-lg);
  background: var(--ink);
  color: #f4f4f0;
  box-shadow: var(--sh-3);
  max-height: min(56vh, 460px);
  overflow-y: auto;
  animation: est-panel 0.45s var(--ease-out);
}
@keyframes est-panel {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
}
.estimate__items {
  margin: 0;
  padding: 0;
  list-style: none;
}
.estimate__items li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.18);
  font-size: 0.92rem;
}
.estimate__items li span:first-child {
  flex: 1;
}
.estimate__items li strong {
  white-space: nowrap;
}
.estimate__items button {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}
.estimate__items button:hover {
  background: var(--danger-bg);
}
.estimate__items .icon {
  width: 14px;
  height: 14px;
}
.estimate__hint {
  margin: 0.9rem 0 1rem;
  font-size: 0.8rem;
  color: rgba(244, 244, 240, 0.62);
}
.estimate__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.estimate__clear {
  min-height: 44px;
  padding: 0 0.5rem;
  border: 0;
  background: transparent;
  color: rgba(244, 244, 240, 0.75);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
.estimate__clear:hover {
  color: #fff;
}
@media (max-width: 767px) {
  .estimate {
    left: 10px;
    right: 10px;
    width: auto;
    bottom: calc(82px + env(safe-area-inset-bottom));
  }
}

@media (max-width: 1023px) {
  .pnav {
    transition: top 0.5s var(--ease-out);
  }
  html:has(.site-header:not(.is-hidden)) .pnav {
    top: var(--header-h);
  }
}
