.pbpc-film,
.pbpc-shell {
  --pbpc-navy: #0b285b;
  --pbpc-navy-dark: #071b3d;
  --pbpc-gold: #cba977;
  --pbpc-gold-light: #ead3ad;
  --pbpc-ink: #13213a;
  --pbpc-muted: #64748b;
  --pbpc-line: #dfe6ef;
  --pbpc-soft: #f3f6fa;
  --pbpc-white: #fff;
  --pbpc-radius: 18px;
  --pbpc-shadow: 0 22px 70px rgba(11, 40, 91, .13);
  color: var(--pbpc-ink);
  font-family: inherit;
}

#reference .pbpc-featured-reference {
  grid-column: 1 / -1;
  min-height: clamp(360px, 42vw, 520px);
}

#reference .pbpc-featured-reference img {
  object-position: center 42%;
}

#reference .pbpc-featured-reference .case-card__meta {
  max-width: 760px;
}

#reference .pbpc-featured-reference .case-card__meta h3,
#reference .pbpc-featured-reference .case-card__meta h4 {
  font-size: clamp(1.55rem, 3vw, 2.55rem);
  line-height: 1.08;
}

.pbpc-film *,
.pbpc-shell * { box-sizing: border-box; }

.pbpc-film {
  position: relative;
  overflow: hidden;
  background: var(--pbpc-navy-dark);
  color: #fff;
  padding: 72px 24px;
}

.pbpc-film-inner {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr);
  gap: 52px;
  align-items: center;
}

.pbpc-kicker {
  color: var(--pbpc-gold-light);
  font-size: .74rem;
  font-weight: 750;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.pbpc-film h2,
.pbpc-shell h2,
.pbpc-shell h3,
.pbpc-shell h4 { color: var(--pbpc-navy); }

.pbpc-film h2 {
  color: #fff;
  font-size: clamp(2rem, 4vw, 3.7rem);
  line-height: 1.04;
  margin: 14px 0 20px;
}

.pbpc-film p {
  color: rgba(255, 255, 255, .77);
  font-size: 1.04rem;
  line-height: 1.7;
  margin: 0;
}

.pbpc-film-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 22px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .38);
  background: #000;
}

.pbpc-film-frame video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pbpc-shell {
  background: var(--pbpc-soft);
  padding: 80px 24px 96px;
  scroll-margin-top: 100px;
}

.pbpc-heading {
  width: min(780px, 100%);
  margin: 0 auto 42px;
  text-align: center;
}

.pbpc-heading h2 {
  font-size: clamp(2.1rem, 4.5vw, 4.1rem);
  line-height: 1.03;
  margin: 12px 0 18px;
}

