:root {
  --ink: #111827;
  --navy: #14243a;
  --muted: #647084;
  --line: #dbe4ef;
  --soft: #f3f7fb;
  --paper: #ffffff;
  --red: #e21b2d;
  --blue: #0075db;
  --cyan: #16bfd4;
  --green: #20a86b;
  --gold: #ffc247;
  --shadow: 0 18px 52px rgba(17, 24, 39, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: #f8fbfe;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.is-hidden {
  display: none !important;
}

button,
input,
textarea {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 72px);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(219, 228, 239, 0.86);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-logo {
  display: block;
  width: min(190px, 42vw);
  height: auto;
}

.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  color: white;
  background: linear-gradient(135deg, var(--red), var(--blue));
  border-radius: 8px;
  font-weight: 900;
}

.brand small {
  display: block;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav a {
  padding: 10px 12px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--red);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 9px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--ink);
}

section {
  padding: clamp(56px, 8vw, 104px) clamp(18px, 5vw, 78px);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.82fr);
  gap: clamp(32px, 5vw, 76px);
  align-items: center;
  min-height: calc(100vh - 73px);
  background:
    linear-gradient(135deg, #ffffff 0%, #eef7ff 48%, #f7f8fb 100%);
}

.hero-copy {
  max-width: 850px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--red);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 22px;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(30px, 4vw, 54px);
  line-height: 1.04;
}

h3 {
  margin-bottom: 10px;
  font-size: 22px;
}

.lead,
.section-copy p,
.contact-section p {
  color: var(--muted);
  font-size: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 30px 0;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}

.button-primary {
  color: white;
  background: linear-gradient(135deg, var(--red), var(--blue));
  box-shadow: 0 12px 26px rgba(226, 27, 45, 0.22);
}

.button-secondary {
  color: var(--ink);
  background: white;
  border-color: var(--line);
}

.button-light {
  color: var(--navy);
  background: white;
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 720px;
  margin: 0;
}

