:root {
  --bs-body-font-family: "Nunito Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ink: #171916;
  --muted: #70746d;
  --line: #e7e9e4;
  --surface: #f4f5f2;
  --surface-warm: #eee9df;
  --accent: #7aa842;
  --accent-dark: #638d31;
}

html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body { background: #fff; color: var(--ink); font-family: var(--bs-body-font-family); font-size: 15px; }
a { color: inherit; }
/* .container { max-width: 1320px; } */
.site-main { padding: 1.5rem 0 0; overflow: hidden; }

/* Nawigacja */
.site-navbar {
  min-height: 76px;
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}
.navbar-brand { padding: 0; margin-right: 2rem; }
.site-logo { display: block; width: 176px; height: auto; }
.site-navbar .nav-link {
  color: #353832;
  font-size: .88rem;
  font-weight: 700;
  padding: 1.7rem .75rem;
  position: relative;
}
.site-navbar .nav-link::after {
  content: "";
  position: absolute;
  left: .75rem;
  right: .75rem;
  bottom: 1.25rem;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform .2s ease;
}
.site-navbar .nav-link:hover::after { transform: scaleX(1); }
.site-nav-actions { display: flex; align-items: center; gap: 1rem; }
.site-phone { font-size: .85rem; font-weight: 800; text-decoration: none; white-space: nowrap; }
.cart-link {
  display: flex;
  align-items: center;
  gap: .45rem;
  padding: .62rem .8rem;
  background: var(--ink);
  color: #fff;
  border-radius: 3px;
  font-size: .82rem;
  font-weight: 800;
  text-decoration: none;
}
.cart-link:hover { background: var(--accent); color: #fff; }
.cart-link svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.cart-link strong {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent);
  font-size: .7rem;
}
.cart-link:hover strong { background: #fff; color: var(--accent-dark); }

/* Hero */
.home-banner {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-top: -1.5rem;
  margin-bottom: 0 !important;
  background: #252722;
}
.home-banner .carousel-inner, .home-banner .carousel-item, .home-banner .scott-hero { border-radius: 0; }
.scott-hero {
  min-height: 570px;
  overflow: hidden;
  background-color: #252722;
  background-repeat: no-repeat;
  background-size: min(58vw, 820px) auto;
  background-position: calc(50% + 310px) center;
}
.scott-hero-overlay {
  min-height: 570px;
  display: flex;
  align-items: center;
  padding: 4rem max(1.5rem, calc((100vw - 1140px) / 2));
  background: linear-gradient(90deg, rgba(11, 13, 10, .82) 0%, rgba(11, 13, 10, .54) 42%, rgba(11, 13, 10, .06) 76%);
}
.scott-hero-content { position: relative; z-index: 3; max-width: 610px; color: #fff; }
.hero-kicker, .section-kicker {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  margin-bottom: 1rem;
  color: var(--accent);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.hero-kicker::before, .section-kicker::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.scott-hero-content h1 { max-width: 600px; margin: 0 0 1.1rem; font-size: clamp(2.8rem, 5.5vw, 5.25rem); font-weight: 900; line-height: .94; letter-spacing: -.045em; }
.scott-hero-content p { max-width: 500px; margin-bottom: 1.7rem; color: rgba(255,255,255,.82); font-size: 1.1rem; line-height: 1.65; }
.home-banner .carousel-indicators { margin-bottom: 1.25rem; }
.home-banner .carousel-indicators [data-bs-target] { width: 26px; height: 3px; border: 0; }
.home-banner .carousel-control-prev, .home-banner .carousel-control-next { width: 5rem; }

/* Elementy wspólne */
.btn { border-radius: 2px; font-weight: 800; letter-spacing: .01em; }
.btn-primary {
  --bs-btn-bg: var(--accent);
  --bs-btn-border-color: var(--accent);
  --bs-btn-hover-bg: var(--accent-dark);
  --bs-btn-hover-border-color: var(--accent-dark);
  --bs-btn-active-bg: var(--accent-dark);
  --bs-btn-active-border-color: var(--accent-dark);
  padding: .72rem 1.25rem;
}
.btn-outline-primary {
  --bs-btn-color: var(--ink);
  --bs-btn-border-color: #cfd2cc;
  --bs-btn-hover-bg: var(--ink);
  --bs-btn-hover-border-color: var(--ink);
}
.form-control, .form-select { min-height: 48px; border-color: #dde0da; border-radius: 2px; background-color: #fafbf9; }
.form-control:focus, .form-select:focus { border-color: var(--accent); box-shadow: 0 0 0 .2rem rgba(122,168,66,.14); }
.form-label { color: #4f534b; font-size: .78rem; font-weight: 800; }
.text-secondary { color: var(--muted) !important; }
.alert { border-radius: 2px; }
.form-panel { padding: 1.5rem; background: var(--surface); border: 1px solid var(--line); border-radius: 4px; }
.admin-shell { max-width: 1320px; }

/* Umowa do druku */
.contract-document {
  max-width: 980px;
  margin: 0 auto 3rem;
  padding: 2rem;
  background: #fff;
  border: 1px solid var(--line);
  color: #111;
  font-size: .92rem;
  line-height: 1.55;
}
.contract-actions { display: flex; justify-content: flex-end; gap: .5rem; margin-bottom: 1.5rem; }
.contract-header, .contract-parties, .contract-signatures { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.contract-header { align-items: start; padding-bottom: 1rem; border-bottom: 2px solid #111; }
.contract-header h1 { margin: 0; font-size: 1.55rem; font-weight: 950; }
.contract-company { text-align: right; }
.contract-place { margin: 1.25rem 0; }
.contract-document h2 { margin: 1.2rem 0 .55rem; font-size: 1rem; font-weight: 950; }
.contract-document ol { padding-left: 1.2rem; }
.contract-table { width: 100%; margin: .75rem 0 1rem; border-collapse: collapse; }
.contract-table th, .contract-table td { padding: .45rem .5rem; border: 1px solid #999; vertical-align: top; }
.contract-table th { background: #f3f3f3; }
.contract-note { padding: .65rem .75rem; background: #f7f8f6; border-left: 3px solid var(--accent); }
.contract-final-signatures { break-inside: avoid; }
.contract-signatures { margin: 3rem 0 1.75rem; }
.contract-signatures div { padding-top: 2.5rem; border-top: 1px solid #111; text-align: center; }
.contract-signatures span { font-size: .78rem; font-weight: 800; }
.contract-protocol { margin-top: 1.5rem; break-before: page; }

/* Zgoda na analitykę */
.tracking-consent {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 1080;
  display: flex;
  align-items: center;
  gap: 1rem;
  max-width: min(640px, calc(100vw - 2rem));
  padding: 1rem;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 18px 45px rgba(23,25,22,.16);
}
.tracking-consent[hidden] { display: none; }
.tracking-consent__body { min-width: 0; }
.tracking-consent strong { display: block; margin-bottom: .25rem; font-size: .9rem; font-weight: 950; }
.tracking-consent p { margin: 0; color: var(--muted); font-size: .78rem; line-height: 1.45; }
.tracking-consent__actions { display: flex; flex: 0 0 auto; gap: .55rem; }

/* Pasek procesu */
.benefit-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0 0 6rem;
  background: #fff;
  border: 1px solid var(--line);
  border-top: 0;
}
.benefit-item { display: flex; align-items: center; gap: 1rem; padding: 1.35rem 1.6rem; border-right: 1px solid var(--line); }
.benefit-item:last-child { border-right: 0; }
.benefit-number { color: var(--accent); font-size: .75rem; font-weight: 900; }
.benefit-item strong, .benefit-item small { display: block; }
.benefit-item strong { font-size: .9rem; }
.benefit-item small { margin-top: .1rem; color: var(--muted); font-size: .75rem; }

/* Oferta i karty */
.offer-section { padding-bottom: 7rem; }
.section-heading { max-width: 650px; margin: 0 auto 2.8rem; text-align: center; }
.section-heading .section-kicker::before { display: none; }
.section-heading h1 { margin-bottom: .75rem; font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 900; letter-spacing: -.035em; }
.section-heading p { margin: 0; color: var(--muted); font-size: 1rem; }
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; }
.product-card { display: flex; flex-direction: column; min-width: 0; overflow: hidden; background: var(--surface); border-radius: 4px; transition: transform .22s ease, box-shadow .22s ease; }
.product-card:hover { transform: translateY(-5px); box-shadow: 0 18px 40px rgba(24,28,20,.09); }
.product-card-media { position: relative; display: block; overflow: hidden; background: #f7f8f6; }
.product-card-media img { width: 100%; aspect-ratio: 1 / .84; object-fit: contain; padding: 1.2rem; transition: transform .35s ease; mix-blend-mode: multiply; }
.product-card:hover .product-card-media img { transform: scale(1.035); }
.availability-badge { position: absolute; top: .9rem; left: .9rem; padding: .34rem .55rem; background: #fff; border-radius: 2px; color: #587a32; font-size: .66rem; font-weight: 900; text-transform: uppercase; box-shadow: 0 3px 12px rgba(0,0,0,.06); }
.product-card-body { display: flex; flex: 1; flex-direction: column; padding: 1.2rem 1.25rem 1.3rem; }
.product-type { margin-bottom: .4rem; color: #969a92; font-size: .66rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.product-card h2 {
  display: -webkit-box;
  min-height: 3.6em;
  margin: 0 0 .45rem;
  overflow: hidden;
  font-size: 1.15rem;
  font-weight: 900;
  line-height: 1.2;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}
.product-card h2 a { text-decoration: none; }
.product-card h2 a:hover { color: var(--accent-dark); }
.product-card-body > p { display: -webkit-box; min-height: 3em; overflow: hidden; margin-bottom: 1rem; color: var(--muted); font-size: .82rem; line-height: 1.5; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.product-meta { display: flex; height: 64px; flex-wrap: wrap; align-content: flex-start; gap: .45rem 1.2rem; overflow: hidden; padding: .75rem 0; border-top: 1px solid #dfe2dc; border-bottom: 1px solid #dfe2dc; font-size: .75rem; font-weight: 800; }
.product-meta span { min-width: 0; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.product-meta small { display: block; margin-bottom: .1rem; color: #94988f; font-size: .61rem; font-weight: 700; text-transform: uppercase; }
.product-card-footer { display: flex; align-items: end; justify-content: space-between; margin-top: auto; padding-top: 1rem; }
.product-price strong, .product-price span { display: block; }
.product-price strong { font-size: 1.25rem; font-weight: 950; }
.product-price span { color: var(--muted); font-size: .7rem; }
.card-arrow { display: grid; place-items: center; width: 38px; height: 38px; background: var(--ink); color: #fff; border-radius: 50%; font-size: 1.15rem; text-decoration: none; transition: background .2s ease, transform .2s ease; }
.card-arrow:hover { background: var(--accent); color: #fff; transform: translateX(3px); }

/* Widok produktu */
.product-breadcrumb { display: flex; flex-wrap: wrap; gap: .55rem; margin: .8rem 0 1.5rem; color: #8c9088; font-size: .75rem; }
.product-breadcrumb a { text-decoration: none; }
.product-breadcrumb a:hover { color: var(--accent-dark); }
.product-detail { align-items: start; }
.product-showcase { overflow: hidden; background: var(--surface); border-radius: 4px; }
.product-main-image { display: block; width: 100%; aspect-ratio: 1.18 / 1; object-fit: contain; padding: 2.25rem; background: #f6f7f4; mix-blend-mode: multiply; }
.product-summary { padding: 2rem 2.2rem 2.2rem; background: #fff; border: 1px solid var(--line); border-top: 0; }
.product-summary h1 { margin-bottom: .8rem; font-size: clamp(2rem, 4vw, 3.3rem); font-weight: 950; letter-spacing: -.04em; line-height: 1; }
.product-summary > p { max-width: 650px; color: var(--muted); font-size: 1rem; line-height: 1.65; }
.detail-features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.detail-features span, .detail-features strong { display: block; }
.detail-features strong { margin-bottom: .2rem; font-size: .82rem; }
.detail-features span { color: var(--muted); font-size: .75rem; }
.booking-panel { position: sticky; top: 98px; padding: 2rem; background: #fff; border: 1px solid var(--line); box-shadow: 0 16px 45px rgba(23,25,22,.08); }
.booking-panel h2 { margin-bottom: .35rem; font-size: 1.65rem; font-weight: 900; }
.booking-price { display: flex; align-items: baseline; gap: .35rem; margin-bottom: 1rem; }
.booking-price strong { font-size: 1.45rem; font-weight: 950; }
.booking-price span { color: var(--muted); font-size: .78rem; }
.product-availability { display: flex; align-items: center; gap: .75rem; padding: .85rem 1rem; background: #f4f7f0; border: 1px solid #dfe8d5; }
.product-availability-dot { width: 9px; height: 9px; flex: 0 0 auto; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(122,168,66,.14); }
.product-availability strong, .product-availability small { display: block; }
.product-availability strong { font-size: .82rem; }
.product-availability small { margin-top: .1rem; color: var(--muted); font-size: .72rem; }
.availability-message { margin: .75rem 0 0; padding: .7rem .8rem; background: #fff2ef; border-left: 3px solid #c85a43; color: #8b3d2d; font-size: .76rem; font-weight: 700; }
.booking-total { padding: 1rem; background: var(--surface); border-left: 3px solid var(--accent); }
.booking-total strong { max-width: 58%; text-align: right; overflow-wrap: anywhere; }
.booking-cart-link { display: block; margin-top: 1rem; color: var(--muted); font-size: .78rem; font-weight: 800; text-align: center; text-decoration: none; }
.booking-cart-link:hover { color: var(--accent-dark); }
.booking-window-note { margin: .75rem 0 0; color: var(--muted); font-size: .76rem; line-height: 1.45; }
.product-description { width: 100%; margin-top: 4rem; padding: 3rem; background: #fff; border: 1px solid var(--line); }
.product-description h2, .product-description h3, .product-description h4 { margin-top: 1.4rem; font-weight: 900; }
.product-description table { width: 100%; margin: 1rem 0; }
.product-description th, .product-description td { padding: .6rem; border: 1px solid #d7d1c5; }
.product-description dl,
dl.product-description {
  display: block;
  margin: 1.75rem 0 0;
  padding: .85rem;
  background: #f7f8f5;
  border: 1px solid #e1e5dc;
  border-radius: 6px;
}
.product-description dt,
.product-description dd {
  margin: 0;
  min-height: 38px;
}
.product-description dt {
  clear: left;
  float: left;
  width: 30%;
  margin: .18rem 0;
  padding: .68rem .9rem;
  background: var(--accent);
  color: #fff;
  font-size: .9rem;
  font-weight: 850;
  line-height: 1.25;
  text-align: right;
  text-transform: uppercase;
  letter-spacing: .02em;
  border-radius: 4px 0 0 4px;
}
.product-description dd {
  margin: .18rem 0 .18rem calc(30% + .45rem);
  padding: .68rem .9rem;
  background: #ecefeb;
  color: #3f443d;
  font-size: .9rem;
  line-height: 1.45;
  border-left: 3px solid rgba(122,168,66,.5);
  border-radius: 0 4px 4px 0;
}
.product-description dd + dd {
  min-height: 0;
  padding-top: .55rem;
  padding-bottom: .55rem;
  background: #f1f3f0;
}
.product-description dl hr,
dl.product-description hr {
  clear: both;
  display: block;
  height: 0;
  margin: 0;
  border: 0;
}
.product-description dl::after,
dl.product-description::after { content: ""; display: block; clear: both; }

/* Stopka */
.site-footer { padding: 4.5rem 0 1.5rem; background: #f2f3f0; border-top: 1px solid var(--line); }
.footer-top { display: grid; grid-template-columns: 1.7fr repeat(3, 1fr); gap: 3rem; }
.site-footer-logo { display: block; width: 205px; height: auto; margin-bottom: 1.25rem; }
.footer-brand p { max-width: 290px; color: var(--muted); font-size: .85rem; line-height: 1.6; }
.site-footer h2 { margin-bottom: 1rem; font-size: .78rem; font-weight: 950; letter-spacing: .08em; text-transform: uppercase; }
.site-footer a, .site-footer address, .site-footer span { display: block; margin-bottom: .55rem; color: var(--muted); font-size: .8rem; font-style: normal; text-decoration: none; }
.site-footer a:hover { color: var(--accent-dark); }
.footer-bottom { display: flex; justify-content: space-between; margin-top: 3.5rem; padding-top: 1.2rem; border-top: 1px solid #daddd6; }
.footer-bottom span { margin: 0; font-size: .7rem; }

@media (max-width: 991.98px) {
  .site-navbar { min-height: 68px; }
  .site-logo { width: 155px; }
  .navbar-toggler { border: 0; box-shadow: none !important; }
  .navbar-collapse { padding: 1rem 0 1.25rem; border-top: 1px solid var(--line); }
  .site-navbar .nav-link { padding: .6rem 0; }
  .site-navbar .nav-link::after { display: none; }
  .site-nav-actions { margin-top: .75rem; justify-content: space-between; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .booking-panel { position: static; }
  .footer-top { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 767.98px) {
  .site-main { padding-top: 1rem; }
  .home-banner { margin-top: -1rem; }
  .scott-hero, .scott-hero-overlay { min-height: 480px; }
  .scott-hero { background-size: 125vw auto; background-position: center 12%; }
  .scott-hero-overlay { align-items: end; padding: 3rem 1.25rem; background: linear-gradient(0deg, rgba(11,13,10,.9), rgba(11,13,10,.18) 85%); }
  .scott-hero-content h1 { font-size: clamp(2.5rem, 13vw, 4rem); }
  .scott-hero-content p { font-size: .95rem; }
  .home-banner .carousel-control-prev, .home-banner .carousel-control-next { display: none; }
  .benefit-strip { grid-template-columns: 1fr; margin-bottom: 4rem; }
  .benefit-item { border-right: 0; border-bottom: 1px solid var(--line); }
  .benefit-item:last-child { border-bottom: 0; }
  .offer-section { padding-bottom: 4rem; }
  .product-grid { grid-template-columns: 1fr; gap: 1rem; }
  .product-card-media img { aspect-ratio: 1.2 / 1; }
  .product-card h2, .product-card-body > p { min-height: 0; }
  .product-meta { height: auto; min-height: 54px; }
  .product-main-image { padding: 1rem; }
  .product-summary, .booking-panel { padding: 1.4rem; }
  .detail-features { grid-template-columns: 1fr; }
  .product-description { margin-top: 2.5rem; padding: 1.5rem; }
  .product-description dl,
  dl.product-description { padding: .7rem; }
  .product-description dt { float: none; width: auto; min-height: 0; margin: .25rem 0 0; padding: .72rem .85rem; text-align: left; border-radius: 4px 4px 0 0; }
  .product-description dd { min-height: 0; margin: 0 0 .25rem; padding: .72rem .85rem; border-left: 0; border-top: 3px solid rgba(122,168,66,.45); border-radius: 0 0 4px 4px; }
  .product-description dd + dd { margin-top: .25rem; padding-top: .6rem; border-top-width: 1px; }
  .site-footer { padding: 3rem 0 1.25rem; }
  .footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 1.5rem; }
  .footer-brand { grid-column: 1 / -1; padding-bottom: 1.5rem; border-bottom: 1px solid #daddd6; }
  .site-footer-logo { width: 180px; margin-bottom: 1rem; }
  .footer-brand p { max-width: 360px; margin-bottom: 0; }
  .footer-address { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 1.5rem; }
  .footer-address h2 { grid-column: 1 / -1; }
  .footer-address address, .footer-address span { margin-bottom: 0; }
  .footer-bottom { flex-wrap: wrap; gap: .25rem 1rem; margin-top: 2rem; }
  .footer-bottom span { width: auto; }
  .tracking-consent {
    right: 1rem;
    bottom: 1rem;
    left: 1rem;
    display: block;
    max-width: none;
  }
  .tracking-consent__actions { margin-top: .85rem; }
  .tracking-consent__actions .btn { flex: 1 1 0; }
}

@media print {
  @page { margin: 12mm; }
  body { background: #fff; font-size: 9.4pt; }
  .site-main { padding: 0; overflow: visible; }
  .site-main > .container { max-width: none; width: 100%; padding: 0; }
  .alert, .contract-actions, script { display: none !important; }
  .contract-document {
    max-width: none;
    margin: 0;
    padding: 0;
    border: 0;
    box-shadow: none;
    font-size: 9.4pt;
    line-height: 1.38;
  }
  .contract-header { padding-bottom: .6rem; }
  .contract-header h1 { font-size: 14pt; }
  .contract-place { margin: .7rem 0; }
  .contract-document h2 { margin: .7rem 0 .3rem; font-size: 10pt; break-after: avoid; }
  .contract-document p { margin-bottom: .45rem; }
  .contract-document ol { margin-bottom: .55rem; padding-left: 1rem; }
  .contract-document li { margin-bottom: .12rem; }
  .contract-table { margin: .45rem 0 .55rem; }
  .contract-table th, .contract-table td { padding: .28rem .35rem; }
  .contract-note { padding: .4rem .55rem; }
  .contract-table th { background: #f3f3f3 !important; print-color-adjust: exact; }
  .contract-final-signatures { break-inside: avoid; }
  .contract-signatures { break-inside: avoid; }
  .contract-signatures { margin: 1.45rem 0 .75rem; gap: 1.4rem; }
  .contract-signatures div { padding-top: 1.45rem; }
  .contract-protocol { margin-top: 0; break-before: page; }
  .contract-protocol-signatures { margin: 1.1rem 0 .55rem; }
  .contract-protocol-signatures div { padding-top: 1.1rem; }
}

@media (max-width: 419.98px) {
  .footer-top { grid-template-columns: 1fr; gap: 1.6rem; }
  .footer-brand, .footer-address { grid-column: auto; }
  .footer-address { display: block; }
  .footer-address address { margin-bottom: .55rem; }
  .footer-bottom { display: block; }
  .footer-bottom span + span { margin-top: .25rem; }
}