.pbpc-heading p {
  margin: 0;
  color: var(--pbpc-muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.pbpc-grid {
  width: min(1280px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  align-items: start;
}

.pbpc-main { min-width: 0; }

.pbpc-steps {
  display: flex;
  gap: 9px;
  margin: 0 0 22px;
  overflow-x: auto;
  scrollbar-width: thin;
  padding: 2px 2px 8px;
}

.pbpc-step {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--pbpc-line);
  border-radius: 999px;
  background: #fff;
  color: var(--pbpc-muted);
  padding: 7px 15px 7px 7px;
  font: inherit;
  font-size: .8rem;
  font-weight: 700;
  cursor: pointer;
  transition: border-color .2s ease, color .2s ease, transform .2s ease;
}

.pbpc-step:hover { transform: translateY(-1px); }

.pbpc-step-no {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background: var(--pbpc-soft);
  color: var(--pbpc-muted);
}

.pbpc-step.is-active {
  border-color: var(--pbpc-gold);
  color: var(--pbpc-navy);
}

.pbpc-step.is-active .pbpc-step-no {
  background: var(--pbpc-gold);
  color: var(--pbpc-navy-dark);
}

.pbpc-step.is-done .pbpc-step-no {
  background: var(--pbpc-navy);
  color: #fff;
}

.pbpc-panel {
  min-height: 420px;
  padding: 32px;
  border: 1px solid var(--pbpc-line);
  border-radius: var(--pbpc-radius);
  background: #fff;
  box-shadow: 0 12px 40px rgba(11, 40, 91, .055);
}

.pbpc-panel-title {
  margin: 0 0 8px;
  font-size: clamp(1.65rem, 3vw, 2.35rem);
}

.pbpc-intro {
  margin: 0 0 25px;
  color: var(--pbpc-muted);
  font-size: .94rem;
  line-height: 1.65;
}

.pbpc-intro p { margin: 0 0 .65em; }

.pbpc-boats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.pbpc-boat {
  overflow: hidden;
  border: 2px solid var(--pbpc-line);
  border-radius: 15px;
  background: #fff;
  cursor: pointer;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.pbpc-boat:hover {
  border-color: var(--pbpc-gold);
  transform: translateY(-2px);
}

.pbpc-boat.is-selected {
  border-color: var(--pbpc-gold);
  box-shadow: 0 0 0 4px rgba(203, 169, 119, .2);
}

.pbpc-boat-media {
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #e8edf4;
}

.pbpc-boat-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}

.pbpc-boat:hover img { transform: scale(1.035); }

.pbpc-boat-body { padding: 17px 18px 18px; }
.pbpc-boat-body h3 { margin: 0 0 8px; font-size: 1.08rem; }
.pbpc-boat-body p { min-height: 4.8em; margin: 0 0 13px; color: var(--pbpc-muted); font-size: .79rem; line-height: 1.55; }

.pbpc-boat-meta {
  display: flex;
  flex-direction: column;
  gap: 3px;
  color: var(--pbpc-muted);
  font-size: .77rem;
}

.pbpc-boat-meta strong { color: var(--pbpc-navy); }

.pbpc-items {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.pbpc-item {
  display: flex;
  flex-direction: column;
  min-height: 160px;
  padding: 19px;
  border: 1px solid var(--pbpc-line);
  border-radius: 14px;
  background: #fff;
  transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}

.pbpc-item.is-selected {
  border-color: var(--pbpc-gold);
  background: #fffcf7;
  box-shadow: inset 0 0 0 1px rgba(203, 169, 119, .25);
}

.pbpc-item-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
}

.pbpc-item-head h3 { margin: 0; font-size: .98rem; line-height: 1.35; }
.pbpc-item-price { flex: 0 0 auto; color: #9b6d2f; font-size: .8rem; font-weight: 800; white-space: nowrap; }
.pbpc-item-short { margin: 8px 0 0; color: var(--pbpc-muted); font-size: .81rem; line-height: 1.55; }
.pbpc-item-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 16px; }

.pbpc-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 11px 19px;
  border: 1px solid var(--pbpc-navy);
  border-radius: 999px;
  background: transparent;
  color: var(--pbpc-navy);
  font: inherit;
  font-size: .84rem;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
}

.pbpc-button:hover { transform: translateY(-1px); }
.pbpc-button.is-primary { border-color: var(--pbpc-navy); background: var(--pbpc-navy); color: #fff; }
.pbpc-button.is-gold { border-color: var(--pbpc-gold); background: linear-gradient(135deg, var(--pbpc-gold-light), var(--pbpc-gold)); color: var(--pbpc-navy-dark); }
.pbpc-button.is-quiet { border-color: var(--pbpc-line); color: var(--pbpc-muted); }
.pbpc-button:disabled { opacity: .4; cursor: not-allowed; transform: none; }
.pbpc-button.is-large { min-height: 50px; padding: 14px 26px; font-size: .92rem; }

.pbpc-nav {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-top: 22px;
}

.pbpc-aside {
  position: sticky;
  top: 92px;
}

.pbpc-summary {
  padding: 26px;
  border-radius: var(--pbpc-radius);
  background: linear-gradient(150deg, var(--pbpc-navy), var(--pbpc-navy-dark));
  color: #fff;
  box-shadow: var(--pbpc-shadow);
}

.pbpc-summary h3 { margin: 0 0 18px; color: #fff; font-size: 1.3rem; }
.pbpc-params { display: flex; flex-direction: column; gap: 12px; margin-bottom: 19px; }
.pbpc-params-row { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }

.pbpc-params label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  color: rgba(255, 255, 255, .72);
  font-size: .75rem;
  font-weight: 700;
}

.pbpc-params input,
.pbpc-params select {
  width: 100%;
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 8px;
  background: rgba(255, 255, 255, .085);
  color: #fff;
  font: inherit;
  font-size: .86rem;
}

.pbpc-params input:focus,
.pbpc-params select:focus { outline: 2px solid var(--pbpc-gold); outline-offset: 1px; }
.pbpc-params option { color: var(--pbpc-ink); }
.pbpc-cap-hint { margin: 3px 0 0; color: rgba(255, 255, 255, .7); font-size: .75rem; line-height: 1.4; }
.pbpc-cap-hint.is-warning { color: #ffd79e; font-weight: 700; }

.pbpc-lines {
  display: flex;
  flex-direction: column;
  gap: 9px;
  max-height: 260px;
  overflow-y: auto;
  margin: 0 0 16px;
  padding: 16px 0;
  border-top: 1px solid rgba(255, 255, 255, .13);
  border-bottom: 1px solid rgba(255, 255, 255, .13);
  list-style: none;
}

.pbpc-lines:empty { display: none; }
.pbpc-lines li { display: flex; justify-content: space-between; gap: 12px; font-size: .78rem; line-height: 1.4; }
.pbpc-line-name { color: rgba(255, 255, 255, .82); }
.pbpc-line-value { flex: 0 0 auto; color: var(--pbpc-gold-light); font-weight: 800; white-space: nowrap; }
.pbpc-totals { display: flex; flex-direction: column; gap: 8px; }
.pbpc-totals > div { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.pbpc-totals span { color: rgba(255, 255, 255, .7); font-size: .79rem; }
.pbpc-total-net strong { color: #fff; }
.pbpc-total-vat strong { color: var(--pbpc-gold-light); font-size: 1.45rem; }

.pbpc-final {
  display: grid;
  place-items: center;
  min-height: 320px;
  padding: 24px 0;
  text-align: center;
}

.pbpc-final-inner { max-width: 590px; }
.pbpc-final-icon { display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 50%; background: #f0e4d2; color: var(--pbpc-navy); font-size: 1.75rem; }
.pbpc-final h3 { margin: 0 0 12px; font-size: clamp(1.45rem, 3vw, 2.15rem); }
.pbpc-final p { margin: 0 0 22px; color: var(--pbpc-muted); line-height: 1.7; }
.pbpc-status { min-height: 1.5em; margin-top: 12px; color: #9d3129; font-size: .84rem; }

.pbpc-modal {
  position: fixed;
  inset: 0;
  z-index: 1800;
  display: grid;
  place-items: center;
  padding: 24px;
}

.pbpc-modal[hidden] { display: none; }
.pbpc-modal-backdrop { position: absolute; inset: 0; border: 0; background: rgba(5, 19, 44, .78); cursor: default; }
.pbpc-modal-box { position: relative; width: min(720px, 100%); max-height: 88vh; overflow: auto; padding: 34px; border-radius: 20px; background: #fff; box-shadow: 0 35px 100px rgba(0, 0, 0, .38); }
.pbpc-modal-close { position: absolute; top: 12px; right: 15px; border: 0; background: transparent; color: var(--pbpc-muted); font-size: 2rem; line-height: 1; cursor: pointer; }
.pbpc-modal-body h2 { margin: 0 38px 20px 0; font-size: 1.8rem; }
.pbpc-modal-body .pbpc-rich { color: var(--pbpc-muted); line-height: 1.7; }
.pbpc-modal-body img { display: block; width: 100%; margin: 18px 0; border-radius: 13px; }
.pbpc-modal-video { position: relative; overflow: hidden; aspect-ratio: 16 / 9; margin: 18px 0; border-radius: 13px; background: #000; }
.pbpc-modal-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.pbpc-menu h4 { margin: 20px 0 7px; color: #9b6d2f; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; }
.pbpc-menu ul { margin: 0; padding-left: 20px; color: var(--pbpc-ink); }
.pbpc-menu li { margin-bottom: 5px; font-size: .9rem; line-height: 1.5; }
body.pbpc-modal-open { overflow: hidden; }

.pbpc-nav-link {
  border-color: var(--pbpc-gold) !important;
  background: #fff8ee !important;
  color: var(--pbpc-navy) !important;
}

@media (max-width: 1100px) {
  .pbpc-grid { grid-template-columns: minmax(0, 1fr) 320px; }
  .pbpc-boats,
  .pbpc-items { grid-template-columns: 1fr; }
}

@media (max-width: 840px) {
  .pbpc-film { padding: 58px 20px; }
  .pbpc-film-inner { grid-template-columns: 1fr; gap: 30px; }
  .pbpc-shell { padding: 64px 18px 74px; }
  .pbpc-grid { grid-template-columns: 1fr; }
  .pbpc-aside { position: static; }
  .pbpc-boats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
  .pbpc-shell { padding-inline: 12px; }
  .pbpc-heading { padding-inline: 8px; }
  .pbpc-panel { padding: 20px 15px; border-radius: 15px; }
  .pbpc-boats,
  .pbpc-items { grid-template-columns: 1fr; }
  .pbpc-boat-body p { min-height: 0; }
  .pbpc-step-title { display: none; }
  .pbpc-step { padding-right: 7px; }
  .pbpc-nav { position: sticky; bottom: 10px; z-index: 5; padding: 9px; border-radius: 999px; background: rgba(255, 255, 255, .94); box-shadow: 0 10px 35px rgba(11, 40, 91, .18); backdrop-filter: blur(10px); }
  .pbpc-nav .pbpc-button { padding-inline: 15px; }
  .pbpc-summary { padding: 22px 18px; }
  .pbpc-params-row { grid-template-columns: 1fr; }
  .pbpc-modal { padding: 10px; }
  .pbpc-modal-box { padding: 27px 20px; border-radius: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .pbpc-film-frame video { display: none; }
  .pbpc-button,
  .pbpc-step,
  .pbpc-boat,
  .pbpc-boat-media img { transition: none; }
}

/* Boat without a configurator price (Lužnice): price on request. */
.pbpc-on-request-note { margin: 2px 0 0; color: rgba(255, 255, 255, .78); font-size: .79rem; }