.hero-facts div {
  padding: 16px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.hero-facts dt {
  font-size: 25px;
  font-weight: 900;
}

.hero-facts dd {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.hero-media {
  position: relative;
}

.hero-media img {
  display: block;
  width: 100%;
  min-height: 470px;
  object-fit: cover;
  object-position: center right;
  border: 10px solid #21324a;
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.hero-badge {
  position: absolute;
  right: -12px;
  bottom: 34px;
  max-width: 260px;
  padding: 18px;
  color: white;
  background: var(--navy);
  border-top: 4px solid var(--red);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.hero-badge strong,
.hero-badge span {
  display: block;
}

.hero-badge strong {
  font-size: 26px;
}

.hero-badge span {
  color: rgba(255, 255, 255, 0.76);
  font-size: 13px;
}

.service-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  background: white;
}

.service-band article {
  padding: 26px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(17, 24, 39, 0.06);
}

.service-band span {
  display: inline-grid;
  min-width: 48px;
  height: 42px;
  margin-bottom: 18px;
  padding: 0 10px;
  place-items: center;
  color: white;
  background: var(--navy);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 900;
}

.section-copy {
  max-width: 760px;
  margin-bottom: 32px;
}

.jambox-spotlight {
  color: white;
  background:
    linear-gradient(135deg, rgba(20, 36, 58, 0.98), rgba(0, 117, 219, 0.88)),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.10) 0 2px, transparent 2px 16px);
}

.jambox-spotlight .eyebrow,
.jambox-spotlight .section-copy p {
  color: rgba(255, 255, 255, 0.78);
}

.spotlight-grid {
  display: grid;
  grid-template-columns: 1.15fr repeat(2, minmax(0, 0.72fr));
  gap: 18px;
}

.spotlight-grid article {
  min-height: 280px;
  padding: 26px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
}

.spotlight-grid article span,
.option-heading span,
.summary-label {
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.spotlight-main {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background:
    linear-gradient(135deg, rgba(226, 27, 45, 0.9), rgba(32, 168, 107, 0.82)),
    linear-gradient(45deg, rgba(255, 255, 255, 0.16), transparent 45%) !important;
}

.spotlight-main h3 {
  max-width: 520px;
  margin-top: 8px;
  font-size: clamp(34px, 5vw, 62px);
  line-height: 0.98;
}

.configurator-section {
  background: var(--soft);
}

.configurator {
  display: grid;
  grid-template-columns: minmax(260px, 330px) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.summary-panel {
  position: sticky;
  top: 94px;
  padding: 24px;
  color: white;
  background: var(--navy);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.summary-panel strong {
  display: block;
  margin-bottom: 20px;
  font-size: 52px;
  line-height: 1;
}

.summary-panel dl {
  display: grid;
  gap: 16px;
  margin: 0 0 24px;
}

.summary-panel div {
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.summary-panel dt {
  color: rgba(255, 255, 255, 0.58);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.summary-panel dd {
  margin: 4px 0 0;
  color: white;
}

.config-workspace {
  display: grid;
  gap: 18px;
}

.config-row,
.option-section,
.channel-preview {
  padding: 22px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(17, 24, 39, 0.06);
}

.config-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.config-row-compact {
  grid-template-columns: minmax(0, 1fr);
}

.segmented {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.segmented button,
.option-card,
.combo-button,
.channel-tabs button {
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
}

.segmented button {
  min-height: 42px;
  padding: 0 14px;
  color: var(--ink);
  background: #f6f9fc;
  font-weight: 900;
}

.segmented button.is-active {
  color: white;
  background: linear-gradient(135deg, var(--red), var(--blue));
  border-color: transparent;
}

.quick-combos {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.combo-button {
  min-height: 44px;
  padding: 0 14px;
  color: var(--navy);
  background: white;
  font-weight: 900;
}

.option-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.option-heading span {
  color: var(--muted);
}

.option-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.option-grid.compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.option-card {
  display: grid;
  gap: 8px;
  min-height: 148px;
  padding: 18px;
  text-align: left;
  color: var(--ink);
  background: #f8fbfe;
}

.option-card strong {
  font-size: 20px;
}

.option-card small,
.option-card span {
  color: var(--muted);
}

.option-card .price {
  color: var(--red);
  font-size: 22px;
  font-weight: 900;
}

.option-card.is-active {
  color: white;
  background: linear-gradient(135deg, var(--navy), var(--blue));
  border-color: transparent;
}

.option-card.is-active small,
.option-card.is-active span,
.option-card.is-active .price {
  color: rgba(255, 255, 255, 0.82);
}

.option-card.is-disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.option-section.is-disabled .option-heading span::after {
  content: " - dostępne od pakietu Korzystny";
}

.option-section.is-disabled .counter-card {
  opacity: 0.45;
}

.option-section.is-disabled .counter button {
  cursor: not-allowed;
}

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

.counter-card {
  padding: 18px;
  background: #f8fbfe;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.counter-card span,
.counter-card small {
  display: block;
}

.counter-card span {
  font-weight: 900;
}

.counter-card small {
  color: var(--muted);
}

.counter {
  display: grid;
  grid-template-columns: 42px 1fr 42px;
  gap: 8px;
  align-items: center;
  margin: 12px 0;
}

.counter button {
  width: 42px;
  height: 42px;
  color: white;
  background: var(--navy);
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font-size: 22px;
  font-weight: 900;
}

.counter strong {
  text-align: center;
  font-size: 26px;
}

.channel-preview-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.channel-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.channel-tabs button {
  min-height: 38px;
  padding: 0 12px;
  background: #f6f9fc;
  font-weight: 900;
}

.channel-tabs button.is-active {
  color: white;
  background: var(--red);
  border-color: var(--red);
}

.channel-frame-wrap {
  min-height: 420px;
  background: #f8fbfe;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.channel-frame-wrap iframe {
  display: block;
  width: 100%;
  min-height: 620px;
  border: 0;
  border-radius: 8px;
}

.empty-state,
.loading {
  margin: 0;
  padding: 22px;
  color: var(--muted);
}

.featured-section {
  color: white;
  background: #101820;
}

.featured-section .eyebrow,
.featured-section .section-copy p {
  color: rgba(255, 255, 255, 0.72);
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.featured-card {
  overflow: hidden;
  color: var(--ink);
  background: white;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
}

.featured-promo {
  color: white;
  background:
    linear-gradient(145deg, rgba(0, 117, 219, 0.78), rgba(226, 27, 45, 0.84)),
    linear-gradient(45deg, rgba(255, 255, 255, 0.15), transparent 48%);
}

.featured-promo .featured-body {
  min-height: 260px;
  align-content: end;
}

.featured-promo .featured-meta,
.featured-promo .featured-body p,
.featured-promo .featured-body a {
  color: rgba(255, 255, 255, 0.82);
}

.featured-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #203146;
}

.featured-body {
  display: grid;
  gap: 9px;
  padding: 18px;
}

.featured-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
}

.featured-body p {
  color: var(--muted);
}

.featured-body a {
  color: var(--red);
  font-weight: 900;
  text-decoration: none;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.7fr);
  gap: 34px;
  align-items: start;
  background: white;
}

.lead-form {
  display: grid;
  gap: 14px;
  padding: 24px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

input,
textarea {
  width: 100%;
  padding: 12px 13px;
  color: var(--ink);
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
}

textarea {
  resize: vertical;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 34px clamp(18px, 5vw, 78px);
  color: white;
  background: var(--navy);
}

.site-footer p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.7);
}

address {
  display: grid;
  gap: 8px;
  font-style: normal;
  text-align: right;
}

address a {
  color: white;
  font-weight: 900;
  text-decoration: none;
}

@media (max-width: 1120px) {
  .hero,
  .configurator,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .summary-panel {
    position: static;
  }

  .spotlight-grid,
  .featured-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 72px;
    right: 18px;
    left: 18px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    background: white;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .hero-facts,
  .service-band,
  .config-row,
  .option-grid,
  .option-grid.compact,
  .multiroom-grid {
    grid-template-columns: 1fr;
  }

  .hero-media img {
    min-height: 360px;
  }

  .hero-badge {
    right: 10px;
    bottom: 10px;
  }

  .option-heading,
  .channel-preview-head,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .channel-tabs {
    justify-content: flex-start;
  }

  address {
    text-align: left;
  }
}

@media (max-width: 520px) {
  .hero-actions,
  .button {
    width: 100%;
  }

  .summary-panel strong {
    font-size: 42px;
  }
}
